cedar-model-typescript-library 1.0.22 → 1.0.24

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.
Files changed (132) hide show
  1. package/README.md +83 -2
  2. package/conformance/CedarSchemaOracle.java +67 -0
  3. package/conformance/java-oracle.mjs +63 -0
  4. package/conformance/pom.xml +22 -0
  5. package/index.d.ts +1 -0
  6. package/index.d.ts.map +1 -1
  7. package/index.esm.js +1 -1
  8. package/index.esm.js.map +1 -1
  9. package/index.js +1 -1
  10. package/index.js.map +1 -1
  11. package/index.umd.js +1 -1
  12. package/index.umd.js.map +1 -1
  13. package/org/metadatacenter/io/reader/ReaderUtil.d.ts +29 -2
  14. package/org/metadatacenter/io/reader/ReaderUtil.d.ts.map +1 -1
  15. package/org/metadatacenter/io/reader/SchemaReaderDefaults.d.ts.map +1 -1
  16. package/org/metadatacenter/io/reader/json/CedarJsonReaders.d.ts.map +1 -1
  17. package/org/metadatacenter/io/reader/json/JsonAbstractArtifactReader.d.ts.map +1 -1
  18. package/org/metadatacenter/io/reader/json/JsonAbstractSchemaArtifactReader.d.ts.map +1 -1
  19. package/org/metadatacenter/io/reader/json/JsonArtifactShape.d.ts +68 -0
  20. package/org/metadatacenter/io/reader/json/JsonArtifactShape.d.ts.map +1 -0
  21. package/org/metadatacenter/io/reader/json/JsonContainerArtifactReader.d.ts.map +1 -1
  22. package/org/metadatacenter/io/reader/json/JsonTemplateElementReader.d.ts.map +1 -1
  23. package/org/metadatacenter/io/reader/json/JsonTemplateFieldReader.d.ts.map +1 -1
  24. package/org/metadatacenter/io/reader/json/JsonTemplateInstanceReader.d.ts +34 -10
  25. package/org/metadatacenter/io/reader/json/JsonTemplateInstanceReader.d.ts.map +1 -1
  26. package/org/metadatacenter/io/reader/json/JsonTemplateReader.d.ts.map +1 -1
  27. package/org/metadatacenter/io/reader/json/JsonTermConstraintChecks.d.ts +26 -0
  28. package/org/metadatacenter/io/reader/json/JsonTermConstraintChecks.d.ts.map +1 -0
  29. package/org/metadatacenter/io/reader/yaml/YamlAbstractArtifactReader.d.ts +47 -2
  30. package/org/metadatacenter/io/reader/yaml/YamlAbstractArtifactReader.d.ts.map +1 -1
  31. package/org/metadatacenter/io/reader/yaml/YamlSourcePolicy.d.ts +15 -0
  32. package/org/metadatacenter/io/reader/yaml/YamlSourcePolicy.d.ts.map +1 -1
  33. package/org/metadatacenter/io/reader/yaml/YamlTemplateElementReader.d.ts.map +1 -1
  34. package/org/metadatacenter/io/reader/yaml/YamlTemplateFieldReader.d.ts.map +1 -1
  35. package/org/metadatacenter/io/reader/yaml/YamlTemplateInstanceReader.d.ts +30 -2
  36. package/org/metadatacenter/io/reader/yaml/YamlTemplateInstanceReader.d.ts.map +1 -1
  37. package/org/metadatacenter/io/reader/yaml/YamlTemplateReader.d.ts.map +1 -1
  38. package/org/metadatacenter/io/writer/WriterUtil.d.ts +8 -0
  39. package/org/metadatacenter/io/writer/WriterUtil.d.ts.map +1 -1
  40. package/org/metadatacenter/io/writer/json/JsonAbstractArtifactWriter.d.ts +4 -0
  41. package/org/metadatacenter/io/writer/json/JsonAbstractArtifactWriter.d.ts.map +1 -1
  42. package/org/metadatacenter/io/writer/json/JsonAnnotationsWriter.d.ts +2 -0
  43. package/org/metadatacenter/io/writer/json/JsonAnnotationsWriter.d.ts.map +1 -1
  44. package/org/metadatacenter/io/writer/json/JsonTemplateInstanceWriter.d.ts +4 -1
  45. package/org/metadatacenter/io/writer/json/JsonTemplateInstanceWriter.d.ts.map +1 -1
  46. package/org/metadatacenter/io/writer/yaml/YamlAbstractArtifactWriter.d.ts.map +1 -1
  47. package/org/metadatacenter/io/writer/yaml/YamlTemplateInstanceWriter.d.ts +11 -0
  48. package/org/metadatacenter/io/writer/yaml/YamlTemplateInstanceWriter.d.ts.map +1 -1
  49. package/org/metadatacenter/model/cedar/AbstractArtifacBuilder.d.ts +10 -0
  50. package/org/metadatacenter/model/cedar/AbstractArtifacBuilder.d.ts.map +1 -1
  51. package/org/metadatacenter/model/cedar/ReservedNames.d.ts.map +1 -1
  52. package/org/metadatacenter/model/cedar/TemplateValueValidator.d.ts +0 -1
  53. package/org/metadatacenter/model/cedar/TemplateValueValidator.d.ts.map +1 -1
  54. package/org/metadatacenter/model/cedar/constants/YamlKeys.d.ts.map +1 -1
  55. package/org/metadatacenter/model/cedar/constants/YamlValues.d.ts +2 -0
  56. package/org/metadatacenter/model/cedar/constants/YamlValues.d.ts.map +1 -1
  57. package/org/metadatacenter/model/cedar/deployment/ItemBounds.d.ts.map +1 -1
  58. package/org/metadatacenter/model/cedar/field/dynamic/checkbox/YamlFieldReaderCheckbox.d.ts +1 -1
  59. package/org/metadatacenter/model/cedar/field/dynamic/checkbox/YamlFieldReaderCheckbox.d.ts.map +1 -1
  60. package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/JsonFieldReaderControlledTerm.d.ts +3 -1
  61. package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/JsonFieldReaderControlledTerm.d.ts.map +1 -1
  62. package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/YamlFieldReaderControlledTerm.d.ts +29 -2
  63. package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/YamlFieldReaderControlledTerm.d.ts.map +1 -1
  64. package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/action/ControlledTermAction.d.ts +11 -0
  65. package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/action/ControlledTermAction.d.ts.map +1 -1
  66. package/org/metadatacenter/model/cedar/field/dynamic/controlled-term/value-constraint/ontology/YamlValueConstraintsOntologyWriter.d.ts.map +1 -1
  67. package/org/metadatacenter/model/cedar/field/dynamic/list-multiple-choice/YamlFieldReaderMultiSelectList.d.ts +1 -1
  68. package/org/metadatacenter/model/cedar/field/dynamic/list-multiple-choice/YamlFieldReaderMultiSelectList.d.ts.map +1 -1
  69. package/org/metadatacenter/model/cedar/field/dynamic/list-single-choice/YamlFieldReaderSingleSelectList.d.ts +1 -1
  70. package/org/metadatacenter/model/cedar/field/dynamic/list-single-choice/YamlFieldReaderSingleSelectList.d.ts.map +1 -1
  71. package/org/metadatacenter/model/cedar/field/dynamic/radio/YamlFieldReaderRadio.d.ts +1 -1
  72. package/org/metadatacenter/model/cedar/field/dynamic/radio/YamlFieldReaderRadio.d.ts.map +1 -1
  73. package/org/metadatacenter/model/cedar/field/dynamic/temporal/JsonFieldReaderTemporal.d.ts.map +1 -1
  74. package/org/metadatacenter/model/cedar/field/dynamic/temporal/JsonFieldWriterTemporal.d.ts.map +1 -1
  75. package/org/metadatacenter/model/cedar/field/dynamic/temporal/TemporalField.d.ts +3 -2
  76. package/org/metadatacenter/model/cedar/field/dynamic/temporal/TemporalField.d.ts.map +1 -1
  77. package/org/metadatacenter/model/cedar/field/dynamic/temporal/TemporalFieldImpl.d.ts +1 -1
  78. package/org/metadatacenter/model/cedar/field/dynamic/temporal/TemporalFieldImpl.d.ts.map +1 -1
  79. package/org/metadatacenter/model/cedar/field/dynamic/temporal/YamlFieldReaderTemporal.d.ts.map +1 -1
  80. package/org/metadatacenter/model/cedar/field/dynamic/temporal/YamlFieldWriterTemporal.d.ts.map +1 -1
  81. package/org/metadatacenter/model/cedar/template-instance/InstanceDataContainer.d.ts +4 -0
  82. package/org/metadatacenter/model/cedar/template-instance/InstanceDataContainer.d.ts.map +1 -1
  83. package/org/metadatacenter/model/cedar/template-instance/InstanceInflater.d.ts +11 -8
  84. package/org/metadatacenter/model/cedar/template-instance/InstanceInflater.d.ts.map +1 -1
  85. package/org/metadatacenter/model/cedar/template-instance/InstanceValidator.d.ts +121 -2
  86. package/org/metadatacenter/model/cedar/template-instance/InstanceValidator.d.ts.map +1 -1
  87. package/org/metadatacenter/model/cedar/template-instance/StoredForm.d.ts +41 -0
  88. package/org/metadatacenter/model/cedar/template-instance/StoredForm.d.ts.map +1 -0
  89. package/org/metadatacenter/model/cedar/types/bioportal-types/BioportalTermType.d.ts +7 -0
  90. package/org/metadatacenter/model/cedar/types/bioportal-types/BioportalTermType.d.ts.map +1 -1
  91. package/org/metadatacenter/model/cedar/types/wrapped-types/BiboStatus.d.ts +7 -0
  92. package/org/metadatacenter/model/cedar/types/wrapped-types/BiboStatus.d.ts.map +1 -1
  93. package/org/metadatacenter/model/cedar/types/wrapped-types/NumberType.d.ts +6 -0
  94. package/org/metadatacenter/model/cedar/types/wrapped-types/NumberType.d.ts.map +1 -1
  95. package/org/metadatacenter/model/cedar/types/wrapped-types/TemporalGranularity.d.ts +7 -0
  96. package/org/metadatacenter/model/cedar/types/wrapped-types/TemporalGranularity.d.ts.map +1 -1
  97. package/org/metadatacenter/model/cedar/types/wrapped-types/TemporalType.d.ts +6 -0
  98. package/org/metadatacenter/model/cedar/types/wrapped-types/TemporalType.d.ts.map +1 -1
  99. package/org/metadatacenter/model/cedar/types/wrapped-types/TimeFormat.d.ts +6 -0
  100. package/org/metadatacenter/model/cedar/types/wrapped-types/TimeFormat.d.ts.map +1 -1
  101. package/org/metadatacenter/model/cedar/util/compare/JsonArtifactParsingResult.d.ts.map +1 -1
  102. package/org/metadatacenter/model/cedar/validation/SchemaArtifactValidator.d.ts +16 -0
  103. package/org/metadatacenter/model/cedar/validation/SchemaArtifactValidator.d.ts.map +1 -0
  104. package/org/metadatacenter/model/cedar/validation/SchemaFormats.d.ts +12 -0
  105. package/org/metadatacenter/model/cedar/validation/SchemaFormats.d.ts.map +1 -0
  106. package/org/metadatacenter/policy/FieldValuePolicy.d.ts +3 -0
  107. package/org/metadatacenter/policy/FieldValuePolicy.d.ts.map +1 -1
  108. package/org/metadatacenter/policy/IdentifierPolicy.d.ts +7 -0
  109. package/org/metadatacenter/policy/IdentifierPolicy.d.ts.map +1 -1
  110. package/org/metadatacenter/policy/JsonSourcePolicy.d.ts +6 -0
  111. package/org/metadatacenter/policy/JsonSourcePolicy.d.ts.map +1 -1
  112. package/org/metadatacenter/policy/SchemaValuePolicy.d.ts +6 -0
  113. package/org/metadatacenter/policy/SchemaValuePolicy.d.ts.map +1 -0
  114. package/org/metadatacenter/policy/TextPolicy.d.ts +8 -0
  115. package/org/metadatacenter/policy/TextPolicy.d.ts.map +1 -1
  116. package/org/metadatacenter/policy/TimestampPolicy.d.ts +11 -0
  117. package/org/metadatacenter/policy/TimestampPolicy.d.ts.map +1 -1
  118. package/package.json +3 -2
  119. package/policy.esm.js +1 -1
  120. package/policy.esm.js.map +1 -1
  121. package/policy.js +1 -1
  122. package/policy.js.map +1 -1
  123. package/policy.umd.js +1 -1
  124. package/policy.umd.js.map +1 -1
  125. package/schema.d.ts +3 -0
  126. package/schema.d.ts.map +1 -0
  127. package/schema.esm.js +2 -0
  128. package/schema.esm.js.map +1 -0
  129. package/schema.js +2 -0
  130. package/schema.js.map +1 -0
  131. package/schema.umd.js +2 -0
  132. package/schema.umd.js.map +1 -0
