cedar-model-typescript-library 1.0.27 → 1.0.28
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/README.md +3 -1
- package/conformance/java-oracle.mjs +4 -1
- package/conformance/pom.xml +9 -3
- package/esm/org/metadatacenter/model/cedar/validation/generated/artifact-schemas.js +2 -2
- package/esm/org/metadatacenter/model/cedar/validation/generated/artifact-schemas.js.map +1 -1
- package/package.json +1 -1
- package/schema.esm.js +1 -1
- package/schema.esm.js.map +1 -1
- package/schema.js +1 -1
- package/schema.js.map +1 -1
- package/schema.umd.js +1 -1
- package/schema.umd.js.map +1 -1
package/schema.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={250(e,t,s){const a=s(17);a.code='require("ajv/dist/runtime/equal").default',t.default=a},853(e,t){function s(e){const t=e.length;let s,a=0,r=0;for(;r<t;)a++,s=e.charCodeAt(r++),s>=55296&&s<=56319&&r<t&&(s=e.charCodeAt(r),56320==(64512&s)&&r++);return a}t.A=s,s.code='require("ajv/dist/runtime/ucs2length").default'},17(e){e.exports=function e(t,s){if(t===s)return!0;if(t&&s&&"object"==typeof t&&"object"==typeof s){if(t.constructor!==s.constructor)return!1;var a,r,i;if(Array.isArray(t)){if((a=t.length)!=s.length)return!1;for(r=a;0!==r--;)if(!e(t[r],s[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===s.source&&t.flags===s.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===s.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===s.toString();if((a=(i=Object.keys(t)).length)!==Object.keys(s).length)return!1;for(r=a;0!==r--;)if(!Object.prototype.hasOwnProperty.call(s,i[r]))return!1;for(r=a;0!==r--;){var n=i[r];if(!e(t[n],s[n]))return!1}return!0}return t!=t&&s!=s}},371(e,t,s){var a,r=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s);var r=Object.getOwnPropertyDescriptor(t,s);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,a,r)}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||(a=function(e){return a=Object.getOwnPropertyNames||function(e){var t=[];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[t.length]=s);return t},a(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s=a(e),n=0;n<s.length;n++)"default"!==s[n]&&r(t,e,s[n]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaArtifactValidator=void 0;const o=n(s(125)),p=s(108),m=s(92),u=s(403),l=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),h="https://schema.metadatacenter.org/core/",c=new Set(["controlled-term","link","ext-orcid","ext-ror","ext-pfas","ext-rrid","ext-pubmed","ext-nih-grant-id","ext-doi"]);class d{static schemaDigests=o.schemaDigests;static validate(e,t){const s=this.structure(e,t).findings;return s.length||u.SchemaValuePolicy.visit(e,"",s),m.ValidationPolicy.summarize(s,"template")}static structure(e,t){const s=[];try{const a=e;if(!l(a))throw new Error("Expected a template, element or field object.");const r="array"===a.type&&l(a.items)&&a.items["@type"]===h+"TemplateField";if(r&&!["checkbox","attribute-value"].includes(String(a.items._ui&&a.items._ui.inputType)))throw new Error("This standalone field must use an object schema.");const i=r?"field":a["@type"]===h+"Template"?"template":a["@type"]===h+"TemplateElement"?"element":[h+"TemplateField",h+"StaticTemplateField"].includes(String(a["@type"]))?"field":void 0;if(!i||t&&t!==i)throw new Error("The artifact type does not match the requested schema artifact.");const n=this.schemaView(e),p=r?o.multiple:"template"===i?o.template:"element"===i?o.element:a["@type"]===h+"StaticTemplateField"?o.staticField:c.has(String(a._ui?.inputType))?o.iri:o.literal;if(!p(n)){const e=new Set;for(const t of this.explain(n,[...p.errors??[]])){const a=t.params.additionalProperty??t.params.missingProperty,r=a?m.ValidationPolicy.child(t.instancePath,a):t.instancePath,i=r+":"+t.keyword;e.has(i)||(e.add(i),s.push(m.ValidationPolicy.finding("schema."+t.keyword,r,t.message??"Invalid schema artifact.")))}}this.occurrences(e,"",s)}catch(e){s.push(m.ValidationPolicy.finding("schema.invalid","",e instanceof Error?e.message:"Invalid schema artifact."))}return m.ValidationPolicy.summarize(s,"template")}static explain(e,t){if(!l(e))return t;const s="array"===e.type?[["/items",e.items]]:[h+"Template",h+"TemplateElement"].includes(String(e["@type"]))&&l(e.properties)?Object.entries(e.properties).map(([e,t])=>[m.ValidationPolicy.child("/properties",e),t]):[];for(const[e,a]of s){if(!l(a))continue;const s=a["@type"],r=l(a._ui)?a._ui.inputType:void 0,i="array"===a.type?o.multipleChild:s===h+"TemplateElement"?o.element:s===h+"StaticTemplateField"?o.staticField:s!==h+"TemplateField"?void 0:"attribute-value"===r?o.attributeField:c.has(String(r))?o.iri:o.literal;if(!i||i(a))continue;const n=this.explain(a,[...i.errors??[]]);n.length&&(t=t.filter(t=>t.instancePath!==e&&!t.instancePath.startsWith(e+"/"))).push(...n.map(t=>({...t,instancePath:e+t.instancePath})))}return t}static schemaView(e,t=new Set){if(p.ExactDecimal.isExact(e))return Number(String(e));if("number"==typeof e&&!Number.isFinite(e))throw new Error("Nonfinite JSON number.");if(null===e||"object"!=typeof e)return e;if(t.has(e))throw new Error("A schema artifact cannot contain a cycle.");t.add(e);const s=Array.isArray(e)?e.map(e=>this.schemaView(e,t)):Object.fromEntries(Object.entries(e).map(([e,s])=>[e,this.schemaView(s,t)]));return t.delete(e),s}static occurrences(e,t,s){if(l(e))if("array"===e.type){for(const a of["minItems","maxItems"]){const r=e[a];void 0!==r&&("number"!=typeof r||!Number.isInteger(r)||r<0||r>2147483647)&&s.push(m.ValidationPolicy.finding("schema.occurrences",t+"/"+a,"Occurrence limits must be integers between 0 and 2147483647."))}this.occurrences(e.items,t+"/items",s)}else if([h+"Template",h+"TemplateElement"].includes(String(e["@type"]))&&l(e.properties))for(const[a,r]of Object.entries(e.properties))this.occurrences(r,m.ValidationPolicy.child(t+"/properties",a),s)}}t.SchemaArtifactValidator=d},659(e,t,s){t.M=void 0;const a=s(500),r=s(435);t.M={uri:{type:"string",validate(e){if(""===e)return!0;try{return a.IdentifierPolicy.assertFieldIri(e,"uri"),!0}catch{return!1}}},"date-time":{type:"string",validate(e){if(!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,9})?(?:Z|[+-]\d{2}:?\d{2}(?::\d{2})?)$/.test(e))return!1;try{return r.TimestampPolicy.canonical(e),!0}catch{return!1}}}}},830(e,t,s){t.FieldValuePolicy=void 0;const a=s(36),r=s(500),i=s(108),n=s(991),o=s(992),p=s(92);class m{static authorityTypes=new Set(["ext-orcid","ext-ror","ext-pfas","ext-pubmed","ext-rrid","ext-nih-grant-id","ext-doi"]);static staticTypes=new Set(["page-break","section-break","richtext","image","youtube"]);static integerRanges={"xsd:byte":["-128","127"],"xsd:short":["-32768","32767"],"xsd:int":["-2147483648","2147483647"],"xsd:long":["-9223372036854775808","9223372036854775807"]};static isControlled(e){const t=e._valueConstraints??{};return["controlled","controlled-term"].includes(e._ui?.inputType??"")||Object.hasOwn(e.properties??{},"@id")&&["ontologies","branches","classes","valueSets"].some(e=>Object.hasOwn(t,e))}static isIri(e){const t=e._ui?.inputType??"";return"link"===t||this.authorityTypes.has(t)||this.isControlled(e)||Object.hasOwn(e.properties??{},"@id")}static validateConfiguration(e,t=""){const s=e._valueConstraints??{},a=[],r=(e,s)=>a.push(p.ValidationPolicy.finding("templateConstraint",p.ValidationPolicy.child(t+"/_valueConstraints",e),s));for(const e of["minLength","maxLength","decimalPlace"])Object.hasOwn(s,e)&&(!Number.isInteger(s[e])||s[e]<0||s[e]>2147483647)&&r(e,`${e} must be a nonnegative integer.`);null!=s.minLength&&null!=s.maxLength&&s.minLength>s.maxLength&&r("maxLength","Minimum length exceeds maximum length.");const n=new Set;for(const e of["minValue","maxValue"])if(Object.hasOwn(s,e))try{if("number"!=typeof s[e]&&!i.ExactDecimal.isExact(s[e]))throw new Error;i.NumericPolicy.value(s[e]),n.add(e)}catch{r(e,"Numeric bounds must be finite decimal values.")}if(2===n.size&&i.NumericPolicy.compare(s.minValue,s.maxValue)>0&&r("maxValue","Minimum value exceeds maximum value."),"numeric"===e._ui?.inputType){const e=s.numberType,t=Object.hasOwn(this.integerRanges,e);t||["xsd:float","xsd:double","xsd:decimal"].includes(e)||r("numberType","A numeric field requires a recognized datatype.");const a=Number.isInteger(s.decimalPlace)&&s.decimalPlace>=0&&s.decimalPlace<=2147483647;t&&a&&0!==s.decimalPlace&&r("decimalPlace","Integer datatypes cannot declare fractional decimal places.");for(const o of n)(t||["xsd:float","xsd:double","xsd:decimal"].includes(e))&&(this.numeric({numberType:e},s[o],"","template").some(e=>"numberType"===e.code)?r(o,"The bound is outside its numeric datatype."):a&&i.NumericPolicy.fractionalDigits(s[o])>s.decimalPlace&&r(o,"The bound exceeds the declared decimal precision."))}return Object.hasOwn(s,"regex")&&("string"!=typeof s.regex?r("regex","A pattern must be a string."):""!==s.regex&&a.push(...this.regex(s.regex,null,t+"/_valueConstraints/regex"))),a}static validate(e,t,s="",i="instance"){if(null==t||""===t)return[];const n=e._valueConstraints??{},m=e._ui?.inputType,u=[],l=(e,t)=>u.push(p.ValidationPolicy.finding(e,s,t));if("string"!=typeof t&&("template"!==i||"numeric"!==m))return l("valueShape","A populated field value must be a string."),u;const h=String(t);if(null!=n.minLength&&o.TextPolicy.codePointLength(h)<n.minLength&&l("minLength",`Shorter than the minimum ${n.minLength}.`),null!=n.maxLength&&o.TextPolicy.codePointLength(h)>n.maxLength&&l("maxLength",`Longer than the maximum ${n.maxLength}.`),"string"==typeof n.regex&&""!==n.regex&&u.push(...this.regex(n.regex,h,s)),"email"!==m||/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(h)||l("email","Not a valid email address."),"phone-number"!==m||/^[+0-9 \t\-()]+$/.test(h)||l("phoneNumber","Not a valid phone number."),this.isIri(e)&&(r.IdentifierPolicy.isValidAuthoringIri(h,!0)||l("iriMalformed","Not a valid absolute IRI.")),"numeric"===m&&u.push(...this.numeric(n,t,s,i)),"temporal"===m)if("template"===i){try{a.TemporalDefaultPolicy.assertValid(n.temporalType??null,e._ui?.temporalGranularity??null,h)}catch(e){l("temporalType",e instanceof Error?e.message:"Invalid temporal default.")}/(Z|[+-]\d{2}:\d{2})$/.test(h)&&!0!==e._ui?.timezoneEnabled&&l("timezone","Carries a timezone offset but none is enabled.")}else u.push(...this.temporal(e,h,s));return Array.isArray(n.literals)&&n.literals.length&&!n.literals.some(e=>e?.label===h)&&l("choiceMembership","Not one of the declared options."),u}static validateNode(e,t,s=""){const a=[],r=(e,t,r)=>a.push(p.ValidationPolicy.finding(e,null===t?s:p.ValidationPolicy.child(s,t),r)),i=e._valueConstraints??{};if(!t||"object"!=typeof t||Array.isArray(t))return r("valueShape",null,"A field slot must be an object."),a;const n=t,o=!1===e.additionalProperties,m=t=>!o||Object.hasOwn(e.properties??{},t);if(this.staticTypes.has(e._ui?.inputType??"")){for(const e of Object.keys(n).filter(e=>!m(e)))r("valueShape",e,"The template does not declare this property.");return a}for(const e of["rdfs:label","skos:prefLabel","skos:notation","@language"])Object.hasOwn(n,e)&&null!==n[e]&&"string"!=typeof n[e]&&r("valueShape",e,`${e} must be a string or null.`);for(const e of Object.keys(n))"@id"===e||"@value"===e||m(e)||r("valueShape",e,"The template does not declare this property.");if(Object.hasOwn(n,"@id")&&("string"!=typeof n["@id"]||""===n["@id"]))return r("iriMalformed","@id","A populated IRI must be a nonempty string."),a;const u=(e.required??[]).filter(e=>!Object.hasOwn(n,e));for(const e of u)r("missingProperty",e,`The field slot must contain ${e}.`);if(u.length)return a;if(0===Object.keys(n).length)return this.isIri(e)?(!0===i.requiredValue&&r("required",null,"A value is required."),a):(r("missingProperty","@value","A literal field slot must contain @value."),a);if(this.isIri(e)){if(!Object.hasOwn(n,"@value")||null===n["@value"]&&m("@value")||r("valueShape","@value","An IRI field cannot contain a literal value."),!Object.hasOwn(n,"@id")){!0===i.requiredValue&&r("required",null,"A value is required.");const t=n["rdfs:label"];return this.isControlled(e)&&"string"==typeof t&&""!==t&&r("controlledStructure",null,"A controlled-term label requires an IRI."),a}return a.push(...this.validate(e,n["@id"],s+"/@id")),a}if(Object.hasOwn(n,"@id"))return r("valueShape","@id","A literal field cannot contain an IRI value."),a;if(!Object.hasOwn(n,"@value"))return r("valueShape","@value","A literal field requires @value."),a;const l=n["@value"];if(null===l||""===l)return!0===i.requiredValue&&r("required","@value","A value is required."),a;const h="numeric"===e._ui?.inputType?i.numberType:"temporal"===e._ui?.inputType?i.temporalType:null,c=e=>"string"==typeof e?e.replace("http://www.w3.org/2001/XMLSchema#","xsd:"):e;return null!=h&&c(n["@type"])!==c(h)&&r("valueType","@type",`The value must declare ${h}.`),a.push(...this.validate(e,l,s+"/@value")),a}static validateDefault(e,t=""){const s=(e._valueConstraints??{}).defaultValue;if(null==s)return[];const a=t+"/_valueConstraints/defaultValue";return this.isControlled(e)?s&&"object"==typeof s&&"string"==typeof s.termUri&&""!==s.termUri&&"string"==typeof s["rdfs:label"]&&""!==s["rdfs:label"]?this.validate(e,s.termUri,a+"/termUri","template"):[p.ValidationPolicy.finding("controlledStructure",a,"A controlled default requires termUri and rdfs:label.")]:this.validate(e,s,a,"template")}static assertConsistent(e){const t={...e,_valueConstraints:Object.fromEntries(Object.entries(e._valueConstraints??{}).filter(([,e])=>null!=e))},s=[...this.validateConfiguration(t),...this.validateDefault(t)].find(e=>p.ValidationPolicy.blocksSave(e.code,"template"));if(s)throw new Error(`${s.message} (${s.path})`)}static regex(e,t,s){const a=n.RegexChecks.inspect(e,t);return"valid"===a||"match"===a||"invalid"===a&&null!==t?[]:"mismatch"===a?[p.ValidationPolicy.finding("regex",s,"Does not match the field pattern.")]:"invalid"===a?[p.ValidationPolicy.finding("templateConstraint",s,"The field pattern is invalid.")]:[p.ValidationPolicy.finding("pending"===a?"regexPending":"regexEvaluation",s,"pending"===a?"Pattern validation is pending.":`Pattern validation could not finish (${a}).`,"pending"===a?"notChecked":"unavailable")]}static numeric(e,t,s,a){const r=[],n=(e,t)=>r.push(p.ValidationPolicy.finding(e,s,t)),o=e.numberType??"xsd:decimal",m=this.integerRanges[o],u=String(t);if("instance"===a&&(m?!/^[+-]?(?:0|[1-9][0-9]*)$/.test(u):!/^[+-]?(?:(?:0|[1-9][0-9]*)(?:\.[0-9]*)?|\.[0-9]+)$/.test(u)))return n("numberType",`Not a valid ${o}.`),r;try{if(!m&&!["xsd:float","xsd:double","xsd:decimal"].includes(o))throw new Error("Unknown numeric datatype.");if(i.NumericPolicy.value(t),m&&(!i.NumericPolicy.isInteger(t)||i.NumericPolicy.compare(t,m[0])<0||i.NumericPolicy.compare(t,m[1])>0))return n("numberType",`Outside the range of ${o}.`),r;if("template"===a&&("xsd:float"===o||"xsd:double"===o)){const e=u.replace(/^-/,""),t="xsd:float"===o?"3.4028234663852886e38":"1.7976931348623157e308",s="xsd:float"===o?"1.401298464324817e-45":"4.9e-324";if(i.NumericPolicy.compare(e,t)>0||0!==i.NumericPolicy.compare(e,0)&&i.NumericPolicy.compare(e,s)<0)return n("numberType",`Outside the range of ${o}.`),r}const s="instance"===a?u.split(".")[1]?.length??0:i.NumericPolicy.fractionalDigits(t);null!=e.decimalPlace&&s>e.decimalPlace&&n("decimalPlace",`More than ${e.decimalPlace} decimal places.`),("number"==typeof e.minValue||i.ExactDecimal.isExact(e.minValue))&&i.NumericPolicy.compare(t,e.minValue)<0&&n("minValue",`Below the minimum ${e.minValue}.`),("number"==typeof e.maxValue||i.ExactDecimal.isExact(e.maxValue))&&i.NumericPolicy.compare(t,e.maxValue)>0&&n("maxValue",`Above the maximum ${e.maxValue}.`)}catch{n("numberType","Not a finite decimal value.")}return r}static temporal(e,t,s){const a=[],r=(e,t)=>a.push(p.ValidationPolicy.finding(e,s,t)),i=e._valueConstraints?.temporalType,n=e._ui?.temporalGranularity,o=t.match(/(Z|[+-]\d{2}:\d{2})$/)?.[0],m=o?t.slice(0,-o.length):t;if(o){if("Z"!==o){const e=Number(o.slice(1,3)),t=Number(o.slice(4));(e>14||t>59||14===e&&0!==t)&&r("timezoneOffset","Not a valid xsd timezone offset.")}!0!==e._ui?.timezoneEnabled&&r("timezone","Carries a timezone offset but none is enabled.")}const u=/^(\d{4})-(\d{2})-(\d{2})$/,l=/^(\d{2}):(\d{2})(?::(\d{2}))?(\.\d+)?$/,h=m.split("T"),c="xsd:time"===i?null:h[0],d="xsd:time"===i?m:2===h.length?h[1]:null;if(!("xsd:date"===i?1===h.length&&u.test(m):"xsd:time"===i?l.test(m):"xsd:dateTime"===i&&2===h.length&&u.test(h[0])&&l.test(h[1])))return r("temporalType",`Not a valid ${i}.`),a;const y=c?.match(u),f=d?.match(l);if(y){const e=Number(y[1]),t=Number(y[2]),s=Number(y[3]);(t<1||t>12||s<1||s>[31,e%4!=0||e%100==0&&e%400!=0?28:29,31,30,31,30,31,31,30,31,30,31][t-1])&&r("temporalCalendar","Not a real calendar date.")}if(f&&(Number(f[1])>23||Number(f[2])>59||Number(f[3]??0)>59)&&r("temporalCalendar","Not a real time of day."),n){let e=y&&("year"===n&&("01"!==y[2]||"01"!==y[3])||"month"===n&&"01"!==y[3]);if(f){const t="00"===f[1]&&"00"===f[2]&&(null==f[3]||"00"===f[3])&&null==f[4];e||=["year","month","day"].includes(n)&&!("xsd:dateTime"===i&&t),e||=("second"===n||"decimalSecond"===n)&&null==f[3],e||="decimalSecond"===n&&null==f[4],e||="hour"===n&&("00"!==f[2]||null!=f[3]&&"00"!==f[3]||null!=f[4]),e||="minute"===n&&(null!=f[3]&&"00"!==f[3]||null!=f[4]),e||="second"===n&&null!=f[4]}e&&r("temporalGranularity",`Does not match ${n} granularity.`)}return a}}t.FieldValuePolicy=m},500(e,t){t.IdentifierPolicy=void 0,t.IdentifierPolicy=class{static assertIdentifierCharacters(e,t){if(null!==e){if(Array.from(e).some(e=>e.charCodeAt(0)<=32||e.charCodeAt(0)>=127&&e.charCodeAt(0)<=159||/\p{Z}/u.test(e)))throw new Error(`Invalid URI at "${t}": unescaped space or control character.`);if(e.indexOf("#")!==e.lastIndexOf("#"))throw new Error(`Invalid URI at "${t}": more than one fragment delimiter.`);if(e.split(/[/?#]/,1)[0].includes(":")&&!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(e))throw new Error(`Invalid URI at "${t}": malformed scheme.`)}}static assertFieldIri(e,t){if(null===e)return;if(""===e)throw new Error(`An empty string is not a URI at "${t}"; write null or leave the key out where there is no value.`);if("string"!=typeof e)throw new Error(`Invalid URI/IRI at "${t}": expected string.`);let s=!1,a=!1;for(const r of e){const e=r.codePointAt(0);if("#"===r?(a=!0,s=!1):"?"!==r||a||(s=!0),e<128){if(e<=32||127===e||'<>"{}|\\^`'.includes(r))throw new Error(`Invalid URI/IRI at "${t}": unescaped space, control or forbidden character.`)}else if(!(e>=160&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65519||e>=65536&&e<=917501&&(65535&e)<=65533||e>=921600&&e<=983037||s&&(e>=57344&&e<=63743||e>=983040&&e<=1048573||e>=1048576&&e<=1114109)))throw new Error(`Invalid URI/IRI at "${t}": forbidden Unicode character.`)}if(/%(?![0-9a-fA-F]{2})/.test(e))throw new Error(`Invalid URI/IRI at "${t}": malformed percent escape.`);const r=/^[A-Za-z][A-Za-z0-9+.-]*:/.exec(e)?.[0]??"",i=e.slice(r.length).split("#",1)[0];if(r&&!i||"//"===i)throw new Error(`Invalid URI/IRI at "${t}": missing scheme-specific part or authority.`);const n=Array.from(e,e=>e.codePointAt(0)>=128?encodeURIComponent(e):e).join("");this.assertIdentifierCharacters(n,t)}static assertIri(e,t){if(null!==e&&""!==e){if("string"!=typeof e)throw new Error(`Invalid URI at "${t}": expected a string.`);this.assertFieldIri(e,t),this.assertIdentifierCharacters(e,t)}}static assertIdentifier(e,t){if(null!==e){if("string"!=typeof e)throw new Error(`Invalid URI at "${t}": expected a string.`);if(""===e)throw new Error(`An empty string is not a URI at "${t}"; write null or leave the key out where there is no value.`);if(this.assertIri(e,t),!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(e))throw new Error(`Invalid URI at "${t}": an identifier must be an absolute IRI.`)}}static matchesUriFormat(e){if("string"!=typeof e)return!1;if(""===e)return!0;try{return this.assertFieldIri(e,"value"),!0}catch{return!1}}static isValid(e){if("string"!=typeof e)return!1;try{return this.assertIdentifier(e,"value"),!0}catch{return!1}}static isValidFieldValue(e){if("string"!=typeof e)return!1;try{return this.assertFieldIri(e,"value"),!0}catch{return!1}}static isValidAuthoringIri(e,t=!1){if(!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(e))return!1;if(!(t?this.isValidFieldValue(e):this.isValid(e)))return!1;if(!/^https?:/i.test(e))return!0;if(!/^https?:\/\//i.test(e))return!1;try{return new URL(e).hostname.length>0}catch{return!1}}}},108(e,t){t.NumericPolicy=t.ExactDecimal=void 0;class s{text;cedarExactDecimal=!0;static isExact(e){return null!==e&&"object"==typeof e&&!0===e.cedarExactDecimal&&"function"==typeof e.toJSON}constructor(e){this.text=e,Object.freeze(this)}static forValue(e){return new s(a.canonical(e))}toString(){return this.text}valueOf(){throw new Error("Use NumericPolicy.compare for exact decimals; implicit numeric coercion would lose precision.")}toJSON(){const e=JSON.rawJSON;if(!e)throw new Error("Use JsonSourcePolicy.stringify to serialize exact decimal numbers.");return e(this.text)}}t.ExactDecimal=s;class a{static parts(e){const t="string"==typeof e?e:String(e),s=/^([+-]?)(?:(\d+)(?:\.(\d*))?|\.(\d+))(?:[eE]([+-]?\d+))?$/.exec(t);if(!s)throw new Error("Expected a finite decimal number without surrounding whitespace.");const a=s[3]??s[4]??"",r=BigInt(s[5]??"0");let i=r-BigInt(a.length);if(r<-2147483647n||r>2147483647n||i<-2147483647n||i>2147483648n)throw new Error("Decimal exponent or scale is outside the shared numeric range.");let n=((s[2]??"")+a).replace(/^0+/,"");if(!n)return{sign:0,digits:"0",exponent:0n};const o=/0+$/.exec(n)?.[0].length??0;return o&&(n=n.slice(0,-o),i+=BigInt(o)),{sign:"-"===s[1]?-1:1,digits:n,exponent:i}}static canonical(e){const{sign:t,digits:s,exponent:a}=this.parts(e);if(!t)return"0";const r=t<0?"-":"",i=a+BigInt(s.length-1);if(a>=0n&&i<1000n)return r+s+"0".repeat(Number(a));if(a<0n&&i>=-1000n){const e=s.length+Number(a);return r+(e>0?s.slice(0,e)+"."+s.slice(e):"0."+"0".repeat(-e)+s)}if(i>2147483647n){const e=a-2147483647n;return r+s+(e>0n?"0".repeat(Number(e)):"")+"E+"+(e>0n?2147483647n:a)}return r+s[0]+(s.length>1?"."+s.slice(1):"")+"E"+(i>=0n?"+":"")+i}static compare(e,t){const s=this.parts(e),a=this.parts(t);if(s.sign!==a.sign)return s.sign<a.sign?-1:1;if(!s.sign)return 0;const r=BigInt(s.digits.length)+s.exponent,i=BigInt(a.digits.length)+a.exponent;let n;if(r!==i)n=r<i?-1:1;else{const e=Math.max(s.digits.length,a.digits.length),t=s.digits.padEnd(e,"0"),r=a.digits.padEnd(e,"0");n=t===r?0:t<r?-1:1}return 0===n?0:n*s.sign}static isInteger(e){return this.parts(e).exponent>=0n}static fractionalDigits(e){return Math.max(0,-Number(this.parts(e).exponent))}static value(e){if(s.isExact(e))return e;if(this.parts(e),"number"==typeof e)return e;const t=Number(e);return!Number.isFinite(t)||Number.isInteger(t)&&!Number.isSafeInteger(t)||0!==this.compare(e,t)?s.forValue(e):t}}t.NumericPolicy=a},991(e,t,s){t.RegexChecks=void 0;const a=s(128);class r{changed;policy;entries=new Map;used=null;size=0;disposed=!1;capacityLimited=!1;static active=null;constructor(e=()=>{},t=new a.RegexPolicy){this.changed=e,this.policy=t}run(e){if(this.used)return e();const t=r.active;r.active=this,this.used=new Set,this.capacityLimited=!1;try{return e()}finally{const e=this.used;this.used=null,r.active=t;let s=!1;for(const[t,a]of this.entries)e.has(t)||(s=!0,this.entries.delete(t),this.size-=t.length,a.controller.abort());s&&this.capacityLimited&&queueMicrotask(()=>{this.disposed||this.changed()})}}static inspect(e,t=null){return this.active?.check(e,t)??"pending"}check(e,t){if(this.disposed)return"cancelled";if(e.length>1e4||(t?.length??0)>1e6)return"limit";const s=JSON.stringify([e,t]);this.used.add(s);const a=this.entries.get(s);if(a)return a.result;if(this.entries.size>=1024||this.size+s.length>4e6)return this.capacityLimited=!0,"limit";const r=new AbortController,i={result:"pending",controller:r,done:Promise.resolve()};return this.entries.set(s,i),this.size+=s.length,i.done=this.policy.evaluate(e,t,r.signal).then(e=>{this.disposed||this.entries.get(s)!==i||(i.result=e,this.pending||this.changed())}),"pending"}get pending(){return[...this.entries.values()].some(e=>"pending"===e.result)}async settled(){await Promise.all([...this.entries.values()].map(e=>e.done))}static async validate(e,t){const s=new r(void 0,t);try{let t=s.run(e);for(;s.pending;)await s.settled(),t=s.run(e);return t}finally{s.dispose()}}dispose(){this.disposed=!0;for(const e of this.entries.values())e.controller.abort();this.entries.clear(),this.size=0,this.policy.dispose()}}t.RegexChecks=r},128(e,t){t.RegexPolicy=t.L=void 0,t.L="\n onmessage = ({data}) => {\n let result;\n try {\n const expression = new RegExp('^(?:' + data.pattern + ')$');\n result = data.value === null ? 'valid' : expression.test(data.value) ? 'match' : 'mismatch';\n } catch (_) { result = 'invalid'; }\n postMessage({id: data.id, result});\n };\n postMessage({ready: true});\n",t.RegexPolicy=class{worker=null;ready=!1;releaseSource=null;current=null;queue=[];serial=0;timer;idleTimer;closed=!1;options;constructor(e={}){this.options={workerFactory:e.workerFactory??(()=>{const e=globalThis,s=e.URL.createObjectURL(new e.Blob([t.L],{type:"text/javascript"}));return this.releaseSource=()=>e.URL.revokeObjectURL(s),new e.Worker(s)}),workTimeoutMs:e.workTimeoutMs??250,startupTimeoutMs:e.startupTimeoutMs??5e3,queueLimit:e.queueLimit??1024};for(const e of[this.options.workTimeoutMs,this.options.startupTimeoutMs,this.options.queueLimit])if(!Number.isSafeInteger(e)||e<1)throw new RangeError("Regex limits must be positive integers")}evaluate(e,t=null,s){return this.closed||s?.aborted?Promise.resolve("cancelled"):e.length>1e4||(t?.length??0)>1e6||this.queue.length>=this.options.queueLimit?Promise.resolve("limit"):new Promise(a=>{const r={id:++this.serial,pattern:e,value:t,finish:e=>{s?.removeEventListener("abort",i),a(e)}},i=()=>{this.current===r?this.fail("cancelled"):(this.queue=this.queue.filter(e=>e!==r),r.finish("cancelled"))};s?.addEventListener("abort",i,{once:!0}),this.queue.push(r),this.next()})}stopWorker(){clearTimeout(this.timer),clearTimeout(this.idleTimer),this.worker&&(this.worker.onmessage=null,this.worker.onerror=null,this.worker.terminate()),this.worker=null,this.ready=!1,this.releaseSource?.(),this.releaseSource=null}fail(e){this.stopWorker();const t=this.current;this.current=null,t?.finish(e),queueMicrotask(()=>this.next())}next(){if(!this.closed&&!this.current&&0!==this.queue.length)if(clearTimeout(this.idleTimer),this.current=this.queue.shift(),this.worker&&this.ready)this.send();else try{const e=this.options.workerFactory();this.worker=e,this.timer=setTimeout(()=>this.fail("unavailable"),this.options.startupTimeoutMs),e.onerror=()=>{this.worker===e&&this.fail("unavailable")},e.onmessage=({data:t})=>{if(this.worker!==e||!t||"object"!=typeof t)return;const s=t;if(s.ready&&!this.ready)clearTimeout(this.timer),this.ready=!0,this.send();else if(s.id===this.current?.id&&["valid","match","mismatch","invalid"].includes(s.result??"")){clearTimeout(this.timer);const e=this.current;this.current=null,e.finish(s.result),this.idleTimer=setTimeout(()=>this.stopWorker(),1e3),this.next()}}}catch{this.fail("unavailable")}}send(){if(this.current&&this.worker){this.timer=setTimeout(()=>this.fail("timeout"),this.options.workTimeoutMs);try{this.worker.postMessage({id:this.current.id,pattern:this.current.pattern,value:this.current.value})}catch{this.fail("unavailable")}}}dispose(){this.closed=!0,this.stopWorker(),this.current?.finish("cancelled"),this.current=null,this.queue.splice(0).forEach(e=>e.finish("cancelled"))}}},403(e,t,s){t.SchemaValuePolicy=void 0;const a=s(830),r=s(92);t.SchemaValuePolicy=class{static visit(e,t,s){if(!e||"object"!=typeof e||Array.isArray(e))return void s.push(r.ValidationPolicy.finding("valueShape",t,"A definition must be an object."));const i=e;if("array"===i.type)return null!=i.minItems&&null!=i.maxItems&&i.minItems>i.maxItems&&s.push(r.ValidationPolicy.finding("templateConstraint",t+"/maxItems","Minimum occurrence count exceeds maximum.")),void this.visit(i.items,t+"/items",s);if(i._ui?.inputType){s.push(...a.FieldValuePolicy.validateConfiguration(i,t),...a.FieldValuePolicy.validateDefault(i,t));const e=i._valueConstraints?.defaultValue;if(null!=e&&""!==e&&(a.FieldValuePolicy.isControlled(i)||a.FieldValuePolicy.authorityTypes.has(i._ui.inputType))){const n=t+"/_valueConstraints/defaultValue"+(a.FieldValuePolicy.isControlled(i)&&"object"==typeof e?"/termUri":"");s.push(r.ValidationPolicy.finding("semanticNotChecked",n,"Default identifier membership or existence has not been verified.","notChecked"))}return}for(const[e,a]of Object.entries(i.properties??{})){const i="array"===a?.type?a.items:a;i&&"object"==typeof i&&i._ui&&this.visit(a,r.ValidationPolicy.child(t+"/properties",e),s)}}}},36(e,t){t.TemporalDefaultPolicy=void 0,t.TemporalDefaultPolicy=class{static zone="(?:Z|[+-](?:(?:0\\d|1[0-3]):[0-5]\\d|14:00))?";static hour="(?:[01]\\d|2[0-3])";static minute="[0-5]\\d";static second="[0-5]\\d";static assertValid(e,t,s){if(null===s||""===s)return;const a=e;if(null===a)throw new Error("Temporal default requires a temporal datatype.");if(!this.isCompatibleGranularity(e,t))throw new Error(`Temporal datatype ${a} is not compatible with ${t} granularity.`);const r=this.datePattern(t,"xsd:date"===a),i=this.timePattern(t);let n;if(n="xsd:date"===a?r:"xsd:time"===a?i:this.dateTimePattern(t),!n.test(s)||!this.hasValidCalendarDate(s))throw new Error(`Temporal default "${s}" is not valid for ${a}`+(null===t?".":` at ${t} granularity.`))}static isCompatibleGranularity(e,t){return null===t||("xsd:date"===e?["year","month","day"].includes(t):"xsd:time"===e?["hour","minute","second","decimalSecond"].includes(t):["day","hour","minute","second","decimalSecond"].includes(t))}static datePattern(e,t){return"year"===e?/^\d{4}$/:"month"===e?/^\d{4}-(?:0[1-9]|1[0-2])$/:"day"!==e&&t?/^\d{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12]\d|3[01]))?)?$/:/^\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\d|3[01])$/}static timePattern(e){const t=this.zone,s=this.hour,a=this.minute,r=this.second;return"hour"===e?new RegExp(`^${s}${t}$`):"minute"===e?new RegExp(`^${s}:${a}${t}$`):"second"===e?new RegExp(`^${s}:${a}:${r}${t}$`):"decimalSecond"===e?new RegExp(`^${s}:${a}:${r}\\.\\d+${t}$`):new RegExp(`^${s}(?::${a}(?::${r}(?:\\.\\d+)?)?)?${t}$`)}static dateTimePattern(e){const t="\\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\\d|3[01])";return"hour"===e||"minute"===e||"second"===e||"decimalSecond"===e?new RegExp(`^${t}T${this.timePatternSource(e)}$`):"year"===e||"month"===e?/a^/:"day"===e?new RegExp(`^${t}$`):new RegExp(`^${t}(?:T${this.timePatternSource(null)})?$`)}static timePatternSource(e){return this.timePattern(e).source.replace(/^\^|\$$/g,"")}static hasValidCalendarDate(e){const t=/^(\d{4})-(\d{2})-(\d{2})/.exec(e);if(null===t)return!0;const s=Number(t[1]),a=Number(t[2]);return Number(t[3])<=[31,s%4!=0||s%100==0&&s%400!=0?28:29,31,30,31,30,31,31,30,31,30,31][a-1]}}},992(e,t){t.TextPolicy=void 0,t.TextPolicy=class{constructor(){}static isBlank(e){for(const t of e)if(!this.isBlankCodePoint(t.codePointAt(0)))return!1;return!0}static isBlankCodePoint(e){return e>=9&&e<=13||e>=28&&e<=32||5760===e||e>=8192&&e<=8198||e>=8200&&e<=8202||8232===e||8233===e||8287===e||12288===e}static codePointLength(e){return Array.from(e).length}static equalsIgnoreCase(e,t){const s=Array.from(e),a=Array.from(t);return e.length===t.length&&s.length===a.length&&s.every((e,t)=>{const s=a[t],r=e.toUpperCase(),i=s.toUpperCase();return e===s||r===i||r.toLowerCase()===i.toLowerCase()})}static trimInputPadding(e){return e.replace(/^[\t\n\r ]+|[\t\n\r ]+$/g,"")}}},435(e,t){t.TimestampPolicy=void 0,t.TimestampPolicy=class{static canonical(e){const t=e.replace(/([+-][0-9]{2})([0-9]{2})$/,"$1:$2"),s=/^(\d{4}|-\d{4,9}|\+\d{5,9})-(\d{2})-(\d{2})[Tt](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,9}))?)?([Zz]|[+-]\d{2}(?::\d{2}(?::\d{2})?)?)$/.exec(t);if(!s)throw new Error("Expected an ISO timestamp with an explicit offset.");const[,a,r,i,n,o,p="00",m="",u]=s,l=Number(a),h=Number(r),c=Number(i),d=[31,l%4!=0||l%100==0&&l%400!=0?28:29,31,30,31,30,31,31,30,31,30,31];if(0===l&&a.startsWith("-")||h<1||h>12||c<1||c>d[h-1]||Number(n)>23||Number(o)>59||Number(p)>59)throw new Error("Invalid timestamp calendar or clock value.");let y="Z";if("Z"!==u.toUpperCase()){const[e,t=0,s=0]=u.slice(1).split(":").map(Number);if(e>18||t>59||s>59||18===e&&(0!==t||0!==s))throw new Error("Timestamp offset is outside the ISO offset range.");(e||t||s)&&(y=`${u[0]}${String(e).padStart(2,"0")}:${String(t).padStart(2,"0")}`,s&&(y+=`:${String(s).padStart(2,"0")}`))}const f=(l<0?"-":l>9999?"+":"")+String(Math.abs(l)).padStart(4,"0"),P=m.replace(/0+$/,"");return`${f}-${r}-${i}T${n}:${o}:${p}${P?"."+P:""}${y}`}static matchesFormat(e){const t=/^(\d{4}|\+\d{5,9})-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])T(?:[01]\d|2[0-3]|24(?=:00:00(?:\.0{1,9})?[Z+-])):[0-5]\d:[0-5]\d(?:\.\d{1,9})?(?:Z|[+-](\d{2})(?::([0-5]\d)(?::([0-5]\d))?|([0-5]\d)))$/.exec(e);if(null===t||Number(t[1])<1)return!1;const[,,,,s="0",a,r="0",i]=t;return 3600*Number(s)+60*Number(a??i??0)+Number(r)<=64800}}},92(e,t){t.ValidationPolicy=void 0;class s{static constraints=new Set(["minLength","maxLength","regex","pattern","email","link","phoneNumber","minValue","maxValue","decimalPlace","temporalGranularity","timezone","choiceMembership","maxItems","controlledTermMembership","authorityIdentifier","authorityMembership"]);static completeness=new Set(["required","minItems"]);static verification=new Set(["regexPending","regexEvaluation","regexUnavailable","semanticNotChecked","semanticUnavailable","controlledTermVerified","authorityVerified"]);static acceptsSemanticResult(e,t,s){switch(t){case"passed":return s===(e?"controlledTermVerified":"authorityVerified");case"failed":return e?"controlledTermMembership"===s:"authorityIdentifier"===s||"authorityMembership"===s;case"notChecked":return"semanticNotChecked"===s;case"unavailable":return"semanticUnavailable"===s;default:return!1}}static category(e){return this.constraints.has(e)?"constraint":this.completeness.has(e)?"completeness":this.verification.has(e)?"verification":"structural"}static blocksSave(e,t="instance"){if("string"!=typeof e&&"passed"===e.verificationStatus)return!1;const s="string"==typeof e?this.category(e):e.category;return"structural"===s||"template"===t&&("verification"!==s||"string"!=typeof e&&"failed"===e.verificationStatus)}static severity(e,t="instance"){return this.blocksSave(e,t)?"error":"warning"}static finding(e,t,s,a){const r={code:e,category:this.category(e),path:t,message:s};return void 0!==a&&(r.verificationStatus=a),r}static summarize(e,t="instance"){const s=e.filter(e=>"passed"!==e.verificationStatus);return{findings:[...e],structurallyValid:!s.some(e=>"structural"===e.category),canSave:!s.some(e=>this.blocksSave(e,t)),isValid:0===s.length}}static pointer(e){return e.map(e=>"/"+String(e).replace(/~/g,"~0").replace(/\//g,"~1")).join("")}static child(e,t){return e+this.pointer([t])}}t.ValidationPolicy=s},125(e,t,s){t.template=function e(t,{instancePath:s="",parentData:o,parentDataProperty:p,rootData:m=t}={}){let u=null,h=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.$schema){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===u?u=[e]:u.push(e),h++}if(void 0===t.type){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===u?u=[e]:u.push(e),h++}if(void 0===t.title){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===u?u=[e]:u.push(e),h++}if(void 0===t.description){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===u?u=[e]:u.push(e),h++}if(void 0===t._ui){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===u?u=[e]:u.push(e),h++}if(void 0===t["@context"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===u?u=[e]:u.push(e),h++}if(void 0===t["@id"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===u?u=[e]:u.push(e),h++}if(void 0===t["@type"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===u?u=[e]:u.push(e),h++}if(void 0===t.properties){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===u?u=[e]:u.push(e),h++}if(void 0===t.required){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"required"},message:"must have required property 'required'"};null===u?u=[e]:u.push(e),h++}if(void 0===t["pav:createdOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===u?u=[e]:u.push(e),h++}if(void 0===t["pav:createdBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===u?u=[e]:u.push(e),h++}if(void 0===t["pav:lastUpdatedOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===u?u=[e]:u.push(e),h++}if(void 0===t["oslc:modifiedBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===u?u=[e]:u.push(e),h++}if(void 0===t["schema:schemaVersion"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===u?u=[e]:u.push(e),h++}if(void 0===t["schema:name"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===u?u=[e]:u.push(e),h++}if(void 0===t["schema:description"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===u?u=[e]:u.push(e),h++}if(void 0!==t.$schema){let e=t.$schema;if("http://json-schema.org/draft-04/schema#"!==e){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:a.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),h++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),h++}}else{const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}if("object"!==e&&"array"!==e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:a.properties.type.enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["schema:identifier"]){let e=t["schema:identifier"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),h++}}else{const e={instancePath:s+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["schema:name"]){let e=t["schema:name"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),h++}}else{const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["schema:description"]&&"string"!=typeof t["schema:description"]){const e={instancePath:s+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}if(void 0!==t.title){let e=t.title;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),h++}}else{const e={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t.description){let e=t.description;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),h++}}else{const e={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t._ui&&(l(t._ui,{instancePath:s+"/_ui",parentData:t,parentDataProperty:"_ui",rootData:m})||(u=null===u?l.errors:u.concat(l.errors),h=u.length)),void 0!==t["@context"]&&(D(t["@context"],{instancePath:s+"/@context",parentData:t,parentDataProperty:"@context",rootData:m})||(u=null===u?D.errors:u.concat(D.errors),h=u.length)),void 0!==t["@id"]){let e=t["@id"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:a.properties["@id"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),h++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["@type"]){let e=t["@type"];if("https://schema.metadatacenter.org/core/Template"!==e){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:a.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),h++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),h++}}else{const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t.properties&&(hs(t.properties,{instancePath:s+"/properties",parentData:t,parentDataProperty:"properties",rootData:m})||(u=null===u?hs.errors:u.concat(hs.errors),h=u.length)),void 0!==t.required&&(ds(t.required,{instancePath:s+"/required",parentData:t,parentDataProperty:"required",rootData:m})||(u=null===u?ds.errors:u.concat(ds.errors),h=u.length)),void 0!==t["pav:createdOn"]){let e=t["pav:createdOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:a.properties["pav:createdOn"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),h++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["pav:createdBy"]){let e=t["pav:createdBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:a.properties["pav:createdBy"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),h++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["pav:lastUpdatedOn"]){let e=t["pav:lastUpdatedOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:a.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),h++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["oslc:modifiedBy"]){let e=t["oslc:modifiedBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:a.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),h++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["schema:schemaVersion"]){let e=t["schema:schemaVersion"];if("string"!=typeof e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}if("1.6.0"!==e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:a.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["bibo:status"]){let e=t["bibo:status"];if("string"!=typeof e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}if("bibo:published"!==e&&"bibo:draft"!==e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:a.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["pav:version"]){let e=t["pav:version"];if("string"==typeof e){if(!$t.test(e)){const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/pattern",keyword:"pattern",params:{pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},message:'must match pattern "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"'};null===u?u=[e]:u.push(e),h++}}else{const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["pav:previousVersion"]){let e=t["pav:previousVersion"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),h++}}else{const e={instancePath:s+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["pav:derivedFrom"]){let e=t["pav:derivedFrom"];if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),h++}}else{const e={instancePath:s+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t._annotations&&(fs(t._annotations,{instancePath:s+"/_annotations",parentData:t,parentDataProperty:"_annotations",rootData:m})||(u=null===u?fs.errors:u.concat(fs.errors),h=u.length)),void 0!==t.additionalProperties){let e=t.additionalProperties;const a=h;let r=!1,i=null;const n=h;me(e,{instancePath:s+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:m})||(u=null===u?me.errors:u.concat(me.errors),h=u.length),n===h&&(r=!0,i=0);const o=h;var c;if(is(e,{instancePath:s+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:m})||(u=null===u?is.errors:u.concat(is.errors),h=u.length),(c=o===h)&&r?(r=!1,i=[i,1]):c&&(r=!0,i=1),r)h=a,null!==u&&(a?u.length=a:u=null);else{const e={instancePath:s+"/additionalProperties",schemaPath:"#/properties/additionalProperties/oneOf",keyword:"oneOf",params:{passingSchemas:i},message:"must match exactly one schema in oneOf"};null===u?u=[e]:u.push(e),h++}}void 0!==t["@nest"]&&(Bt(t["@nest"],{instancePath:s+"/@nest",parentData:t,parentDataProperty:"@nest",rootData:m})||(u=null===u?Bt.errors:u.concat(Bt.errors),h=u.length))}else{const e={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===u?u=[e]:u.push(e),h++}return e.errors=u,0===h};const a={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{$schema:{type:"string",format:"uri",enum:["http://json-schema.org/draft-04/schema#"]},type:{type:"string",enum:["object","array"]},"schema:identifier":{type:"string",minLength:1},"schema:name":{type:"string",minLength:1},"schema:description":{type:"string"},title:{type:"string",minLength:1},description:{type:"string",minLength:1},_ui:{$ref:"#/definitions/templateUIFieldContent"},"@context":{$ref:"#/definitions/templateJSONLDContextFieldContent"},"@id":{type:["string","null"],format:"uri"},"@type":{type:"string",format:"uri",enum:["https://schema.metadatacenter.org/core/Template"]},properties:{$ref:"#/definitions/templatePropertiesFieldContent"},required:{$ref:"#/definitions/templateRequiredFieldContent"},"pav:createdOn":{type:["string","null"],format:"date-time"},"pav:createdBy":{type:["string","null"],format:"uri"},"pav:lastUpdatedOn":{type:["string","null"],format:"date-time"},"oslc:modifiedBy":{type:["string","null"],format:"uri"},"schema:schemaVersion":{type:"string",enum:["1.6.0"]},"bibo:status":{type:"string",enum:["bibo:published","bibo:draft"]},"pav:version":{type:"string",pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},"pav:previousVersion":{type:"string",minLength:1},"pav:derivedFrom":{type:"string",format:"uri"},_annotations:{$ref:"#/definitions/annotationsContent"},additionalProperties:{oneOf:[{$ref:"#/definitions/falseOnlyAdditionalProperties"},{$ref:"#/definitions/defaultObjectSchemaAdditionalProperties"}]},"@nest":{$ref:"#/definitions/nestFieldContent"}},required:["$schema","type","title","description","_ui","@context","@id","@type","properties","required","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy","schema:schemaVersion","schema:name","schema:description"]},r=s(659).M.uri,i=s(659).M["date-time"],n=s(853).A;function o(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,p=0;if(Array.isArray(e)){const s=e.length;for(let a=0;a<s;a++){let s=e[a];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/"+a,schemaPath:"#/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===i?i=[e]:i.push(e),p++}}else{const e={instancePath:t+"/"+a,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),p++}}let a,r=e.length;if(r>1){const s={};for(;r--;){let n=e[r];if("string"==typeof n){if("number"==typeof s[n]){a=s[n];const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:r,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+r+" are identical)"};null===i?i=[e]:i.push(e),p++;break}s[n]=r}}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),p++}return o.errors=i,0===p}const p=new RegExp("^[^.]+$","u");function m(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const s in e)if(!p.test(s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),o++}for(const s in e)if(p.test(s)){let a=e[s];if("string"==typeof a){if(n(a)<1){const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E%5B%5E.%5D%2B%24/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===i?i=[e]:i.push(e),o++}}else{const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E%5B%5E.%5D%2B%24/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),o++}return m.errors=i,0===o}function u(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const s in e)if(!p.test(s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}for(const s in e)if(p.test(s)&&"string"!=typeof e[s]){const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E%5B%5E.%5D%2B%24/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return u.errors=i,0===n}function l(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.order){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"order"},message:"must have required property 'order'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.propertyLabels){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"propertyLabels"},message:"must have required property 'propertyLabels'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("order"!==s&&"propertyLabels"!==s&&"propertyDescriptions"!==s&&"header"!==s&&"footer"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.order&&(o(e.order,{instancePath:t+"/order",parentData:e,parentDataProperty:"order",rootData:r})||(i=null===i?o.errors:i.concat(o.errors),n=i.length)),void 0!==e.propertyLabels&&(m(e.propertyLabels,{instancePath:t+"/propertyLabels",parentData:e,parentDataProperty:"propertyLabels",rootData:r})||(i=null===i?m.errors:i.concat(m.errors),n=i.length)),void 0!==e.propertyDescriptions&&(u(e.propertyDescriptions,{instancePath:t+"/propertyDescriptions",parentData:e,parentDataProperty:"propertyDescriptions",rootData:r})||(i=null===i?u.errors:i.concat(u.errors),n=i.length)),void 0!==e.header&&"string"!=typeof e.header){const e={instancePath:t+"/header",schemaPath:"#/properties/header/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.footer&&"string"!=typeof e.footer){const e={instancePath:t+"/footer",schemaPath:"#/properties/footer/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return l.errors=i,0===n}const h={type:"object",properties:{xsd:{type:"string",format:"uri",enum:["http://www.w3.org/2001/XMLSchema#"]},pav:{type:"string",format:"uri",enum:["http://purl.org/pav/"]},schema:{type:"string",format:"uri",enum:["http://schema.org/"]},oslc:{type:"string",format:"uri",enum:["http://open-services.net/ns/core#"]},bibo:{type:"string",format:"uri",enum:["http://purl.org/ontology/bibo/"]},"schema:name":{$ref:"#/definitions/schemaNameContextFieldContent"},"schema:description":{$ref:"#/definitions/schemaDescriptionContextFieldContent"},"pav:createdOn":{$ref:"#/definitions/pavCreatedOnContextFieldContent"},"pav:createdBy":{$ref:"#/definitions/pavCreatedByContextFieldContent"},"pav:lastUpdatedOn":{$ref:"#/definitions/pavLastUpdatedOnContextFieldContent"},"oslc:modifiedBy":{$ref:"#/definitions/oslcModifiedByContextFieldContent"},_annotations:{type:"string",enum:["@nest"]}},patternProperties:{"^(?!(schema|xsd|pav|oslc|bibo|_annotations|\\$))[^.]+$":{type:"string",format:"uri"}},additionalProperties:!1,required:["xsd","pav","schema","oslc","bibo","schema:name","schema:description","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy"]},c=Object.prototype.hasOwnProperty,d=new RegExp("^(?!(schema|xsd|pav|oslc|bibo|_annotations|\\$))[^.]+$","u"),y={type:"object",properties:{"@type":{type:"string",enum:["xsd:string"]}},required:["@type"],additionalProperties:!1};function f(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let s=e["@type"];if("string"!=typeof s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:string"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:y.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return f.errors=i,0===n}function P(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let s=e["@type"];if("string"!=typeof s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:string"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:y.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return P.errors=i,0===n}const g={type:"object",properties:{"@type":{type:"string",enum:["xsd:dateTime"]}},required:["@type"],additionalProperties:!1};function v(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let s=e["@type"];if("string"!=typeof s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:dateTime"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:g.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return v.errors=i,0===n}const w={type:"object",properties:{"@type":{type:"string",enum:["@id"]}},required:["@type"],additionalProperties:!1};function b(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let s=e["@type"];if("string"!=typeof s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@id"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:w.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return b.errors=i,0===n}function k(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let s=e["@type"];if("string"!=typeof s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:dateTime"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:g.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return k.errors=i,0===n}function q(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let s=e["@type"];if("string"!=typeof s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@id"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:w.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return q.errors=i,0===n}function D(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.xsd){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"xsd"},message:"must have required property 'xsd'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.pav){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav"},message:"must have required property 'pav'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.schema){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema"},message:"must have required property 'schema'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.oslc){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc"},message:"must have required property 'oslc'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.bibo){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"bibo"},message:"must have required property 'bibo'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["schema:name"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["schema:description"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["pav:createdOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["pav:createdBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["pav:lastUpdatedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["oslc:modifiedBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if(!c.call(h.properties,s)&&!d.test(s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.xsd){let s=e.xsd;if("http://www.w3.org/2001/XMLSchema#"!==s){const e={instancePath:t+"/xsd",schemaPath:"#/properties/xsd/enum",keyword:"enum",params:{allowedValues:h.properties.xsd.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/xsd",schemaPath:"#/properties/xsd/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/xsd",schemaPath:"#/properties/xsd/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.pav){let s=e.pav;if("http://purl.org/pav/"!==s){const e={instancePath:t+"/pav",schemaPath:"#/properties/pav/enum",keyword:"enum",params:{allowedValues:h.properties.pav.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/pav",schemaPath:"#/properties/pav/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/pav",schemaPath:"#/properties/pav/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.schema){let s=e.schema;if("http://schema.org/"!==s){const e={instancePath:t+"/schema",schemaPath:"#/properties/schema/enum",keyword:"enum",params:{allowedValues:h.properties.schema.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/schema",schemaPath:"#/properties/schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/schema",schemaPath:"#/properties/schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.oslc){let s=e.oslc;if("http://open-services.net/ns/core#"!==s){const e={instancePath:t+"/oslc",schemaPath:"#/properties/oslc/enum",keyword:"enum",params:{allowedValues:h.properties.oslc.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/oslc",schemaPath:"#/properties/oslc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/oslc",schemaPath:"#/properties/oslc/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.bibo){let s=e.bibo;if("http://purl.org/ontology/bibo/"!==s){const e={instancePath:t+"/bibo",schemaPath:"#/properties/bibo/enum",keyword:"enum",params:{allowedValues:h.properties.bibo.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/bibo",schemaPath:"#/properties/bibo/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/bibo",schemaPath:"#/properties/bibo/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e["schema:name"]&&(f(e["schema:name"],{instancePath:t+"/schema:name",parentData:e,parentDataProperty:"schema:name",rootData:i})||(n=null===n?f.errors:n.concat(f.errors),o=n.length)),void 0!==e["schema:description"]&&(P(e["schema:description"],{instancePath:t+"/schema:description",parentData:e,parentDataProperty:"schema:description",rootData:i})||(n=null===n?P.errors:n.concat(P.errors),o=n.length)),void 0!==e["pav:createdOn"]&&(v(e["pav:createdOn"],{instancePath:t+"/pav:createdOn",parentData:e,parentDataProperty:"pav:createdOn",rootData:i})||(n=null===n?v.errors:n.concat(v.errors),o=n.length)),void 0!==e["pav:createdBy"]&&(b(e["pav:createdBy"],{instancePath:t+"/pav:createdBy",parentData:e,parentDataProperty:"pav:createdBy",rootData:i})||(n=null===n?b.errors:n.concat(b.errors),o=n.length)),void 0!==e["pav:lastUpdatedOn"]&&(k(e["pav:lastUpdatedOn"],{instancePath:t+"/pav:lastUpdatedOn",parentData:e,parentDataProperty:"pav:lastUpdatedOn",rootData:i})||(n=null===n?k.errors:n.concat(k.errors),o=n.length)),void 0!==e["oslc:modifiedBy"]&&(q(e["oslc:modifiedBy"],{instancePath:t+"/oslc:modifiedBy",parentData:e,parentDataProperty:"oslc:modifiedBy",rootData:i})||(n=null===n?q.errors:n.concat(q.errors),o=n.length)),void 0!==e._annotations){let s=e._annotations;if("string"!=typeof s){const e={instancePath:t+"/_annotations",schemaPath:"#/properties/_annotations/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("@nest"!==s){const e={instancePath:t+"/_annotations",schemaPath:"#/properties/_annotations/enum",keyword:"enum",params:{allowedValues:h.properties._annotations.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}for(const s in e)if(d.test(s)){let a=e[s];if("string"==typeof a){if(!r.validate(a)){const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E(%3F!(schema%7Cxsd%7Cpav%7Coslc%7Cbibo%7C_annotations%7C%5C%24))%5B%5E.%5D%2B%24/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E(%3F!(schema%7Cxsd%7Cpav%7Coslc%7Cbibo%7C_annotations%7C%5C%24))%5B%5E.%5D%2B%24/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return D.errors=n,0===o}const O={"@context":{$ref:"#/definitions/templateContextFieldContent"},"@type":{$ref:"#/definitions/jsonLDTypeFieldContent"},"@id":{$ref:"#/definitions/jsonLDIDFieldContentWithNull"},"schema:name":{$ref:"#/definitions/schemaNameFieldContent"},"schema:description":{$ref:"#/definitions/schemaDescriptionFieldContent"},"pav:createdOn":{$ref:"#/definitions/pavCreatedOnFieldContent"},"pav:createdBy":{$ref:"#/definitions/pavCreatedByFieldContent"},"schema:isBasedOn":{$ref:"#/definitions/schemaIsBasedOnFieldContent"},"pav:lastUpdatedOn":{$ref:"#/definitions/pavLastUpdatedOnFieldContent"},"oslc:modifiedBy":{$ref:"#/definitions/oslcModifiedByFieldContent"},"pav:derivedFrom":{$ref:"#/definitions/pavDerivedFromFieldContent"},_annotations:{$ref:"#/definitions/annotationsPropertiesContent"}},A=new RegExp("^(?!(@context|@type|@id|schema|xsd|pav|oslc|_annotations|\\$))[^\\.]+$","u"),x={type:"object",properties:{type:{type:"string",enum:["object"]},properties:{$ref:"#/definitions/templateContextPropertiesFieldContent"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{oneOf:[{$ref:"#/definitions/falseOnlyAdditionalProperties"},{$ref:"#/definitions/uriOnlyAdditionalProperties"}]}},required:["type","properties","additionalProperties"],additionalProperties:!1},j={rdfs:{$ref:"#/definitions/rdfsContextPropertiesContent"},xsd:{$ref:"#/definitions/xsdContextPropertiesContent"},pav:{$ref:"#/definitions/pavContextPropertiesContent"},schema:{$ref:"#/definitions/schemaContextPropertiesContent"},oslc:{$ref:"#/definitions/oslcContextPropertiesContent"},skos:{$ref:"#/definitions/skosContextPropertiesContent"},"rdfs:label":{$ref:"#/definitions/rdfsLabelContextPropertiesContent"},"schema:isBasedOn":{$ref:"#/definitions/schemaIsBasedOnContextPropertiesContent"},"schema:name":{$ref:"#/definitions/schemaNameContextPropertiesContent"},"schema:description":{$ref:"#/definitions/schemaDescriptionContextPropertiesContent"},"pav:createdOn":{$ref:"#/definitions/pavCreatedOnContextPropertiesContent"},"pav:createdBy":{$ref:"#/definitions/pavCreatedByContextPropertiesContent"},"pav:lastUpdatedOn":{$ref:"#/definitions/pavLastUpdatedOnContextPropertiesContent"},"oslc:modifiedBy":{$ref:"#/definitions/oslcModifiedByContextPropertiesContent"},"skos:notation":{$ref:"#/definitions/skosNotationContextPropertiesContent"},"pav:derivedFrom":{$ref:"#/definitions/pavDerivedFromContextPropertiesContent"},"@language":{$ref:"#/definitions/jsonLDLanguageFieldContent"},_annotations:{$ref:"#/definitions/annotationsContextPropertiesFieldContent"}},V=new RegExp("^(?!(schema|xsd|pav|oslc|rdfs|skos|@language|_annotations|\\$))[^.]+$","u"),T={type:"object",properties:{type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]},enum:{type:"array",minItems:1,maxItems:1,items:[{type:"string",format:"uri",enum:["http://www.w3.org/2000/01/rdf-schema#"]}]}},required:["type","format","enum"],additionalProperties:!1};function B(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.enum){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if("type"!==s&&"format"!==s&&"enum"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:T.properties.type.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:T.properties.format.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length<1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length>0){let e=s[0];if("http://www.w3.org/2000/01/rdf-schema#"!==e){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:T.properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return B.errors=n,0===o}const $={type:"object",properties:{type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]},enum:{type:"array",minItems:1,maxItems:1,items:[{type:"string",format:"uri",enum:["http://www.w3.org/2001/XMLSchema#"]}]}},required:["type","format","enum"],additionalProperties:!1};function L(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.enum){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if("type"!==s&&"format"!==s&&"enum"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:$.properties.type.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:$.properties.format.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length<1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length>0){let e=s[0];if("http://www.w3.org/2001/XMLSchema#"!==e){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:$.properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return L.errors=n,0===o}const I={type:"object",properties:{type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]},enum:{type:"array",minItems:1,maxItems:1,items:[{type:"string",format:"uri",enum:["http://purl.org/pav/"]}]}},required:["type","format","enum"],additionalProperties:!1};function N(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.enum){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if("type"!==s&&"format"!==s&&"enum"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:I.properties.type.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:I.properties.format.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length<1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length>0){let e=s[0];if("http://purl.org/pav/"!==e){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:I.properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return N.errors=n,0===o}const C={type:"object",properties:{type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]},enum:{type:"array",minItems:1,maxItems:1,items:[{type:"string",format:"uri",enum:["http://schema.org/"]}]}},required:["type","format","enum"],additionalProperties:!1};function _(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.enum){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if("type"!==s&&"format"!==s&&"enum"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:C.properties.type.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:C.properties.format.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length<1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length>0){let e=s[0];if("http://schema.org/"!==e){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:C.properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return _.errors=n,0===o}const U={type:"object",properties:{type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]},enum:{type:"array",minItems:1,maxItems:1,items:[{type:"string",format:"uri",enum:["http://open-services.net/ns/core#"]}]}},required:["type","format","enum"],additionalProperties:!1};function F(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.enum){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if("type"!==s&&"format"!==s&&"enum"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:U.properties.type.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:U.properties.format.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length<1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length>0){let e=s[0];if("http://open-services.net/ns/core#"!==e){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:U.properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return F.errors=n,0===o}const E={type:"object",properties:{type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]},enum:{type:"array",minItems:1,maxItems:1,items:[{type:"string",format:"uri",enum:["http://www.w3.org/2004/02/skos/core#"]}]}},required:["type","format","enum"],additionalProperties:!1};function S(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.enum){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if("type"!==s&&"format"!==s&&"enum"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:E.properties.type.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:E.properties.format.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length<1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length>0){let e=s[0];if("http://www.w3.org/2004/02/skos/core#"!==e){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:E.properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return S.errors=n,0===o}const R={type:"object",properties:{type:{type:"string",enum:["object"]},properties:{type:"object",properties:{"@type":{type:"object",properties:{type:{type:"string",enum:["string"]},enum:{type:"array",minItems:1,maxItems:1,items:[{type:"string",enum:["xsd:string"]}]}},required:["type","enum"]}},required:["@type"]}},required:["type","properties"],additionalProperties:!1};function M(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:R.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:R.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:string"!==e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:R.properties.properties.properties["@type"].properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return M.errors=i,0===n}const z={type:"object",properties:{type:{type:"string",enum:["object"]},properties:{type:"object",properties:{"@type":{type:"object",properties:{type:{type:"string",enum:["string"]},enum:{type:"array",minItems:1,maxItems:1,items:[{type:"string",enum:["@id"]}]}},required:["type","enum"]}},required:["@type"]}},required:["type","properties"],additionalProperties:!1};function Z(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:z.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:z.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@id"!==e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:z.properties.properties.properties["@type"].properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Z.errors=i,0===n}function G(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:R.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:R.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:string"!==e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:R.properties.properties.properties["@type"].properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return G.errors=i,0===n}function J(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:R.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:R.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:string"!==e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:R.properties.properties.properties["@type"].properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return J.errors=i,0===n}const W={type:"object",properties:{type:{type:"string",enum:["object"]},properties:{type:"object",properties:{"@type":{type:"object",properties:{type:{type:"string",enum:["string"]},enum:{type:"array",minItems:1,maxItems:1,items:[{type:"string",enum:["xsd:dateTime"]}]}},required:["type","enum"]}},required:["@type"]}},required:["type","properties"],additionalProperties:!1};function X(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:W.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:W.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:dateTime"!==e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:W.properties.properties.properties["@type"].properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return X.errors=i,0===n}function H(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:z.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:z.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@id"!==e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:z.properties.properties.properties["@type"].properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return H.errors=i,0===n}function K(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:W.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:W.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:dateTime"!==e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:W.properties.properties.properties["@type"].properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return K.errors=i,0===n}function Q(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:z.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:z.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@id"!==e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:z.properties.properties.properties["@type"].properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Q.errors=i,0===n}function Y(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:R.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:R.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:string"!==e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:R.properties.properties.properties["@type"].properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Y.errors=i,0===n}function ee(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:z.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:z.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@id"!==e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:z.properties.properties.properties["@type"].properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return ee.errors=i,0===n}const te={type:"object",properties:{type:{type:"array",minItems:2,maxItems:2,items:[{type:"string",enum:["string"]},{type:"string",enum:["null"]}]},minLength:{type:"number",enum:[1]}},required:["type","minLength"],additionalProperties:!1};function se(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.minLength){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"minLength"},message:"must have required property 'minLength'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"minLength"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if(Array.isArray(s)){if(s.length>2){const e={instancePath:t+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items"};null===i?i=[e]:i.push(e),n++}if(s.length<2){const e={instancePath:t+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};null===i?i=[e]:i.push(e),n++}const e=s.length;if(e>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==e){const e={instancePath:t+"/type/0",schemaPath:"#/properties/type/items/0/enum",keyword:"enum",params:{allowedValues:te.properties.type.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(e>1){let e=s[1];if("string"!=typeof e){const e={instancePath:t+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("null"!==e){const e={instancePath:t+"/type/1",schemaPath:"#/properties/type/items/1/enum",keyword:"enum",params:{allowedValues:te.properties.type.items[1].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.minLength){let s=e.minLength;if("number"!=typeof s){const e={instancePath:t+"/minLength",schemaPath:"#/properties/minLength/type",keyword:"type",params:{type:"number"},message:"must be number"};null===i?i=[e]:i.push(e),n++}if(1!==s){const e={instancePath:t+"/minLength",schemaPath:"#/properties/minLength/enum",keyword:"enum",params:{allowedValues:te.properties.minLength.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return se.errors=i,0===n}const ae={type:"object",properties:{type:{type:"string",enum:["string"]},enum:{type:"array",minItems:1,maxItems:1,items:[{type:"string",enum:["@nest"]}]}},required:["type","enum"],additionalProperties:!1};function re(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"enum"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ae.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@nest"!==e){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:ae.properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return re.errors=i,0===n}function ie(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(Array.isArray(e)){if(e.length>1){const e={instancePath:t,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===n?n=[e]:n.push(e),o++}if(e.length<1){const e={instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===n?n=[e]:n.push(e),o++}const s=e.length;for(let a=0;a<s;a++){let s=e[a];if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/"+a,schemaPath:"#/items/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/"+a,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}let a,i=e.length;if(i>1){const s={};for(;i--;){let r=e[i];if("string"==typeof r){if("number"==typeof s[r]){a=s[r];const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+i+" are identical)"};null===n?n=[e]:n.push(e),o++;break}s[r]=i}}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===n?n=[e]:n.push(e),o++}return ie.errors=n,0===o}function ne(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.enum){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("enum"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}void 0!==e.enum&&(ie(e.enum,{instancePath:t+"/enum",parentData:e,parentDataProperty:"enum",rootData:r})||(i=null===i?ie.errors:i.concat(ie.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return ne.errors=i,0===n}function oe(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.rdfs){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"rdfs"},message:"must have required property 'rdfs'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.xsd){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"xsd"},message:"must have required property 'xsd'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.pav){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav"},message:"must have required property 'pav'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.schema){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema"},message:"must have required property 'schema'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.oslc){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc"},message:"must have required property 'oslc'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.skos){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"skos"},message:"must have required property 'skos'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["rdfs:label"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"rdfs:label"},message:"must have required property 'rdfs:label'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["schema:isBasedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:isBasedOn"},message:"must have required property 'schema:isBasedOn'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["schema:name"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["schema:description"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["pav:createdOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["pav:createdBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["pav:lastUpdatedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["oslc:modifiedBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["skos:notation"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"skos:notation"},message:"must have required property 'skos:notation'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["pav:derivedFrom"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:derivedFrom"},message:"must have required property 'pav:derivedFrom'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if(!c.call(j,s)&&!V.test(s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}void 0!==e.rdfs&&(B(e.rdfs,{instancePath:t+"/rdfs",parentData:e,parentDataProperty:"rdfs",rootData:r})||(i=null===i?B.errors:i.concat(B.errors),n=i.length)),void 0!==e.xsd&&(L(e.xsd,{instancePath:t+"/xsd",parentData:e,parentDataProperty:"xsd",rootData:r})||(i=null===i?L.errors:i.concat(L.errors),n=i.length)),void 0!==e.pav&&(N(e.pav,{instancePath:t+"/pav",parentData:e,parentDataProperty:"pav",rootData:r})||(i=null===i?N.errors:i.concat(N.errors),n=i.length)),void 0!==e.schema&&(_(e.schema,{instancePath:t+"/schema",parentData:e,parentDataProperty:"schema",rootData:r})||(i=null===i?_.errors:i.concat(_.errors),n=i.length)),void 0!==e.oslc&&(F(e.oslc,{instancePath:t+"/oslc",parentData:e,parentDataProperty:"oslc",rootData:r})||(i=null===i?F.errors:i.concat(F.errors),n=i.length)),void 0!==e.skos&&(S(e.skos,{instancePath:t+"/skos",parentData:e,parentDataProperty:"skos",rootData:r})||(i=null===i?S.errors:i.concat(S.errors),n=i.length)),void 0!==e["rdfs:label"]&&(M(e["rdfs:label"],{instancePath:t+"/rdfs:label",parentData:e,parentDataProperty:"rdfs:label",rootData:r})||(i=null===i?M.errors:i.concat(M.errors),n=i.length)),void 0!==e["schema:isBasedOn"]&&(Z(e["schema:isBasedOn"],{instancePath:t+"/schema:isBasedOn",parentData:e,parentDataProperty:"schema:isBasedOn",rootData:r})||(i=null===i?Z.errors:i.concat(Z.errors),n=i.length)),void 0!==e["schema:name"]&&(G(e["schema:name"],{instancePath:t+"/schema:name",parentData:e,parentDataProperty:"schema:name",rootData:r})||(i=null===i?G.errors:i.concat(G.errors),n=i.length)),void 0!==e["schema:description"]&&(J(e["schema:description"],{instancePath:t+"/schema:description",parentData:e,parentDataProperty:"schema:description",rootData:r})||(i=null===i?J.errors:i.concat(J.errors),n=i.length)),void 0!==e["pav:createdOn"]&&(X(e["pav:createdOn"],{instancePath:t+"/pav:createdOn",parentData:e,parentDataProperty:"pav:createdOn",rootData:r})||(i=null===i?X.errors:i.concat(X.errors),n=i.length)),void 0!==e["pav:createdBy"]&&(H(e["pav:createdBy"],{instancePath:t+"/pav:createdBy",parentData:e,parentDataProperty:"pav:createdBy",rootData:r})||(i=null===i?H.errors:i.concat(H.errors),n=i.length)),void 0!==e["pav:lastUpdatedOn"]&&(K(e["pav:lastUpdatedOn"],{instancePath:t+"/pav:lastUpdatedOn",parentData:e,parentDataProperty:"pav:lastUpdatedOn",rootData:r})||(i=null===i?K.errors:i.concat(K.errors),n=i.length)),void 0!==e["oslc:modifiedBy"]&&(Q(e["oslc:modifiedBy"],{instancePath:t+"/oslc:modifiedBy",parentData:e,parentDataProperty:"oslc:modifiedBy",rootData:r})||(i=null===i?Q.errors:i.concat(Q.errors),n=i.length)),void 0!==e["skos:notation"]&&(Y(e["skos:notation"],{instancePath:t+"/skos:notation",parentData:e,parentDataProperty:"skos:notation",rootData:r})||(i=null===i?Y.errors:i.concat(Y.errors),n=i.length)),void 0!==e["pav:derivedFrom"]&&(ee(e["pav:derivedFrom"],{instancePath:t+"/pav:derivedFrom",parentData:e,parentDataProperty:"pav:derivedFrom",rootData:r})||(i=null===i?ee.errors:i.concat(ee.errors),n=i.length)),void 0!==e["@language"]&&(se(e["@language"],{instancePath:t+"/@language",parentData:e,parentDataProperty:"@language",rootData:r})||(i=null===i?se.errors:i.concat(se.errors),n=i.length)),void 0!==e._annotations&&(re(e._annotations,{instancePath:t+"/_annotations",parentData:e,parentDataProperty:"_annotations",rootData:r})||(i=null===i?re.errors:i.concat(re.errors),n=i.length));for(const s in e)V.test(s)&&(ne(e[s],{instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:s,rootData:r})||(i=null===i?ne.errors:i.concat(ne.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return oe.errors=i,0===n}const pe={type:"boolean",enum:[!1]};function me(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if("boolean"!=typeof e){const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(!1!==e){const e={instancePath:t,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:pe.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}return me.errors=i,0===n}const ue={type:"object",properties:{type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]}},required:["type","format"],additionalProperties:!1};function le(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"format"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ue.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:ue.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return le.errors=i,0===n}function he(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.additionalProperties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s&&"required"!==s&&"additionalProperties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:x.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties&&(oe(e.properties,{instancePath:t+"/properties",parentData:e,parentDataProperty:"properties",rootData:r})||(i=null===i?oe.errors:i.concat(oe.errors),n=i.length)),void 0!==e.required&&(o(e.required,{instancePath:t+"/required",parentData:e,parentDataProperty:"required",rootData:r})||(i=null===i?o.errors:i.concat(o.errors),n=i.length)),void 0!==e.additionalProperties){let s=e.additionalProperties;const a=n;let o=!1,m=null;const u=n;me(s,{instancePath:t+"/additionalProperties",parentData:e,parentDataProperty:"additionalProperties",rootData:r})||(i=null===i?me.errors:i.concat(me.errors),n=i.length),u===n&&(o=!0,m=0);const l=n;var p;if(le(s,{instancePath:t+"/additionalProperties",parentData:e,parentDataProperty:"additionalProperties",rootData:r})||(i=null===i?le.errors:i.concat(le.errors),n=i.length),(p=l===n)&&o?(o=!1,m=[m,1]):p&&(o=!0,m=1),o)n=a,null!==i&&(a?i.length=a:i=null);else{const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/oneOf",keyword:"oneOf",params:{passingSchemas:m},message:"must match exactly one schema in oneOf"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return he.errors=i,0===n}const ce={properties:{oneOf:{$ref:"#/definitions/jsonLDTypeFieldOneOfFieldContent"},type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]}},additionalProperties:!1},de={type:"object",properties:{type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]},enum:{$ref:"#/definitions/arrayOfURIs"}},required:["type","format"],additionalProperties:!1};function ye(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(Array.isArray(e)){if(e.length<1){const e={instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===n?n=[e]:n.push(e),o++}const s=e.length;for(let a=0;a<s;a++){let s=e[a];if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/"+a,schemaPath:"#/items/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/"+a,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}let a,i=e.length;if(i>1){const s={};for(;i--;){let r=e[i];if("string"==typeof r){if("number"==typeof s[r]){a=s[r];const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+i+" are identical)"};null===n?n=[e]:n.push(e),o++;break}s[r]=i}}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===n?n=[e]:n.push(e),o++}return ye.errors=n,0===o}function fe(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"format"!==s&&"enum"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:de.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:de.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}void 0!==e.enum&&(ye(e.enum,{instancePath:t+"/enum",parentData:e,parentDataProperty:"enum",rootData:r})||(i=null===i?ye.errors:i.concat(ye.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return fe.errors=i,0===n}const Pe={type:"object",properties:{type:{type:"string",enum:["array"]},minItems:{type:"integer",minimum:0},items:{$ref:"#/definitions/uriEnumContent"},uniqueItems:{type:"boolean",enum:[!0]}},required:["type","minItems","items","uniqueItems"],additionalProperties:!1};function ge(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.minItems){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"minItems"},message:"must have required property 'minItems'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.items){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.uniqueItems){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"uniqueItems"},message:"must have required property 'uniqueItems'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"minItems"!==s&&"items"!==s&&"uniqueItems"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("array"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Pe.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.minItems){let s=e.minItems;if("number"!=typeof s||s%1||isNaN(s)){const e={instancePath:t+"/minItems",schemaPath:"#/properties/minItems/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===i?i=[e]:i.push(e),n++}if("number"==typeof s&&(s<0||isNaN(s))){const e={instancePath:t+"/minItems",schemaPath:"#/properties/minItems/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.items&&(fe(e.items,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:r})||(i=null===i?fe.errors:i.concat(fe.errors),n=i.length)),void 0!==e.uniqueItems){let s=e.uniqueItems;if("boolean"!=typeof s){const e={instancePath:t+"/uniqueItems",schemaPath:"#/properties/uniqueItems/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(!0!==s){const e={instancePath:t+"/uniqueItems",schemaPath:"#/properties/uniqueItems/enum",keyword:"enum",params:{allowedValues:Pe.properties.uniqueItems.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return ge.errors=i,0===n}function ve(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){if(e.length>2){const e={instancePath:t,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items"};null===i?i=[e]:i.push(e),n++}if(e.length<2){const e={instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};null===i?i=[e]:i.push(e),n++}const s=e.length;s>0&&(fe(e[0],{instancePath:t+"/0",parentData:e,parentDataProperty:0,rootData:r})||(i=null===i?fe.errors:i.concat(fe.errors),n=i.length)),s>1&&(ge(e[1],{instancePath:t+"/1",parentData:e,parentDataProperty:1,rootData:r})||(i=null===i?ge.errors:i.concat(ge.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return ve.errors=i,0===n}function we(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const s in e)if("oneOf"!==s&&"type"!==s&&"format"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.oneOf&&(ve(e.oneOf,{instancePath:t+"/oneOf",parentData:e,parentDataProperty:"oneOf",rootData:r})||(i=null===i?ve.errors:i.concat(ve.errors),n=i.length)),void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ce.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:ce.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}return we.errors=i,0===n}const be={type:"object",properties:{type:{type:"array",minItems:2,maxItems:2,items:[{type:"string",enum:["string"]},{type:"string",enum:["null"]}]},format:{type:"string",enum:["uri"]}}};function ke(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.type){let s=e.type;if(Array.isArray(s)){if(s.length>2){const e={instancePath:t+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items"};null===i?i=[e]:i.push(e),n++}if(s.length<2){const e={instancePath:t+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};null===i?i=[e]:i.push(e),n++}const e=s.length;if(e>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==e){const e={instancePath:t+"/type/0",schemaPath:"#/properties/type/items/0/enum",keyword:"enum",params:{allowedValues:be.properties.type.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(e>1){let e=s[1];if("string"!=typeof e){const e={instancePath:t+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("null"!==e){const e={instancePath:t+"/type/1",schemaPath:"#/properties/type/items/1/enum",keyword:"enum",params:{allowedValues:be.properties.type.items[1].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:be.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return ke.errors=i,0===n}const qe={type:"object",properties:{type:{type:"string",enum:["string"]},minLength:{type:"number",enum:[1]}},required:["type"],additionalProperties:!1};function De(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"minLength"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:qe.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.minLength){let s=e.minLength;if("number"!=typeof s){const e={instancePath:t+"/minLength",schemaPath:"#/properties/minLength/type",keyword:"type",params:{type:"number"},message:"must be number"};null===i?i=[e]:i.push(e),n++}if(1!==s){const e={instancePath:t+"/minLength",schemaPath:"#/properties/minLength/enum",keyword:"enum",params:{allowedValues:qe.properties.minLength.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return De.errors=i,0===n}const Oe={type:"object",properties:{type:{type:"string",enum:["string"]}},required:["type"],additionalProperties:!1};function Ae(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Oe.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Ae.errors=i,0===n}const xe={type:"object",properties:{type:{$ref:"#/definitions/stringAndNullTypeContent"},format:{type:"string",enum:["date-time"]}},required:["type","format"],additionalProperties:!1},je={type:"array",minItems:2,maxItems:2,items:[{type:"string",enum:["string"]},{type:"string",enum:["null"]}]};function Ve(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){if(e.length>2){const e={instancePath:t,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items"};null===i?i=[e]:i.push(e),n++}if(e.length<2){const e={instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};null===i?i=[e]:i.push(e),n++}const s=e.length;if(s>0){let s=e[0];if("string"!=typeof s){const e={instancePath:t+"/0",schemaPath:"#/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/0",schemaPath:"#/items/0/enum",keyword:"enum",params:{allowedValues:je.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>1){let s=e[1];if("string"!=typeof s){const e={instancePath:t+"/1",schemaPath:"#/items/1/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("null"!==s){const e={instancePath:t+"/1",schemaPath:"#/items/1/enum",keyword:"enum",params:{allowedValues:je.items[1].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return Ve.errors=i,0===n}function Te(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"format"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type&&(Ve(e.type,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?Ve.errors:i.concat(Ve.errors),n=i.length)),void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("date-time"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:xe.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Te.errors=i,0===n}const Be={type:"object",properties:{type:{$ref:"#/definitions/stringAndNullTypeContent"},format:{type:"string",enum:["uri"]}},required:["type","format"],additionalProperties:!1};function $e(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"format"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type&&(Ve(e.type,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?Ve.errors:i.concat(Ve.errors),n=i.length)),void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:Be.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return $e.errors=i,0===n}function Le(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"format"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ue.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:ue.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Le.errors=i,0===n}function Ie(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"format"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type&&(Ve(e.type,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?Ve.errors:i.concat(Ve.errors),n=i.length)),void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("date-time"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:xe.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Ie.errors=i,0===n}function Ne(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"format"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type&&(Ve(e.type,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?Ve.errors:i.concat(Ve.errors),n=i.length)),void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:Be.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Ne.errors=i,0===n}function Ce(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"format"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ue.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:ue.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Ce.errors=i,0===n}const _e={type:"object",properties:{type:{type:"string",enum:["object"]},patternProperties:{type:"object",properties:{"^.+$":{type:"object",properties:{oneOf:{type:"array",minItems:2,maxItems:2,items:[{type:"object",properties:{type:{type:"string",enum:["object"]},properties:{type:"object",properties:{"@id":{$ref:"#/definitions/jsonLDIDFieldContent"}},required:["@id"],additionalProperties:!1},additionalProperties:{type:"boolean",enum:[!1]}},required:["type","properties","additionalProperties"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",enum:["object"]},properties:{type:"object",properties:{"@value":{$ref:"#/definitions/annotationsJsonLDValueFieldContent"}},required:["@value"],additionalProperties:!1},additionalProperties:{type:"boolean",enum:[!1]}},required:["type","properties","additionalProperties"],additionalProperties:!1}]}},required:["oneOf"],additionalProperties:!1}},required:["^.+$"],additionalProperties:!1},additionalProperties:{type:"boolean",enum:[!1]}},required:["type","patternProperties","additionalProperties"],additionalProperties:!1};function Ue(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"format"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ue.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:ue.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Ue.errors=i,0===n}const Fe={type:"object",properties:{type:{type:"array",minItems:4,maxItems:4,items:[{type:"string",enum:["string"]},{type:"string",enum:["number"]},{type:"string",enum:["boolean"]},{type:"string",enum:["null"]}]}},required:["type"],additionalProperties:!1};function Ee(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if(Array.isArray(s)){if(s.length>4){const e={instancePath:t+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit:4},message:"must NOT have more than 4 items"};null===i?i=[e]:i.push(e),n++}if(s.length<4){const e={instancePath:t+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit:4},message:"must NOT have fewer than 4 items"};null===i?i=[e]:i.push(e),n++}const e=s.length;if(e>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==e){const e={instancePath:t+"/type/0",schemaPath:"#/properties/type/items/0/enum",keyword:"enum",params:{allowedValues:Fe.properties.type.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(e>1){let e=s[1];if("string"!=typeof e){const e={instancePath:t+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("number"!==e){const e={instancePath:t+"/type/1",schemaPath:"#/properties/type/items/1/enum",keyword:"enum",params:{allowedValues:Fe.properties.type.items[1].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(e>2){let e=s[2];if("string"!=typeof e){const e={instancePath:t+"/type/2",schemaPath:"#/properties/type/items/2/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("boolean"!==e){const e={instancePath:t+"/type/2",schemaPath:"#/properties/type/items/2/enum",keyword:"enum",params:{allowedValues:Fe.properties.type.items[2].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(e>3){let e=s[3];if("string"!=typeof e){const e={instancePath:t+"/type/3",schemaPath:"#/properties/type/items/3/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("null"!==e){const e={instancePath:t+"/type/3",schemaPath:"#/properties/type/items/3/enum",keyword:"enum",params:{allowedValues:Fe.properties.type.items[3].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Ee.errors=i,0===n}function Se(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.patternProperties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"patternProperties"},message:"must have required property 'patternProperties'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.additionalProperties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"patternProperties"!==s&&"additionalProperties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:_e.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.patternProperties){let s=e.patternProperties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["^.+$"]){const e={instancePath:t+"/patternProperties",schemaPath:"#/properties/patternProperties/required",keyword:"required",params:{missingProperty:"^.+$"},message:"must have required property '^.+$'"};null===i?i=[e]:i.push(e),n++}for(const e in s)if("^.+$"!==e){const s={instancePath:t+"/patternProperties",schemaPath:"#/properties/patternProperties/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===i?i=[s]:i.push(s),n++}if(void 0!==s["^.+$"]){let e=s["^.+$"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.oneOf){const e={instancePath:t+"/patternProperties/^.+$",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/required",keyword:"required",params:{missingProperty:"oneOf"},message:"must have required property 'oneOf'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("oneOf"!==s){const e={instancePath:t+"/patternProperties/^.+$",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.oneOf){let s=e.oneOf;if(Array.isArray(s)){if(s.length>2){const e={instancePath:t+"/patternProperties/^.+$/oneOf",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items"};null===i?i=[e]:i.push(e),n++}if(s.length<2){const e={instancePath:t+"/patternProperties/^.+$/oneOf",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};null===i?i=[e]:i.push(e),n++}const e=s.length;if(e>0){let e=s[0];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/patternProperties/^.+$/oneOf/0",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t+"/patternProperties/^.+$/oneOf/0",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.additionalProperties){const e={instancePath:t+"/patternProperties/^.+$/oneOf/0",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s&&"additionalProperties"!==s){const e={instancePath:t+"/patternProperties/^.+$/oneOf/0",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/patternProperties/^.+$/oneOf/0/type",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/patternProperties/^.+$/oneOf/0/type",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/properties/type/enum",keyword:"enum",params:{allowedValues:_e.properties.patternProperties.properties["^.+$"].properties.oneOf.items[0].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@id"]){const e={instancePath:t+"/patternProperties/^.+$/oneOf/0/properties",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/properties/properties/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===i?i=[e]:i.push(e),n++}for(const e in s)if("@id"!==e){const s={instancePath:t+"/patternProperties/^.+$/oneOf/0/properties",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/properties/properties/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===i?i=[s]:i.push(s),n++}void 0!==s["@id"]&&(Ue(s["@id"],{instancePath:t+"/patternProperties/^.+$/oneOf/0/properties/@id",parentData:s,parentDataProperty:"@id",rootData:r})||(i=null===i?Ue.errors:i.concat(Ue.errors),n=i.length))}else{const e={instancePath:t+"/patternProperties/^.+$/oneOf/0/properties",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.additionalProperties){let s=e.additionalProperties;if("boolean"!=typeof s){const e={instancePath:t+"/patternProperties/^.+$/oneOf/0/additionalProperties",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(!1!==s){const e={instancePath:t+"/patternProperties/^.+$/oneOf/0/additionalProperties",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:_e.properties.patternProperties.properties["^.+$"].properties.oneOf.items[0].properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/patternProperties/^.+$/oneOf/0",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}if(e>1){let e=s[1];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/patternProperties/^.+$/oneOf/1",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t+"/patternProperties/^.+$/oneOf/1",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.additionalProperties){const e={instancePath:t+"/patternProperties/^.+$/oneOf/1",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s&&"additionalProperties"!==s){const e={instancePath:t+"/patternProperties/^.+$/oneOf/1",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/patternProperties/^.+$/oneOf/1/type",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/patternProperties/^.+$/oneOf/1/type",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/properties/type/enum",keyword:"enum",params:{allowedValues:_e.properties.patternProperties.properties["^.+$"].properties.oneOf.items[1].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@value"]){const e={instancePath:t+"/patternProperties/^.+$/oneOf/1/properties",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/properties/properties/required",keyword:"required",params:{missingProperty:"@value"},message:"must have required property '@value'"};null===i?i=[e]:i.push(e),n++}for(const e in s)if("@value"!==e){const s={instancePath:t+"/patternProperties/^.+$/oneOf/1/properties",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/properties/properties/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===i?i=[s]:i.push(s),n++}void 0!==s["@value"]&&(Ee(s["@value"],{instancePath:t+"/patternProperties/^.+$/oneOf/1/properties/@value",parentData:s,parentDataProperty:"@value",rootData:r})||(i=null===i?Ee.errors:i.concat(Ee.errors),n=i.length))}else{const e={instancePath:t+"/patternProperties/^.+$/oneOf/1/properties",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.additionalProperties){let s=e.additionalProperties;if("boolean"!=typeof s){const e={instancePath:t+"/patternProperties/^.+$/oneOf/1/additionalProperties",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(!1!==s){const e={instancePath:t+"/patternProperties/^.+$/oneOf/1/additionalProperties",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:_e.properties.patternProperties.properties["^.+$"].properties.oneOf.items[1].properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/patternProperties/^.+$/oneOf/1",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/patternProperties/^.+$/oneOf",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/patternProperties/^.+$",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/patternProperties",schemaPath:"#/properties/patternProperties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.additionalProperties){let s=e.additionalProperties;if("boolean"!=typeof s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(!1!==s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:_e.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Se.errors=i,0===n}const Re={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{$schema:{type:"string",format:"uri",enum:["http://json-schema.org/draft-04/schema#"]},type:{type:"string",enum:["object"]},"schema:identifier":{type:"string",minLength:1},"schema:name":{type:"string",minLength:1},"schema:description":{type:"string"},"skos:prefLabel":{type:"string"},"skos:altLabel":{type:"array",uniqueItems:!0},title:{type:"string",minLength:1},description:{type:"string",minLength:1},_ui:{$ref:"#/definitions/literalFieldUIContent"},_valueConstraints:{$ref:"#/definitions/literalFieldValueConstraintsContent"},"@context":{$ref:"#/definitions/templateFieldJSONLDContextFieldContent"},"@id":{type:["string","null"],format:"uri"},"@type":{type:"string",format:"uri",enum:["https://schema.metadatacenter.org/core/TemplateField"]},properties:{$ref:"#/definitions/literalFieldPropertiesContent"},required:{$ref:"#/definitions/stringArray"},"pav:createdOn":{type:["string","null"],format:"date-time"},"pav:createdBy":{type:["string","null"],format:"uri"},"pav:lastUpdatedOn":{type:["string","null"],format:"date-time"},"oslc:modifiedBy":{type:["string","null"],format:"uri"},"bibo:status":{type:"string",enum:["bibo:published","bibo:draft"]},"pav:version":{type:"string",pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},"pav:previousVersion":{type:"string",minLength:1},"pav:derivedFrom":{type:"string",format:"uri"},"@nest":{$ref:"#/definitions/nestFieldContent"},additionalProperties:{type:"boolean",enum:[!1]},"schema:schemaVersion":{type:"string",enum:["1.6.0"]}},required:["$schema","type","title","description","_ui","_valueConstraints","@context","@id","@type","properties","additionalProperties","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy","schema:schemaVersion","schema:name","schema:description"]},Me=s(250).default,ze={type:"object",properties:{inputType:{type:"string",enum:["textfield","textarea","radio","checkbox","temporal","email","list","numeric","phone-number","attribute-value"]},valueRecommendationEnabled:{type:"boolean"},hidden:{type:"boolean"},continuePreviousLine:{type:"boolean"},dateType:{type:"string",enum:["single-date","date-range"]},inputTimeFormat:{type:"string",enum:["24h","12h"]},temporalGranularity:{type:"string",enum:["year","month","day","hour","minute","second","decimalSecond"]},timezoneEnabled:{type:"boolean"}},required:["inputType"],additionalProperties:!1};function Ze(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.inputType){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"inputType"},message:"must have required property 'inputType'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("inputType"!==s&&"valueRecommendationEnabled"!==s&&"hidden"!==s&&"continuePreviousLine"!==s&&"dateType"!==s&&"inputTimeFormat"!==s&&"temporalGranularity"!==s&&"timezoneEnabled"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.inputType){let s=e.inputType;if("string"!=typeof s){const e={instancePath:t+"/inputType",schemaPath:"#/properties/inputType/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("textfield"!==s&&"textarea"!==s&&"radio"!==s&&"checkbox"!==s&&"temporal"!==s&&"email"!==s&&"list"!==s&&"numeric"!==s&&"phone-number"!==s&&"attribute-value"!==s){const e={instancePath:t+"/inputType",schemaPath:"#/properties/inputType/enum",keyword:"enum",params:{allowedValues:ze.properties.inputType.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.valueRecommendationEnabled&&"boolean"!=typeof e.valueRecommendationEnabled){const e={instancePath:t+"/valueRecommendationEnabled",schemaPath:"#/properties/valueRecommendationEnabled/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.hidden&&"boolean"!=typeof e.hidden){const e={instancePath:t+"/hidden",schemaPath:"#/properties/hidden/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.continuePreviousLine&&"boolean"!=typeof e.continuePreviousLine){const e={instancePath:t+"/continuePreviousLine",schemaPath:"#/properties/continuePreviousLine/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.dateType){let s=e.dateType;if("string"!=typeof s){const e={instancePath:t+"/dateType",schemaPath:"#/properties/dateType/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("single-date"!==s&&"date-range"!==s){const e={instancePath:t+"/dateType",schemaPath:"#/properties/dateType/enum",keyword:"enum",params:{allowedValues:ze.properties.dateType.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.inputTimeFormat){let s=e.inputTimeFormat;if("string"!=typeof s){const e={instancePath:t+"/inputTimeFormat",schemaPath:"#/properties/inputTimeFormat/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("24h"!==s&&"12h"!==s){const e={instancePath:t+"/inputTimeFormat",schemaPath:"#/properties/inputTimeFormat/enum",keyword:"enum",params:{allowedValues:ze.properties.inputTimeFormat.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.temporalGranularity){let s=e.temporalGranularity;if("string"!=typeof s){const e={instancePath:t+"/temporalGranularity",schemaPath:"#/properties/temporalGranularity/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("year"!==s&&"month"!==s&&"day"!==s&&"hour"!==s&&"minute"!==s&&"second"!==s&&"decimalSecond"!==s){const e={instancePath:t+"/temporalGranularity",schemaPath:"#/properties/temporalGranularity/enum",keyword:"enum",params:{allowedValues:ze.properties.temporalGranularity.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.timezoneEnabled&&"boolean"!=typeof e.timezoneEnabled){const e={instancePath:t+"/timezoneEnabled",schemaPath:"#/properties/timezoneEnabled/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Ze.errors=i,0===n}const Ge={type:"object",properties:{requiredValue:{type:"boolean"},recommendedValue:{type:"boolean"},multipleChoice:{type:"boolean"},minLength:{type:"integer"},maxLength:{type:"integer"},regex:{type:"string"},minValue:{type:"number"},maxValue:{type:"number"},decimalPlace:{type:"number"},unitOfMeasure:{type:"string"},defaultValue:{oneOf:[{$ref:"#/definitions/valueConstraintsStringDefaultValueContent"},{$ref:"#/definitions/valueConstraintsUriDefaultValueContent"}]},numberType:{type:"string",enum:["xsd:decimal","xsd:long","xsd:int","xsd:double","xsd:float","xsd:byte","xsd:short"]},temporalType:{type:"string",enum:["xsd:dateTime","xsd:date","xsd:time"]},ontologies:{$ref:"#/definitions/valueConstraintsOntologiesFieldContent"},valueSets:{$ref:"#/definitions/valueConstraintsValueSetsFieldContent"},classes:{$ref:"#/definitions/valueConstraintsClassesFieldContent"},branches:{$ref:"#/definitions/valueConstraintsBranchesFieldContent"},literals:{$ref:"#/definitions/valueConstraintsLiteralsFieldContent"},actions:{$ref:"#/definitions/valueConstraintsActionsFieldContent"}},required:["requiredValue"],additionalProperties:!1};function Je(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if("string"!=typeof e){const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}return Je.errors=i,0===n}function We(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.termUri){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"termUri"},message:"must have required property 'termUri'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["rdfs:label"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"rdfs:label"},message:"must have required property 'rdfs:label'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if("termUri"!==s&&"rdfs:label"!==s&&"skos:notation"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.termUri){let s=e.termUri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/termUri",schemaPath:"#/properties/termUri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/termUri",schemaPath:"#/properties/termUri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e["rdfs:label"]&&"string"!=typeof e["rdfs:label"]){const e={instancePath:t+"/rdfs:label",schemaPath:"#/properties/rdfs%3Alabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if(void 0!==e["skos:notation"]&&"string"!=typeof e["skos:notation"]){const e={instancePath:t+"/skos:notation",schemaPath:"#/properties/skos%3Anotation/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return We.errors=n,0===o}const Xe={uri:{type:"string",format:"uri"},acronym:{type:"string",minLength:1},name:{type:"string",minLength:1},numTerms:{type:"integer",minimum:0},iri:{type:"string",format:"uri"},sourceSystem:{type:"string",minLength:1},links:{$ref:"#/definitions/valueConstraintsLinksFieldContent"},version:{$ref:"#/definitions/valueConstraintsVersionFieldContent"},exclusions:{$ref:"#/definitions/valueConstraintsOntologiesExclusionsFieldContent"},selectedByDefault:{type:"boolean"}},He=new RegExp("^https?://[^/?#@\\s\\\\]+(?:[/?#][^\\s\\\\]*)?$","u");function Ke(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(Object.keys(e).length<1){const e={instancePath:t,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties"};null===n?n=[e]:n.push(e),o++}for(const s in e)if("landingPage"!==s&&"icon"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.landingPage){let s=e.landingPage;if("string"==typeof s){if(!He.test(s)){const e={instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/pattern",keyword:"pattern",params:{pattern:"^https?://[^/?#@\\s\\\\]+(?:[/?#][^\\s\\\\]*)?$"},message:'must match pattern "^https?://[^/?#@\\s\\\\]+(?:[/?#][^\\s\\\\]*)?$"'};null===n?n=[e]:n.push(e),o++}if(!r.validate(s)){const e={instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.icon){let s=e.icon;if("string"==typeof s){if(!He.test(s)){const e={instancePath:t+"/icon",schemaPath:"#/properties/icon/pattern",keyword:"pattern",params:{pattern:"^https?://[^/?#@\\s\\\\]+(?:[/?#][^\\s\\\\]*)?$"},message:'must match pattern "^https?://[^/?#@\\s\\\\]+(?:[/?#][^\\s\\\\]*)?$"'};null===n?n=[e]:n.push(e),o++}if(!r.validate(s)){const e={instancePath:t+"/icon",schemaPath:"#/properties/icon/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/icon",schemaPath:"#/properties/icon/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return Ke.errors=n,0===o}function Qe(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,o=0;const p=o;let m=!1,u=null;const l=o;if("string"!=typeof e){const e={instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),o++}l===o&&(m=!0,u=0);const h=o;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.id){const e={instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};null===i?i=[e]:i.push(e),o++}for(const s in e)if("id"!==s&&"effectiveDate"!==s&&"declaredVersion"!==s){const e={instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),o++}if(void 0!==e.id){let s=e.id;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/id",schemaPath:"#/oneOf/1/properties/id/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===i?i=[e]:i.push(e),o++}}else{const e={instancePath:t+"/id",schemaPath:"#/oneOf/1/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),o++}}if(void 0!==e.effectiveDate&&"string"!=typeof e.effectiveDate){const e={instancePath:t+"/effectiveDate",schemaPath:"#/oneOf/1/properties/effectiveDate/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),o++}if(void 0!==e.declaredVersion&&"string"!=typeof e.declaredVersion){const e={instancePath:t+"/declaredVersion",schemaPath:"#/oneOf/1/properties/declaredVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),o++}}else{const e={instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),o++}var c;if((c=h===o)&&m?(m=!1,u=[u,1]):c&&(m=!0,u=1),m)o=p,null!==i&&(p?i.length=p:i=null);else{const e={instancePath:t,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:u},message:"must match exactly one schema in oneOf"};null===i?i=[e]:i.push(e),o++}return Qe.errors=i,0===o}function Ye(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(Array.isArray(e)){const s=e.length;for(let a=0;a<s;a++){let s=e[a];if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/"+a,schemaPath:"#/items/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/"+a,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}let a,i=e.length;if(i>1){const s={};for(;i--;){let r=e[i];if("string"==typeof r){if("number"==typeof s[r]){a=s[r];const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+i+" are identical)"};null===n?n=[e]:n.push(e),o++;break}s[r]=i}}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===n?n=[e]:n.push(e),o++}return Ye.errors=n,0===o}function et(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let o=null,p=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.uri){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"uri"},message:"must have required property 'uri'"};null===o?o=[e]:o.push(e),p++}for(const s in e)if(!c.call(Xe,s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===o?o=[e]:o.push(e),p++}if(void 0!==e.uri){let s=e.uri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/uri",schemaPath:"#/properties/uri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/uri",schemaPath:"#/properties/uri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.acronym){let s=e.acronym;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/acronym",schemaPath:"#/properties/acronym/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/acronym",schemaPath:"#/properties/acronym/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.name){let s=e.name;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/name",schemaPath:"#/properties/name/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.numTerms){let s=e.numTerms;if("number"!=typeof s||s%1||isNaN(s)){const e={instancePath:t+"/numTerms",schemaPath:"#/properties/numTerms/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),p++}if("number"==typeof s&&(s<0||isNaN(s))){const e={instancePath:t+"/numTerms",schemaPath:"#/properties/numTerms/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.iri){let s=e.iri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/iri",schemaPath:"#/properties/iri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/iri",schemaPath:"#/properties/iri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.sourceSystem){let s=e.sourceSystem;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/sourceSystem",schemaPath:"#/properties/sourceSystem/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/sourceSystem",schemaPath:"#/properties/sourceSystem/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.links&&(Ke(e.links,{instancePath:t+"/links",parentData:e,parentDataProperty:"links",rootData:i})||(o=null===o?Ke.errors:o.concat(Ke.errors),p=o.length)),void 0!==e.version&&(Qe(e.version,{instancePath:t+"/version",parentData:e,parentDataProperty:"version",rootData:i})||(o=null===o?Qe.errors:o.concat(Qe.errors),p=o.length)),void 0!==e.exclusions&&(Ye(e.exclusions,{instancePath:t+"/exclusions",parentData:e,parentDataProperty:"exclusions",rootData:i})||(o=null===o?Ye.errors:o.concat(Ye.errors),p=o.length)),void 0!==e.selectedByDefault&&"boolean"!=typeof e.selectedByDefault){const e={instancePath:t+"/selectedByDefault",schemaPath:"#/properties/selectedByDefault/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===o?o=[e]:o.push(e),p++}return et.errors=o,0===p}function tt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){const s=e.length;for(let a=0;a<s;a++)et(e[a],{instancePath:t+"/"+a,parentData:e,parentDataProperty:a,rootData:r})||(i=null===i?et.errors:i.concat(et.errors),n=i.length);let a,o=e.length;if(o>1)e:for(;o--;)for(a=o;a--;)if(Me(e[o],e[a])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:o,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+o+" are identical)"};null===i?i=[e]:i.push(e),n++;break e}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return tt.errors=i,0===n}const st={uri:{type:"string",format:"uri"},name:{type:"string",minLength:1},vsCollection:{type:"string",format:"uri"},exclusions:{$ref:"#/definitions/valueConstraintsValueSetsExclusionsFieldContent"},selectedByDefault:{type:"boolean"},numTerms:{type:"integer",minimum:0},iri:{type:"string",format:"uri"},sourceSystem:{type:"string",minLength:1},links:{$ref:"#/definitions/valueConstraintsLinksFieldContent"},version:{$ref:"#/definitions/valueConstraintsVersionFieldContent"}};function at(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(Array.isArray(e)){const s=e.length;for(let a=0;a<s;a++){let s=e[a];if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/"+a,schemaPath:"#/items/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/"+a,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}let a,i=e.length;if(i>1){const s={};for(;i--;){let r=e[i];if("string"==typeof r){if("number"==typeof s[r]){a=s[r];const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+i+" are identical)"};null===n?n=[e]:n.push(e),o++;break}s[r]=i}}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===n?n=[e]:n.push(e),o++}return at.errors=n,0===o}function rt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let o=null,p=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.uri){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"uri"},message:"must have required property 'uri'"};null===o?o=[e]:o.push(e),p++}for(const s in e)if(!c.call(st,s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===o?o=[e]:o.push(e),p++}if(void 0!==e.uri){let s=e.uri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/uri",schemaPath:"#/properties/uri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/uri",schemaPath:"#/properties/uri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.name){let s=e.name;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/name",schemaPath:"#/properties/name/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.vsCollection){let s=e.vsCollection;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/vsCollection",schemaPath:"#/properties/vsCollection/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/vsCollection",schemaPath:"#/properties/vsCollection/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.exclusions&&(at(e.exclusions,{instancePath:t+"/exclusions",parentData:e,parentDataProperty:"exclusions",rootData:i})||(o=null===o?at.errors:o.concat(at.errors),p=o.length)),void 0!==e.selectedByDefault&&"boolean"!=typeof e.selectedByDefault){const e={instancePath:t+"/selectedByDefault",schemaPath:"#/properties/selectedByDefault/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===o?o=[e]:o.push(e),p++}if(void 0!==e.numTerms){let s=e.numTerms;if("number"!=typeof s||s%1||isNaN(s)){const e={instancePath:t+"/numTerms",schemaPath:"#/properties/numTerms/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),p++}if("number"==typeof s&&(s<0||isNaN(s))){const e={instancePath:t+"/numTerms",schemaPath:"#/properties/numTerms/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.iri){let s=e.iri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/iri",schemaPath:"#/properties/iri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/iri",schemaPath:"#/properties/iri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.sourceSystem){let s=e.sourceSystem;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/sourceSystem",schemaPath:"#/properties/sourceSystem/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/sourceSystem",schemaPath:"#/properties/sourceSystem/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}void 0!==e.links&&(Ke(e.links,{instancePath:t+"/links",parentData:e,parentDataProperty:"links",rootData:i})||(o=null===o?Ke.errors:o.concat(Ke.errors),p=o.length)),void 0!==e.version&&(Qe(e.version,{instancePath:t+"/version",parentData:e,parentDataProperty:"version",rootData:i})||(o=null===o?Qe.errors:o.concat(Qe.errors),p=o.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===o?o=[e]:o.push(e),p++}return rt.errors=o,0===p}function it(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){const s=e.length;for(let a=0;a<s;a++)rt(e[a],{instancePath:t+"/"+a,parentData:e,parentDataProperty:a,rootData:r})||(i=null===i?rt.errors:i.concat(rt.errors),n=i.length);let a,o=e.length;if(o>1)e:for(;o--;)for(a=o;a--;)if(Me(e[o],e[a])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:o,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+o+" are identical)"};null===i?i=[e]:i.push(e),n++;break e}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return it.errors=i,0===n}const nt={uri:{type:"string",format:"uri"},prefLabel:{type:"string",minLength:1},type:{type:"string",minLength:1},label:{type:"string",minLength:1},source:{type:"string",minLength:1},iri:{type:"string",format:"uri"},sourceSystem:{type:"string",minLength:1},links:{$ref:"#/definitions/valueConstraintsLinksFieldContent"},version:{$ref:"#/definitions/valueConstraintsVersionFieldContent"},selectedByDefault:{type:"boolean"}};function ot(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let o=null,p=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.uri){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"uri"},message:"must have required property 'uri'"};null===o?o=[e]:o.push(e),p++}if(void 0===e.prefLabel){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"prefLabel"},message:"must have required property 'prefLabel'"};null===o?o=[e]:o.push(e),p++}if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===o?o=[e]:o.push(e),p++}if(void 0===e.label){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};null===o?o=[e]:o.push(e),p++}if(void 0===e.source){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'"};null===o?o=[e]:o.push(e),p++}for(const s in e)if(!c.call(nt,s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===o?o=[e]:o.push(e),p++}if(void 0!==e.uri){let s=e.uri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/uri",schemaPath:"#/properties/uri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/uri",schemaPath:"#/properties/uri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.prefLabel){let s=e.prefLabel;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/prefLabel",schemaPath:"#/properties/prefLabel/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/prefLabel",schemaPath:"#/properties/prefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.type){let s=e.type;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/type",schemaPath:"#/properties/type/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.label){let s=e.label;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/label",schemaPath:"#/properties/label/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.source){let s=e.source;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/source",schemaPath:"#/properties/source/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.iri){let s=e.iri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/iri",schemaPath:"#/properties/iri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/iri",schemaPath:"#/properties/iri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.sourceSystem){let s=e.sourceSystem;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/sourceSystem",schemaPath:"#/properties/sourceSystem/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/sourceSystem",schemaPath:"#/properties/sourceSystem/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.links&&(Ke(e.links,{instancePath:t+"/links",parentData:e,parentDataProperty:"links",rootData:i})||(o=null===o?Ke.errors:o.concat(Ke.errors),p=o.length)),void 0!==e.version&&(Qe(e.version,{instancePath:t+"/version",parentData:e,parentDataProperty:"version",rootData:i})||(o=null===o?Qe.errors:o.concat(Qe.errors),p=o.length)),void 0!==e.selectedByDefault&&"boolean"!=typeof e.selectedByDefault){const e={instancePath:t+"/selectedByDefault",schemaPath:"#/properties/selectedByDefault/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===o?o=[e]:o.push(e),p++}return ot.errors=o,0===p}function pt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){const s=e.length;for(let a=0;a<s;a++)ot(e[a],{instancePath:t+"/"+a,parentData:e,parentDataProperty:a,rootData:r})||(i=null===i?ot.errors:i.concat(ot.errors),n=i.length);let a,o=e.length;if(o>1)e:for(;o--;)for(a=o;a--;)if(Me(e[o],e[a])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:o,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+o+" are identical)"};null===i?i=[e]:i.push(e),n++;break e}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return pt.errors=i,0===n}const mt={source:{type:"string",minLength:1},acronym:{type:"string",minLength:1},name:{type:"string",minLength:1},uri:{type:"string",format:"uri"},maxDepth:{type:"integer",minimum:0},iri:{type:"string",format:"uri"},sourceSystem:{type:"string",minLength:1},links:{$ref:"#/definitions/valueConstraintsLinksFieldContent"},version:{$ref:"#/definitions/valueConstraintsVersionFieldContent"},selectedByDefault:{type:"boolean"}};function ut(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let o=null,p=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.source){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'"};null===o?o=[e]:o.push(e),p++}if(void 0===e.acronym){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"acronym"},message:"must have required property 'acronym'"};null===o?o=[e]:o.push(e),p++}if(void 0===e.name){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};null===o?o=[e]:o.push(e),p++}if(void 0===e.uri){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"uri"},message:"must have required property 'uri'"};null===o?o=[e]:o.push(e),p++}if(void 0===e.maxDepth){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"maxDepth"},message:"must have required property 'maxDepth'"};null===o?o=[e]:o.push(e),p++}for(const s in e)if(!c.call(mt,s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===o?o=[e]:o.push(e),p++}if(void 0!==e.source){let s=e.source;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/source",schemaPath:"#/properties/source/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.acronym){let s=e.acronym;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/acronym",schemaPath:"#/properties/acronym/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/acronym",schemaPath:"#/properties/acronym/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.name){let s=e.name;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/name",schemaPath:"#/properties/name/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.uri){let s=e.uri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/uri",schemaPath:"#/properties/uri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/uri",schemaPath:"#/properties/uri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.maxDepth){let s=e.maxDepth;if("number"!=typeof s||s%1||isNaN(s)){const e={instancePath:t+"/maxDepth",schemaPath:"#/properties/maxDepth/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),p++}if("number"==typeof s&&(s<0||isNaN(s))){const e={instancePath:t+"/maxDepth",schemaPath:"#/properties/maxDepth/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.iri){let s=e.iri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/iri",schemaPath:"#/properties/iri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/iri",schemaPath:"#/properties/iri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.sourceSystem){let s=e.sourceSystem;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/sourceSystem",schemaPath:"#/properties/sourceSystem/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/sourceSystem",schemaPath:"#/properties/sourceSystem/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.links&&(Ke(e.links,{instancePath:t+"/links",parentData:e,parentDataProperty:"links",rootData:i})||(o=null===o?Ke.errors:o.concat(Ke.errors),p=o.length)),void 0!==e.version&&(Qe(e.version,{instancePath:t+"/version",parentData:e,parentDataProperty:"version",rootData:i})||(o=null===o?Qe.errors:o.concat(Qe.errors),p=o.length)),void 0!==e.selectedByDefault&&"boolean"!=typeof e.selectedByDefault){const e={instancePath:t+"/selectedByDefault",schemaPath:"#/properties/selectedByDefault/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===o?o=[e]:o.push(e),p++}return ut.errors=o,0===p}function lt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){const s=e.length;for(let a=0;a<s;a++)ut(e[a],{instancePath:t+"/"+a,parentData:e,parentDataProperty:a,rootData:r})||(i=null===i?ut.errors:i.concat(ut.errors),n=i.length);let a,o=e.length;if(o>1)e:for(;o--;)for(a=o;a--;)if(Me(e[o],e[a])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:o,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+o+" are identical)"};null===i?i=[e]:i.push(e),n++;break e}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return lt.errors=i,0===n}function ht(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.label){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};null===i?i=[e]:i.push(e),o++}for(const s in e)if("label"!==s&&"selectedByDefault"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),o++}if(void 0!==e.label){let s=e.label;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/label",schemaPath:"#/properties/label/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===i?i=[e]:i.push(e),o++}}else{const e={instancePath:t+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),o++}}if(void 0!==e.selectedByDefault&&"boolean"!=typeof e.selectedByDefault){const e={instancePath:t+"/selectedByDefault",schemaPath:"#/properties/selectedByDefault/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),o++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),o++}return ht.errors=i,0===o}function ct(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){const s=e.length;for(let a=0;a<s;a++)ht(e[a],{instancePath:t+"/"+a,parentData:e,parentDataProperty:a,rootData:r})||(i=null===i?ht.errors:i.concat(ht.errors),n=i.length);let a,o=e.length;if(o>1)e:for(;o--;)for(a=o;a--;)if(Me(e[o],e[a])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:o,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+o+" are identical)"};null===i?i=[e]:i.push(e),n++;break e}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return ct.errors=i,0===n}const dt={type:"object",properties:{action:{type:"string",enum:["move","delete"]},to:{type:"integer"},type:{type:"string",enum:["Value","OntologyClass"]},source:{type:"string"},sourceUri:{type:"string",format:"uri"},termUri:{type:"string",format:"uri"}},required:["action","termUri","type","source","sourceUri"],additionalProperties:!1};function yt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.action){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"action"},message:"must have required property 'action'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.termUri){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"termUri"},message:"must have required property 'termUri'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.source){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.sourceUri){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"sourceUri"},message:"must have required property 'sourceUri'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if("action"!==s&&"to"!==s&&"type"!==s&&"source"!==s&&"sourceUri"!==s&&"termUri"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.action){let s=e.action;if("string"!=typeof s){const e={instancePath:t+"/action",schemaPath:"#/properties/action/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("move"!==s&&"delete"!==s){const e={instancePath:t+"/action",schemaPath:"#/properties/action/enum",keyword:"enum",params:{allowedValues:dt.properties.action.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.to){let s=e.to;if("number"!=typeof s||s%1||isNaN(s)){const e={instancePath:t+"/to",schemaPath:"#/properties/to/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("Value"!==s&&"OntologyClass"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:dt.properties.type.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.source&&"string"!=typeof e.source){const e={instancePath:t+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.sourceUri){let s=e.sourceUri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/sourceUri",schemaPath:"#/properties/sourceUri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/sourceUri",schemaPath:"#/properties/sourceUri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.termUri){let s=e.termUri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/termUri",schemaPath:"#/properties/termUri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/termUri",schemaPath:"#/properties/termUri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return yt.errors=n,0===o}function ft(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){const s=e.length;for(let a=0;a<s;a++)yt(e[a],{instancePath:t+"/"+a,parentData:e,parentDataProperty:a,rootData:r})||(i=null===i?yt.errors:i.concat(yt.errors),n=i.length);let a,o=e.length;if(o>1)e:for(;o--;)for(a=o;a--;)if(Me(e[o],e[a])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:o,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+o+" are identical)"};null===i?i=[e]:i.push(e),n++;break e}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return ft.errors=i,0===n}function Pt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.requiredValue){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"requiredValue"},message:"must have required property 'requiredValue'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if(!c.call(Ge.properties,s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.requiredValue&&"boolean"!=typeof e.requiredValue){const e={instancePath:t+"/requiredValue",schemaPath:"#/properties/requiredValue/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.recommendedValue&&"boolean"!=typeof e.recommendedValue){const e={instancePath:t+"/recommendedValue",schemaPath:"#/properties/recommendedValue/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.multipleChoice&&"boolean"!=typeof e.multipleChoice){const e={instancePath:t+"/multipleChoice",schemaPath:"#/properties/multipleChoice/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.minLength){let s=e.minLength;if("number"!=typeof s||s%1||isNaN(s)){const e={instancePath:t+"/minLength",schemaPath:"#/properties/minLength/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.maxLength){let s=e.maxLength;if("number"!=typeof s||s%1||isNaN(s)){const e={instancePath:t+"/maxLength",schemaPath:"#/properties/maxLength/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.regex&&"string"!=typeof e.regex){const e={instancePath:t+"/regex",schemaPath:"#/properties/regex/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.minValue&&"number"!=typeof e.minValue){const e={instancePath:t+"/minValue",schemaPath:"#/properties/minValue/type",keyword:"type",params:{type:"number"},message:"must be number"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.maxValue&&"number"!=typeof e.maxValue){const e={instancePath:t+"/maxValue",schemaPath:"#/properties/maxValue/type",keyword:"type",params:{type:"number"},message:"must be number"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.decimalPlace&&"number"!=typeof e.decimalPlace){const e={instancePath:t+"/decimalPlace",schemaPath:"#/properties/decimalPlace/type",keyword:"type",params:{type:"number"},message:"must be number"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.unitOfMeasure&&"string"!=typeof e.unitOfMeasure){const e={instancePath:t+"/unitOfMeasure",schemaPath:"#/properties/unitOfMeasure/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.defaultValue){let s=e.defaultValue;const a=n;let p=!1,m=null;const u=n;Je(s,{instancePath:t+"/defaultValue",parentData:e,parentDataProperty:"defaultValue",rootData:r})||(i=null===i?Je.errors:i.concat(Je.errors),n=i.length),u===n&&(p=!0,m=0);const l=n;var o;if(We(s,{instancePath:t+"/defaultValue",parentData:e,parentDataProperty:"defaultValue",rootData:r})||(i=null===i?We.errors:i.concat(We.errors),n=i.length),(o=l===n)&&p?(p=!1,m=[m,1]):o&&(p=!0,m=1),p)n=a,null!==i&&(a?i.length=a:i=null);else{const e={instancePath:t+"/defaultValue",schemaPath:"#/properties/defaultValue/oneOf",keyword:"oneOf",params:{passingSchemas:m},message:"must match exactly one schema in oneOf"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.numberType){let s=e.numberType;if("string"!=typeof s){const e={instancePath:t+"/numberType",schemaPath:"#/properties/numberType/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:decimal"!==s&&"xsd:long"!==s&&"xsd:int"!==s&&"xsd:double"!==s&&"xsd:float"!==s&&"xsd:byte"!==s&&"xsd:short"!==s){const e={instancePath:t+"/numberType",schemaPath:"#/properties/numberType/enum",keyword:"enum",params:{allowedValues:Ge.properties.numberType.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.temporalType){let s=e.temporalType;if("string"!=typeof s){const e={instancePath:t+"/temporalType",schemaPath:"#/properties/temporalType/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:dateTime"!==s&&"xsd:date"!==s&&"xsd:time"!==s){const e={instancePath:t+"/temporalType",schemaPath:"#/properties/temporalType/enum",keyword:"enum",params:{allowedValues:Ge.properties.temporalType.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}void 0!==e.ontologies&&(tt(e.ontologies,{instancePath:t+"/ontologies",parentData:e,parentDataProperty:"ontologies",rootData:r})||(i=null===i?tt.errors:i.concat(tt.errors),n=i.length)),void 0!==e.valueSets&&(it(e.valueSets,{instancePath:t+"/valueSets",parentData:e,parentDataProperty:"valueSets",rootData:r})||(i=null===i?it.errors:i.concat(it.errors),n=i.length)),void 0!==e.classes&&(pt(e.classes,{instancePath:t+"/classes",parentData:e,parentDataProperty:"classes",rootData:r})||(i=null===i?pt.errors:i.concat(pt.errors),n=i.length)),void 0!==e.branches&&(lt(e.branches,{instancePath:t+"/branches",parentData:e,parentDataProperty:"branches",rootData:r})||(i=null===i?lt.errors:i.concat(lt.errors),n=i.length)),void 0!==e.literals&&(ct(e.literals,{instancePath:t+"/literals",parentData:e,parentDataProperty:"literals",rootData:r})||(i=null===i?ct.errors:i.concat(ct.errors),n=i.length)),void 0!==e.actions&&(ft(e.actions,{instancePath:t+"/actions",parentData:e,parentDataProperty:"actions",rootData:r})||(i=null===i?ft.errors:i.concat(ft.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Pt.errors=i,0===n}const gt={type:"object",properties:{xsd:{type:"string",format:"uri",enum:["http://www.w3.org/2001/XMLSchema#"]},pav:{type:"string",format:"uri",enum:["http://purl.org/pav/"]},schema:{type:"string",format:"uri",enum:["http://schema.org/"]},oslc:{type:"string",format:"uri",enum:["http://open-services.net/ns/core#"]},skos:{type:"string",format:"uri",enum:["http://www.w3.org/2004/02/skos/core#"]},bibo:{type:"string",format:"uri",enum:["http://purl.org/ontology/bibo/"]},"schema:name":{$ref:"#/definitions/schemaNameContextFieldContent"},"schema:description":{$ref:"#/definitions/schemaDescriptionContextFieldContent"},"skos:prefLabel":{$ref:"#/definitions/skosPrefLabelContextFieldContent"},"skos:altLabel":{$ref:"#/definitions/skosAltLabelContextFieldContent"},"pav:createdOn":{$ref:"#/definitions/pavCreatedOnContextFieldContent"},"pav:createdBy":{$ref:"#/definitions/pavCreatedByContextFieldContent"},"pav:lastUpdatedOn":{$ref:"#/definitions/pavLastUpdatedOnContextFieldContent"},"oslc:modifiedBy":{$ref:"#/definitions/oslcModifiedByContextFieldContent"},_annotations:{type:"string",enum:["@nest"]}},patternProperties:{"^(?!(schema|xsd|pav|oslc|skos|_annotations|\\$))[^.]+$":{type:"string",format:"uri"}},additionalProperties:!1,required:["xsd","pav","schema","oslc","skos","schema:name","schema:description","skos:prefLabel","skos:altLabel","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy"]},vt=new RegExp("^(?!(schema|xsd|pav|oslc|skos|_annotations|\\$))[^.]+$","u");function wt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let s=e["@type"];if("string"!=typeof s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:string"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:y.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return wt.errors=i,0===n}function bt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let s=e["@type"];if("string"!=typeof s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:string"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:y.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return bt.errors=i,0===n}function kt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.xsd){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"xsd"},message:"must have required property 'xsd'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.pav){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav"},message:"must have required property 'pav'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.schema){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema"},message:"must have required property 'schema'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.oslc){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc"},message:"must have required property 'oslc'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.skos){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"skos"},message:"must have required property 'skos'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["schema:name"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["schema:description"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["skos:prefLabel"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"skos:prefLabel"},message:"must have required property 'skos:prefLabel'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["skos:altLabel"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"skos:altLabel"},message:"must have required property 'skos:altLabel'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["pav:createdOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["pav:createdBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["pav:lastUpdatedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["oslc:modifiedBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if(!c.call(gt.properties,s)&&!vt.test(s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.xsd){let s=e.xsd;if("http://www.w3.org/2001/XMLSchema#"!==s){const e={instancePath:t+"/xsd",schemaPath:"#/properties/xsd/enum",keyword:"enum",params:{allowedValues:gt.properties.xsd.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/xsd",schemaPath:"#/properties/xsd/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/xsd",schemaPath:"#/properties/xsd/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.pav){let s=e.pav;if("http://purl.org/pav/"!==s){const e={instancePath:t+"/pav",schemaPath:"#/properties/pav/enum",keyword:"enum",params:{allowedValues:gt.properties.pav.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/pav",schemaPath:"#/properties/pav/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/pav",schemaPath:"#/properties/pav/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.schema){let s=e.schema;if("http://schema.org/"!==s){const e={instancePath:t+"/schema",schemaPath:"#/properties/schema/enum",keyword:"enum",params:{allowedValues:gt.properties.schema.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/schema",schemaPath:"#/properties/schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/schema",schemaPath:"#/properties/schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.oslc){let s=e.oslc;if("http://open-services.net/ns/core#"!==s){const e={instancePath:t+"/oslc",schemaPath:"#/properties/oslc/enum",keyword:"enum",params:{allowedValues:gt.properties.oslc.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/oslc",schemaPath:"#/properties/oslc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/oslc",schemaPath:"#/properties/oslc/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.skos){let s=e.skos;if("http://www.w3.org/2004/02/skos/core#"!==s){const e={instancePath:t+"/skos",schemaPath:"#/properties/skos/enum",keyword:"enum",params:{allowedValues:gt.properties.skos.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/skos",schemaPath:"#/properties/skos/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/skos",schemaPath:"#/properties/skos/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.bibo){let s=e.bibo;if("http://purl.org/ontology/bibo/"!==s){const e={instancePath:t+"/bibo",schemaPath:"#/properties/bibo/enum",keyword:"enum",params:{allowedValues:gt.properties.bibo.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/bibo",schemaPath:"#/properties/bibo/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/bibo",schemaPath:"#/properties/bibo/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e["schema:name"]&&(f(e["schema:name"],{instancePath:t+"/schema:name",parentData:e,parentDataProperty:"schema:name",rootData:i})||(n=null===n?f.errors:n.concat(f.errors),o=n.length)),void 0!==e["schema:description"]&&(P(e["schema:description"],{instancePath:t+"/schema:description",parentData:e,parentDataProperty:"schema:description",rootData:i})||(n=null===n?P.errors:n.concat(P.errors),o=n.length)),void 0!==e["skos:prefLabel"]&&(wt(e["skos:prefLabel"],{instancePath:t+"/skos:prefLabel",parentData:e,parentDataProperty:"skos:prefLabel",rootData:i})||(n=null===n?wt.errors:n.concat(wt.errors),o=n.length)),void 0!==e["skos:altLabel"]&&(bt(e["skos:altLabel"],{instancePath:t+"/skos:altLabel",parentData:e,parentDataProperty:"skos:altLabel",rootData:i})||(n=null===n?bt.errors:n.concat(bt.errors),o=n.length)),void 0!==e["pav:createdOn"]&&(v(e["pav:createdOn"],{instancePath:t+"/pav:createdOn",parentData:e,parentDataProperty:"pav:createdOn",rootData:i})||(n=null===n?v.errors:n.concat(v.errors),o=n.length)),void 0!==e["pav:createdBy"]&&(b(e["pav:createdBy"],{instancePath:t+"/pav:createdBy",parentData:e,parentDataProperty:"pav:createdBy",rootData:i})||(n=null===n?b.errors:n.concat(b.errors),o=n.length)),void 0!==e["pav:lastUpdatedOn"]&&(k(e["pav:lastUpdatedOn"],{instancePath:t+"/pav:lastUpdatedOn",parentData:e,parentDataProperty:"pav:lastUpdatedOn",rootData:i})||(n=null===n?k.errors:n.concat(k.errors),o=n.length)),void 0!==e["oslc:modifiedBy"]&&(q(e["oslc:modifiedBy"],{instancePath:t+"/oslc:modifiedBy",parentData:e,parentDataProperty:"oslc:modifiedBy",rootData:i})||(n=null===n?q.errors:n.concat(q.errors),o=n.length)),void 0!==e._annotations){let s=e._annotations;if("string"!=typeof s){const e={instancePath:t+"/_annotations",schemaPath:"#/properties/_annotations/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("@nest"!==s){const e={instancePath:t+"/_annotations",schemaPath:"#/properties/_annotations/enum",keyword:"enum",params:{allowedValues:gt.properties._annotations.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}for(const s in e)if(vt.test(s)){let a=e[s];if("string"==typeof a){if(!r.validate(a)){const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E(%3F!(schema%7Cxsd%7Cpav%7Coslc%7Cskos%7C_annotations%7C%5C%24))%5B%5E.%5D%2B%24/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E(%3F!(schema%7Cxsd%7Cpav%7Coslc%7Cskos%7C_annotations%7C%5C%24))%5B%5E.%5D%2B%24/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return kt.errors=n,0===o}const qt={type:"array",minItems:2,maxItems:2,items:[{type:"string",enum:["number"]},{type:"string",enum:["null"]}]};function Dt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){if(e.length>2){const e={instancePath:t,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items"};null===i?i=[e]:i.push(e),n++}if(e.length<2){const e={instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};null===i?i=[e]:i.push(e),n++}const s=e.length;if(s>0){let s=e[0];if("string"!=typeof s){const e={instancePath:t+"/0",schemaPath:"#/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("number"!==s){const e={instancePath:t+"/0",schemaPath:"#/items/0/enum",keyword:"enum",params:{allowedValues:qt.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>1){let s=e[1];if("string"!=typeof s){const e={instancePath:t+"/1",schemaPath:"#/items/1/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("null"!==s){const e={instancePath:t+"/1",schemaPath:"#/items/1/enum",keyword:"enum",params:{allowedValues:qt.items[1].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return Dt.errors=i,0===n}const Ot={type:"array",minItems:2,maxItems:2,items:[{type:"string",enum:["array"]},{type:"string",enum:["null"]}]};function At(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){if(e.length>2){const e={instancePath:t,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items"};null===i?i=[e]:i.push(e),n++}if(e.length<2){const e={instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};null===i?i=[e]:i.push(e),n++}const s=e.length;if(s>0){let s=e[0];if("string"!=typeof s){const e={instancePath:t+"/0",schemaPath:"#/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("array"!==s){const e={instancePath:t+"/0",schemaPath:"#/items/0/enum",keyword:"enum",params:{allowedValues:Ot.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>1){let s=e[1];if("string"!=typeof s){const e={instancePath:t+"/1",schemaPath:"#/items/1/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("null"!==s){const e={instancePath:t+"/1",schemaPath:"#/items/1/enum",keyword:"enum",params:{allowedValues:Ot.items[1].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return At.errors=i,0===n}function xt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;const a=n;let p=!1,m=null;const u=n;Ve(s,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?Ve.errors:i.concat(Ve.errors),n=i.length),(o=u===n)&&(p=!0,m=0);const l=n;if(Dt(s,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?Dt.errors:i.concat(Dt.errors),n=i.length),(o=l===n)&&p)p=!1,m=[m,1];else{o&&(p=!0,m=1);const a=n;var o;At(s,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?At.errors:i.concat(At.errors),n=i.length),(o=a===n)&&p?(p=!1,m=[m,2]):o&&(p=!0,m=2)}if(p)n=a,null!==i&&(a?i.length=a:i=null);else{const e={instancePath:t+"/type",schemaPath:"#/properties/type/oneOf",keyword:"oneOf",params:{passingSchemas:m},message:"must match exactly one schema in oneOf"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return xt.errors=i,0===n}function jt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}void 0!==e.type&&(Ve(e.type,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?Ve.errors:i.concat(Ve.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return jt.errors=i,0===n}function Vt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}void 0!==e.type&&(Ve(e.type,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?Ve.errors:i.concat(Ve.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Vt.errors=i,0===n}function Tt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s&&"@id"!==s&&"@value"!==s&&"rdfs:label"!==s&&"skos:notation"!==s&&"@language"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}void 0!==e["@type"]&&(we(e["@type"],{instancePath:t+"/@type",parentData:e,parentDataProperty:"@type",rootData:r})||(i=null===i?we.errors:i.concat(we.errors),n=i.length)),void 0!==e["@id"]&&(Ue(e["@id"],{instancePath:t+"/@id",parentData:e,parentDataProperty:"@id",rootData:r})||(i=null===i?Ue.errors:i.concat(Ue.errors),n=i.length)),void 0!==e["@value"]&&(xt(e["@value"],{instancePath:t+"/@value",parentData:e,parentDataProperty:"@value",rootData:r})||(i=null===i?xt.errors:i.concat(xt.errors),n=i.length)),void 0!==e["rdfs:label"]&&(jt(e["rdfs:label"],{instancePath:t+"/rdfs:label",parentData:e,parentDataProperty:"rdfs:label",rootData:r})||(i=null===i?jt.errors:i.concat(jt.errors),n=i.length)),void 0!==e["skos:notation"]&&(Vt(e["skos:notation"],{instancePath:t+"/skos:notation",parentData:e,parentDataProperty:"skos:notation",rootData:r})||(i=null===i?Vt.errors:i.concat(Vt.errors),n=i.length)),void 0!==e["@language"]&&(se(e["@language"],{instancePath:t+"/@language",parentData:e,parentDataProperty:"@language",rootData:r})||(i=null===i?se.errors:i.concat(se.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Tt.errors=i,0===n}function Bt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(!e||"object"!=typeof e||Array.isArray(e)){const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Bt.errors=i,0===n}const $t=new RegExp("^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$","u");function Lt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:p=e}={}){let m=null,u=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.$schema){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.title){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.description){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===m?m=[e]:m.push(e),u++}if(void 0===e._ui){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===m?m=[e]:m.push(e),u++}if(void 0===e._valueConstraints){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_valueConstraints"},message:"must have required property '_valueConstraints'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["@context"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["@id"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.additionalProperties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["pav:createdOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["pav:createdBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["pav:lastUpdatedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["oslc:modifiedBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["schema:schemaVersion"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["schema:name"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["schema:description"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===m?m=[e]:m.push(e),u++}if(void 0!==e.$schema){let s=e.$schema;if("http://json-schema.org/draft-04/schema#"!==s){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:Re.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Re.properties.type.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["schema:identifier"]){let s=e["schema:identifier"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["schema:name"]){let s=e["schema:name"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["schema:description"]&&"string"!=typeof e["schema:description"]){const e={instancePath:t+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if(void 0!==e["skos:prefLabel"]&&"string"!=typeof e["skos:prefLabel"]){const e={instancePath:t+"/skos:prefLabel",schemaPath:"#/properties/skos%3AprefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if(void 0!==e["skos:altLabel"]){let s=e["skos:altLabel"];if(Array.isArray(s)){let e,a=s.length;if(a>1)e:for(;a--;)for(e=a;e--;)if(Me(s[a],s[e])){const s={instancePath:t+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/uniqueItems",keyword:"uniqueItems",params:{i:a,j:e},message:"must NOT have duplicate items (items ## "+e+" and "+a+" are identical)"};null===m?m=[s]:m.push(s),u++;break e}}else{const e={instancePath:t+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/type",keyword:"type",params:{type:"array"},message:"must be array"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e.title){let s=e.title;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e.description){let s=e.description;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e._ui&&(Ze(e._ui,{instancePath:t+"/_ui",parentData:e,parentDataProperty:"_ui",rootData:p})||(m=null===m?Ze.errors:m.concat(Ze.errors),u=m.length)),void 0!==e._valueConstraints&&(Pt(e._valueConstraints,{instancePath:t+"/_valueConstraints",parentData:e,parentDataProperty:"_valueConstraints",rootData:p})||(m=null===m?Pt.errors:m.concat(Pt.errors),u=m.length)),void 0!==e["@context"]&&(kt(e["@context"],{instancePath:t+"/@context",parentData:e,parentDataProperty:"@context",rootData:p})||(m=null===m?kt.errors:m.concat(kt.errors),u=m.length)),void 0!==e["@id"]){let s=e["@id"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:Re.properties["@id"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["@type"]){let s=e["@type"];if("https://schema.metadatacenter.org/core/TemplateField"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:Re.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e.properties&&(Tt(e.properties,{instancePath:t+"/properties",parentData:e,parentDataProperty:"properties",rootData:p})||(m=null===m?Tt.errors:m.concat(Tt.errors),u=m.length)),void 0!==e.required&&(o(e.required,{instancePath:t+"/required",parentData:e,parentDataProperty:"required",rootData:p})||(m=null===m?o.errors:m.concat(o.errors),u=m.length)),void 0!==e["pav:createdOn"]){let s=e["pav:createdOn"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:Re.properties["pav:createdOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s&&!i.validate(s)){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["pav:createdBy"]){let s=e["pav:createdBy"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:Re.properties["pav:createdBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["pav:lastUpdatedOn"]){let s=e["pav:lastUpdatedOn"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:Re.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s&&!i.validate(s)){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["oslc:modifiedBy"]){let s=e["oslc:modifiedBy"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:Re.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["bibo:status"]){let s=e["bibo:status"];if("string"!=typeof s){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("bibo:published"!==s&&"bibo:draft"!==s){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:Re.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["pav:version"]){let s=e["pav:version"];if("string"==typeof s){if(!$t.test(s)){const e={instancePath:t+"/pav:version",schemaPath:"#/properties/pav%3Aversion/pattern",keyword:"pattern",params:{pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},message:'must match pattern "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["pav:previousVersion"]){let s=e["pav:previousVersion"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["pav:derivedFrom"]){let s=e["pav:derivedFrom"];if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["@nest"]&&(Bt(e["@nest"],{instancePath:t+"/@nest",parentData:e,parentDataProperty:"@nest",rootData:p})||(m=null===m?Bt.errors:m.concat(Bt.errors),u=m.length)),void 0!==e.additionalProperties){let s=e.additionalProperties;if("boolean"!=typeof s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===m?m=[e]:m.push(e),u++}if(!1!==s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:Re.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["schema:schemaVersion"]){let s=e["schema:schemaVersion"];if("string"!=typeof s){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("1.6.0"!==s){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:Re.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===m?m=[e]:m.push(e),u++}return Lt.errors=m,0===u}const It={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{$schema:{type:"string",format:"uri",enum:["http://json-schema.org/draft-04/schema#"]},type:{type:"string",enum:["object"]},"schema:identifier":{type:"string",minLength:1},"schema:name":{type:"string",minLength:1},"skos:prefLabel":{type:"string"},"skos:altLabel":{type:"array",uniqueItems:!0},"schema:description":{type:"string"},title:{type:"string",minLength:1},description:{type:"string",minLength:1},_ui:{$ref:"#/definitions/iriFieldUIContent"},_valueConstraints:{$ref:"#/definitions/iriFieldValueConstraintsContent"},"@context":{$ref:"#/definitions/templateFieldJSONLDContextFieldContent"},"@id":{type:["string","null"],format:"uri"},"@type":{type:"string",format:"uri",enum:["https://schema.metadatacenter.org/core/TemplateField"]},properties:{$ref:"#/definitions/iriFieldPropertiesContent"},required:{$ref:"#/definitions/stringArray"},"pav:createdOn":{type:["string","null"],format:"date-time"},"pav:createdBy":{type:["string","null"],format:"uri"},"pav:lastUpdatedOn":{type:["string","null"],format:"date-time"},"oslc:modifiedBy":{type:["string","null"],format:"uri"},"bibo:status":{type:"string",enum:["bibo:published","bibo:draft"]},"pav:version":{type:"string",pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},"pav:previousVersion":{type:"string",minLength:1},"pav:derivedFrom":{type:"string",format:"uri"},additionalProperties:{type:"boolean",enum:[!1]},"schema:schemaVersion":{type:"string",enum:["1.6.0"]}},required:["$schema","type","title","description","_ui","_valueConstraints","@context","@id","@type","properties","additionalProperties","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy","schema:schemaVersion","schema:name","schema:description"]},Nt={type:"object",properties:{inputType:{type:"string",enum:["link","ext-ror","ext-orcid","ext-pfas","ext-rrid","ext-pubmed","ext-nih-grant-id","ext-doi"]},valueRecommendationEnabled:{type:"boolean"},hidden:{type:"boolean"},continuePreviousLine:{type:"boolean"}},required:["inputType"],additionalProperties:!1};function Ct(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.inputType){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"inputType"},message:"must have required property 'inputType'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("inputType"!==s&&"valueRecommendationEnabled"!==s&&"hidden"!==s&&"continuePreviousLine"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.inputType){let s=e.inputType;if("string"!=typeof s){const e={instancePath:t+"/inputType",schemaPath:"#/properties/inputType/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("link"!==s&&"ext-ror"!==s&&"ext-orcid"!==s&&"ext-pfas"!==s&&"ext-rrid"!==s&&"ext-pubmed"!==s&&"ext-nih-grant-id"!==s&&"ext-doi"!==s){const e={instancePath:t+"/inputType",schemaPath:"#/properties/inputType/enum",keyword:"enum",params:{allowedValues:Nt.properties.inputType.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.valueRecommendationEnabled&&"boolean"!=typeof e.valueRecommendationEnabled){const e={instancePath:t+"/valueRecommendationEnabled",schemaPath:"#/properties/valueRecommendationEnabled/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.hidden&&"boolean"!=typeof e.hidden){const e={instancePath:t+"/hidden",schemaPath:"#/properties/hidden/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.continuePreviousLine&&"boolean"!=typeof e.continuePreviousLine){const e={instancePath:t+"/continuePreviousLine",schemaPath:"#/properties/continuePreviousLine/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Ct.errors=i,0===n}const _t={type:"object",properties:{requiredValue:{type:"boolean"},recommendedValue:{type:"boolean"},multipleChoice:{type:"boolean",enum:[!1]},defaultValue:{oneOf:[{$ref:"#/definitions/valueConstraintsStringDefaultValueContent"},{$ref:"#/definitions/valueConstraintsUriDefaultValueContent"}]},ontologies:{$ref:"#/definitions/valueConstraintsOntologiesFieldContent"},valueSets:{$ref:"#/definitions/valueConstraintsValueSetsFieldContent"},classes:{$ref:"#/definitions/valueConstraintsClassesFieldContent"},branches:{$ref:"#/definitions/valueConstraintsBranchesFieldContent"},literals:{$ref:"#/definitions/valueConstraintsLiteralsFieldContent"},actions:{$ref:"#/definitions/valueConstraintsActionsFieldContent"}},required:["requiredValue"],additionalProperties:!1};function Ut(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.requiredValue){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"requiredValue"},message:"must have required property 'requiredValue'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if(!c.call(_t.properties,s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.requiredValue&&"boolean"!=typeof e.requiredValue){const e={instancePath:t+"/requiredValue",schemaPath:"#/properties/requiredValue/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.recommendedValue&&"boolean"!=typeof e.recommendedValue){const e={instancePath:t+"/recommendedValue",schemaPath:"#/properties/recommendedValue/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.multipleChoice){let s=e.multipleChoice;if("boolean"!=typeof s){const e={instancePath:t+"/multipleChoice",schemaPath:"#/properties/multipleChoice/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(!1!==s){const e={instancePath:t+"/multipleChoice",schemaPath:"#/properties/multipleChoice/enum",keyword:"enum",params:{allowedValues:_t.properties.multipleChoice.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.defaultValue){let s=e.defaultValue;const a=n;let p=!1,m=null;const u=n;Je(s,{instancePath:t+"/defaultValue",parentData:e,parentDataProperty:"defaultValue",rootData:r})||(i=null===i?Je.errors:i.concat(Je.errors),n=i.length),u===n&&(p=!0,m=0);const l=n;var o;if(We(s,{instancePath:t+"/defaultValue",parentData:e,parentDataProperty:"defaultValue",rootData:r})||(i=null===i?We.errors:i.concat(We.errors),n=i.length),(o=l===n)&&p?(p=!1,m=[m,1]):o&&(p=!0,m=1),p)n=a,null!==i&&(a?i.length=a:i=null);else{const e={instancePath:t+"/defaultValue",schemaPath:"#/properties/defaultValue/oneOf",keyword:"oneOf",params:{passingSchemas:m},message:"must match exactly one schema in oneOf"};null===i?i=[e]:i.push(e),n++}}void 0!==e.ontologies&&(tt(e.ontologies,{instancePath:t+"/ontologies",parentData:e,parentDataProperty:"ontologies",rootData:r})||(i=null===i?tt.errors:i.concat(tt.errors),n=i.length)),void 0!==e.valueSets&&(it(e.valueSets,{instancePath:t+"/valueSets",parentData:e,parentDataProperty:"valueSets",rootData:r})||(i=null===i?it.errors:i.concat(it.errors),n=i.length)),void 0!==e.classes&&(pt(e.classes,{instancePath:t+"/classes",parentData:e,parentDataProperty:"classes",rootData:r})||(i=null===i?pt.errors:i.concat(pt.errors),n=i.length)),void 0!==e.branches&&(lt(e.branches,{instancePath:t+"/branches",parentData:e,parentDataProperty:"branches",rootData:r})||(i=null===i?lt.errors:i.concat(lt.errors),n=i.length)),void 0!==e.literals&&(ct(e.literals,{instancePath:t+"/literals",parentData:e,parentDataProperty:"literals",rootData:r})||(i=null===i?ct.errors:i.concat(ct.errors),n=i.length)),void 0!==e.actions&&(ft(e.actions,{instancePath:t+"/actions",parentData:e,parentDataProperty:"actions",rootData:r})||(i=null===i?ft.errors:i.concat(ft.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Ut.errors=i,0===n}function Ft(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["@id"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["rdfs:label"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"rdfs:label"},message:"must have required property 'rdfs:label'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s&&"@id"!==s&&"rdfs:label"!==s&&"skos:notation"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}void 0!==e["@type"]&&(we(e["@type"],{instancePath:t+"/@type",parentData:e,parentDataProperty:"@type",rootData:r})||(i=null===i?we.errors:i.concat(we.errors),n=i.length)),void 0!==e["@id"]&&(Ue(e["@id"],{instancePath:t+"/@id",parentData:e,parentDataProperty:"@id",rootData:r})||(i=null===i?Ue.errors:i.concat(Ue.errors),n=i.length)),void 0!==e["rdfs:label"]&&(jt(e["rdfs:label"],{instancePath:t+"/rdfs:label",parentData:e,parentDataProperty:"rdfs:label",rootData:r})||(i=null===i?jt.errors:i.concat(jt.errors),n=i.length)),void 0!==e["skos:notation"]&&(Vt(e["skos:notation"],{instancePath:t+"/skos:notation",parentData:e,parentDataProperty:"skos:notation",rootData:r})||(i=null===i?Vt.errors:i.concat(Vt.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Ft.errors=i,0===n}function Et(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:p=e}={}){let m=null,u=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.$schema){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.title){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.description){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===m?m=[e]:m.push(e),u++}if(void 0===e._ui){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===m?m=[e]:m.push(e),u++}if(void 0===e._valueConstraints){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_valueConstraints"},message:"must have required property '_valueConstraints'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["@context"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["@id"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.additionalProperties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["pav:createdOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["pav:createdBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["pav:lastUpdatedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["oslc:modifiedBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["schema:schemaVersion"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["schema:name"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["schema:description"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===m?m=[e]:m.push(e),u++}if(void 0!==e.$schema){let s=e.$schema;if("http://json-schema.org/draft-04/schema#"!==s){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:It.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:It.properties.type.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["schema:identifier"]){let s=e["schema:identifier"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["schema:name"]){let s=e["schema:name"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["skos:prefLabel"]&&"string"!=typeof e["skos:prefLabel"]){const e={instancePath:t+"/skos:prefLabel",schemaPath:"#/properties/skos%3AprefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if(void 0!==e["skos:altLabel"]){let s=e["skos:altLabel"];if(Array.isArray(s)){let e,a=s.length;if(a>1)e:for(;a--;)for(e=a;e--;)if(Me(s[a],s[e])){const s={instancePath:t+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/uniqueItems",keyword:"uniqueItems",params:{i:a,j:e},message:"must NOT have duplicate items (items ## "+e+" and "+a+" are identical)"};null===m?m=[s]:m.push(s),u++;break e}}else{const e={instancePath:t+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/type",keyword:"type",params:{type:"array"},message:"must be array"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["schema:description"]&&"string"!=typeof e["schema:description"]){const e={instancePath:t+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if(void 0!==e.title){let s=e.title;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e.description){let s=e.description;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e._ui&&(Ct(e._ui,{instancePath:t+"/_ui",parentData:e,parentDataProperty:"_ui",rootData:p})||(m=null===m?Ct.errors:m.concat(Ct.errors),u=m.length)),void 0!==e._valueConstraints&&(Ut(e._valueConstraints,{instancePath:t+"/_valueConstraints",parentData:e,parentDataProperty:"_valueConstraints",rootData:p})||(m=null===m?Ut.errors:m.concat(Ut.errors),u=m.length)),void 0!==e["@context"]&&(kt(e["@context"],{instancePath:t+"/@context",parentData:e,parentDataProperty:"@context",rootData:p})||(m=null===m?kt.errors:m.concat(kt.errors),u=m.length)),void 0!==e["@id"]){let s=e["@id"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:It.properties["@id"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["@type"]){let s=e["@type"];if("https://schema.metadatacenter.org/core/TemplateField"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:It.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e.properties&&(Ft(e.properties,{instancePath:t+"/properties",parentData:e,parentDataProperty:"properties",rootData:p})||(m=null===m?Ft.errors:m.concat(Ft.errors),u=m.length)),void 0!==e.required&&(o(e.required,{instancePath:t+"/required",parentData:e,parentDataProperty:"required",rootData:p})||(m=null===m?o.errors:m.concat(o.errors),u=m.length)),void 0!==e["pav:createdOn"]){let s=e["pav:createdOn"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:It.properties["pav:createdOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s&&!i.validate(s)){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["pav:createdBy"]){let s=e["pav:createdBy"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:It.properties["pav:createdBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["pav:lastUpdatedOn"]){let s=e["pav:lastUpdatedOn"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:It.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s&&!i.validate(s)){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["oslc:modifiedBy"]){let s=e["oslc:modifiedBy"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:It.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["bibo:status"]){let s=e["bibo:status"];if("string"!=typeof s){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("bibo:published"!==s&&"bibo:draft"!==s){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:It.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["pav:version"]){let s=e["pav:version"];if("string"==typeof s){if(!$t.test(s)){const e={instancePath:t+"/pav:version",schemaPath:"#/properties/pav%3Aversion/pattern",keyword:"pattern",params:{pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},message:'must match pattern "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["pav:previousVersion"]){let s=e["pav:previousVersion"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["pav:derivedFrom"]){let s=e["pav:derivedFrom"];if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e.additionalProperties){let s=e.additionalProperties;if("boolean"!=typeof s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===m?m=[e]:m.push(e),u++}if(!1!==s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:It.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["schema:schemaVersion"]){let s=e["schema:schemaVersion"];if("string"!=typeof s){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("1.6.0"!==s){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:It.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===m?m=[e]:m.push(e),u++}return Et.errors=m,0===u}const St={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{$schema:{type:"string",format:"uri",enum:["http://json-schema.org/draft-04/schema#"]},type:{type:"string",enum:["object"]},"schema:name":{type:"string",minLength:1},"schema:description":{type:"string"},"skos:prefLabel":{type:"string"},title:{type:"string",minLength:1},description:{type:"string",minLength:1},_ui:{$ref:"#/definitions/staticFieldUIContent"},"@context":{type:"object",properties:{schema:{type:"string",format:"uri",enum:["http://schema.org/"]},pav:{type:"string",format:"uri",enum:["http://purl.org/pav/"]},oslc:{type:"string",format:"uri",enum:["http://open-services.net/ns/core#"]}},required:["schema","pav","oslc"]},"@id":{type:["string","null"],format:"uri"},"@type":{type:"string",format:"uri",enum:["https://schema.metadatacenter.org/core/StaticTemplateField"]},properties:{},"pav:createdOn":{type:["string","null"],format:"date-time"},"pav:createdBy":{type:["string","null"],format:"uri"},"pav:lastUpdatedOn":{type:["string","null"],format:"date-time"},"oslc:modifiedBy":{type:["string","null"],format:"uri"},"schema:schemaVersion":{type:"string",enum:["1.6.0"]},"bibo:status":{type:"string",enum:["bibo:published","bibo:draft"]},additionalProperties:{type:"boolean",enum:[!1]}},required:["$schema","type","title","description","_ui","@id","@type","additionalProperties","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy","schema:name","schema:description","schema:schemaVersion"]},Rt={type:"object",properties:{inputType:{type:"string",enum:["section-break","page-break","richtext","image","youtube"]},_content:{type:["string","null"]},_size:{$ref:"#/definitions/staticFieldUISizeContent"},hidden:{type:"boolean"}},required:["inputType","_content"],additionalProperties:!1};function Mt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const s in e)if("width"!==s&&"height"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.width&&"number"!=typeof e.width){const e={instancePath:t+"/width",schemaPath:"#/properties/width/type",keyword:"type",params:{type:"number"},message:"must be number"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.height&&"number"!=typeof e.height){const e={instancePath:t+"/height",schemaPath:"#/properties/height/type",keyword:"type",params:{type:"number"},message:"must be number"};null===i?i=[e]:i.push(e),n++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Mt.errors=i,0===n}function zt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.inputType){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"inputType"},message:"must have required property 'inputType'"};null===i?i=[e]:i.push(e),n++}if(void 0===e._content){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_content"},message:"must have required property '_content'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("inputType"!==s&&"_content"!==s&&"_size"!==s&&"hidden"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.inputType){let s=e.inputType;if("string"!=typeof s){const e={instancePath:t+"/inputType",schemaPath:"#/properties/inputType/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("section-break"!==s&&"page-break"!==s&&"richtext"!==s&&"image"!==s&&"youtube"!==s){const e={instancePath:t+"/inputType",schemaPath:"#/properties/inputType/enum",keyword:"enum",params:{allowedValues:Rt.properties.inputType.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e._content){let s=e._content;if("string"!=typeof s&&null!==s){const e={instancePath:t+"/_content",schemaPath:"#/properties/_content/type",keyword:"type",params:{type:Rt.properties._content.type},message:"must be string,null"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e._size&&(Mt(e._size,{instancePath:t+"/_size",parentData:e,parentDataProperty:"_size",rootData:r})||(i=null===i?Mt.errors:i.concat(Mt.errors),n=i.length)),void 0!==e.hidden&&"boolean"!=typeof e.hidden){const e={instancePath:t+"/hidden",schemaPath:"#/properties/hidden/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return zt.errors=i,0===n}function Zt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:o=e}={}){let p=null,m=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.$schema){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.title){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.description){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===p?p=[e]:p.push(e),m++}if(void 0===e._ui){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["@id"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.additionalProperties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["pav:createdOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["pav:createdBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["pav:lastUpdatedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["oslc:modifiedBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["schema:name"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["schema:description"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["schema:schemaVersion"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===p?p=[e]:p.push(e),m++}if(void 0!==e.$schema){let s=e.$schema;if("http://json-schema.org/draft-04/schema#"!==s){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:St.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:St.properties.type.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["schema:name"]){let s=e["schema:name"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["schema:description"]&&"string"!=typeof e["schema:description"]){const e={instancePath:t+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if(void 0!==e["skos:prefLabel"]&&"string"!=typeof e["skos:prefLabel"]){const e={instancePath:t+"/skos:prefLabel",schemaPath:"#/properties/skos%3AprefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if(void 0!==e.title){let s=e.title;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.description){let s=e.description;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e._ui&&(zt(e._ui,{instancePath:t+"/_ui",parentData:e,parentDataProperty:"_ui",rootData:o})||(p=null===p?zt.errors:p.concat(zt.errors),m=p.length)),void 0!==e["@context"]){let s=e["@context"];if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s.schema){const e={instancePath:t+"/@context",schemaPath:"#/properties/%40context/required",keyword:"required",params:{missingProperty:"schema"},message:"must have required property 'schema'"};null===p?p=[e]:p.push(e),m++}if(void 0===s.pav){const e={instancePath:t+"/@context",schemaPath:"#/properties/%40context/required",keyword:"required",params:{missingProperty:"pav"},message:"must have required property 'pav'"};null===p?p=[e]:p.push(e),m++}if(void 0===s.oslc){const e={instancePath:t+"/@context",schemaPath:"#/properties/%40context/required",keyword:"required",params:{missingProperty:"oslc"},message:"must have required property 'oslc'"};null===p?p=[e]:p.push(e),m++}if(void 0!==s.schema){let e=s.schema;if("http://schema.org/"!==e){const e={instancePath:t+"/@context/schema",schemaPath:"#/properties/%40context/properties/schema/enum",keyword:"enum",params:{allowedValues:St.properties["@context"].properties.schema.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:t+"/@context/schema",schemaPath:"#/properties/%40context/properties/schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/@context/schema",schemaPath:"#/properties/%40context/properties/schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==s.pav){let e=s.pav;if("http://purl.org/pav/"!==e){const e={instancePath:t+"/@context/pav",schemaPath:"#/properties/%40context/properties/pav/enum",keyword:"enum",params:{allowedValues:St.properties["@context"].properties.pav.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:t+"/@context/pav",schemaPath:"#/properties/%40context/properties/pav/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/@context/pav",schemaPath:"#/properties/%40context/properties/pav/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==s.oslc){let e=s.oslc;if("http://open-services.net/ns/core#"!==e){const e={instancePath:t+"/@context/oslc",schemaPath:"#/properties/%40context/properties/oslc/enum",keyword:"enum",params:{allowedValues:St.properties["@context"].properties.oslc.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:t+"/@context/oslc",schemaPath:"#/properties/%40context/properties/oslc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/@context/oslc",schemaPath:"#/properties/%40context/properties/oslc/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}}else{const e={instancePath:t+"/@context",schemaPath:"#/properties/%40context/type",keyword:"type",params:{type:"object"},message:"must be object"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["@id"]){let s=e["@id"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:St.properties["@id"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["@type"]){let s=e["@type"];if("https://schema.metadatacenter.org/core/StaticTemplateField"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:St.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:createdOn"]){let s=e["pav:createdOn"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:St.properties["pav:createdOn"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!i.validate(s)){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:createdBy"]){let s=e["pav:createdBy"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:St.properties["pav:createdBy"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:lastUpdatedOn"]){let s=e["pav:lastUpdatedOn"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:St.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!i.validate(s)){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["oslc:modifiedBy"]){let s=e["oslc:modifiedBy"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:St.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["schema:schemaVersion"]){let s=e["schema:schemaVersion"];if("string"!=typeof s){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if("1.6.0"!==s){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:St.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["bibo:status"]){let s=e["bibo:status"];if("string"!=typeof s){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if("bibo:published"!==s&&"bibo:draft"!==s){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:St.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.additionalProperties){let s=e.additionalProperties;if("boolean"!=typeof s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===p?p=[e]:p.push(e),m++}if(!1!==s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:St.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===p?p=[e]:p.push(e),m++}return Zt.errors=p,0===m}const Gt={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{$schema:{type:"string",format:"uri",enum:["http://json-schema.org/draft-04/schema#"]},type:{type:"string",enum:["object","array"]},"schema:identifier":{type:"string",minLength:1},"schema:name":{type:"string",minLength:1},"schema:description":{type:"string"},"skos:prefLabel":{type:"string"},"skos:altLabel":{type:"array",uniqueItems:!0},title:{type:"string",minLength:1},description:{type:"string",minLength:1},_ui:{$ref:"#/definitions/templateElementUIFieldContent"},"@context":{$ref:"#/definitions/templateElementJSONLDContextFieldContent"},"@id":{type:["string","null"],format:"uri"},"@type":{type:"string",format:"uri",enum:["https://schema.metadatacenter.org/core/TemplateElement"]},properties:{$ref:"#/definitions/templateElementPropertiesFieldContent"},required:{$ref:"#/definitions/templateElementRequiredContent"},"pav:createdOn":{type:["string","null"],format:"date-time"},"pav:createdBy":{type:["string","null"],format:"uri"},"pav:lastUpdatedOn":{type:["string","null"],format:"date-time"},"oslc:modifiedBy":{type:["string","null"],format:"uri"},additionalProperties:{oneOf:[{$ref:"#/definitions/falseOnlyAdditionalProperties"},{$ref:"#/definitions/defaultObjectSchemaAdditionalProperties"}]},"schema:schemaVersion":{type:"string",enum:["1.6.0"]},"bibo:status":{type:"string",enum:["bibo:published","bibo:draft"]},"pav:version":{type:"string",pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},"pav:previousVersion":{type:"string",minLength:1},"pav:derivedFrom":{type:"string",format:"uri"},"@nest":{$ref:"#/definitions/nestFieldContent"}},required:["$schema","type","title","description","_ui","@context","@id","@type","properties","required","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy","schema:schemaVersion","schema:name","schema:description"]};function Jt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.order){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"order"},message:"must have required property 'order'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.propertyLabels){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"propertyLabels"},message:"must have required property 'propertyLabels'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("order"!==s&&"propertyLabels"!==s&&"propertyDescriptions"!==s&&"header"!==s&&"footer"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.order&&(o(e.order,{instancePath:t+"/order",parentData:e,parentDataProperty:"order",rootData:r})||(i=null===i?o.errors:i.concat(o.errors),n=i.length)),void 0!==e.propertyLabels&&(m(e.propertyLabels,{instancePath:t+"/propertyLabels",parentData:e,parentDataProperty:"propertyLabels",rootData:r})||(i=null===i?m.errors:i.concat(m.errors),n=i.length)),void 0!==e.propertyDescriptions&&(u(e.propertyDescriptions,{instancePath:t+"/propertyDescriptions",parentData:e,parentDataProperty:"propertyDescriptions",rootData:r})||(i=null===i?u.errors:i.concat(u.errors),n=i.length)),void 0!==e.header&&"string"!=typeof e.header){const e={instancePath:t+"/header",schemaPath:"#/properties/header/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.footer&&"string"!=typeof e.footer){const e={instancePath:t+"/footer",schemaPath:"#/properties/footer/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Jt.errors=i,0===n}function Wt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.xsd){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"xsd"},message:"must have required property 'xsd'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.pav){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav"},message:"must have required property 'pav'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.schema){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema"},message:"must have required property 'schema'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.oslc){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc"},message:"must have required property 'oslc'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.bibo){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"bibo"},message:"must have required property 'bibo'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["schema:name"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["schema:description"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["pav:createdOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["pav:createdBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["pav:lastUpdatedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["oslc:modifiedBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if(!c.call(h.properties,s)&&!d.test(s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.xsd){let s=e.xsd;if("http://www.w3.org/2001/XMLSchema#"!==s){const e={instancePath:t+"/xsd",schemaPath:"#/properties/xsd/enum",keyword:"enum",params:{allowedValues:h.properties.xsd.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/xsd",schemaPath:"#/properties/xsd/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/xsd",schemaPath:"#/properties/xsd/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.pav){let s=e.pav;if("http://purl.org/pav/"!==s){const e={instancePath:t+"/pav",schemaPath:"#/properties/pav/enum",keyword:"enum",params:{allowedValues:h.properties.pav.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/pav",schemaPath:"#/properties/pav/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/pav",schemaPath:"#/properties/pav/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.schema){let s=e.schema;if("http://schema.org/"!==s){const e={instancePath:t+"/schema",schemaPath:"#/properties/schema/enum",keyword:"enum",params:{allowedValues:h.properties.schema.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/schema",schemaPath:"#/properties/schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/schema",schemaPath:"#/properties/schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.oslc){let s=e.oslc;if("http://open-services.net/ns/core#"!==s){const e={instancePath:t+"/oslc",schemaPath:"#/properties/oslc/enum",keyword:"enum",params:{allowedValues:h.properties.oslc.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/oslc",schemaPath:"#/properties/oslc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/oslc",schemaPath:"#/properties/oslc/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.bibo){let s=e.bibo;if("http://purl.org/ontology/bibo/"!==s){const e={instancePath:t+"/bibo",schemaPath:"#/properties/bibo/enum",keyword:"enum",params:{allowedValues:h.properties.bibo.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/bibo",schemaPath:"#/properties/bibo/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/bibo",schemaPath:"#/properties/bibo/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e["schema:name"]&&(f(e["schema:name"],{instancePath:t+"/schema:name",parentData:e,parentDataProperty:"schema:name",rootData:i})||(n=null===n?f.errors:n.concat(f.errors),o=n.length)),void 0!==e["schema:description"]&&(P(e["schema:description"],{instancePath:t+"/schema:description",parentData:e,parentDataProperty:"schema:description",rootData:i})||(n=null===n?P.errors:n.concat(P.errors),o=n.length)),void 0!==e["pav:createdOn"]&&(v(e["pav:createdOn"],{instancePath:t+"/pav:createdOn",parentData:e,parentDataProperty:"pav:createdOn",rootData:i})||(n=null===n?v.errors:n.concat(v.errors),o=n.length)),void 0!==e["pav:createdBy"]&&(b(e["pav:createdBy"],{instancePath:t+"/pav:createdBy",parentData:e,parentDataProperty:"pav:createdBy",rootData:i})||(n=null===n?b.errors:n.concat(b.errors),o=n.length)),void 0!==e["pav:lastUpdatedOn"]&&(k(e["pav:lastUpdatedOn"],{instancePath:t+"/pav:lastUpdatedOn",parentData:e,parentDataProperty:"pav:lastUpdatedOn",rootData:i})||(n=null===n?k.errors:n.concat(k.errors),o=n.length)),void 0!==e["oslc:modifiedBy"]&&(q(e["oslc:modifiedBy"],{instancePath:t+"/oslc:modifiedBy",parentData:e,parentDataProperty:"oslc:modifiedBy",rootData:i})||(n=null===n?q.errors:n.concat(q.errors),o=n.length)),void 0!==e._annotations){let s=e._annotations;if("string"!=typeof s){const e={instancePath:t+"/_annotations",schemaPath:"#/properties/_annotations/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("@nest"!==s){const e={instancePath:t+"/_annotations",schemaPath:"#/properties/_annotations/enum",keyword:"enum",params:{allowedValues:h.properties._annotations.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}for(const s in e)if(d.test(s)){let a=e[s];if("string"==typeof a){if(!r.validate(a)){const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E(%3F!(schema%7Cxsd%7Cpav%7Coslc%7Cbibo%7C_annotations%7C%5C%24))%5B%5E.%5D%2B%24/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E(%3F!(schema%7Cxsd%7Cpav%7Coslc%7Cbibo%7C_annotations%7C%5C%24))%5B%5E.%5D%2B%24/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return Wt.errors=n,0===o}const Xt=new RegExp("^(?!(@context|@type|@id|schema|xsd|pav|oslc|rdfs|\\$))[^\\.]+$","u"),Ht={type:"object",properties:{type:{type:"string",enum:["object"]},properties:{$ref:"#/definitions/templateElementContextPropertiesFieldContent"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{oneOf:[{$ref:"#/definitions/falseOnlyAdditionalProperties"},{$ref:"#/definitions/uriOnlyAdditionalProperties"}]}},required:["type","properties","additionalProperties"],additionalProperties:!1},Kt=new RegExp("^(?!(schema|xsd|pav|oslc|rdfs|\\$))[^\\.]+$","u");function Qt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const s in e)if(!Kt.test(s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}for(const s in e)Kt.test(s)&&(ne(e[s],{instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:s,rootData:r})||(i=null===i?ne.errors:i.concat(ne.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Qt.errors=i,0===n}function Yt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.additionalProperties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s&&"required"!==s&&"additionalProperties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Ht.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties&&(Qt(e.properties,{instancePath:t+"/properties",parentData:e,parentDataProperty:"properties",rootData:r})||(i=null===i?Qt.errors:i.concat(Qt.errors),n=i.length)),void 0!==e.required&&(o(e.required,{instancePath:t+"/required",parentData:e,parentDataProperty:"required",rootData:r})||(i=null===i?o.errors:i.concat(o.errors),n=i.length)),void 0!==e.additionalProperties){let s=e.additionalProperties;const a=n;let o=!1,m=null;const u=n;me(s,{instancePath:t+"/additionalProperties",parentData:e,parentDataProperty:"additionalProperties",rootData:r})||(i=null===i?me.errors:i.concat(me.errors),n=i.length),u===n&&(o=!0,m=0);const l=n;var p;if(le(s,{instancePath:t+"/additionalProperties",parentData:e,parentDataProperty:"additionalProperties",rootData:r})||(i=null===i?le.errors:i.concat(le.errors),n=i.length),(p=l===n)&&o?(o=!1,m=[m,1]):p&&(o=!0,m=1),o)n=a,null!==i&&(a?i.length=a:i=null);else{const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/oneOf",keyword:"oneOf",params:{passingSchemas:m},message:"must match exactly one schema in oneOf"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Yt.errors=i,0===n}const es={validate:ls};function ts(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["@id"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["@context"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s&&"@id"!==s&&"@context"!==s&&!Xt.test(s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]&&(we(e["@type"],{instancePath:t+"/@type",parentData:e,parentDataProperty:"@type",rootData:r})||(i=null===i?we.errors:i.concat(we.errors),n=i.length)),void 0!==e["@id"]){let s=e["@id"];const a=n;let p=!1;const m=n;Ue(s,{instancePath:t+"/@id",parentData:e,parentDataProperty:"@id",rootData:r})||(i=null===i?Ue.errors:i.concat(Ue.errors),n=i.length);var o=m===n;if(p=p||o,!p){const a=n;ke(s,{instancePath:t+"/@id",parentData:e,parentDataProperty:"@id",rootData:r})||(i=null===i?ke.errors:i.concat(ke.errors),n=i.length),o=a===n,p=p||o}if(p)n=a,null!==i&&(a?i.length=a:i=null);else{const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};null===i?i=[e]:i.push(e),n++}}void 0!==e["@context"]&&(Yt(e["@context"],{instancePath:t+"/@context",parentData:e,parentDataProperty:"@context",rootData:r})||(i=null===i?Yt.errors:i.concat(Yt.errors),n=i.length));for(const s in e)Xt.test(s)&&(es.validate(e[s],{instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:s,rootData:r})||(i=null===i?es.validate.errors:i.concat(es.validate.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return ts.errors=i,0===n}const ss={type:"array",minItems:2,uniqueItems:!0,items:[{type:"string",enum:["@context"]},{type:"string",enum:["@id"]}]};function as(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){if(e.length<2){const e={instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};null===i?i=[e]:i.push(e),n++}const s=e.length;if(s>0){let s=e[0];if("string"!=typeof s){const e={instancePath:t+"/0",schemaPath:"#/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@context"!==s){const e={instancePath:t+"/0",schemaPath:"#/items/0/enum",keyword:"enum",params:{allowedValues:ss.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>1){let s=e[1];if("string"!=typeof s){const e={instancePath:t+"/1",schemaPath:"#/items/1/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@id"!==s){const e={instancePath:t+"/1",schemaPath:"#/items/1/enum",keyword:"enum",params:{allowedValues:ss.items[1].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}let a,r=e.length;if(r>1)e:for(;r--;)for(a=r;a--;)if(Me(e[r],e[a])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:r,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+r+" are identical)"};null===i?i=[e]:i.push(e),n++;break e}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return as.errors=i,0===n}const rs={type:"object",properties:{type:{type:"string",enum:["object"]},properties:{type:"object",properties:{"@value":{$ref:"#/definitions/jsonLDValueFieldContent"},"@type":{type:"object",properties:{type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]}},required:["type","format"],additionalProperties:!1}},required:["@value","@type"],additionalProperties:!1},required:{$ref:"#/definitions/stringArray"},additionalProperties:{type:"boolean",enum:[!1]}},required:["type","properties","required","additionalProperties"],additionalProperties:!1};function is(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.required){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"required"},message:"must have required property 'required'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.additionalProperties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s&&"required"!==s&&"additionalProperties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:rs.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@value"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@value"},message:"must have required property '@value'"};null===i?i=[e]:i.push(e),n++}if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}for(const e in s)if("@value"!==e&&"@type"!==e){const s={instancePath:t+"/properties",schemaPath:"#/properties/properties/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===i?i=[s]:i.push(s),n++}if(void 0!==s["@value"]&&(xt(s["@value"],{instancePath:t+"/properties/@value",parentData:s,parentDataProperty:"@value",rootData:r})||(i=null===i?xt.errors:i.concat(xt.errors),n=i.length)),void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.format){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"format"!==s){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:rs.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/format",schemaPath:"#/properties/properties/properties/%40type/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("uri"!==s){const e={instancePath:t+"/properties/@type/format",schemaPath:"#/properties/properties/properties/%40type/properties/format/enum",keyword:"enum",params:{allowedValues:rs.properties.properties.properties["@type"].properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.required&&(o(e.required,{instancePath:t+"/required",parentData:e,parentDataProperty:"required",rootData:r})||(i=null===i?o.errors:i.concat(o.errors),n=i.length)),void 0!==e.additionalProperties){let s=e.additionalProperties;if("boolean"!=typeof s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(!1!==s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:rs.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return is.errors=i,0===n}function ns(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:o=e}={}){let p=null,m=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.$schema){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.title){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.description){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===p?p=[e]:p.push(e),m++}if(void 0===e._ui){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["@context"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["@id"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.required){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"required"},message:"must have required property 'required'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["pav:createdOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["pav:createdBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["pav:lastUpdatedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["oslc:modifiedBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["schema:schemaVersion"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["schema:name"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["schema:description"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===p?p=[e]:p.push(e),m++}if(void 0!==e.$schema){let s=e.$schema;if("http://json-schema.org/draft-04/schema#"!==s){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:Gt.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if("object"!==s&&"array"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Gt.properties.type.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["schema:identifier"]){let s=e["schema:identifier"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["schema:name"]){let s=e["schema:name"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["schema:description"]&&"string"!=typeof e["schema:description"]){const e={instancePath:t+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if(void 0!==e["skos:prefLabel"]&&"string"!=typeof e["skos:prefLabel"]){const e={instancePath:t+"/skos:prefLabel",schemaPath:"#/properties/skos%3AprefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if(void 0!==e["skos:altLabel"]){let s=e["skos:altLabel"];if(Array.isArray(s)){let e,a=s.length;if(a>1)e:for(;a--;)for(e=a;e--;)if(Me(s[a],s[e])){const s={instancePath:t+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/uniqueItems",keyword:"uniqueItems",params:{i:a,j:e},message:"must NOT have duplicate items (items ## "+e+" and "+a+" are identical)"};null===p?p=[s]:p.push(s),m++;break e}}else{const e={instancePath:t+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/type",keyword:"type",params:{type:"array"},message:"must be array"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.title){let s=e.title;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.description){let s=e.description;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e._ui&&(Jt(e._ui,{instancePath:t+"/_ui",parentData:e,parentDataProperty:"_ui",rootData:o})||(p=null===p?Jt.errors:p.concat(Jt.errors),m=p.length)),void 0!==e["@context"]&&(Wt(e["@context"],{instancePath:t+"/@context",parentData:e,parentDataProperty:"@context",rootData:o})||(p=null===p?Wt.errors:p.concat(Wt.errors),m=p.length)),void 0!==e["@id"]){let s=e["@id"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:Gt.properties["@id"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["@type"]){let s=e["@type"];if("https://schema.metadatacenter.org/core/TemplateElement"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:Gt.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.properties&&(ts(e.properties,{instancePath:t+"/properties",parentData:e,parentDataProperty:"properties",rootData:o})||(p=null===p?ts.errors:p.concat(ts.errors),m=p.length)),void 0!==e.required&&(as(e.required,{instancePath:t+"/required",parentData:e,parentDataProperty:"required",rootData:o})||(p=null===p?as.errors:p.concat(as.errors),m=p.length)),void 0!==e["pav:createdOn"]){let s=e["pav:createdOn"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:Gt.properties["pav:createdOn"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!i.validate(s)){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:createdBy"]){let s=e["pav:createdBy"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:Gt.properties["pav:createdBy"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:lastUpdatedOn"]){let s=e["pav:lastUpdatedOn"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:Gt.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!i.validate(s)){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["oslc:modifiedBy"]){let s=e["oslc:modifiedBy"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:Gt.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.additionalProperties){let s=e.additionalProperties;const a=m;let r=!1,i=null;const n=m;me(s,{instancePath:t+"/additionalProperties",parentData:e,parentDataProperty:"additionalProperties",rootData:o})||(p=null===p?me.errors:p.concat(me.errors),m=p.length),n===m&&(r=!0,i=0);const l=m;var u;if(is(s,{instancePath:t+"/additionalProperties",parentData:e,parentDataProperty:"additionalProperties",rootData:o})||(p=null===p?is.errors:p.concat(is.errors),m=p.length),(u=l===m)&&r?(r=!1,i=[i,1]):u&&(r=!0,i=1),r)m=a,null!==p&&(a?p.length=a:p=null);else{const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/oneOf",keyword:"oneOf",params:{passingSchemas:i},message:"must match exactly one schema in oneOf"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["schema:schemaVersion"]){let s=e["schema:schemaVersion"];if("string"!=typeof s){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if("1.6.0"!==s){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:Gt.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["bibo:status"]){let s=e["bibo:status"];if("string"!=typeof s){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if("bibo:published"!==s&&"bibo:draft"!==s){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:Gt.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:version"]){let s=e["pav:version"];if("string"==typeof s){if(!$t.test(s)){const e={instancePath:t+"/pav:version",schemaPath:"#/properties/pav%3Aversion/pattern",keyword:"pattern",params:{pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},message:'must match pattern "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:previousVersion"]){let s=e["pav:previousVersion"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:derivedFrom"]){let s=e["pav:derivedFrom"];if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}void 0!==e["@nest"]&&(Bt(e["@nest"],{instancePath:t+"/@nest",parentData:e,parentDataProperty:"@nest",rootData:o})||(p=null===p?Bt.errors:p.concat(Bt.errors),m=p.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===p?p=[e]:p.push(e),m++}return ns.errors=p,0===m}const os={type:"object",properties:{type:{type:"string",enum:["array"]},minItems:{type:"integer",minimum:0},items:{oneOf:[{$ref:"#/definitions/literalTemplateField"},{$ref:"#/definitions/iriTemplateField"},{$ref:"#/definitions/attributeValueTemplateField"},{$ref:"#/definitions/templateElement"}]}},required:["type","minItems","items"]},ps={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{$schema:{type:"string",format:"uri",enum:["http://json-schema.org/draft-04/schema#"]},"@id":{type:["string","null"],format:"uri"},"@type":{type:"string",format:"uri",enum:["https://schema.metadatacenter.org/core/TemplateField"]},"@context":{$ref:"#/definitions/templateFieldJSONLDContextFieldContent"},type:{type:"string",enum:["string"]},title:{type:"string",minLength:1},description:{type:"string",minLength:1},_ui:{type:"object",properties:{inputType:{type:"string",enum:["attribute-value"]}},required:["inputType"],additionalProperties:!1},"schema:name":{type:"string",minLength:1},"schema:description":{type:"string"},"pav:createdOn":{type:["string","null"],format:"date-time"},"pav:createdBy":{type:["string","null"],format:"uri"},"pav:lastUpdatedOn":{type:["string","null"],format:"date-time"},"oslc:modifiedBy":{type:["string","null"],format:"uri"},"bibo:status":{type:"string",enum:["bibo:published","bibo:draft"]},"pav:version":{type:"string",pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},"pav:previousVersion":{type:"string",minLength:1},"pav:derivedFrom":{type:"string",format:"uri"},additionalProperties:{type:"boolean",enum:[!1]},"schema:schemaVersion":{type:"string",enum:["1.6.0"]}},required:["$schema","type","title","description","_ui","@context","@id","@type","additionalProperties","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy","schema:schemaVersion","schema:name","schema:description"]};function ms(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:o=e}={}){let p=null,m=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.$schema){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.title){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.description){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===p?p=[e]:p.push(e),m++}if(void 0===e._ui){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["@context"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["@id"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.additionalProperties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["pav:createdOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["pav:createdBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["pav:lastUpdatedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["oslc:modifiedBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["schema:schemaVersion"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["schema:name"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["schema:description"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===p?p=[e]:p.push(e),m++}if(void 0!==e.$schema){let s=e.$schema;if("http://json-schema.org/draft-04/schema#"!==s){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:ps.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["@id"]){let s=e["@id"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:ps.properties["@id"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["@type"]){let s=e["@type"];if("https://schema.metadatacenter.org/core/TemplateField"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:ps.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["@context"]&&(kt(e["@context"],{instancePath:t+"/@context",parentData:e,parentDataProperty:"@context",rootData:o})||(p=null===p?kt.errors:p.concat(kt.errors),m=p.length)),void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ps.properties.type.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.title){let s=e.title;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.description){let s=e.description;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e._ui){let s=e._ui;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s.inputType){const e={instancePath:t+"/_ui",schemaPath:"#/properties/_ui/required",keyword:"required",params:{missingProperty:"inputType"},message:"must have required property 'inputType'"};null===p?p=[e]:p.push(e),m++}for(const e in s)if("inputType"!==e){const s={instancePath:t+"/_ui",schemaPath:"#/properties/_ui/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===p?p=[s]:p.push(s),m++}if(void 0!==s.inputType){let e=s.inputType;if("string"!=typeof e){const e={instancePath:t+"/_ui/inputType",schemaPath:"#/properties/_ui/properties/inputType/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if("attribute-value"!==e){const e={instancePath:t+"/_ui/inputType",schemaPath:"#/properties/_ui/properties/inputType/enum",keyword:"enum",params:{allowedValues:ps.properties._ui.properties.inputType.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}}else{const e={instancePath:t+"/_ui",schemaPath:"#/properties/_ui/type",keyword:"type",params:{type:"object"},message:"must be object"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["schema:name"]){let s=e["schema:name"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["schema:description"]&&"string"!=typeof e["schema:description"]){const e={instancePath:t+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if(void 0!==e["pav:createdOn"]){let s=e["pav:createdOn"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:ps.properties["pav:createdOn"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!i.validate(s)){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:createdBy"]){let s=e["pav:createdBy"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:ps.properties["pav:createdBy"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:lastUpdatedOn"]){let s=e["pav:lastUpdatedOn"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:ps.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!i.validate(s)){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["oslc:modifiedBy"]){let s=e["oslc:modifiedBy"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:ps.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["bibo:status"]){let s=e["bibo:status"];if("string"!=typeof s){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if("bibo:published"!==s&&"bibo:draft"!==s){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:ps.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:version"]){let s=e["pav:version"];if("string"==typeof s){if(!$t.test(s)){const e={instancePath:t+"/pav:version",schemaPath:"#/properties/pav%3Aversion/pattern",keyword:"pattern",params:{pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},message:'must match pattern "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:previousVersion"]){let s=e["pav:previousVersion"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:derivedFrom"]){let s=e["pav:derivedFrom"];if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.additionalProperties){let s=e.additionalProperties;if("boolean"!=typeof s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===p?p=[e]:p.push(e),m++}if(!1!==s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:ps.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["schema:schemaVersion"]){let s=e["schema:schemaVersion"];if("string"!=typeof s){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if("1.6.0"!==s){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:ps.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===p?p=[e]:p.push(e),m++}return ms.errors=p,0===m}function us(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.minItems){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"minItems"},message:"must have required property 'minItems'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.items){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("array"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:os.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.minItems){let s=e.minItems;if("number"!=typeof s||s%1||isNaN(s)){const e={instancePath:t+"/minItems",schemaPath:"#/properties/minItems/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===i?i=[e]:i.push(e),n++}if("number"==typeof s&&(s<0||isNaN(s))){const e={instancePath:t+"/minItems",schemaPath:"#/properties/minItems/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.items){let s=e.items;const a=n;let p=!1,m=null;const u=n;Lt(s,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:r})||(i=null===i?Lt.errors:i.concat(Lt.errors),n=i.length),(o=u===n)&&(p=!0,m=0);const l=n;if(Et(s,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:r})||(i=null===i?Et.errors:i.concat(Et.errors),n=i.length),(o=l===n)&&p)p=!1,m=[m,1];else{o&&(p=!0,m=1);const a=n;if(ms(s,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:r})||(i=null===i?ms.errors:i.concat(ms.errors),n=i.length),(o=a===n)&&p)p=!1,m=[m,2];else{o&&(p=!0,m=2);const a=n;var o;ns(s,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:r})||(i=null===i?ns.errors:i.concat(ns.errors),n=i.length),(o=a===n)&&p?(p=!1,m=[m,3]):o&&(p=!0,m=3)}}if(p)n=a,null!==i&&(a?i.length=a:i=null);else{const e={instancePath:t+"/items",schemaPath:"#/properties/items/oneOf",keyword:"oneOf",params:{passingSchemas:m},message:"must match exactly one schema in oneOf"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return us.errors=i,0===n}function ls(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;const o=n;let p=!1,m=null;const u=n;Lt(e,{instancePath:t,parentData:s,parentDataProperty:a,rootData:r})||(i=null===i?Lt.errors:i.concat(Lt.errors),n=i.length),(h=u===n)&&(p=!0,m=0);const l=n;if(Et(e,{instancePath:t,parentData:s,parentDataProperty:a,rootData:r})||(i=null===i?Et.errors:i.concat(Et.errors),n=i.length),(h=l===n)&&p)p=!1,m=[m,1];else{h&&(p=!0,m=1);const o=n;if(Zt(e,{instancePath:t,parentData:s,parentDataProperty:a,rootData:r})||(i=null===i?Zt.errors:i.concat(Zt.errors),n=i.length),(h=o===n)&&p)p=!1,m=[m,2];else{h&&(p=!0,m=2);const o=n;if(ns(e,{instancePath:t,parentData:s,parentDataProperty:a,rootData:r})||(i=null===i?ns.errors:i.concat(ns.errors),n=i.length),(h=o===n)&&p)p=!1,m=[m,3];else{h&&(p=!0,m=3);const o=n;var h;us(e,{instancePath:t,parentData:s,parentDataProperty:a,rootData:r})||(i=null===i?us.errors:i.concat(us.errors),n=i.length),(h=o===n)&&p?(p=!1,m=[m,4]):h&&(p=!0,m=4)}}}if(p)n=o,null!==i&&(o?i.length=o:i=null);else{const e={instancePath:t,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:m},message:"must match exactly one schema in oneOf"};null===i?i=[e]:i.push(e),n++}return ls.errors=i,0===n}function hs(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["@id"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["@context"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["schema:isBasedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:isBasedOn"},message:"must have required property 'schema:isBasedOn'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["schema:name"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["schema:description"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["pav:createdOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["pav:createdBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["pav:lastUpdatedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["oslc:modifiedBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["pav:derivedFrom"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:derivedFrom"},message:"must have required property 'pav:derivedFrom'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if(!c.call(O,s)&&!A.test(s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}void 0!==e["@context"]&&(he(e["@context"],{instancePath:t+"/@context",parentData:e,parentDataProperty:"@context",rootData:r})||(i=null===i?he.errors:i.concat(he.errors),n=i.length)),void 0!==e["@type"]&&(we(e["@type"],{instancePath:t+"/@type",parentData:e,parentDataProperty:"@type",rootData:r})||(i=null===i?we.errors:i.concat(we.errors),n=i.length)),void 0!==e["@id"]&&(ke(e["@id"],{instancePath:t+"/@id",parentData:e,parentDataProperty:"@id",rootData:r})||(i=null===i?ke.errors:i.concat(ke.errors),n=i.length)),void 0!==e["schema:name"]&&(De(e["schema:name"],{instancePath:t+"/schema:name",parentData:e,parentDataProperty:"schema:name",rootData:r})||(i=null===i?De.errors:i.concat(De.errors),n=i.length)),void 0!==e["schema:description"]&&(Ae(e["schema:description"],{instancePath:t+"/schema:description",parentData:e,parentDataProperty:"schema:description",rootData:r})||(i=null===i?Ae.errors:i.concat(Ae.errors),n=i.length)),void 0!==e["pav:createdOn"]&&(Te(e["pav:createdOn"],{instancePath:t+"/pav:createdOn",parentData:e,parentDataProperty:"pav:createdOn",rootData:r})||(i=null===i?Te.errors:i.concat(Te.errors),n=i.length)),void 0!==e["pav:createdBy"]&&($e(e["pav:createdBy"],{instancePath:t+"/pav:createdBy",parentData:e,parentDataProperty:"pav:createdBy",rootData:r})||(i=null===i?$e.errors:i.concat($e.errors),n=i.length)),void 0!==e["schema:isBasedOn"]&&(Le(e["schema:isBasedOn"],{instancePath:t+"/schema:isBasedOn",parentData:e,parentDataProperty:"schema:isBasedOn",rootData:r})||(i=null===i?Le.errors:i.concat(Le.errors),n=i.length)),void 0!==e["pav:lastUpdatedOn"]&&(Ie(e["pav:lastUpdatedOn"],{instancePath:t+"/pav:lastUpdatedOn",parentData:e,parentDataProperty:"pav:lastUpdatedOn",rootData:r})||(i=null===i?Ie.errors:i.concat(Ie.errors),n=i.length)),void 0!==e["oslc:modifiedBy"]&&(Ne(e["oslc:modifiedBy"],{instancePath:t+"/oslc:modifiedBy",parentData:e,parentDataProperty:"oslc:modifiedBy",rootData:r})||(i=null===i?Ne.errors:i.concat(Ne.errors),n=i.length)),void 0!==e["pav:derivedFrom"]&&(Ce(e["pav:derivedFrom"],{instancePath:t+"/pav:derivedFrom",parentData:e,parentDataProperty:"pav:derivedFrom",rootData:r})||(i=null===i?Ce.errors:i.concat(Ce.errors),n=i.length)),void 0!==e._annotations&&(Se(e._annotations,{instancePath:t+"/_annotations",parentData:e,parentDataProperty:"_annotations",rootData:r})||(i=null===i?Se.errors:i.concat(Se.errors),n=i.length));for(const s in e)A.test(s)&&(ls(e[s],{instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:s,rootData:r})||(i=null===i?ls.errors:i.concat(ls.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return hs.errors=i,0===n}const cs={type:"array",minItems:9,uniqueItems:!0,items:[{type:"string",enum:["@context"]},{type:"string",enum:["@id"]},{type:"string",enum:["schema:isBasedOn"]},{type:"string",enum:["schema:name"]},{type:"string",enum:["schema:description"]},{type:"string",enum:["pav:createdOn"]},{type:"string",enum:["pav:createdBy"]},{type:"string",enum:["pav:lastUpdatedOn"]},{type:"string",enum:["oslc:modifiedBy"]}]};function ds(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){if(e.length<9){const e={instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:9},message:"must NOT have fewer than 9 items"};null===i?i=[e]:i.push(e),n++}const s=e.length;if(s>0){let s=e[0];if("string"!=typeof s){const e={instancePath:t+"/0",schemaPath:"#/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@context"!==s){const e={instancePath:t+"/0",schemaPath:"#/items/0/enum",keyword:"enum",params:{allowedValues:cs.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>1){let s=e[1];if("string"!=typeof s){const e={instancePath:t+"/1",schemaPath:"#/items/1/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@id"!==s){const e={instancePath:t+"/1",schemaPath:"#/items/1/enum",keyword:"enum",params:{allowedValues:cs.items[1].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>2){let s=e[2];if("string"!=typeof s){const e={instancePath:t+"/2",schemaPath:"#/items/2/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("schema:isBasedOn"!==s){const e={instancePath:t+"/2",schemaPath:"#/items/2/enum",keyword:"enum",params:{allowedValues:cs.items[2].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>3){let s=e[3];if("string"!=typeof s){const e={instancePath:t+"/3",schemaPath:"#/items/3/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("schema:name"!==s){const e={instancePath:t+"/3",schemaPath:"#/items/3/enum",keyword:"enum",params:{allowedValues:cs.items[3].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>4){let s=e[4];if("string"!=typeof s){const e={instancePath:t+"/4",schemaPath:"#/items/4/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("schema:description"!==s){const e={instancePath:t+"/4",schemaPath:"#/items/4/enum",keyword:"enum",params:{allowedValues:cs.items[4].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>5){let s=e[5];if("string"!=typeof s){const e={instancePath:t+"/5",schemaPath:"#/items/5/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("pav:createdOn"!==s){const e={instancePath:t+"/5",schemaPath:"#/items/5/enum",keyword:"enum",params:{allowedValues:cs.items[5].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>6){let s=e[6];if("string"!=typeof s){const e={instancePath:t+"/6",schemaPath:"#/items/6/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("pav:createdBy"!==s){const e={instancePath:t+"/6",schemaPath:"#/items/6/enum",keyword:"enum",params:{allowedValues:cs.items[6].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>7){let s=e[7];if("string"!=typeof s){const e={instancePath:t+"/7",schemaPath:"#/items/7/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("pav:lastUpdatedOn"!==s){const e={instancePath:t+"/7",schemaPath:"#/items/7/enum",keyword:"enum",params:{allowedValues:cs.items[7].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>8){let s=e[8];if("string"!=typeof s){const e={instancePath:t+"/8",schemaPath:"#/items/8/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("oslc:modifiedBy"!==s){const e={instancePath:t+"/8",schemaPath:"#/items/8/enum",keyword:"enum",params:{allowedValues:cs.items[8].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}let a,r=e.length;if(r>1)e:for(;r--;)for(a=r;a--;)if(Me(e[r],e[a])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:r,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+r+" are identical)"};null===i?i=[e]:i.push(e),n++;break e}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return ds.errors=i,0===n}const ys=new RegExp("^.+$","u");function fs(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const s in e)if(!ys.test(s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}for(const s in e)if(ys.test(s)){let a=e[s];const i=o;let m=!1,u=null;const l=o;if(a&&"object"==typeof a&&!Array.isArray(a)){for(const e in a)if("@id"!==e){const a={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E.%2B%24/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===n?n=[a]:n.push(a),o++}if(void 0!==a["@id"]){let e=a["@id"];if("string"==typeof e){if(!r.validate(e)){const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/@id",schemaPath:"#/patternProperties/%5E.%2B%24/oneOf/0/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/@id",schemaPath:"#/patternProperties/%5E.%2B%24/oneOf/0/properties/%40id/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E.%2B%24/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}l===o&&(m=!0,u=0);const h=o;if(a&&"object"==typeof a&&!Array.isArray(a)){for(const e in a)if("@value"!==e){const a={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E.%2B%24/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===n?n=[a]:n.push(a),o++}if(void 0!==a["@value"]&&"string"!=typeof a["@value"]){const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/@value",schemaPath:"#/patternProperties/%5E.%2B%24/oneOf/1/properties/%40value/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E.%2B%24/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}var p;if((p=h===o)&&m?(m=!1,u=[u,1]):p&&(m=!0,u=1),m)o=i,null!==n&&(i?n.length=i:n=null);else{const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E.%2B%24/oneOf",keyword:"oneOf",params:{passingSchemas:u},message:"must match exactly one schema in oneOf"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return fs.errors=n,0===o}t.element=function e(t,{instancePath:s="",parentData:a,parentDataProperty:o,rootData:p=t}={}){let m=null,u=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.$schema){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.type){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.title){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.description){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===m?m=[e]:m.push(e),u++}if(void 0===t._ui){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["@context"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["@id"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["@type"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.properties){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.required){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"required"},message:"must have required property 'required'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["pav:createdOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["pav:createdBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["pav:lastUpdatedOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["oslc:modifiedBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["schema:schemaVersion"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["schema:name"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["schema:description"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===m?m=[e]:m.push(e),u++}if(void 0!==t.$schema){let e=t.$schema;if("http://json-schema.org/draft-04/schema#"!==e){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:Gt.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("object"!==e&&"array"!==e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Gt.properties.type.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["schema:identifier"]){let e=t["schema:identifier"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["schema:name"]){let e=t["schema:name"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["schema:description"]&&"string"!=typeof t["schema:description"]){const e={instancePath:s+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if(void 0!==t["skos:prefLabel"]&&"string"!=typeof t["skos:prefLabel"]){const e={instancePath:s+"/skos:prefLabel",schemaPath:"#/properties/skos%3AprefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if(void 0!==t["skos:altLabel"]){let e=t["skos:altLabel"];if(Array.isArray(e)){let t,a=e.length;if(a>1)e:for(;a--;)for(t=a;t--;)if(Me(e[a],e[t])){const e={instancePath:s+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/uniqueItems",keyword:"uniqueItems",params:{i:a,j:t},message:"must NOT have duplicate items (items ## "+t+" and "+a+" are identical)"};null===m?m=[e]:m.push(e),u++;break e}}else{const e={instancePath:s+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/type",keyword:"type",params:{type:"array"},message:"must be array"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.title){let e=t.title;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.description){let e=t.description;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t._ui&&(Jt(t._ui,{instancePath:s+"/_ui",parentData:t,parentDataProperty:"_ui",rootData:p})||(m=null===m?Jt.errors:m.concat(Jt.errors),u=m.length)),void 0!==t["@context"]&&(Wt(t["@context"],{instancePath:s+"/@context",parentData:t,parentDataProperty:"@context",rootData:p})||(m=null===m?Wt.errors:m.concat(Wt.errors),u=m.length)),void 0!==t["@id"]){let e=t["@id"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:Gt.properties["@id"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["@type"]){let e=t["@type"];if("https://schema.metadatacenter.org/core/TemplateElement"!==e){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:Gt.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.properties&&(ts(t.properties,{instancePath:s+"/properties",parentData:t,parentDataProperty:"properties",rootData:p})||(m=null===m?ts.errors:m.concat(ts.errors),u=m.length)),void 0!==t.required&&(as(t.required,{instancePath:s+"/required",parentData:t,parentDataProperty:"required",rootData:p})||(m=null===m?as.errors:m.concat(as.errors),u=m.length)),void 0!==t["pav:createdOn"]){let e=t["pav:createdOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:Gt.properties["pav:createdOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:createdBy"]){let e=t["pav:createdBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:Gt.properties["pav:createdBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:lastUpdatedOn"]){let e=t["pav:lastUpdatedOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:Gt.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["oslc:modifiedBy"]){let e=t["oslc:modifiedBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:Gt.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.additionalProperties){let e=t.additionalProperties;const a=u;let r=!1,i=null;const n=u;me(e,{instancePath:s+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:p})||(m=null===m?me.errors:m.concat(me.errors),u=m.length),n===u&&(r=!0,i=0);const o=u;var l;if(is(e,{instancePath:s+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:p})||(m=null===m?is.errors:m.concat(is.errors),u=m.length),(l=o===u)&&r?(r=!1,i=[i,1]):l&&(r=!0,i=1),r)u=a,null!==m&&(a?m.length=a:m=null);else{const e={instancePath:s+"/additionalProperties",schemaPath:"#/properties/additionalProperties/oneOf",keyword:"oneOf",params:{passingSchemas:i},message:"must match exactly one schema in oneOf"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["schema:schemaVersion"]){let e=t["schema:schemaVersion"];if("string"!=typeof e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("1.6.0"!==e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:Gt.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["bibo:status"]){let e=t["bibo:status"];if("string"!=typeof e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("bibo:published"!==e&&"bibo:draft"!==e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:Gt.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:version"]){let e=t["pav:version"];if("string"==typeof e){if(!$t.test(e)){const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/pattern",keyword:"pattern",params:{pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},message:'must match pattern "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:previousVersion"]){let e=t["pav:previousVersion"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:derivedFrom"]){let e=t["pav:derivedFrom"];if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}void 0!==t["@nest"]&&(Bt(t["@nest"],{instancePath:s+"/@nest",parentData:t,parentDataProperty:"@nest",rootData:p})||(m=null===m?Bt.errors:m.concat(Bt.errors),u=m.length))}else{const e={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===m?m=[e]:m.push(e),u++}return e.errors=m,0===u},t.literal=function e(t,{instancePath:s="",parentData:a,parentDataProperty:p,rootData:m=t}={}){let u=null,l=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.$schema){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===u?u=[e]:u.push(e),l++}if(void 0===t.type){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===u?u=[e]:u.push(e),l++}if(void 0===t.title){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===u?u=[e]:u.push(e),l++}if(void 0===t.description){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===u?u=[e]:u.push(e),l++}if(void 0===t._ui){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===u?u=[e]:u.push(e),l++}if(void 0===t._valueConstraints){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_valueConstraints"},message:"must have required property '_valueConstraints'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["@context"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["@id"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["@type"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===u?u=[e]:u.push(e),l++}if(void 0===t.properties){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===u?u=[e]:u.push(e),l++}if(void 0===t.additionalProperties){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["pav:createdOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["pav:createdBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["pav:lastUpdatedOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["oslc:modifiedBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["schema:schemaVersion"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["schema:name"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["schema:description"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===u?u=[e]:u.push(e),l++}if(void 0!==t.$schema){let e=t.$schema;if("http://json-schema.org/draft-04/schema#"!==e){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:Re.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}if("object"!==e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Re.properties.type.enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["schema:identifier"]){let e=t["schema:identifier"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["schema:name"]){let e=t["schema:name"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["schema:description"]&&"string"!=typeof t["schema:description"]){const e={instancePath:s+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}if(void 0!==t["skos:prefLabel"]&&"string"!=typeof t["skos:prefLabel"]){const e={instancePath:s+"/skos:prefLabel",schemaPath:"#/properties/skos%3AprefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}if(void 0!==t["skos:altLabel"]){let e=t["skos:altLabel"];if(Array.isArray(e)){let t,a=e.length;if(a>1)e:for(;a--;)for(t=a;t--;)if(Me(e[a],e[t])){const e={instancePath:s+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/uniqueItems",keyword:"uniqueItems",params:{i:a,j:t},message:"must NOT have duplicate items (items ## "+t+" and "+a+" are identical)"};null===u?u=[e]:u.push(e),l++;break e}}else{const e={instancePath:s+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/type",keyword:"type",params:{type:"array"},message:"must be array"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t.title){let e=t.title;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t.description){let e=t.description;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t._ui&&(Ze(t._ui,{instancePath:s+"/_ui",parentData:t,parentDataProperty:"_ui",rootData:m})||(u=null===u?Ze.errors:u.concat(Ze.errors),l=u.length)),void 0!==t._valueConstraints&&(Pt(t._valueConstraints,{instancePath:s+"/_valueConstraints",parentData:t,parentDataProperty:"_valueConstraints",rootData:m})||(u=null===u?Pt.errors:u.concat(Pt.errors),l=u.length)),void 0!==t["@context"]&&(kt(t["@context"],{instancePath:s+"/@context",parentData:t,parentDataProperty:"@context",rootData:m})||(u=null===u?kt.errors:u.concat(kt.errors),l=u.length)),void 0!==t["@id"]){let e=t["@id"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:Re.properties["@id"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["@type"]){let e=t["@type"];if("https://schema.metadatacenter.org/core/TemplateField"!==e){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:Re.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t.properties&&(Tt(t.properties,{instancePath:s+"/properties",parentData:t,parentDataProperty:"properties",rootData:m})||(u=null===u?Tt.errors:u.concat(Tt.errors),l=u.length)),void 0!==t.required&&(o(t.required,{instancePath:s+"/required",parentData:t,parentDataProperty:"required",rootData:m})||(u=null===u?o.errors:u.concat(o.errors),l=u.length)),void 0!==t["pav:createdOn"]){let e=t["pav:createdOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:Re.properties["pav:createdOn"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["pav:createdBy"]){let e=t["pav:createdBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:Re.properties["pav:createdBy"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["pav:lastUpdatedOn"]){let e=t["pav:lastUpdatedOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:Re.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["oslc:modifiedBy"]){let e=t["oslc:modifiedBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:Re.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["bibo:status"]){let e=t["bibo:status"];if("string"!=typeof e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}if("bibo:published"!==e&&"bibo:draft"!==e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:Re.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["pav:version"]){let e=t["pav:version"];if("string"==typeof e){if(!$t.test(e)){const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/pattern",keyword:"pattern",params:{pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},message:'must match pattern "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"'};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["pav:previousVersion"]){let e=t["pav:previousVersion"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["pav:derivedFrom"]){let e=t["pav:derivedFrom"];if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["@nest"]&&(Bt(t["@nest"],{instancePath:s+"/@nest",parentData:t,parentDataProperty:"@nest",rootData:m})||(u=null===u?Bt.errors:u.concat(Bt.errors),l=u.length)),void 0!==t.additionalProperties){let e=t.additionalProperties;if("boolean"!=typeof e){const e={instancePath:s+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===u?u=[e]:u.push(e),l++}if(!1!==e){const e={instancePath:s+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:Re.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["schema:schemaVersion"]){let e=t["schema:schemaVersion"];if("string"!=typeof e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}if("1.6.0"!==e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:Re.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}}}else{const e={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===u?u=[e]:u.push(e),l++}return e.errors=u,0===l},t.iri=function e(t,{instancePath:s="",parentData:a,parentDataProperty:p,rootData:m=t}={}){let u=null,l=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.$schema){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===u?u=[e]:u.push(e),l++}if(void 0===t.type){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===u?u=[e]:u.push(e),l++}if(void 0===t.title){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===u?u=[e]:u.push(e),l++}if(void 0===t.description){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===u?u=[e]:u.push(e),l++}if(void 0===t._ui){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===u?u=[e]:u.push(e),l++}if(void 0===t._valueConstraints){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_valueConstraints"},message:"must have required property '_valueConstraints'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["@context"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["@id"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["@type"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===u?u=[e]:u.push(e),l++}if(void 0===t.properties){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===u?u=[e]:u.push(e),l++}if(void 0===t.additionalProperties){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["pav:createdOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["pav:createdBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["pav:lastUpdatedOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["oslc:modifiedBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["schema:schemaVersion"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["schema:name"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["schema:description"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===u?u=[e]:u.push(e),l++}if(void 0!==t.$schema){let e=t.$schema;if("http://json-schema.org/draft-04/schema#"!==e){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:It.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}if("object"!==e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:It.properties.type.enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["schema:identifier"]){let e=t["schema:identifier"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["schema:name"]){let e=t["schema:name"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["skos:prefLabel"]&&"string"!=typeof t["skos:prefLabel"]){const e={instancePath:s+"/skos:prefLabel",schemaPath:"#/properties/skos%3AprefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}if(void 0!==t["skos:altLabel"]){let e=t["skos:altLabel"];if(Array.isArray(e)){let t,a=e.length;if(a>1)e:for(;a--;)for(t=a;t--;)if(Me(e[a],e[t])){const e={instancePath:s+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/uniqueItems",keyword:"uniqueItems",params:{i:a,j:t},message:"must NOT have duplicate items (items ## "+t+" and "+a+" are identical)"};null===u?u=[e]:u.push(e),l++;break e}}else{const e={instancePath:s+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/type",keyword:"type",params:{type:"array"},message:"must be array"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["schema:description"]&&"string"!=typeof t["schema:description"]){const e={instancePath:s+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}if(void 0!==t.title){let e=t.title;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t.description){let e=t.description;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t._ui&&(Ct(t._ui,{instancePath:s+"/_ui",parentData:t,parentDataProperty:"_ui",rootData:m})||(u=null===u?Ct.errors:u.concat(Ct.errors),l=u.length)),void 0!==t._valueConstraints&&(Ut(t._valueConstraints,{instancePath:s+"/_valueConstraints",parentData:t,parentDataProperty:"_valueConstraints",rootData:m})||(u=null===u?Ut.errors:u.concat(Ut.errors),l=u.length)),void 0!==t["@context"]&&(kt(t["@context"],{instancePath:s+"/@context",parentData:t,parentDataProperty:"@context",rootData:m})||(u=null===u?kt.errors:u.concat(kt.errors),l=u.length)),void 0!==t["@id"]){let e=t["@id"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:It.properties["@id"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["@type"]){let e=t["@type"];if("https://schema.metadatacenter.org/core/TemplateField"!==e){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:It.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t.properties&&(Ft(t.properties,{instancePath:s+"/properties",parentData:t,parentDataProperty:"properties",rootData:m})||(u=null===u?Ft.errors:u.concat(Ft.errors),l=u.length)),void 0!==t.required&&(o(t.required,{instancePath:s+"/required",parentData:t,parentDataProperty:"required",rootData:m})||(u=null===u?o.errors:u.concat(o.errors),l=u.length)),void 0!==t["pav:createdOn"]){let e=t["pav:createdOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:It.properties["pav:createdOn"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["pav:createdBy"]){let e=t["pav:createdBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:It.properties["pav:createdBy"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["pav:lastUpdatedOn"]){let e=t["pav:lastUpdatedOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:It.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["oslc:modifiedBy"]){let e=t["oslc:modifiedBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:It.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["bibo:status"]){let e=t["bibo:status"];if("string"!=typeof e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}if("bibo:published"!==e&&"bibo:draft"!==e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:It.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["pav:version"]){let e=t["pav:version"];if("string"==typeof e){if(!$t.test(e)){const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/pattern",keyword:"pattern",params:{pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},message:'must match pattern "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"'};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["pav:previousVersion"]){let e=t["pav:previousVersion"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["pav:derivedFrom"]){let e=t["pav:derivedFrom"];if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t.additionalProperties){let e=t.additionalProperties;if("boolean"!=typeof e){const e={instancePath:s+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===u?u=[e]:u.push(e),l++}if(!1!==e){const e={instancePath:s+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:It.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["schema:schemaVersion"]){let e=t["schema:schemaVersion"];if("string"!=typeof e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}if("1.6.0"!==e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:It.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}}}else{const e={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===u?u=[e]:u.push(e),l++}return e.errors=u,0===l},t.staticField=function e(t,{instancePath:s="",parentData:a,parentDataProperty:o,rootData:p=t}={}){let m=null,u=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.$schema){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.type){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.title){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.description){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===m?m=[e]:m.push(e),u++}if(void 0===t._ui){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["@id"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["@type"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.additionalProperties){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["pav:createdOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["pav:createdBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["pav:lastUpdatedOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["oslc:modifiedBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["schema:name"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["schema:description"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["schema:schemaVersion"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===m?m=[e]:m.push(e),u++}if(void 0!==t.$schema){let e=t.$schema;if("http://json-schema.org/draft-04/schema#"!==e){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:Ps.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("object"!==e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Ps.properties.type.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["schema:name"]){let e=t["schema:name"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["schema:description"]&&"string"!=typeof t["schema:description"]){const e={instancePath:s+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if(void 0!==t["skos:prefLabel"]&&"string"!=typeof t["skos:prefLabel"]){const e={instancePath:s+"/skos:prefLabel",schemaPath:"#/properties/skos%3AprefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if(void 0!==t.title){let e=t.title;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.description){let e=t.description;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t._ui&&(zt(t._ui,{instancePath:s+"/_ui",parentData:t,parentDataProperty:"_ui",rootData:p})||(m=null===m?zt.errors:m.concat(zt.errors),u=m.length)),void 0!==t["@context"]){let e=t["@context"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.schema){const e={instancePath:s+"/@context",schemaPath:"#/properties/%40context/required",keyword:"required",params:{missingProperty:"schema"},message:"must have required property 'schema'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.pav){const e={instancePath:s+"/@context",schemaPath:"#/properties/%40context/required",keyword:"required",params:{missingProperty:"pav"},message:"must have required property 'pav'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.oslc){const e={instancePath:s+"/@context",schemaPath:"#/properties/%40context/required",keyword:"required",params:{missingProperty:"oslc"},message:"must have required property 'oslc'"};null===m?m=[e]:m.push(e),u++}if(void 0!==e.schema){let t=e.schema;if("http://schema.org/"!==t){const e={instancePath:s+"/@context/schema",schemaPath:"#/properties/%40context/properties/schema/enum",keyword:"enum",params:{allowedValues:Ps.properties["@context"].properties.schema.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof t){if(!r.validate(t)){const e={instancePath:s+"/@context/schema",schemaPath:"#/properties/%40context/properties/schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/@context/schema",schemaPath:"#/properties/%40context/properties/schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e.pav){let t=e.pav;if("http://purl.org/pav/"!==t){const e={instancePath:s+"/@context/pav",schemaPath:"#/properties/%40context/properties/pav/enum",keyword:"enum",params:{allowedValues:Ps.properties["@context"].properties.pav.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof t){if(!r.validate(t)){const e={instancePath:s+"/@context/pav",schemaPath:"#/properties/%40context/properties/pav/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/@context/pav",schemaPath:"#/properties/%40context/properties/pav/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e.oslc){let t=e.oslc;if("http://open-services.net/ns/core#"!==t){const e={instancePath:s+"/@context/oslc",schemaPath:"#/properties/%40context/properties/oslc/enum",keyword:"enum",params:{allowedValues:Ps.properties["@context"].properties.oslc.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof t){if(!r.validate(t)){const e={instancePath:s+"/@context/oslc",schemaPath:"#/properties/%40context/properties/oslc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/@context/oslc",schemaPath:"#/properties/%40context/properties/oslc/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}}else{const e={instancePath:s+"/@context",schemaPath:"#/properties/%40context/type",keyword:"type",params:{type:"object"},message:"must be object"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["@id"]){let e=t["@id"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:Ps.properties["@id"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["@type"]){let e=t["@type"];if("https://schema.metadatacenter.org/core/StaticTemplateField"!==e){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:Ps.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:createdOn"]){let e=t["pav:createdOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:Ps.properties["pav:createdOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:createdBy"]){let e=t["pav:createdBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:Ps.properties["pav:createdBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:lastUpdatedOn"]){let e=t["pav:lastUpdatedOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:Ps.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["oslc:modifiedBy"]){let e=t["oslc:modifiedBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:Ps.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["schema:schemaVersion"]){let e=t["schema:schemaVersion"];if("string"!=typeof e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("1.6.0"!==e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:Ps.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["bibo:status"]){let e=t["bibo:status"];if("string"!=typeof e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("bibo:published"!==e&&"bibo:draft"!==e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:Ps.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:version"]){let e=t["pav:version"];if("string"==typeof e){if(!$t.test(e)){const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/pattern",keyword:"pattern",params:{pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},message:'must match pattern "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.additionalProperties){let e=t.additionalProperties;if("boolean"!=typeof e){const e={instancePath:s+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===m?m=[e]:m.push(e),u++}if(!1!==e){const e={instancePath:s+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:Ps.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}}else{const e={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===m?m=[e]:m.push(e),u++}return e.errors=m,0===u};const Ps={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{$schema:{type:"string",format:"uri",enum:["http://json-schema.org/draft-04/schema#"]},type:{type:"string",enum:["object"]},"schema:name":{type:"string",minLength:1},"schema:description":{type:"string"},"skos:prefLabel":{type:"string"},title:{type:"string",minLength:1},description:{type:"string",minLength:1},_ui:{$ref:"#/definitions/staticFieldUIContent"},"@context":{type:"object",properties:{schema:{type:"string",format:"uri",enum:["http://schema.org/"]},pav:{type:"string",format:"uri",enum:["http://purl.org/pav/"]},oslc:{type:"string",format:"uri",enum:["http://open-services.net/ns/core#"]}},required:["schema","pav","oslc"]},"@id":{type:["string","null"],format:"uri"},"@type":{type:"string",format:"uri",enum:["https://schema.metadatacenter.org/core/StaticTemplateField"]},properties:{},"pav:createdOn":{type:["string","null"],format:"date-time"},"pav:createdBy":{type:["string","null"],format:"uri"},"pav:lastUpdatedOn":{type:["string","null"],format:"date-time"},"oslc:modifiedBy":{type:["string","null"],format:"uri"},"schema:schemaVersion":{type:"string",enum:["1.6.0"]},"bibo:status":{type:"string",enum:["bibo:published","bibo:draft"]},"pav:version":{type:"string",pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},additionalProperties:{type:"boolean",enum:[!1]}},required:["$schema","type","title","description","_ui","@id","@type","additionalProperties","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy","schema:name","schema:description","schema:schemaVersion"]};t.multiple=function e(t,{instancePath:s="",parentData:a,parentDataProperty:r,rootData:i=t}={}){let n=null,o=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.type){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===n?n=[e]:n.push(e),o++}if(void 0===t.minItems){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"minItems"},message:"must have required property 'minItems'"};null===n?n=[e]:n.push(e),o++}if(void 0===t.items){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};null===n?n=[e]:n.push(e),o++}if(void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("array"!==e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:gs.properties.type.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==t.minItems){let e=t.minItems;if("number"!=typeof e||e%1||isNaN(e)){const e={instancePath:s+"/minItems",schemaPath:"#/properties/minItems/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===n?n=[e]:n.push(e),o++}if("number"==typeof e&&(e<0||isNaN(e))){const e={instancePath:s+"/minItems",schemaPath:"#/properties/minItems/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};null===n?n=[e]:n.push(e),o++}}if(void 0!==t.items){let e=t.items;const a=o;let r=!1,m=null;const u=o;Lt(e,{instancePath:s+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(n=null===n?Lt.errors:n.concat(Lt.errors),o=n.length),(p=u===o)&&(r=!0,m=0);const l=o;if(Et(e,{instancePath:s+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(n=null===n?Et.errors:n.concat(Et.errors),o=n.length),(p=l===o)&&r)r=!1,m=[m,1];else{p&&(r=!0,m=1);const a=o;var p;ms(e,{instancePath:s+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(n=null===n?ms.errors:n.concat(ms.errors),o=n.length),(p=a===o)&&r?(r=!1,m=[m,2]):p&&(r=!0,m=2)}if(r)o=a,null!==n&&(a?n.length=a:n=null);else{const e={instancePath:s+"/items",schemaPath:"#/properties/items/oneOf",keyword:"oneOf",params:{passingSchemas:m},message:"must match exactly one schema in oneOf"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return e.errors=n,0===o};const gs={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{type:{type:"string",enum:["array"]},minItems:{type:"integer",minimum:0},items:{oneOf:[{$ref:"#/definitions/literalTemplateField"},{$ref:"#/definitions/iriTemplateField"},{$ref:"#/definitions/attributeValueTemplateField"}]}},required:["type","minItems","items"]};t.attributeField=function e(t,{instancePath:s="",parentData:a,parentDataProperty:o,rootData:p=t}={}){let m=null,u=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.$schema){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.type){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.title){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.description){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===m?m=[e]:m.push(e),u++}if(void 0===t._ui){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["@context"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["@id"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["@type"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.additionalProperties){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["pav:createdOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["pav:createdBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["pav:lastUpdatedOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["oslc:modifiedBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["schema:schemaVersion"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["schema:name"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["schema:description"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===m?m=[e]:m.push(e),u++}if(void 0!==t.$schema){let e=t.$schema;if("http://json-schema.org/draft-04/schema#"!==e){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:ps.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["@id"]){let e=t["@id"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:ps.properties["@id"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["@type"]){let e=t["@type"];if("https://schema.metadatacenter.org/core/TemplateField"!==e){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:ps.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["@context"]&&(kt(t["@context"],{instancePath:s+"/@context",parentData:t,parentDataProperty:"@context",rootData:p})||(m=null===m?kt.errors:m.concat(kt.errors),u=m.length)),void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("string"!==e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ps.properties.type.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.title){let e=t.title;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.description){let e=t.description;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t._ui){let e=t._ui;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.inputType){const e={instancePath:s+"/_ui",schemaPath:"#/properties/_ui/required",keyword:"required",params:{missingProperty:"inputType"},message:"must have required property 'inputType'"};null===m?m=[e]:m.push(e),u++}for(const t in e)if("inputType"!==t){const e={instancePath:s+"/_ui",schemaPath:"#/properties/_ui/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:t},message:"must NOT have additional properties"};null===m?m=[e]:m.push(e),u++}if(void 0!==e.inputType){let t=e.inputType;if("string"!=typeof t){const e={instancePath:s+"/_ui/inputType",schemaPath:"#/properties/_ui/properties/inputType/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("attribute-value"!==t){const e={instancePath:s+"/_ui/inputType",schemaPath:"#/properties/_ui/properties/inputType/enum",keyword:"enum",params:{allowedValues:ps.properties._ui.properties.inputType.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}}else{const e={instancePath:s+"/_ui",schemaPath:"#/properties/_ui/type",keyword:"type",params:{type:"object"},message:"must be object"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["schema:name"]){let e=t["schema:name"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["schema:description"]&&"string"!=typeof t["schema:description"]){const e={instancePath:s+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if(void 0!==t["pav:createdOn"]){let e=t["pav:createdOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:ps.properties["pav:createdOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:createdBy"]){let e=t["pav:createdBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:ps.properties["pav:createdBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:lastUpdatedOn"]){let e=t["pav:lastUpdatedOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:ps.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["oslc:modifiedBy"]){let e=t["oslc:modifiedBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:ps.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["bibo:status"]){let e=t["bibo:status"];if("string"!=typeof e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("bibo:published"!==e&&"bibo:draft"!==e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:ps.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:version"]){let e=t["pav:version"];if("string"==typeof e){if(!$t.test(e)){const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/pattern",keyword:"pattern",params:{pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},message:'must match pattern "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:previousVersion"]){let e=t["pav:previousVersion"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:derivedFrom"]){let e=t["pav:derivedFrom"];if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.additionalProperties){let e=t.additionalProperties;if("boolean"!=typeof e){const e={instancePath:s+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===m?m=[e]:m.push(e),u++}if(!1!==e){const e={instancePath:s+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:ps.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["schema:schemaVersion"]){let e=t["schema:schemaVersion"];if("string"!=typeof e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("1.6.0"!==e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:ps.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}}else{const e={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===m?m=[e]:m.push(e),u++}return e.errors=m,0===u},t.multipleChild=function e(t,{instancePath:s="",parentData:a,parentDataProperty:r,rootData:i=t}={}){let n=null,o=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.type){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===n?n=[e]:n.push(e),o++}if(void 0===t.minItems){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"minItems"},message:"must have required property 'minItems'"};null===n?n=[e]:n.push(e),o++}if(void 0===t.items){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};null===n?n=[e]:n.push(e),o++}if(void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("array"!==e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:os.properties.type.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==t.minItems){let e=t.minItems;if("number"!=typeof e||e%1||isNaN(e)){const e={instancePath:s+"/minItems",schemaPath:"#/properties/minItems/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===n?n=[e]:n.push(e),o++}if("number"==typeof e&&(e<0||isNaN(e))){const e={instancePath:s+"/minItems",schemaPath:"#/properties/minItems/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};null===n?n=[e]:n.push(e),o++}}if(void 0!==t.items){let e=t.items;const a=o;let r=!1,m=null;const u=o;Lt(e,{instancePath:s+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(n=null===n?Lt.errors:n.concat(Lt.errors),o=n.length),(p=u===o)&&(r=!0,m=0);const l=o;if(Et(e,{instancePath:s+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(n=null===n?Et.errors:n.concat(Et.errors),o=n.length),(p=l===o)&&r)r=!1,m=[m,1];else{p&&(r=!0,m=1);const a=o;if(ms(e,{instancePath:s+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(n=null===n?ms.errors:n.concat(ms.errors),o=n.length),(p=a===o)&&r)r=!1,m=[m,2];else{p&&(r=!0,m=2);const a=o;var p;ns(e,{instancePath:s+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(n=null===n?ns.errors:n.concat(ns.errors),o=n.length),(p=a===o)&&r?(r=!1,m=[m,3]):p&&(r=!0,m=3)}}if(r)o=a,null!==n&&(a?n.length=a:n=null);else{const e={instancePath:s+"/items",schemaPath:"#/properties/items/oneOf",keyword:"oneOf",params:{passingSchemas:m},message:"must match exactly one schema in oneOf"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return e.errors=n,0===o},t.schemaDigests={"template-meta-schema.json":"602d86e62f7a9662050550c98899ec131b0cd2770703de6564e421a6acd4604d","element-meta-schema.json":"15e51482a88da9bd56bdb2287407cbf7d94d33ed683874937928435528dee587","literal-field-meta-schema.json":"45a8fea71c09913333c872118aaec38197a62f351f36e98cdbf31bfd7467549a","iri-field-meta-schema.json":"ad02a5ffedd42449d7807fc7c00f923979f55044c716ecbe0cc4dcc042d28b92","static-field-meta-schema.json":"d5f0d3e42ef8d35df07bcf38e063789df1eebbec63dbfa0e535c26a8b6078429","multi-instance-field-meta-schema.json":"a683ff6c676047145669efb9e0b8b5c590cf562637f2bebf1e47580e1df737fc"}}};const t={};function s(a){const r=t[a];if(void 0!==r)return r.exports;const i=t[a]={exports:{}};return e[a].call(i.exports,i,i.exports,s),i.exports}let a={};(()=>{let e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.SchemaArtifactValidator=void 0;var t=s(371);Object.defineProperty(e,"SchemaArtifactValidator",{enumerable:!0,get:function(){return t.SchemaArtifactValidator}})})();const r=a.SchemaArtifactValidator,i=a.__esModule;export{r as SchemaArtifactValidator,i as __esModule};export default a;
|
|
1
|
+
var e={250(e,t,s){const a=s(17);a.code='require("ajv/dist/runtime/equal").default',t.default=a},853(e,t){function s(e){const t=e.length;let s,a=0,r=0;for(;r<t;)a++,s=e.charCodeAt(r++),s>=55296&&s<=56319&&r<t&&(s=e.charCodeAt(r),56320==(64512&s)&&r++);return a}t.A=s,s.code='require("ajv/dist/runtime/ucs2length").default'},17(e){e.exports=function e(t,s){if(t===s)return!0;if(t&&s&&"object"==typeof t&&"object"==typeof s){if(t.constructor!==s.constructor)return!1;var a,r,i;if(Array.isArray(t)){if((a=t.length)!=s.length)return!1;for(r=a;0!==r--;)if(!e(t[r],s[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===s.source&&t.flags===s.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===s.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===s.toString();if((a=(i=Object.keys(t)).length)!==Object.keys(s).length)return!1;for(r=a;0!==r--;)if(!Object.prototype.hasOwnProperty.call(s,i[r]))return!1;for(r=a;0!==r--;){var n=i[r];if(!e(t[n],s[n]))return!1}return!0}return t!=t&&s!=s}},371(e,t,s){var a,r=this&&this.__createBinding||(Object.create?function(e,t,s,a){void 0===a&&(a=s);var r=Object.getOwnPropertyDescriptor(t,s);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,a,r)}:function(e,t,s,a){void 0===a&&(a=s),e[a]=t[s]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||(a=function(e){return a=Object.getOwnPropertyNames||function(e){var t=[];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[t.length]=s);return t},a(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s=a(e),n=0;n<s.length;n++)"default"!==s[n]&&r(t,e,s[n]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaArtifactValidator=void 0;const o=n(s(125)),p=s(108),m=s(92),u=s(403),l=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),h="https://schema.metadatacenter.org/core/",c=new Set(["controlled-term","link","ext-orcid","ext-ror","ext-pfas","ext-rrid","ext-pubmed","ext-nih-grant-id","ext-doi"]);class d{static schemaDigests=o.schemaDigests;static validate(e,t){const s=this.structure(e,t).findings;return s.length||u.SchemaValuePolicy.visit(e,"",s),m.ValidationPolicy.summarize(s,"template")}static structure(e,t){const s=[];try{const a=e;if(!l(a))throw new Error("Expected a template, element or field object.");const r="array"===a.type&&l(a.items)&&a.items["@type"]===h+"TemplateField";if(r&&!["checkbox","attribute-value"].includes(String(a.items._ui&&a.items._ui.inputType)))throw new Error("This standalone field must use an object schema.");const i=r?"field":a["@type"]===h+"Template"?"template":a["@type"]===h+"TemplateElement"?"element":[h+"TemplateField",h+"StaticTemplateField"].includes(String(a["@type"]))?"field":void 0;if(!i||t&&t!==i)throw new Error("The artifact type does not match the requested schema artifact.");const n=this.schemaView(e),p=r?o.multiple:"template"===i?o.template:"element"===i?o.element:a["@type"]===h+"StaticTemplateField"?o.staticField:c.has(String(a._ui?.inputType))?o.iri:o.literal;if(!p(n)){const e=new Set;for(const t of this.explain(n,[...p.errors??[]])){const a=t.params.additionalProperty??t.params.missingProperty,r=a?m.ValidationPolicy.child(t.instancePath,a):t.instancePath,i=r+":"+t.keyword;e.has(i)||(e.add(i),s.push(m.ValidationPolicy.finding("schema."+t.keyword,r,t.message??"Invalid schema artifact.")))}}this.occurrences(e,"",s)}catch(e){s.push(m.ValidationPolicy.finding("schema.invalid","",e instanceof Error?e.message:"Invalid schema artifact."))}return m.ValidationPolicy.summarize(s,"template")}static explain(e,t){if(!l(e))return t;const s="array"===e.type?[["/items",e.items]]:[h+"Template",h+"TemplateElement"].includes(String(e["@type"]))&&l(e.properties)?Object.entries(e.properties).map(([e,t])=>[m.ValidationPolicy.child("/properties",e),t]):[];for(const[e,a]of s){if(!l(a))continue;const s=a["@type"],r=l(a._ui)?a._ui.inputType:void 0,i="array"===a.type?o.multipleChild:s===h+"TemplateElement"?o.element:s===h+"StaticTemplateField"?o.staticField:s!==h+"TemplateField"?void 0:"attribute-value"===r?o.attributeField:c.has(String(r))?o.iri:o.literal;if(!i||i(a))continue;const n=this.explain(a,[...i.errors??[]]);n.length&&(t=t.filter(t=>t.instancePath!==e&&!t.instancePath.startsWith(e+"/"))).push(...n.map(t=>({...t,instancePath:e+t.instancePath})))}return t}static schemaView(e,t=new Set){if(p.ExactDecimal.isExact(e))return Number(String(e));if("number"==typeof e&&!Number.isFinite(e))throw new Error("Nonfinite JSON number.");if(null===e||"object"!=typeof e)return e;if(t.has(e))throw new Error("A schema artifact cannot contain a cycle.");t.add(e);const s=Array.isArray(e)?e.map(e=>this.schemaView(e,t)):Object.fromEntries(Object.entries(e).map(([e,s])=>[e,this.schemaView(s,t)]));return t.delete(e),s}static occurrences(e,t,s){if(l(e))if("array"===e.type){for(const a of["minItems","maxItems"]){const r=e[a];void 0!==r&&("number"!=typeof r||!Number.isInteger(r)||r<0||r>2147483647)&&s.push(m.ValidationPolicy.finding("schema.occurrences",t+"/"+a,"Occurrence limits must be integers between 0 and 2147483647."))}this.occurrences(e.items,t+"/items",s)}else if([h+"Template",h+"TemplateElement"].includes(String(e["@type"]))&&l(e.properties))for(const[a,r]of Object.entries(e.properties))this.occurrences(r,m.ValidationPolicy.child(t+"/properties",a),s)}}t.SchemaArtifactValidator=d},659(e,t,s){t.M=void 0;const a=s(500),r=s(435);t.M={uri:{type:"string",validate(e){if(""===e)return!0;try{return a.IdentifierPolicy.assertFieldIri(e,"uri"),!0}catch{return!1}}},"date-time":{type:"string",validate(e){if(!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,9})?(?:Z|[+-]\d{2}:?\d{2}(?::\d{2})?)$/.test(e))return!1;try{return r.TimestampPolicy.canonical(e),!0}catch{return!1}}}}},830(e,t,s){t.FieldValuePolicy=void 0;const a=s(36),r=s(500),i=s(108),n=s(991),o=s(992),p=s(92);class m{static authorityTypes=new Set(["ext-orcid","ext-ror","ext-pfas","ext-pubmed","ext-rrid","ext-nih-grant-id","ext-doi"]);static staticTypes=new Set(["page-break","section-break","richtext","image","youtube"]);static integerRanges={"xsd:byte":["-128","127"],"xsd:short":["-32768","32767"],"xsd:int":["-2147483648","2147483647"],"xsd:long":["-9223372036854775808","9223372036854775807"]};static isControlled(e){const t=e._valueConstraints??{};return["controlled","controlled-term"].includes(e._ui?.inputType??"")||Object.hasOwn(e.properties??{},"@id")&&["ontologies","branches","classes","valueSets"].some(e=>Object.hasOwn(t,e))}static isIri(e){const t=e._ui?.inputType??"";return"link"===t||this.authorityTypes.has(t)||this.isControlled(e)||Object.hasOwn(e.properties??{},"@id")}static validateConfiguration(e,t=""){const s=e._valueConstraints??{},a=[],r=(e,s)=>a.push(p.ValidationPolicy.finding("templateConstraint",p.ValidationPolicy.child(t+"/_valueConstraints",e),s));for(const e of["minLength","maxLength","decimalPlace"])Object.hasOwn(s,e)&&(!Number.isInteger(s[e])||s[e]<0||s[e]>2147483647)&&r(e,`${e} must be a nonnegative integer.`);null!=s.minLength&&null!=s.maxLength&&s.minLength>s.maxLength&&r("maxLength","Minimum length exceeds maximum length.");const n=new Set;for(const e of["minValue","maxValue"])if(Object.hasOwn(s,e))try{if("number"!=typeof s[e]&&!i.ExactDecimal.isExact(s[e]))throw new Error;i.NumericPolicy.value(s[e]),n.add(e)}catch{r(e,"Numeric bounds must be finite decimal values.")}if(2===n.size&&i.NumericPolicy.compare(s.minValue,s.maxValue)>0&&r("maxValue","Minimum value exceeds maximum value."),"numeric"===e._ui?.inputType){const e=s.numberType,t=Object.hasOwn(this.integerRanges,e);t||["xsd:float","xsd:double","xsd:decimal"].includes(e)||r("numberType","A numeric field requires a recognized datatype.");const a=Number.isInteger(s.decimalPlace)&&s.decimalPlace>=0&&s.decimalPlace<=2147483647;t&&a&&0!==s.decimalPlace&&r("decimalPlace","Integer datatypes cannot declare fractional decimal places.");for(const o of n)(t||["xsd:float","xsd:double","xsd:decimal"].includes(e))&&(this.numeric({numberType:e},s[o],"","template").some(e=>"numberType"===e.code)?r(o,"The bound is outside its numeric datatype."):a&&i.NumericPolicy.fractionalDigits(s[o])>s.decimalPlace&&r(o,"The bound exceeds the declared decimal precision."))}return Object.hasOwn(s,"regex")&&("string"!=typeof s.regex?r("regex","A pattern must be a string."):""!==s.regex&&a.push(...this.regex(s.regex,null,t+"/_valueConstraints/regex"))),a}static validate(e,t,s="",i="instance"){if(null==t||""===t)return[];const n=e._valueConstraints??{},m=e._ui?.inputType,u=[],l=(e,t)=>u.push(p.ValidationPolicy.finding(e,s,t));if("string"!=typeof t&&("template"!==i||"numeric"!==m))return l("valueShape","A populated field value must be a string."),u;const h=String(t);if(null!=n.minLength&&o.TextPolicy.codePointLength(h)<n.minLength&&l("minLength",`Shorter than the minimum ${n.minLength}.`),null!=n.maxLength&&o.TextPolicy.codePointLength(h)>n.maxLength&&l("maxLength",`Longer than the maximum ${n.maxLength}.`),"string"==typeof n.regex&&""!==n.regex&&u.push(...this.regex(n.regex,h,s)),"email"!==m||/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(h)||l("email","Not a valid email address."),"phone-number"!==m||/^[+0-9 \t\-()]+$/.test(h)||l("phoneNumber","Not a valid phone number."),this.isIri(e)&&(r.IdentifierPolicy.isValidAuthoringIri(h,!0)||l("iriMalformed","Not a valid absolute IRI.")),"numeric"===m&&u.push(...this.numeric(n,t,s,i)),"temporal"===m)if("template"===i){try{a.TemporalDefaultPolicy.assertValid(n.temporalType??null,e._ui?.temporalGranularity??null,h)}catch(e){l("temporalType",e instanceof Error?e.message:"Invalid temporal default.")}/(Z|[+-]\d{2}:\d{2})$/.test(h)&&!0!==e._ui?.timezoneEnabled&&l("timezone","Carries a timezone offset but none is enabled.")}else u.push(...this.temporal(e,h,s));return Array.isArray(n.literals)&&n.literals.length&&!n.literals.some(e=>e?.label===h)&&l("choiceMembership","Not one of the declared options."),u}static validateNode(e,t,s=""){const a=[],r=(e,t,r)=>a.push(p.ValidationPolicy.finding(e,null===t?s:p.ValidationPolicy.child(s,t),r)),i=e._valueConstraints??{};if(!t||"object"!=typeof t||Array.isArray(t))return r("valueShape",null,"A field slot must be an object."),a;const n=t,o=!1===e.additionalProperties,m=t=>!o||Object.hasOwn(e.properties??{},t);if(this.staticTypes.has(e._ui?.inputType??"")){for(const e of Object.keys(n).filter(e=>!m(e)))r("valueShape",e,"The template does not declare this property.");return a}for(const e of["rdfs:label","skos:prefLabel","skos:notation","@language"])Object.hasOwn(n,e)&&null!==n[e]&&"string"!=typeof n[e]&&r("valueShape",e,`${e} must be a string or null.`);for(const e of Object.keys(n))"@id"===e||"@value"===e||m(e)||r("valueShape",e,"The template does not declare this property.");if(Object.hasOwn(n,"@id")&&("string"!=typeof n["@id"]||""===n["@id"]))return r("iriMalformed","@id","A populated IRI must be a nonempty string."),a;const u=(e.required??[]).filter(e=>!Object.hasOwn(n,e));for(const e of u)r("missingProperty",e,`The field slot must contain ${e}.`);if(u.length)return a;if(0===Object.keys(n).length)return this.isIri(e)?(!0===i.requiredValue&&r("required",null,"A value is required."),a):(r("missingProperty","@value","A literal field slot must contain @value."),a);if(this.isIri(e)){if(!Object.hasOwn(n,"@value")||null===n["@value"]&&m("@value")||r("valueShape","@value","An IRI field cannot contain a literal value."),!Object.hasOwn(n,"@id")){!0===i.requiredValue&&r("required",null,"A value is required.");const t=n["rdfs:label"];return this.isControlled(e)&&"string"==typeof t&&""!==t&&r("controlledStructure",null,"A controlled-term label requires an IRI."),a}return a.push(...this.validate(e,n["@id"],s+"/@id")),a}if(Object.hasOwn(n,"@id"))return r("valueShape","@id","A literal field cannot contain an IRI value."),a;if(!Object.hasOwn(n,"@value"))return r("valueShape","@value","A literal field requires @value."),a;const l=n["@value"];if(null===l||""===l)return!0===i.requiredValue&&r("required","@value","A value is required."),a;const h="numeric"===e._ui?.inputType?i.numberType:"temporal"===e._ui?.inputType?i.temporalType:null,c=e=>"string"==typeof e?e.replace("http://www.w3.org/2001/XMLSchema#","xsd:"):e;return null!=h&&c(n["@type"])!==c(h)&&r("valueType","@type",`The value must declare ${h}.`),a.push(...this.validate(e,l,s+"/@value")),a}static validateDefault(e,t=""){const s=(e._valueConstraints??{}).defaultValue;if(null==s)return[];const a=t+"/_valueConstraints/defaultValue";return this.isControlled(e)?s&&"object"==typeof s&&"string"==typeof s.termUri&&""!==s.termUri&&"string"==typeof s["rdfs:label"]&&""!==s["rdfs:label"]?this.validate(e,s.termUri,a+"/termUri","template"):[p.ValidationPolicy.finding("controlledStructure",a,"A controlled default requires termUri and rdfs:label.")]:this.validate(e,s,a,"template")}static assertConsistent(e){const t={...e,_valueConstraints:Object.fromEntries(Object.entries(e._valueConstraints??{}).filter(([,e])=>null!=e))},s=[...this.validateConfiguration(t),...this.validateDefault(t)].find(e=>p.ValidationPolicy.blocksSave(e.code,"template"));if(s)throw new Error(`${s.message} (${s.path})`)}static regex(e,t,s){const a=n.RegexChecks.inspect(e,t);return"valid"===a||"match"===a||"invalid"===a&&null!==t?[]:"mismatch"===a?[p.ValidationPolicy.finding("regex",s,"Does not match the field pattern.")]:"invalid"===a?[p.ValidationPolicy.finding("templateConstraint",s,"The field pattern is invalid.")]:[p.ValidationPolicy.finding("pending"===a?"regexPending":"regexEvaluation",s,"pending"===a?"Pattern validation is pending.":`Pattern validation could not finish (${a}).`,"pending"===a?"notChecked":"unavailable")]}static numeric(e,t,s,a){const r=[],n=(e,t)=>r.push(p.ValidationPolicy.finding(e,s,t)),o=e.numberType??"xsd:decimal",m=this.integerRanges[o],u=String(t);if("instance"===a&&(m?!/^[+-]?(?:0|[1-9][0-9]*)$/.test(u):!/^[+-]?(?:(?:0|[1-9][0-9]*)(?:\.[0-9]*)?|\.[0-9]+)$/.test(u)))return n("numberType",`Not a valid ${o}.`),r;try{if(!m&&!["xsd:float","xsd:double","xsd:decimal"].includes(o))throw new Error("Unknown numeric datatype.");if(i.NumericPolicy.value(t),m&&(!i.NumericPolicy.isInteger(t)||i.NumericPolicy.compare(t,m[0])<0||i.NumericPolicy.compare(t,m[1])>0))return n("numberType",`Outside the range of ${o}.`),r;if("template"===a&&("xsd:float"===o||"xsd:double"===o)){const e=u.replace(/^-/,""),t="xsd:float"===o?"3.4028234663852886e38":"1.7976931348623157e308",s="xsd:float"===o?"1.401298464324817e-45":"4.9e-324";if(i.NumericPolicy.compare(e,t)>0||0!==i.NumericPolicy.compare(e,0)&&i.NumericPolicy.compare(e,s)<0)return n("numberType",`Outside the range of ${o}.`),r}const s="instance"===a?u.split(".")[1]?.length??0:i.NumericPolicy.fractionalDigits(t);null!=e.decimalPlace&&s>e.decimalPlace&&n("decimalPlace",`More than ${e.decimalPlace} decimal places.`),("number"==typeof e.minValue||i.ExactDecimal.isExact(e.minValue))&&i.NumericPolicy.compare(t,e.minValue)<0&&n("minValue",`Below the minimum ${e.minValue}.`),("number"==typeof e.maxValue||i.ExactDecimal.isExact(e.maxValue))&&i.NumericPolicy.compare(t,e.maxValue)>0&&n("maxValue",`Above the maximum ${e.maxValue}.`)}catch{n("numberType","Not a finite decimal value.")}return r}static temporal(e,t,s){const a=[],r=(e,t)=>a.push(p.ValidationPolicy.finding(e,s,t)),i=e._valueConstraints?.temporalType,n=e._ui?.temporalGranularity,o=t.match(/(Z|[+-]\d{2}:\d{2})$/)?.[0],m=o?t.slice(0,-o.length):t;if(o){if("Z"!==o){const e=Number(o.slice(1,3)),t=Number(o.slice(4));(e>14||t>59||14===e&&0!==t)&&r("timezoneOffset","Not a valid xsd timezone offset.")}!0!==e._ui?.timezoneEnabled&&r("timezone","Carries a timezone offset but none is enabled.")}const u=/^(\d{4})-(\d{2})-(\d{2})$/,l=/^(\d{2}):(\d{2})(?::(\d{2}))?(\.\d+)?$/,h=m.split("T"),c="xsd:time"===i?null:h[0],d="xsd:time"===i?m:2===h.length?h[1]:null;if(!("xsd:date"===i?1===h.length&&u.test(m):"xsd:time"===i?l.test(m):"xsd:dateTime"===i&&2===h.length&&u.test(h[0])&&l.test(h[1])))return r("temporalType",`Not a valid ${i}.`),a;const y=c?.match(u),f=d?.match(l);if(y){const e=Number(y[1]),t=Number(y[2]),s=Number(y[3]);(t<1||t>12||s<1||s>[31,e%4!=0||e%100==0&&e%400!=0?28:29,31,30,31,30,31,31,30,31,30,31][t-1])&&r("temporalCalendar","Not a real calendar date.")}if(f&&(Number(f[1])>23||Number(f[2])>59||Number(f[3]??0)>59)&&r("temporalCalendar","Not a real time of day."),n){let e=y&&("year"===n&&("01"!==y[2]||"01"!==y[3])||"month"===n&&"01"!==y[3]);if(f){const t="00"===f[1]&&"00"===f[2]&&(null==f[3]||"00"===f[3])&&null==f[4];e||=["year","month","day"].includes(n)&&!("xsd:dateTime"===i&&t),e||=("second"===n||"decimalSecond"===n)&&null==f[3],e||="decimalSecond"===n&&null==f[4],e||="hour"===n&&("00"!==f[2]||null!=f[3]&&"00"!==f[3]||null!=f[4]),e||="minute"===n&&(null!=f[3]&&"00"!==f[3]||null!=f[4]),e||="second"===n&&null!=f[4]}e&&r("temporalGranularity",`Does not match ${n} granularity.`)}return a}}t.FieldValuePolicy=m},500(e,t){t.IdentifierPolicy=void 0,t.IdentifierPolicy=class{static assertIdentifierCharacters(e,t){if(null!==e){if(Array.from(e).some(e=>e.charCodeAt(0)<=32||e.charCodeAt(0)>=127&&e.charCodeAt(0)<=159||/\p{Z}/u.test(e)))throw new Error(`Invalid URI at "${t}": unescaped space or control character.`);if(e.indexOf("#")!==e.lastIndexOf("#"))throw new Error(`Invalid URI at "${t}": more than one fragment delimiter.`);if(e.split(/[/?#]/,1)[0].includes(":")&&!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(e))throw new Error(`Invalid URI at "${t}": malformed scheme.`)}}static assertFieldIri(e,t){if(null===e)return;if(""===e)throw new Error(`An empty string is not a URI at "${t}"; write null or leave the key out where there is no value.`);if("string"!=typeof e)throw new Error(`Invalid URI/IRI at "${t}": expected string.`);let s=!1,a=!1;for(const r of e){const e=r.codePointAt(0);if("#"===r?(a=!0,s=!1):"?"!==r||a||(s=!0),e<128){if(e<=32||127===e||'<>"{}|\\^`'.includes(r))throw new Error(`Invalid URI/IRI at "${t}": unescaped space, control or forbidden character.`)}else if(!(e>=160&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65519||e>=65536&&e<=917501&&(65535&e)<=65533||e>=921600&&e<=983037||s&&(e>=57344&&e<=63743||e>=983040&&e<=1048573||e>=1048576&&e<=1114109)))throw new Error(`Invalid URI/IRI at "${t}": forbidden Unicode character.`)}if(/%(?![0-9a-fA-F]{2})/.test(e))throw new Error(`Invalid URI/IRI at "${t}": malformed percent escape.`);const r=/^[A-Za-z][A-Za-z0-9+.-]*:/.exec(e)?.[0]??"",i=e.slice(r.length).split("#",1)[0];if(r&&!i||"//"===i)throw new Error(`Invalid URI/IRI at "${t}": missing scheme-specific part or authority.`);const n=Array.from(e,e=>e.codePointAt(0)>=128?encodeURIComponent(e):e).join("");this.assertIdentifierCharacters(n,t)}static assertIri(e,t){if(null!==e&&""!==e){if("string"!=typeof e)throw new Error(`Invalid URI at "${t}": expected a string.`);this.assertFieldIri(e,t),this.assertIdentifierCharacters(e,t)}}static assertIdentifier(e,t){if(null!==e){if("string"!=typeof e)throw new Error(`Invalid URI at "${t}": expected a string.`);if(""===e)throw new Error(`An empty string is not a URI at "${t}"; write null or leave the key out where there is no value.`);if(this.assertIri(e,t),!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(e))throw new Error(`Invalid URI at "${t}": an identifier must be an absolute IRI.`)}}static matchesUriFormat(e){if("string"!=typeof e)return!1;if(""===e)return!0;try{return this.assertFieldIri(e,"value"),!0}catch{return!1}}static isValid(e){if("string"!=typeof e)return!1;try{return this.assertIdentifier(e,"value"),!0}catch{return!1}}static isValidFieldValue(e){if("string"!=typeof e)return!1;try{return this.assertFieldIri(e,"value"),!0}catch{return!1}}static isValidAuthoringIri(e,t=!1){if(!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(e))return!1;if(!(t?this.isValidFieldValue(e):this.isValid(e)))return!1;if(!/^https?:/i.test(e))return!0;if(!/^https?:\/\//i.test(e))return!1;try{return new URL(e).hostname.length>0}catch{return!1}}}},108(e,t){t.NumericPolicy=t.ExactDecimal=void 0;class s{text;cedarExactDecimal=!0;static isExact(e){return null!==e&&"object"==typeof e&&!0===e.cedarExactDecimal&&"function"==typeof e.toJSON}constructor(e){this.text=e,Object.freeze(this)}static forValue(e){return new s(a.canonical(e))}toString(){return this.text}valueOf(){throw new Error("Use NumericPolicy.compare for exact decimals; implicit numeric coercion would lose precision.")}toJSON(){const e=JSON.rawJSON;if(!e)throw new Error("Use JsonSourcePolicy.stringify to serialize exact decimal numbers.");return e(this.text)}}t.ExactDecimal=s;class a{static parts(e){const t="string"==typeof e?e:String(e),s=/^([+-]?)(?:(\d+)(?:\.(\d*))?|\.(\d+))(?:[eE]([+-]?\d+))?$/.exec(t);if(!s)throw new Error("Expected a finite decimal number without surrounding whitespace.");const a=s[3]??s[4]??"",r=BigInt(s[5]??"0");let i=r-BigInt(a.length);if(r<-2147483647n||r>2147483647n||i<-2147483647n||i>2147483648n)throw new Error("Decimal exponent or scale is outside the shared numeric range.");let n=((s[2]??"")+a).replace(/^0+/,"");if(!n)return{sign:0,digits:"0",exponent:0n};const o=/0+$/.exec(n)?.[0].length??0;return o&&(n=n.slice(0,-o),i+=BigInt(o)),{sign:"-"===s[1]?-1:1,digits:n,exponent:i}}static canonical(e){const{sign:t,digits:s,exponent:a}=this.parts(e);if(!t)return"0";const r=t<0?"-":"",i=a+BigInt(s.length-1);if(a>=0n&&i<1000n)return r+s+"0".repeat(Number(a));if(a<0n&&i>=-1000n){const e=s.length+Number(a);return r+(e>0?s.slice(0,e)+"."+s.slice(e):"0."+"0".repeat(-e)+s)}if(i>2147483647n){const e=a-2147483647n;return r+s+(e>0n?"0".repeat(Number(e)):"")+"E+"+(e>0n?2147483647n:a)}return r+s[0]+(s.length>1?"."+s.slice(1):"")+"E"+(i>=0n?"+":"")+i}static compare(e,t){const s=this.parts(e),a=this.parts(t);if(s.sign!==a.sign)return s.sign<a.sign?-1:1;if(!s.sign)return 0;const r=BigInt(s.digits.length)+s.exponent,i=BigInt(a.digits.length)+a.exponent;let n;if(r!==i)n=r<i?-1:1;else{const e=Math.max(s.digits.length,a.digits.length),t=s.digits.padEnd(e,"0"),r=a.digits.padEnd(e,"0");n=t===r?0:t<r?-1:1}return 0===n?0:n*s.sign}static isInteger(e){return this.parts(e).exponent>=0n}static fractionalDigits(e){return Math.max(0,-Number(this.parts(e).exponent))}static value(e){if(s.isExact(e))return e;if(this.parts(e),"number"==typeof e)return e;const t=Number(e);return!Number.isFinite(t)||Number.isInteger(t)&&!Number.isSafeInteger(t)||0!==this.compare(e,t)?s.forValue(e):t}}t.NumericPolicy=a},991(e,t,s){t.RegexChecks=void 0;const a=s(128);class r{changed;policy;entries=new Map;used=null;size=0;disposed=!1;capacityLimited=!1;static active=null;constructor(e=()=>{},t=new a.RegexPolicy){this.changed=e,this.policy=t}run(e){if(this.used)return e();const t=r.active;r.active=this,this.used=new Set,this.capacityLimited=!1;try{return e()}finally{const e=this.used;this.used=null,r.active=t;let s=!1;for(const[t,a]of this.entries)e.has(t)||(s=!0,this.entries.delete(t),this.size-=t.length,a.controller.abort());s&&this.capacityLimited&&queueMicrotask(()=>{this.disposed||this.changed()})}}static inspect(e,t=null){return this.active?.check(e,t)??"pending"}check(e,t){if(this.disposed)return"cancelled";if(e.length>1e4||(t?.length??0)>1e6)return"limit";const s=JSON.stringify([e,t]);this.used.add(s);const a=this.entries.get(s);if(a)return a.result;if(this.entries.size>=1024||this.size+s.length>4e6)return this.capacityLimited=!0,"limit";const r=new AbortController,i={result:"pending",controller:r,done:Promise.resolve()};return this.entries.set(s,i),this.size+=s.length,i.done=this.policy.evaluate(e,t,r.signal).then(e=>{this.disposed||this.entries.get(s)!==i||(i.result=e,this.pending||this.changed())}),"pending"}get pending(){return[...this.entries.values()].some(e=>"pending"===e.result)}async settled(){await Promise.all([...this.entries.values()].map(e=>e.done))}static async validate(e,t){const s=new r(void 0,t);try{let t=s.run(e);for(;s.pending;)await s.settled(),t=s.run(e);return t}finally{s.dispose()}}dispose(){this.disposed=!0;for(const e of this.entries.values())e.controller.abort();this.entries.clear(),this.size=0,this.policy.dispose()}}t.RegexChecks=r},128(e,t){t.RegexPolicy=t.L=void 0,t.L="\n onmessage = ({data}) => {\n let result;\n try {\n const expression = new RegExp('^(?:' + data.pattern + ')$');\n result = data.value === null ? 'valid' : expression.test(data.value) ? 'match' : 'mismatch';\n } catch (_) { result = 'invalid'; }\n postMessage({id: data.id, result});\n };\n postMessage({ready: true});\n",t.RegexPolicy=class{worker=null;ready=!1;releaseSource=null;current=null;queue=[];serial=0;timer;idleTimer;closed=!1;options;constructor(e={}){this.options={workerFactory:e.workerFactory??(()=>{const e=globalThis,s=e.URL.createObjectURL(new e.Blob([t.L],{type:"text/javascript"}));return this.releaseSource=()=>e.URL.revokeObjectURL(s),new e.Worker(s)}),workTimeoutMs:e.workTimeoutMs??250,startupTimeoutMs:e.startupTimeoutMs??5e3,queueLimit:e.queueLimit??1024};for(const e of[this.options.workTimeoutMs,this.options.startupTimeoutMs,this.options.queueLimit])if(!Number.isSafeInteger(e)||e<1)throw new RangeError("Regex limits must be positive integers")}evaluate(e,t=null,s){return this.closed||s?.aborted?Promise.resolve("cancelled"):e.length>1e4||(t?.length??0)>1e6||this.queue.length>=this.options.queueLimit?Promise.resolve("limit"):new Promise(a=>{const r={id:++this.serial,pattern:e,value:t,finish:e=>{s?.removeEventListener("abort",i),a(e)}},i=()=>{this.current===r?this.fail("cancelled"):(this.queue=this.queue.filter(e=>e!==r),r.finish("cancelled"))};s?.addEventListener("abort",i,{once:!0}),this.queue.push(r),this.next()})}stopWorker(){clearTimeout(this.timer),clearTimeout(this.idleTimer),this.worker&&(this.worker.onmessage=null,this.worker.onerror=null,this.worker.terminate()),this.worker=null,this.ready=!1,this.releaseSource?.(),this.releaseSource=null}fail(e){this.stopWorker();const t=this.current;this.current=null,t?.finish(e),queueMicrotask(()=>this.next())}next(){if(!this.closed&&!this.current&&0!==this.queue.length)if(clearTimeout(this.idleTimer),this.current=this.queue.shift(),this.worker&&this.ready)this.send();else try{const e=this.options.workerFactory();this.worker=e,this.timer=setTimeout(()=>this.fail("unavailable"),this.options.startupTimeoutMs),e.onerror=()=>{this.worker===e&&this.fail("unavailable")},e.onmessage=({data:t})=>{if(this.worker!==e||!t||"object"!=typeof t)return;const s=t;if(s.ready&&!this.ready)clearTimeout(this.timer),this.ready=!0,this.send();else if(s.id===this.current?.id&&["valid","match","mismatch","invalid"].includes(s.result??"")){clearTimeout(this.timer);const e=this.current;this.current=null,e.finish(s.result),this.idleTimer=setTimeout(()=>this.stopWorker(),1e3),this.next()}}}catch{this.fail("unavailable")}}send(){if(this.current&&this.worker){this.timer=setTimeout(()=>this.fail("timeout"),this.options.workTimeoutMs);try{this.worker.postMessage({id:this.current.id,pattern:this.current.pattern,value:this.current.value})}catch{this.fail("unavailable")}}}dispose(){this.closed=!0,this.stopWorker(),this.current?.finish("cancelled"),this.current=null,this.queue.splice(0).forEach(e=>e.finish("cancelled"))}}},403(e,t,s){t.SchemaValuePolicy=void 0;const a=s(830),r=s(92);t.SchemaValuePolicy=class{static visit(e,t,s){if(!e||"object"!=typeof e||Array.isArray(e))return void s.push(r.ValidationPolicy.finding("valueShape",t,"A definition must be an object."));const i=e;if("array"===i.type)return null!=i.minItems&&null!=i.maxItems&&i.minItems>i.maxItems&&s.push(r.ValidationPolicy.finding("templateConstraint",t+"/maxItems","Minimum occurrence count exceeds maximum.")),void this.visit(i.items,t+"/items",s);if(i._ui?.inputType){s.push(...a.FieldValuePolicy.validateConfiguration(i,t),...a.FieldValuePolicy.validateDefault(i,t));const e=i._valueConstraints?.defaultValue;if(null!=e&&""!==e&&(a.FieldValuePolicy.isControlled(i)||a.FieldValuePolicy.authorityTypes.has(i._ui.inputType))){const n=t+"/_valueConstraints/defaultValue"+(a.FieldValuePolicy.isControlled(i)&&"object"==typeof e?"/termUri":"");s.push(r.ValidationPolicy.finding("semanticNotChecked",n,"Default identifier membership or existence has not been verified.","notChecked"))}return}for(const[e,a]of Object.entries(i.properties??{})){const i="array"===a?.type?a.items:a;i&&"object"==typeof i&&i._ui&&this.visit(a,r.ValidationPolicy.child(t+"/properties",e),s)}}}},36(e,t){t.TemporalDefaultPolicy=void 0,t.TemporalDefaultPolicy=class{static zone="(?:Z|[+-](?:(?:0\\d|1[0-3]):[0-5]\\d|14:00))?";static hour="(?:[01]\\d|2[0-3])";static minute="[0-5]\\d";static second="[0-5]\\d";static assertValid(e,t,s){if(null===s||""===s)return;const a=e;if(null===a)throw new Error("Temporal default requires a temporal datatype.");if(!this.isCompatibleGranularity(e,t))throw new Error(`Temporal datatype ${a} is not compatible with ${t} granularity.`);const r=this.datePattern(t,"xsd:date"===a),i=this.timePattern(t);let n;if(n="xsd:date"===a?r:"xsd:time"===a?i:this.dateTimePattern(t),!n.test(s)||!this.hasValidCalendarDate(s))throw new Error(`Temporal default "${s}" is not valid for ${a}`+(null===t?".":` at ${t} granularity.`))}static isCompatibleGranularity(e,t){return null===t||("xsd:date"===e?["year","month","day"].includes(t):"xsd:time"===e?["hour","minute","second","decimalSecond"].includes(t):["day","hour","minute","second","decimalSecond"].includes(t))}static datePattern(e,t){return"year"===e?/^\d{4}$/:"month"===e?/^\d{4}-(?:0[1-9]|1[0-2])$/:"day"!==e&&t?/^\d{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12]\d|3[01]))?)?$/:/^\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\d|3[01])$/}static timePattern(e){const t=this.zone,s=this.hour,a=this.minute,r=this.second;return"hour"===e?new RegExp(`^${s}${t}$`):"minute"===e?new RegExp(`^${s}:${a}${t}$`):"second"===e?new RegExp(`^${s}:${a}:${r}${t}$`):"decimalSecond"===e?new RegExp(`^${s}:${a}:${r}\\.\\d+${t}$`):new RegExp(`^${s}(?::${a}(?::${r}(?:\\.\\d+)?)?)?${t}$`)}static dateTimePattern(e){const t="\\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\\d|3[01])";return"hour"===e||"minute"===e||"second"===e||"decimalSecond"===e?new RegExp(`^${t}T${this.timePatternSource(e)}$`):"year"===e||"month"===e?/a^/:"day"===e?new RegExp(`^${t}$`):new RegExp(`^${t}(?:T${this.timePatternSource(null)})?$`)}static timePatternSource(e){return this.timePattern(e).source.replace(/^\^|\$$/g,"")}static hasValidCalendarDate(e){const t=/^(\d{4})-(\d{2})-(\d{2})/.exec(e);if(null===t)return!0;const s=Number(t[1]),a=Number(t[2]);return Number(t[3])<=[31,s%4!=0||s%100==0&&s%400!=0?28:29,31,30,31,30,31,31,30,31,30,31][a-1]}}},992(e,t){t.TextPolicy=void 0,t.TextPolicy=class{constructor(){}static isBlank(e){for(const t of e)if(!this.isBlankCodePoint(t.codePointAt(0)))return!1;return!0}static isBlankCodePoint(e){return e>=9&&e<=13||e>=28&&e<=32||5760===e||e>=8192&&e<=8198||e>=8200&&e<=8202||8232===e||8233===e||8287===e||12288===e}static codePointLength(e){return Array.from(e).length}static equalsIgnoreCase(e,t){const s=Array.from(e),a=Array.from(t);return e.length===t.length&&s.length===a.length&&s.every((e,t)=>{const s=a[t],r=e.toUpperCase(),i=s.toUpperCase();return e===s||r===i||r.toLowerCase()===i.toLowerCase()})}static trimInputPadding(e){return e.replace(/^[\t\n\r ]+|[\t\n\r ]+$/g,"")}}},435(e,t){t.TimestampPolicy=void 0,t.TimestampPolicy=class{static canonical(e){const t=e.replace(/([+-][0-9]{2})([0-9]{2})$/,"$1:$2"),s=/^(\d{4}|-\d{4,9}|\+\d{5,9})-(\d{2})-(\d{2})[Tt](\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,9}))?)?([Zz]|[+-]\d{2}(?::\d{2}(?::\d{2})?)?)$/.exec(t);if(!s)throw new Error("Expected an ISO timestamp with an explicit offset.");const[,a,r,i,n,o,p="00",m="",u]=s,l=Number(a),h=Number(r),c=Number(i),d=[31,l%4!=0||l%100==0&&l%400!=0?28:29,31,30,31,30,31,31,30,31,30,31];if(0===l&&a.startsWith("-")||h<1||h>12||c<1||c>d[h-1]||Number(n)>23||Number(o)>59||Number(p)>59)throw new Error("Invalid timestamp calendar or clock value.");let y="Z";if("Z"!==u.toUpperCase()){const[e,t=0,s=0]=u.slice(1).split(":").map(Number);if(e>18||t>59||s>59||18===e&&(0!==t||0!==s))throw new Error("Timestamp offset is outside the ISO offset range.");(e||t||s)&&(y=`${u[0]}${String(e).padStart(2,"0")}:${String(t).padStart(2,"0")}`,s&&(y+=`:${String(s).padStart(2,"0")}`))}const f=(l<0?"-":l>9999?"+":"")+String(Math.abs(l)).padStart(4,"0"),P=m.replace(/0+$/,"");return`${f}-${r}-${i}T${n}:${o}:${p}${P?"."+P:""}${y}`}static matchesFormat(e){const t=/^(\d{4}|\+\d{5,9})-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])T(?:[01]\d|2[0-3]|24(?=:00:00(?:\.0{1,9})?[Z+-])):[0-5]\d:[0-5]\d(?:\.\d{1,9})?(?:Z|[+-](\d{2})(?::([0-5]\d)(?::([0-5]\d))?|([0-5]\d)))$/.exec(e);if(null===t||Number(t[1])<1)return!1;const[,,,,s="0",a,r="0",i]=t;return 3600*Number(s)+60*Number(a??i??0)+Number(r)<=64800}}},92(e,t){t.ValidationPolicy=void 0;class s{static constraints=new Set(["minLength","maxLength","regex","pattern","email","link","phoneNumber","minValue","maxValue","decimalPlace","temporalGranularity","timezone","choiceMembership","maxItems","controlledTermMembership","authorityIdentifier","authorityMembership"]);static completeness=new Set(["required","minItems"]);static verification=new Set(["regexPending","regexEvaluation","regexUnavailable","semanticNotChecked","semanticUnavailable","controlledTermVerified","authorityVerified"]);static acceptsSemanticResult(e,t,s){switch(t){case"passed":return s===(e?"controlledTermVerified":"authorityVerified");case"failed":return e?"controlledTermMembership"===s:"authorityIdentifier"===s||"authorityMembership"===s;case"notChecked":return"semanticNotChecked"===s;case"unavailable":return"semanticUnavailable"===s;default:return!1}}static category(e){return this.constraints.has(e)?"constraint":this.completeness.has(e)?"completeness":this.verification.has(e)?"verification":"structural"}static blocksSave(e,t="instance"){if("string"!=typeof e&&"passed"===e.verificationStatus)return!1;const s="string"==typeof e?this.category(e):e.category;return"structural"===s||"template"===t&&("verification"!==s||"string"!=typeof e&&"failed"===e.verificationStatus)}static severity(e,t="instance"){return this.blocksSave(e,t)?"error":"warning"}static finding(e,t,s,a){const r={code:e,category:this.category(e),path:t,message:s};return void 0!==a&&(r.verificationStatus=a),r}static summarize(e,t="instance"){const s=e.filter(e=>"passed"!==e.verificationStatus);return{findings:[...e],structurallyValid:!s.some(e=>"structural"===e.category),canSave:!s.some(e=>this.blocksSave(e,t)),isValid:0===s.length}}static pointer(e){return e.map(e=>"/"+String(e).replace(/~/g,"~0").replace(/\//g,"~1")).join("")}static child(e,t){return e+this.pointer([t])}}t.ValidationPolicy=s},125(e,t,s){t.template=function e(t,{instancePath:s="",parentData:o,parentDataProperty:p,rootData:m=t}={}){let u=null,h=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.$schema){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===u?u=[e]:u.push(e),h++}if(void 0===t.type){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===u?u=[e]:u.push(e),h++}if(void 0===t.title){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===u?u=[e]:u.push(e),h++}if(void 0===t.description){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===u?u=[e]:u.push(e),h++}if(void 0===t._ui){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===u?u=[e]:u.push(e),h++}if(void 0===t["@context"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===u?u=[e]:u.push(e),h++}if(void 0===t["@id"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===u?u=[e]:u.push(e),h++}if(void 0===t["@type"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===u?u=[e]:u.push(e),h++}if(void 0===t.properties){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===u?u=[e]:u.push(e),h++}if(void 0===t.required){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"required"},message:"must have required property 'required'"};null===u?u=[e]:u.push(e),h++}if(void 0===t["pav:createdOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===u?u=[e]:u.push(e),h++}if(void 0===t["pav:createdBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===u?u=[e]:u.push(e),h++}if(void 0===t["pav:lastUpdatedOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===u?u=[e]:u.push(e),h++}if(void 0===t["oslc:modifiedBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===u?u=[e]:u.push(e),h++}if(void 0===t["schema:schemaVersion"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===u?u=[e]:u.push(e),h++}if(void 0===t["schema:name"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===u?u=[e]:u.push(e),h++}if(void 0===t["schema:description"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===u?u=[e]:u.push(e),h++}if(void 0!==t.$schema){let e=t.$schema;if("http://json-schema.org/draft-04/schema#"!==e){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:a.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),h++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),h++}}else{const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}if("object"!==e&&"array"!==e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:a.properties.type.enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["schema:identifier"]){let e=t["schema:identifier"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),h++}}else{const e={instancePath:s+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["schema:name"]){let e=t["schema:name"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),h++}}else{const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["schema:description"]&&"string"!=typeof t["schema:description"]){const e={instancePath:s+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}if(void 0!==t.title){let e=t.title;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),h++}}else{const e={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t.description){let e=t.description;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),h++}}else{const e={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t._ui&&(l(t._ui,{instancePath:s+"/_ui",parentData:t,parentDataProperty:"_ui",rootData:m})||(u=null===u?l.errors:u.concat(l.errors),h=u.length)),void 0!==t["@context"]&&(D(t["@context"],{instancePath:s+"/@context",parentData:t,parentDataProperty:"@context",rootData:m})||(u=null===u?D.errors:u.concat(D.errors),h=u.length)),void 0!==t["@id"]){let e=t["@id"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:a.properties["@id"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),h++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["@type"]){let e=t["@type"];if("https://schema.metadatacenter.org/core/Template"!==e){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:a.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),h++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),h++}}else{const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t.properties&&(hs(t.properties,{instancePath:s+"/properties",parentData:t,parentDataProperty:"properties",rootData:m})||(u=null===u?hs.errors:u.concat(hs.errors),h=u.length)),void 0!==t.required&&(ds(t.required,{instancePath:s+"/required",parentData:t,parentDataProperty:"required",rootData:m})||(u=null===u?ds.errors:u.concat(ds.errors),h=u.length)),void 0!==t["pav:createdOn"]){let e=t["pav:createdOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:a.properties["pav:createdOn"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),h++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["pav:createdBy"]){let e=t["pav:createdBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:a.properties["pav:createdBy"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),h++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["pav:lastUpdatedOn"]){let e=t["pav:lastUpdatedOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:a.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),h++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["oslc:modifiedBy"]){let e=t["oslc:modifiedBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:a.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),h++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["schema:schemaVersion"]){let e=t["schema:schemaVersion"];if("string"!=typeof e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}if("1.6.0"!==e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:a.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["bibo:status"]){let e=t["bibo:status"];if("string"!=typeof e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}if("bibo:published"!==e&&"bibo:draft"!==e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:a.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["pav:version"]){let e=t["pav:version"];if("string"==typeof e){if(!$t.test(e)){const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/pattern",keyword:"pattern",params:{pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},message:'must match pattern "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"'};null===u?u=[e]:u.push(e),h++}}else{const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["pav:previousVersion"]){let e=t["pav:previousVersion"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),h++}}else{const e={instancePath:s+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t["pav:derivedFrom"]){let e=t["pav:derivedFrom"];if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),h++}}else{const e={instancePath:s+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),h++}}if(void 0!==t._annotations&&(fs(t._annotations,{instancePath:s+"/_annotations",parentData:t,parentDataProperty:"_annotations",rootData:m})||(u=null===u?fs.errors:u.concat(fs.errors),h=u.length)),void 0!==t.additionalProperties){let e=t.additionalProperties;const a=h;let r=!1,i=null;const n=h;me(e,{instancePath:s+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:m})||(u=null===u?me.errors:u.concat(me.errors),h=u.length),n===h&&(r=!0,i=0);const o=h;var c;if(is(e,{instancePath:s+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:m})||(u=null===u?is.errors:u.concat(is.errors),h=u.length),(c=o===h)&&r?(r=!1,i=[i,1]):c&&(r=!0,i=1),r)h=a,null!==u&&(a?u.length=a:u=null);else{const e={instancePath:s+"/additionalProperties",schemaPath:"#/properties/additionalProperties/oneOf",keyword:"oneOf",params:{passingSchemas:i},message:"must match exactly one schema in oneOf"};null===u?u=[e]:u.push(e),h++}}void 0!==t["@nest"]&&(Bt(t["@nest"],{instancePath:s+"/@nest",parentData:t,parentDataProperty:"@nest",rootData:m})||(u=null===u?Bt.errors:u.concat(Bt.errors),h=u.length))}else{const e={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===u?u=[e]:u.push(e),h++}return e.errors=u,0===h};const a={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{$schema:{type:"string",format:"uri",enum:["http://json-schema.org/draft-04/schema#"]},type:{type:"string",enum:["object","array"]},"schema:identifier":{type:"string",minLength:1},"schema:name":{type:"string",minLength:1},"schema:description":{type:"string"},title:{type:"string",minLength:1},description:{type:"string",minLength:1},_ui:{$ref:"#/definitions/templateUIFieldContent"},"@context":{$ref:"#/definitions/templateJSONLDContextFieldContent"},"@id":{type:["string","null"],format:"uri"},"@type":{type:"string",format:"uri",enum:["https://schema.metadatacenter.org/core/Template"]},properties:{$ref:"#/definitions/templatePropertiesFieldContent"},required:{$ref:"#/definitions/templateRequiredFieldContent"},"pav:createdOn":{type:["string","null"],format:"date-time"},"pav:createdBy":{type:["string","null"],format:"uri"},"pav:lastUpdatedOn":{type:["string","null"],format:"date-time"},"oslc:modifiedBy":{type:["string","null"],format:"uri"},"schema:schemaVersion":{type:"string",enum:["1.6.0"]},"bibo:status":{type:"string",enum:["bibo:published","bibo:draft"]},"pav:version":{type:"string",pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},"pav:previousVersion":{type:"string",minLength:1},"pav:derivedFrom":{type:"string",format:"uri"},_annotations:{$ref:"#/definitions/annotationsContent"},additionalProperties:{oneOf:[{$ref:"#/definitions/falseOnlyAdditionalProperties"},{$ref:"#/definitions/defaultObjectSchemaAdditionalProperties"}]},"@nest":{$ref:"#/definitions/nestFieldContent"}},required:["$schema","type","title","description","_ui","@context","@id","@type","properties","required","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy","schema:schemaVersion","schema:name","schema:description"]},r=s(659).M.uri,i=s(659).M["date-time"],n=s(853).A;function o(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,p=0;if(Array.isArray(e)){const s=e.length;for(let a=0;a<s;a++){let s=e[a];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/"+a,schemaPath:"#/items/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===i?i=[e]:i.push(e),p++}}else{const e={instancePath:t+"/"+a,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),p++}}let a,r=e.length;if(r>1){const s={};for(;r--;){let n=e[r];if("string"==typeof n){if("number"==typeof s[n]){a=s[n];const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:r,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+r+" are identical)"};null===i?i=[e]:i.push(e),p++;break}s[n]=r}}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),p++}return o.errors=i,0===p}const p=new RegExp("^[^.]+$","u");function m(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const s in e)if(!p.test(s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),o++}for(const s in e)if(p.test(s)){let a=e[s];if("string"==typeof a){if(n(a)<1){const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E%5B%5E.%5D%2B%24/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===i?i=[e]:i.push(e),o++}}else{const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E%5B%5E.%5D%2B%24/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),o++}return m.errors=i,0===o}function u(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const s in e)if(!p.test(s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}for(const s in e)if(p.test(s)&&"string"!=typeof e[s]){const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E%5B%5E.%5D%2B%24/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return u.errors=i,0===n}function l(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.order){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"order"},message:"must have required property 'order'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.propertyLabels){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"propertyLabels"},message:"must have required property 'propertyLabels'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("order"!==s&&"propertyLabels"!==s&&"propertyDescriptions"!==s&&"header"!==s&&"footer"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.order&&(o(e.order,{instancePath:t+"/order",parentData:e,parentDataProperty:"order",rootData:r})||(i=null===i?o.errors:i.concat(o.errors),n=i.length)),void 0!==e.propertyLabels&&(m(e.propertyLabels,{instancePath:t+"/propertyLabels",parentData:e,parentDataProperty:"propertyLabels",rootData:r})||(i=null===i?m.errors:i.concat(m.errors),n=i.length)),void 0!==e.propertyDescriptions&&(u(e.propertyDescriptions,{instancePath:t+"/propertyDescriptions",parentData:e,parentDataProperty:"propertyDescriptions",rootData:r})||(i=null===i?u.errors:i.concat(u.errors),n=i.length)),void 0!==e.header&&"string"!=typeof e.header){const e={instancePath:t+"/header",schemaPath:"#/properties/header/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.footer&&"string"!=typeof e.footer){const e={instancePath:t+"/footer",schemaPath:"#/properties/footer/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return l.errors=i,0===n}const h={type:"object",properties:{xsd:{type:"string",format:"uri",enum:["http://www.w3.org/2001/XMLSchema#"]},pav:{type:"string",format:"uri",enum:["http://purl.org/pav/"]},schema:{type:"string",format:"uri",enum:["http://schema.org/"]},oslc:{type:"string",format:"uri",enum:["http://open-services.net/ns/core#"]},bibo:{type:"string",format:"uri",enum:["http://purl.org/ontology/bibo/"]},"schema:name":{$ref:"#/definitions/schemaNameContextFieldContent"},"schema:description":{$ref:"#/definitions/schemaDescriptionContextFieldContent"},"pav:createdOn":{$ref:"#/definitions/pavCreatedOnContextFieldContent"},"pav:createdBy":{$ref:"#/definitions/pavCreatedByContextFieldContent"},"pav:lastUpdatedOn":{$ref:"#/definitions/pavLastUpdatedOnContextFieldContent"},"oslc:modifiedBy":{$ref:"#/definitions/oslcModifiedByContextFieldContent"},_annotations:{type:"string",enum:["@nest"]}},patternProperties:{"^(?!(schema|xsd|pav|oslc|bibo|_annotations|\\$))[^.]+$":{type:"string",format:"uri"}},additionalProperties:!1,required:["xsd","pav","schema","oslc","bibo","schema:name","schema:description","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy"]},c=Object.prototype.hasOwnProperty,d=new RegExp("^(?!(schema|xsd|pav|oslc|bibo|_annotations|\\$))[^.]+$","u"),y={type:"object",properties:{"@type":{type:"string",enum:["xsd:string"]}},required:["@type"],additionalProperties:!1};function f(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let s=e["@type"];if("string"!=typeof s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:string"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:y.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return f.errors=i,0===n}function P(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let s=e["@type"];if("string"!=typeof s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:string"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:y.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return P.errors=i,0===n}const g={type:"object",properties:{"@type":{type:"string",enum:["xsd:dateTime"]}},required:["@type"],additionalProperties:!1};function v(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let s=e["@type"];if("string"!=typeof s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:dateTime"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:g.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return v.errors=i,0===n}const w={type:"object",properties:{"@type":{type:"string",enum:["@id"]}},required:["@type"],additionalProperties:!1};function b(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let s=e["@type"];if("string"!=typeof s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@id"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:w.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return b.errors=i,0===n}function k(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let s=e["@type"];if("string"!=typeof s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:dateTime"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:g.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return k.errors=i,0===n}function q(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let s=e["@type"];if("string"!=typeof s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@id"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:w.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return q.errors=i,0===n}function D(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.xsd){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"xsd"},message:"must have required property 'xsd'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.pav){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav"},message:"must have required property 'pav'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.schema){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema"},message:"must have required property 'schema'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.oslc){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc"},message:"must have required property 'oslc'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.bibo){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"bibo"},message:"must have required property 'bibo'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["schema:name"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["schema:description"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["pav:createdOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["pav:createdBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["pav:lastUpdatedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["oslc:modifiedBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if(!c.call(h.properties,s)&&!d.test(s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.xsd){let s=e.xsd;if("http://www.w3.org/2001/XMLSchema#"!==s){const e={instancePath:t+"/xsd",schemaPath:"#/properties/xsd/enum",keyword:"enum",params:{allowedValues:h.properties.xsd.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/xsd",schemaPath:"#/properties/xsd/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/xsd",schemaPath:"#/properties/xsd/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.pav){let s=e.pav;if("http://purl.org/pav/"!==s){const e={instancePath:t+"/pav",schemaPath:"#/properties/pav/enum",keyword:"enum",params:{allowedValues:h.properties.pav.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/pav",schemaPath:"#/properties/pav/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/pav",schemaPath:"#/properties/pav/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.schema){let s=e.schema;if("http://schema.org/"!==s){const e={instancePath:t+"/schema",schemaPath:"#/properties/schema/enum",keyword:"enum",params:{allowedValues:h.properties.schema.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/schema",schemaPath:"#/properties/schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/schema",schemaPath:"#/properties/schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.oslc){let s=e.oslc;if("http://open-services.net/ns/core#"!==s){const e={instancePath:t+"/oslc",schemaPath:"#/properties/oslc/enum",keyword:"enum",params:{allowedValues:h.properties.oslc.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/oslc",schemaPath:"#/properties/oslc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/oslc",schemaPath:"#/properties/oslc/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.bibo){let s=e.bibo;if("http://purl.org/ontology/bibo/"!==s){const e={instancePath:t+"/bibo",schemaPath:"#/properties/bibo/enum",keyword:"enum",params:{allowedValues:h.properties.bibo.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/bibo",schemaPath:"#/properties/bibo/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/bibo",schemaPath:"#/properties/bibo/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e["schema:name"]&&(f(e["schema:name"],{instancePath:t+"/schema:name",parentData:e,parentDataProperty:"schema:name",rootData:i})||(n=null===n?f.errors:n.concat(f.errors),o=n.length)),void 0!==e["schema:description"]&&(P(e["schema:description"],{instancePath:t+"/schema:description",parentData:e,parentDataProperty:"schema:description",rootData:i})||(n=null===n?P.errors:n.concat(P.errors),o=n.length)),void 0!==e["pav:createdOn"]&&(v(e["pav:createdOn"],{instancePath:t+"/pav:createdOn",parentData:e,parentDataProperty:"pav:createdOn",rootData:i})||(n=null===n?v.errors:n.concat(v.errors),o=n.length)),void 0!==e["pav:createdBy"]&&(b(e["pav:createdBy"],{instancePath:t+"/pav:createdBy",parentData:e,parentDataProperty:"pav:createdBy",rootData:i})||(n=null===n?b.errors:n.concat(b.errors),o=n.length)),void 0!==e["pav:lastUpdatedOn"]&&(k(e["pav:lastUpdatedOn"],{instancePath:t+"/pav:lastUpdatedOn",parentData:e,parentDataProperty:"pav:lastUpdatedOn",rootData:i})||(n=null===n?k.errors:n.concat(k.errors),o=n.length)),void 0!==e["oslc:modifiedBy"]&&(q(e["oslc:modifiedBy"],{instancePath:t+"/oslc:modifiedBy",parentData:e,parentDataProperty:"oslc:modifiedBy",rootData:i})||(n=null===n?q.errors:n.concat(q.errors),o=n.length)),void 0!==e._annotations){let s=e._annotations;if("string"!=typeof s){const e={instancePath:t+"/_annotations",schemaPath:"#/properties/_annotations/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("@nest"!==s){const e={instancePath:t+"/_annotations",schemaPath:"#/properties/_annotations/enum",keyword:"enum",params:{allowedValues:h.properties._annotations.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}for(const s in e)if(d.test(s)){let a=e[s];if("string"==typeof a){if(!r.validate(a)){const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E(%3F!(schema%7Cxsd%7Cpav%7Coslc%7Cbibo%7C_annotations%7C%5C%24))%5B%5E.%5D%2B%24/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E(%3F!(schema%7Cxsd%7Cpav%7Coslc%7Cbibo%7C_annotations%7C%5C%24))%5B%5E.%5D%2B%24/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return D.errors=n,0===o}const O={"@context":{$ref:"#/definitions/templateContextFieldContent"},"@type":{$ref:"#/definitions/jsonLDTypeFieldContent"},"@id":{$ref:"#/definitions/jsonLDIDFieldContentWithNull"},"schema:name":{$ref:"#/definitions/schemaNameFieldContent"},"schema:description":{$ref:"#/definitions/schemaDescriptionFieldContent"},"pav:createdOn":{$ref:"#/definitions/pavCreatedOnFieldContent"},"pav:createdBy":{$ref:"#/definitions/pavCreatedByFieldContent"},"schema:isBasedOn":{$ref:"#/definitions/schemaIsBasedOnFieldContent"},"pav:lastUpdatedOn":{$ref:"#/definitions/pavLastUpdatedOnFieldContent"},"oslc:modifiedBy":{$ref:"#/definitions/oslcModifiedByFieldContent"},"pav:derivedFrom":{$ref:"#/definitions/pavDerivedFromFieldContent"},_annotations:{$ref:"#/definitions/annotationsPropertiesContent"}},A=new RegExp("^(?!(@context|@type|@id|schema|xsd|pav|oslc|_annotations|\\$))[^\\.]+$","u"),x={type:"object",properties:{type:{type:"string",enum:["object"]},properties:{$ref:"#/definitions/templateContextPropertiesFieldContent"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{oneOf:[{$ref:"#/definitions/falseOnlyAdditionalProperties"},{$ref:"#/definitions/uriOnlyAdditionalProperties"}]}},required:["type","properties","additionalProperties"],additionalProperties:!1},j={rdfs:{$ref:"#/definitions/rdfsContextPropertiesContent"},xsd:{$ref:"#/definitions/xsdContextPropertiesContent"},pav:{$ref:"#/definitions/pavContextPropertiesContent"},schema:{$ref:"#/definitions/schemaContextPropertiesContent"},oslc:{$ref:"#/definitions/oslcContextPropertiesContent"},skos:{$ref:"#/definitions/skosContextPropertiesContent"},"rdfs:label":{$ref:"#/definitions/rdfsLabelContextPropertiesContent"},"schema:isBasedOn":{$ref:"#/definitions/schemaIsBasedOnContextPropertiesContent"},"schema:name":{$ref:"#/definitions/schemaNameContextPropertiesContent"},"schema:description":{$ref:"#/definitions/schemaDescriptionContextPropertiesContent"},"pav:createdOn":{$ref:"#/definitions/pavCreatedOnContextPropertiesContent"},"pav:createdBy":{$ref:"#/definitions/pavCreatedByContextPropertiesContent"},"pav:lastUpdatedOn":{$ref:"#/definitions/pavLastUpdatedOnContextPropertiesContent"},"oslc:modifiedBy":{$ref:"#/definitions/oslcModifiedByContextPropertiesContent"},"skos:notation":{$ref:"#/definitions/skosNotationContextPropertiesContent"},"pav:derivedFrom":{$ref:"#/definitions/pavDerivedFromContextPropertiesContent"},"@language":{$ref:"#/definitions/jsonLDLanguageFieldContent"},_annotations:{$ref:"#/definitions/annotationsContextPropertiesFieldContent"}},V=new RegExp("^(?!(schema|xsd|pav|oslc|rdfs|skos|@language|_annotations|\\$))[^.]+$","u"),T={type:"object",properties:{type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]},enum:{type:"array",minItems:1,maxItems:1,items:[{type:"string",format:"uri",enum:["http://www.w3.org/2000/01/rdf-schema#"]}]}},required:["type","format","enum"],additionalProperties:!1};function B(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.enum){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if("type"!==s&&"format"!==s&&"enum"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:T.properties.type.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:T.properties.format.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length<1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length>0){let e=s[0];if("http://www.w3.org/2000/01/rdf-schema#"!==e){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:T.properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return B.errors=n,0===o}const $={type:"object",properties:{type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]},enum:{type:"array",minItems:1,maxItems:1,items:[{type:"string",format:"uri",enum:["http://www.w3.org/2001/XMLSchema#"]}]}},required:["type","format","enum"],additionalProperties:!1};function L(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.enum){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if("type"!==s&&"format"!==s&&"enum"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:$.properties.type.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:$.properties.format.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length<1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length>0){let e=s[0];if("http://www.w3.org/2001/XMLSchema#"!==e){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:$.properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return L.errors=n,0===o}const I={type:"object",properties:{type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]},enum:{type:"array",minItems:1,maxItems:1,items:[{type:"string",format:"uri",enum:["http://purl.org/pav/"]}]}},required:["type","format","enum"],additionalProperties:!1};function N(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.enum){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if("type"!==s&&"format"!==s&&"enum"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:I.properties.type.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:I.properties.format.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length<1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length>0){let e=s[0];if("http://purl.org/pav/"!==e){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:I.properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return N.errors=n,0===o}const C={type:"object",properties:{type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]},enum:{type:"array",minItems:1,maxItems:1,items:[{type:"string",format:"uri",enum:["http://schema.org/"]}]}},required:["type","format","enum"],additionalProperties:!1};function _(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.enum){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if("type"!==s&&"format"!==s&&"enum"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:C.properties.type.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:C.properties.format.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length<1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length>0){let e=s[0];if("http://schema.org/"!==e){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:C.properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return _.errors=n,0===o}const U={type:"object",properties:{type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]},enum:{type:"array",minItems:1,maxItems:1,items:[{type:"string",format:"uri",enum:["http://open-services.net/ns/core#"]}]}},required:["type","format","enum"],additionalProperties:!1};function F(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.enum){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if("type"!==s&&"format"!==s&&"enum"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:U.properties.type.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:U.properties.format.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length<1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length>0){let e=s[0];if("http://open-services.net/ns/core#"!==e){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:U.properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return F.errors=n,0===o}const E={type:"object",properties:{type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]},enum:{type:"array",minItems:1,maxItems:1,items:[{type:"string",format:"uri",enum:["http://www.w3.org/2004/02/skos/core#"]}]}},required:["type","format","enum"],additionalProperties:!1};function S(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.enum){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if("type"!==s&&"format"!==s&&"enum"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:E.properties.type.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:E.properties.format.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length<1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===n?n=[e]:n.push(e),o++}if(s.length>0){let e=s[0];if("http://www.w3.org/2004/02/skos/core#"!==e){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:E.properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return S.errors=n,0===o}const R={type:"object",properties:{type:{type:"string",enum:["object"]},properties:{type:"object",properties:{"@type":{type:"object",properties:{type:{type:"string",enum:["string"]},enum:{type:"array",minItems:1,maxItems:1,items:[{type:"string",enum:["xsd:string"]}]}},required:["type","enum"]}},required:["@type"]}},required:["type","properties"],additionalProperties:!1};function M(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:R.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:R.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:string"!==e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:R.properties.properties.properties["@type"].properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return M.errors=i,0===n}const z={type:"object",properties:{type:{type:"string",enum:["object"]},properties:{type:"object",properties:{"@type":{type:"object",properties:{type:{type:"string",enum:["string"]},enum:{type:"array",minItems:1,maxItems:1,items:[{type:"string",enum:["@id"]}]}},required:["type","enum"]}},required:["@type"]}},required:["type","properties"],additionalProperties:!1};function Z(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:z.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:z.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@id"!==e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:z.properties.properties.properties["@type"].properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Z.errors=i,0===n}function G(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:R.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:R.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:string"!==e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:R.properties.properties.properties["@type"].properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return G.errors=i,0===n}function J(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:R.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:R.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:string"!==e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:R.properties.properties.properties["@type"].properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return J.errors=i,0===n}const W={type:"object",properties:{type:{type:"string",enum:["object"]},properties:{type:"object",properties:{"@type":{type:"object",properties:{type:{type:"string",enum:["string"]},enum:{type:"array",minItems:1,maxItems:1,items:[{type:"string",enum:["xsd:dateTime"]}]}},required:["type","enum"]}},required:["@type"]}},required:["type","properties"],additionalProperties:!1};function X(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:W.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:W.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:dateTime"!==e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:W.properties.properties.properties["@type"].properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return X.errors=i,0===n}function H(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:z.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:z.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@id"!==e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:z.properties.properties.properties["@type"].properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return H.errors=i,0===n}function K(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:W.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:W.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:dateTime"!==e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:W.properties.properties.properties["@type"].properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return K.errors=i,0===n}function Q(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:z.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:z.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@id"!==e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:z.properties.properties.properties["@type"].properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Q.errors=i,0===n}function Y(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:R.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:R.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:string"!==e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:R.properties.properties.properties["@type"].properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Y.errors=i,0===n}function ee(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:z.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:z.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@id"!==e){const e={instancePath:t+"/properties/@type/enum/0",schemaPath:"#/properties/properties/properties/%40type/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:z.properties.properties.properties["@type"].properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type/enum",schemaPath:"#/properties/properties/properties/%40type/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return ee.errors=i,0===n}const te={type:"object",properties:{type:{type:"array",minItems:2,maxItems:2,items:[{type:"string",enum:["string"]},{type:"string",enum:["null"]}]},minLength:{type:"number",enum:[1]}},required:["type","minLength"],additionalProperties:!1};function se(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.minLength){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"minLength"},message:"must have required property 'minLength'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"minLength"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if(Array.isArray(s)){if(s.length>2){const e={instancePath:t+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items"};null===i?i=[e]:i.push(e),n++}if(s.length<2){const e={instancePath:t+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};null===i?i=[e]:i.push(e),n++}const e=s.length;if(e>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==e){const e={instancePath:t+"/type/0",schemaPath:"#/properties/type/items/0/enum",keyword:"enum",params:{allowedValues:te.properties.type.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(e>1){let e=s[1];if("string"!=typeof e){const e={instancePath:t+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("null"!==e){const e={instancePath:t+"/type/1",schemaPath:"#/properties/type/items/1/enum",keyword:"enum",params:{allowedValues:te.properties.type.items[1].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.minLength){let s=e.minLength;if("number"!=typeof s){const e={instancePath:t+"/minLength",schemaPath:"#/properties/minLength/type",keyword:"type",params:{type:"number"},message:"must be number"};null===i?i=[e]:i.push(e),n++}if(1!==s){const e={instancePath:t+"/minLength",schemaPath:"#/properties/minLength/enum",keyword:"enum",params:{allowedValues:te.properties.minLength.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return se.errors=i,0===n}const ae={type:"object",properties:{type:{type:"string",enum:["string"]},enum:{type:"array",minItems:1,maxItems:1,items:[{type:"string",enum:["@nest"]}]}},required:["type","enum"],additionalProperties:!1};function re(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.enum){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"enum"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ae.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.enum){let s=e.enum;if(Array.isArray(s)){if(s.length>1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length<1){const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===i?i=[e]:i.push(e),n++}if(s.length>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@nest"!==e){const e={instancePath:t+"/enum/0",schemaPath:"#/properties/enum/items/0/enum",keyword:"enum",params:{allowedValues:ae.properties.enum.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return re.errors=i,0===n}function ie(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(Array.isArray(e)){if(e.length>1){const e={instancePath:t,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit:1},message:"must NOT have more than 1 items"};null===n?n=[e]:n.push(e),o++}if(e.length<1){const e={instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===n?n=[e]:n.push(e),o++}const s=e.length;for(let a=0;a<s;a++){let s=e[a];if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/"+a,schemaPath:"#/items/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/"+a,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}let a,i=e.length;if(i>1){const s={};for(;i--;){let r=e[i];if("string"==typeof r){if("number"==typeof s[r]){a=s[r];const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+i+" are identical)"};null===n?n=[e]:n.push(e),o++;break}s[r]=i}}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===n?n=[e]:n.push(e),o++}return ie.errors=n,0===o}function ne(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.enum){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"enum"},message:"must have required property 'enum'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("enum"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}void 0!==e.enum&&(ie(e.enum,{instancePath:t+"/enum",parentData:e,parentDataProperty:"enum",rootData:r})||(i=null===i?ie.errors:i.concat(ie.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return ne.errors=i,0===n}function oe(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.rdfs){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"rdfs"},message:"must have required property 'rdfs'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.xsd){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"xsd"},message:"must have required property 'xsd'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.pav){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav"},message:"must have required property 'pav'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.schema){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema"},message:"must have required property 'schema'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.oslc){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc"},message:"must have required property 'oslc'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.skos){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"skos"},message:"must have required property 'skos'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["rdfs:label"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"rdfs:label"},message:"must have required property 'rdfs:label'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["schema:isBasedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:isBasedOn"},message:"must have required property 'schema:isBasedOn'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["schema:name"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["schema:description"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["pav:createdOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["pav:createdBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["pav:lastUpdatedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["oslc:modifiedBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["skos:notation"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"skos:notation"},message:"must have required property 'skos:notation'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["pav:derivedFrom"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:derivedFrom"},message:"must have required property 'pav:derivedFrom'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if(!c.call(j,s)&&!V.test(s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}void 0!==e.rdfs&&(B(e.rdfs,{instancePath:t+"/rdfs",parentData:e,parentDataProperty:"rdfs",rootData:r})||(i=null===i?B.errors:i.concat(B.errors),n=i.length)),void 0!==e.xsd&&(L(e.xsd,{instancePath:t+"/xsd",parentData:e,parentDataProperty:"xsd",rootData:r})||(i=null===i?L.errors:i.concat(L.errors),n=i.length)),void 0!==e.pav&&(N(e.pav,{instancePath:t+"/pav",parentData:e,parentDataProperty:"pav",rootData:r})||(i=null===i?N.errors:i.concat(N.errors),n=i.length)),void 0!==e.schema&&(_(e.schema,{instancePath:t+"/schema",parentData:e,parentDataProperty:"schema",rootData:r})||(i=null===i?_.errors:i.concat(_.errors),n=i.length)),void 0!==e.oslc&&(F(e.oslc,{instancePath:t+"/oslc",parentData:e,parentDataProperty:"oslc",rootData:r})||(i=null===i?F.errors:i.concat(F.errors),n=i.length)),void 0!==e.skos&&(S(e.skos,{instancePath:t+"/skos",parentData:e,parentDataProperty:"skos",rootData:r})||(i=null===i?S.errors:i.concat(S.errors),n=i.length)),void 0!==e["rdfs:label"]&&(M(e["rdfs:label"],{instancePath:t+"/rdfs:label",parentData:e,parentDataProperty:"rdfs:label",rootData:r})||(i=null===i?M.errors:i.concat(M.errors),n=i.length)),void 0!==e["schema:isBasedOn"]&&(Z(e["schema:isBasedOn"],{instancePath:t+"/schema:isBasedOn",parentData:e,parentDataProperty:"schema:isBasedOn",rootData:r})||(i=null===i?Z.errors:i.concat(Z.errors),n=i.length)),void 0!==e["schema:name"]&&(G(e["schema:name"],{instancePath:t+"/schema:name",parentData:e,parentDataProperty:"schema:name",rootData:r})||(i=null===i?G.errors:i.concat(G.errors),n=i.length)),void 0!==e["schema:description"]&&(J(e["schema:description"],{instancePath:t+"/schema:description",parentData:e,parentDataProperty:"schema:description",rootData:r})||(i=null===i?J.errors:i.concat(J.errors),n=i.length)),void 0!==e["pav:createdOn"]&&(X(e["pav:createdOn"],{instancePath:t+"/pav:createdOn",parentData:e,parentDataProperty:"pav:createdOn",rootData:r})||(i=null===i?X.errors:i.concat(X.errors),n=i.length)),void 0!==e["pav:createdBy"]&&(H(e["pav:createdBy"],{instancePath:t+"/pav:createdBy",parentData:e,parentDataProperty:"pav:createdBy",rootData:r})||(i=null===i?H.errors:i.concat(H.errors),n=i.length)),void 0!==e["pav:lastUpdatedOn"]&&(K(e["pav:lastUpdatedOn"],{instancePath:t+"/pav:lastUpdatedOn",parentData:e,parentDataProperty:"pav:lastUpdatedOn",rootData:r})||(i=null===i?K.errors:i.concat(K.errors),n=i.length)),void 0!==e["oslc:modifiedBy"]&&(Q(e["oslc:modifiedBy"],{instancePath:t+"/oslc:modifiedBy",parentData:e,parentDataProperty:"oslc:modifiedBy",rootData:r})||(i=null===i?Q.errors:i.concat(Q.errors),n=i.length)),void 0!==e["skos:notation"]&&(Y(e["skos:notation"],{instancePath:t+"/skos:notation",parentData:e,parentDataProperty:"skos:notation",rootData:r})||(i=null===i?Y.errors:i.concat(Y.errors),n=i.length)),void 0!==e["pav:derivedFrom"]&&(ee(e["pav:derivedFrom"],{instancePath:t+"/pav:derivedFrom",parentData:e,parentDataProperty:"pav:derivedFrom",rootData:r})||(i=null===i?ee.errors:i.concat(ee.errors),n=i.length)),void 0!==e["@language"]&&(se(e["@language"],{instancePath:t+"/@language",parentData:e,parentDataProperty:"@language",rootData:r})||(i=null===i?se.errors:i.concat(se.errors),n=i.length)),void 0!==e._annotations&&(re(e._annotations,{instancePath:t+"/_annotations",parentData:e,parentDataProperty:"_annotations",rootData:r})||(i=null===i?re.errors:i.concat(re.errors),n=i.length));for(const s in e)V.test(s)&&(ne(e[s],{instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:s,rootData:r})||(i=null===i?ne.errors:i.concat(ne.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return oe.errors=i,0===n}const pe={type:"boolean",enum:[!1]};function me(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if("boolean"!=typeof e){const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(!1!==e){const e={instancePath:t,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:pe.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}return me.errors=i,0===n}const ue={type:"object",properties:{type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]}},required:["type","format"],additionalProperties:!1};function le(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"format"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ue.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:ue.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return le.errors=i,0===n}function he(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.additionalProperties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s&&"required"!==s&&"additionalProperties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:x.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties&&(oe(e.properties,{instancePath:t+"/properties",parentData:e,parentDataProperty:"properties",rootData:r})||(i=null===i?oe.errors:i.concat(oe.errors),n=i.length)),void 0!==e.required&&(o(e.required,{instancePath:t+"/required",parentData:e,parentDataProperty:"required",rootData:r})||(i=null===i?o.errors:i.concat(o.errors),n=i.length)),void 0!==e.additionalProperties){let s=e.additionalProperties;const a=n;let o=!1,m=null;const u=n;me(s,{instancePath:t+"/additionalProperties",parentData:e,parentDataProperty:"additionalProperties",rootData:r})||(i=null===i?me.errors:i.concat(me.errors),n=i.length),u===n&&(o=!0,m=0);const l=n;var p;if(le(s,{instancePath:t+"/additionalProperties",parentData:e,parentDataProperty:"additionalProperties",rootData:r})||(i=null===i?le.errors:i.concat(le.errors),n=i.length),(p=l===n)&&o?(o=!1,m=[m,1]):p&&(o=!0,m=1),o)n=a,null!==i&&(a?i.length=a:i=null);else{const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/oneOf",keyword:"oneOf",params:{passingSchemas:m},message:"must match exactly one schema in oneOf"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return he.errors=i,0===n}const ce={properties:{oneOf:{$ref:"#/definitions/jsonLDTypeFieldOneOfFieldContent"},type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]}},additionalProperties:!1},de={type:"object",properties:{type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]},enum:{$ref:"#/definitions/arrayOfURIs"}},required:["type","format"],additionalProperties:!1};function ye(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(Array.isArray(e)){if(e.length<1){const e={instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};null===n?n=[e]:n.push(e),o++}const s=e.length;for(let a=0;a<s;a++){let s=e[a];if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/"+a,schemaPath:"#/items/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/"+a,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}let a,i=e.length;if(i>1){const s={};for(;i--;){let r=e[i];if("string"==typeof r){if("number"==typeof s[r]){a=s[r];const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+i+" are identical)"};null===n?n=[e]:n.push(e),o++;break}s[r]=i}}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===n?n=[e]:n.push(e),o++}return ye.errors=n,0===o}function fe(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"format"!==s&&"enum"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:de.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:de.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}void 0!==e.enum&&(ye(e.enum,{instancePath:t+"/enum",parentData:e,parentDataProperty:"enum",rootData:r})||(i=null===i?ye.errors:i.concat(ye.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return fe.errors=i,0===n}const Pe={type:"object",properties:{type:{type:"string",enum:["array"]},minItems:{type:"integer",minimum:0},items:{$ref:"#/definitions/uriEnumContent"},uniqueItems:{type:"boolean",enum:[!0]}},required:["type","minItems","items","uniqueItems"],additionalProperties:!1};function ge(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.minItems){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"minItems"},message:"must have required property 'minItems'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.items){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.uniqueItems){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"uniqueItems"},message:"must have required property 'uniqueItems'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"minItems"!==s&&"items"!==s&&"uniqueItems"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("array"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Pe.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.minItems){let s=e.minItems;if("number"!=typeof s||s%1||isNaN(s)){const e={instancePath:t+"/minItems",schemaPath:"#/properties/minItems/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===i?i=[e]:i.push(e),n++}if("number"==typeof s&&(s<0||isNaN(s))){const e={instancePath:t+"/minItems",schemaPath:"#/properties/minItems/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.items&&(fe(e.items,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:r})||(i=null===i?fe.errors:i.concat(fe.errors),n=i.length)),void 0!==e.uniqueItems){let s=e.uniqueItems;if("boolean"!=typeof s){const e={instancePath:t+"/uniqueItems",schemaPath:"#/properties/uniqueItems/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(!0!==s){const e={instancePath:t+"/uniqueItems",schemaPath:"#/properties/uniqueItems/enum",keyword:"enum",params:{allowedValues:Pe.properties.uniqueItems.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return ge.errors=i,0===n}function ve(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){if(e.length>2){const e={instancePath:t,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items"};null===i?i=[e]:i.push(e),n++}if(e.length<2){const e={instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};null===i?i=[e]:i.push(e),n++}const s=e.length;s>0&&(fe(e[0],{instancePath:t+"/0",parentData:e,parentDataProperty:0,rootData:r})||(i=null===i?fe.errors:i.concat(fe.errors),n=i.length)),s>1&&(ge(e[1],{instancePath:t+"/1",parentData:e,parentDataProperty:1,rootData:r})||(i=null===i?ge.errors:i.concat(ge.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return ve.errors=i,0===n}function we(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const s in e)if("oneOf"!==s&&"type"!==s&&"format"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.oneOf&&(ve(e.oneOf,{instancePath:t+"/oneOf",parentData:e,parentDataProperty:"oneOf",rootData:r})||(i=null===i?ve.errors:i.concat(ve.errors),n=i.length)),void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ce.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:ce.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}return we.errors=i,0===n}const be={type:"object",properties:{type:{type:"array",minItems:2,maxItems:2,items:[{type:"string",enum:["string"]},{type:"string",enum:["null"]}]},format:{type:"string",enum:["uri"]}}};function ke(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.type){let s=e.type;if(Array.isArray(s)){if(s.length>2){const e={instancePath:t+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items"};null===i?i=[e]:i.push(e),n++}if(s.length<2){const e={instancePath:t+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};null===i?i=[e]:i.push(e),n++}const e=s.length;if(e>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==e){const e={instancePath:t+"/type/0",schemaPath:"#/properties/type/items/0/enum",keyword:"enum",params:{allowedValues:be.properties.type.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(e>1){let e=s[1];if("string"!=typeof e){const e={instancePath:t+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("null"!==e){const e={instancePath:t+"/type/1",schemaPath:"#/properties/type/items/1/enum",keyword:"enum",params:{allowedValues:be.properties.type.items[1].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:be.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return ke.errors=i,0===n}const qe={type:"object",properties:{type:{type:"string",enum:["string"]},minLength:{type:"number",enum:[1]}},required:["type"],additionalProperties:!1};function De(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"minLength"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:qe.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.minLength){let s=e.minLength;if("number"!=typeof s){const e={instancePath:t+"/minLength",schemaPath:"#/properties/minLength/type",keyword:"type",params:{type:"number"},message:"must be number"};null===i?i=[e]:i.push(e),n++}if(1!==s){const e={instancePath:t+"/minLength",schemaPath:"#/properties/minLength/enum",keyword:"enum",params:{allowedValues:qe.properties.minLength.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return De.errors=i,0===n}const Oe={type:"object",properties:{type:{type:"string",enum:["string"]}},required:["type"],additionalProperties:!1};function Ae(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Oe.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Ae.errors=i,0===n}const xe={type:"object",properties:{type:{$ref:"#/definitions/stringAndNullTypeContent"},format:{type:"string",enum:["date-time"]}},required:["type","format"],additionalProperties:!1},je={type:"array",minItems:2,maxItems:2,items:[{type:"string",enum:["string"]},{type:"string",enum:["null"]}]};function Ve(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){if(e.length>2){const e={instancePath:t,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items"};null===i?i=[e]:i.push(e),n++}if(e.length<2){const e={instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};null===i?i=[e]:i.push(e),n++}const s=e.length;if(s>0){let s=e[0];if("string"!=typeof s){const e={instancePath:t+"/0",schemaPath:"#/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/0",schemaPath:"#/items/0/enum",keyword:"enum",params:{allowedValues:je.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>1){let s=e[1];if("string"!=typeof s){const e={instancePath:t+"/1",schemaPath:"#/items/1/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("null"!==s){const e={instancePath:t+"/1",schemaPath:"#/items/1/enum",keyword:"enum",params:{allowedValues:je.items[1].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return Ve.errors=i,0===n}function Te(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"format"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type&&(Ve(e.type,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?Ve.errors:i.concat(Ve.errors),n=i.length)),void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("date-time"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:xe.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Te.errors=i,0===n}const Be={type:"object",properties:{type:{$ref:"#/definitions/stringAndNullTypeContent"},format:{type:"string",enum:["uri"]}},required:["type","format"],additionalProperties:!1};function $e(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"format"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type&&(Ve(e.type,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?Ve.errors:i.concat(Ve.errors),n=i.length)),void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:Be.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return $e.errors=i,0===n}function Le(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"format"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ue.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:ue.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Le.errors=i,0===n}function Ie(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"format"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type&&(Ve(e.type,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?Ve.errors:i.concat(Ve.errors),n=i.length)),void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("date-time"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:xe.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Ie.errors=i,0===n}function Ne(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"format"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type&&(Ve(e.type,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?Ve.errors:i.concat(Ve.errors),n=i.length)),void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:Be.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Ne.errors=i,0===n}function Ce(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"format"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ue.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:ue.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Ce.errors=i,0===n}const _e={type:"object",properties:{type:{type:"string",enum:["object"]},patternProperties:{type:"object",properties:{"^.+$":{type:"object",properties:{oneOf:{type:"array",minItems:2,maxItems:2,items:[{type:"object",properties:{type:{type:"string",enum:["object"]},properties:{type:"object",properties:{"@id":{$ref:"#/definitions/jsonLDIDFieldContent"}},required:["@id"],additionalProperties:!1},additionalProperties:{type:"boolean",enum:[!1]}},required:["type","properties","additionalProperties"],additionalProperties:!1},{type:"object",properties:{type:{type:"string",enum:["object"]},properties:{type:"object",properties:{"@value":{$ref:"#/definitions/annotationsJsonLDValueFieldContent"}},required:["@value"],additionalProperties:!1},additionalProperties:{type:"boolean",enum:[!1]}},required:["type","properties","additionalProperties"],additionalProperties:!1}]}},required:["oneOf"],additionalProperties:!1}},required:["^.+$"],additionalProperties:!1},additionalProperties:{type:"boolean",enum:[!1]}},required:["type","patternProperties","additionalProperties"],additionalProperties:!1};function Ue(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.format){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"format"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ue.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("uri"!==s){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:ue.properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Ue.errors=i,0===n}const Fe={type:"object",properties:{type:{type:"array",minItems:4,maxItems:4,items:[{type:"string",enum:["string"]},{type:"string",enum:["number"]},{type:"string",enum:["boolean"]},{type:"string",enum:["null"]}]}},required:["type"],additionalProperties:!1};function Ee(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if(Array.isArray(s)){if(s.length>4){const e={instancePath:t+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit:4},message:"must NOT have more than 4 items"};null===i?i=[e]:i.push(e),n++}if(s.length<4){const e={instancePath:t+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit:4},message:"must NOT have fewer than 4 items"};null===i?i=[e]:i.push(e),n++}const e=s.length;if(e>0){let e=s[0];if("string"!=typeof e){const e={instancePath:t+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==e){const e={instancePath:t+"/type/0",schemaPath:"#/properties/type/items/0/enum",keyword:"enum",params:{allowedValues:Fe.properties.type.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(e>1){let e=s[1];if("string"!=typeof e){const e={instancePath:t+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("number"!==e){const e={instancePath:t+"/type/1",schemaPath:"#/properties/type/items/1/enum",keyword:"enum",params:{allowedValues:Fe.properties.type.items[1].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(e>2){let e=s[2];if("string"!=typeof e){const e={instancePath:t+"/type/2",schemaPath:"#/properties/type/items/2/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("boolean"!==e){const e={instancePath:t+"/type/2",schemaPath:"#/properties/type/items/2/enum",keyword:"enum",params:{allowedValues:Fe.properties.type.items[2].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(e>3){let e=s[3];if("string"!=typeof e){const e={instancePath:t+"/type/3",schemaPath:"#/properties/type/items/3/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("null"!==e){const e={instancePath:t+"/type/3",schemaPath:"#/properties/type/items/3/enum",keyword:"enum",params:{allowedValues:Fe.properties.type.items[3].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Ee.errors=i,0===n}function Se(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.patternProperties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"patternProperties"},message:"must have required property 'patternProperties'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.additionalProperties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"patternProperties"!==s&&"additionalProperties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:_e.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.patternProperties){let s=e.patternProperties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["^.+$"]){const e={instancePath:t+"/patternProperties",schemaPath:"#/properties/patternProperties/required",keyword:"required",params:{missingProperty:"^.+$"},message:"must have required property '^.+$'"};null===i?i=[e]:i.push(e),n++}for(const e in s)if("^.+$"!==e){const s={instancePath:t+"/patternProperties",schemaPath:"#/properties/patternProperties/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===i?i=[s]:i.push(s),n++}if(void 0!==s["^.+$"]){let e=s["^.+$"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.oneOf){const e={instancePath:t+"/patternProperties/^.+$",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/required",keyword:"required",params:{missingProperty:"oneOf"},message:"must have required property 'oneOf'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("oneOf"!==s){const e={instancePath:t+"/patternProperties/^.+$",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.oneOf){let s=e.oneOf;if(Array.isArray(s)){if(s.length>2){const e={instancePath:t+"/patternProperties/^.+$/oneOf",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items"};null===i?i=[e]:i.push(e),n++}if(s.length<2){const e={instancePath:t+"/patternProperties/^.+$/oneOf",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};null===i?i=[e]:i.push(e),n++}const e=s.length;if(e>0){let e=s[0];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/patternProperties/^.+$/oneOf/0",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t+"/patternProperties/^.+$/oneOf/0",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.additionalProperties){const e={instancePath:t+"/patternProperties/^.+$/oneOf/0",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s&&"additionalProperties"!==s){const e={instancePath:t+"/patternProperties/^.+$/oneOf/0",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/patternProperties/^.+$/oneOf/0/type",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/patternProperties/^.+$/oneOf/0/type",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/properties/type/enum",keyword:"enum",params:{allowedValues:_e.properties.patternProperties.properties["^.+$"].properties.oneOf.items[0].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@id"]){const e={instancePath:t+"/patternProperties/^.+$/oneOf/0/properties",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/properties/properties/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===i?i=[e]:i.push(e),n++}for(const e in s)if("@id"!==e){const s={instancePath:t+"/patternProperties/^.+$/oneOf/0/properties",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/properties/properties/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===i?i=[s]:i.push(s),n++}void 0!==s["@id"]&&(Ue(s["@id"],{instancePath:t+"/patternProperties/^.+$/oneOf/0/properties/@id",parentData:s,parentDataProperty:"@id",rootData:r})||(i=null===i?Ue.errors:i.concat(Ue.errors),n=i.length))}else{const e={instancePath:t+"/patternProperties/^.+$/oneOf/0/properties",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.additionalProperties){let s=e.additionalProperties;if("boolean"!=typeof s){const e={instancePath:t+"/patternProperties/^.+$/oneOf/0/additionalProperties",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(!1!==s){const e={instancePath:t+"/patternProperties/^.+$/oneOf/0/additionalProperties",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:_e.properties.patternProperties.properties["^.+$"].properties.oneOf.items[0].properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/patternProperties/^.+$/oneOf/0",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}if(e>1){let e=s[1];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/patternProperties/^.+$/oneOf/1",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t+"/patternProperties/^.+$/oneOf/1",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.additionalProperties){const e={instancePath:t+"/patternProperties/^.+$/oneOf/1",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s&&"additionalProperties"!==s){const e={instancePath:t+"/patternProperties/^.+$/oneOf/1",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/patternProperties/^.+$/oneOf/1/type",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/patternProperties/^.+$/oneOf/1/type",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/properties/type/enum",keyword:"enum",params:{allowedValues:_e.properties.patternProperties.properties["^.+$"].properties.oneOf.items[1].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@value"]){const e={instancePath:t+"/patternProperties/^.+$/oneOf/1/properties",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/properties/properties/required",keyword:"required",params:{missingProperty:"@value"},message:"must have required property '@value'"};null===i?i=[e]:i.push(e),n++}for(const e in s)if("@value"!==e){const s={instancePath:t+"/patternProperties/^.+$/oneOf/1/properties",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/properties/properties/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===i?i=[s]:i.push(s),n++}void 0!==s["@value"]&&(Ee(s["@value"],{instancePath:t+"/patternProperties/^.+$/oneOf/1/properties/@value",parentData:s,parentDataProperty:"@value",rootData:r})||(i=null===i?Ee.errors:i.concat(Ee.errors),n=i.length))}else{const e={instancePath:t+"/patternProperties/^.+$/oneOf/1/properties",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.additionalProperties){let s=e.additionalProperties;if("boolean"!=typeof s){const e={instancePath:t+"/patternProperties/^.+$/oneOf/1/additionalProperties",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(!1!==s){const e={instancePath:t+"/patternProperties/^.+$/oneOf/1/additionalProperties",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:_e.properties.patternProperties.properties["^.+$"].properties.oneOf.items[1].properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/patternProperties/^.+$/oneOf/1",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/patternProperties/^.+$/oneOf",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/patternProperties/^.+$",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/patternProperties",schemaPath:"#/properties/patternProperties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.additionalProperties){let s=e.additionalProperties;if("boolean"!=typeof s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(!1!==s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:_e.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Se.errors=i,0===n}const Re={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{$schema:{type:"string",format:"uri",enum:["http://json-schema.org/draft-04/schema#"]},type:{type:"string",enum:["object"]},"schema:identifier":{type:"string",minLength:1},"schema:name":{type:"string",minLength:1},"schema:description":{type:"string"},"skos:prefLabel":{type:"string"},"skos:altLabel":{type:"array",uniqueItems:!0},title:{type:"string",minLength:1},description:{type:"string",minLength:1},_ui:{$ref:"#/definitions/literalFieldUIContent"},_valueConstraints:{$ref:"#/definitions/literalFieldValueConstraintsContent"},"@context":{$ref:"#/definitions/templateFieldJSONLDContextFieldContent"},"@id":{type:["string","null"],format:"uri"},"@type":{type:"string",format:"uri",enum:["https://schema.metadatacenter.org/core/TemplateField"]},properties:{$ref:"#/definitions/literalFieldPropertiesContent"},required:{$ref:"#/definitions/stringArray"},"pav:createdOn":{type:["string","null"],format:"date-time"},"pav:createdBy":{type:["string","null"],format:"uri"},"pav:lastUpdatedOn":{type:["string","null"],format:"date-time"},"oslc:modifiedBy":{type:["string","null"],format:"uri"},"bibo:status":{type:"string",enum:["bibo:published","bibo:draft"]},"pav:version":{type:"string",pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},"pav:previousVersion":{type:"string",minLength:1},"pav:derivedFrom":{type:"string",format:"uri"},"@nest":{$ref:"#/definitions/nestFieldContent"},additionalProperties:{type:"boolean",enum:[!1]},"schema:schemaVersion":{type:"string",enum:["1.6.0"]}},required:["$schema","type","title","description","_ui","_valueConstraints","@context","@id","@type","properties","additionalProperties","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy","schema:schemaVersion","schema:name","schema:description"]},Me=s(250).default,ze={type:"object",properties:{inputType:{type:"string",enum:["textfield","textarea","radio","checkbox","temporal","email","list","numeric","phone-number","attribute-value"]},valueRecommendationEnabled:{type:"boolean"},hidden:{type:"boolean"},continuePreviousLine:{type:"boolean"},dateType:{type:"string",enum:["single-date","date-range"]},inputTimeFormat:{type:"string",enum:["24h","12h"]},temporalGranularity:{type:"string",enum:["year","month","day","hour","minute","second","decimalSecond"]},timezoneEnabled:{type:"boolean"}},required:["inputType"],additionalProperties:!1};function Ze(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.inputType){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"inputType"},message:"must have required property 'inputType'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("inputType"!==s&&"valueRecommendationEnabled"!==s&&"hidden"!==s&&"continuePreviousLine"!==s&&"dateType"!==s&&"inputTimeFormat"!==s&&"temporalGranularity"!==s&&"timezoneEnabled"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.inputType){let s=e.inputType;if("string"!=typeof s){const e={instancePath:t+"/inputType",schemaPath:"#/properties/inputType/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("textfield"!==s&&"textarea"!==s&&"radio"!==s&&"checkbox"!==s&&"temporal"!==s&&"email"!==s&&"list"!==s&&"numeric"!==s&&"phone-number"!==s&&"attribute-value"!==s){const e={instancePath:t+"/inputType",schemaPath:"#/properties/inputType/enum",keyword:"enum",params:{allowedValues:ze.properties.inputType.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.valueRecommendationEnabled&&"boolean"!=typeof e.valueRecommendationEnabled){const e={instancePath:t+"/valueRecommendationEnabled",schemaPath:"#/properties/valueRecommendationEnabled/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.hidden&&"boolean"!=typeof e.hidden){const e={instancePath:t+"/hidden",schemaPath:"#/properties/hidden/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.continuePreviousLine&&"boolean"!=typeof e.continuePreviousLine){const e={instancePath:t+"/continuePreviousLine",schemaPath:"#/properties/continuePreviousLine/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.dateType){let s=e.dateType;if("string"!=typeof s){const e={instancePath:t+"/dateType",schemaPath:"#/properties/dateType/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("single-date"!==s&&"date-range"!==s){const e={instancePath:t+"/dateType",schemaPath:"#/properties/dateType/enum",keyword:"enum",params:{allowedValues:ze.properties.dateType.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.inputTimeFormat){let s=e.inputTimeFormat;if("string"!=typeof s){const e={instancePath:t+"/inputTimeFormat",schemaPath:"#/properties/inputTimeFormat/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("24h"!==s&&"12h"!==s){const e={instancePath:t+"/inputTimeFormat",schemaPath:"#/properties/inputTimeFormat/enum",keyword:"enum",params:{allowedValues:ze.properties.inputTimeFormat.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.temporalGranularity){let s=e.temporalGranularity;if("string"!=typeof s){const e={instancePath:t+"/temporalGranularity",schemaPath:"#/properties/temporalGranularity/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("year"!==s&&"month"!==s&&"day"!==s&&"hour"!==s&&"minute"!==s&&"second"!==s&&"decimalSecond"!==s){const e={instancePath:t+"/temporalGranularity",schemaPath:"#/properties/temporalGranularity/enum",keyword:"enum",params:{allowedValues:ze.properties.temporalGranularity.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.timezoneEnabled&&"boolean"!=typeof e.timezoneEnabled){const e={instancePath:t+"/timezoneEnabled",schemaPath:"#/properties/timezoneEnabled/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Ze.errors=i,0===n}const Ge={type:"object",properties:{requiredValue:{type:"boolean"},recommendedValue:{type:"boolean"},multipleChoice:{type:"boolean"},minLength:{type:"integer"},maxLength:{type:"integer"},regex:{type:"string"},minValue:{type:"number"},maxValue:{type:"number"},decimalPlace:{type:"number"},unitOfMeasure:{type:"string"},defaultValue:{oneOf:[{$ref:"#/definitions/valueConstraintsStringDefaultValueContent"},{$ref:"#/definitions/valueConstraintsUriDefaultValueContent"}]},numberType:{type:"string",enum:["xsd:decimal","xsd:long","xsd:int","xsd:double","xsd:float","xsd:byte","xsd:short"]},temporalType:{type:"string",enum:["xsd:dateTime","xsd:date","xsd:time"]},ontologies:{$ref:"#/definitions/valueConstraintsOntologiesFieldContent"},valueSets:{$ref:"#/definitions/valueConstraintsValueSetsFieldContent"},classes:{$ref:"#/definitions/valueConstraintsClassesFieldContent"},branches:{$ref:"#/definitions/valueConstraintsBranchesFieldContent"},literals:{$ref:"#/definitions/valueConstraintsLiteralsFieldContent"},actions:{$ref:"#/definitions/valueConstraintsActionsFieldContent"}},required:["requiredValue"],additionalProperties:!1};function Je(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if("string"!=typeof e){const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}return Je.errors=i,0===n}function We(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.termUri){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"termUri"},message:"must have required property 'termUri'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["rdfs:label"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"rdfs:label"},message:"must have required property 'rdfs:label'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if("termUri"!==s&&"rdfs:label"!==s&&"skos:notation"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.termUri){let s=e.termUri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/termUri",schemaPath:"#/properties/termUri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/termUri",schemaPath:"#/properties/termUri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e["rdfs:label"]&&"string"!=typeof e["rdfs:label"]){const e={instancePath:t+"/rdfs:label",schemaPath:"#/properties/rdfs%3Alabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if(void 0!==e["skos:notation"]&&"string"!=typeof e["skos:notation"]){const e={instancePath:t+"/skos:notation",schemaPath:"#/properties/skos%3Anotation/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return We.errors=n,0===o}const Xe={uri:{type:"string",format:"uri"},acronym:{type:"string",minLength:1},name:{type:"string",minLength:1},numTerms:{type:"integer",minimum:0},iri:{type:"string",format:"uri"},sourceSystem:{type:"string",minLength:1},links:{$ref:"#/definitions/valueConstraintsLinksFieldContent"},version:{$ref:"#/definitions/valueConstraintsVersionFieldContent"},exclusions:{$ref:"#/definitions/valueConstraintsOntologiesExclusionsFieldContent"},selectedByDefault:{type:"boolean"}},He=new RegExp("^https?://[^/?#@\\s\\\\]+(?:[/?#][^\\s\\\\]*)?$","u");function Ke(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(Object.keys(e).length<1){const e={instancePath:t,schemaPath:"#/minProperties",keyword:"minProperties",params:{limit:1},message:"must NOT have fewer than 1 properties"};null===n?n=[e]:n.push(e),o++}for(const s in e)if("landingPage"!==s&&"icon"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.landingPage){let s=e.landingPage;if("string"==typeof s){if(!He.test(s)){const e={instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/pattern",keyword:"pattern",params:{pattern:"^https?://[^/?#@\\s\\\\]+(?:[/?#][^\\s\\\\]*)?$"},message:'must match pattern "^https?://[^/?#@\\s\\\\]+(?:[/?#][^\\s\\\\]*)?$"'};null===n?n=[e]:n.push(e),o++}if(!r.validate(s)){const e={instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.icon){let s=e.icon;if("string"==typeof s){if(!He.test(s)){const e={instancePath:t+"/icon",schemaPath:"#/properties/icon/pattern",keyword:"pattern",params:{pattern:"^https?://[^/?#@\\s\\\\]+(?:[/?#][^\\s\\\\]*)?$"},message:'must match pattern "^https?://[^/?#@\\s\\\\]+(?:[/?#][^\\s\\\\]*)?$"'};null===n?n=[e]:n.push(e),o++}if(!r.validate(s)){const e={instancePath:t+"/icon",schemaPath:"#/properties/icon/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/icon",schemaPath:"#/properties/icon/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return Ke.errors=n,0===o}function Qe(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,o=0;const p=o;let m=!1,u=null;const l=o;if("string"!=typeof e){const e={instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),o++}l===o&&(m=!0,u=0);const h=o;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.id){const e={instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:"id"},message:"must have required property 'id'"};null===i?i=[e]:i.push(e),o++}for(const s in e)if("id"!==s&&"effectiveDate"!==s&&"declaredVersion"!==s){const e={instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),o++}if(void 0!==e.id){let s=e.id;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/id",schemaPath:"#/oneOf/1/properties/id/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===i?i=[e]:i.push(e),o++}}else{const e={instancePath:t+"/id",schemaPath:"#/oneOf/1/properties/id/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),o++}}if(void 0!==e.effectiveDate&&"string"!=typeof e.effectiveDate){const e={instancePath:t+"/effectiveDate",schemaPath:"#/oneOf/1/properties/effectiveDate/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),o++}if(void 0!==e.declaredVersion&&"string"!=typeof e.declaredVersion){const e={instancePath:t+"/declaredVersion",schemaPath:"#/oneOf/1/properties/declaredVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),o++}}else{const e={instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),o++}var c;if((c=h===o)&&m?(m=!1,u=[u,1]):c&&(m=!0,u=1),m)o=p,null!==i&&(p?i.length=p:i=null);else{const e={instancePath:t,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:u},message:"must match exactly one schema in oneOf"};null===i?i=[e]:i.push(e),o++}return Qe.errors=i,0===o}function Ye(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(Array.isArray(e)){const s=e.length;for(let a=0;a<s;a++){let s=e[a];if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/"+a,schemaPath:"#/items/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/"+a,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}let a,i=e.length;if(i>1){const s={};for(;i--;){let r=e[i];if("string"==typeof r){if("number"==typeof s[r]){a=s[r];const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+i+" are identical)"};null===n?n=[e]:n.push(e),o++;break}s[r]=i}}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===n?n=[e]:n.push(e),o++}return Ye.errors=n,0===o}function et(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let o=null,p=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.uri){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"uri"},message:"must have required property 'uri'"};null===o?o=[e]:o.push(e),p++}for(const s in e)if(!c.call(Xe,s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===o?o=[e]:o.push(e),p++}if(void 0!==e.uri){let s=e.uri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/uri",schemaPath:"#/properties/uri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/uri",schemaPath:"#/properties/uri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.acronym){let s=e.acronym;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/acronym",schemaPath:"#/properties/acronym/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/acronym",schemaPath:"#/properties/acronym/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.name){let s=e.name;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/name",schemaPath:"#/properties/name/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.numTerms){let s=e.numTerms;if("number"!=typeof s||s%1||isNaN(s)){const e={instancePath:t+"/numTerms",schemaPath:"#/properties/numTerms/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),p++}if("number"==typeof s&&(s<0||isNaN(s))){const e={instancePath:t+"/numTerms",schemaPath:"#/properties/numTerms/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.iri){let s=e.iri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/iri",schemaPath:"#/properties/iri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/iri",schemaPath:"#/properties/iri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.sourceSystem){let s=e.sourceSystem;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/sourceSystem",schemaPath:"#/properties/sourceSystem/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/sourceSystem",schemaPath:"#/properties/sourceSystem/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.links&&(Ke(e.links,{instancePath:t+"/links",parentData:e,parentDataProperty:"links",rootData:i})||(o=null===o?Ke.errors:o.concat(Ke.errors),p=o.length)),void 0!==e.version&&(Qe(e.version,{instancePath:t+"/version",parentData:e,parentDataProperty:"version",rootData:i})||(o=null===o?Qe.errors:o.concat(Qe.errors),p=o.length)),void 0!==e.exclusions&&(Ye(e.exclusions,{instancePath:t+"/exclusions",parentData:e,parentDataProperty:"exclusions",rootData:i})||(o=null===o?Ye.errors:o.concat(Ye.errors),p=o.length)),void 0!==e.selectedByDefault&&"boolean"!=typeof e.selectedByDefault){const e={instancePath:t+"/selectedByDefault",schemaPath:"#/properties/selectedByDefault/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===o?o=[e]:o.push(e),p++}return et.errors=o,0===p}function tt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){const s=e.length;for(let a=0;a<s;a++)et(e[a],{instancePath:t+"/"+a,parentData:e,parentDataProperty:a,rootData:r})||(i=null===i?et.errors:i.concat(et.errors),n=i.length);let a,o=e.length;if(o>1)e:for(;o--;)for(a=o;a--;)if(Me(e[o],e[a])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:o,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+o+" are identical)"};null===i?i=[e]:i.push(e),n++;break e}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return tt.errors=i,0===n}const st={uri:{type:"string",format:"uri"},name:{type:"string",minLength:1},vsCollection:{type:"string",format:"uri"},exclusions:{$ref:"#/definitions/valueConstraintsValueSetsExclusionsFieldContent"},selectedByDefault:{type:"boolean"},numTerms:{type:"integer",minimum:0},iri:{type:"string",format:"uri"},sourceSystem:{type:"string",minLength:1},links:{$ref:"#/definitions/valueConstraintsLinksFieldContent"},version:{$ref:"#/definitions/valueConstraintsVersionFieldContent"}};function at(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(Array.isArray(e)){const s=e.length;for(let a=0;a<s;a++){let s=e[a];if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/"+a,schemaPath:"#/items/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/"+a,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}let a,i=e.length;if(i>1){const s={};for(;i--;){let r=e[i];if("string"==typeof r){if("number"==typeof s[r]){a=s[r];const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+i+" are identical)"};null===n?n=[e]:n.push(e),o++;break}s[r]=i}}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===n?n=[e]:n.push(e),o++}return at.errors=n,0===o}function rt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let o=null,p=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.uri){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"uri"},message:"must have required property 'uri'"};null===o?o=[e]:o.push(e),p++}for(const s in e)if(!c.call(st,s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===o?o=[e]:o.push(e),p++}if(void 0!==e.uri){let s=e.uri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/uri",schemaPath:"#/properties/uri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/uri",schemaPath:"#/properties/uri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.name){let s=e.name;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/name",schemaPath:"#/properties/name/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.vsCollection){let s=e.vsCollection;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/vsCollection",schemaPath:"#/properties/vsCollection/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/vsCollection",schemaPath:"#/properties/vsCollection/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.exclusions&&(at(e.exclusions,{instancePath:t+"/exclusions",parentData:e,parentDataProperty:"exclusions",rootData:i})||(o=null===o?at.errors:o.concat(at.errors),p=o.length)),void 0!==e.selectedByDefault&&"boolean"!=typeof e.selectedByDefault){const e={instancePath:t+"/selectedByDefault",schemaPath:"#/properties/selectedByDefault/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===o?o=[e]:o.push(e),p++}if(void 0!==e.numTerms){let s=e.numTerms;if("number"!=typeof s||s%1||isNaN(s)){const e={instancePath:t+"/numTerms",schemaPath:"#/properties/numTerms/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),p++}if("number"==typeof s&&(s<0||isNaN(s))){const e={instancePath:t+"/numTerms",schemaPath:"#/properties/numTerms/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.iri){let s=e.iri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/iri",schemaPath:"#/properties/iri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/iri",schemaPath:"#/properties/iri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.sourceSystem){let s=e.sourceSystem;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/sourceSystem",schemaPath:"#/properties/sourceSystem/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/sourceSystem",schemaPath:"#/properties/sourceSystem/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}void 0!==e.links&&(Ke(e.links,{instancePath:t+"/links",parentData:e,parentDataProperty:"links",rootData:i})||(o=null===o?Ke.errors:o.concat(Ke.errors),p=o.length)),void 0!==e.version&&(Qe(e.version,{instancePath:t+"/version",parentData:e,parentDataProperty:"version",rootData:i})||(o=null===o?Qe.errors:o.concat(Qe.errors),p=o.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===o?o=[e]:o.push(e),p++}return rt.errors=o,0===p}function it(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){const s=e.length;for(let a=0;a<s;a++)rt(e[a],{instancePath:t+"/"+a,parentData:e,parentDataProperty:a,rootData:r})||(i=null===i?rt.errors:i.concat(rt.errors),n=i.length);let a,o=e.length;if(o>1)e:for(;o--;)for(a=o;a--;)if(Me(e[o],e[a])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:o,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+o+" are identical)"};null===i?i=[e]:i.push(e),n++;break e}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return it.errors=i,0===n}const nt={uri:{type:"string",format:"uri"},prefLabel:{type:"string",minLength:1},type:{type:"string",minLength:1},label:{type:"string",minLength:1},source:{type:"string",minLength:1},iri:{type:"string",format:"uri"},sourceSystem:{type:"string",minLength:1},links:{$ref:"#/definitions/valueConstraintsLinksFieldContent"},version:{$ref:"#/definitions/valueConstraintsVersionFieldContent"},selectedByDefault:{type:"boolean"}};function ot(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let o=null,p=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.uri){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"uri"},message:"must have required property 'uri'"};null===o?o=[e]:o.push(e),p++}if(void 0===e.prefLabel){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"prefLabel"},message:"must have required property 'prefLabel'"};null===o?o=[e]:o.push(e),p++}if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===o?o=[e]:o.push(e),p++}if(void 0===e.label){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};null===o?o=[e]:o.push(e),p++}if(void 0===e.source){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'"};null===o?o=[e]:o.push(e),p++}for(const s in e)if(!c.call(nt,s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===o?o=[e]:o.push(e),p++}if(void 0!==e.uri){let s=e.uri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/uri",schemaPath:"#/properties/uri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/uri",schemaPath:"#/properties/uri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.prefLabel){let s=e.prefLabel;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/prefLabel",schemaPath:"#/properties/prefLabel/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/prefLabel",schemaPath:"#/properties/prefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.type){let s=e.type;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/type",schemaPath:"#/properties/type/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.label){let s=e.label;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/label",schemaPath:"#/properties/label/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.source){let s=e.source;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/source",schemaPath:"#/properties/source/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.iri){let s=e.iri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/iri",schemaPath:"#/properties/iri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/iri",schemaPath:"#/properties/iri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.sourceSystem){let s=e.sourceSystem;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/sourceSystem",schemaPath:"#/properties/sourceSystem/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/sourceSystem",schemaPath:"#/properties/sourceSystem/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.links&&(Ke(e.links,{instancePath:t+"/links",parentData:e,parentDataProperty:"links",rootData:i})||(o=null===o?Ke.errors:o.concat(Ke.errors),p=o.length)),void 0!==e.version&&(Qe(e.version,{instancePath:t+"/version",parentData:e,parentDataProperty:"version",rootData:i})||(o=null===o?Qe.errors:o.concat(Qe.errors),p=o.length)),void 0!==e.selectedByDefault&&"boolean"!=typeof e.selectedByDefault){const e={instancePath:t+"/selectedByDefault",schemaPath:"#/properties/selectedByDefault/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===o?o=[e]:o.push(e),p++}return ot.errors=o,0===p}function pt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){const s=e.length;for(let a=0;a<s;a++)ot(e[a],{instancePath:t+"/"+a,parentData:e,parentDataProperty:a,rootData:r})||(i=null===i?ot.errors:i.concat(ot.errors),n=i.length);let a,o=e.length;if(o>1)e:for(;o--;)for(a=o;a--;)if(Me(e[o],e[a])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:o,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+o+" are identical)"};null===i?i=[e]:i.push(e),n++;break e}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return pt.errors=i,0===n}const mt={source:{type:"string",minLength:1},acronym:{type:"string",minLength:1},name:{type:"string",minLength:1},uri:{type:"string",format:"uri"},maxDepth:{type:"integer",minimum:0},iri:{type:"string",format:"uri"},sourceSystem:{type:"string",minLength:1},links:{$ref:"#/definitions/valueConstraintsLinksFieldContent"},version:{$ref:"#/definitions/valueConstraintsVersionFieldContent"},selectedByDefault:{type:"boolean"}};function ut(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let o=null,p=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.source){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'"};null===o?o=[e]:o.push(e),p++}if(void 0===e.acronym){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"acronym"},message:"must have required property 'acronym'"};null===o?o=[e]:o.push(e),p++}if(void 0===e.name){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"name"},message:"must have required property 'name'"};null===o?o=[e]:o.push(e),p++}if(void 0===e.uri){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"uri"},message:"must have required property 'uri'"};null===o?o=[e]:o.push(e),p++}if(void 0===e.maxDepth){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"maxDepth"},message:"must have required property 'maxDepth'"};null===o?o=[e]:o.push(e),p++}for(const s in e)if(!c.call(mt,s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===o?o=[e]:o.push(e),p++}if(void 0!==e.source){let s=e.source;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/source",schemaPath:"#/properties/source/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.acronym){let s=e.acronym;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/acronym",schemaPath:"#/properties/acronym/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/acronym",schemaPath:"#/properties/acronym/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.name){let s=e.name;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/name",schemaPath:"#/properties/name/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.uri){let s=e.uri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/uri",schemaPath:"#/properties/uri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/uri",schemaPath:"#/properties/uri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.maxDepth){let s=e.maxDepth;if("number"!=typeof s||s%1||isNaN(s)){const e={instancePath:t+"/maxDepth",schemaPath:"#/properties/maxDepth/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===o?o=[e]:o.push(e),p++}if("number"==typeof s&&(s<0||isNaN(s))){const e={instancePath:t+"/maxDepth",schemaPath:"#/properties/maxDepth/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.iri){let s=e.iri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/iri",schemaPath:"#/properties/iri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/iri",schemaPath:"#/properties/iri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.sourceSystem){let s=e.sourceSystem;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/sourceSystem",schemaPath:"#/properties/sourceSystem/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t+"/sourceSystem",schemaPath:"#/properties/sourceSystem/type",keyword:"type",params:{type:"string"},message:"must be string"};null===o?o=[e]:o.push(e),p++}}if(void 0!==e.links&&(Ke(e.links,{instancePath:t+"/links",parentData:e,parentDataProperty:"links",rootData:i})||(o=null===o?Ke.errors:o.concat(Ke.errors),p=o.length)),void 0!==e.version&&(Qe(e.version,{instancePath:t+"/version",parentData:e,parentDataProperty:"version",rootData:i})||(o=null===o?Qe.errors:o.concat(Qe.errors),p=o.length)),void 0!==e.selectedByDefault&&"boolean"!=typeof e.selectedByDefault){const e={instancePath:t+"/selectedByDefault",schemaPath:"#/properties/selectedByDefault/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===o?o=[e]:o.push(e),p++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===o?o=[e]:o.push(e),p++}return ut.errors=o,0===p}function lt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){const s=e.length;for(let a=0;a<s;a++)ut(e[a],{instancePath:t+"/"+a,parentData:e,parentDataProperty:a,rootData:r})||(i=null===i?ut.errors:i.concat(ut.errors),n=i.length);let a,o=e.length;if(o>1)e:for(;o--;)for(a=o;a--;)if(Me(e[o],e[a])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:o,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+o+" are identical)"};null===i?i=[e]:i.push(e),n++;break e}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return lt.errors=i,0===n}function ht(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.label){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"label"},message:"must have required property 'label'"};null===i?i=[e]:i.push(e),o++}for(const s in e)if("label"!==s&&"selectedByDefault"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),o++}if(void 0!==e.label){let s=e.label;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/label",schemaPath:"#/properties/label/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===i?i=[e]:i.push(e),o++}}else{const e={instancePath:t+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),o++}}if(void 0!==e.selectedByDefault&&"boolean"!=typeof e.selectedByDefault){const e={instancePath:t+"/selectedByDefault",schemaPath:"#/properties/selectedByDefault/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),o++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),o++}return ht.errors=i,0===o}function ct(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){const s=e.length;for(let a=0;a<s;a++)ht(e[a],{instancePath:t+"/"+a,parentData:e,parentDataProperty:a,rootData:r})||(i=null===i?ht.errors:i.concat(ht.errors),n=i.length);let a,o=e.length;if(o>1)e:for(;o--;)for(a=o;a--;)if(Me(e[o],e[a])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:o,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+o+" are identical)"};null===i?i=[e]:i.push(e),n++;break e}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return ct.errors=i,0===n}const dt={type:"object",properties:{action:{type:"string",enum:["move","delete"]},to:{type:"integer"},type:{type:"string",enum:["Value","OntologyClass"]},source:{type:"string"},sourceUri:{type:"string",format:"uri"},termUri:{type:"string",format:"uri"}},required:["action","termUri","type","source","sourceUri"],additionalProperties:!1};function yt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.action){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"action"},message:"must have required property 'action'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.termUri){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"termUri"},message:"must have required property 'termUri'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.source){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"source"},message:"must have required property 'source'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.sourceUri){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"sourceUri"},message:"must have required property 'sourceUri'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if("action"!==s&&"to"!==s&&"type"!==s&&"source"!==s&&"sourceUri"!==s&&"termUri"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.action){let s=e.action;if("string"!=typeof s){const e={instancePath:t+"/action",schemaPath:"#/properties/action/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("move"!==s&&"delete"!==s){const e={instancePath:t+"/action",schemaPath:"#/properties/action/enum",keyword:"enum",params:{allowedValues:dt.properties.action.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.to){let s=e.to;if("number"!=typeof s||s%1||isNaN(s)){const e={instancePath:t+"/to",schemaPath:"#/properties/to/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("Value"!==s&&"OntologyClass"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:dt.properties.type.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.source&&"string"!=typeof e.source){const e={instancePath:t+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.sourceUri){let s=e.sourceUri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/sourceUri",schemaPath:"#/properties/sourceUri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/sourceUri",schemaPath:"#/properties/sourceUri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.termUri){let s=e.termUri;if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/termUri",schemaPath:"#/properties/termUri/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/termUri",schemaPath:"#/properties/termUri/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return yt.errors=n,0===o}function ft(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){const s=e.length;for(let a=0;a<s;a++)yt(e[a],{instancePath:t+"/"+a,parentData:e,parentDataProperty:a,rootData:r})||(i=null===i?yt.errors:i.concat(yt.errors),n=i.length);let a,o=e.length;if(o>1)e:for(;o--;)for(a=o;a--;)if(Me(e[o],e[a])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:o,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+o+" are identical)"};null===i?i=[e]:i.push(e),n++;break e}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return ft.errors=i,0===n}function Pt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.requiredValue){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"requiredValue"},message:"must have required property 'requiredValue'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if(!c.call(Ge.properties,s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.requiredValue&&"boolean"!=typeof e.requiredValue){const e={instancePath:t+"/requiredValue",schemaPath:"#/properties/requiredValue/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.recommendedValue&&"boolean"!=typeof e.recommendedValue){const e={instancePath:t+"/recommendedValue",schemaPath:"#/properties/recommendedValue/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.multipleChoice&&"boolean"!=typeof e.multipleChoice){const e={instancePath:t+"/multipleChoice",schemaPath:"#/properties/multipleChoice/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.minLength){let s=e.minLength;if("number"!=typeof s||s%1||isNaN(s)){const e={instancePath:t+"/minLength",schemaPath:"#/properties/minLength/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.maxLength){let s=e.maxLength;if("number"!=typeof s||s%1||isNaN(s)){const e={instancePath:t+"/maxLength",schemaPath:"#/properties/maxLength/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.regex&&"string"!=typeof e.regex){const e={instancePath:t+"/regex",schemaPath:"#/properties/regex/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.minValue&&"number"!=typeof e.minValue){const e={instancePath:t+"/minValue",schemaPath:"#/properties/minValue/type",keyword:"type",params:{type:"number"},message:"must be number"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.maxValue&&"number"!=typeof e.maxValue){const e={instancePath:t+"/maxValue",schemaPath:"#/properties/maxValue/type",keyword:"type",params:{type:"number"},message:"must be number"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.decimalPlace&&"number"!=typeof e.decimalPlace){const e={instancePath:t+"/decimalPlace",schemaPath:"#/properties/decimalPlace/type",keyword:"type",params:{type:"number"},message:"must be number"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.unitOfMeasure&&"string"!=typeof e.unitOfMeasure){const e={instancePath:t+"/unitOfMeasure",schemaPath:"#/properties/unitOfMeasure/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.defaultValue){let s=e.defaultValue;const a=n;let p=!1,m=null;const u=n;Je(s,{instancePath:t+"/defaultValue",parentData:e,parentDataProperty:"defaultValue",rootData:r})||(i=null===i?Je.errors:i.concat(Je.errors),n=i.length),u===n&&(p=!0,m=0);const l=n;var o;if(We(s,{instancePath:t+"/defaultValue",parentData:e,parentDataProperty:"defaultValue",rootData:r})||(i=null===i?We.errors:i.concat(We.errors),n=i.length),(o=l===n)&&p?(p=!1,m=[m,1]):o&&(p=!0,m=1),p)n=a,null!==i&&(a?i.length=a:i=null);else{const e={instancePath:t+"/defaultValue",schemaPath:"#/properties/defaultValue/oneOf",keyword:"oneOf",params:{passingSchemas:m},message:"must match exactly one schema in oneOf"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.numberType){let s=e.numberType;if("string"!=typeof s){const e={instancePath:t+"/numberType",schemaPath:"#/properties/numberType/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:decimal"!==s&&"xsd:long"!==s&&"xsd:int"!==s&&"xsd:double"!==s&&"xsd:float"!==s&&"xsd:byte"!==s&&"xsd:short"!==s){const e={instancePath:t+"/numberType",schemaPath:"#/properties/numberType/enum",keyword:"enum",params:{allowedValues:Ge.properties.numberType.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.temporalType){let s=e.temporalType;if("string"!=typeof s){const e={instancePath:t+"/temporalType",schemaPath:"#/properties/temporalType/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:dateTime"!==s&&"xsd:date"!==s&&"xsd:time"!==s){const e={instancePath:t+"/temporalType",schemaPath:"#/properties/temporalType/enum",keyword:"enum",params:{allowedValues:Ge.properties.temporalType.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}void 0!==e.ontologies&&(tt(e.ontologies,{instancePath:t+"/ontologies",parentData:e,parentDataProperty:"ontologies",rootData:r})||(i=null===i?tt.errors:i.concat(tt.errors),n=i.length)),void 0!==e.valueSets&&(it(e.valueSets,{instancePath:t+"/valueSets",parentData:e,parentDataProperty:"valueSets",rootData:r})||(i=null===i?it.errors:i.concat(it.errors),n=i.length)),void 0!==e.classes&&(pt(e.classes,{instancePath:t+"/classes",parentData:e,parentDataProperty:"classes",rootData:r})||(i=null===i?pt.errors:i.concat(pt.errors),n=i.length)),void 0!==e.branches&&(lt(e.branches,{instancePath:t+"/branches",parentData:e,parentDataProperty:"branches",rootData:r})||(i=null===i?lt.errors:i.concat(lt.errors),n=i.length)),void 0!==e.literals&&(ct(e.literals,{instancePath:t+"/literals",parentData:e,parentDataProperty:"literals",rootData:r})||(i=null===i?ct.errors:i.concat(ct.errors),n=i.length)),void 0!==e.actions&&(ft(e.actions,{instancePath:t+"/actions",parentData:e,parentDataProperty:"actions",rootData:r})||(i=null===i?ft.errors:i.concat(ft.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Pt.errors=i,0===n}const gt={type:"object",properties:{xsd:{type:"string",format:"uri",enum:["http://www.w3.org/2001/XMLSchema#"]},pav:{type:"string",format:"uri",enum:["http://purl.org/pav/"]},schema:{type:"string",format:"uri",enum:["http://schema.org/"]},oslc:{type:"string",format:"uri",enum:["http://open-services.net/ns/core#"]},skos:{type:"string",format:"uri",enum:["http://www.w3.org/2004/02/skos/core#"]},bibo:{type:"string",format:"uri",enum:["http://purl.org/ontology/bibo/"]},"schema:name":{$ref:"#/definitions/schemaNameContextFieldContent"},"schema:description":{$ref:"#/definitions/schemaDescriptionContextFieldContent"},"skos:prefLabel":{$ref:"#/definitions/skosPrefLabelContextFieldContent"},"skos:altLabel":{$ref:"#/definitions/skosAltLabelContextFieldContent"},"pav:createdOn":{$ref:"#/definitions/pavCreatedOnContextFieldContent"},"pav:createdBy":{$ref:"#/definitions/pavCreatedByContextFieldContent"},"pav:lastUpdatedOn":{$ref:"#/definitions/pavLastUpdatedOnContextFieldContent"},"oslc:modifiedBy":{$ref:"#/definitions/oslcModifiedByContextFieldContent"},_annotations:{type:"string",enum:["@nest"]}},patternProperties:{"^(?!(schema|xsd|pav|oslc|skos|_annotations|\\$))[^.]+$":{type:"string",format:"uri"}},additionalProperties:!1,required:["xsd","pav","schema","oslc","skos","schema:name","schema:description","skos:prefLabel","skos:altLabel","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy"]},vt=new RegExp("^(?!(schema|xsd|pav|oslc|skos|_annotations|\\$))[^.]+$","u");function wt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let s=e["@type"];if("string"!=typeof s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:string"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:y.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return wt.errors=i,0===n}function bt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let s=e["@type"];if("string"!=typeof s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("xsd:string"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:y.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return bt.errors=i,0===n}function kt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.xsd){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"xsd"},message:"must have required property 'xsd'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.pav){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav"},message:"must have required property 'pav'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.schema){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema"},message:"must have required property 'schema'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.oslc){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc"},message:"must have required property 'oslc'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.skos){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"skos"},message:"must have required property 'skos'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["schema:name"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["schema:description"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["skos:prefLabel"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"skos:prefLabel"},message:"must have required property 'skos:prefLabel'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["skos:altLabel"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"skos:altLabel"},message:"must have required property 'skos:altLabel'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["pav:createdOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["pav:createdBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["pav:lastUpdatedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["oslc:modifiedBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if(!c.call(gt.properties,s)&&!vt.test(s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.xsd){let s=e.xsd;if("http://www.w3.org/2001/XMLSchema#"!==s){const e={instancePath:t+"/xsd",schemaPath:"#/properties/xsd/enum",keyword:"enum",params:{allowedValues:gt.properties.xsd.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/xsd",schemaPath:"#/properties/xsd/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/xsd",schemaPath:"#/properties/xsd/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.pav){let s=e.pav;if("http://purl.org/pav/"!==s){const e={instancePath:t+"/pav",schemaPath:"#/properties/pav/enum",keyword:"enum",params:{allowedValues:gt.properties.pav.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/pav",schemaPath:"#/properties/pav/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/pav",schemaPath:"#/properties/pav/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.schema){let s=e.schema;if("http://schema.org/"!==s){const e={instancePath:t+"/schema",schemaPath:"#/properties/schema/enum",keyword:"enum",params:{allowedValues:gt.properties.schema.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/schema",schemaPath:"#/properties/schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/schema",schemaPath:"#/properties/schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.oslc){let s=e.oslc;if("http://open-services.net/ns/core#"!==s){const e={instancePath:t+"/oslc",schemaPath:"#/properties/oslc/enum",keyword:"enum",params:{allowedValues:gt.properties.oslc.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/oslc",schemaPath:"#/properties/oslc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/oslc",schemaPath:"#/properties/oslc/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.skos){let s=e.skos;if("http://www.w3.org/2004/02/skos/core#"!==s){const e={instancePath:t+"/skos",schemaPath:"#/properties/skos/enum",keyword:"enum",params:{allowedValues:gt.properties.skos.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/skos",schemaPath:"#/properties/skos/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/skos",schemaPath:"#/properties/skos/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.bibo){let s=e.bibo;if("http://purl.org/ontology/bibo/"!==s){const e={instancePath:t+"/bibo",schemaPath:"#/properties/bibo/enum",keyword:"enum",params:{allowedValues:gt.properties.bibo.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/bibo",schemaPath:"#/properties/bibo/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/bibo",schemaPath:"#/properties/bibo/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e["schema:name"]&&(f(e["schema:name"],{instancePath:t+"/schema:name",parentData:e,parentDataProperty:"schema:name",rootData:i})||(n=null===n?f.errors:n.concat(f.errors),o=n.length)),void 0!==e["schema:description"]&&(P(e["schema:description"],{instancePath:t+"/schema:description",parentData:e,parentDataProperty:"schema:description",rootData:i})||(n=null===n?P.errors:n.concat(P.errors),o=n.length)),void 0!==e["skos:prefLabel"]&&(wt(e["skos:prefLabel"],{instancePath:t+"/skos:prefLabel",parentData:e,parentDataProperty:"skos:prefLabel",rootData:i})||(n=null===n?wt.errors:n.concat(wt.errors),o=n.length)),void 0!==e["skos:altLabel"]&&(bt(e["skos:altLabel"],{instancePath:t+"/skos:altLabel",parentData:e,parentDataProperty:"skos:altLabel",rootData:i})||(n=null===n?bt.errors:n.concat(bt.errors),o=n.length)),void 0!==e["pav:createdOn"]&&(v(e["pav:createdOn"],{instancePath:t+"/pav:createdOn",parentData:e,parentDataProperty:"pav:createdOn",rootData:i})||(n=null===n?v.errors:n.concat(v.errors),o=n.length)),void 0!==e["pav:createdBy"]&&(b(e["pav:createdBy"],{instancePath:t+"/pav:createdBy",parentData:e,parentDataProperty:"pav:createdBy",rootData:i})||(n=null===n?b.errors:n.concat(b.errors),o=n.length)),void 0!==e["pav:lastUpdatedOn"]&&(k(e["pav:lastUpdatedOn"],{instancePath:t+"/pav:lastUpdatedOn",parentData:e,parentDataProperty:"pav:lastUpdatedOn",rootData:i})||(n=null===n?k.errors:n.concat(k.errors),o=n.length)),void 0!==e["oslc:modifiedBy"]&&(q(e["oslc:modifiedBy"],{instancePath:t+"/oslc:modifiedBy",parentData:e,parentDataProperty:"oslc:modifiedBy",rootData:i})||(n=null===n?q.errors:n.concat(q.errors),o=n.length)),void 0!==e._annotations){let s=e._annotations;if("string"!=typeof s){const e={instancePath:t+"/_annotations",schemaPath:"#/properties/_annotations/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("@nest"!==s){const e={instancePath:t+"/_annotations",schemaPath:"#/properties/_annotations/enum",keyword:"enum",params:{allowedValues:gt.properties._annotations.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}for(const s in e)if(vt.test(s)){let a=e[s];if("string"==typeof a){if(!r.validate(a)){const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E(%3F!(schema%7Cxsd%7Cpav%7Coslc%7Cskos%7C_annotations%7C%5C%24))%5B%5E.%5D%2B%24/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E(%3F!(schema%7Cxsd%7Cpav%7Coslc%7Cskos%7C_annotations%7C%5C%24))%5B%5E.%5D%2B%24/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return kt.errors=n,0===o}const qt={type:"array",minItems:2,maxItems:2,items:[{type:"string",enum:["number"]},{type:"string",enum:["null"]}]};function Dt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){if(e.length>2){const e={instancePath:t,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items"};null===i?i=[e]:i.push(e),n++}if(e.length<2){const e={instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};null===i?i=[e]:i.push(e),n++}const s=e.length;if(s>0){let s=e[0];if("string"!=typeof s){const e={instancePath:t+"/0",schemaPath:"#/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("number"!==s){const e={instancePath:t+"/0",schemaPath:"#/items/0/enum",keyword:"enum",params:{allowedValues:qt.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>1){let s=e[1];if("string"!=typeof s){const e={instancePath:t+"/1",schemaPath:"#/items/1/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("null"!==s){const e={instancePath:t+"/1",schemaPath:"#/items/1/enum",keyword:"enum",params:{allowedValues:qt.items[1].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return Dt.errors=i,0===n}const Ot={type:"array",minItems:2,maxItems:2,items:[{type:"string",enum:["array"]},{type:"string",enum:["null"]}]};function At(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){if(e.length>2){const e={instancePath:t,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit:2},message:"must NOT have more than 2 items"};null===i?i=[e]:i.push(e),n++}if(e.length<2){const e={instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};null===i?i=[e]:i.push(e),n++}const s=e.length;if(s>0){let s=e[0];if("string"!=typeof s){const e={instancePath:t+"/0",schemaPath:"#/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("array"!==s){const e={instancePath:t+"/0",schemaPath:"#/items/0/enum",keyword:"enum",params:{allowedValues:Ot.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>1){let s=e[1];if("string"!=typeof s){const e={instancePath:t+"/1",schemaPath:"#/items/1/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("null"!==s){const e={instancePath:t+"/1",schemaPath:"#/items/1/enum",keyword:"enum",params:{allowedValues:Ot.items[1].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return At.errors=i,0===n}function xt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;const a=n;let p=!1,m=null;const u=n;Ve(s,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?Ve.errors:i.concat(Ve.errors),n=i.length),(o=u===n)&&(p=!0,m=0);const l=n;if(Dt(s,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?Dt.errors:i.concat(Dt.errors),n=i.length),(o=l===n)&&p)p=!1,m=[m,1];else{o&&(p=!0,m=1);const a=n;var o;At(s,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?At.errors:i.concat(At.errors),n=i.length),(o=a===n)&&p?(p=!1,m=[m,2]):o&&(p=!0,m=2)}if(p)n=a,null!==i&&(a?i.length=a:i=null);else{const e={instancePath:t+"/type",schemaPath:"#/properties/type/oneOf",keyword:"oneOf",params:{passingSchemas:m},message:"must match exactly one schema in oneOf"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return xt.errors=i,0===n}function jt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}void 0!==e.type&&(Ve(e.type,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?Ve.errors:i.concat(Ve.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return jt.errors=i,0===n}function Vt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}void 0!==e.type&&(Ve(e.type,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?Ve.errors:i.concat(Ve.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Vt.errors=i,0===n}function Tt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;const o=n;let p=!1;const m=n;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e["@value"]){const e={instancePath:t,schemaPath:"#/anyOf/0/required",keyword:"required",params:{missingProperty:"@value"},message:"must have required property '@value'"};null===i?i=[e]:i.push(e),n++}var u=m===n;if(p=p||u,!p){const s=n;if(e&&"object"==typeof e&&!Array.isArray(e)&&void 0===e["@id"]){const e={instancePath:t,schemaPath:"#/anyOf/1/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===i?i=[e]:i.push(e),n++}u=s===n,p=p||u}if(p)n=o,null!==i&&(o?i.length=o:i=null);else{const e={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};null===i?i=[e]:i.push(e),n++}if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s&&"@id"!==s&&"@value"!==s&&"rdfs:label"!==s&&"skos:notation"!==s&&"@language"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}void 0!==e["@type"]&&(we(e["@type"],{instancePath:t+"/@type",parentData:e,parentDataProperty:"@type",rootData:r})||(i=null===i?we.errors:i.concat(we.errors),n=i.length)),void 0!==e["@id"]&&(Ue(e["@id"],{instancePath:t+"/@id",parentData:e,parentDataProperty:"@id",rootData:r})||(i=null===i?Ue.errors:i.concat(Ue.errors),n=i.length)),void 0!==e["@value"]&&(xt(e["@value"],{instancePath:t+"/@value",parentData:e,parentDataProperty:"@value",rootData:r})||(i=null===i?xt.errors:i.concat(xt.errors),n=i.length)),void 0!==e["rdfs:label"]&&(jt(e["rdfs:label"],{instancePath:t+"/rdfs:label",parentData:e,parentDataProperty:"rdfs:label",rootData:r})||(i=null===i?jt.errors:i.concat(jt.errors),n=i.length)),void 0!==e["skos:notation"]&&(Vt(e["skos:notation"],{instancePath:t+"/skos:notation",parentData:e,parentDataProperty:"skos:notation",rootData:r})||(i=null===i?Vt.errors:i.concat(Vt.errors),n=i.length)),void 0!==e["@language"]&&(se(e["@language"],{instancePath:t+"/@language",parentData:e,parentDataProperty:"@language",rootData:r})||(i=null===i?se.errors:i.concat(se.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Tt.errors=i,0===n}function Bt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(!e||"object"!=typeof e||Array.isArray(e)){const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Bt.errors=i,0===n}const $t=new RegExp("^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$","u");function Lt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:p=e}={}){let m=null,u=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.$schema){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.title){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.description){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===m?m=[e]:m.push(e),u++}if(void 0===e._ui){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===m?m=[e]:m.push(e),u++}if(void 0===e._valueConstraints){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_valueConstraints"},message:"must have required property '_valueConstraints'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["@context"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["@id"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.additionalProperties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["pav:createdOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["pav:createdBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["pav:lastUpdatedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["oslc:modifiedBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["schema:schemaVersion"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["schema:name"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["schema:description"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===m?m=[e]:m.push(e),u++}if(void 0!==e.$schema){let s=e.$schema;if("http://json-schema.org/draft-04/schema#"!==s){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:Re.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Re.properties.type.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["schema:identifier"]){let s=e["schema:identifier"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["schema:name"]){let s=e["schema:name"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["schema:description"]&&"string"!=typeof e["schema:description"]){const e={instancePath:t+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if(void 0!==e["skos:prefLabel"]&&"string"!=typeof e["skos:prefLabel"]){const e={instancePath:t+"/skos:prefLabel",schemaPath:"#/properties/skos%3AprefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if(void 0!==e["skos:altLabel"]){let s=e["skos:altLabel"];if(Array.isArray(s)){let e,a=s.length;if(a>1)e:for(;a--;)for(e=a;e--;)if(Me(s[a],s[e])){const s={instancePath:t+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/uniqueItems",keyword:"uniqueItems",params:{i:a,j:e},message:"must NOT have duplicate items (items ## "+e+" and "+a+" are identical)"};null===m?m=[s]:m.push(s),u++;break e}}else{const e={instancePath:t+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/type",keyword:"type",params:{type:"array"},message:"must be array"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e.title){let s=e.title;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e.description){let s=e.description;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e._ui&&(Ze(e._ui,{instancePath:t+"/_ui",parentData:e,parentDataProperty:"_ui",rootData:p})||(m=null===m?Ze.errors:m.concat(Ze.errors),u=m.length)),void 0!==e._valueConstraints&&(Pt(e._valueConstraints,{instancePath:t+"/_valueConstraints",parentData:e,parentDataProperty:"_valueConstraints",rootData:p})||(m=null===m?Pt.errors:m.concat(Pt.errors),u=m.length)),void 0!==e["@context"]&&(kt(e["@context"],{instancePath:t+"/@context",parentData:e,parentDataProperty:"@context",rootData:p})||(m=null===m?kt.errors:m.concat(kt.errors),u=m.length)),void 0!==e["@id"]){let s=e["@id"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:Re.properties["@id"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["@type"]){let s=e["@type"];if("https://schema.metadatacenter.org/core/TemplateField"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:Re.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e.properties&&(Tt(e.properties,{instancePath:t+"/properties",parentData:e,parentDataProperty:"properties",rootData:p})||(m=null===m?Tt.errors:m.concat(Tt.errors),u=m.length)),void 0!==e.required&&(o(e.required,{instancePath:t+"/required",parentData:e,parentDataProperty:"required",rootData:p})||(m=null===m?o.errors:m.concat(o.errors),u=m.length)),void 0!==e["pav:createdOn"]){let s=e["pav:createdOn"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:Re.properties["pav:createdOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s&&!i.validate(s)){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["pav:createdBy"]){let s=e["pav:createdBy"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:Re.properties["pav:createdBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["pav:lastUpdatedOn"]){let s=e["pav:lastUpdatedOn"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:Re.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s&&!i.validate(s)){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["oslc:modifiedBy"]){let s=e["oslc:modifiedBy"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:Re.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["bibo:status"]){let s=e["bibo:status"];if("string"!=typeof s){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("bibo:published"!==s&&"bibo:draft"!==s){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:Re.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["pav:version"]){let s=e["pav:version"];if("string"==typeof s){if(!$t.test(s)){const e={instancePath:t+"/pav:version",schemaPath:"#/properties/pav%3Aversion/pattern",keyword:"pattern",params:{pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},message:'must match pattern "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["pav:previousVersion"]){let s=e["pav:previousVersion"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["pav:derivedFrom"]){let s=e["pav:derivedFrom"];if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["@nest"]&&(Bt(e["@nest"],{instancePath:t+"/@nest",parentData:e,parentDataProperty:"@nest",rootData:p})||(m=null===m?Bt.errors:m.concat(Bt.errors),u=m.length)),void 0!==e.additionalProperties){let s=e.additionalProperties;if("boolean"!=typeof s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===m?m=[e]:m.push(e),u++}if(!1!==s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:Re.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["schema:schemaVersion"]){let s=e["schema:schemaVersion"];if("string"!=typeof s){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("1.6.0"!==s){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:Re.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===m?m=[e]:m.push(e),u++}return Lt.errors=m,0===u}const It={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{$schema:{type:"string",format:"uri",enum:["http://json-schema.org/draft-04/schema#"]},type:{type:"string",enum:["object"]},"schema:identifier":{type:"string",minLength:1},"schema:name":{type:"string",minLength:1},"skos:prefLabel":{type:"string"},"skos:altLabel":{type:"array",uniqueItems:!0},"schema:description":{type:"string"},title:{type:"string",minLength:1},description:{type:"string",minLength:1},_ui:{$ref:"#/definitions/iriFieldUIContent"},_valueConstraints:{$ref:"#/definitions/iriFieldValueConstraintsContent"},"@context":{$ref:"#/definitions/templateFieldJSONLDContextFieldContent"},"@id":{type:["string","null"],format:"uri"},"@type":{type:"string",format:"uri",enum:["https://schema.metadatacenter.org/core/TemplateField"]},properties:{$ref:"#/definitions/iriFieldPropertiesContent"},required:{$ref:"#/definitions/stringArray"},"pav:createdOn":{type:["string","null"],format:"date-time"},"pav:createdBy":{type:["string","null"],format:"uri"},"pav:lastUpdatedOn":{type:["string","null"],format:"date-time"},"oslc:modifiedBy":{type:["string","null"],format:"uri"},"bibo:status":{type:"string",enum:["bibo:published","bibo:draft"]},"pav:version":{type:"string",pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},"pav:previousVersion":{type:"string",minLength:1},"pav:derivedFrom":{type:"string",format:"uri"},additionalProperties:{type:"boolean",enum:[!1]},"schema:schemaVersion":{type:"string",enum:["1.6.0"]}},required:["$schema","type","title","description","_ui","_valueConstraints","@context","@id","@type","properties","additionalProperties","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy","schema:schemaVersion","schema:name","schema:description"]},Nt={type:"object",properties:{inputType:{type:"string",enum:["link","ext-ror","ext-orcid","ext-pfas","ext-rrid","ext-pubmed","ext-nih-grant-id","ext-doi"]},valueRecommendationEnabled:{type:"boolean"},hidden:{type:"boolean"},continuePreviousLine:{type:"boolean"}},required:["inputType"],additionalProperties:!1};function Ct(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.inputType){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"inputType"},message:"must have required property 'inputType'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("inputType"!==s&&"valueRecommendationEnabled"!==s&&"hidden"!==s&&"continuePreviousLine"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.inputType){let s=e.inputType;if("string"!=typeof s){const e={instancePath:t+"/inputType",schemaPath:"#/properties/inputType/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("link"!==s&&"ext-ror"!==s&&"ext-orcid"!==s&&"ext-pfas"!==s&&"ext-rrid"!==s&&"ext-pubmed"!==s&&"ext-nih-grant-id"!==s&&"ext-doi"!==s){const e={instancePath:t+"/inputType",schemaPath:"#/properties/inputType/enum",keyword:"enum",params:{allowedValues:Nt.properties.inputType.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.valueRecommendationEnabled&&"boolean"!=typeof e.valueRecommendationEnabled){const e={instancePath:t+"/valueRecommendationEnabled",schemaPath:"#/properties/valueRecommendationEnabled/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.hidden&&"boolean"!=typeof e.hidden){const e={instancePath:t+"/hidden",schemaPath:"#/properties/hidden/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.continuePreviousLine&&"boolean"!=typeof e.continuePreviousLine){const e={instancePath:t+"/continuePreviousLine",schemaPath:"#/properties/continuePreviousLine/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Ct.errors=i,0===n}const _t={type:"object",properties:{requiredValue:{type:"boolean"},recommendedValue:{type:"boolean"},multipleChoice:{type:"boolean",enum:[!1]},defaultValue:{oneOf:[{$ref:"#/definitions/valueConstraintsStringDefaultValueContent"},{$ref:"#/definitions/valueConstraintsUriDefaultValueContent"}]},ontologies:{$ref:"#/definitions/valueConstraintsOntologiesFieldContent"},valueSets:{$ref:"#/definitions/valueConstraintsValueSetsFieldContent"},classes:{$ref:"#/definitions/valueConstraintsClassesFieldContent"},branches:{$ref:"#/definitions/valueConstraintsBranchesFieldContent"},literals:{$ref:"#/definitions/valueConstraintsLiteralsFieldContent"},actions:{$ref:"#/definitions/valueConstraintsActionsFieldContent"}},required:["requiredValue"],additionalProperties:!1};function Ut(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.requiredValue){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"requiredValue"},message:"must have required property 'requiredValue'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if(!c.call(_t.properties,s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.requiredValue&&"boolean"!=typeof e.requiredValue){const e={instancePath:t+"/requiredValue",schemaPath:"#/properties/requiredValue/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.recommendedValue&&"boolean"!=typeof e.recommendedValue){const e={instancePath:t+"/recommendedValue",schemaPath:"#/properties/recommendedValue/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.multipleChoice){let s=e.multipleChoice;if("boolean"!=typeof s){const e={instancePath:t+"/multipleChoice",schemaPath:"#/properties/multipleChoice/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(!1!==s){const e={instancePath:t+"/multipleChoice",schemaPath:"#/properties/multipleChoice/enum",keyword:"enum",params:{allowedValues:_t.properties.multipleChoice.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.defaultValue){let s=e.defaultValue;const a=n;let p=!1,m=null;const u=n;Je(s,{instancePath:t+"/defaultValue",parentData:e,parentDataProperty:"defaultValue",rootData:r})||(i=null===i?Je.errors:i.concat(Je.errors),n=i.length),u===n&&(p=!0,m=0);const l=n;var o;if(We(s,{instancePath:t+"/defaultValue",parentData:e,parentDataProperty:"defaultValue",rootData:r})||(i=null===i?We.errors:i.concat(We.errors),n=i.length),(o=l===n)&&p?(p=!1,m=[m,1]):o&&(p=!0,m=1),p)n=a,null!==i&&(a?i.length=a:i=null);else{const e={instancePath:t+"/defaultValue",schemaPath:"#/properties/defaultValue/oneOf",keyword:"oneOf",params:{passingSchemas:m},message:"must match exactly one schema in oneOf"};null===i?i=[e]:i.push(e),n++}}void 0!==e.ontologies&&(tt(e.ontologies,{instancePath:t+"/ontologies",parentData:e,parentDataProperty:"ontologies",rootData:r})||(i=null===i?tt.errors:i.concat(tt.errors),n=i.length)),void 0!==e.valueSets&&(it(e.valueSets,{instancePath:t+"/valueSets",parentData:e,parentDataProperty:"valueSets",rootData:r})||(i=null===i?it.errors:i.concat(it.errors),n=i.length)),void 0!==e.classes&&(pt(e.classes,{instancePath:t+"/classes",parentData:e,parentDataProperty:"classes",rootData:r})||(i=null===i?pt.errors:i.concat(pt.errors),n=i.length)),void 0!==e.branches&&(lt(e.branches,{instancePath:t+"/branches",parentData:e,parentDataProperty:"branches",rootData:r})||(i=null===i?lt.errors:i.concat(lt.errors),n=i.length)),void 0!==e.literals&&(ct(e.literals,{instancePath:t+"/literals",parentData:e,parentDataProperty:"literals",rootData:r})||(i=null===i?ct.errors:i.concat(ct.errors),n=i.length)),void 0!==e.actions&&(ft(e.actions,{instancePath:t+"/actions",parentData:e,parentDataProperty:"actions",rootData:r})||(i=null===i?ft.errors:i.concat(ft.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Ut.errors=i,0===n}function Ft(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["@id"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["rdfs:label"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"rdfs:label"},message:"must have required property 'rdfs:label'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s&&"@id"!==s&&"rdfs:label"!==s&&"skos:notation"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}void 0!==e["@type"]&&(we(e["@type"],{instancePath:t+"/@type",parentData:e,parentDataProperty:"@type",rootData:r})||(i=null===i?we.errors:i.concat(we.errors),n=i.length)),void 0!==e["@id"]&&(Ue(e["@id"],{instancePath:t+"/@id",parentData:e,parentDataProperty:"@id",rootData:r})||(i=null===i?Ue.errors:i.concat(Ue.errors),n=i.length)),void 0!==e["rdfs:label"]&&(jt(e["rdfs:label"],{instancePath:t+"/rdfs:label",parentData:e,parentDataProperty:"rdfs:label",rootData:r})||(i=null===i?jt.errors:i.concat(jt.errors),n=i.length)),void 0!==e["skos:notation"]&&(Vt(e["skos:notation"],{instancePath:t+"/skos:notation",parentData:e,parentDataProperty:"skos:notation",rootData:r})||(i=null===i?Vt.errors:i.concat(Vt.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Ft.errors=i,0===n}function Et(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:p=e}={}){let m=null,u=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.$schema){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.title){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.description){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===m?m=[e]:m.push(e),u++}if(void 0===e._ui){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===m?m=[e]:m.push(e),u++}if(void 0===e._valueConstraints){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_valueConstraints"},message:"must have required property '_valueConstraints'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["@context"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["@id"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.additionalProperties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["pav:createdOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["pav:createdBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["pav:lastUpdatedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["oslc:modifiedBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["schema:schemaVersion"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["schema:name"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===m?m=[e]:m.push(e),u++}if(void 0===e["schema:description"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===m?m=[e]:m.push(e),u++}if(void 0!==e.$schema){let s=e.$schema;if("http://json-schema.org/draft-04/schema#"!==s){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:It.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:It.properties.type.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["schema:identifier"]){let s=e["schema:identifier"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["schema:name"]){let s=e["schema:name"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["skos:prefLabel"]&&"string"!=typeof e["skos:prefLabel"]){const e={instancePath:t+"/skos:prefLabel",schemaPath:"#/properties/skos%3AprefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if(void 0!==e["skos:altLabel"]){let s=e["skos:altLabel"];if(Array.isArray(s)){let e,a=s.length;if(a>1)e:for(;a--;)for(e=a;e--;)if(Me(s[a],s[e])){const s={instancePath:t+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/uniqueItems",keyword:"uniqueItems",params:{i:a,j:e},message:"must NOT have duplicate items (items ## "+e+" and "+a+" are identical)"};null===m?m=[s]:m.push(s),u++;break e}}else{const e={instancePath:t+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/type",keyword:"type",params:{type:"array"},message:"must be array"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["schema:description"]&&"string"!=typeof e["schema:description"]){const e={instancePath:t+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if(void 0!==e.title){let s=e.title;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e.description){let s=e.description;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e._ui&&(Ct(e._ui,{instancePath:t+"/_ui",parentData:e,parentDataProperty:"_ui",rootData:p})||(m=null===m?Ct.errors:m.concat(Ct.errors),u=m.length)),void 0!==e._valueConstraints&&(Ut(e._valueConstraints,{instancePath:t+"/_valueConstraints",parentData:e,parentDataProperty:"_valueConstraints",rootData:p})||(m=null===m?Ut.errors:m.concat(Ut.errors),u=m.length)),void 0!==e["@context"]&&(kt(e["@context"],{instancePath:t+"/@context",parentData:e,parentDataProperty:"@context",rootData:p})||(m=null===m?kt.errors:m.concat(kt.errors),u=m.length)),void 0!==e["@id"]){let s=e["@id"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:It.properties["@id"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["@type"]){let s=e["@type"];if("https://schema.metadatacenter.org/core/TemplateField"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:It.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e.properties&&(Ft(e.properties,{instancePath:t+"/properties",parentData:e,parentDataProperty:"properties",rootData:p})||(m=null===m?Ft.errors:m.concat(Ft.errors),u=m.length)),void 0!==e.required&&(o(e.required,{instancePath:t+"/required",parentData:e,parentDataProperty:"required",rootData:p})||(m=null===m?o.errors:m.concat(o.errors),u=m.length)),void 0!==e["pav:createdOn"]){let s=e["pav:createdOn"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:It.properties["pav:createdOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s&&!i.validate(s)){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["pav:createdBy"]){let s=e["pav:createdBy"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:It.properties["pav:createdBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["pav:lastUpdatedOn"]){let s=e["pav:lastUpdatedOn"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:It.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s&&!i.validate(s)){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["oslc:modifiedBy"]){let s=e["oslc:modifiedBy"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:It.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["bibo:status"]){let s=e["bibo:status"];if("string"!=typeof s){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("bibo:published"!==s&&"bibo:draft"!==s){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:It.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["pav:version"]){let s=e["pav:version"];if("string"==typeof s){if(!$t.test(s)){const e={instancePath:t+"/pav:version",schemaPath:"#/properties/pav%3Aversion/pattern",keyword:"pattern",params:{pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},message:'must match pattern "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["pav:previousVersion"]){let s=e["pav:previousVersion"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["pav:derivedFrom"]){let s=e["pav:derivedFrom"];if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:t+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e.additionalProperties){let s=e.additionalProperties;if("boolean"!=typeof s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===m?m=[e]:m.push(e),u++}if(!1!==s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:It.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e["schema:schemaVersion"]){let s=e["schema:schemaVersion"];if("string"!=typeof s){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("1.6.0"!==s){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:It.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===m?m=[e]:m.push(e),u++}return Et.errors=m,0===u}const St={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{$schema:{type:"string",format:"uri",enum:["http://json-schema.org/draft-04/schema#"]},type:{type:"string",enum:["object"]},"schema:name":{type:"string",minLength:1},"schema:description":{type:"string"},"skos:prefLabel":{type:"string"},title:{type:"string",minLength:1},description:{type:"string",minLength:1},_ui:{$ref:"#/definitions/staticFieldUIContent"},"@context":{type:"object",properties:{schema:{type:"string",format:"uri",enum:["http://schema.org/"]},pav:{type:"string",format:"uri",enum:["http://purl.org/pav/"]},oslc:{type:"string",format:"uri",enum:["http://open-services.net/ns/core#"]}},required:["schema","pav","oslc"]},"@id":{type:["string","null"],format:"uri"},"@type":{type:"string",format:"uri",enum:["https://schema.metadatacenter.org/core/StaticTemplateField"]},properties:{},"pav:createdOn":{type:["string","null"],format:"date-time"},"pav:createdBy":{type:["string","null"],format:"uri"},"pav:lastUpdatedOn":{type:["string","null"],format:"date-time"},"oslc:modifiedBy":{type:["string","null"],format:"uri"},"schema:schemaVersion":{type:"string",enum:["1.6.0"]},"bibo:status":{type:"string",enum:["bibo:published","bibo:draft"]},additionalProperties:{type:"boolean",enum:[!1]}},required:["$schema","type","title","description","_ui","@id","@type","additionalProperties","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy","schema:name","schema:description","schema:schemaVersion"]},Rt={type:"object",properties:{inputType:{type:"string",enum:["section-break","page-break","richtext","image","youtube"]},_content:{type:["string","null"]},_size:{$ref:"#/definitions/staticFieldUISizeContent"},hidden:{type:"boolean"}},required:["inputType","_content"],additionalProperties:!1};function Mt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const s in e)if("width"!==s&&"height"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.width&&"number"!=typeof e.width){const e={instancePath:t+"/width",schemaPath:"#/properties/width/type",keyword:"type",params:{type:"number"},message:"must be number"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.height&&"number"!=typeof e.height){const e={instancePath:t+"/height",schemaPath:"#/properties/height/type",keyword:"type",params:{type:"number"},message:"must be number"};null===i?i=[e]:i.push(e),n++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Mt.errors=i,0===n}function zt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.inputType){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"inputType"},message:"must have required property 'inputType'"};null===i?i=[e]:i.push(e),n++}if(void 0===e._content){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_content"},message:"must have required property '_content'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("inputType"!==s&&"_content"!==s&&"_size"!==s&&"hidden"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.inputType){let s=e.inputType;if("string"!=typeof s){const e={instancePath:t+"/inputType",schemaPath:"#/properties/inputType/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("section-break"!==s&&"page-break"!==s&&"richtext"!==s&&"image"!==s&&"youtube"!==s){const e={instancePath:t+"/inputType",schemaPath:"#/properties/inputType/enum",keyword:"enum",params:{allowedValues:Rt.properties.inputType.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e._content){let s=e._content;if("string"!=typeof s&&null!==s){const e={instancePath:t+"/_content",schemaPath:"#/properties/_content/type",keyword:"type",params:{type:Rt.properties._content.type},message:"must be string,null"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e._size&&(Mt(e._size,{instancePath:t+"/_size",parentData:e,parentDataProperty:"_size",rootData:r})||(i=null===i?Mt.errors:i.concat(Mt.errors),n=i.length)),void 0!==e.hidden&&"boolean"!=typeof e.hidden){const e={instancePath:t+"/hidden",schemaPath:"#/properties/hidden/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return zt.errors=i,0===n}function Zt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:o=e}={}){let p=null,m=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.$schema){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.title){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.description){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===p?p=[e]:p.push(e),m++}if(void 0===e._ui){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["@id"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.additionalProperties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["pav:createdOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["pav:createdBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["pav:lastUpdatedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["oslc:modifiedBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["schema:name"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["schema:description"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["schema:schemaVersion"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===p?p=[e]:p.push(e),m++}if(void 0!==e.$schema){let s=e.$schema;if("http://json-schema.org/draft-04/schema#"!==s){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:St.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:St.properties.type.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["schema:name"]){let s=e["schema:name"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["schema:description"]&&"string"!=typeof e["schema:description"]){const e={instancePath:t+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if(void 0!==e["skos:prefLabel"]&&"string"!=typeof e["skos:prefLabel"]){const e={instancePath:t+"/skos:prefLabel",schemaPath:"#/properties/skos%3AprefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if(void 0!==e.title){let s=e.title;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.description){let s=e.description;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e._ui&&(zt(e._ui,{instancePath:t+"/_ui",parentData:e,parentDataProperty:"_ui",rootData:o})||(p=null===p?zt.errors:p.concat(zt.errors),m=p.length)),void 0!==e["@context"]){let s=e["@context"];if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s.schema){const e={instancePath:t+"/@context",schemaPath:"#/properties/%40context/required",keyword:"required",params:{missingProperty:"schema"},message:"must have required property 'schema'"};null===p?p=[e]:p.push(e),m++}if(void 0===s.pav){const e={instancePath:t+"/@context",schemaPath:"#/properties/%40context/required",keyword:"required",params:{missingProperty:"pav"},message:"must have required property 'pav'"};null===p?p=[e]:p.push(e),m++}if(void 0===s.oslc){const e={instancePath:t+"/@context",schemaPath:"#/properties/%40context/required",keyword:"required",params:{missingProperty:"oslc"},message:"must have required property 'oslc'"};null===p?p=[e]:p.push(e),m++}if(void 0!==s.schema){let e=s.schema;if("http://schema.org/"!==e){const e={instancePath:t+"/@context/schema",schemaPath:"#/properties/%40context/properties/schema/enum",keyword:"enum",params:{allowedValues:St.properties["@context"].properties.schema.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:t+"/@context/schema",schemaPath:"#/properties/%40context/properties/schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/@context/schema",schemaPath:"#/properties/%40context/properties/schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==s.pav){let e=s.pav;if("http://purl.org/pav/"!==e){const e={instancePath:t+"/@context/pav",schemaPath:"#/properties/%40context/properties/pav/enum",keyword:"enum",params:{allowedValues:St.properties["@context"].properties.pav.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:t+"/@context/pav",schemaPath:"#/properties/%40context/properties/pav/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/@context/pav",schemaPath:"#/properties/%40context/properties/pav/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==s.oslc){let e=s.oslc;if("http://open-services.net/ns/core#"!==e){const e={instancePath:t+"/@context/oslc",schemaPath:"#/properties/%40context/properties/oslc/enum",keyword:"enum",params:{allowedValues:St.properties["@context"].properties.oslc.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:t+"/@context/oslc",schemaPath:"#/properties/%40context/properties/oslc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/@context/oslc",schemaPath:"#/properties/%40context/properties/oslc/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}}else{const e={instancePath:t+"/@context",schemaPath:"#/properties/%40context/type",keyword:"type",params:{type:"object"},message:"must be object"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["@id"]){let s=e["@id"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:St.properties["@id"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["@type"]){let s=e["@type"];if("https://schema.metadatacenter.org/core/StaticTemplateField"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:St.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:createdOn"]){let s=e["pav:createdOn"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:St.properties["pav:createdOn"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!i.validate(s)){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:createdBy"]){let s=e["pav:createdBy"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:St.properties["pav:createdBy"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:lastUpdatedOn"]){let s=e["pav:lastUpdatedOn"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:St.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!i.validate(s)){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["oslc:modifiedBy"]){let s=e["oslc:modifiedBy"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:St.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["schema:schemaVersion"]){let s=e["schema:schemaVersion"];if("string"!=typeof s){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if("1.6.0"!==s){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:St.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["bibo:status"]){let s=e["bibo:status"];if("string"!=typeof s){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if("bibo:published"!==s&&"bibo:draft"!==s){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:St.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.additionalProperties){let s=e.additionalProperties;if("boolean"!=typeof s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===p?p=[e]:p.push(e),m++}if(!1!==s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:St.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===p?p=[e]:p.push(e),m++}return Zt.errors=p,0===m}const Gt={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{$schema:{type:"string",format:"uri",enum:["http://json-schema.org/draft-04/schema#"]},type:{type:"string",enum:["object","array"]},"schema:identifier":{type:"string",minLength:1},"schema:name":{type:"string",minLength:1},"schema:description":{type:"string"},"skos:prefLabel":{type:"string"},"skos:altLabel":{type:"array",uniqueItems:!0},title:{type:"string",minLength:1},description:{type:"string",minLength:1},_ui:{$ref:"#/definitions/templateElementUIFieldContent"},"@context":{$ref:"#/definitions/templateElementJSONLDContextFieldContent"},"@id":{type:["string","null"],format:"uri"},"@type":{type:"string",format:"uri",enum:["https://schema.metadatacenter.org/core/TemplateElement"]},properties:{$ref:"#/definitions/templateElementPropertiesFieldContent"},required:{$ref:"#/definitions/templateElementRequiredContent"},"pav:createdOn":{type:["string","null"],format:"date-time"},"pav:createdBy":{type:["string","null"],format:"uri"},"pav:lastUpdatedOn":{type:["string","null"],format:"date-time"},"oslc:modifiedBy":{type:["string","null"],format:"uri"},additionalProperties:{oneOf:[{$ref:"#/definitions/falseOnlyAdditionalProperties"},{$ref:"#/definitions/defaultObjectSchemaAdditionalProperties"}]},"schema:schemaVersion":{type:"string",enum:["1.6.0"]},"bibo:status":{type:"string",enum:["bibo:published","bibo:draft"]},"pav:version":{type:"string",pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},"pav:previousVersion":{type:"string",minLength:1},"pav:derivedFrom":{type:"string",format:"uri"},"@nest":{$ref:"#/definitions/nestFieldContent"}},required:["$schema","type","title","description","_ui","@context","@id","@type","properties","required","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy","schema:schemaVersion","schema:name","schema:description"]};function Jt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.order){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"order"},message:"must have required property 'order'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.propertyLabels){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"propertyLabels"},message:"must have required property 'propertyLabels'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("order"!==s&&"propertyLabels"!==s&&"propertyDescriptions"!==s&&"header"!==s&&"footer"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.order&&(o(e.order,{instancePath:t+"/order",parentData:e,parentDataProperty:"order",rootData:r})||(i=null===i?o.errors:i.concat(o.errors),n=i.length)),void 0!==e.propertyLabels&&(m(e.propertyLabels,{instancePath:t+"/propertyLabels",parentData:e,parentDataProperty:"propertyLabels",rootData:r})||(i=null===i?m.errors:i.concat(m.errors),n=i.length)),void 0!==e.propertyDescriptions&&(u(e.propertyDescriptions,{instancePath:t+"/propertyDescriptions",parentData:e,parentDataProperty:"propertyDescriptions",rootData:r})||(i=null===i?u.errors:i.concat(u.errors),n=i.length)),void 0!==e.header&&"string"!=typeof e.header){const e={instancePath:t+"/header",schemaPath:"#/properties/header/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.footer&&"string"!=typeof e.footer){const e={instancePath:t+"/footer",schemaPath:"#/properties/footer/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Jt.errors=i,0===n}function Wt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.xsd){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"xsd"},message:"must have required property 'xsd'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.pav){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav"},message:"must have required property 'pav'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.schema){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema"},message:"must have required property 'schema'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.oslc){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc"},message:"must have required property 'oslc'"};null===n?n=[e]:n.push(e),o++}if(void 0===e.bibo){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"bibo"},message:"must have required property 'bibo'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["schema:name"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["schema:description"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["pav:createdOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["pav:createdBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["pav:lastUpdatedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===n?n=[e]:n.push(e),o++}if(void 0===e["oslc:modifiedBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===n?n=[e]:n.push(e),o++}for(const s in e)if(!c.call(h.properties,s)&&!d.test(s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.xsd){let s=e.xsd;if("http://www.w3.org/2001/XMLSchema#"!==s){const e={instancePath:t+"/xsd",schemaPath:"#/properties/xsd/enum",keyword:"enum",params:{allowedValues:h.properties.xsd.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/xsd",schemaPath:"#/properties/xsd/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/xsd",schemaPath:"#/properties/xsd/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.pav){let s=e.pav;if("http://purl.org/pav/"!==s){const e={instancePath:t+"/pav",schemaPath:"#/properties/pav/enum",keyword:"enum",params:{allowedValues:h.properties.pav.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/pav",schemaPath:"#/properties/pav/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/pav",schemaPath:"#/properties/pav/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.schema){let s=e.schema;if("http://schema.org/"!==s){const e={instancePath:t+"/schema",schemaPath:"#/properties/schema/enum",keyword:"enum",params:{allowedValues:h.properties.schema.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/schema",schemaPath:"#/properties/schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/schema",schemaPath:"#/properties/schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.oslc){let s=e.oslc;if("http://open-services.net/ns/core#"!==s){const e={instancePath:t+"/oslc",schemaPath:"#/properties/oslc/enum",keyword:"enum",params:{allowedValues:h.properties.oslc.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/oslc",schemaPath:"#/properties/oslc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/oslc",schemaPath:"#/properties/oslc/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e.bibo){let s=e.bibo;if("http://purl.org/ontology/bibo/"!==s){const e={instancePath:t+"/bibo",schemaPath:"#/properties/bibo/enum",keyword:"enum",params:{allowedValues:h.properties.bibo.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/bibo",schemaPath:"#/properties/bibo/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/bibo",schemaPath:"#/properties/bibo/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}if(void 0!==e["schema:name"]&&(f(e["schema:name"],{instancePath:t+"/schema:name",parentData:e,parentDataProperty:"schema:name",rootData:i})||(n=null===n?f.errors:n.concat(f.errors),o=n.length)),void 0!==e["schema:description"]&&(P(e["schema:description"],{instancePath:t+"/schema:description",parentData:e,parentDataProperty:"schema:description",rootData:i})||(n=null===n?P.errors:n.concat(P.errors),o=n.length)),void 0!==e["pav:createdOn"]&&(v(e["pav:createdOn"],{instancePath:t+"/pav:createdOn",parentData:e,parentDataProperty:"pav:createdOn",rootData:i})||(n=null===n?v.errors:n.concat(v.errors),o=n.length)),void 0!==e["pav:createdBy"]&&(b(e["pav:createdBy"],{instancePath:t+"/pav:createdBy",parentData:e,parentDataProperty:"pav:createdBy",rootData:i})||(n=null===n?b.errors:n.concat(b.errors),o=n.length)),void 0!==e["pav:lastUpdatedOn"]&&(k(e["pav:lastUpdatedOn"],{instancePath:t+"/pav:lastUpdatedOn",parentData:e,parentDataProperty:"pav:lastUpdatedOn",rootData:i})||(n=null===n?k.errors:n.concat(k.errors),o=n.length)),void 0!==e["oslc:modifiedBy"]&&(q(e["oslc:modifiedBy"],{instancePath:t+"/oslc:modifiedBy",parentData:e,parentDataProperty:"oslc:modifiedBy",rootData:i})||(n=null===n?q.errors:n.concat(q.errors),o=n.length)),void 0!==e._annotations){let s=e._annotations;if("string"!=typeof s){const e={instancePath:t+"/_annotations",schemaPath:"#/properties/_annotations/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("@nest"!==s){const e={instancePath:t+"/_annotations",schemaPath:"#/properties/_annotations/enum",keyword:"enum",params:{allowedValues:h.properties._annotations.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}for(const s in e)if(d.test(s)){let a=e[s];if("string"==typeof a){if(!r.validate(a)){const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E(%3F!(schema%7Cxsd%7Cpav%7Coslc%7Cbibo%7C_annotations%7C%5C%24))%5B%5E.%5D%2B%24/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E(%3F!(schema%7Cxsd%7Cpav%7Coslc%7Cbibo%7C_annotations%7C%5C%24))%5B%5E.%5D%2B%24/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return Wt.errors=n,0===o}const Xt=new RegExp("^(?!(@context|@type|@id|schema|xsd|pav|oslc|rdfs|\\$))[^\\.]+$","u"),Ht={type:"object",properties:{type:{type:"string",enum:["object"]},properties:{$ref:"#/definitions/templateElementContextPropertiesFieldContent"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{oneOf:[{$ref:"#/definitions/falseOnlyAdditionalProperties"},{$ref:"#/definitions/uriOnlyAdditionalProperties"}]}},required:["type","properties","additionalProperties"],additionalProperties:!1},Kt=new RegExp("^(?!(schema|xsd|pav|oslc|rdfs|\\$))[^\\.]+$","u");function Qt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const s in e)if(!Kt.test(s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}for(const s in e)Kt.test(s)&&(ne(e[s],{instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:s,rootData:r})||(i=null===i?ne.errors:i.concat(ne.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Qt.errors=i,0===n}function Yt(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.additionalProperties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s&&"required"!==s&&"additionalProperties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Ht.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties&&(Qt(e.properties,{instancePath:t+"/properties",parentData:e,parentDataProperty:"properties",rootData:r})||(i=null===i?Qt.errors:i.concat(Qt.errors),n=i.length)),void 0!==e.required&&(o(e.required,{instancePath:t+"/required",parentData:e,parentDataProperty:"required",rootData:r})||(i=null===i?o.errors:i.concat(o.errors),n=i.length)),void 0!==e.additionalProperties){let s=e.additionalProperties;const a=n;let o=!1,m=null;const u=n;me(s,{instancePath:t+"/additionalProperties",parentData:e,parentDataProperty:"additionalProperties",rootData:r})||(i=null===i?me.errors:i.concat(me.errors),n=i.length),u===n&&(o=!0,m=0);const l=n;var p;if(le(s,{instancePath:t+"/additionalProperties",parentData:e,parentDataProperty:"additionalProperties",rootData:r})||(i=null===i?le.errors:i.concat(le.errors),n=i.length),(p=l===n)&&o?(o=!1,m=[m,1]):p&&(o=!0,m=1),o)n=a,null!==i&&(a?i.length=a:i=null);else{const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/oneOf",keyword:"oneOf",params:{passingSchemas:m},message:"must match exactly one schema in oneOf"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return Yt.errors=i,0===n}const es={validate:ls};function ts(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["@id"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["@context"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("@type"!==s&&"@id"!==s&&"@context"!==s&&!Xt.test(s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]&&(we(e["@type"],{instancePath:t+"/@type",parentData:e,parentDataProperty:"@type",rootData:r})||(i=null===i?we.errors:i.concat(we.errors),n=i.length)),void 0!==e["@id"]){let s=e["@id"];const a=n;let p=!1;const m=n;Ue(s,{instancePath:t+"/@id",parentData:e,parentDataProperty:"@id",rootData:r})||(i=null===i?Ue.errors:i.concat(Ue.errors),n=i.length);var o=m===n;if(p=p||o,!p){const a=n;ke(s,{instancePath:t+"/@id",parentData:e,parentDataProperty:"@id",rootData:r})||(i=null===i?ke.errors:i.concat(ke.errors),n=i.length),o=a===n,p=p||o}if(p)n=a,null!==i&&(a?i.length=a:i=null);else{const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};null===i?i=[e]:i.push(e),n++}}void 0!==e["@context"]&&(Yt(e["@context"],{instancePath:t+"/@context",parentData:e,parentDataProperty:"@context",rootData:r})||(i=null===i?Yt.errors:i.concat(Yt.errors),n=i.length));for(const s in e)Xt.test(s)&&(es.validate(e[s],{instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:s,rootData:r})||(i=null===i?es.validate.errors:i.concat(es.validate.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return ts.errors=i,0===n}const ss={type:"array",minItems:2,uniqueItems:!0,items:[{type:"string",enum:["@context"]},{type:"string",enum:["@id"]}]};function as(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){if(e.length<2){const e={instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:2},message:"must NOT have fewer than 2 items"};null===i?i=[e]:i.push(e),n++}const s=e.length;if(s>0){let s=e[0];if("string"!=typeof s){const e={instancePath:t+"/0",schemaPath:"#/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@context"!==s){const e={instancePath:t+"/0",schemaPath:"#/items/0/enum",keyword:"enum",params:{allowedValues:ss.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>1){let s=e[1];if("string"!=typeof s){const e={instancePath:t+"/1",schemaPath:"#/items/1/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@id"!==s){const e={instancePath:t+"/1",schemaPath:"#/items/1/enum",keyword:"enum",params:{allowedValues:ss.items[1].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}let a,r=e.length;if(r>1)e:for(;r--;)for(a=r;a--;)if(Me(e[r],e[a])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:r,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+r+" are identical)"};null===i?i=[e]:i.push(e),n++;break e}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return as.errors=i,0===n}const rs={type:"object",properties:{type:{type:"string",enum:["object"]},properties:{type:"object",properties:{"@value":{$ref:"#/definitions/jsonLDValueFieldContent"},"@type":{type:"object",properties:{type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]}},required:["type","format"],additionalProperties:!1}},required:["@value","@type"],additionalProperties:!1},required:{$ref:"#/definitions/stringArray"},additionalProperties:{type:"boolean",enum:[!1]}},required:["type","properties","required","additionalProperties"],additionalProperties:!1};function is(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.required){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"required"},message:"must have required property 'required'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.additionalProperties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"properties"!==s&&"required"!==s&&"additionalProperties"!==s){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("object"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:rs.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.properties){let s=e.properties;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s["@value"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@value"},message:"must have required property '@value'"};null===i?i=[e]:i.push(e),n++}if(void 0===s["@type"]){const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}for(const e in s)if("@value"!==e&&"@type"!==e){const s={instancePath:t+"/properties",schemaPath:"#/properties/properties/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===i?i=[s]:i.push(s),n++}if(void 0!==s["@value"]&&(xt(s["@value"],{instancePath:t+"/properties/@value",parentData:s,parentDataProperty:"@value",rootData:r})||(i=null===i?xt.errors:i.concat(xt.errors),n=i.length)),void 0!==s["@type"]){let e=s["@type"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.format){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/required",keyword:"required",params:{missingProperty:"format"},message:"must have required property 'format'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if("type"!==s&&"format"!==s){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("string"!==s){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:rs.properties.properties.properties["@type"].properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.format){let s=e.format;if("string"!=typeof s){const e={instancePath:t+"/properties/@type/format",schemaPath:"#/properties/properties/properties/%40type/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("uri"!==s){const e={instancePath:t+"/properties/@type/format",schemaPath:"#/properties/properties/properties/%40type/properties/format/enum",keyword:"enum",params:{allowedValues:rs.properties.properties.properties["@type"].properties.format.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.required&&(o(e.required,{instancePath:t+"/required",parentData:e,parentDataProperty:"required",rootData:r})||(i=null===i?o.errors:i.concat(o.errors),n=i.length)),void 0!==e.additionalProperties){let s=e.additionalProperties;if("boolean"!=typeof s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===i?i=[e]:i.push(e),n++}if(!1!==s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:rs.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return is.errors=i,0===n}function ns(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:o=e}={}){let p=null,m=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.$schema){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.title){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.description){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===p?p=[e]:p.push(e),m++}if(void 0===e._ui){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["@context"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["@id"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.properties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.required){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"required"},message:"must have required property 'required'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["pav:createdOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["pav:createdBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["pav:lastUpdatedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["oslc:modifiedBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["schema:schemaVersion"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["schema:name"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["schema:description"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===p?p=[e]:p.push(e),m++}if(void 0!==e.$schema){let s=e.$schema;if("http://json-schema.org/draft-04/schema#"!==s){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:Gt.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if("object"!==s&&"array"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Gt.properties.type.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["schema:identifier"]){let s=e["schema:identifier"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["schema:name"]){let s=e["schema:name"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["schema:description"]&&"string"!=typeof e["schema:description"]){const e={instancePath:t+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if(void 0!==e["skos:prefLabel"]&&"string"!=typeof e["skos:prefLabel"]){const e={instancePath:t+"/skos:prefLabel",schemaPath:"#/properties/skos%3AprefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if(void 0!==e["skos:altLabel"]){let s=e["skos:altLabel"];if(Array.isArray(s)){let e,a=s.length;if(a>1)e:for(;a--;)for(e=a;e--;)if(Me(s[a],s[e])){const s={instancePath:t+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/uniqueItems",keyword:"uniqueItems",params:{i:a,j:e},message:"must NOT have duplicate items (items ## "+e+" and "+a+" are identical)"};null===p?p=[s]:p.push(s),m++;break e}}else{const e={instancePath:t+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/type",keyword:"type",params:{type:"array"},message:"must be array"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.title){let s=e.title;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.description){let s=e.description;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e._ui&&(Jt(e._ui,{instancePath:t+"/_ui",parentData:e,parentDataProperty:"_ui",rootData:o})||(p=null===p?Jt.errors:p.concat(Jt.errors),m=p.length)),void 0!==e["@context"]&&(Wt(e["@context"],{instancePath:t+"/@context",parentData:e,parentDataProperty:"@context",rootData:o})||(p=null===p?Wt.errors:p.concat(Wt.errors),m=p.length)),void 0!==e["@id"]){let s=e["@id"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:Gt.properties["@id"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["@type"]){let s=e["@type"];if("https://schema.metadatacenter.org/core/TemplateElement"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:Gt.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.properties&&(ts(e.properties,{instancePath:t+"/properties",parentData:e,parentDataProperty:"properties",rootData:o})||(p=null===p?ts.errors:p.concat(ts.errors),m=p.length)),void 0!==e.required&&(as(e.required,{instancePath:t+"/required",parentData:e,parentDataProperty:"required",rootData:o})||(p=null===p?as.errors:p.concat(as.errors),m=p.length)),void 0!==e["pav:createdOn"]){let s=e["pav:createdOn"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:Gt.properties["pav:createdOn"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!i.validate(s)){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:createdBy"]){let s=e["pav:createdBy"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:Gt.properties["pav:createdBy"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:lastUpdatedOn"]){let s=e["pav:lastUpdatedOn"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:Gt.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!i.validate(s)){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["oslc:modifiedBy"]){let s=e["oslc:modifiedBy"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:Gt.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.additionalProperties){let s=e.additionalProperties;const a=m;let r=!1,i=null;const n=m;me(s,{instancePath:t+"/additionalProperties",parentData:e,parentDataProperty:"additionalProperties",rootData:o})||(p=null===p?me.errors:p.concat(me.errors),m=p.length),n===m&&(r=!0,i=0);const l=m;var u;if(is(s,{instancePath:t+"/additionalProperties",parentData:e,parentDataProperty:"additionalProperties",rootData:o})||(p=null===p?is.errors:p.concat(is.errors),m=p.length),(u=l===m)&&r?(r=!1,i=[i,1]):u&&(r=!0,i=1),r)m=a,null!==p&&(a?p.length=a:p=null);else{const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/oneOf",keyword:"oneOf",params:{passingSchemas:i},message:"must match exactly one schema in oneOf"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["schema:schemaVersion"]){let s=e["schema:schemaVersion"];if("string"!=typeof s){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if("1.6.0"!==s){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:Gt.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["bibo:status"]){let s=e["bibo:status"];if("string"!=typeof s){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if("bibo:published"!==s&&"bibo:draft"!==s){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:Gt.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:version"]){let s=e["pav:version"];if("string"==typeof s){if(!$t.test(s)){const e={instancePath:t+"/pav:version",schemaPath:"#/properties/pav%3Aversion/pattern",keyword:"pattern",params:{pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},message:'must match pattern "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:previousVersion"]){let s=e["pav:previousVersion"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:derivedFrom"]){let s=e["pav:derivedFrom"];if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}void 0!==e["@nest"]&&(Bt(e["@nest"],{instancePath:t+"/@nest",parentData:e,parentDataProperty:"@nest",rootData:o})||(p=null===p?Bt.errors:p.concat(Bt.errors),m=p.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===p?p=[e]:p.push(e),m++}return ns.errors=p,0===m}const os={type:"object",properties:{type:{type:"string",enum:["array"]},minItems:{type:"integer",minimum:0},items:{oneOf:[{$ref:"#/definitions/literalTemplateField"},{$ref:"#/definitions/iriTemplateField"},{$ref:"#/definitions/attributeValueTemplateField"},{$ref:"#/definitions/templateElement"}]}},required:["type","minItems","items"]},ps={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{$schema:{type:"string",format:"uri",enum:["http://json-schema.org/draft-04/schema#"]},"@id":{type:["string","null"],format:"uri"},"@type":{type:"string",format:"uri",enum:["https://schema.metadatacenter.org/core/TemplateField"]},"@context":{$ref:"#/definitions/templateFieldJSONLDContextFieldContent"},type:{type:"string",enum:["string"]},title:{type:"string",minLength:1},description:{type:"string",minLength:1},_ui:{type:"object",properties:{inputType:{type:"string",enum:["attribute-value"]}},required:["inputType"],additionalProperties:!1},"schema:name":{type:"string",minLength:1},"schema:description":{type:"string"},"pav:createdOn":{type:["string","null"],format:"date-time"},"pav:createdBy":{type:["string","null"],format:"uri"},"pav:lastUpdatedOn":{type:["string","null"],format:"date-time"},"oslc:modifiedBy":{type:["string","null"],format:"uri"},"bibo:status":{type:"string",enum:["bibo:published","bibo:draft"]},"pav:version":{type:"string",pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},"pav:previousVersion":{type:"string",minLength:1},"pav:derivedFrom":{type:"string",format:"uri"},additionalProperties:{type:"boolean",enum:[!1]},"schema:schemaVersion":{type:"string",enum:["1.6.0"]}},required:["$schema","type","title","description","_ui","@context","@id","@type","additionalProperties","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy","schema:schemaVersion","schema:name","schema:description"]};function ms(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:o=e}={}){let p=null,m=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.$schema){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.title){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.description){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===p?p=[e]:p.push(e),m++}if(void 0===e._ui){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["@context"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["@id"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===p?p=[e]:p.push(e),m++}if(void 0===e.additionalProperties){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["pav:createdOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["pav:createdBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["pav:lastUpdatedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["oslc:modifiedBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["schema:schemaVersion"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["schema:name"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===p?p=[e]:p.push(e),m++}if(void 0===e["schema:description"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===p?p=[e]:p.push(e),m++}if(void 0!==e.$schema){let s=e.$schema;if("http://json-schema.org/draft-04/schema#"!==s){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:ps.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["@id"]){let s=e["@id"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:ps.properties["@id"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["@type"]){let s=e["@type"];if("https://schema.metadatacenter.org/core/TemplateField"!==s){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:ps.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["@context"]&&(kt(e["@context"],{instancePath:t+"/@context",parentData:e,parentDataProperty:"@context",rootData:o})||(p=null===p?kt.errors:p.concat(kt.errors),m=p.length)),void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if("string"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ps.properties.type.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.title){let s=e.title;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.description){let s=e.description;if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e._ui){let s=e._ui;if(s&&"object"==typeof s&&!Array.isArray(s)){if(void 0===s.inputType){const e={instancePath:t+"/_ui",schemaPath:"#/properties/_ui/required",keyword:"required",params:{missingProperty:"inputType"},message:"must have required property 'inputType'"};null===p?p=[e]:p.push(e),m++}for(const e in s)if("inputType"!==e){const s={instancePath:t+"/_ui",schemaPath:"#/properties/_ui/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===p?p=[s]:p.push(s),m++}if(void 0!==s.inputType){let e=s.inputType;if("string"!=typeof e){const e={instancePath:t+"/_ui/inputType",schemaPath:"#/properties/_ui/properties/inputType/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if("attribute-value"!==e){const e={instancePath:t+"/_ui/inputType",schemaPath:"#/properties/_ui/properties/inputType/enum",keyword:"enum",params:{allowedValues:ps.properties._ui.properties.inputType.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}}else{const e={instancePath:t+"/_ui",schemaPath:"#/properties/_ui/type",keyword:"type",params:{type:"object"},message:"must be object"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["schema:name"]){let s=e["schema:name"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["schema:description"]&&"string"!=typeof e["schema:description"]){const e={instancePath:t+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if(void 0!==e["pav:createdOn"]){let s=e["pav:createdOn"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:ps.properties["pav:createdOn"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!i.validate(s)){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:createdBy"]){let s=e["pav:createdBy"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:ps.properties["pav:createdBy"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:lastUpdatedOn"]){let s=e["pav:lastUpdatedOn"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:ps.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!i.validate(s)){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["oslc:modifiedBy"]){let s=e["oslc:modifiedBy"];if("string"!=typeof s&&null!==s){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:ps.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof s&&!r.validate(s)){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["bibo:status"]){let s=e["bibo:status"];if("string"!=typeof s){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if("bibo:published"!==s&&"bibo:draft"!==s){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:ps.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:version"]){let s=e["pav:version"];if("string"==typeof s){if(!$t.test(s)){const e={instancePath:t+"/pav:version",schemaPath:"#/properties/pav%3Aversion/pattern",keyword:"pattern",params:{pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},message:'must match pattern "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:previousVersion"]){let s=e["pav:previousVersion"];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["pav:derivedFrom"]){let s=e["pav:derivedFrom"];if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===p?p=[e]:p.push(e),m++}}else{const e={instancePath:t+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e.additionalProperties){let s=e.additionalProperties;if("boolean"!=typeof s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===p?p=[e]:p.push(e),m++}if(!1!==s){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:ps.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}if(void 0!==e["schema:schemaVersion"]){let s=e["schema:schemaVersion"];if("string"!=typeof s){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===p?p=[e]:p.push(e),m++}if("1.6.0"!==s){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:ps.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===p?p=[e]:p.push(e),m++}return ms.errors=p,0===m}function us(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.type){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.minItems){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"minItems"},message:"must have required property 'minItems'"};null===i?i=[e]:i.push(e),n++}if(void 0===e.items){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let s=e.type;if("string"!=typeof s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("array"!==s){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:os.properties.type.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.minItems){let s=e.minItems;if("number"!=typeof s||s%1||isNaN(s)){const e={instancePath:t+"/minItems",schemaPath:"#/properties/minItems/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===i?i=[e]:i.push(e),n++}if("number"==typeof s&&(s<0||isNaN(s))){const e={instancePath:t+"/minItems",schemaPath:"#/properties/minItems/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e.items){let s=e.items;const a=n;let p=!1,m=null;const u=n;Lt(s,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:r})||(i=null===i?Lt.errors:i.concat(Lt.errors),n=i.length),(o=u===n)&&(p=!0,m=0);const l=n;if(Et(s,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:r})||(i=null===i?Et.errors:i.concat(Et.errors),n=i.length),(o=l===n)&&p)p=!1,m=[m,1];else{o&&(p=!0,m=1);const a=n;if(ms(s,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:r})||(i=null===i?ms.errors:i.concat(ms.errors),n=i.length),(o=a===n)&&p)p=!1,m=[m,2];else{o&&(p=!0,m=2);const a=n;var o;ns(s,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:r})||(i=null===i?ns.errors:i.concat(ns.errors),n=i.length),(o=a===n)&&p?(p=!1,m=[m,3]):o&&(p=!0,m=3)}}if(p)n=a,null!==i&&(a?i.length=a:i=null);else{const e={instancePath:t+"/items",schemaPath:"#/properties/items/oneOf",keyword:"oneOf",params:{passingSchemas:m},message:"must match exactly one schema in oneOf"};null===i?i=[e]:i.push(e),n++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return us.errors=i,0===n}function ls(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;const o=n;let p=!1,m=null;const u=n;Lt(e,{instancePath:t,parentData:s,parentDataProperty:a,rootData:r})||(i=null===i?Lt.errors:i.concat(Lt.errors),n=i.length),(h=u===n)&&(p=!0,m=0);const l=n;if(Et(e,{instancePath:t,parentData:s,parentDataProperty:a,rootData:r})||(i=null===i?Et.errors:i.concat(Et.errors),n=i.length),(h=l===n)&&p)p=!1,m=[m,1];else{h&&(p=!0,m=1);const o=n;if(Zt(e,{instancePath:t,parentData:s,parentDataProperty:a,rootData:r})||(i=null===i?Zt.errors:i.concat(Zt.errors),n=i.length),(h=o===n)&&p)p=!1,m=[m,2];else{h&&(p=!0,m=2);const o=n;if(ns(e,{instancePath:t,parentData:s,parentDataProperty:a,rootData:r})||(i=null===i?ns.errors:i.concat(ns.errors),n=i.length),(h=o===n)&&p)p=!1,m=[m,3];else{h&&(p=!0,m=3);const o=n;var h;us(e,{instancePath:t,parentData:s,parentDataProperty:a,rootData:r})||(i=null===i?us.errors:i.concat(us.errors),n=i.length),(h=o===n)&&p?(p=!1,m=[m,4]):h&&(p=!0,m=4)}}}if(p)n=o,null!==i&&(o?i.length=o:i=null);else{const e={instancePath:t,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:m},message:"must match exactly one schema in oneOf"};null===i?i=[e]:i.push(e),n++}return ls.errors=i,0===n}function hs(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e["@type"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["@id"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["@context"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["schema:isBasedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:isBasedOn"},message:"must have required property 'schema:isBasedOn'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["schema:name"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["schema:description"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["pav:createdOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["pav:createdBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["pav:lastUpdatedOn"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["oslc:modifiedBy"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===i?i=[e]:i.push(e),n++}if(void 0===e["pav:derivedFrom"]){const e={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:derivedFrom"},message:"must have required property 'pav:derivedFrom'"};null===i?i=[e]:i.push(e),n++}for(const s in e)if(!c.call(O,s)&&!A.test(s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}void 0!==e["@context"]&&(he(e["@context"],{instancePath:t+"/@context",parentData:e,parentDataProperty:"@context",rootData:r})||(i=null===i?he.errors:i.concat(he.errors),n=i.length)),void 0!==e["@type"]&&(we(e["@type"],{instancePath:t+"/@type",parentData:e,parentDataProperty:"@type",rootData:r})||(i=null===i?we.errors:i.concat(we.errors),n=i.length)),void 0!==e["@id"]&&(ke(e["@id"],{instancePath:t+"/@id",parentData:e,parentDataProperty:"@id",rootData:r})||(i=null===i?ke.errors:i.concat(ke.errors),n=i.length)),void 0!==e["schema:name"]&&(De(e["schema:name"],{instancePath:t+"/schema:name",parentData:e,parentDataProperty:"schema:name",rootData:r})||(i=null===i?De.errors:i.concat(De.errors),n=i.length)),void 0!==e["schema:description"]&&(Ae(e["schema:description"],{instancePath:t+"/schema:description",parentData:e,parentDataProperty:"schema:description",rootData:r})||(i=null===i?Ae.errors:i.concat(Ae.errors),n=i.length)),void 0!==e["pav:createdOn"]&&(Te(e["pav:createdOn"],{instancePath:t+"/pav:createdOn",parentData:e,parentDataProperty:"pav:createdOn",rootData:r})||(i=null===i?Te.errors:i.concat(Te.errors),n=i.length)),void 0!==e["pav:createdBy"]&&($e(e["pav:createdBy"],{instancePath:t+"/pav:createdBy",parentData:e,parentDataProperty:"pav:createdBy",rootData:r})||(i=null===i?$e.errors:i.concat($e.errors),n=i.length)),void 0!==e["schema:isBasedOn"]&&(Le(e["schema:isBasedOn"],{instancePath:t+"/schema:isBasedOn",parentData:e,parentDataProperty:"schema:isBasedOn",rootData:r})||(i=null===i?Le.errors:i.concat(Le.errors),n=i.length)),void 0!==e["pav:lastUpdatedOn"]&&(Ie(e["pav:lastUpdatedOn"],{instancePath:t+"/pav:lastUpdatedOn",parentData:e,parentDataProperty:"pav:lastUpdatedOn",rootData:r})||(i=null===i?Ie.errors:i.concat(Ie.errors),n=i.length)),void 0!==e["oslc:modifiedBy"]&&(Ne(e["oslc:modifiedBy"],{instancePath:t+"/oslc:modifiedBy",parentData:e,parentDataProperty:"oslc:modifiedBy",rootData:r})||(i=null===i?Ne.errors:i.concat(Ne.errors),n=i.length)),void 0!==e["pav:derivedFrom"]&&(Ce(e["pav:derivedFrom"],{instancePath:t+"/pav:derivedFrom",parentData:e,parentDataProperty:"pav:derivedFrom",rootData:r})||(i=null===i?Ce.errors:i.concat(Ce.errors),n=i.length)),void 0!==e._annotations&&(Se(e._annotations,{instancePath:t+"/_annotations",parentData:e,parentDataProperty:"_annotations",rootData:r})||(i=null===i?Se.errors:i.concat(Se.errors),n=i.length));for(const s in e)A.test(s)&&(ls(e[s],{instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:s,rootData:r})||(i=null===i?ls.errors:i.concat(ls.errors),n=i.length))}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===i?i=[e]:i.push(e),n++}return hs.errors=i,0===n}const cs={type:"array",minItems:9,uniqueItems:!0,items:[{type:"string",enum:["@context"]},{type:"string",enum:["@id"]},{type:"string",enum:["schema:isBasedOn"]},{type:"string",enum:["schema:name"]},{type:"string",enum:["schema:description"]},{type:"string",enum:["pav:createdOn"]},{type:"string",enum:["pav:createdBy"]},{type:"string",enum:["pav:lastUpdatedOn"]},{type:"string",enum:["oslc:modifiedBy"]}]};function ds(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){if(e.length<9){const e={instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:9},message:"must NOT have fewer than 9 items"};null===i?i=[e]:i.push(e),n++}const s=e.length;if(s>0){let s=e[0];if("string"!=typeof s){const e={instancePath:t+"/0",schemaPath:"#/items/0/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@context"!==s){const e={instancePath:t+"/0",schemaPath:"#/items/0/enum",keyword:"enum",params:{allowedValues:cs.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>1){let s=e[1];if("string"!=typeof s){const e={instancePath:t+"/1",schemaPath:"#/items/1/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("@id"!==s){const e={instancePath:t+"/1",schemaPath:"#/items/1/enum",keyword:"enum",params:{allowedValues:cs.items[1].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>2){let s=e[2];if("string"!=typeof s){const e={instancePath:t+"/2",schemaPath:"#/items/2/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("schema:isBasedOn"!==s){const e={instancePath:t+"/2",schemaPath:"#/items/2/enum",keyword:"enum",params:{allowedValues:cs.items[2].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>3){let s=e[3];if("string"!=typeof s){const e={instancePath:t+"/3",schemaPath:"#/items/3/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("schema:name"!==s){const e={instancePath:t+"/3",schemaPath:"#/items/3/enum",keyword:"enum",params:{allowedValues:cs.items[3].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>4){let s=e[4];if("string"!=typeof s){const e={instancePath:t+"/4",schemaPath:"#/items/4/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("schema:description"!==s){const e={instancePath:t+"/4",schemaPath:"#/items/4/enum",keyword:"enum",params:{allowedValues:cs.items[4].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>5){let s=e[5];if("string"!=typeof s){const e={instancePath:t+"/5",schemaPath:"#/items/5/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("pav:createdOn"!==s){const e={instancePath:t+"/5",schemaPath:"#/items/5/enum",keyword:"enum",params:{allowedValues:cs.items[5].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>6){let s=e[6];if("string"!=typeof s){const e={instancePath:t+"/6",schemaPath:"#/items/6/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("pav:createdBy"!==s){const e={instancePath:t+"/6",schemaPath:"#/items/6/enum",keyword:"enum",params:{allowedValues:cs.items[6].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>7){let s=e[7];if("string"!=typeof s){const e={instancePath:t+"/7",schemaPath:"#/items/7/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("pav:lastUpdatedOn"!==s){const e={instancePath:t+"/7",schemaPath:"#/items/7/enum",keyword:"enum",params:{allowedValues:cs.items[7].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(s>8){let s=e[8];if("string"!=typeof s){const e={instancePath:t+"/8",schemaPath:"#/items/8/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),n++}if("oslc:modifiedBy"!==s){const e={instancePath:t+"/8",schemaPath:"#/items/8/enum",keyword:"enum",params:{allowedValues:cs.items[8].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}let a,r=e.length;if(r>1)e:for(;r--;)for(a=r;a--;)if(Me(e[r],e[a])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:r,j:a},message:"must NOT have duplicate items (items ## "+a+" and "+r+" are identical)"};null===i?i=[e]:i.push(e),n++;break e}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"},message:"must be array"};null===i?i=[e]:i.push(e),n++}return ds.errors=i,0===n}const ys=new RegExp("^.+$","u");function fs(e,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const s in e)if(!ys.test(s)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}for(const s in e)if(ys.test(s)){let a=e[s];const i=o;let m=!1,u=null;const l=o;if(a&&"object"==typeof a&&!Array.isArray(a)){for(const e in a)if("@id"!==e){const a={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E.%2B%24/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===n?n=[a]:n.push(a),o++}if(void 0!==a["@id"]){let e=a["@id"];if("string"==typeof e){if(!r.validate(e)){const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/@id",schemaPath:"#/patternProperties/%5E.%2B%24/oneOf/0/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/@id",schemaPath:"#/patternProperties/%5E.%2B%24/oneOf/0/properties/%40id/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E.%2B%24/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}l===o&&(m=!0,u=0);const h=o;if(a&&"object"==typeof a&&!Array.isArray(a)){for(const e in a)if("@value"!==e){const a={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E.%2B%24/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===n?n=[a]:n.push(a),o++}if(void 0!==a["@value"]&&"string"!=typeof a["@value"]){const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/@value",schemaPath:"#/patternProperties/%5E.%2B%24/oneOf/1/properties/%40value/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}else{const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E.%2B%24/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}var p;if((p=h===o)&&m?(m=!1,u=[u,1]):p&&(m=!0,u=1),m)o=i,null!==n&&(i?n.length=i:n=null);else{const e={instancePath:t+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E.%2B%24/oneOf",keyword:"oneOf",params:{passingSchemas:u},message:"must match exactly one schema in oneOf"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return fs.errors=n,0===o}t.element=function e(t,{instancePath:s="",parentData:a,parentDataProperty:o,rootData:p=t}={}){let m=null,u=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.$schema){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.type){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.title){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.description){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===m?m=[e]:m.push(e),u++}if(void 0===t._ui){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["@context"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["@id"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["@type"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.properties){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.required){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"required"},message:"must have required property 'required'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["pav:createdOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["pav:createdBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["pav:lastUpdatedOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["oslc:modifiedBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["schema:schemaVersion"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["schema:name"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["schema:description"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===m?m=[e]:m.push(e),u++}if(void 0!==t.$schema){let e=t.$schema;if("http://json-schema.org/draft-04/schema#"!==e){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:Gt.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("object"!==e&&"array"!==e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Gt.properties.type.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["schema:identifier"]){let e=t["schema:identifier"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["schema:name"]){let e=t["schema:name"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["schema:description"]&&"string"!=typeof t["schema:description"]){const e={instancePath:s+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if(void 0!==t["skos:prefLabel"]&&"string"!=typeof t["skos:prefLabel"]){const e={instancePath:s+"/skos:prefLabel",schemaPath:"#/properties/skos%3AprefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if(void 0!==t["skos:altLabel"]){let e=t["skos:altLabel"];if(Array.isArray(e)){let t,a=e.length;if(a>1)e:for(;a--;)for(t=a;t--;)if(Me(e[a],e[t])){const e={instancePath:s+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/uniqueItems",keyword:"uniqueItems",params:{i:a,j:t},message:"must NOT have duplicate items (items ## "+t+" and "+a+" are identical)"};null===m?m=[e]:m.push(e),u++;break e}}else{const e={instancePath:s+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/type",keyword:"type",params:{type:"array"},message:"must be array"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.title){let e=t.title;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.description){let e=t.description;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t._ui&&(Jt(t._ui,{instancePath:s+"/_ui",parentData:t,parentDataProperty:"_ui",rootData:p})||(m=null===m?Jt.errors:m.concat(Jt.errors),u=m.length)),void 0!==t["@context"]&&(Wt(t["@context"],{instancePath:s+"/@context",parentData:t,parentDataProperty:"@context",rootData:p})||(m=null===m?Wt.errors:m.concat(Wt.errors),u=m.length)),void 0!==t["@id"]){let e=t["@id"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:Gt.properties["@id"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["@type"]){let e=t["@type"];if("https://schema.metadatacenter.org/core/TemplateElement"!==e){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:Gt.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.properties&&(ts(t.properties,{instancePath:s+"/properties",parentData:t,parentDataProperty:"properties",rootData:p})||(m=null===m?ts.errors:m.concat(ts.errors),u=m.length)),void 0!==t.required&&(as(t.required,{instancePath:s+"/required",parentData:t,parentDataProperty:"required",rootData:p})||(m=null===m?as.errors:m.concat(as.errors),u=m.length)),void 0!==t["pav:createdOn"]){let e=t["pav:createdOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:Gt.properties["pav:createdOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:createdBy"]){let e=t["pav:createdBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:Gt.properties["pav:createdBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:lastUpdatedOn"]){let e=t["pav:lastUpdatedOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:Gt.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["oslc:modifiedBy"]){let e=t["oslc:modifiedBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:Gt.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.additionalProperties){let e=t.additionalProperties;const a=u;let r=!1,i=null;const n=u;me(e,{instancePath:s+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:p})||(m=null===m?me.errors:m.concat(me.errors),u=m.length),n===u&&(r=!0,i=0);const o=u;var l;if(is(e,{instancePath:s+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:p})||(m=null===m?is.errors:m.concat(is.errors),u=m.length),(l=o===u)&&r?(r=!1,i=[i,1]):l&&(r=!0,i=1),r)u=a,null!==m&&(a?m.length=a:m=null);else{const e={instancePath:s+"/additionalProperties",schemaPath:"#/properties/additionalProperties/oneOf",keyword:"oneOf",params:{passingSchemas:i},message:"must match exactly one schema in oneOf"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["schema:schemaVersion"]){let e=t["schema:schemaVersion"];if("string"!=typeof e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("1.6.0"!==e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:Gt.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["bibo:status"]){let e=t["bibo:status"];if("string"!=typeof e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("bibo:published"!==e&&"bibo:draft"!==e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:Gt.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:version"]){let e=t["pav:version"];if("string"==typeof e){if(!$t.test(e)){const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/pattern",keyword:"pattern",params:{pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},message:'must match pattern "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:previousVersion"]){let e=t["pav:previousVersion"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:derivedFrom"]){let e=t["pav:derivedFrom"];if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}void 0!==t["@nest"]&&(Bt(t["@nest"],{instancePath:s+"/@nest",parentData:t,parentDataProperty:"@nest",rootData:p})||(m=null===m?Bt.errors:m.concat(Bt.errors),u=m.length))}else{const e={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===m?m=[e]:m.push(e),u++}return e.errors=m,0===u},t.literal=function e(t,{instancePath:s="",parentData:a,parentDataProperty:p,rootData:m=t}={}){let u=null,l=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.$schema){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===u?u=[e]:u.push(e),l++}if(void 0===t.type){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===u?u=[e]:u.push(e),l++}if(void 0===t.title){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===u?u=[e]:u.push(e),l++}if(void 0===t.description){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===u?u=[e]:u.push(e),l++}if(void 0===t._ui){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===u?u=[e]:u.push(e),l++}if(void 0===t._valueConstraints){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_valueConstraints"},message:"must have required property '_valueConstraints'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["@context"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["@id"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["@type"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===u?u=[e]:u.push(e),l++}if(void 0===t.properties){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===u?u=[e]:u.push(e),l++}if(void 0===t.additionalProperties){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["pav:createdOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["pav:createdBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["pav:lastUpdatedOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["oslc:modifiedBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["schema:schemaVersion"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["schema:name"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["schema:description"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===u?u=[e]:u.push(e),l++}if(void 0!==t.$schema){let e=t.$schema;if("http://json-schema.org/draft-04/schema#"!==e){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:Re.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}if("object"!==e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Re.properties.type.enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["schema:identifier"]){let e=t["schema:identifier"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["schema:name"]){let e=t["schema:name"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["schema:description"]&&"string"!=typeof t["schema:description"]){const e={instancePath:s+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}if(void 0!==t["skos:prefLabel"]&&"string"!=typeof t["skos:prefLabel"]){const e={instancePath:s+"/skos:prefLabel",schemaPath:"#/properties/skos%3AprefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}if(void 0!==t["skos:altLabel"]){let e=t["skos:altLabel"];if(Array.isArray(e)){let t,a=e.length;if(a>1)e:for(;a--;)for(t=a;t--;)if(Me(e[a],e[t])){const e={instancePath:s+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/uniqueItems",keyword:"uniqueItems",params:{i:a,j:t},message:"must NOT have duplicate items (items ## "+t+" and "+a+" are identical)"};null===u?u=[e]:u.push(e),l++;break e}}else{const e={instancePath:s+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/type",keyword:"type",params:{type:"array"},message:"must be array"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t.title){let e=t.title;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t.description){let e=t.description;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t._ui&&(Ze(t._ui,{instancePath:s+"/_ui",parentData:t,parentDataProperty:"_ui",rootData:m})||(u=null===u?Ze.errors:u.concat(Ze.errors),l=u.length)),void 0!==t._valueConstraints&&(Pt(t._valueConstraints,{instancePath:s+"/_valueConstraints",parentData:t,parentDataProperty:"_valueConstraints",rootData:m})||(u=null===u?Pt.errors:u.concat(Pt.errors),l=u.length)),void 0!==t["@context"]&&(kt(t["@context"],{instancePath:s+"/@context",parentData:t,parentDataProperty:"@context",rootData:m})||(u=null===u?kt.errors:u.concat(kt.errors),l=u.length)),void 0!==t["@id"]){let e=t["@id"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:Re.properties["@id"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["@type"]){let e=t["@type"];if("https://schema.metadatacenter.org/core/TemplateField"!==e){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:Re.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t.properties&&(Tt(t.properties,{instancePath:s+"/properties",parentData:t,parentDataProperty:"properties",rootData:m})||(u=null===u?Tt.errors:u.concat(Tt.errors),l=u.length)),void 0!==t.required&&(o(t.required,{instancePath:s+"/required",parentData:t,parentDataProperty:"required",rootData:m})||(u=null===u?o.errors:u.concat(o.errors),l=u.length)),void 0!==t["pav:createdOn"]){let e=t["pav:createdOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:Re.properties["pav:createdOn"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["pav:createdBy"]){let e=t["pav:createdBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:Re.properties["pav:createdBy"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["pav:lastUpdatedOn"]){let e=t["pav:lastUpdatedOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:Re.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["oslc:modifiedBy"]){let e=t["oslc:modifiedBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:Re.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["bibo:status"]){let e=t["bibo:status"];if("string"!=typeof e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}if("bibo:published"!==e&&"bibo:draft"!==e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:Re.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["pav:version"]){let e=t["pav:version"];if("string"==typeof e){if(!$t.test(e)){const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/pattern",keyword:"pattern",params:{pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},message:'must match pattern "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"'};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["pav:previousVersion"]){let e=t["pav:previousVersion"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["pav:derivedFrom"]){let e=t["pav:derivedFrom"];if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["@nest"]&&(Bt(t["@nest"],{instancePath:s+"/@nest",parentData:t,parentDataProperty:"@nest",rootData:m})||(u=null===u?Bt.errors:u.concat(Bt.errors),l=u.length)),void 0!==t.additionalProperties){let e=t.additionalProperties;if("boolean"!=typeof e){const e={instancePath:s+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===u?u=[e]:u.push(e),l++}if(!1!==e){const e={instancePath:s+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:Re.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["schema:schemaVersion"]){let e=t["schema:schemaVersion"];if("string"!=typeof e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}if("1.6.0"!==e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:Re.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}}}else{const e={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===u?u=[e]:u.push(e),l++}return e.errors=u,0===l},t.iri=function e(t,{instancePath:s="",parentData:a,parentDataProperty:p,rootData:m=t}={}){let u=null,l=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.$schema){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===u?u=[e]:u.push(e),l++}if(void 0===t.type){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===u?u=[e]:u.push(e),l++}if(void 0===t.title){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===u?u=[e]:u.push(e),l++}if(void 0===t.description){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===u?u=[e]:u.push(e),l++}if(void 0===t._ui){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===u?u=[e]:u.push(e),l++}if(void 0===t._valueConstraints){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_valueConstraints"},message:"must have required property '_valueConstraints'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["@context"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["@id"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["@type"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===u?u=[e]:u.push(e),l++}if(void 0===t.properties){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===u?u=[e]:u.push(e),l++}if(void 0===t.additionalProperties){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["pav:createdOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["pav:createdBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["pav:lastUpdatedOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["oslc:modifiedBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["schema:schemaVersion"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["schema:name"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===u?u=[e]:u.push(e),l++}if(void 0===t["schema:description"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===u?u=[e]:u.push(e),l++}if(void 0!==t.$schema){let e=t.$schema;if("http://json-schema.org/draft-04/schema#"!==e){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:It.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}if("object"!==e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:It.properties.type.enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["schema:identifier"]){let e=t["schema:identifier"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["schema:name"]){let e=t["schema:name"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["skos:prefLabel"]&&"string"!=typeof t["skos:prefLabel"]){const e={instancePath:s+"/skos:prefLabel",schemaPath:"#/properties/skos%3AprefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}if(void 0!==t["skos:altLabel"]){let e=t["skos:altLabel"];if(Array.isArray(e)){let t,a=e.length;if(a>1)e:for(;a--;)for(t=a;t--;)if(Me(e[a],e[t])){const e={instancePath:s+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/uniqueItems",keyword:"uniqueItems",params:{i:a,j:t},message:"must NOT have duplicate items (items ## "+t+" and "+a+" are identical)"};null===u?u=[e]:u.push(e),l++;break e}}else{const e={instancePath:s+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/type",keyword:"type",params:{type:"array"},message:"must be array"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["schema:description"]&&"string"!=typeof t["schema:description"]){const e={instancePath:s+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}if(void 0!==t.title){let e=t.title;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t.description){let e=t.description;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t._ui&&(Ct(t._ui,{instancePath:s+"/_ui",parentData:t,parentDataProperty:"_ui",rootData:m})||(u=null===u?Ct.errors:u.concat(Ct.errors),l=u.length)),void 0!==t._valueConstraints&&(Ut(t._valueConstraints,{instancePath:s+"/_valueConstraints",parentData:t,parentDataProperty:"_valueConstraints",rootData:m})||(u=null===u?Ut.errors:u.concat(Ut.errors),l=u.length)),void 0!==t["@context"]&&(kt(t["@context"],{instancePath:s+"/@context",parentData:t,parentDataProperty:"@context",rootData:m})||(u=null===u?kt.errors:u.concat(kt.errors),l=u.length)),void 0!==t["@id"]){let e=t["@id"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:It.properties["@id"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["@type"]){let e=t["@type"];if("https://schema.metadatacenter.org/core/TemplateField"!==e){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:It.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t.properties&&(Ft(t.properties,{instancePath:s+"/properties",parentData:t,parentDataProperty:"properties",rootData:m})||(u=null===u?Ft.errors:u.concat(Ft.errors),l=u.length)),void 0!==t.required&&(o(t.required,{instancePath:s+"/required",parentData:t,parentDataProperty:"required",rootData:m})||(u=null===u?o.errors:u.concat(o.errors),l=u.length)),void 0!==t["pav:createdOn"]){let e=t["pav:createdOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:It.properties["pav:createdOn"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["pav:createdBy"]){let e=t["pav:createdBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:It.properties["pav:createdBy"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["pav:lastUpdatedOn"]){let e=t["pav:lastUpdatedOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:It.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["oslc:modifiedBy"]){let e=t["oslc:modifiedBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:It.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===u?u=[e]:u.push(e),l++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["bibo:status"]){let e=t["bibo:status"];if("string"!=typeof e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}if("bibo:published"!==e&&"bibo:draft"!==e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:It.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["pav:version"]){let e=t["pav:version"];if("string"==typeof e){if(!$t.test(e)){const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/pattern",keyword:"pattern",params:{pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},message:'must match pattern "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"'};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["pav:previousVersion"]){let e=t["pav:previousVersion"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["pav:derivedFrom"]){let e=t["pav:derivedFrom"];if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===u?u=[e]:u.push(e),l++}}else{const e={instancePath:s+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t.additionalProperties){let e=t.additionalProperties;if("boolean"!=typeof e){const e={instancePath:s+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===u?u=[e]:u.push(e),l++}if(!1!==e){const e={instancePath:s+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:It.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}}if(void 0!==t["schema:schemaVersion"]){let e=t["schema:schemaVersion"];if("string"!=typeof e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===u?u=[e]:u.push(e),l++}if("1.6.0"!==e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:It.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===u?u=[e]:u.push(e),l++}}}else{const e={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===u?u=[e]:u.push(e),l++}return e.errors=u,0===l},t.staticField=function e(t,{instancePath:s="",parentData:a,parentDataProperty:o,rootData:p=t}={}){let m=null,u=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.$schema){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.type){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.title){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.description){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===m?m=[e]:m.push(e),u++}if(void 0===t._ui){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["@id"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["@type"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.additionalProperties){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["pav:createdOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["pav:createdBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["pav:lastUpdatedOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["oslc:modifiedBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["schema:name"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["schema:description"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["schema:schemaVersion"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===m?m=[e]:m.push(e),u++}if(void 0!==t.$schema){let e=t.$schema;if("http://json-schema.org/draft-04/schema#"!==e){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:Ps.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("object"!==e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Ps.properties.type.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["schema:name"]){let e=t["schema:name"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["schema:description"]&&"string"!=typeof t["schema:description"]){const e={instancePath:s+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if(void 0!==t["skos:prefLabel"]&&"string"!=typeof t["skos:prefLabel"]){const e={instancePath:s+"/skos:prefLabel",schemaPath:"#/properties/skos%3AprefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if(void 0!==t.title){let e=t.title;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.description){let e=t.description;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t._ui&&(zt(t._ui,{instancePath:s+"/_ui",parentData:t,parentDataProperty:"_ui",rootData:p})||(m=null===m?zt.errors:m.concat(zt.errors),u=m.length)),void 0!==t["@context"]){let e=t["@context"];if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.schema){const e={instancePath:s+"/@context",schemaPath:"#/properties/%40context/required",keyword:"required",params:{missingProperty:"schema"},message:"must have required property 'schema'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.pav){const e={instancePath:s+"/@context",schemaPath:"#/properties/%40context/required",keyword:"required",params:{missingProperty:"pav"},message:"must have required property 'pav'"};null===m?m=[e]:m.push(e),u++}if(void 0===e.oslc){const e={instancePath:s+"/@context",schemaPath:"#/properties/%40context/required",keyword:"required",params:{missingProperty:"oslc"},message:"must have required property 'oslc'"};null===m?m=[e]:m.push(e),u++}if(void 0!==e.schema){let t=e.schema;if("http://schema.org/"!==t){const e={instancePath:s+"/@context/schema",schemaPath:"#/properties/%40context/properties/schema/enum",keyword:"enum",params:{allowedValues:Ps.properties["@context"].properties.schema.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof t){if(!r.validate(t)){const e={instancePath:s+"/@context/schema",schemaPath:"#/properties/%40context/properties/schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/@context/schema",schemaPath:"#/properties/%40context/properties/schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e.pav){let t=e.pav;if("http://purl.org/pav/"!==t){const e={instancePath:s+"/@context/pav",schemaPath:"#/properties/%40context/properties/pav/enum",keyword:"enum",params:{allowedValues:Ps.properties["@context"].properties.pav.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof t){if(!r.validate(t)){const e={instancePath:s+"/@context/pav",schemaPath:"#/properties/%40context/properties/pav/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/@context/pav",schemaPath:"#/properties/%40context/properties/pav/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==e.oslc){let t=e.oslc;if("http://open-services.net/ns/core#"!==t){const e={instancePath:s+"/@context/oslc",schemaPath:"#/properties/%40context/properties/oslc/enum",keyword:"enum",params:{allowedValues:Ps.properties["@context"].properties.oslc.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof t){if(!r.validate(t)){const e={instancePath:s+"/@context/oslc",schemaPath:"#/properties/%40context/properties/oslc/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/@context/oslc",schemaPath:"#/properties/%40context/properties/oslc/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}}else{const e={instancePath:s+"/@context",schemaPath:"#/properties/%40context/type",keyword:"type",params:{type:"object"},message:"must be object"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["@id"]){let e=t["@id"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:Ps.properties["@id"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["@type"]){let e=t["@type"];if("https://schema.metadatacenter.org/core/StaticTemplateField"!==e){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:Ps.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:createdOn"]){let e=t["pav:createdOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:Ps.properties["pav:createdOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:createdBy"]){let e=t["pav:createdBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:Ps.properties["pav:createdBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:lastUpdatedOn"]){let e=t["pav:lastUpdatedOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:Ps.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["oslc:modifiedBy"]){let e=t["oslc:modifiedBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:Ps.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["schema:schemaVersion"]){let e=t["schema:schemaVersion"];if("string"!=typeof e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("1.6.0"!==e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:Ps.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["bibo:status"]){let e=t["bibo:status"];if("string"!=typeof e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("bibo:published"!==e&&"bibo:draft"!==e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:Ps.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:version"]){let e=t["pav:version"];if("string"==typeof e){if(!$t.test(e)){const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/pattern",keyword:"pattern",params:{pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},message:'must match pattern "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.additionalProperties){let e=t.additionalProperties;if("boolean"!=typeof e){const e={instancePath:s+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===m?m=[e]:m.push(e),u++}if(!1!==e){const e={instancePath:s+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:Ps.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}}else{const e={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===m?m=[e]:m.push(e),u++}return e.errors=m,0===u};const Ps={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{$schema:{type:"string",format:"uri",enum:["http://json-schema.org/draft-04/schema#"]},type:{type:"string",enum:["object"]},"schema:name":{type:"string",minLength:1},"schema:description":{type:"string"},"skos:prefLabel":{type:"string"},title:{type:"string",minLength:1},description:{type:"string",minLength:1},_ui:{$ref:"#/definitions/staticFieldUIContent"},"@context":{type:"object",properties:{schema:{type:"string",format:"uri",enum:["http://schema.org/"]},pav:{type:"string",format:"uri",enum:["http://purl.org/pav/"]},oslc:{type:"string",format:"uri",enum:["http://open-services.net/ns/core#"]}},required:["schema","pav","oslc"]},"@id":{type:["string","null"],format:"uri"},"@type":{type:"string",format:"uri",enum:["https://schema.metadatacenter.org/core/StaticTemplateField"]},properties:{},"pav:createdOn":{type:["string","null"],format:"date-time"},"pav:createdBy":{type:["string","null"],format:"uri"},"pav:lastUpdatedOn":{type:["string","null"],format:"date-time"},"oslc:modifiedBy":{type:["string","null"],format:"uri"},"schema:schemaVersion":{type:"string",enum:["1.6.0"]},"bibo:status":{type:"string",enum:["bibo:published","bibo:draft"]},"pav:version":{type:"string",pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},additionalProperties:{type:"boolean",enum:[!1]}},required:["$schema","type","title","description","_ui","@id","@type","additionalProperties","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy","schema:name","schema:description","schema:schemaVersion"]};t.multiple=function e(t,{instancePath:s="",parentData:a,parentDataProperty:r,rootData:i=t}={}){let n=null,o=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.type){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===n?n=[e]:n.push(e),o++}if(void 0===t.minItems){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"minItems"},message:"must have required property 'minItems'"};null===n?n=[e]:n.push(e),o++}if(void 0===t.items){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};null===n?n=[e]:n.push(e),o++}if(void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("array"!==e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:gs.properties.type.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==t.minItems){let e=t.minItems;if("number"!=typeof e||e%1||isNaN(e)){const e={instancePath:s+"/minItems",schemaPath:"#/properties/minItems/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===n?n=[e]:n.push(e),o++}if("number"==typeof e&&(e<0||isNaN(e))){const e={instancePath:s+"/minItems",schemaPath:"#/properties/minItems/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};null===n?n=[e]:n.push(e),o++}}if(void 0!==t.items){let e=t.items;const a=o;let r=!1,m=null;const u=o;Lt(e,{instancePath:s+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(n=null===n?Lt.errors:n.concat(Lt.errors),o=n.length),(p=u===o)&&(r=!0,m=0);const l=o;if(Et(e,{instancePath:s+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(n=null===n?Et.errors:n.concat(Et.errors),o=n.length),(p=l===o)&&r)r=!1,m=[m,1];else{p&&(r=!0,m=1);const a=o;var p;ms(e,{instancePath:s+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(n=null===n?ms.errors:n.concat(ms.errors),o=n.length),(p=a===o)&&r?(r=!1,m=[m,2]):p&&(r=!0,m=2)}if(r)o=a,null!==n&&(a?n.length=a:n=null);else{const e={instancePath:s+"/items",schemaPath:"#/properties/items/oneOf",keyword:"oneOf",params:{passingSchemas:m},message:"must match exactly one schema in oneOf"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return e.errors=n,0===o};const gs={$schema:"http://json-schema.org/draft-04/schema#",type:"object",properties:{type:{type:"string",enum:["array"]},minItems:{type:"integer",minimum:0},items:{oneOf:[{$ref:"#/definitions/literalTemplateField"},{$ref:"#/definitions/iriTemplateField"},{$ref:"#/definitions/attributeValueTemplateField"}]}},required:["type","minItems","items"]};t.attributeField=function e(t,{instancePath:s="",parentData:a,parentDataProperty:o,rootData:p=t}={}){let m=null,u=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.$schema){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.type){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.title){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.description){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===m?m=[e]:m.push(e),u++}if(void 0===t._ui){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["@context"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["@id"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["@type"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===m?m=[e]:m.push(e),u++}if(void 0===t.additionalProperties){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["pav:createdOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["pav:createdBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["pav:lastUpdatedOn"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["oslc:modifiedBy"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["schema:schemaVersion"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["schema:name"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===m?m=[e]:m.push(e),u++}if(void 0===t["schema:description"]){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===m?m=[e]:m.push(e),u++}if(void 0!==t.$schema){let e=t.$schema;if("http://json-schema.org/draft-04/schema#"!==e){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:ps.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["@id"]){let e=t["@id"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:ps.properties["@id"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["@type"]){let e=t["@type"];if("https://schema.metadatacenter.org/core/TemplateField"!==e){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:ps.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["@context"]&&(kt(t["@context"],{instancePath:s+"/@context",parentData:t,parentDataProperty:"@context",rootData:p})||(m=null===m?kt.errors:m.concat(kt.errors),u=m.length)),void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("string"!==e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ps.properties.type.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.title){let e=t.title;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.description){let e=t.description;if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t._ui){let e=t._ui;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0===e.inputType){const e={instancePath:s+"/_ui",schemaPath:"#/properties/_ui/required",keyword:"required",params:{missingProperty:"inputType"},message:"must have required property 'inputType'"};null===m?m=[e]:m.push(e),u++}for(const t in e)if("inputType"!==t){const e={instancePath:s+"/_ui",schemaPath:"#/properties/_ui/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:t},message:"must NOT have additional properties"};null===m?m=[e]:m.push(e),u++}if(void 0!==e.inputType){let t=e.inputType;if("string"!=typeof t){const e={instancePath:s+"/_ui/inputType",schemaPath:"#/properties/_ui/properties/inputType/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("attribute-value"!==t){const e={instancePath:s+"/_ui/inputType",schemaPath:"#/properties/_ui/properties/inputType/enum",keyword:"enum",params:{allowedValues:ps.properties._ui.properties.inputType.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}}else{const e={instancePath:s+"/_ui",schemaPath:"#/properties/_ui/type",keyword:"type",params:{type:"object"},message:"must be object"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["schema:name"]){let e=t["schema:name"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["schema:description"]&&"string"!=typeof t["schema:description"]){const e={instancePath:s+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if(void 0!==t["pav:createdOn"]){let e=t["pav:createdOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:ps.properties["pav:createdOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:createdBy"]){let e=t["pav:createdBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:ps.properties["pav:createdBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:lastUpdatedOn"]){let e=t["pav:lastUpdatedOn"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:ps.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:s+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["oslc:modifiedBy"]){let e=t["oslc:modifiedBy"];if("string"!=typeof e&&null!==e){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:ps.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:s+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["bibo:status"]){let e=t["bibo:status"];if("string"!=typeof e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("bibo:published"!==e&&"bibo:draft"!==e){const e={instancePath:s+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:ps.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:version"]){let e=t["pav:version"];if("string"==typeof e){if(!$t.test(e)){const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/pattern",keyword:"pattern",params:{pattern:"^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"},message:'must match pattern "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:previousVersion"]){let e=t["pav:previousVersion"];if("string"==typeof e){if(n(e)<1){const e={instancePath:s+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["pav:derivedFrom"]){let e=t["pav:derivedFrom"];if("string"==typeof e){if(!r.validate(e)){const e={instancePath:s+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),u++}}else{const e={instancePath:s+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t.additionalProperties){let e=t.additionalProperties;if("boolean"!=typeof e){const e={instancePath:s+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===m?m=[e]:m.push(e),u++}if(!1!==e){const e={instancePath:s+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:ps.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}if(void 0!==t["schema:schemaVersion"]){let e=t["schema:schemaVersion"];if("string"!=typeof e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),u++}if("1.6.0"!==e){const e={instancePath:s+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:ps.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),u++}}}else{const e={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===m?m=[e]:m.push(e),u++}return e.errors=m,0===u},t.multipleChild=function e(t,{instancePath:s="",parentData:a,parentDataProperty:r,rootData:i=t}={}){let n=null,o=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.type){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===n?n=[e]:n.push(e),o++}if(void 0===t.minItems){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"minItems"},message:"must have required property 'minItems'"};null===n?n=[e]:n.push(e),o++}if(void 0===t.items){const e={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"items"},message:"must have required property 'items'"};null===n?n=[e]:n.push(e),o++}if(void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}if("array"!==e){const e={instancePath:s+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:os.properties.type.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}if(void 0!==t.minItems){let e=t.minItems;if("number"!=typeof e||e%1||isNaN(e)){const e={instancePath:s+"/minItems",schemaPath:"#/properties/minItems/type",keyword:"type",params:{type:"integer"},message:"must be integer"};null===n?n=[e]:n.push(e),o++}if("number"==typeof e&&(e<0||isNaN(e))){const e={instancePath:s+"/minItems",schemaPath:"#/properties/minItems/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};null===n?n=[e]:n.push(e),o++}}if(void 0!==t.items){let e=t.items;const a=o;let r=!1,m=null;const u=o;Lt(e,{instancePath:s+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(n=null===n?Lt.errors:n.concat(Lt.errors),o=n.length),(p=u===o)&&(r=!0,m=0);const l=o;if(Et(e,{instancePath:s+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(n=null===n?Et.errors:n.concat(Et.errors),o=n.length),(p=l===o)&&r)r=!1,m=[m,1];else{p&&(r=!0,m=1);const a=o;if(ms(e,{instancePath:s+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(n=null===n?ms.errors:n.concat(ms.errors),o=n.length),(p=a===o)&&r)r=!1,m=[m,2];else{p&&(r=!0,m=2);const a=o;var p;ns(e,{instancePath:s+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(n=null===n?ns.errors:n.concat(ns.errors),o=n.length),(p=a===o)&&r?(r=!1,m=[m,3]):p&&(r=!0,m=3)}}if(r)o=a,null!==n&&(a?n.length=a:n=null);else{const e={instancePath:s+"/items",schemaPath:"#/properties/items/oneOf",keyword:"oneOf",params:{passingSchemas:m},message:"must match exactly one schema in oneOf"};null===n?n=[e]:n.push(e),o++}}}else{const e={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===n?n=[e]:n.push(e),o++}return e.errors=n,0===o},t.schemaDigests={"template-meta-schema.json":"ebc1bcdadd1d5c229911681f1bcabb516c6a72448b0565bbd16d0a24db6e938d","element-meta-schema.json":"d9fde03926c0af55ad2af4308fdb7cb1cda68c8d9813868b2534c7507ef6c172","literal-field-meta-schema.json":"89c6e773273dd29f82458c508132346aac076034cdc2b0342b841291b36dbeec","iri-field-meta-schema.json":"ad02a5ffedd42449d7807fc7c00f923979f55044c716ecbe0cc4dcc042d28b92","static-field-meta-schema.json":"35062f4426cec50117a126b57e599b312ed9af9326f7b3814c4bfc8a7d5fb389","multi-instance-field-meta-schema.json":"4d71c428f157ee35fdf3795d58a396375ee5236aaf2b62daa65ded5f45456441"}}};const t={};function s(a){const r=t[a];if(void 0!==r)return r.exports;const i=t[a]={exports:{}};return e[a].call(i.exports,i,i.exports,s),i.exports}let a={};(()=>{let e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.SchemaArtifactValidator=void 0;var t=s(371);Object.defineProperty(e,"SchemaArtifactValidator",{enumerable:!0,get:function(){return t.SchemaArtifactValidator}})})();const r=a.SchemaArtifactValidator,i=a.__esModule;export{r as SchemaArtifactValidator,i as __esModule};export default a;
|
|
2
2
|
//# sourceMappingURL=schema.esm.js.map
|