oatschema 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/AUTHORS +4 -0
  2. package/CHANGELOG.md +17 -0
  3. package/README.md +113 -13
  4. package/THIRD-PARTY-NOTICES +28 -0
  5. package/dist/ajv.d.ts +21 -0
  6. package/dist/ajv.js +28 -0
  7. package/dist/compiled/0.8.0/audio-transcription.js +4 -0
  8. package/dist/compiled/0.8.0/classification.js +4 -0
  9. package/dist/compiled/0.8.0/document-extraction.js +4 -0
  10. package/dist/compiled/0.8.0/embedding.js +4 -0
  11. package/dist/compiled/0.8.0/entity-extraction.js +4 -0
  12. package/dist/compiled/0.8.0/generic.js +4 -0
  13. package/dist/compiled/0.8.0/geolocation.js +4 -0
  14. package/dist/compiled/0.8.0/llm-output.js +4 -0
  15. package/dist/compiled/0.8.0/object-detection.js +4 -0
  16. package/dist/compiled/0.8.0/ranking.js +4 -0
  17. package/dist/compiled/0.8.0/regression.js +4 -0
  18. package/dist/compiled/0.8.0/temporal-segmentation.js +4 -0
  19. package/dist/compiled/index.js +30 -0
  20. package/dist/errors.d.ts +27 -0
  21. package/dist/errors.js +63 -0
  22. package/dist/formats.d.ts +13 -0
  23. package/dist/formats.js +106 -0
  24. package/dist/index.d.ts +6 -45
  25. package/dist/index.js +10 -56
  26. package/dist/names.d.ts +33 -0
  27. package/dist/names.js +33 -0
  28. package/dist/validate/audio-transcription.d.ts +27 -0
  29. package/dist/validate/audio-transcription.js +14 -0
  30. package/dist/validate/classification.d.ts +27 -0
  31. package/dist/validate/classification.js +14 -0
  32. package/dist/validate/document-extraction.d.ts +27 -0
  33. package/dist/validate/document-extraction.js +14 -0
  34. package/dist/validate/embedding.d.ts +27 -0
  35. package/dist/validate/embedding.js +14 -0
  36. package/dist/validate/entity-extraction.d.ts +27 -0
  37. package/dist/validate/entity-extraction.js +14 -0
  38. package/dist/validate/generic.d.ts +27 -0
  39. package/dist/validate/generic.js +14 -0
  40. package/dist/validate/geolocation.d.ts +27 -0
  41. package/dist/validate/geolocation.js +14 -0
  42. package/dist/validate/llm-output.d.ts +27 -0
  43. package/dist/validate/llm-output.js +14 -0
  44. package/dist/validate/object-detection.d.ts +27 -0
  45. package/dist/validate/object-detection.js +14 -0
  46. package/dist/validate/ranking.d.ts +27 -0
  47. package/dist/validate/ranking.js +14 -0
  48. package/dist/validate/regression.d.ts +27 -0
  49. package/dist/validate/regression.js +14 -0
  50. package/dist/validate/temporal-segmentation.d.ts +27 -0
  51. package/dist/validate/temporal-segmentation.js +14 -0
  52. package/dist/validate.d.ts +40 -0
  53. package/dist/validate.js +59 -0
  54. package/dist/validation.d.ts +74 -0
  55. package/dist/validation.js +328 -0
  56. package/package.json +24 -6