package/schema.js ADDED
@@ -0,0 +1,2 @@
1
+ (()=>{"use strict";var e={250(e,t,a){const s=a(17);s.code='require("ajv/dist/runtime/equal").default',t.default=s},853(e,t){function a(e){const t=e.length;let a,s=0,r=0;for(;r<t;)s++,a=e.charCodeAt(r++),a>=55296&&a<=56319&&r<t&&(a=e.charCodeAt(r),56320==(64512&a)&&r++);return s}t.A=a,a.code='require("ajv/dist/runtime/ucs2length").default'},17(e){e.exports=function e(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var s,r,i;if(Array.isArray(t)){if((s=t.length)!=a.length)return!1;for(r=s;0!==r--;)if(!e(t[r],a[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((s=(i=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(r=s;0!==r--;)if(!Object.prototype.hasOwnProperty.call(a,i[r]))return!1;for(r=s;0!==r--;){var n=i[r];if(!e(t[n],a[n]))return!1}return!0}return t!=t&&a!=a}},371(e,t,a){var s,r=this&&this.__createBinding||(Object.create?function(e,t,a,s){void 0===s&&(s=a);var r=Object.getOwnPropertyDescriptor(t,a);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,s,r)}:function(e,t,a,s){void 0===s&&(s=a),e[s]=t[a]}),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||(s=function(e){return s=Object.getOwnPropertyNames||function(e){var t=[];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[t.length]=a);return t},s(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a=s(e),n=0;n<a.length;n++)"default"!==a[n]&&r(t,e,a[n]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaArtifactValidator=void 0;const o=n(a(125)),p=a(108),m=a(92),l=a(403),u=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),c="https://schema.metadatacenter.org/core/",h=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 a=this.structure(e,t).findings;return a.length||l.SchemaValuePolicy.visit(e,"",a),m.ValidationPolicy.summarize(a,"template")}static structure(e,t){const a=[];try{const s=e;if(!u(s))throw new Error("Expected a template, element or field object.");const r="array"===s.type&&u(s.items)&&s.items["@type"]===c+"TemplateField";if(r&&!["checkbox","attribute-value"].includes(String(s.items._ui&&s.items._ui.inputType)))throw new Error("This standalone field must use an object schema.");const i=r?"field":s["@type"]===c+"Template"?"template":s["@type"]===c+"TemplateElement"?"element":[c+"TemplateField",c+"StaticTemplateField"].includes(String(s["@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:s["@type"]===c+"StaticTemplateField"?o.staticField:h.has(String(s._ui?.inputType))?o.iri:o.literal;if(!p(n)){const e=new Set;for(const t of this.explain(n,[...p.errors??[]])){const s=t.params.additionalProperty??t.params.missingProperty,r=s?m.ValidationPolicy.child(t.instancePath,s):t.instancePath,i=r+":"+t.keyword;e.has(i)||(e.add(i),a.push(m.ValidationPolicy.finding("schema."+t.keyword,r,t.message??"Invalid schema artifact.")))}}this.occurrences(e,"",a)}catch(e){a.push(m.ValidationPolicy.finding("schema.invalid","",e instanceof Error?e.message:"Invalid schema artifact."))}return m.ValidationPolicy.summarize(a,"template")}static explain(e,t){if(!u(e))return t;const a="array"===e.type?[["/items",e.items]]:[c+"Template",c+"TemplateElement"].includes(String(e["@type"]))&&u(e.properties)?Object.entries(e.properties).map(([e,t])=>[m.ValidationPolicy.child("/properties",e),t]):[];for(const[e,s]of a){if(!u(s))continue;const a=s["@type"],r=u(s._ui)?s._ui.inputType:void 0,i="array"===s.type?o.multipleChild:a===c+"TemplateElement"?o.element:a===c+"StaticTemplateField"?o.staticField:a!==c+"TemplateField"?void 0:"attribute-value"===r?o.attributeField:h.has(String(r))?o.iri:o.literal;if(!i||i(s))continue;const n=this.explain(s,[...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 a=Array.isArray(e)?e.map(e=>this.schemaView(e,t)):Object.fromEntries(Object.entries(e).map(([e,a])=>[e,this.schemaView(a,t)]));return t.delete(e),a}static occurrences(e,t,a){if(u(e))if("array"===e.type){for(const s of["minItems","maxItems"]){const r=e[s];void 0!==r&&("number"!=typeof r||!Number.isInteger(r)||r<0||r>2147483647)&&a.push(m.ValidationPolicy.finding("schema.occurrences",t+"/"+s,"Occurrence limits must be integers between 0 and 2147483647."))}this.occurrences(e.items,t+"/items",a)}else if([c+"Template",c+"TemplateElement"].includes(String(e["@type"]))&&u(e.properties))for(const[s,r]of Object.entries(e.properties))this.occurrences(r,m.ValidationPolicy.child(t+"/properties",s),a)}}t.SchemaArtifactValidator=d},659(e,t,a){t.M=void 0;const s=a(500),r=a(435);t.M={uri:{type:"string",validate(e){if(""===e)return!0;try{return s.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,a){t.FieldValuePolicy=void 0;const s=a(36),r=a(500),i=a(108),n=a(991),o=a(992),p=a(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 a=e._valueConstraints??{},s=[],r=(e,a)=>s.push(p.ValidationPolicy.finding("templateConstraint",p.ValidationPolicy.child(t+"/_valueConstraints",e),a));for(const e of["minLength","maxLength","decimalPlace"])Object.hasOwn(a,e)&&(!Number.isInteger(a[e])||a[e]<0||a[e]>2147483647)&&r(e,`${e} must be a nonnegative integer.`);null!=a.minLength&&null!=a.maxLength&&a.minLength>a.maxLength&&r("maxLength","Minimum length exceeds maximum length.");const n=new Set;for(const e of["minValue","maxValue"])if(Object.hasOwn(a,e))try{if("number"!=typeof a[e]&&!i.ExactDecimal.isExact(a[e]))throw new Error;i.NumericPolicy.value(a[e]),n.add(e)}catch{r(e,"Numeric bounds must be finite decimal values.")}if(2===n.size&&i.NumericPolicy.compare(a.minValue,a.maxValue)>0&&r("maxValue","Minimum value exceeds maximum value."),"numeric"===e._ui?.inputType){const e=a.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 s=Number.isInteger(a.decimalPlace)&&a.decimalPlace>=0&&a.decimalPlace<=2147483647;t&&s&&0!==a.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},a[o],"","template").some(e=>"numberType"===e.code)?r(o,"The bound is outside its numeric datatype."):s&&i.NumericPolicy.fractionalDigits(a[o])>a.decimalPlace&&r(o,"The bound exceeds the declared decimal precision."))}return Object.hasOwn(a,"regex")&&("string"!=typeof a.regex?r("regex","A pattern must be a string."):""!==a.regex&&s.push(...this.regex(a.regex,null,t+"/_valueConstraints/regex"))),s}static validate(e,t,a="",i="instance"){if(null==t||""===t)return[];const n=e._valueConstraints??{},m=e._ui?.inputType,l=[],u=(e,t)=>l.push(p.ValidationPolicy.finding(e,a,t));if("string"!=typeof t&&("template"!==i||"numeric"!==m))return u("valueShape","A populated field value must be a string."),l;const c=String(t);if(null!=n.minLength&&o.TextPolicy.codePointLength(c)<n.minLength&&u("minLength",`Shorter than the minimum ${n.minLength}.`),null!=n.maxLength&&o.TextPolicy.codePointLength(c)>n.maxLength&&u("maxLength",`Longer than the maximum ${n.maxLength}.`),"string"==typeof n.regex&&""!==n.regex&&l.push(...this.regex(n.regex,c,a)),"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(c)||u("email","Not a valid email address."),"phone-number"!==m||/^[+0-9 \t\-()]+$/.test(c)||u("phoneNumber","Not a valid phone number."),this.isIri(e)&&(r.IdentifierPolicy.isValidAuthoringIri(c,!0)||u("iriMalformed","Not a valid absolute IRI.")),"numeric"===m&&l.push(...this.numeric(n,t,a,i)),"temporal"===m)if("template"===i){try{s.TemporalDefaultPolicy.assertValid(n.temporalType??null,e._ui?.temporalGranularity??null,c)}catch(e){u("temporalType",e instanceof Error?e.message:"Invalid temporal default.")}/(Z|[+-]\d{2}:\d{2})$/.test(c)&&!0!==e._ui?.timezoneEnabled&&u("timezone","Carries a timezone offset but none is enabled.")}else l.push(...this.temporal(e,c,a));return Array.isArray(n.literals)&&n.literals.length&&!n.literals.some(e=>e?.label===c)&&u("choiceMembership","Not one of the declared options."),l}static validateNode(e,t,a=""){const s=[],r=(e,t,r)=>s.push(p.ValidationPolicy.finding(e,null===t?a:p.ValidationPolicy.child(a,t),r)),i=e._valueConstraints??{};if(!t||"object"!=typeof t||Array.isArray(t))return r("valueShape",null,"A field slot must be an object."),s;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 s}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."),s;const l=(e.required??[]).filter(e=>!Object.hasOwn(n,e));for(const e of l)r("missingProperty",e,`The field slot must contain ${e}.`);if(l.length)return s;if(0===Object.keys(n).length)return this.isIri(e)?(!0===i.requiredValue&&r("required",null,"A value is required."),s):(r("missingProperty","@value","A literal field slot must contain @value."),s);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."),s}return s.push(...this.validate(e,n["@id"],a+"/@id")),s}if(Object.hasOwn(n,"@id"))return r("valueShape","@id","A literal field cannot contain an IRI value."),s;if(!Object.hasOwn(n,"@value"))return r("valueShape","@value","A literal field requires @value."),s;const u=n["@value"];if(null===u||""===u)return!0===i.requiredValue&&r("required","@value","A value is required."),s;const c="numeric"===e._ui?.inputType?i.numberType:"temporal"===e._ui?.inputType?i.temporalType:null,h=e=>"string"==typeof e?e.replace("http://www.w3.org/2001/XMLSchema#","xsd:"):e;return null!=c&&h(n["@type"])!==h(c)&&r("valueType","@type",`The value must declare ${c}.`),s.push(...this.validate(e,u,a+"/@value")),s}static validateDefault(e,t=""){const a=(e._valueConstraints??{}).defaultValue;if(null==a)return[];const s=t+"/_valueConstraints/defaultValue";return this.isControlled(e)?a&&"object"==typeof a&&"string"==typeof a.termUri&&""!==a.termUri&&"string"==typeof a["rdfs:label"]&&""!==a["rdfs:label"]?this.validate(e,a.termUri,s+"/termUri","template"):[p.ValidationPolicy.finding("controlledStructure",s,"A controlled default requires termUri and rdfs:label.")]:this.validate(e,a,s,"template")}static assertConsistent(e){const t={...e,_valueConstraints:Object.fromEntries(Object.entries(e._valueConstraints??{}).filter(([,e])=>null!=e))},a=[...this.validateConfiguration(t),...this.validateDefault(t)].find(e=>p.ValidationPolicy.blocksSave(e.code,"template"));if(a)throw new Error(`${a.message} (${a.path})`)}static regex(e,t,a){const s=n.RegexChecks.inspect(e,t);return"valid"===s||"match"===s||"invalid"===s&&null!==t?[]:"mismatch"===s?[p.ValidationPolicy.finding("regex",a,"Does not match the field pattern.")]:"invalid"===s?[p.ValidationPolicy.finding("templateConstraint",a,"The field pattern is invalid.")]:[p.ValidationPolicy.finding("pending"===s?"regexPending":"regexEvaluation",a,"pending"===s?"Pattern validation is pending.":`Pattern validation could not finish (${s}).`,"pending"===s?"notChecked":"unavailable")]}static numeric(e,t,a,s){const r=[],n=(e,t)=>r.push(p.ValidationPolicy.finding(e,a,t)),o=e.numberType??"xsd:decimal",m=this.integerRanges[o],l=String(t);if("instance"===s&&(m?!/^[+-]?(?:0|[1-9][0-9]*)$/.test(l):!/^[+-]?(?:(?:0|[1-9][0-9]*)(?:\.[0-9]*)?|\.[0-9]+)$/.test(l)))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"===s&&("xsd:float"===o||"xsd:double"===o)){const e=l.replace(/^-/,""),t="xsd:float"===o?"3.4028234663852886e38":"1.7976931348623157e308",a="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,a)<0)return n("numberType",`Outside the range of ${o}.`),r}const a="instance"===s?l.split(".")[1]?.length??0:i.NumericPolicy.fractionalDigits(t);null!=e.decimalPlace&&a>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,a){const s=[],r=(e,t)=>s.push(p.ValidationPolicy.finding(e,a,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 l=/^(\d{4})-(\d{2})-(\d{2})$/,u=/^(\d{2}):(\d{2})(?::(\d{2}))?(\.\d+)?$/,c=m.split("T"),h="xsd:time"===i?null:c[0],d="xsd:time"===i?m:2===c.length?c[1]:null;if(!("xsd:date"===i?1===c.length&&l.test(m):"xsd:time"===i?u.test(m):"xsd:dateTime"===i&&2===c.length&&l.test(c[0])&&u.test(c[1])))return r("temporalType",`Not a valid ${i}.`),s;const y=h?.match(l),f=d?.match(u);if(y){const e=Number(y[1]),t=Number(y[2]),a=Number(y[3]);(t<1||t>12||a<1||a>[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 s}}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 a=!1,s=!1;for(const r of e){const e=r.codePointAt(0);if("#"===r?(s=!0,a=!1):"?"!==r||s||(a=!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||a&&(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 a{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 a(s.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=a;class s{static parts(e){const t="string"==typeof e?e:String(e),a=/^([+-]?)(?:(\d+)(?:\.(\d*))?|\.(\d+))(?:[eE]([+-]?\d+))?$/.exec(t);if(!a)throw new Error("Expected a finite decimal number without surrounding whitespace.");const s=a[3]??a[4]??"",r=BigInt(a[5]??"0");let i=r-BigInt(s.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=((a[2]??"")+s).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:"-"===a[1]?-1:1,digits:n,exponent:i}}static canonical(e){const{sign:t,digits:a,exponent:s}=this.parts(e);if(!t)return"0";const r=t<0?"-":"",i=s+BigInt(a.length-1);if(s>=0n&&i<1000n)return r+a+"0".repeat(Number(s));if(s<0n&&i>=-1000n){const e=a.length+Number(s);return r+(e>0?a.slice(0,e)+"."+a.slice(e):"0."+"0".repeat(-e)+a)}if(i>2147483647n){const e=s-2147483647n;return r+a+(e>0n?"0".repeat(Number(e)):"")+"E+"+(e>0n?2147483647n:s)}return r+a[0]+(a.length>1?"."+a.slice(1):"")+"E"+(i>=0n?"+":"")+i}static compare(e,t){const a=this.parts(e),s=this.parts(t);if(a.sign!==s.sign)return a.sign<s.sign?-1:1;if(!a.sign)return 0;const r=BigInt(a.digits.length)+a.exponent,i=BigInt(s.digits.length)+s.exponent;let n;if(r!==i)n=r<i?-1:1;else{const e=Math.max(a.digits.length,s.digits.length),t=a.digits.padEnd(e,"0"),r=s.digits.padEnd(e,"0");n=t===r?0:t<r?-1:1}return 0===n?0:n*a.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(a.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)?a.forValue(e):t}}t.NumericPolicy=s},991(e,t,a){t.RegexChecks=void 0;const s=a(128);class r{changed;policy;entries=new Map;used=null;size=0;disposed=!1;capacityLimited=!1;static active=null;constructor(e=()=>{},t=new s.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 a=!1;for(const[t,s]of this.entries)e.has(t)||(a=!0,this.entries.delete(t),this.size-=t.length,s.controller.abort());a&&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 a=JSON.stringify([e,t]);this.used.add(a);const s=this.entries.get(a);if(s)return s.result;if(this.entries.size>=1024||this.size+a.length>4e6)return this.capacityLimited=!0,"limit";const r=new AbortController,i={result:"pending",controller:r,done:Promise.resolve()};return this.entries.set(a,i),this.size+=a.length,i.done=this.policy.evaluate(e,t,r.signal).then(e=>{this.disposed||this.entries.get(a)!==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 a=new r(void 0,t);try{let t=a.run(e);for(;a.pending;)await a.settled(),t=a.run(e);return t}finally{a.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,a=e.URL.createObjectURL(new e.Blob([t.L],{type:"text/javascript"}));return this.releaseSource=()=>e.URL.revokeObjectURL(a),new e.Worker(a)}),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,a){return this.closed||a?.aborted?Promise.resolve("cancelled"):e.length>1e4||(t?.length??0)>1e6||this.queue.length>=this.options.queueLimit?Promise.resolve("limit"):new Promise(s=>{const r={id:++this.serial,pattern:e,value:t,finish:e=>{a?.removeEventListener("abort",i),s(e)}},i=()=>{this.current===r?this.fail("cancelled"):(this.queue=this.queue.filter(e=>e!==r),r.finish("cancelled"))};a?.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 a=t;if(a.ready&&!this.ready)clearTimeout(this.timer),this.ready=!0,this.send();else if(a.id===this.current?.id&&["valid","match","mismatch","invalid"].includes(a.result??"")){clearTimeout(this.timer);const e=this.current;this.current=null,e.finish(a.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,a){t.SchemaValuePolicy=void 0;const s=a(830),r=a(92);t.SchemaValuePolicy=class{static visit(e,t,a){if(!e||"object"!=typeof e||Array.isArray(e))return void a.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&&a.push(r.ValidationPolicy.finding("templateConstraint",t+"/maxItems","Minimum occurrence count exceeds maximum.")),void this.visit(i.items,t+"/items",a);if(i._ui?.inputType){a.push(...s.FieldValuePolicy.validateConfiguration(i,t),...s.FieldValuePolicy.validateDefault(i,t));const e=i._valueConstraints?.defaultValue;if(null!=e&&""!==e&&(s.FieldValuePolicy.isControlled(i)||s.FieldValuePolicy.authorityTypes.has(i._ui.inputType))){const n=t+"/_valueConstraints/defaultValue"+(s.FieldValuePolicy.isControlled(i)&&"object"==typeof e?"/termUri":"");a.push(r.ValidationPolicy.finding("semanticNotChecked",n,"Default identifier membership or existence has not been verified.","notChecked"))}return}for(const[e,s]of Object.entries(i.properties??{})){const i="array"===s?.type?s.items:s;i&&"object"==typeof i&&i._ui&&this.visit(s,r.ValidationPolicy.child(t+"/properties",e),a)}}}},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,a){if(null===a||""===a)return;const s=e;if(null===s)throw new Error("Temporal default requires a temporal datatype.");if(!this.isCompatibleGranularity(e,t))throw new Error(`Temporal datatype ${s} is not compatible with ${t} granularity.`);const r=this.datePattern(t,"xsd:date"===s),i=this.timePattern(t);let n;if(n="xsd:date"===s?r:"xsd:time"===s?i:this.dateTimePattern(t),!n.test(a)||!this.hasValidCalendarDate(a))throw new Error(`Temporal default "${a}" is not valid for ${s}`+(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,a=this.hour,s=this.minute,r=this.second;return"hour"===e?new RegExp(`^${a}${t}$`):"minute"===e?new RegExp(`^${a}:${s}${t}$`):"second"===e?new RegExp(`^${a}:${s}:${r}${t}$`):"decimalSecond"===e?new RegExp(`^${a}:${s}:${r}\\.\\d+${t}$`):new RegExp(`^${a}(?::${s}(?::${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 a=Number(t[1]),s=Number(t[2]);return Number(t[3])<=[31,a%4!=0||a%100==0&&a%400!=0?28:29,31,30,31,30,31,31,30,31,30,31][s-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 a=Array.from(e),s=Array.from(t);return e.length===t.length&&a.length===s.length&&a.every((e,t)=>{const a=s[t],r=e.toUpperCase(),i=a.toUpperCase();return e===a||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"),a=/^(\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(!a)throw new Error("Expected an ISO timestamp with an explicit offset.");const[,s,r,i,n,o,p="00",m="",l]=a,u=Number(s),c=Number(r),h=Number(i),d=[31,u%4!=0||u%100==0&&u%400!=0?28:29,31,30,31,30,31,31,30,31,30,31];if(0===u&&s.startsWith("-")||c<1||c>12||h<1||h>d[c-1]||Number(n)>23||Number(o)>59||Number(p)>59)throw new Error("Invalid timestamp calendar or clock value.");let y="Z";if("Z"!==l.toUpperCase()){const[e,t=0,a=0]=l.slice(1).split(":").map(Number);if(e>18||t>59||a>59||18===e&&(0!==t||0!==a))throw new Error("Timestamp offset is outside the ISO offset range.");(e||t||a)&&(y=`${l[0]}${String(e).padStart(2,"0")}:${String(t).padStart(2,"0")}`,a&&(y+=`:${String(a).padStart(2,"0")}`))}const f=(u<0?"-":u>9999?"+":"")+String(Math.abs(u)).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[,,,,a="0",s,r="0",i]=t;return 3600*Number(a)+60*Number(s??i??0)+Number(r)<=64800}}},92(e,t){t.ValidationPolicy=void 0;class a{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,a){switch(t){case"passed":return a===(e?"controlledTermVerified":"authorityVerified");case"failed":return e?"controlledTermMembership"===a:"authorityIdentifier"===a||"authorityMembership"===a;case"notChecked":return"semanticNotChecked"===a;case"unavailable":return"semanticUnavailable"===a;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 a="string"==typeof e?this.category(e):e.category;return"structural"===a||"template"===t&&("verification"!==a||"string"!=typeof e&&"failed"===e.verificationStatus)}static severity(e,t="instance"){return this.blocksSave(e,t)?"error":"warning"}static finding(e,t,a,s){const r={code:e,category:this.category(e),path:t,message:a};return void 0!==s&&(r.verificationStatus=s),r}static summarize(e,t="instance"){const a=e.filter(e=>"passed"!==e.verificationStatus);return{findings:[...e],structurallyValid:!a.some(e=>"structural"===e.category),canSave:!a.some(e=>this.blocksSave(e,t)),isValid:0===a.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=a},125(e,t,a){t.template=function e(t,{instancePath:a="",parentData:o,parentDataProperty:p,rootData:m=t}={}){let l=null,c=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.$schema){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===l?l=[e]:l.push(e),c++}if(void 0===t.type){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===l?l=[e]:l.push(e),c++}if(void 0===t.title){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===l?l=[e]:l.push(e),c++}if(void 0===t.description){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===l?l=[e]:l.push(e),c++}if(void 0===t._ui){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===l?l=[e]:l.push(e),c++}if(void 0===t["@context"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===l?l=[e]:l.push(e),c++}if(void 0===t["@id"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===l?l=[e]:l.push(e),c++}if(void 0===t["@type"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===l?l=[e]:l.push(e),c++}if(void 0===t.properties){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===l?l=[e]:l.push(e),c++}if(void 0===t.required){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"required"},message:"must have required property 'required'"};null===l?l=[e]:l.push(e),c++}if(void 0===t["pav:createdOn"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===l?l=[e]:l.push(e),c++}if(void 0===t["pav:createdBy"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===l?l=[e]:l.push(e),c++}if(void 0===t["pav:lastUpdatedOn"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===l?l=[e]:l.push(e),c++}if(void 0===t["oslc:modifiedBy"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===l?l=[e]:l.push(e),c++}if(void 0===t["schema:schemaVersion"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===l?l=[e]:l.push(e),c++}if(void 0===t["schema:name"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===l?l=[e]:l.push(e),c++}if(void 0===t["schema:description"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===l?l=[e]:l.push(e),c++}if(void 0!==t.$schema){let e=t.$schema;if("http://json-schema.org/draft-04/schema#"!==e){const e={instancePath:a+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:s.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===l?l=[e]:l.push(e),c++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:a+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===l?l=[e]:l.push(e),c++}}else{const e={instancePath:a+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),c++}}if(void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:a+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),c++}if("object"!==e&&"array"!==e){const e={instancePath:a+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:s.properties.type.enum},message:"must be equal to one of the allowed values"};null===l?l=[e]:l.push(e),c++}}if(void 0!==t["schema:identifier"]){let e=t["schema:identifier"];if("string"==typeof e){if(n(e)<1){const e={instancePath:a+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===l?l=[e]:l.push(e),c++}}else{const e={instancePath:a+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),c++}}if(void 0!==t["schema:name"]){let e=t["schema:name"];if("string"==typeof e){if(n(e)<1){const e={instancePath:a+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===l?l=[e]:l.push(e),c++}}else{const e={instancePath:a+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),c++}}if(void 0!==t["schema:description"]&&"string"!=typeof t["schema:description"]){const e={instancePath:a+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),c++}if(void 0!==t.title){let e=t.title;if("string"==typeof e){if(n(e)<1){const e={instancePath:a+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===l?l=[e]:l.push(e),c++}}else{const e={instancePath:a+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),c++}}if(void 0!==t.description){let e=t.description;if("string"==typeof e){if(n(e)<1){const e={instancePath:a+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===l?l=[e]:l.push(e),c++}}else{const e={instancePath:a+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),c++}}if(void 0!==t._ui&&(u(t._ui,{instancePath:a+"/_ui",parentData:t,parentDataProperty:"_ui",rootData:m})||(l=null===l?u.errors:l.concat(u.errors),c=l.length)),void 0!==t["@context"]&&(D(t["@context"],{instancePath:a+"/@context",parentData:t,parentDataProperty:"@context",rootData:m})||(l=null===l?D.errors:l.concat(D.errors),c=l.length)),void 0!==t["@id"]){let e=t["@id"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:s.properties["@id"].type},message:"must be string,null"};null===l?l=[e]:l.push(e),c++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:a+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===l?l=[e]:l.push(e),c++}}if(void 0!==t["@type"]){let e=t["@type"];if("https://schema.metadatacenter.org/core/Template"!==e){const e={instancePath:a+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:s.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===l?l=[e]:l.push(e),c++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:a+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===l?l=[e]:l.push(e),c++}}else{const e={instancePath:a+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),c++}}if(void 0!==t.properties&&(_t(t.properties,{instancePath:a+"/properties",parentData:t,parentDataProperty:"properties",rootData:m})||(l=null===l?_t.errors:l.concat(_t.errors),c=l.length)),void 0!==t.required&&(Ft(t.required,{instancePath:a+"/required",parentData:t,parentDataProperty:"required",rootData:m})||(l=null===l?Ft.errors:l.concat(Ft.errors),c=l.length)),void 0!==t["pav:createdOn"]){let e=t["pav:createdOn"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:s.properties["pav:createdOn"].type},message:"must be string,null"};null===l?l=[e]:l.push(e),c++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:a+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===l?l=[e]:l.push(e),c++}}if(void 0!==t["pav:createdBy"]){let e=t["pav:createdBy"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:s.properties["pav:createdBy"].type},message:"must be string,null"};null===l?l=[e]:l.push(e),c++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:a+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===l?l=[e]:l.push(e),c++}}if(void 0!==t["pav:lastUpdatedOn"]){let e=t["pav:lastUpdatedOn"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:s.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===l?l=[e]:l.push(e),c++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:a+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===l?l=[e]:l.push(e),c++}}if(void 0!==t["oslc:modifiedBy"]){let e=t["oslc:modifiedBy"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:s.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===l?l=[e]:l.push(e),c++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:a+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===l?l=[e]:l.push(e),c++}}if(void 0!==t["schema:schemaVersion"]){let e=t["schema:schemaVersion"];if("string"!=typeof e){const e={instancePath:a+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),c++}if("1.6.0"!==e){const e={instancePath:a+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:s.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===l?l=[e]:l.push(e),c++}}if(void 0!==t["bibo:status"]){let e=t["bibo:status"];if("string"!=typeof e){const e={instancePath:a+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),c++}if("bibo:published"!==e&&"bibo:draft"!==e){const e={instancePath:a+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:s.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===l?l=[e]:l.push(e),c++}}if(void 0!==t["pav:version"]){let e=t["pav:version"];if("string"==typeof e){if(!st.test(e)){const e={instancePath:a+"/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===l?l=[e]:l.push(e),c++}}else{const e={instancePath:a+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),c++}}if(void 0!==t["pav:previousVersion"]){let e=t["pav:previousVersion"];if("string"==typeof e){if(n(e)<1){const e={instancePath:a+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===l?l=[e]:l.push(e),c++}}else{const e={instancePath:a+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),c++}}if(void 0!==t["pav:derivedFrom"]){let e=t["pav:derivedFrom"];if("string"==typeof e){if(!r.validate(e)){const e={instancePath:a+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===l?l=[e]:l.push(e),c++}}else{const e={instancePath:a+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),c++}}if(void 0!==t._annotations&&(St(t._annotations,{instancePath:a+"/_annotations",parentData:t,parentDataProperty:"_annotations",rootData:m})||(l=null===l?St.errors:l.concat(St.errors),c=l.length)),void 0!==t.additionalProperties){let e=t.additionalProperties;const s=c;let r=!1,i=null;const n=c;C(e,{instancePath:a+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:m})||(l=null===l?C.errors:l.concat(C.errors),c=l.length),n===c&&(r=!0,i=0);const o=c;var h;if(Bt(e,{instancePath:a+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:m})||(l=null===l?Bt.errors:l.concat(Bt.errors),c=l.length),(h=o===c)&&r?(r=!1,i=[i,1]):h&&(r=!0,i=1),r)c=s,null!==l&&(s?l.length=s:l=null);else{const e={instancePath:a+"/additionalProperties",schemaPath:"#/properties/additionalProperties/oneOf",keyword:"oneOf",params:{passingSchemas:i},message:"must match exactly one schema in oneOf"};null===l?l=[e]:l.push(e),c++}}void 0!==t["@nest"]&&(at(t["@nest"],{instancePath:a+"/@nest",parentData:t,parentDataProperty:"@nest",rootData:m})||(l=null===l?at.errors:l.concat(at.errors),c=l.length))}else{const e={instancePath:a,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===l?l=[e]:l.push(e),c++}return e.errors=l,0===c};const s={$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=a(659).M.uri,i=a(659).M["date-time"],n=a(853).A;function o(e,{instancePath:t="",parentData:a,parentDataProperty:s,rootData:r=e}={}){let i=null,p=0;if(Array.isArray(e)){const a=e.length;for(let s=0;s<a;s++){let a=e[s];if("string"==typeof a){if(n(a)<1){const e={instancePath:t+"/"+s,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+"/"+s,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string"};null===i?i=[e]:i.push(e),p++}}let s,r=e.length;if(r>1){const a={};for(;r--;){let n=e[r];if("string"==typeof n){if("number"==typeof a[n]){s=a[n];const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:r,j:s},message:"must NOT have duplicate items (items ## "+s+" and "+r+" are identical)"};null===i?i=[e]:i.push(e),p++;break}a[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:a,parentDataProperty:s,rootData:r=e}={}){let i=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const a in e)if(!p.test(a)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),o++}for(const a in e)if(p.test(a)){let s=e[a];if("string"==typeof s){if(n(s)<1){const e={instancePath:t+"/"+a.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+"/"+a.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 l(e,{instancePath:t="",parentData:a,parentDataProperty:s,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const a in e)if(!p.test(a)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}for(const a in e)if(p.test(a)&&"string"!=typeof e[a]){const e={instancePath:t+"/"+a.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 l.errors=i,0===n}function u(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("order"!==a&&"propertyLabels"!==a&&"propertyDescriptions"!==a&&"header"!==a&&"footer"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},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&&(l(e.propertyDescriptions,{instancePath:t+"/propertyDescriptions",parentData:e,parentDataProperty:"propertyDescriptions",rootData:r})||(i=null===i?l.errors:i.concat(l.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 u.errors=i,0===n}const c={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"]},h=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:a,parentDataProperty:s,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 a in e)if("@type"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let a=e["@type"];if("string"!=typeof a){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"!==a){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:a,parentDataProperty:s,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 a in e)if("@type"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let a=e["@type"];if("string"!=typeof a){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"!==a){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:a,parentDataProperty:s,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 a in e)if("@type"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let a=e["@type"];if("string"!=typeof a){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"!==a){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 b={type:"object",properties:{"@type":{type:"string",enum:["@id"]}},required:["@type"],additionalProperties:!1};function w(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("@type"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let a=e["@type"];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:b.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 w.errors=i,0===n}function k(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("@type"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let a=e["@type"];if("string"!=typeof a){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"!==a){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:a,parentDataProperty:s,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 a in e)if("@type"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let a=e["@type"];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:b.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:a,parentDataProperty:s,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 a in e)if(!h.call(c.properties,a)&&!d.test(a)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.xsd){let a=e.xsd;if("http://www.w3.org/2001/XMLSchema#"!==a){const e={instancePath:t+"/xsd",schemaPath:"#/properties/xsd/enum",keyword:"enum",params:{allowedValues:c.properties.xsd.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof a){if(!r.validate(a)){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 a=e.pav;if("http://purl.org/pav/"!==a){const e={instancePath:t+"/pav",schemaPath:"#/properties/pav/enum",keyword:"enum",params:{allowedValues:c.properties.pav.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof a){if(!r.validate(a)){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 a=e.schema;if("http://schema.org/"!==a){const e={instancePath:t+"/schema",schemaPath:"#/properties/schema/enum",keyword:"enum",params:{allowedValues:c.properties.schema.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof a){if(!r.validate(a)){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 a=e.oslc;if("http://open-services.net/ns/core#"!==a){const e={instancePath:t+"/oslc",schemaPath:"#/properties/oslc/enum",keyword:"enum",params:{allowedValues:c.properties.oslc.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof a){if(!r.validate(a)){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 a=e.bibo;if("http://purl.org/ontology/bibo/"!==a){const e={instancePath:t+"/bibo",schemaPath:"#/properties/bibo/enum",keyword:"enum",params:{allowedValues:c.properties.bibo.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof a){if(!r.validate(a)){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"]&&(w(e["pav:createdBy"],{instancePath:t+"/pav:createdBy",parentData:e,parentDataProperty:"pav:createdBy",rootData:i})||(n=null===n?w.errors:n.concat(w.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 a=e._annotations;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/_annotations",schemaPath:"#/properties/_annotations/enum",keyword:"enum",params:{allowedValues:c.properties._annotations.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}for(const a in e)if(d.test(a)){let s=e[a];if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/"+a.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+"/"+a.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},V={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/templatePropertiesContextFieldContent"}},j=new RegExp("^(?!(schema|xsd|pav|oslc|rdfs|skos|@language|_annotations|\\$))[^.]+$","u");function B(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a=e.length;for(let s=0;s<a;s++){let a=e[s];if("string"==typeof a){if(!r.validate(a)){const e={instancePath:t+"/"+s,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+"/"+s,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}let s,i=e.length;if(i>1){const a={};for(;i--;){let r=e[i];if("string"==typeof r){if("number"==typeof a[r]){s=a[r];const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i,j:s},message:"must NOT have duplicate items (items ## "+s+" and "+i+" are identical)"};null===n?n=[e]:n.push(e),o++;break}a[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 B.errors=n,0===o}function T(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("enum"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}void 0!==e.enum&&(B(e.enum,{instancePath:t+"/enum",parentData:e,parentDataProperty:"enum",rootData:r})||(i=null===i?B.errors:i.concat(B.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 T.errors=i,0===n}function $(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if(!h.call(V,a)&&!j.test(a)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}for(const a in e)j.test(a)&&(T(e[a],{instancePath:t+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:a,rootData:r})||(i=null===i?T.errors:i.concat(T.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 $.errors=i,0===n}const L={type:"boolean",enum:[!1]};function C(e,{instancePath:t="",parentData:a,parentDataProperty:s,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:L.enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}return C.errors=i,0===n}const N={type:"object",properties:{type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]}},required:["type","format"],additionalProperties:!1};function I(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("type"!==a&&"format"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let a=e.type;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:N.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 a=e.format;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:N.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 I.errors=i,0===n}function _(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("type"!==a&&"properties"!==a&&"required"!==a&&"additionalProperties"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let a=e.type;if("string"!=typeof a){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"!==a){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&&($(e.properties,{instancePath:t+"/properties",parentData:e,parentDataProperty:"properties",rootData:r})||(i=null===i?$.errors:i.concat($.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 a=e.additionalProperties;const s=n;let o=!1,m=null;const l=n;C(a,{instancePath:t+"/additionalProperties",parentData:e,parentDataProperty:"additionalProperties",rootData:r})||(i=null===i?C.errors:i.concat(C.errors),n=i.length),l===n&&(o=!0,m=0);const u=n;var p;if(I(a,{instancePath:t+"/additionalProperties",parentData:e,parentDataProperty:"additionalProperties",rootData:r})||(i=null===i?I.errors:i.concat(I.errors),n=i.length),(p=u===n)&&o?(o=!1,m=[m,1]):p&&(o=!0,m=1),o)n=s,null!==i&&(s?i.length=s: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 _.errors=i,0===n}const U={properties:{oneOf:{$ref:"#/definitions/jsonLDTypeFieldOneOfFieldContent"},type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]}},additionalProperties:!1},F={type:"object",properties:{type:{type:"string",enum:["string"]},format:{type:"string",enum:["uri"]},enum:{$ref:"#/definitions/arrayOfURIs"}},required:["type","format"],additionalProperties:!1};function E(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a=e.length;for(let s=0;s<a;s++){let a=e[s];if("string"==typeof a){if(!r.validate(a)){const e={instancePath:t+"/"+s,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+"/"+s,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}let s,i=e.length;if(i>1){const a={};for(;i--;){let r=e[i];if("string"==typeof r){if("number"==typeof a[r]){s=a[r];const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i,j:s},message:"must NOT have duplicate items (items ## "+s+" and "+i+" are identical)"};null===n?n=[e]:n.push(e),o++;break}a[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 E.errors=n,0===o}function S(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("type"!==a&&"format"!==a&&"enum"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let a=e.type;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:F.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 a=e.format;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:F.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&&(E(e.enum,{instancePath:t+"/enum",parentData:e,parentDataProperty:"enum",rootData:r})||(i=null===i?E.errors:i.concat(E.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 S.errors=i,0===n}const R={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 z(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("type"!==a&&"minItems"!==a&&"items"!==a&&"uniqueItems"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let a=e.type;if("string"!=typeof a){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"!==a){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.minItems){let a=e.minItems;if("number"!=typeof a||a%1||isNaN(a)){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 a&&(a<0||isNaN(a))){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&&(S(e.items,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:r})||(i=null===i?S.errors:i.concat(S.errors),n=i.length)),void 0!==e.uniqueItems){let a=e.uniqueItems;if("boolean"!=typeof a){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!==a){const e={instancePath:t+"/uniqueItems",schemaPath:"#/properties/uniqueItems/enum",keyword:"enum",params:{allowedValues:R.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 z.errors=i,0===n}function M(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a=e.length;a>0&&(S(e[0],{instancePath:t+"/0",parentData:e,parentDataProperty:0,rootData:r})||(i=null===i?S.errors:i.concat(S.errors),n=i.length)),a>1&&(z(e[1],{instancePath:t+"/1",parentData:e,parentDataProperty:1,rootData:r})||(i=null===i?z.errors:i.concat(z.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 M.errors=i,0===n}function Z(e,{instancePath:t="",parentData:a,parentDataProperty:s,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const a in e)if("oneOf"!==a&&"type"!==a&&"format"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.oneOf&&(M(e.oneOf,{instancePath:t+"/oneOf",parentData:e,parentDataProperty:"oneOf",rootData:r})||(i=null===i?M.errors:i.concat(M.errors),n=i.length)),void 0!==e.type){let a=e.type;if("string"!=typeof a){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"!==a){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===i?i=[e]:i.push(e),n++}}if(void 0!==e.format){let a=e.format;if("string"!=typeof a){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"!==a){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===i?i=[e]:i.push(e),n++}}}return Z.errors=i,0===n}const G={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 J(e,{instancePath:t="",parentData:a,parentDataProperty:s,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){if(void 0!==e.type){let a=e.type;if(Array.isArray(a)){if(a.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(a.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=a.length;if(e>0){let e=a[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:G.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=a[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:G.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 a=e.format;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:G.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 J.errors=i,0===n}const W={type:"object",properties:{type:{type:"string",enum:["string"]},minLength:{type:"number",enum:[1]}},required:["type"],additionalProperties:!1};function X(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("type"!==a&&"minLength"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let a=e.type;if("string"!=typeof a){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"!==a){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.minLength){let a=e.minLength;if("number"!=typeof a){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!==a){const e={instancePath:t+"/minLength",schemaPath:"#/properties/minLength/enum",keyword:"enum",params:{allowedValues:W.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 X.errors=i,0===n}const H={type:"object",properties:{type:{type:"string",enum:["string"]}},required:["type"],additionalProperties:!1};function K(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("type"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let a=e.type;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:H.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}const Q={type:"object",properties:{type:{$ref:"#/definitions/stringAndNullTypeContent"},format:{type:"string",enum:["date-time"]}},required:["type","format"],additionalProperties:!1},Y={type:"array",minItems:2,maxItems:2,items:[{type:"string",enum:["string"]},{type:"string",enum:["null"]}]};function ee(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a=e.length;if(a>0){let a=e[0];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/0",schemaPath:"#/items/0/enum",keyword:"enum",params:{allowedValues:Y.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(a>1){let a=e[1];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/1",schemaPath:"#/items/1/enum",keyword:"enum",params:{allowedValues:Y.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 ee.errors=i,0===n}function te(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("type"!==a&&"format"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type&&(ee(e.type,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?ee.errors:i.concat(ee.errors),n=i.length)),void 0!==e.format){let a=e.format;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:Q.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 ae={type:"object",properties:{type:{$ref:"#/definitions/stringAndNullTypeContent"},format:{type:"string",enum:["uri"]}},required:["type","format"],additionalProperties:!1};function se(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("type"!==a&&"format"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type&&(ee(e.type,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?ee.errors:i.concat(ee.errors),n=i.length)),void 0!==e.format){let a=e.format;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:ae.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 se.errors=i,0===n}function re(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("type"!==a&&"format"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let a=e.type;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:N.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 a=e.format;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:N.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 re.errors=i,0===n}function ie(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("type"!==a&&"format"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type&&(ee(e.type,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?ee.errors:i.concat(ee.errors),n=i.length)),void 0!==e.format){let a=e.format;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:Q.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:a,parentDataProperty:s,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 a in e)if("type"!==a&&"format"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type&&(ee(e.type,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?ee.errors:i.concat(ee.errors),n=i.length)),void 0!==e.format){let a=e.format;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:ae.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 oe(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("type"!==a&&"format"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let a=e.type;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:N.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 a=e.format;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:N.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 oe.errors=i,0===n}const pe={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 me(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("type"!==a&&"format"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let a=e.type;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:N.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 a=e.format;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/format",schemaPath:"#/properties/format/enum",keyword:"enum",params:{allowedValues:N.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 me.errors=i,0===n}const le={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 ue(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("type"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let a=e.type;if(Array.isArray(a)){if(a.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(a.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=a.length;if(e>0){let e=a[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:le.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=a[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:le.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=a[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:le.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=a[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:le.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 ue.errors=i,0===n}function ce(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("type"!==a&&"patternProperties"!==a&&"additionalProperties"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let a=e.type;if("string"!=typeof a){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"!==a){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.patternProperties){let a=e.patternProperties;if(a&&"object"==typeof a&&!Array.isArray(a)){if(void 0===a["^.+$"]){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 a)if("^.+$"!==e){const a={instancePath:t+"/patternProperties",schemaPath:"#/properties/patternProperties/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===i?i=[a]:i.push(a),n++}if(void 0!==a["^.+$"]){let e=a["^.+$"];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 a in e)if("oneOf"!==a){const e={instancePath:t+"/patternProperties/^.+$",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.oneOf){let a=e.oneOf;if(Array.isArray(a)){if(a.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(a.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=a.length;if(e>0){let e=a[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 a in e)if("type"!==a&&"properties"!==a&&"additionalProperties"!==a){const e={instancePath:t+"/patternProperties/^.+$/oneOf/0",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let a=e.type;if("string"!=typeof a){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"!==a){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:pe.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 a=e.properties;if(a&&"object"==typeof a&&!Array.isArray(a)){if(void 0===a["@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 a)if("@id"!==e){const a={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=[a]:i.push(a),n++}void 0!==a["@id"]&&(me(a["@id"],{instancePath:t+"/patternProperties/^.+$/oneOf/0/properties/@id",parentData:a,parentDataProperty:"@id",rootData:r})||(i=null===i?me.errors:i.concat(me.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 a=e.additionalProperties;if("boolean"!=typeof a){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!==a){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:pe.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=a[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 a in e)if("type"!==a&&"properties"!==a&&"additionalProperties"!==a){const e={instancePath:t+"/patternProperties/^.+$/oneOf/1",schemaPath:"#/properties/patternProperties/properties/%5E.%2B%24/properties/oneOf/items/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let a=e.type;if("string"!=typeof a){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"!==a){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:pe.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 a=e.properties;if(a&&"object"==typeof a&&!Array.isArray(a)){if(void 0===a["@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 a)if("@value"!==e){const a={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=[a]:i.push(a),n++}void 0!==a["@value"]&&(ue(a["@value"],{instancePath:t+"/patternProperties/^.+$/oneOf/1/properties/@value",parentData:a,parentDataProperty:"@value",rootData:r})||(i=null===i?ue.errors:i.concat(ue.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 a=e.additionalProperties;if("boolean"!=typeof a){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!==a){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:pe.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 a=e.additionalProperties;if("boolean"!=typeof a){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!==a){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:pe.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 ce.errors=i,0===n}const he={$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"]},de=a(250).default,ye={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 fe(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("inputType"!==a&&"valueRecommendationEnabled"!==a&&"hidden"!==a&&"continuePreviousLine"!==a&&"dateType"!==a&&"inputTimeFormat"!==a&&"temporalGranularity"!==a&&"timezoneEnabled"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.inputType){let a=e.inputType;if("string"!=typeof a){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"!==a&&"textarea"!==a&&"radio"!==a&&"checkbox"!==a&&"temporal"!==a&&"email"!==a&&"list"!==a&&"numeric"!==a&&"phone-number"!==a&&"attribute-value"!==a){const e={instancePath:t+"/inputType",schemaPath:"#/properties/inputType/enum",keyword:"enum",params:{allowedValues:ye.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 a=e.dateType;if("string"!=typeof a){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"!==a&&"date-range"!==a){const e={instancePath:t+"/dateType",schemaPath:"#/properties/dateType/enum",keyword:"enum",params:{allowedValues:ye.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 a=e.inputTimeFormat;if("string"!=typeof a){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"!==a&&"12h"!==a){const e={instancePath:t+"/inputTimeFormat",schemaPath:"#/properties/inputTimeFormat/enum",keyword:"enum",params:{allowedValues:ye.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 a=e.temporalGranularity;if("string"!=typeof a){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"!==a&&"month"!==a&&"day"!==a&&"hour"!==a&&"minute"!==a&&"second"!==a&&"decimalSecond"!==a){const e={instancePath:t+"/temporalGranularity",schemaPath:"#/properties/temporalGranularity/enum",keyword:"enum",params:{allowedValues:ye.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 fe.errors=i,0===n}const Pe={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 ge(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 ge.errors=i,0===n}function ve(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("termUri"!==a&&"rdfs:label"!==a&&"skos:notation"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.termUri){let a=e.termUri;if("string"==typeof a){if(!r.validate(a)){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 ve.errors=n,0===o}const be={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},version:{$ref:"#/definitions/valueConstraintsVersionFieldContent"},exclusions:{$ref:"#/definitions/valueConstraintsOntologiesExclusionsFieldContent"},selectedByDefault:{type:"boolean"}};function we(e,{instancePath:t="",parentData:a,parentDataProperty:s,rootData:r=e}={}){let i=null,o=0;const p=o;let m=!1,l=null;const u=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++}u===o&&(m=!0,l=0);const c=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 a in e)if("id"!==a&&"effectiveDate"!==a&&"declaredVersion"!==a){const e={instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),o++}if(void 0!==e.id){let a=e.id;if("string"==typeof a){if(n(a)<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 h;if((h=c===o)&&m?(m=!1,l=[l,1]):h&&(m=!0,l=1),m)o=p,null!==i&&(p?i.length=p:i=null);else{const e={instancePath:t,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:l},message:"must match exactly one schema in oneOf"};null===i?i=[e]:i.push(e),o++}return we.errors=i,0===o}function ke(e,{instancePath:t="",parentData:a,parentDataProperty:s,rootData:i=e}={}){let n=null,o=0;if(Array.isArray(e)){const a=e.length;for(let s=0;s<a;s++){let a=e[s];if("string"==typeof a){if(!r.validate(a)){const e={instancePath:t+"/"+s,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+"/"+s,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}let s,i=e.length;if(i>1){const a={};for(;i--;){let r=e[i];if("string"==typeof r){if("number"==typeof a[r]){s=a[r];const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i,j:s},message:"must NOT have duplicate items (items ## "+s+" and "+i+" are identical)"};null===n?n=[e]:n.push(e),o++;break}a[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 ke.errors=n,0===o}function qe(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if(!h.call(be,a)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===o?o=[e]:o.push(e),p++}if(void 0!==e.uri){let a=e.uri;if("string"==typeof a){if(!r.validate(a)){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 a=e.acronym;if("string"==typeof a){if(n(a)<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 a=e.name;if("string"==typeof a){if(n(a)<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 a=e.numTerms;if("number"!=typeof a||a%1||isNaN(a)){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 a&&(a<0||isNaN(a))){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 a=e.iri;if("string"==typeof a){if(!r.validate(a)){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 a=e.sourceSystem;if("string"==typeof a){if(n(a)<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.version&&(we(e.version,{instancePath:t+"/version",parentData:e,parentDataProperty:"version",rootData:i})||(o=null===o?we.errors:o.concat(we.errors),p=o.length)),void 0!==e.exclusions&&(ke(e.exclusions,{instancePath:t+"/exclusions",parentData:e,parentDataProperty:"exclusions",rootData:i})||(o=null===o?ke.errors:o.concat(ke.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 qe.errors=o,0===p}function De(e,{instancePath:t="",parentData:a,parentDataProperty:s,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){const a=e.length;for(let s=0;s<a;s++)qe(e[s],{instancePath:t+"/"+s,parentData:e,parentDataProperty:s,rootData:r})||(i=null===i?qe.errors:i.concat(qe.errors),n=i.length);let s,o=e.length;if(o>1)e:for(;o--;)for(s=o;s--;)if(de(e[o],e[s])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:o,j:s},message:"must NOT have duplicate items (items ## "+s+" 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 De.errors=i,0===n}const Oe={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},version:{$ref:"#/definitions/valueConstraintsVersionFieldContent"}};function Ae(e,{instancePath:t="",parentData:a,parentDataProperty:s,rootData:i=e}={}){let n=null,o=0;if(Array.isArray(e)){const a=e.length;for(let s=0;s<a;s++){let a=e[s];if("string"==typeof a){if(!r.validate(a)){const e={instancePath:t+"/"+s,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+"/"+s,schemaPath:"#/items/type",keyword:"type",params:{type:"string"},message:"must be string"};null===n?n=[e]:n.push(e),o++}}let s,i=e.length;if(i>1){const a={};for(;i--;){let r=e[i];if("string"==typeof r){if("number"==typeof a[r]){s=a[r];const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i,j:s},message:"must NOT have duplicate items (items ## "+s+" and "+i+" are identical)"};null===n?n=[e]:n.push(e),o++;break}a[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 Ae.errors=n,0===o}function xe(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if(!h.call(Oe,a)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===o?o=[e]:o.push(e),p++}if(void 0!==e.uri){let a=e.uri;if("string"==typeof a){if(!r.validate(a)){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 a=e.name;if("string"==typeof a){if(n(a)<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 a=e.vsCollection;if("string"==typeof a){if(!r.validate(a)){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&&(Ae(e.exclusions,{instancePath:t+"/exclusions",parentData:e,parentDataProperty:"exclusions",rootData:i})||(o=null===o?Ae.errors:o.concat(Ae.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 a=e.numTerms;if("number"!=typeof a||a%1||isNaN(a)){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 a&&(a<0||isNaN(a))){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 a=e.iri;if("string"==typeof a){if(!r.validate(a)){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 a=e.sourceSystem;if("string"==typeof a){if(n(a)<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.version&&(we(e.version,{instancePath:t+"/version",parentData:e,parentDataProperty:"version",rootData:i})||(o=null===o?we.errors:o.concat(we.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 xe.errors=o,0===p}function Ve(e,{instancePath:t="",parentData:a,parentDataProperty:s,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){const a=e.length;for(let s=0;s<a;s++)xe(e[s],{instancePath:t+"/"+s,parentData:e,parentDataProperty:s,rootData:r})||(i=null===i?xe.errors:i.concat(xe.errors),n=i.length);let s,o=e.length;if(o>1)e:for(;o--;)for(s=o;s--;)if(de(e[o],e[s])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:o,j:s},message:"must NOT have duplicate items (items ## "+s+" 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 Ve.errors=i,0===n}const je={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},version:{$ref:"#/definitions/valueConstraintsVersionFieldContent"},selectedByDefault:{type:"boolean"}};function Be(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if(!h.call(je,a)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===o?o=[e]:o.push(e),p++}if(void 0!==e.uri){let a=e.uri;if("string"==typeof a){if(!r.validate(a)){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 a=e.prefLabel;if("string"==typeof a){if(n(a)<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 a=e.type;if("string"==typeof a){if(n(a)<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 a=e.label;if("string"==typeof a){if(n(a)<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 a=e.source;if("string"==typeof a){if(n(a)<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 a=e.iri;if("string"==typeof a){if(!r.validate(a)){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 a=e.sourceSystem;if("string"==typeof a){if(n(a)<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.version&&(we(e.version,{instancePath:t+"/version",parentData:e,parentDataProperty:"version",rootData:i})||(o=null===o?we.errors:o.concat(we.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 Be.errors=o,0===p}function Te(e,{instancePath:t="",parentData:a,parentDataProperty:s,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){const a=e.length;for(let s=0;s<a;s++)Be(e[s],{instancePath:t+"/"+s,parentData:e,parentDataProperty:s,rootData:r})||(i=null===i?Be.errors:i.concat(Be.errors),n=i.length);let s,o=e.length;if(o>1)e:for(;o--;)for(s=o;s--;)if(de(e[o],e[s])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:o,j:s},message:"must NOT have duplicate items (items ## "+s+" 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 Te.errors=i,0===n}const $e={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},version:{$ref:"#/definitions/valueConstraintsVersionFieldContent"},selectedByDefault:{type:"boolean"}};function Le(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if(!h.call($e,a)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===o?o=[e]:o.push(e),p++}if(void 0!==e.source){let a=e.source;if("string"==typeof a){if(n(a)<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 a=e.acronym;if("string"==typeof a){if(n(a)<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 a=e.name;if("string"==typeof a){if(n(a)<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 a=e.uri;if("string"==typeof a){if(!r.validate(a)){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 a=e.maxDepth;if("number"!=typeof a||a%1||isNaN(a)){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 a&&(a<0||isNaN(a))){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 a=e.iri;if("string"==typeof a){if(!r.validate(a)){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 a=e.sourceSystem;if("string"==typeof a){if(n(a)<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.version&&(we(e.version,{instancePath:t+"/version",parentData:e,parentDataProperty:"version",rootData:i})||(o=null===o?we.errors:o.concat(we.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 Le.errors=o,0===p}function Ce(e,{instancePath:t="",parentData:a,parentDataProperty:s,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){const a=e.length;for(let s=0;s<a;s++)Le(e[s],{instancePath:t+"/"+s,parentData:e,parentDataProperty:s,rootData:r})||(i=null===i?Le.errors:i.concat(Le.errors),n=i.length);let s,o=e.length;if(o>1)e:for(;o--;)for(s=o;s--;)if(de(e[o],e[s])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:o,j:s},message:"must NOT have duplicate items (items ## "+s+" 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 Ce.errors=i,0===n}function Ne(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("label"!==a&&"selectedByDefault"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),o++}if(void 0!==e.label){let a=e.label;if("string"==typeof a){if(n(a)<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 Ne.errors=i,0===o}function Ie(e,{instancePath:t="",parentData:a,parentDataProperty:s,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){const a=e.length;for(let s=0;s<a;s++)Ne(e[s],{instancePath:t+"/"+s,parentData:e,parentDataProperty:s,rootData:r})||(i=null===i?Ne.errors:i.concat(Ne.errors),n=i.length);let s,o=e.length;if(o>1)e:for(;o--;)for(s=o;s--;)if(de(e[o],e[s])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:o,j:s},message:"must NOT have duplicate items (items ## "+s+" 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 Ie.errors=i,0===n}const _e={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 Ue(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("action"!==a&&"to"!==a&&"type"!==a&&"source"!==a&&"sourceUri"!==a&&"termUri"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.action){let a=e.action;if("string"!=typeof a){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"!==a&&"delete"!==a){const e={instancePath:t+"/action",schemaPath:"#/properties/action/enum",keyword:"enum",params:{allowedValues:_e.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 a=e.to;if("number"!=typeof a||a%1||isNaN(a)){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 a=e.type;if("string"!=typeof a){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"!==a&&"OntologyClass"!==a){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.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 a=e.sourceUri;if("string"==typeof a){if(!r.validate(a)){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 a=e.termUri;if("string"==typeof a){if(!r.validate(a)){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 Ue.errors=n,0===o}function Fe(e,{instancePath:t="",parentData:a,parentDataProperty:s,rootData:r=e}={}){let i=null,n=0;if(Array.isArray(e)){const a=e.length;for(let s=0;s<a;s++)Ue(e[s],{instancePath:t+"/"+s,parentData:e,parentDataProperty:s,rootData:r})||(i=null===i?Ue.errors:i.concat(Ue.errors),n=i.length);let s,o=e.length;if(o>1)e:for(;o--;)for(s=o;s--;)if(de(e[o],e[s])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:o,j:s},message:"must NOT have duplicate items (items ## "+s+" 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 Fe.errors=i,0===n}function Ee(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if(!h.call(Pe.properties,a)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},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 a=e.minLength;if("number"!=typeof a||a%1||isNaN(a)){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 a=e.maxLength;if("number"!=typeof a||a%1||isNaN(a)){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 a=e.defaultValue;const s=n;let p=!1,m=null;const l=n;ge(a,{instancePath:t+"/defaultValue",parentData:e,parentDataProperty:"defaultValue",rootData:r})||(i=null===i?ge.errors:i.concat(ge.errors),n=i.length),l===n&&(p=!0,m=0);const u=n;var o;if(ve(a,{instancePath:t+"/defaultValue",parentData:e,parentDataProperty:"defaultValue",rootData:r})||(i=null===i?ve.errors:i.concat(ve.errors),n=i.length),(o=u===n)&&p?(p=!1,m=[m,1]):o&&(p=!0,m=1),p)n=s,null!==i&&(s?i.length=s: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 a=e.numberType;if("string"!=typeof a){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"!==a&&"xsd:long"!==a&&"xsd:int"!==a&&"xsd:double"!==a&&"xsd:float"!==a&&"xsd:byte"!==a&&"xsd:short"!==a){const e={instancePath:t+"/numberType",schemaPath:"#/properties/numberType/enum",keyword:"enum",params:{allowedValues:Pe.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 a=e.temporalType;if("string"!=typeof a){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"!==a&&"xsd:date"!==a&&"xsd:time"!==a){const e={instancePath:t+"/temporalType",schemaPath:"#/properties/temporalType/enum",keyword:"enum",params:{allowedValues:Pe.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&&(De(e.ontologies,{instancePath:t+"/ontologies",parentData:e,parentDataProperty:"ontologies",rootData:r})||(i=null===i?De.errors:i.concat(De.errors),n=i.length)),void 0!==e.valueSets&&(Ve(e.valueSets,{instancePath:t+"/valueSets",parentData:e,parentDataProperty:"valueSets",rootData:r})||(i=null===i?Ve.errors:i.concat(Ve.errors),n=i.length)),void 0!==e.classes&&(Te(e.classes,{instancePath:t+"/classes",parentData:e,parentDataProperty:"classes",rootData:r})||(i=null===i?Te.errors:i.concat(Te.errors),n=i.length)),void 0!==e.branches&&(Ce(e.branches,{instancePath:t+"/branches",parentData:e,parentDataProperty:"branches",rootData:r})||(i=null===i?Ce.errors:i.concat(Ce.errors),n=i.length)),void 0!==e.literals&&(Ie(e.literals,{instancePath:t+"/literals",parentData:e,parentDataProperty:"literals",rootData:r})||(i=null===i?Ie.errors:i.concat(Ie.errors),n=i.length)),void 0!==e.actions&&(Fe(e.actions,{instancePath:t+"/actions",parentData:e,parentDataProperty:"actions",rootData:r})||(i=null===i?Fe.errors:i.concat(Fe.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 Ee.errors=i,0===n}const Se={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"]},Re=new RegExp("^(?!(schema|xsd|pav|oslc|skos|_annotations|\\$))[^.]+$","u");function ze(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("@type"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let a=e["@type"];if("string"!=typeof a){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"!==a){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 ze.errors=i,0===n}function Me(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("@type"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]){let a=e["@type"];if("string"!=typeof a){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"!==a){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 Me.errors=i,0===n}function Ze(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if(!h.call(Se.properties,a)&&!Re.test(a)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.xsd){let a=e.xsd;if("http://www.w3.org/2001/XMLSchema#"!==a){const e={instancePath:t+"/xsd",schemaPath:"#/properties/xsd/enum",keyword:"enum",params:{allowedValues:Se.properties.xsd.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof a){if(!r.validate(a)){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 a=e.pav;if("http://purl.org/pav/"!==a){const e={instancePath:t+"/pav",schemaPath:"#/properties/pav/enum",keyword:"enum",params:{allowedValues:Se.properties.pav.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof a){if(!r.validate(a)){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 a=e.schema;if("http://schema.org/"!==a){const e={instancePath:t+"/schema",schemaPath:"#/properties/schema/enum",keyword:"enum",params:{allowedValues:Se.properties.schema.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof a){if(!r.validate(a)){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 a=e.oslc;if("http://open-services.net/ns/core#"!==a){const e={instancePath:t+"/oslc",schemaPath:"#/properties/oslc/enum",keyword:"enum",params:{allowedValues:Se.properties.oslc.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof a){if(!r.validate(a)){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 a=e.skos;if("http://www.w3.org/2004/02/skos/core#"!==a){const e={instancePath:t+"/skos",schemaPath:"#/properties/skos/enum",keyword:"enum",params:{allowedValues:Se.properties.skos.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof a){if(!r.validate(a)){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 a=e.bibo;if("http://purl.org/ontology/bibo/"!==a){const e={instancePath:t+"/bibo",schemaPath:"#/properties/bibo/enum",keyword:"enum",params:{allowedValues:Se.properties.bibo.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof a){if(!r.validate(a)){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"]&&(ze(e["skos:prefLabel"],{instancePath:t+"/skos:prefLabel",parentData:e,parentDataProperty:"skos:prefLabel",rootData:i})||(n=null===n?ze.errors:n.concat(ze.errors),o=n.length)),void 0!==e["skos:altLabel"]&&(Me(e["skos:altLabel"],{instancePath:t+"/skos:altLabel",parentData:e,parentDataProperty:"skos:altLabel",rootData:i})||(n=null===n?Me.errors:n.concat(Me.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"]&&(w(e["pav:createdBy"],{instancePath:t+"/pav:createdBy",parentData:e,parentDataProperty:"pav:createdBy",rootData:i})||(n=null===n?w.errors:n.concat(w.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 a=e._annotations;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/_annotations",schemaPath:"#/properties/_annotations/enum",keyword:"enum",params:{allowedValues:Se.properties._annotations.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}for(const a in e)if(Re.test(a)){let s=e[a];if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/"+a.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+"/"+a.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 Ze.errors=n,0===o}const Ge={type:"array",minItems:2,maxItems:2,items:[{type:"string",enum:["number"]},{type:"string",enum:["null"]}]};function Je(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a=e.length;if(a>0){let a=e[0];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/0",schemaPath:"#/items/0/enum",keyword:"enum",params:{allowedValues:Ge.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(a>1){let a=e[1];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/1",schemaPath:"#/items/1/enum",keyword:"enum",params:{allowedValues:Ge.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 Je.errors=i,0===n}const We={type:"array",minItems:2,maxItems:2,items:[{type:"string",enum:["array"]},{type:"string",enum:["null"]}]};function Xe(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a=e.length;if(a>0){let a=e[0];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/0",schemaPath:"#/items/0/enum",keyword:"enum",params:{allowedValues:We.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(a>1){let a=e[1];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/1",schemaPath:"#/items/1/enum",keyword:"enum",params:{allowedValues:We.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 Xe.errors=i,0===n}function He(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("type"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let a=e.type;const s=n;let p=!1,m=null;const l=n;ee(a,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?ee.errors:i.concat(ee.errors),n=i.length),(o=l===n)&&(p=!0,m=0);const u=n;if(Je(a,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?Je.errors:i.concat(Je.errors),n=i.length),(o=u===n)&&p)p=!1,m=[m,1];else{o&&(p=!0,m=1);const s=n;var o;Xe(a,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?Xe.errors:i.concat(Xe.errors),n=i.length),(o=s===n)&&p?(p=!1,m=[m,2]):o&&(p=!0,m=2)}if(p)n=s,null!==i&&(s?i.length=s: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 He.errors=i,0===n}function Ke(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("type"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}void 0!==e.type&&(ee(e.type,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?ee.errors:i.concat(ee.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 Ke.errors=i,0===n}function Qe(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("type"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}void 0!==e.type&&(ee(e.type,{instancePath:t+"/type",parentData:e,parentDataProperty:"type",rootData:r})||(i=null===i?ee.errors:i.concat(ee.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 Qe.errors=i,0===n}const Ye={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 et(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("type"!==a&&"minLength"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let a=e.type;if(Array.isArray(a)){if(a.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(a.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=a.length;if(e>0){let e=a[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:Ye.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=a[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:Ye.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 a=e.minLength;if("number"!=typeof a){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!==a){const e={instancePath:t+"/minLength",schemaPath:"#/properties/minLength/enum",keyword:"enum",params:{allowedValues:Ye.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 et.errors=i,0===n}function tt(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("@type"!==a&&"@id"!==a&&"@value"!==a&&"rdfs:label"!==a&&"skos:notation"!==a&&"@language"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}void 0!==e["@type"]&&(Z(e["@type"],{instancePath:t+"/@type",parentData:e,parentDataProperty:"@type",rootData:r})||(i=null===i?Z.errors:i.concat(Z.errors),n=i.length)),void 0!==e["@id"]&&(me(e["@id"],{instancePath:t+"/@id",parentData:e,parentDataProperty:"@id",rootData:r})||(i=null===i?me.errors:i.concat(me.errors),n=i.length)),void 0!==e["@value"]&&(He(e["@value"],{instancePath:t+"/@value",parentData:e,parentDataProperty:"@value",rootData:r})||(i=null===i?He.errors:i.concat(He.errors),n=i.length)),void 0!==e["rdfs:label"]&&(Ke(e["rdfs:label"],{instancePath:t+"/rdfs:label",parentData:e,parentDataProperty:"rdfs:label",rootData:r})||(i=null===i?Ke.errors:i.concat(Ke.errors),n=i.length)),void 0!==e["skos:notation"]&&(Qe(e["skos:notation"],{instancePath:t+"/skos:notation",parentData:e,parentDataProperty:"skos:notation",rootData:r})||(i=null===i?Qe.errors:i.concat(Qe.errors),n=i.length)),void 0!==e["@language"]&&(et(e["@language"],{instancePath:t+"/@language",parentData:e,parentDataProperty:"@language",rootData:r})||(i=null===i?et.errors:i.concat(et.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 at(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 at.errors=i,0===n}const st=new RegExp("^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$","u");function rt(e,{instancePath:t="",parentData:a,parentDataProperty:s,rootData:p=e}={}){let m=null,l=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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}if(void 0!==e.$schema){let a=e.$schema;if("http://json-schema.org/draft-04/schema#"!==a){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:he.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}if("string"==typeof a){if(!r.validate(a)){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),l++}}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),l++}}if(void 0!==e.type){let a=e.type;if("string"!=typeof a){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),l++}if("object"!==a){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:he.properties.type.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}}if(void 0!==e["schema:identifier"]){let a=e["schema:identifier"];if("string"==typeof a){if(n(a)<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),l++}}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),l++}}if(void 0!==e["schema:name"]){let a=e["schema:name"];if("string"==typeof a){if(n(a)<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),l++}}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),l++}}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),l++}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),l++}if(void 0!==e["skos:altLabel"]){let a=e["skos:altLabel"];if(Array.isArray(a)){let e,s=a.length;if(s>1)e:for(;s--;)for(e=s;e--;)if(de(a[s],a[e])){const a={instancePath:t+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/uniqueItems",keyword:"uniqueItems",params:{i:s,j:e},message:"must NOT have duplicate items (items ## "+e+" and "+s+" are identical)"};null===m?m=[a]:m.push(a),l++;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),l++}}if(void 0!==e.title){let a=e.title;if("string"==typeof a){if(n(a)<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),l++}}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),l++}}if(void 0!==e.description){let a=e.description;if("string"==typeof a){if(n(a)<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),l++}}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),l++}}if(void 0!==e._ui&&(fe(e._ui,{instancePath:t+"/_ui",parentData:e,parentDataProperty:"_ui",rootData:p})||(m=null===m?fe.errors:m.concat(fe.errors),l=m.length)),void 0!==e._valueConstraints&&(Ee(e._valueConstraints,{instancePath:t+"/_valueConstraints",parentData:e,parentDataProperty:"_valueConstraints",rootData:p})||(m=null===m?Ee.errors:m.concat(Ee.errors),l=m.length)),void 0!==e["@context"]&&(Ze(e["@context"],{instancePath:t+"/@context",parentData:e,parentDataProperty:"@context",rootData:p})||(m=null===m?Ze.errors:m.concat(Ze.errors),l=m.length)),void 0!==e["@id"]){let a=e["@id"];if("string"!=typeof a&&null!==a){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:he.properties["@id"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),l++}if("string"==typeof a&&!r.validate(a)){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),l++}}if(void 0!==e["@type"]){let a=e["@type"];if("https://schema.metadatacenter.org/core/TemplateField"!==a){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:he.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}if("string"==typeof a){if(!r.validate(a)){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),l++}}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),l++}}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),l=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),l=m.length)),void 0!==e["pav:createdOn"]){let a=e["pav:createdOn"];if("string"!=typeof a&&null!==a){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:he.properties["pav:createdOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),l++}if("string"==typeof a&&!i.validate(a)){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),l++}}if(void 0!==e["pav:createdBy"]){let a=e["pav:createdBy"];if("string"!=typeof a&&null!==a){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:he.properties["pav:createdBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),l++}if("string"==typeof a&&!r.validate(a)){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),l++}}if(void 0!==e["pav:lastUpdatedOn"]){let a=e["pav:lastUpdatedOn"];if("string"!=typeof a&&null!==a){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:he.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),l++}if("string"==typeof a&&!i.validate(a)){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),l++}}if(void 0!==e["oslc:modifiedBy"]){let a=e["oslc:modifiedBy"];if("string"!=typeof a&&null!==a){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:he.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),l++}if("string"==typeof a&&!r.validate(a)){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),l++}}if(void 0!==e["bibo:status"]){let a=e["bibo:status"];if("string"!=typeof a){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),l++}if("bibo:published"!==a&&"bibo:draft"!==a){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:he.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}}if(void 0!==e["pav:version"]){let a=e["pav:version"];if("string"==typeof a){if(!st.test(a)){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),l++}}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),l++}}if(void 0!==e["pav:previousVersion"]){let a=e["pav:previousVersion"];if("string"==typeof a){if(n(a)<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),l++}}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),l++}}if(void 0!==e["pav:derivedFrom"]){let a=e["pav:derivedFrom"];if("string"==typeof a){if(!r.validate(a)){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),l++}}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),l++}}if(void 0!==e["@nest"]&&(at(e["@nest"],{instancePath:t+"/@nest",parentData:e,parentDataProperty:"@nest",rootData:p})||(m=null===m?at.errors:m.concat(at.errors),l=m.length)),void 0!==e.additionalProperties){let a=e.additionalProperties;if("boolean"!=typeof a){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),l++}if(!1!==a){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:he.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}}if(void 0!==e["schema:schemaVersion"]){let a=e["schema:schemaVersion"];if("string"!=typeof a){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),l++}if("1.6.0"!==a){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:he.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===m?m=[e]:m.push(e),l++}return rt.errors=m,0===l}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 ot(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("inputType"!==a&&"valueRecommendationEnabled"!==a&&"hidden"!==a&&"continuePreviousLine"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.inputType){let a=e.inputType;if("string"!=typeof a){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"!==a&&"ext-ror"!==a&&"ext-orcid"!==a&&"ext-pfas"!==a&&"ext-rrid"!==a&&"ext-pubmed"!==a&&"ext-nih-grant-id"!==a&&"ext-doi"!==a){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 ot.errors=i,0===n}const pt={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 mt(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if(!h.call(pt.properties,a)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},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 a=e.multipleChoice;if("boolean"!=typeof a){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!==a){const e={instancePath:t+"/multipleChoice",schemaPath:"#/properties/multipleChoice/enum",keyword:"enum",params:{allowedValues:pt.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 a=e.defaultValue;const s=n;let p=!1,m=null;const l=n;ge(a,{instancePath:t+"/defaultValue",parentData:e,parentDataProperty:"defaultValue",rootData:r})||(i=null===i?ge.errors:i.concat(ge.errors),n=i.length),l===n&&(p=!0,m=0);const u=n;var o;if(ve(a,{instancePath:t+"/defaultValue",parentData:e,parentDataProperty:"defaultValue",rootData:r})||(i=null===i?ve.errors:i.concat(ve.errors),n=i.length),(o=u===n)&&p?(p=!1,m=[m,1]):o&&(p=!0,m=1),p)n=s,null!==i&&(s?i.length=s: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&&(De(e.ontologies,{instancePath:t+"/ontologies",parentData:e,parentDataProperty:"ontologies",rootData:r})||(i=null===i?De.errors:i.concat(De.errors),n=i.length)),void 0!==e.valueSets&&(Ve(e.valueSets,{instancePath:t+"/valueSets",parentData:e,parentDataProperty:"valueSets",rootData:r})||(i=null===i?Ve.errors:i.concat(Ve.errors),n=i.length)),void 0!==e.classes&&(Te(e.classes,{instancePath:t+"/classes",parentData:e,parentDataProperty:"classes",rootData:r})||(i=null===i?Te.errors:i.concat(Te.errors),n=i.length)),void 0!==e.branches&&(Ce(e.branches,{instancePath:t+"/branches",parentData:e,parentDataProperty:"branches",rootData:r})||(i=null===i?Ce.errors:i.concat(Ce.errors),n=i.length)),void 0!==e.literals&&(Ie(e.literals,{instancePath:t+"/literals",parentData:e,parentDataProperty:"literals",rootData:r})||(i=null===i?Ie.errors:i.concat(Ie.errors),n=i.length)),void 0!==e.actions&&(Fe(e.actions,{instancePath:t+"/actions",parentData:e,parentDataProperty:"actions",rootData:r})||(i=null===i?Fe.errors:i.concat(Fe.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 mt.errors=i,0===n}function lt(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("@type"!==a&&"@id"!==a&&"rdfs:label"!==a&&"skos:notation"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}void 0!==e["@type"]&&(Z(e["@type"],{instancePath:t+"/@type",parentData:e,parentDataProperty:"@type",rootData:r})||(i=null===i?Z.errors:i.concat(Z.errors),n=i.length)),void 0!==e["@id"]&&(me(e["@id"],{instancePath:t+"/@id",parentData:e,parentDataProperty:"@id",rootData:r})||(i=null===i?me.errors:i.concat(me.errors),n=i.length)),void 0!==e["rdfs:label"]&&(Ke(e["rdfs:label"],{instancePath:t+"/rdfs:label",parentData:e,parentDataProperty:"rdfs:label",rootData:r})||(i=null===i?Ke.errors:i.concat(Ke.errors),n=i.length)),void 0!==e["skos:notation"]&&(Qe(e["skos:notation"],{instancePath:t+"/skos:notation",parentData:e,parentDataProperty:"skos:notation",rootData:r})||(i=null===i?Qe.errors:i.concat(Qe.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 lt.errors=i,0===n}function ut(e,{instancePath:t="",parentData:a,parentDataProperty:s,rootData:p=e}={}){let m=null,l=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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}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),l++}if(void 0!==e.$schema){let a=e.$schema;if("http://json-schema.org/draft-04/schema#"!==a){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),l++}if("string"==typeof a){if(!r.validate(a)){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),l++}}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),l++}}if(void 0!==e.type){let a=e.type;if("string"!=typeof a){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),l++}if("object"!==a){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),l++}}if(void 0!==e["schema:identifier"]){let a=e["schema:identifier"];if("string"==typeof a){if(n(a)<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),l++}}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),l++}}if(void 0!==e["schema:name"]){let a=e["schema:name"];if("string"==typeof a){if(n(a)<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),l++}}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),l++}}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),l++}if(void 0!==e["skos:altLabel"]){let a=e["skos:altLabel"];if(Array.isArray(a)){let e,s=a.length;if(s>1)e:for(;s--;)for(e=s;e--;)if(de(a[s],a[e])){const a={instancePath:t+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/uniqueItems",keyword:"uniqueItems",params:{i:s,j:e},message:"must NOT have duplicate items (items ## "+e+" and "+s+" are identical)"};null===m?m=[a]:m.push(a),l++;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),l++}}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),l++}if(void 0!==e.title){let a=e.title;if("string"==typeof a){if(n(a)<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),l++}}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),l++}}if(void 0!==e.description){let a=e.description;if("string"==typeof a){if(n(a)<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),l++}}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),l++}}if(void 0!==e._ui&&(ot(e._ui,{instancePath:t+"/_ui",parentData:e,parentDataProperty:"_ui",rootData:p})||(m=null===m?ot.errors:m.concat(ot.errors),l=m.length)),void 0!==e._valueConstraints&&(mt(e._valueConstraints,{instancePath:t+"/_valueConstraints",parentData:e,parentDataProperty:"_valueConstraints",rootData:p})||(m=null===m?mt.errors:m.concat(mt.errors),l=m.length)),void 0!==e["@context"]&&(Ze(e["@context"],{instancePath:t+"/@context",parentData:e,parentDataProperty:"@context",rootData:p})||(m=null===m?Ze.errors:m.concat(Ze.errors),l=m.length)),void 0!==e["@id"]){let a=e["@id"];if("string"!=typeof a&&null!==a){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),l++}if("string"==typeof a&&!r.validate(a)){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),l++}}if(void 0!==e["@type"]){let a=e["@type"];if("https://schema.metadatacenter.org/core/TemplateField"!==a){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),l++}if("string"==typeof a){if(!r.validate(a)){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),l++}}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),l++}}if(void 0!==e.properties&&(lt(e.properties,{instancePath:t+"/properties",parentData:e,parentDataProperty:"properties",rootData:p})||(m=null===m?lt.errors:m.concat(lt.errors),l=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),l=m.length)),void 0!==e["pav:createdOn"]){let a=e["pav:createdOn"];if("string"!=typeof a&&null!==a){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),l++}if("string"==typeof a&&!i.validate(a)){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),l++}}if(void 0!==e["pav:createdBy"]){let a=e["pav:createdBy"];if("string"!=typeof a&&null!==a){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),l++}if("string"==typeof a&&!r.validate(a)){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),l++}}if(void 0!==e["pav:lastUpdatedOn"]){let a=e["pav:lastUpdatedOn"];if("string"!=typeof a&&null!==a){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),l++}if("string"==typeof a&&!i.validate(a)){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),l++}}if(void 0!==e["oslc:modifiedBy"]){let a=e["oslc:modifiedBy"];if("string"!=typeof a&&null!==a){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),l++}if("string"==typeof a&&!r.validate(a)){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),l++}}if(void 0!==e["bibo:status"]){let a=e["bibo:status"];if("string"!=typeof a){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),l++}if("bibo:published"!==a&&"bibo:draft"!==a){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),l++}}if(void 0!==e["pav:version"]){let a=e["pav:version"];if("string"==typeof a){if(!st.test(a)){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),l++}}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),l++}}if(void 0!==e["pav:previousVersion"]){let a=e["pav:previousVersion"];if("string"==typeof a){if(n(a)<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),l++}}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),l++}}if(void 0!==e["pav:derivedFrom"]){let a=e["pav:derivedFrom"];if("string"==typeof a){if(!r.validate(a)){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),l++}}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),l++}}if(void 0!==e.additionalProperties){let a=e.additionalProperties;if("boolean"!=typeof a){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),l++}if(!1!==a){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),l++}}if(void 0!==e["schema:schemaVersion"]){let a=e["schema:schemaVersion"];if("string"!=typeof a){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),l++}if("1.6.0"!==a){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),l++}}}else{const e={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===m?m=[e]:m.push(e),l++}return ut.errors=m,0===l}const ct={$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"]},ht={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 dt(e,{instancePath:t="",parentData:a,parentDataProperty:s,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const a in e)if("width"!==a&&"height"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},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 dt.errors=i,0===n}function yt(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("inputType"!==a&&"_content"!==a&&"_size"!==a&&"hidden"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.inputType){let a=e.inputType;if("string"!=typeof a){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"!==a&&"page-break"!==a&&"richtext"!==a&&"image"!==a&&"youtube"!==a){const e={instancePath:t+"/inputType",schemaPath:"#/properties/inputType/enum",keyword:"enum",params:{allowedValues:ht.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 a=e._content;if("string"!=typeof a&&null!==a){const e={instancePath:t+"/_content",schemaPath:"#/properties/_content/type",keyword:"type",params:{type:ht.properties._content.type},message:"must be string,null"};null===i?i=[e]:i.push(e),n++}}if(void 0!==e._size&&(dt(e._size,{instancePath:t+"/_size",parentData:e,parentDataProperty:"_size",rootData:r})||(i=null===i?dt.errors:i.concat(dt.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 yt.errors=i,0===n}function ft(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a=e.$schema;if("http://json-schema.org/draft-04/schema#"!==a){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:ct.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof a){if(!r.validate(a)){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 a=e.type;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:ct.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 a=e["schema:name"];if("string"==typeof a){if(n(a)<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 a=e.title;if("string"==typeof a){if(n(a)<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 a=e.description;if("string"==typeof a){if(n(a)<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&&(yt(e._ui,{instancePath:t+"/_ui",parentData:e,parentDataProperty:"_ui",rootData:o})||(p=null===p?yt.errors:p.concat(yt.errors),m=p.length)),void 0!==e["@context"]){let a=e["@context"];if(a&&"object"==typeof a&&!Array.isArray(a)){if(void 0===a.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===a.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===a.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!==a.schema){let e=a.schema;if("http://schema.org/"!==e){const e={instancePath:t+"/@context/schema",schemaPath:"#/properties/%40context/properties/schema/enum",keyword:"enum",params:{allowedValues:ct.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!==a.pav){let e=a.pav;if("http://purl.org/pav/"!==e){const e={instancePath:t+"/@context/pav",schemaPath:"#/properties/%40context/properties/pav/enum",keyword:"enum",params:{allowedValues:ct.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!==a.oslc){let e=a.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:ct.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 a=e["@id"];if("string"!=typeof a&&null!==a){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:ct.properties["@id"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof a&&!r.validate(a)){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 a=e["@type"];if("https://schema.metadatacenter.org/core/StaticTemplateField"!==a){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:ct.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof a){if(!r.validate(a)){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 a=e["pav:createdOn"];if("string"!=typeof a&&null!==a){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:ct.properties["pav:createdOn"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof a&&!i.validate(a)){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 a=e["pav:createdBy"];if("string"!=typeof a&&null!==a){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:ct.properties["pav:createdBy"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof a&&!r.validate(a)){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 a=e["pav:lastUpdatedOn"];if("string"!=typeof a&&null!==a){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:ct.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof a&&!i.validate(a)){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 a=e["oslc:modifiedBy"];if("string"!=typeof a&&null!==a){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:ct.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof a&&!r.validate(a)){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 a=e["schema:schemaVersion"];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:ct.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 a=e["bibo:status"];if("string"!=typeof a){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"!==a&&"bibo:draft"!==a){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:ct.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 a=e.additionalProperties;if("boolean"!=typeof a){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!==a){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:ct.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 ft.errors=p,0===m}const Pt={$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 gt(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("order"!==a&&"propertyLabels"!==a&&"propertyDescriptions"!==a&&"header"!==a&&"footer"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},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&&(l(e.propertyDescriptions,{instancePath:t+"/propertyDescriptions",parentData:e,parentDataProperty:"propertyDescriptions",rootData:r})||(i=null===i?l.errors:i.concat(l.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 gt.errors=i,0===n}function vt(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if(!h.call(c.properties,a)&&!d.test(a)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}if(void 0!==e.xsd){let a=e.xsd;if("http://www.w3.org/2001/XMLSchema#"!==a){const e={instancePath:t+"/xsd",schemaPath:"#/properties/xsd/enum",keyword:"enum",params:{allowedValues:c.properties.xsd.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof a){if(!r.validate(a)){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 a=e.pav;if("http://purl.org/pav/"!==a){const e={instancePath:t+"/pav",schemaPath:"#/properties/pav/enum",keyword:"enum",params:{allowedValues:c.properties.pav.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof a){if(!r.validate(a)){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 a=e.schema;if("http://schema.org/"!==a){const e={instancePath:t+"/schema",schemaPath:"#/properties/schema/enum",keyword:"enum",params:{allowedValues:c.properties.schema.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof a){if(!r.validate(a)){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 a=e.oslc;if("http://open-services.net/ns/core#"!==a){const e={instancePath:t+"/oslc",schemaPath:"#/properties/oslc/enum",keyword:"enum",params:{allowedValues:c.properties.oslc.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof a){if(!r.validate(a)){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 a=e.bibo;if("http://purl.org/ontology/bibo/"!==a){const e={instancePath:t+"/bibo",schemaPath:"#/properties/bibo/enum",keyword:"enum",params:{allowedValues:c.properties.bibo.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}if("string"==typeof a){if(!r.validate(a)){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"]&&(w(e["pav:createdBy"],{instancePath:t+"/pav:createdBy",parentData:e,parentDataProperty:"pav:createdBy",rootData:i})||(n=null===n?w.errors:n.concat(w.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 a=e._annotations;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/_annotations",schemaPath:"#/properties/_annotations/enum",keyword:"enum",params:{allowedValues:c.properties._annotations.enum},message:"must be equal to one of the allowed values"};null===n?n=[e]:n.push(e),o++}}for(const a in e)if(d.test(a)){let s=e[a];if("string"==typeof s){if(!r.validate(s)){const e={instancePath:t+"/"+a.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+"/"+a.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 vt.errors=n,0===o}const bt=new RegExp("^(?!(@context|@type|@id|schema|xsd|pav|oslc|rdfs|\\$))[^\\.]+$","u"),wt={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:a,parentDataProperty:s,rootData:r=e}={}){let i=null,n=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const a in e)if(!kt.test(a)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}for(const a in e)kt.test(a)&&(T(e[a],{instancePath:t+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:a,rootData:r})||(i=null===i?T.errors:i.concat(T.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 Dt(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("type"!==a&&"properties"!==a&&"required"!==a&&"additionalProperties"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let a=e.type;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:wt.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 a=e.additionalProperties;const s=n;let o=!1,m=null;const l=n;C(a,{instancePath:t+"/additionalProperties",parentData:e,parentDataProperty:"additionalProperties",rootData:r})||(i=null===i?C.errors:i.concat(C.errors),n=i.length),l===n&&(o=!0,m=0);const u=n;var p;if(I(a,{instancePath:t+"/additionalProperties",parentData:e,parentDataProperty:"additionalProperties",rootData:r})||(i=null===i?I.errors:i.concat(I.errors),n=i.length),(p=u===n)&&o?(o=!1,m=[m,1]):p&&(o=!0,m=1),o)n=s,null!==i&&(s?i.length=s: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 Dt.errors=i,0===n}const Ot={validate:It};function At(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("@type"!==a&&"@id"!==a&&"@context"!==a&&!bt.test(a)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e["@type"]&&(Z(e["@type"],{instancePath:t+"/@type",parentData:e,parentDataProperty:"@type",rootData:r})||(i=null===i?Z.errors:i.concat(Z.errors),n=i.length)),void 0!==e["@id"]){let a=e["@id"];const s=n;let p=!1;const m=n;me(a,{instancePath:t+"/@id",parentData:e,parentDataProperty:"@id",rootData:r})||(i=null===i?me.errors:i.concat(me.errors),n=i.length);var o=m===n;if(p=p||o,!p){const s=n;J(a,{instancePath:t+"/@id",parentData:e,parentDataProperty:"@id",rootData:r})||(i=null===i?J.errors:i.concat(J.errors),n=i.length),o=s===n,p=p||o}if(p)n=s,null!==i&&(s?i.length=s: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"]&&(Dt(e["@context"],{instancePath:t+"/@context",parentData:e,parentDataProperty:"@context",rootData:r})||(i=null===i?Dt.errors:i.concat(Dt.errors),n=i.length));for(const a in e)bt.test(a)&&(Ot.validate(e[a],{instancePath:t+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:a,rootData:r})||(i=null===i?Ot.validate.errors:i.concat(Ot.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 At.errors=i,0===n}const xt={type:"array",minItems:2,uniqueItems:!0,items:[{type:"string",enum:["@context"]},{type:"string",enum:["@id"]}]};function Vt(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a=e.length;if(a>0){let a=e[0];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/0",schemaPath:"#/items/0/enum",keyword:"enum",params:{allowedValues:xt.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(a>1){let a=e[1];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/1",schemaPath:"#/items/1/enum",keyword:"enum",params:{allowedValues:xt.items[1].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}let s,r=e.length;if(r>1)e:for(;r--;)for(s=r;s--;)if(de(e[r],e[s])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:r,j:s},message:"must NOT have duplicate items (items ## "+s+" 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 Vt.errors=i,0===n}const jt={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 Bt(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if("type"!==a&&"properties"!==a&&"required"!==a&&"additionalProperties"!==a){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let a=e.type;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:jt.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 a=e.properties;if(a&&"object"==typeof a&&!Array.isArray(a)){if(void 0===a["@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===a["@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 a)if("@value"!==e&&"@type"!==e){const a={instancePath:t+"/properties",schemaPath:"#/properties/properties/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===i?i=[a]:i.push(a),n++}if(void 0!==a["@value"]&&(He(a["@value"],{instancePath:t+"/properties/@value",parentData:a,parentDataProperty:"@value",rootData:r})||(i=null===i?He.errors:i.concat(He.errors),n=i.length)),void 0!==a["@type"]){let e=a["@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 a in e)if("type"!==a&&"format"!==a){const e={instancePath:t+"/properties/@type",schemaPath:"#/properties/properties/properties/%40type/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}if(void 0!==e.type){let a=e.type;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/properties/@type/type",schemaPath:"#/properties/properties/properties/%40type/properties/type/enum",keyword:"enum",params:{allowedValues:jt.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 a=e.format;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/properties/@type/format",schemaPath:"#/properties/properties/properties/%40type/properties/format/enum",keyword:"enum",params:{allowedValues:jt.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 a=e.additionalProperties;if("boolean"!=typeof a){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!==a){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:jt.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 Bt.errors=i,0===n}function Tt(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a=e.$schema;if("http://json-schema.org/draft-04/schema#"!==a){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:Pt.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof a){if(!r.validate(a)){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 a=e.type;if("string"!=typeof a){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"!==a&&"array"!==a){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Pt.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 a=e["schema:identifier"];if("string"==typeof a){if(n(a)<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 a=e["schema:name"];if("string"==typeof a){if(n(a)<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 a=e["skos:altLabel"];if(Array.isArray(a)){let e,s=a.length;if(s>1)e:for(;s--;)for(e=s;e--;)if(de(a[s],a[e])){const a={instancePath:t+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/uniqueItems",keyword:"uniqueItems",params:{i:s,j:e},message:"must NOT have duplicate items (items ## "+e+" and "+s+" are identical)"};null===p?p=[a]:p.push(a),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 a=e.title;if("string"==typeof a){if(n(a)<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 a=e.description;if("string"==typeof a){if(n(a)<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&&(gt(e._ui,{instancePath:t+"/_ui",parentData:e,parentDataProperty:"_ui",rootData:o})||(p=null===p?gt.errors:p.concat(gt.errors),m=p.length)),void 0!==e["@context"]&&(vt(e["@context"],{instancePath:t+"/@context",parentData:e,parentDataProperty:"@context",rootData:o})||(p=null===p?vt.errors:p.concat(vt.errors),m=p.length)),void 0!==e["@id"]){let a=e["@id"];if("string"!=typeof a&&null!==a){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:Pt.properties["@id"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof a&&!r.validate(a)){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 a=e["@type"];if("https://schema.metadatacenter.org/core/TemplateElement"!==a){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:Pt.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof a){if(!r.validate(a)){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&&(At(e.properties,{instancePath:t+"/properties",parentData:e,parentDataProperty:"properties",rootData:o})||(p=null===p?At.errors:p.concat(At.errors),m=p.length)),void 0!==e.required&&(Vt(e.required,{instancePath:t+"/required",parentData:e,parentDataProperty:"required",rootData:o})||(p=null===p?Vt.errors:p.concat(Vt.errors),m=p.length)),void 0!==e["pav:createdOn"]){let a=e["pav:createdOn"];if("string"!=typeof a&&null!==a){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:Pt.properties["pav:createdOn"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof a&&!i.validate(a)){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 a=e["pav:createdBy"];if("string"!=typeof a&&null!==a){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:Pt.properties["pav:createdBy"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof a&&!r.validate(a)){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 a=e["pav:lastUpdatedOn"];if("string"!=typeof a&&null!==a){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:Pt.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof a&&!i.validate(a)){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 a=e["oslc:modifiedBy"];if("string"!=typeof a&&null!==a){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:Pt.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof a&&!r.validate(a)){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 a=e.additionalProperties;const s=m;let r=!1,i=null;const n=m;C(a,{instancePath:t+"/additionalProperties",parentData:e,parentDataProperty:"additionalProperties",rootData:o})||(p=null===p?C.errors:p.concat(C.errors),m=p.length),n===m&&(r=!0,i=0);const u=m;var l;if(Bt(a,{instancePath:t+"/additionalProperties",parentData:e,parentDataProperty:"additionalProperties",rootData:o})||(p=null===p?Bt.errors:p.concat(Bt.errors),m=p.length),(l=u===m)&&r?(r=!1,i=[i,1]):l&&(r=!0,i=1),r)m=s,null!==p&&(s?p.length=s: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 a=e["schema:schemaVersion"];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:Pt.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 a=e["bibo:status"];if("string"!=typeof a){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"!==a&&"bibo:draft"!==a){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:Pt.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 a=e["pav:version"];if("string"==typeof a){if(!st.test(a)){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 a=e["pav:previousVersion"];if("string"==typeof a){if(n(a)<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 a=e["pav:derivedFrom"];if("string"==typeof a){if(!r.validate(a)){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"]&&(at(e["@nest"],{instancePath:t+"/@nest",parentData:e,parentDataProperty:"@nest",rootData:o})||(p=null===p?at.errors:p.concat(at.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 Tt.errors=p,0===m}const $t={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"]},Lt={$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 Ct(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a=e.$schema;if("http://json-schema.org/draft-04/schema#"!==a){const e={instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:Lt.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof a){if(!r.validate(a)){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 a=e["@id"];if("string"!=typeof a&&null!==a){const e={instancePath:t+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:Lt.properties["@id"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof a&&!r.validate(a)){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 a=e["@type"];if("https://schema.metadatacenter.org/core/TemplateField"!==a){const e={instancePath:t+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:Lt.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===p?p=[e]:p.push(e),m++}if("string"==typeof a){if(!r.validate(a)){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"]&&(Ze(e["@context"],{instancePath:t+"/@context",parentData:e,parentDataProperty:"@context",rootData:o})||(p=null===p?Ze.errors:p.concat(Ze.errors),m=p.length)),void 0!==e.type){let a=e.type;if("string"!=typeof a){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"!==a){const e={instancePath:t+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Lt.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 a=e.title;if("string"==typeof a){if(n(a)<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 a=e.description;if("string"==typeof a){if(n(a)<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 a=e._ui;if(a&&"object"==typeof a&&!Array.isArray(a)){if(void 0===a.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 a)if("inputType"!==e){const a={instancePath:t+"/_ui",schemaPath:"#/properties/_ui/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:e},message:"must NOT have additional properties"};null===p?p=[a]:p.push(a),m++}if(void 0!==a.inputType){let e=a.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:Lt.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 a=e["schema:name"];if("string"==typeof a){if(n(a)<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 a=e["pav:createdOn"];if("string"!=typeof a&&null!==a){const e={instancePath:t+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:Lt.properties["pav:createdOn"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof a&&!i.validate(a)){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 a=e["pav:createdBy"];if("string"!=typeof a&&null!==a){const e={instancePath:t+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:Lt.properties["pav:createdBy"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof a&&!r.validate(a)){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 a=e["pav:lastUpdatedOn"];if("string"!=typeof a&&null!==a){const e={instancePath:t+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:Lt.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof a&&!i.validate(a)){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 a=e["oslc:modifiedBy"];if("string"!=typeof a&&null!==a){const e={instancePath:t+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:Lt.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===p?p=[e]:p.push(e),m++}if("string"==typeof a&&!r.validate(a)){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 a=e["bibo:status"];if("string"!=typeof a){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"!==a&&"bibo:draft"!==a){const e={instancePath:t+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:Lt.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 a=e["pav:version"];if("string"==typeof a){if(!st.test(a)){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 a=e["pav:previousVersion"];if("string"==typeof a){if(n(a)<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 a=e["pav:derivedFrom"];if("string"==typeof a){if(!r.validate(a)){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 a=e.additionalProperties;if("boolean"!=typeof a){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!==a){const e={instancePath:t+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:Lt.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 a=e["schema:schemaVersion"];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:Lt.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 Ct.errors=p,0===m}function Nt(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a=e.type;if("string"!=typeof a){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"!==a){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===i?i=[e]:i.push(e),n++}}if(void 0!==e.minItems){let a=e.minItems;if("number"!=typeof a||a%1||isNaN(a)){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 a&&(a<0||isNaN(a))){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 a=e.items;const s=n;let p=!1,m=null;const l=n;rt(a,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:r})||(i=null===i?rt.errors:i.concat(rt.errors),n=i.length),(o=l===n)&&(p=!0,m=0);const u=n;if(ut(a,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:r})||(i=null===i?ut.errors:i.concat(ut.errors),n=i.length),(o=u===n)&&p)p=!1,m=[m,1];else{o&&(p=!0,m=1);const s=n;if(Ct(a,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:r})||(i=null===i?Ct.errors:i.concat(Ct.errors),n=i.length),(o=s===n)&&p)p=!1,m=[m,2];else{o&&(p=!0,m=2);const s=n;var o;Tt(a,{instancePath:t+"/items",parentData:e,parentDataProperty:"items",rootData:r})||(i=null===i?Tt.errors:i.concat(Tt.errors),n=i.length),(o=s===n)&&p?(p=!1,m=[m,3]):o&&(p=!0,m=3)}}if(p)n=s,null!==i&&(s?i.length=s: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 Nt.errors=i,0===n}function It(e,{instancePath:t="",parentData:a,parentDataProperty:s,rootData:r=e}={}){let i=null,n=0;const o=n;let p=!1,m=null;const l=n;rt(e,{instancePath:t,parentData:a,parentDataProperty:s,rootData:r})||(i=null===i?rt.errors:i.concat(rt.errors),n=i.length),(c=l===n)&&(p=!0,m=0);const u=n;if(ut(e,{instancePath:t,parentData:a,parentDataProperty:s,rootData:r})||(i=null===i?ut.errors:i.concat(ut.errors),n=i.length),(c=u===n)&&p)p=!1,m=[m,1];else{c&&(p=!0,m=1);const o=n;if(ft(e,{instancePath:t,parentData:a,parentDataProperty:s,rootData:r})||(i=null===i?ft.errors:i.concat(ft.errors),n=i.length),(c=o===n)&&p)p=!1,m=[m,2];else{c&&(p=!0,m=2);const o=n;if(Tt(e,{instancePath:t,parentData:a,parentDataProperty:s,rootData:r})||(i=null===i?Tt.errors:i.concat(Tt.errors),n=i.length),(c=o===n)&&p)p=!1,m=[m,3];else{c&&(p=!0,m=3);const o=n;var c;Nt(e,{instancePath:t,parentData:a,parentDataProperty:s,rootData:r})||(i=null===i?Nt.errors:i.concat(Nt.errors),n=i.length),(c=o===n)&&p?(p=!1,m=[m,4]):c&&(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 It.errors=i,0===n}function _t(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a in e)if(!h.call(O,a)&&!A.test(a)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===i?i=[e]:i.push(e),n++}void 0!==e["@context"]&&(_(e["@context"],{instancePath:t+"/@context",parentData:e,parentDataProperty:"@context",rootData:r})||(i=null===i?_.errors:i.concat(_.errors),n=i.length)),void 0!==e["@type"]&&(Z(e["@type"],{instancePath:t+"/@type",parentData:e,parentDataProperty:"@type",rootData:r})||(i=null===i?Z.errors:i.concat(Z.errors),n=i.length)),void 0!==e["@id"]&&(J(e["@id"],{instancePath:t+"/@id",parentData:e,parentDataProperty:"@id",rootData:r})||(i=null===i?J.errors:i.concat(J.errors),n=i.length)),void 0!==e["schema:name"]&&(X(e["schema:name"],{instancePath:t+"/schema:name",parentData:e,parentDataProperty:"schema:name",rootData:r})||(i=null===i?X.errors:i.concat(X.errors),n=i.length)),void 0!==e["schema:description"]&&(K(e["schema:description"],{instancePath:t+"/schema:description",parentData:e,parentDataProperty:"schema:description",rootData:r})||(i=null===i?K.errors:i.concat(K.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"]&&(se(e["pav:createdBy"],{instancePath:t+"/pav:createdBy",parentData:e,parentDataProperty:"pav:createdBy",rootData:r})||(i=null===i?se.errors:i.concat(se.errors),n=i.length)),void 0!==e["schema:isBasedOn"]&&(re(e["schema:isBasedOn"],{instancePath:t+"/schema:isBasedOn",parentData:e,parentDataProperty:"schema:isBasedOn",rootData:r})||(i=null===i?re.errors:i.concat(re.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"]&&(oe(e["pav:derivedFrom"],{instancePath:t+"/pav:derivedFrom",parentData:e,parentDataProperty:"pav:derivedFrom",rootData:r})||(i=null===i?oe.errors:i.concat(oe.errors),n=i.length)),void 0!==e._annotations&&(ce(e._annotations,{instancePath:t+"/_annotations",parentData:e,parentDataProperty:"_annotations",rootData:r})||(i=null===i?ce.errors:i.concat(ce.errors),n=i.length));for(const a in e)A.test(a)&&(It(e[a],{instancePath:t+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:a,rootData:r})||(i=null===i?It.errors:i.concat(It.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 _t.errors=i,0===n}const Ut={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 Ft(e,{instancePath:t="",parentData:a,parentDataProperty:s,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 a=e.length;if(a>0){let a=e[0];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/0",schemaPath:"#/items/0/enum",keyword:"enum",params:{allowedValues:Ut.items[0].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(a>1){let a=e[1];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/1",schemaPath:"#/items/1/enum",keyword:"enum",params:{allowedValues:Ut.items[1].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(a>2){let a=e[2];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/2",schemaPath:"#/items/2/enum",keyword:"enum",params:{allowedValues:Ut.items[2].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(a>3){let a=e[3];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/3",schemaPath:"#/items/3/enum",keyword:"enum",params:{allowedValues:Ut.items[3].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(a>4){let a=e[4];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/4",schemaPath:"#/items/4/enum",keyword:"enum",params:{allowedValues:Ut.items[4].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(a>5){let a=e[5];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/5",schemaPath:"#/items/5/enum",keyword:"enum",params:{allowedValues:Ut.items[5].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(a>6){let a=e[6];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/6",schemaPath:"#/items/6/enum",keyword:"enum",params:{allowedValues:Ut.items[6].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(a>7){let a=e[7];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/7",schemaPath:"#/items/7/enum",keyword:"enum",params:{allowedValues:Ut.items[7].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}if(a>8){let a=e[8];if("string"!=typeof a){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"!==a){const e={instancePath:t+"/8",schemaPath:"#/items/8/enum",keyword:"enum",params:{allowedValues:Ut.items[8].enum},message:"must be equal to one of the allowed values"};null===i?i=[e]:i.push(e),n++}}let s,r=e.length;if(r>1)e:for(;r--;)for(s=r;s--;)if(de(e[r],e[s])){const e={instancePath:t,schemaPath:"#/uniqueItems",keyword:"uniqueItems",params:{i:r,j:s},message:"must NOT have duplicate items (items ## "+s+" 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 Ft.errors=i,0===n}const Et=new RegExp("^.+$","u");function St(e,{instancePath:t="",parentData:a,parentDataProperty:s,rootData:i=e}={}){let n=null,o=0;if(e&&"object"==typeof e&&!Array.isArray(e)){for(const a in e)if(!Et.test(a)){const e={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};null===n?n=[e]:n.push(e),o++}for(const a in e)if(Et.test(a)){let s=e[a];const i=o;let m=!1,l=null;const u=o;if(s&&"object"==typeof s&&!Array.isArray(s)){for(const e in s)if("@id"!==e){const s={instancePath:t+"/"+a.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=[s]:n.push(s),o++}if(void 0!==s["@id"]){let e=s["@id"];if("string"==typeof e){if(!r.validate(e)){const e={instancePath:t+"/"+a.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+"/"+a.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+"/"+a.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++}u===o&&(m=!0,l=0);const c=o;if(s&&"object"==typeof s&&!Array.isArray(s)){for(const e in s)if("@value"!==e){const s={instancePath:t+"/"+a.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=[s]:n.push(s),o++}if(void 0!==s["@value"]&&"string"!=typeof s["@value"]){const e={instancePath:t+"/"+a.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+"/"+a.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=c===o)&&m?(m=!1,l=[l,1]):p&&(m=!0,l=1),m)o=i,null!==n&&(i?n.length=i:n=null);else{const e={instancePath:t+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/patternProperties/%5E.%2B%24/oneOf",keyword:"oneOf",params:{passingSchemas:l},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 St.errors=n,0===o}t.element=function e(t,{instancePath:a="",parentData:s,parentDataProperty:o,rootData:p=t}={}){let m=null,l=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.$schema){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===m?m=[e]:m.push(e),l++}if(void 0===t.type){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===m?m=[e]:m.push(e),l++}if(void 0===t.title){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===m?m=[e]:m.push(e),l++}if(void 0===t.description){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===m?m=[e]:m.push(e),l++}if(void 0===t._ui){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["@context"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["@id"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["@type"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===m?m=[e]:m.push(e),l++}if(void 0===t.properties){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===m?m=[e]:m.push(e),l++}if(void 0===t.required){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"required"},message:"must have required property 'required'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["pav:createdOn"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["pav:createdBy"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["pav:lastUpdatedOn"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["oslc:modifiedBy"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["schema:schemaVersion"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["schema:name"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["schema:description"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===m?m=[e]:m.push(e),l++}if(void 0!==t.$schema){let e=t.$schema;if("http://json-schema.org/draft-04/schema#"!==e){const e={instancePath:a+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:Pt.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:a+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),l++}}else{const e={instancePath:a+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:a+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}if("object"!==e&&"array"!==e){const e={instancePath:a+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Pt.properties.type.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.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:a+"/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),l++}}else{const e={instancePath:a+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.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:a+"/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),l++}}else{const e={instancePath:a+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t["schema:description"]&&"string"!=typeof t["schema:description"]){const e={instancePath:a+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}if(void 0!==t["skos:prefLabel"]&&"string"!=typeof t["skos:prefLabel"]){const e={instancePath:a+"/skos:prefLabel",schemaPath:"#/properties/skos%3AprefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}if(void 0!==t["skos:altLabel"]){let e=t["skos:altLabel"];if(Array.isArray(e)){let t,s=e.length;if(s>1)e:for(;s--;)for(t=s;t--;)if(de(e[s],e[t])){const e={instancePath:a+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/uniqueItems",keyword:"uniqueItems",params:{i:s,j:t},message:"must NOT have duplicate items (items ## "+t+" and "+s+" are identical)"};null===m?m=[e]:m.push(e),l++;break e}}else{const e={instancePath:a+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/type",keyword:"type",params:{type:"array"},message:"must be array"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t.title){let e=t.title;if("string"==typeof e){if(n(e)<1){const e={instancePath:a+"/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),l++}}else{const e={instancePath:a+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t.description){let e=t.description;if("string"==typeof e){if(n(e)<1){const e={instancePath:a+"/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),l++}}else{const e={instancePath:a+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t._ui&&(gt(t._ui,{instancePath:a+"/_ui",parentData:t,parentDataProperty:"_ui",rootData:p})||(m=null===m?gt.errors:m.concat(gt.errors),l=m.length)),void 0!==t["@context"]&&(vt(t["@context"],{instancePath:a+"/@context",parentData:t,parentDataProperty:"@context",rootData:p})||(m=null===m?vt.errors:m.concat(vt.errors),l=m.length)),void 0!==t["@id"]){let e=t["@id"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:Pt.properties["@id"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),l++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:a+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),l++}}if(void 0!==t["@type"]){let e=t["@type"];if("https://schema.metadatacenter.org/core/TemplateElement"!==e){const e={instancePath:a+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:Pt.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:a+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),l++}}else{const e={instancePath:a+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t.properties&&(At(t.properties,{instancePath:a+"/properties",parentData:t,parentDataProperty:"properties",rootData:p})||(m=null===m?At.errors:m.concat(At.errors),l=m.length)),void 0!==t.required&&(Vt(t.required,{instancePath:a+"/required",parentData:t,parentDataProperty:"required",rootData:p})||(m=null===m?Vt.errors:m.concat(Vt.errors),l=m.length)),void 0!==t["pav:createdOn"]){let e=t["pav:createdOn"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:Pt.properties["pav:createdOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),l++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:a+"/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),l++}}if(void 0!==t["pav:createdBy"]){let e=t["pav:createdBy"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:Pt.properties["pav:createdBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),l++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:a+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),l++}}if(void 0!==t["pav:lastUpdatedOn"]){let e=t["pav:lastUpdatedOn"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:Pt.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),l++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:a+"/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),l++}}if(void 0!==t["oslc:modifiedBy"]){let e=t["oslc:modifiedBy"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:Pt.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),l++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:a+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),l++}}if(void 0!==t.additionalProperties){let e=t.additionalProperties;const s=l;let r=!1,i=null;const n=l;C(e,{instancePath:a+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:p})||(m=null===m?C.errors:m.concat(C.errors),l=m.length),n===l&&(r=!0,i=0);const o=l;var u;if(Bt(e,{instancePath:a+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:p})||(m=null===m?Bt.errors:m.concat(Bt.errors),l=m.length),(u=o===l)&&r?(r=!1,i=[i,1]):u&&(r=!0,i=1),r)l=s,null!==m&&(s?m.length=s:m=null);else{const e={instancePath:a+"/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),l++}}if(void 0!==t["schema:schemaVersion"]){let e=t["schema:schemaVersion"];if("string"!=typeof e){const e={instancePath:a+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}if("1.6.0"!==e){const e={instancePath:a+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:Pt.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t["bibo:status"]){let e=t["bibo:status"];if("string"!=typeof e){const e={instancePath:a+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}if("bibo:published"!==e&&"bibo:draft"!==e){const e={instancePath:a+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:Pt.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t["pav:version"]){let e=t["pav:version"];if("string"==typeof e){if(!st.test(e)){const e={instancePath:a+"/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),l++}}else{const e={instancePath:a+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.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:a+"/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),l++}}else{const e={instancePath:a+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.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:a+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),l++}}else{const e={instancePath:a+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}}void 0!==t["@nest"]&&(at(t["@nest"],{instancePath:a+"/@nest",parentData:t,parentDataProperty:"@nest",rootData:p})||(m=null===m?at.errors:m.concat(at.errors),l=m.length))}else{const e={instancePath:a,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===m?m=[e]:m.push(e),l++}return e.errors=m,0===l},t.literal=function e(t,{instancePath:a="",parentData:s,parentDataProperty:p,rootData:m=t}={}){let l=null,u=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.$schema){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===l?l=[e]:l.push(e),u++}if(void 0===t.type){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===l?l=[e]:l.push(e),u++}if(void 0===t.title){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===l?l=[e]:l.push(e),u++}if(void 0===t.description){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===l?l=[e]:l.push(e),u++}if(void 0===t._ui){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===l?l=[e]:l.push(e),u++}if(void 0===t._valueConstraints){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_valueConstraints"},message:"must have required property '_valueConstraints'"};null===l?l=[e]:l.push(e),u++}if(void 0===t["@context"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===l?l=[e]:l.push(e),u++}if(void 0===t["@id"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===l?l=[e]:l.push(e),u++}if(void 0===t["@type"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===l?l=[e]:l.push(e),u++}if(void 0===t.properties){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===l?l=[e]:l.push(e),u++}if(void 0===t.additionalProperties){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===l?l=[e]:l.push(e),u++}if(void 0===t["pav:createdOn"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===l?l=[e]:l.push(e),u++}if(void 0===t["pav:createdBy"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===l?l=[e]:l.push(e),u++}if(void 0===t["pav:lastUpdatedOn"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===l?l=[e]:l.push(e),u++}if(void 0===t["oslc:modifiedBy"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===l?l=[e]:l.push(e),u++}if(void 0===t["schema:schemaVersion"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===l?l=[e]:l.push(e),u++}if(void 0===t["schema:name"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===l?l=[e]:l.push(e),u++}if(void 0===t["schema:description"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===l?l=[e]:l.push(e),u++}if(void 0!==t.$schema){let e=t.$schema;if("http://json-schema.org/draft-04/schema#"!==e){const e={instancePath:a+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:he.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===l?l=[e]:l.push(e),u++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:a+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===l?l=[e]:l.push(e),u++}}else{const e={instancePath:a+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}}if(void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:a+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}if("object"!==e){const e={instancePath:a+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:he.properties.type.enum},message:"must be equal to one of the allowed values"};null===l?l=[e]:l.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:a+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===l?l=[e]:l.push(e),u++}}else{const e={instancePath:a+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.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:a+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===l?l=[e]:l.push(e),u++}}else{const e={instancePath:a+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}}if(void 0!==t["schema:description"]&&"string"!=typeof t["schema:description"]){const e={instancePath:a+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}if(void 0!==t["skos:prefLabel"]&&"string"!=typeof t["skos:prefLabel"]){const e={instancePath:a+"/skos:prefLabel",schemaPath:"#/properties/skos%3AprefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}if(void 0!==t["skos:altLabel"]){let e=t["skos:altLabel"];if(Array.isArray(e)){let t,s=e.length;if(s>1)e:for(;s--;)for(t=s;t--;)if(de(e[s],e[t])){const e={instancePath:a+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/uniqueItems",keyword:"uniqueItems",params:{i:s,j:t},message:"must NOT have duplicate items (items ## "+t+" and "+s+" are identical)"};null===l?l=[e]:l.push(e),u++;break e}}else{const e={instancePath:a+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/type",keyword:"type",params:{type:"array"},message:"must be array"};null===l?l=[e]:l.push(e),u++}}if(void 0!==t.title){let e=t.title;if("string"==typeof e){if(n(e)<1){const e={instancePath:a+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===l?l=[e]:l.push(e),u++}}else{const e={instancePath:a+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}}if(void 0!==t.description){let e=t.description;if("string"==typeof e){if(n(e)<1){const e={instancePath:a+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===l?l=[e]:l.push(e),u++}}else{const e={instancePath:a+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}}if(void 0!==t._ui&&(fe(t._ui,{instancePath:a+"/_ui",parentData:t,parentDataProperty:"_ui",rootData:m})||(l=null===l?fe.errors:l.concat(fe.errors),u=l.length)),void 0!==t._valueConstraints&&(Ee(t._valueConstraints,{instancePath:a+"/_valueConstraints",parentData:t,parentDataProperty:"_valueConstraints",rootData:m})||(l=null===l?Ee.errors:l.concat(Ee.errors),u=l.length)),void 0!==t["@context"]&&(Ze(t["@context"],{instancePath:a+"/@context",parentData:t,parentDataProperty:"@context",rootData:m})||(l=null===l?Ze.errors:l.concat(Ze.errors),u=l.length)),void 0!==t["@id"]){let e=t["@id"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:he.properties["@id"].type},message:"must be string,null"};null===l?l=[e]:l.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:a+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===l?l=[e]:l.push(e),u++}}if(void 0!==t["@type"]){let e=t["@type"];if("https://schema.metadatacenter.org/core/TemplateField"!==e){const e={instancePath:a+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:he.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===l?l=[e]:l.push(e),u++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:a+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===l?l=[e]:l.push(e),u++}}else{const e={instancePath:a+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}}if(void 0!==t.properties&&(tt(t.properties,{instancePath:a+"/properties",parentData:t,parentDataProperty:"properties",rootData:m})||(l=null===l?tt.errors:l.concat(tt.errors),u=l.length)),void 0!==t.required&&(o(t.required,{instancePath:a+"/required",parentData:t,parentDataProperty:"required",rootData:m})||(l=null===l?o.errors:l.concat(o.errors),u=l.length)),void 0!==t["pav:createdOn"]){let e=t["pav:createdOn"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:he.properties["pav:createdOn"].type},message:"must be string,null"};null===l?l=[e]:l.push(e),u++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:a+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===l?l=[e]:l.push(e),u++}}if(void 0!==t["pav:createdBy"]){let e=t["pav:createdBy"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:he.properties["pav:createdBy"].type},message:"must be string,null"};null===l?l=[e]:l.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:a+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===l?l=[e]:l.push(e),u++}}if(void 0!==t["pav:lastUpdatedOn"]){let e=t["pav:lastUpdatedOn"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:he.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===l?l=[e]:l.push(e),u++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:a+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===l?l=[e]:l.push(e),u++}}if(void 0!==t["oslc:modifiedBy"]){let e=t["oslc:modifiedBy"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:he.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===l?l=[e]:l.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:a+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===l?l=[e]:l.push(e),u++}}if(void 0!==t["bibo:status"]){let e=t["bibo:status"];if("string"!=typeof e){const e={instancePath:a+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}if("bibo:published"!==e&&"bibo:draft"!==e){const e={instancePath:a+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:he.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===l?l=[e]:l.push(e),u++}}if(void 0!==t["pav:version"]){let e=t["pav:version"];if("string"==typeof e){if(!st.test(e)){const e={instancePath:a+"/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===l?l=[e]:l.push(e),u++}}else{const e={instancePath:a+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.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:a+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===l?l=[e]:l.push(e),u++}}else{const e={instancePath:a+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.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:a+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===l?l=[e]:l.push(e),u++}}else{const e={instancePath:a+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}}if(void 0!==t["@nest"]&&(at(t["@nest"],{instancePath:a+"/@nest",parentData:t,parentDataProperty:"@nest",rootData:m})||(l=null===l?at.errors:l.concat(at.errors),u=l.length)),void 0!==t.additionalProperties){let e=t.additionalProperties;if("boolean"!=typeof e){const e={instancePath:a+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===l?l=[e]:l.push(e),u++}if(!1!==e){const e={instancePath:a+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:he.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===l?l=[e]:l.push(e),u++}}if(void 0!==t["schema:schemaVersion"]){let e=t["schema:schemaVersion"];if("string"!=typeof e){const e={instancePath:a+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}if("1.6.0"!==e){const e={instancePath:a+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:he.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===l?l=[e]:l.push(e),u++}}}else{const e={instancePath:a,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===l?l=[e]:l.push(e),u++}return e.errors=l,0===u},t.iri=function e(t,{instancePath:a="",parentData:s,parentDataProperty:p,rootData:m=t}={}){let l=null,u=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.$schema){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===l?l=[e]:l.push(e),u++}if(void 0===t.type){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===l?l=[e]:l.push(e),u++}if(void 0===t.title){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===l?l=[e]:l.push(e),u++}if(void 0===t.description){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===l?l=[e]:l.push(e),u++}if(void 0===t._ui){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===l?l=[e]:l.push(e),u++}if(void 0===t._valueConstraints){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_valueConstraints"},message:"must have required property '_valueConstraints'"};null===l?l=[e]:l.push(e),u++}if(void 0===t["@context"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===l?l=[e]:l.push(e),u++}if(void 0===t["@id"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===l?l=[e]:l.push(e),u++}if(void 0===t["@type"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===l?l=[e]:l.push(e),u++}if(void 0===t.properties){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"},message:"must have required property 'properties'"};null===l?l=[e]:l.push(e),u++}if(void 0===t.additionalProperties){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===l?l=[e]:l.push(e),u++}if(void 0===t["pav:createdOn"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===l?l=[e]:l.push(e),u++}if(void 0===t["pav:createdBy"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===l?l=[e]:l.push(e),u++}if(void 0===t["pav:lastUpdatedOn"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===l?l=[e]:l.push(e),u++}if(void 0===t["oslc:modifiedBy"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===l?l=[e]:l.push(e),u++}if(void 0===t["schema:schemaVersion"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===l?l=[e]:l.push(e),u++}if(void 0===t["schema:name"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===l?l=[e]:l.push(e),u++}if(void 0===t["schema:description"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===l?l=[e]:l.push(e),u++}if(void 0!==t.$schema){let e=t.$schema;if("http://json-schema.org/draft-04/schema#"!==e){const e={instancePath:a+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:it.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===l?l=[e]:l.push(e),u++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:a+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===l?l=[e]:l.push(e),u++}}else{const e={instancePath:a+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}}if(void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:a+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}if("object"!==e){const e={instancePath:a+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:it.properties.type.enum},message:"must be equal to one of the allowed values"};null===l?l=[e]:l.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:a+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===l?l=[e]:l.push(e),u++}}else{const e={instancePath:a+"/schema:identifier",schemaPath:"#/properties/schema%3Aidentifier/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.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:a+"/schema:name",schemaPath:"#/properties/schema%3Aname/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===l?l=[e]:l.push(e),u++}}else{const e={instancePath:a+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}}if(void 0!==t["skos:prefLabel"]&&"string"!=typeof t["skos:prefLabel"]){const e={instancePath:a+"/skos:prefLabel",schemaPath:"#/properties/skos%3AprefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}if(void 0!==t["skos:altLabel"]){let e=t["skos:altLabel"];if(Array.isArray(e)){let t,s=e.length;if(s>1)e:for(;s--;)for(t=s;t--;)if(de(e[s],e[t])){const e={instancePath:a+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/uniqueItems",keyword:"uniqueItems",params:{i:s,j:t},message:"must NOT have duplicate items (items ## "+t+" and "+s+" are identical)"};null===l?l=[e]:l.push(e),u++;break e}}else{const e={instancePath:a+"/skos:altLabel",schemaPath:"#/properties/skos%3AaltLabel/type",keyword:"type",params:{type:"array"},message:"must be array"};null===l?l=[e]:l.push(e),u++}}if(void 0!==t["schema:description"]&&"string"!=typeof t["schema:description"]){const e={instancePath:a+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}if(void 0!==t.title){let e=t.title;if("string"==typeof e){if(n(e)<1){const e={instancePath:a+"/title",schemaPath:"#/properties/title/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===l?l=[e]:l.push(e),u++}}else{const e={instancePath:a+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}}if(void 0!==t.description){let e=t.description;if("string"==typeof e){if(n(e)<1){const e={instancePath:a+"/description",schemaPath:"#/properties/description/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===l?l=[e]:l.push(e),u++}}else{const e={instancePath:a+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}}if(void 0!==t._ui&&(ot(t._ui,{instancePath:a+"/_ui",parentData:t,parentDataProperty:"_ui",rootData:m})||(l=null===l?ot.errors:l.concat(ot.errors),u=l.length)),void 0!==t._valueConstraints&&(mt(t._valueConstraints,{instancePath:a+"/_valueConstraints",parentData:t,parentDataProperty:"_valueConstraints",rootData:m})||(l=null===l?mt.errors:l.concat(mt.errors),u=l.length)),void 0!==t["@context"]&&(Ze(t["@context"],{instancePath:a+"/@context",parentData:t,parentDataProperty:"@context",rootData:m})||(l=null===l?Ze.errors:l.concat(Ze.errors),u=l.length)),void 0!==t["@id"]){let e=t["@id"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:it.properties["@id"].type},message:"must be string,null"};null===l?l=[e]:l.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:a+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===l?l=[e]:l.push(e),u++}}if(void 0!==t["@type"]){let e=t["@type"];if("https://schema.metadatacenter.org/core/TemplateField"!==e){const e={instancePath:a+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:it.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===l?l=[e]:l.push(e),u++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:a+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===l?l=[e]:l.push(e),u++}}else{const e={instancePath:a+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}}if(void 0!==t.properties&&(lt(t.properties,{instancePath:a+"/properties",parentData:t,parentDataProperty:"properties",rootData:m})||(l=null===l?lt.errors:l.concat(lt.errors),u=l.length)),void 0!==t.required&&(o(t.required,{instancePath:a+"/required",parentData:t,parentDataProperty:"required",rootData:m})||(l=null===l?o.errors:l.concat(o.errors),u=l.length)),void 0!==t["pav:createdOn"]){let e=t["pav:createdOn"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:it.properties["pav:createdOn"].type},message:"must be string,null"};null===l?l=[e]:l.push(e),u++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:a+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===l?l=[e]:l.push(e),u++}}if(void 0!==t["pav:createdBy"]){let e=t["pav:createdBy"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:it.properties["pav:createdBy"].type},message:"must be string,null"};null===l?l=[e]:l.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:a+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===l?l=[e]:l.push(e),u++}}if(void 0!==t["pav:lastUpdatedOn"]){let e=t["pav:lastUpdatedOn"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:it.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===l?l=[e]:l.push(e),u++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:a+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/format",keyword:"format",params:{format:"date-time"},message:'must match format "date-time"'};null===l?l=[e]:l.push(e),u++}}if(void 0!==t["oslc:modifiedBy"]){let e=t["oslc:modifiedBy"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:it.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===l?l=[e]:l.push(e),u++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:a+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===l?l=[e]:l.push(e),u++}}if(void 0!==t["bibo:status"]){let e=t["bibo:status"];if("string"!=typeof e){const e={instancePath:a+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}if("bibo:published"!==e&&"bibo:draft"!==e){const e={instancePath:a+"/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===l?l=[e]:l.push(e),u++}}if(void 0!==t["pav:version"]){let e=t["pav:version"];if("string"==typeof e){if(!st.test(e)){const e={instancePath:a+"/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===l?l=[e]:l.push(e),u++}}else{const e={instancePath:a+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.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:a+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/minLength",keyword:"minLength",params:{limit:1},message:"must NOT have fewer than 1 characters"};null===l?l=[e]:l.push(e),u++}}else{const e={instancePath:a+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.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:a+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===l?l=[e]:l.push(e),u++}}else{const e={instancePath:a+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}}if(void 0!==t.additionalProperties){let e=t.additionalProperties;if("boolean"!=typeof e){const e={instancePath:a+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===l?l=[e]:l.push(e),u++}if(!1!==e){const e={instancePath:a+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:it.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===l?l=[e]:l.push(e),u++}}if(void 0!==t["schema:schemaVersion"]){let e=t["schema:schemaVersion"];if("string"!=typeof e){const e={instancePath:a+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===l?l=[e]:l.push(e),u++}if("1.6.0"!==e){const e={instancePath:a+"/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===l?l=[e]:l.push(e),u++}}}else{const e={instancePath:a,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===l?l=[e]:l.push(e),u++}return e.errors=l,0===u},t.staticField=function e(t,{instancePath:a="",parentData:s,parentDataProperty:o,rootData:p=t}={}){let m=null,l=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.$schema){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===m?m=[e]:m.push(e),l++}if(void 0===t.type){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===m?m=[e]:m.push(e),l++}if(void 0===t.title){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===m?m=[e]:m.push(e),l++}if(void 0===t.description){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===m?m=[e]:m.push(e),l++}if(void 0===t._ui){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["@id"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["@type"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===m?m=[e]:m.push(e),l++}if(void 0===t.additionalProperties){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["pav:createdOn"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["pav:createdBy"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["pav:lastUpdatedOn"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["oslc:modifiedBy"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["schema:name"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["schema:description"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["schema:schemaVersion"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===m?m=[e]:m.push(e),l++}if(void 0!==t.$schema){let e=t.$schema;if("http://json-schema.org/draft-04/schema#"!==e){const e={instancePath:a+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:Rt.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:a+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),l++}}else{const e={instancePath:a+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:a+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}if("object"!==e){const e={instancePath:a+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Rt.properties.type.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.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:a+"/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),l++}}else{const e={instancePath:a+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t["schema:description"]&&"string"!=typeof t["schema:description"]){const e={instancePath:a+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}if(void 0!==t["skos:prefLabel"]&&"string"!=typeof t["skos:prefLabel"]){const e={instancePath:a+"/skos:prefLabel",schemaPath:"#/properties/skos%3AprefLabel/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}if(void 0!==t.title){let e=t.title;if("string"==typeof e){if(n(e)<1){const e={instancePath:a+"/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),l++}}else{const e={instancePath:a+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t.description){let e=t.description;if("string"==typeof e){if(n(e)<1){const e={instancePath:a+"/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),l++}}else{const e={instancePath:a+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t._ui&&(yt(t._ui,{instancePath:a+"/_ui",parentData:t,parentDataProperty:"_ui",rootData:p})||(m=null===m?yt.errors:m.concat(yt.errors),l=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:a+"/@context",schemaPath:"#/properties/%40context/required",keyword:"required",params:{missingProperty:"schema"},message:"must have required property 'schema'"};null===m?m=[e]:m.push(e),l++}if(void 0===e.pav){const e={instancePath:a+"/@context",schemaPath:"#/properties/%40context/required",keyword:"required",params:{missingProperty:"pav"},message:"must have required property 'pav'"};null===m?m=[e]:m.push(e),l++}if(void 0===e.oslc){const e={instancePath:a+"/@context",schemaPath:"#/properties/%40context/required",keyword:"required",params:{missingProperty:"oslc"},message:"must have required property 'oslc'"};null===m?m=[e]:m.push(e),l++}if(void 0!==e.schema){let t=e.schema;if("http://schema.org/"!==t){const e={instancePath:a+"/@context/schema",schemaPath:"#/properties/%40context/properties/schema/enum",keyword:"enum",params:{allowedValues:Rt.properties["@context"].properties.schema.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}if("string"==typeof t){if(!r.validate(t)){const e={instancePath:a+"/@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),l++}}else{const e={instancePath:a+"/@context/schema",schemaPath:"#/properties/%40context/properties/schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}}if(void 0!==e.pav){let t=e.pav;if("http://purl.org/pav/"!==t){const e={instancePath:a+"/@context/pav",schemaPath:"#/properties/%40context/properties/pav/enum",keyword:"enum",params:{allowedValues:Rt.properties["@context"].properties.pav.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}if("string"==typeof t){if(!r.validate(t)){const e={instancePath:a+"/@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),l++}}else{const e={instancePath:a+"/@context/pav",schemaPath:"#/properties/%40context/properties/pav/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}}if(void 0!==e.oslc){let t=e.oslc;if("http://open-services.net/ns/core#"!==t){const e={instancePath:a+"/@context/oslc",schemaPath:"#/properties/%40context/properties/oslc/enum",keyword:"enum",params:{allowedValues:Rt.properties["@context"].properties.oslc.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}if("string"==typeof t){if(!r.validate(t)){const e={instancePath:a+"/@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),l++}}else{const e={instancePath:a+"/@context/oslc",schemaPath:"#/properties/%40context/properties/oslc/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}}}else{const e={instancePath:a+"/@context",schemaPath:"#/properties/%40context/type",keyword:"type",params:{type:"object"},message:"must be object"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t["@id"]){let e=t["@id"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:Rt.properties["@id"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),l++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:a+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),l++}}if(void 0!==t["@type"]){let e=t["@type"];if("https://schema.metadatacenter.org/core/StaticTemplateField"!==e){const e={instancePath:a+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:Rt.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:a+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),l++}}else{const e={instancePath:a+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t["pav:createdOn"]){let e=t["pav:createdOn"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:Rt.properties["pav:createdOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),l++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:a+"/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),l++}}if(void 0!==t["pav:createdBy"]){let e=t["pav:createdBy"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:Rt.properties["pav:createdBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),l++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:a+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),l++}}if(void 0!==t["pav:lastUpdatedOn"]){let e=t["pav:lastUpdatedOn"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:Rt.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),l++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:a+"/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),l++}}if(void 0!==t["oslc:modifiedBy"]){let e=t["oslc:modifiedBy"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:Rt.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),l++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:a+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),l++}}if(void 0!==t["schema:schemaVersion"]){let e=t["schema:schemaVersion"];if("string"!=typeof e){const e={instancePath:a+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}if("1.6.0"!==e){const e={instancePath:a+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:Rt.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t["bibo:status"]){let e=t["bibo:status"];if("string"!=typeof e){const e={instancePath:a+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}if("bibo:published"!==e&&"bibo:draft"!==e){const e={instancePath:a+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:Rt.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t["pav:version"]){let e=t["pav:version"];if("string"==typeof e){if(!st.test(e)){const e={instancePath:a+"/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),l++}}else{const e={instancePath:a+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t.additionalProperties){let e=t.additionalProperties;if("boolean"!=typeof e){const e={instancePath:a+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===m?m=[e]:m.push(e),l++}if(!1!==e){const e={instancePath:a+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:Rt.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}}}else{const e={instancePath:a,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===m?m=[e]:m.push(e),l++}return e.errors=m,0===l};const Rt={$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:a="",parentData:s,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:a,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:a,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:a,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:a+"/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:a+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:zt.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:a+"/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:a+"/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 s=o;let r=!1,m=null;const l=o;rt(e,{instancePath:a+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(n=null===n?rt.errors:n.concat(rt.errors),o=n.length),(p=l===o)&&(r=!0,m=0);const u=o;if(ut(e,{instancePath:a+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(n=null===n?ut.errors:n.concat(ut.errors),o=n.length),(p=u===o)&&r)r=!1,m=[m,1];else{p&&(r=!0,m=1);const s=o;var p;Ct(e,{instancePath:a+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(n=null===n?Ct.errors:n.concat(Ct.errors),o=n.length),(p=s===o)&&r?(r=!1,m=[m,2]):p&&(r=!0,m=2)}if(r)o=s,null!==n&&(s?n.length=s:n=null);else{const e={instancePath:a+"/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:a,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 zt={$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:a="",parentData:s,parentDataProperty:o,rootData:p=t}={}){let m=null,l=0;if(t&&"object"==typeof t&&!Array.isArray(t)){if(void 0===t.$schema){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"$schema"},message:"must have required property '$schema'"};null===m?m=[e]:m.push(e),l++}if(void 0===t.type){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"},message:"must have required property 'type'"};null===m?m=[e]:m.push(e),l++}if(void 0===t.title){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"title"},message:"must have required property 'title'"};null===m?m=[e]:m.push(e),l++}if(void 0===t.description){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"description"},message:"must have required property 'description'"};null===m?m=[e]:m.push(e),l++}if(void 0===t._ui){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"_ui"},message:"must have required property '_ui'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["@context"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@context"},message:"must have required property '@context'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["@id"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@id"},message:"must have required property '@id'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["@type"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"@type"},message:"must have required property '@type'"};null===m?m=[e]:m.push(e),l++}if(void 0===t.additionalProperties){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"additionalProperties"},message:"must have required property 'additionalProperties'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["pav:createdOn"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdOn"},message:"must have required property 'pav:createdOn'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["pav:createdBy"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:createdBy"},message:"must have required property 'pav:createdBy'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["pav:lastUpdatedOn"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"pav:lastUpdatedOn"},message:"must have required property 'pav:lastUpdatedOn'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["oslc:modifiedBy"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"oslc:modifiedBy"},message:"must have required property 'oslc:modifiedBy'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["schema:schemaVersion"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:schemaVersion"},message:"must have required property 'schema:schemaVersion'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["schema:name"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:name"},message:"must have required property 'schema:name'"};null===m?m=[e]:m.push(e),l++}if(void 0===t["schema:description"]){const e={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"schema:description"},message:"must have required property 'schema:description'"};null===m?m=[e]:m.push(e),l++}if(void 0!==t.$schema){let e=t.$schema;if("http://json-schema.org/draft-04/schema#"!==e){const e={instancePath:a+"/$schema",schemaPath:"#/properties/%24schema/enum",keyword:"enum",params:{allowedValues:Lt.properties.$schema.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:a+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),l++}}else{const e={instancePath:a+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t["@id"]){let e=t["@id"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/@id",schemaPath:"#/properties/%40id/type",keyword:"type",params:{type:Lt.properties["@id"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),l++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:a+"/@id",schemaPath:"#/properties/%40id/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),l++}}if(void 0!==t["@type"]){let e=t["@type"];if("https://schema.metadatacenter.org/core/TemplateField"!==e){const e={instancePath:a+"/@type",schemaPath:"#/properties/%40type/enum",keyword:"enum",params:{allowedValues:Lt.properties["@type"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}if("string"==typeof e){if(!r.validate(e)){const e={instancePath:a+"/@type",schemaPath:"#/properties/%40type/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),l++}}else{const e={instancePath:a+"/@type",schemaPath:"#/properties/%40type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t["@context"]&&(Ze(t["@context"],{instancePath:a+"/@context",parentData:t,parentDataProperty:"@context",rootData:p})||(m=null===m?Ze.errors:m.concat(Ze.errors),l=m.length)),void 0!==t.type){let e=t.type;if("string"!=typeof e){const e={instancePath:a+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}if("string"!==e){const e={instancePath:a+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues:Lt.properties.type.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t.title){let e=t.title;if("string"==typeof e){if(n(e)<1){const e={instancePath:a+"/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),l++}}else{const e={instancePath:a+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t.description){let e=t.description;if("string"==typeof e){if(n(e)<1){const e={instancePath:a+"/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),l++}}else{const e={instancePath:a+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}}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:a+"/_ui",schemaPath:"#/properties/_ui/required",keyword:"required",params:{missingProperty:"inputType"},message:"must have required property 'inputType'"};null===m?m=[e]:m.push(e),l++}for(const t in e)if("inputType"!==t){const e={instancePath:a+"/_ui",schemaPath:"#/properties/_ui/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:t},message:"must NOT have additional properties"};null===m?m=[e]:m.push(e),l++}if(void 0!==e.inputType){let t=e.inputType;if("string"!=typeof t){const e={instancePath:a+"/_ui/inputType",schemaPath:"#/properties/_ui/properties/inputType/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}if("attribute-value"!==t){const e={instancePath:a+"/_ui/inputType",schemaPath:"#/properties/_ui/properties/inputType/enum",keyword:"enum",params:{allowedValues:Lt.properties._ui.properties.inputType.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}}}else{const e={instancePath:a+"/_ui",schemaPath:"#/properties/_ui/type",keyword:"type",params:{type:"object"},message:"must be object"};null===m?m=[e]:m.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:a+"/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),l++}}else{const e={instancePath:a+"/schema:name",schemaPath:"#/properties/schema%3Aname/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t["schema:description"]&&"string"!=typeof t["schema:description"]){const e={instancePath:a+"/schema:description",schemaPath:"#/properties/schema%3Adescription/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}if(void 0!==t["pav:createdOn"]){let e=t["pav:createdOn"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/pav:createdOn",schemaPath:"#/properties/pav%3AcreatedOn/type",keyword:"type",params:{type:Lt.properties["pav:createdOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),l++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:a+"/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),l++}}if(void 0!==t["pav:createdBy"]){let e=t["pav:createdBy"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/type",keyword:"type",params:{type:Lt.properties["pav:createdBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),l++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:a+"/pav:createdBy",schemaPath:"#/properties/pav%3AcreatedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),l++}}if(void 0!==t["pav:lastUpdatedOn"]){let e=t["pav:lastUpdatedOn"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/pav:lastUpdatedOn",schemaPath:"#/properties/pav%3AlastUpdatedOn/type",keyword:"type",params:{type:Lt.properties["pav:lastUpdatedOn"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),l++}if("string"==typeof e&&!i.validate(e)){const e={instancePath:a+"/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),l++}}if(void 0!==t["oslc:modifiedBy"]){let e=t["oslc:modifiedBy"];if("string"!=typeof e&&null!==e){const e={instancePath:a+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/type",keyword:"type",params:{type:Lt.properties["oslc:modifiedBy"].type},message:"must be string,null"};null===m?m=[e]:m.push(e),l++}if("string"==typeof e&&!r.validate(e)){const e={instancePath:a+"/oslc:modifiedBy",schemaPath:"#/properties/oslc%3AmodifiedBy/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),l++}}if(void 0!==t["bibo:status"]){let e=t["bibo:status"];if("string"!=typeof e){const e={instancePath:a+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}if("bibo:published"!==e&&"bibo:draft"!==e){const e={instancePath:a+"/bibo:status",schemaPath:"#/properties/bibo%3Astatus/enum",keyword:"enum",params:{allowedValues:Lt.properties["bibo:status"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t["pav:version"]){let e=t["pav:version"];if("string"==typeof e){if(!st.test(e)){const e={instancePath:a+"/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),l++}}else{const e={instancePath:a+"/pav:version",schemaPath:"#/properties/pav%3Aversion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.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:a+"/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),l++}}else{const e={instancePath:a+"/pav:previousVersion",schemaPath:"#/properties/pav%3ApreviousVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.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:a+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/format",keyword:"format",params:{format:"uri"},message:'must match format "uri"'};null===m?m=[e]:m.push(e),l++}}else{const e={instancePath:a+"/pav:derivedFrom",schemaPath:"#/properties/pav%3AderivedFrom/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t.additionalProperties){let e=t.additionalProperties;if("boolean"!=typeof e){const e={instancePath:a+"/additionalProperties",schemaPath:"#/properties/additionalProperties/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};null===m?m=[e]:m.push(e),l++}if(!1!==e){const e={instancePath:a+"/additionalProperties",schemaPath:"#/properties/additionalProperties/enum",keyword:"enum",params:{allowedValues:Lt.properties.additionalProperties.enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}}if(void 0!==t["schema:schemaVersion"]){let e=t["schema:schemaVersion"];if("string"!=typeof e){const e={instancePath:a+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};null===m?m=[e]:m.push(e),l++}if("1.6.0"!==e){const e={instancePath:a+"/schema:schemaVersion",schemaPath:"#/properties/schema%3AschemaVersion/enum",keyword:"enum",params:{allowedValues:Lt.properties["schema:schemaVersion"].enum},message:"must be equal to one of the allowed values"};null===m?m=[e]:m.push(e),l++}}}else{const e={instancePath:a,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};null===m?m=[e]:m.push(e),l++}return e.errors=m,0===l},t.multipleChild=function e(t,{instancePath:a="",parentData:s,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:a,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:a,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:a,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:a+"/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:a+"/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!==t.minItems){let e=t.minItems;if("number"!=typeof e||e%1||isNaN(e)){const e={instancePath:a+"/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:a+"/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 s=o;let r=!1,m=null;const l=o;rt(e,{instancePath:a+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(n=null===n?rt.errors:n.concat(rt.errors),o=n.length),(p=l===o)&&(r=!0,m=0);const u=o;if(ut(e,{instancePath:a+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(n=null===n?ut.errors:n.concat(ut.errors),o=n.length),(p=u===o)&&r)r=!1,m=[m,1];else{p&&(r=!0,m=1);const s=o;if(Ct(e,{instancePath:a+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(n=null===n?Ct.errors:n.concat(Ct.errors),o=n.length),(p=s===o)&&r)r=!1,m=[m,2];else{p&&(r=!0,m=2);const s=o;var p;Tt(e,{instancePath:a+"/items",parentData:t,parentDataProperty:"items",rootData:i})||(n=null===n?Tt.errors:n.concat(Tt.errors),o=n.length),(p=s===o)&&r?(r=!1,m=[m,3]):p&&(r=!0,m=3)}}if(r)o=s,null!==n&&(s?n.length=s:n=null);else{const e={instancePath:a+"/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:a,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":"73898c9bd554c84546c775f124b5318d44be7bfec722add2be5bd684f76dc693","element-meta-schema.json":"c366e1c62c7a807a0d4c7f6e9a69ea47bfbcd7d2cbd91e9429956e2ebe0f5486","literal-field-meta-schema.json":"5d78e09c74c37f7271b6da0e1ab38c537296594b423c4485f379cd866039a628","iri-field-meta-schema.json":"be87500e4e9edaa2c8b43aff75bf01dd5e69c566e505339302c4b47f1bbe7244","static-field-meta-schema.json":"d5f0d3e42ef8d35df07bcf38e063789df1eebbec63dbfa0e535c26a8b6078429","multi-instance-field-meta-schema.json":"e7d0f16251e79995b815d30eaac80ce65dca5c86a2068685a87d0faa825165e5"}}};const t={};function a(s){const r=t[s];if(void 0!==r)return r.exports;const i=t[s]={exports:{}};return e[s].call(i.exports,i,i.exports,a),i.exports}let s={};(()=>{let e=s;Object.defineProperty(e,"__esModule",{value:!0}),e.SchemaArtifactValidator=void 0;var t=a(371);Object.defineProperty(e,"SchemaArtifactValidator",{enumerable:!0,get:function(){return t.SchemaArtifactValidator}})})(),module.exports=s})();
2
+ //# sourceMappingURL=schema.js.map