@honua/app-platform 0.1.14 → 0.1.15

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 (48) hide show
  1. package/contract/generated/projjson-v0.7-crs-validator.d.ts +4 -4
  2. package/contract/generated/projjson-v0.7-crs-validator.d.ts.map +1 -1
  3. package/contract/generated/projjson-v0.7-crs-validator.js +1954 -3756
  4. package/contract/query-filter.d.ts +5 -3
  5. package/contract/query-filter.d.ts.map +1 -1
  6. package/contract/query-filter.js +38 -22
  7. package/contract/source.d.ts.map +1 -1
  8. package/contract/source.js +11 -3
  9. package/contract/types.js +1 -1
  10. package/control-plane/client.d.ts.map +1 -1
  11. package/control-plane/client.js +19 -0
  12. package/control-plane/generated/admin-operations.d.ts +3 -2
  13. package/control-plane/generated/admin-operations.d.ts.map +1 -1
  14. package/control-plane/generated/admin-operations.js +3 -2
  15. package/core/client.d.ts +7 -5
  16. package/core/client.d.ts.map +1 -1
  17. package/core/client.js +127 -25
  18. package/core/geoservices.js +38 -2
  19. package/core/grpc-adapter.d.ts.map +1 -1
  20. package/core/grpc-adapter.js +31 -62
  21. package/core/odata.d.ts +3 -0
  22. package/core/odata.d.ts.map +1 -1
  23. package/core/odata.js +79 -6
  24. package/core/process-runner.d.ts +2 -1
  25. package/core/process-runner.d.ts.map +1 -1
  26. package/core/process-runner.js +3 -1
  27. package/core/surfaces.d.ts +2 -0
  28. package/core/surfaces.d.ts.map +1 -1
  29. package/core/surfaces.js +15 -26
  30. package/core/wfs-filter.d.ts.map +1 -1
  31. package/core/wfs-filter.js +28 -20
  32. package/package.json +2 -2
  33. package/query-planner/odata-v1.d.ts.map +1 -1
  34. package/query-planner/odata-v1.js +3 -1
  35. package/runtime/generated/map-package-schema-validator.d.ts +4 -4
  36. package/runtime/generated/map-package-schema-validator.d.ts.map +1 -1
  37. package/runtime/generated/map-package-schema-validator.js +330 -361
  38. package/runtime/index.d.ts +2 -0
  39. package/runtime/index.d.ts.map +1 -1
  40. package/runtime/index.js +1 -0
  41. package/runtime/online-basemap.d.ts +65 -0
  42. package/runtime/online-basemap.d.ts.map +1 -0
  43. package/runtime/online-basemap.js +409 -0
  44. package/runtime/pmtiles-protocol.d.ts.map +1 -1
  45. package/runtime/pmtiles-protocol.js +2 -1
  46. package/runtime/protocol-registry.d.ts.map +1 -1
  47. package/runtime/protocol-registry.js +7 -5
  48. package/runtime/style-spec-validation.js +4 -5
@@ -25,24 +25,17 @@ SOFTWARE.
25
25
  */
26
26
  /* Generated from schemas/honua-map-package.v1.json; source sha256:b923ea9bc7111e3fd886f9fd0e35d725df964a645d3e27576b0f2a579b8baca8.
27
27
  Do not edit. Run "npm run map-package-schema:generate" after changing the schema. */