@@ -0,0 +1,4 @@
1
+ // SPDX-FileCopyrightText: 2026 The OATS Authors
2
+ // SPDX-FileCopyrightText: 2015-2021 Evgeny Poberezkin
3
+ // SPDX-License-Identifier: Apache-2.0 AND MIT
4
+ import{FORMATS as Ve,ucs2length as Ge}from"../../formats.js";const Ue=ue;var ze=ue;const A=Object.prototype.hasOwnProperty,v=Ge;function X(w,{instancePath:t="",parentData:be,parentDataProperty:Pe,rootData:Z=w,dynamicAnchors:ee={}}={}){let e=null,r=0;const S=X.evaluated;if(S.dynamicProps&&(S.props=void 0),S.dynamicItems&&(S.items=void 0),Array.isArray(w)){if(w.length>1e4){const P={instancePath:t,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit:1e4}};e===null?e=[P]:e.push(P),r++}if(w.length<2){const P={instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:2}};e===null?e=[P]:e.push(P),r++}const R=w.length;for(let P=0;P<R;P++){let M=w[P];if(Array.isArray(M)){if(M.length>3){const x={instancePath:t+"/"+P,schemaPath:"#/$defs/position/maxItems",keyword:"maxItems",params:{limit:3}};e===null?e=[x]:e.push(x),r++}if(M.length<2){const x={instancePath:t+"/"+P,schemaPath:"#/$defs/position/minItems",keyword:"minItems",params:{limit:2}};e===null?e=[x]:e.push(x),r++}const F=M.length;if(F>0){let x=M[0];if(typeof x=="number"&&isFinite(x)){if(x>180||isNaN(x)){const $={instancePath:t+"/"+P+"/0",schemaPath:"#/$defs/position/prefixItems/0/maximum",keyword:"maximum",params:{comparison:"<=",limit:180}};e===null?e=[$]:e.push($),r++}if(x<-180||isNaN(x)){const $={instancePath:t+"/"+P+"/0",schemaPath:"#/$defs/position/prefixItems/0/minimum",keyword:"minimum",params:{comparison:">=",limit:-180}};e===null?e=[$]:e.push($),r++}}else{const $={instancePath:t+"/"+P+"/0",schemaPath:"#/$defs/position/prefixItems/0/type",keyword:"type",params:{type:"number"}};e===null?e=[$]:e.push($),r++}}if(F>1){let x=M[1];if(typeof x=="number"&&isFinite(x)){if(x>90||isNaN(x)){const $={instancePath:t+"/"+P+"/1",schemaPath:"#/$defs/position/prefixItems/1/maximum",keyword:"maximum",params:{comparison:"<=",limit:90}};e===null?e=[$]:e.push($),r++}if(x<-90||isNaN(x)){const $={instancePath:t+"/"+P+"/1",schemaPath:"#/$defs/position/prefixItems/1/minimum",keyword:"minimum",params:{comparison:">=",limit:-90}};e===null?e=[$]:e.push($),r++}}else{const $={instancePath:t+"/"+P+"/1",schemaPath:"#/$defs/position/prefixItems/1/type",keyword:"type",params:{type:"number"}};e===null?e=[$]:e.push($),r++}}if(F>2){let x=M[2];if(!(typeof x=="number"&&isFinite(x))){const $={instancePath:t+"/"+P+"/2",schemaPath:"#/$defs/position/prefixItems/2/type",keyword:"type",params:{type:"number"}};e===null?e=[$]:e.push($),r++}}if(!(M.length<=3)){const x={instancePath:t+"/"+P,schemaPath:"#/$defs/position/items",keyword:"items",params:{limit:3}};e===null?e=[x]:e.push(x),r++}}else{const F={instancePath:t+"/"+P,schemaPath:"#/$defs/position/type",keyword:"type",params:{type:"array"}};e===null?e=[F]:e.push(F),r++}}}else{const R={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"}};e===null?e=[R]:e.push(R),r++}return X.errors=e,r===0}X.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1};function le(w,{instancePath:t="",parentData:be,parentDataProperty:Pe,rootData:Z=w,dynamicAnchors:ee={}}={}){let e=null,r=0;const S=le.evaluated;if(S.dynamicProps&&(S.props=void 0),S.dynamicItems&&(S.items=void 0),Array.isArray(w)){if(w.length>1e4){const P={instancePath:t,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit:1e4}};e===null?e=[P]:e.push(P),r++}if(w.length<4){const P={instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:4}};e===null?e=[P]:e.push(P),r++}const R=w.length;for(let P=0;P<R;P++){let M=w[P];if(Array.isArray(M)){if(M.length>3){const x={instancePath:t+"/"+P,schemaPath:"#/$defs/position/maxItems",keyword:"maxItems",params:{limit:3}};e===null?e=[x]:e.push(x),r++}if(M.length<2){const x={instancePath:t+"/"+P,schemaPath:"#/$defs/position/minItems",keyword:"minItems",params:{limit:2}};e===null?e=[x]:e.push(x),r++}const F=M.length;if(F>0){let x=M[0];if(typeof x=="number"&&isFinite(x)){if(x>180||isNaN(x)){const $={instancePath:t+"/"+P+"/0",schemaPath:"#/$defs/position/prefixItems/0/maximum",keyword:"maximum",params:{comparison:"<=",limit:180}};e===null?e=[$]:e.push($),r++}if(x<-180||isNaN(x)){const $={instancePath:t+"/"+P+"/0",schemaPath:"#/$defs/position/prefixItems/0/minimum",keyword:"minimum",params:{comparison:">=",limit:-180}};e===null?e=[$]:e.push($),r++}}else{const $={instancePath:t+"/"+P+"/0",schemaPath:"#/$defs/position/prefixItems/0/type",keyword:"type",params:{type:"number"}};e===null?e=[$]:e.push($),r++}}if(F>1){let x=M[1];if(typeof x=="number"&&isFinite(x)){if(x>90||isNaN(x)){const $={instancePath:t+"/"+P+"/1",schemaPath:"#/$defs/position/prefixItems/1/maximum",keyword:"maximum",params:{comparison:"<=",limit:90}};e===null?e=[$]:e.push($),r++}if(x<-90||isNaN(x)){const $={instancePath:t+"/"+P+"/1",schemaPath:"#/$defs/position/prefixItems/1/minimum",keyword:"minimum",params:{comparison:">=",limit:-90}};e===null?e=[$]:e.push($),r++}}else{const $={instancePath:t+"/"+P+"/1",schemaPath:"#/$defs/position/prefixItems/1/type",keyword:"type",params:{type:"number"}};e===null?e=[$]:e.push($),r++}}if(F>2){let x=M[2];if(!(typeof x=="number"&&isFinite(x))){const $={instancePath:t+"/"+P+"/2",schemaPath:"#/$defs/position/prefixItems/2/type",keyword:"type",params:{type:"number"}};e===null?e=[$]:e.push($),r++}}if(!(M.length<=3)){const x={instancePath:t+"/"+P,schemaPath:"#/$defs/position/items",keyword:"items",params:{limit:3}};e===null?e=[x]:e.push(x),r++}}else{const F={instancePath:t+"/"+P,schemaPath:"#/$defs/position/type",keyword:"type",params:{type:"array"}};e===null?e=[F]:e.push(F),r++}}}else{const R={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"}};e===null?e=[R]:e.push(R),r++}return le.errors=e,r===0}le.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1};function Y(w,{instancePath:t="",parentData:be,parentDataProperty:Pe,rootData:Z=w,dynamicAnchors:ee={}}={}){let e=null,r=0;const S=Y.evaluated;if(S.dynamicProps&&(S.props=void 0),S.dynamicItems&&(S.items=void 0),Array.isArray(w)){if(w.length>100){const P={instancePath:t,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit:100}};e===null?e=[P]:e.push(P),r++}if(w.length<1){const P={instancePath:t,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1}};e===null?e=[P]:e.push(P),r++}const R=w.length;for(let P=0;P<R;P++)le(w[P],{instancePath:t+"/"+P,parentData:w,parentDataProperty:P,rootData:Z,dynamicAnchors:ee})||(e=e===null?le.errors:e.concat(le.errors),r=e.length)}else{const R={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"array"}};e===null?e=[R]:e.push(R),r++}return Y.errors=e,r===0}Y.evaluated={items:!0,dynamicProps:!1,dynamicItems:!1};const We=Ve["date-time"];function ue(w,{instancePath:t="",parentData:be,parentDataProperty:Pe,rootData:Z=w,dynamicAnchors:ee={}}={}){let e=null,r=0;const S=ue.evaluated;if(S.dynamicProps&&(S.props=void 0),S.dynamicItems&&(S.items=void 0),w&&typeof w=="object"&&!Array.isArray(w)){if(Object.keys(w).length>32){const o={instancePath:t,schemaPath:"#/maxProperties",keyword:"maxProperties",params:{limit:32}};e===null?e=[o]:e.push(o),r++}if(w.type===void 0||!A.call(w,"type")){const o={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"type"}};e===null?e=[o]:e.push(o),r++}if(w.geometry===void 0||!A.call(w,"geometry")){const o={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"geometry"}};e===null?e=[o]:e.push(o),r++}if(w.properties===void 0||!A.call(w,"properties")){const o={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"properties"}};e===null?e=[o]:e.push(o),r++}for(const o of Object.keys(w)){const I=r;if(typeof o=="string"&&v(o)>128){const _={instancePath:t,schemaPath:"#/propertyNames/maxLength",keyword:"maxLength",params:{limit:128},propertyName:o};e===null?e=[_]:e.push(_),r++}var R=I===r;if(!R){const _={instancePath:t,schemaPath:"#/propertyNames",keyword:"propertyNames",params:{propertyName:o}};e===null?e=[_]:e.push(_),r++}}for(const o of Object.keys(w))if(!(o==="type"||o==="id"||o==="producer"||o==="bbox"||o==="geometry"||o==="properties")){let I=w[o];const _=r;let E=!1;const Q=r;if(typeof I=="string"){if(v(I)>2048){const s={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/0/maxLength",keyword:"maxLength",params:{limit:2048}};e===null?e=[s]:e.push(s),r++}}else{const s={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[s]:e.push(s),r++}var V=Q===r;E=E||V;const g=r;if(!(typeof I=="number"&&isFinite(I))){const s={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[s]:e.push(s),r++}var V=g===r;E=E||V;const k=r;if(typeof I!="boolean"){const s={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[s]:e.push(s),r++}var V=k===r;E=E||V;const C=r;if(I!==null){const s={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/3/type",keyword:"type",params:{type:"null"}};e===null?e=[s]:e.push(s),r++}var V=C===r;E=E||V;const D=r;if(Array.isArray(I)){if(I.length>100){const i={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/4/maxItems",keyword:"maxItems",params:{limit:100}};e===null?e=[i]:e.push(i),r++}const s=I.length;for(let i=0;i<s;i++){let p=I[i];const m=r;let b=!1;const l=r;if(typeof p=="string"){if(v(p)>1024){const d={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+i,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/0/maxLength",keyword:"maxLength",params:{limit:1024}};e===null?e=[d]:e.push(d),r++}}else{const d={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+i,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[d]:e.push(d),r++}var P=l===r;b=b||P;const y=r;if(!(typeof p=="number"&&isFinite(p))){const d={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+i,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[d]:e.push(d),r++}var P=y===r;b=b||P;const u=r;if(typeof p!="boolean"){const d={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+i,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[d]:e.push(d),r++}var P=u===r;if(b=b||P,b)r=m,e!==null&&(m?e.length=m:e=null);else{const d={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+i,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-m})};e===null?e=[d]:e.push(d),r++}}}else{const s={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/4/type",keyword:"type",params:{type:"array"}};e===null?e=[s]:e.push(s),r++}var V=D===r;E=E||V;const de=r;if(I&&typeof I=="object"&&!Array.isArray(I)){if(Object.keys(I).length>20){const s={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/maxProperties",keyword:"maxProperties",params:{limit:20}};e===null?e=[s]:e.push(s),r++}for(const s of Object.keys(I)){const i=r;if(typeof s=="string"&&v(s)>128){const p={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/propertyNames/maxLength",keyword:"maxLength",params:{limit:128},propertyName:s};e===null?e=[p]:e.push(p),r++}var M=i===r;if(!M){const p={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/propertyNames",keyword:"propertyNames",params:{propertyName:s}};e===null?e=[p]:e.push(p),r++}}for(const s of Object.keys(I)){let i=I[s];const p=r;let m=!1;const b=r;if(typeof i=="string"){if(v(i)>2048){const d={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/0/maxLength",keyword:"maxLength",params:{limit:2048}};e===null?e=[d]:e.push(d),r++}}else{const d={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[d]:e.push(d),r++}var F=b===r;m=m||F;const l=r;if(!(typeof i=="number"&&isFinite(i))){const d={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[d]:e.push(d),r++}var F=l===r;m=m||F;const y=r;if(typeof i!="boolean"){const d={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[d]:e.push(d),r++}var F=y===r;m=m||F;const u=r;if(i!==null){const d={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/3/type",keyword:"type",params:{type:"null"}};e===null?e=[d]:e.push(d),r++}var F=u===r;if(m=m||F,m)r=p,e!==null&&(p?e.length=p:e=null);else{const d={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-p})};e===null?e=[d]:e.push(d),r++}}}else{const s={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/type",keyword:"type",params:{type:"object"}};e===null?e=[s]:e.push(s),r++}var V=de===r;if(E=E||V,E)r=_,e!==null&&(_?e.length=_:e=null);else{const s={instancePath:t+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-_})};e===null?e=[s]:e.push(s),r++}}if(w.type!==void 0&&A.call(w,"type")&&w.type!=="Feature"){const o={instancePath:t+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue:"Feature"}};e===null?e=[o]:e.push(o),r++}if(w.id!==void 0&&A.call(w,"id")){let o=w.id;const I=r;let _=!1;const E=r;if(typeof o=="string"){if(v(o)>128){const g={instancePath:t+"/id",schemaPath:"#/properties/id/anyOf/0/maxLength",keyword:"maxLength",params:{limit:128}};e===null?e=[g]:e.push(g),r++}}else{const g={instancePath:t+"/id",schemaPath:"#/properties/id/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[g]:e.push(g),r++}var x=E===r;_=_||x;const Q=r;if(!(typeof o=="number"&&isFinite(o))){const g={instancePath:t+"/id",schemaPath:"#/properties/id/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[g]:e.push(g),r++}var x=Q===r;if(_=_||x,_)r=I,e!==null&&(I?e.length=I:e=null);else{const g={instancePath:t+"/id",schemaPath:"#/properties/id/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-I})};e===null?e=[g]:e.push(g),r++}}if(w.producer!==void 0&&A.call(w,"producer")){let o=w.producer;if(typeof o=="string"){if(v(o)>1024){const I={instancePath:t+"/producer",schemaPath:"#/properties/producer/maxLength",keyword:"maxLength",params:{limit:1024}};e===null?e=[I]:e.push(I),r++}}else{const I={instancePath:t+"/producer",schemaPath:"#/properties/producer/type",keyword:"type",params:{type:"string"}};e===null?e=[I]:e.push(I),r++}}if(w.bbox!==void 0&&A.call(w,"bbox")){let o=w.bbox;const I=r;let _=!1;const E=r;if(Array.isArray(o)){if(o.length>4){const g={instancePath:t+"/bbox",schemaPath:"#/$defs/bbox/anyOf/0/maxItems",keyword:"maxItems",params:{limit:4}};e===null?e=[g]:e.push(g),r++}if(o.length<4){const g={instancePath:t+"/bbox",schemaPath:"#/$defs/bbox/anyOf/0/minItems",keyword:"minItems",params:{limit:4}};e===null?e=[g]:e.push(g),r++}}var $=E===r;_=_||$;const Q=r;if(Array.isArray(o)){if(o.length>6){const g={instancePath:t+"/bbox",schemaPath:"#/$defs/bbox/anyOf/1/maxItems",keyword:"maxItems",params:{limit:6}};e===null?e=[g]:e.push(g),r++}if(o.length<6){const g={instancePath:t+"/bbox",schemaPath:"#/$defs/bbox/anyOf/1/minItems",keyword:"minItems",params:{limit:6}};e===null?e=[g]:e.push(g),r++}}var $=Q===r;if(_=_||$,_)r=I,e!==null&&(I?e.length=I:e=null);else{const g={instancePath:t+"/bbox",schemaPath:"#/$defs/bbox/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-I})};e===null?e=[g]:e.push(g),r++}if(Array.isArray(o)){if(o.length>6){const k={instancePath:t+"/bbox",schemaPath:"#/$defs/bbox/maxItems",keyword:"maxItems",params:{limit:6}};e===null?e=[k]:e.push(k),r++}if(o.length<4){const k={instancePath:t+"/bbox",schemaPath:"#/$defs/bbox/minItems",keyword:"minItems",params:{limit:4}};e===null?e=[k]:e.push(k),r++}const g=o.length;for(let k=0;k<g;k++){let C=o[k];if(!(typeof C=="number"&&isFinite(C))){const D={instancePath:t+"/bbox/"+k,schemaPath:"#/$defs/bbox/items/type",keyword:"type",params:{type:"number"}};e===null?e=[D]:e.push(D),r++}}}else{const g={instancePath:t+"/bbox",schemaPath:"#/$defs/bbox/type",keyword:"type",params:{type:"array"}};e===null?e=[g]:e.push(g),r++}}if(w.geometry!==void 0&&A.call(w,"geometry")){let o=w.geometry;const I=r;let _=!1;const E=r;if(o!==null){const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/0/type",keyword:"type",params:{type:"null"}};e===null?e=[s]:e.push(s),r++}var T=E===r;_=_||T;const Q=r;if(o&&typeof o=="object"&&!Array.isArray(o)){if(Object.keys(o).length>16){const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/1/maxProperties",keyword:"maxProperties",params:{limit:16}};e===null?e=[s]:e.push(s),r++}if(o.type===void 0||!A.call(o,"type")){const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/1/required",keyword:"required",params:{missingProperty:"type"}};e===null?e=[s]:e.push(s),r++}if(o.coordinates===void 0||!A.call(o,"coordinates")){const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/1/required",keyword:"required",params:{missingProperty:"coordinates"}};e===null?e=[s]:e.push(s),r++}for(const s of Object.keys(o)){const i=r;if(typeof s=="string"&&v(s)>128){const p={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/1/propertyNames/maxLength",keyword:"maxLength",params:{limit:128},propertyName:s};e===null?e=[p]:e.push(p),r++}var _e=i===r;if(!_e){const p={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/1/propertyNames",keyword:"propertyNames",params:{propertyName:s}};e===null?e=[p]:e.push(p),r++}}for(const s of Object.keys(o))if(!(s==="type"||s==="coordinates"||s==="bbox")){let i=o[s];const p=r;let m=!1;const b=r;if(typeof i=="string"){if(v(i)>2048){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/0/maxLength",keyword:"maxLength",params:{limit:2048}};e===null?e=[a]:e.push(a),r++}}else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[a]:e.push(a),r++}var G=b===r;m=m||G;const l=r;if(!(typeof i=="number"&&isFinite(i))){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[a]:e.push(a),r++}var G=l===r;m=m||G;const y=r;if(typeof i!="boolean"){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[a]:e.push(a),r++}var G=y===r;m=m||G;const u=r;if(i!==null){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/3/type",keyword:"type",params:{type:"null"}};e===null?e=[a]:e.push(a),r++}var G=u===r;m=m||G;const d=r;if(Array.isArray(i)){if(i.length>100){const f={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/4/maxItems",keyword:"maxItems",params:{limit:100}};e===null?e=[f]:e.push(f),r++}const a=i.length;for(let f=0;f<a;f++){let h=i[f];const c=r;let O=!1;const j=r;if(typeof h=="string"){if(v(h)>1024){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/0/maxLength",keyword:"maxLength",params:{limit:1024}};e===null?e=[n]:e.push(n),r++}}else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[n]:e.push(n),r++}var pe=j===r;O=O||pe;const N=r;if(!(typeof h=="number"&&isFinite(h))){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[n]:e.push(n),r++}var pe=N===r;O=O||pe;const L=r;if(typeof h!="boolean"){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[n]:e.push(n),r++}var pe=L===r;if(O=O||pe,O)r=c,e!==null&&(c?e.length=c:e=null);else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-c})};e===null?e=[n]:e.push(n),r++}}}else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/4/type",keyword:"type",params:{type:"array"}};e===null?e=[a]:e.push(a),r++}var G=d===r;m=m||G;const q=r;if(i&&typeof i=="object"&&!Array.isArray(i)){if(Object.keys(i).length>20){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/maxProperties",keyword:"maxProperties",params:{limit:20}};e===null?e=[a]:e.push(a),r++}for(const a of Object.keys(i)){const f=r;if(typeof a=="string"&&v(a)>128){const h={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/propertyNames/maxLength",keyword:"maxLength",params:{limit:128},propertyName:a};e===null?e=[h]:e.push(h),r++}var Ae=f===r;if(!Ae){const h={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/propertyNames",keyword:"propertyNames",params:{propertyName:a}};e===null?e=[h]:e.push(h),r++}}for(const a of Object.keys(i)){let f=i[a];const h=r;let c=!1;const O=r;if(typeof f=="string"){if(v(f)>2048){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/0/maxLength",keyword:"maxLength",params:{limit:2048}};e===null?e=[n]:e.push(n),r++}}else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[n]:e.push(n),r++}var re=O===r;c=c||re;const j=r;if(!(typeof f=="number"&&isFinite(f))){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[n]:e.push(n),r++}var re=j===r;c=c||re;const N=r;if(typeof f!="boolean"){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[n]:e.push(n),r++}var re=N===r;c=c||re;const L=r;if(f!==null){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/3/type",keyword:"type",params:{type:"null"}};e===null?e=[n]:e.push(n),r++}var re=L===r;if(c=c||re,c)r=h,e!==null&&(h?e.length=h:e=null);else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-h})};e===null?e=[n]:e.push(n),r++}}}else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/type",keyword:"type",params:{type:"object"}};e===null?e=[a]:e.push(a),r++}var G=q===r;if(m=m||G,m)r=p,e!==null&&(p?e.length=p:e=null);else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-p})};e===null?e=[a]:e.push(a),r++}}if(o.type!==void 0&&A.call(o,"type")&&o.type!=="Point"){const s={instancePath:t+"/geometry/type",schemaPath:"#/properties/geometry/anyOf/1/properties/type/const",keyword:"const",params:{allowedValue:"Point"}};e===null?e=[s]:e.push(s),r++}if(o.coordinates!==void 0&&A.call(o,"coordinates")){let s=o.coordinates;if(Array.isArray(s)){if(s.length>3){const m={instancePath:t+"/geometry/coordinates",schemaPath:"#/$defs/position/maxItems",keyword:"maxItems",params:{limit:3}};e===null?e=[m]:e.push(m),r++}if(s.length<2){const m={instancePath:t+"/geometry/coordinates",schemaPath:"#/$defs/position/minItems",keyword:"minItems",params:{limit:2}};e===null?e=[m]:e.push(m),r++}const i=s.length;if(i>0){let m=s[0];if(typeof m=="number"&&isFinite(m)){if(m>180||isNaN(m)){const b={instancePath:t+"/geometry/coordinates/0",schemaPath:"#/$defs/position/prefixItems/0/maximum",keyword:"maximum",params:{comparison:"<=",limit:180}};e===null?e=[b]:e.push(b),r++}if(m<-180||isNaN(m)){const b={instancePath:t+"/geometry/coordinates/0",schemaPath:"#/$defs/position/prefixItems/0/minimum",keyword:"minimum",params:{comparison:">=",limit:-180}};e===null?e=[b]:e.push(b),r++}}else{const b={instancePath:t+"/geometry/coordinates/0",schemaPath:"#/$defs/position/prefixItems/0/type",keyword:"type",params:{type:"number"}};e===null?e=[b]:e.push(b),r++}}if(i>1){let m=s[1];if(typeof m=="number"&&isFinite(m)){if(m>90||isNaN(m)){const b={instancePath:t+"/geometry/coordinates/1",schemaPath:"#/$defs/position/prefixItems/1/maximum",keyword:"maximum",params:{comparison:"<=",limit:90}};e===null?e=[b]:e.push(b),r++}if(m<-90||isNaN(m)){const b={instancePath:t+"/geometry/coordinates/1",schemaPath:"#/$defs/position/prefixItems/1/minimum",keyword:"minimum",params:{comparison:">=",limit:-90}};e===null?e=[b]:e.push(b),r++}}else{const b={instancePath:t+"/geometry/coordinates/1",schemaPath:"#/$defs/position/prefixItems/1/type",keyword:"type",params:{type:"number"}};e===null?e=[b]:e.push(b),r++}}if(i>2){let m=s[2];if(!(typeof m=="number"&&isFinite(m))){const b={instancePath:t+"/geometry/coordinates/2",schemaPath:"#/$defs/position/prefixItems/2/type",keyword:"type",params:{type:"number"}};e===null?e=[b]:e.push(b),r++}}if(!(s.length<=3)){const m={instancePath:t+"/geometry/coordinates",schemaPath:"#/$defs/position/items",keyword:"items",params:{limit:3}};e===null?e=[m]:e.push(m),r++}}else{const i={instancePath:t+"/geometry/coordinates",schemaPath:"#/$defs/position/type",keyword:"type",params:{type:"array"}};e===null?e=[i]:e.push(i),r++}}if(o.bbox!==void 0&&A.call(o,"bbox")){let s=o.bbox;const i=r;let p=!1;const m=r;if(Array.isArray(s)){if(s.length>4){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/0/maxItems",keyword:"maxItems",params:{limit:4}};e===null?e=[l]:e.push(l),r++}if(s.length<4){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/0/minItems",keyword:"minItems",params:{limit:4}};e===null?e=[l]:e.push(l),r++}}var Oe=m===r;p=p||Oe;const b=r;if(Array.isArray(s)){if(s.length>6){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/1/maxItems",keyword:"maxItems",params:{limit:6}};e===null?e=[l]:e.push(l),r++}if(s.length<6){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/1/minItems",keyword:"minItems",params:{limit:6}};e===null?e=[l]:e.push(l),r++}}var Oe=b===r;if(p=p||Oe,p)r=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-i})};e===null?e=[l]:e.push(l),r++}if(Array.isArray(s)){if(s.length>6){const y={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/maxItems",keyword:"maxItems",params:{limit:6}};e===null?e=[y]:e.push(y),r++}if(s.length<4){const y={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/minItems",keyword:"minItems",params:{limit:4}};e===null?e=[y]:e.push(y),r++}const l=s.length;for(let y=0;y<l;y++){let u=s[y];if(!(typeof u=="number"&&isFinite(u))){const d={instancePath:t+"/geometry/bbox/"+y,schemaPath:"#/$defs/bbox/items/type",keyword:"type",params:{type:"number"}};e===null?e=[d]:e.push(d),r++}}}else{const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/type",keyword:"type",params:{type:"array"}};e===null?e=[l]:e.push(l),r++}}}else{const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/1/type",keyword:"type",params:{type:"object"}};e===null?e=[s]:e.push(s),r++}var T=Q===r;if(_=_||T,T)var K=!0;const g=r;if(o&&typeof o=="object"&&!Array.isArray(o)){if(Object.keys(o).length>16){const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/2/maxProperties",keyword:"maxProperties",params:{limit:16}};e===null?e=[s]:e.push(s),r++}if(o.type===void 0||!A.call(o,"type")){const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/2/required",keyword:"required",params:{missingProperty:"type"}};e===null?e=[s]:e.push(s),r++}if(o.coordinates===void 0||!A.call(o,"coordinates")){const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/2/required",keyword:"required",params:{missingProperty:"coordinates"}};e===null?e=[s]:e.push(s),r++}for(const s of Object.keys(o)){const i=r;if(typeof s=="string"&&v(s)>128){const p={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/2/propertyNames/maxLength",keyword:"maxLength",params:{limit:128},propertyName:s};e===null?e=[p]:e.push(p),r++}var je=i===r;if(!je){const p={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/2/propertyNames",keyword:"propertyNames",params:{propertyName:s}};e===null?e=[p]:e.push(p),r++}}for(const s of Object.keys(o))if(!(s==="type"||s==="coordinates"||s==="bbox")){let i=o[s];const p=r;let m=!1;const b=r;if(typeof i=="string"){if(v(i)>2048){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/0/maxLength",keyword:"maxLength",params:{limit:2048}};e===null?e=[a]:e.push(a),r++}}else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[a]:e.push(a),r++}var W=b===r;m=m||W;const l=r;if(!(typeof i=="number"&&isFinite(i))){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[a]:e.push(a),r++}var W=l===r;m=m||W;const y=r;if(typeof i!="boolean"){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[a]:e.push(a),r++}var W=y===r;m=m||W;const u=r;if(i!==null){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/3/type",keyword:"type",params:{type:"null"}};e===null?e=[a]:e.push(a),r++}var W=u===r;m=m||W;const d=r;if(Array.isArray(i)){if(i.length>100){const f={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/4/maxItems",keyword:"maxItems",params:{limit:100}};e===null?e=[f]:e.push(f),r++}const a=i.length;for(let f=0;f<a;f++){let h=i[f];const c=r;let O=!1;const j=r;if(typeof h=="string"){if(v(h)>1024){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/0/maxLength",keyword:"maxLength",params:{limit:1024}};e===null?e=[n]:e.push(n),r++}}else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[n]:e.push(n),r++}var me=j===r;O=O||me;const N=r;if(!(typeof h=="number"&&isFinite(h))){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[n]:e.push(n),r++}var me=N===r;O=O||me;const L=r;if(typeof h!="boolean"){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[n]:e.push(n),r++}var me=L===r;if(O=O||me,O)r=c,e!==null&&(c?e.length=c:e=null);else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-c})};e===null?e=[n]:e.push(n),r++}}}else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/4/type",keyword:"type",params:{type:"array"}};e===null?e=[a]:e.push(a),r++}var W=d===r;m=m||W;const q=r;if(i&&typeof i=="object"&&!Array.isArray(i)){if(Object.keys(i).length>20){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/maxProperties",keyword:"maxProperties",params:{limit:20}};e===null?e=[a]:e.push(a),r++}for(const a of Object.keys(i)){const f=r;if(typeof a=="string"&&v(a)>128){const h={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/propertyNames/maxLength",keyword:"maxLength",params:{limit:128},propertyName:a};e===null?e=[h]:e.push(h),r++}var Ne=f===r;if(!Ne){const h={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/propertyNames",keyword:"propertyNames",params:{propertyName:a}};e===null?e=[h]:e.push(h),r++}}for(const a of Object.keys(i)){let f=i[a];const h=r;let c=!1;const O=r;if(typeof f=="string"){if(v(f)>2048){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/0/maxLength",keyword:"maxLength",params:{limit:2048}};e===null?e=[n]:e.push(n),r++}}else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[n]:e.push(n),r++}var se=O===r;c=c||se;const j=r;if(!(typeof f=="number"&&isFinite(f))){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[n]:e.push(n),r++}var se=j===r;c=c||se;const N=r;if(typeof f!="boolean"){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[n]:e.push(n),r++}var se=N===r;c=c||se;const L=r;if(f!==null){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/3/type",keyword:"type",params:{type:"null"}};e===null?e=[n]:e.push(n),r++}var se=L===r;if(c=c||se,c)r=h,e!==null&&(h?e.length=h:e=null);else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-h})};e===null?e=[n]:e.push(n),r++}}}else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/type",keyword:"type",params:{type:"object"}};e===null?e=[a]:e.push(a),r++}var W=q===r;if(m=m||W,m)r=p,e!==null&&(p?e.length=p:e=null);else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-p})};e===null?e=[a]:e.push(a),r++}}if(o.type!==void 0&&A.call(o,"type")&&o.type!=="LineString"){const s={instancePath:t+"/geometry/type",schemaPath:"#/properties/geometry/anyOf/2/properties/type/const",keyword:"const",params:{allowedValue:"LineString"}};e===null?e=[s]:e.push(s),r++}if(o.coordinates!==void 0&&A.call(o,"coordinates")&&(X(o.coordinates,{instancePath:t+"/geometry/coordinates",parentData:o,parentDataProperty:"coordinates",rootData:Z,dynamicAnchors:ee})||(e=e===null?X.errors:e.concat(X.errors),r=e.length)),o.bbox!==void 0&&A.call(o,"bbox")){let s=o.bbox;const i=r;let p=!1;const m=r;if(Array.isArray(s)){if(s.length>4){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/0/maxItems",keyword:"maxItems",params:{limit:4}};e===null?e=[l]:e.push(l),r++}if(s.length<4){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/0/minItems",keyword:"minItems",params:{limit:4}};e===null?e=[l]:e.push(l),r++}}var xe=m===r;p=p||xe;const b=r;if(Array.isArray(s)){if(s.length>6){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/1/maxItems",keyword:"maxItems",params:{limit:6}};e===null?e=[l]:e.push(l),r++}if(s.length<6){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/1/minItems",keyword:"minItems",params:{limit:6}};e===null?e=[l]:e.push(l),r++}}var xe=b===r;if(p=p||xe,p)r=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-i})};e===null?e=[l]:e.push(l),r++}if(Array.isArray(s)){if(s.length>6){const y={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/maxItems",keyword:"maxItems",params:{limit:6}};e===null?e=[y]:e.push(y),r++}if(s.length<4){const y={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/minItems",keyword:"minItems",params:{limit:4}};e===null?e=[y]:e.push(y),r++}const l=s.length;for(let y=0;y<l;y++){let u=s[y];if(!(typeof u=="number"&&isFinite(u))){const d={instancePath:t+"/geometry/bbox/"+y,schemaPath:"#/$defs/bbox/items/type",keyword:"type",params:{type:"number"}};e===null?e=[d]:e.push(d),r++}}}else{const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/type",keyword:"type",params:{type:"array"}};e===null?e=[l]:e.push(l),r++}}}else{const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/2/type",keyword:"type",params:{type:"object"}};e===null?e=[s]:e.push(s),r++}var T=g===r;_=_||T,T&&K!==!0&&(K=!0);const k=r;if(o&&typeof o=="object"&&!Array.isArray(o)){if(Object.keys(o).length>16){const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/3/maxProperties",keyword:"maxProperties",params:{limit:16}};e===null?e=[s]:e.push(s),r++}if(o.type===void 0||!A.call(o,"type")){const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/3/required",keyword:"required",params:{missingProperty:"type"}};e===null?e=[s]:e.push(s),r++}if(o.coordinates===void 0||!A.call(o,"coordinates")){const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/3/required",keyword:"required",params:{missingProperty:"coordinates"}};e===null?e=[s]:e.push(s),r++}for(const s of Object.keys(o)){const i=r;if(typeof s=="string"&&v(s)>128){const p={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/3/propertyNames/maxLength",keyword:"maxLength",params:{limit:128},propertyName:s};e===null?e=[p]:e.push(p),r++}var Le=i===r;if(!Le){const p={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/3/propertyNames",keyword:"propertyNames",params:{propertyName:s}};e===null?e=[p]:e.push(p),r++}}for(const s of Object.keys(o))if(!(s==="type"||s==="coordinates"||s==="bbox")){let i=o[s];const p=r;let m=!1;const b=r;if(typeof i=="string"){if(v(i)>2048){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/0/maxLength",keyword:"maxLength",params:{limit:2048}};e===null?e=[a]:e.push(a),r++}}else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[a]:e.push(a),r++}var J=b===r;m=m||J;const l=r;if(!(typeof i=="number"&&isFinite(i))){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[a]:e.push(a),r++}var J=l===r;m=m||J;const y=r;if(typeof i!="boolean"){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[a]:e.push(a),r++}var J=y===r;m=m||J;const u=r;if(i!==null){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/3/type",keyword:"type",params:{type:"null"}};e===null?e=[a]:e.push(a),r++}var J=u===r;m=m||J;const d=r;if(Array.isArray(i)){if(i.length>100){const f={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/4/maxItems",keyword:"maxItems",params:{limit:100}};e===null?e=[f]:e.push(f),r++}const a=i.length;for(let f=0;f<a;f++){let h=i[f];const c=r;let O=!1;const j=r;if(typeof h=="string"){if(v(h)>1024){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/0/maxLength",keyword:"maxLength",params:{limit:1024}};e===null?e=[n]:e.push(n),r++}}else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[n]:e.push(n),r++}var fe=j===r;O=O||fe;const N=r;if(!(typeof h=="number"&&isFinite(h))){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[n]:e.push(n),r++}var fe=N===r;O=O||fe;const L=r;if(typeof h!="boolean"){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[n]:e.push(n),r++}var fe=L===r;if(O=O||fe,O)r=c,e!==null&&(c?e.length=c:e=null);else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-c})};e===null?e=[n]:e.push(n),r++}}}else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/4/type",keyword:"type",params:{type:"array"}};e===null?e=[a]:e.push(a),r++}var J=d===r;m=m||J;const q=r;if(i&&typeof i=="object"&&!Array.isArray(i)){if(Object.keys(i).length>20){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/maxProperties",keyword:"maxProperties",params:{limit:20}};e===null?e=[a]:e.push(a),r++}for(const a of Object.keys(i)){const f=r;if(typeof a=="string"&&v(a)>128){const h={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/propertyNames/maxLength",keyword:"maxLength",params:{limit:128},propertyName:a};e===null?e=[h]:e.push(h),r++}var Fe=f===r;if(!Fe){const h={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/propertyNames",keyword:"propertyNames",params:{propertyName:a}};e===null?e=[h]:e.push(h),r++}}for(const a of Object.keys(i)){let f=i[a];const h=r;let c=!1;const O=r;if(typeof f=="string"){if(v(f)>2048){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/0/maxLength",keyword:"maxLength",params:{limit:2048}};e===null?e=[n]:e.push(n),r++}}else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[n]:e.push(n),r++}var te=O===r;c=c||te;const j=r;if(!(typeof f=="number"&&isFinite(f))){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[n]:e.push(n),r++}var te=j===r;c=c||te;const N=r;if(typeof f!="boolean"){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[n]:e.push(n),r++}var te=N===r;c=c||te;const L=r;if(f!==null){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/3/type",keyword:"type",params:{type:"null"}};e===null?e=[n]:e.push(n),r++}var te=L===r;if(c=c||te,c)r=h,e!==null&&(h?e.length=h:e=null);else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-h})};e===null?e=[n]:e.push(n),r++}}}else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/type",keyword:"type",params:{type:"object"}};e===null?e=[a]:e.push(a),r++}var J=q===r;if(m=m||J,m)r=p,e!==null&&(p?e.length=p:e=null);else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-p})};e===null?e=[a]:e.push(a),r++}}if(o.type!==void 0&&A.call(o,"type")&&o.type!=="Polygon"){const s={instancePath:t+"/geometry/type",schemaPath:"#/properties/geometry/anyOf/3/properties/type/const",keyword:"const",params:{allowedValue:"Polygon"}};e===null?e=[s]:e.push(s),r++}if(o.coordinates!==void 0&&A.call(o,"coordinates")&&(Y(o.coordinates,{instancePath:t+"/geometry/coordinates",parentData:o,parentDataProperty:"coordinates",rootData:Z,dynamicAnchors:ee})||(e=e===null?Y.errors:e.concat(Y.errors),r=e.length)),o.bbox!==void 0&&A.call(o,"bbox")){let s=o.bbox;const i=r;let p=!1;const m=r;if(Array.isArray(s)){if(s.length>4){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/0/maxItems",keyword:"maxItems",params:{limit:4}};e===null?e=[l]:e.push(l),r++}if(s.length<4){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/0/minItems",keyword:"minItems",params:{limit:4}};e===null?e=[l]:e.push(l),r++}}var ke=m===r;p=p||ke;const b=r;if(Array.isArray(s)){if(s.length>6){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/1/maxItems",keyword:"maxItems",params:{limit:6}};e===null?e=[l]:e.push(l),r++}if(s.length<6){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/1/minItems",keyword:"minItems",params:{limit:6}};e===null?e=[l]:e.push(l),r++}}var ke=b===r;if(p=p||ke,p)r=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-i})};e===null?e=[l]:e.push(l),r++}if(Array.isArray(s)){if(s.length>6){const y={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/maxItems",keyword:"maxItems",params:{limit:6}};e===null?e=[y]:e.push(y),r++}if(s.length<4){const y={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/minItems",keyword:"minItems",params:{limit:4}};e===null?e=[y]:e.push(y),r++}const l=s.length;for(let y=0;y<l;y++){let u=s[y];if(!(typeof u=="number"&&isFinite(u))){const d={instancePath:t+"/geometry/bbox/"+y,schemaPath:"#/$defs/bbox/items/type",keyword:"type",params:{type:"number"}};e===null?e=[d]:e.push(d),r++}}}else{const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/type",keyword:"type",params:{type:"array"}};e===null?e=[l]:e.push(l),r++}}}else{const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/3/type",keyword:"type",params:{type:"object"}};e===null?e=[s]:e.push(s),r++}var T=k===r;_=_||T,T&&K!==!0&&(K=!0);const C=r;if(o&&typeof o=="object"&&!Array.isArray(o)){if(Object.keys(o).length>16){const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/4/maxProperties",keyword:"maxProperties",params:{limit:16}};e===null?e=[s]:e.push(s),r++}if(o.type===void 0||!A.call(o,"type")){const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/4/required",keyword:"required",params:{missingProperty:"type"}};e===null?e=[s]:e.push(s),r++}if(o.coordinates===void 0||!A.call(o,"coordinates")){const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/4/required",keyword:"required",params:{missingProperty:"coordinates"}};e===null?e=[s]:e.push(s),r++}for(const s of Object.keys(o)){const i=r;if(typeof s=="string"&&v(s)>128){const p={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/4/propertyNames/maxLength",keyword:"maxLength",params:{limit:128},propertyName:s};e===null?e=[p]:e.push(p),r++}var Ee=i===r;if(!Ee){const p={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/4/propertyNames",keyword:"propertyNames",params:{propertyName:s}};e===null?e=[p]:e.push(p),r++}}for(const s of Object.keys(o))if(!(s==="type"||s==="coordinates"||s==="bbox")){let i=o[s];const p=r;let m=!1;const b=r;if(typeof i=="string"){if(v(i)>2048){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/0/maxLength",keyword:"maxLength",params:{limit:2048}};e===null?e=[a]:e.push(a),r++}}else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[a]:e.push(a),r++}var U=b===r;m=m||U;const l=r;if(!(typeof i=="number"&&isFinite(i))){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[a]:e.push(a),r++}var U=l===r;m=m||U;const y=r;if(typeof i!="boolean"){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[a]:e.push(a),r++}var U=y===r;m=m||U;const u=r;if(i!==null){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/3/type",keyword:"type",params:{type:"null"}};e===null?e=[a]:e.push(a),r++}var U=u===r;m=m||U;const d=r;if(Array.isArray(i)){if(i.length>100){const f={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/4/maxItems",keyword:"maxItems",params:{limit:100}};e===null?e=[f]:e.push(f),r++}const a=i.length;for(let f=0;f<a;f++){let h=i[f];const c=r;let O=!1;const j=r;if(typeof h=="string"){if(v(h)>1024){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/0/maxLength",keyword:"maxLength",params:{limit:1024}};e===null?e=[n]:e.push(n),r++}}else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[n]:e.push(n),r++}var ye=j===r;O=O||ye;const N=r;if(!(typeof h=="number"&&isFinite(h))){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[n]:e.push(n),r++}var ye=N===r;O=O||ye;const L=r;if(typeof h!="boolean"){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[n]:e.push(n),r++}var ye=L===r;if(O=O||ye,O)r=c,e!==null&&(c?e.length=c:e=null);else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-c})};e===null?e=[n]:e.push(n),r++}}}else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/4/type",keyword:"type",params:{type:"array"}};e===null?e=[a]:e.push(a),r++}var U=d===r;m=m||U;const q=r;if(i&&typeof i=="object"&&!Array.isArray(i)){if(Object.keys(i).length>20){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/maxProperties",keyword:"maxProperties",params:{limit:20}};e===null?e=[a]:e.push(a),r++}for(const a of Object.keys(i)){const f=r;if(typeof a=="string"&&v(a)>128){const h={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/propertyNames/maxLength",keyword:"maxLength",params:{limit:128},propertyName:a};e===null?e=[h]:e.push(h),r++}var qe=f===r;if(!qe){const h={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/propertyNames",keyword:"propertyNames",params:{propertyName:a}};e===null?e=[h]:e.push(h),r++}}for(const a of Object.keys(i)){let f=i[a];const h=r;let c=!1;const O=r;if(typeof f=="string"){if(v(f)>2048){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/0/maxLength",keyword:"maxLength",params:{limit:2048}};e===null?e=[n]:e.push(n),r++}}else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[n]:e.push(n),r++}var ae=O===r;c=c||ae;const j=r;if(!(typeof f=="number"&&isFinite(f))){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[n]:e.push(n),r++}var ae=j===r;c=c||ae;const N=r;if(typeof f!="boolean"){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[n]:e.push(n),r++}var ae=N===r;c=c||ae;const L=r;if(f!==null){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/3/type",keyword:"type",params:{type:"null"}};e===null?e=[n]:e.push(n),r++}var ae=L===r;if(c=c||ae,c)r=h,e!==null&&(h?e.length=h:e=null);else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-h})};e===null?e=[n]:e.push(n),r++}}}else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/type",keyword:"type",params:{type:"object"}};e===null?e=[a]:e.push(a),r++}var U=q===r;if(m=m||U,m)r=p,e!==null&&(p?e.length=p:e=null);else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-p})};e===null?e=[a]:e.push(a),r++}}if(o.type!==void 0&&A.call(o,"type")&&o.type!=="MultiPoint"){const s={instancePath:t+"/geometry/type",schemaPath:"#/properties/geometry/anyOf/4/properties/type/const",keyword:"const",params:{allowedValue:"MultiPoint"}};e===null?e=[s]:e.push(s),r++}if(o.coordinates!==void 0&&A.call(o,"coordinates")){let s=o.coordinates;if(Array.isArray(s)){if(s.length>1e4){const p={instancePath:t+"/geometry/coordinates",schemaPath:"#/properties/geometry/anyOf/4/properties/coordinates/maxItems",keyword:"maxItems",params:{limit:1e4}};e===null?e=[p]:e.push(p),r++}const i=s.length;for(let p=0;p<i;p++){let m=s[p];if(Array.isArray(m)){if(m.length>3){const y={instancePath:t+"/geometry/coordinates/"+p,schemaPath:"#/$defs/position/maxItems",keyword:"maxItems",params:{limit:3}};e===null?e=[y]:e.push(y),r++}if(m.length<2){const y={instancePath:t+"/geometry/coordinates/"+p,schemaPath:"#/$defs/position/minItems",keyword:"minItems",params:{limit:2}};e===null?e=[y]:e.push(y),r++}const b=m.length;if(b>0){let y=m[0];if(typeof y=="number"&&isFinite(y)){if(y>180||isNaN(y)){const u={instancePath:t+"/geometry/coordinates/"+p+"/0",schemaPath:"#/$defs/position/prefixItems/0/maximum",keyword:"maximum",params:{comparison:"<=",limit:180}};e===null?e=[u]:e.push(u),r++}if(y<-180||isNaN(y)){const u={instancePath:t+"/geometry/coordinates/"+p+"/0",schemaPath:"#/$defs/position/prefixItems/0/minimum",keyword:"minimum",params:{comparison:">=",limit:-180}};e===null?e=[u]:e.push(u),r++}}else{const u={instancePath:t+"/geometry/coordinates/"+p+"/0",schemaPath:"#/$defs/position/prefixItems/0/type",keyword:"type",params:{type:"number"}};e===null?e=[u]:e.push(u),r++}}if(b>1){let y=m[1];if(typeof y=="number"&&isFinite(y)){if(y>90||isNaN(y)){const u={instancePath:t+"/geometry/coordinates/"+p+"/1",schemaPath:"#/$defs/position/prefixItems/1/maximum",keyword:"maximum",params:{comparison:"<=",limit:90}};e===null?e=[u]:e.push(u),r++}if(y<-90||isNaN(y)){const u={instancePath:t+"/geometry/coordinates/"+p+"/1",schemaPath:"#/$defs/position/prefixItems/1/minimum",keyword:"minimum",params:{comparison:">=",limit:-90}};e===null?e=[u]:e.push(u),r++}}else{const u={instancePath:t+"/geometry/coordinates/"+p+"/1",schemaPath:"#/$defs/position/prefixItems/1/type",keyword:"type",params:{type:"number"}};e===null?e=[u]:e.push(u),r++}}if(b>2){let y=m[2];if(!(typeof y=="number"&&isFinite(y))){const u={instancePath:t+"/geometry/coordinates/"+p+"/2",schemaPath:"#/$defs/position/prefixItems/2/type",keyword:"type",params:{type:"number"}};e===null?e=[u]:e.push(u),r++}}if(!(m.length<=3)){const y={instancePath:t+"/geometry/coordinates/"+p,schemaPath:"#/$defs/position/items",keyword:"items",params:{limit:3}};e===null?e=[y]:e.push(y),r++}}else{const b={instancePath:t+"/geometry/coordinates/"+p,schemaPath:"#/$defs/position/type",keyword:"type",params:{type:"array"}};e===null?e=[b]:e.push(b),r++}}}else{const i={instancePath:t+"/geometry/coordinates",schemaPath:"#/properties/geometry/anyOf/4/properties/coordinates/type",keyword:"type",params:{type:"array"}};e===null?e=[i]:e.push(i),r++}}if(o.bbox!==void 0&&A.call(o,"bbox")){let s=o.bbox;const i=r;let p=!1;const m=r;if(Array.isArray(s)){if(s.length>4){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/0/maxItems",keyword:"maxItems",params:{limit:4}};e===null?e=[l]:e.push(l),r++}if(s.length<4){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/0/minItems",keyword:"minItems",params:{limit:4}};e===null?e=[l]:e.push(l),r++}}var we=m===r;p=p||we;const b=r;if(Array.isArray(s)){if(s.length>6){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/1/maxItems",keyword:"maxItems",params:{limit:6}};e===null?e=[l]:e.push(l),r++}if(s.length<6){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/1/minItems",keyword:"minItems",params:{limit:6}};e===null?e=[l]:e.push(l),r++}}var we=b===r;if(p=p||we,p)r=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-i})};e===null?e=[l]:e.push(l),r++}if(Array.isArray(s)){if(s.length>6){const y={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/maxItems",keyword:"maxItems",params:{limit:6}};e===null?e=[y]:e.push(y),r++}if(s.length<4){const y={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/minItems",keyword:"minItems",params:{limit:4}};e===null?e=[y]:e.push(y),r++}const l=s.length;for(let y=0;y<l;y++){let u=s[y];if(!(typeof u=="number"&&isFinite(u))){const d={instancePath:t+"/geometry/bbox/"+y,schemaPath:"#/$defs/bbox/items/type",keyword:"type",params:{type:"number"}};e===null?e=[d]:e.push(d),r++}}}else{const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/type",keyword:"type",params:{type:"array"}};e===null?e=[l]:e.push(l),r++}}}else{const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/4/type",keyword:"type",params:{type:"object"}};e===null?e=[s]:e.push(s),r++}var T=C===r;_=_||T,T&&K!==!0&&(K=!0);const D=r;if(o&&typeof o=="object"&&!Array.isArray(o)){if(Object.keys(o).length>16){const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/5/maxProperties",keyword:"maxProperties",params:{limit:16}};e===null?e=[s]:e.push(s),r++}if(o.type===void 0||!A.call(o,"type")){const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/5/required",keyword:"required",params:{missingProperty:"type"}};e===null?e=[s]:e.push(s),r++}if(o.coordinates===void 0||!A.call(o,"coordinates")){const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/5/required",keyword:"required",params:{missingProperty:"coordinates"}};e===null?e=[s]:e.push(s),r++}for(const s of Object.keys(o)){const i=r;if(typeof s=="string"&&v(s)>128){const p={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/5/propertyNames/maxLength",keyword:"maxLength",params:{limit:128},propertyName:s};e===null?e=[p]:e.push(p),r++}var De=i===r;if(!De){const p={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/5/propertyNames",keyword:"propertyNames",params:{propertyName:s}};e===null?e=[p]:e.push(p),r++}}for(const s of Object.keys(o))if(!(s==="type"||s==="coordinates"||s==="bbox")){let i=o[s];const p=r;let m=!1;const b=r;if(typeof i=="string"){if(v(i)>2048){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/0/maxLength",keyword:"maxLength",params:{limit:2048}};e===null?e=[a]:e.push(a),r++}}else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[a]:e.push(a),r++}var z=b===r;m=m||z;const l=r;if(!(typeof i=="number"&&isFinite(i))){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[a]:e.push(a),r++}var z=l===r;m=m||z;const y=r;if(typeof i!="boolean"){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[a]:e.push(a),r++}var z=y===r;m=m||z;const u=r;if(i!==null){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/3/type",keyword:"type",params:{type:"null"}};e===null?e=[a]:e.push(a),r++}var z=u===r;m=m||z;const d=r;if(Array.isArray(i)){if(i.length>100){const f={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/4/maxItems",keyword:"maxItems",params:{limit:100}};e===null?e=[f]:e.push(f),r++}const a=i.length;for(let f=0;f<a;f++){let h=i[f];const c=r;let O=!1;const j=r;if(typeof h=="string"){if(v(h)>1024){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/0/maxLength",keyword:"maxLength",params:{limit:1024}};e===null?e=[n]:e.push(n),r++}}else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[n]:e.push(n),r++}var ce=j===r;O=O||ce;const N=r;if(!(typeof h=="number"&&isFinite(h))){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[n]:e.push(n),r++}var ce=N===r;O=O||ce;const L=r;if(typeof h!="boolean"){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[n]:e.push(n),r++}var ce=L===r;if(O=O||ce,O)r=c,e!==null&&(c?e.length=c:e=null);else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-c})};e===null?e=[n]:e.push(n),r++}}}else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/4/type",keyword:"type",params:{type:"array"}};e===null?e=[a]:e.push(a),r++}var z=d===r;m=m||z;const q=r;if(i&&typeof i=="object"&&!Array.isArray(i)){if(Object.keys(i).length>20){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/maxProperties",keyword:"maxProperties",params:{limit:20}};e===null?e=[a]:e.push(a),r++}for(const a of Object.keys(i)){const f=r;if(typeof a=="string"&&v(a)>128){const h={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/propertyNames/maxLength",keyword:"maxLength",params:{limit:128},propertyName:a};e===null?e=[h]:e.push(h),r++}var Se=f===r;if(!Se){const h={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/propertyNames",keyword:"propertyNames",params:{propertyName:a}};e===null?e=[h]:e.push(h),r++}}for(const a of Object.keys(i)){let f=i[a];const h=r;let c=!1;const O=r;if(typeof f=="string"){if(v(f)>2048){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/0/maxLength",keyword:"maxLength",params:{limit:2048}};e===null?e=[n]:e.push(n),r++}}else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[n]:e.push(n),r++}var oe=O===r;c=c||oe;const j=r;if(!(typeof f=="number"&&isFinite(f))){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[n]:e.push(n),r++}var oe=j===r;c=c||oe;const N=r;if(typeof f!="boolean"){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[n]:e.push(n),r++}var oe=N===r;c=c||oe;const L=r;if(f!==null){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/3/type",keyword:"type",params:{type:"null"}};e===null?e=[n]:e.push(n),r++}var oe=L===r;if(c=c||oe,c)r=h,e!==null&&(h?e.length=h:e=null);else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-h})};e===null?e=[n]:e.push(n),r++}}}else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/type",keyword:"type",params:{type:"object"}};e===null?e=[a]:e.push(a),r++}var z=q===r;if(m=m||z,m)r=p,e!==null&&(p?e.length=p:e=null);else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-p})};e===null?e=[a]:e.push(a),r++}}if(o.type!==void 0&&A.call(o,"type")&&o.type!=="MultiLineString"){const s={instancePath:t+"/geometry/type",schemaPath:"#/properties/geometry/anyOf/5/properties/type/const",keyword:"const",params:{allowedValue:"MultiLineString"}};e===null?e=[s]:e.push(s),r++}if(o.coordinates!==void 0&&A.call(o,"coordinates")){let s=o.coordinates;if(Array.isArray(s)){if(s.length>1e3){const p={instancePath:t+"/geometry/coordinates",schemaPath:"#/properties/geometry/anyOf/5/properties/coordinates/maxItems",keyword:"maxItems",params:{limit:1e3}};e===null?e=[p]:e.push(p),r++}const i=s.length;for(let p=0;p<i;p++)X(s[p],{instancePath:t+"/geometry/coordinates/"+p,parentData:s,parentDataProperty:p,rootData:Z,dynamicAnchors:ee})||(e=e===null?X.errors:e.concat(X.errors),r=e.length)}else{const i={instancePath:t+"/geometry/coordinates",schemaPath:"#/properties/geometry/anyOf/5/properties/coordinates/type",keyword:"type",params:{type:"array"}};e===null?e=[i]:e.push(i),r++}}if(o.bbox!==void 0&&A.call(o,"bbox")){let s=o.bbox;const i=r;let p=!1;const m=r;if(Array.isArray(s)){if(s.length>4){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/0/maxItems",keyword:"maxItems",params:{limit:4}};e===null?e=[l]:e.push(l),r++}if(s.length<4){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/0/minItems",keyword:"minItems",params:{limit:4}};e===null?e=[l]:e.push(l),r++}}var $e=m===r;p=p||$e;const b=r;if(Array.isArray(s)){if(s.length>6){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/1/maxItems",keyword:"maxItems",params:{limit:6}};e===null?e=[l]:e.push(l),r++}if(s.length<6){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/1/minItems",keyword:"minItems",params:{limit:6}};e===null?e=[l]:e.push(l),r++}}var $e=b===r;if(p=p||$e,p)r=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-i})};e===null?e=[l]:e.push(l),r++}if(Array.isArray(s)){if(s.length>6){const y={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/maxItems",keyword:"maxItems",params:{limit:6}};e===null?e=[y]:e.push(y),r++}if(s.length<4){const y={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/minItems",keyword:"minItems",params:{limit:4}};e===null?e=[y]:e.push(y),r++}const l=s.length;for(let y=0;y<l;y++){let u=s[y];if(!(typeof u=="number"&&isFinite(u))){const d={instancePath:t+"/geometry/bbox/"+y,schemaPath:"#/$defs/bbox/items/type",keyword:"type",params:{type:"number"}};e===null?e=[d]:e.push(d),r++}}}else{const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/type",keyword:"type",params:{type:"array"}};e===null?e=[l]:e.push(l),r++}}}else{const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/5/type",keyword:"type",params:{type:"object"}};e===null?e=[s]:e.push(s),r++}var T=D===r;_=_||T,T&&K!==!0&&(K=!0);const de=r;if(o&&typeof o=="object"&&!Array.isArray(o)){if(Object.keys(o).length>16){const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/6/maxProperties",keyword:"maxProperties",params:{limit:16}};e===null?e=[s]:e.push(s),r++}if(o.type===void 0||!A.call(o,"type")){const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/6/required",keyword:"required",params:{missingProperty:"type"}};e===null?e=[s]:e.push(s),r++}if(o.coordinates===void 0||!A.call(o,"coordinates")){const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/6/required",keyword:"required",params:{missingProperty:"coordinates"}};e===null?e=[s]:e.push(s),r++}for(const s of Object.keys(o)){const i=r;if(typeof s=="string"&&v(s)>128){const p={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/6/propertyNames/maxLength",keyword:"maxLength",params:{limit:128},propertyName:s};e===null?e=[p]:e.push(p),r++}var Me=i===r;if(!Me){const p={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/6/propertyNames",keyword:"propertyNames",params:{propertyName:s}};e===null?e=[p]:e.push(p),r++}}for(const s of Object.keys(o))if(!(s==="type"||s==="coordinates"||s==="bbox")){let i=o[s];const p=r;let m=!1;const b=r;if(typeof i=="string"){if(v(i)>2048){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/0/maxLength",keyword:"maxLength",params:{limit:2048}};e===null?e=[a]:e.push(a),r++}}else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[a]:e.push(a),r++}var B=b===r;m=m||B;const l=r;if(!(typeof i=="number"&&isFinite(i))){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[a]:e.push(a),r++}var B=l===r;m=m||B;const y=r;if(typeof i!="boolean"){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[a]:e.push(a),r++}var B=y===r;m=m||B;const u=r;if(i!==null){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/3/type",keyword:"type",params:{type:"null"}};e===null?e=[a]:e.push(a),r++}var B=u===r;m=m||B;const d=r;if(Array.isArray(i)){if(i.length>100){const f={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/4/maxItems",keyword:"maxItems",params:{limit:100}};e===null?e=[f]:e.push(f),r++}const a=i.length;for(let f=0;f<a;f++){let h=i[f];const c=r;let O=!1;const j=r;if(typeof h=="string"){if(v(h)>1024){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/0/maxLength",keyword:"maxLength",params:{limit:1024}};e===null?e=[n]:e.push(n),r++}}else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[n]:e.push(n),r++}var he=j===r;O=O||he;const N=r;if(!(typeof h=="number"&&isFinite(h))){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[n]:e.push(n),r++}var he=N===r;O=O||he;const L=r;if(typeof h!="boolean"){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[n]:e.push(n),r++}var he=L===r;if(O=O||he,O)r=c,e!==null&&(c?e.length=c:e=null);else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+f,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-c})};e===null?e=[n]:e.push(n),r++}}}else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/4/type",keyword:"type",params:{type:"array"}};e===null?e=[a]:e.push(a),r++}var B=d===r;m=m||B;const q=r;if(i&&typeof i=="object"&&!Array.isArray(i)){if(Object.keys(i).length>20){const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/maxProperties",keyword:"maxProperties",params:{limit:20}};e===null?e=[a]:e.push(a),r++}for(const a of Object.keys(i)){const f=r;if(typeof a=="string"&&v(a)>128){const h={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/propertyNames/maxLength",keyword:"maxLength",params:{limit:128},propertyName:a};e===null?e=[h]:e.push(h),r++}var Te=f===r;if(!Te){const h={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/propertyNames",keyword:"propertyNames",params:{propertyName:a}};e===null?e=[h]:e.push(h),r++}}for(const a of Object.keys(i)){let f=i[a];const h=r;let c=!1;const O=r;if(typeof f=="string"){if(v(f)>2048){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/0/maxLength",keyword:"maxLength",params:{limit:2048}};e===null?e=[n]:e.push(n),r++}}else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[n]:e.push(n),r++}var ne=O===r;c=c||ne;const j=r;if(!(typeof f=="number"&&isFinite(f))){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[n]:e.push(n),r++}var ne=j===r;c=c||ne;const N=r;if(typeof f!="boolean"){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[n]:e.push(n),r++}var ne=N===r;c=c||ne;const L=r;if(f!==null){const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/3/type",keyword:"type",params:{type:"null"}};e===null?e=[n]:e.push(n),r++}var ne=L===r;if(c=c||ne,c)r=h,e!==null&&(h?e.length=h:e=null);else{const n={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+a.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-h})};e===null?e=[n]:e.push(n),r++}}}else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/type",keyword:"type",params:{type:"object"}};e===null?e=[a]:e.push(a),r++}var B=q===r;if(m=m||B,m)r=p,e!==null&&(p?e.length=p:e=null);else{const a={instancePath:t+"/geometry/"+s.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-p})};e===null?e=[a]:e.push(a),r++}}if(o.type!==void 0&&A.call(o,"type")&&o.type!=="MultiPolygon"){const s={instancePath:t+"/geometry/type",schemaPath:"#/properties/geometry/anyOf/6/properties/type/const",keyword:"const",params:{allowedValue:"MultiPolygon"}};e===null?e=[s]:e.push(s),r++}if(o.coordinates!==void 0&&A.call(o,"coordinates")){let s=o.coordinates;if(Array.isArray(s)){if(s.length>1e3){const p={instancePath:t+"/geometry/coordinates",schemaPath:"#/properties/geometry/anyOf/6/properties/coordinates/maxItems",keyword:"maxItems",params:{limit:1e3}};e===null?e=[p]:e.push(p),r++}const i=s.length;for(let p=0;p<i;p++)Y(s[p],{instancePath:t+"/geometry/coordinates/"+p,parentData:s,parentDataProperty:p,rootData:Z,dynamicAnchors:ee})||(e=e===null?Y.errors:e.concat(Y.errors),r=e.length)}else{const i={instancePath:t+"/geometry/coordinates",schemaPath:"#/properties/geometry/anyOf/6/properties/coordinates/type",keyword:"type",params:{type:"array"}};e===null?e=[i]:e.push(i),r++}}if(o.bbox!==void 0&&A.call(o,"bbox")){let s=o.bbox;const i=r;let p=!1;const m=r;if(Array.isArray(s)){if(s.length>4){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/0/maxItems",keyword:"maxItems",params:{limit:4}};e===null?e=[l]:e.push(l),r++}if(s.length<4){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/0/minItems",keyword:"minItems",params:{limit:4}};e===null?e=[l]:e.push(l),r++}}var Ie=m===r;p=p||Ie;const b=r;if(Array.isArray(s)){if(s.length>6){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/1/maxItems",keyword:"maxItems",params:{limit:6}};e===null?e=[l]:e.push(l),r++}if(s.length<6){const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf/1/minItems",keyword:"minItems",params:{limit:6}};e===null?e=[l]:e.push(l),r++}}var Ie=b===r;if(p=p||Ie,p)r=i,e!==null&&(i?e.length=i:e=null);else{const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-i})};e===null?e=[l]:e.push(l),r++}if(Array.isArray(s)){if(s.length>6){const y={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/maxItems",keyword:"maxItems",params:{limit:6}};e===null?e=[y]:e.push(y),r++}if(s.length<4){const y={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/minItems",keyword:"minItems",params:{limit:4}};e===null?e=[y]:e.push(y),r++}const l=s.length;for(let y=0;y<l;y++){let u=s[y];if(!(typeof u=="number"&&isFinite(u))){const d={instancePath:t+"/geometry/bbox/"+y,schemaPath:"#/$defs/bbox/items/type",keyword:"type",params:{type:"number"}};e===null?e=[d]:e.push(d),r++}}}else{const l={instancePath:t+"/geometry/bbox",schemaPath:"#/$defs/bbox/type",keyword:"type",params:{type:"array"}};e===null?e=[l]:e.push(l),r++}}}else{const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf/6/type",keyword:"type",params:{type:"object"}};e===null?e=[s]:e.push(s),r++}var T=de===r;if(_=_||T,T&&K!==!0&&(K=!0),_)r=I,e!==null&&(I?e.length=I:e=null);else{const s={instancePath:t+"/geometry",schemaPath:"#/properties/geometry/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-I})};e===null?e=[s]:e.push(s),r++}}if(w.properties!==void 0&&A.call(w,"properties")){let o=w.properties;const I=r;let _=!1;const E=r;if(o!==null){const g={instancePath:t+"/properties",schemaPath:"#/properties/properties/anyOf/0/type",keyword:"type",params:{type:"null"}};e===null?e=[g]:e.push(g),r++}var ve=E===r;_=_||ve;const Q=r;if(o&&typeof o=="object"&&!Array.isArray(o)){if(Object.keys(o).length>100){const g={instancePath:t+"/properties",schemaPath:"#/properties/properties/anyOf/1/maxProperties",keyword:"maxProperties",params:{limit:100}};e===null?e=[g]:e.push(g),r++}for(const g of Object.keys(o)){const k=r;if(typeof g=="string"&&v(g)>128){const C={instancePath:t+"/properties",schemaPath:"#/properties/properties/anyOf/1/propertyNames/maxLength",keyword:"maxLength",params:{limit:128},propertyName:g};e===null?e=[C]:e.push(C),r++}var Ce=k===r;if(!Ce){const C={instancePath:t+"/properties",schemaPath:"#/properties/properties/anyOf/1/propertyNames",keyword:"propertyNames",params:{propertyName:g}};e===null?e=[C]:e.push(C),r++}}for(const g of Object.keys(o))if(!(g==="timestamp"||g==="camera_make"||g==="camera_model")){let k=o[g];const C=r;let D=!1;const de=r;if(typeof k=="string"){if(v(k)>2048){const l={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/0/maxLength",keyword:"maxLength",params:{limit:2048}};e===null?e=[l]:e.push(l),r++}}else{const l={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[l]:e.push(l),r++}var H=de===r;D=D||H;const s=r;if(!(typeof k=="number"&&isFinite(k))){const l={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[l]:e.push(l),r++}var H=s===r;D=D||H;const i=r;if(typeof k!="boolean"){const l={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[l]:e.push(l),r++}var H=i===r;D=D||H;const p=r;if(k!==null){const l={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/3/type",keyword:"type",params:{type:"null"}};e===null?e=[l]:e.push(l),r++}var H=p===r;D=D||H;const m=r;if(Array.isArray(k)){if(k.length>100){const y={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/4/maxItems",keyword:"maxItems",params:{limit:100}};e===null?e=[y]:e.push(y),r++}const l=k.length;for(let y=0;y<l;y++){let u=k[y];const d=r;let q=!1;const a=r;if(typeof u=="string"){if(v(u)>1024){const c={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+y,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/0/maxLength",keyword:"maxLength",params:{limit:1024}};e===null?e=[c]:e.push(c),r++}}else{const c={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+y,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[c]:e.push(c),r++}var ge=a===r;q=q||ge;const f=r;if(!(typeof u=="number"&&isFinite(u))){const c={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+y,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[c]:e.push(c),r++}var ge=f===r;q=q||ge;const h=r;if(typeof u!="boolean"){const c={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+y,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[c]:e.push(c),r++}var ge=h===r;if(q=q||ge,q)r=d,e!==null&&(d?e.length=d:e=null);else{const c={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+y,schemaPath:"#/$defs/foreign-member/anyOf/4/items/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-d})};e===null?e=[c]:e.push(c),r++}}}else{const l={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/4/type",keyword:"type",params:{type:"array"}};e===null?e=[l]:e.push(l),r++}var H=m===r;D=D||H;const b=r;if(k&&typeof k=="object"&&!Array.isArray(k)){if(Object.keys(k).length>20){const l={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/maxProperties",keyword:"maxProperties",params:{limit:20}};e===null?e=[l]:e.push(l),r++}for(const l of Object.keys(k)){const y=r;if(typeof l=="string"&&v(l)>128){const u={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/propertyNames/maxLength",keyword:"maxLength",params:{limit:128},propertyName:l};e===null?e=[u]:e.push(u),r++}var Re=y===r;if(!Re){const u={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/propertyNames",keyword:"propertyNames",params:{propertyName:l}};e===null?e=[u]:e.push(u),r++}}for(const l of Object.keys(k)){let y=k[l];const u=r;let d=!1;const q=r;if(typeof y=="string"){if(v(y)>2048){const c={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/0/maxLength",keyword:"maxLength",params:{limit:2048}};e===null?e=[c]:e.push(c),r++}}else{const c={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[c]:e.push(c),r++}var ie=q===r;d=d||ie;const a=r;if(!(typeof y=="number"&&isFinite(y))){const c={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[c]:e.push(c),r++}var ie=a===r;d=d||ie;const f=r;if(typeof y!="boolean"){const c={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[c]:e.push(c),r++}var ie=f===r;d=d||ie;const h=r;if(y!==null){const c={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf/3/type",keyword:"type",params:{type:"null"}};e===null?e=[c]:e.push(c),r++}var ie=h===r;if(d=d||ie,d)r=u,e!==null&&(u?e.length=u:e=null);else{const c={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/additionalProperties/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-u})};e===null?e=[c]:e.push(c),r++}}}else{const l={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf/5/type",keyword:"type",params:{type:"object"}};e===null?e=[l]:e.push(l),r++}var H=b===r;if(D=D||H,D)r=C,e!==null&&(C?e.length=C:e=null);else{const l={instancePath:t+"/properties/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/$defs/foreign-member/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-C})};e===null?e=[l]:e.push(l),r++}}if(o.timestamp!==void 0&&A.call(o,"timestamp")){let g=o.timestamp;if(typeof g=="string"){if(v(g)>128){const k={instancePath:t+"/properties/timestamp",schemaPath:"#/properties/properties/anyOf/1/properties/timestamp/maxLength",keyword:"maxLength",params:{limit:128}};e===null?e=[k]:e.push(k),r++}if(!We(g)){const k={instancePath:t+"/properties/timestamp",schemaPath:"#/properties/properties/anyOf/1/properties/timestamp/format",keyword:"format",params:{format:"date-time"}};e===null?e=[k]:e.push(k),r++}}else{const k={instancePath:t+"/properties/timestamp",schemaPath:"#/properties/properties/anyOf/1/properties/timestamp/type",keyword:"type",params:{type:"string"}};e===null?e=[k]:e.push(k),r++}}if(o.camera_make!==void 0&&A.call(o,"camera_make")){let g=o.camera_make;if(typeof g=="string"){if(v(g)>128){const k={instancePath:t+"/properties/camera_make",schemaPath:"#/properties/properties/anyOf/1/properties/camera_make/maxLength",keyword:"maxLength",params:{limit:128}};e===null?e=[k]:e.push(k),r++}}else{const k={instancePath:t+"/properties/camera_make",schemaPath:"#/properties/properties/anyOf/1/properties/camera_make/type",keyword:"type",params:{type:"string"}};e===null?e=[k]:e.push(k),r++}}if(o.camera_model!==void 0&&A.call(o,"camera_model")){let g=o.camera_model;if(typeof g=="string"){if(v(g)>128){const k={instancePath:t+"/properties/camera_model",schemaPath:"#/properties/properties/anyOf/1/properties/camera_model/maxLength",keyword:"maxLength",params:{limit:128}};e===null?e=[k]:e.push(k),r++}}else{const k={instancePath:t+"/properties/camera_model",schemaPath:"#/properties/properties/anyOf/1/properties/camera_model/type",keyword:"type",params:{type:"string"}};e===null?e=[k]:e.push(k),r++}}}else{const g={instancePath:t+"/properties",schemaPath:"#/properties/properties/anyOf/1/type",keyword:"type",params:{type:"object"}};e===null?e=[g]:e.push(g),r++}var ve=Q===r;if(_=_||ve,_)r=I,e!==null&&(I?e.length=I:e=null);else{const g={instancePath:t+"/properties",schemaPath:"#/properties/properties/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:r-I})};e===null?e=[g]:e.push(g),r++}}}else{const o={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"}};e===null?e=[o]:e.push(o),r++}return ue.errors=e,r===0}ue.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};export{ze as default,Ue as validate};
@@ -0,0 +1,4 @@
1
+ // SPDX-FileCopyrightText: 2026 The OATS Authors
2
+ // SPDX-FileCopyrightText: 2015-2021 Evgeny Poberezkin
3
+ // SPDX-License-Identifier: Apache-2.0 AND MIT
4
+ import{FORMATS as w,ucs2length as x}from"../../formats.js";const F=y;var T=y;const P={"x-license":{id:"Apache-2.0",notice:"Copyright 2025-2026 The OATS Authors",url:"https://github.com/oatschema/oats/blob/main/LICENSE"},$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://oatschema.org/0.8.0/llm-output",title:"LLM Output","x-version":"0.8.0",description:"Store a single interaction with an LLM (a Prompt/Response pair). Captures the input prompt, the resulting output, and the configuration parameters used at that moment.",type:"object",properties:{model:{type:"string",description:"The ID or name of the model used (e.g., 'gpt-4o', 'claude-3-sonnet').",maxLength:1024},prompt:{type:"string",description:"The text input provided to the model. For contexts exceeding the character limit, this field should be truncated or a reference to the full storage location.",maxLength:262144},response_data:{description:"The output from the model. Non-plaintext output (e.g. JSON) should be serialized. For contexts exceeding the character limit, this field should be truncated or a reference to the full storage location.",type:"string",maxLength:524288},language:{type:"string",description:"The 3-letter ISO-639-3 language code of the response (e.g., 'eng', 'fra').",pattern:"^[a-z]{3}$",maxLength:3},score:{type:"number",description:"A normalized metric evaluating the response (-1.0 to 1.0). Positive values indicate high quality, acceptance, or positive sentiment. Negative values indicate rejection, low quality, or negative sentiment.",minimum:-1,maximum:1},score_explanation:{type:"string",description:"Defines the meaning and range of the 'score' field (e.g. 'Reward Model Score' or 'Confidence').",maxLength:256},generation_params:{type:"object",description:"Optional parameters sent in the API request to control the generation.",properties:{system_prompt:{type:"string",description:"An optional system-level instruction that defines the model's persona, style, or constraints. For contexts exceeding the character limit, this field should be truncated or a reference to the full storage location.",maxLength:262144},temperature:{type:"number",description:"Controls randomness (e.g., 0.0 to 2.0).",minimum:0,maximum:2},top_p:{type:"number",description:"Controls nucleus sampling (e.g., 0.0 to 1.0).",minimum:0,maximum:1},top_k:{type:"integer",description:"Limits sampling to the k most likely tokens.",minimum:1},max_tokens:{type:"integer",description:"The maximum number of tokens that were allowed to be generated.",minimum:1},seed:{type:"integer",description:"The seed used for sampling for reproducible outputs."},stop:{description:"One or more sequences where the API will stop generating further tokens.",anyOf:[{type:"string",maxLength:128},{type:"array",items:{type:"string",maxLength:128},maxItems:16}]},presence_penalty:{type:"number",description:"Penalty for new tokens based on whether they appear in the text so far (e.g., -2.0 to 2.0).",minimum:-2,maximum:2},frequency_penalty:{type:"number",description:"Penalty for new tokens based on their existing frequency in the text so far (e.g., -2.0 to 2.0).",minimum:-2,maximum:2},response_format:{type:"object",description:"Specifies the output format (e.g., 'text', 'json_object' or 'json_schema').",properties:{type:{type:"string",description:"The type of output format.",enum:["text","json_object","json_schema"]}},required:["type"],additionalProperties:!1}},additionalProperties:!1},generation_metadata:{type:"object",description:"Optional metadata returned by the API response, used for provenance and logging.",properties:{response_id:{type:"string",description:"The unique identifier for the generation response from the API provider.",maxLength:128},created:{type:"string",format:"date-time",maxLength:128,description:"The ISO-8601 timestamp of when the response was created."},finish_reason:{type:"string",description:"The reason the model stopped generating tokens (e.g., 'stop', 'length', 'tool_calls').",maxLength:128},system_fingerprint:{type:"string",description:"An identifier for the backend configuration that served the request, for reproducibility.",maxLength:128},usage:{type:"object",description:"Token usage statistics for the generation request.",properties:{prompt_tokens:{type:"integer",description:"The number of tokens in the input.",minimum:0},completion_tokens:{type:"integer",description:"The number of tokens generated.",minimum:0},total_tokens:{type:"integer",description:"The total number of tokens used.",minimum:0},cached_prompt_tokens:{type:"integer",description:"The number of input tokens served from a prompt cache.",minimum:0}},required:["prompt_tokens","completion_tokens","total_tokens"],additionalProperties:!1}},additionalProperties:!1},attributes:{type:"object",description:"Arbitrary metadata relevant to this item.",maxProperties:16,propertyNames:{maxLength:128},additionalProperties:{anyOf:[{type:"string",maxLength:1024},{type:"number"},{type:"boolean"},{type:"null"}]}}},required:["model","response_data"],additionalProperties:!1},p=Object.prototype.hasOwnProperty,u=x,N=new RegExp("^[a-z]{3}$","u"),L=w["date-time"];function y(o,{instancePath:i="",parentData:j,parentDataProperty:O,rootData:q=o,dynamicAnchors:v={}}={}){let e=null,a=0;const h=y.evaluated;if(h.dynamicProps&&(h.props=void 0),h.dynamicItems&&(h.items=void 0),o&&typeof o=="object"&&!Array.isArray(o)){if(o.model===void 0||!p.call(o,"model")){const s={instancePath:i,schemaPath:"#/required",keyword:"required",params:{missingProperty:"model"}};e===null?e=[s]:e.push(s),a++}if(o.response_data===void 0||!p.call(o,"response_data")){const s={instancePath:i,schemaPath:"#/required",keyword:"required",params:{missingProperty:"response_data"}};e===null?e=[s]:e.push(s),a++}for(const s of Object.keys(o))if(!p.call(P.properties,s)){const t={instancePath:i,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s}};e===null?e=[t]:e.push(t),a++}if(o.model!==void 0&&p.call(o,"model")){let s=o.model;if(typeof s=="string"){if(u(s)>1024){const t={instancePath:i+"/model",schemaPath:"#/properties/model/maxLength",keyword:"maxLength",params:{limit:1024}};e===null?e=[t]:e.push(t),a++}}else{const t={instancePath:i+"/model",schemaPath:"#/properties/model/type",keyword:"type",params:{type:"string"}};e===null?e=[t]:e.push(t),a++}}if(o.prompt!==void 0&&p.call(o,"prompt")){let s=o.prompt;if(typeof s=="string"){if(u(s)>262144){const t={instancePath:i+"/prompt",schemaPath:"#/properties/prompt/maxLength",keyword:"maxLength",params:{limit:262144}};e===null?e=[t]:e.push(t),a++}}else{const t={instancePath:i+"/prompt",schemaPath:"#/properties/prompt/type",keyword:"type",params:{type:"string"}};e===null?e=[t]:e.push(t),a++}}if(o.response_data!==void 0&&p.call(o,"response_data")){let s=o.response_data;if(typeof s=="string"){if(u(s)>524288){const t={instancePath:i+"/response_data",schemaPath:"#/properties/response_data/maxLength",keyword:"maxLength",params:{limit:524288}};e===null?e=[t]:e.push(t),a++}}else{const t={instancePath:i+"/response_data",schemaPath:"#/properties/response_data/type",keyword:"type",params:{type:"string"}};e===null?e=[t]:e.push(t),a++}}if(o.language!==void 0&&p.call(o,"language")){let s=o.language;if(typeof s=="string"){if(u(s)>3){const t={instancePath:i+"/language",schemaPath:"#/properties/language/maxLength",keyword:"maxLength",params:{limit:3}};e===null?e=[t]:e.push(t),a++}if(!N.test(s)){const t={instancePath:i+"/language",schemaPath:"#/properties/language/pattern",keyword:"pattern",params:{pattern:"^[a-z]{3}$"}};e===null?e=[t]:e.push(t),a++}}else{const t={instancePath:i+"/language",schemaPath:"#/properties/language/type",keyword:"type",params:{type:"string"}};e===null?e=[t]:e.push(t),a++}}if(o.score!==void 0&&p.call(o,"score")){let s=o.score;if(typeof s=="number"&&isFinite(s)){if(s>1||isNaN(s)){const t={instancePath:i+"/score",schemaPath:"#/properties/score/maximum",keyword:"maximum",params:{comparison:"<=",limit:1}};e===null?e=[t]:e.push(t),a++}if(s<-1||isNaN(s)){const t={instancePath:i+"/score",schemaPath:"#/properties/score/minimum",keyword:"minimum",params:{comparison:">=",limit:-1}};e===null?e=[t]:e.push(t),a++}}else{const t={instancePath:i+"/score",schemaPath:"#/properties/score/type",keyword:"type",params:{type:"number"}};e===null?e=[t]:e.push(t),a++}}if(o.score_explanation!==void 0&&p.call(o,"score_explanation")){let s=o.score_explanation;if(typeof s=="string"){if(u(s)>256){const t={instancePath:i+"/score_explanation",schemaPath:"#/properties/score_explanation/maxLength",keyword:"maxLength",params:{limit:256}};e===null?e=[t]:e.push(t),a++}}else{const t={instancePath:i+"/score_explanation",schemaPath:"#/properties/score_explanation/type",keyword:"type",params:{type:"string"}};e===null?e=[t]:e.push(t),a++}}if(o.generation_params!==void 0&&p.call(o,"generation_params")){let s=o.generation_params;if(s&&typeof s=="object"&&!Array.isArray(s)){for(const t of Object.keys(s))if(!p.call(P.properties.generation_params.properties,t)){const r={instancePath:i+"/generation_params",schemaPath:"#/properties/generation_params/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:t}};e===null?e=[r]:e.push(r),a++}if(s.system_prompt!==void 0&&p.call(s,"system_prompt")){let t=s.system_prompt;if(typeof t=="string"){if(u(t)>262144){const r={instancePath:i+"/generation_params/system_prompt",schemaPath:"#/properties/generation_params/properties/system_prompt/maxLength",keyword:"maxLength",params:{limit:262144}};e===null?e=[r]:e.push(r),a++}}else{const r={instancePath:i+"/generation_params/system_prompt",schemaPath:"#/properties/generation_params/properties/system_prompt/type",keyword:"type",params:{type:"string"}};e===null?e=[r]:e.push(r),a++}}if(s.temperature!==void 0&&p.call(s,"temperature")){let t=s.temperature;if(typeof t=="number"&&isFinite(t)){if(t>2||isNaN(t)){const r={instancePath:i+"/generation_params/temperature",schemaPath:"#/properties/generation_params/properties/temperature/maximum",keyword:"maximum",params:{comparison:"<=",limit:2}};e===null?e=[r]:e.push(r),a++}if(t<0||isNaN(t)){const r={instancePath:i+"/generation_params/temperature",schemaPath:"#/properties/generation_params/properties/temperature/minimum",keyword:"minimum",params:{comparison:">=",limit:0}};e===null?e=[r]:e.push(r),a++}}else{const r={instancePath:i+"/generation_params/temperature",schemaPath:"#/properties/generation_params/properties/temperature/type",keyword:"type",params:{type:"number"}};e===null?e=[r]:e.push(r),a++}}if(s.top_p!==void 0&&p.call(s,"top_p")){let t=s.top_p;if(typeof t=="number"&&isFinite(t)){if(t>1||isNaN(t)){const r={instancePath:i+"/generation_params/top_p",schemaPath:"#/properties/generation_params/properties/top_p/maximum",keyword:"maximum",params:{comparison:"<=",limit:1}};e===null?e=[r]:e.push(r),a++}if(t<0||isNaN(t)){const r={instancePath:i+"/generation_params/top_p",schemaPath:"#/properties/generation_params/properties/top_p/minimum",keyword:"minimum",params:{comparison:">=",limit:0}};e===null?e=[r]:e.push(r),a++}}else{const r={instancePath:i+"/generation_params/top_p",schemaPath:"#/properties/generation_params/properties/top_p/type",keyword:"type",params:{type:"number"}};e===null?e=[r]:e.push(r),a++}}if(s.top_k!==void 0&&p.call(s,"top_k")){let t=s.top_k;if(!(typeof t=="number"&&!(t%1)&&!isNaN(t)&&isFinite(t))){const r={instancePath:i+"/generation_params/top_k",schemaPath:"#/properties/generation_params/properties/top_k/type",keyword:"type",params:{type:"integer"}};e===null?e=[r]:e.push(r),a++}if(typeof t=="number"&&isFinite(t)&&(t<1||isNaN(t))){const r={instancePath:i+"/generation_params/top_k",schemaPath:"#/properties/generation_params/properties/top_k/minimum",keyword:"minimum",params:{comparison:">=",limit:1}};e===null?e=[r]:e.push(r),a++}}if(s.max_tokens!==void 0&&p.call(s,"max_tokens")){let t=s.max_tokens;if(!(typeof t=="number"&&!(t%1)&&!isNaN(t)&&isFinite(t))){const r={instancePath:i+"/generation_params/max_tokens",schemaPath:"#/properties/generation_params/properties/max_tokens/type",keyword:"type",params:{type:"integer"}};e===null?e=[r]:e.push(r),a++}if(typeof t=="number"&&isFinite(t)&&(t<1||isNaN(t))){const r={instancePath:i+"/generation_params/max_tokens",schemaPath:"#/properties/generation_params/properties/max_tokens/minimum",keyword:"minimum",params:{comparison:">=",limit:1}};e===null?e=[r]:e.push(r),a++}}if(s.seed!==void 0&&p.call(s,"seed")){let t=s.seed;if(!(typeof t=="number"&&!(t%1)&&!isNaN(t)&&isFinite(t))){const r={instancePath:i+"/generation_params/seed",schemaPath:"#/properties/generation_params/properties/seed/type",keyword:"type",params:{type:"integer"}};e===null?e=[r]:e.push(r),a++}}if(s.stop!==void 0&&p.call(s,"stop")){let t=s.stop;const r=a;let n=!1;const c=a;if(typeof t=="string"){if(u(t)>128){const l={instancePath:i+"/generation_params/stop",schemaPath:"#/properties/generation_params/properties/stop/anyOf/0/maxLength",keyword:"maxLength",params:{limit:128}};e===null?e=[l]:e.push(l),a++}}else{const l={instancePath:i+"/generation_params/stop",schemaPath:"#/properties/generation_params/properties/stop/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[l]:e.push(l),a++}var _=c===a;n=n||_;const k=a;if(Array.isArray(t)){if(t.length>16){const d={instancePath:i+"/generation_params/stop",schemaPath:"#/properties/generation_params/properties/stop/anyOf/1/maxItems",keyword:"maxItems",params:{limit:16}};e===null?e=[d]:e.push(d),a++}const l=t.length;for(let d=0;d<l;d++){let g=t[d];if(typeof g=="string"){if(u(g)>128){const m={instancePath:i+"/generation_params/stop/"+d,schemaPath:"#/properties/generation_params/properties/stop/anyOf/1/items/maxLength",keyword:"maxLength",params:{limit:128}};e===null?e=[m]:e.push(m),a++}}else{const m={instancePath:i+"/generation_params/stop/"+d,schemaPath:"#/properties/generation_params/properties/stop/anyOf/1/items/type",keyword:"type",params:{type:"string"}};e===null?e=[m]:e.push(m),a++}}}else{const l={instancePath:i+"/generation_params/stop",schemaPath:"#/properties/generation_params/properties/stop/anyOf/1/type",keyword:"type",params:{type:"array"}};e===null?e=[l]:e.push(l),a++}var _=k===a;if(n=n||_,n)a=r,e!==null&&(r?e.length=r:e=null);else{const l={instancePath:i+"/generation_params/stop",schemaPath:"#/properties/generation_params/properties/stop/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:a-r})};e===null?e=[l]:e.push(l),a++}}if(s.presence_penalty!==void 0&&p.call(s,"presence_penalty")){let t=s.presence_penalty;if(typeof t=="number"&&isFinite(t)){if(t>2||isNaN(t)){const r={instancePath:i+"/generation_params/presence_penalty",schemaPath:"#/properties/generation_params/properties/presence_penalty/maximum",keyword:"maximum",params:{comparison:"<=",limit:2}};e===null?e=[r]:e.push(r),a++}if(t<-2||isNaN(t)){const r={instancePath:i+"/generation_params/presence_penalty",schemaPath:"#/properties/generation_params/properties/presence_penalty/minimum",keyword:"minimum",params:{comparison:">=",limit:-2}};e===null?e=[r]:e.push(r),a++}}else{const r={instancePath:i+"/generation_params/presence_penalty",schemaPath:"#/properties/generation_params/properties/presence_penalty/type",keyword:"type",params:{type:"number"}};e===null?e=[r]:e.push(r),a++}}if(s.frequency_penalty!==void 0&&p.call(s,"frequency_penalty")){let t=s.frequency_penalty;if(typeof t=="number"&&isFinite(t)){if(t>2||isNaN(t)){const r={instancePath:i+"/generation_params/frequency_penalty",schemaPath:"#/properties/generation_params/properties/frequency_penalty/maximum",keyword:"maximum",params:{comparison:"<=",limit:2}};e===null?e=[r]:e.push(r),a++}if(t<-2||isNaN(t)){const r={instancePath:i+"/generation_params/frequency_penalty",schemaPath:"#/properties/generation_params/properties/frequency_penalty/minimum",keyword:"minimum",params:{comparison:">=",limit:-2}};e===null?e=[r]:e.push(r),a++}}else{const r={instancePath:i+"/generation_params/frequency_penalty",schemaPath:"#/properties/generation_params/properties/frequency_penalty/type",keyword:"type",params:{type:"number"}};e===null?e=[r]:e.push(r),a++}}if(s.response_format!==void 0&&p.call(s,"response_format")){let t=s.response_format;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.type===void 0||!p.call(t,"type")){const r={instancePath:i+"/generation_params/response_format",schemaPath:"#/properties/generation_params/properties/response_format/required",keyword:"required",params:{missingProperty:"type"}};e===null?e=[r]:e.push(r),a++}for(const r of Object.keys(t))if(r!=="type"){const n={instancePath:i+"/generation_params/response_format",schemaPath:"#/properties/generation_params/properties/response_format/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r}};e===null?e=[n]:e.push(n),a++}if(t.type!==void 0&&p.call(t,"type")){let r=t.type;if(typeof r!="string"){const n={instancePath:i+"/generation_params/response_format/type",schemaPath:"#/properties/generation_params/properties/response_format/properties/type/type",keyword:"type",params:{type:"string"}};e===null?e=[n]:e.push(n),a++}if(!(r==="text"||r==="json_object"||r==="json_schema")){const n={instancePath:i+"/generation_params/response_format/type",schemaPath:"#/properties/generation_params/properties/response_format/properties/type/enum",keyword:"enum",params:{allowedValues:P.properties.generation_params.properties.response_format.properties.type.enum}};e===null?e=[n]:e.push(n),a++}}}else{const r={instancePath:i+"/generation_params/response_format",schemaPath:"#/properties/generation_params/properties/response_format/type",keyword:"type",params:{type:"object"}};e===null?e=[r]:e.push(r),a++}}}else{const t={instancePath:i+"/generation_params",schemaPath:"#/properties/generation_params/type",keyword:"type",params:{type:"object"}};e===null?e=[t]:e.push(t),a++}}if(o.generation_metadata!==void 0&&p.call(o,"generation_metadata")){let s=o.generation_metadata;if(s&&typeof s=="object"&&!Array.isArray(s)){for(const t of Object.keys(s))if(!(t==="response_id"||t==="created"||t==="finish_reason"||t==="system_fingerprint"||t==="usage")){const r={instancePath:i+"/generation_metadata",schemaPath:"#/properties/generation_metadata/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:t}};e===null?e=[r]:e.push(r),a++}if(s.response_id!==void 0&&p.call(s,"response_id")){let t=s.response_id;if(typeof t=="string"){if(u(t)>128){const r={instancePath:i+"/generation_metadata/response_id",schemaPath:"#/properties/generation_metadata/properties/response_id/maxLength",keyword:"maxLength",params:{limit:128}};e===null?e=[r]:e.push(r),a++}}else{const r={instancePath:i+"/generation_metadata/response_id",schemaPath:"#/properties/generation_metadata/properties/response_id/type",keyword:"type",params:{type:"string"}};e===null?e=[r]:e.push(r),a++}}if(s.created!==void 0&&p.call(s,"created")){let t=s.created;if(typeof t=="string"){if(u(t)>128){const r={instancePath:i+"/generation_metadata/created",schemaPath:"#/properties/generation_metadata/properties/created/maxLength",keyword:"maxLength",params:{limit:128}};e===null?e=[r]:e.push(r),a++}if(!L(t)){const r={instancePath:i+"/generation_metadata/created",schemaPath:"#/properties/generation_metadata/properties/created/format",keyword:"format",params:{format:"date-time"}};e===null?e=[r]:e.push(r),a++}}else{const r={instancePath:i+"/generation_metadata/created",schemaPath:"#/properties/generation_metadata/properties/created/type",keyword:"type",params:{type:"string"}};e===null?e=[r]:e.push(r),a++}}if(s.finish_reason!==void 0&&p.call(s,"finish_reason")){let t=s.finish_reason;if(typeof t=="string"){if(u(t)>128){const r={instancePath:i+"/generation_metadata/finish_reason",schemaPath:"#/properties/generation_metadata/properties/finish_reason/maxLength",keyword:"maxLength",params:{limit:128}};e===null?e=[r]:e.push(r),a++}}else{const r={instancePath:i+"/generation_metadata/finish_reason",schemaPath:"#/properties/generation_metadata/properties/finish_reason/type",keyword:"type",params:{type:"string"}};e===null?e=[r]:e.push(r),a++}}if(s.system_fingerprint!==void 0&&p.call(s,"system_fingerprint")){let t=s.system_fingerprint;if(typeof t=="string"){if(u(t)>128){const r={instancePath:i+"/generation_metadata/system_fingerprint",schemaPath:"#/properties/generation_metadata/properties/system_fingerprint/maxLength",keyword:"maxLength",params:{limit:128}};e===null?e=[r]:e.push(r),a++}}else{const r={instancePath:i+"/generation_metadata/system_fingerprint",schemaPath:"#/properties/generation_metadata/properties/system_fingerprint/type",keyword:"type",params:{type:"string"}};e===null?e=[r]:e.push(r),a++}}if(s.usage!==void 0&&p.call(s,"usage")){let t=s.usage;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.prompt_tokens===void 0||!p.call(t,"prompt_tokens")){const r={instancePath:i+"/generation_metadata/usage",schemaPath:"#/properties/generation_metadata/properties/usage/required",keyword:"required",params:{missingProperty:"prompt_tokens"}};e===null?e=[r]:e.push(r),a++}if(t.completion_tokens===void 0||!p.call(t,"completion_tokens")){const r={instancePath:i+"/generation_metadata/usage",schemaPath:"#/properties/generation_metadata/properties/usage/required",keyword:"required",params:{missingProperty:"completion_tokens"}};e===null?e=[r]:e.push(r),a++}if(t.total_tokens===void 0||!p.call(t,"total_tokens")){const r={instancePath:i+"/generation_metadata/usage",schemaPath:"#/properties/generation_metadata/properties/usage/required",keyword:"required",params:{missingProperty:"total_tokens"}};e===null?e=[r]:e.push(r),a++}for(const r of Object.keys(t))if(!(r==="prompt_tokens"||r==="completion_tokens"||r==="total_tokens"||r==="cached_prompt_tokens")){const n={instancePath:i+"/generation_metadata/usage",schemaPath:"#/properties/generation_metadata/properties/usage/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r}};e===null?e=[n]:e.push(n),a++}if(t.prompt_tokens!==void 0&&p.call(t,"prompt_tokens")){let r=t.prompt_tokens;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r)&&isFinite(r))){const n={instancePath:i+"/generation_metadata/usage/prompt_tokens",schemaPath:"#/properties/generation_metadata/properties/usage/properties/prompt_tokens/type",keyword:"type",params:{type:"integer"}};e===null?e=[n]:e.push(n),a++}if(typeof r=="number"&&isFinite(r)&&(r<0||isNaN(r))){const n={instancePath:i+"/generation_metadata/usage/prompt_tokens",schemaPath:"#/properties/generation_metadata/properties/usage/properties/prompt_tokens/minimum",keyword:"minimum",params:{comparison:">=",limit:0}};e===null?e=[n]:e.push(n),a++}}if(t.completion_tokens!==void 0&&p.call(t,"completion_tokens")){let r=t.completion_tokens;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r)&&isFinite(r))){const n={instancePath:i+"/generation_metadata/usage/completion_tokens",schemaPath:"#/properties/generation_metadata/properties/usage/properties/completion_tokens/type",keyword:"type",params:{type:"integer"}};e===null?e=[n]:e.push(n),a++}if(typeof r=="number"&&isFinite(r)&&(r<0||isNaN(r))){const n={instancePath:i+"/generation_metadata/usage/completion_tokens",schemaPath:"#/properties/generation_metadata/properties/usage/properties/completion_tokens/minimum",keyword:"minimum",params:{comparison:">=",limit:0}};e===null?e=[n]:e.push(n),a++}}if(t.total_tokens!==void 0&&p.call(t,"total_tokens")){let r=t.total_tokens;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r)&&isFinite(r))){const n={instancePath:i+"/generation_metadata/usage/total_tokens",schemaPath:"#/properties/generation_metadata/properties/usage/properties/total_tokens/type",keyword:"type",params:{type:"integer"}};e===null?e=[n]:e.push(n),a++}if(typeof r=="number"&&isFinite(r)&&(r<0||isNaN(r))){const n={instancePath:i+"/generation_metadata/usage/total_tokens",schemaPath:"#/properties/generation_metadata/properties/usage/properties/total_tokens/minimum",keyword:"minimum",params:{comparison:">=",limit:0}};e===null?e=[n]:e.push(n),a++}}if(t.cached_prompt_tokens!==void 0&&p.call(t,"cached_prompt_tokens")){let r=t.cached_prompt_tokens;if(!(typeof r=="number"&&!(r%1)&&!isNaN(r)&&isFinite(r))){const n={instancePath:i+"/generation_metadata/usage/cached_prompt_tokens",schemaPath:"#/properties/generation_metadata/properties/usage/properties/cached_prompt_tokens/type",keyword:"type",params:{type:"integer"}};e===null?e=[n]:e.push(n),a++}if(typeof r=="number"&&isFinite(r)&&(r<0||isNaN(r))){const n={instancePath:i+"/generation_metadata/usage/cached_prompt_tokens",schemaPath:"#/properties/generation_metadata/properties/usage/properties/cached_prompt_tokens/minimum",keyword:"minimum",params:{comparison:">=",limit:0}};e===null?e=[n]:e.push(n),a++}}}else{const r={instancePath:i+"/generation_metadata/usage",schemaPath:"#/properties/generation_metadata/properties/usage/type",keyword:"type",params:{type:"object"}};e===null?e=[r]:e.push(r),a++}}}else{const t={instancePath:i+"/generation_metadata",schemaPath:"#/properties/generation_metadata/type",keyword:"type",params:{type:"object"}};e===null?e=[t]:e.push(t),a++}}if(o.attributes!==void 0&&p.call(o,"attributes")){let s=o.attributes;if(s&&typeof s=="object"&&!Array.isArray(s)){if(Object.keys(s).length>16){const t={instancePath:i+"/attributes",schemaPath:"#/properties/attributes/maxProperties",keyword:"maxProperties",params:{limit:16}};e===null?e=[t]:e.push(t),a++}for(const t of Object.keys(s)){const r=a;if(typeof t=="string"&&u(t)>128){const n={instancePath:i+"/attributes",schemaPath:"#/properties/attributes/propertyNames/maxLength",keyword:"maxLength",params:{limit:128},propertyName:t};e===null?e=[n]:e.push(n),a++}var b=r===a;if(!b){const n={instancePath:i+"/attributes",schemaPath:"#/properties/attributes/propertyNames",keyword:"propertyNames",params:{propertyName:t}};e===null?e=[n]:e.push(n),a++}}for(const t of Object.keys(s)){let r=s[t];const n=a;let c=!1;const k=a;if(typeof r=="string"){if(u(r)>1024){const m={instancePath:i+"/attributes/"+t.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/attributes/additionalProperties/anyOf/0/maxLength",keyword:"maxLength",params:{limit:1024}};e===null?e=[m]:e.push(m),a++}}else{const m={instancePath:i+"/attributes/"+t.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/attributes/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[m]:e.push(m),a++}var f=k===a;c=c||f;const l=a;if(!(typeof r=="number"&&isFinite(r))){const m={instancePath:i+"/attributes/"+t.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/attributes/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[m]:e.push(m),a++}var f=l===a;c=c||f;const d=a;if(typeof r!="boolean"){const m={instancePath:i+"/attributes/"+t.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/attributes/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[m]:e.push(m),a++}var f=d===a;c=c||f;const g=a;if(r!==null){const m={instancePath:i+"/attributes/"+t.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/attributes/additionalProperties/anyOf/3/type",keyword:"type",params:{type:"null"}};e===null?e=[m]:e.push(m),a++}var f=g===a;if(c=c||f,c)a=n,e!==null&&(n?e.length=n:e=null);else{const m={instancePath:i+"/attributes/"+t.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/attributes/additionalProperties/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:a-n})};e===null?e=[m]:e.push(m),a++}}}else{const t={instancePath:i+"/attributes",schemaPath:"#/properties/attributes/type",keyword:"type",params:{type:"object"}};e===null?e=[t]:e.push(t),a++}}}else{const s={instancePath:i,schemaPath:"#/type",keyword:"type",params:{type:"object"}};e===null?e=[s]:e.push(s),a++}return y.errors=e,a===0}y.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};export{T as default,F as validate};
@@ -0,0 +1,4 @@
1
+ // SPDX-FileCopyrightText: 2026 The OATS Authors
2
+ // SPDX-FileCopyrightText: 2015-2021 Evgeny Poberezkin
3
+ // SPDX-License-Identifier: Apache-2.0 AND MIT
4
+ import{FORMATS as M,ucs2length as $}from"../../formats.js";const X=L;var Y=L;const V={"x-license":{id:"Apache-2.0",notice:"Copyright 2025-2026 The OATS Authors",url:"https://github.com/oatschema/oats/blob/main/LICENSE"},$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://oatschema.org/0.8.0/object-detection",title:"Object Detection","x-version":"0.8.0",description:"Represent objects detected within a source. Supports bounding boxes, polygons, hierarchical relationships, and confidence scores.",type:"object",properties:{unit:{type:"string",description:"The unit for all coordinate values: 'px' for pixels, 'pt' for typographic points, 'normalized' for values from 0.0 to 1.0, and 'per_mille' for values from 0 to 1000. Required whenever geometric data is present.",enum:["px","pt","normalized","per_mille"]},producer:{type:"string",description:"The creator (model, tool or author) of this record.",maxLength:1024},vocabulary_url:{type:"string",description:"A URL pointing to a more detailed external vocabulary or ontology.",format:"uri",maxLength:2048},vocabulary:{type:"array",description:"A list of the possible labels for detected objects. For more than 100 labels, use 'vocabulary_url'.",maxItems:100,uniqueItems:!0,items:{type:"string",description:"A single valid label from the vocabulary.",maxLength:128}},score_explanation:{type:"string",description:"Defines the meaning and range of the 'score' field.",maxLength:256},objects:{type:"array",description:"The detected objects.",maxItems:1e5,items:{type:"object",description:"A single detected object.",properties:{id:{type:"string",description:"A unique identifier for this object within this record (e.g., UUID4). Required for establishing hierarchies.",maxLength:128},parent_id:{type:"string",description:"The id of the parent object, if this object is nested within another.",maxLength:128},label:{type:"string",description:"The label of the detected object (e.g., 'car', 'face', 'logo'). Must be a member of 'vocabulary' when it is present.",maxLength:128},score:{type:"number",description:"A normalized score for this detection (-1.0 to 1.0). Positive values [0, 1] represent confidence in the object's presence. Negative values [-1, 0) are reserved for 'hard negatives' (e.g., explicitly marking that an object is not present in this region).",minimum:-1,maximum:1},box:{type:"object",description:"A rectangular bounding box defined by its top-left corner (x, y) and its dimensions.",properties:{x:{type:"number",description:"The x-coordinate of the top-left corner.",minimum:0},y:{type:"number",description:"The y-coordinate of the top-left corner.",minimum:0},width:{type:"number",description:"The width of the box.",minimum:0},height:{type:"number",description:"The height of the box.",minimum:0}},required:["x","y","width","height"],additionalProperties:!1},polygon:{type:"array",description:"An ordered list of vertices defining a non-rectangular boundary.",minItems:3,maxItems:1e3,items:{type:"object",description:"A single vertex, measured from the top-left corner of the page or image.",properties:{x:{type:"number",description:"The x-coordinate of the vertex.",minimum:0},y:{type:"number",description:"The y-coordinate of the vertex.",minimum:0}},required:["x","y"],additionalProperties:!1}},multi_polygon:{type:"array",description:"A list of polygons, for a single region that is occluded or fragmented into multiple visible parts.",minItems:1,maxItems:100,items:{type:"array",description:"An ordered list of vertices defining a non-rectangular boundary.",minItems:3,maxItems:1e3,items:{type:"object",description:"A single vertex, measured from the top-left corner of the page or image.",properties:{x:{type:"number",description:"The x-coordinate of the vertex.",minimum:0},y:{type:"number",description:"The y-coordinate of the vertex.",minimum:0}},required:["x","y"],additionalProperties:!1}}},attributes:{type:"object",description:"Arbitrary metadata relevant to this item.",maxProperties:16,propertyNames:{maxLength:128},additionalProperties:{anyOf:[{type:"string",maxLength:1024},{type:"number"},{type:"boolean"},{type:"null"}]}}},required:["label"],oneOf:[{required:["box"]},{required:["polygon"]},{required:["multi_polygon"]}],additionalProperties:!1}},attributes:{type:"object",description:"Arbitrary metadata relevant to this record.",maxProperties:16,propertyNames:{maxLength:128},additionalProperties:{anyOf:[{type:"string",maxLength:1024},{type:"number"},{type:"boolean"},{type:"null"}]}}},required:["unit","objects"],allOf:[{if:{properties:{unit:{const:"normalized"}},required:["unit"]},then:{properties:{objects:{items:{properties:{box:{properties:{x:{maximum:1},y:{maximum:1},width:{maximum:1},height:{maximum:1}}},polygon:{items:{properties:{x:{maximum:1},y:{maximum:1}}}},multi_polygon:{items:{items:{properties:{x:{maximum:1},y:{maximum:1}}}}}}}}}}},{if:{properties:{unit:{const:"per_mille"}},required:["unit"]},then:{properties:{objects:{items:{properties:{box:{properties:{x:{maximum:1e3},y:{maximum:1e3},width:{maximum:1e3},height:{maximum:1e3}}},polygon:{items:{properties:{x:{maximum:1e3},y:{maximum:1e3}}}},multi_polygon:{items:{items:{properties:{x:{maximum:1e3},y:{maximum:1e3}}}}}}}}}}}],additionalProperties:!1},m=Object.prototype.hasOwnProperty,_=$,B=M.uri;function L(u,{instancePath:s="",parentData:G,parentDataProperty:H,rootData:J=u,dynamicAnchors:Q={}}={}){let e=null,t=0;const I=L.evaluated;I.dynamicProps&&(I.props=void 0),I.dynamicItems&&(I.items=void 0);const F=t;let T=!0;const S=t;if(u&&typeof u=="object"&&!Array.isArray(u)){let l;if((u.unit===void 0||!m.call(u,"unit"))&&(l="unit")){const p={};e===null?e=[p]:e.push(p),t++}else if(u.unit!==void 0&&m.call(u,"unit")&&u.unit!=="normalized"){const p={};e===null?e=[p]:e.push(p),t++}}var z=S===t;if(t=F,e!==null&&(F?e.length=F:e=null),z){const l=t;if(u&&typeof u=="object"&&!Array.isArray(u)&&u.objects!==void 0&&m.call(u,"objects")){let a=u.objects;if(Array.isArray(a)){const c=a.length;for(let f=0;f<c;f++){let x=a[f];if(x&&typeof x=="object"&&!Array.isArray(x)){if(x.box!==void 0&&m.call(x,"box")){let n=x.box;if(n&&typeof n=="object"&&!Array.isArray(n)){if(n.x!==void 0&&m.call(n,"x")){let h=n.x;if(typeof h=="number"&&isFinite(h)&&(h>1||isNaN(h))){const d={instancePath:s+"/objects/"+f+"/box/x",schemaPath:"#/allOf/0/then/properties/objects/items/properties/box/properties/x/maximum",keyword:"maximum",params:{comparison:"<=",limit:1}};e===null?e=[d]:e.push(d),t++}}if(n.y!==void 0&&m.call(n,"y")){let h=n.y;if(typeof h=="number"&&isFinite(h)&&(h>1||isNaN(h))){const d={instancePath:s+"/objects/"+f+"/box/y",schemaPath:"#/allOf/0/then/properties/objects/items/properties/box/properties/y/maximum",keyword:"maximum",params:{comparison:"<=",limit:1}};e===null?e=[d]:e.push(d),t++}}if(n.width!==void 0&&m.call(n,"width")){let h=n.width;if(typeof h=="number"&&isFinite(h)&&(h>1||isNaN(h))){const d={instancePath:s+"/objects/"+f+"/box/width",schemaPath:"#/allOf/0/then/properties/objects/items/properties/box/properties/width/maximum",keyword:"maximum",params:{comparison:"<=",limit:1}};e===null?e=[d]:e.push(d),t++}}if(n.height!==void 0&&m.call(n,"height")){let h=n.height;if(typeof h=="number"&&isFinite(h)&&(h>1||isNaN(h))){const d={instancePath:s+"/objects/"+f+"/box/height",schemaPath:"#/allOf/0/then/properties/objects/items/properties/box/properties/height/maximum",keyword:"maximum",params:{comparison:"<=",limit:1}};e===null?e=[d]:e.push(d),t++}}}}if(x.polygon!==void 0&&m.call(x,"polygon")){let n=x.polygon;if(Array.isArray(n)){const h=n.length;for(let d=0;d<h;d++){let r=n[d];if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.x!==void 0&&m.call(r,"x")){let i=r.x;if(typeof i=="number"&&isFinite(i)&&(i>1||isNaN(i))){const o={instancePath:s+"/objects/"+f+"/polygon/"+d+"/x",schemaPath:"#/allOf/0/then/properties/objects/items/properties/polygon/items/properties/x/maximum",keyword:"maximum",params:{comparison:"<=",limit:1}};e===null?e=[o]:e.push(o),t++}}if(r.y!==void 0&&m.call(r,"y")){let i=r.y;if(typeof i=="number"&&isFinite(i)&&(i>1||isNaN(i))){const o={instancePath:s+"/objects/"+f+"/polygon/"+d+"/y",schemaPath:"#/allOf/0/then/properties/objects/items/properties/polygon/items/properties/y/maximum",keyword:"maximum",params:{comparison:"<=",limit:1}};e===null?e=[o]:e.push(o),t++}}}}}}if(x.multi_polygon!==void 0&&m.call(x,"multi_polygon")){let n=x.multi_polygon;if(Array.isArray(n)){const h=n.length;for(let d=0;d<h;d++){let r=n[d];if(Array.isArray(r)){const i=r.length;for(let o=0;o<i;o++){let b=r[o];if(b&&typeof b=="object"&&!Array.isArray(b)){if(b.x!==void 0&&m.call(b,"x")){let y=b.x;if(typeof y=="number"&&isFinite(y)&&(y>1||isNaN(y))){const g={instancePath:s+"/objects/"+f+"/multi_polygon/"+d+"/"+o+"/x",schemaPath:"#/allOf/0/then/properties/objects/items/properties/multi_polygon/items/items/properties/x/maximum",keyword:"maximum",params:{comparison:"<=",limit:1}};e===null?e=[g]:e.push(g),t++}}if(b.y!==void 0&&m.call(b,"y")){let y=b.y;if(typeof y=="number"&&isFinite(y)&&(y>1||isNaN(y))){const g={instancePath:s+"/objects/"+f+"/multi_polygon/"+d+"/"+o+"/y",schemaPath:"#/allOf/0/then/properties/objects/items/properties/multi_polygon/items/items/properties/y/maximum",keyword:"maximum",params:{comparison:"<=",limit:1}};e===null?e=[g]:e.push(g),t++}}}}}}}}}}}}var z=l===t;if(T=z,T){var A={};A.objects=!0,A.unit=!0}}if(!T){const l={instancePath:s,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword:"then"}};e===null?e=[l]:e.push(l),t++}const D=t;let E=!0;const U=t;if(u&&typeof u=="object"&&!Array.isArray(u)){let l;if((u.unit===void 0||!m.call(u,"unit"))&&(l="unit")){const p={};e===null?e=[p]:e.push(p),t++}else if(u.unit!==void 0&&m.call(u,"unit")&&u.unit!=="per_mille"){const p={};e===null?e=[p]:e.push(p),t++}}var R=U===t;if(t=D,e!==null&&(D?e.length=D:e=null),R){const l=t;if(u&&typeof u=="object"&&!Array.isArray(u)&&u.objects!==void 0&&m.call(u,"objects")){let a=u.objects;if(Array.isArray(a)){const c=a.length;for(let f=0;f<c;f++){let x=a[f];if(x&&typeof x=="object"&&!Array.isArray(x)){if(x.box!==void 0&&m.call(x,"box")){let n=x.box;if(n&&typeof n=="object"&&!Array.isArray(n)){if(n.x!==void 0&&m.call(n,"x")){let h=n.x;if(typeof h=="number"&&isFinite(h)&&(h>1e3||isNaN(h))){const d={instancePath:s+"/objects/"+f+"/box/x",schemaPath:"#/allOf/1/then/properties/objects/items/properties/box/properties/x/maximum",keyword:"maximum",params:{comparison:"<=",limit:1e3}};e===null?e=[d]:e.push(d),t++}}if(n.y!==void 0&&m.call(n,"y")){let h=n.y;if(typeof h=="number"&&isFinite(h)&&(h>1e3||isNaN(h))){const d={instancePath:s+"/objects/"+f+"/box/y",schemaPath:"#/allOf/1/then/properties/objects/items/properties/box/properties/y/maximum",keyword:"maximum",params:{comparison:"<=",limit:1e3}};e===null?e=[d]:e.push(d),t++}}if(n.width!==void 0&&m.call(n,"width")){let h=n.width;if(typeof h=="number"&&isFinite(h)&&(h>1e3||isNaN(h))){const d={instancePath:s+"/objects/"+f+"/box/width",schemaPath:"#/allOf/1/then/properties/objects/items/properties/box/properties/width/maximum",keyword:"maximum",params:{comparison:"<=",limit:1e3}};e===null?e=[d]:e.push(d),t++}}if(n.height!==void 0&&m.call(n,"height")){let h=n.height;if(typeof h=="number"&&isFinite(h)&&(h>1e3||isNaN(h))){const d={instancePath:s+"/objects/"+f+"/box/height",schemaPath:"#/allOf/1/then/properties/objects/items/properties/box/properties/height/maximum",keyword:"maximum",params:{comparison:"<=",limit:1e3}};e===null?e=[d]:e.push(d),t++}}}}if(x.polygon!==void 0&&m.call(x,"polygon")){let n=x.polygon;if(Array.isArray(n)){const h=n.length;for(let d=0;d<h;d++){let r=n[d];if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.x!==void 0&&m.call(r,"x")){let i=r.x;if(typeof i=="number"&&isFinite(i)&&(i>1e3||isNaN(i))){const o={instancePath:s+"/objects/"+f+"/polygon/"+d+"/x",schemaPath:"#/allOf/1/then/properties/objects/items/properties/polygon/items/properties/x/maximum",keyword:"maximum",params:{comparison:"<=",limit:1e3}};e===null?e=[o]:e.push(o),t++}}if(r.y!==void 0&&m.call(r,"y")){let i=r.y;if(typeof i=="number"&&isFinite(i)&&(i>1e3||isNaN(i))){const o={instancePath:s+"/objects/"+f+"/polygon/"+d+"/y",schemaPath:"#/allOf/1/then/properties/objects/items/properties/polygon/items/properties/y/maximum",keyword:"maximum",params:{comparison:"<=",limit:1e3}};e===null?e=[o]:e.push(o),t++}}}}}}if(x.multi_polygon!==void 0&&m.call(x,"multi_polygon")){let n=x.multi_polygon;if(Array.isArray(n)){const h=n.length;for(let d=0;d<h;d++){let r=n[d];if(Array.isArray(r)){const i=r.length;for(let o=0;o<i;o++){let b=r[o];if(b&&typeof b=="object"&&!Array.isArray(b)){if(b.x!==void 0&&m.call(b,"x")){let y=b.x;if(typeof y=="number"&&isFinite(y)&&(y>1e3||isNaN(y))){const g={instancePath:s+"/objects/"+f+"/multi_polygon/"+d+"/"+o+"/x",schemaPath:"#/allOf/1/then/properties/objects/items/properties/multi_polygon/items/items/properties/x/maximum",keyword:"maximum",params:{comparison:"<=",limit:1e3}};e===null?e=[g]:e.push(g),t++}}if(b.y!==void 0&&m.call(b,"y")){let y=b.y;if(typeof y=="number"&&isFinite(y)&&(y>1e3||isNaN(y))){const g={instancePath:s+"/objects/"+f+"/multi_polygon/"+d+"/"+o+"/y",schemaPath:"#/allOf/1/then/properties/objects/items/properties/multi_polygon/items/items/properties/y/maximum",keyword:"maximum",params:{comparison:"<=",limit:1e3}};e===null?e=[g]:e.push(g),t++}}}}}}}}}}}}var R=l===t;if(E=R,E){var q={};q.objects=!0,q.unit=!0}}if(!E){const l={instancePath:s,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword:"then"}};e===null?e=[l]:e.push(l),t++}if(A!==!0&&q!==void 0&&(q===!0?A=!0:(A=A||{},Object.assign(A,q))),u&&typeof u=="object"&&!Array.isArray(u)){if(u.unit===void 0||!m.call(u,"unit")){const l={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"unit"}};e===null?e=[l]:e.push(l),t++}if(u.objects===void 0||!m.call(u,"objects")){const l={instancePath:s,schemaPath:"#/required",keyword:"required",params:{missingProperty:"objects"}};e===null?e=[l]:e.push(l),t++}for(const l of Object.keys(u))if(!(l==="unit"||l==="producer"||l==="vocabulary_url"||l==="vocabulary"||l==="score_explanation"||l==="objects"||l==="attributes")){const p={instancePath:s,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l}};e===null?e=[p]:e.push(p),t++}if(u.unit!==void 0&&m.call(u,"unit")){let l=u.unit;if(typeof l!="string"){const p={instancePath:s+"/unit",schemaPath:"#/properties/unit/type",keyword:"type",params:{type:"string"}};e===null?e=[p]:e.push(p),t++}if(!(l==="px"||l==="pt"||l==="normalized"||l==="per_mille")){const p={instancePath:s+"/unit",schemaPath:"#/properties/unit/enum",keyword:"enum",params:{allowedValues:V.properties.unit.enum}};e===null?e=[p]:e.push(p),t++}}if(u.producer!==void 0&&m.call(u,"producer")){let l=u.producer;if(typeof l=="string"){if(_(l)>1024){const p={instancePath:s+"/producer",schemaPath:"#/properties/producer/maxLength",keyword:"maxLength",params:{limit:1024}};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/producer",schemaPath:"#/properties/producer/type",keyword:"type",params:{type:"string"}};e===null?e=[p]:e.push(p),t++}}if(u.vocabulary_url!==void 0&&m.call(u,"vocabulary_url")){let l=u.vocabulary_url;if(typeof l=="string"){if(_(l)>2048){const p={instancePath:s+"/vocabulary_url",schemaPath:"#/properties/vocabulary_url/maxLength",keyword:"maxLength",params:{limit:2048}};e===null?e=[p]:e.push(p),t++}if(!B(l)){const p={instancePath:s+"/vocabulary_url",schemaPath:"#/properties/vocabulary_url/format",keyword:"format",params:{format:"uri"}};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/vocabulary_url",schemaPath:"#/properties/vocabulary_url/type",keyword:"type",params:{type:"string"}};e===null?e=[p]:e.push(p),t++}}if(u.vocabulary!==void 0&&m.call(u,"vocabulary")){let l=u.vocabulary;if(Array.isArray(l)){if(l.length>100){const f={instancePath:s+"/vocabulary",schemaPath:"#/properties/vocabulary/maxItems",keyword:"maxItems",params:{limit:100}};e===null?e=[f]:e.push(f),t++}const p=l.length;for(let f=0;f<p;f++){let x=l[f];if(typeof x=="string"){if(_(x)>128){const n={instancePath:s+"/vocabulary/"+f,schemaPath:"#/properties/vocabulary/items/maxLength",keyword:"maxLength",params:{limit:128}};e===null?e=[n]:e.push(n),t++}}else{const n={instancePath:s+"/vocabulary/"+f,schemaPath:"#/properties/vocabulary/items/type",keyword:"type",params:{type:"string"}};e===null?e=[n]:e.push(n),t++}}let a=l.length,c;if(a>1){const f={};for(;a--;){let x=l[a];if(typeof x=="string"){if(typeof f[x]=="number"){c=f[x];const n={instancePath:s+"/vocabulary",schemaPath:"#/properties/vocabulary/uniqueItems",keyword:"uniqueItems",params:{i:a,j:c}};e===null?e=[n]:e.push(n),t++;break}f[x]=a}}}}else{const p={instancePath:s+"/vocabulary",schemaPath:"#/properties/vocabulary/type",keyword:"type",params:{type:"array"}};e===null?e=[p]:e.push(p),t++}}if(u.score_explanation!==void 0&&m.call(u,"score_explanation")){let l=u.score_explanation;if(typeof l=="string"){if(_(l)>256){const p={instancePath:s+"/score_explanation",schemaPath:"#/properties/score_explanation/maxLength",keyword:"maxLength",params:{limit:256}};e===null?e=[p]:e.push(p),t++}}else{const p={instancePath:s+"/score_explanation",schemaPath:"#/properties/score_explanation/type",keyword:"type",params:{type:"string"}};e===null?e=[p]:e.push(p),t++}}if(u.objects!==void 0&&m.call(u,"objects")){let l=u.objects;if(Array.isArray(l)){if(l.length>1e5){const a={instancePath:s+"/objects",schemaPath:"#/properties/objects/maxItems",keyword:"maxItems",params:{limit:1e5}};e===null?e=[a]:e.push(a),t++}const p=l.length;for(let a=0;a<p;a++){let c=l[a];const f=t;let x=!1,n=null;const h=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&(c.box===void 0||!m.call(c,"box"))){const r={instancePath:s+"/objects/"+a,schemaPath:"#/properties/objects/items/oneOf/0/required",keyword:"required",params:{missingProperty:"box"}};e===null?e=[r]:e.push(r),t++}var v=h===t;v&&(x=!0,n=0);const d=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&(c.polygon===void 0||!m.call(c,"polygon"))){const r={instancePath:s+"/objects/"+a,schemaPath:"#/properties/objects/items/oneOf/1/required",keyword:"required",params:{missingProperty:"polygon"}};e===null?e=[r]:e.push(r),t++}var v=d===t;if(v&&x)x=!1,n=[n,1];else{v&&(x=!0,n=1);const r=t;if(c&&typeof c=="object"&&!Array.isArray(c)&&(c.multi_polygon===void 0||!m.call(c,"multi_polygon"))){const o={instancePath:s+"/objects/"+a,schemaPath:"#/properties/objects/items/oneOf/2/required",keyword:"required",params:{missingProperty:"multi_polygon"}};e===null?e=[o]:e.push(o),t++}var v=r===t;v&&x?(x=!1,n=[n,2]):v&&(x=!0,n=2)}if(x)t=f,e!==null&&(f?e.length=f:e=null);else{const r={instancePath:s+"/objects/"+a,schemaPath:"#/properties/objects/items/oneOf",keyword:"oneOf",params:Object.assign({passingSchemas:n},{branchErrors:t-f})};e===null?e=[r]:e.push(r),t++}if(c&&typeof c=="object"&&!Array.isArray(c)){if(c.label===void 0||!m.call(c,"label")){const r={instancePath:s+"/objects/"+a,schemaPath:"#/properties/objects/items/required",keyword:"required",params:{missingProperty:"label"}};e===null?e=[r]:e.push(r),t++}for(const r of Object.keys(c))if(!(r==="id"||r==="parent_id"||r==="label"||r==="score"||r==="box"||r==="polygon"||r==="multi_polygon"||r==="attributes")){const i={instancePath:s+"/objects/"+a,schemaPath:"#/properties/objects/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:r}};e===null?e=[i]:e.push(i),t++}if(c.id!==void 0&&m.call(c,"id")){let r=c.id;if(typeof r=="string"){if(_(r)>128){const i={instancePath:s+"/objects/"+a+"/id",schemaPath:"#/properties/objects/items/properties/id/maxLength",keyword:"maxLength",params:{limit:128}};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/objects/"+a+"/id",schemaPath:"#/properties/objects/items/properties/id/type",keyword:"type",params:{type:"string"}};e===null?e=[i]:e.push(i),t++}}if(c.parent_id!==void 0&&m.call(c,"parent_id")){let r=c.parent_id;if(typeof r=="string"){if(_(r)>128){const i={instancePath:s+"/objects/"+a+"/parent_id",schemaPath:"#/properties/objects/items/properties/parent_id/maxLength",keyword:"maxLength",params:{limit:128}};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/objects/"+a+"/parent_id",schemaPath:"#/properties/objects/items/properties/parent_id/type",keyword:"type",params:{type:"string"}};e===null?e=[i]:e.push(i),t++}}if(c.label!==void 0&&m.call(c,"label")){let r=c.label;if(typeof r=="string"){if(_(r)>128){const i={instancePath:s+"/objects/"+a+"/label",schemaPath:"#/properties/objects/items/properties/label/maxLength",keyword:"maxLength",params:{limit:128}};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/objects/"+a+"/label",schemaPath:"#/properties/objects/items/properties/label/type",keyword:"type",params:{type:"string"}};e===null?e=[i]:e.push(i),t++}}if(c.score!==void 0&&m.call(c,"score")){let r=c.score;if(typeof r=="number"&&isFinite(r)){if(r>1||isNaN(r)){const i={instancePath:s+"/objects/"+a+"/score",schemaPath:"#/properties/objects/items/properties/score/maximum",keyword:"maximum",params:{comparison:"<=",limit:1}};e===null?e=[i]:e.push(i),t++}if(r<-1||isNaN(r)){const i={instancePath:s+"/objects/"+a+"/score",schemaPath:"#/properties/objects/items/properties/score/minimum",keyword:"minimum",params:{comparison:">=",limit:-1}};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:s+"/objects/"+a+"/score",schemaPath:"#/properties/objects/items/properties/score/type",keyword:"type",params:{type:"number"}};e===null?e=[i]:e.push(i),t++}}if(c.box!==void 0&&m.call(c,"box")){let r=c.box;if(r&&typeof r=="object"&&!Array.isArray(r)){if(r.x===void 0||!m.call(r,"x")){const i={instancePath:s+"/objects/"+a+"/box",schemaPath:"#/properties/objects/items/properties/box/required",keyword:"required",params:{missingProperty:"x"}};e===null?e=[i]:e.push(i),t++}if(r.y===void 0||!m.call(r,"y")){const i={instancePath:s+"/objects/"+a+"/box",schemaPath:"#/properties/objects/items/properties/box/required",keyword:"required",params:{missingProperty:"y"}};e===null?e=[i]:e.push(i),t++}if(r.width===void 0||!m.call(r,"width")){const i={instancePath:s+"/objects/"+a+"/box",schemaPath:"#/properties/objects/items/properties/box/required",keyword:"required",params:{missingProperty:"width"}};e===null?e=[i]:e.push(i),t++}if(r.height===void 0||!m.call(r,"height")){const i={instancePath:s+"/objects/"+a+"/box",schemaPath:"#/properties/objects/items/properties/box/required",keyword:"required",params:{missingProperty:"height"}};e===null?e=[i]:e.push(i),t++}for(const i of Object.keys(r))if(!(i==="x"||i==="y"||i==="width"||i==="height")){const o={instancePath:s+"/objects/"+a+"/box",schemaPath:"#/properties/objects/items/properties/box/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i}};e===null?e=[o]:e.push(o),t++}if(r.x!==void 0&&m.call(r,"x")){let i=r.x;if(typeof i=="number"&&isFinite(i)){if(i<0||isNaN(i)){const o={instancePath:s+"/objects/"+a+"/box/x",schemaPath:"#/properties/objects/items/properties/box/properties/x/minimum",keyword:"minimum",params:{comparison:">=",limit:0}};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/objects/"+a+"/box/x",schemaPath:"#/properties/objects/items/properties/box/properties/x/type",keyword:"type",params:{type:"number"}};e===null?e=[o]:e.push(o),t++}}if(r.y!==void 0&&m.call(r,"y")){let i=r.y;if(typeof i=="number"&&isFinite(i)){if(i<0||isNaN(i)){const o={instancePath:s+"/objects/"+a+"/box/y",schemaPath:"#/properties/objects/items/properties/box/properties/y/minimum",keyword:"minimum",params:{comparison:">=",limit:0}};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/objects/"+a+"/box/y",schemaPath:"#/properties/objects/items/properties/box/properties/y/type",keyword:"type",params:{type:"number"}};e===null?e=[o]:e.push(o),t++}}if(r.width!==void 0&&m.call(r,"width")){let i=r.width;if(typeof i=="number"&&isFinite(i)){if(i<0||isNaN(i)){const o={instancePath:s+"/objects/"+a+"/box/width",schemaPath:"#/properties/objects/items/properties/box/properties/width/minimum",keyword:"minimum",params:{comparison:">=",limit:0}};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/objects/"+a+"/box/width",schemaPath:"#/properties/objects/items/properties/box/properties/width/type",keyword:"type",params:{type:"number"}};e===null?e=[o]:e.push(o),t++}}if(r.height!==void 0&&m.call(r,"height")){let i=r.height;if(typeof i=="number"&&isFinite(i)){if(i<0||isNaN(i)){const o={instancePath:s+"/objects/"+a+"/box/height",schemaPath:"#/properties/objects/items/properties/box/properties/height/minimum",keyword:"minimum",params:{comparison:">=",limit:0}};e===null?e=[o]:e.push(o),t++}}else{const o={instancePath:s+"/objects/"+a+"/box/height",schemaPath:"#/properties/objects/items/properties/box/properties/height/type",keyword:"type",params:{type:"number"}};e===null?e=[o]:e.push(o),t++}}}else{const i={instancePath:s+"/objects/"+a+"/box",schemaPath:"#/properties/objects/items/properties/box/type",keyword:"type",params:{type:"object"}};e===null?e=[i]:e.push(i),t++}}if(c.polygon!==void 0&&m.call(c,"polygon")){let r=c.polygon;if(Array.isArray(r)){if(r.length>1e3){const o={instancePath:s+"/objects/"+a+"/polygon",schemaPath:"#/properties/objects/items/properties/polygon/maxItems",keyword:"maxItems",params:{limit:1e3}};e===null?e=[o]:e.push(o),t++}if(r.length<3){const o={instancePath:s+"/objects/"+a+"/polygon",schemaPath:"#/properties/objects/items/properties/polygon/minItems",keyword:"minItems",params:{limit:3}};e===null?e=[o]:e.push(o),t++}const i=r.length;for(let o=0;o<i;o++){let b=r[o];if(b&&typeof b=="object"&&!Array.isArray(b)){if(b.x===void 0||!m.call(b,"x")){const y={instancePath:s+"/objects/"+a+"/polygon/"+o,schemaPath:"#/properties/objects/items/properties/polygon/items/required",keyword:"required",params:{missingProperty:"x"}};e===null?e=[y]:e.push(y),t++}if(b.y===void 0||!m.call(b,"y")){const y={instancePath:s+"/objects/"+a+"/polygon/"+o,schemaPath:"#/properties/objects/items/properties/polygon/items/required",keyword:"required",params:{missingProperty:"y"}};e===null?e=[y]:e.push(y),t++}for(const y of Object.keys(b))if(!(y==="x"||y==="y")){const g={instancePath:s+"/objects/"+a+"/polygon/"+o,schemaPath:"#/properties/objects/items/properties/polygon/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y}};e===null?e=[g]:e.push(g),t++}if(b.x!==void 0&&m.call(b,"x")){let y=b.x;if(typeof y=="number"&&isFinite(y)){if(y<0||isNaN(y)){const g={instancePath:s+"/objects/"+a+"/polygon/"+o+"/x",schemaPath:"#/properties/objects/items/properties/polygon/items/properties/x/minimum",keyword:"minimum",params:{comparison:">=",limit:0}};e===null?e=[g]:e.push(g),t++}}else{const g={instancePath:s+"/objects/"+a+"/polygon/"+o+"/x",schemaPath:"#/properties/objects/items/properties/polygon/items/properties/x/type",keyword:"type",params:{type:"number"}};e===null?e=[g]:e.push(g),t++}}if(b.y!==void 0&&m.call(b,"y")){let y=b.y;if(typeof y=="number"&&isFinite(y)){if(y<0||isNaN(y)){const g={instancePath:s+"/objects/"+a+"/polygon/"+o+"/y",schemaPath:"#/properties/objects/items/properties/polygon/items/properties/y/minimum",keyword:"minimum",params:{comparison:">=",limit:0}};e===null?e=[g]:e.push(g),t++}}else{const g={instancePath:s+"/objects/"+a+"/polygon/"+o+"/y",schemaPath:"#/properties/objects/items/properties/polygon/items/properties/y/type",keyword:"type",params:{type:"number"}};e===null?e=[g]:e.push(g),t++}}}else{const y={instancePath:s+"/objects/"+a+"/polygon/"+o,schemaPath:"#/properties/objects/items/properties/polygon/items/type",keyword:"type",params:{type:"object"}};e===null?e=[y]:e.push(y),t++}}}else{const i={instancePath:s+"/objects/"+a+"/polygon",schemaPath:"#/properties/objects/items/properties/polygon/type",keyword:"type",params:{type:"array"}};e===null?e=[i]:e.push(i),t++}}if(c.multi_polygon!==void 0&&m.call(c,"multi_polygon")){let r=c.multi_polygon;if(Array.isArray(r)){if(r.length>100){const o={instancePath:s+"/objects/"+a+"/multi_polygon",schemaPath:"#/properties/objects/items/properties/multi_polygon/maxItems",keyword:"maxItems",params:{limit:100}};e===null?e=[o]:e.push(o),t++}if(r.length<1){const o={instancePath:s+"/objects/"+a+"/multi_polygon",schemaPath:"#/properties/objects/items/properties/multi_polygon/minItems",keyword:"minItems",params:{limit:1}};e===null?e=[o]:e.push(o),t++}const i=r.length;for(let o=0;o<i;o++){let b=r[o];if(Array.isArray(b)){if(b.length>1e3){const g={instancePath:s+"/objects/"+a+"/multi_polygon/"+o,schemaPath:"#/properties/objects/items/properties/multi_polygon/items/maxItems",keyword:"maxItems",params:{limit:1e3}};e===null?e=[g]:e.push(g),t++}if(b.length<3){const g={instancePath:s+"/objects/"+a+"/multi_polygon/"+o,schemaPath:"#/properties/objects/items/properties/multi_polygon/items/minItems",keyword:"minItems",params:{limit:3}};e===null?e=[g]:e.push(g),t++}const y=b.length;for(let g=0;g<y;g++){let w=b[g];if(w&&typeof w=="object"&&!Array.isArray(w)){if(w.x===void 0||!m.call(w,"x")){const j={instancePath:s+"/objects/"+a+"/multi_polygon/"+o+"/"+g,schemaPath:"#/properties/objects/items/properties/multi_polygon/items/items/required",keyword:"required",params:{missingProperty:"x"}};e===null?e=[j]:e.push(j),t++}if(w.y===void 0||!m.call(w,"y")){const j={instancePath:s+"/objects/"+a+"/multi_polygon/"+o+"/"+g,schemaPath:"#/properties/objects/items/properties/multi_polygon/items/items/required",keyword:"required",params:{missingProperty:"y"}};e===null?e=[j]:e.push(j),t++}for(const j of Object.keys(w))if(!(j==="x"||j==="y")){const k={instancePath:s+"/objects/"+a+"/multi_polygon/"+o+"/"+g,schemaPath:"#/properties/objects/items/properties/multi_polygon/items/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:j}};e===null?e=[k]:e.push(k),t++}if(w.x!==void 0&&m.call(w,"x")){let j=w.x;if(typeof j=="number"&&isFinite(j)){if(j<0||isNaN(j)){const k={instancePath:s+"/objects/"+a+"/multi_polygon/"+o+"/"+g+"/x",schemaPath:"#/properties/objects/items/properties/multi_polygon/items/items/properties/x/minimum",keyword:"minimum",params:{comparison:">=",limit:0}};e===null?e=[k]:e.push(k),t++}}else{const k={instancePath:s+"/objects/"+a+"/multi_polygon/"+o+"/"+g+"/x",schemaPath:"#/properties/objects/items/properties/multi_polygon/items/items/properties/x/type",keyword:"type",params:{type:"number"}};e===null?e=[k]:e.push(k),t++}}if(w.y!==void 0&&m.call(w,"y")){let j=w.y;if(typeof j=="number"&&isFinite(j)){if(j<0||isNaN(j)){const k={instancePath:s+"/objects/"+a+"/multi_polygon/"+o+"/"+g+"/y",schemaPath:"#/properties/objects/items/properties/multi_polygon/items/items/properties/y/minimum",keyword:"minimum",params:{comparison:">=",limit:0}};e===null?e=[k]:e.push(k),t++}}else{const k={instancePath:s+"/objects/"+a+"/multi_polygon/"+o+"/"+g+"/y",schemaPath:"#/properties/objects/items/properties/multi_polygon/items/items/properties/y/type",keyword:"type",params:{type:"number"}};e===null?e=[k]:e.push(k),t++}}}else{const j={instancePath:s+"/objects/"+a+"/multi_polygon/"+o+"/"+g,schemaPath:"#/properties/objects/items/properties/multi_polygon/items/items/type",keyword:"type",params:{type:"object"}};e===null?e=[j]:e.push(j),t++}}}else{const y={instancePath:s+"/objects/"+a+"/multi_polygon/"+o,schemaPath:"#/properties/objects/items/properties/multi_polygon/items/type",keyword:"type",params:{type:"array"}};e===null?e=[y]:e.push(y),t++}}}else{const i={instancePath:s+"/objects/"+a+"/multi_polygon",schemaPath:"#/properties/objects/items/properties/multi_polygon/type",keyword:"type",params:{type:"array"}};e===null?e=[i]:e.push(i),t++}}if(c.attributes!==void 0&&m.call(c,"attributes")){let r=c.attributes;if(r&&typeof r=="object"&&!Array.isArray(r)){if(Object.keys(r).length>16){const i={instancePath:s+"/objects/"+a+"/attributes",schemaPath:"#/properties/objects/items/properties/attributes/maxProperties",keyword:"maxProperties",params:{limit:16}};e===null?e=[i]:e.push(i),t++}for(const i of Object.keys(r)){const o=t;if(typeof i=="string"&&_(i)>128){const b={instancePath:s+"/objects/"+a+"/attributes",schemaPath:"#/properties/objects/items/properties/attributes/propertyNames/maxLength",keyword:"maxLength",params:{limit:128},propertyName:i};e===null?e=[b]:e.push(b),t++}var C=o===t;if(!C){const b={instancePath:s+"/objects/"+a+"/attributes",schemaPath:"#/properties/objects/items/properties/attributes/propertyNames",keyword:"propertyNames",params:{propertyName:i}};e===null?e=[b]:e.push(b),t++}}for(const i of Object.keys(r)){let o=r[i];const b=t;let y=!1;const g=t;if(typeof o=="string"){if(_(o)>1024){const P={instancePath:s+"/objects/"+a+"/attributes/"+i.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/objects/items/properties/attributes/additionalProperties/anyOf/0/maxLength",keyword:"maxLength",params:{limit:1024}};e===null?e=[P]:e.push(P),t++}}else{const P={instancePath:s+"/objects/"+a+"/attributes/"+i.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/objects/items/properties/attributes/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[P]:e.push(P),t++}var N=g===t;y=y||N;const w=t;if(!(typeof o=="number"&&isFinite(o))){const P={instancePath:s+"/objects/"+a+"/attributes/"+i.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/objects/items/properties/attributes/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[P]:e.push(P),t++}var N=w===t;y=y||N;const j=t;if(typeof o!="boolean"){const P={instancePath:s+"/objects/"+a+"/attributes/"+i.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/objects/items/properties/attributes/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[P]:e.push(P),t++}var N=j===t;y=y||N;const k=t;if(o!==null){const P={instancePath:s+"/objects/"+a+"/attributes/"+i.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/objects/items/properties/attributes/additionalProperties/anyOf/3/type",keyword:"type",params:{type:"null"}};e===null?e=[P]:e.push(P),t++}var N=k===t;if(y=y||N,y)t=b,e!==null&&(b?e.length=b:e=null);else{const P={instancePath:s+"/objects/"+a+"/attributes/"+i.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/objects/items/properties/attributes/additionalProperties/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:t-b})};e===null?e=[P]:e.push(P),t++}}}else{const i={instancePath:s+"/objects/"+a+"/attributes",schemaPath:"#/properties/objects/items/properties/attributes/type",keyword:"type",params:{type:"object"}};e===null?e=[i]:e.push(i),t++}}}else{const r={instancePath:s+"/objects/"+a,schemaPath:"#/properties/objects/items/type",keyword:"type",params:{type:"object"}};e===null?e=[r]:e.push(r),t++}}}else{const p={instancePath:s+"/objects",schemaPath:"#/properties/objects/type",keyword:"type",params:{type:"array"}};e===null?e=[p]:e.push(p),t++}}if(u.attributes!==void 0&&m.call(u,"attributes")){let l=u.attributes;if(l&&typeof l=="object"&&!Array.isArray(l)){if(Object.keys(l).length>16){const p={instancePath:s+"/attributes",schemaPath:"#/properties/attributes/maxProperties",keyword:"maxProperties",params:{limit:16}};e===null?e=[p]:e.push(p),t++}for(const p of Object.keys(l)){const a=t;if(typeof p=="string"&&_(p)>128){const c={instancePath:s+"/attributes",schemaPath:"#/properties/attributes/propertyNames/maxLength",keyword:"maxLength",params:{limit:128},propertyName:p};e===null?e=[c]:e.push(c),t++}var K=a===t;if(!K){const c={instancePath:s+"/attributes",schemaPath:"#/properties/attributes/propertyNames",keyword:"propertyNames",params:{propertyName:p}};e===null?e=[c]:e.push(c),t++}}for(const p of Object.keys(l)){let a=l[p];const c=t;let f=!1;const x=t;if(typeof a=="string"){if(_(a)>1024){const r={instancePath:s+"/attributes/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/attributes/additionalProperties/anyOf/0/maxLength",keyword:"maxLength",params:{limit:1024}};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:s+"/attributes/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/attributes/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[r]:e.push(r),t++}var O=x===t;f=f||O;const n=t;if(!(typeof a=="number"&&isFinite(a))){const r={instancePath:s+"/attributes/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/attributes/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[r]:e.push(r),t++}var O=n===t;f=f||O;const h=t;if(typeof a!="boolean"){const r={instancePath:s+"/attributes/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/attributes/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[r]:e.push(r),t++}var O=h===t;f=f||O;const d=t;if(a!==null){const r={instancePath:s+"/attributes/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/attributes/additionalProperties/anyOf/3/type",keyword:"type",params:{type:"null"}};e===null?e=[r]:e.push(r),t++}var O=d===t;if(f=f||O,f)t=c,e!==null&&(c?e.length=c:e=null);else{const r={instancePath:s+"/attributes/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/attributes/additionalProperties/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:t-c})};e===null?e=[r]:e.push(r),t++}}}else{const p={instancePath:s+"/attributes",schemaPath:"#/properties/attributes/type",keyword:"type",params:{type:"object"}};e===null?e=[p]:e.push(p),t++}}}else{const l={instancePath:s,schemaPath:"#/type",keyword:"type",params:{type:"object"}};e===null?e=[l]:e.push(l),t++}return L.errors=e,t===0}L.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};export{Y as default,X as validate};
@@ -0,0 +1,4 @@
1
+ // SPDX-FileCopyrightText: 2026 The OATS Authors
2
+ // SPDX-FileCopyrightText: 2015-2021 Evgeny Poberezkin
3
+ // SPDX-License-Identifier: Apache-2.0 AND MIT
4
+ import{ucs2length as _}from"../../formats.js";const I=k;var D=k;const m=Object.prototype.hasOwnProperty,y=_;function k(l,{instancePath:a="",parentData:N,parentDataProperty:j,rootData:A=l,dynamicAnchors:q={}}={}){let e=null,t=0;const P=k.evaluated;if(P.dynamicProps&&(P.props=void 0),P.dynamicItems&&(P.items=void 0),l&&typeof l=="object"&&!Array.isArray(l)){if(l.results===void 0||!m.call(l,"results")){const o={instancePath:a,schemaPath:"#/required",keyword:"required",params:{missingProperty:"results"}};e===null?e=[o]:e.push(o),t++}for(const o of Object.keys(l))if(!(o==="target"||o==="producer"||o==="query"||o==="collection"||o==="score_explanation"||o==="total_candidates"||o==="results"||o==="attributes")){const r={instancePath:a,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:o}};e===null?e=[r]:e.push(r),t++}if(l.target!==void 0&&m.call(l,"target")){let o=l.target;if(typeof o=="string"){if(y(o)>256){const r={instancePath:a+"/target",schemaPath:"#/properties/target/maxLength",keyword:"maxLength",params:{limit:256}};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:a+"/target",schemaPath:"#/properties/target/type",keyword:"type",params:{type:"string"}};e===null?e=[r]:e.push(r),t++}}if(l.producer!==void 0&&m.call(l,"producer")){let o=l.producer;if(typeof o=="string"){if(y(o)>1024){const r={instancePath:a+"/producer",schemaPath:"#/properties/producer/maxLength",keyword:"maxLength",params:{limit:1024}};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:a+"/producer",schemaPath:"#/properties/producer/type",keyword:"type",params:{type:"string"}};e===null?e=[r]:e.push(r),t++}}if(l.query!==void 0&&m.call(l,"query")){let o=l.query;if(typeof o=="string"){if(y(o)>4096){const r={instancePath:a+"/query",schemaPath:"#/properties/query/maxLength",keyword:"maxLength",params:{limit:4096}};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:a+"/query",schemaPath:"#/properties/query/type",keyword:"type",params:{type:"string"}};e===null?e=[r]:e.push(r),t++}}if(l.collection!==void 0&&m.call(l,"collection")){let o=l.collection;if(typeof o=="string"){if(y(o)>1024){const r={instancePath:a+"/collection",schemaPath:"#/properties/collection/maxLength",keyword:"maxLength",params:{limit:1024}};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:a+"/collection",schemaPath:"#/properties/collection/type",keyword:"type",params:{type:"string"}};e===null?e=[r]:e.push(r),t++}}if(l.score_explanation!==void 0&&m.call(l,"score_explanation")){let o=l.score_explanation;if(typeof o=="string"){if(y(o)>256){const r={instancePath:a+"/score_explanation",schemaPath:"#/properties/score_explanation/maxLength",keyword:"maxLength",params:{limit:256}};e===null?e=[r]:e.push(r),t++}}else{const r={instancePath:a+"/score_explanation",schemaPath:"#/properties/score_explanation/type",keyword:"type",params:{type:"string"}};e===null?e=[r]:e.push(r),t++}}if(l.total_candidates!==void 0&&m.call(l,"total_candidates")){let o=l.total_candidates;if(!(typeof o=="number"&&!(o%1)&&!isNaN(o)&&isFinite(o))){const r={instancePath:a+"/total_candidates",schemaPath:"#/properties/total_candidates/type",keyword:"type",params:{type:"integer"}};e===null?e=[r]:e.push(r),t++}if(typeof o=="number"&&isFinite(o)&&(o<0||isNaN(o))){const r={instancePath:a+"/total_candidates",schemaPath:"#/properties/total_candidates/minimum",keyword:"minimum",params:{comparison:">=",limit:0}};e===null?e=[r]:e.push(r),t++}}if(l.results!==void 0&&m.call(l,"results")){let o=l.results;if(Array.isArray(o)){if(o.length>1e4){const p={instancePath:a+"/results",schemaPath:"#/properties/results/maxItems",keyword:"maxItems",params:{limit:1e4}};e===null?e=[p]:e.push(p),t++}const r=o.length;for(let p=0;p<r;p++){let n=o[p];if(n&&typeof n=="object"&&!Array.isArray(n)){if(n.rank===void 0||!m.call(n,"rank")){const s={instancePath:a+"/results/"+p,schemaPath:"#/properties/results/items/required",keyword:"required",params:{missingProperty:"rank"}};e===null?e=[s]:e.push(s),t++}if(n.id===void 0||!m.call(n,"id")){const s={instancePath:a+"/results/"+p,schemaPath:"#/properties/results/items/required",keyword:"required",params:{missingProperty:"id"}};e===null?e=[s]:e.push(s),t++}for(const s of Object.keys(n))if(!(s==="rank"||s==="id"||s==="title"||s==="text"||s==="score"||s==="attributes")){const i={instancePath:a+"/results/"+p,schemaPath:"#/properties/results/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s}};e===null?e=[i]:e.push(i),t++}if(n.rank!==void 0&&m.call(n,"rank")){let s=n.rank;if(!(typeof s=="number"&&!(s%1)&&!isNaN(s)&&isFinite(s))){const i={instancePath:a+"/results/"+p+"/rank",schemaPath:"#/properties/results/items/properties/rank/type",keyword:"type",params:{type:"integer"}};e===null?e=[i]:e.push(i),t++}if(typeof s=="number"&&isFinite(s)&&(s<1||isNaN(s))){const i={instancePath:a+"/results/"+p+"/rank",schemaPath:"#/properties/results/items/properties/rank/minimum",keyword:"minimum",params:{comparison:">=",limit:1}};e===null?e=[i]:e.push(i),t++}}if(n.id!==void 0&&m.call(n,"id")){let s=n.id;if(typeof s=="string"){if(y(s)>2048){const i={instancePath:a+"/results/"+p+"/id",schemaPath:"#/properties/results/items/properties/id/maxLength",keyword:"maxLength",params:{limit:2048}};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:a+"/results/"+p+"/id",schemaPath:"#/properties/results/items/properties/id/type",keyword:"type",params:{type:"string"}};e===null?e=[i]:e.push(i),t++}}if(n.title!==void 0&&m.call(n,"title")){let s=n.title;if(typeof s=="string"){if(y(s)>1024){const i={instancePath:a+"/results/"+p+"/title",schemaPath:"#/properties/results/items/properties/title/maxLength",keyword:"maxLength",params:{limit:1024}};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:a+"/results/"+p+"/title",schemaPath:"#/properties/results/items/properties/title/type",keyword:"type",params:{type:"string"}};e===null?e=[i]:e.push(i),t++}}if(n.text!==void 0&&m.call(n,"text")){let s=n.text;if(typeof s=="string"){if(y(s)>4096){const i={instancePath:a+"/results/"+p+"/text",schemaPath:"#/properties/results/items/properties/text/maxLength",keyword:"maxLength",params:{limit:4096}};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:a+"/results/"+p+"/text",schemaPath:"#/properties/results/items/properties/text/type",keyword:"type",params:{type:"string"}};e===null?e=[i]:e.push(i),t++}}if(n.score!==void 0&&m.call(n,"score")){let s=n.score;if(typeof s=="number"&&isFinite(s)){if(s>1||isNaN(s)){const i={instancePath:a+"/results/"+p+"/score",schemaPath:"#/properties/results/items/properties/score/maximum",keyword:"maximum",params:{comparison:"<=",limit:1}};e===null?e=[i]:e.push(i),t++}if(s<-1||isNaN(s)){const i={instancePath:a+"/results/"+p+"/score",schemaPath:"#/properties/results/items/properties/score/minimum",keyword:"minimum",params:{comparison:">=",limit:-1}};e===null?e=[i]:e.push(i),t++}}else{const i={instancePath:a+"/results/"+p+"/score",schemaPath:"#/properties/results/items/properties/score/type",keyword:"type",params:{type:"number"}};e===null?e=[i]:e.push(i),t++}}if(n.attributes!==void 0&&m.call(n,"attributes")){let s=n.attributes;if(s&&typeof s=="object"&&!Array.isArray(s)){if(Object.keys(s).length>16){const i={instancePath:a+"/results/"+p+"/attributes",schemaPath:"#/properties/results/items/properties/attributes/maxProperties",keyword:"maxProperties",params:{limit:16}};e===null?e=[i]:e.push(i),t++}for(const i of Object.keys(s)){const f=t;if(typeof i=="string"&&y(i)>128){const h={instancePath:a+"/results/"+p+"/attributes",schemaPath:"#/properties/results/items/properties/attributes/propertyNames/maxLength",keyword:"maxLength",params:{limit:128},propertyName:i};e===null?e=[h]:e.push(h),t++}var x=f===t;if(!x){const h={instancePath:a+"/results/"+p+"/attributes",schemaPath:"#/properties/results/items/properties/attributes/propertyNames",keyword:"propertyNames",params:{propertyName:i}};e===null?e=[h]:e.push(h),t++}}for(const i of Object.keys(s)){let f=s[i];const h=t;let d=!1;const u=t;if(typeof f=="string"){if(y(f)>1024){const c={instancePath:a+"/results/"+p+"/attributes/"+i.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/results/items/properties/attributes/additionalProperties/anyOf/0/maxLength",keyword:"maxLength",params:{limit:1024}};e===null?e=[c]:e.push(c),t++}}else{const c={instancePath:a+"/results/"+p+"/attributes/"+i.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/results/items/properties/attributes/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[c]:e.push(c),t++}var g=u===t;d=d||g;const L=t;if(!(typeof f=="number"&&isFinite(f))){const c={instancePath:a+"/results/"+p+"/attributes/"+i.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/results/items/properties/attributes/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[c]:e.push(c),t++}var g=L===t;d=d||g;const v=t;if(typeof f!="boolean"){const c={instancePath:a+"/results/"+p+"/attributes/"+i.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/results/items/properties/attributes/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[c]:e.push(c),t++}var g=v===t;d=d||g;const O=t;if(f!==null){const c={instancePath:a+"/results/"+p+"/attributes/"+i.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/results/items/properties/attributes/additionalProperties/anyOf/3/type",keyword:"type",params:{type:"null"}};e===null?e=[c]:e.push(c),t++}var g=O===t;if(d=d||g,d)t=h,e!==null&&(h?e.length=h:e=null);else{const c={instancePath:a+"/results/"+p+"/attributes/"+i.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/results/items/properties/attributes/additionalProperties/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:t-h})};e===null?e=[c]:e.push(c),t++}}}else{const i={instancePath:a+"/results/"+p+"/attributes",schemaPath:"#/properties/results/items/properties/attributes/type",keyword:"type",params:{type:"object"}};e===null?e=[i]:e.push(i),t++}}}else{const s={instancePath:a+"/results/"+p,schemaPath:"#/properties/results/items/type",keyword:"type",params:{type:"object"}};e===null?e=[s]:e.push(s),t++}}}else{const r={instancePath:a+"/results",schemaPath:"#/properties/results/type",keyword:"type",params:{type:"array"}};e===null?e=[r]:e.push(r),t++}}if(l.attributes!==void 0&&m.call(l,"attributes")){let o=l.attributes;if(o&&typeof o=="object"&&!Array.isArray(o)){if(Object.keys(o).length>16){const r={instancePath:a+"/attributes",schemaPath:"#/properties/attributes/maxProperties",keyword:"maxProperties",params:{limit:16}};e===null?e=[r]:e.push(r),t++}for(const r of Object.keys(o)){const p=t;if(typeof r=="string"&&y(r)>128){const n={instancePath:a+"/attributes",schemaPath:"#/properties/attributes/propertyNames/maxLength",keyword:"maxLength",params:{limit:128},propertyName:r};e===null?e=[n]:e.push(n),t++}var w=p===t;if(!w){const n={instancePath:a+"/attributes",schemaPath:"#/properties/attributes/propertyNames",keyword:"propertyNames",params:{propertyName:r}};e===null?e=[n]:e.push(n),t++}}for(const r of Object.keys(o)){let p=o[r];const n=t;let s=!1;const i=t;if(typeof p=="string"){if(y(p)>1024){const u={instancePath:a+"/attributes/"+r.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/attributes/additionalProperties/anyOf/0/maxLength",keyword:"maxLength",params:{limit:1024}};e===null?e=[u]:e.push(u),t++}}else{const u={instancePath:a+"/attributes/"+r.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/attributes/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"}};e===null?e=[u]:e.push(u),t++}var b=i===t;s=s||b;const f=t;if(!(typeof p=="number"&&isFinite(p))){const u={instancePath:a+"/attributes/"+r.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/attributes/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"number"}};e===null?e=[u]:e.push(u),t++}var b=f===t;s=s||b;const h=t;if(typeof p!="boolean"){const u={instancePath:a+"/attributes/"+r.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/attributes/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"boolean"}};e===null?e=[u]:e.push(u),t++}var b=h===t;s=s||b;const d=t;if(p!==null){const u={instancePath:a+"/attributes/"+r.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/attributes/additionalProperties/anyOf/3/type",keyword:"type",params:{type:"null"}};e===null?e=[u]:e.push(u),t++}var b=d===t;if(s=s||b,s)t=n,e!==null&&(n?e.length=n:e=null);else{const u={instancePath:a+"/attributes/"+r.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/attributes/additionalProperties/anyOf",keyword:"anyOf",params:Object.assign({},{branchErrors:t-n})};e===null?e=[u]:e.push(u),t++}}}else{const r={instancePath:a+"/attributes",schemaPath:"#/properties/attributes/type",keyword:"type",params:{type:"object"}};e===null?e=[r]:e.push(r),t++}}}else{const o={instancePath:a,schemaPath:"#/type",keyword:"type",params:{type:"object"}};e===null?e=[o]:e.push(o),t++}return k.errors=e,t===0}k.evaluated={props:!0,dynamicProps:!1,dynamicItems:!1};export{D as default,I as validate};