@mapletip/data 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +52 -0
- package/README.md +209 -0
- package/client/contract-compatibility.d.mts +27 -0
- package/client/contract-compatibility.mjs +159 -0
- package/client/core.d.ts +150 -0
- package/client/core.js +359 -0
- package/client/equipment.d.ts +22 -0
- package/client/equipment.js +63 -0
- package/client/items.d.ts +22 -0
- package/client/items.js +63 -0
- package/client/media.d.ts +19 -0
- package/client/media.js +47 -0
- package/client/monster-client.d.ts +35 -0
- package/client/monster-client.js +155 -0
- package/client/monsters.d.ts +24 -0
- package/client/monsters.js +14 -0
- package/client/quests.d.ts +31 -0
- package/client/quests.js +124 -0
- package/client/release.d.ts +63 -0
- package/client/release.js +279 -0
- package/client/static-client.d.ts +40 -0
- package/client/static-client.js +44 -0
- package/client/static-domains.d.ts +48 -0
- package/client/static-domains.js +113 -0
- package/generated/contract-2-catalog-fact.d.ts +51 -0
- package/generated/equipment-catalog-2.d.ts +434 -0
- package/generated/equipment-catalog-2.validator.js +17 -0
- package/generated/equipment-detail-2.d.ts +350 -0
- package/generated/equipment-detail-2.validator.js +17 -0
- package/generated/equipment-evidence-pack-2.d.ts +243 -0
- package/generated/equipment-evidence-pack-2.validator.js +17 -0
- package/generated/equipment-pack-2.validator.js +17 -0
- package/generated/equipment-relationship-pack-2.d.ts +170 -0
- package/generated/equipment-relationship-pack-2.validator.js +17 -0
- package/generated/item-catalog-2.d.ts +366 -0
- package/generated/item-catalog-2.validator.js +17 -0
- package/generated/item-detail-2.d.ts +540 -0
- package/generated/item-detail-2.validator.js +17 -0
- package/generated/item-evidence-pack-2.d.ts +243 -0
- package/generated/item-evidence-pack-2.validator.js +17 -0
- package/generated/item-pack-2.validator.js +17 -0
- package/generated/item-relationship-pack-2.d.ts +170 -0
- package/generated/item-relationship-pack-2.validator.js +17 -0
- package/generated/media-catalog-2.d.ts +133 -0
- package/generated/media-catalog-2.validator.js +17 -0
- package/generated/media-detail-2.d.ts +125 -0
- package/generated/media-detail-2.validator.js +17 -0
- package/generated/media-pack-2.validator.js +17 -0
- package/generated/monster-catalog-2.d.ts +230 -0
- package/generated/monster-catalog-2.validator.js +17 -0
- package/generated/monster-catalog.d.ts +224 -0
- package/generated/monster-catalog.validator.js +1 -0
- package/generated/monster-core-relationship-pack-2.d.ts +208 -0
- package/generated/monster-core-relationship-pack-2.validator.js +17 -0
- package/generated/monster-detail-2.d.ts +372 -0
- package/generated/monster-detail-2.validator.js +17 -0
- package/generated/monster-detail.d.ts +799 -0
- package/generated/monster-detail.validator.js +17 -0
- package/generated/monster-evidence-pack-2.d.ts +378 -0
- package/generated/monster-evidence-pack-2.validator.js +17 -0
- package/generated/monster-evidence-pack.d.ts +269 -0
- package/generated/monster-evidence-pack.validator.js +17 -0
- package/generated/monster-location-pack-2.validator.js +1 -0
- package/generated/monster-pack-2.validator.js +17 -0
- package/generated/monster-pack.validator.js +17 -0
- package/generated/monster-relationship-pack.d.ts +126 -0
- package/generated/monster-relationship-pack.validator.js +1 -0
- package/generated/product-manifest.d.ts +188 -0
- package/generated/product-manifest.validator.js +1 -0
- package/generated/quest-auxiliary-pack-2.d.ts +391 -0
- package/generated/quest-auxiliary-pack-2.validator.js +17 -0
- package/generated/quest-browse-pack-2.d.ts +353 -0
- package/generated/quest-browse-pack-2.validator.js +17 -0
- package/generated/quest-catalog-2.d.ts +501 -0
- package/generated/quest-catalog-2.validator.js +17 -0
- package/generated/quest-evidence-pack-2.d.ts +269 -0
- package/generated/quest-evidence-pack-2.validator.js +17 -0
- package/generated/quest-pack-2.d.ts +410 -0
- package/generated/quest-pack-2.validator.js +17 -0
- package/generated/quest-relationship-pack-2.d.ts +868 -0
- package/generated/quest-relationship-pack-2.validator.js +17 -0
- package/generated/release-build-index.d.ts +42 -0
- package/generated/release-build-index.validator.js +1 -0
- package/generated/release-manifest.d.ts +24 -0
- package/generated/release-manifest.validator.js +1 -0
- package/generated/release-pin.d.ts +12 -0
- package/generated/release-pin.validator.js +1 -0
- package/package.json +155 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";export const validate = validate20;export default validate20;const schema31 = {"$defs":{"AssociationState":{"description":"Canonical association state supplied by the B1 normalizer.","enum":["resolved","unresolved","ambiguous","unknown","unsupported"],"type":"string"},"BuildScope":{"description":"Build scope specifying the game family and concrete build identity.","properties":{"build_id":{"description":"Exact build identity (e.g., 'gms-v83', 'cw-cot2').","type":"string"},"family_id":{"description":"Family identity (e.g., 'gms', 'classic-world').","type":"string"}},"required":["family_id","build_id"],"type":"object"},"CatalogueMembership":{"description":"Independent catalogue membership state.","enum":["present","verified-absent","unknown"],"type":"string"},"Coverage":{"description":"Universal completeness and coverage indicator (contracts.md § Shared semantic shapes).","oneOf":[{"const":"complete","description":"100% of upstream source records represented.","type":"string"},{"const":"partial","description":"Bounded or deliberate subset.","type":"string"},{"const":"unknown","description":"Upstream source completeness cannot be certified.","type":"string"},{"const":"unsupported","description":"Domain or capability not provided by upstream.","type":"string"}]},"DropEvidenceAttribution":{"description":"One source `MonsterBook` assertion retained on a deduplicated CW pair.","properties":{"attribution":{"type":"string"},"confidence":{"$ref":"#/$defs/HistoricalDropConfidence"},"crosswalkInputSha256":{"type":"string"},"evidenceKey":{"type":"string"},"evidenceKind":{"$ref":"#/$defs/DropEvidenceKind"},"propertyPath":{"type":"string"},"reviewReference":{"type":"string"},"sourceBuild":{"type":"string"},"sourceIdentity":{"$ref":"#/$defs/SourceIdentity"},"sourceInputSha256":{"type":"string"},"sourceRecordKey":{"type":"string"},"transform":{"type":"string"}},"required":["evidenceKey","evidenceKind","sourceBuild","sourceIdentity","sourceRecordKey","propertyPath","transform","confidence","attribution","reviewReference","sourceInputSha256","crosswalkInputSha256"],"type":"object"},"DropEvidenceKind":{"description":"Kind of evidence attribution attached to a Monster drop pair.","enum":["native","supplemental-historical"],"type":"string"},"EntityRef":{"allOf":[{"if":{"properties":{"state":{"const":"resolved"}}},"then":{"properties":{"associationState":{"const":"resolved"},"candidateCount":{"anyOf":[{"const":1},{"type":"null"}]},"candidateCoverage":{"const":"complete"},"key":{"minLength":1,"type":"string"}},"required":["key"]}},{"if":{"properties":{"state":{"const":"ambiguous"}}},"then":{"properties":{"associationState":{"const":"ambiguous"},"candidateCount":{"minimum":2,"type":"integer"},"key":{"type":"null"},"namespace":{"type":"null"}},"required":["candidateCount"]}},{"if":{"properties":{"state":{"const":"unknown"}}},"then":{"properties":{"associationState":{"const":"unknown"},"key":{"type":"null"},"namespace":{"type":"null"}}}},{"if":{"properties":{"state":{"const":"unresolved"}}},"then":{"properties":{"associationState":{"const":"unresolved"},"key":{"type":"null"}}}},{"if":{"properties":{"state":{"const":"absent"}}},"then":{"properties":{"associationState":{"const":"unresolved"},"candidateCount":{"const":0},"candidateCoverage":{"const":"complete"},"catalogueMembership":{"const":"verified-absent"},"key":{"type":"null"},"typedVersion":{"const":"unavailable"}},"required":["candidateCount"]}},{"if":{"properties":{"state":{"const":"unsupported"}}},"then":{"properties":{"associationState":{"const":"unsupported"},"key":{"type":"null"}}}},{"if":{"properties":{"namespace":{"const":"wz.character"},"state":{"const":"resolved"}},"required":["state","namespace"]},"then":{"properties":{"kind":{"const":"equipment"}}}},{"if":{"properties":{"namespace":{"const":"wz.item"},"state":{"const":"resolved"}},"required":["state","namespace"]},"then":{"properties":{"kind":{"const":"item"}}}},{"if":{"properties":{"namespace":{"const":"wz.character"}},"required":["namespace","sourceIdentity"]},"then":{"properties":{"sourceIdentity":{"properties":{"namespace":{"anyOf":[{"const":"wz.character"},{"type":"null"}]}},"type":"object"}}}},{"if":{"properties":{"namespace":{"const":"wz.item"}},"required":["namespace","sourceIdentity"]},"then":{"properties":{"sourceIdentity":{"properties":{"namespace":{"anyOf":[{"const":"wz.item"},{"type":"null"}]}},"type":"object"}}}},{"if":{"properties":{"namespace":{"const":"wz.mob"}},"required":["namespace","sourceIdentity"]},"then":{"properties":{"sourceIdentity":{"properties":{"namespace":{"anyOf":[{"const":"wz.mob"},{"type":"null"}]}},"type":"object"}}}},{"if":{"properties":{"namespace":{"const":"wz.map"}},"required":["namespace","sourceIdentity"]},"then":{"properties":{"sourceIdentity":{"properties":{"namespace":{"anyOf":[{"const":"wz.map"},{"type":"null"}]}},"type":"object"}}}},{"if":{"properties":{"namespace":{"const":"wz.quest"}},"required":["namespace","sourceIdentity"]},"then":{"properties":{"sourceIdentity":{"properties":{"namespace":{"anyOf":[{"const":"wz.quest"},{"type":"null"}]}},"type":"object"}}}},{"if":{"properties":{"namespace":{"const":"wz.npc"}},"required":["namespace","sourceIdentity"]},"then":{"properties":{"sourceIdentity":{"properties":{"namespace":{"anyOf":[{"const":"wz.npc"},{"type":"null"}]}},"type":"object"}}}},{"if":{"properties":{"namespace":{"const":"wz.skill"}},"required":["namespace","sourceIdentity"]},"then":{"properties":{"sourceIdentity":{"properties":{"namespace":{"anyOf":[{"const":"wz.skill"},{"type":"null"}]}},"type":"object"}}}},{"if":{"properties":{"namespace":{"const":"wz.reactor"}},"required":["namespace","sourceIdentity"]},"then":{"properties":{"sourceIdentity":{"properties":{"namespace":{"anyOf":[{"const":"wz.reactor"},{"type":"null"}]}},"type":"object"}}}},{"if":{"properties":{"namespace":{"const":"wz.job"}},"required":["namespace","sourceIdentity"]},"then":{"properties":{"sourceIdentity":{"properties":{"namespace":{"anyOf":[{"const":"wz.job"},{"type":"null"}]}},"type":"object"}}}},{"if":{"properties":{"namespace":{"const":"wz.mobskill"}},"required":["namespace","sourceIdentity"]},"then":{"properties":{"sourceIdentity":{"properties":{"namespace":{"anyOf":[{"const":"wz.mobskill"},{"type":"null"}]}},"type":"object"}}}},{"if":{"properties":{"sourceIdentity":{"properties":{"namespace":{"const":"wz.character"}},"required":["namespace"],"type":"object"},"state":{"const":"resolved"}},"required":["state","sourceIdentity"]},"then":{"properties":{"kind":{"const":"equipment"}}}},{"if":{"properties":{"sourceIdentity":{"properties":{"namespace":{"const":"wz.item"}},"required":["namespace"],"type":"object"},"state":{"const":"resolved"}},"required":["state","sourceIdentity"]},"then":{"properties":{"kind":{"const":"item"}}}}],"description":"B2 public reference carrying independent canonical semantic dimensions.\n\nThis is intentionally a data contract, not a resolver. The B1 normalizer\nsupplies the association, membership, typed-version and coverage facts;\nthe canonical connected-slice reader only projects them.","properties":{"associationState":{"$ref":"#/$defs/AssociationState"},"candidateCount":{"format":"uint","maximum":9007199254740991,"minimum":0,"type":["integer","null"]},"candidateCoverage":{"$ref":"#/$defs/Coverage"},"catalogueMembership":{"$ref":"#/$defs/CatalogueMembership"},"evidenceKey":{"type":["string","null"]},"key":{"type":["string","null"]},"kind":{"minLength":1,"type":"string"},"namespace":{"type":["string","null"]},"productCapability":{"$ref":"#/$defs/ProductCapability"},"sourceIdentity":{"$ref":"#/$defs/SourceIdentity"},"state":{"$ref":"#/$defs/RefState"},"typedVersion":{"$ref":"#/$defs/TypedVersionState"}},"required":["state","kind","sourceIdentity","associationState","catalogueMembership","typedVersion","candidateCoverage","productCapability"],"type":"object"},"FactState":{"description":"State-tagged fact representation according to contracts.md § Shared semantic shapes.","oneOf":[{"description":"Fact is positively known and observed.","properties":{"state":{"const":"known","type":"string"},"value":{"description":"Observed value.","type":"string"}},"required":["state","value"],"type":"object"},{"description":"Fact is unobserved or incomplete in upstream source.","properties":{"reason":{"description":"Reason for absence if known.","type":["string","null"]},"state":{"const":"unknown","type":"string"}},"required":["state"],"type":"object"},{"description":"Upstream source capability is unsupported.","properties":{"capability":{"description":"Name of the unsupported capability.","type":"string"},"state":{"const":"unsupported","type":"string"}},"required":["state","capability"],"type":"object"}]},"FactState2":{"description":"State-tagged fact representation according to contracts.md § Shared semantic shapes.","oneOf":[{"description":"Fact is positively known and observed.","properties":{"state":{"const":"known","type":"string"},"value":{"$ref":"#/$defs/SafeInt64","description":"Observed value."}},"required":["state","value"],"type":"object"},{"description":"Fact is unobserved or incomplete in upstream source.","properties":{"reason":{"description":"Reason for absence if known.","type":["string","null"]},"state":{"const":"unknown","type":"string"}},"required":["state"],"type":"object"},{"description":"Upstream source capability is unsupported.","properties":{"capability":{"description":"Name of the unsupported capability.","type":"string"},"state":{"const":"unsupported","type":"string"}},"required":["state","capability"],"type":"object"}]},"FactState3":{"description":"State-tagged fact representation according to contracts.md § Shared semantic shapes.","oneOf":[{"description":"Fact is positively known and observed.","properties":{"state":{"const":"known","type":"string"},"value":{"description":"Observed value.","type":"boolean"}},"required":["state","value"],"type":"object"},{"description":"Fact is unobserved or incomplete in upstream source.","properties":{"reason":{"description":"Reason for absence if known.","type":["string","null"]},"state":{"const":"unknown","type":"string"}},"required":["state"],"type":"object"},{"description":"Upstream source capability is unsupported.","properties":{"capability":{"description":"Name of the unsupported capability.","type":"string"},"state":{"const":"unsupported","type":"string"}},"required":["state","capability"],"type":"object"}]},"HistoricalDropConfidence":{"description":"Confidence in a historical assertion as evidence about a target build.","enum":["maybe"],"type":"string"},"HistoricalEvidenceAttribution":{"description":"Group of source assertions supporting one exact public Monster/item pair.","properties":{"assertions":{"items":{"$ref":"#/$defs/DropEvidenceAttribution"},"type":"array"}},"required":["assertions"],"type":"object"},"MonsterDropEntry":{"description":"Reciprocal item drop association for a monster.","properties":{"category":{"description":"Equipment slot or item category label.","type":["string","null"]},"conditions":{"description":"Drop gating conditions (e.g. quest ID or party condition).","type":["string","null"]},"evidenceAttribution":{"anyOf":[{"$ref":"#/$defs/HistoricalEvidenceAttribution"},{"type":"null"}],"description":"Optional typed attribution for supplemental historical assertions.\nNative evidence fields above remain the source observation as admitted."},"evidenceId":{"description":"Stable source-derived occurrence key; never a SQLite surrogate ID.","type":"string"},"evidenceSource":{"description":"Evidence source identifier (e.g. 'wz-monsterbook', 'cw-historical-reviewed').","type":"string"},"itemClass":{"description":"Item classification namespace (e.g. 'Equip', 'Consume', 'Etc').","type":["string","null"]},"itemName":{"description":"Preserved item display name if known.","type":["string","null"]},"itemRef":{"$ref":"#/$defs/EntityRef","description":"Resolved or unresolved entity reference to the dropped item."},"ordinal":{"description":"Literal ordinal within the source evidence list.","format":"uint","maximum":9007199254740991,"minimum":0,"type":"integer"},"quantityMax":{"anyOf":[{"$ref":"#/$defs/SafeInt64"},{"type":"null"}],"description":"Maximum quantity dropped."},"quantityMin":{"anyOf":[{"$ref":"#/$defs/SafeInt64"},{"type":"null"}],"description":"Minimum quantity dropped."},"rate":{"description":"Exact nullable `monster_drop_evidence.rate` value if stated by source;\nthe normalizer does not establish a probability scale here.","format":"double","type":["number","null"]},"rateDenominator":{"anyOf":[{"$ref":"#/$defs/SafeInt64"},{"type":"null"}],"description":"Exact nullable `monster_drop_evidence.rate_denominator` value."},"sourcePath":{"description":"Exact source path for this evidence occurrence.","type":"string"}},"required":["evidenceId","evidenceSource","sourcePath","ordinal","itemRef"],"type":"object"},"MonsterQuestEntry":{"description":"Quest requirement association for a monster (kill objective).","properties":{"countGroupId":{"description":"Quest count group ID if this kill objective belongs to a shared defeat pool.","type":["string","null"]},"killCount":{"anyOf":[{"$ref":"#/$defs/SafeInt64"},{"type":"null"}],"description":"Required kill quota to complete the objective."},"memberOrdinal":{"description":"Literal count-group member ordinal when this requirement fans out.","format":"uint","maximum":9007199254740991,"minimum":0,"type":["integer","null"]},"occurrenceKey":{"description":"Stable source-derived requirement/member occurrence key.","type":"string"},"phase":{"$ref":"#/$defs/Nullable_string","description":"Canonical Quest phase. `null` preserves the normalizer's unknown phase\nfor a state whose interpreted `phase` column is NULL."},"questName":{"description":"Localized quest name.","type":["string","null"]},"questRef":{"$ref":"#/$defs/EntityRef","description":"Resolved or unresolved reference to the quest entity."},"questSourceId":{"description":"Upstream quest source ID.","type":"string"},"requirementKind":{"description":"Normalizer-owned requirement kind (for example `mob-kill`).","type":"string"},"requirementOrdinal":{"description":"Literal requirement ordinal within the Quest state/kind section.","format":"uint","maximum":9007199254740991,"minimum":0,"type":"integer"},"sourcePath":{"description":"Exact source path for the requirement occurrence.","type":"string"},"stateKey":{"$ref":"#/$defs/SafeInt64","description":"Exact Quest state discriminator from the normalized requirement."}},"required":["occurrenceKey","stateKey","requirementKind","questRef","questSourceId","sourcePath","requirementOrdinal","phase"],"type":"object"},"MonsterStats":{"description":"Monster combat and gameplay statistics with `SafeInt64` guarantees.","properties":{"acc":{"$ref":"#/$defs/FactState2","description":"Accuracy rating."},"boss":{"$ref":"#/$defs/FactState3","description":"Whether monster is classified as a boss."},"eva":{"$ref":"#/$defs/FactState2","description":"Evasion rating."},"exp":{"$ref":"#/$defs/FactState2","description":"Exact `monster_version.exp` source value."},"hp":{"$ref":"#/$defs/FactState2","description":"Exact `monster_version.max_hp` source value."},"level":{"$ref":"#/$defs/FactState2","description":"Exact `monster_version.level` source value."},"maDamage":{"$ref":"#/$defs/FactState2","description":"Exact `monster_version.ma_damage` source value."},"mdDamage":{"$ref":"#/$defs/FactState2","description":"Exact `monster_version.md_damage` source value."},"mp":{"$ref":"#/$defs/FactState2","description":"Exact `monster_version.max_mp` source value."},"paDamage":{"$ref":"#/$defs/FactState2","description":"Exact `monster_version.pa_damage` source value; gameplay meaning is\nowned by the normalizer, not inferred here."},"pdDamage":{"$ref":"#/$defs/FactState2","description":"Exact `monster_version.pd_damage` source value."},"pushed":{"$ref":"#/$defs/FactState2","description":"Exact `monster_version.pushed` source value."},"speed":{"$ref":"#/$defs/FactState2","description":"Exact `monster_version.speed` source value."},"undead":{"$ref":"#/$defs/FactState3","description":"Canonical 0/1 undead flag; unsupported raw codes remain unknown."}},"required":["level","hp","mp","exp","paDamage","pdDamage","maDamage","mdDamage","acc","eva","pushed","speed","boss","undead"],"type":"object"},"Nullable_string":{"type":["string","null"]},"PageDescriptor":{"description":"Page descriptor for paged relationship or evidence records.","properties":{"count":{"description":"Number of items in this page.","format":"uint","maximum":9007199254740991,"minimum":0,"type":"integer"},"recordKey":{"description":"Bounded record key for direct fetch.","type":"string"},"recordKind":{"description":"Record kind ('relationships' or 'evidence').","type":"string"}},"required":["recordKind","recordKey","count"],"type":"object"},"PagedCollection":{"description":"Paged collection descriptor whose physical packs are bounded by the\nselected `PackSizePolicy`.","properties":{"coverage":{"$ref":"#/$defs/Coverage","description":"Completeness of the collection."},"mapCount":{"description":"Distinct target count if different from observed count.","format":"uint","maximum":9007199254740991,"minimum":0,"type":["integer","null"]},"observedCount":{"description":"Total observed count across all occurrences.","format":"uint","maximum":9007199254740991,"minimum":0,"type":"integer"},"pages":{"description":"Sorted array of page descriptors.","items":{"$ref":"#/$defs/PageDescriptor"},"type":"array"}},"required":["coverage","observedCount","pages"],"type":"object"},"ProductCapability":{"description":"Independent public product capability state.","enum":["implemented","not-implemented","source-unsupported"],"type":"string"},"RefState":{"description":"Projection state for a public reference.","enum":["resolved","unresolved","ambiguous","unknown","absent","unsupported"],"type":"string"},"SafeInt64":{"format":"int64","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"SourceIdentity":{"description":"Upstream source identity coordinates.","properties":{"discriminator":{"description":"Explicit source discriminator when one ID has multiple records (empty or omitted when unused).","type":["string","null"]},"id":{"description":"Exact upstream source identifier (e.g., '0100100').","minLength":1,"type":"string"},"namespace":{"description":"Source namespace (e.g., 'wz.mob', 'wz.item', 'wz.map'). None when missing or ambiguous.","type":["string","null"]}},"required":["id"],"type":"object"},"TypedVersionState":{"description":"Independent typed-version availability state.","enum":["available","unavailable","unknown"],"type":"string"}},"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Monster detail for the declared partial diagnostic scope.","properties":{"contractVersion":{"description":"Wire contract version ('major.minor').","pattern":"^1\\.(0|[1-9][0-9]*)$","type":"string"},"dropPages":{"anyOf":[{"$ref":"#/$defs/PagedCollection"},{"type":"null"}],"description":"Lazy pages used when the inline evidence collection would exceed the\nselected pack target. The inline vector is empty in that mode."},"drops":{"description":"Dropped items and evidence links.","items":{"$ref":"#/$defs/MonsterDropEntry"},"type":"array"},"elements":{"description":"Elemental affinity descriptors ('F:weak', 'I:immune', etc.).","items":{"type":"string"},"type":"array"},"format":{"const":"mapletip.monster-detail","description":"Format identifier ('mapletip.monster-detail').","type":"string"},"key":{"description":"Deterministic public entity key ('monster-<64 lowercase hex>').","type":"string"},"locations":{"$ref":"#/$defs/PagedCollection","description":"Field spawn occurrences and location pagination."},"name":{"$ref":"#/$defs/FactState","description":"Monster localized display name."},"questPages":{"anyOf":[{"$ref":"#/$defs/PagedCollection"},{"type":"null"}],"description":"Lazy pages used when the inline Quest collection would exceed the\nselected pack target. The inline vector is empty in that mode."},"quests":{"description":"Associated quest kill objectives.","items":{"$ref":"#/$defs/MonsterQuestEntry"},"type":"array"},"scope":{"$ref":"#/$defs/BuildScope","description":"Build scope."},"sourceIdentity":{"$ref":"#/$defs/SourceIdentity","description":"Upstream source coordinates."},"stats":{"$ref":"#/$defs/MonsterStats","description":"Combat and gameplay statistics."}},"required":["format","contractVersion","scope","key","sourceIdentity","name","stats","locations","drops","quests","elements"],"title":"MonsterDetailRecord","type":"object"};const schema52 = {"description":"State-tagged fact representation according to contracts.md § Shared semantic shapes.","oneOf":[{"description":"Fact is positively known and observed.","properties":{"state":{"const":"known","type":"string"},"value":{"description":"Observed value.","type":"string"}},"required":["state","value"],"type":"object"},{"description":"Fact is unobserved or incomplete in upstream source.","properties":{"reason":{"description":"Reason for absence if known.","type":["string","null"]},"state":{"const":"unknown","type":"string"}},"required":["state"],"type":"object"},{"description":"Upstream source capability is unsupported.","properties":{"capability":{"description":"Name of the unsupported capability.","type":"string"},"state":{"const":"unsupported","type":"string"}},"required":["state","capability"],"type":"object"}]};const schema57 = {"description":"Build scope specifying the game family and concrete build identity.","properties":{"build_id":{"description":"Exact build identity (e.g., 'gms-v83', 'cw-cot2').","type":"string"},"family_id":{"description":"Family identity (e.g., 'gms', 'classic-world').","type":"string"}},"required":["family_id","build_id"],"type":"object"};const schema40 = {"description":"Upstream source identity coordinates.","properties":{"discriminator":{"description":"Explicit source discriminator when one ID has multiple records (empty or omitted when unused).","type":["string","null"]},"id":{"description":"Exact upstream source identifier (e.g., '0100100').","minLength":1,"type":"string"},"namespace":{"description":"Source namespace (e.g., 'wz.mob', 'wz.item', 'wz.map'). None when missing or ambiguous.","type":["string","null"]}},"required":["id"],"type":"object"};const pattern4 = new RegExp("^1\\.(0|[1-9][0-9]*)$", "u");const schema32 = {"description":"Paged collection descriptor whose physical packs are bounded by the\nselected `PackSizePolicy`.","properties":{"coverage":{"$ref":"#/$defs/Coverage","description":"Completeness of the collection."},"mapCount":{"description":"Distinct target count if different from observed count.","format":"uint","maximum":9007199254740991,"minimum":0,"type":["integer","null"]},"observedCount":{"description":"Total observed count across all occurrences.","format":"uint","maximum":9007199254740991,"minimum":0,"type":"integer"},"pages":{"description":"Sorted array of page descriptors.","items":{"$ref":"#/$defs/PageDescriptor"},"type":"array"}},"required":["coverage","observedCount","pages"],"type":"object"};const schema33 = {"description":"Universal completeness and coverage indicator (contracts.md § Shared semantic shapes).","oneOf":[{"const":"complete","description":"100% of upstream source records represented.","type":"string"},{"const":"partial","description":"Bounded or deliberate subset.","type":"string"},{"const":"unknown","description":"Upstream source completeness cannot be certified.","type":"string"},{"const":"unsupported","description":"Domain or capability not provided by upstream.","type":"string"}]};const schema34 = {"description":"Page descriptor for paged relationship or evidence records.","properties":{"count":{"description":"Number of items in this page.","format":"uint","maximum":9007199254740991,"minimum":0,"type":"integer"},"recordKey":{"description":"Bounded record key for direct fetch.","type":"string"},"recordKind":{"description":"Record kind ('relationships' or 'evidence').","type":"string"}},"required":["recordKind","recordKey","count"],"type":"object"};function validate21(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate21.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.coverage === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "coverage"},message:"must have required property '"+"coverage"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.observedCount === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "observedCount"},message:"must have required property '"+"observedCount"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.pages === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "pages"},message:"must have required property '"+"pages"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.coverage !== undefined){let data0 = data.coverage;const _errs3 = errors;let valid2 = false;let passing0 = null;const _errs4 = errors;if(typeof data0 !== "string"){const err3 = {instancePath:instancePath+"/coverage",schemaPath:"#/$defs/Coverage/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if("complete" !== data0){const err4 = {instancePath:instancePath+"/coverage",schemaPath:"#/$defs/Coverage/oneOf/0/const",keyword:"const",params:{allowedValue: "complete"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid0 = _errs4 === errors;if(_valid0){valid2 = true;passing0 = 0;}const _errs6 = errors;if(typeof data0 !== "string"){const err5 = {instancePath:instancePath+"/coverage",schemaPath:"#/$defs/Coverage/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if("partial" !== data0){const err6 = {instancePath:instancePath+"/coverage",schemaPath:"#/$defs/Coverage/oneOf/1/const",keyword:"const",params:{allowedValue: "partial"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}var _valid0 = _errs6 === errors;if(_valid0 && valid2){valid2 = false;passing0 = [passing0, 1];}else {if(_valid0){valid2 = true;passing0 = 1;}const _errs8 = errors;if(typeof data0 !== "string"){const err7 = {instancePath:instancePath+"/coverage",schemaPath:"#/$defs/Coverage/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if("unknown" !== data0){const err8 = {instancePath:instancePath+"/coverage",schemaPath:"#/$defs/Coverage/oneOf/2/const",keyword:"const",params:{allowedValue: "unknown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}var _valid0 = _errs8 === errors;if(_valid0 && valid2){valid2 = false;passing0 = [passing0, 2];}else {if(_valid0){valid2 = true;passing0 = 2;}const _errs10 = errors;if(typeof data0 !== "string"){const err9 = {instancePath:instancePath+"/coverage",schemaPath:"#/$defs/Coverage/oneOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("unsupported" !== data0){const err10 = {instancePath:instancePath+"/coverage",schemaPath:"#/$defs/Coverage/oneOf/3/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid0 = _errs10 === errors;if(_valid0 && valid2){valid2 = false;passing0 = [passing0, 3];}else {if(_valid0){valid2 = true;passing0 = 3;}}}}if(!valid2){const err11 = {instancePath:instancePath+"/coverage",schemaPath:"#/$defs/Coverage/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs3;if(vErrors !== null){if(_errs3){vErrors.length = _errs3;}else {vErrors = null;}}}}if(data.mapCount !== undefined){let data1 = data.mapCount;if((!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))) && (data1 !== null)){const err12 = {instancePath:instancePath+"/mapCount",schemaPath:"#/properties/mapCount/type",keyword:"type",params:{type: schema32.properties.mapCount.type},message:"must be integer,null"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if((typeof data1 == "number") && (isFinite(data1))){if(data1 > 9007199254740991 || isNaN(data1)){const err13 = {instancePath:instancePath+"/mapCount",schemaPath:"#/properties/mapCount/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data1 < 0 || isNaN(data1)){const err14 = {instancePath:instancePath+"/mapCount",schemaPath:"#/properties/mapCount/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}if(data.observedCount !== undefined){let data2 = data.observedCount;if(!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))){const err15 = {instancePath:instancePath+"/observedCount",schemaPath:"#/properties/observedCount/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if((typeof data2 == "number") && (isFinite(data2))){if(data2 > 9007199254740991 || isNaN(data2)){const err16 = {instancePath:instancePath+"/observedCount",schemaPath:"#/properties/observedCount/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data2 < 0 || isNaN(data2)){const err17 = {instancePath:instancePath+"/observedCount",schemaPath:"#/properties/observedCount/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}if(data.pages !== undefined){let data3 = data.pages;if(Array.isArray(data3)){const len0 = data3.length;for(let i0=0; i0<len0; i0++){let data4 = data3[i0];if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.recordKind === undefined){const err18 = {instancePath:instancePath+"/pages/" + i0,schemaPath:"#/$defs/PageDescriptor/required",keyword:"required",params:{missingProperty: "recordKind"},message:"must have required property '"+"recordKind"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data4.recordKey === undefined){const err19 = {instancePath:instancePath+"/pages/" + i0,schemaPath:"#/$defs/PageDescriptor/required",keyword:"required",params:{missingProperty: "recordKey"},message:"must have required property '"+"recordKey"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data4.count === undefined){const err20 = {instancePath:instancePath+"/pages/" + i0,schemaPath:"#/$defs/PageDescriptor/required",keyword:"required",params:{missingProperty: "count"},message:"must have required property '"+"count"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data4.count !== undefined){let data5 = data4.count;if(!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))){const err21 = {instancePath:instancePath+"/pages/" + i0+"/count",schemaPath:"#/$defs/PageDescriptor/properties/count/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if((typeof data5 == "number") && (isFinite(data5))){if(data5 > 9007199254740991 || isNaN(data5)){const err22 = {instancePath:instancePath+"/pages/" + i0+"/count",schemaPath:"#/$defs/PageDescriptor/properties/count/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data5 < 0 || isNaN(data5)){const err23 = {instancePath:instancePath+"/pages/" + i0+"/count",schemaPath:"#/$defs/PageDescriptor/properties/count/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}if(data4.recordKey !== undefined){if(typeof data4.recordKey !== "string"){const err24 = {instancePath:instancePath+"/pages/" + i0+"/recordKey",schemaPath:"#/$defs/PageDescriptor/properties/recordKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data4.recordKind !== undefined){if(typeof data4.recordKind !== "string"){const err25 = {instancePath:instancePath+"/pages/" + i0+"/recordKind",schemaPath:"#/$defs/PageDescriptor/properties/recordKind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}}else {const err26 = {instancePath:instancePath+"/pages/" + i0,schemaPath:"#/$defs/PageDescriptor/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {instancePath:instancePath+"/pages",schemaPath:"#/properties/pages/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}else {const err28 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}validate21.errors = vErrors;return errors === 0;}validate21.evaluated = {"props":{"coverage":true,"mapCount":true,"observedCount":true,"pages":true},"dynamicProps":false,"dynamicItems":false};const schema35 = {"description":"Reciprocal item drop association for a monster.","properties":{"category":{"description":"Equipment slot or item category label.","type":["string","null"]},"conditions":{"description":"Drop gating conditions (e.g. quest ID or party condition).","type":["string","null"]},"evidenceAttribution":{"anyOf":[{"$ref":"#/$defs/HistoricalEvidenceAttribution"},{"type":"null"}],"description":"Optional typed attribution for supplemental historical assertions.\nNative evidence fields above remain the source observation as admitted."},"evidenceId":{"description":"Stable source-derived occurrence key; never a SQLite surrogate ID.","type":"string"},"evidenceSource":{"description":"Evidence source identifier (e.g. 'wz-monsterbook', 'cw-historical-reviewed').","type":"string"},"itemClass":{"description":"Item classification namespace (e.g. 'Equip', 'Consume', 'Etc').","type":["string","null"]},"itemName":{"description":"Preserved item display name if known.","type":["string","null"]},"itemRef":{"$ref":"#/$defs/EntityRef","description":"Resolved or unresolved entity reference to the dropped item."},"ordinal":{"description":"Literal ordinal within the source evidence list.","format":"uint","maximum":9007199254740991,"minimum":0,"type":"integer"},"quantityMax":{"anyOf":[{"$ref":"#/$defs/SafeInt64"},{"type":"null"}],"description":"Maximum quantity dropped."},"quantityMin":{"anyOf":[{"$ref":"#/$defs/SafeInt64"},{"type":"null"}],"description":"Minimum quantity dropped."},"rate":{"description":"Exact nullable `monster_drop_evidence.rate` value if stated by source;\nthe normalizer does not establish a probability scale here.","format":"double","type":["number","null"]},"rateDenominator":{"anyOf":[{"$ref":"#/$defs/SafeInt64"},{"type":"null"}],"description":"Exact nullable `monster_drop_evidence.rate_denominator` value."},"sourcePath":{"description":"Exact source path for this evidence occurrence.","type":"string"}},"required":["evidenceId","evidenceSource","sourcePath","ordinal","itemRef"],"type":"object"};const schema49 = {"format":"int64","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"};const schema36 = {"description":"Group of source assertions supporting one exact public Monster/item pair.","properties":{"assertions":{"items":{"$ref":"#/$defs/DropEvidenceAttribution"},"type":"array"}},"required":["assertions"],"type":"object"};const schema37 = {"description":"One source `MonsterBook` assertion retained on a deduplicated CW pair.","properties":{"attribution":{"type":"string"},"confidence":{"$ref":"#/$defs/HistoricalDropConfidence"},"crosswalkInputSha256":{"type":"string"},"evidenceKey":{"type":"string"},"evidenceKind":{"$ref":"#/$defs/DropEvidenceKind"},"propertyPath":{"type":"string"},"reviewReference":{"type":"string"},"sourceBuild":{"type":"string"},"sourceIdentity":{"$ref":"#/$defs/SourceIdentity"},"sourceInputSha256":{"type":"string"},"sourceRecordKey":{"type":"string"},"transform":{"type":"string"}},"required":["evidenceKey","evidenceKind","sourceBuild","sourceIdentity","sourceRecordKey","propertyPath","transform","confidence","attribution","reviewReference","sourceInputSha256","crosswalkInputSha256"],"type":"object"};const schema38 = {"description":"Confidence in a historical assertion as evidence about a target build.","enum":["maybe"],"type":"string"};const schema39 = {"description":"Kind of evidence attribution attached to a Monster drop pair.","enum":["native","supplemental-historical"],"type":"string"};const func1 = function ucs2length(str) {
|
|
2
|
+
const len = str.length;
|
|
3
|
+
let length = 0;
|
|
4
|
+
let pos = 0;
|
|
5
|
+
let value;
|
|
6
|
+
while (pos < len) {
|
|
7
|
+
length++;
|
|
8
|
+
value = str.charCodeAt(pos++);
|
|
9
|
+
if (value >= 0xd800 && value <= 0xdbff && pos < len) {
|
|
10
|
+
// high surrogate, and there is a next character
|
|
11
|
+
value = str.charCodeAt(pos);
|
|
12
|
+
if ((value & 0xfc00) === 0xdc00)
|
|
13
|
+
pos++; // low surrogate
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return length;
|
|
17
|
+
};function validate25(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate25.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.evidenceKey === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "evidenceKey"},message:"must have required property '"+"evidenceKey"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.evidenceKind === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "evidenceKind"},message:"must have required property '"+"evidenceKind"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.sourceBuild === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourceBuild"},message:"must have required property '"+"sourceBuild"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.sourceIdentity === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourceIdentity"},message:"must have required property '"+"sourceIdentity"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.sourceRecordKey === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourceRecordKey"},message:"must have required property '"+"sourceRecordKey"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.propertyPath === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "propertyPath"},message:"must have required property '"+"propertyPath"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data.transform === undefined){const err6 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "transform"},message:"must have required property '"+"transform"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.confidence === undefined){const err7 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "confidence"},message:"must have required property '"+"confidence"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data.attribution === undefined){const err8 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "attribution"},message:"must have required property '"+"attribution"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data.reviewReference === undefined){const err9 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "reviewReference"},message:"must have required property '"+"reviewReference"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.sourceInputSha256 === undefined){const err10 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourceInputSha256"},message:"must have required property '"+"sourceInputSha256"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data.crosswalkInputSha256 === undefined){const err11 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "crosswalkInputSha256"},message:"must have required property '"+"crosswalkInputSha256"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data.attribution !== undefined){if(typeof data.attribution !== "string"){const err12 = {instancePath:instancePath+"/attribution",schemaPath:"#/properties/attribution/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.confidence !== undefined){let data1 = data.confidence;if(typeof data1 !== "string"){const err13 = {instancePath:instancePath+"/confidence",schemaPath:"#/$defs/HistoricalDropConfidence/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(!(data1 === "maybe")){const err14 = {instancePath:instancePath+"/confidence",schemaPath:"#/$defs/HistoricalDropConfidence/enum",keyword:"enum",params:{allowedValues: schema38.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data.crosswalkInputSha256 !== undefined){if(typeof data.crosswalkInputSha256 !== "string"){const err15 = {instancePath:instancePath+"/crosswalkInputSha256",schemaPath:"#/properties/crosswalkInputSha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data.evidenceKey !== undefined){if(typeof data.evidenceKey !== "string"){const err16 = {instancePath:instancePath+"/evidenceKey",schemaPath:"#/properties/evidenceKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data.evidenceKind !== undefined){let data4 = data.evidenceKind;if(typeof data4 !== "string"){const err17 = {instancePath:instancePath+"/evidenceKind",schemaPath:"#/$defs/DropEvidenceKind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(!((data4 === "native") || (data4 === "supplemental-historical"))){const err18 = {instancePath:instancePath+"/evidenceKind",schemaPath:"#/$defs/DropEvidenceKind/enum",keyword:"enum",params:{allowedValues: schema39.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.propertyPath !== undefined){if(typeof data.propertyPath !== "string"){const err19 = {instancePath:instancePath+"/propertyPath",schemaPath:"#/properties/propertyPath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.reviewReference !== undefined){if(typeof data.reviewReference !== "string"){const err20 = {instancePath:instancePath+"/reviewReference",schemaPath:"#/properties/reviewReference/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data.sourceBuild !== undefined){if(typeof data.sourceBuild !== "string"){const err21 = {instancePath:instancePath+"/sourceBuild",schemaPath:"#/properties/sourceBuild/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data.sourceIdentity !== undefined){let data8 = data.sourceIdentity;if(data8 && typeof data8 == "object" && !Array.isArray(data8)){if(data8.id === undefined){const err22 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/$defs/SourceIdentity/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data8.discriminator !== undefined){let data9 = data8.discriminator;if((typeof data9 !== "string") && (data9 !== null)){const err23 = {instancePath:instancePath+"/sourceIdentity/discriminator",schemaPath:"#/$defs/SourceIdentity/properties/discriminator/type",keyword:"type",params:{type: schema40.properties.discriminator.type},message:"must be string,null"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data8.id !== undefined){let data10 = data8.id;if(typeof data10 === "string"){if(func1(data10) < 1){const err24 = {instancePath:instancePath+"/sourceIdentity/id",schemaPath:"#/$defs/SourceIdentity/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}else {const err25 = {instancePath:instancePath+"/sourceIdentity/id",schemaPath:"#/$defs/SourceIdentity/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data8.namespace !== undefined){let data11 = data8.namespace;if((typeof data11 !== "string") && (data11 !== null)){const err26 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/$defs/SourceIdentity/properties/namespace/type",keyword:"type",params:{type: schema40.properties.namespace.type},message:"must be string,null"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/$defs/SourceIdentity/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data.sourceInputSha256 !== undefined){if(typeof data.sourceInputSha256 !== "string"){const err28 = {instancePath:instancePath+"/sourceInputSha256",schemaPath:"#/properties/sourceInputSha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data.sourceRecordKey !== undefined){if(typeof data.sourceRecordKey !== "string"){const err29 = {instancePath:instancePath+"/sourceRecordKey",schemaPath:"#/properties/sourceRecordKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data.transform !== undefined){if(typeof data.transform !== "string"){const err30 = {instancePath:instancePath+"/transform",schemaPath:"#/properties/transform/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}}else {const err31 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}validate25.errors = vErrors;return errors === 0;}validate25.evaluated = {"props":{"attribution":true,"confidence":true,"crosswalkInputSha256":true,"evidenceKey":true,"evidenceKind":true,"propertyPath":true,"reviewReference":true,"sourceBuild":true,"sourceIdentity":true,"sourceInputSha256":true,"sourceRecordKey":true,"transform":true},"dynamicProps":false,"dynamicItems":false};function validate24(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate24.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.assertions === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "assertions"},message:"must have required property '"+"assertions"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.assertions !== undefined){let data0 = data.assertions;if(Array.isArray(data0)){const len0 = data0.length;for(let i0=0; i0<len0; i0++){if(!(validate25(data0[i0], {instancePath:instancePath+"/assertions/" + i0,parentData:data0,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);errors = vErrors.length;}}}else {const err1 = {instancePath:instancePath+"/assertions",schemaPath:"#/properties/assertions/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}else {const err2 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}validate24.errors = vErrors;return errors === 0;}validate24.evaluated = {"props":{"assertions":true},"dynamicProps":false,"dynamicItems":false};const schema41 = {"allOf":[{"if":{"properties":{"state":{"const":"resolved"}}},"then":{"properties":{"associationState":{"const":"resolved"},"candidateCount":{"anyOf":[{"const":1},{"type":"null"}]},"candidateCoverage":{"const":"complete"},"key":{"minLength":1,"type":"string"}},"required":["key"]}},{"if":{"properties":{"state":{"const":"ambiguous"}}},"then":{"properties":{"associationState":{"const":"ambiguous"},"candidateCount":{"minimum":2,"type":"integer"},"key":{"type":"null"},"namespace":{"type":"null"}},"required":["candidateCount"]}},{"if":{"properties":{"state":{"const":"unknown"}}},"then":{"properties":{"associationState":{"const":"unknown"},"key":{"type":"null"},"namespace":{"type":"null"}}}},{"if":{"properties":{"state":{"const":"unresolved"}}},"then":{"properties":{"associationState":{"const":"unresolved"},"key":{"type":"null"}}}},{"if":{"properties":{"state":{"const":"absent"}}},"then":{"properties":{"associationState":{"const":"unresolved"},"candidateCount":{"const":0},"candidateCoverage":{"const":"complete"},"catalogueMembership":{"const":"verified-absent"},"key":{"type":"null"},"typedVersion":{"const":"unavailable"}},"required":["candidateCount"]}},{"if":{"properties":{"state":{"const":"unsupported"}}},"then":{"properties":{"associationState":{"const":"unsupported"},"key":{"type":"null"}}}},{"if":{"properties":{"namespace":{"const":"wz.character"},"state":{"const":"resolved"}},"required":["state","namespace"]},"then":{"properties":{"kind":{"const":"equipment"}}}},{"if":{"properties":{"namespace":{"const":"wz.item"},"state":{"const":"resolved"}},"required":["state","namespace"]},"then":{"properties":{"kind":{"const":"item"}}}},{"if":{"properties":{"namespace":{"const":"wz.character"}},"required":["namespace","sourceIdentity"]},"then":{"properties":{"sourceIdentity":{"properties":{"namespace":{"anyOf":[{"const":"wz.character"},{"type":"null"}]}},"type":"object"}}}},{"if":{"properties":{"namespace":{"const":"wz.item"}},"required":["namespace","sourceIdentity"]},"then":{"properties":{"sourceIdentity":{"properties":{"namespace":{"anyOf":[{"const":"wz.item"},{"type":"null"}]}},"type":"object"}}}},{"if":{"properties":{"namespace":{"const":"wz.mob"}},"required":["namespace","sourceIdentity"]},"then":{"properties":{"sourceIdentity":{"properties":{"namespace":{"anyOf":[{"const":"wz.mob"},{"type":"null"}]}},"type":"object"}}}},{"if":{"properties":{"namespace":{"const":"wz.map"}},"required":["namespace","sourceIdentity"]},"then":{"properties":{"sourceIdentity":{"properties":{"namespace":{"anyOf":[{"const":"wz.map"},{"type":"null"}]}},"type":"object"}}}},{"if":{"properties":{"namespace":{"const":"wz.quest"}},"required":["namespace","sourceIdentity"]},"then":{"properties":{"sourceIdentity":{"properties":{"namespace":{"anyOf":[{"const":"wz.quest"},{"type":"null"}]}},"type":"object"}}}},{"if":{"properties":{"namespace":{"const":"wz.npc"}},"required":["namespace","sourceIdentity"]},"then":{"properties":{"sourceIdentity":{"properties":{"namespace":{"anyOf":[{"const":"wz.npc"},{"type":"null"}]}},"type":"object"}}}},{"if":{"properties":{"namespace":{"const":"wz.skill"}},"required":["namespace","sourceIdentity"]},"then":{"properties":{"sourceIdentity":{"properties":{"namespace":{"anyOf":[{"const":"wz.skill"},{"type":"null"}]}},"type":"object"}}}},{"if":{"properties":{"namespace":{"const":"wz.reactor"}},"required":["namespace","sourceIdentity"]},"then":{"properties":{"sourceIdentity":{"properties":{"namespace":{"anyOf":[{"const":"wz.reactor"},{"type":"null"}]}},"type":"object"}}}},{"if":{"properties":{"namespace":{"const":"wz.job"}},"required":["namespace","sourceIdentity"]},"then":{"properties":{"sourceIdentity":{"properties":{"namespace":{"anyOf":[{"const":"wz.job"},{"type":"null"}]}},"type":"object"}}}},{"if":{"properties":{"namespace":{"const":"wz.mobskill"}},"required":["namespace","sourceIdentity"]},"then":{"properties":{"sourceIdentity":{"properties":{"namespace":{"anyOf":[{"const":"wz.mobskill"},{"type":"null"}]}},"type":"object"}}}},{"if":{"properties":{"sourceIdentity":{"properties":{"namespace":{"const":"wz.character"}},"required":["namespace"],"type":"object"},"state":{"const":"resolved"}},"required":["state","sourceIdentity"]},"then":{"properties":{"kind":{"const":"equipment"}}}},{"if":{"properties":{"sourceIdentity":{"properties":{"namespace":{"const":"wz.item"}},"required":["namespace"],"type":"object"},"state":{"const":"resolved"}},"required":["state","sourceIdentity"]},"then":{"properties":{"kind":{"const":"item"}}}}],"description":"B2 public reference carrying independent canonical semantic dimensions.\n\nThis is intentionally a data contract, not a resolver. The B1 normalizer\nsupplies the association, membership, typed-version and coverage facts;\nthe canonical connected-slice reader only projects them.","properties":{"associationState":{"$ref":"#/$defs/AssociationState"},"candidateCount":{"format":"uint","maximum":9007199254740991,"minimum":0,"type":["integer","null"]},"candidateCoverage":{"$ref":"#/$defs/Coverage"},"catalogueMembership":{"$ref":"#/$defs/CatalogueMembership"},"evidenceKey":{"type":["string","null"]},"key":{"type":["string","null"]},"kind":{"minLength":1,"type":"string"},"namespace":{"type":["string","null"]},"productCapability":{"$ref":"#/$defs/ProductCapability"},"sourceIdentity":{"$ref":"#/$defs/SourceIdentity"},"state":{"$ref":"#/$defs/RefState"},"typedVersion":{"$ref":"#/$defs/TypedVersionState"}},"required":["state","kind","sourceIdentity","associationState","catalogueMembership","typedVersion","candidateCoverage","productCapability"],"type":"object"};const schema42 = {"description":"Canonical association state supplied by the B1 normalizer.","enum":["resolved","unresolved","ambiguous","unknown","unsupported"],"type":"string"};const schema44 = {"description":"Independent catalogue membership state.","enum":["present","verified-absent","unknown"],"type":"string"};const schema45 = {"description":"Independent public product capability state.","enum":["implemented","not-implemented","source-unsupported"],"type":"string"};const schema47 = {"description":"Projection state for a public reference.","enum":["resolved","unresolved","ambiguous","unknown","absent","unsupported"],"type":"string"};const schema48 = {"description":"Independent typed-version availability state.","enum":["available","unavailable","unknown"],"type":"string"};function validate28(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate28.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state !== undefined){if("resolved" !== data.state){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs5 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.key === undefined){const err1 = {instancePath,schemaPath:"#/allOf/0/then/required",keyword:"required",params:{missingProperty: "key"},message:"must have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.associationState !== undefined){if("resolved" !== data.associationState){const err2 = {instancePath:instancePath+"/associationState",schemaPath:"#/allOf/0/then/properties/associationState/const",keyword:"const",params:{allowedValue: "resolved"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(data.candidateCount !== undefined){let data2 = data.candidateCount;const _errs8 = errors;let valid4 = false;const _errs9 = errors;if(1 !== data2){const err3 = {instancePath:instancePath+"/candidateCount",schemaPath:"#/allOf/0/then/properties/candidateCount/anyOf/0/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var _valid1 = _errs9 === errors;valid4 = valid4 || _valid1;const _errs10 = errors;if(data2 !== null){const err4 = {instancePath:instancePath+"/candidateCount",schemaPath:"#/allOf/0/then/properties/candidateCount/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}var _valid1 = _errs10 === errors;valid4 = valid4 || _valid1;if(!valid4){const err5 = {instancePath:instancePath+"/candidateCount",schemaPath:"#/allOf/0/then/properties/candidateCount/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}}if(data.candidateCoverage !== undefined){if("complete" !== data.candidateCoverage){const err6 = {instancePath:instancePath+"/candidateCoverage",schemaPath:"#/allOf/0/then/properties/candidateCoverage/const",keyword:"const",params:{allowedValue: "complete"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.key !== undefined){let data4 = data.key;if(typeof data4 === "string"){if(func1(data4) < 1){const err7 = {instancePath:instancePath+"/key",schemaPath:"#/allOf/0/then/properties/key/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}else {const err8 = {instancePath:instancePath+"/key",schemaPath:"#/allOf/0/then/properties/key/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}}var _valid0 = _errs5 === errors;valid1 = _valid0;if(valid1){var props0 = {};props0.associationState = true;props0.candidateCount = true;props0.candidateCoverage = true;props0.key = true;props0.state = true;}}if(!valid1){const err9 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}const _errs16 = errors;let valid5 = true;const _errs17 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state !== undefined){if("ambiguous" !== data.state){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}}var _valid2 = _errs17 === errors;errors = _errs16;if(vErrors !== null){if(_errs16){vErrors.length = _errs16;}else {vErrors = null;}}if(_valid2){const _errs19 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.candidateCount === undefined){const err11 = {instancePath,schemaPath:"#/allOf/1/then/required",keyword:"required",params:{missingProperty: "candidateCount"},message:"must have required property '"+"candidateCount"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data.associationState !== undefined){if("ambiguous" !== data.associationState){const err12 = {instancePath:instancePath+"/associationState",schemaPath:"#/allOf/1/then/properties/associationState/const",keyword:"const",params:{allowedValue: "ambiguous"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.candidateCount !== undefined){let data7 = data.candidateCount;if(!(((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7))) && (isFinite(data7)))){const err13 = {instancePath:instancePath+"/candidateCount",schemaPath:"#/allOf/1/then/properties/candidateCount/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if((typeof data7 == "number") && (isFinite(data7))){if(data7 < 2 || isNaN(data7)){const err14 = {instancePath:instancePath+"/candidateCount",schemaPath:"#/allOf/1/then/properties/candidateCount/minimum",keyword:"minimum",params:{comparison: ">=", limit: 2},message:"must be >= 2"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}if(data.key !== undefined){if(data.key !== null){const err15 = {instancePath:instancePath+"/key",schemaPath:"#/allOf/1/then/properties/key/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data.namespace !== undefined){if(data.namespace !== null){const err16 = {instancePath:instancePath+"/namespace",schemaPath:"#/allOf/1/then/properties/namespace/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}var _valid2 = _errs19 === errors;valid5 = _valid2;if(valid5){var props1 = {};props1.associationState = true;props1.candidateCount = true;props1.key = true;props1.namespace = true;props1.state = true;}}if(!valid5){const err17 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(props0 !== true && props1 !== undefined){if(props1 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props1);}}const _errs28 = errors;let valid8 = true;const _errs29 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state !== undefined){if("unknown" !== data.state){const err18 = {};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}}var _valid3 = _errs29 === errors;errors = _errs28;if(vErrors !== null){if(_errs28){vErrors.length = _errs28;}else {vErrors = null;}}if(_valid3){const _errs31 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.associationState !== undefined){if("unknown" !== data.associationState){const err19 = {instancePath:instancePath+"/associationState",schemaPath:"#/allOf/2/then/properties/associationState/const",keyword:"const",params:{allowedValue: "unknown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.key !== undefined){if(data.key !== null){const err20 = {instancePath:instancePath+"/key",schemaPath:"#/allOf/2/then/properties/key/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data.namespace !== undefined){if(data.namespace !== null){const err21 = {instancePath:instancePath+"/namespace",schemaPath:"#/allOf/2/then/properties/namespace/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}var _valid3 = _errs31 === errors;valid8 = _valid3;if(valid8){var props2 = {};props2.associationState = true;props2.key = true;props2.namespace = true;props2.state = true;}}if(!valid8){const err22 = {instancePath,schemaPath:"#/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(props0 !== true && props2 !== undefined){if(props2 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props2);}}const _errs38 = errors;let valid11 = true;const _errs39 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state !== undefined){if("unresolved" !== data.state){const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}var _valid4 = _errs39 === errors;errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}if(_valid4){const _errs41 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.associationState !== undefined){if("unresolved" !== data.associationState){const err24 = {instancePath:instancePath+"/associationState",schemaPath:"#/allOf/3/then/properties/associationState/const",keyword:"const",params:{allowedValue: "unresolved"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data.key !== undefined){if(data.key !== null){const err25 = {instancePath:instancePath+"/key",schemaPath:"#/allOf/3/then/properties/key/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}}var _valid4 = _errs41 === errors;valid11 = _valid4;if(valid11){var props3 = {};props3.associationState = true;props3.key = true;props3.state = true;}}if(!valid11){const err26 = {instancePath,schemaPath:"#/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(props0 !== true && props3 !== undefined){if(props3 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props3);}}const _errs46 = errors;let valid14 = true;const _errs47 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state !== undefined){if("absent" !== data.state){const err27 = {};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}var _valid5 = _errs47 === errors;errors = _errs46;if(vErrors !== null){if(_errs46){vErrors.length = _errs46;}else {vErrors = null;}}if(_valid5){const _errs49 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.candidateCount === undefined){const err28 = {instancePath,schemaPath:"#/allOf/4/then/required",keyword:"required",params:{missingProperty: "candidateCount"},message:"must have required property '"+"candidateCount"+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if(data.associationState !== undefined){if("unresolved" !== data.associationState){const err29 = {instancePath:instancePath+"/associationState",schemaPath:"#/allOf/4/then/properties/associationState/const",keyword:"const",params:{allowedValue: "unresolved"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data.candidateCount !== undefined){if(0 !== data.candidateCount){const err30 = {instancePath:instancePath+"/candidateCount",schemaPath:"#/allOf/4/then/properties/candidateCount/const",keyword:"const",params:{allowedValue: 0},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.candidateCoverage !== undefined){if("complete" !== data.candidateCoverage){const err31 = {instancePath:instancePath+"/candidateCoverage",schemaPath:"#/allOf/4/then/properties/candidateCoverage/const",keyword:"const",params:{allowedValue: "complete"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data.catalogueMembership !== undefined){if("verified-absent" !== data.catalogueMembership){const err32 = {instancePath:instancePath+"/catalogueMembership",schemaPath:"#/allOf/4/then/properties/catalogueMembership/const",keyword:"const",params:{allowedValue: "verified-absent"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data.key !== undefined){if(data.key !== null){const err33 = {instancePath:instancePath+"/key",schemaPath:"#/allOf/4/then/properties/key/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data.typedVersion !== undefined){if("unavailable" !== data.typedVersion){const err34 = {instancePath:instancePath+"/typedVersion",schemaPath:"#/allOf/4/then/properties/typedVersion/const",keyword:"const",params:{allowedValue: "unavailable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}var _valid5 = _errs49 === errors;valid14 = _valid5;if(valid14){var props4 = {};props4.associationState = true;props4.candidateCount = true;props4.candidateCoverage = true;props4.catalogueMembership = true;props4.key = true;props4.typedVersion = true;props4.state = true;}}if(!valid14){const err35 = {instancePath,schemaPath:"#/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(props0 !== true && props4 !== undefined){if(props4 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props4);}}const _errs58 = errors;let valid17 = true;const _errs59 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state !== undefined){if("unsupported" !== data.state){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}var _valid6 = _errs59 === errors;errors = _errs58;if(vErrors !== null){if(_errs58){vErrors.length = _errs58;}else {vErrors = null;}}if(_valid6){const _errs61 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.associationState !== undefined){if("unsupported" !== data.associationState){const err37 = {instancePath:instancePath+"/associationState",schemaPath:"#/allOf/5/then/properties/associationState/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data.key !== undefined){if(data.key !== null){const err38 = {instancePath:instancePath+"/key",schemaPath:"#/allOf/5/then/properties/key/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}var _valid6 = _errs61 === errors;valid17 = _valid6;if(valid17){var props5 = {};props5.associationState = true;props5.key = true;props5.state = true;}}if(!valid17){const err39 = {instancePath,schemaPath:"#/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if(props0 !== true && props5 !== undefined){if(props5 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props5);}}const _errs66 = errors;let valid20 = true;const _errs67 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if(((data.state === undefined) && (missing0 = "state")) || ((data.namespace === undefined) && (missing0 = "namespace"))){const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}else {if(data.namespace !== undefined){const _errs68 = errors;if("wz.character" !== data.namespace){const err41 = {};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var valid21 = _errs68 === errors;}else {var valid21 = true;}if(valid21){if(data.state !== undefined){const _errs69 = errors;if("resolved" !== data.state){const err42 = {};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}var valid21 = _errs69 === errors;}else {var valid21 = true;}}}}var _valid7 = _errs67 === errors;errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}if(_valid7){const _errs70 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind !== undefined){if("equipment" !== data.kind){const err43 = {instancePath:instancePath+"/kind",schemaPath:"#/allOf/6/then/properties/kind/const",keyword:"const",params:{allowedValue: "equipment"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}var _valid7 = _errs70 === errors;valid20 = _valid7;if(valid20){var props6 = {};props6.kind = true;props6.namespace = true;props6.state = true;}}if(!valid20){const err44 = {instancePath,schemaPath:"#/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(props0 !== true && props6 !== undefined){if(props6 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props6);}}const _errs73 = errors;let valid23 = true;const _errs74 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing1;if(((data.state === undefined) && (missing1 = "state")) || ((data.namespace === undefined) && (missing1 = "namespace"))){const err45 = {};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}else {if(data.namespace !== undefined){const _errs75 = errors;if("wz.item" !== data.namespace){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}var valid24 = _errs75 === errors;}else {var valid24 = true;}if(valid24){if(data.state !== undefined){const _errs76 = errors;if("resolved" !== data.state){const err47 = {};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid24 = _errs76 === errors;}else {var valid24 = true;}}}}var _valid8 = _errs74 === errors;errors = _errs73;if(vErrors !== null){if(_errs73){vErrors.length = _errs73;}else {vErrors = null;}}if(_valid8){const _errs77 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind !== undefined){if("item" !== data.kind){const err48 = {instancePath:instancePath+"/kind",schemaPath:"#/allOf/7/then/properties/kind/const",keyword:"const",params:{allowedValue: "item"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}var _valid8 = _errs77 === errors;valid23 = _valid8;if(valid23){var props7 = {};props7.kind = true;props7.namespace = true;props7.state = true;}}if(!valid23){const err49 = {instancePath,schemaPath:"#/allOf/7/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}if(props0 !== true && props7 !== undefined){if(props7 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props7);}}const _errs80 = errors;let valid26 = true;const _errs81 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing2;if(((data.namespace === undefined) && (missing2 = "namespace")) || ((data.sourceIdentity === undefined) && (missing2 = "sourceIdentity"))){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}else {if(data.namespace !== undefined){if("wz.character" !== data.namespace){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}}var _valid9 = _errs81 === errors;errors = _errs80;if(vErrors !== null){if(_errs80){vErrors.length = _errs80;}else {vErrors = null;}}if(_valid9){const _errs83 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.sourceIdentity !== undefined){let data34 = data.sourceIdentity;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.namespace !== undefined){let data35 = data34.namespace;const _errs87 = errors;let valid30 = false;const _errs88 = errors;if("wz.character" !== data35){const err52 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/8/then/properties/sourceIdentity/properties/namespace/anyOf/0/const",keyword:"const",params:{allowedValue: "wz.character"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}var _valid10 = _errs88 === errors;valid30 = valid30 || _valid10;const _errs89 = errors;if(data35 !== null){const err53 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/8/then/properties/sourceIdentity/properties/namespace/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var _valid10 = _errs89 === errors;valid30 = valid30 || _valid10;if(!valid30){const err54 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/8/then/properties/sourceIdentity/properties/namespace/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {errors = _errs87;if(vErrors !== null){if(_errs87){vErrors.length = _errs87;}else {vErrors = null;}}}}}else {const err55 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/allOf/8/then/properties/sourceIdentity/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}var _valid9 = _errs83 === errors;valid26 = _valid9;if(valid26){var props8 = {};props8.sourceIdentity = true;props8.namespace = true;}}if(!valid26){const err56 = {instancePath,schemaPath:"#/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(props0 !== true && props8 !== undefined){if(props8 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props8);}}const _errs92 = errors;let valid31 = true;const _errs93 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing3;if(((data.namespace === undefined) && (missing3 = "namespace")) || ((data.sourceIdentity === undefined) && (missing3 = "sourceIdentity"))){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {if(data.namespace !== undefined){if("wz.item" !== data.namespace){const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}}var _valid11 = _errs93 === errors;errors = _errs92;if(vErrors !== null){if(_errs92){vErrors.length = _errs92;}else {vErrors = null;}}if(_valid11){const _errs95 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.sourceIdentity !== undefined){let data37 = data.sourceIdentity;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if(data37.namespace !== undefined){let data38 = data37.namespace;const _errs99 = errors;let valid35 = false;const _errs100 = errors;if("wz.item" !== data38){const err59 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/9/then/properties/sourceIdentity/properties/namespace/anyOf/0/const",keyword:"const",params:{allowedValue: "wz.item"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var _valid12 = _errs100 === errors;valid35 = valid35 || _valid12;const _errs101 = errors;if(data38 !== null){const err60 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/9/then/properties/sourceIdentity/properties/namespace/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var _valid12 = _errs101 === errors;valid35 = valid35 || _valid12;if(!valid35){const err61 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/9/then/properties/sourceIdentity/properties/namespace/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {errors = _errs99;if(vErrors !== null){if(_errs99){vErrors.length = _errs99;}else {vErrors = null;}}}}}else {const err62 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/allOf/9/then/properties/sourceIdentity/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}var _valid11 = _errs95 === errors;valid31 = _valid11;if(valid31){var props9 = {};props9.sourceIdentity = true;props9.namespace = true;}}if(!valid31){const err63 = {instancePath,schemaPath:"#/allOf/9/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if(props0 !== true && props9 !== undefined){if(props9 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props9);}}const _errs104 = errors;let valid36 = true;const _errs105 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing4;if(((data.namespace === undefined) && (missing4 = "namespace")) || ((data.sourceIdentity === undefined) && (missing4 = "sourceIdentity"))){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {if(data.namespace !== undefined){if("wz.mob" !== data.namespace){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}}}var _valid13 = _errs105 === errors;errors = _errs104;if(vErrors !== null){if(_errs104){vErrors.length = _errs104;}else {vErrors = null;}}if(_valid13){const _errs107 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.sourceIdentity !== undefined){let data40 = data.sourceIdentity;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.namespace !== undefined){let data41 = data40.namespace;const _errs111 = errors;let valid40 = false;const _errs112 = errors;if("wz.mob" !== data41){const err66 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/10/then/properties/sourceIdentity/properties/namespace/anyOf/0/const",keyword:"const",params:{allowedValue: "wz.mob"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var _valid14 = _errs112 === errors;valid40 = valid40 || _valid14;const _errs113 = errors;if(data41 !== null){const err67 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/10/then/properties/sourceIdentity/properties/namespace/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var _valid14 = _errs113 === errors;valid40 = valid40 || _valid14;if(!valid40){const err68 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/10/then/properties/sourceIdentity/properties/namespace/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}else {errors = _errs111;if(vErrors !== null){if(_errs111){vErrors.length = _errs111;}else {vErrors = null;}}}}}else {const err69 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/allOf/10/then/properties/sourceIdentity/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}}var _valid13 = _errs107 === errors;valid36 = _valid13;if(valid36){var props10 = {};props10.sourceIdentity = true;props10.namespace = true;}}if(!valid36){const err70 = {instancePath,schemaPath:"#/allOf/10/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}if(props0 !== true && props10 !== undefined){if(props10 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props10);}}const _errs116 = errors;let valid41 = true;const _errs117 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing5;if(((data.namespace === undefined) && (missing5 = "namespace")) || ((data.sourceIdentity === undefined) && (missing5 = "sourceIdentity"))){const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}else {if(data.namespace !== undefined){if("wz.map" !== data.namespace){const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}}var _valid15 = _errs117 === errors;errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}if(_valid15){const _errs119 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.sourceIdentity !== undefined){let data43 = data.sourceIdentity;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.namespace !== undefined){let data44 = data43.namespace;const _errs123 = errors;let valid45 = false;const _errs124 = errors;if("wz.map" !== data44){const err73 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/11/then/properties/sourceIdentity/properties/namespace/anyOf/0/const",keyword:"const",params:{allowedValue: "wz.map"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}var _valid16 = _errs124 === errors;valid45 = valid45 || _valid16;const _errs125 = errors;if(data44 !== null){const err74 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/11/then/properties/sourceIdentity/properties/namespace/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}var _valid16 = _errs125 === errors;valid45 = valid45 || _valid16;if(!valid45){const err75 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/11/then/properties/sourceIdentity/properties/namespace/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}else {errors = _errs123;if(vErrors !== null){if(_errs123){vErrors.length = _errs123;}else {vErrors = null;}}}}}else {const err76 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/allOf/11/then/properties/sourceIdentity/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}}var _valid15 = _errs119 === errors;valid41 = _valid15;if(valid41){var props11 = {};props11.sourceIdentity = true;props11.namespace = true;}}if(!valid41){const err77 = {instancePath,schemaPath:"#/allOf/11/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}if(props0 !== true && props11 !== undefined){if(props11 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props11);}}const _errs128 = errors;let valid46 = true;const _errs129 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing6;if(((data.namespace === undefined) && (missing6 = "namespace")) || ((data.sourceIdentity === undefined) && (missing6 = "sourceIdentity"))){const err78 = {};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {if(data.namespace !== undefined){if("wz.quest" !== data.namespace){const err79 = {};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}}var _valid17 = _errs129 === errors;errors = _errs128;if(vErrors !== null){if(_errs128){vErrors.length = _errs128;}else {vErrors = null;}}if(_valid17){const _errs131 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.sourceIdentity !== undefined){let data46 = data.sourceIdentity;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.namespace !== undefined){let data47 = data46.namespace;const _errs135 = errors;let valid50 = false;const _errs136 = errors;if("wz.quest" !== data47){const err80 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/12/then/properties/sourceIdentity/properties/namespace/anyOf/0/const",keyword:"const",params:{allowedValue: "wz.quest"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}var _valid18 = _errs136 === errors;valid50 = valid50 || _valid18;const _errs137 = errors;if(data47 !== null){const err81 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/12/then/properties/sourceIdentity/properties/namespace/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}var _valid18 = _errs137 === errors;valid50 = valid50 || _valid18;if(!valid50){const err82 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/12/then/properties/sourceIdentity/properties/namespace/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}else {errors = _errs135;if(vErrors !== null){if(_errs135){vErrors.length = _errs135;}else {vErrors = null;}}}}}else {const err83 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/allOf/12/then/properties/sourceIdentity/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}}var _valid17 = _errs131 === errors;valid46 = _valid17;if(valid46){var props12 = {};props12.sourceIdentity = true;props12.namespace = true;}}if(!valid46){const err84 = {instancePath,schemaPath:"#/allOf/12/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if(props0 !== true && props12 !== undefined){if(props12 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props12);}}const _errs140 = errors;let valid51 = true;const _errs141 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing7;if(((data.namespace === undefined) && (missing7 = "namespace")) || ((data.sourceIdentity === undefined) && (missing7 = "sourceIdentity"))){const err85 = {};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}else {if(data.namespace !== undefined){if("wz.npc" !== data.namespace){const err86 = {};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}}}var _valid19 = _errs141 === errors;errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}if(_valid19){const _errs143 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.sourceIdentity !== undefined){let data49 = data.sourceIdentity;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.namespace !== undefined){let data50 = data49.namespace;const _errs147 = errors;let valid55 = false;const _errs148 = errors;if("wz.npc" !== data50){const err87 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/13/then/properties/sourceIdentity/properties/namespace/anyOf/0/const",keyword:"const",params:{allowedValue: "wz.npc"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}var _valid20 = _errs148 === errors;valid55 = valid55 || _valid20;const _errs149 = errors;if(data50 !== null){const err88 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/13/then/properties/sourceIdentity/properties/namespace/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}var _valid20 = _errs149 === errors;valid55 = valid55 || _valid20;if(!valid55){const err89 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/13/then/properties/sourceIdentity/properties/namespace/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}else {errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}}}}else {const err90 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/allOf/13/then/properties/sourceIdentity/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}var _valid19 = _errs143 === errors;valid51 = _valid19;if(valid51){var props13 = {};props13.sourceIdentity = true;props13.namespace = true;}}if(!valid51){const err91 = {instancePath,schemaPath:"#/allOf/13/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(props0 !== true && props13 !== undefined){if(props13 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props13);}}const _errs152 = errors;let valid56 = true;const _errs153 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing8;if(((data.namespace === undefined) && (missing8 = "namespace")) || ((data.sourceIdentity === undefined) && (missing8 = "sourceIdentity"))){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}else {if(data.namespace !== undefined){if("wz.skill" !== data.namespace){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}}}var _valid21 = _errs153 === errors;errors = _errs152;if(vErrors !== null){if(_errs152){vErrors.length = _errs152;}else {vErrors = null;}}if(_valid21){const _errs155 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.sourceIdentity !== undefined){let data52 = data.sourceIdentity;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.namespace !== undefined){let data53 = data52.namespace;const _errs159 = errors;let valid60 = false;const _errs160 = errors;if("wz.skill" !== data53){const err94 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/14/then/properties/sourceIdentity/properties/namespace/anyOf/0/const",keyword:"const",params:{allowedValue: "wz.skill"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}var _valid22 = _errs160 === errors;valid60 = valid60 || _valid22;const _errs161 = errors;if(data53 !== null){const err95 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/14/then/properties/sourceIdentity/properties/namespace/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}var _valid22 = _errs161 === errors;valid60 = valid60 || _valid22;if(!valid60){const err96 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/14/then/properties/sourceIdentity/properties/namespace/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}else {errors = _errs159;if(vErrors !== null){if(_errs159){vErrors.length = _errs159;}else {vErrors = null;}}}}}else {const err97 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/allOf/14/then/properties/sourceIdentity/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}var _valid21 = _errs155 === errors;valid56 = _valid21;if(valid56){var props14 = {};props14.sourceIdentity = true;props14.namespace = true;}}if(!valid56){const err98 = {instancePath,schemaPath:"#/allOf/14/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if(props0 !== true && props14 !== undefined){if(props14 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props14);}}const _errs164 = errors;let valid61 = true;const _errs165 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing9;if(((data.namespace === undefined) && (missing9 = "namespace")) || ((data.sourceIdentity === undefined) && (missing9 = "sourceIdentity"))){const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}else {if(data.namespace !== undefined){if("wz.reactor" !== data.namespace){const err100 = {};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}}}var _valid23 = _errs165 === errors;errors = _errs164;if(vErrors !== null){if(_errs164){vErrors.length = _errs164;}else {vErrors = null;}}if(_valid23){const _errs167 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.sourceIdentity !== undefined){let data55 = data.sourceIdentity;if(data55 && typeof data55 == "object" && !Array.isArray(data55)){if(data55.namespace !== undefined){let data56 = data55.namespace;const _errs171 = errors;let valid65 = false;const _errs172 = errors;if("wz.reactor" !== data56){const err101 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/15/then/properties/sourceIdentity/properties/namespace/anyOf/0/const",keyword:"const",params:{allowedValue: "wz.reactor"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}var _valid24 = _errs172 === errors;valid65 = valid65 || _valid24;const _errs173 = errors;if(data56 !== null){const err102 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/15/then/properties/sourceIdentity/properties/namespace/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}var _valid24 = _errs173 === errors;valid65 = valid65 || _valid24;if(!valid65){const err103 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/15/then/properties/sourceIdentity/properties/namespace/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}else {errors = _errs171;if(vErrors !== null){if(_errs171){vErrors.length = _errs171;}else {vErrors = null;}}}}}else {const err104 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/allOf/15/then/properties/sourceIdentity/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}}var _valid23 = _errs167 === errors;valid61 = _valid23;if(valid61){var props15 = {};props15.sourceIdentity = true;props15.namespace = true;}}if(!valid61){const err105 = {instancePath,schemaPath:"#/allOf/15/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(props0 !== true && props15 !== undefined){if(props15 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props15);}}const _errs176 = errors;let valid66 = true;const _errs177 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing10;if(((data.namespace === undefined) && (missing10 = "namespace")) || ((data.sourceIdentity === undefined) && (missing10 = "sourceIdentity"))){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}else {if(data.namespace !== undefined){if("wz.job" !== data.namespace){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}}var _valid25 = _errs177 === errors;errors = _errs176;if(vErrors !== null){if(_errs176){vErrors.length = _errs176;}else {vErrors = null;}}if(_valid25){const _errs179 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.sourceIdentity !== undefined){let data58 = data.sourceIdentity;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.namespace !== undefined){let data59 = data58.namespace;const _errs183 = errors;let valid70 = false;const _errs184 = errors;if("wz.job" !== data59){const err108 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/16/then/properties/sourceIdentity/properties/namespace/anyOf/0/const",keyword:"const",params:{allowedValue: "wz.job"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}var _valid26 = _errs184 === errors;valid70 = valid70 || _valid26;const _errs185 = errors;if(data59 !== null){const err109 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/16/then/properties/sourceIdentity/properties/namespace/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}var _valid26 = _errs185 === errors;valid70 = valid70 || _valid26;if(!valid70){const err110 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/16/then/properties/sourceIdentity/properties/namespace/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}else {errors = _errs183;if(vErrors !== null){if(_errs183){vErrors.length = _errs183;}else {vErrors = null;}}}}}else {const err111 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/allOf/16/then/properties/sourceIdentity/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}}var _valid25 = _errs179 === errors;valid66 = _valid25;if(valid66){var props16 = {};props16.sourceIdentity = true;props16.namespace = true;}}if(!valid66){const err112 = {instancePath,schemaPath:"#/allOf/16/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}if(props0 !== true && props16 !== undefined){if(props16 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props16);}}const _errs188 = errors;let valid71 = true;const _errs189 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing11;if(((data.namespace === undefined) && (missing11 = "namespace")) || ((data.sourceIdentity === undefined) && (missing11 = "sourceIdentity"))){const err113 = {};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}else {if(data.namespace !== undefined){if("wz.mobskill" !== data.namespace){const err114 = {};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}}}var _valid27 = _errs189 === errors;errors = _errs188;if(vErrors !== null){if(_errs188){vErrors.length = _errs188;}else {vErrors = null;}}if(_valid27){const _errs191 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.sourceIdentity !== undefined){let data61 = data.sourceIdentity;if(data61 && typeof data61 == "object" && !Array.isArray(data61)){if(data61.namespace !== undefined){let data62 = data61.namespace;const _errs195 = errors;let valid75 = false;const _errs196 = errors;if("wz.mobskill" !== data62){const err115 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/17/then/properties/sourceIdentity/properties/namespace/anyOf/0/const",keyword:"const",params:{allowedValue: "wz.mobskill"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}var _valid28 = _errs196 === errors;valid75 = valid75 || _valid28;const _errs197 = errors;if(data62 !== null){const err116 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/17/then/properties/sourceIdentity/properties/namespace/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}var _valid28 = _errs197 === errors;valid75 = valid75 || _valid28;if(!valid75){const err117 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/allOf/17/then/properties/sourceIdentity/properties/namespace/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}else {errors = _errs195;if(vErrors !== null){if(_errs195){vErrors.length = _errs195;}else {vErrors = null;}}}}}else {const err118 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/allOf/17/then/properties/sourceIdentity/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}}var _valid27 = _errs191 === errors;valid71 = _valid27;if(valid71){var props17 = {};props17.sourceIdentity = true;props17.namespace = true;}}if(!valid71){const err119 = {instancePath,schemaPath:"#/allOf/17/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}if(props0 !== true && props17 !== undefined){if(props17 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props17);}}const _errs200 = errors;let valid76 = true;const _errs201 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing12;if(((data.state === undefined) && (missing12 = "state")) || ((data.sourceIdentity === undefined) && (missing12 = "sourceIdentity"))){const err120 = {};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}else {if(data.sourceIdentity !== undefined){let data63 = data.sourceIdentity;const _errs202 = errors;if(errors === _errs202){if(data63 && typeof data63 == "object" && !Array.isArray(data63)){let missing13;if((data63.namespace === undefined) && (missing13 = "namespace")){const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}else {if(data63.namespace !== undefined){if("wz.character" !== data63.namespace){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}}}else {const err123 = {};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}var valid77 = _errs202 === errors;}else {var valid77 = true;}if(valid77){if(data.state !== undefined){const _errs205 = errors;if("resolved" !== data.state){const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}var valid77 = _errs205 === errors;}else {var valid77 = true;}}}}var _valid29 = _errs201 === errors;errors = _errs200;if(vErrors !== null){if(_errs200){vErrors.length = _errs200;}else {vErrors = null;}}if(_valid29){const _errs206 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind !== undefined){if("equipment" !== data.kind){const err125 = {instancePath:instancePath+"/kind",schemaPath:"#/allOf/18/then/properties/kind/const",keyword:"const",params:{allowedValue: "equipment"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}}var _valid29 = _errs206 === errors;valid76 = _valid29;if(valid76){var props18 = {};props18.kind = true;props18.sourceIdentity = true;props18.state = true;}}if(!valid76){const err126 = {instancePath,schemaPath:"#/allOf/18/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}if(props0 !== true && props18 !== undefined){if(props18 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props18);}}const _errs209 = errors;let valid80 = true;const _errs210 = errors;if(data && typeof data == "object" && !Array.isArray(data)){let missing14;if(((data.state === undefined) && (missing14 = "state")) || ((data.sourceIdentity === undefined) && (missing14 = "sourceIdentity"))){const err127 = {};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}else {if(data.sourceIdentity !== undefined){let data67 = data.sourceIdentity;const _errs211 = errors;if(errors === _errs211){if(data67 && typeof data67 == "object" && !Array.isArray(data67)){let missing15;if((data67.namespace === undefined) && (missing15 = "namespace")){const err128 = {};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}else {if(data67.namespace !== undefined){if("wz.item" !== data67.namespace){const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}}}else {const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}var valid81 = _errs211 === errors;}else {var valid81 = true;}if(valid81){if(data.state !== undefined){const _errs214 = errors;if("resolved" !== data.state){const err131 = {};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}var valid81 = _errs214 === errors;}else {var valid81 = true;}}}}var _valid30 = _errs210 === errors;errors = _errs209;if(vErrors !== null){if(_errs209){vErrors.length = _errs209;}else {vErrors = null;}}if(_valid30){const _errs215 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.kind !== undefined){if("item" !== data.kind){const err132 = {instancePath:instancePath+"/kind",schemaPath:"#/allOf/19/then/properties/kind/const",keyword:"const",params:{allowedValue: "item"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}}var _valid30 = _errs215 === errors;valid80 = _valid30;if(valid80){var props19 = {};props19.kind = true;props19.sourceIdentity = true;props19.state = true;}}if(!valid80){const err133 = {instancePath,schemaPath:"#/allOf/19/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}if(props0 !== true && props19 !== undefined){if(props19 === true){props0 = true;}else {props0 = props0 || {};Object.assign(props0, props19);}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err134 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}if(data.kind === undefined){const err135 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if(data.sourceIdentity === undefined){const err136 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourceIdentity"},message:"must have required property '"+"sourceIdentity"+"'"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}if(data.associationState === undefined){const err137 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "associationState"},message:"must have required property '"+"associationState"+"'"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}if(data.catalogueMembership === undefined){const err138 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "catalogueMembership"},message:"must have required property '"+"catalogueMembership"+"'"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if(data.typedVersion === undefined){const err139 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "typedVersion"},message:"must have required property '"+"typedVersion"+"'"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if(data.candidateCoverage === undefined){const err140 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "candidateCoverage"},message:"must have required property '"+"candidateCoverage"+"'"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}if(data.productCapability === undefined){const err141 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "productCapability"},message:"must have required property '"+"productCapability"+"'"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}if(props0 !== true){props0 = props0 || {};props0.associationState = true;props0.candidateCount = true;props0.candidateCoverage = true;props0.catalogueMembership = true;props0.evidenceKey = true;props0.key = true;props0.kind = true;props0.namespace = true;props0.productCapability = true;props0.sourceIdentity = true;props0.state = true;props0.typedVersion = true;}if(data.associationState !== undefined){let data71 = data.associationState;if(typeof data71 !== "string"){const err142 = {instancePath:instancePath+"/associationState",schemaPath:"#/$defs/AssociationState/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}if(!(((((data71 === "resolved") || (data71 === "unresolved")) || (data71 === "ambiguous")) || (data71 === "unknown")) || (data71 === "unsupported"))){const err143 = {instancePath:instancePath+"/associationState",schemaPath:"#/$defs/AssociationState/enum",keyword:"enum",params:{allowedValues: schema42.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data.candidateCount !== undefined){let data72 = data.candidateCount;if((!(((typeof data72 == "number") && (!(data72 % 1) && !isNaN(data72))) && (isFinite(data72)))) && (data72 !== null)){const err144 = {instancePath:instancePath+"/candidateCount",schemaPath:"#/properties/candidateCount/type",keyword:"type",params:{type: schema41.properties.candidateCount.type},message:"must be integer,null"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}if((typeof data72 == "number") && (isFinite(data72))){if(data72 > 9007199254740991 || isNaN(data72)){const err145 = {instancePath:instancePath+"/candidateCount",schemaPath:"#/properties/candidateCount/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}if(data72 < 0 || isNaN(data72)){const err146 = {instancePath:instancePath+"/candidateCount",schemaPath:"#/properties/candidateCount/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}if(data.candidateCoverage !== undefined){let data73 = data.candidateCoverage;const _errs224 = errors;let valid87 = false;let passing0 = null;const _errs225 = errors;if(typeof data73 !== "string"){const err147 = {instancePath:instancePath+"/candidateCoverage",schemaPath:"#/$defs/Coverage/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}if("complete" !== data73){const err148 = {instancePath:instancePath+"/candidateCoverage",schemaPath:"#/$defs/Coverage/oneOf/0/const",keyword:"const",params:{allowedValue: "complete"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}var _valid31 = _errs225 === errors;if(_valid31){valid87 = true;passing0 = 0;}const _errs227 = errors;if(typeof data73 !== "string"){const err149 = {instancePath:instancePath+"/candidateCoverage",schemaPath:"#/$defs/Coverage/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if("partial" !== data73){const err150 = {instancePath:instancePath+"/candidateCoverage",schemaPath:"#/$defs/Coverage/oneOf/1/const",keyword:"const",params:{allowedValue: "partial"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}var _valid31 = _errs227 === errors;if(_valid31 && valid87){valid87 = false;passing0 = [passing0, 1];}else {if(_valid31){valid87 = true;passing0 = 1;}const _errs229 = errors;if(typeof data73 !== "string"){const err151 = {instancePath:instancePath+"/candidateCoverage",schemaPath:"#/$defs/Coverage/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if("unknown" !== data73){const err152 = {instancePath:instancePath+"/candidateCoverage",schemaPath:"#/$defs/Coverage/oneOf/2/const",keyword:"const",params:{allowedValue: "unknown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}var _valid31 = _errs229 === errors;if(_valid31 && valid87){valid87 = false;passing0 = [passing0, 2];}else {if(_valid31){valid87 = true;passing0 = 2;}const _errs231 = errors;if(typeof data73 !== "string"){const err153 = {instancePath:instancePath+"/candidateCoverage",schemaPath:"#/$defs/Coverage/oneOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if("unsupported" !== data73){const err154 = {instancePath:instancePath+"/candidateCoverage",schemaPath:"#/$defs/Coverage/oneOf/3/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}var _valid31 = _errs231 === errors;if(_valid31 && valid87){valid87 = false;passing0 = [passing0, 3];}else {if(_valid31){valid87 = true;passing0 = 3;}}}}if(!valid87){const err155 = {instancePath:instancePath+"/candidateCoverage",schemaPath:"#/$defs/Coverage/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}else {errors = _errs224;if(vErrors !== null){if(_errs224){vErrors.length = _errs224;}else {vErrors = null;}}}}if(data.catalogueMembership !== undefined){let data74 = data.catalogueMembership;if(typeof data74 !== "string"){const err156 = {instancePath:instancePath+"/catalogueMembership",schemaPath:"#/$defs/CatalogueMembership/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(!(((data74 === "present") || (data74 === "verified-absent")) || (data74 === "unknown"))){const err157 = {instancePath:instancePath+"/catalogueMembership",schemaPath:"#/$defs/CatalogueMembership/enum",keyword:"enum",params:{allowedValues: schema44.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}if(data.evidenceKey !== undefined){let data75 = data.evidenceKey;if((typeof data75 !== "string") && (data75 !== null)){const err158 = {instancePath:instancePath+"/evidenceKey",schemaPath:"#/properties/evidenceKey/type",keyword:"type",params:{type: schema41.properties.evidenceKey.type},message:"must be string,null"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}if(data.key !== undefined){let data76 = data.key;if((typeof data76 !== "string") && (data76 !== null)){const err159 = {instancePath:instancePath+"/key",schemaPath:"#/properties/key/type",keyword:"type",params:{type: schema41.properties.key.type},message:"must be string,null"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}if(data.kind !== undefined){let data77 = data.kind;if(typeof data77 === "string"){if(func1(data77) < 1){const err160 = {instancePath:instancePath+"/kind",schemaPath:"#/properties/kind/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}else {const err161 = {instancePath:instancePath+"/kind",schemaPath:"#/properties/kind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}if(data.namespace !== undefined){let data78 = data.namespace;if((typeof data78 !== "string") && (data78 !== null)){const err162 = {instancePath:instancePath+"/namespace",schemaPath:"#/properties/namespace/type",keyword:"type",params:{type: schema41.properties.namespace.type},message:"must be string,null"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}if(data.productCapability !== undefined){let data79 = data.productCapability;if(typeof data79 !== "string"){const err163 = {instancePath:instancePath+"/productCapability",schemaPath:"#/$defs/ProductCapability/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if(!(((data79 === "implemented") || (data79 === "not-implemented")) || (data79 === "source-unsupported"))){const err164 = {instancePath:instancePath+"/productCapability",schemaPath:"#/$defs/ProductCapability/enum",keyword:"enum",params:{allowedValues: schema45.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(data.sourceIdentity !== undefined){let data80 = data.sourceIdentity;if(data80 && typeof data80 == "object" && !Array.isArray(data80)){if(data80.id === undefined){const err165 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/$defs/SourceIdentity/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if(data80.discriminator !== undefined){let data81 = data80.discriminator;if((typeof data81 !== "string") && (data81 !== null)){const err166 = {instancePath:instancePath+"/sourceIdentity/discriminator",schemaPath:"#/$defs/SourceIdentity/properties/discriminator/type",keyword:"type",params:{type: schema40.properties.discriminator.type},message:"must be string,null"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}if(data80.id !== undefined){let data82 = data80.id;if(typeof data82 === "string"){if(func1(data82) < 1){const err167 = {instancePath:instancePath+"/sourceIdentity/id",schemaPath:"#/$defs/SourceIdentity/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}else {const err168 = {instancePath:instancePath+"/sourceIdentity/id",schemaPath:"#/$defs/SourceIdentity/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}if(data80.namespace !== undefined){let data83 = data80.namespace;if((typeof data83 !== "string") && (data83 !== null)){const err169 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/$defs/SourceIdentity/properties/namespace/type",keyword:"type",params:{type: schema40.properties.namespace.type},message:"must be string,null"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}}else {const err170 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/$defs/SourceIdentity/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}if(data.state !== undefined){let data84 = data.state;if(typeof data84 !== "string"){const err171 = {instancePath:instancePath+"/state",schemaPath:"#/$defs/RefState/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}if(!((((((data84 === "resolved") || (data84 === "unresolved")) || (data84 === "ambiguous")) || (data84 === "unknown")) || (data84 === "absent")) || (data84 === "unsupported"))){const err172 = {instancePath:instancePath+"/state",schemaPath:"#/$defs/RefState/enum",keyword:"enum",params:{allowedValues: schema47.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}if(data.typedVersion !== undefined){let data85 = data.typedVersion;if(typeof data85 !== "string"){const err173 = {instancePath:instancePath+"/typedVersion",schemaPath:"#/$defs/TypedVersionState/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}if(!(((data85 === "available") || (data85 === "unavailable")) || (data85 === "unknown"))){const err174 = {instancePath:instancePath+"/typedVersion",schemaPath:"#/$defs/TypedVersionState/enum",keyword:"enum",params:{allowedValues: schema48.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}}else {const err175 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}validate28.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate28.evaluated = {"dynamicProps":true,"dynamicItems":false};function validate23(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate23.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.evidenceId === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "evidenceId"},message:"must have required property '"+"evidenceId"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.evidenceSource === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "evidenceSource"},message:"must have required property '"+"evidenceSource"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.sourcePath === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourcePath"},message:"must have required property '"+"sourcePath"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.ordinal === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "ordinal"},message:"must have required property '"+"ordinal"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.itemRef === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "itemRef"},message:"must have required property '"+"itemRef"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.category !== undefined){let data0 = data.category;if((typeof data0 !== "string") && (data0 !== null)){const err5 = {instancePath:instancePath+"/category",schemaPath:"#/properties/category/type",keyword:"type",params:{type: schema35.properties.category.type},message:"must be string,null"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.conditions !== undefined){let data1 = data.conditions;if((typeof data1 !== "string") && (data1 !== null)){const err6 = {instancePath:instancePath+"/conditions",schemaPath:"#/properties/conditions/type",keyword:"type",params:{type: schema35.properties.conditions.type},message:"must be string,null"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.evidenceAttribution !== undefined){let data2 = data.evidenceAttribution;const _errs6 = errors;let valid1 = false;const _errs7 = errors;if(!(validate24(data2, {instancePath:instancePath+"/evidenceAttribution",parentData:data,parentDataProperty:"evidenceAttribution",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate24.errors : vErrors.concat(validate24.errors);errors = vErrors.length;}var _valid0 = _errs7 === errors;valid1 = valid1 || _valid0;if(_valid0){var props0 = {};props0.assertions = true;}const _errs8 = errors;if(data2 !== null){const err7 = {instancePath:instancePath+"/evidenceAttribution",schemaPath:"#/properties/evidenceAttribution/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid0 = _errs8 === errors;valid1 = valid1 || _valid0;if(!valid1){const err8 = {instancePath:instancePath+"/evidenceAttribution",schemaPath:"#/properties/evidenceAttribution/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs6;if(vErrors !== null){if(_errs6){vErrors.length = _errs6;}else {vErrors = null;}}}}if(data.evidenceId !== undefined){if(typeof data.evidenceId !== "string"){const err9 = {instancePath:instancePath+"/evidenceId",schemaPath:"#/properties/evidenceId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.evidenceSource !== undefined){if(typeof data.evidenceSource !== "string"){const err10 = {instancePath:instancePath+"/evidenceSource",schemaPath:"#/properties/evidenceSource/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.itemClass !== undefined){let data5 = data.itemClass;if((typeof data5 !== "string") && (data5 !== null)){const err11 = {instancePath:instancePath+"/itemClass",schemaPath:"#/properties/itemClass/type",keyword:"type",params:{type: schema35.properties.itemClass.type},message:"must be string,null"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data.itemName !== undefined){let data6 = data.itemName;if((typeof data6 !== "string") && (data6 !== null)){const err12 = {instancePath:instancePath+"/itemName",schemaPath:"#/properties/itemName/type",keyword:"type",params:{type: schema35.properties.itemName.type},message:"must be string,null"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.itemRef !== undefined){if(!(validate28(data.itemRef, {instancePath:instancePath+"/itemRef",parentData:data,parentDataProperty:"itemRef",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate28.errors : vErrors.concat(validate28.errors);errors = vErrors.length;}}if(data.ordinal !== undefined){let data8 = data.ordinal;if(!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))){const err13 = {instancePath:instancePath+"/ordinal",schemaPath:"#/properties/ordinal/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if((typeof data8 == "number") && (isFinite(data8))){if(data8 > 9007199254740991 || isNaN(data8)){const err14 = {instancePath:instancePath+"/ordinal",schemaPath:"#/properties/ordinal/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data8 < 0 || isNaN(data8)){const err15 = {instancePath:instancePath+"/ordinal",schemaPath:"#/properties/ordinal/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}if(data.quantityMax !== undefined){let data9 = data.quantityMax;const _errs22 = errors;let valid2 = false;const _errs23 = errors;if(!(((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9))) && (isFinite(data9)))){const err16 = {instancePath:instancePath+"/quantityMax",schemaPath:"#/$defs/SafeInt64/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if((typeof data9 == "number") && (isFinite(data9))){if(data9 > 9007199254740991 || isNaN(data9)){const err17 = {instancePath:instancePath+"/quantityMax",schemaPath:"#/$defs/SafeInt64/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(data9 < -9007199254740991 || isNaN(data9)){const err18 = {instancePath:instancePath+"/quantityMax",schemaPath:"#/$defs/SafeInt64/minimum",keyword:"minimum",params:{comparison: ">=", limit: -9007199254740991},message:"must be >= -9007199254740991"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var _valid1 = _errs23 === errors;valid2 = valid2 || _valid1;const _errs26 = errors;if(data9 !== null){const err19 = {instancePath:instancePath+"/quantityMax",schemaPath:"#/properties/quantityMax/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var _valid1 = _errs26 === errors;valid2 = valid2 || _valid1;if(!valid2){const err20 = {instancePath:instancePath+"/quantityMax",schemaPath:"#/properties/quantityMax/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {errors = _errs22;if(vErrors !== null){if(_errs22){vErrors.length = _errs22;}else {vErrors = null;}}}}if(data.quantityMin !== undefined){let data10 = data.quantityMin;const _errs29 = errors;let valid4 = false;const _errs30 = errors;if(!(((typeof data10 == "number") && (!(data10 % 1) && !isNaN(data10))) && (isFinite(data10)))){const err21 = {instancePath:instancePath+"/quantityMin",schemaPath:"#/$defs/SafeInt64/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if((typeof data10 == "number") && (isFinite(data10))){if(data10 > 9007199254740991 || isNaN(data10)){const err22 = {instancePath:instancePath+"/quantityMin",schemaPath:"#/$defs/SafeInt64/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data10 < -9007199254740991 || isNaN(data10)){const err23 = {instancePath:instancePath+"/quantityMin",schemaPath:"#/$defs/SafeInt64/minimum",keyword:"minimum",params:{comparison: ">=", limit: -9007199254740991},message:"must be >= -9007199254740991"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}var _valid2 = _errs30 === errors;valid4 = valid4 || _valid2;const _errs33 = errors;if(data10 !== null){const err24 = {instancePath:instancePath+"/quantityMin",schemaPath:"#/properties/quantityMin/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var _valid2 = _errs33 === errors;valid4 = valid4 || _valid2;if(!valid4){const err25 = {instancePath:instancePath+"/quantityMin",schemaPath:"#/properties/quantityMin/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}}if(data.rate !== undefined){let data11 = data.rate;if((!((typeof data11 == "number") && (isFinite(data11)))) && (data11 !== null)){const err26 = {instancePath:instancePath+"/rate",schemaPath:"#/properties/rate/type",keyword:"type",params:{type: schema35.properties.rate.type},message:"must be number,null"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}if(data.rateDenominator !== undefined){let data12 = data.rateDenominator;const _errs38 = errors;let valid6 = false;const _errs39 = errors;if(!(((typeof data12 == "number") && (!(data12 % 1) && !isNaN(data12))) && (isFinite(data12)))){const err27 = {instancePath:instancePath+"/rateDenominator",schemaPath:"#/$defs/SafeInt64/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if((typeof data12 == "number") && (isFinite(data12))){if(data12 > 9007199254740991 || isNaN(data12)){const err28 = {instancePath:instancePath+"/rateDenominator",schemaPath:"#/$defs/SafeInt64/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if(data12 < -9007199254740991 || isNaN(data12)){const err29 = {instancePath:instancePath+"/rateDenominator",schemaPath:"#/$defs/SafeInt64/minimum",keyword:"minimum",params:{comparison: ">=", limit: -9007199254740991},message:"must be >= -9007199254740991"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}var _valid3 = _errs39 === errors;valid6 = valid6 || _valid3;const _errs42 = errors;if(data12 !== null){const err30 = {instancePath:instancePath+"/rateDenominator",schemaPath:"#/properties/rateDenominator/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid3 = _errs42 === errors;valid6 = valid6 || _valid3;if(!valid6){const err31 = {instancePath:instancePath+"/rateDenominator",schemaPath:"#/properties/rateDenominator/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {errors = _errs38;if(vErrors !== null){if(_errs38){vErrors.length = _errs38;}else {vErrors = null;}}}}if(data.sourcePath !== undefined){if(typeof data.sourcePath !== "string"){const err32 = {instancePath:instancePath+"/sourcePath",schemaPath:"#/properties/sourcePath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}}else {const err33 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}validate23.errors = vErrors;return errors === 0;}validate23.evaluated = {"props":{"category":true,"conditions":true,"evidenceAttribution":true,"evidenceId":true,"evidenceSource":true,"itemClass":true,"itemName":true,"itemRef":true,"ordinal":true,"quantityMax":true,"quantityMin":true,"rate":true,"rateDenominator":true,"sourcePath":true},"dynamicProps":false,"dynamicItems":false};const schema53 = {"description":"Quest requirement association for a monster (kill objective).","properties":{"countGroupId":{"description":"Quest count group ID if this kill objective belongs to a shared defeat pool.","type":["string","null"]},"killCount":{"anyOf":[{"$ref":"#/$defs/SafeInt64"},{"type":"null"}],"description":"Required kill quota to complete the objective."},"memberOrdinal":{"description":"Literal count-group member ordinal when this requirement fans out.","format":"uint","maximum":9007199254740991,"minimum":0,"type":["integer","null"]},"occurrenceKey":{"description":"Stable source-derived requirement/member occurrence key.","type":"string"},"phase":{"$ref":"#/$defs/Nullable_string","description":"Canonical Quest phase. `null` preserves the normalizer's unknown phase\nfor a state whose interpreted `phase` column is NULL."},"questName":{"description":"Localized quest name.","type":["string","null"]},"questRef":{"$ref":"#/$defs/EntityRef","description":"Resolved or unresolved reference to the quest entity."},"questSourceId":{"description":"Upstream quest source ID.","type":"string"},"requirementKind":{"description":"Normalizer-owned requirement kind (for example `mob-kill`).","type":"string"},"requirementOrdinal":{"description":"Literal requirement ordinal within the Quest state/kind section.","format":"uint","maximum":9007199254740991,"minimum":0,"type":"integer"},"sourcePath":{"description":"Exact source path for the requirement occurrence.","type":"string"},"stateKey":{"$ref":"#/$defs/SafeInt64","description":"Exact Quest state discriminator from the normalized requirement."}},"required":["occurrenceKey","stateKey","requirementKind","questRef","questSourceId","sourcePath","requirementOrdinal","phase"],"type":"object"};const schema55 = {"type":["string","null"]};function validate33(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate33.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.occurrenceKey === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "occurrenceKey"},message:"must have required property '"+"occurrenceKey"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.stateKey === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "stateKey"},message:"must have required property '"+"stateKey"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.requirementKind === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "requirementKind"},message:"must have required property '"+"requirementKind"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.questRef === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "questRef"},message:"must have required property '"+"questRef"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.questSourceId === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "questSourceId"},message:"must have required property '"+"questSourceId"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.sourcePath === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourcePath"},message:"must have required property '"+"sourcePath"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data.requirementOrdinal === undefined){const err6 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "requirementOrdinal"},message:"must have required property '"+"requirementOrdinal"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.phase === undefined){const err7 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "phase"},message:"must have required property '"+"phase"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data.countGroupId !== undefined){let data0 = data.countGroupId;if((typeof data0 !== "string") && (data0 !== null)){const err8 = {instancePath:instancePath+"/countGroupId",schemaPath:"#/properties/countGroupId/type",keyword:"type",params:{type: schema53.properties.countGroupId.type},message:"must be string,null"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.killCount !== undefined){let data1 = data.killCount;const _errs4 = errors;let valid1 = false;const _errs5 = errors;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err9 = {instancePath:instancePath+"/killCount",schemaPath:"#/$defs/SafeInt64/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if((typeof data1 == "number") && (isFinite(data1))){if(data1 > 9007199254740991 || isNaN(data1)){const err10 = {instancePath:instancePath+"/killCount",schemaPath:"#/$defs/SafeInt64/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data1 < -9007199254740991 || isNaN(data1)){const err11 = {instancePath:instancePath+"/killCount",schemaPath:"#/$defs/SafeInt64/minimum",keyword:"minimum",params:{comparison: ">=", limit: -9007199254740991},message:"must be >= -9007199254740991"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}var _valid0 = _errs5 === errors;valid1 = valid1 || _valid0;const _errs8 = errors;if(data1 !== null){const err12 = {instancePath:instancePath+"/killCount",schemaPath:"#/properties/killCount/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var _valid0 = _errs8 === errors;valid1 = valid1 || _valid0;if(!valid1){const err13 = {instancePath:instancePath+"/killCount",schemaPath:"#/properties/killCount/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}else {errors = _errs4;if(vErrors !== null){if(_errs4){vErrors.length = _errs4;}else {vErrors = null;}}}}if(data.memberOrdinal !== undefined){let data2 = data.memberOrdinal;if((!(((typeof data2 == "number") && (!(data2 % 1) && !isNaN(data2))) && (isFinite(data2)))) && (data2 !== null)){const err14 = {instancePath:instancePath+"/memberOrdinal",schemaPath:"#/properties/memberOrdinal/type",keyword:"type",params:{type: schema53.properties.memberOrdinal.type},message:"must be integer,null"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if((typeof data2 == "number") && (isFinite(data2))){if(data2 > 9007199254740991 || isNaN(data2)){const err15 = {instancePath:instancePath+"/memberOrdinal",schemaPath:"#/properties/memberOrdinal/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data2 < 0 || isNaN(data2)){const err16 = {instancePath:instancePath+"/memberOrdinal",schemaPath:"#/properties/memberOrdinal/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}if(data.occurrenceKey !== undefined){if(typeof data.occurrenceKey !== "string"){const err17 = {instancePath:instancePath+"/occurrenceKey",schemaPath:"#/properties/occurrenceKey/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}if(data.phase !== undefined){let data4 = data.phase;if((typeof data4 !== "string") && (data4 !== null)){const err18 = {instancePath:instancePath+"/phase",schemaPath:"#/$defs/Nullable_string/type",keyword:"type",params:{type: schema55.type},message:"must be string,null"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.questName !== undefined){let data5 = data.questName;if((typeof data5 !== "string") && (data5 !== null)){const err19 = {instancePath:instancePath+"/questName",schemaPath:"#/properties/questName/type",keyword:"type",params:{type: schema53.properties.questName.type},message:"must be string,null"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.questRef !== undefined){if(!(validate28(data.questRef, {instancePath:instancePath+"/questRef",parentData:data,parentDataProperty:"questRef",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate28.errors : vErrors.concat(validate28.errors);errors = vErrors.length;}}if(data.questSourceId !== undefined){if(typeof data.questSourceId !== "string"){const err20 = {instancePath:instancePath+"/questSourceId",schemaPath:"#/properties/questSourceId/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data.requirementKind !== undefined){if(typeof data.requirementKind !== "string"){const err21 = {instancePath:instancePath+"/requirementKind",schemaPath:"#/properties/requirementKind/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data.requirementOrdinal !== undefined){let data9 = data.requirementOrdinal;if(!(((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9))) && (isFinite(data9)))){const err22 = {instancePath:instancePath+"/requirementOrdinal",schemaPath:"#/properties/requirementOrdinal/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if((typeof data9 == "number") && (isFinite(data9))){if(data9 > 9007199254740991 || isNaN(data9)){const err23 = {instancePath:instancePath+"/requirementOrdinal",schemaPath:"#/properties/requirementOrdinal/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data9 < 0 || isNaN(data9)){const err24 = {instancePath:instancePath+"/requirementOrdinal",schemaPath:"#/properties/requirementOrdinal/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}if(data.sourcePath !== undefined){if(typeof data.sourcePath !== "string"){const err25 = {instancePath:instancePath+"/sourcePath",schemaPath:"#/properties/sourcePath/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data.stateKey !== undefined){let data11 = data.stateKey;if(!(((typeof data11 == "number") && (!(data11 % 1) && !isNaN(data11))) && (isFinite(data11)))){const err26 = {instancePath:instancePath+"/stateKey",schemaPath:"#/$defs/SafeInt64/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if((typeof data11 == "number") && (isFinite(data11))){if(data11 > 9007199254740991 || isNaN(data11)){const err27 = {instancePath:instancePath+"/stateKey",schemaPath:"#/$defs/SafeInt64/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data11 < -9007199254740991 || isNaN(data11)){const err28 = {instancePath:instancePath+"/stateKey",schemaPath:"#/$defs/SafeInt64/minimum",keyword:"minimum",params:{comparison: ">=", limit: -9007199254740991},message:"must be >= -9007199254740991"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}}else {const err29 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}validate33.errors = vErrors;return errors === 0;}validate33.evaluated = {"props":{"countGroupId":true,"killCount":true,"memberOrdinal":true,"occurrenceKey":true,"phase":true,"questName":true,"questRef":true,"questSourceId":true,"requirementKind":true,"requirementOrdinal":true,"sourcePath":true,"stateKey":true},"dynamicProps":false,"dynamicItems":false};const schema59 = {"description":"Monster combat and gameplay statistics with `SafeInt64` guarantees.","properties":{"acc":{"$ref":"#/$defs/FactState2","description":"Accuracy rating."},"boss":{"$ref":"#/$defs/FactState3","description":"Whether monster is classified as a boss."},"eva":{"$ref":"#/$defs/FactState2","description":"Evasion rating."},"exp":{"$ref":"#/$defs/FactState2","description":"Exact `monster_version.exp` source value."},"hp":{"$ref":"#/$defs/FactState2","description":"Exact `monster_version.max_hp` source value."},"level":{"$ref":"#/$defs/FactState2","description":"Exact `monster_version.level` source value."},"maDamage":{"$ref":"#/$defs/FactState2","description":"Exact `monster_version.ma_damage` source value."},"mdDamage":{"$ref":"#/$defs/FactState2","description":"Exact `monster_version.md_damage` source value."},"mp":{"$ref":"#/$defs/FactState2","description":"Exact `monster_version.max_mp` source value."},"paDamage":{"$ref":"#/$defs/FactState2","description":"Exact `monster_version.pa_damage` source value; gameplay meaning is\nowned by the normalizer, not inferred here."},"pdDamage":{"$ref":"#/$defs/FactState2","description":"Exact `monster_version.pd_damage` source value."},"pushed":{"$ref":"#/$defs/FactState2","description":"Exact `monster_version.pushed` source value."},"speed":{"$ref":"#/$defs/FactState2","description":"Exact `monster_version.speed` source value."},"undead":{"$ref":"#/$defs/FactState3","description":"Canonical 0/1 undead flag; unsupported raw codes remain unknown."}},"required":["level","hp","mp","exp","paDamage","pdDamage","maDamage","mdDamage","acc","eva","pushed","speed","boss","undead"],"type":"object"};const schema62 = {"description":"State-tagged fact representation according to contracts.md § Shared semantic shapes.","oneOf":[{"description":"Fact is positively known and observed.","properties":{"state":{"const":"known","type":"string"},"value":{"description":"Observed value.","type":"boolean"}},"required":["state","value"],"type":"object"},{"description":"Fact is unobserved or incomplete in upstream source.","properties":{"reason":{"description":"Reason for absence if known.","type":["string","null"]},"state":{"const":"unknown","type":"string"}},"required":["state"],"type":"object"},{"description":"Upstream source capability is unsupported.","properties":{"capability":{"description":"Name of the unsupported capability.","type":"string"},"state":{"const":"unsupported","type":"string"}},"required":["state","capability"],"type":"object"}]};const schema60 = {"description":"State-tagged fact representation according to contracts.md § Shared semantic shapes.","oneOf":[{"description":"Fact is positively known and observed.","properties":{"state":{"const":"known","type":"string"},"value":{"$ref":"#/$defs/SafeInt64","description":"Observed value."}},"required":["state","value"],"type":"object"},{"description":"Fact is unobserved or incomplete in upstream source.","properties":{"reason":{"description":"Reason for absence if known.","type":["string","null"]},"state":{"const":"unknown","type":"string"}},"required":["state"],"type":"object"},{"description":"Upstream source capability is unsupported.","properties":{"capability":{"description":"Name of the unsupported capability.","type":"string"},"state":{"const":"unsupported","type":"string"}},"required":["state","capability"],"type":"object"}]};function validate37(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate37.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err0 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.value === undefined){const err1 = {instancePath,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.state !== undefined){let data0 = data.state;if(typeof data0 !== "string"){const err2 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("known" !== data0){const err3 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/0/properties/state/const",keyword:"const",params:{allowedValue: "known"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.value !== undefined){let data1 = data.value;if(!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))){const err4 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/SafeInt64/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if((typeof data1 == "number") && (isFinite(data1))){if(data1 > 9007199254740991 || isNaN(data1)){const err5 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/SafeInt64/maximum",keyword:"maximum",params:{comparison: "<=", limit: 9007199254740991},message:"must be <= 9007199254740991"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data1 < -9007199254740991 || isNaN(data1)){const err6 = {instancePath:instancePath+"/value",schemaPath:"#/$defs/SafeInt64/minimum",keyword:"minimum",params:{comparison: ">=", limit: -9007199254740991},message:"must be >= -9007199254740991"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}}else {const err7 = {instancePath,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;var props0 = {};props0.state = true;props0.value = true;}const _errs8 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err8 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data.reason !== undefined){let data2 = data.reason;if((typeof data2 !== "string") && (data2 !== null)){const err9 = {instancePath:instancePath+"/reason",schemaPath:"#/oneOf/1/properties/reason/type",keyword:"type",params:{type: schema60.oneOf[1].properties.reason.type},message:"must be string,null"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.state !== undefined){let data3 = data.state;if(typeof data3 !== "string"){const err10 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("unknown" !== data3){const err11 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/1/properties/state/const",keyword:"const",params:{allowedValue: "unknown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}else {const err12 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}var _valid0 = _errs8 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;if(props0 !== true){props0 = props0 || {};props0.reason = true;props0.state = true;}}const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.state === undefined){const err13 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data.capability === undefined){const err14 = {instancePath,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty: "capability"},message:"must have required property '"+"capability"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data.capability !== undefined){if(typeof data.capability !== "string"){const err15 = {instancePath:instancePath+"/capability",schemaPath:"#/oneOf/2/properties/capability/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data.state !== undefined){let data5 = data.state;if(typeof data5 !== "string"){const err16 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if("unsupported" !== data5){const err17 = {instancePath:instancePath+"/state",schemaPath:"#/oneOf/2/properties/state/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}}else {const err18 = {instancePath,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid0 = _errs14 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 2];}else {if(_valid0){valid0 = true;passing0 = 2;if(props0 !== true){props0 = props0 || {};props0.capability = true;props0.state = true;}}}}if(!valid0){const err19 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate37.errors = vErrors;evaluated0.props = props0;return errors === 0;}validate37.evaluated = {"dynamicProps":true,"dynamicItems":false};function validate36(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate36.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.level === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "level"},message:"must have required property '"+"level"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.hp === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "hp"},message:"must have required property '"+"hp"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.mp === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "mp"},message:"must have required property '"+"mp"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.exp === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "exp"},message:"must have required property '"+"exp"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.paDamage === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "paDamage"},message:"must have required property '"+"paDamage"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.pdDamage === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "pdDamage"},message:"must have required property '"+"pdDamage"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data.maDamage === undefined){const err6 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "maDamage"},message:"must have required property '"+"maDamage"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.mdDamage === undefined){const err7 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "mdDamage"},message:"must have required property '"+"mdDamage"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data.acc === undefined){const err8 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "acc"},message:"must have required property '"+"acc"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data.eva === undefined){const err9 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "eva"},message:"must have required property '"+"eva"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.pushed === undefined){const err10 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "pushed"},message:"must have required property '"+"pushed"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data.speed === undefined){const err11 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "speed"},message:"must have required property '"+"speed"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data.boss === undefined){const err12 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "boss"},message:"must have required property '"+"boss"+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(data.undead === undefined){const err13 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "undead"},message:"must have required property '"+"undead"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if(data.acc !== undefined){if(!(validate37(data.acc, {instancePath:instancePath+"/acc",parentData:data,parentDataProperty:"acc",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}}if(data.boss !== undefined){let data1 = data.boss;const _errs4 = errors;let valid2 = false;let passing0 = null;const _errs5 = errors;if(data1 && typeof data1 == "object" && !Array.isArray(data1)){if(data1.state === undefined){const err14 = {instancePath:instancePath+"/boss",schemaPath:"#/$defs/FactState3/oneOf/0/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(data1.value === undefined){const err15 = {instancePath:instancePath+"/boss",schemaPath:"#/$defs/FactState3/oneOf/0/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data1.state !== undefined){let data2 = data1.state;if(typeof data2 !== "string"){const err16 = {instancePath:instancePath+"/boss/state",schemaPath:"#/$defs/FactState3/oneOf/0/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if("known" !== data2){const err17 = {instancePath:instancePath+"/boss/state",schemaPath:"#/$defs/FactState3/oneOf/0/properties/state/const",keyword:"const",params:{allowedValue: "known"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}if(data1.value !== undefined){if(typeof data1.value !== "boolean"){const err18 = {instancePath:instancePath+"/boss/value",schemaPath:"#/$defs/FactState3/oneOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}}else {const err19 = {instancePath:instancePath+"/boss",schemaPath:"#/$defs/FactState3/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}var _valid0 = _errs5 === errors;if(_valid0){valid2 = true;passing0 = 0;var props1 = {};props1.state = true;props1.value = true;}const _errs11 = errors;if(data1 && typeof data1 == "object" && !Array.isArray(data1)){if(data1.state === undefined){const err20 = {instancePath:instancePath+"/boss",schemaPath:"#/$defs/FactState3/oneOf/1/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data1.reason !== undefined){let data4 = data1.reason;if((typeof data4 !== "string") && (data4 !== null)){const err21 = {instancePath:instancePath+"/boss/reason",schemaPath:"#/$defs/FactState3/oneOf/1/properties/reason/type",keyword:"type",params:{type: schema62.oneOf[1].properties.reason.type},message:"must be string,null"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data1.state !== undefined){let data5 = data1.state;if(typeof data5 !== "string"){const err22 = {instancePath:instancePath+"/boss/state",schemaPath:"#/$defs/FactState3/oneOf/1/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("unknown" !== data5){const err23 = {instancePath:instancePath+"/boss/state",schemaPath:"#/$defs/FactState3/oneOf/1/properties/state/const",keyword:"const",params:{allowedValue: "unknown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}else {const err24 = {instancePath:instancePath+"/boss",schemaPath:"#/$defs/FactState3/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}var _valid0 = _errs11 === errors;if(_valid0 && valid2){valid2 = false;passing0 = [passing0, 1];}else {if(_valid0){valid2 = true;passing0 = 1;if(props1 !== true){props1 = props1 || {};props1.reason = true;props1.state = true;}}const _errs17 = errors;if(data1 && typeof data1 == "object" && !Array.isArray(data1)){if(data1.state === undefined){const err25 = {instancePath:instancePath+"/boss",schemaPath:"#/$defs/FactState3/oneOf/2/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(data1.capability === undefined){const err26 = {instancePath:instancePath+"/boss",schemaPath:"#/$defs/FactState3/oneOf/2/required",keyword:"required",params:{missingProperty: "capability"},message:"must have required property '"+"capability"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data1.capability !== undefined){if(typeof data1.capability !== "string"){const err27 = {instancePath:instancePath+"/boss/capability",schemaPath:"#/$defs/FactState3/oneOf/2/properties/capability/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data1.state !== undefined){let data7 = data1.state;if(typeof data7 !== "string"){const err28 = {instancePath:instancePath+"/boss/state",schemaPath:"#/$defs/FactState3/oneOf/2/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("unsupported" !== data7){const err29 = {instancePath:instancePath+"/boss/state",schemaPath:"#/$defs/FactState3/oneOf/2/properties/state/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}else {const err30 = {instancePath:instancePath+"/boss",schemaPath:"#/$defs/FactState3/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid0 = _errs17 === errors;if(_valid0 && valid2){valid2 = false;passing0 = [passing0, 2];}else {if(_valid0){valid2 = true;passing0 = 2;if(props1 !== true){props1 = props1 || {};props1.capability = true;props1.state = true;}}}}if(!valid2){const err31 = {instancePath:instancePath+"/boss",schemaPath:"#/$defs/FactState3/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {errors = _errs4;if(vErrors !== null){if(_errs4){vErrors.length = _errs4;}else {vErrors = null;}}}}if(data.eva !== undefined){if(!(validate37(data.eva, {instancePath:instancePath+"/eva",parentData:data,parentDataProperty:"eva",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}}if(data.exp !== undefined){if(!(validate37(data.exp, {instancePath:instancePath+"/exp",parentData:data,parentDataProperty:"exp",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}}if(data.hp !== undefined){if(!(validate37(data.hp, {instancePath:instancePath+"/hp",parentData:data,parentDataProperty:"hp",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}}if(data.level !== undefined){if(!(validate37(data.level, {instancePath:instancePath+"/level",parentData:data,parentDataProperty:"level",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}}if(data.maDamage !== undefined){if(!(validate37(data.maDamage, {instancePath:instancePath+"/maDamage",parentData:data,parentDataProperty:"maDamage",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}}if(data.mdDamage !== undefined){if(!(validate37(data.mdDamage, {instancePath:instancePath+"/mdDamage",parentData:data,parentDataProperty:"mdDamage",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}}if(data.mp !== undefined){if(!(validate37(data.mp, {instancePath:instancePath+"/mp",parentData:data,parentDataProperty:"mp",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}}if(data.paDamage !== undefined){if(!(validate37(data.paDamage, {instancePath:instancePath+"/paDamage",parentData:data,parentDataProperty:"paDamage",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}}if(data.pdDamage !== undefined){if(!(validate37(data.pdDamage, {instancePath:instancePath+"/pdDamage",parentData:data,parentDataProperty:"pdDamage",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}}if(data.pushed !== undefined){if(!(validate37(data.pushed, {instancePath:instancePath+"/pushed",parentData:data,parentDataProperty:"pushed",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}}if(data.speed !== undefined){if(!(validate37(data.speed, {instancePath:instancePath+"/speed",parentData:data,parentDataProperty:"speed",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate37.errors : vErrors.concat(validate37.errors);errors = vErrors.length;}}if(data.undead !== undefined){let data19 = data.undead;const _errs36 = errors;let valid7 = false;let passing1 = null;const _errs37 = errors;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if(data19.state === undefined){const err32 = {instancePath:instancePath+"/undead",schemaPath:"#/$defs/FactState3/oneOf/0/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(data19.value === undefined){const err33 = {instancePath:instancePath+"/undead",schemaPath:"#/$defs/FactState3/oneOf/0/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data19.state !== undefined){let data20 = data19.state;if(typeof data20 !== "string"){const err34 = {instancePath:instancePath+"/undead/state",schemaPath:"#/$defs/FactState3/oneOf/0/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("known" !== data20){const err35 = {instancePath:instancePath+"/undead/state",schemaPath:"#/$defs/FactState3/oneOf/0/properties/state/const",keyword:"const",params:{allowedValue: "known"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data19.value !== undefined){if(typeof data19.value !== "boolean"){const err36 = {instancePath:instancePath+"/undead/value",schemaPath:"#/$defs/FactState3/oneOf/0/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}else {const err37 = {instancePath:instancePath+"/undead",schemaPath:"#/$defs/FactState3/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var _valid1 = _errs37 === errors;if(_valid1){valid7 = true;passing1 = 0;var props13 = {};props13.state = true;props13.value = true;}const _errs43 = errors;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if(data19.state === undefined){const err38 = {instancePath:instancePath+"/undead",schemaPath:"#/$defs/FactState3/oneOf/1/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(data19.reason !== undefined){let data22 = data19.reason;if((typeof data22 !== "string") && (data22 !== null)){const err39 = {instancePath:instancePath+"/undead/reason",schemaPath:"#/$defs/FactState3/oneOf/1/properties/reason/type",keyword:"type",params:{type: schema62.oneOf[1].properties.reason.type},message:"must be string,null"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data19.state !== undefined){let data23 = data19.state;if(typeof data23 !== "string"){const err40 = {instancePath:instancePath+"/undead/state",schemaPath:"#/$defs/FactState3/oneOf/1/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if("unknown" !== data23){const err41 = {instancePath:instancePath+"/undead/state",schemaPath:"#/$defs/FactState3/oneOf/1/properties/state/const",keyword:"const",params:{allowedValue: "unknown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}else {const err42 = {instancePath:instancePath+"/undead",schemaPath:"#/$defs/FactState3/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}var _valid1 = _errs43 === errors;if(_valid1 && valid7){valid7 = false;passing1 = [passing1, 1];}else {if(_valid1){valid7 = true;passing1 = 1;if(props13 !== true){props13 = props13 || {};props13.reason = true;props13.state = true;}}const _errs49 = errors;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if(data19.state === undefined){const err43 = {instancePath:instancePath+"/undead",schemaPath:"#/$defs/FactState3/oneOf/2/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(data19.capability === undefined){const err44 = {instancePath:instancePath+"/undead",schemaPath:"#/$defs/FactState3/oneOf/2/required",keyword:"required",params:{missingProperty: "capability"},message:"must have required property '"+"capability"+"'"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(data19.capability !== undefined){if(typeof data19.capability !== "string"){const err45 = {instancePath:instancePath+"/undead/capability",schemaPath:"#/$defs/FactState3/oneOf/2/properties/capability/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}if(data19.state !== undefined){let data25 = data19.state;if(typeof data25 !== "string"){const err46 = {instancePath:instancePath+"/undead/state",schemaPath:"#/$defs/FactState3/oneOf/2/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("unsupported" !== data25){const err47 = {instancePath:instancePath+"/undead/state",schemaPath:"#/$defs/FactState3/oneOf/2/properties/state/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}}else {const err48 = {instancePath:instancePath+"/undead",schemaPath:"#/$defs/FactState3/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}var _valid1 = _errs49 === errors;if(_valid1 && valid7){valid7 = false;passing1 = [passing1, 2];}else {if(_valid1){valid7 = true;passing1 = 2;if(props13 !== true){props13 = props13 || {};props13.capability = true;props13.state = true;}}}}if(!valid7){const err49 = {instancePath:instancePath+"/undead",schemaPath:"#/$defs/FactState3/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}else {errors = _errs36;if(vErrors !== null){if(_errs36){vErrors.length = _errs36;}else {vErrors = null;}}}}}else {const err50 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}validate36.errors = vErrors;return errors === 0;}validate36.evaluated = {"props":{"acc":true,"boss":true,"eva":true,"exp":true,"hp":true,"level":true,"maDamage":true,"mdDamage":true,"mp":true,"paDamage":true,"pdDamage":true,"pushed":true,"speed":true,"undead":true},"dynamicProps":false,"dynamicItems":false};function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate20.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.format === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "format"},message:"must have required property '"+"format"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.contractVersion === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "contractVersion"},message:"must have required property '"+"contractVersion"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.scope === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "scope"},message:"must have required property '"+"scope"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.key === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "key"},message:"must have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.sourceIdentity === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "sourceIdentity"},message:"must have required property '"+"sourceIdentity"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.name === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}if(data.stats === undefined){const err6 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "stats"},message:"must have required property '"+"stats"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.locations === undefined){const err7 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "locations"},message:"must have required property '"+"locations"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(data.drops === undefined){const err8 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "drops"},message:"must have required property '"+"drops"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}if(data.quests === undefined){const err9 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "quests"},message:"must have required property '"+"quests"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.elements === undefined){const err10 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "elements"},message:"must have required property '"+"elements"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data.contractVersion !== undefined){let data0 = data.contractVersion;if(typeof data0 === "string"){if(!pattern4.test(data0)){const err11 = {instancePath:instancePath+"/contractVersion",schemaPath:"#/properties/contractVersion/pattern",keyword:"pattern",params:{pattern: "^1\\.(0|[1-9][0-9]*)$"},message:"must match pattern \""+"^1\\.(0|[1-9][0-9]*)$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/contractVersion",schemaPath:"#/properties/contractVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data.dropPages !== undefined){let data1 = data.dropPages;const _errs4 = errors;let valid1 = false;const _errs5 = errors;if(!(validate21(data1, {instancePath:instancePath+"/dropPages",parentData:data,parentDataProperty:"dropPages",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}var _valid0 = _errs5 === errors;valid1 = valid1 || _valid0;if(_valid0){var props0 = {};props0.coverage = true;props0.mapCount = true;props0.observedCount = true;props0.pages = true;}const _errs6 = errors;if(data1 !== null){const err13 = {instancePath:instancePath+"/dropPages",schemaPath:"#/properties/dropPages/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var _valid0 = _errs6 === errors;valid1 = valid1 || _valid0;if(!valid1){const err14 = {instancePath:instancePath+"/dropPages",schemaPath:"#/properties/dropPages/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}else {errors = _errs4;if(vErrors !== null){if(_errs4){vErrors.length = _errs4;}else {vErrors = null;}}}}if(data.drops !== undefined){let data2 = data.drops;if(Array.isArray(data2)){const len0 = data2.length;for(let i0=0; i0<len0; i0++){if(!(validate23(data2[i0], {instancePath:instancePath+"/drops/" + i0,parentData:data2,parentDataProperty:i0,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate23.errors : vErrors.concat(validate23.errors);errors = vErrors.length;}}}else {const err15 = {instancePath:instancePath+"/drops",schemaPath:"#/properties/drops/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data.elements !== undefined){let data4 = data.elements;if(Array.isArray(data4)){const len1 = data4.length;for(let i1=0; i1<len1; i1++){if(typeof data4[i1] !== "string"){const err16 = {instancePath:instancePath+"/elements/" + i1,schemaPath:"#/properties/elements/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath:instancePath+"/elements",schemaPath:"#/properties/elements/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}if(data.format !== undefined){let data6 = data.format;if(typeof data6 !== "string"){const err18 = {instancePath:instancePath+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if("mapletip.monster-detail" !== data6){const err19 = {instancePath:instancePath+"/format",schemaPath:"#/properties/format/const",keyword:"const",params:{allowedValue: "mapletip.monster-detail"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.key !== undefined){if(typeof data.key !== "string"){const err20 = {instancePath:instancePath+"/key",schemaPath:"#/properties/key/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data.locations !== undefined){if(!(validate21(data.locations, {instancePath:instancePath+"/locations",parentData:data,parentDataProperty:"locations",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}}if(data.name !== undefined){let data9 = data.name;const _errs22 = errors;let valid7 = false;let passing0 = null;const _errs23 = errors;if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.state === undefined){const err21 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/FactState/oneOf/0/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(data9.value === undefined){const err22 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/FactState/oneOf/0/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(data9.state !== undefined){let data10 = data9.state;if(typeof data10 !== "string"){const err23 = {instancePath:instancePath+"/name/state",schemaPath:"#/$defs/FactState/oneOf/0/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if("known" !== data10){const err24 = {instancePath:instancePath+"/name/state",schemaPath:"#/$defs/FactState/oneOf/0/properties/state/const",keyword:"const",params:{allowedValue: "known"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data9.value !== undefined){if(typeof data9.value !== "string"){const err25 = {instancePath:instancePath+"/name/value",schemaPath:"#/$defs/FactState/oneOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}}else {const err26 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/FactState/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}var _valid1 = _errs23 === errors;if(_valid1){valid7 = true;passing0 = 0;var props1 = {};props1.state = true;props1.value = true;}const _errs29 = errors;if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.state === undefined){const err27 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/FactState/oneOf/1/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data9.reason !== undefined){let data12 = data9.reason;if((typeof data12 !== "string") && (data12 !== null)){const err28 = {instancePath:instancePath+"/name/reason",schemaPath:"#/$defs/FactState/oneOf/1/properties/reason/type",keyword:"type",params:{type: schema52.oneOf[1].properties.reason.type},message:"must be string,null"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data9.state !== undefined){let data13 = data9.state;if(typeof data13 !== "string"){const err29 = {instancePath:instancePath+"/name/state",schemaPath:"#/$defs/FactState/oneOf/1/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("unknown" !== data13){const err30 = {instancePath:instancePath+"/name/state",schemaPath:"#/$defs/FactState/oneOf/1/properties/state/const",keyword:"const",params:{allowedValue: "unknown"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}}else {const err31 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/FactState/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var _valid1 = _errs29 === errors;if(_valid1 && valid7){valid7 = false;passing0 = [passing0, 1];}else {if(_valid1){valid7 = true;passing0 = 1;if(props1 !== true){props1 = props1 || {};props1.reason = true;props1.state = true;}}const _errs35 = errors;if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.state === undefined){const err32 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/FactState/oneOf/2/required",keyword:"required",params:{missingProperty: "state"},message:"must have required property '"+"state"+"'"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if(data9.capability === undefined){const err33 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/FactState/oneOf/2/required",keyword:"required",params:{missingProperty: "capability"},message:"must have required property '"+"capability"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data9.capability !== undefined){if(typeof data9.capability !== "string"){const err34 = {instancePath:instancePath+"/name/capability",schemaPath:"#/$defs/FactState/oneOf/2/properties/capability/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(data9.state !== undefined){let data15 = data9.state;if(typeof data15 !== "string"){const err35 = {instancePath:instancePath+"/name/state",schemaPath:"#/$defs/FactState/oneOf/2/properties/state/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("unsupported" !== data15){const err36 = {instancePath:instancePath+"/name/state",schemaPath:"#/$defs/FactState/oneOf/2/properties/state/const",keyword:"const",params:{allowedValue: "unsupported"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}else {const err37 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/FactState/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var _valid1 = _errs35 === errors;if(_valid1 && valid7){valid7 = false;passing0 = [passing0, 2];}else {if(_valid1){valid7 = true;passing0 = 2;if(props1 !== true){props1 = props1 || {};props1.capability = true;props1.state = true;}}}}if(!valid7){const err38 = {instancePath:instancePath+"/name",schemaPath:"#/$defs/FactState/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {errors = _errs22;if(vErrors !== null){if(_errs22){vErrors.length = _errs22;}else {vErrors = null;}}}}if(data.questPages !== undefined){let data16 = data.questPages;const _errs42 = errors;let valid11 = false;const _errs43 = errors;if(!(validate21(data16, {instancePath:instancePath+"/questPages",parentData:data,parentDataProperty:"questPages",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);errors = vErrors.length;}var _valid2 = _errs43 === errors;valid11 = valid11 || _valid2;if(_valid2){var props2 = {};props2.coverage = true;props2.mapCount = true;props2.observedCount = true;props2.pages = true;}const _errs44 = errors;if(data16 !== null){const err39 = {instancePath:instancePath+"/questPages",schemaPath:"#/properties/questPages/anyOf/1/type",keyword:"type",params:{type: "null"},message:"must be null"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}var _valid2 = _errs44 === errors;valid11 = valid11 || _valid2;if(!valid11){const err40 = {instancePath:instancePath+"/questPages",schemaPath:"#/properties/questPages/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}else {errors = _errs42;if(vErrors !== null){if(_errs42){vErrors.length = _errs42;}else {vErrors = null;}}}}if(data.quests !== undefined){let data17 = data.quests;if(Array.isArray(data17)){const len2 = data17.length;for(let i2=0; i2<len2; i2++){if(!(validate33(data17[i2], {instancePath:instancePath+"/quests/" + i2,parentData:data17,parentDataProperty:i2,rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate33.errors : vErrors.concat(validate33.errors);errors = vErrors.length;}}}else {const err41 = {instancePath:instancePath+"/quests",schemaPath:"#/properties/quests/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data.scope !== undefined){let data19 = data.scope;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if(data19.family_id === undefined){const err42 = {instancePath:instancePath+"/scope",schemaPath:"#/$defs/BuildScope/required",keyword:"required",params:{missingProperty: "family_id"},message:"must have required property '"+"family_id"+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}if(data19.build_id === undefined){const err43 = {instancePath:instancePath+"/scope",schemaPath:"#/$defs/BuildScope/required",keyword:"required",params:{missingProperty: "build_id"},message:"must have required property '"+"build_id"+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(data19.build_id !== undefined){if(typeof data19.build_id !== "string"){const err44 = {instancePath:instancePath+"/scope/build_id",schemaPath:"#/$defs/BuildScope/properties/build_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data19.family_id !== undefined){if(typeof data19.family_id !== "string"){const err45 = {instancePath:instancePath+"/scope/family_id",schemaPath:"#/$defs/BuildScope/properties/family_id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}else {const err46 = {instancePath:instancePath+"/scope",schemaPath:"#/$defs/BuildScope/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}if(data.sourceIdentity !== undefined){let data22 = data.sourceIdentity;if(data22 && typeof data22 == "object" && !Array.isArray(data22)){if(data22.id === undefined){const err47 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/$defs/SourceIdentity/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}if(data22.discriminator !== undefined){let data23 = data22.discriminator;if((typeof data23 !== "string") && (data23 !== null)){const err48 = {instancePath:instancePath+"/sourceIdentity/discriminator",schemaPath:"#/$defs/SourceIdentity/properties/discriminator/type",keyword:"type",params:{type: schema40.properties.discriminator.type},message:"must be string,null"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data22.id !== undefined){let data24 = data22.id;if(typeof data24 === "string"){if(func1(data24) < 1){const err49 = {instancePath:instancePath+"/sourceIdentity/id",schemaPath:"#/$defs/SourceIdentity/properties/id/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}else {const err50 = {instancePath:instancePath+"/sourceIdentity/id",schemaPath:"#/$defs/SourceIdentity/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data22.namespace !== undefined){let data25 = data22.namespace;if((typeof data25 !== "string") && (data25 !== null)){const err51 = {instancePath:instancePath+"/sourceIdentity/namespace",schemaPath:"#/$defs/SourceIdentity/properties/namespace/type",keyword:"type",params:{type: schema40.properties.namespace.type},message:"must be string,null"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}else {const err52 = {instancePath:instancePath+"/sourceIdentity",schemaPath:"#/$defs/SourceIdentity/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}if(data.stats !== undefined){if(!(validate36(data.stats, {instancePath:instancePath+"/stats",parentData:data,parentDataProperty:"stats",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate36.errors : vErrors.concat(validate36.errors);errors = vErrors.length;}}}else {const err53 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}validate20.errors = vErrors;return errors === 0;}validate20.evaluated = {"props":{"contractVersion":true,"dropPages":true,"drops":true,"elements":true,"format":true,"key":true,"locations":true,"name":true,"questPages":true,"quests":true,"scope":true,"sourceIdentity":true,"stats":true},"dynamicProps":false,"dynamicItems":false};
|