28
- function v(m) { const i = m.length; let h = 0, c = 0, y; for (; c < i;)
29
- h++, y = m.charCodeAt(c++), y >= 55296 && y <= 56319 && c < i && (y = m.charCodeAt(c), (y & 64512) === 56320 && c++); return h; }
30
- const B = k;
31
- var O = k;
32
- const $ = { $schema: "https://json-schema.org/draft/2020-12/schema", $id: "https://honua.io/schemas/honua-map-package.v1.json", type: "object", required: ["mapPackageId", "format", "sourceBindings", "mapSpec"], additionalProperties: !0, properties: { mapPackageId: { type: "string", minLength: 1, maxLength: 256 }, format: { type: "string", const: "honua_map_package.v1" }, status: { type: "string", enum: ["Draft", "Composing", "Ready", "Failed", "Expired"] }, createdAt: { type: "string", maxLength: 64 }, updatedAt: { type: "string", maxLength: 64 }, expiresAt: { type: "string", maxLength: 64 }, templateId: { type: "string", maxLength: 256 }, themeId: { type: "string", maxLength: 256 }, theme: { $ref: "#/$defs/themeSpec" }, previewArtifactId: { type: "string", maxLength: 256 }, sourceBindings: { type: "array", items: { $ref: "#/$defs/sourceBinding" } }, styleRefs: { type: "array", items: { $ref: "#/$defs/styleRef" } }, mapSpec: { $ref: "#/$defs/mapSpec" }, initialView: { $ref: "#/$defs/initialView" }, legend: { type: "array", items: { $ref: "#/$defs/legendEntry" } }, popupBindings: { type: "array", items: { $ref: "#/$defs/popupBinding" } }, labelBindings: { type: "array", items: { $ref: "#/$defs/labelBinding" } }, boundArtifacts: { type: "array", items: { type: "string", maxLength: 256 } }, attribution: { type: "array", items: { $ref: "#/$defs/attribution" } }, widgets: { type: "array", items: { $ref: "#/$defs/widget" } }, dependencies: { type: "array", items: { $ref: "#/$defs/dependency" } }, provenance: { $ref: "#/$defs/provenance" } }, $defs: { sourceBinding: { type: "object", required: ["sourceId", "protocol", "locator"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, protocol: { type: "string", enum: ["geoservices_feature_service", "geoservices_map_service", "ogc_features", "ogc_maps", "ogc_tiles", "wfs", "wms", "wmts", "odata", "vector_tile", "raster_tile", "pmtiles", "workspace_artifact"] }, locator: { $ref: "#/$defs/locator" }, filter: { type: "string", maxLength: 8192 }, attribution: { type: "string", maxLength: 1024 }, metadata: { type: "object", additionalProperties: { type: "string", maxLength: 4096 } } } }, locator: { type: "object", additionalProperties: !0, properties: { url: { type: "string", maxLength: 4096 }, serviceId: { type: "string", maxLength: 256 }, layerId: { type: ["integer", "string"] }, collectionId: { type: ["string", "integer"] }, typeName: { type: "string", maxLength: 256 }, entitySet: { type: "string", maxLength: 256 } } }, styleRef: { type: "object", required: ["styleId"], additionalProperties: !0, properties: { styleId: { type: "string", minLength: 1, maxLength: 256 }, label: { type: "string", maxLength: 256 }, presetId: { type: "string", maxLength: 256 }, body: { $ref: "#/$defs/styleRefBody" } } }, styleRefBody: { type: "object", additionalProperties: { $ref: "#/$defs/styleRefLayerOverride" } }, styleRefLayerOverride: { type: "object", additionalProperties: !0, properties: { paint: { type: "object", additionalProperties: !0 }, layout: { type: "object", additionalProperties: !0 }, minzoom: { type: "number" }, maxzoom: { type: "number" }, filter: !0, metadata: { type: "object", additionalProperties: !0 } } }, themeSpec: { type: "object", additionalProperties: !0, properties: { themeId: { type: "string", maxLength: 256 }, tokens: { type: "object", additionalProperties: { type: ["string", "number"] } } } }, mapSpec: { type: "object", required: ["version", "sources", "layers"], additionalProperties: !0, properties: { version: { const: 8 }, name: { type: "string", maxLength: 256 }, metadata: { type: "object", additionalProperties: !0 }, center: { type: "array", minItems: 2, maxItems: 2, items: { type: "number" } }, zoom: { type: "number" }, bearing: { type: "number" }, pitch: { type: "number" }, sources: { type: "object", additionalProperties: { type: "object", required: ["type"], additionalProperties: !0, properties: { type: { type: "string", maxLength: 128 } } } }, layers: { type: "array", items: { type: "object", required: ["id", "type"], additionalProperties: !0, properties: { id: { type: "string", minLength: 1, maxLength: 256 }, type: { type: "string", maxLength: 64 }, source: { type: "string", maxLength: 256 } } } }, sprite: { type: ["string", "array"], items: { type: "object", required: ["id", "url"], additionalProperties: !0, properties: { id: { type: "string", maxLength: 256 }, url: { type: "string", maxLength: 4096 } } } }, glyphs: { type: "string", maxLength: 4096 }, transition: { type: "object", additionalProperties: !0, properties: { duration: { type: "number" }, delay: { type: "number" } } } } }, initialView: { type: "object", additionalProperties: !0, properties: { bbox: { type: "array", minItems: 4, maxItems: 4, items: { type: "number" } }, center: { type: "array", minItems: 2, maxItems: 2, items: { type: "number" } }, zoom: { type: "number" }, pitch: { type: "number" }, bearing: { type: "number" }, crs: { type: "string", maxLength: 256 } } }, legendEntry: { type: "object", required: ["label"], additionalProperties: !0, properties: { label: { type: "string", maxLength: 512 }, color: { type: "string", maxLength: 128 }, minValue: { type: "number" }, maxValue: { type: "number" }, iconUrl: { type: "string", maxLength: 4096 } } }, popupBinding: { type: "object", required: ["sourceId"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, fieldName: { type: "string", maxLength: 256 }, template: { type: "string", maxLength: 16384 }, title: { type: "string", maxLength: 512 } } }, labelBinding: { type: "object", required: ["sourceId", "fieldName"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, fieldName: { type: "string", minLength: 1, maxLength: 256 }, placement: { type: "string", enum: ["point", "line", "polygon"] } } }, attribution: { type: "object", required: ["text"], additionalProperties: !0, properties: { text: { type: "string", minLength: 1, maxLength: 2048 }, url: { type: "string", maxLength: 4096 }, sourceIds: { type: "array", items: { type: "string", maxLength: 256 } }, required: { type: "boolean" } } }, widget: { type: "object", required: ["widgetId", "type"], additionalProperties: !0, properties: { widgetId: { type: "string", minLength: 1, maxLength: 256 }, type: { type: "string", minLength: 1, maxLength: 128 }, position: { type: "string", enum: ["top-left", "top-right", "bottom-left", "bottom-right"] }, label: { type: "string", maxLength: 512 }, visible: { type: "boolean" }, config: { type: "object", additionalProperties: !0 } } }, dependency: { type: "object", required: ["name"], additionalProperties: !0, properties: { name: { type: "string", minLength: 1, maxLength: 256 }, versionRange: { type: "string", maxLength: 128 }, kind: { type: "string", enum: ["renderer", "protocol", "sdk", "plugin", "font", "sprite", "basemap"] }, optional: { type: "boolean" } } }, provenance: { type: "object", additionalProperties: !0, properties: { generatedBy: { type: "string", maxLength: 256 }, generatorVersion: { type: "string", maxLength: 128 }, generatedAt: { type: "string", maxLength: 64 }, derivedFrom: { type: "array", items: { type: "string", maxLength: 256 } }, notes: { type: "string", maxLength: 4096 } } } } }, I = { type: "object", additionalProperties: !0, properties: { themeId: { type: "string", maxLength: 256 }, tokens: { type: "object", additionalProperties: { type: ["string", "number"] } } } }, j = { type: "object", required: ["version", "sources", "layers"], additionalProperties: !0, properties: { version: { const: 8 }, name: { type: "string", maxLength: 256 }, metadata: { type: "object", additionalProperties: !0 }, center: { type: "array", minItems: 2, maxItems: 2, items: { type: "number" } }, zoom: { type: "number" }, bearing: { type: "number" }, pitch: { type: "number" }, sources: { type: "object", additionalProperties: { type: "object", required: ["type"], additionalProperties: !0, properties: { type: { type: "string", maxLength: 128 } } } }, layers: { type: "array", items: { type: "object", required: ["id", "type"], additionalProperties: !0, properties: { id: { type: "string", minLength: 1, maxLength: 256 }, type: { type: "string", maxLength: 64 }, source: { type: "string", maxLength: 256 } } } }, sprite: { type: ["string", "array"], items: { type: "object", required: ["id", "url"], additionalProperties: !0, properties: { id: { type: "string", maxLength: 256 }, url: { type: "string", maxLength: 4096 } } } }, glyphs: { type: "string", maxLength: 4096 }, transition: { type: "object", additionalProperties: !0, properties: { duration: { type: "number" }, delay: { type: "number" } } } } }, T = { type: "object", additionalProperties: !0, properties: { bbox: { type: "array", minItems: 4, maxItems: 4, items: { type: "number" } }, center: { type: "array", minItems: 2, maxItems: 2, items: { type: "number" } }, zoom: { type: "number" }, pitch: { type: "number" }, bearing: { type: "number" }, crs: { type: "string", maxLength: 256 } } }, V = { type: "object", required: ["label"], additionalProperties: !0, properties: { label: { type: "string", maxLength: 512 }, color: { type: "string", maxLength: 128 }, minValue: { type: "number" }, maxValue: { type: "number" }, iconUrl: { type: "string", maxLength: 4096 } } }, _ = { type: "object", required: ["sourceId"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, fieldName: { type: "string", maxLength: 256 }, template: { type: "string", maxLength: 16384 }, title: { type: "string", maxLength: 512 } } }, A = { type: "object", required: ["sourceId", "fieldName"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, fieldName: { type: "string", minLength: 1, maxLength: 256 }, placement: { type: "string", enum: ["point", "line", "polygon"] } } }, R = { type: "object", required: ["text"], additionalProperties: !0, properties: { text: { type: "string", minLength: 1, maxLength: 2048 }, url: { type: "string", maxLength: 4096 }, sourceIds: { type: "array", items: { type: "string", maxLength: 256 } }, required: { type: "boolean" } } }, S = { type: "object", required: ["widgetId", "type"], additionalProperties: !0, properties: { widgetId: { type: "string", minLength: 1, maxLength: 256 }, type: { type: "string", minLength: 1, maxLength: 128 }, position: { type: "string", enum: ["top-left", "top-right", "bottom-left", "bottom-right"] }, label: { type: "string", maxLength: 512 }, visible: { type: "boolean" }, config: { type: "object", additionalProperties: !0 } } }, q = { type: "object", required: ["name"], additionalProperties: !0, properties: { name: { type: "string", minLength: 1, maxLength: 256 }, versionRange: { type: "string", maxLength: 128 }, kind: { type: "string", enum: ["renderer", "protocol", "sdk", "plugin", "font", "sprite", "basemap"] }, optional: { type: "boolean" } } }, z = { type: "object", additionalProperties: !0, properties: { generatedBy: { type: "string", maxLength: 256 }, generatorVersion: { type: "string", maxLength: 128 }, generatedAt: { type: "string", maxLength: 64 }, derivedFrom: { type: "array", items: { type: "string", maxLength: 256 } }, notes: { type: "string", maxLength: 4096 } } }, l = v, N = { type: "object", required: ["sourceId", "protocol", "locator"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, protocol: { type: "string", enum: ["geoservices_feature_service", "geoservices_map_service", "ogc_features", "ogc_maps", "ogc_tiles", "wfs", "wms", "wmts", "odata", "vector_tile", "raster_tile", "pmtiles", "workspace_artifact"] }, locator: { $ref: "#/$defs/locator" }, filter: { type: "string", maxLength: 8192 }, attribution: { type: "string", maxLength: 1024 }, metadata: { type: "object", additionalProperties: { type: "string", maxLength: 4096 } } } }, L = { type: "object", additionalProperties: !0, properties: { url: { type: "string", maxLength: 4096 }, serviceId: { type: "string", maxLength: 256 }, layerId: { type: ["integer", "string"] }, collectionId: { type: ["string", "integer"] }, typeName: { type: "string", maxLength: 256 }, entitySet: { type: "string", maxLength: 256 } } };
33
- function g(m, { instancePath: i = "", parentData: h, parentDataProperty: c, rootData: y = m, dynamicAnchors: f = {} } = {}) { let e = null, a = 0; const u = g.evaluated; if (u.dynamicProps && (u.props = void 0), u.dynamicItems && (u.items = void 0), m && typeof m == "object" && !Array.isArray(m)) {
34
- if (m.sourceId === void 0) {
35
- const s = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: "sourceId" }, message: "must have required property 'sourceId'" };
36
- e === null ? e = [s] : e.push(s), a++;
37
- }
38
- if (m.protocol === void 0) {
39
- const s = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: "protocol" }, message: "must have required property 'protocol'" };
40
- e === null ? e = [s] : e.push(s), a++;
41
- }
42
- if (m.locator === void 0) {
43
- const s = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: "locator" }, message: "must have required property 'locator'" };
44
- e === null ? e = [s] : e.push(s), a++;
45
- }
28
+ function N(m) { const i = m.length; let h = 0, c = 0, u; for (; c < i;)
29
+ h++, u = m.charCodeAt(c++), u >= 55296 && u <= 56319 && c < i && (u = m.charCodeAt(c), (u & 64512) === 56320 && c++); return h; }
30
+ const _ = k;
31
+ var R = k;
32
+ const v = { $schema: "https://json-schema.org/draft/2020-12/schema", $id: "https://honua.io/schemas/honua-map-package.v1.json", type: "object", required: ["mapPackageId", "format", "sourceBindings", "mapSpec"], additionalProperties: !0, properties: { mapPackageId: { type: "string", minLength: 1, maxLength: 256 }, format: { type: "string", const: "honua_map_package.v1" }, status: { type: "string", enum: ["Draft", "Composing", "Ready", "Failed", "Expired"] }, createdAt: { type: "string", maxLength: 64 }, updatedAt: { type: "string", maxLength: 64 }, expiresAt: { type: "string", maxLength: 64 }, templateId: { type: "string", maxLength: 256 }, themeId: { type: "string", maxLength: 256 }, theme: { $ref: "#/$defs/themeSpec" }, previewArtifactId: { type: "string", maxLength: 256 }, sourceBindings: { type: "array", items: { $ref: "#/$defs/sourceBinding" } }, styleRefs: { type: "array", items: { $ref: "#/$defs/styleRef" } }, mapSpec: { $ref: "#/$defs/mapSpec" }, initialView: { $ref: "#/$defs/initialView" }, legend: { type: "array", items: { $ref: "#/$defs/legendEntry" } }, popupBindings: { type: "array", items: { $ref: "#/$defs/popupBinding" } }, labelBindings: { type: "array", items: { $ref: "#/$defs/labelBinding" } }, boundArtifacts: { type: "array", items: { type: "string", maxLength: 256 } }, attribution: { type: "array", items: { $ref: "#/$defs/attribution" } }, widgets: { type: "array", items: { $ref: "#/$defs/widget" } }, dependencies: { type: "array", items: { $ref: "#/$defs/dependency" } }, provenance: { $ref: "#/$defs/provenance" } }, $defs: { sourceBinding: { type: "object", required: ["sourceId", "protocol", "locator"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, protocol: { type: "string", enum: ["geoservices_feature_service", "geoservices_map_service", "ogc_features", "ogc_maps", "ogc_tiles", "wfs", "wms", "wmts", "odata", "vector_tile", "raster_tile", "pmtiles", "workspace_artifact"] }, locator: { $ref: "#/$defs/locator" }, filter: { type: "string", maxLength: 8192 }, attribution: { type: "string", maxLength: 1024 }, metadata: { type: "object", additionalProperties: { type: "string", maxLength: 4096 } } } }, locator: { type: "object", additionalProperties: !0, properties: { url: { type: "string", maxLength: 4096 }, serviceId: { type: "string", maxLength: 256 }, layerId: { type: ["integer", "string"] }, collectionId: { type: ["string", "integer"] }, typeName: { type: "string", maxLength: 256 }, entitySet: { type: "string", maxLength: 256 } } }, styleRef: { type: "object", required: ["styleId"], additionalProperties: !0, properties: { styleId: { type: "string", minLength: 1, maxLength: 256 }, label: { type: "string", maxLength: 256 }, presetId: { type: "string", maxLength: 256 }, body: { $ref: "#/$defs/styleRefBody" } } }, styleRefBody: { type: "object", additionalProperties: { $ref: "#/$defs/styleRefLayerOverride" } }, styleRefLayerOverride: { type: "object", additionalProperties: !0, properties: { paint: { type: "object", additionalProperties: !0 }, layout: { type: "object", additionalProperties: !0 }, minzoom: { type: "number" }, maxzoom: { type: "number" }, filter: !0, metadata: { type: "object", additionalProperties: !0 } } }, themeSpec: { type: "object", additionalProperties: !0, properties: { themeId: { type: "string", maxLength: 256 }, tokens: { type: "object", additionalProperties: { type: ["string", "number"] } } } }, mapSpec: { type: "object", required: ["version", "sources", "layers"], additionalProperties: !0, properties: { version: { const: 8 }, name: { type: "string", maxLength: 256 }, metadata: { type: "object", additionalProperties: !0 }, center: { type: "array", minItems: 2, maxItems: 2, items: { type: "number" } }, zoom: { type: "number" }, bearing: { type: "number" }, pitch: { type: "number" }, sources: { type: "object", additionalProperties: { type: "object", required: ["type"], additionalProperties: !0, properties: { type: { type: "string", maxLength: 128 } } } }, layers: { type: "array", items: { type: "object", required: ["id", "type"], additionalProperties: !0, properties: { id: { type: "string", minLength: 1, maxLength: 256 }, type: { type: "string", maxLength: 64 }, source: { type: "string", maxLength: 256 } } } }, sprite: { type: ["string", "array"], items: { type: "object", required: ["id", "url"], additionalProperties: !0, properties: { id: { type: "string", maxLength: 256 }, url: { type: "string", maxLength: 4096 } } } }, glyphs: { type: "string", maxLength: 4096 }, transition: { type: "object", additionalProperties: !0, properties: { duration: { type: "number" }, delay: { type: "number" } } } } }, initialView: { type: "object", additionalProperties: !0, properties: { bbox: { type: "array", minItems: 4, maxItems: 4, items: { type: "number" } }, center: { type: "array", minItems: 2, maxItems: 2, items: { type: "number" } }, zoom: { type: "number" }, pitch: { type: "number" }, bearing: { type: "number" }, crs: { type: "string", maxLength: 256 } } }, legendEntry: { type: "object", required: ["label"], additionalProperties: !0, properties: { label: { type: "string", maxLength: 512 }, color: { type: "string", maxLength: 128 }, minValue: { type: "number" }, maxValue: { type: "number" }, iconUrl: { type: "string", maxLength: 4096 } } }, popupBinding: { type: "object", required: ["sourceId"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, fieldName: { type: "string", maxLength: 256 }, template: { type: "string", maxLength: 16384 }, title: { type: "string", maxLength: 512 } } }, labelBinding: { type: "object", required: ["sourceId", "fieldName"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, fieldName: { type: "string", minLength: 1, maxLength: 256 }, placement: { type: "string", enum: ["point", "line", "polygon"] } } }, attribution: { type: "object", required: ["text"], additionalProperties: !0, properties: { text: { type: "string", minLength: 1, maxLength: 2048 }, url: { type: "string", maxLength: 4096 }, sourceIds: { type: "array", items: { type: "string", maxLength: 256 } }, required: { type: "boolean" } } }, widget: { type: "object", required: ["widgetId", "type"], additionalProperties: !0, properties: { widgetId: { type: "string", minLength: 1, maxLength: 256 }, type: { type: "string", minLength: 1, maxLength: 128 }, position: { type: "string", enum: ["top-left", "top-right", "bottom-left", "bottom-right"] }, label: { type: "string", maxLength: 512 }, visible: { type: "boolean" }, config: { type: "object", additionalProperties: !0 } } }, dependency: { type: "object", required: ["name"], additionalProperties: !0, properties: { name: { type: "string", minLength: 1, maxLength: 256 }, versionRange: { type: "string", maxLength: 128 }, kind: { type: "string", enum: ["renderer", "protocol", "sdk", "plugin", "font", "sprite", "basemap"] }, optional: { type: "boolean" } } }, provenance: { type: "object", additionalProperties: !0, properties: { generatedBy: { type: "string", maxLength: 256 }, generatorVersion: { type: "string", maxLength: 128 }, generatedAt: { type: "string", maxLength: 64 }, derivedFrom: { type: "array", items: { type: "string", maxLength: 256 } }, notes: { type: "string", maxLength: 4096 } } } } }, q = { type: "object", additionalProperties: !0, properties: { themeId: { type: "string", maxLength: 256 }, tokens: { type: "object", additionalProperties: { type: ["string", "number"] } } } }, x = { type: "object", required: ["version", "sources", "layers"], additionalProperties: !0, properties: { version: { const: 8 }, name: { type: "string", maxLength: 256 }, metadata: { type: "object", additionalProperties: !0 }, center: { type: "array", minItems: 2, maxItems: 2, items: { type: "number" } }, zoom: { type: "number" }, bearing: { type: "number" }, pitch: { type: "number" }, sources: { type: "object", additionalProperties: { type: "object", required: ["type"], additionalProperties: !0, properties: { type: { type: "string", maxLength: 128 } } } }, layers: { type: "array", items: { type: "object", required: ["id", "type"], additionalProperties: !0, properties: { id: { type: "string", minLength: 1, maxLength: 256 }, type: { type: "string", maxLength: 64 }, source: { type: "string", maxLength: 256 } } } }, sprite: { type: ["string", "array"], items: { type: "object", required: ["id", "url"], additionalProperties: !0, properties: { id: { type: "string", maxLength: 256 }, url: { type: "string", maxLength: 4096 } } } }, glyphs: { type: "string", maxLength: 4096 }, transition: { type: "object", additionalProperties: !0, properties: { duration: { type: "number" }, delay: { type: "number" } } } } }, z = { type: "object", additionalProperties: !0, properties: { bbox: { type: "array", minItems: 4, maxItems: 4, items: { type: "number" } }, center: { type: "array", minItems: 2, maxItems: 2, items: { type: "number" } }, zoom: { type: "number" }, pitch: { type: "number" }, bearing: { type: "number" }, crs: { type: "string", maxLength: 256 } } }, O = { type: "object", required: ["label"], additionalProperties: !0, properties: { label: { type: "string", maxLength: 512 }, color: { type: "string", maxLength: 128 }, minValue: { type: "number" }, maxValue: { type: "number" }, iconUrl: { type: "string", maxLength: 4096 } } }, B = { type: "object", required: ["sourceId"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, fieldName: { type: "string", maxLength: 256 }, template: { type: "string", maxLength: 16384 }, title: { type: "string", maxLength: 512 } } }, $ = { type: "object", required: ["sourceId", "fieldName"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, fieldName: { type: "string", minLength: 1, maxLength: 256 }, placement: { type: "string", enum: ["point", "line", "polygon"] } } }, T = { type: "object", required: ["text"], additionalProperties: !0, properties: { text: { type: "string", minLength: 1, maxLength: 2048 }, url: { type: "string", maxLength: 4096 }, sourceIds: { type: "array", items: { type: "string", maxLength: 256 } }, required: { type: "boolean" } } }, I = { type: "object", required: ["widgetId", "type"], additionalProperties: !0, properties: { widgetId: { type: "string", minLength: 1, maxLength: 256 }, type: { type: "string", minLength: 1, maxLength: 128 }, position: { type: "string", enum: ["top-left", "top-right", "bottom-left", "bottom-right"] }, label: { type: "string", maxLength: 512 }, visible: { type: "boolean" }, config: { type: "object", additionalProperties: !0 } } }, j = { type: "object", required: ["name"], additionalProperties: !0, properties: { name: { type: "string", minLength: 1, maxLength: 256 }, versionRange: { type: "string", maxLength: 128 }, kind: { type: "string", enum: ["renderer", "protocol", "sdk", "plugin", "font", "sprite", "basemap"] }, optional: { type: "boolean" } } }, E = { type: "object", additionalProperties: !0, properties: { generatedBy: { type: "string", maxLength: 256 }, generatorVersion: { type: "string", maxLength: 128 }, generatedAt: { type: "string", maxLength: 64 }, derivedFrom: { type: "array", items: { type: "string", maxLength: 256 } }, notes: { type: "string", maxLength: 4096 } } }, l = N, A = { type: "object", required: ["sourceId", "protocol", "locator"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, protocol: { type: "string", enum: ["geoservices_feature_service", "geoservices_map_service", "ogc_features", "ogc_maps", "ogc_tiles", "wfs", "wms", "wmts", "odata", "vector_tile", "raster_tile", "pmtiles", "workspace_artifact"] }, locator: { $ref: "#/$defs/locator" }, filter: { type: "string", maxLength: 8192 }, attribution: { type: "string", maxLength: 1024 }, metadata: { type: "object", additionalProperties: { type: "string", maxLength: 4096 } } } }, S = { type: "object", additionalProperties: !0, properties: { url: { type: "string", maxLength: 4096 }, serviceId: { type: "string", maxLength: 256 }, layerId: { type: ["integer", "string"] }, collectionId: { type: ["string", "integer"] }, typeName: { type: "string", maxLength: 256 }, entitySet: { type: "string", maxLength: 256 } } };
33
+ function g(m, { instancePath: i = "", parentData: h, parentDataProperty: c, rootData: u = m, dynamicAnchors: f = {} } = {}) { let e = null, a = 0; const y = g.evaluated; if (y.dynamicProps && (y.props = void 0), y.dynamicItems && (y.items = void 0), m && typeof m == "object" && !Array.isArray(m)) {
34
+ for (const s of A.required)
35
+ if (m[s] === void 0) {
36
+ const t = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: s }, message: "must have required property '" + s + "'" };
37
+ e === null ? e = [t] : e.push(t), a++;
38
+ }
46
39
  if (m.sourceId !== void 0) {
47
40
  let s = m.sourceId;
48
41
  if (typeof s == "string") {
@@ -67,7 +60,7 @@ function g(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
67
60
  e === null ? e = [t] : e.push(t), a++;
68
61
  }
69
62
  if (!(s === "geoservices_feature_service" || s === "geoservices_map_service" || s === "ogc_features" || s === "ogc_maps" || s === "ogc_tiles" || s === "wfs" || s === "wms" || s === "wmts" || s === "odata" || s === "vector_tile" || s === "raster_tile" || s === "pmtiles" || s === "workspace_artifact")) {
70
- const t = { instancePath: i + "/protocol", schemaPath: "#/properties/protocol/enum", keyword: "enum", params: { allowedValues: N.properties.protocol.enum }, message: "must be equal to one of the allowed values" };
63
+ const t = { instancePath: i + "/protocol", schemaPath: "#/properties/protocol/enum", keyword: "enum", params: { allowedValues: A.properties.protocol.enum }, message: "must be equal to one of the allowed values" };
71
64
  e === null ? e = [t] : e.push(t), a++;
72
65
  }
73
66
  }
@@ -103,14 +96,14 @@ function g(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
103
96
  if (s.layerId !== void 0) {
104
97
  let t = s.layerId;
105
98
  if (!(typeof t == "number" && !(t % 1) && !isNaN(t)) && typeof t != "string") {
106
- const r = { instancePath: i + "/locator/layerId", schemaPath: "#/$defs/locator/properties/layerId/type", keyword: "type", params: { type: L.properties.layerId.type }, message: "must be integer,string" };
99
+ const r = { instancePath: i + "/locator/layerId", schemaPath: "#/$defs/locator/properties/layerId/type", keyword: "type", params: { type: S.properties.layerId.type }, message: "must be integer,string" };
107
100
  e === null ? e = [r] : e.push(r), a++;
108
101
  }
109
102
  }
110
103
  if (s.collectionId !== void 0) {
111
104
  let t = s.collectionId;
112
105
  if (typeof t != "string" && !(typeof t == "number" && !(t % 1) && !isNaN(t))) {
113
- const r = { instancePath: i + "/locator/collectionId", schemaPath: "#/$defs/locator/properties/collectionId/type", keyword: "type", params: { type: L.properties.collectionId.type }, message: "must be string,integer" };
106
+ const r = { instancePath: i + "/locator/collectionId", schemaPath: "#/$defs/locator/properties/collectionId/type", keyword: "type", params: { type: S.properties.collectionId.type }, message: "must be string,integer" };
114
107
  e === null ? e = [r] : e.push(r), a++;
115
108
  }
116
109
  }
@@ -199,8 +192,8 @@ else {
199
192
  e === null ? e = [s] : e.push(s), a++;
200
193
  } return g.errors = e, a === 0; }
201
194
  g.evaluated = { props: !0, dynamicProps: !1, dynamicItems: !1 };
202
- const E = { type: "object", required: ["styleId"], additionalProperties: !0, properties: { styleId: { type: "string", minLength: 1, maxLength: 256 }, label: { type: "string", maxLength: 256 }, presetId: { type: "string", maxLength: 256 }, body: { $ref: "#/$defs/styleRefBody" } } }, D = { type: "object", additionalProperties: { $ref: "#/$defs/styleRefLayerOverride" } }, F = { type: "object", additionalProperties: !0, properties: { paint: { type: "object", additionalProperties: !0 }, layout: { type: "object", additionalProperties: !0 }, minzoom: { type: "number" }, maxzoom: { type: "number" }, filter: !0, metadata: { type: "object", additionalProperties: !0 } } };
203
- function b(m, { instancePath: i = "", parentData: h, parentDataProperty: c, rootData: y = m, dynamicAnchors: f = {} } = {}) { let e = null, a = 0; const u = b.evaluated; if (u.dynamicProps && (u.props = void 0), u.dynamicItems && (u.items = void 0), m && typeof m == "object" && !Array.isArray(m))
195
+ const V = { type: "object", required: ["styleId"], additionalProperties: !0, properties: { styleId: { type: "string", minLength: 1, maxLength: 256 }, label: { type: "string", maxLength: 256 }, presetId: { type: "string", maxLength: 256 }, body: { $ref: "#/$defs/styleRefBody" } } }, D = { type: "object", additionalProperties: { $ref: "#/$defs/styleRefLayerOverride" } }, F = { type: "object", additionalProperties: !0, properties: { paint: { type: "object", additionalProperties: !0 }, layout: { type: "object", additionalProperties: !0 }, minzoom: { type: "number" }, maxzoom: { type: "number" }, filter: !0, metadata: { type: "object", additionalProperties: !0 } } };
196
+ function b(m, { instancePath: i = "", parentData: h, parentDataProperty: c, rootData: u = m, dynamicAnchors: f = {} } = {}) { let e = null, a = 0; const y = b.evaluated; if (y.dynamicProps && (y.props = void 0), y.dynamicItems && (y.items = void 0), m && typeof m == "object" && !Array.isArray(m))
204
197
  for (const s in m) {
205
198
  let t = m[s];
206
199
  if (t && typeof t == "object" && !Array.isArray(t)) {
@@ -244,11 +237,12 @@ else {
244
237
  e === null ? e = [s] : e.push(s), a++;
245
238
  } return b.errors = e, a === 0; }
246
239
  b.evaluated = { props: !0, dynamicProps: !1, dynamicItems: !1 };
247
- function w(m, { instancePath: i = "", parentData: h, parentDataProperty: c, rootData: y = m, dynamicAnchors: f = {} } = {}) { let e = null, a = 0; const u = w.evaluated; if (u.dynamicProps && (u.props = void 0), u.dynamicItems && (u.items = void 0), m && typeof m == "object" && !Array.isArray(m)) {
248
- if (m.styleId === void 0) {
249
- const s = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: "styleId" }, message: "must have required property 'styleId'" };
250
- e === null ? e = [s] : e.push(s), a++;
251
- }
240
+ function w(m, { instancePath: i = "", parentData: h, parentDataProperty: c, rootData: u = m, dynamicAnchors: f = {} } = {}) { let e = null, a = 0; const y = w.evaluated; if (y.dynamicProps && (y.props = void 0), y.dynamicItems && (y.items = void 0), m && typeof m == "object" && !Array.isArray(m)) {
241
+ for (const s of V.required)
242
+ if (m[s] === void 0) {
243
+ const t = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: s }, message: "must have required property '" + s + "'" };
244
+ e === null ? e = [t] : e.push(t), a++;
245
+ }
252
246
  if (m.styleId !== void 0) {
253
247
  let s = m.styleId;
254
248
  if (typeof s == "string") {
@@ -292,30 +286,19 @@ function w(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
292
286
  e === null ? e = [t] : e.push(t), a++;
293
287
  }
294
288
  }
295
- m.body !== void 0 && (b(m.body, { instancePath: i + "/body", parentData: m, parentDataProperty: "body", rootData: y, dynamicAnchors: f }) || (e = e === null ? b.errors : e.concat(b.errors), a = e.length));
289
+ m.body !== void 0 && (b(m.body, { instancePath: i + "/body", parentData: m, parentDataProperty: "body", rootData: u, dynamicAnchors: f }) || (e = e === null ? b.errors : e.concat(b.errors), a = e.length));
296
290
  }
297
291
  else {
298
292
  const s = { instancePath: i, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
299
293
  e === null ? e = [s] : e.push(s), a++;
300
294
  } return w.errors = e, a === 0; }
301
295
  w.evaluated = { props: !0, dynamicProps: !1, dynamicItems: !1 };
302
- function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, rootData: y = m, dynamicAnchors: f = {} } = {}) { let e = null, a = 0; const u = k.evaluated; if (u.dynamicProps && (u.props = void 0), u.dynamicItems && (u.items = void 0), m && typeof m == "object" && !Array.isArray(m)) {
303
- if (m.mapPackageId === void 0) {
304
- const s = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: "mapPackageId" }, message: "must have required property 'mapPackageId'" };
305
- e === null ? e = [s] : e.push(s), a++;
306
- }
307
- if (m.format === void 0) {
308
- const s = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: "format" }, message: "must have required property 'format'" };
309
- e === null ? e = [s] : e.push(s), a++;
310
- }
311
- if (m.sourceBindings === void 0) {
312
- const s = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: "sourceBindings" }, message: "must have required property 'sourceBindings'" };
313
- e === null ? e = [s] : e.push(s), a++;
314
- }
315
- if (m.mapSpec === void 0) {
316
- const s = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: "mapSpec" }, message: "must have required property 'mapSpec'" };
317
- e === null ? e = [s] : e.push(s), a++;
318
- }
296
+ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, rootData: u = m, dynamicAnchors: f = {} } = {}) { let e = null, a = 0; const y = k.evaluated; if (y.dynamicProps && (y.props = void 0), y.dynamicItems && (y.items = void 0), m && typeof m == "object" && !Array.isArray(m)) {
297
+ for (const s of v.required)
298
+ if (m[s] === void 0) {
299
+ const t = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: s }, message: "must have required property '" + s + "'" };
300
+ e === null ? e = [t] : e.push(t), a++;
301
+ }
319
302
  if (m.mapPackageId !== void 0) {
320
303
  let s = m.mapPackageId;
321
304
  if (typeof s == "string") {
@@ -351,7 +334,7 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
351
334
  e === null ? e = [t] : e.push(t), a++;
352
335
  }
353
336
  if (!(s === "Draft" || s === "Composing" || s === "Ready" || s === "Failed" || s === "Expired")) {
354
- const t = { instancePath: i + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues: $.properties.status.enum }, message: "must be equal to one of the allowed values" };
337
+ const t = { instancePath: i + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues: v.properties.status.enum }, message: "must be equal to one of the allowed values" };
355
338
  e === null ? e = [t] : e.push(t), a++;
