diff --git a/antlr/src/main/antlr/FSH.g4 b/antlr/src/main/antlr/FSH.g4 index 248b8fa00..d919d1f69 100644 --- a/antlr/src/main/antlr/FSH.g4 +++ b/antlr/src/main/antlr/FSH.g4 @@ -101,8 +101,9 @@ vsComponent: STAR ( KW_INCLUDE | KW_EXCLUDE )? ( vsConceptComponent | vsF vsConceptComponent: code vsComponentFrom?; vsFilterComponent: KW_CODES vsComponentFrom (KW_WHERE vsFilterList)?; vsComponentFrom: KW_FROM (vsFromSystem (KW_AND vsFromValueset)? | vsFromValueset (KW_AND vsFromSystem)?); -vsFromSystem: KW_SYSTEM name; -vsFromValueset: KW_VSREFERENCE name (KW_AND name)*; +vsFromSystem: KW_SYSTEM vsFromTarget; +vsFromValueset: KW_VSREFERENCE vsFromTarget (KW_AND vsFromTarget)*; +vsFromTarget: (name | CODE); vsFilterList: vsFilterDefinition (KW_AND vsFilterDefinition)*; vsFilterDefinition: name vsFilterOperator vsFilterValue?; vsFilterOperator: EQUAL | SEQUENCE; diff --git a/src/export/InstanceExporter.ts b/src/export/InstanceExporter.ts index bccc074cb..b3d433271 100644 --- a/src/export/InstanceExporter.ts +++ b/src/export/InstanceExporter.ts @@ -1,6 +1,6 @@ import { FSHTank } from '../import/FSHTank'; import { StructureDefinition, InstanceDefinition, ElementDefinition, PathPart } from '../fhirtypes'; -import { FshCanonical, Instance, SourceInfo } from '../fshtypes'; +import { FshCanonical, FshReference, FshCode, Instance, SourceInfo } from '../fshtypes'; import { logger, Fishable, @@ -24,7 +24,8 @@ import { determineKnownSlices, setImpliedPropertiesOnInstance, getMatchingContainedReferenceId, - checkForMultipleChoice + checkForMultipleChoice, + getMatchingContainedReferenceInfo } from '../fhirtypes/common'; import { InstanceOfNotDefinedError } from '../errors/InstanceOfNotDefinedError'; import { AbstractInstanceOfError } from '../errors/AbstractInstanceOfError'; @@ -105,9 +106,12 @@ export class InstanceExporter implements Fishable { rules.forEach(r => { r.path = r.path.replace(/\[0+\]/g, ''); }); - rules = rules.map(r => - r instanceof PathRule ? r : replaceReferences(r, this.tank, this.fisher) - ); + // rules = rules.map(r => + // r instanceof PathRule ? r : replaceReferences(r, this.tank, this.fisher) + // ); + // maybe i replace the reference later? and maybe replaceReferences needs to know about contained resources + // or maybe we want a separate check before replaceReferences that looks in contained resources + // Convert strings in AssignmentRules to instances rules = rules.filter(r => { if (r instanceof AssignmentRule && r.isInstance) { @@ -173,20 +177,48 @@ export class InstanceExporter implements Fishable { > = new Map(); // Keep track specifically of the rules on contained (path could be contained[index], contained.some-path, or contained) const containedRules: { pathParts: PathPart[]; assignedValue: any }[] = []; + // Keep track specifically of the rules on contained.resourceType + const containedResourceTypes: { pathParts: PathPart[]; assignedValue: any }[] = []; rules.forEach(rule => { const inlineResourceTypes: string[] = []; // define function that will be re-used in attempting to assign a value or inline instance const doRuleValidation = (value: AssignmentValueType) => { // Before validating the rule, check if the Canonical keyword was used to reference a contained value set - if (value instanceof FshCanonical) { - const entityName = value.entityName; + if (rule instanceof AssignmentRule && value instanceof FshCanonical) { + // there may be a leading # for a local reference + let entityName = value.entityName; + if (entityName.startsWith('#')) { + entityName = entityName.slice(1); + } const matchingContainedReferenceId = getMatchingContainedReferenceId( entityName, containedRules ); if (matchingContainedReferenceId) { value = `#${matchingContainedReferenceId}`; + } else { + value = replaceReferences(rule, this.tank, this.fisher).value; + } + } else if (rule instanceof AssignmentRule && value instanceof FshReference) { + let foundLocalReference = false; + if (value.reference.startsWith('#')) { + // local reference + const matchingContainedInfo = getMatchingContainedReferenceInfo( + value.reference.slice(1), + containedRules, + containedResourceTypes + ); + if (matchingContainedInfo) { + foundLocalReference = true; + value.reference = `#${matchingContainedInfo.id}`; + value.sdType = matchingContainedInfo.sdType; + } + } + if (!foundLocalReference) { + value = replaceReferences(rule, this.tank, this.fisher).value; } + } else if (rule instanceof AssignmentRule && rule.value instanceof FshCode) { + value = replaceReferences(rule, this.tank, this.fisher).value; } const validatedRule = instanceOfStructureDefinition.validateValueAtPath( rule.path, @@ -218,8 +250,11 @@ export class InstanceExporter implements Fishable { }); // Check if the rule we just validated was at a valid contained path to keep track for resolving Canonical references // Only check if the rule was a directly contained resources (aka 'contained' or 'contained.name/url/id', optionally with slice names or indices) + // we also track rules on resourceType to help resolve Reference keywords. if (/^contained(\[[^\]]+\])*(\.url|\.name|\.id)?$/.test(rule.path)) { containedRules.push(validatedRule); + } else if (/^contained(\[[^\]]+\])*\.resourceType$/.test(rule.path)) { + containedResourceTypes.push(validatedRule); } } }; diff --git a/src/export/StructureDefinitionExporter.ts b/src/export/StructureDefinitionExporter.ts index 402dc70c0..f820e26f5 100644 --- a/src/export/StructureDefinitionExporter.ts +++ b/src/export/StructureDefinitionExporter.ts @@ -1,4 +1,4 @@ -import { isEmpty, padEnd } from 'lodash'; +import { cloneDeep, isEmpty, padEnd } from 'lodash'; import { ElementDefinition, ElementDefinitionBindingStrength, @@ -6,7 +6,8 @@ import { InstanceDefinition, StructureDefinition, CodeSystem, - Resource as FhirResource + Resource as FhirResource, + PathPart } from '../fhirtypes'; import { Extension, @@ -18,7 +19,9 @@ import { Instance, FshCode, FshEntity, - ExtensionContext + ExtensionContext, + FshCanonical, + FshReference } from '../fshtypes'; import { FSHTank } from '../import'; import { InstanceExporter } from '../export'; @@ -54,7 +57,8 @@ import { fishForFHIRBestVersion, Metadata, MasterFisher, - resolveSoftIndexing + resolveSoftIndexing, + parseFSHPath } from '../utils'; import { applyInsertRules, @@ -68,7 +72,9 @@ import { TYPE_CHARACTERISTICS_CODE, TYPE_CHARACTERISTICS_EXTENSION, LOGICAL_TARGET_EXTENSION, - checkForMultipleChoice + checkForMultipleChoice, + getMatchingContainedReferenceId, + getMatchingContainedReferenceInfo } from '../fhirtypes/common'; import { Package } from './Package'; import { isUri } from 'valid-url'; @@ -731,6 +737,10 @@ export class StructureDefinitionExporter implements Fishable { // therefore, rules that assign values within those instances must also be deferred. const directResourcePaths: string[] = []; const inlineResourcePaths: { path: string; caretPath: string; instanceOf: string }[] = []; + // Keep track specifically of the rules on contained (path could be contained[index], contained.some-path, or contained) + const containedRules: { pathParts: PathPart[]; assignedValue: any }[] = []; + // Keep track specifically of the rules on contained.resourceType + const containedResourceTypes: { pathParts: PathPart[]; assignedValue: any }[] = []; // first, collect the information we can from rules that set a resourceType // if instances are directly assigned, we'll get information from them when we fish up the instance. rules @@ -832,7 +842,43 @@ export class StructureDefinitionExporter implements Fishable { } rule.value = instance; } - const replacedRule = replaceReferences(rule, this.tank, this); + let replacedRule: AssignmentRule; + if (rule.value instanceof FshCanonical) { + let entityName = rule.value.entityName; + // if we're trying to get the canonical using a fragment, + // this means the target could be a contained resource. + if (entityName.startsWith('#')) { + entityName = entityName.slice(1); + } + const matchingContainedReferenceId = getMatchingContainedReferenceId( + entityName, + containedRules + ); + if (matchingContainedReferenceId) { + replacedRule = cloneDeep(rule); + replacedRule.value = `#${matchingContainedReferenceId}`; + } else { + replacedRule = replaceReferences(rule, this.tank, this); + } + } else if (rule.value instanceof FshReference) { + if (rule.value.reference.startsWith('#')) { + const matchingContainedInfo = getMatchingContainedReferenceInfo( + rule.value.reference.slice(1), + containedRules, + containedResourceTypes + ); + if (matchingContainedInfo) { + replacedRule = cloneDeep(rule); + (replacedRule.value as FshReference).reference = `#${matchingContainedInfo.id}`; + (replacedRule.value as FshReference).sdType = matchingContainedInfo.sdType; + } + } + if (!replacedRule) { + replacedRule = replaceReferences(rule, this.tank, this); + } + } else { + replacedRule = replaceReferences(rule, this.tank, this); + } try { element.assignValue(replacedRule.value, replacedRule.exactly, this); } catch (originalErr) { @@ -948,7 +994,46 @@ export class StructureDefinitionExporter implements Fishable { }); } } else if (rule instanceof CaretValueRule) { - const replacedRule = replaceReferences(rule, this.tank, this); + // instead of replacing references immediately, we have to + // take into account fragment references + let replacedRule: CaretValueRule; + if (rule.value instanceof FshCanonical) { + let entityName = rule.value.entityName; + // if we're trying to get the canonical using a fragment, + // this means the target could be a contained resource. + if (entityName.startsWith('#')) { + entityName = entityName.slice(1); + } + const matchingContainedReferenceId = getMatchingContainedReferenceId( + entityName, + containedRules + ); + if (matchingContainedReferenceId) { + replacedRule = cloneDeep(rule); + replacedRule.value = `#${matchingContainedReferenceId}`; + } else { + replacedRule = replaceReferences(rule, this.tank, this); + } + } else if (rule.value instanceof FshReference) { + if (rule.value.reference.startsWith('#')) { + const matchingContainedInfo = getMatchingContainedReferenceInfo( + rule.value.reference.slice(1), + containedRules, + containedResourceTypes + ); + if (matchingContainedInfo) { + replacedRule = cloneDeep(rule); + (replacedRule.value as FshReference).reference = `#${matchingContainedInfo.id}`; + (replacedRule.value as FshReference).sdType = matchingContainedInfo.sdType; + } + } + if (!replacedRule) { + replacedRule = replaceReferences(rule, this.tank, this); + } + } else { + replacedRule = replaceReferences(rule, this.tank, this); + } + if (replacedRule.path !== '') { element.setInstancePropertyByPath(replacedRule.caretPath, replacedRule.value, this); } else { @@ -979,6 +1064,19 @@ export class StructureDefinitionExporter implements Fishable { return replacedRule.caretPath.startsWith(`${i}.`); }); if (replacedRule.isInstance) { + // if this is assigning a contained resource, + // get its metadata for help in resolving fragment references. + if ( + /^contained(\[[^\]]+\])*$/.test(rule.caretPath) && + typeof replacedRule.value === 'string' + ) { + const assignmentMeta = this.tank.fishForMetadata(replacedRule.value); + containedRules.push({ + pathParts: parseFSHPath(rule.caretPath), + assignedValue: assignmentMeta + }); + } + if (this.deferredCaretRules.has(structDef)) { this.deferredCaretRules .get(structDef) @@ -998,6 +1096,21 @@ export class StructureDefinitionExporter implements Fishable { this.deferredCaretRules.set(structDef, [{ rule: replacedRule, tryFish: false }]); } } else { + // if this is assigning id, name, url, or resourceType of a contained resource, + // record it to use when resolving references. + if (/^contained(\[[^\]]+\])*(\.url|\.name|\.id)$/.test(rule.caretPath)) { + containedRules.push({ + pathParts: parseFSHPath(rule.caretPath), + assignedValue: rule.value + }); + // containedRules.push(replacedRule); + } else if (/^contained(\[[^\]]+\])*\.resourceType$/.test(rule.caretPath)) { + // containedResourceTypes.push(replacedRule); + containedResourceTypes.push({ + pathParts: parseFSHPath(rule.caretPath), + assignedValue: rule.value + }); + } try { structDef.setInstancePropertyByPath( replacedRule.caretPath, diff --git a/src/export/ValueSetExporter.ts b/src/export/ValueSetExporter.ts index 2ec0b1c17..6f574cab5 100644 --- a/src/export/ValueSetExporter.ts +++ b/src/export/ValueSetExporter.ts @@ -73,8 +73,15 @@ export class ValueSetExporter { components.forEach(component => { const composeElement: ValueSetComposeIncludeOrExclude = {}; if (component.from.system) { - const systemParts = component.from.system.split('|'); - const csMetadata = this.fisher.fishForMetadata(component.from.system, Type.CodeSystem); + let isFragmentReference = false; + let systemReference = component.from.system; + if (systemReference.startsWith('#')) { + isFragmentReference = true; + systemReference = systemReference.slice(1); + } + const systemParts = systemReference.split('|'); + + const csMetadata = this.fisher.fishForMetadata(systemReference, Type.CodeSystem); // if we found metadata, use it. // if we didn't find any matching metadata, the code system might be defined directly on the valueset. let isContainedSystem: boolean; @@ -90,9 +97,9 @@ export class ValueSetExporter { } else { const directSystem: any = valueSet.contained?.find((resource: any) => { return ( - (resource?.id === component.from.system || - resource?.name === component.from.system || - resource?.url === component.from.system) && + (resource?.id === systemReference || + resource?.name === systemReference || + resource?.url === systemReference) && resource?.resourceType === 'CodeSystem' ); }); @@ -124,6 +131,10 @@ export class ValueSetExporter { component.sourceInfo ); return; + } else if (isFragmentReference) { + logger.warn( + `CodeSystem ${component.from.system} is referenced using a fragment, but is not contained. It should be referenced by id, name, or url.` + ); } // if the rule specified a version, use that version. diff --git a/src/fhirtypes/common.ts b/src/fhirtypes/common.ts index 45119bd31..5172e7033 100644 --- a/src/fhirtypes/common.ts +++ b/src/fhirtypes/common.ts @@ -1709,3 +1709,61 @@ function checkChildrenForMultipleChoice( } }); } +// Used to check if the entity used in Reference() references a contained resource. +// Checks a list of validated rules at any contained path for a matching value from the +// Reference() keyword and returns the matching resource's id and sdType. +export function getMatchingContainedReferenceInfo( + value: string, + containedResources: { pathParts: PathPart[]; assignedValue: any }[], + containedResourceTypes: { pathParts: PathPart[]; assignedValue: any }[] +): { id: string; sdType: string } { + const matchingContainedResource = containedResources.find( + r => + r.assignedValue?.url === value || + r.assignedValue?.name === value || + r.assignedValue?.id === value + ); + if (matchingContainedResource != null) { + return { + id: matchingContainedResource.assignedValue.id, + sdType: matchingContainedResource.assignedValue.resourceType + }; + } + + const matchingContainedResourceId = containedResources.find( + r => r.pathParts.slice(-1)[0].base === 'id' && r.assignedValue === value + ); + const matchingContainedResourceName = containedResources.find( + r => r.pathParts.slice(-1)[0].base === 'name' && r.assignedValue === value + ); + const matchingContainedResourceUrl = containedResources.find( + r => r.pathParts.slice(-1)[0].base === 'url' && r.assignedValue === value + ); + + if ( + matchingContainedResourceId || + matchingContainedResourceName || + matchingContainedResourceUrl + ) { + const pathParts = + matchingContainedResourceId?.pathParts ?? + matchingContainedResourceName?.pathParts ?? + matchingContainedResourceUrl?.pathParts; + const containedResourceId = containedResources.find( + r => + r.pathParts.slice(-1)[0].base === 'id' && + isEqual(r.pathParts.slice(0, -1), pathParts.slice(0, -1)) + ); + const containedResourceType = containedResourceTypes.find( + r => + r.pathParts.slice(-1)[0].base === 'resourceType' && + isEqual(r.pathParts.slice(0, -1), pathParts.slice(0, -1)) + ); + if (containedResourceId && containedResourceType) { + return { + id: containedResourceId.assignedValue, + sdType: containedResourceType.assignedValue + }; + } + } +} diff --git a/src/import/FSHImporter.ts b/src/import/FSHImporter.ts index 96c00d7e1..1adbadfa1 100644 --- a/src/import/FSHImporter.ts +++ b/src/import/FSHImporter.ts @@ -1486,7 +1486,23 @@ export class FSHImporter extends FSHVisitor { } if (ctx.code()) { - return this.visitCode(ctx.code()); + // a Reference or Canonical with a fragment may appear as a code token. + const code = this.visitCode(ctx.code()); + if (code.system === 'Reference(') { + const reference = new FshReference(`#${code.code.replace(/\s*\)$/, '')}`) + .withFile(code.sourceInfo.file) + .withLocation(code.sourceInfo.location); + if (code.display) { + reference.display = code.display; + } + return reference; + } else if (code.system === 'Canonical(') { + const canonical = new FshCanonical(`#${code.code.replace(/\s*\)$/, '')}`) + .withFile(code.sourceInfo.file) + .withLocation(code.sourceInfo.location); + return canonical; + } + return code; } if (ctx.quantity()) { @@ -2163,19 +2179,28 @@ export class FSHImporter extends FSHVisitor { visitVsComponentFrom(ctx: pc.VsComponentFromContext): ValueSetComponentFrom { const from: ValueSetComponentFrom = {}; if (ctx.vsFromSystem()) { - from.system = this.aliasAwareValue(ctx.vsFromSystem().name()); + from.system = this.visitVsFromTarget(ctx.vsFromSystem().vsFromTarget()); } if (ctx.vsFromValueset()) { - if (ctx.vsFromValueset().name().length > 0) { + if (ctx.vsFromValueset().vsFromTarget().length > 0) { from.valueSets = ctx .vsFromValueset() - .name() - .map(name => this.aliasAwareValue(name)); + .vsFromTarget() + .map(target => this.visitVsFromTarget(target)); } } return from; } + visitVsFromTarget(ctx: pc.VsFromTargetContext): string { + if (ctx.name()) { + return this.aliasAwareValue(ctx.name()); + } else { + // a fragment reference will match a CODE token instead of the name rule + return ctx.CODE().getText(); + } + } + /** * The replace makes FSH permissive in regards to the official specifications, * which spells operator "descendant-of" as "descendent-of". diff --git a/src/import/generated/FSH.interp b/src/import/generated/FSH.interp index b9182697a..af140239d 100644 --- a/src/import/generated/FSH.interp +++ b/src/import/generated/FSH.interp @@ -251,6 +251,7 @@ vsFilterComponent vsComponentFrom vsFromSystem vsFromValueset +vsFromTarget vsFilterList vsFilterDefinition vsFilterOperator @@ -277,4 +278,4 @@ mostAlphaKeywords atn: -[4, 1, 89, 837, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 2, 49, 7, 49, 2, 50, 7, 50, 2, 51, 7, 51, 2, 52, 7, 52, 2, 53, 7, 53, 2, 54, 7, 54, 2, 55, 7, 55, 2, 56, 7, 56, 2, 57, 7, 57, 2, 58, 7, 58, 2, 59, 7, 59, 2, 60, 7, 60, 2, 61, 7, 61, 2, 62, 7, 62, 2, 63, 7, 63, 2, 64, 7, 64, 2, 65, 7, 65, 2, 66, 7, 66, 2, 67, 7, 67, 2, 68, 7, 68, 2, 69, 7, 69, 2, 70, 7, 70, 2, 71, 7, 71, 2, 72, 7, 72, 2, 73, 7, 73, 2, 74, 7, 74, 2, 75, 7, 75, 2, 76, 7, 76, 2, 77, 7, 77, 2, 78, 7, 78, 2, 79, 7, 79, 2, 80, 7, 80, 2, 81, 7, 81, 2, 82, 7, 82, 2, 83, 7, 83, 2, 84, 7, 84, 2, 85, 7, 85, 2, 86, 7, 86, 2, 87, 7, 87, 2, 88, 7, 88, 2, 89, 7, 89, 2, 90, 7, 90, 1, 0, 5, 0, 184, 8, 0, 10, 0, 12, 0, 187, 9, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 203, 8, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 4, 3, 213, 8, 3, 11, 3, 12, 3, 214, 1, 3, 5, 3, 218, 8, 3, 10, 3, 12, 3, 221, 9, 3, 1, 4, 1, 4, 1, 4, 1, 4, 5, 4, 227, 8, 4, 10, 4, 12, 4, 230, 9, 4, 1, 4, 5, 4, 233, 8, 4, 10, 4, 12, 4, 236, 9, 4, 1, 5, 1, 5, 1, 5, 1, 5, 5, 5, 242, 8, 5, 10, 5, 12, 5, 245, 9, 5, 1, 5, 5, 5, 248, 8, 5, 10, 5, 12, 5, 251, 9, 5, 1, 6, 1, 6, 1, 6, 5, 6, 256, 8, 6, 10, 6, 12, 6, 259, 9, 6, 1, 6, 5, 6, 262, 8, 6, 10, 6, 12, 6, 265, 9, 6, 1, 7, 1, 7, 1, 7, 1, 7, 3, 7, 271, 8, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 283, 8, 8, 1, 9, 1, 9, 1, 9, 3, 9, 288, 8, 9, 1, 10, 1, 10, 1, 10, 5, 10, 293, 8, 10, 10, 10, 12, 10, 296, 9, 10, 1, 10, 5, 10, 299, 8, 10, 10, 10, 12, 10, 302, 9, 10, 1, 11, 1, 11, 1, 11, 1, 11, 3, 11, 308, 8, 11, 1, 12, 1, 12, 1, 12, 3, 12, 313, 8, 12, 1, 13, 1, 13, 1, 13, 5, 13, 318, 8, 13, 10, 13, 12, 13, 321, 9, 13, 1, 13, 5, 13, 324, 8, 13, 10, 13, 12, 13, 327, 9, 13, 1, 14, 1, 14, 1, 14, 1, 14, 3, 14, 333, 8, 14, 1, 15, 1, 15, 1, 15, 3, 15, 338, 8, 15, 1, 16, 1, 16, 1, 16, 5, 16, 343, 8, 16, 10, 16, 12, 16, 346, 9, 16, 1, 16, 5, 16, 349, 8, 16, 10, 16, 12, 16, 352, 9, 16, 1, 17, 1, 17, 1, 17, 3, 17, 357, 8, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 3, 18, 364, 8, 18, 1, 19, 1, 19, 1, 19, 5, 19, 369, 8, 19, 10, 19, 12, 19, 372, 9, 19, 1, 19, 5, 19, 375, 8, 19, 10, 19, 12, 19, 378, 9, 19, 1, 20, 1, 20, 1, 20, 3, 20, 383, 8, 20, 1, 21, 1, 21, 1, 21, 3, 21, 388, 8, 21, 1, 22, 1, 22, 1, 22, 4, 22, 393, 8, 22, 11, 22, 12, 22, 394, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 405, 8, 23, 1, 24, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 5, 25, 413, 8, 25, 10, 25, 12, 25, 416, 9, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 27, 1, 27, 1, 28, 1, 28, 5, 28, 426, 8, 28, 10, 28, 12, 28, 429, 9, 28, 1, 29, 1, 29, 1, 29, 5, 29, 434, 8, 29, 10, 29, 12, 29, 437, 9, 29, 1, 29, 5, 29, 440, 8, 29, 10, 29, 12, 29, 443, 9, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 3, 30, 450, 8, 30, 1, 31, 1, 31, 1, 31, 3, 31, 455, 8, 31, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 43, 1, 43, 5, 43, 492, 8, 43, 10, 43, 12, 43, 495, 9, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 45, 1, 45, 1, 46, 1, 46, 5, 46, 505, 8, 46, 10, 46, 12, 46, 508, 9, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 5, 47, 516, 8, 47, 10, 47, 12, 47, 519, 9, 47, 1, 48, 1, 48, 1, 48, 1, 48, 5, 48, 525, 8, 48, 10, 48, 12, 48, 528, 9, 48, 1, 48, 4, 48, 531, 8, 48, 11, 48, 12, 48, 532, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, 49, 540, 8, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 3, 50, 547, 8, 50, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 5, 51, 555, 8, 51, 10, 51, 12, 51, 558, 9, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 5, 52, 566, 8, 52, 10, 52, 12, 52, 569, 9, 52, 1, 53, 1, 53, 3, 53, 573, 8, 53, 1, 53, 1, 53, 1, 53, 1, 53, 5, 53, 579, 8, 53, 10, 53, 12, 53, 582, 9, 53, 1, 54, 1, 54, 3, 54, 586, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 55, 1, 55, 5, 55, 594, 8, 55, 10, 55, 12, 55, 597, 9, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 56, 1, 56, 3, 56, 605, 8, 56, 1, 56, 1, 56, 1, 56, 3, 56, 610, 8, 56, 1, 56, 3, 56, 613, 8, 56, 1, 57, 1, 57, 3, 57, 617, 8, 57, 1, 57, 1, 57, 1, 57, 3, 57, 622, 8, 57, 1, 58, 1, 58, 5, 58, 626, 8, 58, 10, 58, 12, 58, 629, 9, 58, 1, 58, 1, 58, 1, 58, 3, 58, 634, 8, 58, 1, 59, 1, 59, 1, 59, 1, 59, 5, 59, 640, 8, 59, 10, 59, 12, 59, 643, 9, 59, 1, 59, 1, 59, 1, 59, 1, 59, 3, 59, 649, 8, 59, 1, 60, 1, 60, 1, 60, 1, 60, 5, 60, 655, 8, 60, 10, 60, 12, 60, 658, 9, 60, 1, 60, 1, 60, 1, 60, 5, 60, 663, 8, 60, 10, 60, 12, 60, 666, 9, 60, 1, 60, 1, 60, 3, 60, 670, 8, 60, 1, 61, 1, 61, 1, 61, 1, 62, 1, 62, 3, 62, 677, 8, 62, 1, 62, 1, 62, 3, 62, 681, 8, 62, 1, 63, 1, 63, 3, 63, 685, 8, 63, 1, 64, 1, 64, 1, 64, 1, 64, 3, 64, 691, 8, 64, 1, 65, 1, 65, 1, 65, 1, 65, 3, 65, 697, 8, 65, 1, 65, 1, 65, 1, 65, 3, 65, 702, 8, 65, 3, 65, 704, 8, 65, 1, 66, 1, 66, 1, 66, 1, 67, 1, 67, 1, 67, 1, 67, 5, 67, 713, 8, 67, 10, 67, 12, 67, 716, 9, 67, 1, 68, 1, 68, 1, 68, 5, 68, 721, 8, 68, 10, 68, 12, 68, 724, 9, 68, 1, 69, 1, 69, 1, 69, 3, 69, 729, 8, 69, 1, 70, 1, 70, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 3, 71, 738, 8, 71, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 3, 72, 745, 8, 72, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 3, 73, 752, 8, 73, 1, 74, 1, 74, 1, 75, 1, 75, 1, 76, 1, 76, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 772, 8, 77, 1, 78, 1, 78, 1, 78, 3, 78, 777, 8, 78, 1, 78, 1, 78, 5, 78, 781, 8, 78, 10, 78, 12, 78, 784, 9, 78, 1, 79, 1, 79, 3, 79, 788, 8, 79, 1, 80, 1, 80, 4, 80, 792, 8, 80, 11, 80, 12, 80, 793, 1, 80, 3, 80, 797, 8, 80, 1, 80, 3, 80, 800, 8, 80, 1, 81, 3, 81, 803, 8, 81, 1, 81, 1, 81, 3, 81, 807, 8, 81, 1, 82, 1, 82, 1, 82, 1, 82, 1, 83, 1, 83, 3, 83, 815, 8, 83, 1, 84, 1, 84, 1, 85, 1, 85, 1, 86, 1, 86, 1, 87, 1, 87, 3, 87, 825, 8, 87, 1, 88, 1, 88, 1, 89, 1, 89, 1, 89, 1, 89, 3, 89, 833, 8, 89, 1, 90, 1, 90, 1, 90, 0, 0, 91, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 174, 176, 178, 180, 0, 14, 2, 0, 62, 62, 73, 73, 2, 0, 78, 78, 80, 80, 2, 0, 79, 79, 81, 81, 2, 0, 1, 4, 6, 12, 1, 0, 58, 59, 2, 0, 82, 82, 84, 84, 2, 0, 83, 83, 85, 85, 1, 0, 44, 45, 2, 0, 53, 53, 73, 73, 1, 0, 25, 30, 1, 0, 32, 35, 1, 0, 61, 62, 1, 0, 42, 43, 3, 0, 26, 31, 36, 49, 52, 52, 898, 0, 185, 1, 0, 0, 0, 2, 202, 1, 0, 0, 0, 4, 204, 1, 0, 0, 0, 6, 209, 1, 0, 0, 0, 8, 222, 1, 0, 0, 0, 10, 237, 1, 0, 0, 0, 12, 252, 1, 0, 0, 0, 14, 270, 1, 0, 0, 0, 16, 282, 1, 0, 0, 0, 18, 287, 1, 0, 0, 0, 20, 289, 1, 0, 0, 0, 22, 307, 1, 0, 0, 0, 24, 312, 1, 0, 0, 0, 26, 314, 1, 0, 0, 0, 28, 332, 1, 0, 0, 0, 30, 337, 1, 0, 0, 0, 32, 339, 1, 0, 0, 0, 34, 356, 1, 0, 0, 0, 36, 363, 1, 0, 0, 0, 38, 365, 1, 0, 0, 0, 40, 382, 1, 0, 0, 0, 42, 387, 1, 0, 0, 0, 44, 389, 1, 0, 0, 0, 46, 404, 1, 0, 0, 0, 48, 406, 1, 0, 0, 0, 50, 410, 1, 0, 0, 0, 52, 419, 1, 0, 0, 0, 54, 421, 1, 0, 0, 0, 56, 423, 1, 0, 0, 0, 58, 430, 1, 0, 0, 0, 60, 449, 1, 0, 0, 0, 62, 454, 1, 0, 0, 0, 64, 456, 1, 0, 0, 0, 66, 459, 1, 0, 0, 0, 68, 462, 1, 0, 0, 0, 70, 465, 1, 0, 0, 0, 72, 468, 1, 0, 0, 0, 74, 471, 1, 0, 0, 0, 76, 474, 1, 0, 0, 0, 78, 477, 1, 0, 0, 0, 80, 480, 1, 0, 0, 0, 82, 483, 1, 0, 0, 0, 84, 486, 1, 0, 0, 0, 86, 489, 1, 0, 0, 0, 88, 498, 1, 0, 0, 0, 90, 500, 1, 0, 0, 0, 92, 502, 1, 0, 0, 0, 94, 511, 1, 0, 0, 0, 96, 520, 1, 0, 0, 0, 98, 534, 1, 0, 0, 0, 100, 541, 1, 0, 0, 0, 102, 548, 1, 0, 0, 0, 104, 559, 1, 0, 0, 0, 106, 570, 1, 0, 0, 0, 108, 583, 1, 0, 0, 0, 110, 591, 1, 0, 0, 0, 112, 602, 1, 0, 0, 0, 114, 614, 1, 0, 0, 0, 116, 623, 1, 0, 0, 0, 118, 635, 1, 0, 0, 0, 120, 650, 1, 0, 0, 0, 122, 671, 1, 0, 0, 0, 124, 674, 1, 0, 0, 0, 126, 682, 1, 0, 0, 0, 128, 686, 1, 0, 0, 0, 130, 692, 1, 0, 0, 0, 132, 705, 1, 0, 0, 0, 134, 708, 1, 0, 0, 0, 136, 717, 1, 0, 0, 0, 138, 725, 1, 0, 0, 0, 140, 730, 1, 0, 0, 0, 142, 737, 1, 0, 0, 0, 144, 744, 1, 0, 0, 0, 146, 751, 1, 0, 0, 0, 148, 753, 1, 0, 0, 0, 150, 755, 1, 0, 0, 0, 152, 757, 1, 0, 0, 0, 154, 771, 1, 0, 0, 0, 156, 773, 1, 0, 0, 0, 158, 785, 1, 0, 0, 0, 160, 789, 1, 0, 0, 0, 162, 802, 1, 0, 0, 0, 164, 808, 1, 0, 0, 0, 166, 812, 1, 0, 0, 0, 168, 816, 1, 0, 0, 0, 170, 818, 1, 0, 0, 0, 172, 820, 1, 0, 0, 0, 174, 824, 1, 0, 0, 0, 176, 826, 1, 0, 0, 0, 178, 832, 1, 0, 0, 0, 180, 834, 1, 0, 0, 0, 182, 184, 3, 2, 1, 0, 183, 182, 1, 0, 0, 0, 184, 187, 1, 0, 0, 0, 185, 183, 1, 0, 0, 0, 185, 186, 1, 0, 0, 0, 186, 188, 1, 0, 0, 0, 187, 185, 1, 0, 0, 0, 188, 189, 5, 0, 0, 1, 189, 1, 1, 0, 0, 0, 190, 203, 3, 4, 2, 0, 191, 203, 3, 6, 3, 0, 192, 203, 3, 8, 4, 0, 193, 203, 3, 26, 13, 0, 194, 203, 3, 20, 10, 0, 195, 203, 3, 32, 16, 0, 196, 203, 3, 38, 19, 0, 197, 203, 3, 44, 22, 0, 198, 203, 3, 48, 24, 0, 199, 203, 3, 58, 29, 0, 200, 203, 3, 10, 5, 0, 201, 203, 3, 12, 6, 0, 202, 190, 1, 0, 0, 0, 202, 191, 1, 0, 0, 0, 202, 192, 1, 0, 0, 0, 202, 193, 1, 0, 0, 0, 202, 194, 1, 0, 0, 0, 202, 195, 1, 0, 0, 0, 202, 196, 1, 0, 0, 0, 202, 197, 1, 0, 0, 0, 202, 198, 1, 0, 0, 0, 202, 199, 1, 0, 0, 0, 202, 200, 1, 0, 0, 0, 202, 201, 1, 0, 0, 0, 203, 3, 1, 0, 0, 0, 204, 205, 5, 1, 0, 0, 205, 206, 3, 144, 72, 0, 206, 207, 5, 53, 0, 0, 207, 208, 7, 0, 0, 0, 208, 5, 1, 0, 0, 0, 209, 210, 5, 2, 0, 0, 210, 212, 3, 144, 72, 0, 211, 213, 3, 14, 7, 0, 212, 211, 1, 0, 0, 0, 213, 214, 1, 0, 0, 0, 214, 212, 1, 0, 0, 0, 214, 215, 1, 0, 0, 0, 215, 219, 1, 0, 0, 0, 216, 218, 3, 16, 8, 0, 217, 216, 1, 0, 0, 0, 218, 221, 1, 0, 0, 0, 219, 217, 1, 0, 0, 0, 219, 220, 1, 0, 0, 0, 220, 7, 1, 0, 0, 0, 221, 219, 1, 0, 0, 0, 222, 223, 5, 3, 0, 0, 223, 228, 3, 144, 72, 0, 224, 227, 3, 14, 7, 0, 225, 227, 3, 86, 43, 0, 226, 224, 1, 0, 0, 0, 226, 225, 1, 0, 0, 0, 227, 230, 1, 0, 0, 0, 228, 226, 1, 0, 0, 0, 228, 229, 1, 0, 0, 0, 229, 234, 1, 0, 0, 0, 230, 228, 1, 0, 0, 0, 231, 233, 3, 16, 8, 0, 232, 231, 1, 0, 0, 0, 233, 236, 1, 0, 0, 0, 234, 232, 1, 0, 0, 0, 234, 235, 1, 0, 0, 0, 235, 9, 1, 0, 0, 0, 236, 234, 1, 0, 0, 0, 237, 238, 5, 11, 0, 0, 238, 243, 3, 144, 72, 0, 239, 242, 3, 14, 7, 0, 240, 242, 3, 92, 46, 0, 241, 239, 1, 0, 0, 0, 241, 240, 1, 0, 0, 0, 242, 245, 1, 0, 0, 0, 243, 241, 1, 0, 0, 0, 243, 244, 1, 0, 0, 0, 244, 249, 1, 0, 0, 0, 245, 243, 1, 0, 0, 0, 246, 248, 3, 18, 9, 0, 247, 246, 1, 0, 0, 0, 248, 251, 1, 0, 0, 0, 249, 247, 1, 0, 0, 0, 249, 250, 1, 0, 0, 0, 250, 11, 1, 0, 0, 0, 251, 249, 1, 0, 0, 0, 252, 253, 5, 12, 0, 0, 253, 257, 3, 144, 72, 0, 254, 256, 3, 14, 7, 0, 255, 254, 1, 0, 0, 0, 256, 259, 1, 0, 0, 0, 257, 255, 1, 0, 0, 0, 257, 258, 1, 0, 0, 0, 258, 263, 1, 0, 0, 0, 259, 257, 1, 0, 0, 0, 260, 262, 3, 18, 9, 0, 261, 260, 1, 0, 0, 0, 262, 265, 1, 0, 0, 0, 263, 261, 1, 0, 0, 0, 263, 264, 1, 0, 0, 0, 264, 13, 1, 0, 0, 0, 265, 263, 1, 0, 0, 0, 266, 271, 3, 64, 32, 0, 267, 271, 3, 66, 33, 0, 268, 271, 3, 68, 34, 0, 269, 271, 3, 70, 35, 0, 270, 266, 1, 0, 0, 0, 270, 267, 1, 0, 0, 0, 270, 268, 1, 0, 0, 0, 270, 269, 1, 0, 0, 0, 271, 15, 1, 0, 0, 0, 272, 283, 3, 94, 47, 0, 273, 283, 3, 96, 48, 0, 274, 283, 3, 98, 49, 0, 275, 283, 3, 100, 50, 0, 276, 283, 3, 102, 51, 0, 277, 283, 3, 104, 52, 0, 278, 283, 3, 106, 53, 0, 279, 283, 3, 108, 54, 0, 280, 283, 3, 114, 57, 0, 281, 283, 3, 122, 61, 0, 282, 272, 1, 0, 0, 0, 282, 273, 1, 0, 0, 0, 282, 274, 1, 0, 0, 0, 282, 275, 1, 0, 0, 0, 282, 276, 1, 0, 0, 0, 282, 277, 1, 0, 0, 0, 282, 278, 1, 0, 0, 0, 282, 279, 1, 0, 0, 0, 282, 280, 1, 0, 0, 0, 282, 281, 1, 0, 0, 0, 283, 17, 1, 0, 0, 0, 284, 288, 3, 16, 8, 0, 285, 288, 3, 120, 60, 0, 286, 288, 3, 118, 59, 0, 287, 284, 1, 0, 0, 0, 287, 285, 1, 0, 0, 0, 287, 286, 1, 0, 0, 0, 288, 19, 1, 0, 0, 0, 289, 290, 5, 4, 0, 0, 290, 294, 3, 144, 72, 0, 291, 293, 3, 22, 11, 0, 292, 291, 1, 0, 0, 0, 293, 296, 1, 0, 0, 0, 294, 292, 1, 0, 0, 0, 294, 295, 1, 0, 0, 0, 295, 300, 1, 0, 0, 0, 296, 294, 1, 0, 0, 0, 297, 299, 3, 24, 12, 0, 298, 297, 1, 0, 0, 0, 299, 302, 1, 0, 0, 0, 300, 298, 1, 0, 0, 0, 300, 301, 1, 0, 0, 0, 301, 21, 1, 0, 0, 0, 302, 300, 1, 0, 0, 0, 303, 308, 3, 78, 39, 0, 304, 308, 3, 68, 34, 0, 305, 308, 3, 70, 35, 0, 306, 308, 3, 80, 40, 0, 307, 303, 1, 0, 0, 0, 307, 304, 1, 0, 0, 0, 307, 305, 1, 0, 0, 0, 307, 306, 1, 0, 0, 0, 308, 23, 1, 0, 0, 0, 309, 313, 3, 100, 50, 0, 310, 313, 3, 114, 57, 0, 311, 313, 3, 122, 61, 0, 312, 309, 1, 0, 0, 0, 312, 310, 1, 0, 0, 0, 312, 311, 1, 0, 0, 0, 313, 25, 1, 0, 0, 0, 314, 315, 5, 6, 0, 0, 315, 319, 3, 144, 72, 0, 316, 318, 3, 28, 14, 0, 317, 316, 1, 0, 0, 0, 318, 321, 1, 0, 0, 0, 319, 317, 1, 0, 0, 0, 319, 320, 1, 0, 0, 0, 320, 325, 1, 0, 0, 0, 321, 319, 1, 0, 0, 0, 322, 324, 3, 30, 15, 0, 323, 322, 1, 0, 0, 0, 324, 327, 1, 0, 0, 0, 325, 323, 1, 0, 0, 0, 325, 326, 1, 0, 0, 0, 326, 27, 1, 0, 0, 0, 327, 325, 1, 0, 0, 0, 328, 333, 3, 70, 35, 0, 329, 333, 3, 72, 36, 0, 330, 333, 3, 74, 37, 0, 331, 333, 3, 76, 38, 0, 332, 328, 1, 0, 0, 0, 332, 329, 1, 0, 0, 0, 332, 330, 1, 0, 0, 0, 332, 331, 1, 0, 0, 0, 333, 29, 1, 0, 0, 0, 334, 338, 3, 100, 50, 0, 335, 338, 3, 114, 57, 0, 336, 338, 3, 122, 61, 0, 337, 334, 1, 0, 0, 0, 337, 335, 1, 0, 0, 0, 337, 336, 1, 0, 0, 0, 338, 31, 1, 0, 0, 0, 339, 340, 5, 7, 0, 0, 340, 344, 3, 144, 72, 0, 341, 343, 3, 34, 17, 0, 342, 341, 1, 0, 0, 0, 343, 346, 1, 0, 0, 0, 344, 342, 1, 0, 0, 0, 344, 345, 1, 0, 0, 0, 345, 350, 1, 0, 0, 0, 346, 344, 1, 0, 0, 0, 347, 349, 3, 36, 18, 0, 348, 347, 1, 0, 0, 0, 349, 352, 1, 0, 0, 0, 350, 348, 1, 0, 0, 0, 350, 351, 1, 0, 0, 0, 351, 33, 1, 0, 0, 0, 352, 350, 1, 0, 0, 0, 353, 357, 3, 66, 33, 0, 354, 357, 3, 68, 34, 0, 355, 357, 3, 70, 35, 0, 356, 353, 1, 0, 0, 0, 356, 354, 1, 0, 0, 0, 356, 355, 1, 0, 0, 0, 357, 35, 1, 0, 0, 0, 358, 364, 3, 124, 62, 0, 359, 364, 3, 108, 54, 0, 360, 364, 3, 110, 55, 0, 361, 364, 3, 114, 57, 0, 362, 364, 3, 116, 58, 0, 363, 358, 1, 0, 0, 0, 363, 359, 1, 0, 0, 0, 363, 360, 1, 0, 0, 0, 363, 361, 1, 0, 0, 0, 363, 362, 1, 0, 0, 0, 364, 37, 1, 0, 0, 0, 365, 366, 5, 8, 0, 0, 366, 370, 3, 144, 72, 0, 367, 369, 3, 40, 20, 0, 368, 367, 1, 0, 0, 0, 369, 372, 1, 0, 0, 0, 370, 368, 1, 0, 0, 0, 370, 371, 1, 0, 0, 0, 371, 376, 1, 0, 0, 0, 372, 370, 1, 0, 0, 0, 373, 375, 3, 42, 21, 0, 374, 373, 1, 0, 0, 0, 375, 378, 1, 0, 0, 0, 376, 374, 1, 0, 0, 0, 376, 377, 1, 0, 0, 0, 377, 39, 1, 0, 0, 0, 378, 376, 1, 0, 0, 0, 379, 383, 3, 66, 33, 0, 380, 383, 3, 68, 34, 0, 381, 383, 3, 70, 35, 0, 382, 379, 1, 0, 0, 0, 382, 380, 1, 0, 0, 0, 382, 381, 1, 0, 0, 0, 383, 41, 1, 0, 0, 0, 384, 388, 3, 160, 80, 0, 385, 388, 3, 110, 55, 0, 386, 388, 3, 116, 58, 0, 387, 384, 1, 0, 0, 0, 387, 385, 1, 0, 0, 0, 387, 386, 1, 0, 0, 0, 388, 43, 1, 0, 0, 0, 389, 390, 5, 9, 0, 0, 390, 392, 5, 77, 0, 0, 391, 393, 3, 46, 23, 0, 392, 391, 1, 0, 0, 0, 393, 394, 1, 0, 0, 0, 394, 392, 1, 0, 0, 0, 394, 395, 1, 0, 0, 0, 395, 45, 1, 0, 0, 0, 396, 405, 3, 16, 8, 0, 397, 405, 3, 120, 60, 0, 398, 405, 3, 118, 59, 0, 399, 405, 3, 160, 80, 0, 400, 405, 3, 110, 55, 0, 401, 405, 3, 116, 58, 0, 402, 405, 3, 124, 62, 0, 403, 405, 3, 112, 56, 0, 404, 396, 1, 0, 0, 0, 404, 397, 1, 0, 0, 0, 404, 398, 1, 0, 0, 0, 404, 399, 1, 0, 0, 0, 404, 400, 1, 0, 0, 0, 404, 401, 1, 0, 0, 0, 404, 402, 1, 0, 0, 0, 404, 403, 1, 0, 0, 0, 405, 47, 1, 0, 0, 0, 406, 407, 5, 9, 0, 0, 407, 408, 3, 50, 25, 0, 408, 409, 3, 56, 28, 0, 409, 49, 1, 0, 0, 0, 410, 414, 5, 76, 0, 0, 411, 413, 3, 52, 26, 0, 412, 411, 1, 0, 0, 0, 413, 416, 1, 0, 0, 0, 414, 412, 1, 0, 0, 0, 414, 415, 1, 0, 0, 0, 415, 417, 1, 0, 0, 0, 416, 414, 1, 0, 0, 0, 417, 418, 3, 54, 27, 0, 418, 51, 1, 0, 0, 0, 419, 420, 7, 1, 0, 0, 420, 53, 1, 0, 0, 0, 421, 422, 7, 2, 0, 0, 422, 55, 1, 0, 0, 0, 423, 427, 5, 54, 0, 0, 424, 426, 8, 3, 0, 0, 425, 424, 1, 0, 0, 0, 426, 429, 1, 0, 0, 0, 427, 425, 1, 0, 0, 0, 427, 428, 1, 0, 0, 0, 428, 57, 1, 0, 0, 0, 429, 427, 1, 0, 0, 0, 430, 431, 5, 10, 0, 0, 431, 435, 3, 144, 72, 0, 432, 434, 3, 60, 30, 0, 433, 432, 1, 0, 0, 0, 434, 437, 1, 0, 0, 0, 435, 433, 1, 0, 0, 0, 435, 436, 1, 0, 0, 0, 436, 441, 1, 0, 0, 0, 437, 435, 1, 0, 0, 0, 438, 440, 3, 62, 31, 0, 439, 438, 1, 0, 0, 0, 440, 443, 1, 0, 0, 0, 441, 439, 1, 0, 0, 0, 441, 442, 1, 0, 0, 0, 442, 59, 1, 0, 0, 0, 443, 441, 1, 0, 0, 0, 444, 450, 3, 66, 33, 0, 445, 450, 3, 82, 41, 0, 446, 450, 3, 84, 42, 0, 447, 450, 3, 70, 35, 0, 448, 450, 3, 68, 34, 0, 449, 444, 1, 0, 0, 0, 449, 445, 1, 0, 0, 0, 449, 446, 1, 0, 0, 0, 449, 447, 1, 0, 0, 0, 449, 448, 1, 0, 0, 0, 450, 61, 1, 0, 0, 0, 451, 455, 3, 112, 56, 0, 452, 455, 3, 114, 57, 0, 453, 455, 3, 122, 61, 0, 454, 451, 1, 0, 0, 0, 454, 452, 1, 0, 0, 0, 454, 453, 1, 0, 0, 0, 455, 63, 1, 0, 0, 0, 456, 457, 5, 13, 0, 0, 457, 458, 3, 144, 72, 0, 458, 65, 1, 0, 0, 0, 459, 460, 5, 14, 0, 0, 460, 461, 3, 144, 72, 0, 461, 67, 1, 0, 0, 0, 462, 463, 5, 15, 0, 0, 463, 464, 5, 58, 0, 0, 464, 69, 1, 0, 0, 0, 465, 466, 5, 16, 0, 0, 466, 467, 7, 4, 0, 0, 467, 71, 1, 0, 0, 0, 468, 469, 5, 17, 0, 0, 469, 470, 5, 58, 0, 0, 470, 73, 1, 0, 0, 0, 471, 472, 5, 18, 0, 0, 472, 473, 5, 58, 0, 0, 473, 75, 1, 0, 0, 0, 474, 475, 5, 19, 0, 0, 475, 476, 5, 62, 0, 0, 476, 77, 1, 0, 0, 0, 477, 478, 5, 5, 0, 0, 478, 479, 3, 144, 72, 0, 479, 79, 1, 0, 0, 0, 480, 481, 5, 20, 0, 0, 481, 482, 5, 62, 0, 0, 482, 81, 1, 0, 0, 0, 483, 484, 5, 21, 0, 0, 484, 485, 3, 144, 72, 0, 485, 83, 1, 0, 0, 0, 486, 487, 5, 22, 0, 0, 487, 488, 5, 58, 0, 0, 488, 85, 1, 0, 0, 0, 489, 493, 5, 23, 0, 0, 490, 492, 3, 88, 44, 0, 491, 490, 1, 0, 0, 0, 492, 495, 1, 0, 0, 0, 493, 491, 1, 0, 0, 0, 493, 494, 1, 0, 0, 0, 494, 496, 1, 0, 0, 0, 495, 493, 1, 0, 0, 0, 496, 497, 3, 90, 45, 0, 497, 87, 1, 0, 0, 0, 498, 499, 7, 5, 0, 0, 499, 89, 1, 0, 0, 0, 500, 501, 7, 6, 0, 0, 501, 91, 1, 0, 0, 0, 502, 506, 5, 24, 0, 0, 503, 505, 5, 87, 0, 0, 504, 503, 1, 0, 0, 0, 505, 508, 1, 0, 0, 0, 506, 504, 1, 0, 0, 0, 506, 507, 1, 0, 0, 0, 507, 509, 1, 0, 0, 0, 508, 506, 1, 0, 0, 0, 509, 510, 5, 88, 0, 0, 510, 93, 1, 0, 0, 0, 511, 512, 5, 54, 0, 0, 512, 513, 3, 146, 73, 0, 513, 517, 5, 66, 0, 0, 514, 516, 3, 150, 75, 0, 515, 514, 1, 0, 0, 0, 516, 519, 1, 0, 0, 0, 517, 515, 1, 0, 0, 0, 517, 518, 1, 0, 0, 0, 518, 95, 1, 0, 0, 0, 519, 517, 1, 0, 0, 0, 520, 521, 5, 54, 0, 0, 521, 526, 3, 146, 73, 0, 522, 523, 5, 38, 0, 0, 523, 525, 3, 146, 73, 0, 524, 522, 1, 0, 0, 0, 525, 528, 1, 0, 0, 0, 526, 524, 1, 0, 0, 0, 526, 527, 1, 0, 0, 0, 527, 530, 1, 0, 0, 0, 528, 526, 1, 0, 0, 0, 529, 531, 3, 150, 75, 0, 530, 529, 1, 0, 0, 0, 531, 532, 1, 0, 0, 0, 532, 530, 1, 0, 0, 0, 532, 533, 1, 0, 0, 0, 533, 97, 1, 0, 0, 0, 534, 535, 5, 54, 0, 0, 535, 536, 3, 146, 73, 0, 536, 537, 5, 31, 0, 0, 537, 539, 3, 144, 72, 0, 538, 540, 3, 152, 76, 0, 539, 538, 1, 0, 0, 0, 539, 540, 1, 0, 0, 0, 540, 99, 1, 0, 0, 0, 541, 542, 5, 54, 0, 0, 542, 543, 3, 146, 73, 0, 543, 544, 5, 53, 0, 0, 544, 546, 3, 154, 77, 0, 545, 547, 5, 50, 0, 0, 546, 545, 1, 0, 0, 0, 546, 547, 1, 0, 0, 0, 547, 101, 1, 0, 0, 0, 548, 549, 5, 54, 0, 0, 549, 550, 3, 146, 73, 0, 550, 551, 5, 36, 0, 0, 551, 556, 3, 156, 78, 0, 552, 553, 5, 38, 0, 0, 553, 555, 3, 156, 78, 0, 554, 552, 1, 0, 0, 0, 555, 558, 1, 0, 0, 0, 556, 554, 1, 0, 0, 0, 556, 557, 1, 0, 0, 0, 557, 103, 1, 0, 0, 0, 558, 556, 1, 0, 0, 0, 559, 560, 5, 54, 0, 0, 560, 561, 3, 146, 73, 0, 561, 562, 5, 39, 0, 0, 562, 567, 3, 178, 89, 0, 563, 564, 5, 40, 0, 0, 564, 566, 3, 178, 89, 0, 565, 563, 1, 0, 0, 0, 566, 569, 1, 0, 0, 0, 567, 565, 1, 0, 0, 0, 567, 568, 1, 0, 0, 0, 568, 105, 1, 0, 0, 0, 569, 567, 1, 0, 0, 0, 570, 572, 5, 54, 0, 0, 571, 573, 3, 146, 73, 0, 572, 571, 1, 0, 0, 0, 572, 573, 1, 0, 0, 0, 573, 574, 1, 0, 0, 0, 574, 575, 5, 41, 0, 0, 575, 580, 3, 144, 72, 0, 576, 577, 5, 38, 0, 0, 577, 579, 3, 144, 72, 0, 578, 576, 1, 0, 0, 0, 579, 582, 1, 0, 0, 0, 580, 578, 1, 0, 0, 0, 580, 581, 1, 0, 0, 0, 581, 107, 1, 0, 0, 0, 582, 580, 1, 0, 0, 0, 583, 585, 5, 54, 0, 0, 584, 586, 3, 146, 73, 0, 585, 584, 1, 0, 0, 0, 585, 586, 1, 0, 0, 0, 586, 587, 1, 0, 0, 0, 587, 588, 3, 148, 74, 0, 588, 589, 5, 53, 0, 0, 589, 590, 3, 154, 77, 0, 590, 109, 1, 0, 0, 0, 591, 595, 5, 54, 0, 0, 592, 594, 5, 62, 0, 0, 593, 592, 1, 0, 0, 0, 594, 597, 1, 0, 0, 0, 595, 593, 1, 0, 0, 0, 595, 596, 1, 0, 0, 0, 596, 598, 1, 0, 0, 0, 597, 595, 1, 0, 0, 0, 598, 599, 3, 148, 74, 0, 599, 600, 5, 53, 0, 0, 600, 601, 3, 154, 77, 0, 601, 111, 1, 0, 0, 0, 602, 604, 5, 54, 0, 0, 603, 605, 3, 146, 73, 0, 604, 603, 1, 0, 0, 0, 604, 605, 1, 0, 0, 0, 605, 606, 1, 0, 0, 0, 606, 607, 5, 57, 0, 0, 607, 609, 5, 58, 0, 0, 608, 610, 5, 58, 0, 0, 609, 608, 1, 0, 0, 0, 609, 610, 1, 0, 0, 0, 610, 612, 1, 0, 0, 0, 611, 613, 5, 62, 0, 0, 612, 611, 1, 0, 0, 0, 612, 613, 1, 0, 0, 0, 613, 113, 1, 0, 0, 0, 614, 616, 5, 54, 0, 0, 615, 617, 3, 146, 73, 0, 616, 615, 1, 0, 0, 0, 616, 617, 1, 0, 0, 0, 617, 618, 1, 0, 0, 0, 618, 621, 5, 51, 0, 0, 619, 622, 5, 77, 0, 0, 620, 622, 3, 50, 25, 0, 621, 619, 1, 0, 0, 0, 621, 620, 1, 0, 0, 0, 622, 115, 1, 0, 0, 0, 623, 627, 5, 54, 0, 0, 624, 626, 5, 62, 0, 0, 625, 624, 1, 0, 0, 0, 626, 629, 1, 0, 0, 0, 627, 625, 1, 0, 0, 0, 627, 628, 1, 0, 0, 0, 628, 630, 1, 0, 0, 0, 629, 627, 1, 0, 0, 0, 630, 633, 5, 51, 0, 0, 631, 634, 5, 77, 0, 0, 632, 634, 3, 50, 25, 0, 633, 631, 1, 0, 0, 0, 633, 632, 1, 0, 0, 0, 634, 117, 1, 0, 0, 0, 635, 636, 5, 54, 0, 0, 636, 637, 3, 146, 73, 0, 637, 641, 5, 66, 0, 0, 638, 640, 3, 150, 75, 0, 639, 638, 1, 0, 0, 0, 640, 643, 1, 0, 0, 0, 641, 639, 1, 0, 0, 0, 641, 642, 1, 0, 0, 0, 642, 644, 1, 0, 0, 0, 643, 641, 1, 0, 0, 0, 644, 645, 5, 52, 0, 0, 645, 646, 7, 0, 0, 0, 646, 648, 5, 58, 0, 0, 647, 649, 7, 4, 0, 0, 648, 647, 1, 0, 0, 0, 648, 649, 1, 0, 0, 0, 649, 119, 1, 0, 0, 0, 650, 651, 5, 54, 0, 0, 651, 652, 3, 146, 73, 0, 652, 656, 5, 66, 0, 0, 653, 655, 3, 150, 75, 0, 654, 653, 1, 0, 0, 0, 655, 658, 1, 0, 0, 0, 656, 654, 1, 0, 0, 0, 656, 657, 1, 0, 0, 0, 657, 659, 1, 0, 0, 0, 658, 656, 1, 0, 0, 0, 659, 664, 3, 178, 89, 0, 660, 661, 5, 40, 0, 0, 661, 663, 3, 178, 89, 0, 662, 660, 1, 0, 0, 0, 663, 666, 1, 0, 0, 0, 664, 662, 1, 0, 0, 0, 664, 665, 1, 0, 0, 0, 665, 667, 1, 0, 0, 0, 666, 664, 1, 0, 0, 0, 667, 669, 5, 58, 0, 0, 668, 670, 7, 4, 0, 0, 669, 668, 1, 0, 0, 0, 669, 670, 1, 0, 0, 0, 670, 121, 1, 0, 0, 0, 671, 672, 5, 54, 0, 0, 672, 673, 3, 146, 73, 0, 673, 123, 1, 0, 0, 0, 674, 676, 5, 54, 0, 0, 675, 677, 7, 7, 0, 0, 676, 675, 1, 0, 0, 0, 676, 677, 1, 0, 0, 0, 677, 680, 1, 0, 0, 0, 678, 681, 3, 126, 63, 0, 679, 681, 3, 128, 64, 0, 680, 678, 1, 0, 0, 0, 680, 679, 1, 0, 0, 0, 681, 125, 1, 0, 0, 0, 682, 684, 3, 158, 79, 0, 683, 685, 3, 130, 65, 0, 684, 683, 1, 0, 0, 0, 684, 685, 1, 0, 0, 0, 685, 127, 1, 0, 0, 0, 686, 687, 5, 46, 0, 0, 687, 690, 3, 130, 65, 0, 688, 689, 5, 47, 0, 0, 689, 691, 3, 136, 68, 0, 690, 688, 1, 0, 0, 0, 690, 691, 1, 0, 0, 0, 691, 129, 1, 0, 0, 0, 692, 703, 5, 31, 0, 0, 693, 696, 3, 132, 66, 0, 694, 695, 5, 38, 0, 0, 695, 697, 3, 134, 67, 0, 696, 694, 1, 0, 0, 0, 696, 697, 1, 0, 0, 0, 697, 704, 1, 0, 0, 0, 698, 701, 3, 134, 67, 0, 699, 700, 5, 38, 0, 0, 700, 702, 3, 132, 66, 0, 701, 699, 1, 0, 0, 0, 701, 702, 1, 0, 0, 0, 702, 704, 1, 0, 0, 0, 703, 693, 1, 0, 0, 0, 703, 698, 1, 0, 0, 0, 704, 131, 1, 0, 0, 0, 705, 706, 5, 49, 0, 0, 706, 707, 3, 144, 72, 0, 707, 133, 1, 0, 0, 0, 708, 709, 5, 48, 0, 0, 709, 714, 3, 144, 72, 0, 710, 711, 5, 38, 0, 0, 711, 713, 3, 144, 72, 0, 712, 710, 1, 0, 0, 0, 713, 716, 1, 0, 0, 0, 714, 712, 1, 0, 0, 0, 714, 715, 1, 0, 0, 0, 715, 135, 1, 0, 0, 0, 716, 714, 1, 0, 0, 0, 717, 722, 3, 138, 69, 0, 718, 719, 5, 38, 0, 0, 719, 721, 3, 138, 69, 0, 720, 718, 1, 0, 0, 0, 721, 724, 1, 0, 0, 0, 722, 720, 1, 0, 0, 0, 722, 723, 1, 0, 0, 0, 723, 137, 1, 0, 0, 0, 724, 722, 1, 0, 0, 0, 725, 726, 3, 144, 72, 0, 726, 728, 3, 140, 70, 0, 727, 729, 3, 142, 71, 0, 728, 727, 1, 0, 0, 0, 728, 729, 1, 0, 0, 0, 729, 139, 1, 0, 0, 0, 730, 731, 7, 8, 0, 0, 731, 141, 1, 0, 0, 0, 732, 738, 3, 158, 79, 0, 733, 738, 5, 42, 0, 0, 734, 738, 5, 43, 0, 0, 735, 738, 5, 71, 0, 0, 736, 738, 5, 58, 0, 0, 737, 732, 1, 0, 0, 0, 737, 733, 1, 0, 0, 0, 737, 734, 1, 0, 0, 0, 737, 735, 1, 0, 0, 0, 737, 736, 1, 0, 0, 0, 738, 143, 1, 0, 0, 0, 739, 745, 5, 73, 0, 0, 740, 745, 5, 60, 0, 0, 741, 745, 5, 64, 0, 0, 742, 745, 5, 65, 0, 0, 743, 745, 3, 180, 90, 0, 744, 739, 1, 0, 0, 0, 744, 740, 1, 0, 0, 0, 744, 741, 1, 0, 0, 0, 744, 742, 1, 0, 0, 0, 744, 743, 1, 0, 0, 0, 745, 145, 1, 0, 0, 0, 746, 752, 5, 73, 0, 0, 747, 752, 5, 60, 0, 0, 748, 752, 5, 64, 0, 0, 749, 752, 5, 65, 0, 0, 750, 752, 3, 180, 90, 0, 751, 746, 1, 0, 0, 0, 751, 747, 1, 0, 0, 0, 751, 748, 1, 0, 0, 0, 751, 749, 1, 0, 0, 0, 751, 750, 1, 0, 0, 0, 752, 147, 1, 0, 0, 0, 753, 754, 5, 70, 0, 0, 754, 149, 1, 0, 0, 0, 755, 756, 7, 9, 0, 0, 756, 151, 1, 0, 0, 0, 757, 758, 7, 10, 0, 0, 758, 153, 1, 0, 0, 0, 759, 772, 5, 58, 0, 0, 760, 772, 5, 59, 0, 0, 761, 772, 5, 60, 0, 0, 762, 772, 5, 64, 0, 0, 763, 772, 5, 65, 0, 0, 764, 772, 3, 166, 83, 0, 765, 772, 3, 172, 86, 0, 766, 772, 3, 158, 79, 0, 767, 772, 3, 162, 81, 0, 768, 772, 3, 164, 82, 0, 769, 772, 3, 176, 88, 0, 770, 772, 3, 144, 72, 0, 771, 759, 1, 0, 0, 0, 771, 760, 1, 0, 0, 0, 771, 761, 1, 0, 0, 0, 771, 762, 1, 0, 0, 0, 771, 763, 1, 0, 0, 0, 771, 764, 1, 0, 0, 0, 771, 765, 1, 0, 0, 0, 771, 766, 1, 0, 0, 0, 771, 767, 1, 0, 0, 0, 771, 768, 1, 0, 0, 0, 771, 769, 1, 0, 0, 0, 771, 770, 1, 0, 0, 0, 772, 155, 1, 0, 0, 0, 773, 776, 3, 144, 72, 0, 774, 775, 5, 37, 0, 0, 775, 777, 3, 144, 72, 0, 776, 774, 1, 0, 0, 0, 776, 777, 1, 0, 0, 0, 777, 778, 1, 0, 0, 0, 778, 782, 5, 66, 0, 0, 779, 781, 3, 150, 75, 0, 780, 779, 1, 0, 0, 0, 781, 784, 1, 0, 0, 0, 782, 780, 1, 0, 0, 0, 782, 783, 1, 0, 0, 0, 783, 157, 1, 0, 0, 0, 784, 782, 1, 0, 0, 0, 785, 787, 5, 62, 0, 0, 786, 788, 5, 58, 0, 0, 787, 786, 1, 0, 0, 0, 787, 788, 1, 0, 0, 0, 788, 159, 1, 0, 0, 0, 789, 791, 5, 54, 0, 0, 790, 792, 5, 62, 0, 0, 791, 790, 1, 0, 0, 0, 792, 793, 1, 0, 0, 0, 793, 791, 1, 0, 0, 0, 793, 794, 1, 0, 0, 0, 794, 796, 1, 0, 0, 0, 795, 797, 5, 58, 0, 0, 796, 795, 1, 0, 0, 0, 796, 797, 1, 0, 0, 0, 797, 799, 1, 0, 0, 0, 798, 800, 7, 4, 0, 0, 799, 798, 1, 0, 0, 0, 799, 800, 1, 0, 0, 0, 800, 161, 1, 0, 0, 0, 801, 803, 5, 60, 0, 0, 802, 801, 1, 0, 0, 0, 802, 803, 1, 0, 0, 0, 803, 804, 1, 0, 0, 0, 804, 806, 7, 11, 0, 0, 805, 807, 5, 58, 0, 0, 806, 805, 1, 0, 0, 0, 806, 807, 1, 0, 0, 0, 807, 163, 1, 0, 0, 0, 808, 809, 3, 174, 87, 0, 809, 810, 5, 55, 0, 0, 810, 811, 3, 174, 87, 0, 811, 165, 1, 0, 0, 0, 812, 814, 5, 67, 0, 0, 813, 815, 5, 58, 0, 0, 814, 813, 1, 0, 0, 0, 814, 815, 1, 0, 0, 0, 815, 167, 1, 0, 0, 0, 816, 817, 5, 67, 0, 0, 817, 169, 1, 0, 0, 0, 818, 819, 5, 68, 0, 0, 819, 171, 1, 0, 0, 0, 820, 821, 5, 69, 0, 0, 821, 173, 1, 0, 0, 0, 822, 825, 5, 60, 0, 0, 823, 825, 3, 162, 81, 0, 824, 822, 1, 0, 0, 0, 824, 823, 1, 0, 0, 0, 825, 175, 1, 0, 0, 0, 826, 827, 7, 12, 0, 0, 827, 177, 1, 0, 0, 0, 828, 833, 3, 144, 72, 0, 829, 833, 3, 168, 84, 0, 830, 833, 3, 172, 86, 0, 831, 833, 3, 170, 85, 0, 832, 828, 1, 0, 0, 0, 832, 829, 1, 0, 0, 0, 832, 830, 1, 0, 0, 0, 832, 831, 1, 0, 0, 0, 833, 179, 1, 0, 0, 0, 834, 835, 7, 13, 0, 0, 835, 181, 1, 0, 0, 0, 89, 185, 202, 214, 219, 226, 228, 234, 241, 243, 249, 257, 263, 270, 282, 287, 294, 300, 307, 312, 319, 325, 332, 337, 344, 350, 356, 363, 370, 376, 382, 387, 394, 404, 414, 427, 435, 441, 449, 454, 493, 506, 517, 526, 532, 539, 546, 556, 567, 572, 580, 585, 595, 604, 609, 612, 616, 621, 627, 633, 641, 648, 656, 664, 669, 676, 680, 684, 690, 696, 701, 703, 714, 722, 728, 737, 744, 751, 771, 776, 782, 787, 793, 796, 799, 802, 806, 814, 824, 832] \ No newline at end of file +[4, 1, 89, 843, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 2, 49, 7, 49, 2, 50, 7, 50, 2, 51, 7, 51, 2, 52, 7, 52, 2, 53, 7, 53, 2, 54, 7, 54, 2, 55, 7, 55, 2, 56, 7, 56, 2, 57, 7, 57, 2, 58, 7, 58, 2, 59, 7, 59, 2, 60, 7, 60, 2, 61, 7, 61, 2, 62, 7, 62, 2, 63, 7, 63, 2, 64, 7, 64, 2, 65, 7, 65, 2, 66, 7, 66, 2, 67, 7, 67, 2, 68, 7, 68, 2, 69, 7, 69, 2, 70, 7, 70, 2, 71, 7, 71, 2, 72, 7, 72, 2, 73, 7, 73, 2, 74, 7, 74, 2, 75, 7, 75, 2, 76, 7, 76, 2, 77, 7, 77, 2, 78, 7, 78, 2, 79, 7, 79, 2, 80, 7, 80, 2, 81, 7, 81, 2, 82, 7, 82, 2, 83, 7, 83, 2, 84, 7, 84, 2, 85, 7, 85, 2, 86, 7, 86, 2, 87, 7, 87, 2, 88, 7, 88, 2, 89, 7, 89, 2, 90, 7, 90, 2, 91, 7, 91, 1, 0, 5, 0, 186, 8, 0, 10, 0, 12, 0, 189, 9, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 205, 8, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 4, 3, 215, 8, 3, 11, 3, 12, 3, 216, 1, 3, 5, 3, 220, 8, 3, 10, 3, 12, 3, 223, 9, 3, 1, 4, 1, 4, 1, 4, 1, 4, 5, 4, 229, 8, 4, 10, 4, 12, 4, 232, 9, 4, 1, 4, 5, 4, 235, 8, 4, 10, 4, 12, 4, 238, 9, 4, 1, 5, 1, 5, 1, 5, 1, 5, 5, 5, 244, 8, 5, 10, 5, 12, 5, 247, 9, 5, 1, 5, 5, 5, 250, 8, 5, 10, 5, 12, 5, 253, 9, 5, 1, 6, 1, 6, 1, 6, 5, 6, 258, 8, 6, 10, 6, 12, 6, 261, 9, 6, 1, 6, 5, 6, 264, 8, 6, 10, 6, 12, 6, 267, 9, 6, 1, 7, 1, 7, 1, 7, 1, 7, 3, 7, 273, 8, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 285, 8, 8, 1, 9, 1, 9, 1, 9, 3, 9, 290, 8, 9, 1, 10, 1, 10, 1, 10, 5, 10, 295, 8, 10, 10, 10, 12, 10, 298, 9, 10, 1, 10, 5, 10, 301, 8, 10, 10, 10, 12, 10, 304, 9, 10, 1, 11, 1, 11, 1, 11, 1, 11, 3, 11, 310, 8, 11, 1, 12, 1, 12, 1, 12, 3, 12, 315, 8, 12, 1, 13, 1, 13, 1, 13, 5, 13, 320, 8, 13, 10, 13, 12, 13, 323, 9, 13, 1, 13, 5, 13, 326, 8, 13, 10, 13, 12, 13, 329, 9, 13, 1, 14, 1, 14, 1, 14, 1, 14, 3, 14, 335, 8, 14, 1, 15, 1, 15, 1, 15, 3, 15, 340, 8, 15, 1, 16, 1, 16, 1, 16, 5, 16, 345, 8, 16, 10, 16, 12, 16, 348, 9, 16, 1, 16, 5, 16, 351, 8, 16, 10, 16, 12, 16, 354, 9, 16, 1, 17, 1, 17, 1, 17, 3, 17, 359, 8, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 3, 18, 366, 8, 18, 1, 19, 1, 19, 1, 19, 5, 19, 371, 8, 19, 10, 19, 12, 19, 374, 9, 19, 1, 19, 5, 19, 377, 8, 19, 10, 19, 12, 19, 380, 9, 19, 1, 20, 1, 20, 1, 20, 3, 20, 385, 8, 20, 1, 21, 1, 21, 1, 21, 3, 21, 390, 8, 21, 1, 22, 1, 22, 1, 22, 4, 22, 395, 8, 22, 11, 22, 12, 22, 396, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 407, 8, 23, 1, 24, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 5, 25, 415, 8, 25, 10, 25, 12, 25, 418, 9, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 27, 1, 27, 1, 28, 1, 28, 5, 28, 428, 8, 28, 10, 28, 12, 28, 431, 9, 28, 1, 29, 1, 29, 1, 29, 5, 29, 436, 8, 29, 10, 29, 12, 29, 439, 9, 29, 1, 29, 5, 29, 442, 8, 29, 10, 29, 12, 29, 445, 9, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 3, 30, 452, 8, 30, 1, 31, 1, 31, 1, 31, 3, 31, 457, 8, 31, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 43, 1, 43, 5, 43, 494, 8, 43, 10, 43, 12, 43, 497, 9, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 45, 1, 45, 1, 46, 1, 46, 5, 46, 507, 8, 46, 10, 46, 12, 46, 510, 9, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 5, 47, 518, 8, 47, 10, 47, 12, 47, 521, 9, 47, 1, 48, 1, 48, 1, 48, 1, 48, 5, 48, 527, 8, 48, 10, 48, 12, 48, 530, 9, 48, 1, 48, 4, 48, 533, 8, 48, 11, 48, 12, 48, 534, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, 49, 542, 8, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 3, 50, 549, 8, 50, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 5, 51, 557, 8, 51, 10, 51, 12, 51, 560, 9, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 5, 52, 568, 8, 52, 10, 52, 12, 52, 571, 9, 52, 1, 53, 1, 53, 3, 53, 575, 8, 53, 1, 53, 1, 53, 1, 53, 1, 53, 5, 53, 581, 8, 53, 10, 53, 12, 53, 584, 9, 53, 1, 54, 1, 54, 3, 54, 588, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 55, 1, 55, 5, 55, 596, 8, 55, 10, 55, 12, 55, 599, 9, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 56, 1, 56, 3, 56, 607, 8, 56, 1, 56, 1, 56, 1, 56, 3, 56, 612, 8, 56, 1, 56, 3, 56, 615, 8, 56, 1, 57, 1, 57, 3, 57, 619, 8, 57, 1, 57, 1, 57, 1, 57, 3, 57, 624, 8, 57, 1, 58, 1, 58, 5, 58, 628, 8, 58, 10, 58, 12, 58, 631, 9, 58, 1, 58, 1, 58, 1, 58, 3, 58, 636, 8, 58, 1, 59, 1, 59, 1, 59, 1, 59, 5, 59, 642, 8, 59, 10, 59, 12, 59, 645, 9, 59, 1, 59, 1, 59, 1, 59, 1, 59, 3, 59, 651, 8, 59, 1, 60, 1, 60, 1, 60, 1, 60, 5, 60, 657, 8, 60, 10, 60, 12, 60, 660, 9, 60, 1, 60, 1, 60, 1, 60, 5, 60, 665, 8, 60, 10, 60, 12, 60, 668, 9, 60, 1, 60, 1, 60, 3, 60, 672, 8, 60, 1, 61, 1, 61, 1, 61, 1, 62, 1, 62, 3, 62, 679, 8, 62, 1, 62, 1, 62, 3, 62, 683, 8, 62, 1, 63, 1, 63, 3, 63, 687, 8, 63, 1, 64, 1, 64, 1, 64, 1, 64, 3, 64, 693, 8, 64, 1, 65, 1, 65, 1, 65, 1, 65, 3, 65, 699, 8, 65, 1, 65, 1, 65, 1, 65, 3, 65, 704, 8, 65, 3, 65, 706, 8, 65, 1, 66, 1, 66, 1, 66, 1, 67, 1, 67, 1, 67, 1, 67, 5, 67, 715, 8, 67, 10, 67, 12, 67, 718, 9, 67, 1, 68, 1, 68, 3, 68, 722, 8, 68, 1, 69, 1, 69, 1, 69, 5, 69, 727, 8, 69, 10, 69, 12, 69, 730, 9, 69, 1, 70, 1, 70, 1, 70, 3, 70, 735, 8, 70, 1, 71, 1, 71, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 3, 72, 744, 8, 72, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 3, 73, 751, 8, 73, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 3, 74, 758, 8, 74, 1, 75, 1, 75, 1, 76, 1, 76, 1, 77, 1, 77, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 778, 8, 78, 1, 79, 1, 79, 1, 79, 3, 79, 783, 8, 79, 1, 79, 1, 79, 5, 79, 787, 8, 79, 10, 79, 12, 79, 790, 9, 79, 1, 80, 1, 80, 3, 80, 794, 8, 80, 1, 81, 1, 81, 4, 81, 798, 8, 81, 11, 81, 12, 81, 799, 1, 81, 3, 81, 803, 8, 81, 1, 81, 3, 81, 806, 8, 81, 1, 82, 3, 82, 809, 8, 82, 1, 82, 1, 82, 3, 82, 813, 8, 82, 1, 83, 1, 83, 1, 83, 1, 83, 1, 84, 1, 84, 3, 84, 821, 8, 84, 1, 85, 1, 85, 1, 86, 1, 86, 1, 87, 1, 87, 1, 88, 1, 88, 3, 88, 831, 8, 88, 1, 89, 1, 89, 1, 90, 1, 90, 1, 90, 1, 90, 3, 90, 839, 8, 90, 1, 91, 1, 91, 1, 91, 0, 0, 92, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 174, 176, 178, 180, 182, 0, 14, 2, 0, 62, 62, 73, 73, 2, 0, 78, 78, 80, 80, 2, 0, 79, 79, 81, 81, 2, 0, 1, 4, 6, 12, 1, 0, 58, 59, 2, 0, 82, 82, 84, 84, 2, 0, 83, 83, 85, 85, 1, 0, 44, 45, 2, 0, 53, 53, 73, 73, 1, 0, 25, 30, 1, 0, 32, 35, 1, 0, 61, 62, 1, 0, 42, 43, 3, 0, 26, 31, 36, 49, 52, 52, 904, 0, 187, 1, 0, 0, 0, 2, 204, 1, 0, 0, 0, 4, 206, 1, 0, 0, 0, 6, 211, 1, 0, 0, 0, 8, 224, 1, 0, 0, 0, 10, 239, 1, 0, 0, 0, 12, 254, 1, 0, 0, 0, 14, 272, 1, 0, 0, 0, 16, 284, 1, 0, 0, 0, 18, 289, 1, 0, 0, 0, 20, 291, 1, 0, 0, 0, 22, 309, 1, 0, 0, 0, 24, 314, 1, 0, 0, 0, 26, 316, 1, 0, 0, 0, 28, 334, 1, 0, 0, 0, 30, 339, 1, 0, 0, 0, 32, 341, 1, 0, 0, 0, 34, 358, 1, 0, 0, 0, 36, 365, 1, 0, 0, 0, 38, 367, 1, 0, 0, 0, 40, 384, 1, 0, 0, 0, 42, 389, 1, 0, 0, 0, 44, 391, 1, 0, 0, 0, 46, 406, 1, 0, 0, 0, 48, 408, 1, 0, 0, 0, 50, 412, 1, 0, 0, 0, 52, 421, 1, 0, 0, 0, 54, 423, 1, 0, 0, 0, 56, 425, 1, 0, 0, 0, 58, 432, 1, 0, 0, 0, 60, 451, 1, 0, 0, 0, 62, 456, 1, 0, 0, 0, 64, 458, 1, 0, 0, 0, 66, 461, 1, 0, 0, 0, 68, 464, 1, 0, 0, 0, 70, 467, 1, 0, 0, 0, 72, 470, 1, 0, 0, 0, 74, 473, 1, 0, 0, 0, 76, 476, 1, 0, 0, 0, 78, 479, 1, 0, 0, 0, 80, 482, 1, 0, 0, 0, 82, 485, 1, 0, 0, 0, 84, 488, 1, 0, 0, 0, 86, 491, 1, 0, 0, 0, 88, 500, 1, 0, 0, 0, 90, 502, 1, 0, 0, 0, 92, 504, 1, 0, 0, 0, 94, 513, 1, 0, 0, 0, 96, 522, 1, 0, 0, 0, 98, 536, 1, 0, 0, 0, 100, 543, 1, 0, 0, 0, 102, 550, 1, 0, 0, 0, 104, 561, 1, 0, 0, 0, 106, 572, 1, 0, 0, 0, 108, 585, 1, 0, 0, 0, 110, 593, 1, 0, 0, 0, 112, 604, 1, 0, 0, 0, 114, 616, 1, 0, 0, 0, 116, 625, 1, 0, 0, 0, 118, 637, 1, 0, 0, 0, 120, 652, 1, 0, 0, 0, 122, 673, 1, 0, 0, 0, 124, 676, 1, 0, 0, 0, 126, 684, 1, 0, 0, 0, 128, 688, 1, 0, 0, 0, 130, 694, 1, 0, 0, 0, 132, 707, 1, 0, 0, 0, 134, 710, 1, 0, 0, 0, 136, 721, 1, 0, 0, 0, 138, 723, 1, 0, 0, 0, 140, 731, 1, 0, 0, 0, 142, 736, 1, 0, 0, 0, 144, 743, 1, 0, 0, 0, 146, 750, 1, 0, 0, 0, 148, 757, 1, 0, 0, 0, 150, 759, 1, 0, 0, 0, 152, 761, 1, 0, 0, 0, 154, 763, 1, 0, 0, 0, 156, 777, 1, 0, 0, 0, 158, 779, 1, 0, 0, 0, 160, 791, 1, 0, 0, 0, 162, 795, 1, 0, 0, 0, 164, 808, 1, 0, 0, 0, 166, 814, 1, 0, 0, 0, 168, 818, 1, 0, 0, 0, 170, 822, 1, 0, 0, 0, 172, 824, 1, 0, 0, 0, 174, 826, 1, 0, 0, 0, 176, 830, 1, 0, 0, 0, 178, 832, 1, 0, 0, 0, 180, 838, 1, 0, 0, 0, 182, 840, 1, 0, 0, 0, 184, 186, 3, 2, 1, 0, 185, 184, 1, 0, 0, 0, 186, 189, 1, 0, 0, 0, 187, 185, 1, 0, 0, 0, 187, 188, 1, 0, 0, 0, 188, 190, 1, 0, 0, 0, 189, 187, 1, 0, 0, 0, 190, 191, 5, 0, 0, 1, 191, 1, 1, 0, 0, 0, 192, 205, 3, 4, 2, 0, 193, 205, 3, 6, 3, 0, 194, 205, 3, 8, 4, 0, 195, 205, 3, 26, 13, 0, 196, 205, 3, 20, 10, 0, 197, 205, 3, 32, 16, 0, 198, 205, 3, 38, 19, 0, 199, 205, 3, 44, 22, 0, 200, 205, 3, 48, 24, 0, 201, 205, 3, 58, 29, 0, 202, 205, 3, 10, 5, 0, 203, 205, 3, 12, 6, 0, 204, 192, 1, 0, 0, 0, 204, 193, 1, 0, 0, 0, 204, 194, 1, 0, 0, 0, 204, 195, 1, 0, 0, 0, 204, 196, 1, 0, 0, 0, 204, 197, 1, 0, 0, 0, 204, 198, 1, 0, 0, 0, 204, 199, 1, 0, 0, 0, 204, 200, 1, 0, 0, 0, 204, 201, 1, 0, 0, 0, 204, 202, 1, 0, 0, 0, 204, 203, 1, 0, 0, 0, 205, 3, 1, 0, 0, 0, 206, 207, 5, 1, 0, 0, 207, 208, 3, 146, 73, 0, 208, 209, 5, 53, 0, 0, 209, 210, 7, 0, 0, 0, 210, 5, 1, 0, 0, 0, 211, 212, 5, 2, 0, 0, 212, 214, 3, 146, 73, 0, 213, 215, 3, 14, 7, 0, 214, 213, 1, 0, 0, 0, 215, 216, 1, 0, 0, 0, 216, 214, 1, 0, 0, 0, 216, 217, 1, 0, 0, 0, 217, 221, 1, 0, 0, 0, 218, 220, 3, 16, 8, 0, 219, 218, 1, 0, 0, 0, 220, 223, 1, 0, 0, 0, 221, 219, 1, 0, 0, 0, 221, 222, 1, 0, 0, 0, 222, 7, 1, 0, 0, 0, 223, 221, 1, 0, 0, 0, 224, 225, 5, 3, 0, 0, 225, 230, 3, 146, 73, 0, 226, 229, 3, 14, 7, 0, 227, 229, 3, 86, 43, 0, 228, 226, 1, 0, 0, 0, 228, 227, 1, 0, 0, 0, 229, 232, 1, 0, 0, 0, 230, 228, 1, 0, 0, 0, 230, 231, 1, 0, 0, 0, 231, 236, 1, 0, 0, 0, 232, 230, 1, 0, 0, 0, 233, 235, 3, 16, 8, 0, 234, 233, 1, 0, 0, 0, 235, 238, 1, 0, 0, 0, 236, 234, 1, 0, 0, 0, 236, 237, 1, 0, 0, 0, 237, 9, 1, 0, 0, 0, 238, 236, 1, 0, 0, 0, 239, 240, 5, 11, 0, 0, 240, 245, 3, 146, 73, 0, 241, 244, 3, 14, 7, 0, 242, 244, 3, 92, 46, 0, 243, 241, 1, 0, 0, 0, 243, 242, 1, 0, 0, 0, 244, 247, 1, 0, 0, 0, 245, 243, 1, 0, 0, 0, 245, 246, 1, 0, 0, 0, 246, 251, 1, 0, 0, 0, 247, 245, 1, 0, 0, 0, 248, 250, 3, 18, 9, 0, 249, 248, 1, 0, 0, 0, 250, 253, 1, 0, 0, 0, 251, 249, 1, 0, 0, 0, 251, 252, 1, 0, 0, 0, 252, 11, 1, 0, 0, 0, 253, 251, 1, 0, 0, 0, 254, 255, 5, 12, 0, 0, 255, 259, 3, 146, 73, 0, 256, 258, 3, 14, 7, 0, 257, 256, 1, 0, 0, 0, 258, 261, 1, 0, 0, 0, 259, 257, 1, 0, 0, 0, 259, 260, 1, 0, 0, 0, 260, 265, 1, 0, 0, 0, 261, 259, 1, 0, 0, 0, 262, 264, 3, 18, 9, 0, 263, 262, 1, 0, 0, 0, 264, 267, 1, 0, 0, 0, 265, 263, 1, 0, 0, 0, 265, 266, 1, 0, 0, 0, 266, 13, 1, 0, 0, 0, 267, 265, 1, 0, 0, 0, 268, 273, 3, 64, 32, 0, 269, 273, 3, 66, 33, 0, 270, 273, 3, 68, 34, 0, 271, 273, 3, 70, 35, 0, 272, 268, 1, 0, 0, 0, 272, 269, 1, 0, 0, 0, 272, 270, 1, 0, 0, 0, 272, 271, 1, 0, 0, 0, 273, 15, 1, 0, 0, 0, 274, 285, 3, 94, 47, 0, 275, 285, 3, 96, 48, 0, 276, 285, 3, 98, 49, 0, 277, 285, 3, 100, 50, 0, 278, 285, 3, 102, 51, 0, 279, 285, 3, 104, 52, 0, 280, 285, 3, 106, 53, 0, 281, 285, 3, 108, 54, 0, 282, 285, 3, 114, 57, 0, 283, 285, 3, 122, 61, 0, 284, 274, 1, 0, 0, 0, 284, 275, 1, 0, 0, 0, 284, 276, 1, 0, 0, 0, 284, 277, 1, 0, 0, 0, 284, 278, 1, 0, 0, 0, 284, 279, 1, 0, 0, 0, 284, 280, 1, 0, 0, 0, 284, 281, 1, 0, 0, 0, 284, 282, 1, 0, 0, 0, 284, 283, 1, 0, 0, 0, 285, 17, 1, 0, 0, 0, 286, 290, 3, 16, 8, 0, 287, 290, 3, 120, 60, 0, 288, 290, 3, 118, 59, 0, 289, 286, 1, 0, 0, 0, 289, 287, 1, 0, 0, 0, 289, 288, 1, 0, 0, 0, 290, 19, 1, 0, 0, 0, 291, 292, 5, 4, 0, 0, 292, 296, 3, 146, 73, 0, 293, 295, 3, 22, 11, 0, 294, 293, 1, 0, 0, 0, 295, 298, 1, 0, 0, 0, 296, 294, 1, 0, 0, 0, 296, 297, 1, 0, 0, 0, 297, 302, 1, 0, 0, 0, 298, 296, 1, 0, 0, 0, 299, 301, 3, 24, 12, 0, 300, 299, 1, 0, 0, 0, 301, 304, 1, 0, 0, 0, 302, 300, 1, 0, 0, 0, 302, 303, 1, 0, 0, 0, 303, 21, 1, 0, 0, 0, 304, 302, 1, 0, 0, 0, 305, 310, 3, 78, 39, 0, 306, 310, 3, 68, 34, 0, 307, 310, 3, 70, 35, 0, 308, 310, 3, 80, 40, 0, 309, 305, 1, 0, 0, 0, 309, 306, 1, 0, 0, 0, 309, 307, 1, 0, 0, 0, 309, 308, 1, 0, 0, 0, 310, 23, 1, 0, 0, 0, 311, 315, 3, 100, 50, 0, 312, 315, 3, 114, 57, 0, 313, 315, 3, 122, 61, 0, 314, 311, 1, 0, 0, 0, 314, 312, 1, 0, 0, 0, 314, 313, 1, 0, 0, 0, 315, 25, 1, 0, 0, 0, 316, 317, 5, 6, 0, 0, 317, 321, 3, 146, 73, 0, 318, 320, 3, 28, 14, 0, 319, 318, 1, 0, 0, 0, 320, 323, 1, 0, 0, 0, 321, 319, 1, 0, 0, 0, 321, 322, 1, 0, 0, 0, 322, 327, 1, 0, 0, 0, 323, 321, 1, 0, 0, 0, 324, 326, 3, 30, 15, 0, 325, 324, 1, 0, 0, 0, 326, 329, 1, 0, 0, 0, 327, 325, 1, 0, 0, 0, 327, 328, 1, 0, 0, 0, 328, 27, 1, 0, 0, 0, 329, 327, 1, 0, 0, 0, 330, 335, 3, 70, 35, 0, 331, 335, 3, 72, 36, 0, 332, 335, 3, 74, 37, 0, 333, 335, 3, 76, 38, 0, 334, 330, 1, 0, 0, 0, 334, 331, 1, 0, 0, 0, 334, 332, 1, 0, 0, 0, 334, 333, 1, 0, 0, 0, 335, 29, 1, 0, 0, 0, 336, 340, 3, 100, 50, 0, 337, 340, 3, 114, 57, 0, 338, 340, 3, 122, 61, 0, 339, 336, 1, 0, 0, 0, 339, 337, 1, 0, 0, 0, 339, 338, 1, 0, 0, 0, 340, 31, 1, 0, 0, 0, 341, 342, 5, 7, 0, 0, 342, 346, 3, 146, 73, 0, 343, 345, 3, 34, 17, 0, 344, 343, 1, 0, 0, 0, 345, 348, 1, 0, 0, 0, 346, 344, 1, 0, 0, 0, 346, 347, 1, 0, 0, 0, 347, 352, 1, 0, 0, 0, 348, 346, 1, 0, 0, 0, 349, 351, 3, 36, 18, 0, 350, 349, 1, 0, 0, 0, 351, 354, 1, 0, 0, 0, 352, 350, 1, 0, 0, 0, 352, 353, 1, 0, 0, 0, 353, 33, 1, 0, 0, 0, 354, 352, 1, 0, 0, 0, 355, 359, 3, 66, 33, 0, 356, 359, 3, 68, 34, 0, 357, 359, 3, 70, 35, 0, 358, 355, 1, 0, 0, 0, 358, 356, 1, 0, 0, 0, 358, 357, 1, 0, 0, 0, 359, 35, 1, 0, 0, 0, 360, 366, 3, 124, 62, 0, 361, 366, 3, 108, 54, 0, 362, 366, 3, 110, 55, 0, 363, 366, 3, 114, 57, 0, 364, 366, 3, 116, 58, 0, 365, 360, 1, 0, 0, 0, 365, 361, 1, 0, 0, 0, 365, 362, 1, 0, 0, 0, 365, 363, 1, 0, 0, 0, 365, 364, 1, 0, 0, 0, 366, 37, 1, 0, 0, 0, 367, 368, 5, 8, 0, 0, 368, 372, 3, 146, 73, 0, 369, 371, 3, 40, 20, 0, 370, 369, 1, 0, 0, 0, 371, 374, 1, 0, 0, 0, 372, 370, 1, 0, 0, 0, 372, 373, 1, 0, 0, 0, 373, 378, 1, 0, 0, 0, 374, 372, 1, 0, 0, 0, 375, 377, 3, 42, 21, 0, 376, 375, 1, 0, 0, 0, 377, 380, 1, 0, 0, 0, 378, 376, 1, 0, 0, 0, 378, 379, 1, 0, 0, 0, 379, 39, 1, 0, 0, 0, 380, 378, 1, 0, 0, 0, 381, 385, 3, 66, 33, 0, 382, 385, 3, 68, 34, 0, 383, 385, 3, 70, 35, 0, 384, 381, 1, 0, 0, 0, 384, 382, 1, 0, 0, 0, 384, 383, 1, 0, 0, 0, 385, 41, 1, 0, 0, 0, 386, 390, 3, 162, 81, 0, 387, 390, 3, 110, 55, 0, 388, 390, 3, 116, 58, 0, 389, 386, 1, 0, 0, 0, 389, 387, 1, 0, 0, 0, 389, 388, 1, 0, 0, 0, 390, 43, 1, 0, 0, 0, 391, 392, 5, 9, 0, 0, 392, 394, 5, 77, 0, 0, 393, 395, 3, 46, 23, 0, 394, 393, 1, 0, 0, 0, 395, 396, 1, 0, 0, 0, 396, 394, 1, 0, 0, 0, 396, 397, 1, 0, 0, 0, 397, 45, 1, 0, 0, 0, 398, 407, 3, 16, 8, 0, 399, 407, 3, 120, 60, 0, 400, 407, 3, 118, 59, 0, 401, 407, 3, 162, 81, 0, 402, 407, 3, 110, 55, 0, 403, 407, 3, 116, 58, 0, 404, 407, 3, 124, 62, 0, 405, 407, 3, 112, 56, 0, 406, 398, 1, 0, 0, 0, 406, 399, 1, 0, 0, 0, 406, 400, 1, 0, 0, 0, 406, 401, 1, 0, 0, 0, 406, 402, 1, 0, 0, 0, 406, 403, 1, 0, 0, 0, 406, 404, 1, 0, 0, 0, 406, 405, 1, 0, 0, 0, 407, 47, 1, 0, 0, 0, 408, 409, 5, 9, 0, 0, 409, 410, 3, 50, 25, 0, 410, 411, 3, 56, 28, 0, 411, 49, 1, 0, 0, 0, 412, 416, 5, 76, 0, 0, 413, 415, 3, 52, 26, 0, 414, 413, 1, 0, 0, 0, 415, 418, 1, 0, 0, 0, 416, 414, 1, 0, 0, 0, 416, 417, 1, 0, 0, 0, 417, 419, 1, 0, 0, 0, 418, 416, 1, 0, 0, 0, 419, 420, 3, 54, 27, 0, 420, 51, 1, 0, 0, 0, 421, 422, 7, 1, 0, 0, 422, 53, 1, 0, 0, 0, 423, 424, 7, 2, 0, 0, 424, 55, 1, 0, 0, 0, 425, 429, 5, 54, 0, 0, 426, 428, 8, 3, 0, 0, 427, 426, 1, 0, 0, 0, 428, 431, 1, 0, 0, 0, 429, 427, 1, 0, 0, 0, 429, 430, 1, 0, 0, 0, 430, 57, 1, 0, 0, 0, 431, 429, 1, 0, 0, 0, 432, 433, 5, 10, 0, 0, 433, 437, 3, 146, 73, 0, 434, 436, 3, 60, 30, 0, 435, 434, 1, 0, 0, 0, 436, 439, 1, 0, 0, 0, 437, 435, 1, 0, 0, 0, 437, 438, 1, 0, 0, 0, 438, 443, 1, 0, 0, 0, 439, 437, 1, 0, 0, 0, 440, 442, 3, 62, 31, 0, 441, 440, 1, 0, 0, 0, 442, 445, 1, 0, 0, 0, 443, 441, 1, 0, 0, 0, 443, 444, 1, 0, 0, 0, 444, 59, 1, 0, 0, 0, 445, 443, 1, 0, 0, 0, 446, 452, 3, 66, 33, 0, 447, 452, 3, 82, 41, 0, 448, 452, 3, 84, 42, 0, 449, 452, 3, 70, 35, 0, 450, 452, 3, 68, 34, 0, 451, 446, 1, 0, 0, 0, 451, 447, 1, 0, 0, 0, 451, 448, 1, 0, 0, 0, 451, 449, 1, 0, 0, 0, 451, 450, 1, 0, 0, 0, 452, 61, 1, 0, 0, 0, 453, 457, 3, 112, 56, 0, 454, 457, 3, 114, 57, 0, 455, 457, 3, 122, 61, 0, 456, 453, 1, 0, 0, 0, 456, 454, 1, 0, 0, 0, 456, 455, 1, 0, 0, 0, 457, 63, 1, 0, 0, 0, 458, 459, 5, 13, 0, 0, 459, 460, 3, 146, 73, 0, 460, 65, 1, 0, 0, 0, 461, 462, 5, 14, 0, 0, 462, 463, 3, 146, 73, 0, 463, 67, 1, 0, 0, 0, 464, 465, 5, 15, 0, 0, 465, 466, 5, 58, 0, 0, 466, 69, 1, 0, 0, 0, 467, 468, 5, 16, 0, 0, 468, 469, 7, 4, 0, 0, 469, 71, 1, 0, 0, 0, 470, 471, 5, 17, 0, 0, 471, 472, 5, 58, 0, 0, 472, 73, 1, 0, 0, 0, 473, 474, 5, 18, 0, 0, 474, 475, 5, 58, 0, 0, 475, 75, 1, 0, 0, 0, 476, 477, 5, 19, 0, 0, 477, 478, 5, 62, 0, 0, 478, 77, 1, 0, 0, 0, 479, 480, 5, 5, 0, 0, 480, 481, 3, 146, 73, 0, 481, 79, 1, 0, 0, 0, 482, 483, 5, 20, 0, 0, 483, 484, 5, 62, 0, 0, 484, 81, 1, 0, 0, 0, 485, 486, 5, 21, 0, 0, 486, 487, 3, 146, 73, 0, 487, 83, 1, 0, 0, 0, 488, 489, 5, 22, 0, 0, 489, 490, 5, 58, 0, 0, 490, 85, 1, 0, 0, 0, 491, 495, 5, 23, 0, 0, 492, 494, 3, 88, 44, 0, 493, 492, 1, 0, 0, 0, 494, 497, 1, 0, 0, 0, 495, 493, 1, 0, 0, 0, 495, 496, 1, 0, 0, 0, 496, 498, 1, 0, 0, 0, 497, 495, 1, 0, 0, 0, 498, 499, 3, 90, 45, 0, 499, 87, 1, 0, 0, 0, 500, 501, 7, 5, 0, 0, 501, 89, 1, 0, 0, 0, 502, 503, 7, 6, 0, 0, 503, 91, 1, 0, 0, 0, 504, 508, 5, 24, 0, 0, 505, 507, 5, 87, 0, 0, 506, 505, 1, 0, 0, 0, 507, 510, 1, 0, 0, 0, 508, 506, 1, 0, 0, 0, 508, 509, 1, 0, 0, 0, 509, 511, 1, 0, 0, 0, 510, 508, 1, 0, 0, 0, 511, 512, 5, 88, 0, 0, 512, 93, 1, 0, 0, 0, 513, 514, 5, 54, 0, 0, 514, 515, 3, 148, 74, 0, 515, 519, 5, 66, 0, 0, 516, 518, 3, 152, 76, 0, 517, 516, 1, 0, 0, 0, 518, 521, 1, 0, 0, 0, 519, 517, 1, 0, 0, 0, 519, 520, 1, 0, 0, 0, 520, 95, 1, 0, 0, 0, 521, 519, 1, 0, 0, 0, 522, 523, 5, 54, 0, 0, 523, 528, 3, 148, 74, 0, 524, 525, 5, 38, 0, 0, 525, 527, 3, 148, 74, 0, 526, 524, 1, 0, 0, 0, 527, 530, 1, 0, 0, 0, 528, 526, 1, 0, 0, 0, 528, 529, 1, 0, 0, 0, 529, 532, 1, 0, 0, 0, 530, 528, 1, 0, 0, 0, 531, 533, 3, 152, 76, 0, 532, 531, 1, 0, 0, 0, 533, 534, 1, 0, 0, 0, 534, 532, 1, 0, 0, 0, 534, 535, 1, 0, 0, 0, 535, 97, 1, 0, 0, 0, 536, 537, 5, 54, 0, 0, 537, 538, 3, 148, 74, 0, 538, 539, 5, 31, 0, 0, 539, 541, 3, 146, 73, 0, 540, 542, 3, 154, 77, 0, 541, 540, 1, 0, 0, 0, 541, 542, 1, 0, 0, 0, 542, 99, 1, 0, 0, 0, 543, 544, 5, 54, 0, 0, 544, 545, 3, 148, 74, 0, 545, 546, 5, 53, 0, 0, 546, 548, 3, 156, 78, 0, 547, 549, 5, 50, 0, 0, 548, 547, 1, 0, 0, 0, 548, 549, 1, 0, 0, 0, 549, 101, 1, 0, 0, 0, 550, 551, 5, 54, 0, 0, 551, 552, 3, 148, 74, 0, 552, 553, 5, 36, 0, 0, 553, 558, 3, 158, 79, 0, 554, 555, 5, 38, 0, 0, 555, 557, 3, 158, 79, 0, 556, 554, 1, 0, 0, 0, 557, 560, 1, 0, 0, 0, 558, 556, 1, 0, 0, 0, 558, 559, 1, 0, 0, 0, 559, 103, 1, 0, 0, 0, 560, 558, 1, 0, 0, 0, 561, 562, 5, 54, 0, 0, 562, 563, 3, 148, 74, 0, 563, 564, 5, 39, 0, 0, 564, 569, 3, 180, 90, 0, 565, 566, 5, 40, 0, 0, 566, 568, 3, 180, 90, 0, 567, 565, 1, 0, 0, 0, 568, 571, 1, 0, 0, 0, 569, 567, 1, 0, 0, 0, 569, 570, 1, 0, 0, 0, 570, 105, 1, 0, 0, 0, 571, 569, 1, 0, 0, 0, 572, 574, 5, 54, 0, 0, 573, 575, 3, 148, 74, 0, 574, 573, 1, 0, 0, 0, 574, 575, 1, 0, 0, 0, 575, 576, 1, 0, 0, 0, 576, 577, 5, 41, 0, 0, 577, 582, 3, 146, 73, 0, 578, 579, 5, 38, 0, 0, 579, 581, 3, 146, 73, 0, 580, 578, 1, 0, 0, 0, 581, 584, 1, 0, 0, 0, 582, 580, 1, 0, 0, 0, 582, 583, 1, 0, 0, 0, 583, 107, 1, 0, 0, 0, 584, 582, 1, 0, 0, 0, 585, 587, 5, 54, 0, 0, 586, 588, 3, 148, 74, 0, 587, 586, 1, 0, 0, 0, 587, 588, 1, 0, 0, 0, 588, 589, 1, 0, 0, 0, 589, 590, 3, 150, 75, 0, 590, 591, 5, 53, 0, 0, 591, 592, 3, 156, 78, 0, 592, 109, 1, 0, 0, 0, 593, 597, 5, 54, 0, 0, 594, 596, 5, 62, 0, 0, 595, 594, 1, 0, 0, 0, 596, 599, 1, 0, 0, 0, 597, 595, 1, 0, 0, 0, 597, 598, 1, 0, 0, 0, 598, 600, 1, 0, 0, 0, 599, 597, 1, 0, 0, 0, 600, 601, 3, 150, 75, 0, 601, 602, 5, 53, 0, 0, 602, 603, 3, 156, 78, 0, 603, 111, 1, 0, 0, 0, 604, 606, 5, 54, 0, 0, 605, 607, 3, 148, 74, 0, 606, 605, 1, 0, 0, 0, 606, 607, 1, 0, 0, 0, 607, 608, 1, 0, 0, 0, 608, 609, 5, 57, 0, 0, 609, 611, 5, 58, 0, 0, 610, 612, 5, 58, 0, 0, 611, 610, 1, 0, 0, 0, 611, 612, 1, 0, 0, 0, 612, 614, 1, 0, 0, 0, 613, 615, 5, 62, 0, 0, 614, 613, 1, 0, 0, 0, 614, 615, 1, 0, 0, 0, 615, 113, 1, 0, 0, 0, 616, 618, 5, 54, 0, 0, 617, 619, 3, 148, 74, 0, 618, 617, 1, 0, 0, 0, 618, 619, 1, 0, 0, 0, 619, 620, 1, 0, 0, 0, 620, 623, 5, 51, 0, 0, 621, 624, 5, 77, 0, 0, 622, 624, 3, 50, 25, 0, 623, 621, 1, 0, 0, 0, 623, 622, 1, 0, 0, 0, 624, 115, 1, 0, 0, 0, 625, 629, 5, 54, 0, 0, 626, 628, 5, 62, 0, 0, 627, 626, 1, 0, 0, 0, 628, 631, 1, 0, 0, 0, 629, 627, 1, 0, 0, 0, 629, 630, 1, 0, 0, 0, 630, 632, 1, 0, 0, 0, 631, 629, 1, 0, 0, 0, 632, 635, 5, 51, 0, 0, 633, 636, 5, 77, 0, 0, 634, 636, 3, 50, 25, 0, 635, 633, 1, 0, 0, 0, 635, 634, 1, 0, 0, 0, 636, 117, 1, 0, 0, 0, 637, 638, 5, 54, 0, 0, 638, 639, 3, 148, 74, 0, 639, 643, 5, 66, 0, 0, 640, 642, 3, 152, 76, 0, 641, 640, 1, 0, 0, 0, 642, 645, 1, 0, 0, 0, 643, 641, 1, 0, 0, 0, 643, 644, 1, 0, 0, 0, 644, 646, 1, 0, 0, 0, 645, 643, 1, 0, 0, 0, 646, 647, 5, 52, 0, 0, 647, 648, 7, 0, 0, 0, 648, 650, 5, 58, 0, 0, 649, 651, 7, 4, 0, 0, 650, 649, 1, 0, 0, 0, 650, 651, 1, 0, 0, 0, 651, 119, 1, 0, 0, 0, 652, 653, 5, 54, 0, 0, 653, 654, 3, 148, 74, 0, 654, 658, 5, 66, 0, 0, 655, 657, 3, 152, 76, 0, 656, 655, 1, 0, 0, 0, 657, 660, 1, 0, 0, 0, 658, 656, 1, 0, 0, 0, 658, 659, 1, 0, 0, 0, 659, 661, 1, 0, 0, 0, 660, 658, 1, 0, 0, 0, 661, 666, 3, 180, 90, 0, 662, 663, 5, 40, 0, 0, 663, 665, 3, 180, 90, 0, 664, 662, 1, 0, 0, 0, 665, 668, 1, 0, 0, 0, 666, 664, 1, 0, 0, 0, 666, 667, 1, 0, 0, 0, 667, 669, 1, 0, 0, 0, 668, 666, 1, 0, 0, 0, 669, 671, 5, 58, 0, 0, 670, 672, 7, 4, 0, 0, 671, 670, 1, 0, 0, 0, 671, 672, 1, 0, 0, 0, 672, 121, 1, 0, 0, 0, 673, 674, 5, 54, 0, 0, 674, 675, 3, 148, 74, 0, 675, 123, 1, 0, 0, 0, 676, 678, 5, 54, 0, 0, 677, 679, 7, 7, 0, 0, 678, 677, 1, 0, 0, 0, 678, 679, 1, 0, 0, 0, 679, 682, 1, 0, 0, 0, 680, 683, 3, 126, 63, 0, 681, 683, 3, 128, 64, 0, 682, 680, 1, 0, 0, 0, 682, 681, 1, 0, 0, 0, 683, 125, 1, 0, 0, 0, 684, 686, 3, 160, 80, 0, 685, 687, 3, 130, 65, 0, 686, 685, 1, 0, 0, 0, 686, 687, 1, 0, 0, 0, 687, 127, 1, 0, 0, 0, 688, 689, 5, 46, 0, 0, 689, 692, 3, 130, 65, 0, 690, 691, 5, 47, 0, 0, 691, 693, 3, 138, 69, 0, 692, 690, 1, 0, 0, 0, 692, 693, 1, 0, 0, 0, 693, 129, 1, 0, 0, 0, 694, 705, 5, 31, 0, 0, 695, 698, 3, 132, 66, 0, 696, 697, 5, 38, 0, 0, 697, 699, 3, 134, 67, 0, 698, 696, 1, 0, 0, 0, 698, 699, 1, 0, 0, 0, 699, 706, 1, 0, 0, 0, 700, 703, 3, 134, 67, 0, 701, 702, 5, 38, 0, 0, 702, 704, 3, 132, 66, 0, 703, 701, 1, 0, 0, 0, 703, 704, 1, 0, 0, 0, 704, 706, 1, 0, 0, 0, 705, 695, 1, 0, 0, 0, 705, 700, 1, 0, 0, 0, 706, 131, 1, 0, 0, 0, 707, 708, 5, 49, 0, 0, 708, 709, 3, 136, 68, 0, 709, 133, 1, 0, 0, 0, 710, 711, 5, 48, 0, 0, 711, 716, 3, 136, 68, 0, 712, 713, 5, 38, 0, 0, 713, 715, 3, 136, 68, 0, 714, 712, 1, 0, 0, 0, 715, 718, 1, 0, 0, 0, 716, 714, 1, 0, 0, 0, 716, 717, 1, 0, 0, 0, 717, 135, 1, 0, 0, 0, 718, 716, 1, 0, 0, 0, 719, 722, 3, 146, 73, 0, 720, 722, 5, 62, 0, 0, 721, 719, 1, 0, 0, 0, 721, 720, 1, 0, 0, 0, 722, 137, 1, 0, 0, 0, 723, 728, 3, 140, 70, 0, 724, 725, 5, 38, 0, 0, 725, 727, 3, 140, 70, 0, 726, 724, 1, 0, 0, 0, 727, 730, 1, 0, 0, 0, 728, 726, 1, 0, 0, 0, 728, 729, 1, 0, 0, 0, 729, 139, 1, 0, 0, 0, 730, 728, 1, 0, 0, 0, 731, 732, 3, 146, 73, 0, 732, 734, 3, 142, 71, 0, 733, 735, 3, 144, 72, 0, 734, 733, 1, 0, 0, 0, 734, 735, 1, 0, 0, 0, 735, 141, 1, 0, 0, 0, 736, 737, 7, 8, 0, 0, 737, 143, 1, 0, 0, 0, 738, 744, 3, 160, 80, 0, 739, 744, 5, 42, 0, 0, 740, 744, 5, 43, 0, 0, 741, 744, 5, 71, 0, 0, 742, 744, 5, 58, 0, 0, 743, 738, 1, 0, 0, 0, 743, 739, 1, 0, 0, 0, 743, 740, 1, 0, 0, 0, 743, 741, 1, 0, 0, 0, 743, 742, 1, 0, 0, 0, 744, 145, 1, 0, 0, 0, 745, 751, 5, 73, 0, 0, 746, 751, 5, 60, 0, 0, 747, 751, 5, 64, 0, 0, 748, 751, 5, 65, 0, 0, 749, 751, 3, 182, 91, 0, 750, 745, 1, 0, 0, 0, 750, 746, 1, 0, 0, 0, 750, 747, 1, 0, 0, 0, 750, 748, 1, 0, 0, 0, 750, 749, 1, 0, 0, 0, 751, 147, 1, 0, 0, 0, 752, 758, 5, 73, 0, 0, 753, 758, 5, 60, 0, 0, 754, 758, 5, 64, 0, 0, 755, 758, 5, 65, 0, 0, 756, 758, 3, 182, 91, 0, 757, 752, 1, 0, 0, 0, 757, 753, 1, 0, 0, 0, 757, 754, 1, 0, 0, 0, 757, 755, 1, 0, 0, 0, 757, 756, 1, 0, 0, 0, 758, 149, 1, 0, 0, 0, 759, 760, 5, 70, 0, 0, 760, 151, 1, 0, 0, 0, 761, 762, 7, 9, 0, 0, 762, 153, 1, 0, 0, 0, 763, 764, 7, 10, 0, 0, 764, 155, 1, 0, 0, 0, 765, 778, 5, 58, 0, 0, 766, 778, 5, 59, 0, 0, 767, 778, 5, 60, 0, 0, 768, 778, 5, 64, 0, 0, 769, 778, 5, 65, 0, 0, 770, 778, 3, 168, 84, 0, 771, 778, 3, 174, 87, 0, 772, 778, 3, 160, 80, 0, 773, 778, 3, 164, 82, 0, 774, 778, 3, 166, 83, 0, 775, 778, 3, 178, 89, 0, 776, 778, 3, 146, 73, 0, 777, 765, 1, 0, 0, 0, 777, 766, 1, 0, 0, 0, 777, 767, 1, 0, 0, 0, 777, 768, 1, 0, 0, 0, 777, 769, 1, 0, 0, 0, 777, 770, 1, 0, 0, 0, 777, 771, 1, 0, 0, 0, 777, 772, 1, 0, 0, 0, 777, 773, 1, 0, 0, 0, 777, 774, 1, 0, 0, 0, 777, 775, 1, 0, 0, 0, 777, 776, 1, 0, 0, 0, 778, 157, 1, 0, 0, 0, 779, 782, 3, 146, 73, 0, 780, 781, 5, 37, 0, 0, 781, 783, 3, 146, 73, 0, 782, 780, 1, 0, 0, 0, 782, 783, 1, 0, 0, 0, 783, 784, 1, 0, 0, 0, 784, 788, 5, 66, 0, 0, 785, 787, 3, 152, 76, 0, 786, 785, 1, 0, 0, 0, 787, 790, 1, 0, 0, 0, 788, 786, 1, 0, 0, 0, 788, 789, 1, 0, 0, 0, 789, 159, 1, 0, 0, 0, 790, 788, 1, 0, 0, 0, 791, 793, 5, 62, 0, 0, 792, 794, 5, 58, 0, 0, 793, 792, 1, 0, 0, 0, 793, 794, 1, 0, 0, 0, 794, 161, 1, 0, 0, 0, 795, 797, 5, 54, 0, 0, 796, 798, 5, 62, 0, 0, 797, 796, 1, 0, 0, 0, 798, 799, 1, 0, 0, 0, 799, 797, 1, 0, 0, 0, 799, 800, 1, 0, 0, 0, 800, 802, 1, 0, 0, 0, 801, 803, 5, 58, 0, 0, 802, 801, 1, 0, 0, 0, 802, 803, 1, 0, 0, 0, 803, 805, 1, 0, 0, 0, 804, 806, 7, 4, 0, 0, 805, 804, 1, 0, 0, 0, 805, 806, 1, 0, 0, 0, 806, 163, 1, 0, 0, 0, 807, 809, 5, 60, 0, 0, 808, 807, 1, 0, 0, 0, 808, 809, 1, 0, 0, 0, 809, 810, 1, 0, 0, 0, 810, 812, 7, 11, 0, 0, 811, 813, 5, 58, 0, 0, 812, 811, 1, 0, 0, 0, 812, 813, 1, 0, 0, 0, 813, 165, 1, 0, 0, 0, 814, 815, 3, 176, 88, 0, 815, 816, 5, 55, 0, 0, 816, 817, 3, 176, 88, 0, 817, 167, 1, 0, 0, 0, 818, 820, 5, 67, 0, 0, 819, 821, 5, 58, 0, 0, 820, 819, 1, 0, 0, 0, 820, 821, 1, 0, 0, 0, 821, 169, 1, 0, 0, 0, 822, 823, 5, 67, 0, 0, 823, 171, 1, 0, 0, 0, 824, 825, 5, 68, 0, 0, 825, 173, 1, 0, 0, 0, 826, 827, 5, 69, 0, 0, 827, 175, 1, 0, 0, 0, 828, 831, 5, 60, 0, 0, 829, 831, 3, 164, 82, 0, 830, 828, 1, 0, 0, 0, 830, 829, 1, 0, 0, 0, 831, 177, 1, 0, 0, 0, 832, 833, 7, 12, 0, 0, 833, 179, 1, 0, 0, 0, 834, 839, 3, 146, 73, 0, 835, 839, 3, 170, 85, 0, 836, 839, 3, 174, 87, 0, 837, 839, 3, 172, 86, 0, 838, 834, 1, 0, 0, 0, 838, 835, 1, 0, 0, 0, 838, 836, 1, 0, 0, 0, 838, 837, 1, 0, 0, 0, 839, 181, 1, 0, 0, 0, 840, 841, 7, 13, 0, 0, 841, 183, 1, 0, 0, 0, 90, 187, 204, 216, 221, 228, 230, 236, 243, 245, 251, 259, 265, 272, 284, 289, 296, 302, 309, 314, 321, 327, 334, 339, 346, 352, 358, 365, 372, 378, 384, 389, 396, 406, 416, 429, 437, 443, 451, 456, 495, 508, 519, 528, 534, 541, 548, 558, 569, 574, 582, 587, 597, 606, 611, 614, 618, 623, 629, 635, 643, 650, 658, 666, 671, 678, 682, 686, 692, 698, 703, 705, 716, 721, 728, 734, 743, 750, 757, 777, 782, 788, 793, 799, 802, 805, 808, 812, 820, 830, 838] \ No newline at end of file diff --git a/src/import/generated/FSHListener.js b/src/import/generated/FSHListener.js index eba0f3cf0..5bd99c4b1 100644 --- a/src/import/generated/FSHListener.js +++ b/src/import/generated/FSHListener.js @@ -617,6 +617,15 @@ export default class FSHListener extends antlr4.tree.ParseTreeListener { } + // Enter a parse tree produced by FSHParser#vsFromTarget. + enterVsFromTarget(ctx) { + } + + // Exit a parse tree produced by FSHParser#vsFromTarget. + exitVsFromTarget(ctx) { + } + + // Enter a parse tree produced by FSHParser#vsFilterList. enterVsFilterList(ctx) { } diff --git a/src/import/generated/FSHParser.js b/src/import/generated/FSHParser.js index 6f757c857..e2075813f 100644 --- a/src/import/generated/FSHParser.js +++ b/src/import/generated/FSHParser.js @@ -4,7 +4,7 @@ import antlr4 from 'antlr4'; import FSHListener from './FSHListener.js'; import FSHVisitor from './FSHVisitor.js'; -const serializedATN = [4,1,89,837,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7, +const serializedATN = [4,1,89,843,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7, 4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12, 2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2, 20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27, @@ -16,274 +16,276 @@ const serializedATN = [4,1,89,837,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7, 63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70, 2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2, 78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85, -7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,1,0,5,0,184,8,0,10, -0,12,0,187,9,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3, -1,203,8,1,1,2,1,2,1,2,1,2,1,2,1,3,1,3,1,3,4,3,213,8,3,11,3,12,3,214,1,3, -5,3,218,8,3,10,3,12,3,221,9,3,1,4,1,4,1,4,1,4,5,4,227,8,4,10,4,12,4,230, -9,4,1,4,5,4,233,8,4,10,4,12,4,236,9,4,1,5,1,5,1,5,1,5,5,5,242,8,5,10,5,12, -5,245,9,5,1,5,5,5,248,8,5,10,5,12,5,251,9,5,1,6,1,6,1,6,5,6,256,8,6,10,6, -12,6,259,9,6,1,6,5,6,262,8,6,10,6,12,6,265,9,6,1,7,1,7,1,7,1,7,3,7,271,8, -7,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,3,8,283,8,8,1,9,1,9,1,9,3,9,288, -8,9,1,10,1,10,1,10,5,10,293,8,10,10,10,12,10,296,9,10,1,10,5,10,299,8,10, -10,10,12,10,302,9,10,1,11,1,11,1,11,1,11,3,11,308,8,11,1,12,1,12,1,12,3, -12,313,8,12,1,13,1,13,1,13,5,13,318,8,13,10,13,12,13,321,9,13,1,13,5,13, -324,8,13,10,13,12,13,327,9,13,1,14,1,14,1,14,1,14,3,14,333,8,14,1,15,1,15, -1,15,3,15,338,8,15,1,16,1,16,1,16,5,16,343,8,16,10,16,12,16,346,9,16,1,16, -5,16,349,8,16,10,16,12,16,352,9,16,1,17,1,17,1,17,3,17,357,8,17,1,18,1,18, -1,18,1,18,1,18,3,18,364,8,18,1,19,1,19,1,19,5,19,369,8,19,10,19,12,19,372, -9,19,1,19,5,19,375,8,19,10,19,12,19,378,9,19,1,20,1,20,1,20,3,20,383,8,20, -1,21,1,21,1,21,3,21,388,8,21,1,22,1,22,1,22,4,22,393,8,22,11,22,12,22,394, -1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,3,23,405,8,23,1,24,1,24,1,24,1,24, -1,25,1,25,5,25,413,8,25,10,25,12,25,416,9,25,1,25,1,25,1,26,1,26,1,27,1, -27,1,28,1,28,5,28,426,8,28,10,28,12,28,429,9,28,1,29,1,29,1,29,5,29,434, -8,29,10,29,12,29,437,9,29,1,29,5,29,440,8,29,10,29,12,29,443,9,29,1,30,1, -30,1,30,1,30,1,30,3,30,450,8,30,1,31,1,31,1,31,3,31,455,8,31,1,32,1,32,1, -32,1,33,1,33,1,33,1,34,1,34,1,34,1,35,1,35,1,35,1,36,1,36,1,36,1,37,1,37, -1,37,1,38,1,38,1,38,1,39,1,39,1,39,1,40,1,40,1,40,1,41,1,41,1,41,1,42,1, -42,1,42,1,43,1,43,5,43,492,8,43,10,43,12,43,495,9,43,1,43,1,43,1,44,1,44, -1,45,1,45,1,46,1,46,5,46,505,8,46,10,46,12,46,508,9,46,1,46,1,46,1,47,1, -47,1,47,1,47,5,47,516,8,47,10,47,12,47,519,9,47,1,48,1,48,1,48,1,48,5,48, -525,8,48,10,48,12,48,528,9,48,1,48,4,48,531,8,48,11,48,12,48,532,1,49,1, -49,1,49,1,49,1,49,3,49,540,8,49,1,50,1,50,1,50,1,50,1,50,3,50,547,8,50,1, -51,1,51,1,51,1,51,1,51,1,51,5,51,555,8,51,10,51,12,51,558,9,51,1,52,1,52, -1,52,1,52,1,52,1,52,5,52,566,8,52,10,52,12,52,569,9,52,1,53,1,53,3,53,573, -8,53,1,53,1,53,1,53,1,53,5,53,579,8,53,10,53,12,53,582,9,53,1,54,1,54,3, -54,586,8,54,1,54,1,54,1,54,1,54,1,55,1,55,5,55,594,8,55,10,55,12,55,597, -9,55,1,55,1,55,1,55,1,55,1,56,1,56,3,56,605,8,56,1,56,1,56,1,56,3,56,610, -8,56,1,56,3,56,613,8,56,1,57,1,57,3,57,617,8,57,1,57,1,57,1,57,3,57,622, -8,57,1,58,1,58,5,58,626,8,58,10,58,12,58,629,9,58,1,58,1,58,1,58,3,58,634, -8,58,1,59,1,59,1,59,1,59,5,59,640,8,59,10,59,12,59,643,9,59,1,59,1,59,1, -59,1,59,3,59,649,8,59,1,60,1,60,1,60,1,60,5,60,655,8,60,10,60,12,60,658, -9,60,1,60,1,60,1,60,5,60,663,8,60,10,60,12,60,666,9,60,1,60,1,60,3,60,670, -8,60,1,61,1,61,1,61,1,62,1,62,3,62,677,8,62,1,62,1,62,3,62,681,8,62,1,63, -1,63,3,63,685,8,63,1,64,1,64,1,64,1,64,3,64,691,8,64,1,65,1,65,1,65,1,65, -3,65,697,8,65,1,65,1,65,1,65,3,65,702,8,65,3,65,704,8,65,1,66,1,66,1,66, -1,67,1,67,1,67,1,67,5,67,713,8,67,10,67,12,67,716,9,67,1,68,1,68,1,68,5, -68,721,8,68,10,68,12,68,724,9,68,1,69,1,69,1,69,3,69,729,8,69,1,70,1,70, -1,71,1,71,1,71,1,71,1,71,3,71,738,8,71,1,72,1,72,1,72,1,72,1,72,3,72,745, -8,72,1,73,1,73,1,73,1,73,1,73,3,73,752,8,73,1,74,1,74,1,75,1,75,1,76,1,76, -1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,3,77,772,8,77, -1,78,1,78,1,78,3,78,777,8,78,1,78,1,78,5,78,781,8,78,10,78,12,78,784,9,78, -1,79,1,79,3,79,788,8,79,1,80,1,80,4,80,792,8,80,11,80,12,80,793,1,80,3,80, -797,8,80,1,80,3,80,800,8,80,1,81,3,81,803,8,81,1,81,1,81,3,81,807,8,81,1, -82,1,82,1,82,1,82,1,83,1,83,3,83,815,8,83,1,84,1,84,1,85,1,85,1,86,1,86, -1,87,1,87,3,87,825,8,87,1,88,1,88,1,89,1,89,1,89,1,89,3,89,833,8,89,1,90, -1,90,1,90,0,0,91,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38, -40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86, -88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126, -128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162, -164,166,168,170,172,174,176,178,180,0,14,2,0,62,62,73,73,2,0,78,78,80,80, -2,0,79,79,81,81,2,0,1,4,6,12,1,0,58,59,2,0,82,82,84,84,2,0,83,83,85,85,1, -0,44,45,2,0,53,53,73,73,1,0,25,30,1,0,32,35,1,0,61,62,1,0,42,43,3,0,26,31, -36,49,52,52,898,0,185,1,0,0,0,2,202,1,0,0,0,4,204,1,0,0,0,6,209,1,0,0,0, -8,222,1,0,0,0,10,237,1,0,0,0,12,252,1,0,0,0,14,270,1,0,0,0,16,282,1,0,0, -0,18,287,1,0,0,0,20,289,1,0,0,0,22,307,1,0,0,0,24,312,1,0,0,0,26,314,1,0, -0,0,28,332,1,0,0,0,30,337,1,0,0,0,32,339,1,0,0,0,34,356,1,0,0,0,36,363,1, -0,0,0,38,365,1,0,0,0,40,382,1,0,0,0,42,387,1,0,0,0,44,389,1,0,0,0,46,404, -1,0,0,0,48,406,1,0,0,0,50,410,1,0,0,0,52,419,1,0,0,0,54,421,1,0,0,0,56,423, -1,0,0,0,58,430,1,0,0,0,60,449,1,0,0,0,62,454,1,0,0,0,64,456,1,0,0,0,66,459, -1,0,0,0,68,462,1,0,0,0,70,465,1,0,0,0,72,468,1,0,0,0,74,471,1,0,0,0,76,474, -1,0,0,0,78,477,1,0,0,0,80,480,1,0,0,0,82,483,1,0,0,0,84,486,1,0,0,0,86,489, -1,0,0,0,88,498,1,0,0,0,90,500,1,0,0,0,92,502,1,0,0,0,94,511,1,0,0,0,96,520, -1,0,0,0,98,534,1,0,0,0,100,541,1,0,0,0,102,548,1,0,0,0,104,559,1,0,0,0,106, -570,1,0,0,0,108,583,1,0,0,0,110,591,1,0,0,0,112,602,1,0,0,0,114,614,1,0, -0,0,116,623,1,0,0,0,118,635,1,0,0,0,120,650,1,0,0,0,122,671,1,0,0,0,124, -674,1,0,0,0,126,682,1,0,0,0,128,686,1,0,0,0,130,692,1,0,0,0,132,705,1,0, -0,0,134,708,1,0,0,0,136,717,1,0,0,0,138,725,1,0,0,0,140,730,1,0,0,0,142, -737,1,0,0,0,144,744,1,0,0,0,146,751,1,0,0,0,148,753,1,0,0,0,150,755,1,0, -0,0,152,757,1,0,0,0,154,771,1,0,0,0,156,773,1,0,0,0,158,785,1,0,0,0,160, -789,1,0,0,0,162,802,1,0,0,0,164,808,1,0,0,0,166,812,1,0,0,0,168,816,1,0, -0,0,170,818,1,0,0,0,172,820,1,0,0,0,174,824,1,0,0,0,176,826,1,0,0,0,178, -832,1,0,0,0,180,834,1,0,0,0,182,184,3,2,1,0,183,182,1,0,0,0,184,187,1,0, -0,0,185,183,1,0,0,0,185,186,1,0,0,0,186,188,1,0,0,0,187,185,1,0,0,0,188, -189,5,0,0,1,189,1,1,0,0,0,190,203,3,4,2,0,191,203,3,6,3,0,192,203,3,8,4, -0,193,203,3,26,13,0,194,203,3,20,10,0,195,203,3,32,16,0,196,203,3,38,19, -0,197,203,3,44,22,0,198,203,3,48,24,0,199,203,3,58,29,0,200,203,3,10,5,0, -201,203,3,12,6,0,202,190,1,0,0,0,202,191,1,0,0,0,202,192,1,0,0,0,202,193, -1,0,0,0,202,194,1,0,0,0,202,195,1,0,0,0,202,196,1,0,0,0,202,197,1,0,0,0, -202,198,1,0,0,0,202,199,1,0,0,0,202,200,1,0,0,0,202,201,1,0,0,0,203,3,1, -0,0,0,204,205,5,1,0,0,205,206,3,144,72,0,206,207,5,53,0,0,207,208,7,0,0, -0,208,5,1,0,0,0,209,210,5,2,0,0,210,212,3,144,72,0,211,213,3,14,7,0,212, -211,1,0,0,0,213,214,1,0,0,0,214,212,1,0,0,0,214,215,1,0,0,0,215,219,1,0, -0,0,216,218,3,16,8,0,217,216,1,0,0,0,218,221,1,0,0,0,219,217,1,0,0,0,219, -220,1,0,0,0,220,7,1,0,0,0,221,219,1,0,0,0,222,223,5,3,0,0,223,228,3,144, -72,0,224,227,3,14,7,0,225,227,3,86,43,0,226,224,1,0,0,0,226,225,1,0,0,0, -227,230,1,0,0,0,228,226,1,0,0,0,228,229,1,0,0,0,229,234,1,0,0,0,230,228, -1,0,0,0,231,233,3,16,8,0,232,231,1,0,0,0,233,236,1,0,0,0,234,232,1,0,0,0, -234,235,1,0,0,0,235,9,1,0,0,0,236,234,1,0,0,0,237,238,5,11,0,0,238,243,3, -144,72,0,239,242,3,14,7,0,240,242,3,92,46,0,241,239,1,0,0,0,241,240,1,0, -0,0,242,245,1,0,0,0,243,241,1,0,0,0,243,244,1,0,0,0,244,249,1,0,0,0,245, -243,1,0,0,0,246,248,3,18,9,0,247,246,1,0,0,0,248,251,1,0,0,0,249,247,1,0, -0,0,249,250,1,0,0,0,250,11,1,0,0,0,251,249,1,0,0,0,252,253,5,12,0,0,253, -257,3,144,72,0,254,256,3,14,7,0,255,254,1,0,0,0,256,259,1,0,0,0,257,255, -1,0,0,0,257,258,1,0,0,0,258,263,1,0,0,0,259,257,1,0,0,0,260,262,3,18,9,0, -261,260,1,0,0,0,262,265,1,0,0,0,263,261,1,0,0,0,263,264,1,0,0,0,264,13,1, -0,0,0,265,263,1,0,0,0,266,271,3,64,32,0,267,271,3,66,33,0,268,271,3,68,34, -0,269,271,3,70,35,0,270,266,1,0,0,0,270,267,1,0,0,0,270,268,1,0,0,0,270, -269,1,0,0,0,271,15,1,0,0,0,272,283,3,94,47,0,273,283,3,96,48,0,274,283,3, -98,49,0,275,283,3,100,50,0,276,283,3,102,51,0,277,283,3,104,52,0,278,283, -3,106,53,0,279,283,3,108,54,0,280,283,3,114,57,0,281,283,3,122,61,0,282, -272,1,0,0,0,282,273,1,0,0,0,282,274,1,0,0,0,282,275,1,0,0,0,282,276,1,0, -0,0,282,277,1,0,0,0,282,278,1,0,0,0,282,279,1,0,0,0,282,280,1,0,0,0,282, -281,1,0,0,0,283,17,1,0,0,0,284,288,3,16,8,0,285,288,3,120,60,0,286,288,3, -118,59,0,287,284,1,0,0,0,287,285,1,0,0,0,287,286,1,0,0,0,288,19,1,0,0,0, -289,290,5,4,0,0,290,294,3,144,72,0,291,293,3,22,11,0,292,291,1,0,0,0,293, -296,1,0,0,0,294,292,1,0,0,0,294,295,1,0,0,0,295,300,1,0,0,0,296,294,1,0, -0,0,297,299,3,24,12,0,298,297,1,0,0,0,299,302,1,0,0,0,300,298,1,0,0,0,300, -301,1,0,0,0,301,21,1,0,0,0,302,300,1,0,0,0,303,308,3,78,39,0,304,308,3,68, -34,0,305,308,3,70,35,0,306,308,3,80,40,0,307,303,1,0,0,0,307,304,1,0,0,0, -307,305,1,0,0,0,307,306,1,0,0,0,308,23,1,0,0,0,309,313,3,100,50,0,310,313, -3,114,57,0,311,313,3,122,61,0,312,309,1,0,0,0,312,310,1,0,0,0,312,311,1, -0,0,0,313,25,1,0,0,0,314,315,5,6,0,0,315,319,3,144,72,0,316,318,3,28,14, -0,317,316,1,0,0,0,318,321,1,0,0,0,319,317,1,0,0,0,319,320,1,0,0,0,320,325, -1,0,0,0,321,319,1,0,0,0,322,324,3,30,15,0,323,322,1,0,0,0,324,327,1,0,0, -0,325,323,1,0,0,0,325,326,1,0,0,0,326,27,1,0,0,0,327,325,1,0,0,0,328,333, -3,70,35,0,329,333,3,72,36,0,330,333,3,74,37,0,331,333,3,76,38,0,332,328, -1,0,0,0,332,329,1,0,0,0,332,330,1,0,0,0,332,331,1,0,0,0,333,29,1,0,0,0,334, -338,3,100,50,0,335,338,3,114,57,0,336,338,3,122,61,0,337,334,1,0,0,0,337, -335,1,0,0,0,337,336,1,0,0,0,338,31,1,0,0,0,339,340,5,7,0,0,340,344,3,144, -72,0,341,343,3,34,17,0,342,341,1,0,0,0,343,346,1,0,0,0,344,342,1,0,0,0,344, -345,1,0,0,0,345,350,1,0,0,0,346,344,1,0,0,0,347,349,3,36,18,0,348,347,1, -0,0,0,349,352,1,0,0,0,350,348,1,0,0,0,350,351,1,0,0,0,351,33,1,0,0,0,352, -350,1,0,0,0,353,357,3,66,33,0,354,357,3,68,34,0,355,357,3,70,35,0,356,353, -1,0,0,0,356,354,1,0,0,0,356,355,1,0,0,0,357,35,1,0,0,0,358,364,3,124,62, -0,359,364,3,108,54,0,360,364,3,110,55,0,361,364,3,114,57,0,362,364,3,116, -58,0,363,358,1,0,0,0,363,359,1,0,0,0,363,360,1,0,0,0,363,361,1,0,0,0,363, -362,1,0,0,0,364,37,1,0,0,0,365,366,5,8,0,0,366,370,3,144,72,0,367,369,3, -40,20,0,368,367,1,0,0,0,369,372,1,0,0,0,370,368,1,0,0,0,370,371,1,0,0,0, -371,376,1,0,0,0,372,370,1,0,0,0,373,375,3,42,21,0,374,373,1,0,0,0,375,378, -1,0,0,0,376,374,1,0,0,0,376,377,1,0,0,0,377,39,1,0,0,0,378,376,1,0,0,0,379, -383,3,66,33,0,380,383,3,68,34,0,381,383,3,70,35,0,382,379,1,0,0,0,382,380, -1,0,0,0,382,381,1,0,0,0,383,41,1,0,0,0,384,388,3,160,80,0,385,388,3,110, -55,0,386,388,3,116,58,0,387,384,1,0,0,0,387,385,1,0,0,0,387,386,1,0,0,0, -388,43,1,0,0,0,389,390,5,9,0,0,390,392,5,77,0,0,391,393,3,46,23,0,392,391, -1,0,0,0,393,394,1,0,0,0,394,392,1,0,0,0,394,395,1,0,0,0,395,45,1,0,0,0,396, -405,3,16,8,0,397,405,3,120,60,0,398,405,3,118,59,0,399,405,3,160,80,0,400, -405,3,110,55,0,401,405,3,116,58,0,402,405,3,124,62,0,403,405,3,112,56,0, -404,396,1,0,0,0,404,397,1,0,0,0,404,398,1,0,0,0,404,399,1,0,0,0,404,400, -1,0,0,0,404,401,1,0,0,0,404,402,1,0,0,0,404,403,1,0,0,0,405,47,1,0,0,0,406, -407,5,9,0,0,407,408,3,50,25,0,408,409,3,56,28,0,409,49,1,0,0,0,410,414,5, -76,0,0,411,413,3,52,26,0,412,411,1,0,0,0,413,416,1,0,0,0,414,412,1,0,0,0, -414,415,1,0,0,0,415,417,1,0,0,0,416,414,1,0,0,0,417,418,3,54,27,0,418,51, -1,0,0,0,419,420,7,1,0,0,420,53,1,0,0,0,421,422,7,2,0,0,422,55,1,0,0,0,423, -427,5,54,0,0,424,426,8,3,0,0,425,424,1,0,0,0,426,429,1,0,0,0,427,425,1,0, -0,0,427,428,1,0,0,0,428,57,1,0,0,0,429,427,1,0,0,0,430,431,5,10,0,0,431, -435,3,144,72,0,432,434,3,60,30,0,433,432,1,0,0,0,434,437,1,0,0,0,435,433, -1,0,0,0,435,436,1,0,0,0,436,441,1,0,0,0,437,435,1,0,0,0,438,440,3,62,31, -0,439,438,1,0,0,0,440,443,1,0,0,0,441,439,1,0,0,0,441,442,1,0,0,0,442,59, -1,0,0,0,443,441,1,0,0,0,444,450,3,66,33,0,445,450,3,82,41,0,446,450,3,84, -42,0,447,450,3,70,35,0,448,450,3,68,34,0,449,444,1,0,0,0,449,445,1,0,0,0, -449,446,1,0,0,0,449,447,1,0,0,0,449,448,1,0,0,0,450,61,1,0,0,0,451,455,3, -112,56,0,452,455,3,114,57,0,453,455,3,122,61,0,454,451,1,0,0,0,454,452,1, -0,0,0,454,453,1,0,0,0,455,63,1,0,0,0,456,457,5,13,0,0,457,458,3,144,72,0, -458,65,1,0,0,0,459,460,5,14,0,0,460,461,3,144,72,0,461,67,1,0,0,0,462,463, -5,15,0,0,463,464,5,58,0,0,464,69,1,0,0,0,465,466,5,16,0,0,466,467,7,4,0, -0,467,71,1,0,0,0,468,469,5,17,0,0,469,470,5,58,0,0,470,73,1,0,0,0,471,472, -5,18,0,0,472,473,5,58,0,0,473,75,1,0,0,0,474,475,5,19,0,0,475,476,5,62,0, -0,476,77,1,0,0,0,477,478,5,5,0,0,478,479,3,144,72,0,479,79,1,0,0,0,480,481, -5,20,0,0,481,482,5,62,0,0,482,81,1,0,0,0,483,484,5,21,0,0,484,485,3,144, -72,0,485,83,1,0,0,0,486,487,5,22,0,0,487,488,5,58,0,0,488,85,1,0,0,0,489, -493,5,23,0,0,490,492,3,88,44,0,491,490,1,0,0,0,492,495,1,0,0,0,493,491,1, -0,0,0,493,494,1,0,0,0,494,496,1,0,0,0,495,493,1,0,0,0,496,497,3,90,45,0, -497,87,1,0,0,0,498,499,7,5,0,0,499,89,1,0,0,0,500,501,7,6,0,0,501,91,1,0, -0,0,502,506,5,24,0,0,503,505,5,87,0,0,504,503,1,0,0,0,505,508,1,0,0,0,506, -504,1,0,0,0,506,507,1,0,0,0,507,509,1,0,0,0,508,506,1,0,0,0,509,510,5,88, -0,0,510,93,1,0,0,0,511,512,5,54,0,0,512,513,3,146,73,0,513,517,5,66,0,0, -514,516,3,150,75,0,515,514,1,0,0,0,516,519,1,0,0,0,517,515,1,0,0,0,517,518, -1,0,0,0,518,95,1,0,0,0,519,517,1,0,0,0,520,521,5,54,0,0,521,526,3,146,73, -0,522,523,5,38,0,0,523,525,3,146,73,0,524,522,1,0,0,0,525,528,1,0,0,0,526, -524,1,0,0,0,526,527,1,0,0,0,527,530,1,0,0,0,528,526,1,0,0,0,529,531,3,150, -75,0,530,529,1,0,0,0,531,532,1,0,0,0,532,530,1,0,0,0,532,533,1,0,0,0,533, -97,1,0,0,0,534,535,5,54,0,0,535,536,3,146,73,0,536,537,5,31,0,0,537,539, -3,144,72,0,538,540,3,152,76,0,539,538,1,0,0,0,539,540,1,0,0,0,540,99,1,0, -0,0,541,542,5,54,0,0,542,543,3,146,73,0,543,544,5,53,0,0,544,546,3,154,77, -0,545,547,5,50,0,0,546,545,1,0,0,0,546,547,1,0,0,0,547,101,1,0,0,0,548,549, -5,54,0,0,549,550,3,146,73,0,550,551,5,36,0,0,551,556,3,156,78,0,552,553, -5,38,0,0,553,555,3,156,78,0,554,552,1,0,0,0,555,558,1,0,0,0,556,554,1,0, -0,0,556,557,1,0,0,0,557,103,1,0,0,0,558,556,1,0,0,0,559,560,5,54,0,0,560, -561,3,146,73,0,561,562,5,39,0,0,562,567,3,178,89,0,563,564,5,40,0,0,564, -566,3,178,89,0,565,563,1,0,0,0,566,569,1,0,0,0,567,565,1,0,0,0,567,568,1, -0,0,0,568,105,1,0,0,0,569,567,1,0,0,0,570,572,5,54,0,0,571,573,3,146,73, -0,572,571,1,0,0,0,572,573,1,0,0,0,573,574,1,0,0,0,574,575,5,41,0,0,575,580, -3,144,72,0,576,577,5,38,0,0,577,579,3,144,72,0,578,576,1,0,0,0,579,582,1, -0,0,0,580,578,1,0,0,0,580,581,1,0,0,0,581,107,1,0,0,0,582,580,1,0,0,0,583, -585,5,54,0,0,584,586,3,146,73,0,585,584,1,0,0,0,585,586,1,0,0,0,586,587, -1,0,0,0,587,588,3,148,74,0,588,589,5,53,0,0,589,590,3,154,77,0,590,109,1, -0,0,0,591,595,5,54,0,0,592,594,5,62,0,0,593,592,1,0,0,0,594,597,1,0,0,0, -595,593,1,0,0,0,595,596,1,0,0,0,596,598,1,0,0,0,597,595,1,0,0,0,598,599, -3,148,74,0,599,600,5,53,0,0,600,601,3,154,77,0,601,111,1,0,0,0,602,604,5, -54,0,0,603,605,3,146,73,0,604,603,1,0,0,0,604,605,1,0,0,0,605,606,1,0,0, -0,606,607,5,57,0,0,607,609,5,58,0,0,608,610,5,58,0,0,609,608,1,0,0,0,609, -610,1,0,0,0,610,612,1,0,0,0,611,613,5,62,0,0,612,611,1,0,0,0,612,613,1,0, -0,0,613,113,1,0,0,0,614,616,5,54,0,0,615,617,3,146,73,0,616,615,1,0,0,0, -616,617,1,0,0,0,617,618,1,0,0,0,618,621,5,51,0,0,619,622,5,77,0,0,620,622, -3,50,25,0,621,619,1,0,0,0,621,620,1,0,0,0,622,115,1,0,0,0,623,627,5,54,0, -0,624,626,5,62,0,0,625,624,1,0,0,0,626,629,1,0,0,0,627,625,1,0,0,0,627,628, -1,0,0,0,628,630,1,0,0,0,629,627,1,0,0,0,630,633,5,51,0,0,631,634,5,77,0, -0,632,634,3,50,25,0,633,631,1,0,0,0,633,632,1,0,0,0,634,117,1,0,0,0,635, -636,5,54,0,0,636,637,3,146,73,0,637,641,5,66,0,0,638,640,3,150,75,0,639, -638,1,0,0,0,640,643,1,0,0,0,641,639,1,0,0,0,641,642,1,0,0,0,642,644,1,0, -0,0,643,641,1,0,0,0,644,645,5,52,0,0,645,646,7,0,0,0,646,648,5,58,0,0,647, -649,7,4,0,0,648,647,1,0,0,0,648,649,1,0,0,0,649,119,1,0,0,0,650,651,5,54, -0,0,651,652,3,146,73,0,652,656,5,66,0,0,653,655,3,150,75,0,654,653,1,0,0, -0,655,658,1,0,0,0,656,654,1,0,0,0,656,657,1,0,0,0,657,659,1,0,0,0,658,656, -1,0,0,0,659,664,3,178,89,0,660,661,5,40,0,0,661,663,3,178,89,0,662,660,1, -0,0,0,663,666,1,0,0,0,664,662,1,0,0,0,664,665,1,0,0,0,665,667,1,0,0,0,666, -664,1,0,0,0,667,669,5,58,0,0,668,670,7,4,0,0,669,668,1,0,0,0,669,670,1,0, -0,0,670,121,1,0,0,0,671,672,5,54,0,0,672,673,3,146,73,0,673,123,1,0,0,0, -674,676,5,54,0,0,675,677,7,7,0,0,676,675,1,0,0,0,676,677,1,0,0,0,677,680, -1,0,0,0,678,681,3,126,63,0,679,681,3,128,64,0,680,678,1,0,0,0,680,679,1, -0,0,0,681,125,1,0,0,0,682,684,3,158,79,0,683,685,3,130,65,0,684,683,1,0, -0,0,684,685,1,0,0,0,685,127,1,0,0,0,686,687,5,46,0,0,687,690,3,130,65,0, -688,689,5,47,0,0,689,691,3,136,68,0,690,688,1,0,0,0,690,691,1,0,0,0,691, -129,1,0,0,0,692,703,5,31,0,0,693,696,3,132,66,0,694,695,5,38,0,0,695,697, -3,134,67,0,696,694,1,0,0,0,696,697,1,0,0,0,697,704,1,0,0,0,698,701,3,134, -67,0,699,700,5,38,0,0,700,702,3,132,66,0,701,699,1,0,0,0,701,702,1,0,0,0, -702,704,1,0,0,0,703,693,1,0,0,0,703,698,1,0,0,0,704,131,1,0,0,0,705,706, -5,49,0,0,706,707,3,144,72,0,707,133,1,0,0,0,708,709,5,48,0,0,709,714,3,144, -72,0,710,711,5,38,0,0,711,713,3,144,72,0,712,710,1,0,0,0,713,716,1,0,0,0, -714,712,1,0,0,0,714,715,1,0,0,0,715,135,1,0,0,0,716,714,1,0,0,0,717,722, -3,138,69,0,718,719,5,38,0,0,719,721,3,138,69,0,720,718,1,0,0,0,721,724,1, -0,0,0,722,720,1,0,0,0,722,723,1,0,0,0,723,137,1,0,0,0,724,722,1,0,0,0,725, -726,3,144,72,0,726,728,3,140,70,0,727,729,3,142,71,0,728,727,1,0,0,0,728, -729,1,0,0,0,729,139,1,0,0,0,730,731,7,8,0,0,731,141,1,0,0,0,732,738,3,158, -79,0,733,738,5,42,0,0,734,738,5,43,0,0,735,738,5,71,0,0,736,738,5,58,0,0, -737,732,1,0,0,0,737,733,1,0,0,0,737,734,1,0,0,0,737,735,1,0,0,0,737,736, -1,0,0,0,738,143,1,0,0,0,739,745,5,73,0,0,740,745,5,60,0,0,741,745,5,64,0, -0,742,745,5,65,0,0,743,745,3,180,90,0,744,739,1,0,0,0,744,740,1,0,0,0,744, -741,1,0,0,0,744,742,1,0,0,0,744,743,1,0,0,0,745,145,1,0,0,0,746,752,5,73, -0,0,747,752,5,60,0,0,748,752,5,64,0,0,749,752,5,65,0,0,750,752,3,180,90, -0,751,746,1,0,0,0,751,747,1,0,0,0,751,748,1,0,0,0,751,749,1,0,0,0,751,750, -1,0,0,0,752,147,1,0,0,0,753,754,5,70,0,0,754,149,1,0,0,0,755,756,7,9,0,0, -756,151,1,0,0,0,757,758,7,10,0,0,758,153,1,0,0,0,759,772,5,58,0,0,760,772, -5,59,0,0,761,772,5,60,0,0,762,772,5,64,0,0,763,772,5,65,0,0,764,772,3,166, -83,0,765,772,3,172,86,0,766,772,3,158,79,0,767,772,3,162,81,0,768,772,3, -164,82,0,769,772,3,176,88,0,770,772,3,144,72,0,771,759,1,0,0,0,771,760,1, -0,0,0,771,761,1,0,0,0,771,762,1,0,0,0,771,763,1,0,0,0,771,764,1,0,0,0,771, -765,1,0,0,0,771,766,1,0,0,0,771,767,1,0,0,0,771,768,1,0,0,0,771,769,1,0, -0,0,771,770,1,0,0,0,772,155,1,0,0,0,773,776,3,144,72,0,774,775,5,37,0,0, -775,777,3,144,72,0,776,774,1,0,0,0,776,777,1,0,0,0,777,778,1,0,0,0,778,782, -5,66,0,0,779,781,3,150,75,0,780,779,1,0,0,0,781,784,1,0,0,0,782,780,1,0, -0,0,782,783,1,0,0,0,783,157,1,0,0,0,784,782,1,0,0,0,785,787,5,62,0,0,786, -788,5,58,0,0,787,786,1,0,0,0,787,788,1,0,0,0,788,159,1,0,0,0,789,791,5,54, -0,0,790,792,5,62,0,0,791,790,1,0,0,0,792,793,1,0,0,0,793,791,1,0,0,0,793, -794,1,0,0,0,794,796,1,0,0,0,795,797,5,58,0,0,796,795,1,0,0,0,796,797,1,0, -0,0,797,799,1,0,0,0,798,800,7,4,0,0,799,798,1,0,0,0,799,800,1,0,0,0,800, -161,1,0,0,0,801,803,5,60,0,0,802,801,1,0,0,0,802,803,1,0,0,0,803,804,1,0, -0,0,804,806,7,11,0,0,805,807,5,58,0,0,806,805,1,0,0,0,806,807,1,0,0,0,807, -163,1,0,0,0,808,809,3,174,87,0,809,810,5,55,0,0,810,811,3,174,87,0,811,165, -1,0,0,0,812,814,5,67,0,0,813,815,5,58,0,0,814,813,1,0,0,0,814,815,1,0,0, -0,815,167,1,0,0,0,816,817,5,67,0,0,817,169,1,0,0,0,818,819,5,68,0,0,819, -171,1,0,0,0,820,821,5,69,0,0,821,173,1,0,0,0,822,825,5,60,0,0,823,825,3, -162,81,0,824,822,1,0,0,0,824,823,1,0,0,0,825,175,1,0,0,0,826,827,7,12,0, -0,827,177,1,0,0,0,828,833,3,144,72,0,829,833,3,168,84,0,830,833,3,172,86, -0,831,833,3,170,85,0,832,828,1,0,0,0,832,829,1,0,0,0,832,830,1,0,0,0,832, -831,1,0,0,0,833,179,1,0,0,0,834,835,7,13,0,0,835,181,1,0,0,0,89,185,202, -214,219,226,228,234,241,243,249,257,263,270,282,287,294,300,307,312,319, -325,332,337,344,350,356,363,370,376,382,387,394,404,414,427,435,441,449, -454,493,506,517,526,532,539,546,556,567,572,580,585,595,604,609,612,616, -621,627,633,641,648,656,664,669,676,680,684,690,696,701,703,714,722,728, -737,744,751,771,776,782,787,793,796,799,802,806,814,824,832]; +7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,1,0,5,0, +186,8,0,10,0,12,0,189,9,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, +1,1,1,1,1,3,1,205,8,1,1,2,1,2,1,2,1,2,1,2,1,3,1,3,1,3,4,3,215,8,3,11,3,12, +3,216,1,3,5,3,220,8,3,10,3,12,3,223,9,3,1,4,1,4,1,4,1,4,5,4,229,8,4,10,4, +12,4,232,9,4,1,4,5,4,235,8,4,10,4,12,4,238,9,4,1,5,1,5,1,5,1,5,5,5,244,8, +5,10,5,12,5,247,9,5,1,5,5,5,250,8,5,10,5,12,5,253,9,5,1,6,1,6,1,6,5,6,258, +8,6,10,6,12,6,261,9,6,1,6,5,6,264,8,6,10,6,12,6,267,9,6,1,7,1,7,1,7,1,7, +3,7,273,8,7,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,3,8,285,8,8,1,9,1,9, +1,9,3,9,290,8,9,1,10,1,10,1,10,5,10,295,8,10,10,10,12,10,298,9,10,1,10,5, +10,301,8,10,10,10,12,10,304,9,10,1,11,1,11,1,11,1,11,3,11,310,8,11,1,12, +1,12,1,12,3,12,315,8,12,1,13,1,13,1,13,5,13,320,8,13,10,13,12,13,323,9,13, +1,13,5,13,326,8,13,10,13,12,13,329,9,13,1,14,1,14,1,14,1,14,3,14,335,8,14, +1,15,1,15,1,15,3,15,340,8,15,1,16,1,16,1,16,5,16,345,8,16,10,16,12,16,348, +9,16,1,16,5,16,351,8,16,10,16,12,16,354,9,16,1,17,1,17,1,17,3,17,359,8,17, +1,18,1,18,1,18,1,18,1,18,3,18,366,8,18,1,19,1,19,1,19,5,19,371,8,19,10,19, +12,19,374,9,19,1,19,5,19,377,8,19,10,19,12,19,380,9,19,1,20,1,20,1,20,3, +20,385,8,20,1,21,1,21,1,21,3,21,390,8,21,1,22,1,22,1,22,4,22,395,8,22,11, +22,12,22,396,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,3,23,407,8,23,1,24, +1,24,1,24,1,24,1,25,1,25,5,25,415,8,25,10,25,12,25,418,9,25,1,25,1,25,1, +26,1,26,1,27,1,27,1,28,1,28,5,28,428,8,28,10,28,12,28,431,9,28,1,29,1,29, +1,29,5,29,436,8,29,10,29,12,29,439,9,29,1,29,5,29,442,8,29,10,29,12,29,445, +9,29,1,30,1,30,1,30,1,30,1,30,3,30,452,8,30,1,31,1,31,1,31,3,31,457,8,31, +1,32,1,32,1,32,1,33,1,33,1,33,1,34,1,34,1,34,1,35,1,35,1,35,1,36,1,36,1, +36,1,37,1,37,1,37,1,38,1,38,1,38,1,39,1,39,1,39,1,40,1,40,1,40,1,41,1,41, +1,41,1,42,1,42,1,42,1,43,1,43,5,43,494,8,43,10,43,12,43,497,9,43,1,43,1, +43,1,44,1,44,1,45,1,45,1,46,1,46,5,46,507,8,46,10,46,12,46,510,9,46,1,46, +1,46,1,47,1,47,1,47,1,47,5,47,518,8,47,10,47,12,47,521,9,47,1,48,1,48,1, +48,1,48,5,48,527,8,48,10,48,12,48,530,9,48,1,48,4,48,533,8,48,11,48,12,48, +534,1,49,1,49,1,49,1,49,1,49,3,49,542,8,49,1,50,1,50,1,50,1,50,1,50,3,50, +549,8,50,1,51,1,51,1,51,1,51,1,51,1,51,5,51,557,8,51,10,51,12,51,560,9,51, +1,52,1,52,1,52,1,52,1,52,1,52,5,52,568,8,52,10,52,12,52,571,9,52,1,53,1, +53,3,53,575,8,53,1,53,1,53,1,53,1,53,5,53,581,8,53,10,53,12,53,584,9,53, +1,54,1,54,3,54,588,8,54,1,54,1,54,1,54,1,54,1,55,1,55,5,55,596,8,55,10,55, +12,55,599,9,55,1,55,1,55,1,55,1,55,1,56,1,56,3,56,607,8,56,1,56,1,56,1,56, +3,56,612,8,56,1,56,3,56,615,8,56,1,57,1,57,3,57,619,8,57,1,57,1,57,1,57, +3,57,624,8,57,1,58,1,58,5,58,628,8,58,10,58,12,58,631,9,58,1,58,1,58,1,58, +3,58,636,8,58,1,59,1,59,1,59,1,59,5,59,642,8,59,10,59,12,59,645,9,59,1,59, +1,59,1,59,1,59,3,59,651,8,59,1,60,1,60,1,60,1,60,5,60,657,8,60,10,60,12, +60,660,9,60,1,60,1,60,1,60,5,60,665,8,60,10,60,12,60,668,9,60,1,60,1,60, +3,60,672,8,60,1,61,1,61,1,61,1,62,1,62,3,62,679,8,62,1,62,1,62,3,62,683, +8,62,1,63,1,63,3,63,687,8,63,1,64,1,64,1,64,1,64,3,64,693,8,64,1,65,1,65, +1,65,1,65,3,65,699,8,65,1,65,1,65,1,65,3,65,704,8,65,3,65,706,8,65,1,66, +1,66,1,66,1,67,1,67,1,67,1,67,5,67,715,8,67,10,67,12,67,718,9,67,1,68,1, +68,3,68,722,8,68,1,69,1,69,1,69,5,69,727,8,69,10,69,12,69,730,9,69,1,70, +1,70,1,70,3,70,735,8,70,1,71,1,71,1,72,1,72,1,72,1,72,1,72,3,72,744,8,72, +1,73,1,73,1,73,1,73,1,73,3,73,751,8,73,1,74,1,74,1,74,1,74,1,74,3,74,758, +8,74,1,75,1,75,1,76,1,76,1,77,1,77,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1, +78,1,78,1,78,1,78,1,78,3,78,778,8,78,1,79,1,79,1,79,3,79,783,8,79,1,79,1, +79,5,79,787,8,79,10,79,12,79,790,9,79,1,80,1,80,3,80,794,8,80,1,81,1,81, +4,81,798,8,81,11,81,12,81,799,1,81,3,81,803,8,81,1,81,3,81,806,8,81,1,82, +3,82,809,8,82,1,82,1,82,3,82,813,8,82,1,83,1,83,1,83,1,83,1,84,1,84,3,84, +821,8,84,1,85,1,85,1,86,1,86,1,87,1,87,1,88,1,88,3,88,831,8,88,1,89,1,89, +1,90,1,90,1,90,1,90,3,90,839,8,90,1,91,1,91,1,91,0,0,92,0,2,4,6,8,10,12, +14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60, +62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106, +108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142, +144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178, +180,182,0,14,2,0,62,62,73,73,2,0,78,78,80,80,2,0,79,79,81,81,2,0,1,4,6,12, +1,0,58,59,2,0,82,82,84,84,2,0,83,83,85,85,1,0,44,45,2,0,53,53,73,73,1,0, +25,30,1,0,32,35,1,0,61,62,1,0,42,43,3,0,26,31,36,49,52,52,904,0,187,1,0, +0,0,2,204,1,0,0,0,4,206,1,0,0,0,6,211,1,0,0,0,8,224,1,0,0,0,10,239,1,0,0, +0,12,254,1,0,0,0,14,272,1,0,0,0,16,284,1,0,0,0,18,289,1,0,0,0,20,291,1,0, +0,0,22,309,1,0,0,0,24,314,1,0,0,0,26,316,1,0,0,0,28,334,1,0,0,0,30,339,1, +0,0,0,32,341,1,0,0,0,34,358,1,0,0,0,36,365,1,0,0,0,38,367,1,0,0,0,40,384, +1,0,0,0,42,389,1,0,0,0,44,391,1,0,0,0,46,406,1,0,0,0,48,408,1,0,0,0,50,412, +1,0,0,0,52,421,1,0,0,0,54,423,1,0,0,0,56,425,1,0,0,0,58,432,1,0,0,0,60,451, +1,0,0,0,62,456,1,0,0,0,64,458,1,0,0,0,66,461,1,0,0,0,68,464,1,0,0,0,70,467, +1,0,0,0,72,470,1,0,0,0,74,473,1,0,0,0,76,476,1,0,0,0,78,479,1,0,0,0,80,482, +1,0,0,0,82,485,1,0,0,0,84,488,1,0,0,0,86,491,1,0,0,0,88,500,1,0,0,0,90,502, +1,0,0,0,92,504,1,0,0,0,94,513,1,0,0,0,96,522,1,0,0,0,98,536,1,0,0,0,100, +543,1,0,0,0,102,550,1,0,0,0,104,561,1,0,0,0,106,572,1,0,0,0,108,585,1,0, +0,0,110,593,1,0,0,0,112,604,1,0,0,0,114,616,1,0,0,0,116,625,1,0,0,0,118, +637,1,0,0,0,120,652,1,0,0,0,122,673,1,0,0,0,124,676,1,0,0,0,126,684,1,0, +0,0,128,688,1,0,0,0,130,694,1,0,0,0,132,707,1,0,0,0,134,710,1,0,0,0,136, +721,1,0,0,0,138,723,1,0,0,0,140,731,1,0,0,0,142,736,1,0,0,0,144,743,1,0, +0,0,146,750,1,0,0,0,148,757,1,0,0,0,150,759,1,0,0,0,152,761,1,0,0,0,154, +763,1,0,0,0,156,777,1,0,0,0,158,779,1,0,0,0,160,791,1,0,0,0,162,795,1,0, +0,0,164,808,1,0,0,0,166,814,1,0,0,0,168,818,1,0,0,0,170,822,1,0,0,0,172, +824,1,0,0,0,174,826,1,0,0,0,176,830,1,0,0,0,178,832,1,0,0,0,180,838,1,0, +0,0,182,840,1,0,0,0,184,186,3,2,1,0,185,184,1,0,0,0,186,189,1,0,0,0,187, +185,1,0,0,0,187,188,1,0,0,0,188,190,1,0,0,0,189,187,1,0,0,0,190,191,5,0, +0,1,191,1,1,0,0,0,192,205,3,4,2,0,193,205,3,6,3,0,194,205,3,8,4,0,195,205, +3,26,13,0,196,205,3,20,10,0,197,205,3,32,16,0,198,205,3,38,19,0,199,205, +3,44,22,0,200,205,3,48,24,0,201,205,3,58,29,0,202,205,3,10,5,0,203,205,3, +12,6,0,204,192,1,0,0,0,204,193,1,0,0,0,204,194,1,0,0,0,204,195,1,0,0,0,204, +196,1,0,0,0,204,197,1,0,0,0,204,198,1,0,0,0,204,199,1,0,0,0,204,200,1,0, +0,0,204,201,1,0,0,0,204,202,1,0,0,0,204,203,1,0,0,0,205,3,1,0,0,0,206,207, +5,1,0,0,207,208,3,146,73,0,208,209,5,53,0,0,209,210,7,0,0,0,210,5,1,0,0, +0,211,212,5,2,0,0,212,214,3,146,73,0,213,215,3,14,7,0,214,213,1,0,0,0,215, +216,1,0,0,0,216,214,1,0,0,0,216,217,1,0,0,0,217,221,1,0,0,0,218,220,3,16, +8,0,219,218,1,0,0,0,220,223,1,0,0,0,221,219,1,0,0,0,221,222,1,0,0,0,222, +7,1,0,0,0,223,221,1,0,0,0,224,225,5,3,0,0,225,230,3,146,73,0,226,229,3,14, +7,0,227,229,3,86,43,0,228,226,1,0,0,0,228,227,1,0,0,0,229,232,1,0,0,0,230, +228,1,0,0,0,230,231,1,0,0,0,231,236,1,0,0,0,232,230,1,0,0,0,233,235,3,16, +8,0,234,233,1,0,0,0,235,238,1,0,0,0,236,234,1,0,0,0,236,237,1,0,0,0,237, +9,1,0,0,0,238,236,1,0,0,0,239,240,5,11,0,0,240,245,3,146,73,0,241,244,3, +14,7,0,242,244,3,92,46,0,243,241,1,0,0,0,243,242,1,0,0,0,244,247,1,0,0,0, +245,243,1,0,0,0,245,246,1,0,0,0,246,251,1,0,0,0,247,245,1,0,0,0,248,250, +3,18,9,0,249,248,1,0,0,0,250,253,1,0,0,0,251,249,1,0,0,0,251,252,1,0,0,0, +252,11,1,0,0,0,253,251,1,0,0,0,254,255,5,12,0,0,255,259,3,146,73,0,256,258, +3,14,7,0,257,256,1,0,0,0,258,261,1,0,0,0,259,257,1,0,0,0,259,260,1,0,0,0, +260,265,1,0,0,0,261,259,1,0,0,0,262,264,3,18,9,0,263,262,1,0,0,0,264,267, +1,0,0,0,265,263,1,0,0,0,265,266,1,0,0,0,266,13,1,0,0,0,267,265,1,0,0,0,268, +273,3,64,32,0,269,273,3,66,33,0,270,273,3,68,34,0,271,273,3,70,35,0,272, +268,1,0,0,0,272,269,1,0,0,0,272,270,1,0,0,0,272,271,1,0,0,0,273,15,1,0,0, +0,274,285,3,94,47,0,275,285,3,96,48,0,276,285,3,98,49,0,277,285,3,100,50, +0,278,285,3,102,51,0,279,285,3,104,52,0,280,285,3,106,53,0,281,285,3,108, +54,0,282,285,3,114,57,0,283,285,3,122,61,0,284,274,1,0,0,0,284,275,1,0,0, +0,284,276,1,0,0,0,284,277,1,0,0,0,284,278,1,0,0,0,284,279,1,0,0,0,284,280, +1,0,0,0,284,281,1,0,0,0,284,282,1,0,0,0,284,283,1,0,0,0,285,17,1,0,0,0,286, +290,3,16,8,0,287,290,3,120,60,0,288,290,3,118,59,0,289,286,1,0,0,0,289,287, +1,0,0,0,289,288,1,0,0,0,290,19,1,0,0,0,291,292,5,4,0,0,292,296,3,146,73, +0,293,295,3,22,11,0,294,293,1,0,0,0,295,298,1,0,0,0,296,294,1,0,0,0,296, +297,1,0,0,0,297,302,1,0,0,0,298,296,1,0,0,0,299,301,3,24,12,0,300,299,1, +0,0,0,301,304,1,0,0,0,302,300,1,0,0,0,302,303,1,0,0,0,303,21,1,0,0,0,304, +302,1,0,0,0,305,310,3,78,39,0,306,310,3,68,34,0,307,310,3,70,35,0,308,310, +3,80,40,0,309,305,1,0,0,0,309,306,1,0,0,0,309,307,1,0,0,0,309,308,1,0,0, +0,310,23,1,0,0,0,311,315,3,100,50,0,312,315,3,114,57,0,313,315,3,122,61, +0,314,311,1,0,0,0,314,312,1,0,0,0,314,313,1,0,0,0,315,25,1,0,0,0,316,317, +5,6,0,0,317,321,3,146,73,0,318,320,3,28,14,0,319,318,1,0,0,0,320,323,1,0, +0,0,321,319,1,0,0,0,321,322,1,0,0,0,322,327,1,0,0,0,323,321,1,0,0,0,324, +326,3,30,15,0,325,324,1,0,0,0,326,329,1,0,0,0,327,325,1,0,0,0,327,328,1, +0,0,0,328,27,1,0,0,0,329,327,1,0,0,0,330,335,3,70,35,0,331,335,3,72,36,0, +332,335,3,74,37,0,333,335,3,76,38,0,334,330,1,0,0,0,334,331,1,0,0,0,334, +332,1,0,0,0,334,333,1,0,0,0,335,29,1,0,0,0,336,340,3,100,50,0,337,340,3, +114,57,0,338,340,3,122,61,0,339,336,1,0,0,0,339,337,1,0,0,0,339,338,1,0, +0,0,340,31,1,0,0,0,341,342,5,7,0,0,342,346,3,146,73,0,343,345,3,34,17,0, +344,343,1,0,0,0,345,348,1,0,0,0,346,344,1,0,0,0,346,347,1,0,0,0,347,352, +1,0,0,0,348,346,1,0,0,0,349,351,3,36,18,0,350,349,1,0,0,0,351,354,1,0,0, +0,352,350,1,0,0,0,352,353,1,0,0,0,353,33,1,0,0,0,354,352,1,0,0,0,355,359, +3,66,33,0,356,359,3,68,34,0,357,359,3,70,35,0,358,355,1,0,0,0,358,356,1, +0,0,0,358,357,1,0,0,0,359,35,1,0,0,0,360,366,3,124,62,0,361,366,3,108,54, +0,362,366,3,110,55,0,363,366,3,114,57,0,364,366,3,116,58,0,365,360,1,0,0, +0,365,361,1,0,0,0,365,362,1,0,0,0,365,363,1,0,0,0,365,364,1,0,0,0,366,37, +1,0,0,0,367,368,5,8,0,0,368,372,3,146,73,0,369,371,3,40,20,0,370,369,1,0, +0,0,371,374,1,0,0,0,372,370,1,0,0,0,372,373,1,0,0,0,373,378,1,0,0,0,374, +372,1,0,0,0,375,377,3,42,21,0,376,375,1,0,0,0,377,380,1,0,0,0,378,376,1, +0,0,0,378,379,1,0,0,0,379,39,1,0,0,0,380,378,1,0,0,0,381,385,3,66,33,0,382, +385,3,68,34,0,383,385,3,70,35,0,384,381,1,0,0,0,384,382,1,0,0,0,384,383, +1,0,0,0,385,41,1,0,0,0,386,390,3,162,81,0,387,390,3,110,55,0,388,390,3,116, +58,0,389,386,1,0,0,0,389,387,1,0,0,0,389,388,1,0,0,0,390,43,1,0,0,0,391, +392,5,9,0,0,392,394,5,77,0,0,393,395,3,46,23,0,394,393,1,0,0,0,395,396,1, +0,0,0,396,394,1,0,0,0,396,397,1,0,0,0,397,45,1,0,0,0,398,407,3,16,8,0,399, +407,3,120,60,0,400,407,3,118,59,0,401,407,3,162,81,0,402,407,3,110,55,0, +403,407,3,116,58,0,404,407,3,124,62,0,405,407,3,112,56,0,406,398,1,0,0,0, +406,399,1,0,0,0,406,400,1,0,0,0,406,401,1,0,0,0,406,402,1,0,0,0,406,403, +1,0,0,0,406,404,1,0,0,0,406,405,1,0,0,0,407,47,1,0,0,0,408,409,5,9,0,0,409, +410,3,50,25,0,410,411,3,56,28,0,411,49,1,0,0,0,412,416,5,76,0,0,413,415, +3,52,26,0,414,413,1,0,0,0,415,418,1,0,0,0,416,414,1,0,0,0,416,417,1,0,0, +0,417,419,1,0,0,0,418,416,1,0,0,0,419,420,3,54,27,0,420,51,1,0,0,0,421,422, +7,1,0,0,422,53,1,0,0,0,423,424,7,2,0,0,424,55,1,0,0,0,425,429,5,54,0,0,426, +428,8,3,0,0,427,426,1,0,0,0,428,431,1,0,0,0,429,427,1,0,0,0,429,430,1,0, +0,0,430,57,1,0,0,0,431,429,1,0,0,0,432,433,5,10,0,0,433,437,3,146,73,0,434, +436,3,60,30,0,435,434,1,0,0,0,436,439,1,0,0,0,437,435,1,0,0,0,437,438,1, +0,0,0,438,443,1,0,0,0,439,437,1,0,0,0,440,442,3,62,31,0,441,440,1,0,0,0, +442,445,1,0,0,0,443,441,1,0,0,0,443,444,1,0,0,0,444,59,1,0,0,0,445,443,1, +0,0,0,446,452,3,66,33,0,447,452,3,82,41,0,448,452,3,84,42,0,449,452,3,70, +35,0,450,452,3,68,34,0,451,446,1,0,0,0,451,447,1,0,0,0,451,448,1,0,0,0,451, +449,1,0,0,0,451,450,1,0,0,0,452,61,1,0,0,0,453,457,3,112,56,0,454,457,3, +114,57,0,455,457,3,122,61,0,456,453,1,0,0,0,456,454,1,0,0,0,456,455,1,0, +0,0,457,63,1,0,0,0,458,459,5,13,0,0,459,460,3,146,73,0,460,65,1,0,0,0,461, +462,5,14,0,0,462,463,3,146,73,0,463,67,1,0,0,0,464,465,5,15,0,0,465,466, +5,58,0,0,466,69,1,0,0,0,467,468,5,16,0,0,468,469,7,4,0,0,469,71,1,0,0,0, +470,471,5,17,0,0,471,472,5,58,0,0,472,73,1,0,0,0,473,474,5,18,0,0,474,475, +5,58,0,0,475,75,1,0,0,0,476,477,5,19,0,0,477,478,5,62,0,0,478,77,1,0,0,0, +479,480,5,5,0,0,480,481,3,146,73,0,481,79,1,0,0,0,482,483,5,20,0,0,483,484, +5,62,0,0,484,81,1,0,0,0,485,486,5,21,0,0,486,487,3,146,73,0,487,83,1,0,0, +0,488,489,5,22,0,0,489,490,5,58,0,0,490,85,1,0,0,0,491,495,5,23,0,0,492, +494,3,88,44,0,493,492,1,0,0,0,494,497,1,0,0,0,495,493,1,0,0,0,495,496,1, +0,0,0,496,498,1,0,0,0,497,495,1,0,0,0,498,499,3,90,45,0,499,87,1,0,0,0,500, +501,7,5,0,0,501,89,1,0,0,0,502,503,7,6,0,0,503,91,1,0,0,0,504,508,5,24,0, +0,505,507,5,87,0,0,506,505,1,0,0,0,507,510,1,0,0,0,508,506,1,0,0,0,508,509, +1,0,0,0,509,511,1,0,0,0,510,508,1,0,0,0,511,512,5,88,0,0,512,93,1,0,0,0, +513,514,5,54,0,0,514,515,3,148,74,0,515,519,5,66,0,0,516,518,3,152,76,0, +517,516,1,0,0,0,518,521,1,0,0,0,519,517,1,0,0,0,519,520,1,0,0,0,520,95,1, +0,0,0,521,519,1,0,0,0,522,523,5,54,0,0,523,528,3,148,74,0,524,525,5,38,0, +0,525,527,3,148,74,0,526,524,1,0,0,0,527,530,1,0,0,0,528,526,1,0,0,0,528, +529,1,0,0,0,529,532,1,0,0,0,530,528,1,0,0,0,531,533,3,152,76,0,532,531,1, +0,0,0,533,534,1,0,0,0,534,532,1,0,0,0,534,535,1,0,0,0,535,97,1,0,0,0,536, +537,5,54,0,0,537,538,3,148,74,0,538,539,5,31,0,0,539,541,3,146,73,0,540, +542,3,154,77,0,541,540,1,0,0,0,541,542,1,0,0,0,542,99,1,0,0,0,543,544,5, +54,0,0,544,545,3,148,74,0,545,546,5,53,0,0,546,548,3,156,78,0,547,549,5, +50,0,0,548,547,1,0,0,0,548,549,1,0,0,0,549,101,1,0,0,0,550,551,5,54,0,0, +551,552,3,148,74,0,552,553,5,36,0,0,553,558,3,158,79,0,554,555,5,38,0,0, +555,557,3,158,79,0,556,554,1,0,0,0,557,560,1,0,0,0,558,556,1,0,0,0,558,559, +1,0,0,0,559,103,1,0,0,0,560,558,1,0,0,0,561,562,5,54,0,0,562,563,3,148,74, +0,563,564,5,39,0,0,564,569,3,180,90,0,565,566,5,40,0,0,566,568,3,180,90, +0,567,565,1,0,0,0,568,571,1,0,0,0,569,567,1,0,0,0,569,570,1,0,0,0,570,105, +1,0,0,0,571,569,1,0,0,0,572,574,5,54,0,0,573,575,3,148,74,0,574,573,1,0, +0,0,574,575,1,0,0,0,575,576,1,0,0,0,576,577,5,41,0,0,577,582,3,146,73,0, +578,579,5,38,0,0,579,581,3,146,73,0,580,578,1,0,0,0,581,584,1,0,0,0,582, +580,1,0,0,0,582,583,1,0,0,0,583,107,1,0,0,0,584,582,1,0,0,0,585,587,5,54, +0,0,586,588,3,148,74,0,587,586,1,0,0,0,587,588,1,0,0,0,588,589,1,0,0,0,589, +590,3,150,75,0,590,591,5,53,0,0,591,592,3,156,78,0,592,109,1,0,0,0,593,597, +5,54,0,0,594,596,5,62,0,0,595,594,1,0,0,0,596,599,1,0,0,0,597,595,1,0,0, +0,597,598,1,0,0,0,598,600,1,0,0,0,599,597,1,0,0,0,600,601,3,150,75,0,601, +602,5,53,0,0,602,603,3,156,78,0,603,111,1,0,0,0,604,606,5,54,0,0,605,607, +3,148,74,0,606,605,1,0,0,0,606,607,1,0,0,0,607,608,1,0,0,0,608,609,5,57, +0,0,609,611,5,58,0,0,610,612,5,58,0,0,611,610,1,0,0,0,611,612,1,0,0,0,612, +614,1,0,0,0,613,615,5,62,0,0,614,613,1,0,0,0,614,615,1,0,0,0,615,113,1,0, +0,0,616,618,5,54,0,0,617,619,3,148,74,0,618,617,1,0,0,0,618,619,1,0,0,0, +619,620,1,0,0,0,620,623,5,51,0,0,621,624,5,77,0,0,622,624,3,50,25,0,623, +621,1,0,0,0,623,622,1,0,0,0,624,115,1,0,0,0,625,629,5,54,0,0,626,628,5,62, +0,0,627,626,1,0,0,0,628,631,1,0,0,0,629,627,1,0,0,0,629,630,1,0,0,0,630, +632,1,0,0,0,631,629,1,0,0,0,632,635,5,51,0,0,633,636,5,77,0,0,634,636,3, +50,25,0,635,633,1,0,0,0,635,634,1,0,0,0,636,117,1,0,0,0,637,638,5,54,0,0, +638,639,3,148,74,0,639,643,5,66,0,0,640,642,3,152,76,0,641,640,1,0,0,0,642, +645,1,0,0,0,643,641,1,0,0,0,643,644,1,0,0,0,644,646,1,0,0,0,645,643,1,0, +0,0,646,647,5,52,0,0,647,648,7,0,0,0,648,650,5,58,0,0,649,651,7,4,0,0,650, +649,1,0,0,0,650,651,1,0,0,0,651,119,1,0,0,0,652,653,5,54,0,0,653,654,3,148, +74,0,654,658,5,66,0,0,655,657,3,152,76,0,656,655,1,0,0,0,657,660,1,0,0,0, +658,656,1,0,0,0,658,659,1,0,0,0,659,661,1,0,0,0,660,658,1,0,0,0,661,666, +3,180,90,0,662,663,5,40,0,0,663,665,3,180,90,0,664,662,1,0,0,0,665,668,1, +0,0,0,666,664,1,0,0,0,666,667,1,0,0,0,667,669,1,0,0,0,668,666,1,0,0,0,669, +671,5,58,0,0,670,672,7,4,0,0,671,670,1,0,0,0,671,672,1,0,0,0,672,121,1,0, +0,0,673,674,5,54,0,0,674,675,3,148,74,0,675,123,1,0,0,0,676,678,5,54,0,0, +677,679,7,7,0,0,678,677,1,0,0,0,678,679,1,0,0,0,679,682,1,0,0,0,680,683, +3,126,63,0,681,683,3,128,64,0,682,680,1,0,0,0,682,681,1,0,0,0,683,125,1, +0,0,0,684,686,3,160,80,0,685,687,3,130,65,0,686,685,1,0,0,0,686,687,1,0, +0,0,687,127,1,0,0,0,688,689,5,46,0,0,689,692,3,130,65,0,690,691,5,47,0,0, +691,693,3,138,69,0,692,690,1,0,0,0,692,693,1,0,0,0,693,129,1,0,0,0,694,705, +5,31,0,0,695,698,3,132,66,0,696,697,5,38,0,0,697,699,3,134,67,0,698,696, +1,0,0,0,698,699,1,0,0,0,699,706,1,0,0,0,700,703,3,134,67,0,701,702,5,38, +0,0,702,704,3,132,66,0,703,701,1,0,0,0,703,704,1,0,0,0,704,706,1,0,0,0,705, +695,1,0,0,0,705,700,1,0,0,0,706,131,1,0,0,0,707,708,5,49,0,0,708,709,3,136, +68,0,709,133,1,0,0,0,710,711,5,48,0,0,711,716,3,136,68,0,712,713,5,38,0, +0,713,715,3,136,68,0,714,712,1,0,0,0,715,718,1,0,0,0,716,714,1,0,0,0,716, +717,1,0,0,0,717,135,1,0,0,0,718,716,1,0,0,0,719,722,3,146,73,0,720,722,5, +62,0,0,721,719,1,0,0,0,721,720,1,0,0,0,722,137,1,0,0,0,723,728,3,140,70, +0,724,725,5,38,0,0,725,727,3,140,70,0,726,724,1,0,0,0,727,730,1,0,0,0,728, +726,1,0,0,0,728,729,1,0,0,0,729,139,1,0,0,0,730,728,1,0,0,0,731,732,3,146, +73,0,732,734,3,142,71,0,733,735,3,144,72,0,734,733,1,0,0,0,734,735,1,0,0, +0,735,141,1,0,0,0,736,737,7,8,0,0,737,143,1,0,0,0,738,744,3,160,80,0,739, +744,5,42,0,0,740,744,5,43,0,0,741,744,5,71,0,0,742,744,5,58,0,0,743,738, +1,0,0,0,743,739,1,0,0,0,743,740,1,0,0,0,743,741,1,0,0,0,743,742,1,0,0,0, +744,145,1,0,0,0,745,751,5,73,0,0,746,751,5,60,0,0,747,751,5,64,0,0,748,751, +5,65,0,0,749,751,3,182,91,0,750,745,1,0,0,0,750,746,1,0,0,0,750,747,1,0, +0,0,750,748,1,0,0,0,750,749,1,0,0,0,751,147,1,0,0,0,752,758,5,73,0,0,753, +758,5,60,0,0,754,758,5,64,0,0,755,758,5,65,0,0,756,758,3,182,91,0,757,752, +1,0,0,0,757,753,1,0,0,0,757,754,1,0,0,0,757,755,1,0,0,0,757,756,1,0,0,0, +758,149,1,0,0,0,759,760,5,70,0,0,760,151,1,0,0,0,761,762,7,9,0,0,762,153, +1,0,0,0,763,764,7,10,0,0,764,155,1,0,0,0,765,778,5,58,0,0,766,778,5,59,0, +0,767,778,5,60,0,0,768,778,5,64,0,0,769,778,5,65,0,0,770,778,3,168,84,0, +771,778,3,174,87,0,772,778,3,160,80,0,773,778,3,164,82,0,774,778,3,166,83, +0,775,778,3,178,89,0,776,778,3,146,73,0,777,765,1,0,0,0,777,766,1,0,0,0, +777,767,1,0,0,0,777,768,1,0,0,0,777,769,1,0,0,0,777,770,1,0,0,0,777,771, +1,0,0,0,777,772,1,0,0,0,777,773,1,0,0,0,777,774,1,0,0,0,777,775,1,0,0,0, +777,776,1,0,0,0,778,157,1,0,0,0,779,782,3,146,73,0,780,781,5,37,0,0,781, +783,3,146,73,0,782,780,1,0,0,0,782,783,1,0,0,0,783,784,1,0,0,0,784,788,5, +66,0,0,785,787,3,152,76,0,786,785,1,0,0,0,787,790,1,0,0,0,788,786,1,0,0, +0,788,789,1,0,0,0,789,159,1,0,0,0,790,788,1,0,0,0,791,793,5,62,0,0,792,794, +5,58,0,0,793,792,1,0,0,0,793,794,1,0,0,0,794,161,1,0,0,0,795,797,5,54,0, +0,796,798,5,62,0,0,797,796,1,0,0,0,798,799,1,0,0,0,799,797,1,0,0,0,799,800, +1,0,0,0,800,802,1,0,0,0,801,803,5,58,0,0,802,801,1,0,0,0,802,803,1,0,0,0, +803,805,1,0,0,0,804,806,7,4,0,0,805,804,1,0,0,0,805,806,1,0,0,0,806,163, +1,0,0,0,807,809,5,60,0,0,808,807,1,0,0,0,808,809,1,0,0,0,809,810,1,0,0,0, +810,812,7,11,0,0,811,813,5,58,0,0,812,811,1,0,0,0,812,813,1,0,0,0,813,165, +1,0,0,0,814,815,3,176,88,0,815,816,5,55,0,0,816,817,3,176,88,0,817,167,1, +0,0,0,818,820,5,67,0,0,819,821,5,58,0,0,820,819,1,0,0,0,820,821,1,0,0,0, +821,169,1,0,0,0,822,823,5,67,0,0,823,171,1,0,0,0,824,825,5,68,0,0,825,173, +1,0,0,0,826,827,5,69,0,0,827,175,1,0,0,0,828,831,5,60,0,0,829,831,3,164, +82,0,830,828,1,0,0,0,830,829,1,0,0,0,831,177,1,0,0,0,832,833,7,12,0,0,833, +179,1,0,0,0,834,839,3,146,73,0,835,839,3,170,85,0,836,839,3,174,87,0,837, +839,3,172,86,0,838,834,1,0,0,0,838,835,1,0,0,0,838,836,1,0,0,0,838,837,1, +0,0,0,839,181,1,0,0,0,840,841,7,13,0,0,841,183,1,0,0,0,90,187,204,216,221, +228,230,236,243,245,251,259,265,272,284,289,296,302,309,314,321,327,334, +339,346,352,358,365,372,378,384,389,396,406,416,429,437,443,451,456,495, +508,519,528,534,541,548,558,569,574,582,587,597,606,611,614,618,623,629, +635,643,650,658,666,671,678,682,686,692,698,703,705,716,721,728,734,743, +750,757,777,782,788,793,799,802,805,808,812,820,830,838]; const atn = new antlr4.atn.ATNDeserializer().deserialize(serializedATN); @@ -349,12 +351,13 @@ export default class FSHParser extends antlr4.Parser { "codeInsertRule", "addCRElementRule", "addElementRule", "pathRule", "vsComponent", "vsConceptComponent", "vsFilterComponent", "vsComponentFrom", "vsFromSystem", - "vsFromValueset", "vsFilterList", "vsFilterDefinition", - "vsFilterOperator", "vsFilterValue", "name", "path", - "caretPath", "flag", "strength", "value", "item", - "code", "concept", "quantity", "ratio", "reference", - "referenceType", "codeableReferenceType", "canonical", - "ratioPart", "bool", "targetType", "mostAlphaKeywords" ]; + "vsFromValueset", "vsFromTarget", "vsFilterList", + "vsFilterDefinition", "vsFilterOperator", "vsFilterValue", + "name", "path", "caretPath", "flag", "strength", + "value", "item", "code", "concept", "quantity", + "ratio", "reference", "referenceType", "codeableReferenceType", + "canonical", "ratioPart", "bool", "targetType", + "mostAlphaKeywords" ]; constructor(input) { super(input); @@ -372,17 +375,17 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 185; + this.state = 187; this._errHandler.sync(this); _la = this._input.LA(1); while((((_la) & ~0x1f) === 0 && ((1 << _la) & 8158) !== 0)) { - this.state = 182; + this.state = 184; this.entity(); - this.state = 187; + this.state = 189; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 188; + this.state = 190; this.match(FSHParser.EOF); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -404,79 +407,79 @@ export default class FSHParser extends antlr4.Parser { let localctx = new EntityContext(this, this._ctx, this.state); this.enterRule(localctx, 2, FSHParser.RULE_entity); try { - this.state = 202; + this.state = 204; this._errHandler.sync(this); var la_ = this._interp.adaptivePredict(this._input,1,this._ctx); switch(la_) { case 1: this.enterOuterAlt(localctx, 1); - this.state = 190; + this.state = 192; this.alias(); break; case 2: this.enterOuterAlt(localctx, 2); - this.state = 191; + this.state = 193; this.profile(); break; case 3: this.enterOuterAlt(localctx, 3); - this.state = 192; + this.state = 194; this.extension(); break; case 4: this.enterOuterAlt(localctx, 4); - this.state = 193; + this.state = 195; this.invariant(); break; case 5: this.enterOuterAlt(localctx, 5); - this.state = 194; + this.state = 196; this.instance(); break; case 6: this.enterOuterAlt(localctx, 6); - this.state = 195; + this.state = 197; this.valueSet(); break; case 7: this.enterOuterAlt(localctx, 7); - this.state = 196; + this.state = 198; this.codeSystem(); break; case 8: this.enterOuterAlt(localctx, 8); - this.state = 197; + this.state = 199; this.ruleSet(); break; case 9: this.enterOuterAlt(localctx, 9); - this.state = 198; + this.state = 200; this.paramRuleSet(); break; case 10: this.enterOuterAlt(localctx, 10); - this.state = 199; + this.state = 201; this.mapping(); break; case 11: this.enterOuterAlt(localctx, 11); - this.state = 200; + this.state = 202; this.logical(); break; case 12: this.enterOuterAlt(localctx, 12); - this.state = 201; + this.state = 203; this.resource(); break; @@ -503,13 +506,13 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 204; + this.state = 206; this.match(FSHParser.KW_ALIAS); - this.state = 205; + this.state = 207; this.name(); - this.state = 206; + this.state = 208; this.match(FSHParser.EQUAL); - this.state = 207; + this.state = 209; _la = this._input.LA(1); if(!(_la===62 || _la===73)) { this._errHandler.recoverInline(this); @@ -540,27 +543,27 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 209; + this.state = 211; this.match(FSHParser.KW_PROFILE); - this.state = 210; + this.state = 212; this.name(); - this.state = 212; + this.state = 214; this._errHandler.sync(this); _la = this._input.LA(1); do { - this.state = 211; + this.state = 213; this.sdMetadata(); - this.state = 214; + this.state = 216; this._errHandler.sync(this); _la = this._input.LA(1); } while((((_la) & ~0x1f) === 0 && ((1 << _la) & 122880) !== 0)); - this.state = 219; + this.state = 221; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===54) { - this.state = 216; + this.state = 218; this.sdRule(); - this.state = 221; + this.state = 223; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -586,42 +589,42 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 222; + this.state = 224; this.match(FSHParser.KW_EXTENSION); - this.state = 223; + this.state = 225; this.name(); - this.state = 228; + this.state = 230; this._errHandler.sync(this); _la = this._input.LA(1); while((((_la) & ~0x1f) === 0 && ((1 << _la) & 8511488) !== 0)) { - this.state = 226; + this.state = 228; this._errHandler.sync(this); switch(this._input.LA(1)) { case 13: case 14: case 15: case 16: - this.state = 224; + this.state = 226; this.sdMetadata(); break; case 23: - this.state = 225; + this.state = 227; this.context(); break; default: throw new antlr4.error.NoViableAltException(this); } - this.state = 230; + this.state = 232; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 234; + this.state = 236; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===54) { - this.state = 231; + this.state = 233; this.sdRule(); - this.state = 236; + this.state = 238; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -647,42 +650,42 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 237; + this.state = 239; this.match(FSHParser.KW_LOGICAL); - this.state = 238; + this.state = 240; this.name(); - this.state = 243; + this.state = 245; this._errHandler.sync(this); _la = this._input.LA(1); while((((_la) & ~0x1f) === 0 && ((1 << _la) & 16900096) !== 0)) { - this.state = 241; + this.state = 243; this._errHandler.sync(this); switch(this._input.LA(1)) { case 13: case 14: case 15: case 16: - this.state = 239; + this.state = 241; this.sdMetadata(); break; case 24: - this.state = 240; + this.state = 242; this.characteristics(); break; default: throw new antlr4.error.NoViableAltException(this); } - this.state = 245; + this.state = 247; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 249; + this.state = 251; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===54) { - this.state = 246; + this.state = 248; this.lrRule(); - this.state = 251; + this.state = 253; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -708,27 +711,27 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 252; + this.state = 254; this.match(FSHParser.KW_RESOURCE); - this.state = 253; + this.state = 255; this.name(); - this.state = 257; + this.state = 259; this._errHandler.sync(this); _la = this._input.LA(1); while((((_la) & ~0x1f) === 0 && ((1 << _la) & 122880) !== 0)) { - this.state = 254; + this.state = 256; this.sdMetadata(); - this.state = 259; + this.state = 261; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 263; + this.state = 265; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===54) { - this.state = 260; + this.state = 262; this.lrRule(); - this.state = 265; + this.state = 267; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -752,27 +755,27 @@ export default class FSHParser extends antlr4.Parser { let localctx = new SdMetadataContext(this, this._ctx, this.state); this.enterRule(localctx, 14, FSHParser.RULE_sdMetadata); try { - this.state = 270; + this.state = 272; this._errHandler.sync(this); switch(this._input.LA(1)) { case 13: this.enterOuterAlt(localctx, 1); - this.state = 266; + this.state = 268; this.parent(); break; case 14: this.enterOuterAlt(localctx, 2); - this.state = 267; + this.state = 269; this.id(); break; case 15: this.enterOuterAlt(localctx, 3); - this.state = 268; + this.state = 270; this.title(); break; case 16: this.enterOuterAlt(localctx, 4); - this.state = 269; + this.state = 271; this.description(); break; default: @@ -798,67 +801,67 @@ export default class FSHParser extends antlr4.Parser { let localctx = new SdRuleContext(this, this._ctx, this.state); this.enterRule(localctx, 16, FSHParser.RULE_sdRule); try { - this.state = 282; + this.state = 284; this._errHandler.sync(this); var la_ = this._interp.adaptivePredict(this._input,13,this._ctx); switch(la_) { case 1: this.enterOuterAlt(localctx, 1); - this.state = 272; + this.state = 274; this.cardRule(); break; case 2: this.enterOuterAlt(localctx, 2); - this.state = 273; + this.state = 275; this.flagRule(); break; case 3: this.enterOuterAlt(localctx, 3); - this.state = 274; + this.state = 276; this.valueSetRule(); break; case 4: this.enterOuterAlt(localctx, 4); - this.state = 275; + this.state = 277; this.fixedValueRule(); break; case 5: this.enterOuterAlt(localctx, 5); - this.state = 276; + this.state = 278; this.containsRule(); break; case 6: this.enterOuterAlt(localctx, 6); - this.state = 277; + this.state = 279; this.onlyRule(); break; case 7: this.enterOuterAlt(localctx, 7); - this.state = 278; + this.state = 280; this.obeysRule(); break; case 8: this.enterOuterAlt(localctx, 8); - this.state = 279; + this.state = 281; this.caretValueRule(); break; case 9: this.enterOuterAlt(localctx, 9); - this.state = 280; + this.state = 282; this.insertRule(); break; case 10: this.enterOuterAlt(localctx, 10); - this.state = 281; + this.state = 283; this.pathRule(); break; @@ -883,25 +886,25 @@ export default class FSHParser extends antlr4.Parser { let localctx = new LrRuleContext(this, this._ctx, this.state); this.enterRule(localctx, 18, FSHParser.RULE_lrRule); try { - this.state = 287; + this.state = 289; this._errHandler.sync(this); var la_ = this._interp.adaptivePredict(this._input,14,this._ctx); switch(la_) { case 1: this.enterOuterAlt(localctx, 1); - this.state = 284; + this.state = 286; this.sdRule(); break; case 2: this.enterOuterAlt(localctx, 2); - this.state = 285; + this.state = 287; this.addElementRule(); break; case 3: this.enterOuterAlt(localctx, 3); - this.state = 286; + this.state = 288; this.addCRElementRule(); break; @@ -928,27 +931,27 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 289; + this.state = 291; this.match(FSHParser.KW_INSTANCE); - this.state = 290; + this.state = 292; this.name(); - this.state = 294; + this.state = 296; this._errHandler.sync(this); _la = this._input.LA(1); while((((_la) & ~0x1f) === 0 && ((1 << _la) & 1146912) !== 0)) { - this.state = 291; + this.state = 293; this.instanceMetadata(); - this.state = 296; + this.state = 298; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 300; + this.state = 302; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===54) { - this.state = 297; + this.state = 299; this.instanceRule(); - this.state = 302; + this.state = 304; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -972,27 +975,27 @@ export default class FSHParser extends antlr4.Parser { let localctx = new InstanceMetadataContext(this, this._ctx, this.state); this.enterRule(localctx, 22, FSHParser.RULE_instanceMetadata); try { - this.state = 307; + this.state = 309; this._errHandler.sync(this); switch(this._input.LA(1)) { case 5: this.enterOuterAlt(localctx, 1); - this.state = 303; + this.state = 305; this.instanceOf(); break; case 15: this.enterOuterAlt(localctx, 2); - this.state = 304; + this.state = 306; this.title(); break; case 16: this.enterOuterAlt(localctx, 3); - this.state = 305; + this.state = 307; this.description(); break; case 20: this.enterOuterAlt(localctx, 4); - this.state = 306; + this.state = 308; this.usage(); break; default: @@ -1018,25 +1021,25 @@ export default class FSHParser extends antlr4.Parser { let localctx = new InstanceRuleContext(this, this._ctx, this.state); this.enterRule(localctx, 24, FSHParser.RULE_instanceRule); try { - this.state = 312; + this.state = 314; this._errHandler.sync(this); var la_ = this._interp.adaptivePredict(this._input,18,this._ctx); switch(la_) { case 1: this.enterOuterAlt(localctx, 1); - this.state = 309; + this.state = 311; this.fixedValueRule(); break; case 2: this.enterOuterAlt(localctx, 2); - this.state = 310; + this.state = 312; this.insertRule(); break; case 3: this.enterOuterAlt(localctx, 3); - this.state = 311; + this.state = 313; this.pathRule(); break; @@ -1063,27 +1066,27 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 314; + this.state = 316; this.match(FSHParser.KW_INVARIANT); - this.state = 315; + this.state = 317; this.name(); - this.state = 319; + this.state = 321; this._errHandler.sync(this); _la = this._input.LA(1); while((((_la) & ~0x1f) === 0 && ((1 << _la) & 983040) !== 0)) { - this.state = 316; + this.state = 318; this.invariantMetadata(); - this.state = 321; + this.state = 323; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 325; + this.state = 327; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===54) { - this.state = 322; + this.state = 324; this.invariantRule(); - this.state = 327; + this.state = 329; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -1107,27 +1110,27 @@ export default class FSHParser extends antlr4.Parser { let localctx = new InvariantMetadataContext(this, this._ctx, this.state); this.enterRule(localctx, 28, FSHParser.RULE_invariantMetadata); try { - this.state = 332; + this.state = 334; this._errHandler.sync(this); switch(this._input.LA(1)) { case 16: this.enterOuterAlt(localctx, 1); - this.state = 328; + this.state = 330; this.description(); break; case 17: this.enterOuterAlt(localctx, 2); - this.state = 329; + this.state = 331; this.expression(); break; case 18: this.enterOuterAlt(localctx, 3); - this.state = 330; + this.state = 332; this.xpath(); break; case 19: this.enterOuterAlt(localctx, 4); - this.state = 331; + this.state = 333; this.severity(); break; default: @@ -1153,25 +1156,25 @@ export default class FSHParser extends antlr4.Parser { let localctx = new InvariantRuleContext(this, this._ctx, this.state); this.enterRule(localctx, 30, FSHParser.RULE_invariantRule); try { - this.state = 337; + this.state = 339; this._errHandler.sync(this); var la_ = this._interp.adaptivePredict(this._input,22,this._ctx); switch(la_) { case 1: this.enterOuterAlt(localctx, 1); - this.state = 334; + this.state = 336; this.fixedValueRule(); break; case 2: this.enterOuterAlt(localctx, 2); - this.state = 335; + this.state = 337; this.insertRule(); break; case 3: this.enterOuterAlt(localctx, 3); - this.state = 336; + this.state = 338; this.pathRule(); break; @@ -1198,27 +1201,27 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 339; + this.state = 341; this.match(FSHParser.KW_VALUESET); - this.state = 340; + this.state = 342; this.name(); - this.state = 344; + this.state = 346; this._errHandler.sync(this); _la = this._input.LA(1); while((((_la) & ~0x1f) === 0 && ((1 << _la) & 114688) !== 0)) { - this.state = 341; + this.state = 343; this.vsMetadata(); - this.state = 346; + this.state = 348; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 350; + this.state = 352; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===54) { - this.state = 347; + this.state = 349; this.vsRule(); - this.state = 352; + this.state = 354; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -1242,22 +1245,22 @@ export default class FSHParser extends antlr4.Parser { let localctx = new VsMetadataContext(this, this._ctx, this.state); this.enterRule(localctx, 34, FSHParser.RULE_vsMetadata); try { - this.state = 356; + this.state = 358; this._errHandler.sync(this); switch(this._input.LA(1)) { case 14: this.enterOuterAlt(localctx, 1); - this.state = 353; + this.state = 355; this.id(); break; case 15: this.enterOuterAlt(localctx, 2); - this.state = 354; + this.state = 356; this.title(); break; case 16: this.enterOuterAlt(localctx, 3); - this.state = 355; + this.state = 357; this.description(); break; default: @@ -1283,37 +1286,37 @@ export default class FSHParser extends antlr4.Parser { let localctx = new VsRuleContext(this, this._ctx, this.state); this.enterRule(localctx, 36, FSHParser.RULE_vsRule); try { - this.state = 363; + this.state = 365; this._errHandler.sync(this); var la_ = this._interp.adaptivePredict(this._input,26,this._ctx); switch(la_) { case 1: this.enterOuterAlt(localctx, 1); - this.state = 358; + this.state = 360; this.vsComponent(); break; case 2: this.enterOuterAlt(localctx, 2); - this.state = 359; + this.state = 361; this.caretValueRule(); break; case 3: this.enterOuterAlt(localctx, 3); - this.state = 360; + this.state = 362; this.codeCaretValueRule(); break; case 4: this.enterOuterAlt(localctx, 4); - this.state = 361; + this.state = 363; this.insertRule(); break; case 5: this.enterOuterAlt(localctx, 5); - this.state = 362; + this.state = 364; this.codeInsertRule(); break; @@ -1340,27 +1343,27 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 365; + this.state = 367; this.match(FSHParser.KW_CODESYSTEM); - this.state = 366; + this.state = 368; this.name(); - this.state = 370; + this.state = 372; this._errHandler.sync(this); _la = this._input.LA(1); while((((_la) & ~0x1f) === 0 && ((1 << _la) & 114688) !== 0)) { - this.state = 367; + this.state = 369; this.csMetadata(); - this.state = 372; + this.state = 374; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 376; + this.state = 378; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===54) { - this.state = 373; + this.state = 375; this.csRule(); - this.state = 378; + this.state = 380; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -1384,22 +1387,22 @@ export default class FSHParser extends antlr4.Parser { let localctx = new CsMetadataContext(this, this._ctx, this.state); this.enterRule(localctx, 40, FSHParser.RULE_csMetadata); try { - this.state = 382; + this.state = 384; this._errHandler.sync(this); switch(this._input.LA(1)) { case 14: this.enterOuterAlt(localctx, 1); - this.state = 379; + this.state = 381; this.id(); break; case 15: this.enterOuterAlt(localctx, 2); - this.state = 380; + this.state = 382; this.title(); break; case 16: this.enterOuterAlt(localctx, 3); - this.state = 381; + this.state = 383; this.description(); break; default: @@ -1425,25 +1428,25 @@ export default class FSHParser extends antlr4.Parser { let localctx = new CsRuleContext(this, this._ctx, this.state); this.enterRule(localctx, 42, FSHParser.RULE_csRule); try { - this.state = 387; + this.state = 389; this._errHandler.sync(this); var la_ = this._interp.adaptivePredict(this._input,30,this._ctx); switch(la_) { case 1: this.enterOuterAlt(localctx, 1); - this.state = 384; + this.state = 386; this.concept(); break; case 2: this.enterOuterAlt(localctx, 2); - this.state = 385; + this.state = 387; this.codeCaretValueRule(); break; case 3: this.enterOuterAlt(localctx, 3); - this.state = 386; + this.state = 388; this.codeInsertRule(); break; @@ -1470,17 +1473,17 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 389; + this.state = 391; this.match(FSHParser.KW_RULESET); - this.state = 390; + this.state = 392; this.match(FSHParser.RULESET_REFERENCE); - this.state = 392; + this.state = 394; this._errHandler.sync(this); _la = this._input.LA(1); do { - this.state = 391; + this.state = 393; this.ruleSetRule(); - this.state = 394; + this.state = 396; this._errHandler.sync(this); _la = this._input.LA(1); } while(_la===54); @@ -1504,55 +1507,55 @@ export default class FSHParser extends antlr4.Parser { let localctx = new RuleSetRuleContext(this, this._ctx, this.state); this.enterRule(localctx, 46, FSHParser.RULE_ruleSetRule); try { - this.state = 404; + this.state = 406; this._errHandler.sync(this); var la_ = this._interp.adaptivePredict(this._input,32,this._ctx); switch(la_) { case 1: this.enterOuterAlt(localctx, 1); - this.state = 396; + this.state = 398; this.sdRule(); break; case 2: this.enterOuterAlt(localctx, 2); - this.state = 397; + this.state = 399; this.addElementRule(); break; case 3: this.enterOuterAlt(localctx, 3); - this.state = 398; + this.state = 400; this.addCRElementRule(); break; case 4: this.enterOuterAlt(localctx, 4); - this.state = 399; + this.state = 401; this.concept(); break; case 5: this.enterOuterAlt(localctx, 5); - this.state = 400; + this.state = 402; this.codeCaretValueRule(); break; case 6: this.enterOuterAlt(localctx, 6); - this.state = 401; + this.state = 403; this.codeInsertRule(); break; case 7: this.enterOuterAlt(localctx, 7); - this.state = 402; + this.state = 404; this.vsComponent(); break; case 8: this.enterOuterAlt(localctx, 8); - this.state = 403; + this.state = 405; this.mappingRule(); break; @@ -1578,11 +1581,11 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 48, FSHParser.RULE_paramRuleSet); try { this.enterOuterAlt(localctx, 1); - this.state = 406; + this.state = 408; this.match(FSHParser.KW_RULESET); - this.state = 407; + this.state = 409; this.paramRuleSetRef(); - this.state = 408; + this.state = 410; this.paramRuleSetContent(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -1606,19 +1609,19 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 410; + this.state = 412; this.match(FSHParser.PARAM_RULESET_REFERENCE); - this.state = 414; + this.state = 416; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===78 || _la===80) { - this.state = 411; + this.state = 413; this.parameter(); - this.state = 416; + this.state = 418; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 417; + this.state = 419; this.lastParameter(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -1642,7 +1645,7 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 419; + this.state = 421; _la = this._input.LA(1); if(!(_la===78 || _la===80)) { this._errHandler.recoverInline(this); @@ -1673,7 +1676,7 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 421; + this.state = 423; _la = this._input.LA(1); if(!(_la===79 || _la===81)) { this._errHandler.recoverInline(this); @@ -1704,13 +1707,13 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 423; + this.state = 425; this.match(FSHParser.STAR); - this.state = 427; + this.state = 429; this._errHandler.sync(this); _la = this._input.LA(1); while((((_la) & ~0x1f) === 0 && ((1 << _la) & 4294959136) !== 0) || ((((_la - 32)) & ~0x1f) === 0 && ((1 << (_la - 32)) & 4294967295) !== 0) || ((((_la - 64)) & ~0x1f) === 0 && ((1 << (_la - 64)) & 67108863) !== 0)) { - this.state = 424; + this.state = 426; _la = this._input.LA(1); if(_la<=0 || (((_la) & ~0x1f) === 0 && ((1 << _la) & 8158) !== 0)) { this._errHandler.recoverInline(this); @@ -1719,7 +1722,7 @@ export default class FSHParser extends antlr4.Parser { this._errHandler.reportMatch(this); this.consume(); } - this.state = 429; + this.state = 431; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -1745,27 +1748,27 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 430; + this.state = 432; this.match(FSHParser.KW_MAPPING); - this.state = 431; + this.state = 433; this.name(); - this.state = 435; + this.state = 437; this._errHandler.sync(this); _la = this._input.LA(1); while((((_la) & ~0x1f) === 0 && ((1 << _la) & 6406144) !== 0)) { - this.state = 432; + this.state = 434; this.mappingMetadata(); - this.state = 437; + this.state = 439; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 441; + this.state = 443; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===54) { - this.state = 438; + this.state = 440; this.mappingEntityRule(); - this.state = 443; + this.state = 445; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -1789,32 +1792,32 @@ export default class FSHParser extends antlr4.Parser { let localctx = new MappingMetadataContext(this, this._ctx, this.state); this.enterRule(localctx, 60, FSHParser.RULE_mappingMetadata); try { - this.state = 449; + this.state = 451; this._errHandler.sync(this); switch(this._input.LA(1)) { case 14: this.enterOuterAlt(localctx, 1); - this.state = 444; + this.state = 446; this.id(); break; case 21: this.enterOuterAlt(localctx, 2); - this.state = 445; + this.state = 447; this.source(); break; case 22: this.enterOuterAlt(localctx, 3); - this.state = 446; + this.state = 448; this.target(); break; case 16: this.enterOuterAlt(localctx, 4); - this.state = 447; + this.state = 449; this.description(); break; case 15: this.enterOuterAlt(localctx, 5); - this.state = 448; + this.state = 450; this.title(); break; default: @@ -1840,25 +1843,25 @@ export default class FSHParser extends antlr4.Parser { let localctx = new MappingEntityRuleContext(this, this._ctx, this.state); this.enterRule(localctx, 62, FSHParser.RULE_mappingEntityRule); try { - this.state = 454; + this.state = 456; this._errHandler.sync(this); var la_ = this._interp.adaptivePredict(this._input,38,this._ctx); switch(la_) { case 1: this.enterOuterAlt(localctx, 1); - this.state = 451; + this.state = 453; this.mappingRule(); break; case 2: this.enterOuterAlt(localctx, 2); - this.state = 452; + this.state = 454; this.insertRule(); break; case 3: this.enterOuterAlt(localctx, 3); - this.state = 453; + this.state = 455; this.pathRule(); break; @@ -1884,9 +1887,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 64, FSHParser.RULE_parent); try { this.enterOuterAlt(localctx, 1); - this.state = 456; + this.state = 458; this.match(FSHParser.KW_PARENT); - this.state = 457; + this.state = 459; this.name(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -1909,9 +1912,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 66, FSHParser.RULE_id); try { this.enterOuterAlt(localctx, 1); - this.state = 459; + this.state = 461; this.match(FSHParser.KW_ID); - this.state = 460; + this.state = 462; this.name(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -1934,9 +1937,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 68, FSHParser.RULE_title); try { this.enterOuterAlt(localctx, 1); - this.state = 462; + this.state = 464; this.match(FSHParser.KW_TITLE); - this.state = 463; + this.state = 465; this.match(FSHParser.STRING); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -1960,9 +1963,9 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 465; + this.state = 467; this.match(FSHParser.KW_DESCRIPTION); - this.state = 466; + this.state = 468; _la = this._input.LA(1); if(!(_la===58 || _la===59)) { this._errHandler.recoverInline(this); @@ -1992,9 +1995,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 72, FSHParser.RULE_expression); try { this.enterOuterAlt(localctx, 1); - this.state = 468; + this.state = 470; this.match(FSHParser.KW_EXPRESSION); - this.state = 469; + this.state = 471; this.match(FSHParser.STRING); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2017,9 +2020,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 74, FSHParser.RULE_xpath); try { this.enterOuterAlt(localctx, 1); - this.state = 471; + this.state = 473; this.match(FSHParser.KW_XPATH); - this.state = 472; + this.state = 474; this.match(FSHParser.STRING); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2042,9 +2045,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 76, FSHParser.RULE_severity); try { this.enterOuterAlt(localctx, 1); - this.state = 474; + this.state = 476; this.match(FSHParser.KW_SEVERITY); - this.state = 475; + this.state = 477; this.match(FSHParser.CODE); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2067,9 +2070,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 78, FSHParser.RULE_instanceOf); try { this.enterOuterAlt(localctx, 1); - this.state = 477; + this.state = 479; this.match(FSHParser.KW_INSTANCEOF); - this.state = 478; + this.state = 480; this.name(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2092,9 +2095,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 80, FSHParser.RULE_usage); try { this.enterOuterAlt(localctx, 1); - this.state = 480; + this.state = 482; this.match(FSHParser.KW_USAGE); - this.state = 481; + this.state = 483; this.match(FSHParser.CODE); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2117,9 +2120,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 82, FSHParser.RULE_source); try { this.enterOuterAlt(localctx, 1); - this.state = 483; + this.state = 485; this.match(FSHParser.KW_SOURCE); - this.state = 484; + this.state = 486; this.name(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2142,9 +2145,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 84, FSHParser.RULE_target); try { this.enterOuterAlt(localctx, 1); - this.state = 486; + this.state = 488; this.match(FSHParser.KW_TARGET); - this.state = 487; + this.state = 489; this.match(FSHParser.STRING); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2168,19 +2171,19 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 489; + this.state = 491; this.match(FSHParser.KW_CONTEXT); - this.state = 493; + this.state = 495; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===82 || _la===84) { - this.state = 490; + this.state = 492; this.contextItem(); - this.state = 495; + this.state = 497; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 496; + this.state = 498; this.lastContextItem(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2204,7 +2207,7 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 498; + this.state = 500; _la = this._input.LA(1); if(!(_la===82 || _la===84)) { this._errHandler.recoverInline(this); @@ -2235,7 +2238,7 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 500; + this.state = 502; _la = this._input.LA(1); if(!(_la===83 || _la===85)) { this._errHandler.recoverInline(this); @@ -2266,19 +2269,19 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 502; + this.state = 504; this.match(FSHParser.KW_CHARACTERISTICS); - this.state = 506; + this.state = 508; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===87) { - this.state = 503; + this.state = 505; this.match(FSHParser.CODE_ITEM); - this.state = 508; + this.state = 510; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 509; + this.state = 511; this.match(FSHParser.LAST_CODE_ITEM); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2302,19 +2305,19 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 511; + this.state = 513; this.match(FSHParser.STAR); - this.state = 512; + this.state = 514; this.path(); - this.state = 513; + this.state = 515; this.match(FSHParser.CARD); - this.state = 517; + this.state = 519; this._errHandler.sync(this); _la = this._input.LA(1); while((((_la) & ~0x1f) === 0 && ((1 << _la) & 2113929216) !== 0)) { - this.state = 514; + this.state = 516; this.flag(); - this.state = 519; + this.state = 521; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -2340,29 +2343,29 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 520; + this.state = 522; this.match(FSHParser.STAR); - this.state = 521; + this.state = 523; this.path(); - this.state = 526; + this.state = 528; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===38) { - this.state = 522; + this.state = 524; this.match(FSHParser.KW_AND); - this.state = 523; + this.state = 525; this.path(); - this.state = 528; + this.state = 530; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 530; + this.state = 532; this._errHandler.sync(this); _la = this._input.LA(1); do { - this.state = 529; + this.state = 531; this.flag(); - this.state = 532; + this.state = 534; this._errHandler.sync(this); _la = this._input.LA(1); } while((((_la) & ~0x1f) === 0 && ((1 << _la) & 2113929216) !== 0)); @@ -2388,19 +2391,19 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 534; + this.state = 536; this.match(FSHParser.STAR); - this.state = 535; + this.state = 537; this.path(); - this.state = 536; + this.state = 538; this.match(FSHParser.KW_FROM); - this.state = 537; - this.name(); this.state = 539; + this.name(); + this.state = 541; this._errHandler.sync(this); _la = this._input.LA(1); if(((((_la - 32)) & ~0x1f) === 0 && ((1 << (_la - 32)) & 15) !== 0)) { - this.state = 538; + this.state = 540; this.strength(); } @@ -2426,19 +2429,19 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 541; + this.state = 543; this.match(FSHParser.STAR); - this.state = 542; + this.state = 544; this.path(); - this.state = 543; + this.state = 545; this.match(FSHParser.EQUAL); - this.state = 544; - this.value(); this.state = 546; + this.value(); + this.state = 548; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===50) { - this.state = 545; + this.state = 547; this.match(FSHParser.KW_EXACTLY); } @@ -2464,23 +2467,23 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 548; + this.state = 550; this.match(FSHParser.STAR); - this.state = 549; + this.state = 551; this.path(); - this.state = 550; + this.state = 552; this.match(FSHParser.KW_CONTAINS); - this.state = 551; + this.state = 553; this.item(); - this.state = 556; + this.state = 558; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===38) { - this.state = 552; + this.state = 554; this.match(FSHParser.KW_AND); - this.state = 553; + this.state = 555; this.item(); - this.state = 558; + this.state = 560; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -2506,23 +2509,23 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 559; + this.state = 561; this.match(FSHParser.STAR); - this.state = 560; + this.state = 562; this.path(); - this.state = 561; + this.state = 563; this.match(FSHParser.KW_ONLY); - this.state = 562; + this.state = 564; this.targetType(); - this.state = 567; + this.state = 569; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===40) { - this.state = 563; + this.state = 565; this.match(FSHParser.KW_OR); - this.state = 564; + this.state = 566; this.targetType(); - this.state = 569; + this.state = 571; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -2548,29 +2551,29 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 570; - this.match(FSHParser.STAR); this.state = 572; + this.match(FSHParser.STAR); + this.state = 574; this._errHandler.sync(this); var la_ = this._interp.adaptivePredict(this._input,48,this._ctx); if(la_===1) { - this.state = 571; + this.state = 573; this.path(); } - this.state = 574; + this.state = 576; this.match(FSHParser.KW_OBEYS); - this.state = 575; + this.state = 577; this.name(); - this.state = 580; + this.state = 582; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===38) { - this.state = 576; + this.state = 578; this.match(FSHParser.KW_AND); - this.state = 577; + this.state = 579; this.name(); - this.state = 582; + this.state = 584; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -2596,21 +2599,21 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 583; - this.match(FSHParser.STAR); this.state = 585; + this.match(FSHParser.STAR); + this.state = 587; this._errHandler.sync(this); _la = this._input.LA(1); if(((((_la - 26)) & ~0x1f) === 0 && ((1 << (_la - 26)) & 83885119) !== 0) || ((((_la - 60)) & ~0x1f) === 0 && ((1 << (_la - 60)) & 8241) !== 0)) { - this.state = 584; + this.state = 586; this.path(); } - this.state = 587; + this.state = 589; this.caretPath(); - this.state = 588; + this.state = 590; this.match(FSHParser.EQUAL); - this.state = 589; + this.state = 591; this.value(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2634,23 +2637,23 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 591; + this.state = 593; this.match(FSHParser.STAR); - this.state = 595; + this.state = 597; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===62) { - this.state = 592; + this.state = 594; this.match(FSHParser.CODE); - this.state = 597; + this.state = 599; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 598; + this.state = 600; this.caretPath(); - this.state = 599; + this.state = 601; this.match(FSHParser.EQUAL); - this.state = 600; + this.state = 602; this.value(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2674,33 +2677,33 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 602; - this.match(FSHParser.STAR); this.state = 604; + this.match(FSHParser.STAR); + this.state = 606; this._errHandler.sync(this); _la = this._input.LA(1); if(((((_la - 26)) & ~0x1f) === 0 && ((1 << (_la - 26)) & 83885119) !== 0) || ((((_la - 60)) & ~0x1f) === 0 && ((1 << (_la - 60)) & 8241) !== 0)) { - this.state = 603; + this.state = 605; this.path(); } - this.state = 606; + this.state = 608; this.match(FSHParser.ARROW); - this.state = 607; - this.match(FSHParser.STRING); this.state = 609; + this.match(FSHParser.STRING); + this.state = 611; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===58) { - this.state = 608; + this.state = 610; this.match(FSHParser.STRING); } - this.state = 612; + this.state = 614; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===62) { - this.state = 611; + this.state = 613; this.match(FSHParser.CODE); } @@ -2726,27 +2729,27 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 614; - this.match(FSHParser.STAR); this.state = 616; + this.match(FSHParser.STAR); + this.state = 618; this._errHandler.sync(this); _la = this._input.LA(1); if(((((_la - 26)) & ~0x1f) === 0 && ((1 << (_la - 26)) & 83885119) !== 0) || ((((_la - 60)) & ~0x1f) === 0 && ((1 << (_la - 60)) & 8241) !== 0)) { - this.state = 615; + this.state = 617; this.path(); } - this.state = 618; + this.state = 620; this.match(FSHParser.KW_INSERT); - this.state = 621; + this.state = 623; this._errHandler.sync(this); switch(this._input.LA(1)) { case 77: - this.state = 619; + this.state = 621; this.match(FSHParser.RULESET_REFERENCE); break; case 76: - this.state = 620; + this.state = 622; this.paramRuleSetRef(); break; default: @@ -2774,29 +2777,29 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 623; + this.state = 625; this.match(FSHParser.STAR); - this.state = 627; + this.state = 629; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===62) { - this.state = 624; + this.state = 626; this.match(FSHParser.CODE); - this.state = 629; + this.state = 631; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 630; + this.state = 632; this.match(FSHParser.KW_INSERT); - this.state = 633; + this.state = 635; this._errHandler.sync(this); switch(this._input.LA(1)) { case 77: - this.state = 631; + this.state = 633; this.match(FSHParser.RULESET_REFERENCE); break; case 76: - this.state = 632; + this.state = 634; this.paramRuleSetRef(); break; default: @@ -2824,25 +2827,25 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 635; + this.state = 637; this.match(FSHParser.STAR); - this.state = 636; + this.state = 638; this.path(); - this.state = 637; + this.state = 639; this.match(FSHParser.CARD); - this.state = 641; + this.state = 643; this._errHandler.sync(this); _la = this._input.LA(1); while((((_la) & ~0x1f) === 0 && ((1 << _la) & 2113929216) !== 0)) { - this.state = 638; + this.state = 640; this.flag(); - this.state = 643; + this.state = 645; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 644; + this.state = 646; this.match(FSHParser.KW_CONTENTREFERENCE); - this.state = 645; + this.state = 647; _la = this._input.LA(1); if(!(_la===62 || _la===73)) { this._errHandler.recoverInline(this); @@ -2851,13 +2854,13 @@ export default class FSHParser extends antlr4.Parser { this._errHandler.reportMatch(this); this.consume(); } - this.state = 646; - this.match(FSHParser.STRING); this.state = 648; + this.match(FSHParser.STRING); + this.state = 650; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===58 || _la===59) { - this.state = 647; + this.state = 649; _la = this._input.LA(1); if(!(_la===58 || _la===59)) { this._errHandler.recoverInline(this); @@ -2890,46 +2893,46 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 650; + this.state = 652; this.match(FSHParser.STAR); - this.state = 651; + this.state = 653; this.path(); - this.state = 652; + this.state = 654; this.match(FSHParser.CARD); - this.state = 656; + this.state = 658; this._errHandler.sync(this); var _alt = this._interp.adaptivePredict(this._input,61,this._ctx) while(_alt!=2 && _alt!=antlr4.atn.ATN.INVALID_ALT_NUMBER) { if(_alt===1) { - this.state = 653; + this.state = 655; this.flag(); } - this.state = 658; + this.state = 660; this._errHandler.sync(this); _alt = this._interp.adaptivePredict(this._input,61,this._ctx); } - this.state = 659; + this.state = 661; this.targetType(); - this.state = 664; + this.state = 666; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===40) { - this.state = 660; + this.state = 662; this.match(FSHParser.KW_OR); - this.state = 661; + this.state = 663; this.targetType(); - this.state = 666; + this.state = 668; this._errHandler.sync(this); _la = this._input.LA(1); } - this.state = 667; - this.match(FSHParser.STRING); this.state = 669; + this.match(FSHParser.STRING); + this.state = 671; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===58 || _la===59) { - this.state = 668; + this.state = 670; _la = this._input.LA(1); if(!(_la===58 || _la===59)) { this._errHandler.recoverInline(this); @@ -2961,9 +2964,9 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 122, FSHParser.RULE_pathRule); try { this.enterOuterAlt(localctx, 1); - this.state = 671; + this.state = 673; this.match(FSHParser.STAR); - this.state = 672; + this.state = 674; this.path(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -2987,13 +2990,13 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 674; - this.match(FSHParser.STAR); this.state = 676; + this.match(FSHParser.STAR); + this.state = 678; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===44 || _la===45) { - this.state = 675; + this.state = 677; _la = this._input.LA(1); if(!(_la===44 || _la===45)) { this._errHandler.recoverInline(this); @@ -3004,15 +3007,15 @@ export default class FSHParser extends antlr4.Parser { } } - this.state = 680; + this.state = 682; this._errHandler.sync(this); switch(this._input.LA(1)) { case 62: - this.state = 678; + this.state = 680; this.vsConceptComponent(); break; case 46: - this.state = 679; + this.state = 681; this.vsFilterComponent(); break; default: @@ -3040,13 +3043,13 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 682; - this.code(); this.state = 684; + this.code(); + this.state = 686; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===31) { - this.state = 683; + this.state = 685; this.vsComponentFrom(); } @@ -3072,17 +3075,17 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 686; + this.state = 688; this.match(FSHParser.KW_CODES); - this.state = 687; + this.state = 689; this.vsComponentFrom(); - this.state = 690; + this.state = 692; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===47) { - this.state = 688; + this.state = 690; this.match(FSHParser.KW_WHERE); - this.state = 689; + this.state = 691; this.vsFilterList(); } @@ -3108,35 +3111,35 @@ export default class FSHParser extends antlr4.Parser { var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 692; + this.state = 694; this.match(FSHParser.KW_FROM); - this.state = 703; + this.state = 705; this._errHandler.sync(this); switch(this._input.LA(1)) { case 49: - this.state = 693; + this.state = 695; this.vsFromSystem(); - this.state = 696; + this.state = 698; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===38) { - this.state = 694; + this.state = 696; this.match(FSHParser.KW_AND); - this.state = 695; + this.state = 697; this.vsFromValueset(); } break; case 48: - this.state = 698; + this.state = 700; this.vsFromValueset(); - this.state = 701; + this.state = 703; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===38) { - this.state = 699; + this.state = 701; this.match(FSHParser.KW_AND); - this.state = 700; + this.state = 702; this.vsFromSystem(); } @@ -3165,10 +3168,10 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 132, FSHParser.RULE_vsFromSystem); try { this.enterOuterAlt(localctx, 1); - this.state = 705; + this.state = 707; this.match(FSHParser.KW_SYSTEM); - this.state = 706; - this.name(); + this.state = 708; + this.vsFromTarget(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { localctx.exception = re; @@ -3190,21 +3193,21 @@ export default class FSHParser extends antlr4.Parser { this.enterRule(localctx, 134, FSHParser.RULE_vsFromValueset); try { this.enterOuterAlt(localctx, 1); - this.state = 708; + this.state = 710; this.match(FSHParser.KW_VSREFERENCE); - this.state = 709; - this.name(); - this.state = 714; + this.state = 711; + this.vsFromTarget(); + this.state = 716; this._errHandler.sync(this); var _alt = this._interp.adaptivePredict(this._input,71,this._ctx) while(_alt!=2 && _alt!=antlr4.atn.ATN.INVALID_ALT_NUMBER) { if(_alt===1) { - this.state = 710; + this.state = 712; this.match(FSHParser.KW_AND); - this.state = 711; - this.name(); + this.state = 713; + this.vsFromTarget(); } - this.state = 716; + this.state = 718; this._errHandler.sync(this); _alt = this._interp.adaptivePredict(this._input,71,this._ctx); } @@ -3225,23 +3228,82 @@ export default class FSHParser extends antlr4.Parser { + vsFromTarget() { + let localctx = new VsFromTargetContext(this, this._ctx, this.state); + this.enterRule(localctx, 136, FSHParser.RULE_vsFromTarget); + try { + this.enterOuterAlt(localctx, 1); + this.state = 721; + this._errHandler.sync(this); + switch(this._input.LA(1)) { + case 26: + case 27: + case 28: + case 29: + case 30: + case 31: + case 36: + case 37: + case 38: + case 39: + case 40: + case 41: + case 42: + case 43: + case 44: + case 45: + case 46: + case 47: + case 48: + case 49: + case 52: + case 60: + case 64: + case 65: + case 73: + this.state = 719; + this.name(); + break; + case 62: + this.state = 720; + this.match(FSHParser.CODE); + break; + default: + throw new antlr4.error.NoViableAltException(this); + } + } catch (re) { + if(re instanceof antlr4.error.RecognitionException) { + localctx.exception = re; + this._errHandler.reportError(this, re); + this._errHandler.recover(this, re); + } else { + throw re; + } + } finally { + this.exitRule(); + } + return localctx; + } + + + vsFilterList() { let localctx = new VsFilterListContext(this, this._ctx, this.state); - this.enterRule(localctx, 136, FSHParser.RULE_vsFilterList); + this.enterRule(localctx, 138, FSHParser.RULE_vsFilterList); var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 717; + this.state = 723; this.vsFilterDefinition(); - this.state = 722; + this.state = 728; this._errHandler.sync(this); _la = this._input.LA(1); while(_la===38) { - this.state = 718; + this.state = 724; this.match(FSHParser.KW_AND); - this.state = 719; + this.state = 725; this.vsFilterDefinition(); - this.state = 724; + this.state = 730; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -3263,19 +3325,19 @@ export default class FSHParser extends antlr4.Parser { vsFilterDefinition() { let localctx = new VsFilterDefinitionContext(this, this._ctx, this.state); - this.enterRule(localctx, 138, FSHParser.RULE_vsFilterDefinition); + this.enterRule(localctx, 140, FSHParser.RULE_vsFilterDefinition); var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 725; + this.state = 731; this.name(); - this.state = 726; + this.state = 732; this.vsFilterOperator(); - this.state = 728; + this.state = 734; this._errHandler.sync(this); _la = this._input.LA(1); if(((((_la - 42)) & ~0x1f) === 0 && ((1 << (_la - 42)) & 537985027) !== 0)) { - this.state = 727; + this.state = 733; this.vsFilterValue(); } @@ -3297,11 +3359,11 @@ export default class FSHParser extends antlr4.Parser { vsFilterOperator() { let localctx = new VsFilterOperatorContext(this, this._ctx, this.state); - this.enterRule(localctx, 140, FSHParser.RULE_vsFilterOperator); + this.enterRule(localctx, 142, FSHParser.RULE_vsFilterOperator); var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 730; + this.state = 736; _la = this._input.LA(1); if(!(_la===53 || _la===73)) { this._errHandler.recoverInline(this); @@ -3328,34 +3390,34 @@ export default class FSHParser extends antlr4.Parser { vsFilterValue() { let localctx = new VsFilterValueContext(this, this._ctx, this.state); - this.enterRule(localctx, 142, FSHParser.RULE_vsFilterValue); + this.enterRule(localctx, 144, FSHParser.RULE_vsFilterValue); try { - this.state = 737; + this.state = 743; this._errHandler.sync(this); switch(this._input.LA(1)) { case 62: this.enterOuterAlt(localctx, 1); - this.state = 732; + this.state = 738; this.code(); break; case 42: this.enterOuterAlt(localctx, 2); - this.state = 733; + this.state = 739; this.match(FSHParser.KW_TRUE); break; case 43: this.enterOuterAlt(localctx, 3); - this.state = 734; + this.state = 740; this.match(FSHParser.KW_FALSE); break; case 71: this.enterOuterAlt(localctx, 4); - this.state = 735; + this.state = 741; this.match(FSHParser.REGEX); break; case 58: this.enterOuterAlt(localctx, 5); - this.state = 736; + this.state = 742; this.match(FSHParser.STRING); break; default: @@ -3379,29 +3441,29 @@ export default class FSHParser extends antlr4.Parser { name() { let localctx = new NameContext(this, this._ctx, this.state); - this.enterRule(localctx, 144, FSHParser.RULE_name); + this.enterRule(localctx, 146, FSHParser.RULE_name); try { - this.state = 744; + this.state = 750; this._errHandler.sync(this); switch(this._input.LA(1)) { case 73: this.enterOuterAlt(localctx, 1); - this.state = 739; + this.state = 745; this.match(FSHParser.SEQUENCE); break; case 60: this.enterOuterAlt(localctx, 2); - this.state = 740; + this.state = 746; this.match(FSHParser.NUMBER); break; case 64: this.enterOuterAlt(localctx, 3); - this.state = 741; + this.state = 747; this.match(FSHParser.DATETIME); break; case 65: this.enterOuterAlt(localctx, 4); - this.state = 742; + this.state = 748; this.match(FSHParser.TIME); break; case 26: @@ -3426,7 +3488,7 @@ export default class FSHParser extends antlr4.Parser { case 49: case 52: this.enterOuterAlt(localctx, 5); - this.state = 743; + this.state = 749; this.mostAlphaKeywords(); break; default: @@ -3450,29 +3512,29 @@ export default class FSHParser extends antlr4.Parser { path() { let localctx = new PathContext(this, this._ctx, this.state); - this.enterRule(localctx, 146, FSHParser.RULE_path); + this.enterRule(localctx, 148, FSHParser.RULE_path); try { - this.state = 751; + this.state = 757; this._errHandler.sync(this); switch(this._input.LA(1)) { case 73: this.enterOuterAlt(localctx, 1); - this.state = 746; + this.state = 752; this.match(FSHParser.SEQUENCE); break; case 60: this.enterOuterAlt(localctx, 2); - this.state = 747; + this.state = 753; this.match(FSHParser.NUMBER); break; case 64: this.enterOuterAlt(localctx, 3); - this.state = 748; + this.state = 754; this.match(FSHParser.DATETIME); break; case 65: this.enterOuterAlt(localctx, 4); - this.state = 749; + this.state = 755; this.match(FSHParser.TIME); break; case 26: @@ -3497,7 +3559,7 @@ export default class FSHParser extends antlr4.Parser { case 49: case 52: this.enterOuterAlt(localctx, 5); - this.state = 750; + this.state = 756; this.mostAlphaKeywords(); break; default: @@ -3521,10 +3583,10 @@ export default class FSHParser extends antlr4.Parser { caretPath() { let localctx = new CaretPathContext(this, this._ctx, this.state); - this.enterRule(localctx, 148, FSHParser.RULE_caretPath); + this.enterRule(localctx, 150, FSHParser.RULE_caretPath); try { this.enterOuterAlt(localctx, 1); - this.state = 753; + this.state = 759; this.match(FSHParser.CARET_SEQUENCE); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -3544,11 +3606,11 @@ export default class FSHParser extends antlr4.Parser { flag() { let localctx = new FlagContext(this, this._ctx, this.state); - this.enterRule(localctx, 150, FSHParser.RULE_flag); + this.enterRule(localctx, 152, FSHParser.RULE_flag); var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 755; + this.state = 761; _la = this._input.LA(1); if(!((((_la) & ~0x1f) === 0 && ((1 << _la) & 2113929216) !== 0))) { this._errHandler.recoverInline(this); @@ -3575,11 +3637,11 @@ export default class FSHParser extends antlr4.Parser { strength() { let localctx = new StrengthContext(this, this._ctx, this.state); - this.enterRule(localctx, 152, FSHParser.RULE_strength); + this.enterRule(localctx, 154, FSHParser.RULE_strength); var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 757; + this.state = 763; _la = this._input.LA(1); if(!(((((_la - 32)) & ~0x1f) === 0 && ((1 << (_la - 32)) & 15) !== 0))) { this._errHandler.recoverInline(this); @@ -3606,81 +3668,81 @@ export default class FSHParser extends antlr4.Parser { value() { let localctx = new ValueContext(this, this._ctx, this.state); - this.enterRule(localctx, 154, FSHParser.RULE_value); + this.enterRule(localctx, 156, FSHParser.RULE_value); try { - this.state = 771; + this.state = 777; this._errHandler.sync(this); - var la_ = this._interp.adaptivePredict(this._input,77,this._ctx); + var la_ = this._interp.adaptivePredict(this._input,78,this._ctx); switch(la_) { case 1: this.enterOuterAlt(localctx, 1); - this.state = 759; + this.state = 765; this.match(FSHParser.STRING); break; case 2: this.enterOuterAlt(localctx, 2); - this.state = 760; + this.state = 766; this.match(FSHParser.MULTILINE_STRING); break; case 3: this.enterOuterAlt(localctx, 3); - this.state = 761; + this.state = 767; this.match(FSHParser.NUMBER); break; case 4: this.enterOuterAlt(localctx, 4); - this.state = 762; + this.state = 768; this.match(FSHParser.DATETIME); break; case 5: this.enterOuterAlt(localctx, 5); - this.state = 763; + this.state = 769; this.match(FSHParser.TIME); break; case 6: this.enterOuterAlt(localctx, 6); - this.state = 764; + this.state = 770; this.reference(); break; case 7: this.enterOuterAlt(localctx, 7); - this.state = 765; + this.state = 771; this.canonical(); break; case 8: this.enterOuterAlt(localctx, 8); - this.state = 766; + this.state = 772; this.code(); break; case 9: this.enterOuterAlt(localctx, 9); - this.state = 767; + this.state = 773; this.quantity(); break; case 10: this.enterOuterAlt(localctx, 10); - this.state = 768; + this.state = 774; this.ratio(); break; case 11: this.enterOuterAlt(localctx, 11); - this.state = 769; + this.state = 775; this.bool(); break; case 12: this.enterOuterAlt(localctx, 12); - this.state = 770; + this.state = 776; this.name(); break; @@ -3703,31 +3765,31 @@ export default class FSHParser extends antlr4.Parser { item() { let localctx = new ItemContext(this, this._ctx, this.state); - this.enterRule(localctx, 156, FSHParser.RULE_item); + this.enterRule(localctx, 158, FSHParser.RULE_item); var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 773; + this.state = 779; this.name(); - this.state = 776; + this.state = 782; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===37) { - this.state = 774; + this.state = 780; this.match(FSHParser.KW_NAMED); - this.state = 775; + this.state = 781; this.name(); } - this.state = 778; + this.state = 784; this.match(FSHParser.CARD); - this.state = 782; + this.state = 788; this._errHandler.sync(this); _la = this._input.LA(1); while((((_la) & ~0x1f) === 0 && ((1 << _la) & 2113929216) !== 0)) { - this.state = 779; + this.state = 785; this.flag(); - this.state = 784; + this.state = 790; this._errHandler.sync(this); _la = this._input.LA(1); } @@ -3749,17 +3811,17 @@ export default class FSHParser extends antlr4.Parser { code() { let localctx = new CodeContext(this, this._ctx, this.state); - this.enterRule(localctx, 158, FSHParser.RULE_code); + this.enterRule(localctx, 160, FSHParser.RULE_code); var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 785; + this.state = 791; this.match(FSHParser.CODE); - this.state = 787; + this.state = 793; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===58) { - this.state = 786; + this.state = 792; this.match(FSHParser.STRING); } @@ -3781,35 +3843,35 @@ export default class FSHParser extends antlr4.Parser { concept() { let localctx = new ConceptContext(this, this._ctx, this.state); - this.enterRule(localctx, 160, FSHParser.RULE_concept); + this.enterRule(localctx, 162, FSHParser.RULE_concept); var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 789; + this.state = 795; this.match(FSHParser.STAR); - this.state = 791; + this.state = 797; this._errHandler.sync(this); _la = this._input.LA(1); do { - this.state = 790; + this.state = 796; this.match(FSHParser.CODE); - this.state = 793; + this.state = 799; this._errHandler.sync(this); _la = this._input.LA(1); } while(_la===62); - this.state = 796; + this.state = 802; this._errHandler.sync(this); - var la_ = this._interp.adaptivePredict(this._input,82,this._ctx); + var la_ = this._interp.adaptivePredict(this._input,83,this._ctx); if(la_===1) { - this.state = 795; + this.state = 801; this.match(FSHParser.STRING); } - this.state = 799; + this.state = 805; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===58 || _la===59) { - this.state = 798; + this.state = 804; _la = this._input.LA(1); if(!(_la===58 || _la===59)) { this._errHandler.recoverInline(this); @@ -3838,19 +3900,19 @@ export default class FSHParser extends antlr4.Parser { quantity() { let localctx = new QuantityContext(this, this._ctx, this.state); - this.enterRule(localctx, 162, FSHParser.RULE_quantity); + this.enterRule(localctx, 164, FSHParser.RULE_quantity); var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 802; + this.state = 808; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===60) { - this.state = 801; + this.state = 807; this.match(FSHParser.NUMBER); } - this.state = 804; + this.state = 810; _la = this._input.LA(1); if(!(_la===61 || _la===62)) { this._errHandler.recoverInline(this); @@ -3859,11 +3921,11 @@ export default class FSHParser extends antlr4.Parser { this._errHandler.reportMatch(this); this.consume(); } - this.state = 806; + this.state = 812; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===58) { - this.state = 805; + this.state = 811; this.match(FSHParser.STRING); } @@ -3885,14 +3947,14 @@ export default class FSHParser extends antlr4.Parser { ratio() { let localctx = new RatioContext(this, this._ctx, this.state); - this.enterRule(localctx, 164, FSHParser.RULE_ratio); + this.enterRule(localctx, 166, FSHParser.RULE_ratio); try { this.enterOuterAlt(localctx, 1); - this.state = 808; + this.state = 814; this.ratioPart(); - this.state = 809; + this.state = 815; this.match(FSHParser.COLON); - this.state = 810; + this.state = 816; this.ratioPart(); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -3912,17 +3974,17 @@ export default class FSHParser extends antlr4.Parser { reference() { let localctx = new ReferenceContext(this, this._ctx, this.state); - this.enterRule(localctx, 166, FSHParser.RULE_reference); + this.enterRule(localctx, 168, FSHParser.RULE_reference); var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 812; + this.state = 818; this.match(FSHParser.REFERENCE); - this.state = 814; + this.state = 820; this._errHandler.sync(this); _la = this._input.LA(1); if(_la===58) { - this.state = 813; + this.state = 819; this.match(FSHParser.STRING); } @@ -3944,10 +4006,10 @@ export default class FSHParser extends antlr4.Parser { referenceType() { let localctx = new ReferenceTypeContext(this, this._ctx, this.state); - this.enterRule(localctx, 168, FSHParser.RULE_referenceType); + this.enterRule(localctx, 170, FSHParser.RULE_referenceType); try { this.enterOuterAlt(localctx, 1); - this.state = 816; + this.state = 822; this.match(FSHParser.REFERENCE); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -3967,10 +4029,10 @@ export default class FSHParser extends antlr4.Parser { codeableReferenceType() { let localctx = new CodeableReferenceTypeContext(this, this._ctx, this.state); - this.enterRule(localctx, 170, FSHParser.RULE_codeableReferenceType); + this.enterRule(localctx, 172, FSHParser.RULE_codeableReferenceType); try { this.enterOuterAlt(localctx, 1); - this.state = 818; + this.state = 824; this.match(FSHParser.CODEABLE_REFERENCE); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -3990,10 +4052,10 @@ export default class FSHParser extends antlr4.Parser { canonical() { let localctx = new CanonicalContext(this, this._ctx, this.state); - this.enterRule(localctx, 172, FSHParser.RULE_canonical); + this.enterRule(localctx, 174, FSHParser.RULE_canonical); try { this.enterOuterAlt(localctx, 1); - this.state = 820; + this.state = 826; this.match(FSHParser.CANONICAL); } catch (re) { if(re instanceof antlr4.error.RecognitionException) { @@ -4013,21 +4075,21 @@ export default class FSHParser extends antlr4.Parser { ratioPart() { let localctx = new RatioPartContext(this, this._ctx, this.state); - this.enterRule(localctx, 174, FSHParser.RULE_ratioPart); + this.enterRule(localctx, 176, FSHParser.RULE_ratioPart); try { - this.state = 824; + this.state = 830; this._errHandler.sync(this); - var la_ = this._interp.adaptivePredict(this._input,87,this._ctx); + var la_ = this._interp.adaptivePredict(this._input,88,this._ctx); switch(la_) { case 1: this.enterOuterAlt(localctx, 1); - this.state = 822; + this.state = 828; this.match(FSHParser.NUMBER); break; case 2: this.enterOuterAlt(localctx, 2); - this.state = 823; + this.state = 829; this.quantity(); break; @@ -4050,11 +4112,11 @@ export default class FSHParser extends antlr4.Parser { bool() { let localctx = new BoolContext(this, this._ctx, this.state); - this.enterRule(localctx, 176, FSHParser.RULE_bool); + this.enterRule(localctx, 178, FSHParser.RULE_bool); var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 826; + this.state = 832; _la = this._input.LA(1); if(!(_la===42 || _la===43)) { this._errHandler.recoverInline(this); @@ -4081,9 +4143,9 @@ export default class FSHParser extends antlr4.Parser { targetType() { let localctx = new TargetTypeContext(this, this._ctx, this.state); - this.enterRule(localctx, 178, FSHParser.RULE_targetType); + this.enterRule(localctx, 180, FSHParser.RULE_targetType); try { - this.state = 832; + this.state = 838; this._errHandler.sync(this); switch(this._input.LA(1)) { case 26: @@ -4112,22 +4174,22 @@ export default class FSHParser extends antlr4.Parser { case 65: case 73: this.enterOuterAlt(localctx, 1); - this.state = 828; + this.state = 834; this.name(); break; case 67: this.enterOuterAlt(localctx, 2); - this.state = 829; + this.state = 835; this.referenceType(); break; case 69: this.enterOuterAlt(localctx, 3); - this.state = 830; + this.state = 836; this.canonical(); break; case 68: this.enterOuterAlt(localctx, 4); - this.state = 831; + this.state = 837; this.codeableReferenceType(); break; default: @@ -4151,11 +4213,11 @@ export default class FSHParser extends antlr4.Parser { mostAlphaKeywords() { let localctx = new MostAlphaKeywordsContext(this, this._ctx, this.state); - this.enterRule(localctx, 180, FSHParser.RULE_mostAlphaKeywords); + this.enterRule(localctx, 182, FSHParser.RULE_mostAlphaKeywords); var _la = 0; try { this.enterOuterAlt(localctx, 1); - this.state = 834; + this.state = 840; _la = this._input.LA(1); if(!(((((_la - 26)) & ~0x1f) === 0 && ((1 << (_la - 26)) & 83885119) !== 0))) { this._errHandler.recoverInline(this); @@ -4340,29 +4402,30 @@ FSHParser.RULE_vsFilterComponent = 64; FSHParser.RULE_vsComponentFrom = 65; FSHParser.RULE_vsFromSystem = 66; FSHParser.RULE_vsFromValueset = 67; -FSHParser.RULE_vsFilterList = 68; -FSHParser.RULE_vsFilterDefinition = 69; -FSHParser.RULE_vsFilterOperator = 70; -FSHParser.RULE_vsFilterValue = 71; -FSHParser.RULE_name = 72; -FSHParser.RULE_path = 73; -FSHParser.RULE_caretPath = 74; -FSHParser.RULE_flag = 75; -FSHParser.RULE_strength = 76; -FSHParser.RULE_value = 77; -FSHParser.RULE_item = 78; -FSHParser.RULE_code = 79; -FSHParser.RULE_concept = 80; -FSHParser.RULE_quantity = 81; -FSHParser.RULE_ratio = 82; -FSHParser.RULE_reference = 83; -FSHParser.RULE_referenceType = 84; -FSHParser.RULE_codeableReferenceType = 85; -FSHParser.RULE_canonical = 86; -FSHParser.RULE_ratioPart = 87; -FSHParser.RULE_bool = 88; -FSHParser.RULE_targetType = 89; -FSHParser.RULE_mostAlphaKeywords = 90; +FSHParser.RULE_vsFromTarget = 68; +FSHParser.RULE_vsFilterList = 69; +FSHParser.RULE_vsFilterDefinition = 70; +FSHParser.RULE_vsFilterOperator = 71; +FSHParser.RULE_vsFilterValue = 72; +FSHParser.RULE_name = 73; +FSHParser.RULE_path = 74; +FSHParser.RULE_caretPath = 75; +FSHParser.RULE_flag = 76; +FSHParser.RULE_strength = 77; +FSHParser.RULE_value = 78; +FSHParser.RULE_item = 79; +FSHParser.RULE_code = 80; +FSHParser.RULE_concept = 81; +FSHParser.RULE_quantity = 82; +FSHParser.RULE_ratio = 83; +FSHParser.RULE_reference = 84; +FSHParser.RULE_referenceType = 85; +FSHParser.RULE_codeableReferenceType = 86; +FSHParser.RULE_canonical = 87; +FSHParser.RULE_ratioPart = 88; +FSHParser.RULE_bool = 89; +FSHParser.RULE_targetType = 90; +FSHParser.RULE_mostAlphaKeywords = 91; class DocContext extends antlr4.ParserRuleContext { @@ -8435,8 +8498,8 @@ class VsFromSystemContext extends antlr4.ParserRuleContext { return this.getToken(FSHParser.KW_SYSTEM, 0); }; - name() { - return this.getTypedRuleContext(NameContext,0); + vsFromTarget() { + return this.getTypedRuleContext(VsFromTargetContext,0); }; enterRule(listener) { @@ -8482,14 +8545,14 @@ class VsFromValuesetContext extends antlr4.ParserRuleContext { return this.getToken(FSHParser.KW_VSREFERENCE, 0); }; - name = function(i) { + vsFromTarget = function(i) { if(i===undefined) { i = null; } if(i===null) { - return this.getTypedRuleContexts(NameContext); + return this.getTypedRuleContexts(VsFromTargetContext); } else { - return this.getTypedRuleContext(NameContext,i); + return this.getTypedRuleContext(VsFromTargetContext,i); } }; @@ -8530,6 +8593,53 @@ class VsFromValuesetContext extends antlr4.ParserRuleContext { +class VsFromTargetContext extends antlr4.ParserRuleContext { + + constructor(parser, parent, invokingState) { + if(parent===undefined) { + parent = null; + } + if(invokingState===undefined || invokingState===null) { + invokingState = -1; + } + super(parent, invokingState); + this.parser = parser; + this.ruleIndex = FSHParser.RULE_vsFromTarget; + } + + name() { + return this.getTypedRuleContext(NameContext,0); + }; + + CODE() { + return this.getToken(FSHParser.CODE, 0); + }; + + enterRule(listener) { + if(listener instanceof FSHListener ) { + listener.enterVsFromTarget(this); + } + } + + exitRule(listener) { + if(listener instanceof FSHListener ) { + listener.exitVsFromTarget(this); + } + } + + accept(visitor) { + if ( visitor instanceof FSHVisitor ) { + return visitor.visitVsFromTarget(this); + } else { + return visitor.visitChildren(this); + } + } + + +} + + + class VsFilterListContext extends antlr4.ParserRuleContext { constructor(parser, parent, invokingState) { @@ -9928,6 +10038,7 @@ FSHParser.VsFilterComponentContext = VsFilterComponentContext; FSHParser.VsComponentFromContext = VsComponentFromContext; FSHParser.VsFromSystemContext = VsFromSystemContext; FSHParser.VsFromValuesetContext = VsFromValuesetContext; +FSHParser.VsFromTargetContext = VsFromTargetContext; FSHParser.VsFilterListContext = VsFilterListContext; FSHParser.VsFilterDefinitionContext = VsFilterDefinitionContext; FSHParser.VsFilterOperatorContext = VsFilterOperatorContext; diff --git a/src/import/generated/FSHVisitor.js b/src/import/generated/FSHVisitor.js index 01b827b34..0b4e0d3f8 100644 --- a/src/import/generated/FSHVisitor.js +++ b/src/import/generated/FSHVisitor.js @@ -414,6 +414,12 @@ export default class FSHVisitor extends antlr4.tree.ParseTreeVisitor { } + // Visit a parse tree produced by FSHParser#vsFromTarget. + visitVsFromTarget(ctx) { + return this.visitChildren(ctx); + } + + // Visit a parse tree produced by FSHParser#vsFilterList. visitVsFilterList(ctx) { return this.visitChildren(ctx); diff --git a/src/import/parserContexts.ts b/src/import/parserContexts.ts index 0cb90f6f2..4739d71fd 100644 --- a/src/import/parserContexts.ts +++ b/src/import/parserContexts.ts @@ -527,12 +527,17 @@ export interface VsComponentFromContext extends ParserRuleContext { export interface VsFromSystemContext extends ParserRuleContext { KW_SYSTEM(): ParserRuleContext; - name(): NameContext; + vsFromTarget(): VsFromTargetContext; } export interface VsFromValuesetContext extends ParserRuleContext { KW_VSREFERENCE(): ParserRuleContext; - name(): NameContext[]; + vsFromTarget(): VsFromTargetContext[]; +} + +export interface VsFromTargetContext extends ParserRuleContext { + name(): NameContext; + CODE(): ParserRuleContext; } export interface VsFilterListContext extends ParserRuleContext { diff --git a/test/export/InstanceExporter.test.ts b/test/export/InstanceExporter.test.ts index 024611f47..a07c86fe0 100644 --- a/test/export/InstanceExporter.test.ts +++ b/test/export/InstanceExporter.test.ts @@ -62,7 +62,7 @@ describe('InstanceExporter', () => { beforeEach(() => { loggerSpy.reset(); doc = new FSHDocument('fileName'); - tank = new FSHTank([doc], minimalConfig); + tank = new FSHTank([doc], cloneDeep(minimalConfig)); pkg = new Package(tank.config); fisher = new TestFisher(tank, defs, pkg); sdExporter = new StructureDefinitionExporter(tank, pkg, fisher); @@ -6353,6 +6353,108 @@ describe('InstanceExporter', () => { }); }); + it('should assign a fragment reference to an inline contained resource', () => { + // Instance: SomeOrg + // InstanceOf: Organization + // Usage: #inline + // * name = "Some Organization LTD" + const organization = new Instance('SomeOrg'); + organization.instanceOf = 'Organization'; + organization.usage = 'Inline'; + const orgName = new AssignmentRule('name'); + orgName.value = 'Some Organization LTD'; + organization.rules.push(orgName); + doc.instances.set(organization.name, organization); + // Instance: SomePatient + // InstanceOf: Patient + // Usage: #example + // * contained[0] = SomeOrg + // * contact.organization = Reference(#SomeOrg) + const patient = new Instance('SomePatient'); + patient.instanceOf = 'Patient'; + patient.usage = 'Example'; + const patientContained = new AssignmentRule('contained[0]'); + patientContained.value = 'SomeOrg'; + patientContained.isInstance = true; + const contactOrganization = new AssignmentRule('contact.organization'); + contactOrganization.value = new FshReference('#SomeOrg'); + patient.rules.push(patientContained, contactOrganization); + doc.instances.set(patient.name, patient); + + const exported = exportInstance(patient); + expect(exported.contact[0].organization).toEqual({ + reference: '#SomeOrg' + }); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + expect(loggerSpy.getAllMessages('warn')).toHaveLength(0); + }); + + it('should assign a fragment reference to a constructed contained resource', () => { + // Instance: SomePatient + // InstanceOf: Patient + // Usage: #example + // * contained[0] + // * resourceType = "Organization" + // * id = "SomeOrg" + // * name = "Some Organization LTD" + // * contact.organization = Reference(#SomeOrg) + const patient = new Instance('SomePatient'); + patient.instanceOf = 'Patient'; + patient.usage = 'Example'; + const containedType = new AssignmentRule('contained[0].resourceType'); + containedType.value = 'Organization'; + const containedId = new AssignmentRule('contained[0].id'); + containedId.value = 'SomeOrg'; + const containedName = new AssignmentRule('contained[0].name'); + containedName.value = 'Some Organization LTD'; + const contactOrganization = new AssignmentRule('contact.organization'); + contactOrganization.value = new FshReference('#SomeOrg'); + patient.rules.push(containedType, containedId, containedName, contactOrganization); + doc.instances.set(patient.name, patient); + + const exported = exportInstance(patient); + expect(exported.contact[0].organization).toEqual({ + reference: '#SomeOrg' + }); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + expect(loggerSpy.getAllMessages('warn')).toHaveLength(0); + }); + + it('should warn when assigning a fragment reference to a non-contained resource', () => { + // Instance: SomeOrg + // InstanceOf: Organization + // Usage: #example + // * name = "Some Organization LTD" + const organization = new Instance('SomeOrg'); + organization.instanceOf = 'Organization'; + organization.usage = 'Example'; + const orgName = new AssignmentRule('name'); + orgName.value = 'Some Organization LTD'; + organization.rules.push(orgName); + doc.instances.set(organization.name, organization); + // Instance: SomePatient + // InstanceOf: Patient + // Usage: #example + // * contact.organization = Reference(#SomeOrg) + const patient = new Instance('SomePatient'); + patient.instanceOf = 'Patient'; + patient.usage = 'Example'; + const contactOrganization = new AssignmentRule('contact.organization'); + contactOrganization.value = new FshReference('#SomeOrg'); + patient.rules.push(contactOrganization); + doc.instances.set(patient.name, patient); + + const exported = exportInstance(patient); + expect(exported.contact[0].organization).toEqual({ + reference: '#SomeOrg' + }); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + expect(loggerSpy.getAllMessages('warn')).toHaveLength(1); + expect(loggerSpy.getLastMessage('warn')).toMatch( + /Cannot find the entity referenced at #SomeOrg/s + ); + }); + it('should assign a reference to a type based on a profile', () => { const basePatientInstance = new Instance('BasePatient'); basePatientInstance.instanceOf = 'Patient'; @@ -6612,6 +6714,140 @@ describe('InstanceExporter', () => { expect(exportedActivity.library).toEqual(['http://fhir/ig/Library/273']); }); + it('should apply an Assignment rule with a fragment Canonical of a contained inline instance', () => { + // Instance: MyLibrary + // InstanceOf: Library + // Usage: #inline + // * id = "my-library" + // * url = "http://fhir/ig/Library/273" + // * status = #draft + // * type = #logic-library + const libraryInstance = new Instance('MyLibrary'); + libraryInstance.instanceOf = 'Library'; + libraryInstance.usage = 'Inline'; + const libraryId = new AssignmentRule('id'); + libraryId.value = 'my-library'; + const libraryUrl = new AssignmentRule('url'); + libraryUrl.value = 'http://fhir/ig/Library/273'; + const libraryStatus = new AssignmentRule('status'); + libraryStatus.value = new FshCode('draft'); + const libraryType = new AssignmentRule('type'); + libraryType.value = new FshCode('logic-library'); + libraryInstance.rules.push(libraryId, libraryUrl, libraryStatus, libraryType); + doc.instances.set(libraryInstance.name, libraryInstance); + // Instance: MyActivity + // InstanceOf: ActivityDefinition + // Usage: #example + // * contained = MyLibrary + // * status = #draft + // * library = Canonical(#my-library) + const activityDefinition = new Instance('MyActivity'); + activityDefinition.instanceOf = 'ActivityDefinition'; + activityDefinition.usage = 'Example'; + const activityContained = new AssignmentRule('contained'); + activityContained.value = 'MyLibrary'; + activityContained.isInstance = true; + const activityStatus = new AssignmentRule('status'); + activityStatus.value = new FshCode('draft'); + const activityLibrary = new AssignmentRule('library'); + activityLibrary.value = new FshCanonical('#my-library'); + activityDefinition.rules.push(activityContained, activityStatus, activityLibrary); + doc.instances.set(activityDefinition.name, activityDefinition); + + const exportedActivity = exportInstance(activityDefinition); + // expect(exportedActivity.library).toEqual(['http://fhir/ig/Library/273']); + expect(exportedActivity.library).toEqual(['#my-library']); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + expect(loggerSpy.getAllMessages('warn')).toHaveLength(0); + }); + + it('should apply an Assignment rule with a fragment Canonical of a contained constructed resource', () => { + // Instance: MyActivityDefinition + // InstanceOf: ActivityDefinition + // Usage: #example + // * contained[0] + // * resourceType = "Library" + // * id = "my-library" + // * status = #draft + // * type = #logic-library + // * status = #draft + // * library = Canonical(#my-library) + const activityDefinition = new Instance('MyActivity'); + activityDefinition.instanceOf = 'ActivityDefinition'; + activityDefinition.usage = 'Example'; + const containedResourceType = new AssignmentRule('contained[0].resourceType'); + containedResourceType.value = 'Library'; + const containedId = new AssignmentRule('contained[0].id'); + containedId.value = 'my-library'; + const containedStatus = new AssignmentRule('contained[0].status'); + containedStatus.value = new FshCode('draft'); + const containedType = new AssignmentRule('contained[0].type'); + containedType.value = new FshCode('logic-library'); + const activityStatus = new AssignmentRule('status'); + activityStatus.value = new FshCode('draft'); + const activityLibrary = new AssignmentRule('library'); + activityLibrary.value = new FshCanonical('#my-library'); + activityDefinition.rules.push( + containedResourceType, + containedId, + containedStatus, + containedType, + activityStatus, + activityLibrary + ); + doc.instances.set(activityDefinition.name, activityDefinition); + + const exportedActivity = exportInstance(activityDefinition); + // expect(exportedActivity.library).toEqual(['http://fhir/ig/Library/273']); + expect(exportedActivity.library).toEqual(['#my-library']); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + expect(loggerSpy.getAllMessages('warn')).toHaveLength(0); + }); + + it('should not apply an Assignment rule with a fragment Canonical of a non-contained resource', () => { + // Instance: MyLibrary + // InstanceOf: Library + // Usage: #example + // * id = "my-library" + // * status = #draft + // * type = #logic-library + const libraryInstance = new Instance('MyLibrary'); + libraryInstance.instanceOf = 'Library'; + libraryInstance.usage = 'Example'; + const libraryId = new AssignmentRule('id'); + libraryId.value = 'my-library'; + const libraryUrl = new AssignmentRule('url'); + libraryUrl.value = 'http://fhir/ig/Library/273'; + const libraryStatus = new AssignmentRule('status'); + libraryStatus.value = new FshCode('draft'); + const libraryType = new AssignmentRule('type'); + libraryType.value = new FshCode('logic-library'); + libraryInstance.rules.push(libraryId, libraryUrl, libraryStatus, libraryType); + doc.instances.set(libraryInstance.name, libraryInstance); + // Instance: MyActivityDefinition + // InstanceOf: ActivityDefinition + // Usage: #example + // * status = #draft + // * library = Canonical(#my-library) + const activityDefinition = new Instance('MyActivity'); + activityDefinition.instanceOf = 'ActivityDefinition'; + activityDefinition.usage = 'Example'; + const activityStatus = new AssignmentRule('status'); + activityStatus.value = new FshCode('draft'); + const activityLibrary = new AssignmentRule('library'); + activityLibrary.value = new FshCanonical('#my-library'); + activityDefinition.rules.push(activityStatus, activityLibrary); + doc.instances.set(activityDefinition.name, activityDefinition); + + const exportedActivity = exportInstance(activityDefinition); + expect(exportedActivity.library).toBeUndefined(); + expect(loggerSpy.getAllMessages('error')).toHaveLength(1); + expect(loggerSpy.getLastMessage('error')).toMatch( + /Cannot use canonical URL of #my-library because it does not exist/s + ); + expect(loggerSpy.getAllMessages('warn')).toHaveLength(0); + }); + it('should not apply an Assignment rule with an invalid Canonical entity and log an error', () => { const observationInstance = new Instance('MyObservation'); observationInstance.instanceOf = 'Observation'; diff --git a/test/export/StructureDefinitionExporter.test.ts b/test/export/StructureDefinitionExporter.test.ts index 1f766070b..4db845380 100644 --- a/test/export/StructureDefinitionExporter.test.ts +++ b/test/export/StructureDefinitionExporter.test.ts @@ -6135,6 +6135,60 @@ describe('StructureDefinitionExporter R4', () => { expect(loggerSpy.getAllMessages('error')).toHaveLength(0); }); + it('should apply an Assignment rule with a fragment Canonical of an inline instance', () => { + // Profile: MyObservation + // Parent: Observation + // * ^contained[0] = MyCodeSystem + // * code.coding.system = Canonical(#MyCodeSystem) + const profile = new Profile('MyObservation'); + profile.parent = 'Observation'; + const contained = new CaretValueRule(''); + contained.caretPath = 'contained[0]'; + contained.value = 'MyCodeSystem'; + contained.isInstance = true; + const systemRule = new AssignmentRule('code.coding.system'); + systemRule.value = new FshCanonical('#MyCodeSystem'); + profile.rules.push(contained, systemRule); + + const inlineInstance = new Instance('MyCodeSystem'); + inlineInstance.usage = 'Inline'; + doc.instances.set(inlineInstance.name, inlineInstance); + + exporter.exportStructDef(profile); + const sd = pkg.profiles[0]; + const assignedSystem = sd.findElement('Observation.code.coding.system'); + expect(assignedSystem.patternUri).toEqual('#MyCodeSystem'); + expect(loggerSpy.getAllMessages('warn')).toHaveLength(0); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + }); + + // this test currently fails. + it('should apply an Assignment rule with a fragment Canonical of a constructed contained instance', () => { + // Profile: MyObservation + // Parent: Observation + // * ^contained[0].resourceType = "CodeSystem" + // * ^contained[0].id = "MyCodeSystem" + // * code.coding.system = Canonical(#MyCodeSystem) + const profile = new Profile('MyObservation'); + profile.parent = 'Observation'; + const containedResourceType = new CaretValueRule(''); + containedResourceType.caretPath = 'contained[0].resourceType'; + containedResourceType.value = 'CodeSystem'; + const containedId = new CaretValueRule(''); + containedId.caretPath = 'contained[0].id'; + containedId.value = 'MyCodeSystem'; + const systemRule = new AssignmentRule('code.coding.system'); + systemRule.value = new FshCanonical('#MyCodeSystem'); + profile.rules.push(containedResourceType, containedId, systemRule); + + exporter.exportStructDef(profile); + const sd = pkg.profiles[0]; + const assignedSystem = sd.findElement('Observation.code.coding.system'); + expect(assignedSystem.patternUri).toEqual('#MyCodeSystem'); + expect(loggerSpy.getAllMessages('warn')).toHaveLength(0); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + }); + it('should apply an AssignmentRule with Canonical of a FHIR entity', () => { const profile = new Profile('MyObservation'); profile.parent = 'Observation'; @@ -8268,6 +8322,44 @@ describe('StructureDefinitionExporter R4', () => { }); }); + it('should apply a fragment Reference CaretValueRule on an SD and replace the Reference to the contained resource', () => { + // Instance: SomeOrg + // InstanceOf: Organization + // Usage: #inline + // * id = "some-org" + const organization = new Instance('SomeOrg'); + organization.instanceOf = 'Organization'; + organization.usage = 'Inline'; + const orgId = new AssignmentRule('id'); + orgId.value = 'some-org'; + organization.rules.push(orgId); + doc.instances.set(organization.name, organization); + // Profile: MyObservation + // Parent: Observation + // * ^contained[0] = SomeOrg + // * ^identifier[0].assigner = Reference(#some-org) + const profile = new Profile('MyObservation'); + profile.parent = 'Observation'; + const containedOrg = new CaretValueRule(''); + containedOrg.caretPath = 'contained[0]'; + containedOrg.value = 'SomeOrg'; + containedOrg.isInstance = true; + const assigner = new CaretValueRule(''); + assigner.caretPath = 'identifier[0].assigner'; + assigner.value = new FshReference('#some-org'); + profile.rules.push(containedOrg, assigner); + + exporter.exportStructDef(profile); + const sd = pkg.profiles[0]; + + expect(sd.identifier[0].assigner).toEqual({ + reference: '#some-org' + }); + + expect(loggerSpy.getAllMessages('warn')).toHaveLength(0); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + }); + it('should apply a Reference CaretValueRule on an ED and replace the Reference', () => { const profile = new Profile('Foo'); profile.parent = 'Observation'; @@ -8292,6 +8384,90 @@ describe('StructureDefinitionExporter R4', () => { }); }); + it('should apply a fragment Reference CaretValueRule on an ED and replace the Reference to the contained resource', () => { + // Instance: SomeOrg + // InstanceOf: Organization + // Usage: #inline + // * id = "some-org" + const organization = new Instance('SomeOrg'); + organization.instanceOf = 'Organization'; + organization.usage = 'Inline'; + const orgId = new AssignmentRule('id'); + orgId.value = 'some-org'; + organization.rules.push(orgId); + doc.instances.set(organization.name, organization); + // Profile: MyObs + // Parent: Observation + // * ^contained[0] = SomeOrg + // * subject ^extension[0].url = "http://example.org/SomeExt" + // * subject ^extension[0].valueReference = Reference(#some-org) + const profile = new Profile('MyObservation'); + profile.parent = 'Observation'; + const containedOrg = new CaretValueRule(''); + containedOrg.caretPath = 'contained[0]'; + containedOrg.value = 'SomeOrg'; + containedOrg.isInstance = true; + const extensionUrl = new CaretValueRule('subject'); + extensionUrl.caretPath = 'extension[0].url'; + extensionUrl.value = 'http://example.org/SomeExt'; + const extensionValue = new CaretValueRule('subject'); + extensionValue.caretPath = 'extension[0].valueReference'; + extensionValue.value = new FshReference('#some-org'); + profile.rules.push(containedOrg, extensionUrl, extensionValue); + + exporter.exportStructDef(profile); + const sd = pkg.profiles[0]; + + const ed = sd.elements.find(e => e.id === 'Observation.subject'); + expect(ed.extension[0]).toEqual({ + url: 'http://example.org/SomeExt', + valueReference: { + reference: '#some-org' + } + }); + + expect(loggerSpy.getAllMessages('warn')).toHaveLength(0); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + }); + + it('should apply a fragment Reference CaretValueRule on an ED and replace the Reference to the contained constructed resource', () => { + // Profile: MyObs + // Parent: Observation + // * ^contained[0].resourceType = "Organization" + // * ^contained[0].id = "some-org" + // * subject ^extension[0].url = "http://example.org/SomeExt" + // * subject ^extension[0].valueReference = Reference(#some-org) + const profile = new Profile('MyObservation'); + profile.parent = 'Observation'; + const containedType = new CaretValueRule(''); + containedType.caretPath = 'contained[0].resourceType'; + containedType.value = 'Organization'; + const containedId = new CaretValueRule(''); + containedId.caretPath = 'contained[0].id'; + containedId.value = 'some-org'; + const extensionUrl = new CaretValueRule('subject'); + extensionUrl.caretPath = 'extension[0].url'; + extensionUrl.value = 'http://example.org/SomeExt'; + const extensionValue = new CaretValueRule('subject'); + extensionValue.caretPath = 'extension[0].valueReference'; + extensionValue.value = new FshReference('#some-org'); + profile.rules.push(containedType, containedId, extensionUrl, extensionValue); + + exporter.exportStructDef(profile); + const sd = pkg.profiles[0]; + + const ed = sd.elements.find(e => e.id === 'Observation.subject'); + expect(ed.extension[0]).toEqual({ + url: 'http://example.org/SomeExt', + valueReference: { + reference: '#some-org' + } + }); + + expect(loggerSpy.getAllMessages('warn')).toHaveLength(0); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + }); + it('should apply a CodeSystem CaretValueRule on an SD and replace the CodeSystem', () => { const profile = new Profile('Foo'); profile.parent = 'Observation'; diff --git a/test/export/ValueSetExporter.test.ts b/test/export/ValueSetExporter.test.ts index 248a25ea8..6e72bdaf9 100644 --- a/test/export/ValueSetExporter.test.ts +++ b/test/export/ValueSetExporter.test.ts @@ -408,7 +408,7 @@ describe('ValueSetExporter', () => { containedSystem.caretPath = 'contained'; containedSystem.value = 'example-codesystem'; containedSystem.isInstance = true; - const component = new ValueSetConceptComponentRule(true); + const component = new ValueSetFilterComponentRule(true); component.from = { system: 'example-codesystem' }; valueSet.rules.push(containedSystem, component); doc.valueSets.set(valueSet.name, valueSet); @@ -448,6 +448,81 @@ describe('ValueSetExporter', () => { } }); expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + expect(loggerSpy.getAllMessages('warn')).toHaveLength(0); + }); + + it('should export a value set that includes a component from a contained inline instance of code system referenced by fragment and add the valueset-system extension', () => { + // Instance: example-codesystem + // InstanceOf: CodeSystem + // Usage: #inline + // * url = "http://example.org/codesystem" + // * version = "1.0.0" + // * status = #active + // * content = #complete + const inlineCodeSystem = new Instance('example-codesystem'); + inlineCodeSystem.instanceOf = 'CodeSystem'; + inlineCodeSystem.usage = 'Inline'; + const urlRule = new AssignmentRule('url'); + urlRule.value = 'http://example.org/codesystem'; + const versionRule = new AssignmentRule('version'); + versionRule.value = '1.0.0'; + const statusRule = new AssignmentRule('status'); + statusRule.value = new FshCode('active'); + const contentRule = new AssignmentRule('content'); + contentRule.value = new FshCode('complete'); + inlineCodeSystem.rules.push(urlRule, versionRule, statusRule, contentRule); + doc.instances.set(inlineCodeSystem.name, inlineCodeSystem); + // ValueSet: ExampleValueset + // Id: example-valueset + // * ^contained = example-codesystem + // * include codes from system #example-codesystem + const valueSet = new FshValueSet('ExampleValueset'); + valueSet.id = 'example-valueset'; + const containedSystem = new CaretValueRule(''); + containedSystem.caretPath = 'contained'; + containedSystem.value = 'example-codesystem'; + containedSystem.isInstance = true; + const component = new ValueSetFilterComponentRule(true); + component.from = { system: '#example-codesystem' }; + valueSet.rules.push(containedSystem, component); + doc.valueSets.set(valueSet.name, valueSet); + + const exported = exporter.export().valueSets; + expect(exported.length).toBe(1); + expect(exported[0]).toEqual({ + resourceType: 'ValueSet', + name: 'ExampleValueset', + id: 'example-valueset', + status: 'draft', + url: 'http://hl7.org/fhir/us/minimal/ValueSet/example-valueset', + contained: [ + { + resourceType: 'CodeSystem', + id: 'example-codesystem', + url: 'http://example.org/codesystem', + version: '1.0.0', + status: 'active', + content: 'complete' + } + ], + compose: { + include: [ + { + system: 'http://example.org/codesystem', + _system: { + extension: [ + { + url: 'http://hl7.org/fhir/StructureDefinition/valueset-system', + valueCanonical: '#example-codesystem' + } + ] + } + } + ] + } + }); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + expect(loggerSpy.getAllMessages('warn')).toHaveLength(0); }); it('should log an error and not add the component when attempting to reference an inline instance of code system that is not contained', () => { @@ -477,11 +552,11 @@ describe('ValueSetExporter', () => { // * include codes from system http://hl7.org/fhir/us/minimal/CodeSystem/food const valueSet = new FshValueSet('ExampleValueset'); valueSet.id = 'example-valueset'; - const exampleComponent = new ValueSetConceptComponentRule(true) + const exampleComponent = new ValueSetFilterComponentRule(true) .withFile('ExampleVS.fsh') .withLocation([5, 3, 5, 48]); exampleComponent.from = { system: 'example-codesystem' }; - const foodComponent = new ValueSetConceptComponentRule(true); + const foodComponent = new ValueSetFilterComponentRule(true); foodComponent.from = { system: 'http://hl7.org/fhir/us/minimal/CodeSystem/food' }; valueSet.rules.push(exampleComponent, foodComponent); doc.valueSets.set(valueSet.name, valueSet); @@ -1190,7 +1265,7 @@ describe('ValueSetExporter', () => { const containedDisplay = new CaretValueRule(''); containedDisplay.caretPath = 'contained.concept[0].display'; containedDisplay.value = 'Example Code 1'; - const includeCodes = new ValueSetConceptComponentRule(true); + const includeCodes = new ValueSetFilterComponentRule(true); includeCodes.from = { system: 'http://example.org/codesystem' }; valueSet.rules.push( containedResourceType, @@ -1241,6 +1316,91 @@ describe('ValueSetExporter', () => { expect(loggerSpy.getAllMessages('error')).toHaveLength(0); }); + it('should export a value set that includes a component from a contained code system created on the value set and referenced by fragment', () => { + // ValueSet: ExampleValueset + // Id: example-valueset + // * ^contained.resourceType = "CodeSystem" + // * ^contained.id = "example-codesystem" + // * ^contained.name = "ExampleCodesystem" + // * ^contained.url = "http://example.org/codesystem" + // * ^contained.content = #complete + // * ^contained.concept[0].code = #example-code-1 + // * ^contained.concept[0].display = "Example Code 1" + // * include codes from system #example-codesystem + const valueSet = new FshValueSet('ExampleValueset'); + valueSet.id = 'example-valueset'; + const containedResourceType = new CaretValueRule(''); + containedResourceType.caretPath = 'contained.resourceType'; + containedResourceType.value = 'CodeSystem'; + const containedId = new CaretValueRule(''); + containedId.caretPath = 'contained.id'; + containedId.value = 'example-codesystem'; + const containedName = new CaretValueRule(''); + containedName.caretPath = 'contained.name'; + containedName.value = 'ExampleCodesystem'; + const containedUrl = new CaretValueRule(''); + containedUrl.caretPath = 'contained.url'; + containedUrl.value = 'http://example.org/codesystem'; + const containedContent = new CaretValueRule(''); + containedContent.caretPath = 'contained.content'; + containedContent.value = new FshCode('complete'); + const containedCode = new CaretValueRule(''); + containedCode.caretPath = 'contained.concept[0].code'; + containedCode.value = new FshCode('example-code-1'); + const containedDisplay = new CaretValueRule(''); + containedDisplay.caretPath = 'contained.concept[0].display'; + containedDisplay.value = 'Example Code 1'; + const includeCodes = new ValueSetFilterComponentRule(true); + includeCodes.from = { system: '#example-codesystem' }; + valueSet.rules.push( + containedResourceType, + containedId, + containedName, + containedUrl, + containedContent, + containedCode, + containedDisplay, + includeCodes + ); + doc.valueSets.set(valueSet.name, valueSet); + + const exported = exporter.export().valueSets; + expect(exported).toHaveLength(1); + expect(exported[0]).toEqual({ + resourceType: 'ValueSet', + name: 'ExampleValueset', + id: 'example-valueset', + status: 'draft', + url: 'http://hl7.org/fhir/us/minimal/ValueSet/example-valueset', + contained: [ + { + resourceType: 'CodeSystem', + id: 'example-codesystem', + name: 'ExampleCodesystem', + url: 'http://example.org/codesystem', + content: 'complete', + concept: [{ code: 'example-code-1', display: 'Example Code 1' }] + } + ], + compose: { + include: [ + { + system: 'http://example.org/codesystem', + _system: { + extension: [ + { + url: 'http://hl7.org/fhir/StructureDefinition/valueset-system', + valueCanonical: '#example-codesystem' + } + ] + } + } + ] + } + }); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + }); + it('should not use a contained resource created on the value set as a component system when that resource is not a CodeSystem', () => { // ValueSet: ExampleValueset // Id: example-valueset diff --git a/test/import/FSHImporter.Profile.test.ts b/test/import/FSHImporter.Profile.test.ts index d7e3d3a41..60e079647 100644 --- a/test/import/FSHImporter.Profile.test.ts +++ b/test/import/FSHImporter.Profile.test.ts @@ -1336,6 +1336,32 @@ describe('FSHImporter', () => { assertAssignmentRule(profile.rules[0], 'basedOn', expectedReference); }); + // the following test currently fails. for it to work, one of the following needs to happen: + // 1. the lexer rule for CODE is modified so that the system part (before the #) is restricted to a smaller set of characters. + // importantly, it would need to prohibit ( so that it wouldn't match Reference( + // 2. the importer is modified so that if it reads a code where the system part is "Reference(", it instead creates a FshReference + // any place that allows a Reference with a fragment also allows a code, so type-wise, you're safe. + // it does mean that weird things could happen in places that specifically expect a code and not a Reference, though. + // the first one is probably reasonable, seeing as a system should always be a name, id, or url, or alias. + // -- UPDATE + // applied solution 2, test now passes + it('should parse assigned value Reference rule with a fragment', () => { + const input = leftAlign(` + + Profile: ObservationProfile + Parent: Observation + * basedOn = Reference(#contained-thing) + `); + const result = importSingleText(input); + const profile = result.profiles.get('ObservationProfile'); + expect(profile.rules).toHaveLength(1); + + const expectedReference = new FshReference('#contained-thing') + .withLocation([5, 13, 5, 39]) + .withFile(''); + assertAssignmentRule(profile.rules[0], 'basedOn', expectedReference); + }); + it('should log an error when an assigned value Reference rule has a choice of references', () => { const input = leftAlign(` @@ -1443,6 +1469,25 @@ describe('FSHImporter', () => { assertAssignmentRule(profile.rules[0], 'code.coding.system', expectedCanonical); }); + // the following test current fails. the reasons are the same as the test on line 1346. + // -- UPDATE + // applied solution 2, test now passes + it('should parse assigned value using Canonical with a fragment', () => { + const input = leftAlign(` + Profile: MyActivityDefinition + Parent: ActivityDefinition + * library = Canonical(#my-library) + `); + + const result = importSingleText(input); + const profile = result.profiles.get('MyActivityDefinition'); + expect(profile.rules).toHaveLength(1); + const expectedCanonical = new FshCanonical('#my-library') + .withLocation([4, 13, 4, 34]) + .withFile(''); + assertAssignmentRule(profile.rules[0], 'library', expectedCanonical); + }); + it('should log an error when an assigned value Canonical rule has a choice of canonicals', () => { const input = leftAlign(` CodeSystem: Example diff --git a/test/import/FSHImporter.ValueSet.test.ts b/test/import/FSHImporter.ValueSet.test.ts index b424f8101..99d04b8fb 100644 --- a/test/import/FSHImporter.ValueSet.test.ts +++ b/test/import/FSHImporter.ValueSet.test.ts @@ -369,6 +369,51 @@ describe('FSHImporter', () => { expect(valueSet.sourceInfo.file).toBe('Zoo.fsh'); }); + it('should parse a value set that includes all codes from a contained codesystem specified with a referential fragment', () => { + const input = leftAlign(` + ValueSet: ZooVS + * codes from system #zoo-codes // imagine we have a contained code system with id zoo-codes + `); + const result = importSingleText(input, 'Zoo.fsh'); + expect(result.valueSets.size).toBe(1); + const valueSet = result.valueSets.get('ZooVS'); + expect(valueSet.rules.length).toBe(1); + assertValueSetFilterComponent(valueSet.rules[0], '#zoo-codes', undefined, []); + expect(valueSet.sourceInfo.location).toEqual({ + startLine: 2, + startColumn: 1, + endLine: 3, + endColumn: 30 + }); + expect(valueSet.sourceInfo.file).toBe('Zoo.fsh'); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + }); + + it('should parse a value set that includes all codes from contained value sets specified with referential fragments', () => { + const input = leftAlign(` + ValueSet: ZooVS + * codes from valueset #primate-vs and #ursine-vs // imagine we have a contained valuesets with these ids + `); + const result = importSingleText(input, 'Zoo.fsh'); + expect(result.valueSets.size).toBe(1); + const valueSet = result.valueSets.get('ZooVS'); + expect(valueSet.rules.length).toBe(1); + assertValueSetFilterComponent( + valueSet.rules[0], + undefined, + ['#primate-vs', '#ursine-vs'], + [] + ); + expect(valueSet.sourceInfo.location).toEqual({ + startLine: 2, + startColumn: 1, + endLine: 3, + endColumn: 48 + }); + expect(valueSet.sourceInfo.file).toBe('Zoo.fsh'); + expect(loggerSpy.getAllMessages('error')).toHaveLength(0); + }); + it('should ignore optional include for filter components', () => { const input = leftAlign(` ValueSet: ZooVS