356
339
  }
357
340
  }
@@ -442,8 +425,8 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
442
425
  for (const r in t) {
443
426
  let o = t[r];
444
427
  if (typeof o != "string" && typeof o != "number") {
445
- const p = { instancePath: i + "/theme/tokens/" + r.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/themeSpec/properties/tokens/additionalProperties/type", keyword: "type", params: { type: I.properties.tokens.additionalProperties.type }, message: "must be string,number" };
446
- e === null ? e = [p] : e.push(p), a++;
428
+ const n = { instancePath: i + "/theme/tokens/" + r.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/themeSpec/properties/tokens/additionalProperties/type", keyword: "type", params: { type: q.properties.tokens.additionalProperties.type }, message: "must be string,number" };
429
+ e === null ? e = [n] : e.push(n), a++;
447
430
  }
448
431
  }
449
432
  else {
@@ -475,7 +458,7 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
475
458
  if (Array.isArray(s)) {
476
459
  const t = s.length;
477
460
  for (let r = 0; r < t; r++)
478
- g(s[r], { instancePath: i + "/sourceBindings/" + r, parentData: s, parentDataProperty: r, rootData: y, dynamicAnchors: f }) || (e = e === null ? g.errors : e.concat(g.errors), a = e.length);
461
+ g(s[r], { instancePath: i + "/sourceBindings/" + r, parentData: s, parentDataProperty: r, rootData: u, dynamicAnchors: f }) || (e = e === null ? g.errors : e.concat(g.errors), a = e.length);
479
462
  }
480
463
  else {
481
464
  const t = { instancePath: i + "/sourceBindings", schemaPath: "#/properties/sourceBindings/type", keyword: "type", params: { type: "array" }, message: "must be array" };
@@ -487,7 +470,7 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
487
470
  if (Array.isArray(s)) {
488
471
  const t = s.length;
489
472
  for (let r = 0; r < t; r++)
490
- w(s[r], { instancePath: i + "/styleRefs/" + r, parentData: s, parentDataProperty: r, rootData: y, dynamicAnchors: f }) || (e = e === null ? w.errors : e.concat(w.errors), a = e.length);
473
+ w(s[r], { instancePath: i + "/styleRefs/" + r, parentData: s, parentDataProperty: r, rootData: u, dynamicAnchors: f }) || (e = e === null ? w.errors : e.concat(w.errors), a = e.length);
491
474
  }
492
475
  else {
493
476
  const t = { instancePath: i + "/styleRefs", schemaPath: "#/properties/styleRefs/type", keyword: "type", params: { type: "array" }, message: "must be array" };
@@ -497,18 +480,11 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
497
480
  if (m.mapSpec !== void 0) {
498
481
  let s = m.mapSpec;
499
482
  if (s && typeof s == "object" && !Array.isArray(s)) {
500
- if (s.version === void 0) {
501
- const t = { instancePath: i + "/mapSpec", schemaPath: "#/$defs/mapSpec/required", keyword: "required", params: { missingProperty: "version" }, message: "must have required property 'version'" };
502
- e === null ? e = [t] : e.push(t), a++;
503
- }
504
- if (s.sources === void 0) {
505
- const t = { instancePath: i + "/mapSpec", schemaPath: "#/$defs/mapSpec/required", keyword: "required", params: { missingProperty: "sources" }, message: "must have required property 'sources'" };
506
- e === null ? e = [t] : e.push(t), a++;
507
- }
508
- if (s.layers === void 0) {
509
- const t = { instancePath: i + "/mapSpec", schemaPath: "#/$defs/mapSpec/required", keyword: "required", params: { missingProperty: "layers" }, message: "must have required property 'layers'" };
510
- e === null ? e = [t] : e.push(t), a++;
511
- }
483
+ for (const t of x.required)
484
+ if (s[t] === void 0) {
485
+ const r = { instancePath: i + "/mapSpec", schemaPath: "#/$defs/mapSpec/required", keyword: "required", params: { missingProperty: t }, message: "must have required property '" + t + "'" };
486
+ e === null ? e = [r] : e.push(r), a++;
487
+ }
512
488
  if (s.version !== void 0 && s.version !== 8) {
513
489
  const t = { instancePath: i + "/mapSpec/version", schemaPath: "#/$defs/mapSpec/properties/version/const", keyword: "const", params: { allowedValue: 8 }, message: "must be equal to constant" };
514
490
  e === null ? e = [t] : e.push(t), a++;
@@ -547,8 +523,8 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
547
523
  const r = t.length;
548
524
  for (let o = 0; o < r; o++)
549
525
  if (typeof t[o] != "number") {
550
- const p = { instancePath: i + "/mapSpec/center/" + o, schemaPath: "#/$defs/mapSpec/properties/center/items/type", keyword: "type", params: { type: "number" }, message: "must be number" };
551
- e === null ? e = [p] : e.push(p), a++;
526
+ const n = { instancePath: i + "/mapSpec/center/" + o, schemaPath: "#/$defs/mapSpec/properties/center/items/type", keyword: "type", params: { type: "number" }, message: "must be number" };
527
+ e === null ? e = [n] : e.push(n), a++;
552
528
  }
553
529
  }
554
530
  else {
@@ -574,27 +550,28 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
574
550
  for (const r in t) {
575
551
  let o = t[r];
576
552
  if (o && typeof o == "object" && !Array.isArray(o)) {
577
- if (o.type === void 0) {
578
- const p = { instancePath: i + "/mapSpec/sources/" + r.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/mapSpec/properties/sources/additionalProperties/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
579
- e === null ? e = [p] : e.push(p), a++;
580
- }
553
+ for (const n of x.properties.sources.additionalProperties.required)
554
+ if (o[n] === void 0) {
555
+ const p = { instancePath: i + "/mapSpec/sources/" + r.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/mapSpec/properties/sources/additionalProperties/required", keyword: "required", params: { missingProperty: n }, message: "must have required property '" + n + "'" };
556
+ e === null ? e = [p] : e.push(p), a++;
557
+ }
581
558
  if (o.type !== void 0) {
582
- let p = o.type;
583
- if (typeof p == "string") {
584
- if (l(p) > 128) {
585
- const n = { instancePath: i + "/mapSpec/sources/" + r.replace(/~/g, "~0").replace(/\//g, "~1") + "/type", schemaPath: "#/$defs/mapSpec/properties/sources/additionalProperties/properties/type/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
586
- e === null ? e = [n] : e.push(n), a++;
559
+ let n = o.type;
560
+ if (typeof n == "string") {
561
+ if (l(n) > 128) {
562
+ const p = { instancePath: i + "/mapSpec/sources/" + r.replace(/~/g, "~0").replace(/\//g, "~1") + "/type", schemaPath: "#/$defs/mapSpec/properties/sources/additionalProperties/properties/type/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
563
+ e === null ? e = [p] : e.push(p), a++;
587
564
  }
588
565
  }
589
566
  else {
590
- const n = { instancePath: i + "/mapSpec/sources/" + r.replace(/~/g, "~0").replace(/\//g, "~1") + "/type", schemaPath: "#/$defs/mapSpec/properties/sources/additionalProperties/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
591
- e === null ? e = [n] : e.push(n), a++;
567
+ const p = { instancePath: i + "/mapSpec/sources/" + r.replace(/~/g, "~0").replace(/\//g, "~1") + "/type", schemaPath: "#/$defs/mapSpec/properties/sources/additionalProperties/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
568
+ e === null ? e = [p] : e.push(p), a++;
592
569
  }
593
570
  }
594
571
  }
595
572
  else {
596
- const p = { instancePath: i + "/mapSpec/sources/" + r.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/mapSpec/properties/sources/additionalProperties/type", keyword: "type", params: { type: "object" }, message: "must be object" };
597
- e === null ? e = [p] : e.push(p), a++;
573
+ const n = { instancePath: i + "/mapSpec/sources/" + r.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/mapSpec/properties/sources/additionalProperties/type", keyword: "type", params: { type: "object" }, message: "must be object" };
574
+ e === null ? e = [n] : e.push(n), a++;
598
575
  }
599
576
  }
600
577
  else {
@@ -607,24 +584,21 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
607
584
  if (Array.isArray(t)) {
608
585
  const r = t.length;
609
586
  for (let o = 0; o < r; o++) {
610
- let p = t[o];
611
- if (p && typeof p == "object" && !Array.isArray(p)) {
612
- if (p.id === void 0) {
613
- const n = { instancePath: i + "/mapSpec/layers/" + o, schemaPath: "#/$defs/mapSpec/properties/layers/items/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
614
- e === null ? e = [n] : e.push(n), a++;
615
- }
616
- if (p.type === void 0) {
617
- const n = { instancePath: i + "/mapSpec/layers/" + o, schemaPath: "#/$defs/mapSpec/properties/layers/items/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
618
- e === null ? e = [n] : e.push(n), a++;
619
- }
620
- if (p.id !== void 0) {
621
- let n = p.id;
622
- if (typeof n == "string") {
623
- if (l(n) > 256) {
587
+ let n = t[o];
588
+ if (n && typeof n == "object" && !Array.isArray(n)) {
589
+ for (const p of x.properties.layers.items.required)
590
+ if (n[p] === void 0) {
591
+ const d = { instancePath: i + "/mapSpec/layers/" + o, schemaPath: "#/$defs/mapSpec/properties/layers/items/required", keyword: "required", params: { missingProperty: p }, message: "must have required property '" + p + "'" };
592
+ e === null ? e = [d] : e.push(d), a++;
593
+ }
594
+ if (n.id !== void 0) {
595
+ let p = n.id;
596
+ if (typeof p == "string") {
597
+ if (l(p) > 256) {
624
598
  const d = { instancePath: i + "/mapSpec/layers/" + o + "/id", schemaPath: "#/$defs/mapSpec/properties/layers/items/properties/id/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
625
599
  e === null ? e = [d] : e.push(d), a++;
626
600
  }
627
- if (l(n) < 1) {
601
+ if (l(p) < 1) {
628
602
  const d = { instancePath: i + "/mapSpec/layers/" + o + "/id", schemaPath: "#/$defs/mapSpec/properties/layers/items/properties/id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
629
603
  e === null ? e = [d] : e.push(d), a++;
630
604
  }
@@ -634,10 +608,10 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
634
608
  e === null ? e = [d] : e.push(d), a++;
635
609
  }
636
610
  }
637
- if (p.type !== void 0) {
638
- let n = p.type;
639
- if (typeof n == "string") {
640
- if (l(n) > 64) {
611
+ if (n.type !== void 0) {
612
+ let p = n.type;
613
+ if (typeof p == "string") {
614
+ if (l(p) > 64) {
641
615
  const d = { instancePath: i + "/mapSpec/layers/" + o + "/type", schemaPath: "#/$defs/mapSpec/properties/layers/items/properties/type/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters" };
642
616
  e === null ? e = [d] : e.push(d), a++;
643
617
  }
@@ -647,10 +621,10 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
647
621
  e === null ? e = [d] : e.push(d), a++;
648
622
  }
649
623
  }
650
- if (p.source !== void 0) {
651
- let n = p.source;
652
- if (typeof n == "string") {
653
- if (l(n) > 256) {
624
+ if (n.source !== void 0) {
625
+ let p = n.source;
626
+ if (typeof p == "string") {
627
+ if (l(p) > 256) {
654
628
  const d = { instancePath: i + "/mapSpec/layers/" + o + "/source", schemaPath: "#/$defs/mapSpec/properties/layers/items/properties/source/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
655
629
  e === null ? e = [d] : e.push(d), a++;
656
630
  }
@@ -662,8 +636,8 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
662
636
  }
663
637
  }
664
638
  else {
665
- const n = { instancePath: i + "/mapSpec/layers/" + o, schemaPath: "#/$defs/mapSpec/properties/layers/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
666
- e === null ? e = [n] : e.push(n), a++;
639
+ const p = { instancePath: i + "/mapSpec/layers/" + o, schemaPath: "#/$defs/mapSpec/properties/layers/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
640
+ e === null ? e = [p] : e.push(p), a++;
667
641
  }
668
642
  }
669
643
  }
@@ -675,26 +649,23 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
675
649
  if (s.sprite !== void 0) {
676
650
  let t = s.sprite;
677
651
  if (typeof t != "string" && !Array.isArray(t)) {
678
- const r = { instancePath: i + "/mapSpec/sprite", schemaPath: "#/$defs/mapSpec/properties/sprite/type", keyword: "type", params: { type: j.properties.sprite.type }, message: "must be string,array" };
652
+ const r = { instancePath: i + "/mapSpec/sprite", schemaPath: "#/$defs/mapSpec/properties/sprite/type", keyword: "type", params: { type: x.properties.sprite.type }, message: "must be string,array" };
679
653
  e === null ? e = [r] : e.push(r), a++;
680
654
  }
681
655
  if (Array.isArray(t)) {
682
656
  const r = t.length;
683
657
  for (let o = 0; o < r; o++) {
684
- let p = t[o];
685
- if (p && typeof p == "object" && !Array.isArray(p)) {
686
- if (p.id === void 0) {
687
- const n = { instancePath: i + "/mapSpec/sprite/" + o, schemaPath: "#/$defs/mapSpec/properties/sprite/items/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property 'id'" };
688
- e === null ? e = [n] : e.push(n), a++;
689
- }
690
- if (p.url === void 0) {
691
- const n = { instancePath: i + "/mapSpec/sprite/" + o, schemaPath: "#/$defs/mapSpec/properties/sprite/items/required", keyword: "required", params: { missingProperty: "url" }, message: "must have required property 'url'" };
692
- e === null ? e = [n] : e.push(n), a++;
693
- }
694
- if (p.id !== void 0) {
695
- let n = p.id;
696
- if (typeof n == "string") {
697
- if (l(n) > 256) {
658
+ let n = t[o];
659
+ if (n && typeof n == "object" && !Array.isArray(n)) {
660
+ for (const p of x.properties.sprite.items.required)
661
+ if (n[p] === void 0) {
662
+ const d = { instancePath: i + "/mapSpec/sprite/" + o, schemaPath: "#/$defs/mapSpec/properties/sprite/items/required", keyword: "required", params: { missingProperty: p }, message: "must have required property '" + p + "'" };
663
+ e === null ? e = [d] : e.push(d), a++;
664
+ }
665
+ if (n.id !== void 0) {
666
+ let p = n.id;
667
+ if (typeof p == "string") {
668
+ if (l(p) > 256) {
698
669
  const d = { instancePath: i + "/mapSpec/sprite/" + o + "/id", schemaPath: "#/$defs/mapSpec/properties/sprite/items/properties/id/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
699
670
  e === null ? e = [d] : e.push(d), a++;
700
671
  }
@@ -704,10 +675,10 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
704
675
  e === null ? e = [d] : e.push(d), a++;
705
676
  }
706
677
  }
707
- if (p.url !== void 0) {
708
- let n = p.url;
709
- if (typeof n == "string") {
710
- if (l(n) > 4096) {
678
+ if (n.url !== void 0) {
679
+ let p = n.url;
680
+ if (typeof p == "string") {
681
+ if (l(p) > 4096) {
711
682
  const d = { instancePath: i + "/mapSpec/sprite/" + o + "/url", schemaPath: "#/$defs/mapSpec/properties/sprite/items/properties/url/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
712
683
  e === null ? e = [d] : e.push(d), a++;
713
684
  }
@@ -719,8 +690,8 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
719
690
  }
720
691
  }
721
692
  else {
722
- const n = { instancePath: i + "/mapSpec/sprite/" + o, schemaPath: "#/$defs/mapSpec/properties/sprite/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
723
- e === null ? e = [n] : e.push(n), a++;
693
+ const p = { instancePath: i + "/mapSpec/sprite/" + o, schemaPath: "#/$defs/mapSpec/properties/sprite/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
694
+ e === null ? e = [p] : e.push(p), a++;
724
695
  }
725
696
  }
726
697
  }
@@ -778,8 +749,8 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
778
749
  const r = t.length;
779
750
  for (let o = 0; o < r; o++)
780
751
  if (typeof t[o] != "number") {
781
- const p = { instancePath: i + "/initialView/bbox/" + o, schemaPath: "#/$defs/initialView/properties/bbox/items/type", keyword: "type", params: { type: "number" }, message: "must be number" };
782
- e === null ? e = [p] : e.push(p), a++;
752
+ const n = { instancePath: i + "/initialView/bbox/" + o, schemaPath: "#/$defs/initialView/properties/bbox/items/type", keyword: "type", params: { type: "number" }, message: "must be number" };
753
+ e === null ? e = [n] : e.push(n), a++;
783
754
  }
784
755
  }
785
756
  else {
@@ -801,8 +772,8 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
801
772
  const r = t.length;
802
773
  for (let o = 0; o < r; o++)
803
774
  if (typeof t[o] != "number") {
804
- const p = { instancePath: i + "/initialView/center/" + o, schemaPath: "#/$defs/initialView/properties/center/items/type", keyword: "type", params: { type: "number" }, message: "must be number" };
805
- e === null ? e = [p] : e.push(p), a++;
775
+ const n = { instancePath: i + "/initialView/center/" + o, schemaPath: "#/$defs/initialView/properties/center/items/type", keyword: "type", params: { type: "number" }, message: "must be number" };
776
+ e === null ? e = [n] : e.push(n), a++;
806
777
  }
807
778
  }
808
779
  else {
@@ -848,61 +819,62 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
848
819
  for (let r = 0; r < t; r++) {
849
820
  let o = s[r];
850
821
  if (o && typeof o == "object" && !Array.isArray(o)) {
851
- if (o.label === void 0) {
852
- const p = { instancePath: i + "/legend/" + r, schemaPath: "#/$defs/legendEntry/required", keyword: "required", params: { missingProperty: "label" }, message: "must have required property 'label'" };
853
- e === null ? e = [p] : e.push(p), a++;
854
- }
822
+ for (const n of O.required)
823
+ if (o[n] === void 0) {
824
+ const p = { instancePath: i + "/legend/" + r, schemaPath: "#/$defs/legendEntry/required", keyword: "required", params: { missingProperty: n }, message: "must have required property '" + n + "'" };
825
+ e === null ? e = [p] : e.push(p), a++;
826
+ }
855
827
  if (o.label !== void 0) {
856
- let p = o.label;
857
- if (typeof p == "string") {
858
- if (l(p) > 512) {
859
- const n = { instancePath: i + "/legend/" + r + "/label", schemaPath: "#/$defs/legendEntry/properties/label/maxLength", keyword: "maxLength", params: { limit: 512 }, message: "must NOT have more than 512 characters" };
860
- e === null ? e = [n] : e.push(n), a++;
828
+ let n = o.label;
829
+ if (typeof n == "string") {
830
+ if (l(n) > 512) {
831
+ const p = { instancePath: i + "/legend/" + r + "/label", schemaPath: "#/$defs/legendEntry/properties/label/maxLength", keyword: "maxLength", params: { limit: 512 }, message: "must NOT have more than 512 characters" };
832
+ e === null ? e = [p] : e.push(p), a++;
861
833
  }
862
834
  }
863
835
  else {
864
- const n = { instancePath: i + "/legend/" + r + "/label", schemaPath: "#/$defs/legendEntry/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
865
- e === null ? e = [n] : e.push(n), a++;
836
+ const p = { instancePath: i + "/legend/" + r + "/label", schemaPath: "#/$defs/legendEntry/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
837
+ e === null ? e = [p] : e.push(p), a++;
866
838
  }
867
839
  }
868
840
  if (o.color !== void 0) {
869
- let p = o.color;
870
- if (typeof p == "string") {
871
- if (l(p) > 128) {
872
- const n = { instancePath: i + "/legend/" + r + "/color", schemaPath: "#/$defs/legendEntry/properties/color/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
873
- e === null ? e = [n] : e.push(n), a++;
841
+ let n = o.color;
842
+ if (typeof n == "string") {
843
+ if (l(n) > 128) {
844
+ const p = { instancePath: i + "/legend/" + r + "/color", schemaPath: "#/$defs/legendEntry/properties/color/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
845
+ e === null ? e = [p] : e.push(p), a++;
874
846
  }
875
847
  }
876
848
  else {
877
- const n = { instancePath: i + "/legend/" + r + "/color", schemaPath: "#/$defs/legendEntry/properties/color/type", keyword: "type", params: { type: "string" }, message: "must be string" };
878
- e === null ? e = [n] : e.push(n), a++;
849
+ const p = { instancePath: i + "/legend/" + r + "/color", schemaPath: "#/$defs/legendEntry/properties/color/type", keyword: "type", params: { type: "string" }, message: "must be string" };
850
+ e === null ? e = [p] : e.push(p), a++;
879
851
  }
880
852
  }
881
853
  if (o.minValue !== void 0 && typeof o.minValue != "number") {
882
- const p = { instancePath: i + "/legend/" + r + "/minValue", schemaPath: "#/$defs/legendEntry/properties/minValue/type", keyword: "type", params: { type: "number" }, message: "must be number" };
883
- e === null ? e = [p] : e.push(p), a++;
854
+ const n = { instancePath: i + "/legend/" + r + "/minValue", schemaPath: "#/$defs/legendEntry/properties/minValue/type", keyword: "type", params: { type: "number" }, message: "must be number" };
855
+ e === null ? e = [n] : e.push(n), a++;
884
856
  }
885
857
  if (o.maxValue !== void 0 && typeof o.maxValue != "number") {
886
- const p = { instancePath: i + "/legend/" + r + "/maxValue", schemaPath: "#/$defs/legendEntry/properties/maxValue/type", keyword: "type", params: { type: "number" }, message: "must be number" };
887
- e === null ? e = [p] : e.push(p), a++;
858
+ const n = { instancePath: i + "/legend/" + r + "/maxValue", schemaPath: "#/$defs/legendEntry/properties/maxValue/type", keyword: "type", params: { type: "number" }, message: "must be number" };
859
+ e === null ? e = [n] : e.push(n), a++;
888
860
  }
889
861
  if (o.iconUrl !== void 0) {
890
- let p = o.iconUrl;
891
- if (typeof p == "string") {
892
- if (l(p) > 4096) {
893
- const n = { instancePath: i + "/legend/" + r + "/iconUrl", schemaPath: "#/$defs/legendEntry/properties/iconUrl/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
894
- e === null ? e = [n] : e.push(n), a++;
862
+ let n = o.iconUrl;
863
+ if (typeof n == "string") {
864
+ if (l(n) > 4096) {
865
+ const p = { instancePath: i + "/legend/" + r + "/iconUrl", schemaPath: "#/$defs/legendEntry/properties/iconUrl/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
866
+ e === null ? e = [p] : e.push(p), a++;
895
867
  }
896
868
  }
897
869
  else {
898
- const n = { instancePath: i + "/legend/" + r + "/iconUrl", schemaPath: "#/$defs/legendEntry/properties/iconUrl/type", keyword: "type", params: { type: "string" }, message: "must be string" };
899
- e === null ? e = [n] : e.push(n), a++;
870
+ const p = { instancePath: i + "/legend/" + r + "/iconUrl", schemaPath: "#/$defs/legendEntry/properties/iconUrl/type", keyword: "type", params: { type: "string" }, message: "must be string" };
871
+ e === null ? e = [p] : e.push(p), a++;
900
872
  }
901
873
  }
902
874
  }
903
875
  else {
904
- const p = { instancePath: i + "/legend/" + r, schemaPath: "#/$defs/legendEntry/type", keyword: "type", params: { type: "object" }, message: "must be object" };
905
- e === null ? e = [p] : e.push(p), a++;
876
+ const n = { instancePath: i + "/legend/" + r, schemaPath: "#/$defs/legendEntry/type", keyword: "type", params: { type: "object" }, message: "must be object" };
877
+ e === null ? e = [n] : e.push(n), a++;
906
878
  }
907
879
  }
908
880
  }
@@ -918,70 +890,71 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
918
890
  for (let r = 0; r < t; r++) {
919
891
  let o = s[r];
920
892
  if (o && typeof o == "object" && !Array.isArray(o)) {
921
- if (o.sourceId === void 0) {
922
- const p = { instancePath: i + "/popupBindings/" + r, schemaPath: "#/$defs/popupBinding/required", keyword: "required", params: { missingProperty: "sourceId" }, message: "must have required property 'sourceId'" };
923
- e === null ? e = [p] : e.push(p), a++;
924
- }
893
+ for (const n of B.required)
894
+ if (o[n] === void 0) {
895
+ const p = { instancePath: i + "/popupBindings/" + r, schemaPath: "#/$defs/popupBinding/required", keyword: "required", params: { missingProperty: n }, message: "must have required property '" + n + "'" };
896
+ e === null ? e = [p] : e.push(p), a++;
897
+ }
925
898
  if (o.sourceId !== void 0) {
926
- let p = o.sourceId;
927
- if (typeof p == "string") {
928
- if (l(p) > 256) {
929
- const n = { instancePath: i + "/popupBindings/" + r + "/sourceId", schemaPath: "#/$defs/popupBinding/properties/sourceId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
930
- e === null ? e = [n] : e.push(n), a++;
899
+ let n = o.sourceId;
900
+ if (typeof n == "string") {
901
+ if (l(n) > 256) {
902
+ const p = { instancePath: i + "/popupBindings/" + r + "/sourceId", schemaPath: "#/$defs/popupBinding/properties/sourceId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
903
+ e === null ? e = [p] : e.push(p), a++;
931
904
  }
932
- if (l(p) < 1) {
933
- const n = { instancePath: i + "/popupBindings/" + r + "/sourceId", schemaPath: "#/$defs/popupBinding/properties/sourceId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
934
- e === null ? e = [n] : e.push(n), a++;
905
+ if (l(n) < 1) {
906
+ const p = { instancePath: i + "/popupBindings/" + r + "/sourceId", schemaPath: "#/$defs/popupBinding/properties/sourceId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
907
+ e === null ? e = [p] : e.push(p), a++;
935
908
  }
936
909
  }
937
910
  else {
938
- const n = { instancePath: i + "/popupBindings/" + r + "/sourceId", schemaPath: "#/$defs/popupBinding/properties/sourceId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
939
- e === null ? e = [n] : e.push(n), a++;
911
+ const p = { instancePath: i + "/popupBindings/" + r + "/sourceId", schemaPath: "#/$defs/popupBinding/properties/sourceId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
912
+ e === null ? e = [p] : e.push(p), a++;
940
913
  }
941
914
  }
942
915
  if (o.fieldName !== void 0) {
943
- let p = o.fieldName;
944
- if (typeof p == "string") {
945
- if (l(p) > 256) {
946
- const n = { instancePath: i + "/popupBindings/" + r + "/fieldName", schemaPath: "#/$defs/popupBinding/properties/fieldName/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
947
- e === null ? e = [n] : e.push(n), a++;
916
+ let n = o.fieldName;
917
+ if (typeof n == "string") {
918
+ if (l(n) > 256) {
919
+ const p = { instancePath: i + "/popupBindings/" + r + "/fieldName", schemaPath: "#/$defs/popupBinding/properties/fieldName/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
920
+ e === null ? e = [p] : e.push(p), a++;
948
921
  }
949
922
  }
950
923
  else {
951
- const n = { instancePath: i + "/popupBindings/" + r + "/fieldName", schemaPath: "#/$defs/popupBinding/properties/fieldName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
952
- e === null ? e = [n] : e.push(n), a++;
924
+ const p = { instancePath: i + "/popupBindings/" + r + "/fieldName", schemaPath: "#/$defs/popupBinding/properties/fieldName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
925
+ e === null ? e = [p] : e.push(p), a++;
953
926
  }
954
927
  }
955
928
  if (o.template !== void 0) {
956
- let p = o.template;
957
- if (typeof p == "string") {
958
- if (l(p) > 16384) {
959
- const n = { instancePath: i + "/popupBindings/" + r + "/template", schemaPath: "#/$defs/popupBinding/properties/template/maxLength", keyword: "maxLength", params: { limit: 16384 }, message: "must NOT have more than 16384 characters" };
960
- e === null ? e = [n] : e.push(n), a++;
929
+ let n = o.template;
930
+ if (typeof n == "string") {
931
+ if (l(n) > 16384) {
932
+ const p = { instancePath: i + "/popupBindings/" + r + "/template", schemaPath: "#/$defs/popupBinding/properties/template/maxLength", keyword: "maxLength", params: { limit: 16384 }, message: "must NOT have more than 16384 characters" };
933
+ e === null ? e = [p] : e.push(p), a++;
961
934
  }
962
935
  }
963
936
  else {
964
- const n = { instancePath: i + "/popupBindings/" + r + "/template", schemaPath: "#/$defs/popupBinding/properties/template/type", keyword: "type", params: { type: "string" }, message: "must be string" };
965
- e === null ? e = [n] : e.push(n), a++;
937
+ const p = { instancePath: i + "/popupBindings/" + r + "/template", schemaPath: "#/$defs/popupBinding/properties/template/type", keyword: "type", params: { type: "string" }, message: "must be string" };
938
+ e === null ? e = [p] : e.push(p), a++;
966
939
  }
967
940
  }
968
941
  if (o.title !== void 0) {
969
- let p = o.title;
970
- if (typeof p == "string") {
971
- if (l(p) > 512) {
972
- const n = { instancePath: i + "/popupBindings/" + r + "/title", schemaPath: "#/$defs/popupBinding/properties/title/maxLength", keyword: "maxLength", params: { limit: 512 }, message: "must NOT have more than 512 characters" };
973
- e === null ? e = [n] : e.push(n), a++;
942
+ let n = o.title;
943
+ if (typeof n == "string") {
944
+ if (l(n) > 512) {
945
+ const p = { instancePath: i + "/popupBindings/" + r + "/title", schemaPath: "#/$defs/popupBinding/properties/title/maxLength", keyword: "maxLength", params: { limit: 512 }, message: "must NOT have more than 512 characters" };
946
+ e === null ? e = [p] : e.push(p), a++;
974
947
  }
975
948
  }
976
949
  else {
977
- const n = { instancePath: i + "/popupBindings/" + r + "/title", schemaPath: "#/$defs/popupBinding/properties/title/type", keyword: "type", params: { type: "string" }, message: "must be string" };
978
- e === null ? e = [n] : e.push(n), a++;
950
+ const p = { instancePath: i + "/popupBindings/" + r + "/title", schemaPath: "#/$defs/popupBinding/properties/title/type", keyword: "type", params: { type: "string" }, message: "must be string" };
951
+ e === null ? e = [p] : e.push(p), a++;
979
952
  }
980
953
  }
981
954
  }
982
955
  else {
983
- const p = { instancePath: i + "/popupBindings/" + r, schemaPath: "#/$defs/popupBinding/type", keyword: "type", params: { type: "object" }, message: "must be object" };
984
- e === null ? e = [p] : e.push(p), a++;
956
+ const n = { instancePath: i + "/popupBindings/" + r, schemaPath: "#/$defs/popupBinding/type", keyword: "type", params: { type: "object" }, message: "must be object" };
957
+ e === null ? e = [n] : e.push(n), a++;
985
958
  }
986
959
  }
987
960
  }
@@ -997,63 +970,60 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
997
970
  for (let r = 0; r < t; r++) {
998
971
  let o = s[r];
999
972
  if (o && typeof o == "object" && !Array.isArray(o)) {
1000
- if (o.sourceId === void 0) {
1001
- const p = { instancePath: i + "/labelBindings/" + r, schemaPath: "#/$defs/labelBinding/required", keyword: "required", params: { missingProperty: "sourceId" }, message: "must have required property 'sourceId'" };
1002
- e === null ? e = [p] : e.push(p), a++;
1003
- }
1004
- if (o.fieldName === void 0) {
1005
- const p = { instancePath: i + "/labelBindings/" + r, schemaPath: "#/$defs/labelBinding/required", keyword: "required", params: { missingProperty: "fieldName" }, message: "must have required property 'fieldName'" };
1006
- e === null ? e = [p] : e.push(p), a++;
1007
- }
973
+ for (const n of $.required)
974
+ if (o[n] === void 0) {
975
+ const p = { instancePath: i + "/labelBindings/" + r, schemaPath: "#/$defs/labelBinding/required", keyword: "required", params: { missingProperty: n }, message: "must have required property '" + n + "'" };
976
+ e === null ? e = [p] : e.push(p), a++;
977
+ }
1008
978
  if (o.sourceId !== void 0) {
1009
- let p = o.sourceId;
1010
- if (typeof p == "string") {
1011
- if (l(p) > 256) {
1012
- const n = { instancePath: i + "/labelBindings/" + r + "/sourceId", schemaPath: "#/$defs/labelBinding/properties/sourceId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
1013
- e === null ? e = [n] : e.push(n), a++;
979
+ let n = o.sourceId;
980
+ if (typeof n == "string") {
981
+ if (l(n) > 256) {
982
+ const p = { instancePath: i + "/labelBindings/" + r + "/sourceId", schemaPath: "#/$defs/labelBinding/properties/sourceId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
983
+ e === null ? e = [p] : e.push(p), a++;
1014
984
  }
1015
- if (l(p) < 1) {
1016
- const n = { instancePath: i + "/labelBindings/" + r + "/sourceId", schemaPath: "#/$defs/labelBinding/properties/sourceId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
1017
- e === null ? e = [n] : e.push(n), a++;
985
+ if (l(n) < 1) {
986
+ const p = { instancePath: i + "/labelBindings/" + r + "/sourceId", schemaPath: "#/$defs/labelBinding/properties/sourceId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
987
+ e === null ? e = [p] : e.push(p), a++;
1018
988
  }
1019
989
  }
1020
990
  else {
1021
- const n = { instancePath: i + "/labelBindings/" + r + "/sourceId", schemaPath: "#/$defs/labelBinding/properties/sourceId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1022
- e === null ? e = [n] : e.push(n), a++;
991
+ const p = { instancePath: i + "/labelBindings/" + r + "/sourceId", schemaPath: "#/$defs/labelBinding/properties/sourceId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
992
+ e === null ? e = [p] : e.push(p), a++;
1023
993
  }
1024
994
  }
1025
995
  if (o.fieldName !== void 0) {
1026
- let p = o.fieldName;
1027
- if (typeof p == "string") {
1028
- if (l(p) > 256) {
1029
- const n = { instancePath: i + "/labelBindings/" + r + "/fieldName", schemaPath: "#/$defs/labelBinding/properties/fieldName/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
1030
- e === null ? e = [n] : e.push(n), a++;
996
+ let n = o.fieldName;
997
+ if (typeof n == "string") {
998
+ if (l(n) > 256) {
999
+ const p = { instancePath: i + "/labelBindings/" + r + "/fieldName", schemaPath: "#/$defs/labelBinding/properties/fieldName/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
1000
+ e === null ? e = [p] : e.push(p), a++;
1031
1001
  }
1032
- if (l(p) < 1) {
1033
- const n = { instancePath: i + "/labelBindings/" + r + "/fieldName", schemaPath: "#/$defs/labelBinding/properties/fieldName/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
1034
- e === null ? e = [n] : e.push(n), a++;
1002
+ if (l(n) < 1) {
1003
+ const p = { instancePath: i + "/labelBindings/" + r + "/fieldName", schemaPath: "#/$defs/labelBinding/properties/fieldName/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
1004
+ e === null ? e = [p] : e.push(p), a++;
1035
1005
  }
1036
1006
  }
1037
1007
  else {
1038
- const n = { instancePath: i + "/labelBindings/" + r + "/fieldName", schemaPath: "#/$defs/labelBinding/properties/fieldName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1039
- e === null ? e = [n] : e.push(n), a++;
1008
+ const p = { instancePath: i + "/labelBindings/" + r + "/fieldName", schemaPath: "#/$defs/labelBinding/properties/fieldName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1009
+ e === null ? e = [p] : e.push(p), a++;
1040
1010
  }
1041
1011
  }
1042
1012
  if (o.placement !== void 0) {
1043
- let p = o.placement;
1044
- if (typeof p != "string") {
1045
- const n = { instancePath: i + "/labelBindings/" + r + "/placement", schemaPath: "#/$defs/labelBinding/properties/placement/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1046
- e === null ? e = [n] : e.push(n), a++;
1013
+ let n = o.placement;
1014
+ if (typeof n != "string") {
1015
+ const p = { instancePath: i + "/labelBindings/" + r + "/placement", schemaPath: "#/$defs/labelBinding/properties/placement/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1016
+ e === null ? e = [p] : e.push(p), a++;
1047
1017
  }
1048
- if (!(p === "point" || p === "line" || p === "polygon")) {
1049
- const n = { instancePath: i + "/labelBindings/" + r + "/placement", schemaPath: "#/$defs/labelBinding/properties/placement/enum", keyword: "enum", params: { allowedValues: A.properties.placement.enum }, message: "must be equal to one of the allowed values" };
1050
- e === null ? e = [n] : e.push(n), a++;
1018
+ if (!(n === "point" || n === "line" || n === "polygon")) {
1019
+ const p = { instancePath: i + "/labelBindings/" + r + "/placement", schemaPath: "#/$defs/labelBinding/properties/placement/enum", keyword: "enum", params: { allowedValues: $.properties.placement.enum }, message: "must be equal to one of the allowed values" };
1020
+ e === null ? e = [p] : e.push(p), a++;
1051
1021
  }
1052
1022
  }
1053
1023
  }
1054
1024
  else {
1055
- const p = { instancePath: i + "/labelBindings/" + r, schemaPath: "#/$defs/labelBinding/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1056
- e === null ? e = [p] : e.push(p), a++;
1025
+ const n = { instancePath: i + "/labelBindings/" + r, schemaPath: "#/$defs/labelBinding/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1026
+ e === null ? e = [n] : e.push(n), a++;
1057
1027
  }
1058
1028
  }
1059
1029
  }
@@ -1070,13 +1040,13 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
1070
1040
  let o = s[r];
1071
1041
  if (typeof o == "string") {
1072
1042
  if (l(o) > 256) {
1073
- const p = { instancePath: i + "/boundArtifacts/" + r, schemaPath: "#/properties/boundArtifacts/items/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
1074
- e === null ? e = [p] : e.push(p), a++;
1043
+ const n = { instancePath: i + "/boundArtifacts/" + r, schemaPath: "#/properties/boundArtifacts/items/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
1044
+ e === null ? e = [n] : e.push(n), a++;
1075
1045
  }
1076
1046
  }
1077
1047
  else {
1078
- const p = { instancePath: i + "/boundArtifacts/" + r, schemaPath: "#/properties/boundArtifacts/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1079
- e === null ? e = [p] : e.push(p), a++;
1048
+ const n = { instancePath: i + "/boundArtifacts/" + r, schemaPath: "#/properties/boundArtifacts/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1049
+ e === null ? e = [n] : e.push(n), a++;
1080
1050
  }
1081
1051
  }
1082
1052
  }
@@ -1092,48 +1062,49 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
1092
1062
  for (let r = 0; r < t; r++) {
1093
1063
  let o = s[r];
1094
1064
  if (o && typeof o == "object" && !Array.isArray(o)) {
1095
- if (o.text === void 0) {
1096
- const p = { instancePath: i + "/attribution/" + r, schemaPath: "#/$defs/attribution/required", keyword: "required", params: { missingProperty: "text" }, message: "must have required property 'text'" };
1097
- e === null ? e = [p] : e.push(p), a++;
1098
- }
1065
+ for (const n of T.required)
1066
+ if (o[n] === void 0) {
1067
+ const p = { instancePath: i + "/attribution/" + r, schemaPath: "#/$defs/attribution/required", keyword: "required", params: { missingProperty: n }, message: "must have required property '" + n + "'" };
1068
+ e === null ? e = [p] : e.push(p), a++;
1069
+ }
1099
1070
  if (o.text !== void 0) {
1100
- let p = o.text;
1101
- if (typeof p == "string") {
1102
- if (l(p) > 2048) {
1103
- const n = { instancePath: i + "/attribution/" + r + "/text", schemaPath: "#/$defs/attribution/properties/text/maxLength", keyword: "maxLength", params: { limit: 2048 }, message: "must NOT have more than 2048 characters" };
1104
- e === null ? e = [n] : e.push(n), a++;
1071
+ let n = o.text;
1072
+ if (typeof n == "string") {
1073
+ if (l(n) > 2048) {
1074
+ const p = { instancePath: i + "/attribution/" + r + "/text", schemaPath: "#/$defs/attribution/properties/text/maxLength", keyword: "maxLength", params: { limit: 2048 }, message: "must NOT have more than 2048 characters" };
1075
+ e === null ? e = [p] : e.push(p), a++;
1105
1076
  }
1106
- if (l(p) < 1) {
1107
- const n = { instancePath: i + "/attribution/" + r + "/text", schemaPath: "#/$defs/attribution/properties/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
1108
- e === null ? e = [n] : e.push(n), a++;
1077
+ if (l(n) < 1) {
1078
+ const p = { instancePath: i + "/attribution/" + r + "/text", schemaPath: "#/$defs/attribution/properties/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
1079
+ e === null ? e = [p] : e.push(p), a++;
1109
1080
  }
1110
1081
  }
1111
1082
  else {
1112
- const n = { instancePath: i + "/attribution/" + r + "/text", schemaPath: "#/$defs/attribution/properties/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1113
- e === null ? e = [n] : e.push(n), a++;
1083
+ const p = { instancePath: i + "/attribution/" + r + "/text", schemaPath: "#/$defs/attribution/properties/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1084
+ e === null ? e = [p] : e.push(p), a++;
1114
1085
  }
1115
1086
  }
1116
1087
  if (o.url !== void 0) {
1117
- let p = o.url;
1118
- if (typeof p == "string") {
1119
- if (l(p) > 4096) {
1120
- const n = { instancePath: i + "/attribution/" + r + "/url", schemaPath: "#/$defs/attribution/properties/url/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
1121
- e === null ? e = [n] : e.push(n), a++;
1088
+ let n = o.url;
1089
+ if (typeof n == "string") {
1090
+ if (l(n) > 4096) {
1091
+ const p = { instancePath: i + "/attribution/" + r + "/url", schemaPath: "#/$defs/attribution/properties/url/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
1092
+ e === null ? e = [p] : e.push(p), a++;
1122
1093
  }
1123
1094
  }
1124
1095
  else {
1125
- const n = { instancePath: i + "/attribution/" + r + "/url", schemaPath: "#/$defs/attribution/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1126
- e === null ? e = [n] : e.push(n), a++;
1096
+ const p = { instancePath: i + "/attribution/" + r + "/url", schemaPath: "#/$defs/attribution/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1097
+ e === null ? e = [p] : e.push(p), a++;
1127
1098
  }
1128
1099
  }
1129
1100
  if (o.sourceIds !== void 0) {
1130
- let p = o.sourceIds;
1131
- if (Array.isArray(p)) {
1132
- const n = p.length;
1133
- for (let d = 0; d < n; d++) {
1134
- let x = p[d];
1135
- if (typeof x == "string") {
1136
- if (l(x) > 256) {
1101
+ let n = o.sourceIds;
1102
+ if (Array.isArray(n)) {
1103
+ const p = n.length;
1104
+ for (let d = 0; d < p; d++) {
1105
+ let L = n[d];
1106
+ if (typeof L == "string") {
1107
+ if (l(L) > 256) {
1137
1108
  const P = { instancePath: i + "/attribution/" + r + "/sourceIds/" + d, schemaPath: "#/$defs/attribution/properties/sourceIds/items/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
1138
1109
  e === null ? e = [P] : e.push(P), a++;
1139
1110
  }
@@ -1145,18 +1116,18 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
1145
1116
  }
1146
1117
  }
1147
1118
  else {
1148
- const n = { instancePath: i + "/attribution/" + r + "/sourceIds", schemaPath: "#/$defs/attribution/properties/sourceIds/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1149
- e === null ? e = [n] : e.push(n), a++;
1119
+ const p = { instancePath: i + "/attribution/" + r + "/sourceIds", schemaPath: "#/$defs/attribution/properties/sourceIds/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1120
+ e === null ? e = [p] : e.push(p), a++;
1150
1121
  }
1151
1122
  }
1152
1123
  if (o.required !== void 0 && typeof o.required != "boolean") {
1153
- const p = { instancePath: i + "/attribution/" + r + "/required", schemaPath: "#/$defs/attribution/properties/required/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
1154
- e === null ? e = [p] : e.push(p), a++;
1124
+ const n = { instancePath: i + "/attribution/" + r + "/required", schemaPath: "#/$defs/attribution/properties/required/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
1125
+ e === null ? e = [n] : e.push(n), a++;
1155
1126
  }
1156
1127
  }
1157
1128
  else {
1158
- const p = { instancePath: i + "/attribution/" + r, schemaPath: "#/$defs/attribution/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1159
- e === null ? e = [p] : e.push(p), a++;
1129
+ const n = { instancePath: i + "/attribution/" + r, schemaPath: "#/$defs/attribution/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1130
+ e === null ? e = [n] : e.push(n), a++;
1160
1131
  }
1161
1132
  }
1162
1133
  }
@@ -1172,87 +1143,84 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
1172
1143
  for (let r = 0; r < t; r++) {
1173
1144
  let o = s[r];
1174
1145
  if (o && typeof o == "object" && !Array.isArray(o)) {
1175
- if (o.widgetId === void 0) {
1176
- const p = { instancePath: i + "/widgets/" + r, schemaPath: "#/$defs/widget/required", keyword: "required", params: { missingProperty: "widgetId" }, message: "must have required property 'widgetId'" };
1177
- e === null ? e = [p] : e.push(p), a++;
1178
- }
1179
- if (o.type === void 0) {
1180
- const p = { instancePath: i + "/widgets/" + r, schemaPath: "#/$defs/widget/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
1181
- e === null ? e = [p] : e.push(p), a++;
1182
- }
1146
+ for (const n of I.required)
1147
+ if (o[n] === void 0) {
1148
+ const p = { instancePath: i + "/widgets/" + r, schemaPath: "#/$defs/widget/required", keyword: "required", params: { missingProperty: n }, message: "must have required property '" + n + "'" };
1149
+ e === null ? e = [p] : e.push(p), a++;
1150
+ }
1183
1151
  if (o.widgetId !== void 0) {
1184
- let p = o.widgetId;
1185
- if (typeof p == "string") {
1186
- if (l(p) > 256) {
1187
- const n = { instancePath: i + "/widgets/" + r + "/widgetId", schemaPath: "#/$defs/widget/properties/widgetId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
1188
- e === null ? e = [n] : e.push(n), a++;
1152
+ let n = o.widgetId;
1153
+ if (typeof n == "string") {
1154
+ if (l(n) > 256) {
1155
+ const p = { instancePath: i + "/widgets/" + r + "/widgetId", schemaPath: "#/$defs/widget/properties/widgetId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
1156
+ e === null ? e = [p] : e.push(p), a++;
1189
1157
  }
1190
- if (l(p) < 1) {
1191
- const n = { instancePath: i + "/widgets/" + r + "/widgetId", schemaPath: "#/$defs/widget/properties/widgetId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
1192
- e === null ? e = [n] : e.push(n), a++;
1158
+ if (l(n) < 1) {
1159
+ const p = { instancePath: i + "/widgets/" + r + "/widgetId", schemaPath: "#/$defs/widget/properties/widgetId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
1160
+ e === null ? e = [p] : e.push(p), a++;
1193
1161
  }
1194
1162
  }
1195
1163
  else {
1196
- const n = { instancePath: i + "/widgets/" + r + "/widgetId", schemaPath: "#/$defs/widget/properties/widgetId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1197
- e === null ? e = [n] : e.push(n), a++;
1164
+ const p = { instancePath: i + "/widgets/" + r + "/widgetId", schemaPath: "#/$defs/widget/properties/widgetId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1165
+ e === null ? e = [p] : e.push(p), a++;
1198
1166
  }
1199
1167
  }
1200
1168
  if (o.type !== void 0) {
1201
- let p = o.type;
1202
- if (typeof p == "string") {
1203
- if (l(p) > 128) {
1204
- const n = { instancePath: i + "/widgets/" + r + "/type", schemaPath: "#/$defs/widget/properties/type/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
1205
- e === null ? e = [n] : e.push(n), a++;
1169
+ let n = o.type;
1170
+ if (typeof n == "string") {
1171
+ if (l(n) > 128) {
1172
+ const p = { instancePath: i + "/widgets/" + r + "/type", schemaPath: "#/$defs/widget/properties/type/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
1173
+ e === null ? e = [p] : e.push(p), a++;
1206
1174
  }
1207
- if (l(p) < 1) {
1208
- const n = { instancePath: i + "/widgets/" + r + "/type", schemaPath: "#/$defs/widget/properties/type/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
1209
- e === null ? e = [n] : e.push(n), a++;
1175
+ if (l(n) < 1) {
1176
+ const p = { instancePath: i + "/widgets/" + r + "/type", schemaPath: "#/$defs/widget/properties/type/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
1177
+ e === null ? e = [p] : e.push(p), a++;
1210
1178
  }
1211
1179
  }
1212
1180
  else {
1213
- const n = { instancePath: i + "/widgets/" + r + "/type", schemaPath: "#/$defs/widget/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1214
- e === null ? e = [n] : e.push(n), a++;
1181
+ const p = { instancePath: i + "/widgets/" + r + "/type", schemaPath: "#/$defs/widget/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1182
+ e === null ? e = [p] : e.push(p), a++;
1215
1183
  }
1216
1184
  }
1217
1185
  if (o.position !== void 0) {
1218
- let p = o.position;
1219
- if (typeof p != "string") {
1220
- const n = { instancePath: i + "/widgets/" + r + "/position", schemaPath: "#/$defs/widget/properties/position/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1221
- e === null ? e = [n] : e.push(n), a++;
1186
+ let n = o.position;
1187
+ if (typeof n != "string") {
1188
+ const p = { instancePath: i + "/widgets/" + r + "/position", schemaPath: "#/$defs/widget/properties/position/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1189
+ e === null ? e = [p] : e.push(p), a++;
1222
1190
  }
1223
- if (!(p === "top-left" || p === "top-right" || p === "bottom-left" || p === "bottom-right")) {
1224
- const n = { instancePath: i + "/widgets/" + r + "/position", schemaPath: "#/$defs/widget/properties/position/enum", keyword: "enum", params: { allowedValues: S.properties.position.enum }, message: "must be equal to one of the allowed values" };
1225
- e === null ? e = [n] : e.push(n), a++;
1191
+ if (!(n === "top-left" || n === "top-right" || n === "bottom-left" || n === "bottom-right")) {
1192
+ const p = { instancePath: i + "/widgets/" + r + "/position", schemaPath: "#/$defs/widget/properties/position/enum", keyword: "enum", params: { allowedValues: I.properties.position.enum }, message: "must be equal to one of the allowed values" };
1193
+ e === null ? e = [p] : e.push(p), a++;
1226
1194
  }
1227
1195
  }
1228
1196
  if (o.label !== void 0) {
1229
- let p = o.label;
1230
- if (typeof p == "string") {
1231
- if (l(p) > 512) {
1232
- const n = { instancePath: i + "/widgets/" + r + "/label", schemaPath: "#/$defs/widget/properties/label/maxLength", keyword: "maxLength", params: { limit: 512 }, message: "must NOT have more than 512 characters" };
1233
- e === null ? e = [n] : e.push(n), a++;
1197
+ let n = o.label;
1198
+ if (typeof n == "string") {
1199
+ if (l(n) > 512) {
1200
+ const p = { instancePath: i + "/widgets/" + r + "/label", schemaPath: "#/$defs/widget/properties/label/maxLength", keyword: "maxLength", params: { limit: 512 }, message: "must NOT have more than 512 characters" };
1201
+ e === null ? e = [p] : e.push(p), a++;
1234
1202
  }
1235
1203
  }
1236
1204
  else {
1237
- const n = { instancePath: i + "/widgets/" + r + "/label", schemaPath: "#/$defs/widget/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1238
- e === null ? e = [n] : e.push(n), a++;
1205
+ const p = { instancePath: i + "/widgets/" + r + "/label", schemaPath: "#/$defs/widget/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1206
+ e === null ? e = [p] : e.push(p), a++;
1239
1207
  }
1240
1208
  }
1241
1209
  if (o.visible !== void 0 && typeof o.visible != "boolean") {
1242
- const p = { instancePath: i + "/widgets/" + r + "/visible", schemaPath: "#/$defs/widget/properties/visible/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
1243
- e === null ? e = [p] : e.push(p), a++;
1210
+ const n = { instancePath: i + "/widgets/" + r + "/visible", schemaPath: "#/$defs/widget/properties/visible/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
1211
+ e === null ? e = [n] : e.push(n), a++;
1244
1212
  }
1245
1213
  if (o.config !== void 0) {
1246
- let p = o.config;
1247
- if (!(p && typeof p == "object" && !Array.isArray(p))) {
1248
- const n = { instancePath: i + "/widgets/" + r + "/config", schemaPath: "#/$defs/widget/properties/config/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1249
- e === null ? e = [n] : e.push(n), a++;
1214
+ let n = o.config;
1215
+ if (!(n && typeof n == "object" && !Array.isArray(n))) {
1216
+ const p = { instancePath: i + "/widgets/" + r + "/config", schemaPath: "#/$defs/widget/properties/config/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1217
+ e === null ? e = [p] : e.push(p), a++;
1250
1218
  }
1251
1219
  }
1252
1220
  }
1253
1221
  else {
1254
- const p = { instancePath: i + "/widgets/" + r, schemaPath: "#/$defs/widget/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1255
- e === null ? e = [p] : e.push(p), a++;
1222
+ const n = { instancePath: i + "/widgets/" + r, schemaPath: "#/$defs/widget/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1223
+ e === null ? e = [n] : e.push(n), a++;
1256
1224
  }
1257
1225
  }
1258
1226
  }
@@ -1268,59 +1236,60 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
1268
1236
  for (let r = 0; r < t; r++) {
1269
1237
  let o = s[r];
1270
1238
  if (o && typeof o == "object" && !Array.isArray(o)) {
1271
- if (o.name === void 0) {
1272
- const p = { instancePath: i + "/dependencies/" + r, schemaPath: "#/$defs/dependency/required", keyword: "required", params: { missingProperty: "name" }, message: "must have required property 'name'" };
1273
- e === null ? e = [p] : e.push(p), a++;
1274
- }
1239
+ for (const n of j.required)
1240
+ if (o[n] === void 0) {
1241
+ const p = { instancePath: i + "/dependencies/" + r, schemaPath: "#/$defs/dependency/required", keyword: "required", params: { missingProperty: n }, message: "must have required property '" + n + "'" };
1242
+ e === null ? e = [p] : e.push(p), a++;
1243
+ }
1275
1244
  if (o.name !== void 0) {
1276
- let p = o.name;
1277
- if (typeof p == "string") {
1278
- if (l(p) > 256) {
1279
- const n = { instancePath: i + "/dependencies/" + r + "/name", schemaPath: "#/$defs/dependency/properties/name/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
1280
- e === null ? e = [n] : e.push(n), a++;
1245
+ let n = o.name;
1246
+ if (typeof n == "string") {
1247
+ if (l(n) > 256) {
1248
+ const p = { instancePath: i + "/dependencies/" + r + "/name", schemaPath: "#/$defs/dependency/properties/name/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
1249
+ e === null ? e = [p] : e.push(p), a++;
1281
1250
  }
1282
- if (l(p) < 1) {
1283
- const n = { instancePath: i + "/dependencies/" + r + "/name", schemaPath: "#/$defs/dependency/properties/name/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
1284
- e === null ? e = [n] : e.push(n), a++;
1251
+ if (l(n) < 1) {
1252
+ const p = { instancePath: i + "/dependencies/" + r + "/name", schemaPath: "#/$defs/dependency/properties/name/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
1253
+ e === null ? e = [p] : e.push(p), a++;
1285
1254
  }
1286
1255
  }
1287
1256
  else {
1288
- const n = { instancePath: i + "/dependencies/" + r + "/name", schemaPath: "#/$defs/dependency/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1289
- e === null ? e = [n] : e.push(n), a++;
1257
+ const p = { instancePath: i + "/dependencies/" + r + "/name", schemaPath: "#/$defs/dependency/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1258
+ e === null ? e = [p] : e.push(p), a++;
1290
1259
  }
1291
1260
  }
1292
1261
  if (o.versionRange !== void 0) {
1293
- let p = o.versionRange;
1294
- if (typeof p == "string") {
1295
- if (l(p) > 128) {
1296
- const n = { instancePath: i + "/dependencies/" + r + "/versionRange", schemaPath: "#/$defs/dependency/properties/versionRange/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
1297
- e === null ? e = [n] : e.push(n), a++;
1262
+ let n = o.versionRange;
1263
+ if (typeof n == "string") {
1264
+ if (l(n) > 128) {
1265
+ const p = { instancePath: i + "/dependencies/" + r + "/versionRange", schemaPath: "#/$defs/dependency/properties/versionRange/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
1266
+ e === null ? e = [p] : e.push(p), a++;
1298
1267
  }
1299
1268
  }
1300
1269
  else {
1301
- const n = { instancePath: i + "/dependencies/" + r + "/versionRange", schemaPath: "#/$defs/dependency/properties/versionRange/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1302
- e === null ? e = [n] : e.push(n), a++;
1270
+ const p = { instancePath: i + "/dependencies/" + r + "/versionRange", schemaPath: "#/$defs/dependency/properties/versionRange/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1271
+ e === null ? e = [p] : e.push(p), a++;
1303
1272
  }
1304
1273
  }
1305
1274
  if (o.kind !== void 0) {
1306
- let p = o.kind;
1307
- if (typeof p != "string") {
1308
- const n = { instancePath: i + "/dependencies/" + r + "/kind", schemaPath: "#/$defs/dependency/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1309
- e === null ? e = [n] : e.push(n), a++;
1275
+ let n = o.kind;
1276
+ if (typeof n != "string") {
1277
+ const p = { instancePath: i + "/dependencies/" + r + "/kind", schemaPath: "#/$defs/dependency/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1278
+ e === null ? e = [p] : e.push(p), a++;
1310
1279
  }
1311
- if (!(p === "renderer" || p === "protocol" || p === "sdk" || p === "plugin" || p === "font" || p === "sprite" || p === "basemap")) {
1312
- const n = { instancePath: i + "/dependencies/" + r + "/kind", schemaPath: "#/$defs/dependency/properties/kind/enum", keyword: "enum", params: { allowedValues: q.properties.kind.enum }, message: "must be equal to one of the allowed values" };
1313
- e === null ? e = [n] : e.push(n), a++;
1280
+ if (!(n === "renderer" || n === "protocol" || n === "sdk" || n === "plugin" || n === "font" || n === "sprite" || n === "basemap")) {
1281
+ const p = { instancePath: i + "/dependencies/" + r + "/kind", schemaPath: "#/$defs/dependency/properties/kind/enum", keyword: "enum", params: { allowedValues: j.properties.kind.enum }, message: "must be equal to one of the allowed values" };
1282
+ e === null ? e = [p] : e.push(p), a++;
1314
1283
  }
1315
1284
  }
1316
1285
  if (o.optional !== void 0 && typeof o.optional != "boolean") {
1317
- const p = { instancePath: i + "/dependencies/" + r + "/optional", schemaPath: "#/$defs/dependency/properties/optional/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
1318
- e === null ? e = [p] : e.push(p), a++;
1286
+ const n = { instancePath: i + "/dependencies/" + r + "/optional", schemaPath: "#/$defs/dependency/properties/optional/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
1287
+ e === null ? e = [n] : e.push(n), a++;
1319
1288
  }
1320
1289
  }
1321
1290
  else {
1322
- const p = { instancePath: i + "/dependencies/" + r, schemaPath: "#/$defs/dependency/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1323
- e === null ? e = [p] : e.push(p), a++;
1291
+ const n = { instancePath: i + "/dependencies/" + r, schemaPath: "#/$defs/dependency/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1292
+ e === null ? e = [n] : e.push(n), a++;
1324
1293
  }
1325
1294
  }
1326
1295
  }
@@ -1376,16 +1345,16 @@ function k(m, { instancePath: i = "", parentData: h, parentDataProperty: c, root
1376
1345
  if (Array.isArray(t)) {
1377
1346
  const r = t.length;
1378
1347
  for (let o = 0; o < r; o++) {
1379
- let p = t[o];
1380
- if (typeof p == "string") {
1381
- if (l(p) > 256) {
1382
- const n = { instancePath: i + "/provenance/derivedFrom/" + o, schemaPath: "#/$defs/provenance/properties/derivedFrom/items/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
1383
- e === null ? e = [n] : e.push(n), a++;
1348
+ let n = t[o];
1349
+ if (typeof n == "string") {
1350
+ if (l(n) > 256) {
1351
+ const p = { instancePath: i + "/provenance/derivedFrom/" + o, schemaPath: "#/$defs/provenance/properties/derivedFrom/items/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
1352
+ e === null ? e = [p] : e.push(p), a++;
1384
1353
  }
1385
1354
  }
1386
1355
  else {
1387
- const n = { instancePath: i + "/provenance/derivedFrom/" + o, schemaPath: "#/$defs/provenance/properties/derivedFrom/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1388
- e === null ? e = [n] : e.push(n), a++;
1356
+ const p = { instancePath: i + "/provenance/derivedFrom/" + o, schemaPath: "#/$defs/provenance/properties/derivedFrom/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1357
+ e === null ? e = [p] : e.push(p), a++;
1389
1358
  }
1390
1359
  }
1391
1360
  }
@@ -1419,4 +1388,4 @@ else {
1419
1388
  e === null ? e = [s] : e.push(s), a++;
1420
1389
  } return k.errors = e, a === 0; }
1421
1390
  k.evaluated = { props: !0, dynamicProps: !1, dynamicItems: !1 };
1422
- export { O as default, B as validate };
1391
+ export { R as default, _ as validate };