diff --git a/README.md b/README.md index fd1dddd..7ad63eb 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,12 @@ Generics, interface composition, declarative forwarding, automatic relationship materialization, and first-class bundles are intentionally absent from v1. +Local workspace fragments, source-editing APIs, and generated package contracts +are documented in [QX bindings and tooling](../docs/QX_BINDINGS_AND_TOOLING.md). +`quixos-resource-compile --schema-out` exports the portable generator input; +`quixos-codegen-ts` is the first backend. `quixos-qx` provides parse, lint, +format, and nominal-atom scaffold commands. + ## Repository locks Every workspace, interface, and package repository carries a `quixos.lock`. diff --git a/flake.nix b/flake.nix index 173c303..d6695f8 100644 --- a/flake.nix +++ b/flake.nix @@ -46,6 +46,8 @@ esbuild dist/src/resource-lock/cli.js \ --bundle --platform=node --target=node24 --format=esm \ --outfile=quixos-lock-check.mjs + esbuild dist/src/bindings/cli.js --bundle --platform=node --target=node24 --format=esm --outfile=quixos-codegen-ts.mjs + esbuild dist/src/capability-language/tool-cli.js --bundle --platform=node --target=node24 --format=esm --outfile=quixos-qx.mjs runHook postBuild ''; doCheck = true; @@ -62,6 +64,10 @@ cp --reflink=auto --recursive dist "$out/dist" cp package.json "$out/package.json" mkdir -p "$out/bin" + for tool in quixos-codegen-ts quixos-qx; do + printf '#!/bin/sh\nexec ${pkgs.nodejs_24}/bin/node "%s/libexec/quixos-protocol/%s.mjs" "$@"\n' "$out" "$tool" > "$out/bin/$tool" + chmod +x "$out/bin/$tool" + done cat > "$out/bin/quixos-descriptor-check" < skip; -BLOCK_COMMENT: '/*' .*? '*/' -> skip; -WS: [ \t\r\n]+ -> skip; +LINE_COMMENT: '//' ~[\r\n]* -> channel(HIDDEN); +BLOCK_COMMENT: '/*' .*? '*/' -> channel(HIDDEN); +WS: [ \t\r\n]+ -> channel(HIDDEN); diff --git a/package.json b/package.json index 6e9872a..f16822c 100644 --- a/package.json +++ b/package.json @@ -5,13 +5,16 @@ "packageManager": "yarn@4.18.0", "type": "module", "bin": { + "quixos-qx": "dist/src/capability-language/tool-cli.js", + "quixos-codegen-ts": "dist/src/bindings/cli.js", "quixos-capability-compile": "dist/src/capability-language/cli.js", - "quixos-resource-compile": "dist/src/capability-language/resource-cli.js", - "quixos-workspace-compile": "dist/src/capability-language/workspace-cli.js", "quixos-descriptor-check": "dist/src/descriptor-check.js", - "quixos-lock-check": "dist/src/resource-lock/cli.js" + "quixos-lock-check": "dist/src/resource-lock/cli.js", + "quixos-resource-compile": "dist/src/capability-language/resource-cli.js", + "quixos-workspace-compile": "dist/src/capability-language/workspace-cli.js" }, "exports": { + "./bindings": "./dist/src/bindings/index.js", "./capability-model": "./dist/src/capability-model/index.js", "./capability-language": "./dist/src/capability-language/index.js", "./resource-lock": "./dist/src/resource-lock/index.js", diff --git a/src/bindings/cli.ts b/src/bindings/cli.ts new file mode 100644 index 0000000..f3a0c01 --- /dev/null +++ b/src/bindings/cli.ts @@ -0,0 +1,13 @@ +#!/usr/bin/env node +import { readFile, writeFile } from "node:fs/promises"; +import { generateTypeScriptBindings } from "./index.js"; + +const main = async () => { + const [schema, revision, output, options, ...rest] = process.argv.slice(2); + if (!schema || !revision || !output || rest.length) throw new Error( + "usage: quixos-codegen-ts SCHEMA.json PACKAGE_REVISION OUTPUT.ts [OPTIONS.json]"); + const generated = generateTypeScriptBindings(JSON.parse(await readFile(schema, "utf8")), revision, + options ? JSON.parse(await readFile(options, "utf8")) : {}); + await writeFile(output, generated); +}; +main().catch((error: unknown) => { console.error(error instanceof Error ? error.message : error); process.exitCode = 1; }); diff --git a/src/bindings/index.ts b/src/bindings/index.ts new file mode 100644 index 0000000..9617349 --- /dev/null +++ b/src/bindings/index.ts @@ -0,0 +1,128 @@ +import type { InterfaceRevision, PackageRevision, ValueType, DependencyPort } from "../capability-model/types.js"; +import type { CompiledCapabilityResourceRepository } from "../capability-language/assembly.js"; + +/** Portable generator input. New backends consume this instead of the parser or TS runtime. */ +export type BindingSchema = { + format: "quixos-bindings"; + version: 1; + interfaces: InterfaceRevision[]; + packages: PackageRevision[]; +}; +export const bindingSchema = (compiled: CompiledCapabilityResourceRepository): BindingSchema => ({ + format: "quixos-bindings", version: 1, + interfaces: compiled.resources.flatMap((node) => node.resource.kind === "interface" ? [node.resource.revision] : []), + packages: compiled.resources.flatMap((node) => node.resource.kind === "package" ? [node.resource.revision] : []), +}); +export type TypeScriptBindingOptions = { + runtimeModule?: string; + /** Each export must implement MessageBinding, providing both TS type and wire codec. */ + messages?: Record; +}; +const q = JSON.stringify; +const object = (entries: [string, string][]) => `{ ${entries.map(([key, value]) => `${q(key)}: ${value}`).join("; ")} }`; +const unit = (type: ValueType) => type.kind === "builtin" && type.name === "unit"; + +export const generateTypeScriptBindings = ( + schema: BindingSchema, packageRevisionId: string, options: TypeScriptBindingOptions = {}, +) => { + if (schema.format !== "quixos-bindings" || schema.version !== 1) throw new Error("Unsupported binding schema version"); + const pkg = schema.packages.find((entry) => entry.revisionId === packageRevisionId); + if (!pkg) throw new Error(`Unknown package revision ${packageRevisionId}`); + const messages = new Map(); + const type = (value: ValueType): string => { + switch (value.kind) { + case "builtin": return value.name === "unit" ? "null" : "QxWatchHandle"; + case "scalar": return ({ bool: "boolean", bytes: "Uint8Array", string: "string", int64: "bigint", uint64: "bigint", + double: "number", int32: "number", uint32: "number" })[value.name]; + case "object-ref": return `QxObjectRef<${q(value.expectation.kind === "atom" ? `atom:${value.expectation.atomId}` : `interface:${value.expectation.interfaceRevisionId}`)}>`; + case "optional": return `(${type(value.value)} | null)`; + case "list": return `Array<${type(value.value)}>`; + case "message": { + if (!options.messages?.[value.descriptorId]) throw new Error(`Missing TypeScript message binding for ${value.descriptorId}`); + if (!messages.has(value.descriptorId)) messages.set(value.descriptorId, `message${messages.size}`); + return `BindingValue`; + } + } + }; + const ref = (target: { kind: "atom"; atomId: string } | { kind: "interface"; interfaceRevisionId: string }) => + `QxObjectRef<${q(target.kind === "atom" ? `atom:${target.atomId}` : `interface:${target.interfaceRevisionId}`)}>`; + const params = (input: ValueType) => unit(input) ? "" : `input: ${type(input)}`; + const port = (entry: DependencyPort): { type: string; spec: unknown } => { + const requirement = entry.requirement; + switch (requirement.kind) { + case "state": { + const methods = requirement.primitives.map((primitive): [string, string] => { + if (primitive === "read") return ["get", `() => Promise<${type(requirement.valueType)}>`]; + if (primitive === "write") return ["set", `(value: ${type(requirement.valueType)}) => Promise`]; + throw new Error(`State primitive ${primitive} is not supported by the TypeScript runtime binding yet`); + }); + return { type: object(methods), spec: { ...requirement, id: entry.id } }; + } + case "edge": { + const methods = requirement.primitives.map((primitive): [string, string] => { + if (primitive === "resolve") return [primitive, `() => Promise>`]; + if (primitive === "connect" || primitive === "disconnect") return [primitive, `(target: ${ref(requirement.target)}) => Promise`]; + throw new Error(`Edge primitive ${primitive} is not supported by the TypeScript runtime binding yet`); + }); + return { type: object(methods), spec: { kind: "edge", id: entry.id, primitives: requirement.primitives } }; + } + case "interface": { + const contract = schema.interfaces.find((candidate) => candidate.revisionId === requirement.interfaceRevisionId); + if (!contract) throw new Error(`Missing imported interface contract ${requirement.interfaceRevisionId}`); + // Streaming ports need a future streaming ABI; ordinary calls are fully typed today. + const operations = contract.members.flatMap((member) => member.operations.filter((operation) => operation.mode === "call") + .map((operation) => ({ ...operation, name: `${member.displayName}.${operation.displayName}` }))); + return { type: object(operations.map((operation) => [operation.name, `(${params(operation.inputType)}) => Promise<${type(operation.outputType)}>`])), + spec: { kind: "interface", id: entry.id, operations: Object.fromEntries(operations.map((operation) => [operation.name, operation])) } }; + } + case "constructor": { + const input = requirement.inputType; + if (!input) throw new Error(`Constructor port ${entry.id} needs an explicit input contract: add 'input TYPE' after ${requirement.atomId} in QX`); + return { type: object([["construct", `(${params(input)}) => Promise<${ref({ kind: "atom", atomId: requirement.atomId })}>`]]), + spec: { kind: "constructor", id: entry.id, inputType: input } }; + } + } + }; + const exports = [...pkg.exports].sort((a, b) => a.id < b.id ? -1 : a.id > b.id ? 1 : 0); + const names = new Set(); + const specs: Record = {}; + const contexts: [string, string][] = []; + const handlers: [string, string][] = []; + for (const entry of exports) { + if (names.has(entry.displayName)) throw new Error(`Duplicate export name ${entry.displayName}`); + names.add(entry.displayName); + const ports = entry.dependencyPorts.map((dependency) => ({ name: dependency.displayName, ...port(dependency) })); + if (new Set(ports.map((p) => p.name)).size !== ports.length) throw new Error(`Duplicate dependency name in ${entry.displayName}`); + const receiver = entry.kind === "constructor" ? ref({ kind: "atom", atomId: entry.constructsAtom }) : + entry.kind === "operation" && entry.receiverRequirement.kind === "exact-atom" ? + ref({ kind: "atom", atomId: entry.receiverRequirement.atomId }) : + entry.kind === "operation" && entry.receiverRequirement.kind === "all-interfaces" ? + `QxObjectRef<${entry.receiverRequirement.interfaceRevisionIds.map((id) => q(`interface:${id}`)).join(" | ") || "never"}>` : "string"; + contexts.push([entry.displayName, object([["objectId", receiver], ["input", type(entry.inputType)], + ["ports", object(ports.map((port) => [port.name, port.type]))]])]); + const event = entry.kind === "operation" ? entry.eventType : undefined; + const contextType = `Contexts[${q(entry.displayName)}]`; + const outputType = type(event ?? entry.outputType); + // Watch-start handlers produce events through the runtime's derived stream protocol. + handlers.push([entry.displayName, event ? `QxDerived<${contextType}, ${outputType}>` : + `QxHandler<${contextType}, ${outputType}>${entry.kind === "operation" && entry.mode === "call" ? ` | QxDerived<${contextType}, ${outputType}>` : ""}`]); + specs[entry.displayName] = { inputType: entry.inputType, outputType: entry.outputType, + ...(event ? { eventType: event } : {}), ports: Object.fromEntries(ports.map((port) => [port.name, port.spec])) }; + } + const imports = [...messages].map(([id, alias]) => { + const binding = options.messages![id]!; + if (!/^[A-Za-z_$][A-Za-z0-9_$]*$/.test(binding.export)) throw new Error(`Invalid message binding export ${binding.export}`); + return `import { ${binding.export} as ${alias} } from ${q(binding.module)};`; + }); + const signatures = `${object(contexts)} ${object(handlers)}`; + const typeImports = ["BindingValue", "QxObjectRef", "QxWatchHandle", "QxHandler", "QxDerived"].filter((name) => new RegExp(`\\b${name}\\b`).test(signatures)); + return `// Generated by quixos-codegen-ts. Do not edit. Binding ABI version 1.\n` + + `import { ${exports.length ? "bindQxHandler, " : ""}${[...typeImports, "QxHandlerSpec", "QxMessages"].map((name) => `type ${name}`).join(", ")} } from ${q(options.runtimeModule ?? "@quixos/camino-package-runtime")};\n` + + imports.join("\n") + `\nexport const packageRevisionId = ${q(pkg.revisionId)};\n` + + `export type Contexts = ${object(contexts)};\nexport type Implementation = ${object(handlers)};\n` + + `const messages = { ${[...messages].map(([id, alias]) => `${q(id)}: ${alias}`).join(", ")} } satisfies QxMessages;\n` + + `const specs = ${JSON.stringify(specs, null, 2)} satisfies Record;\n` + + `export const createRuntime = (implementation: Implementation) => ({\n packageRevisionId,\n exports: {\n` + + exports.map((entry) => ` ${q(entry.id)}: bindQxHandler(specs[${q(entry.displayName)}], implementation[${q(entry.displayName)}], messages),`).join("\n") + + `\n },\n});\n`; +}; diff --git a/src/capability-language/assembly.ts b/src/capability-language/assembly.ts index 41cf693..0b814e9 100644 --- a/src/capability-language/assembly.ts +++ b/src/capability-language/assembly.ts @@ -1,5 +1,6 @@ import { readFile } from "node:fs/promises"; import path from "node:path"; +import { loadQxSources, resolveQxSources } from "./source-loader.js"; import { capabilityId, compileWorkspaceRevision, @@ -286,6 +287,8 @@ export const compileWorkspaceRepository = async (options: { workspaceId?: string; workspaceRevisionId?: string; sourceRootCommit?: string; + /** An editor's proposed source snapshot; locks and dependency revisions remain exact. */ + readSource?: (name: string) => Promise; }): Promise => { const rootLockResult = await loadQuixosLock( path.join(options.rootDirectory, "quixos.lock"), @@ -303,10 +306,11 @@ export const compileWorkspaceRepository = async (options: { const nodes = await resolver.nodes(); const environment = environmentFor(directPairs, nodes); const workspacePath = path.join(options.rootDirectory, "workspace.qx"); - const workspaceSource = await readFile(workspacePath, "utf8"); - const compiled = compileCapabilitySource(workspaceSource, workspacePath, environment); + const sources = options.readSource ? await resolveQxSources(options.readSource) : await loadQxSources(options.rootDirectory); + const compiled = compileCapabilitySource(sources.source, workspacePath, environment); if (!compiled.ok) { - throw new Error(diagnosticsMessage("Workspace", compiled.diagnostics)); + throw new Error(diagnosticsMessage("Workspace", compiled.diagnostics.map((diagnostic) => + diagnostic.line > 0 ? { ...diagnostic, ...sources.originalPosition(diagnostic.line, diagnostic.column) } : diagnostic))); } assertImportsMatchLock(workspacePath, compiled.imports, rootLock.resources); const availableInterfaceIds = new Set( diff --git a/src/capability-language/generated/QuixosCapability.interp b/src/capability-language/generated/QuixosCapability.interp index 445a49b..f9a81a4 100644 --- a/src/capability-language/generated/QuixosCapability.interp +++ b/src/capability-language/generated/QuixosCapability.interp @@ -1,6 +1,7 @@ token literal names: null 'workspace' +'fragment' 'import' 'external' 'atom' @@ -13,6 +14,7 @@ null 'function' 'constructor' 'constructs' +'input' 'conform' 'as' 'bind' @@ -106,6 +108,7 @@ null token symbolic names: null WORKSPACE +FRAGMENT IMPORT EXTERNAL ATOM @@ -118,6 +121,7 @@ OPERATION FUNCTION CONSTRUCTOR CONSTRUCTS +INPUT CONFORM AS BIND @@ -210,6 +214,8 @@ WS rule names: document +fragmentDecl +sourceImportDecl workspaceDecl workspaceItem resourceImportDecl @@ -268,4 +274,4 @@ stringLiteral atn: -[4, 1, 102, 753, 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, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 3, 0, 122, 8, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 134, 8, 1, 10, 1, 12, 1, 137, 9, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 146, 8, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 3, 3, 158, 8, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 3, 6, 177, 8, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 3, 7, 185, 8, 7, 1, 7, 1, 7, 1, 8, 5, 8, 190, 8, 8, 10, 8, 12, 8, 193, 9, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 5, 8, 203, 8, 8, 10, 8, 12, 8, 206, 9, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 3, 9, 213, 8, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 5, 11, 238, 8, 11, 10, 11, 12, 11, 241, 9, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 3, 12, 264, 8, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 3, 13, 274, 8, 13, 1, 13, 1, 13, 5, 13, 278, 8, 13, 10, 13, 12, 13, 281, 9, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 3, 14, 309, 8, 14, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 315, 8, 15, 1, 16, 5, 16, 318, 8, 16, 10, 16, 12, 16, 321, 9, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 5, 16, 331, 8, 16, 10, 16, 12, 16, 334, 9, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 3, 17, 341, 8, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 3, 18, 354, 8, 18, 1, 18, 1, 18, 1, 18, 3, 18, 359, 8, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 3, 19, 372, 8, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 3, 20, 385, 8, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 400, 8, 23, 1, 23, 3, 23, 403, 8, 23, 1, 24, 1, 24, 1, 24, 5, 24, 408, 8, 24, 10, 24, 12, 24, 411, 9, 24, 1, 25, 1, 25, 1, 25, 5, 25, 416, 8, 25, 10, 25, 12, 25, 419, 9, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 3, 26, 458, 8, 26, 1, 27, 1, 27, 1, 27, 1, 27, 5, 27, 464, 8, 27, 10, 27, 12, 27, 467, 9, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 3, 30, 478, 8, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 3, 31, 492, 8, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 502, 8, 32, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 3, 34, 520, 8, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 530, 8, 35, 10, 35, 12, 35, 533, 9, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 36, 3, 36, 541, 8, 36, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 3, 40, 578, 8, 40, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 3, 41, 597, 8, 41, 3, 41, 599, 8, 41, 1, 42, 1, 42, 1, 43, 1, 43, 1, 44, 1, 44, 1, 44, 5, 44, 608, 8, 44, 10, 44, 12, 44, 611, 9, 44, 1, 44, 1, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 625, 8, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 641, 8, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 655, 8, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 665, 8, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 3, 46, 674, 8, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 3, 47, 703, 8, 47, 1, 48, 1, 48, 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 3, 50, 717, 8, 50, 1, 51, 1, 51, 1, 51, 1, 51, 5, 51, 723, 8, 51, 10, 51, 12, 51, 726, 9, 51, 3, 51, 728, 8, 51, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 1, 53, 5, 53, 740, 8, 53, 10, 53, 12, 53, 743, 9, 53, 3, 53, 745, 8, 53, 1, 53, 1, 53, 1, 54, 1, 54, 1, 55, 1, 55, 1, 55, 0, 0, 56, 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, 0, 7, 1, 0, 53, 57, 2, 0, 48, 52, 54, 55, 2, 0, 48, 49, 54, 55, 2, 0, 50, 52, 54, 55, 1, 0, 72, 79, 1, 0, 60, 63, 2, 0, 32, 32, 98, 98, 783, 0, 121, 1, 0, 0, 0, 2, 123, 1, 0, 0, 0, 4, 145, 1, 0, 0, 0, 6, 157, 1, 0, 0, 0, 8, 159, 1, 0, 0, 0, 10, 166, 1, 0, 0, 0, 12, 176, 1, 0, 0, 0, 14, 178, 1, 0, 0, 0, 16, 191, 1, 0, 0, 0, 18, 212, 1, 0, 0, 0, 20, 214, 1, 0, 0, 0, 22, 229, 1, 0, 0, 0, 24, 263, 1, 0, 0, 0, 26, 265, 1, 0, 0, 0, 28, 308, 1, 0, 0, 0, 30, 314, 1, 0, 0, 0, 32, 319, 1, 0, 0, 0, 34, 340, 1, 0, 0, 0, 36, 342, 1, 0, 0, 0, 38, 362, 1, 0, 0, 0, 40, 375, 1, 0, 0, 0, 42, 388, 1, 0, 0, 0, 44, 391, 1, 0, 0, 0, 46, 402, 1, 0, 0, 0, 48, 404, 1, 0, 0, 0, 50, 412, 1, 0, 0, 0, 52, 457, 1, 0, 0, 0, 54, 459, 1, 0, 0, 0, 56, 470, 1, 0, 0, 0, 58, 472, 1, 0, 0, 0, 60, 477, 1, 0, 0, 0, 62, 479, 1, 0, 0, 0, 64, 501, 1, 0, 0, 0, 66, 503, 1, 0, 0, 0, 68, 512, 1, 0, 0, 0, 70, 523, 1, 0, 0, 0, 72, 540, 1, 0, 0, 0, 74, 542, 1, 0, 0, 0, 76, 556, 1, 0, 0, 0, 78, 562, 1, 0, 0, 0, 80, 577, 1, 0, 0, 0, 82, 598, 1, 0, 0, 0, 84, 600, 1, 0, 0, 0, 86, 602, 1, 0, 0, 0, 88, 604, 1, 0, 0, 0, 90, 664, 1, 0, 0, 0, 92, 666, 1, 0, 0, 0, 94, 702, 1, 0, 0, 0, 96, 704, 1, 0, 0, 0, 98, 706, 1, 0, 0, 0, 100, 716, 1, 0, 0, 0, 102, 718, 1, 0, 0, 0, 104, 731, 1, 0, 0, 0, 106, 735, 1, 0, 0, 0, 108, 748, 1, 0, 0, 0, 110, 750, 1, 0, 0, 0, 112, 113, 3, 2, 1, 0, 113, 114, 5, 0, 0, 1, 114, 122, 1, 0, 0, 0, 115, 116, 3, 16, 8, 0, 116, 117, 5, 0, 0, 1, 117, 122, 1, 0, 0, 0, 118, 119, 3, 32, 16, 0, 119, 120, 5, 0, 0, 1, 120, 122, 1, 0, 0, 0, 121, 112, 1, 0, 0, 0, 121, 115, 1, 0, 0, 0, 121, 118, 1, 0, 0, 0, 122, 1, 1, 0, 0, 0, 123, 124, 5, 1, 0, 0, 124, 125, 3, 108, 54, 0, 125, 126, 5, 36, 0, 0, 126, 127, 3, 110, 55, 0, 127, 128, 5, 35, 0, 0, 128, 129, 3, 110, 55, 0, 129, 130, 5, 34, 0, 0, 130, 131, 3, 110, 55, 0, 131, 135, 5, 88, 0, 0, 132, 134, 3, 4, 2, 0, 133, 132, 1, 0, 0, 0, 134, 137, 1, 0, 0, 0, 135, 133, 1, 0, 0, 0, 135, 136, 1, 0, 0, 0, 136, 138, 1, 0, 0, 0, 137, 135, 1, 0, 0, 0, 138, 139, 5, 89, 0, 0, 139, 3, 1, 0, 0, 0, 140, 146, 3, 14, 7, 0, 141, 146, 3, 6, 3, 0, 142, 146, 3, 58, 29, 0, 143, 146, 3, 70, 35, 0, 144, 146, 3, 92, 46, 0, 145, 140, 1, 0, 0, 0, 145, 141, 1, 0, 0, 0, 145, 142, 1, 0, 0, 0, 145, 143, 1, 0, 0, 0, 145, 144, 1, 0, 0, 0, 146, 5, 1, 0, 0, 0, 147, 148, 5, 2, 0, 0, 148, 149, 5, 5, 0, 0, 149, 150, 3, 108, 54, 0, 150, 151, 5, 85, 0, 0, 151, 158, 1, 0, 0, 0, 152, 153, 5, 2, 0, 0, 153, 154, 5, 7, 0, 0, 154, 155, 3, 108, 54, 0, 155, 156, 5, 85, 0, 0, 156, 158, 1, 0, 0, 0, 157, 147, 1, 0, 0, 0, 157, 152, 1, 0, 0, 0, 158, 7, 1, 0, 0, 0, 159, 160, 5, 3, 0, 0, 160, 161, 5, 4, 0, 0, 161, 162, 3, 108, 54, 0, 162, 163, 5, 36, 0, 0, 163, 164, 3, 110, 55, 0, 164, 165, 5, 85, 0, 0, 165, 9, 1, 0, 0, 0, 166, 167, 5, 3, 0, 0, 167, 168, 5, 5, 0, 0, 168, 169, 3, 108, 54, 0, 169, 170, 5, 35, 0, 0, 170, 171, 3, 110, 55, 0, 171, 172, 5, 85, 0, 0, 172, 11, 1, 0, 0, 0, 173, 177, 3, 6, 3, 0, 174, 177, 3, 8, 4, 0, 175, 177, 3, 10, 5, 0, 176, 173, 1, 0, 0, 0, 176, 174, 1, 0, 0, 0, 176, 175, 1, 0, 0, 0, 177, 13, 1, 0, 0, 0, 178, 179, 5, 4, 0, 0, 179, 180, 3, 108, 54, 0, 180, 181, 5, 36, 0, 0, 181, 184, 3, 110, 55, 0, 182, 183, 5, 37, 0, 0, 183, 185, 3, 110, 55, 0, 184, 182, 1, 0, 0, 0, 184, 185, 1, 0, 0, 0, 185, 186, 1, 0, 0, 0, 186, 187, 5, 85, 0, 0, 187, 15, 1, 0, 0, 0, 188, 190, 3, 12, 6, 0, 189, 188, 1, 0, 0, 0, 190, 193, 1, 0, 0, 0, 191, 189, 1, 0, 0, 0, 191, 192, 1, 0, 0, 0, 192, 194, 1, 0, 0, 0, 193, 191, 1, 0, 0, 0, 194, 195, 5, 5, 0, 0, 195, 196, 3, 108, 54, 0, 196, 197, 5, 36, 0, 0, 197, 198, 3, 110, 55, 0, 198, 199, 5, 35, 0, 0, 199, 200, 3, 110, 55, 0, 200, 204, 5, 88, 0, 0, 201, 203, 3, 18, 9, 0, 202, 201, 1, 0, 0, 0, 203, 206, 1, 0, 0, 0, 204, 202, 1, 0, 0, 0, 204, 205, 1, 0, 0, 0, 205, 207, 1, 0, 0, 0, 206, 204, 1, 0, 0, 0, 207, 208, 5, 89, 0, 0, 208, 17, 1, 0, 0, 0, 209, 213, 3, 22, 11, 0, 210, 213, 3, 26, 13, 0, 211, 213, 3, 20, 10, 0, 212, 209, 1, 0, 0, 0, 212, 210, 1, 0, 0, 0, 212, 211, 1, 0, 0, 0, 213, 19, 1, 0, 0, 0, 214, 215, 5, 10, 0, 0, 215, 216, 3, 108, 54, 0, 216, 217, 5, 36, 0, 0, 217, 218, 3, 110, 55, 0, 218, 219, 5, 84, 0, 0, 219, 220, 3, 94, 47, 0, 220, 221, 5, 83, 0, 0, 221, 222, 3, 94, 47, 0, 222, 223, 5, 88, 0, 0, 223, 224, 5, 53, 0, 0, 224, 225, 5, 36, 0, 0, 225, 226, 3, 110, 55, 0, 226, 227, 5, 85, 0, 0, 227, 228, 5, 89, 0, 0, 228, 21, 1, 0, 0, 0, 229, 230, 5, 8, 0, 0, 230, 231, 3, 108, 54, 0, 231, 232, 5, 36, 0, 0, 232, 233, 3, 110, 55, 0, 233, 234, 5, 84, 0, 0, 234, 235, 3, 94, 47, 0, 235, 239, 5, 88, 0, 0, 236, 238, 3, 24, 12, 0, 237, 236, 1, 0, 0, 0, 238, 241, 1, 0, 0, 0, 239, 237, 1, 0, 0, 0, 239, 240, 1, 0, 0, 0, 240, 242, 1, 0, 0, 0, 241, 239, 1, 0, 0, 0, 242, 243, 5, 89, 0, 0, 243, 23, 1, 0, 0, 0, 244, 245, 5, 43, 0, 0, 245, 246, 5, 36, 0, 0, 246, 247, 3, 110, 55, 0, 247, 248, 5, 85, 0, 0, 248, 264, 1, 0, 0, 0, 249, 250, 5, 44, 0, 0, 250, 251, 5, 36, 0, 0, 251, 252, 3, 110, 55, 0, 252, 253, 5, 85, 0, 0, 253, 264, 1, 0, 0, 0, 254, 255, 5, 45, 0, 0, 255, 256, 5, 46, 0, 0, 256, 257, 5, 36, 0, 0, 257, 258, 3, 110, 55, 0, 258, 259, 5, 47, 0, 0, 259, 260, 5, 36, 0, 0, 260, 261, 3, 110, 55, 0, 261, 262, 5, 85, 0, 0, 262, 264, 1, 0, 0, 0, 263, 244, 1, 0, 0, 0, 263, 249, 1, 0, 0, 0, 263, 254, 1, 0, 0, 0, 264, 25, 1, 0, 0, 0, 265, 266, 5, 9, 0, 0, 266, 267, 3, 108, 54, 0, 267, 268, 5, 36, 0, 0, 268, 269, 3, 110, 55, 0, 269, 270, 5, 84, 0, 0, 270, 271, 3, 98, 49, 0, 271, 273, 3, 30, 15, 0, 272, 274, 5, 64, 0, 0, 273, 272, 1, 0, 0, 0, 273, 274, 1, 0, 0, 0, 274, 275, 1, 0, 0, 0, 275, 279, 5, 88, 0, 0, 276, 278, 3, 28, 14, 0, 277, 276, 1, 0, 0, 0, 278, 281, 1, 0, 0, 0, 279, 277, 1, 0, 0, 0, 279, 280, 1, 0, 0, 0, 280, 282, 1, 0, 0, 0, 281, 279, 1, 0, 0, 0, 282, 283, 5, 89, 0, 0, 283, 27, 1, 0, 0, 0, 284, 285, 5, 50, 0, 0, 285, 286, 5, 36, 0, 0, 286, 287, 3, 110, 55, 0, 287, 288, 5, 85, 0, 0, 288, 309, 1, 0, 0, 0, 289, 290, 5, 51, 0, 0, 290, 291, 5, 36, 0, 0, 291, 292, 3, 110, 55, 0, 292, 293, 5, 85, 0, 0, 293, 309, 1, 0, 0, 0, 294, 295, 5, 52, 0, 0, 295, 296, 5, 36, 0, 0, 296, 297, 3, 110, 55, 0, 297, 298, 5, 85, 0, 0, 298, 309, 1, 0, 0, 0, 299, 300, 5, 45, 0, 0, 300, 301, 5, 46, 0, 0, 301, 302, 5, 36, 0, 0, 302, 303, 3, 110, 55, 0, 303, 304, 5, 47, 0, 0, 304, 305, 5, 36, 0, 0, 305, 306, 3, 110, 55, 0, 306, 307, 5, 85, 0, 0, 307, 309, 1, 0, 0, 0, 308, 284, 1, 0, 0, 0, 308, 289, 1, 0, 0, 0, 308, 294, 1, 0, 0, 0, 308, 299, 1, 0, 0, 0, 309, 29, 1, 0, 0, 0, 310, 311, 5, 4, 0, 0, 311, 315, 3, 108, 54, 0, 312, 313, 5, 5, 0, 0, 313, 315, 3, 108, 54, 0, 314, 310, 1, 0, 0, 0, 314, 312, 1, 0, 0, 0, 315, 31, 1, 0, 0, 0, 316, 318, 3, 12, 6, 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, 322, 1, 0, 0, 0, 321, 319, 1, 0, 0, 0, 322, 323, 5, 7, 0, 0, 323, 324, 3, 108, 54, 0, 324, 325, 5, 36, 0, 0, 325, 326, 3, 110, 55, 0, 326, 327, 5, 35, 0, 0, 327, 328, 3, 110, 55, 0, 328, 332, 5, 88, 0, 0, 329, 331, 3, 34, 17, 0, 330, 329, 1, 0, 0, 0, 331, 334, 1, 0, 0, 0, 332, 330, 1, 0, 0, 0, 332, 333, 1, 0, 0, 0, 333, 335, 1, 0, 0, 0, 334, 332, 1, 0, 0, 0, 335, 336, 5, 89, 0, 0, 336, 33, 1, 0, 0, 0, 337, 341, 3, 36, 18, 0, 338, 341, 3, 38, 19, 0, 339, 341, 3, 40, 20, 0, 340, 337, 1, 0, 0, 0, 340, 338, 1, 0, 0, 0, 340, 339, 1, 0, 0, 0, 341, 35, 1, 0, 0, 0, 342, 343, 5, 10, 0, 0, 343, 344, 3, 108, 54, 0, 344, 345, 5, 36, 0, 0, 345, 346, 3, 110, 55, 0, 346, 347, 5, 84, 0, 0, 347, 348, 3, 94, 47, 0, 348, 349, 5, 83, 0, 0, 349, 350, 3, 94, 47, 0, 350, 351, 5, 38, 0, 0, 351, 353, 3, 44, 22, 0, 352, 354, 3, 42, 21, 0, 353, 352, 1, 0, 0, 0, 353, 354, 1, 0, 0, 0, 354, 355, 1, 0, 0, 0, 355, 356, 5, 40, 0, 0, 356, 358, 3, 46, 23, 0, 357, 359, 3, 50, 25, 0, 358, 357, 1, 0, 0, 0, 358, 359, 1, 0, 0, 0, 359, 360, 1, 0, 0, 0, 360, 361, 5, 85, 0, 0, 361, 37, 1, 0, 0, 0, 362, 363, 5, 11, 0, 0, 363, 364, 3, 108, 54, 0, 364, 365, 5, 36, 0, 0, 365, 366, 3, 110, 55, 0, 366, 367, 5, 84, 0, 0, 367, 368, 3, 94, 47, 0, 368, 369, 5, 83, 0, 0, 369, 371, 3, 94, 47, 0, 370, 372, 3, 50, 25, 0, 371, 370, 1, 0, 0, 0, 371, 372, 1, 0, 0, 0, 372, 373, 1, 0, 0, 0, 373, 374, 5, 85, 0, 0, 374, 39, 1, 0, 0, 0, 375, 376, 5, 12, 0, 0, 376, 377, 3, 108, 54, 0, 377, 378, 5, 36, 0, 0, 378, 379, 3, 110, 55, 0, 379, 380, 5, 13, 0, 0, 380, 381, 3, 108, 54, 0, 381, 382, 5, 84, 0, 0, 382, 384, 3, 94, 47, 0, 383, 385, 3, 50, 25, 0, 384, 383, 1, 0, 0, 0, 384, 385, 1, 0, 0, 0, 385, 386, 1, 0, 0, 0, 386, 387, 5, 85, 0, 0, 387, 41, 1, 0, 0, 0, 388, 389, 5, 39, 0, 0, 389, 390, 3, 94, 47, 0, 390, 43, 1, 0, 0, 0, 391, 392, 7, 0, 0, 0, 392, 45, 1, 0, 0, 0, 393, 403, 5, 42, 0, 0, 394, 395, 5, 4, 0, 0, 395, 403, 3, 108, 54, 0, 396, 397, 5, 6, 0, 0, 397, 399, 5, 90, 0, 0, 398, 400, 3, 48, 24, 0, 399, 398, 1, 0, 0, 0, 399, 400, 1, 0, 0, 0, 400, 401, 1, 0, 0, 0, 401, 403, 5, 91, 0, 0, 402, 393, 1, 0, 0, 0, 402, 394, 1, 0, 0, 0, 402, 396, 1, 0, 0, 0, 403, 47, 1, 0, 0, 0, 404, 409, 3, 108, 54, 0, 405, 406, 5, 86, 0, 0, 406, 408, 3, 108, 54, 0, 407, 405, 1, 0, 0, 0, 408, 411, 1, 0, 0, 0, 409, 407, 1, 0, 0, 0, 409, 410, 1, 0, 0, 0, 410, 49, 1, 0, 0, 0, 411, 409, 1, 0, 0, 0, 412, 413, 5, 41, 0, 0, 413, 417, 5, 88, 0, 0, 414, 416, 3, 52, 26, 0, 415, 414, 1, 0, 0, 0, 416, 419, 1, 0, 0, 0, 417, 415, 1, 0, 0, 0, 417, 418, 1, 0, 0, 0, 418, 420, 1, 0, 0, 0, 419, 417, 1, 0, 0, 0, 420, 421, 5, 89, 0, 0, 421, 51, 1, 0, 0, 0, 422, 423, 5, 20, 0, 0, 423, 424, 3, 108, 54, 0, 424, 425, 5, 36, 0, 0, 425, 426, 3, 110, 55, 0, 426, 427, 5, 84, 0, 0, 427, 428, 3, 94, 47, 0, 428, 429, 3, 54, 27, 0, 429, 430, 5, 85, 0, 0, 430, 458, 1, 0, 0, 0, 431, 432, 5, 21, 0, 0, 432, 433, 3, 108, 54, 0, 433, 434, 5, 36, 0, 0, 434, 435, 3, 110, 55, 0, 435, 436, 5, 84, 0, 0, 436, 437, 3, 98, 49, 0, 437, 438, 3, 30, 15, 0, 438, 439, 3, 54, 27, 0, 439, 440, 5, 85, 0, 0, 440, 458, 1, 0, 0, 0, 441, 442, 5, 5, 0, 0, 442, 443, 3, 108, 54, 0, 443, 444, 5, 36, 0, 0, 444, 445, 3, 110, 55, 0, 445, 446, 5, 84, 0, 0, 446, 447, 3, 108, 54, 0, 447, 448, 5, 85, 0, 0, 448, 458, 1, 0, 0, 0, 449, 450, 5, 12, 0, 0, 450, 451, 3, 108, 54, 0, 451, 452, 5, 36, 0, 0, 452, 453, 3, 110, 55, 0, 453, 454, 5, 84, 0, 0, 454, 455, 3, 108, 54, 0, 455, 456, 5, 85, 0, 0, 456, 458, 1, 0, 0, 0, 457, 422, 1, 0, 0, 0, 457, 431, 1, 0, 0, 0, 457, 441, 1, 0, 0, 0, 457, 449, 1, 0, 0, 0, 458, 53, 1, 0, 0, 0, 459, 460, 5, 90, 0, 0, 460, 465, 3, 56, 28, 0, 461, 462, 5, 86, 0, 0, 462, 464, 3, 56, 28, 0, 463, 461, 1, 0, 0, 0, 464, 467, 1, 0, 0, 0, 465, 463, 1, 0, 0, 0, 465, 466, 1, 0, 0, 0, 466, 468, 1, 0, 0, 0, 467, 465, 1, 0, 0, 0, 468, 469, 5, 91, 0, 0, 469, 55, 1, 0, 0, 0, 470, 471, 7, 1, 0, 0, 471, 57, 1, 0, 0, 0, 472, 473, 5, 19, 0, 0, 473, 474, 3, 60, 30, 0, 474, 59, 1, 0, 0, 0, 475, 478, 3, 62, 31, 0, 476, 478, 3, 66, 33, 0, 477, 475, 1, 0, 0, 0, 477, 476, 1, 0, 0, 0, 478, 61, 1, 0, 0, 0, 479, 480, 5, 20, 0, 0, 480, 481, 3, 108, 54, 0, 481, 482, 5, 36, 0, 0, 482, 483, 3, 110, 55, 0, 483, 484, 5, 29, 0, 0, 484, 485, 3, 108, 54, 0, 485, 486, 5, 84, 0, 0, 486, 487, 3, 94, 47, 0, 487, 488, 5, 30, 0, 0, 488, 491, 3, 64, 32, 0, 489, 490, 5, 31, 0, 0, 490, 492, 3, 100, 50, 0, 491, 489, 1, 0, 0, 0, 491, 492, 1, 0, 0, 0, 492, 493, 1, 0, 0, 0, 493, 494, 5, 85, 0, 0, 494, 63, 1, 0, 0, 0, 495, 502, 5, 58, 0, 0, 496, 497, 5, 59, 0, 0, 497, 498, 5, 92, 0, 0, 498, 499, 3, 94, 47, 0, 499, 500, 5, 93, 0, 0, 500, 502, 1, 0, 0, 0, 501, 495, 1, 0, 0, 0, 501, 496, 1, 0, 0, 0, 502, 65, 1, 0, 0, 0, 503, 504, 5, 21, 0, 0, 504, 505, 3, 108, 54, 0, 505, 506, 5, 36, 0, 0, 506, 507, 3, 110, 55, 0, 507, 508, 5, 88, 0, 0, 508, 509, 3, 68, 34, 0, 509, 510, 3, 68, 34, 0, 510, 511, 5, 89, 0, 0, 511, 67, 1, 0, 0, 0, 512, 513, 3, 30, 15, 0, 513, 514, 5, 22, 0, 0, 514, 515, 3, 108, 54, 0, 515, 516, 5, 36, 0, 0, 516, 517, 3, 110, 55, 0, 517, 519, 3, 98, 49, 0, 518, 520, 5, 64, 0, 0, 519, 518, 1, 0, 0, 0, 519, 520, 1, 0, 0, 0, 520, 521, 1, 0, 0, 0, 521, 522, 5, 85, 0, 0, 522, 69, 1, 0, 0, 0, 523, 524, 5, 14, 0, 0, 524, 525, 3, 108, 54, 0, 525, 526, 5, 15, 0, 0, 526, 527, 3, 108, 54, 0, 527, 531, 5, 88, 0, 0, 528, 530, 3, 72, 36, 0, 529, 528, 1, 0, 0, 0, 530, 533, 1, 0, 0, 0, 531, 529, 1, 0, 0, 0, 531, 532, 1, 0, 0, 0, 532, 534, 1, 0, 0, 0, 533, 531, 1, 0, 0, 0, 534, 535, 5, 89, 0, 0, 535, 71, 1, 0, 0, 0, 536, 537, 5, 18, 0, 0, 537, 541, 3, 60, 30, 0, 538, 541, 3, 76, 38, 0, 539, 541, 3, 74, 37, 0, 540, 536, 1, 0, 0, 0, 540, 538, 1, 0, 0, 0, 540, 539, 1, 0, 0, 0, 541, 73, 1, 0, 0, 0, 542, 543, 5, 26, 0, 0, 543, 544, 3, 108, 54, 0, 544, 545, 5, 27, 0, 0, 545, 546, 5, 28, 0, 0, 546, 547, 5, 24, 0, 0, 547, 548, 5, 12, 0, 0, 548, 549, 3, 108, 54, 0, 549, 550, 5, 25, 0, 0, 550, 551, 5, 21, 0, 0, 551, 552, 3, 108, 54, 0, 552, 553, 5, 87, 0, 0, 553, 554, 3, 108, 54, 0, 554, 555, 5, 85, 0, 0, 555, 75, 1, 0, 0, 0, 556, 557, 5, 16, 0, 0, 557, 558, 3, 78, 39, 0, 558, 559, 5, 17, 0, 0, 559, 560, 3, 82, 41, 0, 560, 561, 5, 85, 0, 0, 561, 77, 1, 0, 0, 0, 562, 563, 3, 108, 54, 0, 563, 564, 5, 87, 0, 0, 564, 565, 3, 80, 40, 0, 565, 79, 1, 0, 0, 0, 566, 578, 3, 108, 54, 0, 567, 578, 5, 53, 0, 0, 568, 578, 5, 43, 0, 0, 569, 578, 5, 44, 0, 0, 570, 578, 5, 50, 0, 0, 571, 578, 5, 51, 0, 0, 572, 578, 5, 52, 0, 0, 573, 578, 5, 54, 0, 0, 574, 578, 5, 55, 0, 0, 575, 578, 5, 56, 0, 0, 576, 578, 5, 57, 0, 0, 577, 566, 1, 0, 0, 0, 577, 567, 1, 0, 0, 0, 577, 568, 1, 0, 0, 0, 577, 569, 1, 0, 0, 0, 577, 570, 1, 0, 0, 0, 577, 571, 1, 0, 0, 0, 577, 572, 1, 0, 0, 0, 577, 573, 1, 0, 0, 0, 577, 574, 1, 0, 0, 0, 577, 575, 1, 0, 0, 0, 577, 576, 1, 0, 0, 0, 578, 81, 1, 0, 0, 0, 579, 580, 5, 20, 0, 0, 580, 581, 3, 108, 54, 0, 581, 582, 5, 87, 0, 0, 582, 583, 3, 84, 42, 0, 583, 599, 1, 0, 0, 0, 584, 585, 5, 21, 0, 0, 585, 586, 3, 108, 54, 0, 586, 587, 5, 87, 0, 0, 587, 588, 3, 108, 54, 0, 588, 589, 5, 87, 0, 0, 589, 590, 3, 86, 43, 0, 590, 599, 1, 0, 0, 0, 591, 592, 5, 7, 0, 0, 592, 593, 3, 108, 54, 0, 593, 594, 5, 87, 0, 0, 594, 596, 3, 108, 54, 0, 595, 597, 3, 88, 44, 0, 596, 595, 1, 0, 0, 0, 596, 597, 1, 0, 0, 0, 597, 599, 1, 0, 0, 0, 598, 579, 1, 0, 0, 0, 598, 584, 1, 0, 0, 0, 598, 591, 1, 0, 0, 0, 599, 83, 1, 0, 0, 0, 600, 601, 7, 2, 0, 0, 601, 85, 1, 0, 0, 0, 602, 603, 7, 3, 0, 0, 603, 87, 1, 0, 0, 0, 604, 605, 5, 23, 0, 0, 605, 609, 5, 88, 0, 0, 606, 608, 3, 90, 45, 0, 607, 606, 1, 0, 0, 0, 608, 611, 1, 0, 0, 0, 609, 607, 1, 0, 0, 0, 609, 610, 1, 0, 0, 0, 610, 612, 1, 0, 0, 0, 611, 609, 1, 0, 0, 0, 612, 613, 5, 89, 0, 0, 613, 89, 1, 0, 0, 0, 614, 615, 3, 108, 54, 0, 615, 616, 5, 17, 0, 0, 616, 617, 5, 20, 0, 0, 617, 624, 3, 108, 54, 0, 618, 619, 5, 25, 0, 0, 619, 620, 5, 21, 0, 0, 620, 621, 3, 108, 54, 0, 621, 622, 5, 87, 0, 0, 622, 623, 3, 108, 54, 0, 623, 625, 1, 0, 0, 0, 624, 618, 1, 0, 0, 0, 624, 625, 1, 0, 0, 0, 625, 626, 1, 0, 0, 0, 626, 627, 5, 85, 0, 0, 627, 665, 1, 0, 0, 0, 628, 629, 3, 108, 54, 0, 629, 630, 5, 17, 0, 0, 630, 631, 5, 21, 0, 0, 631, 632, 3, 108, 54, 0, 632, 633, 5, 87, 0, 0, 633, 640, 3, 108, 54, 0, 634, 635, 5, 25, 0, 0, 635, 636, 5, 21, 0, 0, 636, 637, 3, 108, 54, 0, 637, 638, 5, 87, 0, 0, 638, 639, 3, 108, 54, 0, 639, 641, 1, 0, 0, 0, 640, 634, 1, 0, 0, 0, 640, 641, 1, 0, 0, 0, 641, 642, 1, 0, 0, 0, 642, 643, 5, 85, 0, 0, 643, 665, 1, 0, 0, 0, 644, 645, 3, 108, 54, 0, 645, 646, 5, 17, 0, 0, 646, 647, 5, 5, 0, 0, 647, 654, 3, 108, 54, 0, 648, 649, 5, 25, 0, 0, 649, 650, 5, 21, 0, 0, 650, 651, 3, 108, 54, 0, 651, 652, 5, 87, 0, 0, 652, 653, 3, 108, 54, 0, 653, 655, 1, 0, 0, 0, 654, 648, 1, 0, 0, 0, 654, 655, 1, 0, 0, 0, 655, 656, 1, 0, 0, 0, 656, 657, 5, 85, 0, 0, 657, 665, 1, 0, 0, 0, 658, 659, 3, 108, 54, 0, 659, 660, 5, 17, 0, 0, 660, 661, 5, 12, 0, 0, 661, 662, 3, 108, 54, 0, 662, 663, 5, 85, 0, 0, 663, 665, 1, 0, 0, 0, 664, 614, 1, 0, 0, 0, 664, 628, 1, 0, 0, 0, 664, 644, 1, 0, 0, 0, 664, 658, 1, 0, 0, 0, 665, 91, 1, 0, 0, 0, 666, 667, 5, 12, 0, 0, 667, 668, 3, 108, 54, 0, 668, 669, 5, 17, 0, 0, 669, 670, 3, 108, 54, 0, 670, 671, 5, 87, 0, 0, 671, 673, 3, 108, 54, 0, 672, 674, 3, 88, 44, 0, 673, 672, 1, 0, 0, 0, 673, 674, 1, 0, 0, 0, 674, 675, 1, 0, 0, 0, 675, 676, 5, 85, 0, 0, 676, 93, 1, 0, 0, 0, 677, 703, 3, 96, 48, 0, 678, 703, 5, 65, 0, 0, 679, 703, 5, 66, 0, 0, 680, 681, 5, 67, 0, 0, 681, 703, 3, 110, 55, 0, 682, 683, 5, 68, 0, 0, 683, 684, 5, 94, 0, 0, 684, 685, 3, 108, 54, 0, 685, 686, 5, 95, 0, 0, 686, 703, 1, 0, 0, 0, 687, 688, 5, 69, 0, 0, 688, 689, 5, 94, 0, 0, 689, 690, 3, 108, 54, 0, 690, 691, 5, 95, 0, 0, 691, 703, 1, 0, 0, 0, 692, 693, 5, 70, 0, 0, 693, 694, 5, 94, 0, 0, 694, 695, 3, 94, 47, 0, 695, 696, 5, 95, 0, 0, 696, 703, 1, 0, 0, 0, 697, 698, 5, 71, 0, 0, 698, 699, 5, 94, 0, 0, 699, 700, 3, 94, 47, 0, 700, 701, 5, 95, 0, 0, 701, 703, 1, 0, 0, 0, 702, 677, 1, 0, 0, 0, 702, 678, 1, 0, 0, 0, 702, 679, 1, 0, 0, 0, 702, 680, 1, 0, 0, 0, 702, 682, 1, 0, 0, 0, 702, 687, 1, 0, 0, 0, 702, 692, 1, 0, 0, 0, 702, 697, 1, 0, 0, 0, 703, 95, 1, 0, 0, 0, 704, 705, 7, 4, 0, 0, 705, 97, 1, 0, 0, 0, 706, 707, 7, 5, 0, 0, 707, 99, 1, 0, 0, 0, 708, 717, 3, 110, 55, 0, 709, 717, 5, 96, 0, 0, 710, 717, 5, 97, 0, 0, 711, 717, 5, 80, 0, 0, 712, 717, 5, 81, 0, 0, 713, 717, 5, 82, 0, 0, 714, 717, 3, 102, 51, 0, 715, 717, 3, 106, 53, 0, 716, 708, 1, 0, 0, 0, 716, 709, 1, 0, 0, 0, 716, 710, 1, 0, 0, 0, 716, 711, 1, 0, 0, 0, 716, 712, 1, 0, 0, 0, 716, 713, 1, 0, 0, 0, 716, 714, 1, 0, 0, 0, 716, 715, 1, 0, 0, 0, 717, 101, 1, 0, 0, 0, 718, 727, 5, 88, 0, 0, 719, 724, 3, 104, 52, 0, 720, 721, 5, 86, 0, 0, 721, 723, 3, 104, 52, 0, 722, 720, 1, 0, 0, 0, 723, 726, 1, 0, 0, 0, 724, 722, 1, 0, 0, 0, 724, 725, 1, 0, 0, 0, 725, 728, 1, 0, 0, 0, 726, 724, 1, 0, 0, 0, 727, 719, 1, 0, 0, 0, 727, 728, 1, 0, 0, 0, 728, 729, 1, 0, 0, 0, 729, 730, 5, 89, 0, 0, 730, 103, 1, 0, 0, 0, 731, 732, 3, 110, 55, 0, 732, 733, 5, 84, 0, 0, 733, 734, 3, 100, 50, 0, 734, 105, 1, 0, 0, 0, 735, 744, 5, 90, 0, 0, 736, 741, 3, 100, 50, 0, 737, 738, 5, 86, 0, 0, 738, 740, 3, 100, 50, 0, 739, 737, 1, 0, 0, 0, 740, 743, 1, 0, 0, 0, 741, 739, 1, 0, 0, 0, 741, 742, 1, 0, 0, 0, 742, 745, 1, 0, 0, 0, 743, 741, 1, 0, 0, 0, 744, 736, 1, 0, 0, 0, 744, 745, 1, 0, 0, 0, 745, 746, 1, 0, 0, 0, 746, 747, 5, 91, 0, 0, 747, 107, 1, 0, 0, 0, 748, 749, 7, 6, 0, 0, 749, 109, 1, 0, 0, 0, 750, 751, 5, 99, 0, 0, 751, 111, 1, 0, 0, 0, 49, 121, 135, 145, 157, 176, 184, 191, 204, 212, 239, 263, 273, 279, 308, 314, 319, 332, 340, 353, 358, 371, 384, 399, 402, 409, 417, 457, 465, 477, 491, 501, 519, 531, 540, 577, 596, 598, 609, 624, 640, 654, 664, 673, 702, 716, 724, 727, 741, 744] \ No newline at end of file +[4, 1, 104, 779, 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, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 3, 0, 129, 8, 0, 1, 1, 1, 1, 1, 1, 5, 1, 134, 8, 1, 10, 1, 12, 1, 137, 9, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 5, 3, 155, 8, 3, 10, 3, 12, 3, 158, 9, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 3, 4, 168, 8, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 180, 8, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 3, 8, 199, 8, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 3, 9, 207, 8, 9, 1, 9, 1, 9, 1, 10, 5, 10, 212, 8, 10, 10, 10, 12, 10, 215, 9, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 5, 10, 225, 8, 10, 10, 10, 12, 10, 228, 9, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 3, 11, 235, 8, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 5, 13, 260, 8, 13, 10, 13, 12, 13, 263, 9, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 3, 14, 286, 8, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 296, 8, 15, 1, 15, 1, 15, 5, 15, 300, 8, 15, 10, 15, 12, 15, 303, 9, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 331, 8, 16, 1, 17, 1, 17, 1, 17, 1, 17, 3, 17, 337, 8, 17, 1, 18, 5, 18, 340, 8, 18, 10, 18, 12, 18, 343, 9, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 5, 18, 353, 8, 18, 10, 18, 12, 18, 356, 9, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 3, 19, 363, 8, 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 3, 20, 376, 8, 20, 1, 20, 1, 20, 1, 20, 3, 20, 381, 8, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 3, 21, 394, 8, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 407, 8, 22, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 3, 25, 422, 8, 25, 1, 25, 3, 25, 425, 8, 25, 1, 26, 1, 26, 1, 26, 5, 26, 430, 8, 26, 10, 26, 12, 26, 433, 9, 26, 1, 27, 1, 27, 1, 27, 5, 27, 438, 8, 27, 10, 27, 12, 27, 441, 9, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 3, 28, 480, 8, 28, 1, 28, 1, 28, 3, 28, 484, 8, 28, 1, 29, 1, 29, 1, 29, 1, 29, 5, 29, 490, 8, 29, 10, 29, 12, 29, 493, 9, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 3, 32, 504, 8, 32, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 3, 33, 518, 8, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 3, 34, 528, 8, 34, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 3, 36, 546, 8, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 5, 37, 556, 8, 37, 10, 37, 12, 37, 559, 9, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 567, 8, 38, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 3, 42, 604, 8, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 3, 43, 623, 8, 43, 3, 43, 625, 8, 43, 1, 44, 1, 44, 1, 45, 1, 45, 1, 46, 1, 46, 1, 46, 5, 46, 634, 8, 46, 10, 46, 12, 46, 637, 9, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 3, 47, 651, 8, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 3, 47, 667, 8, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 3, 47, 681, 8, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 3, 47, 691, 8, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 700, 8, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, 49, 729, 8, 49, 1, 50, 1, 50, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 3, 52, 743, 8, 52, 1, 53, 1, 53, 1, 53, 1, 53, 5, 53, 749, 8, 53, 10, 53, 12, 53, 752, 9, 53, 3, 53, 754, 8, 53, 1, 53, 1, 53, 1, 54, 1, 54, 1, 54, 1, 54, 1, 55, 1, 55, 1, 55, 1, 55, 5, 55, 766, 8, 55, 10, 55, 12, 55, 769, 9, 55, 3, 55, 771, 8, 55, 1, 55, 1, 55, 1, 56, 1, 56, 1, 57, 1, 57, 1, 57, 0, 0, 58, 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, 0, 7, 1, 0, 55, 59, 2, 0, 50, 54, 56, 57, 2, 0, 50, 51, 56, 57, 2, 0, 52, 54, 56, 57, 1, 0, 74, 81, 1, 0, 62, 65, 2, 0, 34, 34, 100, 100, 811, 0, 128, 1, 0, 0, 0, 2, 130, 1, 0, 0, 0, 4, 140, 1, 0, 0, 0, 6, 144, 1, 0, 0, 0, 8, 167, 1, 0, 0, 0, 10, 179, 1, 0, 0, 0, 12, 181, 1, 0, 0, 0, 14, 188, 1, 0, 0, 0, 16, 198, 1, 0, 0, 0, 18, 200, 1, 0, 0, 0, 20, 213, 1, 0, 0, 0, 22, 234, 1, 0, 0, 0, 24, 236, 1, 0, 0, 0, 26, 251, 1, 0, 0, 0, 28, 285, 1, 0, 0, 0, 30, 287, 1, 0, 0, 0, 32, 330, 1, 0, 0, 0, 34, 336, 1, 0, 0, 0, 36, 341, 1, 0, 0, 0, 38, 362, 1, 0, 0, 0, 40, 364, 1, 0, 0, 0, 42, 384, 1, 0, 0, 0, 44, 397, 1, 0, 0, 0, 46, 410, 1, 0, 0, 0, 48, 413, 1, 0, 0, 0, 50, 424, 1, 0, 0, 0, 52, 426, 1, 0, 0, 0, 54, 434, 1, 0, 0, 0, 56, 483, 1, 0, 0, 0, 58, 485, 1, 0, 0, 0, 60, 496, 1, 0, 0, 0, 62, 498, 1, 0, 0, 0, 64, 503, 1, 0, 0, 0, 66, 505, 1, 0, 0, 0, 68, 527, 1, 0, 0, 0, 70, 529, 1, 0, 0, 0, 72, 538, 1, 0, 0, 0, 74, 549, 1, 0, 0, 0, 76, 566, 1, 0, 0, 0, 78, 568, 1, 0, 0, 0, 80, 582, 1, 0, 0, 0, 82, 588, 1, 0, 0, 0, 84, 603, 1, 0, 0, 0, 86, 624, 1, 0, 0, 0, 88, 626, 1, 0, 0, 0, 90, 628, 1, 0, 0, 0, 92, 630, 1, 0, 0, 0, 94, 690, 1, 0, 0, 0, 96, 692, 1, 0, 0, 0, 98, 728, 1, 0, 0, 0, 100, 730, 1, 0, 0, 0, 102, 732, 1, 0, 0, 0, 104, 742, 1, 0, 0, 0, 106, 744, 1, 0, 0, 0, 108, 757, 1, 0, 0, 0, 110, 761, 1, 0, 0, 0, 112, 774, 1, 0, 0, 0, 114, 776, 1, 0, 0, 0, 116, 117, 3, 6, 3, 0, 117, 118, 5, 0, 0, 1, 118, 129, 1, 0, 0, 0, 119, 120, 3, 20, 10, 0, 120, 121, 5, 0, 0, 1, 121, 129, 1, 0, 0, 0, 122, 123, 3, 36, 18, 0, 123, 124, 5, 0, 0, 1, 124, 129, 1, 0, 0, 0, 125, 126, 3, 2, 1, 0, 126, 127, 5, 0, 0, 1, 127, 129, 1, 0, 0, 0, 128, 116, 1, 0, 0, 0, 128, 119, 1, 0, 0, 0, 128, 122, 1, 0, 0, 0, 128, 125, 1, 0, 0, 0, 129, 1, 1, 0, 0, 0, 130, 131, 5, 2, 0, 0, 131, 135, 5, 90, 0, 0, 132, 134, 3, 8, 4, 0, 133, 132, 1, 0, 0, 0, 134, 137, 1, 0, 0, 0, 135, 133, 1, 0, 0, 0, 135, 136, 1, 0, 0, 0, 136, 138, 1, 0, 0, 0, 137, 135, 1, 0, 0, 0, 138, 139, 5, 91, 0, 0, 139, 3, 1, 0, 0, 0, 140, 141, 5, 3, 0, 0, 141, 142, 3, 114, 57, 0, 142, 143, 5, 87, 0, 0, 143, 5, 1, 0, 0, 0, 144, 145, 5, 1, 0, 0, 145, 146, 3, 112, 56, 0, 146, 147, 5, 38, 0, 0, 147, 148, 3, 114, 57, 0, 148, 149, 5, 37, 0, 0, 149, 150, 3, 114, 57, 0, 150, 151, 5, 36, 0, 0, 151, 152, 3, 114, 57, 0, 152, 156, 5, 90, 0, 0, 153, 155, 3, 8, 4, 0, 154, 153, 1, 0, 0, 0, 155, 158, 1, 0, 0, 0, 156, 154, 1, 0, 0, 0, 156, 157, 1, 0, 0, 0, 157, 159, 1, 0, 0, 0, 158, 156, 1, 0, 0, 0, 159, 160, 5, 91, 0, 0, 160, 7, 1, 0, 0, 0, 161, 168, 3, 4, 2, 0, 162, 168, 3, 18, 9, 0, 163, 168, 3, 10, 5, 0, 164, 168, 3, 62, 31, 0, 165, 168, 3, 74, 37, 0, 166, 168, 3, 96, 48, 0, 167, 161, 1, 0, 0, 0, 167, 162, 1, 0, 0, 0, 167, 163, 1, 0, 0, 0, 167, 164, 1, 0, 0, 0, 167, 165, 1, 0, 0, 0, 167, 166, 1, 0, 0, 0, 168, 9, 1, 0, 0, 0, 169, 170, 5, 3, 0, 0, 170, 171, 5, 6, 0, 0, 171, 172, 3, 112, 56, 0, 172, 173, 5, 87, 0, 0, 173, 180, 1, 0, 0, 0, 174, 175, 5, 3, 0, 0, 175, 176, 5, 8, 0, 0, 176, 177, 3, 112, 56, 0, 177, 178, 5, 87, 0, 0, 178, 180, 1, 0, 0, 0, 179, 169, 1, 0, 0, 0, 179, 174, 1, 0, 0, 0, 180, 11, 1, 0, 0, 0, 181, 182, 5, 4, 0, 0, 182, 183, 5, 5, 0, 0, 183, 184, 3, 112, 56, 0, 184, 185, 5, 38, 0, 0, 185, 186, 3, 114, 57, 0, 186, 187, 5, 87, 0, 0, 187, 13, 1, 0, 0, 0, 188, 189, 5, 4, 0, 0, 189, 190, 5, 6, 0, 0, 190, 191, 3, 112, 56, 0, 191, 192, 5, 37, 0, 0, 192, 193, 3, 114, 57, 0, 193, 194, 5, 87, 0, 0, 194, 15, 1, 0, 0, 0, 195, 199, 3, 10, 5, 0, 196, 199, 3, 12, 6, 0, 197, 199, 3, 14, 7, 0, 198, 195, 1, 0, 0, 0, 198, 196, 1, 0, 0, 0, 198, 197, 1, 0, 0, 0, 199, 17, 1, 0, 0, 0, 200, 201, 5, 5, 0, 0, 201, 202, 3, 112, 56, 0, 202, 203, 5, 38, 0, 0, 203, 206, 3, 114, 57, 0, 204, 205, 5, 39, 0, 0, 205, 207, 3, 114, 57, 0, 206, 204, 1, 0, 0, 0, 206, 207, 1, 0, 0, 0, 207, 208, 1, 0, 0, 0, 208, 209, 5, 87, 0, 0, 209, 19, 1, 0, 0, 0, 210, 212, 3, 16, 8, 0, 211, 210, 1, 0, 0, 0, 212, 215, 1, 0, 0, 0, 213, 211, 1, 0, 0, 0, 213, 214, 1, 0, 0, 0, 214, 216, 1, 0, 0, 0, 215, 213, 1, 0, 0, 0, 216, 217, 5, 6, 0, 0, 217, 218, 3, 112, 56, 0, 218, 219, 5, 38, 0, 0, 219, 220, 3, 114, 57, 0, 220, 221, 5, 37, 0, 0, 221, 222, 3, 114, 57, 0, 222, 226, 5, 90, 0, 0, 223, 225, 3, 22, 11, 0, 224, 223, 1, 0, 0, 0, 225, 228, 1, 0, 0, 0, 226, 224, 1, 0, 0, 0, 226, 227, 1, 0, 0, 0, 227, 229, 1, 0, 0, 0, 228, 226, 1, 0, 0, 0, 229, 230, 5, 91, 0, 0, 230, 21, 1, 0, 0, 0, 231, 235, 3, 26, 13, 0, 232, 235, 3, 30, 15, 0, 233, 235, 3, 24, 12, 0, 234, 231, 1, 0, 0, 0, 234, 232, 1, 0, 0, 0, 234, 233, 1, 0, 0, 0, 235, 23, 1, 0, 0, 0, 236, 237, 5, 11, 0, 0, 237, 238, 3, 112, 56, 0, 238, 239, 5, 38, 0, 0, 239, 240, 3, 114, 57, 0, 240, 241, 5, 86, 0, 0, 241, 242, 3, 98, 49, 0, 242, 243, 5, 85, 0, 0, 243, 244, 3, 98, 49, 0, 244, 245, 5, 90, 0, 0, 245, 246, 5, 55, 0, 0, 246, 247, 5, 38, 0, 0, 247, 248, 3, 114, 57, 0, 248, 249, 5, 87, 0, 0, 249, 250, 5, 91, 0, 0, 250, 25, 1, 0, 0, 0, 251, 252, 5, 9, 0, 0, 252, 253, 3, 112, 56, 0, 253, 254, 5, 38, 0, 0, 254, 255, 3, 114, 57, 0, 255, 256, 5, 86, 0, 0, 256, 257, 3, 98, 49, 0, 257, 261, 5, 90, 0, 0, 258, 260, 3, 28, 14, 0, 259, 258, 1, 0, 0, 0, 260, 263, 1, 0, 0, 0, 261, 259, 1, 0, 0, 0, 261, 262, 1, 0, 0, 0, 262, 264, 1, 0, 0, 0, 263, 261, 1, 0, 0, 0, 264, 265, 5, 91, 0, 0, 265, 27, 1, 0, 0, 0, 266, 267, 5, 45, 0, 0, 267, 268, 5, 38, 0, 0, 268, 269, 3, 114, 57, 0, 269, 270, 5, 87, 0, 0, 270, 286, 1, 0, 0, 0, 271, 272, 5, 46, 0, 0, 272, 273, 5, 38, 0, 0, 273, 274, 3, 114, 57, 0, 274, 275, 5, 87, 0, 0, 275, 286, 1, 0, 0, 0, 276, 277, 5, 47, 0, 0, 277, 278, 5, 48, 0, 0, 278, 279, 5, 38, 0, 0, 279, 280, 3, 114, 57, 0, 280, 281, 5, 49, 0, 0, 281, 282, 5, 38, 0, 0, 282, 283, 3, 114, 57, 0, 283, 284, 5, 87, 0, 0, 284, 286, 1, 0, 0, 0, 285, 266, 1, 0, 0, 0, 285, 271, 1, 0, 0, 0, 285, 276, 1, 0, 0, 0, 286, 29, 1, 0, 0, 0, 287, 288, 5, 10, 0, 0, 288, 289, 3, 112, 56, 0, 289, 290, 5, 38, 0, 0, 290, 291, 3, 114, 57, 0, 291, 292, 5, 86, 0, 0, 292, 293, 3, 102, 51, 0, 293, 295, 3, 34, 17, 0, 294, 296, 5, 66, 0, 0, 295, 294, 1, 0, 0, 0, 295, 296, 1, 0, 0, 0, 296, 297, 1, 0, 0, 0, 297, 301, 5, 90, 0, 0, 298, 300, 3, 32, 16, 0, 299, 298, 1, 0, 0, 0, 300, 303, 1, 0, 0, 0, 301, 299, 1, 0, 0, 0, 301, 302, 1, 0, 0, 0, 302, 304, 1, 0, 0, 0, 303, 301, 1, 0, 0, 0, 304, 305, 5, 91, 0, 0, 305, 31, 1, 0, 0, 0, 306, 307, 5, 52, 0, 0, 307, 308, 5, 38, 0, 0, 308, 309, 3, 114, 57, 0, 309, 310, 5, 87, 0, 0, 310, 331, 1, 0, 0, 0, 311, 312, 5, 53, 0, 0, 312, 313, 5, 38, 0, 0, 313, 314, 3, 114, 57, 0, 314, 315, 5, 87, 0, 0, 315, 331, 1, 0, 0, 0, 316, 317, 5, 54, 0, 0, 317, 318, 5, 38, 0, 0, 318, 319, 3, 114, 57, 0, 319, 320, 5, 87, 0, 0, 320, 331, 1, 0, 0, 0, 321, 322, 5, 47, 0, 0, 322, 323, 5, 48, 0, 0, 323, 324, 5, 38, 0, 0, 324, 325, 3, 114, 57, 0, 325, 326, 5, 49, 0, 0, 326, 327, 5, 38, 0, 0, 327, 328, 3, 114, 57, 0, 328, 329, 5, 87, 0, 0, 329, 331, 1, 0, 0, 0, 330, 306, 1, 0, 0, 0, 330, 311, 1, 0, 0, 0, 330, 316, 1, 0, 0, 0, 330, 321, 1, 0, 0, 0, 331, 33, 1, 0, 0, 0, 332, 333, 5, 5, 0, 0, 333, 337, 3, 112, 56, 0, 334, 335, 5, 6, 0, 0, 335, 337, 3, 112, 56, 0, 336, 332, 1, 0, 0, 0, 336, 334, 1, 0, 0, 0, 337, 35, 1, 0, 0, 0, 338, 340, 3, 16, 8, 0, 339, 338, 1, 0, 0, 0, 340, 343, 1, 0, 0, 0, 341, 339, 1, 0, 0, 0, 341, 342, 1, 0, 0, 0, 342, 344, 1, 0, 0, 0, 343, 341, 1, 0, 0, 0, 344, 345, 5, 8, 0, 0, 345, 346, 3, 112, 56, 0, 346, 347, 5, 38, 0, 0, 347, 348, 3, 114, 57, 0, 348, 349, 5, 37, 0, 0, 349, 350, 3, 114, 57, 0, 350, 354, 5, 90, 0, 0, 351, 353, 3, 38, 19, 0, 352, 351, 1, 0, 0, 0, 353, 356, 1, 0, 0, 0, 354, 352, 1, 0, 0, 0, 354, 355, 1, 0, 0, 0, 355, 357, 1, 0, 0, 0, 356, 354, 1, 0, 0, 0, 357, 358, 5, 91, 0, 0, 358, 37, 1, 0, 0, 0, 359, 363, 3, 40, 20, 0, 360, 363, 3, 42, 21, 0, 361, 363, 3, 44, 22, 0, 362, 359, 1, 0, 0, 0, 362, 360, 1, 0, 0, 0, 362, 361, 1, 0, 0, 0, 363, 39, 1, 0, 0, 0, 364, 365, 5, 11, 0, 0, 365, 366, 3, 112, 56, 0, 366, 367, 5, 38, 0, 0, 367, 368, 3, 114, 57, 0, 368, 369, 5, 86, 0, 0, 369, 370, 3, 98, 49, 0, 370, 371, 5, 85, 0, 0, 371, 372, 3, 98, 49, 0, 372, 373, 5, 40, 0, 0, 373, 375, 3, 48, 24, 0, 374, 376, 3, 46, 23, 0, 375, 374, 1, 0, 0, 0, 375, 376, 1, 0, 0, 0, 376, 377, 1, 0, 0, 0, 377, 378, 5, 42, 0, 0, 378, 380, 3, 50, 25, 0, 379, 381, 3, 54, 27, 0, 380, 379, 1, 0, 0, 0, 380, 381, 1, 0, 0, 0, 381, 382, 1, 0, 0, 0, 382, 383, 5, 87, 0, 0, 383, 41, 1, 0, 0, 0, 384, 385, 5, 12, 0, 0, 385, 386, 3, 112, 56, 0, 386, 387, 5, 38, 0, 0, 387, 388, 3, 114, 57, 0, 388, 389, 5, 86, 0, 0, 389, 390, 3, 98, 49, 0, 390, 391, 5, 85, 0, 0, 391, 393, 3, 98, 49, 0, 392, 394, 3, 54, 27, 0, 393, 392, 1, 0, 0, 0, 393, 394, 1, 0, 0, 0, 394, 395, 1, 0, 0, 0, 395, 396, 5, 87, 0, 0, 396, 43, 1, 0, 0, 0, 397, 398, 5, 13, 0, 0, 398, 399, 3, 112, 56, 0, 399, 400, 5, 38, 0, 0, 400, 401, 3, 114, 57, 0, 401, 402, 5, 14, 0, 0, 402, 403, 3, 112, 56, 0, 403, 404, 5, 86, 0, 0, 404, 406, 3, 98, 49, 0, 405, 407, 3, 54, 27, 0, 406, 405, 1, 0, 0, 0, 406, 407, 1, 0, 0, 0, 407, 408, 1, 0, 0, 0, 408, 409, 5, 87, 0, 0, 409, 45, 1, 0, 0, 0, 410, 411, 5, 41, 0, 0, 411, 412, 3, 98, 49, 0, 412, 47, 1, 0, 0, 0, 413, 414, 7, 0, 0, 0, 414, 49, 1, 0, 0, 0, 415, 425, 5, 44, 0, 0, 416, 417, 5, 5, 0, 0, 417, 425, 3, 112, 56, 0, 418, 419, 5, 7, 0, 0, 419, 421, 5, 92, 0, 0, 420, 422, 3, 52, 26, 0, 421, 420, 1, 0, 0, 0, 421, 422, 1, 0, 0, 0, 422, 423, 1, 0, 0, 0, 423, 425, 5, 93, 0, 0, 424, 415, 1, 0, 0, 0, 424, 416, 1, 0, 0, 0, 424, 418, 1, 0, 0, 0, 425, 51, 1, 0, 0, 0, 426, 431, 3, 112, 56, 0, 427, 428, 5, 88, 0, 0, 428, 430, 3, 112, 56, 0, 429, 427, 1, 0, 0, 0, 430, 433, 1, 0, 0, 0, 431, 429, 1, 0, 0, 0, 431, 432, 1, 0, 0, 0, 432, 53, 1, 0, 0, 0, 433, 431, 1, 0, 0, 0, 434, 435, 5, 43, 0, 0, 435, 439, 5, 90, 0, 0, 436, 438, 3, 56, 28, 0, 437, 436, 1, 0, 0, 0, 438, 441, 1, 0, 0, 0, 439, 437, 1, 0, 0, 0, 439, 440, 1, 0, 0, 0, 440, 442, 1, 0, 0, 0, 441, 439, 1, 0, 0, 0, 442, 443, 5, 91, 0, 0, 443, 55, 1, 0, 0, 0, 444, 445, 5, 22, 0, 0, 445, 446, 3, 112, 56, 0, 446, 447, 5, 38, 0, 0, 447, 448, 3, 114, 57, 0, 448, 449, 5, 86, 0, 0, 449, 450, 3, 98, 49, 0, 450, 451, 3, 58, 29, 0, 451, 452, 5, 87, 0, 0, 452, 484, 1, 0, 0, 0, 453, 454, 5, 23, 0, 0, 454, 455, 3, 112, 56, 0, 455, 456, 5, 38, 0, 0, 456, 457, 3, 114, 57, 0, 457, 458, 5, 86, 0, 0, 458, 459, 3, 102, 51, 0, 459, 460, 3, 34, 17, 0, 460, 461, 3, 58, 29, 0, 461, 462, 5, 87, 0, 0, 462, 484, 1, 0, 0, 0, 463, 464, 5, 6, 0, 0, 464, 465, 3, 112, 56, 0, 465, 466, 5, 38, 0, 0, 466, 467, 3, 114, 57, 0, 467, 468, 5, 86, 0, 0, 468, 469, 3, 112, 56, 0, 469, 470, 5, 87, 0, 0, 470, 484, 1, 0, 0, 0, 471, 472, 5, 13, 0, 0, 472, 473, 3, 112, 56, 0, 473, 474, 5, 38, 0, 0, 474, 475, 3, 114, 57, 0, 475, 476, 5, 86, 0, 0, 476, 479, 3, 112, 56, 0, 477, 478, 5, 15, 0, 0, 478, 480, 3, 98, 49, 0, 479, 477, 1, 0, 0, 0, 479, 480, 1, 0, 0, 0, 480, 481, 1, 0, 0, 0, 481, 482, 5, 87, 0, 0, 482, 484, 1, 0, 0, 0, 483, 444, 1, 0, 0, 0, 483, 453, 1, 0, 0, 0, 483, 463, 1, 0, 0, 0, 483, 471, 1, 0, 0, 0, 484, 57, 1, 0, 0, 0, 485, 486, 5, 92, 0, 0, 486, 491, 3, 60, 30, 0, 487, 488, 5, 88, 0, 0, 488, 490, 3, 60, 30, 0, 489, 487, 1, 0, 0, 0, 490, 493, 1, 0, 0, 0, 491, 489, 1, 0, 0, 0, 491, 492, 1, 0, 0, 0, 492, 494, 1, 0, 0, 0, 493, 491, 1, 0, 0, 0, 494, 495, 5, 93, 0, 0, 495, 59, 1, 0, 0, 0, 496, 497, 7, 1, 0, 0, 497, 61, 1, 0, 0, 0, 498, 499, 5, 21, 0, 0, 499, 500, 3, 64, 32, 0, 500, 63, 1, 0, 0, 0, 501, 504, 3, 66, 33, 0, 502, 504, 3, 70, 35, 0, 503, 501, 1, 0, 0, 0, 503, 502, 1, 0, 0, 0, 504, 65, 1, 0, 0, 0, 505, 506, 5, 22, 0, 0, 506, 507, 3, 112, 56, 0, 507, 508, 5, 38, 0, 0, 508, 509, 3, 114, 57, 0, 509, 510, 5, 31, 0, 0, 510, 511, 3, 112, 56, 0, 511, 512, 5, 86, 0, 0, 512, 513, 3, 98, 49, 0, 513, 514, 5, 32, 0, 0, 514, 517, 3, 68, 34, 0, 515, 516, 5, 33, 0, 0, 516, 518, 3, 104, 52, 0, 517, 515, 1, 0, 0, 0, 517, 518, 1, 0, 0, 0, 518, 519, 1, 0, 0, 0, 519, 520, 5, 87, 0, 0, 520, 67, 1, 0, 0, 0, 521, 528, 5, 60, 0, 0, 522, 523, 5, 61, 0, 0, 523, 524, 5, 94, 0, 0, 524, 525, 3, 98, 49, 0, 525, 526, 5, 95, 0, 0, 526, 528, 1, 0, 0, 0, 527, 521, 1, 0, 0, 0, 527, 522, 1, 0, 0, 0, 528, 69, 1, 0, 0, 0, 529, 530, 5, 23, 0, 0, 530, 531, 3, 112, 56, 0, 531, 532, 5, 38, 0, 0, 532, 533, 3, 114, 57, 0, 533, 534, 5, 90, 0, 0, 534, 535, 3, 72, 36, 0, 535, 536, 3, 72, 36, 0, 536, 537, 5, 91, 0, 0, 537, 71, 1, 0, 0, 0, 538, 539, 3, 34, 17, 0, 539, 540, 5, 24, 0, 0, 540, 541, 3, 112, 56, 0, 541, 542, 5, 38, 0, 0, 542, 543, 3, 114, 57, 0, 543, 545, 3, 102, 51, 0, 544, 546, 5, 66, 0, 0, 545, 544, 1, 0, 0, 0, 545, 546, 1, 0, 0, 0, 546, 547, 1, 0, 0, 0, 547, 548, 5, 87, 0, 0, 548, 73, 1, 0, 0, 0, 549, 550, 5, 16, 0, 0, 550, 551, 3, 112, 56, 0, 551, 552, 5, 17, 0, 0, 552, 553, 3, 112, 56, 0, 553, 557, 5, 90, 0, 0, 554, 556, 3, 76, 38, 0, 555, 554, 1, 0, 0, 0, 556, 559, 1, 0, 0, 0, 557, 555, 1, 0, 0, 0, 557, 558, 1, 0, 0, 0, 558, 560, 1, 0, 0, 0, 559, 557, 1, 0, 0, 0, 560, 561, 5, 91, 0, 0, 561, 75, 1, 0, 0, 0, 562, 563, 5, 20, 0, 0, 563, 567, 3, 64, 32, 0, 564, 567, 3, 80, 40, 0, 565, 567, 3, 78, 39, 0, 566, 562, 1, 0, 0, 0, 566, 564, 1, 0, 0, 0, 566, 565, 1, 0, 0, 0, 567, 77, 1, 0, 0, 0, 568, 569, 5, 28, 0, 0, 569, 570, 3, 112, 56, 0, 570, 571, 5, 29, 0, 0, 571, 572, 5, 30, 0, 0, 572, 573, 5, 26, 0, 0, 573, 574, 5, 13, 0, 0, 574, 575, 3, 112, 56, 0, 575, 576, 5, 27, 0, 0, 576, 577, 5, 23, 0, 0, 577, 578, 3, 112, 56, 0, 578, 579, 5, 89, 0, 0, 579, 580, 3, 112, 56, 0, 580, 581, 5, 87, 0, 0, 581, 79, 1, 0, 0, 0, 582, 583, 5, 18, 0, 0, 583, 584, 3, 82, 41, 0, 584, 585, 5, 19, 0, 0, 585, 586, 3, 86, 43, 0, 586, 587, 5, 87, 0, 0, 587, 81, 1, 0, 0, 0, 588, 589, 3, 112, 56, 0, 589, 590, 5, 89, 0, 0, 590, 591, 3, 84, 42, 0, 591, 83, 1, 0, 0, 0, 592, 604, 3, 112, 56, 0, 593, 604, 5, 55, 0, 0, 594, 604, 5, 45, 0, 0, 595, 604, 5, 46, 0, 0, 596, 604, 5, 52, 0, 0, 597, 604, 5, 53, 0, 0, 598, 604, 5, 54, 0, 0, 599, 604, 5, 56, 0, 0, 600, 604, 5, 57, 0, 0, 601, 604, 5, 58, 0, 0, 602, 604, 5, 59, 0, 0, 603, 592, 1, 0, 0, 0, 603, 593, 1, 0, 0, 0, 603, 594, 1, 0, 0, 0, 603, 595, 1, 0, 0, 0, 603, 596, 1, 0, 0, 0, 603, 597, 1, 0, 0, 0, 603, 598, 1, 0, 0, 0, 603, 599, 1, 0, 0, 0, 603, 600, 1, 0, 0, 0, 603, 601, 1, 0, 0, 0, 603, 602, 1, 0, 0, 0, 604, 85, 1, 0, 0, 0, 605, 606, 5, 22, 0, 0, 606, 607, 3, 112, 56, 0, 607, 608, 5, 89, 0, 0, 608, 609, 3, 88, 44, 0, 609, 625, 1, 0, 0, 0, 610, 611, 5, 23, 0, 0, 611, 612, 3, 112, 56, 0, 612, 613, 5, 89, 0, 0, 613, 614, 3, 112, 56, 0, 614, 615, 5, 89, 0, 0, 615, 616, 3, 90, 45, 0, 616, 625, 1, 0, 0, 0, 617, 618, 5, 8, 0, 0, 618, 619, 3, 112, 56, 0, 619, 620, 5, 89, 0, 0, 620, 622, 3, 112, 56, 0, 621, 623, 3, 92, 46, 0, 622, 621, 1, 0, 0, 0, 622, 623, 1, 0, 0, 0, 623, 625, 1, 0, 0, 0, 624, 605, 1, 0, 0, 0, 624, 610, 1, 0, 0, 0, 624, 617, 1, 0, 0, 0, 625, 87, 1, 0, 0, 0, 626, 627, 7, 2, 0, 0, 627, 89, 1, 0, 0, 0, 628, 629, 7, 3, 0, 0, 629, 91, 1, 0, 0, 0, 630, 631, 5, 25, 0, 0, 631, 635, 5, 90, 0, 0, 632, 634, 3, 94, 47, 0, 633, 632, 1, 0, 0, 0, 634, 637, 1, 0, 0, 0, 635, 633, 1, 0, 0, 0, 635, 636, 1, 0, 0, 0, 636, 638, 1, 0, 0, 0, 637, 635, 1, 0, 0, 0, 638, 639, 5, 91, 0, 0, 639, 93, 1, 0, 0, 0, 640, 641, 3, 112, 56, 0, 641, 642, 5, 19, 0, 0, 642, 643, 5, 22, 0, 0, 643, 650, 3, 112, 56, 0, 644, 645, 5, 27, 0, 0, 645, 646, 5, 23, 0, 0, 646, 647, 3, 112, 56, 0, 647, 648, 5, 89, 0, 0, 648, 649, 3, 112, 56, 0, 649, 651, 1, 0, 0, 0, 650, 644, 1, 0, 0, 0, 650, 651, 1, 0, 0, 0, 651, 652, 1, 0, 0, 0, 652, 653, 5, 87, 0, 0, 653, 691, 1, 0, 0, 0, 654, 655, 3, 112, 56, 0, 655, 656, 5, 19, 0, 0, 656, 657, 5, 23, 0, 0, 657, 658, 3, 112, 56, 0, 658, 659, 5, 89, 0, 0, 659, 666, 3, 112, 56, 0, 660, 661, 5, 27, 0, 0, 661, 662, 5, 23, 0, 0, 662, 663, 3, 112, 56, 0, 663, 664, 5, 89, 0, 0, 664, 665, 3, 112, 56, 0, 665, 667, 1, 0, 0, 0, 666, 660, 1, 0, 0, 0, 666, 667, 1, 0, 0, 0, 667, 668, 1, 0, 0, 0, 668, 669, 5, 87, 0, 0, 669, 691, 1, 0, 0, 0, 670, 671, 3, 112, 56, 0, 671, 672, 5, 19, 0, 0, 672, 673, 5, 6, 0, 0, 673, 680, 3, 112, 56, 0, 674, 675, 5, 27, 0, 0, 675, 676, 5, 23, 0, 0, 676, 677, 3, 112, 56, 0, 677, 678, 5, 89, 0, 0, 678, 679, 3, 112, 56, 0, 679, 681, 1, 0, 0, 0, 680, 674, 1, 0, 0, 0, 680, 681, 1, 0, 0, 0, 681, 682, 1, 0, 0, 0, 682, 683, 5, 87, 0, 0, 683, 691, 1, 0, 0, 0, 684, 685, 3, 112, 56, 0, 685, 686, 5, 19, 0, 0, 686, 687, 5, 13, 0, 0, 687, 688, 3, 112, 56, 0, 688, 689, 5, 87, 0, 0, 689, 691, 1, 0, 0, 0, 690, 640, 1, 0, 0, 0, 690, 654, 1, 0, 0, 0, 690, 670, 1, 0, 0, 0, 690, 684, 1, 0, 0, 0, 691, 95, 1, 0, 0, 0, 692, 693, 5, 13, 0, 0, 693, 694, 3, 112, 56, 0, 694, 695, 5, 19, 0, 0, 695, 696, 3, 112, 56, 0, 696, 697, 5, 89, 0, 0, 697, 699, 3, 112, 56, 0, 698, 700, 3, 92, 46, 0, 699, 698, 1, 0, 0, 0, 699, 700, 1, 0, 0, 0, 700, 701, 1, 0, 0, 0, 701, 702, 5, 87, 0, 0, 702, 97, 1, 0, 0, 0, 703, 729, 3, 100, 50, 0, 704, 729, 5, 67, 0, 0, 705, 729, 5, 68, 0, 0, 706, 707, 5, 69, 0, 0, 707, 729, 3, 114, 57, 0, 708, 709, 5, 70, 0, 0, 709, 710, 5, 96, 0, 0, 710, 711, 3, 112, 56, 0, 711, 712, 5, 97, 0, 0, 712, 729, 1, 0, 0, 0, 713, 714, 5, 71, 0, 0, 714, 715, 5, 96, 0, 0, 715, 716, 3, 112, 56, 0, 716, 717, 5, 97, 0, 0, 717, 729, 1, 0, 0, 0, 718, 719, 5, 72, 0, 0, 719, 720, 5, 96, 0, 0, 720, 721, 3, 98, 49, 0, 721, 722, 5, 97, 0, 0, 722, 729, 1, 0, 0, 0, 723, 724, 5, 73, 0, 0, 724, 725, 5, 96, 0, 0, 725, 726, 3, 98, 49, 0, 726, 727, 5, 97, 0, 0, 727, 729, 1, 0, 0, 0, 728, 703, 1, 0, 0, 0, 728, 704, 1, 0, 0, 0, 728, 705, 1, 0, 0, 0, 728, 706, 1, 0, 0, 0, 728, 708, 1, 0, 0, 0, 728, 713, 1, 0, 0, 0, 728, 718, 1, 0, 0, 0, 728, 723, 1, 0, 0, 0, 729, 99, 1, 0, 0, 0, 730, 731, 7, 4, 0, 0, 731, 101, 1, 0, 0, 0, 732, 733, 7, 5, 0, 0, 733, 103, 1, 0, 0, 0, 734, 743, 3, 114, 57, 0, 735, 743, 5, 98, 0, 0, 736, 743, 5, 99, 0, 0, 737, 743, 5, 82, 0, 0, 738, 743, 5, 83, 0, 0, 739, 743, 5, 84, 0, 0, 740, 743, 3, 106, 53, 0, 741, 743, 3, 110, 55, 0, 742, 734, 1, 0, 0, 0, 742, 735, 1, 0, 0, 0, 742, 736, 1, 0, 0, 0, 742, 737, 1, 0, 0, 0, 742, 738, 1, 0, 0, 0, 742, 739, 1, 0, 0, 0, 742, 740, 1, 0, 0, 0, 742, 741, 1, 0, 0, 0, 743, 105, 1, 0, 0, 0, 744, 753, 5, 90, 0, 0, 745, 750, 3, 108, 54, 0, 746, 747, 5, 88, 0, 0, 747, 749, 3, 108, 54, 0, 748, 746, 1, 0, 0, 0, 749, 752, 1, 0, 0, 0, 750, 748, 1, 0, 0, 0, 750, 751, 1, 0, 0, 0, 751, 754, 1, 0, 0, 0, 752, 750, 1, 0, 0, 0, 753, 745, 1, 0, 0, 0, 753, 754, 1, 0, 0, 0, 754, 755, 1, 0, 0, 0, 755, 756, 5, 91, 0, 0, 756, 107, 1, 0, 0, 0, 757, 758, 3, 114, 57, 0, 758, 759, 5, 86, 0, 0, 759, 760, 3, 104, 52, 0, 760, 109, 1, 0, 0, 0, 761, 770, 5, 92, 0, 0, 762, 767, 3, 104, 52, 0, 763, 764, 5, 88, 0, 0, 764, 766, 3, 104, 52, 0, 765, 763, 1, 0, 0, 0, 766, 769, 1, 0, 0, 0, 767, 765, 1, 0, 0, 0, 767, 768, 1, 0, 0, 0, 768, 771, 1, 0, 0, 0, 769, 767, 1, 0, 0, 0, 770, 762, 1, 0, 0, 0, 770, 771, 1, 0, 0, 0, 771, 772, 1, 0, 0, 0, 772, 773, 5, 93, 0, 0, 773, 111, 1, 0, 0, 0, 774, 775, 7, 6, 0, 0, 775, 113, 1, 0, 0, 0, 776, 777, 5, 101, 0, 0, 777, 115, 1, 0, 0, 0, 51, 128, 135, 156, 167, 179, 198, 206, 213, 226, 234, 261, 285, 295, 301, 330, 336, 341, 354, 362, 375, 380, 393, 406, 421, 424, 431, 439, 479, 483, 491, 503, 517, 527, 545, 557, 566, 603, 622, 624, 635, 650, 666, 680, 690, 699, 728, 742, 750, 753, 767, 770] \ No newline at end of file diff --git a/src/capability-language/generated/QuixosCapability.tokens b/src/capability-language/generated/QuixosCapability.tokens index a2f4274..d34ee3c 100644 --- a/src/capability-language/generated/QuixosCapability.tokens +++ b/src/capability-language/generated/QuixosCapability.tokens @@ -1,197 +1,201 @@ WORKSPACE=1 -IMPORT=2 -EXTERNAL=3 -ATOM=4 -INTERFACE=5 -INTERFACES=6 -PACKAGE=7 -VALUE=8 -RELATION=9 -OPERATION=10 -FUNCTION=11 -CONSTRUCTOR=12 -CONSTRUCTS=13 -CONFORM=14 -AS=15 -BIND=16 -TO=17 -PRIVATE=18 -SHARED=19 -STATE=20 -EDGE=21 -PROJECTION=22 -WITH=23 -USING=24 -VIA=25 -MATERIALIZE=26 -IF=27 -ABSENT=28 -ON=29 -POLICY=30 -DEFAULT=31 -SOURCE=32 -REPOSITORY=33 -COMMIT=34 -REVISION=35 -ID=36 -DOC=37 -MODE=38 -EMITS=39 -RECEIVER=40 -REQUIRES=41 -ANY=42 -GET=43 -SET=44 -WATCH=45 -START=46 -STOP=47 -READ=48 -WRITE=49 -RESOLVE=50 -CONNECT=51 -DISCONNECT=52 -CALL=53 -WATCH_START=54 -WATCH_STOP=55 -SUBSCRIBE=56 -UNSUBSCRIBE=57 -OPTIMISTIC_REGISTER=58 -CRDT=59 -OPTIONAL_ONE=60 -EXACTLY_ONE=61 -MANY_UNIQUE=62 -MANY=63 -ORDERED=64 -UNIT=65 -WATCH_HANDLE=66 -MESSAGE=67 -ATOM_REF=68 -INTERFACE_REF=69 -OPTIONAL=70 -LIST=71 -BOOL=72 -BYTES=73 -DOUBLE=74 -INT32=75 -INT64=76 -STRING=77 -UINT32=78 -UINT64=79 -TRUE=80 -FALSE=81 -NULL=82 -ARROW=83 -COLON=84 -SEMI=85 -COMMA=86 -DOT=87 -LBRACE=88 -RBRACE=89 -LBRACK=90 -RBRACK=91 -LPAREN=92 -RPAREN=93 -LT=94 -GT=95 -INTEGER=96 -JSON_NUMBER=97 -IDENTIFIER=98 -STRING_LITERAL=99 -LINE_COMMENT=100 -BLOCK_COMMENT=101 -WS=102 +FRAGMENT=2 +IMPORT=3 +EXTERNAL=4 +ATOM=5 +INTERFACE=6 +INTERFACES=7 +PACKAGE=8 +VALUE=9 +RELATION=10 +OPERATION=11 +FUNCTION=12 +CONSTRUCTOR=13 +CONSTRUCTS=14 +INPUT=15 +CONFORM=16 +AS=17 +BIND=18 +TO=19 +PRIVATE=20 +SHARED=21 +STATE=22 +EDGE=23 +PROJECTION=24 +WITH=25 +USING=26 +VIA=27 +MATERIALIZE=28 +IF=29 +ABSENT=30 +ON=31 +POLICY=32 +DEFAULT=33 +SOURCE=34 +REPOSITORY=35 +COMMIT=36 +REVISION=37 +ID=38 +DOC=39 +MODE=40 +EMITS=41 +RECEIVER=42 +REQUIRES=43 +ANY=44 +GET=45 +SET=46 +WATCH=47 +START=48 +STOP=49 +READ=50 +WRITE=51 +RESOLVE=52 +CONNECT=53 +DISCONNECT=54 +CALL=55 +WATCH_START=56 +WATCH_STOP=57 +SUBSCRIBE=58 +UNSUBSCRIBE=59 +OPTIMISTIC_REGISTER=60 +CRDT=61 +OPTIONAL_ONE=62 +EXACTLY_ONE=63 +MANY_UNIQUE=64 +MANY=65 +ORDERED=66 +UNIT=67 +WATCH_HANDLE=68 +MESSAGE=69 +ATOM_REF=70 +INTERFACE_REF=71 +OPTIONAL=72 +LIST=73 +BOOL=74 +BYTES=75 +DOUBLE=76 +INT32=77 +INT64=78 +STRING=79 +UINT32=80 +UINT64=81 +TRUE=82 +FALSE=83 +NULL=84 +ARROW=85 +COLON=86 +SEMI=87 +COMMA=88 +DOT=89 +LBRACE=90 +RBRACE=91 +LBRACK=92 +RBRACK=93 +LPAREN=94 +RPAREN=95 +LT=96 +GT=97 +INTEGER=98 +JSON_NUMBER=99 +IDENTIFIER=100 +STRING_LITERAL=101 +LINE_COMMENT=102 +BLOCK_COMMENT=103 +WS=104 'workspace'=1 -'import'=2 -'external'=3 -'atom'=4 -'interface'=5 -'interfaces'=6 -'package'=7 -'value'=8 -'relation'=9 -'operation'=10 -'function'=11 -'constructor'=12 -'constructs'=13 -'conform'=14 -'as'=15 -'bind'=16 -'to'=17 -'private'=18 -'shared'=19 -'state'=20 -'edge'=21 -'projection'=22 -'with'=23 -'using'=24 -'via'=25 -'materialize'=26 -'if'=27 -'absent'=28 -'on'=29 -'policy'=30 -'default'=31 -'source'=32 -'repository'=33 -'commit'=34 -'revision'=35 -'id'=36 -'doc'=37 -'mode'=38 -'emits'=39 -'receiver'=40 -'requires'=41 -'any'=42 -'get'=43 -'set'=44 -'watch'=45 -'start'=46 -'stop'=47 -'read'=48 -'write'=49 -'resolve'=50 -'connect'=51 -'disconnect'=52 -'call'=53 -'watch-start'=54 -'watch-stop'=55 -'subscribe'=56 -'unsubscribe'=57 -'optimistic-register'=58 -'crdt'=59 -'optional-one'=60 -'exactly-one'=61 -'many-unique'=62 -'many'=63 -'ordered'=64 -'unit'=65 -'watch-handle'=66 -'message'=67 -'atom-ref'=68 -'interface-ref'=69 -'optional'=70 -'list'=71 -'bool'=72 -'bytes'=73 -'double'=74 -'int32'=75 -'int64'=76 -'string'=77 -'uint32'=78 -'uint64'=79 -'true'=80 -'false'=81 -'null'=82 -'->'=83 -':'=84 -';'=85 -','=86 -'.'=87 -'{'=88 -'}'=89 -'['=90 -']'=91 -'('=92 -')'=93 -'<'=94 -'>'=95 +'fragment'=2 +'import'=3 +'external'=4 +'atom'=5 +'interface'=6 +'interfaces'=7 +'package'=8 +'value'=9 +'relation'=10 +'operation'=11 +'function'=12 +'constructor'=13 +'constructs'=14 +'input'=15 +'conform'=16 +'as'=17 +'bind'=18 +'to'=19 +'private'=20 +'shared'=21 +'state'=22 +'edge'=23 +'projection'=24 +'with'=25 +'using'=26 +'via'=27 +'materialize'=28 +'if'=29 +'absent'=30 +'on'=31 +'policy'=32 +'default'=33 +'source'=34 +'repository'=35 +'commit'=36 +'revision'=37 +'id'=38 +'doc'=39 +'mode'=40 +'emits'=41 +'receiver'=42 +'requires'=43 +'any'=44 +'get'=45 +'set'=46 +'watch'=47 +'start'=48 +'stop'=49 +'read'=50 +'write'=51 +'resolve'=52 +'connect'=53 +'disconnect'=54 +'call'=55 +'watch-start'=56 +'watch-stop'=57 +'subscribe'=58 +'unsubscribe'=59 +'optimistic-register'=60 +'crdt'=61 +'optional-one'=62 +'exactly-one'=63 +'many-unique'=64 +'many'=65 +'ordered'=66 +'unit'=67 +'watch-handle'=68 +'message'=69 +'atom-ref'=70 +'interface-ref'=71 +'optional'=72 +'list'=73 +'bool'=74 +'bytes'=75 +'double'=76 +'int32'=77 +'int64'=78 +'string'=79 +'uint32'=80 +'uint64'=81 +'true'=82 +'false'=83 +'null'=84 +'->'=85 +':'=86 +';'=87 +','=88 +'.'=89 +'{'=90 +'}'=91 +'['=92 +']'=93 +'('=94 +')'=95 +'<'=96 +'>'=97 diff --git a/src/capability-language/generated/QuixosCapabilityLexer.interp b/src/capability-language/generated/QuixosCapabilityLexer.interp index c4e5faf..5e41df9 100644 --- a/src/capability-language/generated/QuixosCapabilityLexer.interp +++ b/src/capability-language/generated/QuixosCapabilityLexer.interp @@ -1,6 +1,7 @@ token literal names: null 'workspace' +'fragment' 'import' 'external' 'atom' @@ -13,6 +14,7 @@ null 'function' 'constructor' 'constructs' +'input' 'conform' 'as' 'bind' @@ -106,6 +108,7 @@ null token symbolic names: null WORKSPACE +FRAGMENT IMPORT EXTERNAL ATOM @@ -118,6 +121,7 @@ OPERATION FUNCTION CONSTRUCTOR CONSTRUCTS +INPUT CONFORM AS BIND @@ -210,6 +214,7 @@ WS rule names: WORKSPACE +FRAGMENT IMPORT EXTERNAL ATOM @@ -222,6 +227,7 @@ OPERATION FUNCTION CONSTRUCTOR CONSTRUCTS +INPUT CONFORM AS BIND @@ -322,4 +328,4 @@ mode names: DEFAULT_MODE atn: -[4, 0, 102, 957, 6, -1, 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, 2, 92, 7, 92, 2, 93, 7, 93, 2, 94, 7, 94, 2, 95, 7, 95, 2, 96, 7, 96, 2, 97, 7, 97, 2, 98, 7, 98, 2, 99, 7, 99, 2, 100, 7, 100, 2, 101, 7, 101, 2, 102, 7, 102, 2, 103, 7, 103, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 82, 1, 82, 1, 82, 1, 83, 1, 83, 1, 84, 1, 84, 1, 85, 1, 85, 1, 86, 1, 86, 1, 87, 1, 87, 1, 88, 1, 88, 1, 89, 1, 89, 1, 90, 1, 90, 1, 91, 1, 91, 1, 92, 1, 92, 1, 93, 1, 93, 1, 94, 1, 94, 1, 95, 3, 95, 858, 8, 95, 1, 95, 4, 95, 861, 8, 95, 11, 95, 12, 95, 862, 1, 96, 3, 96, 866, 8, 96, 1, 96, 1, 96, 1, 96, 5, 96, 871, 8, 96, 10, 96, 12, 96, 874, 9, 96, 3, 96, 876, 8, 96, 1, 96, 1, 96, 4, 96, 880, 8, 96, 11, 96, 12, 96, 881, 3, 96, 884, 8, 96, 1, 96, 1, 96, 3, 96, 888, 8, 96, 1, 96, 4, 96, 891, 8, 96, 11, 96, 12, 96, 892, 3, 96, 895, 8, 96, 1, 97, 1, 97, 5, 97, 899, 8, 97, 10, 97, 12, 97, 902, 9, 97, 1, 98, 1, 98, 1, 98, 5, 98, 907, 8, 98, 10, 98, 12, 98, 910, 9, 98, 1, 98, 1, 98, 1, 99, 1, 99, 1, 99, 1, 99, 1, 99, 1, 99, 1, 99, 1, 99, 3, 99, 922, 8, 99, 1, 100, 1, 100, 1, 101, 1, 101, 1, 101, 1, 101, 5, 101, 930, 8, 101, 10, 101, 12, 101, 933, 9, 101, 1, 101, 1, 101, 1, 102, 1, 102, 1, 102, 1, 102, 5, 102, 941, 8, 102, 10, 102, 12, 102, 944, 9, 102, 1, 102, 1, 102, 1, 102, 1, 102, 1, 102, 1, 103, 4, 103, 952, 8, 103, 11, 103, 12, 103, 953, 1, 103, 1, 103, 1, 942, 0, 104, 1, 1, 3, 2, 5, 3, 7, 4, 9, 5, 11, 6, 13, 7, 15, 8, 17, 9, 19, 10, 21, 11, 23, 12, 25, 13, 27, 14, 29, 15, 31, 16, 33, 17, 35, 18, 37, 19, 39, 20, 41, 21, 43, 22, 45, 23, 47, 24, 49, 25, 51, 26, 53, 27, 55, 28, 57, 29, 59, 30, 61, 31, 63, 32, 65, 33, 67, 34, 69, 35, 71, 36, 73, 37, 75, 38, 77, 39, 79, 40, 81, 41, 83, 42, 85, 43, 87, 44, 89, 45, 91, 46, 93, 47, 95, 48, 97, 49, 99, 50, 101, 51, 103, 52, 105, 53, 107, 54, 109, 55, 111, 56, 113, 57, 115, 58, 117, 59, 119, 60, 121, 61, 123, 62, 125, 63, 127, 64, 129, 65, 131, 66, 133, 67, 135, 68, 137, 69, 139, 70, 141, 71, 143, 72, 145, 73, 147, 74, 149, 75, 151, 76, 153, 77, 155, 78, 157, 79, 159, 80, 161, 81, 163, 82, 165, 83, 167, 84, 169, 85, 171, 86, 173, 87, 175, 88, 177, 89, 179, 90, 181, 91, 183, 92, 185, 93, 187, 94, 189, 95, 191, 96, 193, 97, 195, 98, 197, 99, 199, 0, 201, 0, 203, 100, 205, 101, 207, 102, 1, 0, 11, 1, 0, 48, 57, 1, 0, 49, 57, 2, 0, 69, 69, 101, 101, 2, 0, 43, 43, 45, 45, 3, 0, 65, 90, 95, 95, 97, 122, 4, 0, 48, 57, 65, 90, 95, 95, 97, 122, 4, 0, 10, 10, 13, 13, 34, 34, 92, 92, 8, 0, 34, 34, 47, 47, 92, 92, 98, 98, 102, 102, 110, 110, 114, 114, 116, 116, 3, 0, 48, 57, 65, 70, 97, 102, 2, 0, 10, 10, 13, 13, 3, 0, 9, 10, 13, 13, 32, 32, 971, 0, 1, 1, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 5, 1, 0, 0, 0, 0, 7, 1, 0, 0, 0, 0, 9, 1, 0, 0, 0, 0, 11, 1, 0, 0, 0, 0, 13, 1, 0, 0, 0, 0, 15, 1, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 19, 1, 0, 0, 0, 0, 21, 1, 0, 0, 0, 0, 23, 1, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 27, 1, 0, 0, 0, 0, 29, 1, 0, 0, 0, 0, 31, 1, 0, 0, 0, 0, 33, 1, 0, 0, 0, 0, 35, 1, 0, 0, 0, 0, 37, 1, 0, 0, 0, 0, 39, 1, 0, 0, 0, 0, 41, 1, 0, 0, 0, 0, 43, 1, 0, 0, 0, 0, 45, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 49, 1, 0, 0, 0, 0, 51, 1, 0, 0, 0, 0, 53, 1, 0, 0, 0, 0, 55, 1, 0, 0, 0, 0, 57, 1, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 61, 1, 0, 0, 0, 0, 63, 1, 0, 0, 0, 0, 65, 1, 0, 0, 0, 0, 67, 1, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 71, 1, 0, 0, 0, 0, 73, 1, 0, 0, 0, 0, 75, 1, 0, 0, 0, 0, 77, 1, 0, 0, 0, 0, 79, 1, 0, 0, 0, 0, 81, 1, 0, 0, 0, 0, 83, 1, 0, 0, 0, 0, 85, 1, 0, 0, 0, 0, 87, 1, 0, 0, 0, 0, 89, 1, 0, 0, 0, 0, 91, 1, 0, 0, 0, 0, 93, 1, 0, 0, 0, 0, 95, 1, 0, 0, 0, 0, 97, 1, 0, 0, 0, 0, 99, 1, 0, 0, 0, 0, 101, 1, 0, 0, 0, 0, 103, 1, 0, 0, 0, 0, 105, 1, 0, 0, 0, 0, 107, 1, 0, 0, 0, 0, 109, 1, 0, 0, 0, 0, 111, 1, 0, 0, 0, 0, 113, 1, 0, 0, 0, 0, 115, 1, 0, 0, 0, 0, 117, 1, 0, 0, 0, 0, 119, 1, 0, 0, 0, 0, 121, 1, 0, 0, 0, 0, 123, 1, 0, 0, 0, 0, 125, 1, 0, 0, 0, 0, 127, 1, 0, 0, 0, 0, 129, 1, 0, 0, 0, 0, 131, 1, 0, 0, 0, 0, 133, 1, 0, 0, 0, 0, 135, 1, 0, 0, 0, 0, 137, 1, 0, 0, 0, 0, 139, 1, 0, 0, 0, 0, 141, 1, 0, 0, 0, 0, 143, 1, 0, 0, 0, 0, 145, 1, 0, 0, 0, 0, 147, 1, 0, 0, 0, 0, 149, 1, 0, 0, 0, 0, 151, 1, 0, 0, 0, 0, 153, 1, 0, 0, 0, 0, 155, 1, 0, 0, 0, 0, 157, 1, 0, 0, 0, 0, 159, 1, 0, 0, 0, 0, 161, 1, 0, 0, 0, 0, 163, 1, 0, 0, 0, 0, 165, 1, 0, 0, 0, 0, 167, 1, 0, 0, 0, 0, 169, 1, 0, 0, 0, 0, 171, 1, 0, 0, 0, 0, 173, 1, 0, 0, 0, 0, 175, 1, 0, 0, 0, 0, 177, 1, 0, 0, 0, 0, 179, 1, 0, 0, 0, 0, 181, 1, 0, 0, 0, 0, 183, 1, 0, 0, 0, 0, 185, 1, 0, 0, 0, 0, 187, 1, 0, 0, 0, 0, 189, 1, 0, 0, 0, 0, 191, 1, 0, 0, 0, 0, 193, 1, 0, 0, 0, 0, 195, 1, 0, 0, 0, 0, 197, 1, 0, 0, 0, 0, 203, 1, 0, 0, 0, 0, 205, 1, 0, 0, 0, 0, 207, 1, 0, 0, 0, 1, 209, 1, 0, 0, 0, 3, 219, 1, 0, 0, 0, 5, 226, 1, 0, 0, 0, 7, 235, 1, 0, 0, 0, 9, 240, 1, 0, 0, 0, 11, 250, 1, 0, 0, 0, 13, 261, 1, 0, 0, 0, 15, 269, 1, 0, 0, 0, 17, 275, 1, 0, 0, 0, 19, 284, 1, 0, 0, 0, 21, 294, 1, 0, 0, 0, 23, 303, 1, 0, 0, 0, 25, 315, 1, 0, 0, 0, 27, 326, 1, 0, 0, 0, 29, 334, 1, 0, 0, 0, 31, 337, 1, 0, 0, 0, 33, 342, 1, 0, 0, 0, 35, 345, 1, 0, 0, 0, 37, 353, 1, 0, 0, 0, 39, 360, 1, 0, 0, 0, 41, 366, 1, 0, 0, 0, 43, 371, 1, 0, 0, 0, 45, 382, 1, 0, 0, 0, 47, 387, 1, 0, 0, 0, 49, 393, 1, 0, 0, 0, 51, 397, 1, 0, 0, 0, 53, 409, 1, 0, 0, 0, 55, 412, 1, 0, 0, 0, 57, 419, 1, 0, 0, 0, 59, 422, 1, 0, 0, 0, 61, 429, 1, 0, 0, 0, 63, 437, 1, 0, 0, 0, 65, 444, 1, 0, 0, 0, 67, 455, 1, 0, 0, 0, 69, 462, 1, 0, 0, 0, 71, 471, 1, 0, 0, 0, 73, 474, 1, 0, 0, 0, 75, 478, 1, 0, 0, 0, 77, 483, 1, 0, 0, 0, 79, 489, 1, 0, 0, 0, 81, 498, 1, 0, 0, 0, 83, 507, 1, 0, 0, 0, 85, 511, 1, 0, 0, 0, 87, 515, 1, 0, 0, 0, 89, 519, 1, 0, 0, 0, 91, 525, 1, 0, 0, 0, 93, 531, 1, 0, 0, 0, 95, 536, 1, 0, 0, 0, 97, 541, 1, 0, 0, 0, 99, 547, 1, 0, 0, 0, 101, 555, 1, 0, 0, 0, 103, 563, 1, 0, 0, 0, 105, 574, 1, 0, 0, 0, 107, 579, 1, 0, 0, 0, 109, 591, 1, 0, 0, 0, 111, 602, 1, 0, 0, 0, 113, 612, 1, 0, 0, 0, 115, 624, 1, 0, 0, 0, 117, 644, 1, 0, 0, 0, 119, 649, 1, 0, 0, 0, 121, 662, 1, 0, 0, 0, 123, 674, 1, 0, 0, 0, 125, 686, 1, 0, 0, 0, 127, 691, 1, 0, 0, 0, 129, 699, 1, 0, 0, 0, 131, 704, 1, 0, 0, 0, 133, 717, 1, 0, 0, 0, 135, 725, 1, 0, 0, 0, 137, 734, 1, 0, 0, 0, 139, 748, 1, 0, 0, 0, 141, 757, 1, 0, 0, 0, 143, 762, 1, 0, 0, 0, 145, 767, 1, 0, 0, 0, 147, 773, 1, 0, 0, 0, 149, 780, 1, 0, 0, 0, 151, 786, 1, 0, 0, 0, 153, 792, 1, 0, 0, 0, 155, 799, 1, 0, 0, 0, 157, 806, 1, 0, 0, 0, 159, 813, 1, 0, 0, 0, 161, 818, 1, 0, 0, 0, 163, 824, 1, 0, 0, 0, 165, 829, 1, 0, 0, 0, 167, 832, 1, 0, 0, 0, 169, 834, 1, 0, 0, 0, 171, 836, 1, 0, 0, 0, 173, 838, 1, 0, 0, 0, 175, 840, 1, 0, 0, 0, 177, 842, 1, 0, 0, 0, 179, 844, 1, 0, 0, 0, 181, 846, 1, 0, 0, 0, 183, 848, 1, 0, 0, 0, 185, 850, 1, 0, 0, 0, 187, 852, 1, 0, 0, 0, 189, 854, 1, 0, 0, 0, 191, 857, 1, 0, 0, 0, 193, 865, 1, 0, 0, 0, 195, 896, 1, 0, 0, 0, 197, 903, 1, 0, 0, 0, 199, 913, 1, 0, 0, 0, 201, 923, 1, 0, 0, 0, 203, 925, 1, 0, 0, 0, 205, 936, 1, 0, 0, 0, 207, 951, 1, 0, 0, 0, 209, 210, 5, 119, 0, 0, 210, 211, 5, 111, 0, 0, 211, 212, 5, 114, 0, 0, 212, 213, 5, 107, 0, 0, 213, 214, 5, 115, 0, 0, 214, 215, 5, 112, 0, 0, 215, 216, 5, 97, 0, 0, 216, 217, 5, 99, 0, 0, 217, 218, 5, 101, 0, 0, 218, 2, 1, 0, 0, 0, 219, 220, 5, 105, 0, 0, 220, 221, 5, 109, 0, 0, 221, 222, 5, 112, 0, 0, 222, 223, 5, 111, 0, 0, 223, 224, 5, 114, 0, 0, 224, 225, 5, 116, 0, 0, 225, 4, 1, 0, 0, 0, 226, 227, 5, 101, 0, 0, 227, 228, 5, 120, 0, 0, 228, 229, 5, 116, 0, 0, 229, 230, 5, 101, 0, 0, 230, 231, 5, 114, 0, 0, 231, 232, 5, 110, 0, 0, 232, 233, 5, 97, 0, 0, 233, 234, 5, 108, 0, 0, 234, 6, 1, 0, 0, 0, 235, 236, 5, 97, 0, 0, 236, 237, 5, 116, 0, 0, 237, 238, 5, 111, 0, 0, 238, 239, 5, 109, 0, 0, 239, 8, 1, 0, 0, 0, 240, 241, 5, 105, 0, 0, 241, 242, 5, 110, 0, 0, 242, 243, 5, 116, 0, 0, 243, 244, 5, 101, 0, 0, 244, 245, 5, 114, 0, 0, 245, 246, 5, 102, 0, 0, 246, 247, 5, 97, 0, 0, 247, 248, 5, 99, 0, 0, 248, 249, 5, 101, 0, 0, 249, 10, 1, 0, 0, 0, 250, 251, 5, 105, 0, 0, 251, 252, 5, 110, 0, 0, 252, 253, 5, 116, 0, 0, 253, 254, 5, 101, 0, 0, 254, 255, 5, 114, 0, 0, 255, 256, 5, 102, 0, 0, 256, 257, 5, 97, 0, 0, 257, 258, 5, 99, 0, 0, 258, 259, 5, 101, 0, 0, 259, 260, 5, 115, 0, 0, 260, 12, 1, 0, 0, 0, 261, 262, 5, 112, 0, 0, 262, 263, 5, 97, 0, 0, 263, 264, 5, 99, 0, 0, 264, 265, 5, 107, 0, 0, 265, 266, 5, 97, 0, 0, 266, 267, 5, 103, 0, 0, 267, 268, 5, 101, 0, 0, 268, 14, 1, 0, 0, 0, 269, 270, 5, 118, 0, 0, 270, 271, 5, 97, 0, 0, 271, 272, 5, 108, 0, 0, 272, 273, 5, 117, 0, 0, 273, 274, 5, 101, 0, 0, 274, 16, 1, 0, 0, 0, 275, 276, 5, 114, 0, 0, 276, 277, 5, 101, 0, 0, 277, 278, 5, 108, 0, 0, 278, 279, 5, 97, 0, 0, 279, 280, 5, 116, 0, 0, 280, 281, 5, 105, 0, 0, 281, 282, 5, 111, 0, 0, 282, 283, 5, 110, 0, 0, 283, 18, 1, 0, 0, 0, 284, 285, 5, 111, 0, 0, 285, 286, 5, 112, 0, 0, 286, 287, 5, 101, 0, 0, 287, 288, 5, 114, 0, 0, 288, 289, 5, 97, 0, 0, 289, 290, 5, 116, 0, 0, 290, 291, 5, 105, 0, 0, 291, 292, 5, 111, 0, 0, 292, 293, 5, 110, 0, 0, 293, 20, 1, 0, 0, 0, 294, 295, 5, 102, 0, 0, 295, 296, 5, 117, 0, 0, 296, 297, 5, 110, 0, 0, 297, 298, 5, 99, 0, 0, 298, 299, 5, 116, 0, 0, 299, 300, 5, 105, 0, 0, 300, 301, 5, 111, 0, 0, 301, 302, 5, 110, 0, 0, 302, 22, 1, 0, 0, 0, 303, 304, 5, 99, 0, 0, 304, 305, 5, 111, 0, 0, 305, 306, 5, 110, 0, 0, 306, 307, 5, 115, 0, 0, 307, 308, 5, 116, 0, 0, 308, 309, 5, 114, 0, 0, 309, 310, 5, 117, 0, 0, 310, 311, 5, 99, 0, 0, 311, 312, 5, 116, 0, 0, 312, 313, 5, 111, 0, 0, 313, 314, 5, 114, 0, 0, 314, 24, 1, 0, 0, 0, 315, 316, 5, 99, 0, 0, 316, 317, 5, 111, 0, 0, 317, 318, 5, 110, 0, 0, 318, 319, 5, 115, 0, 0, 319, 320, 5, 116, 0, 0, 320, 321, 5, 114, 0, 0, 321, 322, 5, 117, 0, 0, 322, 323, 5, 99, 0, 0, 323, 324, 5, 116, 0, 0, 324, 325, 5, 115, 0, 0, 325, 26, 1, 0, 0, 0, 326, 327, 5, 99, 0, 0, 327, 328, 5, 111, 0, 0, 328, 329, 5, 110, 0, 0, 329, 330, 5, 102, 0, 0, 330, 331, 5, 111, 0, 0, 331, 332, 5, 114, 0, 0, 332, 333, 5, 109, 0, 0, 333, 28, 1, 0, 0, 0, 334, 335, 5, 97, 0, 0, 335, 336, 5, 115, 0, 0, 336, 30, 1, 0, 0, 0, 337, 338, 5, 98, 0, 0, 338, 339, 5, 105, 0, 0, 339, 340, 5, 110, 0, 0, 340, 341, 5, 100, 0, 0, 341, 32, 1, 0, 0, 0, 342, 343, 5, 116, 0, 0, 343, 344, 5, 111, 0, 0, 344, 34, 1, 0, 0, 0, 345, 346, 5, 112, 0, 0, 346, 347, 5, 114, 0, 0, 347, 348, 5, 105, 0, 0, 348, 349, 5, 118, 0, 0, 349, 350, 5, 97, 0, 0, 350, 351, 5, 116, 0, 0, 351, 352, 5, 101, 0, 0, 352, 36, 1, 0, 0, 0, 353, 354, 5, 115, 0, 0, 354, 355, 5, 104, 0, 0, 355, 356, 5, 97, 0, 0, 356, 357, 5, 114, 0, 0, 357, 358, 5, 101, 0, 0, 358, 359, 5, 100, 0, 0, 359, 38, 1, 0, 0, 0, 360, 361, 5, 115, 0, 0, 361, 362, 5, 116, 0, 0, 362, 363, 5, 97, 0, 0, 363, 364, 5, 116, 0, 0, 364, 365, 5, 101, 0, 0, 365, 40, 1, 0, 0, 0, 366, 367, 5, 101, 0, 0, 367, 368, 5, 100, 0, 0, 368, 369, 5, 103, 0, 0, 369, 370, 5, 101, 0, 0, 370, 42, 1, 0, 0, 0, 371, 372, 5, 112, 0, 0, 372, 373, 5, 114, 0, 0, 373, 374, 5, 111, 0, 0, 374, 375, 5, 106, 0, 0, 375, 376, 5, 101, 0, 0, 376, 377, 5, 99, 0, 0, 377, 378, 5, 116, 0, 0, 378, 379, 5, 105, 0, 0, 379, 380, 5, 111, 0, 0, 380, 381, 5, 110, 0, 0, 381, 44, 1, 0, 0, 0, 382, 383, 5, 119, 0, 0, 383, 384, 5, 105, 0, 0, 384, 385, 5, 116, 0, 0, 385, 386, 5, 104, 0, 0, 386, 46, 1, 0, 0, 0, 387, 388, 5, 117, 0, 0, 388, 389, 5, 115, 0, 0, 389, 390, 5, 105, 0, 0, 390, 391, 5, 110, 0, 0, 391, 392, 5, 103, 0, 0, 392, 48, 1, 0, 0, 0, 393, 394, 5, 118, 0, 0, 394, 395, 5, 105, 0, 0, 395, 396, 5, 97, 0, 0, 396, 50, 1, 0, 0, 0, 397, 398, 5, 109, 0, 0, 398, 399, 5, 97, 0, 0, 399, 400, 5, 116, 0, 0, 400, 401, 5, 101, 0, 0, 401, 402, 5, 114, 0, 0, 402, 403, 5, 105, 0, 0, 403, 404, 5, 97, 0, 0, 404, 405, 5, 108, 0, 0, 405, 406, 5, 105, 0, 0, 406, 407, 5, 122, 0, 0, 407, 408, 5, 101, 0, 0, 408, 52, 1, 0, 0, 0, 409, 410, 5, 105, 0, 0, 410, 411, 5, 102, 0, 0, 411, 54, 1, 0, 0, 0, 412, 413, 5, 97, 0, 0, 413, 414, 5, 98, 0, 0, 414, 415, 5, 115, 0, 0, 415, 416, 5, 101, 0, 0, 416, 417, 5, 110, 0, 0, 417, 418, 5, 116, 0, 0, 418, 56, 1, 0, 0, 0, 419, 420, 5, 111, 0, 0, 420, 421, 5, 110, 0, 0, 421, 58, 1, 0, 0, 0, 422, 423, 5, 112, 0, 0, 423, 424, 5, 111, 0, 0, 424, 425, 5, 108, 0, 0, 425, 426, 5, 105, 0, 0, 426, 427, 5, 99, 0, 0, 427, 428, 5, 121, 0, 0, 428, 60, 1, 0, 0, 0, 429, 430, 5, 100, 0, 0, 430, 431, 5, 101, 0, 0, 431, 432, 5, 102, 0, 0, 432, 433, 5, 97, 0, 0, 433, 434, 5, 117, 0, 0, 434, 435, 5, 108, 0, 0, 435, 436, 5, 116, 0, 0, 436, 62, 1, 0, 0, 0, 437, 438, 5, 115, 0, 0, 438, 439, 5, 111, 0, 0, 439, 440, 5, 117, 0, 0, 440, 441, 5, 114, 0, 0, 441, 442, 5, 99, 0, 0, 442, 443, 5, 101, 0, 0, 443, 64, 1, 0, 0, 0, 444, 445, 5, 114, 0, 0, 445, 446, 5, 101, 0, 0, 446, 447, 5, 112, 0, 0, 447, 448, 5, 111, 0, 0, 448, 449, 5, 115, 0, 0, 449, 450, 5, 105, 0, 0, 450, 451, 5, 116, 0, 0, 451, 452, 5, 111, 0, 0, 452, 453, 5, 114, 0, 0, 453, 454, 5, 121, 0, 0, 454, 66, 1, 0, 0, 0, 455, 456, 5, 99, 0, 0, 456, 457, 5, 111, 0, 0, 457, 458, 5, 109, 0, 0, 458, 459, 5, 109, 0, 0, 459, 460, 5, 105, 0, 0, 460, 461, 5, 116, 0, 0, 461, 68, 1, 0, 0, 0, 462, 463, 5, 114, 0, 0, 463, 464, 5, 101, 0, 0, 464, 465, 5, 118, 0, 0, 465, 466, 5, 105, 0, 0, 466, 467, 5, 115, 0, 0, 467, 468, 5, 105, 0, 0, 468, 469, 5, 111, 0, 0, 469, 470, 5, 110, 0, 0, 470, 70, 1, 0, 0, 0, 471, 472, 5, 105, 0, 0, 472, 473, 5, 100, 0, 0, 473, 72, 1, 0, 0, 0, 474, 475, 5, 100, 0, 0, 475, 476, 5, 111, 0, 0, 476, 477, 5, 99, 0, 0, 477, 74, 1, 0, 0, 0, 478, 479, 5, 109, 0, 0, 479, 480, 5, 111, 0, 0, 480, 481, 5, 100, 0, 0, 481, 482, 5, 101, 0, 0, 482, 76, 1, 0, 0, 0, 483, 484, 5, 101, 0, 0, 484, 485, 5, 109, 0, 0, 485, 486, 5, 105, 0, 0, 486, 487, 5, 116, 0, 0, 487, 488, 5, 115, 0, 0, 488, 78, 1, 0, 0, 0, 489, 490, 5, 114, 0, 0, 490, 491, 5, 101, 0, 0, 491, 492, 5, 99, 0, 0, 492, 493, 5, 101, 0, 0, 493, 494, 5, 105, 0, 0, 494, 495, 5, 118, 0, 0, 495, 496, 5, 101, 0, 0, 496, 497, 5, 114, 0, 0, 497, 80, 1, 0, 0, 0, 498, 499, 5, 114, 0, 0, 499, 500, 5, 101, 0, 0, 500, 501, 5, 113, 0, 0, 501, 502, 5, 117, 0, 0, 502, 503, 5, 105, 0, 0, 503, 504, 5, 114, 0, 0, 504, 505, 5, 101, 0, 0, 505, 506, 5, 115, 0, 0, 506, 82, 1, 0, 0, 0, 507, 508, 5, 97, 0, 0, 508, 509, 5, 110, 0, 0, 509, 510, 5, 121, 0, 0, 510, 84, 1, 0, 0, 0, 511, 512, 5, 103, 0, 0, 512, 513, 5, 101, 0, 0, 513, 514, 5, 116, 0, 0, 514, 86, 1, 0, 0, 0, 515, 516, 5, 115, 0, 0, 516, 517, 5, 101, 0, 0, 517, 518, 5, 116, 0, 0, 518, 88, 1, 0, 0, 0, 519, 520, 5, 119, 0, 0, 520, 521, 5, 97, 0, 0, 521, 522, 5, 116, 0, 0, 522, 523, 5, 99, 0, 0, 523, 524, 5, 104, 0, 0, 524, 90, 1, 0, 0, 0, 525, 526, 5, 115, 0, 0, 526, 527, 5, 116, 0, 0, 527, 528, 5, 97, 0, 0, 528, 529, 5, 114, 0, 0, 529, 530, 5, 116, 0, 0, 530, 92, 1, 0, 0, 0, 531, 532, 5, 115, 0, 0, 532, 533, 5, 116, 0, 0, 533, 534, 5, 111, 0, 0, 534, 535, 5, 112, 0, 0, 535, 94, 1, 0, 0, 0, 536, 537, 5, 114, 0, 0, 537, 538, 5, 101, 0, 0, 538, 539, 5, 97, 0, 0, 539, 540, 5, 100, 0, 0, 540, 96, 1, 0, 0, 0, 541, 542, 5, 119, 0, 0, 542, 543, 5, 114, 0, 0, 543, 544, 5, 105, 0, 0, 544, 545, 5, 116, 0, 0, 545, 546, 5, 101, 0, 0, 546, 98, 1, 0, 0, 0, 547, 548, 5, 114, 0, 0, 548, 549, 5, 101, 0, 0, 549, 550, 5, 115, 0, 0, 550, 551, 5, 111, 0, 0, 551, 552, 5, 108, 0, 0, 552, 553, 5, 118, 0, 0, 553, 554, 5, 101, 0, 0, 554, 100, 1, 0, 0, 0, 555, 556, 5, 99, 0, 0, 556, 557, 5, 111, 0, 0, 557, 558, 5, 110, 0, 0, 558, 559, 5, 110, 0, 0, 559, 560, 5, 101, 0, 0, 560, 561, 5, 99, 0, 0, 561, 562, 5, 116, 0, 0, 562, 102, 1, 0, 0, 0, 563, 564, 5, 100, 0, 0, 564, 565, 5, 105, 0, 0, 565, 566, 5, 115, 0, 0, 566, 567, 5, 99, 0, 0, 567, 568, 5, 111, 0, 0, 568, 569, 5, 110, 0, 0, 569, 570, 5, 110, 0, 0, 570, 571, 5, 101, 0, 0, 571, 572, 5, 99, 0, 0, 572, 573, 5, 116, 0, 0, 573, 104, 1, 0, 0, 0, 574, 575, 5, 99, 0, 0, 575, 576, 5, 97, 0, 0, 576, 577, 5, 108, 0, 0, 577, 578, 5, 108, 0, 0, 578, 106, 1, 0, 0, 0, 579, 580, 5, 119, 0, 0, 580, 581, 5, 97, 0, 0, 581, 582, 5, 116, 0, 0, 582, 583, 5, 99, 0, 0, 583, 584, 5, 104, 0, 0, 584, 585, 5, 45, 0, 0, 585, 586, 5, 115, 0, 0, 586, 587, 5, 116, 0, 0, 587, 588, 5, 97, 0, 0, 588, 589, 5, 114, 0, 0, 589, 590, 5, 116, 0, 0, 590, 108, 1, 0, 0, 0, 591, 592, 5, 119, 0, 0, 592, 593, 5, 97, 0, 0, 593, 594, 5, 116, 0, 0, 594, 595, 5, 99, 0, 0, 595, 596, 5, 104, 0, 0, 596, 597, 5, 45, 0, 0, 597, 598, 5, 115, 0, 0, 598, 599, 5, 116, 0, 0, 599, 600, 5, 111, 0, 0, 600, 601, 5, 112, 0, 0, 601, 110, 1, 0, 0, 0, 602, 603, 5, 115, 0, 0, 603, 604, 5, 117, 0, 0, 604, 605, 5, 98, 0, 0, 605, 606, 5, 115, 0, 0, 606, 607, 5, 99, 0, 0, 607, 608, 5, 114, 0, 0, 608, 609, 5, 105, 0, 0, 609, 610, 5, 98, 0, 0, 610, 611, 5, 101, 0, 0, 611, 112, 1, 0, 0, 0, 612, 613, 5, 117, 0, 0, 613, 614, 5, 110, 0, 0, 614, 615, 5, 115, 0, 0, 615, 616, 5, 117, 0, 0, 616, 617, 5, 98, 0, 0, 617, 618, 5, 115, 0, 0, 618, 619, 5, 99, 0, 0, 619, 620, 5, 114, 0, 0, 620, 621, 5, 105, 0, 0, 621, 622, 5, 98, 0, 0, 622, 623, 5, 101, 0, 0, 623, 114, 1, 0, 0, 0, 624, 625, 5, 111, 0, 0, 625, 626, 5, 112, 0, 0, 626, 627, 5, 116, 0, 0, 627, 628, 5, 105, 0, 0, 628, 629, 5, 109, 0, 0, 629, 630, 5, 105, 0, 0, 630, 631, 5, 115, 0, 0, 631, 632, 5, 116, 0, 0, 632, 633, 5, 105, 0, 0, 633, 634, 5, 99, 0, 0, 634, 635, 5, 45, 0, 0, 635, 636, 5, 114, 0, 0, 636, 637, 5, 101, 0, 0, 637, 638, 5, 103, 0, 0, 638, 639, 5, 105, 0, 0, 639, 640, 5, 115, 0, 0, 640, 641, 5, 116, 0, 0, 641, 642, 5, 101, 0, 0, 642, 643, 5, 114, 0, 0, 643, 116, 1, 0, 0, 0, 644, 645, 5, 99, 0, 0, 645, 646, 5, 114, 0, 0, 646, 647, 5, 100, 0, 0, 647, 648, 5, 116, 0, 0, 648, 118, 1, 0, 0, 0, 649, 650, 5, 111, 0, 0, 650, 651, 5, 112, 0, 0, 651, 652, 5, 116, 0, 0, 652, 653, 5, 105, 0, 0, 653, 654, 5, 111, 0, 0, 654, 655, 5, 110, 0, 0, 655, 656, 5, 97, 0, 0, 656, 657, 5, 108, 0, 0, 657, 658, 5, 45, 0, 0, 658, 659, 5, 111, 0, 0, 659, 660, 5, 110, 0, 0, 660, 661, 5, 101, 0, 0, 661, 120, 1, 0, 0, 0, 662, 663, 5, 101, 0, 0, 663, 664, 5, 120, 0, 0, 664, 665, 5, 97, 0, 0, 665, 666, 5, 99, 0, 0, 666, 667, 5, 116, 0, 0, 667, 668, 5, 108, 0, 0, 668, 669, 5, 121, 0, 0, 669, 670, 5, 45, 0, 0, 670, 671, 5, 111, 0, 0, 671, 672, 5, 110, 0, 0, 672, 673, 5, 101, 0, 0, 673, 122, 1, 0, 0, 0, 674, 675, 5, 109, 0, 0, 675, 676, 5, 97, 0, 0, 676, 677, 5, 110, 0, 0, 677, 678, 5, 121, 0, 0, 678, 679, 5, 45, 0, 0, 679, 680, 5, 117, 0, 0, 680, 681, 5, 110, 0, 0, 681, 682, 5, 105, 0, 0, 682, 683, 5, 113, 0, 0, 683, 684, 5, 117, 0, 0, 684, 685, 5, 101, 0, 0, 685, 124, 1, 0, 0, 0, 686, 687, 5, 109, 0, 0, 687, 688, 5, 97, 0, 0, 688, 689, 5, 110, 0, 0, 689, 690, 5, 121, 0, 0, 690, 126, 1, 0, 0, 0, 691, 692, 5, 111, 0, 0, 692, 693, 5, 114, 0, 0, 693, 694, 5, 100, 0, 0, 694, 695, 5, 101, 0, 0, 695, 696, 5, 114, 0, 0, 696, 697, 5, 101, 0, 0, 697, 698, 5, 100, 0, 0, 698, 128, 1, 0, 0, 0, 699, 700, 5, 117, 0, 0, 700, 701, 5, 110, 0, 0, 701, 702, 5, 105, 0, 0, 702, 703, 5, 116, 0, 0, 703, 130, 1, 0, 0, 0, 704, 705, 5, 119, 0, 0, 705, 706, 5, 97, 0, 0, 706, 707, 5, 116, 0, 0, 707, 708, 5, 99, 0, 0, 708, 709, 5, 104, 0, 0, 709, 710, 5, 45, 0, 0, 710, 711, 5, 104, 0, 0, 711, 712, 5, 97, 0, 0, 712, 713, 5, 110, 0, 0, 713, 714, 5, 100, 0, 0, 714, 715, 5, 108, 0, 0, 715, 716, 5, 101, 0, 0, 716, 132, 1, 0, 0, 0, 717, 718, 5, 109, 0, 0, 718, 719, 5, 101, 0, 0, 719, 720, 5, 115, 0, 0, 720, 721, 5, 115, 0, 0, 721, 722, 5, 97, 0, 0, 722, 723, 5, 103, 0, 0, 723, 724, 5, 101, 0, 0, 724, 134, 1, 0, 0, 0, 725, 726, 5, 97, 0, 0, 726, 727, 5, 116, 0, 0, 727, 728, 5, 111, 0, 0, 728, 729, 5, 109, 0, 0, 729, 730, 5, 45, 0, 0, 730, 731, 5, 114, 0, 0, 731, 732, 5, 101, 0, 0, 732, 733, 5, 102, 0, 0, 733, 136, 1, 0, 0, 0, 734, 735, 5, 105, 0, 0, 735, 736, 5, 110, 0, 0, 736, 737, 5, 116, 0, 0, 737, 738, 5, 101, 0, 0, 738, 739, 5, 114, 0, 0, 739, 740, 5, 102, 0, 0, 740, 741, 5, 97, 0, 0, 741, 742, 5, 99, 0, 0, 742, 743, 5, 101, 0, 0, 743, 744, 5, 45, 0, 0, 744, 745, 5, 114, 0, 0, 745, 746, 5, 101, 0, 0, 746, 747, 5, 102, 0, 0, 747, 138, 1, 0, 0, 0, 748, 749, 5, 111, 0, 0, 749, 750, 5, 112, 0, 0, 750, 751, 5, 116, 0, 0, 751, 752, 5, 105, 0, 0, 752, 753, 5, 111, 0, 0, 753, 754, 5, 110, 0, 0, 754, 755, 5, 97, 0, 0, 755, 756, 5, 108, 0, 0, 756, 140, 1, 0, 0, 0, 757, 758, 5, 108, 0, 0, 758, 759, 5, 105, 0, 0, 759, 760, 5, 115, 0, 0, 760, 761, 5, 116, 0, 0, 761, 142, 1, 0, 0, 0, 762, 763, 5, 98, 0, 0, 763, 764, 5, 111, 0, 0, 764, 765, 5, 111, 0, 0, 765, 766, 5, 108, 0, 0, 766, 144, 1, 0, 0, 0, 767, 768, 5, 98, 0, 0, 768, 769, 5, 121, 0, 0, 769, 770, 5, 116, 0, 0, 770, 771, 5, 101, 0, 0, 771, 772, 5, 115, 0, 0, 772, 146, 1, 0, 0, 0, 773, 774, 5, 100, 0, 0, 774, 775, 5, 111, 0, 0, 775, 776, 5, 117, 0, 0, 776, 777, 5, 98, 0, 0, 777, 778, 5, 108, 0, 0, 778, 779, 5, 101, 0, 0, 779, 148, 1, 0, 0, 0, 780, 781, 5, 105, 0, 0, 781, 782, 5, 110, 0, 0, 782, 783, 5, 116, 0, 0, 783, 784, 5, 51, 0, 0, 784, 785, 5, 50, 0, 0, 785, 150, 1, 0, 0, 0, 786, 787, 5, 105, 0, 0, 787, 788, 5, 110, 0, 0, 788, 789, 5, 116, 0, 0, 789, 790, 5, 54, 0, 0, 790, 791, 5, 52, 0, 0, 791, 152, 1, 0, 0, 0, 792, 793, 5, 115, 0, 0, 793, 794, 5, 116, 0, 0, 794, 795, 5, 114, 0, 0, 795, 796, 5, 105, 0, 0, 796, 797, 5, 110, 0, 0, 797, 798, 5, 103, 0, 0, 798, 154, 1, 0, 0, 0, 799, 800, 5, 117, 0, 0, 800, 801, 5, 105, 0, 0, 801, 802, 5, 110, 0, 0, 802, 803, 5, 116, 0, 0, 803, 804, 5, 51, 0, 0, 804, 805, 5, 50, 0, 0, 805, 156, 1, 0, 0, 0, 806, 807, 5, 117, 0, 0, 807, 808, 5, 105, 0, 0, 808, 809, 5, 110, 0, 0, 809, 810, 5, 116, 0, 0, 810, 811, 5, 54, 0, 0, 811, 812, 5, 52, 0, 0, 812, 158, 1, 0, 0, 0, 813, 814, 5, 116, 0, 0, 814, 815, 5, 114, 0, 0, 815, 816, 5, 117, 0, 0, 816, 817, 5, 101, 0, 0, 817, 160, 1, 0, 0, 0, 818, 819, 5, 102, 0, 0, 819, 820, 5, 97, 0, 0, 820, 821, 5, 108, 0, 0, 821, 822, 5, 115, 0, 0, 822, 823, 5, 101, 0, 0, 823, 162, 1, 0, 0, 0, 824, 825, 5, 110, 0, 0, 825, 826, 5, 117, 0, 0, 826, 827, 5, 108, 0, 0, 827, 828, 5, 108, 0, 0, 828, 164, 1, 0, 0, 0, 829, 830, 5, 45, 0, 0, 830, 831, 5, 62, 0, 0, 831, 166, 1, 0, 0, 0, 832, 833, 5, 58, 0, 0, 833, 168, 1, 0, 0, 0, 834, 835, 5, 59, 0, 0, 835, 170, 1, 0, 0, 0, 836, 837, 5, 44, 0, 0, 837, 172, 1, 0, 0, 0, 838, 839, 5, 46, 0, 0, 839, 174, 1, 0, 0, 0, 840, 841, 5, 123, 0, 0, 841, 176, 1, 0, 0, 0, 842, 843, 5, 125, 0, 0, 843, 178, 1, 0, 0, 0, 844, 845, 5, 91, 0, 0, 845, 180, 1, 0, 0, 0, 846, 847, 5, 93, 0, 0, 847, 182, 1, 0, 0, 0, 848, 849, 5, 40, 0, 0, 849, 184, 1, 0, 0, 0, 850, 851, 5, 41, 0, 0, 851, 186, 1, 0, 0, 0, 852, 853, 5, 60, 0, 0, 853, 188, 1, 0, 0, 0, 854, 855, 5, 62, 0, 0, 855, 190, 1, 0, 0, 0, 856, 858, 5, 45, 0, 0, 857, 856, 1, 0, 0, 0, 857, 858, 1, 0, 0, 0, 858, 860, 1, 0, 0, 0, 859, 861, 7, 0, 0, 0, 860, 859, 1, 0, 0, 0, 861, 862, 1, 0, 0, 0, 862, 860, 1, 0, 0, 0, 862, 863, 1, 0, 0, 0, 863, 192, 1, 0, 0, 0, 864, 866, 5, 45, 0, 0, 865, 864, 1, 0, 0, 0, 865, 866, 1, 0, 0, 0, 866, 875, 1, 0, 0, 0, 867, 876, 5, 48, 0, 0, 868, 872, 7, 1, 0, 0, 869, 871, 7, 0, 0, 0, 870, 869, 1, 0, 0, 0, 871, 874, 1, 0, 0, 0, 872, 870, 1, 0, 0, 0, 872, 873, 1, 0, 0, 0, 873, 876, 1, 0, 0, 0, 874, 872, 1, 0, 0, 0, 875, 867, 1, 0, 0, 0, 875, 868, 1, 0, 0, 0, 876, 883, 1, 0, 0, 0, 877, 879, 5, 46, 0, 0, 878, 880, 7, 0, 0, 0, 879, 878, 1, 0, 0, 0, 880, 881, 1, 0, 0, 0, 881, 879, 1, 0, 0, 0, 881, 882, 1, 0, 0, 0, 882, 884, 1, 0, 0, 0, 883, 877, 1, 0, 0, 0, 883, 884, 1, 0, 0, 0, 884, 894, 1, 0, 0, 0, 885, 887, 7, 2, 0, 0, 886, 888, 7, 3, 0, 0, 887, 886, 1, 0, 0, 0, 887, 888, 1, 0, 0, 0, 888, 890, 1, 0, 0, 0, 889, 891, 7, 0, 0, 0, 890, 889, 1, 0, 0, 0, 891, 892, 1, 0, 0, 0, 892, 890, 1, 0, 0, 0, 892, 893, 1, 0, 0, 0, 893, 895, 1, 0, 0, 0, 894, 885, 1, 0, 0, 0, 894, 895, 1, 0, 0, 0, 895, 194, 1, 0, 0, 0, 896, 900, 7, 4, 0, 0, 897, 899, 7, 5, 0, 0, 898, 897, 1, 0, 0, 0, 899, 902, 1, 0, 0, 0, 900, 898, 1, 0, 0, 0, 900, 901, 1, 0, 0, 0, 901, 196, 1, 0, 0, 0, 902, 900, 1, 0, 0, 0, 903, 908, 5, 34, 0, 0, 904, 907, 3, 199, 99, 0, 905, 907, 8, 6, 0, 0, 906, 904, 1, 0, 0, 0, 906, 905, 1, 0, 0, 0, 907, 910, 1, 0, 0, 0, 908, 906, 1, 0, 0, 0, 908, 909, 1, 0, 0, 0, 909, 911, 1, 0, 0, 0, 910, 908, 1, 0, 0, 0, 911, 912, 5, 34, 0, 0, 912, 198, 1, 0, 0, 0, 913, 921, 5, 92, 0, 0, 914, 922, 7, 7, 0, 0, 915, 916, 5, 117, 0, 0, 916, 917, 3, 201, 100, 0, 917, 918, 3, 201, 100, 0, 918, 919, 3, 201, 100, 0, 919, 920, 3, 201, 100, 0, 920, 922, 1, 0, 0, 0, 921, 914, 1, 0, 0, 0, 921, 915, 1, 0, 0, 0, 922, 200, 1, 0, 0, 0, 923, 924, 7, 8, 0, 0, 924, 202, 1, 0, 0, 0, 925, 926, 5, 47, 0, 0, 926, 927, 5, 47, 0, 0, 927, 931, 1, 0, 0, 0, 928, 930, 8, 9, 0, 0, 929, 928, 1, 0, 0, 0, 930, 933, 1, 0, 0, 0, 931, 929, 1, 0, 0, 0, 931, 932, 1, 0, 0, 0, 932, 934, 1, 0, 0, 0, 933, 931, 1, 0, 0, 0, 934, 935, 6, 101, 0, 0, 935, 204, 1, 0, 0, 0, 936, 937, 5, 47, 0, 0, 937, 938, 5, 42, 0, 0, 938, 942, 1, 0, 0, 0, 939, 941, 9, 0, 0, 0, 940, 939, 1, 0, 0, 0, 941, 944, 1, 0, 0, 0, 942, 943, 1, 0, 0, 0, 942, 940, 1, 0, 0, 0, 943, 945, 1, 0, 0, 0, 944, 942, 1, 0, 0, 0, 945, 946, 5, 42, 0, 0, 946, 947, 5, 47, 0, 0, 947, 948, 1, 0, 0, 0, 948, 949, 6, 102, 0, 0, 949, 206, 1, 0, 0, 0, 950, 952, 7, 10, 0, 0, 951, 950, 1, 0, 0, 0, 952, 953, 1, 0, 0, 0, 953, 951, 1, 0, 0, 0, 953, 954, 1, 0, 0, 0, 954, 955, 1, 0, 0, 0, 955, 956, 6, 103, 0, 0, 956, 208, 1, 0, 0, 0, 18, 0, 857, 862, 865, 872, 875, 881, 883, 887, 892, 894, 900, 906, 908, 921, 931, 942, 953, 1, 6, 0, 0] \ No newline at end of file +[4, 0, 104, 976, 6, -1, 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, 2, 92, 7, 92, 2, 93, 7, 93, 2, 94, 7, 94, 2, 95, 7, 95, 2, 96, 7, 96, 2, 97, 7, 97, 2, 98, 7, 98, 2, 99, 7, 99, 2, 100, 7, 100, 2, 101, 7, 101, 2, 102, 7, 102, 2, 103, 7, 103, 2, 104, 7, 104, 2, 105, 7, 105, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 84, 1, 84, 1, 84, 1, 85, 1, 85, 1, 86, 1, 86, 1, 87, 1, 87, 1, 88, 1, 88, 1, 89, 1, 89, 1, 90, 1, 90, 1, 91, 1, 91, 1, 92, 1, 92, 1, 93, 1, 93, 1, 94, 1, 94, 1, 95, 1, 95, 1, 96, 1, 96, 1, 97, 3, 97, 877, 8, 97, 1, 97, 4, 97, 880, 8, 97, 11, 97, 12, 97, 881, 1, 98, 3, 98, 885, 8, 98, 1, 98, 1, 98, 1, 98, 5, 98, 890, 8, 98, 10, 98, 12, 98, 893, 9, 98, 3, 98, 895, 8, 98, 1, 98, 1, 98, 4, 98, 899, 8, 98, 11, 98, 12, 98, 900, 3, 98, 903, 8, 98, 1, 98, 1, 98, 3, 98, 907, 8, 98, 1, 98, 4, 98, 910, 8, 98, 11, 98, 12, 98, 911, 3, 98, 914, 8, 98, 1, 99, 1, 99, 5, 99, 918, 8, 99, 10, 99, 12, 99, 921, 9, 99, 1, 100, 1, 100, 1, 100, 5, 100, 926, 8, 100, 10, 100, 12, 100, 929, 9, 100, 1, 100, 1, 100, 1, 101, 1, 101, 1, 101, 1, 101, 1, 101, 1, 101, 1, 101, 1, 101, 3, 101, 941, 8, 101, 1, 102, 1, 102, 1, 103, 1, 103, 1, 103, 1, 103, 5, 103, 949, 8, 103, 10, 103, 12, 103, 952, 9, 103, 1, 103, 1, 103, 1, 104, 1, 104, 1, 104, 1, 104, 5, 104, 960, 8, 104, 10, 104, 12, 104, 963, 9, 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 105, 4, 105, 971, 8, 105, 11, 105, 12, 105, 972, 1, 105, 1, 105, 1, 961, 0, 106, 1, 1, 3, 2, 5, 3, 7, 4, 9, 5, 11, 6, 13, 7, 15, 8, 17, 9, 19, 10, 21, 11, 23, 12, 25, 13, 27, 14, 29, 15, 31, 16, 33, 17, 35, 18, 37, 19, 39, 20, 41, 21, 43, 22, 45, 23, 47, 24, 49, 25, 51, 26, 53, 27, 55, 28, 57, 29, 59, 30, 61, 31, 63, 32, 65, 33, 67, 34, 69, 35, 71, 36, 73, 37, 75, 38, 77, 39, 79, 40, 81, 41, 83, 42, 85, 43, 87, 44, 89, 45, 91, 46, 93, 47, 95, 48, 97, 49, 99, 50, 101, 51, 103, 52, 105, 53, 107, 54, 109, 55, 111, 56, 113, 57, 115, 58, 117, 59, 119, 60, 121, 61, 123, 62, 125, 63, 127, 64, 129, 65, 131, 66, 133, 67, 135, 68, 137, 69, 139, 70, 141, 71, 143, 72, 145, 73, 147, 74, 149, 75, 151, 76, 153, 77, 155, 78, 157, 79, 159, 80, 161, 81, 163, 82, 165, 83, 167, 84, 169, 85, 171, 86, 173, 87, 175, 88, 177, 89, 179, 90, 181, 91, 183, 92, 185, 93, 187, 94, 189, 95, 191, 96, 193, 97, 195, 98, 197, 99, 199, 100, 201, 101, 203, 0, 205, 0, 207, 102, 209, 103, 211, 104, 1, 0, 11, 1, 0, 48, 57, 1, 0, 49, 57, 2, 0, 69, 69, 101, 101, 2, 0, 43, 43, 45, 45, 3, 0, 65, 90, 95, 95, 97, 122, 4, 0, 48, 57, 65, 90, 95, 95, 97, 122, 4, 0, 10, 10, 13, 13, 34, 34, 92, 92, 8, 0, 34, 34, 47, 47, 92, 92, 98, 98, 102, 102, 110, 110, 114, 114, 116, 116, 3, 0, 48, 57, 65, 70, 97, 102, 2, 0, 10, 10, 13, 13, 3, 0, 9, 10, 13, 13, 32, 32, 990, 0, 1, 1, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 5, 1, 0, 0, 0, 0, 7, 1, 0, 0, 0, 0, 9, 1, 0, 0, 0, 0, 11, 1, 0, 0, 0, 0, 13, 1, 0, 0, 0, 0, 15, 1, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 19, 1, 0, 0, 0, 0, 21, 1, 0, 0, 0, 0, 23, 1, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 27, 1, 0, 0, 0, 0, 29, 1, 0, 0, 0, 0, 31, 1, 0, 0, 0, 0, 33, 1, 0, 0, 0, 0, 35, 1, 0, 0, 0, 0, 37, 1, 0, 0, 0, 0, 39, 1, 0, 0, 0, 0, 41, 1, 0, 0, 0, 0, 43, 1, 0, 0, 0, 0, 45, 1, 0, 0, 0, 0, 47, 1, 0, 0, 0, 0, 49, 1, 0, 0, 0, 0, 51, 1, 0, 0, 0, 0, 53, 1, 0, 0, 0, 0, 55, 1, 0, 0, 0, 0, 57, 1, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 61, 1, 0, 0, 0, 0, 63, 1, 0, 0, 0, 0, 65, 1, 0, 0, 0, 0, 67, 1, 0, 0, 0, 0, 69, 1, 0, 0, 0, 0, 71, 1, 0, 0, 0, 0, 73, 1, 0, 0, 0, 0, 75, 1, 0, 0, 0, 0, 77, 1, 0, 0, 0, 0, 79, 1, 0, 0, 0, 0, 81, 1, 0, 0, 0, 0, 83, 1, 0, 0, 0, 0, 85, 1, 0, 0, 0, 0, 87, 1, 0, 0, 0, 0, 89, 1, 0, 0, 0, 0, 91, 1, 0, 0, 0, 0, 93, 1, 0, 0, 0, 0, 95, 1, 0, 0, 0, 0, 97, 1, 0, 0, 0, 0, 99, 1, 0, 0, 0, 0, 101, 1, 0, 0, 0, 0, 103, 1, 0, 0, 0, 0, 105, 1, 0, 0, 0, 0, 107, 1, 0, 0, 0, 0, 109, 1, 0, 0, 0, 0, 111, 1, 0, 0, 0, 0, 113, 1, 0, 0, 0, 0, 115, 1, 0, 0, 0, 0, 117, 1, 0, 0, 0, 0, 119, 1, 0, 0, 0, 0, 121, 1, 0, 0, 0, 0, 123, 1, 0, 0, 0, 0, 125, 1, 0, 0, 0, 0, 127, 1, 0, 0, 0, 0, 129, 1, 0, 0, 0, 0, 131, 1, 0, 0, 0, 0, 133, 1, 0, 0, 0, 0, 135, 1, 0, 0, 0, 0, 137, 1, 0, 0, 0, 0, 139, 1, 0, 0, 0, 0, 141, 1, 0, 0, 0, 0, 143, 1, 0, 0, 0, 0, 145, 1, 0, 0, 0, 0, 147, 1, 0, 0, 0, 0, 149, 1, 0, 0, 0, 0, 151, 1, 0, 0, 0, 0, 153, 1, 0, 0, 0, 0, 155, 1, 0, 0, 0, 0, 157, 1, 0, 0, 0, 0, 159, 1, 0, 0, 0, 0, 161, 1, 0, 0, 0, 0, 163, 1, 0, 0, 0, 0, 165, 1, 0, 0, 0, 0, 167, 1, 0, 0, 0, 0, 169, 1, 0, 0, 0, 0, 171, 1, 0, 0, 0, 0, 173, 1, 0, 0, 0, 0, 175, 1, 0, 0, 0, 0, 177, 1, 0, 0, 0, 0, 179, 1, 0, 0, 0, 0, 181, 1, 0, 0, 0, 0, 183, 1, 0, 0, 0, 0, 185, 1, 0, 0, 0, 0, 187, 1, 0, 0, 0, 0, 189, 1, 0, 0, 0, 0, 191, 1, 0, 0, 0, 0, 193, 1, 0, 0, 0, 0, 195, 1, 0, 0, 0, 0, 197, 1, 0, 0, 0, 0, 199, 1, 0, 0, 0, 0, 201, 1, 0, 0, 0, 0, 207, 1, 0, 0, 0, 0, 209, 1, 0, 0, 0, 0, 211, 1, 0, 0, 0, 1, 213, 1, 0, 0, 0, 3, 223, 1, 0, 0, 0, 5, 232, 1, 0, 0, 0, 7, 239, 1, 0, 0, 0, 9, 248, 1, 0, 0, 0, 11, 253, 1, 0, 0, 0, 13, 263, 1, 0, 0, 0, 15, 274, 1, 0, 0, 0, 17, 282, 1, 0, 0, 0, 19, 288, 1, 0, 0, 0, 21, 297, 1, 0, 0, 0, 23, 307, 1, 0, 0, 0, 25, 316, 1, 0, 0, 0, 27, 328, 1, 0, 0, 0, 29, 339, 1, 0, 0, 0, 31, 345, 1, 0, 0, 0, 33, 353, 1, 0, 0, 0, 35, 356, 1, 0, 0, 0, 37, 361, 1, 0, 0, 0, 39, 364, 1, 0, 0, 0, 41, 372, 1, 0, 0, 0, 43, 379, 1, 0, 0, 0, 45, 385, 1, 0, 0, 0, 47, 390, 1, 0, 0, 0, 49, 401, 1, 0, 0, 0, 51, 406, 1, 0, 0, 0, 53, 412, 1, 0, 0, 0, 55, 416, 1, 0, 0, 0, 57, 428, 1, 0, 0, 0, 59, 431, 1, 0, 0, 0, 61, 438, 1, 0, 0, 0, 63, 441, 1, 0, 0, 0, 65, 448, 1, 0, 0, 0, 67, 456, 1, 0, 0, 0, 69, 463, 1, 0, 0, 0, 71, 474, 1, 0, 0, 0, 73, 481, 1, 0, 0, 0, 75, 490, 1, 0, 0, 0, 77, 493, 1, 0, 0, 0, 79, 497, 1, 0, 0, 0, 81, 502, 1, 0, 0, 0, 83, 508, 1, 0, 0, 0, 85, 517, 1, 0, 0, 0, 87, 526, 1, 0, 0, 0, 89, 530, 1, 0, 0, 0, 91, 534, 1, 0, 0, 0, 93, 538, 1, 0, 0, 0, 95, 544, 1, 0, 0, 0, 97, 550, 1, 0, 0, 0, 99, 555, 1, 0, 0, 0, 101, 560, 1, 0, 0, 0, 103, 566, 1, 0, 0, 0, 105, 574, 1, 0, 0, 0, 107, 582, 1, 0, 0, 0, 109, 593, 1, 0, 0, 0, 111, 598, 1, 0, 0, 0, 113, 610, 1, 0, 0, 0, 115, 621, 1, 0, 0, 0, 117, 631, 1, 0, 0, 0, 119, 643, 1, 0, 0, 0, 121, 663, 1, 0, 0, 0, 123, 668, 1, 0, 0, 0, 125, 681, 1, 0, 0, 0, 127, 693, 1, 0, 0, 0, 129, 705, 1, 0, 0, 0, 131, 710, 1, 0, 0, 0, 133, 718, 1, 0, 0, 0, 135, 723, 1, 0, 0, 0, 137, 736, 1, 0, 0, 0, 139, 744, 1, 0, 0, 0, 141, 753, 1, 0, 0, 0, 143, 767, 1, 0, 0, 0, 145, 776, 1, 0, 0, 0, 147, 781, 1, 0, 0, 0, 149, 786, 1, 0, 0, 0, 151, 792, 1, 0, 0, 0, 153, 799, 1, 0, 0, 0, 155, 805, 1, 0, 0, 0, 157, 811, 1, 0, 0, 0, 159, 818, 1, 0, 0, 0, 161, 825, 1, 0, 0, 0, 163, 832, 1, 0, 0, 0, 165, 837, 1, 0, 0, 0, 167, 843, 1, 0, 0, 0, 169, 848, 1, 0, 0, 0, 171, 851, 1, 0, 0, 0, 173, 853, 1, 0, 0, 0, 175, 855, 1, 0, 0, 0, 177, 857, 1, 0, 0, 0, 179, 859, 1, 0, 0, 0, 181, 861, 1, 0, 0, 0, 183, 863, 1, 0, 0, 0, 185, 865, 1, 0, 0, 0, 187, 867, 1, 0, 0, 0, 189, 869, 1, 0, 0, 0, 191, 871, 1, 0, 0, 0, 193, 873, 1, 0, 0, 0, 195, 876, 1, 0, 0, 0, 197, 884, 1, 0, 0, 0, 199, 915, 1, 0, 0, 0, 201, 922, 1, 0, 0, 0, 203, 932, 1, 0, 0, 0, 205, 942, 1, 0, 0, 0, 207, 944, 1, 0, 0, 0, 209, 955, 1, 0, 0, 0, 211, 970, 1, 0, 0, 0, 213, 214, 5, 119, 0, 0, 214, 215, 5, 111, 0, 0, 215, 216, 5, 114, 0, 0, 216, 217, 5, 107, 0, 0, 217, 218, 5, 115, 0, 0, 218, 219, 5, 112, 0, 0, 219, 220, 5, 97, 0, 0, 220, 221, 5, 99, 0, 0, 221, 222, 5, 101, 0, 0, 222, 2, 1, 0, 0, 0, 223, 224, 5, 102, 0, 0, 224, 225, 5, 114, 0, 0, 225, 226, 5, 97, 0, 0, 226, 227, 5, 103, 0, 0, 227, 228, 5, 109, 0, 0, 228, 229, 5, 101, 0, 0, 229, 230, 5, 110, 0, 0, 230, 231, 5, 116, 0, 0, 231, 4, 1, 0, 0, 0, 232, 233, 5, 105, 0, 0, 233, 234, 5, 109, 0, 0, 234, 235, 5, 112, 0, 0, 235, 236, 5, 111, 0, 0, 236, 237, 5, 114, 0, 0, 237, 238, 5, 116, 0, 0, 238, 6, 1, 0, 0, 0, 239, 240, 5, 101, 0, 0, 240, 241, 5, 120, 0, 0, 241, 242, 5, 116, 0, 0, 242, 243, 5, 101, 0, 0, 243, 244, 5, 114, 0, 0, 244, 245, 5, 110, 0, 0, 245, 246, 5, 97, 0, 0, 246, 247, 5, 108, 0, 0, 247, 8, 1, 0, 0, 0, 248, 249, 5, 97, 0, 0, 249, 250, 5, 116, 0, 0, 250, 251, 5, 111, 0, 0, 251, 252, 5, 109, 0, 0, 252, 10, 1, 0, 0, 0, 253, 254, 5, 105, 0, 0, 254, 255, 5, 110, 0, 0, 255, 256, 5, 116, 0, 0, 256, 257, 5, 101, 0, 0, 257, 258, 5, 114, 0, 0, 258, 259, 5, 102, 0, 0, 259, 260, 5, 97, 0, 0, 260, 261, 5, 99, 0, 0, 261, 262, 5, 101, 0, 0, 262, 12, 1, 0, 0, 0, 263, 264, 5, 105, 0, 0, 264, 265, 5, 110, 0, 0, 265, 266, 5, 116, 0, 0, 266, 267, 5, 101, 0, 0, 267, 268, 5, 114, 0, 0, 268, 269, 5, 102, 0, 0, 269, 270, 5, 97, 0, 0, 270, 271, 5, 99, 0, 0, 271, 272, 5, 101, 0, 0, 272, 273, 5, 115, 0, 0, 273, 14, 1, 0, 0, 0, 274, 275, 5, 112, 0, 0, 275, 276, 5, 97, 0, 0, 276, 277, 5, 99, 0, 0, 277, 278, 5, 107, 0, 0, 278, 279, 5, 97, 0, 0, 279, 280, 5, 103, 0, 0, 280, 281, 5, 101, 0, 0, 281, 16, 1, 0, 0, 0, 282, 283, 5, 118, 0, 0, 283, 284, 5, 97, 0, 0, 284, 285, 5, 108, 0, 0, 285, 286, 5, 117, 0, 0, 286, 287, 5, 101, 0, 0, 287, 18, 1, 0, 0, 0, 288, 289, 5, 114, 0, 0, 289, 290, 5, 101, 0, 0, 290, 291, 5, 108, 0, 0, 291, 292, 5, 97, 0, 0, 292, 293, 5, 116, 0, 0, 293, 294, 5, 105, 0, 0, 294, 295, 5, 111, 0, 0, 295, 296, 5, 110, 0, 0, 296, 20, 1, 0, 0, 0, 297, 298, 5, 111, 0, 0, 298, 299, 5, 112, 0, 0, 299, 300, 5, 101, 0, 0, 300, 301, 5, 114, 0, 0, 301, 302, 5, 97, 0, 0, 302, 303, 5, 116, 0, 0, 303, 304, 5, 105, 0, 0, 304, 305, 5, 111, 0, 0, 305, 306, 5, 110, 0, 0, 306, 22, 1, 0, 0, 0, 307, 308, 5, 102, 0, 0, 308, 309, 5, 117, 0, 0, 309, 310, 5, 110, 0, 0, 310, 311, 5, 99, 0, 0, 311, 312, 5, 116, 0, 0, 312, 313, 5, 105, 0, 0, 313, 314, 5, 111, 0, 0, 314, 315, 5, 110, 0, 0, 315, 24, 1, 0, 0, 0, 316, 317, 5, 99, 0, 0, 317, 318, 5, 111, 0, 0, 318, 319, 5, 110, 0, 0, 319, 320, 5, 115, 0, 0, 320, 321, 5, 116, 0, 0, 321, 322, 5, 114, 0, 0, 322, 323, 5, 117, 0, 0, 323, 324, 5, 99, 0, 0, 324, 325, 5, 116, 0, 0, 325, 326, 5, 111, 0, 0, 326, 327, 5, 114, 0, 0, 327, 26, 1, 0, 0, 0, 328, 329, 5, 99, 0, 0, 329, 330, 5, 111, 0, 0, 330, 331, 5, 110, 0, 0, 331, 332, 5, 115, 0, 0, 332, 333, 5, 116, 0, 0, 333, 334, 5, 114, 0, 0, 334, 335, 5, 117, 0, 0, 335, 336, 5, 99, 0, 0, 336, 337, 5, 116, 0, 0, 337, 338, 5, 115, 0, 0, 338, 28, 1, 0, 0, 0, 339, 340, 5, 105, 0, 0, 340, 341, 5, 110, 0, 0, 341, 342, 5, 112, 0, 0, 342, 343, 5, 117, 0, 0, 343, 344, 5, 116, 0, 0, 344, 30, 1, 0, 0, 0, 345, 346, 5, 99, 0, 0, 346, 347, 5, 111, 0, 0, 347, 348, 5, 110, 0, 0, 348, 349, 5, 102, 0, 0, 349, 350, 5, 111, 0, 0, 350, 351, 5, 114, 0, 0, 351, 352, 5, 109, 0, 0, 352, 32, 1, 0, 0, 0, 353, 354, 5, 97, 0, 0, 354, 355, 5, 115, 0, 0, 355, 34, 1, 0, 0, 0, 356, 357, 5, 98, 0, 0, 357, 358, 5, 105, 0, 0, 358, 359, 5, 110, 0, 0, 359, 360, 5, 100, 0, 0, 360, 36, 1, 0, 0, 0, 361, 362, 5, 116, 0, 0, 362, 363, 5, 111, 0, 0, 363, 38, 1, 0, 0, 0, 364, 365, 5, 112, 0, 0, 365, 366, 5, 114, 0, 0, 366, 367, 5, 105, 0, 0, 367, 368, 5, 118, 0, 0, 368, 369, 5, 97, 0, 0, 369, 370, 5, 116, 0, 0, 370, 371, 5, 101, 0, 0, 371, 40, 1, 0, 0, 0, 372, 373, 5, 115, 0, 0, 373, 374, 5, 104, 0, 0, 374, 375, 5, 97, 0, 0, 375, 376, 5, 114, 0, 0, 376, 377, 5, 101, 0, 0, 377, 378, 5, 100, 0, 0, 378, 42, 1, 0, 0, 0, 379, 380, 5, 115, 0, 0, 380, 381, 5, 116, 0, 0, 381, 382, 5, 97, 0, 0, 382, 383, 5, 116, 0, 0, 383, 384, 5, 101, 0, 0, 384, 44, 1, 0, 0, 0, 385, 386, 5, 101, 0, 0, 386, 387, 5, 100, 0, 0, 387, 388, 5, 103, 0, 0, 388, 389, 5, 101, 0, 0, 389, 46, 1, 0, 0, 0, 390, 391, 5, 112, 0, 0, 391, 392, 5, 114, 0, 0, 392, 393, 5, 111, 0, 0, 393, 394, 5, 106, 0, 0, 394, 395, 5, 101, 0, 0, 395, 396, 5, 99, 0, 0, 396, 397, 5, 116, 0, 0, 397, 398, 5, 105, 0, 0, 398, 399, 5, 111, 0, 0, 399, 400, 5, 110, 0, 0, 400, 48, 1, 0, 0, 0, 401, 402, 5, 119, 0, 0, 402, 403, 5, 105, 0, 0, 403, 404, 5, 116, 0, 0, 404, 405, 5, 104, 0, 0, 405, 50, 1, 0, 0, 0, 406, 407, 5, 117, 0, 0, 407, 408, 5, 115, 0, 0, 408, 409, 5, 105, 0, 0, 409, 410, 5, 110, 0, 0, 410, 411, 5, 103, 0, 0, 411, 52, 1, 0, 0, 0, 412, 413, 5, 118, 0, 0, 413, 414, 5, 105, 0, 0, 414, 415, 5, 97, 0, 0, 415, 54, 1, 0, 0, 0, 416, 417, 5, 109, 0, 0, 417, 418, 5, 97, 0, 0, 418, 419, 5, 116, 0, 0, 419, 420, 5, 101, 0, 0, 420, 421, 5, 114, 0, 0, 421, 422, 5, 105, 0, 0, 422, 423, 5, 97, 0, 0, 423, 424, 5, 108, 0, 0, 424, 425, 5, 105, 0, 0, 425, 426, 5, 122, 0, 0, 426, 427, 5, 101, 0, 0, 427, 56, 1, 0, 0, 0, 428, 429, 5, 105, 0, 0, 429, 430, 5, 102, 0, 0, 430, 58, 1, 0, 0, 0, 431, 432, 5, 97, 0, 0, 432, 433, 5, 98, 0, 0, 433, 434, 5, 115, 0, 0, 434, 435, 5, 101, 0, 0, 435, 436, 5, 110, 0, 0, 436, 437, 5, 116, 0, 0, 437, 60, 1, 0, 0, 0, 438, 439, 5, 111, 0, 0, 439, 440, 5, 110, 0, 0, 440, 62, 1, 0, 0, 0, 441, 442, 5, 112, 0, 0, 442, 443, 5, 111, 0, 0, 443, 444, 5, 108, 0, 0, 444, 445, 5, 105, 0, 0, 445, 446, 5, 99, 0, 0, 446, 447, 5, 121, 0, 0, 447, 64, 1, 0, 0, 0, 448, 449, 5, 100, 0, 0, 449, 450, 5, 101, 0, 0, 450, 451, 5, 102, 0, 0, 451, 452, 5, 97, 0, 0, 452, 453, 5, 117, 0, 0, 453, 454, 5, 108, 0, 0, 454, 455, 5, 116, 0, 0, 455, 66, 1, 0, 0, 0, 456, 457, 5, 115, 0, 0, 457, 458, 5, 111, 0, 0, 458, 459, 5, 117, 0, 0, 459, 460, 5, 114, 0, 0, 460, 461, 5, 99, 0, 0, 461, 462, 5, 101, 0, 0, 462, 68, 1, 0, 0, 0, 463, 464, 5, 114, 0, 0, 464, 465, 5, 101, 0, 0, 465, 466, 5, 112, 0, 0, 466, 467, 5, 111, 0, 0, 467, 468, 5, 115, 0, 0, 468, 469, 5, 105, 0, 0, 469, 470, 5, 116, 0, 0, 470, 471, 5, 111, 0, 0, 471, 472, 5, 114, 0, 0, 472, 473, 5, 121, 0, 0, 473, 70, 1, 0, 0, 0, 474, 475, 5, 99, 0, 0, 475, 476, 5, 111, 0, 0, 476, 477, 5, 109, 0, 0, 477, 478, 5, 109, 0, 0, 478, 479, 5, 105, 0, 0, 479, 480, 5, 116, 0, 0, 480, 72, 1, 0, 0, 0, 481, 482, 5, 114, 0, 0, 482, 483, 5, 101, 0, 0, 483, 484, 5, 118, 0, 0, 484, 485, 5, 105, 0, 0, 485, 486, 5, 115, 0, 0, 486, 487, 5, 105, 0, 0, 487, 488, 5, 111, 0, 0, 488, 489, 5, 110, 0, 0, 489, 74, 1, 0, 0, 0, 490, 491, 5, 105, 0, 0, 491, 492, 5, 100, 0, 0, 492, 76, 1, 0, 0, 0, 493, 494, 5, 100, 0, 0, 494, 495, 5, 111, 0, 0, 495, 496, 5, 99, 0, 0, 496, 78, 1, 0, 0, 0, 497, 498, 5, 109, 0, 0, 498, 499, 5, 111, 0, 0, 499, 500, 5, 100, 0, 0, 500, 501, 5, 101, 0, 0, 501, 80, 1, 0, 0, 0, 502, 503, 5, 101, 0, 0, 503, 504, 5, 109, 0, 0, 504, 505, 5, 105, 0, 0, 505, 506, 5, 116, 0, 0, 506, 507, 5, 115, 0, 0, 507, 82, 1, 0, 0, 0, 508, 509, 5, 114, 0, 0, 509, 510, 5, 101, 0, 0, 510, 511, 5, 99, 0, 0, 511, 512, 5, 101, 0, 0, 512, 513, 5, 105, 0, 0, 513, 514, 5, 118, 0, 0, 514, 515, 5, 101, 0, 0, 515, 516, 5, 114, 0, 0, 516, 84, 1, 0, 0, 0, 517, 518, 5, 114, 0, 0, 518, 519, 5, 101, 0, 0, 519, 520, 5, 113, 0, 0, 520, 521, 5, 117, 0, 0, 521, 522, 5, 105, 0, 0, 522, 523, 5, 114, 0, 0, 523, 524, 5, 101, 0, 0, 524, 525, 5, 115, 0, 0, 525, 86, 1, 0, 0, 0, 526, 527, 5, 97, 0, 0, 527, 528, 5, 110, 0, 0, 528, 529, 5, 121, 0, 0, 529, 88, 1, 0, 0, 0, 530, 531, 5, 103, 0, 0, 531, 532, 5, 101, 0, 0, 532, 533, 5, 116, 0, 0, 533, 90, 1, 0, 0, 0, 534, 535, 5, 115, 0, 0, 535, 536, 5, 101, 0, 0, 536, 537, 5, 116, 0, 0, 537, 92, 1, 0, 0, 0, 538, 539, 5, 119, 0, 0, 539, 540, 5, 97, 0, 0, 540, 541, 5, 116, 0, 0, 541, 542, 5, 99, 0, 0, 542, 543, 5, 104, 0, 0, 543, 94, 1, 0, 0, 0, 544, 545, 5, 115, 0, 0, 545, 546, 5, 116, 0, 0, 546, 547, 5, 97, 0, 0, 547, 548, 5, 114, 0, 0, 548, 549, 5, 116, 0, 0, 549, 96, 1, 0, 0, 0, 550, 551, 5, 115, 0, 0, 551, 552, 5, 116, 0, 0, 552, 553, 5, 111, 0, 0, 553, 554, 5, 112, 0, 0, 554, 98, 1, 0, 0, 0, 555, 556, 5, 114, 0, 0, 556, 557, 5, 101, 0, 0, 557, 558, 5, 97, 0, 0, 558, 559, 5, 100, 0, 0, 559, 100, 1, 0, 0, 0, 560, 561, 5, 119, 0, 0, 561, 562, 5, 114, 0, 0, 562, 563, 5, 105, 0, 0, 563, 564, 5, 116, 0, 0, 564, 565, 5, 101, 0, 0, 565, 102, 1, 0, 0, 0, 566, 567, 5, 114, 0, 0, 567, 568, 5, 101, 0, 0, 568, 569, 5, 115, 0, 0, 569, 570, 5, 111, 0, 0, 570, 571, 5, 108, 0, 0, 571, 572, 5, 118, 0, 0, 572, 573, 5, 101, 0, 0, 573, 104, 1, 0, 0, 0, 574, 575, 5, 99, 0, 0, 575, 576, 5, 111, 0, 0, 576, 577, 5, 110, 0, 0, 577, 578, 5, 110, 0, 0, 578, 579, 5, 101, 0, 0, 579, 580, 5, 99, 0, 0, 580, 581, 5, 116, 0, 0, 581, 106, 1, 0, 0, 0, 582, 583, 5, 100, 0, 0, 583, 584, 5, 105, 0, 0, 584, 585, 5, 115, 0, 0, 585, 586, 5, 99, 0, 0, 586, 587, 5, 111, 0, 0, 587, 588, 5, 110, 0, 0, 588, 589, 5, 110, 0, 0, 589, 590, 5, 101, 0, 0, 590, 591, 5, 99, 0, 0, 591, 592, 5, 116, 0, 0, 592, 108, 1, 0, 0, 0, 593, 594, 5, 99, 0, 0, 594, 595, 5, 97, 0, 0, 595, 596, 5, 108, 0, 0, 596, 597, 5, 108, 0, 0, 597, 110, 1, 0, 0, 0, 598, 599, 5, 119, 0, 0, 599, 600, 5, 97, 0, 0, 600, 601, 5, 116, 0, 0, 601, 602, 5, 99, 0, 0, 602, 603, 5, 104, 0, 0, 603, 604, 5, 45, 0, 0, 604, 605, 5, 115, 0, 0, 605, 606, 5, 116, 0, 0, 606, 607, 5, 97, 0, 0, 607, 608, 5, 114, 0, 0, 608, 609, 5, 116, 0, 0, 609, 112, 1, 0, 0, 0, 610, 611, 5, 119, 0, 0, 611, 612, 5, 97, 0, 0, 612, 613, 5, 116, 0, 0, 613, 614, 5, 99, 0, 0, 614, 615, 5, 104, 0, 0, 615, 616, 5, 45, 0, 0, 616, 617, 5, 115, 0, 0, 617, 618, 5, 116, 0, 0, 618, 619, 5, 111, 0, 0, 619, 620, 5, 112, 0, 0, 620, 114, 1, 0, 0, 0, 621, 622, 5, 115, 0, 0, 622, 623, 5, 117, 0, 0, 623, 624, 5, 98, 0, 0, 624, 625, 5, 115, 0, 0, 625, 626, 5, 99, 0, 0, 626, 627, 5, 114, 0, 0, 627, 628, 5, 105, 0, 0, 628, 629, 5, 98, 0, 0, 629, 630, 5, 101, 0, 0, 630, 116, 1, 0, 0, 0, 631, 632, 5, 117, 0, 0, 632, 633, 5, 110, 0, 0, 633, 634, 5, 115, 0, 0, 634, 635, 5, 117, 0, 0, 635, 636, 5, 98, 0, 0, 636, 637, 5, 115, 0, 0, 637, 638, 5, 99, 0, 0, 638, 639, 5, 114, 0, 0, 639, 640, 5, 105, 0, 0, 640, 641, 5, 98, 0, 0, 641, 642, 5, 101, 0, 0, 642, 118, 1, 0, 0, 0, 643, 644, 5, 111, 0, 0, 644, 645, 5, 112, 0, 0, 645, 646, 5, 116, 0, 0, 646, 647, 5, 105, 0, 0, 647, 648, 5, 109, 0, 0, 648, 649, 5, 105, 0, 0, 649, 650, 5, 115, 0, 0, 650, 651, 5, 116, 0, 0, 651, 652, 5, 105, 0, 0, 652, 653, 5, 99, 0, 0, 653, 654, 5, 45, 0, 0, 654, 655, 5, 114, 0, 0, 655, 656, 5, 101, 0, 0, 656, 657, 5, 103, 0, 0, 657, 658, 5, 105, 0, 0, 658, 659, 5, 115, 0, 0, 659, 660, 5, 116, 0, 0, 660, 661, 5, 101, 0, 0, 661, 662, 5, 114, 0, 0, 662, 120, 1, 0, 0, 0, 663, 664, 5, 99, 0, 0, 664, 665, 5, 114, 0, 0, 665, 666, 5, 100, 0, 0, 666, 667, 5, 116, 0, 0, 667, 122, 1, 0, 0, 0, 668, 669, 5, 111, 0, 0, 669, 670, 5, 112, 0, 0, 670, 671, 5, 116, 0, 0, 671, 672, 5, 105, 0, 0, 672, 673, 5, 111, 0, 0, 673, 674, 5, 110, 0, 0, 674, 675, 5, 97, 0, 0, 675, 676, 5, 108, 0, 0, 676, 677, 5, 45, 0, 0, 677, 678, 5, 111, 0, 0, 678, 679, 5, 110, 0, 0, 679, 680, 5, 101, 0, 0, 680, 124, 1, 0, 0, 0, 681, 682, 5, 101, 0, 0, 682, 683, 5, 120, 0, 0, 683, 684, 5, 97, 0, 0, 684, 685, 5, 99, 0, 0, 685, 686, 5, 116, 0, 0, 686, 687, 5, 108, 0, 0, 687, 688, 5, 121, 0, 0, 688, 689, 5, 45, 0, 0, 689, 690, 5, 111, 0, 0, 690, 691, 5, 110, 0, 0, 691, 692, 5, 101, 0, 0, 692, 126, 1, 0, 0, 0, 693, 694, 5, 109, 0, 0, 694, 695, 5, 97, 0, 0, 695, 696, 5, 110, 0, 0, 696, 697, 5, 121, 0, 0, 697, 698, 5, 45, 0, 0, 698, 699, 5, 117, 0, 0, 699, 700, 5, 110, 0, 0, 700, 701, 5, 105, 0, 0, 701, 702, 5, 113, 0, 0, 702, 703, 5, 117, 0, 0, 703, 704, 5, 101, 0, 0, 704, 128, 1, 0, 0, 0, 705, 706, 5, 109, 0, 0, 706, 707, 5, 97, 0, 0, 707, 708, 5, 110, 0, 0, 708, 709, 5, 121, 0, 0, 709, 130, 1, 0, 0, 0, 710, 711, 5, 111, 0, 0, 711, 712, 5, 114, 0, 0, 712, 713, 5, 100, 0, 0, 713, 714, 5, 101, 0, 0, 714, 715, 5, 114, 0, 0, 715, 716, 5, 101, 0, 0, 716, 717, 5, 100, 0, 0, 717, 132, 1, 0, 0, 0, 718, 719, 5, 117, 0, 0, 719, 720, 5, 110, 0, 0, 720, 721, 5, 105, 0, 0, 721, 722, 5, 116, 0, 0, 722, 134, 1, 0, 0, 0, 723, 724, 5, 119, 0, 0, 724, 725, 5, 97, 0, 0, 725, 726, 5, 116, 0, 0, 726, 727, 5, 99, 0, 0, 727, 728, 5, 104, 0, 0, 728, 729, 5, 45, 0, 0, 729, 730, 5, 104, 0, 0, 730, 731, 5, 97, 0, 0, 731, 732, 5, 110, 0, 0, 732, 733, 5, 100, 0, 0, 733, 734, 5, 108, 0, 0, 734, 735, 5, 101, 0, 0, 735, 136, 1, 0, 0, 0, 736, 737, 5, 109, 0, 0, 737, 738, 5, 101, 0, 0, 738, 739, 5, 115, 0, 0, 739, 740, 5, 115, 0, 0, 740, 741, 5, 97, 0, 0, 741, 742, 5, 103, 0, 0, 742, 743, 5, 101, 0, 0, 743, 138, 1, 0, 0, 0, 744, 745, 5, 97, 0, 0, 745, 746, 5, 116, 0, 0, 746, 747, 5, 111, 0, 0, 747, 748, 5, 109, 0, 0, 748, 749, 5, 45, 0, 0, 749, 750, 5, 114, 0, 0, 750, 751, 5, 101, 0, 0, 751, 752, 5, 102, 0, 0, 752, 140, 1, 0, 0, 0, 753, 754, 5, 105, 0, 0, 754, 755, 5, 110, 0, 0, 755, 756, 5, 116, 0, 0, 756, 757, 5, 101, 0, 0, 757, 758, 5, 114, 0, 0, 758, 759, 5, 102, 0, 0, 759, 760, 5, 97, 0, 0, 760, 761, 5, 99, 0, 0, 761, 762, 5, 101, 0, 0, 762, 763, 5, 45, 0, 0, 763, 764, 5, 114, 0, 0, 764, 765, 5, 101, 0, 0, 765, 766, 5, 102, 0, 0, 766, 142, 1, 0, 0, 0, 767, 768, 5, 111, 0, 0, 768, 769, 5, 112, 0, 0, 769, 770, 5, 116, 0, 0, 770, 771, 5, 105, 0, 0, 771, 772, 5, 111, 0, 0, 772, 773, 5, 110, 0, 0, 773, 774, 5, 97, 0, 0, 774, 775, 5, 108, 0, 0, 775, 144, 1, 0, 0, 0, 776, 777, 5, 108, 0, 0, 777, 778, 5, 105, 0, 0, 778, 779, 5, 115, 0, 0, 779, 780, 5, 116, 0, 0, 780, 146, 1, 0, 0, 0, 781, 782, 5, 98, 0, 0, 782, 783, 5, 111, 0, 0, 783, 784, 5, 111, 0, 0, 784, 785, 5, 108, 0, 0, 785, 148, 1, 0, 0, 0, 786, 787, 5, 98, 0, 0, 787, 788, 5, 121, 0, 0, 788, 789, 5, 116, 0, 0, 789, 790, 5, 101, 0, 0, 790, 791, 5, 115, 0, 0, 791, 150, 1, 0, 0, 0, 792, 793, 5, 100, 0, 0, 793, 794, 5, 111, 0, 0, 794, 795, 5, 117, 0, 0, 795, 796, 5, 98, 0, 0, 796, 797, 5, 108, 0, 0, 797, 798, 5, 101, 0, 0, 798, 152, 1, 0, 0, 0, 799, 800, 5, 105, 0, 0, 800, 801, 5, 110, 0, 0, 801, 802, 5, 116, 0, 0, 802, 803, 5, 51, 0, 0, 803, 804, 5, 50, 0, 0, 804, 154, 1, 0, 0, 0, 805, 806, 5, 105, 0, 0, 806, 807, 5, 110, 0, 0, 807, 808, 5, 116, 0, 0, 808, 809, 5, 54, 0, 0, 809, 810, 5, 52, 0, 0, 810, 156, 1, 0, 0, 0, 811, 812, 5, 115, 0, 0, 812, 813, 5, 116, 0, 0, 813, 814, 5, 114, 0, 0, 814, 815, 5, 105, 0, 0, 815, 816, 5, 110, 0, 0, 816, 817, 5, 103, 0, 0, 817, 158, 1, 0, 0, 0, 818, 819, 5, 117, 0, 0, 819, 820, 5, 105, 0, 0, 820, 821, 5, 110, 0, 0, 821, 822, 5, 116, 0, 0, 822, 823, 5, 51, 0, 0, 823, 824, 5, 50, 0, 0, 824, 160, 1, 0, 0, 0, 825, 826, 5, 117, 0, 0, 826, 827, 5, 105, 0, 0, 827, 828, 5, 110, 0, 0, 828, 829, 5, 116, 0, 0, 829, 830, 5, 54, 0, 0, 830, 831, 5, 52, 0, 0, 831, 162, 1, 0, 0, 0, 832, 833, 5, 116, 0, 0, 833, 834, 5, 114, 0, 0, 834, 835, 5, 117, 0, 0, 835, 836, 5, 101, 0, 0, 836, 164, 1, 0, 0, 0, 837, 838, 5, 102, 0, 0, 838, 839, 5, 97, 0, 0, 839, 840, 5, 108, 0, 0, 840, 841, 5, 115, 0, 0, 841, 842, 5, 101, 0, 0, 842, 166, 1, 0, 0, 0, 843, 844, 5, 110, 0, 0, 844, 845, 5, 117, 0, 0, 845, 846, 5, 108, 0, 0, 846, 847, 5, 108, 0, 0, 847, 168, 1, 0, 0, 0, 848, 849, 5, 45, 0, 0, 849, 850, 5, 62, 0, 0, 850, 170, 1, 0, 0, 0, 851, 852, 5, 58, 0, 0, 852, 172, 1, 0, 0, 0, 853, 854, 5, 59, 0, 0, 854, 174, 1, 0, 0, 0, 855, 856, 5, 44, 0, 0, 856, 176, 1, 0, 0, 0, 857, 858, 5, 46, 0, 0, 858, 178, 1, 0, 0, 0, 859, 860, 5, 123, 0, 0, 860, 180, 1, 0, 0, 0, 861, 862, 5, 125, 0, 0, 862, 182, 1, 0, 0, 0, 863, 864, 5, 91, 0, 0, 864, 184, 1, 0, 0, 0, 865, 866, 5, 93, 0, 0, 866, 186, 1, 0, 0, 0, 867, 868, 5, 40, 0, 0, 868, 188, 1, 0, 0, 0, 869, 870, 5, 41, 0, 0, 870, 190, 1, 0, 0, 0, 871, 872, 5, 60, 0, 0, 872, 192, 1, 0, 0, 0, 873, 874, 5, 62, 0, 0, 874, 194, 1, 0, 0, 0, 875, 877, 5, 45, 0, 0, 876, 875, 1, 0, 0, 0, 876, 877, 1, 0, 0, 0, 877, 879, 1, 0, 0, 0, 878, 880, 7, 0, 0, 0, 879, 878, 1, 0, 0, 0, 880, 881, 1, 0, 0, 0, 881, 879, 1, 0, 0, 0, 881, 882, 1, 0, 0, 0, 882, 196, 1, 0, 0, 0, 883, 885, 5, 45, 0, 0, 884, 883, 1, 0, 0, 0, 884, 885, 1, 0, 0, 0, 885, 894, 1, 0, 0, 0, 886, 895, 5, 48, 0, 0, 887, 891, 7, 1, 0, 0, 888, 890, 7, 0, 0, 0, 889, 888, 1, 0, 0, 0, 890, 893, 1, 0, 0, 0, 891, 889, 1, 0, 0, 0, 891, 892, 1, 0, 0, 0, 892, 895, 1, 0, 0, 0, 893, 891, 1, 0, 0, 0, 894, 886, 1, 0, 0, 0, 894, 887, 1, 0, 0, 0, 895, 902, 1, 0, 0, 0, 896, 898, 5, 46, 0, 0, 897, 899, 7, 0, 0, 0, 898, 897, 1, 0, 0, 0, 899, 900, 1, 0, 0, 0, 900, 898, 1, 0, 0, 0, 900, 901, 1, 0, 0, 0, 901, 903, 1, 0, 0, 0, 902, 896, 1, 0, 0, 0, 902, 903, 1, 0, 0, 0, 903, 913, 1, 0, 0, 0, 904, 906, 7, 2, 0, 0, 905, 907, 7, 3, 0, 0, 906, 905, 1, 0, 0, 0, 906, 907, 1, 0, 0, 0, 907, 909, 1, 0, 0, 0, 908, 910, 7, 0, 0, 0, 909, 908, 1, 0, 0, 0, 910, 911, 1, 0, 0, 0, 911, 909, 1, 0, 0, 0, 911, 912, 1, 0, 0, 0, 912, 914, 1, 0, 0, 0, 913, 904, 1, 0, 0, 0, 913, 914, 1, 0, 0, 0, 914, 198, 1, 0, 0, 0, 915, 919, 7, 4, 0, 0, 916, 918, 7, 5, 0, 0, 917, 916, 1, 0, 0, 0, 918, 921, 1, 0, 0, 0, 919, 917, 1, 0, 0, 0, 919, 920, 1, 0, 0, 0, 920, 200, 1, 0, 0, 0, 921, 919, 1, 0, 0, 0, 922, 927, 5, 34, 0, 0, 923, 926, 3, 203, 101, 0, 924, 926, 8, 6, 0, 0, 925, 923, 1, 0, 0, 0, 925, 924, 1, 0, 0, 0, 926, 929, 1, 0, 0, 0, 927, 925, 1, 0, 0, 0, 927, 928, 1, 0, 0, 0, 928, 930, 1, 0, 0, 0, 929, 927, 1, 0, 0, 0, 930, 931, 5, 34, 0, 0, 931, 202, 1, 0, 0, 0, 932, 940, 5, 92, 0, 0, 933, 941, 7, 7, 0, 0, 934, 935, 5, 117, 0, 0, 935, 936, 3, 205, 102, 0, 936, 937, 3, 205, 102, 0, 937, 938, 3, 205, 102, 0, 938, 939, 3, 205, 102, 0, 939, 941, 1, 0, 0, 0, 940, 933, 1, 0, 0, 0, 940, 934, 1, 0, 0, 0, 941, 204, 1, 0, 0, 0, 942, 943, 7, 8, 0, 0, 943, 206, 1, 0, 0, 0, 944, 945, 5, 47, 0, 0, 945, 946, 5, 47, 0, 0, 946, 950, 1, 0, 0, 0, 947, 949, 8, 9, 0, 0, 948, 947, 1, 0, 0, 0, 949, 952, 1, 0, 0, 0, 950, 948, 1, 0, 0, 0, 950, 951, 1, 0, 0, 0, 951, 953, 1, 0, 0, 0, 952, 950, 1, 0, 0, 0, 953, 954, 6, 103, 0, 0, 954, 208, 1, 0, 0, 0, 955, 956, 5, 47, 0, 0, 956, 957, 5, 42, 0, 0, 957, 961, 1, 0, 0, 0, 958, 960, 9, 0, 0, 0, 959, 958, 1, 0, 0, 0, 960, 963, 1, 0, 0, 0, 961, 962, 1, 0, 0, 0, 961, 959, 1, 0, 0, 0, 962, 964, 1, 0, 0, 0, 963, 961, 1, 0, 0, 0, 964, 965, 5, 42, 0, 0, 965, 966, 5, 47, 0, 0, 966, 967, 1, 0, 0, 0, 967, 968, 6, 104, 0, 0, 968, 210, 1, 0, 0, 0, 969, 971, 7, 10, 0, 0, 970, 969, 1, 0, 0, 0, 971, 972, 1, 0, 0, 0, 972, 970, 1, 0, 0, 0, 972, 973, 1, 0, 0, 0, 973, 974, 1, 0, 0, 0, 974, 975, 6, 105, 0, 0, 975, 212, 1, 0, 0, 0, 18, 0, 876, 881, 884, 891, 894, 900, 902, 906, 911, 913, 919, 925, 927, 940, 950, 961, 972, 1, 0, 1, 0] \ No newline at end of file diff --git a/src/capability-language/generated/QuixosCapabilityLexer.tokens b/src/capability-language/generated/QuixosCapabilityLexer.tokens index a2f4274..d34ee3c 100644 --- a/src/capability-language/generated/QuixosCapabilityLexer.tokens +++ b/src/capability-language/generated/QuixosCapabilityLexer.tokens @@ -1,197 +1,201 @@ WORKSPACE=1 -IMPORT=2 -EXTERNAL=3 -ATOM=4 -INTERFACE=5 -INTERFACES=6 -PACKAGE=7 -VALUE=8 -RELATION=9 -OPERATION=10 -FUNCTION=11 -CONSTRUCTOR=12 -CONSTRUCTS=13 -CONFORM=14 -AS=15 -BIND=16 -TO=17 -PRIVATE=18 -SHARED=19 -STATE=20 -EDGE=21 -PROJECTION=22 -WITH=23 -USING=24 -VIA=25 -MATERIALIZE=26 -IF=27 -ABSENT=28 -ON=29 -POLICY=30 -DEFAULT=31 -SOURCE=32 -REPOSITORY=33 -COMMIT=34 -REVISION=35 -ID=36 -DOC=37 -MODE=38 -EMITS=39 -RECEIVER=40 -REQUIRES=41 -ANY=42 -GET=43 -SET=44 -WATCH=45 -START=46 -STOP=47 -READ=48 -WRITE=49 -RESOLVE=50 -CONNECT=51 -DISCONNECT=52 -CALL=53 -WATCH_START=54 -WATCH_STOP=55 -SUBSCRIBE=56 -UNSUBSCRIBE=57 -OPTIMISTIC_REGISTER=58 -CRDT=59 -OPTIONAL_ONE=60 -EXACTLY_ONE=61 -MANY_UNIQUE=62 -MANY=63 -ORDERED=64 -UNIT=65 -WATCH_HANDLE=66 -MESSAGE=67 -ATOM_REF=68 -INTERFACE_REF=69 -OPTIONAL=70 -LIST=71 -BOOL=72 -BYTES=73 -DOUBLE=74 -INT32=75 -INT64=76 -STRING=77 -UINT32=78 -UINT64=79 -TRUE=80 -FALSE=81 -NULL=82 -ARROW=83 -COLON=84 -SEMI=85 -COMMA=86 -DOT=87 -LBRACE=88 -RBRACE=89 -LBRACK=90 -RBRACK=91 -LPAREN=92 -RPAREN=93 -LT=94 -GT=95 -INTEGER=96 -JSON_NUMBER=97 -IDENTIFIER=98 -STRING_LITERAL=99 -LINE_COMMENT=100 -BLOCK_COMMENT=101 -WS=102 +FRAGMENT=2 +IMPORT=3 +EXTERNAL=4 +ATOM=5 +INTERFACE=6 +INTERFACES=7 +PACKAGE=8 +VALUE=9 +RELATION=10 +OPERATION=11 +FUNCTION=12 +CONSTRUCTOR=13 +CONSTRUCTS=14 +INPUT=15 +CONFORM=16 +AS=17 +BIND=18 +TO=19 +PRIVATE=20 +SHARED=21 +STATE=22 +EDGE=23 +PROJECTION=24 +WITH=25 +USING=26 +VIA=27 +MATERIALIZE=28 +IF=29 +ABSENT=30 +ON=31 +POLICY=32 +DEFAULT=33 +SOURCE=34 +REPOSITORY=35 +COMMIT=36 +REVISION=37 +ID=38 +DOC=39 +MODE=40 +EMITS=41 +RECEIVER=42 +REQUIRES=43 +ANY=44 +GET=45 +SET=46 +WATCH=47 +START=48 +STOP=49 +READ=50 +WRITE=51 +RESOLVE=52 +CONNECT=53 +DISCONNECT=54 +CALL=55 +WATCH_START=56 +WATCH_STOP=57 +SUBSCRIBE=58 +UNSUBSCRIBE=59 +OPTIMISTIC_REGISTER=60 +CRDT=61 +OPTIONAL_ONE=62 +EXACTLY_ONE=63 +MANY_UNIQUE=64 +MANY=65 +ORDERED=66 +UNIT=67 +WATCH_HANDLE=68 +MESSAGE=69 +ATOM_REF=70 +INTERFACE_REF=71 +OPTIONAL=72 +LIST=73 +BOOL=74 +BYTES=75 +DOUBLE=76 +INT32=77 +INT64=78 +STRING=79 +UINT32=80 +UINT64=81 +TRUE=82 +FALSE=83 +NULL=84 +ARROW=85 +COLON=86 +SEMI=87 +COMMA=88 +DOT=89 +LBRACE=90 +RBRACE=91 +LBRACK=92 +RBRACK=93 +LPAREN=94 +RPAREN=95 +LT=96 +GT=97 +INTEGER=98 +JSON_NUMBER=99 +IDENTIFIER=100 +STRING_LITERAL=101 +LINE_COMMENT=102 +BLOCK_COMMENT=103 +WS=104 'workspace'=1 -'import'=2 -'external'=3 -'atom'=4 -'interface'=5 -'interfaces'=6 -'package'=7 -'value'=8 -'relation'=9 -'operation'=10 -'function'=11 -'constructor'=12 -'constructs'=13 -'conform'=14 -'as'=15 -'bind'=16 -'to'=17 -'private'=18 -'shared'=19 -'state'=20 -'edge'=21 -'projection'=22 -'with'=23 -'using'=24 -'via'=25 -'materialize'=26 -'if'=27 -'absent'=28 -'on'=29 -'policy'=30 -'default'=31 -'source'=32 -'repository'=33 -'commit'=34 -'revision'=35 -'id'=36 -'doc'=37 -'mode'=38 -'emits'=39 -'receiver'=40 -'requires'=41 -'any'=42 -'get'=43 -'set'=44 -'watch'=45 -'start'=46 -'stop'=47 -'read'=48 -'write'=49 -'resolve'=50 -'connect'=51 -'disconnect'=52 -'call'=53 -'watch-start'=54 -'watch-stop'=55 -'subscribe'=56 -'unsubscribe'=57 -'optimistic-register'=58 -'crdt'=59 -'optional-one'=60 -'exactly-one'=61 -'many-unique'=62 -'many'=63 -'ordered'=64 -'unit'=65 -'watch-handle'=66 -'message'=67 -'atom-ref'=68 -'interface-ref'=69 -'optional'=70 -'list'=71 -'bool'=72 -'bytes'=73 -'double'=74 -'int32'=75 -'int64'=76 -'string'=77 -'uint32'=78 -'uint64'=79 -'true'=80 -'false'=81 -'null'=82 -'->'=83 -':'=84 -';'=85 -','=86 -'.'=87 -'{'=88 -'}'=89 -'['=90 -']'=91 -'('=92 -')'=93 -'<'=94 -'>'=95 +'fragment'=2 +'import'=3 +'external'=4 +'atom'=5 +'interface'=6 +'interfaces'=7 +'package'=8 +'value'=9 +'relation'=10 +'operation'=11 +'function'=12 +'constructor'=13 +'constructs'=14 +'input'=15 +'conform'=16 +'as'=17 +'bind'=18 +'to'=19 +'private'=20 +'shared'=21 +'state'=22 +'edge'=23 +'projection'=24 +'with'=25 +'using'=26 +'via'=27 +'materialize'=28 +'if'=29 +'absent'=30 +'on'=31 +'policy'=32 +'default'=33 +'source'=34 +'repository'=35 +'commit'=36 +'revision'=37 +'id'=38 +'doc'=39 +'mode'=40 +'emits'=41 +'receiver'=42 +'requires'=43 +'any'=44 +'get'=45 +'set'=46 +'watch'=47 +'start'=48 +'stop'=49 +'read'=50 +'write'=51 +'resolve'=52 +'connect'=53 +'disconnect'=54 +'call'=55 +'watch-start'=56 +'watch-stop'=57 +'subscribe'=58 +'unsubscribe'=59 +'optimistic-register'=60 +'crdt'=61 +'optional-one'=62 +'exactly-one'=63 +'many-unique'=64 +'many'=65 +'ordered'=66 +'unit'=67 +'watch-handle'=68 +'message'=69 +'atom-ref'=70 +'interface-ref'=71 +'optional'=72 +'list'=73 +'bool'=74 +'bytes'=75 +'double'=76 +'int32'=77 +'int64'=78 +'string'=79 +'uint32'=80 +'uint64'=81 +'true'=82 +'false'=83 +'null'=84 +'->'=85 +':'=86 +';'=87 +','=88 +'.'=89 +'{'=90 +'}'=91 +'['=92 +']'=93 +'('=94 +')'=95 +'<'=96 +'>'=97 diff --git a/src/capability-language/generated/QuixosCapabilityLexer.ts b/src/capability-language/generated/QuixosCapabilityLexer.ts index c62675a..f30b433 100644 --- a/src/capability-language/generated/QuixosCapabilityLexer.ts +++ b/src/capability-language/generated/QuixosCapabilityLexer.ts @@ -5,126 +5,128 @@ import { Token } from "antlr4ng"; export class QuixosCapabilityLexer extends antlr.Lexer { public static readonly WORKSPACE = 1; - public static readonly IMPORT = 2; - public static readonly EXTERNAL = 3; - public static readonly ATOM = 4; - public static readonly INTERFACE = 5; - public static readonly INTERFACES = 6; - public static readonly PACKAGE = 7; - public static readonly VALUE = 8; - public static readonly RELATION = 9; - public static readonly OPERATION = 10; - public static readonly FUNCTION = 11; - public static readonly CONSTRUCTOR = 12; - public static readonly CONSTRUCTS = 13; - public static readonly CONFORM = 14; - public static readonly AS = 15; - public static readonly BIND = 16; - public static readonly TO = 17; - public static readonly PRIVATE = 18; - public static readonly SHARED = 19; - public static readonly STATE = 20; - public static readonly EDGE = 21; - public static readonly PROJECTION = 22; - public static readonly WITH = 23; - public static readonly USING = 24; - public static readonly VIA = 25; - public static readonly MATERIALIZE = 26; - public static readonly IF = 27; - public static readonly ABSENT = 28; - public static readonly ON = 29; - public static readonly POLICY = 30; - public static readonly DEFAULT = 31; - public static readonly SOURCE = 32; - public static readonly REPOSITORY = 33; - public static readonly COMMIT = 34; - public static readonly REVISION = 35; - public static readonly ID = 36; - public static readonly DOC = 37; - public static readonly MODE = 38; - public static readonly EMITS = 39; - public static readonly RECEIVER = 40; - public static readonly REQUIRES = 41; - public static readonly ANY = 42; - public static readonly GET = 43; - public static readonly SET = 44; - public static readonly WATCH = 45; - public static readonly START = 46; - public static readonly STOP = 47; - public static readonly READ = 48; - public static readonly WRITE = 49; - public static readonly RESOLVE = 50; - public static readonly CONNECT = 51; - public static readonly DISCONNECT = 52; - public static readonly CALL = 53; - public static readonly WATCH_START = 54; - public static readonly WATCH_STOP = 55; - public static readonly SUBSCRIBE = 56; - public static readonly UNSUBSCRIBE = 57; - public static readonly OPTIMISTIC_REGISTER = 58; - public static readonly CRDT = 59; - public static readonly OPTIONAL_ONE = 60; - public static readonly EXACTLY_ONE = 61; - public static readonly MANY_UNIQUE = 62; - public static readonly MANY = 63; - public static readonly ORDERED = 64; - public static readonly UNIT = 65; - public static readonly WATCH_HANDLE = 66; - public static readonly MESSAGE = 67; - public static readonly ATOM_REF = 68; - public static readonly INTERFACE_REF = 69; - public static readonly OPTIONAL = 70; - public static readonly LIST = 71; - public static readonly BOOL = 72; - public static readonly BYTES = 73; - public static readonly DOUBLE = 74; - public static readonly INT32 = 75; - public static readonly INT64 = 76; - public static readonly STRING = 77; - public static readonly UINT32 = 78; - public static readonly UINT64 = 79; - public static readonly TRUE = 80; - public static readonly FALSE = 81; - public static readonly NULL = 82; - public static readonly ARROW = 83; - public static readonly COLON = 84; - public static readonly SEMI = 85; - public static readonly COMMA = 86; - public static readonly DOT = 87; - public static readonly LBRACE = 88; - public static readonly RBRACE = 89; - public static readonly LBRACK = 90; - public static readonly RBRACK = 91; - public static readonly LPAREN = 92; - public static readonly RPAREN = 93; - public static readonly LT = 94; - public static readonly GT = 95; - public static readonly INTEGER = 96; - public static readonly JSON_NUMBER = 97; - public static readonly IDENTIFIER = 98; - public static readonly STRING_LITERAL = 99; - public static readonly LINE_COMMENT = 100; - public static readonly BLOCK_COMMENT = 101; - public static readonly WS = 102; + public static readonly FRAGMENT = 2; + public static readonly IMPORT = 3; + public static readonly EXTERNAL = 4; + public static readonly ATOM = 5; + public static readonly INTERFACE = 6; + public static readonly INTERFACES = 7; + public static readonly PACKAGE = 8; + public static readonly VALUE = 9; + public static readonly RELATION = 10; + public static readonly OPERATION = 11; + public static readonly FUNCTION = 12; + public static readonly CONSTRUCTOR = 13; + public static readonly CONSTRUCTS = 14; + public static readonly INPUT = 15; + public static readonly CONFORM = 16; + public static readonly AS = 17; + public static readonly BIND = 18; + public static readonly TO = 19; + public static readonly PRIVATE = 20; + public static readonly SHARED = 21; + public static readonly STATE = 22; + public static readonly EDGE = 23; + public static readonly PROJECTION = 24; + public static readonly WITH = 25; + public static readonly USING = 26; + public static readonly VIA = 27; + public static readonly MATERIALIZE = 28; + public static readonly IF = 29; + public static readonly ABSENT = 30; + public static readonly ON = 31; + public static readonly POLICY = 32; + public static readonly DEFAULT = 33; + public static readonly SOURCE = 34; + public static readonly REPOSITORY = 35; + public static readonly COMMIT = 36; + public static readonly REVISION = 37; + public static readonly ID = 38; + public static readonly DOC = 39; + public static readonly MODE = 40; + public static readonly EMITS = 41; + public static readonly RECEIVER = 42; + public static readonly REQUIRES = 43; + public static readonly ANY = 44; + public static readonly GET = 45; + public static readonly SET = 46; + public static readonly WATCH = 47; + public static readonly START = 48; + public static readonly STOP = 49; + public static readonly READ = 50; + public static readonly WRITE = 51; + public static readonly RESOLVE = 52; + public static readonly CONNECT = 53; + public static readonly DISCONNECT = 54; + public static readonly CALL = 55; + public static readonly WATCH_START = 56; + public static readonly WATCH_STOP = 57; + public static readonly SUBSCRIBE = 58; + public static readonly UNSUBSCRIBE = 59; + public static readonly OPTIMISTIC_REGISTER = 60; + public static readonly CRDT = 61; + public static readonly OPTIONAL_ONE = 62; + public static readonly EXACTLY_ONE = 63; + public static readonly MANY_UNIQUE = 64; + public static readonly MANY = 65; + public static readonly ORDERED = 66; + public static readonly UNIT = 67; + public static readonly WATCH_HANDLE = 68; + public static readonly MESSAGE = 69; + public static readonly ATOM_REF = 70; + public static readonly INTERFACE_REF = 71; + public static readonly OPTIONAL = 72; + public static readonly LIST = 73; + public static readonly BOOL = 74; + public static readonly BYTES = 75; + public static readonly DOUBLE = 76; + public static readonly INT32 = 77; + public static readonly INT64 = 78; + public static readonly STRING = 79; + public static readonly UINT32 = 80; + public static readonly UINT64 = 81; + public static readonly TRUE = 82; + public static readonly FALSE = 83; + public static readonly NULL = 84; + public static readonly ARROW = 85; + public static readonly COLON = 86; + public static readonly SEMI = 87; + public static readonly COMMA = 88; + public static readonly DOT = 89; + public static readonly LBRACE = 90; + public static readonly RBRACE = 91; + public static readonly LBRACK = 92; + public static readonly RBRACK = 93; + public static readonly LPAREN = 94; + public static readonly RPAREN = 95; + public static readonly LT = 96; + public static readonly GT = 97; + public static readonly INTEGER = 98; + public static readonly JSON_NUMBER = 99; + public static readonly IDENTIFIER = 100; + public static readonly STRING_LITERAL = 101; + public static readonly LINE_COMMENT = 102; + public static readonly BLOCK_COMMENT = 103; + public static readonly WS = 104; public static readonly channelNames = [ "DEFAULT_TOKEN_CHANNEL", "HIDDEN" ]; public static readonly literalNames = [ - null, "'workspace'", "'import'", "'external'", "'atom'", "'interface'", - "'interfaces'", "'package'", "'value'", "'relation'", "'operation'", - "'function'", "'constructor'", "'constructs'", "'conform'", "'as'", - "'bind'", "'to'", "'private'", "'shared'", "'state'", "'edge'", - "'projection'", "'with'", "'using'", "'via'", "'materialize'", "'if'", - "'absent'", "'on'", "'policy'", "'default'", "'source'", "'repository'", - "'commit'", "'revision'", "'id'", "'doc'", "'mode'", "'emits'", - "'receiver'", "'requires'", "'any'", "'get'", "'set'", "'watch'", - "'start'", "'stop'", "'read'", "'write'", "'resolve'", "'connect'", - "'disconnect'", "'call'", "'watch-start'", "'watch-stop'", "'subscribe'", - "'unsubscribe'", "'optimistic-register'", "'crdt'", "'optional-one'", - "'exactly-one'", "'many-unique'", "'many'", "'ordered'", "'unit'", - "'watch-handle'", "'message'", "'atom-ref'", "'interface-ref'", + null, "'workspace'", "'fragment'", "'import'", "'external'", "'atom'", + "'interface'", "'interfaces'", "'package'", "'value'", "'relation'", + "'operation'", "'function'", "'constructor'", "'constructs'", "'input'", + "'conform'", "'as'", "'bind'", "'to'", "'private'", "'shared'", + "'state'", "'edge'", "'projection'", "'with'", "'using'", "'via'", + "'materialize'", "'if'", "'absent'", "'on'", "'policy'", "'default'", + "'source'", "'repository'", "'commit'", "'revision'", "'id'", "'doc'", + "'mode'", "'emits'", "'receiver'", "'requires'", "'any'", "'get'", + "'set'", "'watch'", "'start'", "'stop'", "'read'", "'write'", "'resolve'", + "'connect'", "'disconnect'", "'call'", "'watch-start'", "'watch-stop'", + "'subscribe'", "'unsubscribe'", "'optimistic-register'", "'crdt'", + "'optional-one'", "'exactly-one'", "'many-unique'", "'many'", "'ordered'", + "'unit'", "'watch-handle'", "'message'", "'atom-ref'", "'interface-ref'", "'optional'", "'list'", "'bool'", "'bytes'", "'double'", "'int32'", "'int64'", "'string'", "'uint32'", "'uint64'", "'true'", "'false'", "'null'", "'->'", "':'", "';'", "','", "'.'", "'{'", "'}'", "'['", @@ -132,15 +134,15 @@ export class QuixosCapabilityLexer extends antlr.Lexer { ]; public static readonly symbolicNames = [ - null, "WORKSPACE", "IMPORT", "EXTERNAL", "ATOM", "INTERFACE", "INTERFACES", - "PACKAGE", "VALUE", "RELATION", "OPERATION", "FUNCTION", "CONSTRUCTOR", - "CONSTRUCTS", "CONFORM", "AS", "BIND", "TO", "PRIVATE", "SHARED", - "STATE", "EDGE", "PROJECTION", "WITH", "USING", "VIA", "MATERIALIZE", - "IF", "ABSENT", "ON", "POLICY", "DEFAULT", "SOURCE", "REPOSITORY", - "COMMIT", "REVISION", "ID", "DOC", "MODE", "EMITS", "RECEIVER", - "REQUIRES", "ANY", "GET", "SET", "WATCH", "START", "STOP", "READ", - "WRITE", "RESOLVE", "CONNECT", "DISCONNECT", "CALL", "WATCH_START", - "WATCH_STOP", "SUBSCRIBE", "UNSUBSCRIBE", "OPTIMISTIC_REGISTER", + null, "WORKSPACE", "FRAGMENT", "IMPORT", "EXTERNAL", "ATOM", "INTERFACE", + "INTERFACES", "PACKAGE", "VALUE", "RELATION", "OPERATION", "FUNCTION", + "CONSTRUCTOR", "CONSTRUCTS", "INPUT", "CONFORM", "AS", "BIND", "TO", + "PRIVATE", "SHARED", "STATE", "EDGE", "PROJECTION", "WITH", "USING", + "VIA", "MATERIALIZE", "IF", "ABSENT", "ON", "POLICY", "DEFAULT", + "SOURCE", "REPOSITORY", "COMMIT", "REVISION", "ID", "DOC", "MODE", + "EMITS", "RECEIVER", "REQUIRES", "ANY", "GET", "SET", "WATCH", "START", + "STOP", "READ", "WRITE", "RESOLVE", "CONNECT", "DISCONNECT", "CALL", + "WATCH_START", "WATCH_STOP", "SUBSCRIBE", "UNSUBSCRIBE", "OPTIMISTIC_REGISTER", "CRDT", "OPTIONAL_ONE", "EXACTLY_ONE", "MANY_UNIQUE", "MANY", "ORDERED", "UNIT", "WATCH_HANDLE", "MESSAGE", "ATOM_REF", "INTERFACE_REF", "OPTIONAL", "LIST", "BOOL", "BYTES", "DOUBLE", "INT32", "INT64", @@ -155,15 +157,15 @@ export class QuixosCapabilityLexer extends antlr.Lexer { ]; public static readonly ruleNames = [ - "WORKSPACE", "IMPORT", "EXTERNAL", "ATOM", "INTERFACE", "INTERFACES", - "PACKAGE", "VALUE", "RELATION", "OPERATION", "FUNCTION", "CONSTRUCTOR", - "CONSTRUCTS", "CONFORM", "AS", "BIND", "TO", "PRIVATE", "SHARED", - "STATE", "EDGE", "PROJECTION", "WITH", "USING", "VIA", "MATERIALIZE", - "IF", "ABSENT", "ON", "POLICY", "DEFAULT", "SOURCE", "REPOSITORY", - "COMMIT", "REVISION", "ID", "DOC", "MODE", "EMITS", "RECEIVER", - "REQUIRES", "ANY", "GET", "SET", "WATCH", "START", "STOP", "READ", - "WRITE", "RESOLVE", "CONNECT", "DISCONNECT", "CALL", "WATCH_START", - "WATCH_STOP", "SUBSCRIBE", "UNSUBSCRIBE", "OPTIMISTIC_REGISTER", + "WORKSPACE", "FRAGMENT", "IMPORT", "EXTERNAL", "ATOM", "INTERFACE", + "INTERFACES", "PACKAGE", "VALUE", "RELATION", "OPERATION", "FUNCTION", + "CONSTRUCTOR", "CONSTRUCTS", "INPUT", "CONFORM", "AS", "BIND", "TO", + "PRIVATE", "SHARED", "STATE", "EDGE", "PROJECTION", "WITH", "USING", + "VIA", "MATERIALIZE", "IF", "ABSENT", "ON", "POLICY", "DEFAULT", + "SOURCE", "REPOSITORY", "COMMIT", "REVISION", "ID", "DOC", "MODE", + "EMITS", "RECEIVER", "REQUIRES", "ANY", "GET", "SET", "WATCH", "START", + "STOP", "READ", "WRITE", "RESOLVE", "CONNECT", "DISCONNECT", "CALL", + "WATCH_START", "WATCH_STOP", "SUBSCRIBE", "UNSUBSCRIBE", "OPTIMISTIC_REGISTER", "CRDT", "OPTIONAL_ONE", "EXACTLY_ONE", "MANY_UNIQUE", "MANY", "ORDERED", "UNIT", "WATCH_HANDLE", "MESSAGE", "ATOM_REF", "INTERFACE_REF", "OPTIONAL", "LIST", "BOOL", "BYTES", "DOUBLE", "INT32", "INT64", @@ -193,7 +195,7 @@ export class QuixosCapabilityLexer extends antlr.Lexer { public get modeNames(): string[] { return QuixosCapabilityLexer.modeNames; } public static readonly _serializedATN: number[] = [ - 4,0,102,957,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5, + 4,0,104,976,6,-1,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, @@ -209,331 +211,338 @@ export class QuixosCapabilityLexer extends antlr.Lexer { 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,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7, 97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103, - 7,103,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1, - 1,1,1,1,1,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,3,1,3,1,3,1,3,1, - 3,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,5,1,5,1,5,1,5,1,5,1, - 5,1,5,1,5,1,5,1,5,1,5,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,7,1,7,1, - 7,1,7,1,7,1,7,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,9,1,9,1,9,1, - 9,1,9,1,9,1,9,1,9,1,9,1,9,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10, - 1,10,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11, - 1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,13,1,13, - 1,13,1,13,1,13,1,13,1,13,1,13,1,14,1,14,1,14,1,15,1,15,1,15,1,15, - 1,15,1,16,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,18, - 1,18,1,18,1,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,1,19,1,20, - 1,20,1,20,1,20,1,20,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21, - 1,21,1,21,1,22,1,22,1,22,1,22,1,22,1,23,1,23,1,23,1,23,1,23,1,23, - 1,24,1,24,1,24,1,24,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25, - 1,25,1,25,1,25,1,26,1,26,1,26,1,27,1,27,1,27,1,27,1,27,1,27,1,27, - 1,28,1,28,1,28,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,30,1,30,1,30, - 1,30,1,30,1,30,1,30,1,30,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,32, - 1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,33,1,33,1,33, - 1,33,1,33,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34, - 1,35,1,35,1,35,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,38, - 1,38,1,38,1,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39, - 1,39,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,41,1,41,1,41, - 1,41,1,42,1,42,1,42,1,42,1,43,1,43,1,43,1,43,1,44,1,44,1,44,1,44, - 1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,46,1,46,1,46, - 1,47,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,48,1,48,1,48,1,49,1,49, - 1,49,1,49,1,49,1,49,1,49,1,49,1,50,1,50,1,50,1,50,1,50,1,50,1,50, - 1,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,52, - 1,52,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53, - 1,53,1,53,1,53,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54, - 1,54,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,56,1,56, - 1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,57,1,57,1,57, - 1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57, - 1,57,1,57,1,57,1,57,1,58,1,58,1,58,1,58,1,58,1,59,1,59,1,59,1,59, - 1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,60,1,60,1,60,1,60, - 1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61, - 1,61,1,61,1,61,1,61,1,61,1,61,1,61,1,62,1,62,1,62,1,62,1,62,1,63, - 1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,64,1,64,1,64,1,64,1,64,1,65, - 1,65,1,65,1,65,1,65,1,65,1,65,1,65,1,65,1,65,1,65,1,65,1,65,1,66, - 1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,67,1,67,1,67,1,67,1,67,1,67, - 1,67,1,67,1,67,1,68,1,68,1,68,1,68,1,68,1,68,1,68,1,68,1,68,1,68, - 1,68,1,68,1,68,1,68,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69, - 1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,72,1,72,1,72, - 1,72,1,72,1,72,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,74,1,74,1,74, - 1,74,1,74,1,74,1,75,1,75,1,75,1,75,1,75,1,75,1,76,1,76,1,76,1,76, - 1,76,1,76,1,76,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,78,1,78,1,78, - 1,78,1,78,1,78,1,78,1,79,1,79,1,79,1,79,1,79,1,80,1,80,1,80,1,80, - 1,80,1,80,1,81,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,83,1,83,1,84, - 1,84,1,85,1,85,1,86,1,86,1,87,1,87,1,88,1,88,1,89,1,89,1,90,1,90, - 1,91,1,91,1,92,1,92,1,93,1,93,1,94,1,94,1,95,3,95,858,8,95,1,95, - 4,95,861,8,95,11,95,12,95,862,1,96,3,96,866,8,96,1,96,1,96,1,96, - 5,96,871,8,96,10,96,12,96,874,9,96,3,96,876,8,96,1,96,1,96,4,96, - 880,8,96,11,96,12,96,881,3,96,884,8,96,1,96,1,96,3,96,888,8,96,1, - 96,4,96,891,8,96,11,96,12,96,892,3,96,895,8,96,1,97,1,97,5,97,899, - 8,97,10,97,12,97,902,9,97,1,98,1,98,1,98,5,98,907,8,98,10,98,12, - 98,910,9,98,1,98,1,98,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,3, - 99,922,8,99,1,100,1,100,1,101,1,101,1,101,1,101,5,101,930,8,101, - 10,101,12,101,933,9,101,1,101,1,101,1,102,1,102,1,102,1,102,5,102, - 941,8,102,10,102,12,102,944,9,102,1,102,1,102,1,102,1,102,1,102, - 1,103,4,103,952,8,103,11,103,12,103,953,1,103,1,103,1,942,0,104, - 1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13, - 27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24, - 49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35, - 71,36,73,37,75,38,77,39,79,40,81,41,83,42,85,43,87,44,89,45,91,46, - 93,47,95,48,97,49,99,50,101,51,103,52,105,53,107,54,109,55,111,56, - 113,57,115,58,117,59,119,60,121,61,123,62,125,63,127,64,129,65,131, - 66,133,67,135,68,137,69,139,70,141,71,143,72,145,73,147,74,149,75, - 151,76,153,77,155,78,157,79,159,80,161,81,163,82,165,83,167,84,169, - 85,171,86,173,87,175,88,177,89,179,90,181,91,183,92,185,93,187,94, - 189,95,191,96,193,97,195,98,197,99,199,0,201,0,203,100,205,101,207, - 102,1,0,11,1,0,48,57,1,0,49,57,2,0,69,69,101,101,2,0,43,43,45,45, - 3,0,65,90,95,95,97,122,4,0,48,57,65,90,95,95,97,122,4,0,10,10,13, - 13,34,34,92,92,8,0,34,34,47,47,92,92,98,98,102,102,110,110,114,114, - 116,116,3,0,48,57,65,70,97,102,2,0,10,10,13,13,3,0,9,10,13,13,32, - 32,971,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0, - 0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0, - 0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0, - 0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0, - 0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0, - 0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0, - 0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0, - 0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0, - 0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0, - 0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0, - 0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109, - 1,0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0, - 0,119,1,0,0,0,0,121,1,0,0,0,0,123,1,0,0,0,0,125,1,0,0,0,0,127,1, - 0,0,0,0,129,1,0,0,0,0,131,1,0,0,0,0,133,1,0,0,0,0,135,1,0,0,0,0, - 137,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0, - 0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155, - 1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0, - 0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1, - 0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0, - 183,1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0, - 0,0,0,193,1,0,0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,203,1,0,0,0,0,205, - 1,0,0,0,0,207,1,0,0,0,1,209,1,0,0,0,3,219,1,0,0,0,5,226,1,0,0,0, - 7,235,1,0,0,0,9,240,1,0,0,0,11,250,1,0,0,0,13,261,1,0,0,0,15,269, - 1,0,0,0,17,275,1,0,0,0,19,284,1,0,0,0,21,294,1,0,0,0,23,303,1,0, - 0,0,25,315,1,0,0,0,27,326,1,0,0,0,29,334,1,0,0,0,31,337,1,0,0,0, - 33,342,1,0,0,0,35,345,1,0,0,0,37,353,1,0,0,0,39,360,1,0,0,0,41,366, - 1,0,0,0,43,371,1,0,0,0,45,382,1,0,0,0,47,387,1,0,0,0,49,393,1,0, - 0,0,51,397,1,0,0,0,53,409,1,0,0,0,55,412,1,0,0,0,57,419,1,0,0,0, - 59,422,1,0,0,0,61,429,1,0,0,0,63,437,1,0,0,0,65,444,1,0,0,0,67,455, - 1,0,0,0,69,462,1,0,0,0,71,471,1,0,0,0,73,474,1,0,0,0,75,478,1,0, - 0,0,77,483,1,0,0,0,79,489,1,0,0,0,81,498,1,0,0,0,83,507,1,0,0,0, - 85,511,1,0,0,0,87,515,1,0,0,0,89,519,1,0,0,0,91,525,1,0,0,0,93,531, - 1,0,0,0,95,536,1,0,0,0,97,541,1,0,0,0,99,547,1,0,0,0,101,555,1,0, - 0,0,103,563,1,0,0,0,105,574,1,0,0,0,107,579,1,0,0,0,109,591,1,0, - 0,0,111,602,1,0,0,0,113,612,1,0,0,0,115,624,1,0,0,0,117,644,1,0, - 0,0,119,649,1,0,0,0,121,662,1,0,0,0,123,674,1,0,0,0,125,686,1,0, - 0,0,127,691,1,0,0,0,129,699,1,0,0,0,131,704,1,0,0,0,133,717,1,0, - 0,0,135,725,1,0,0,0,137,734,1,0,0,0,139,748,1,0,0,0,141,757,1,0, - 0,0,143,762,1,0,0,0,145,767,1,0,0,0,147,773,1,0,0,0,149,780,1,0, - 0,0,151,786,1,0,0,0,153,792,1,0,0,0,155,799,1,0,0,0,157,806,1,0, - 0,0,159,813,1,0,0,0,161,818,1,0,0,0,163,824,1,0,0,0,165,829,1,0, - 0,0,167,832,1,0,0,0,169,834,1,0,0,0,171,836,1,0,0,0,173,838,1,0, - 0,0,175,840,1,0,0,0,177,842,1,0,0,0,179,844,1,0,0,0,181,846,1,0, - 0,0,183,848,1,0,0,0,185,850,1,0,0,0,187,852,1,0,0,0,189,854,1,0, - 0,0,191,857,1,0,0,0,193,865,1,0,0,0,195,896,1,0,0,0,197,903,1,0, - 0,0,199,913,1,0,0,0,201,923,1,0,0,0,203,925,1,0,0,0,205,936,1,0, - 0,0,207,951,1,0,0,0,209,210,5,119,0,0,210,211,5,111,0,0,211,212, - 5,114,0,0,212,213,5,107,0,0,213,214,5,115,0,0,214,215,5,112,0,0, - 215,216,5,97,0,0,216,217,5,99,0,0,217,218,5,101,0,0,218,2,1,0,0, - 0,219,220,5,105,0,0,220,221,5,109,0,0,221,222,5,112,0,0,222,223, - 5,111,0,0,223,224,5,114,0,0,224,225,5,116,0,0,225,4,1,0,0,0,226, - 227,5,101,0,0,227,228,5,120,0,0,228,229,5,116,0,0,229,230,5,101, - 0,0,230,231,5,114,0,0,231,232,5,110,0,0,232,233,5,97,0,0,233,234, - 5,108,0,0,234,6,1,0,0,0,235,236,5,97,0,0,236,237,5,116,0,0,237,238, - 5,111,0,0,238,239,5,109,0,0,239,8,1,0,0,0,240,241,5,105,0,0,241, - 242,5,110,0,0,242,243,5,116,0,0,243,244,5,101,0,0,244,245,5,114, - 0,0,245,246,5,102,0,0,246,247,5,97,0,0,247,248,5,99,0,0,248,249, - 5,101,0,0,249,10,1,0,0,0,250,251,5,105,0,0,251,252,5,110,0,0,252, - 253,5,116,0,0,253,254,5,101,0,0,254,255,5,114,0,0,255,256,5,102, - 0,0,256,257,5,97,0,0,257,258,5,99,0,0,258,259,5,101,0,0,259,260, - 5,115,0,0,260,12,1,0,0,0,261,262,5,112,0,0,262,263,5,97,0,0,263, - 264,5,99,0,0,264,265,5,107,0,0,265,266,5,97,0,0,266,267,5,103,0, - 0,267,268,5,101,0,0,268,14,1,0,0,0,269,270,5,118,0,0,270,271,5,97, - 0,0,271,272,5,108,0,0,272,273,5,117,0,0,273,274,5,101,0,0,274,16, - 1,0,0,0,275,276,5,114,0,0,276,277,5,101,0,0,277,278,5,108,0,0,278, - 279,5,97,0,0,279,280,5,116,0,0,280,281,5,105,0,0,281,282,5,111,0, - 0,282,283,5,110,0,0,283,18,1,0,0,0,284,285,5,111,0,0,285,286,5,112, - 0,0,286,287,5,101,0,0,287,288,5,114,0,0,288,289,5,97,0,0,289,290, - 5,116,0,0,290,291,5,105,0,0,291,292,5,111,0,0,292,293,5,110,0,0, - 293,20,1,0,0,0,294,295,5,102,0,0,295,296,5,117,0,0,296,297,5,110, - 0,0,297,298,5,99,0,0,298,299,5,116,0,0,299,300,5,105,0,0,300,301, - 5,111,0,0,301,302,5,110,0,0,302,22,1,0,0,0,303,304,5,99,0,0,304, - 305,5,111,0,0,305,306,5,110,0,0,306,307,5,115,0,0,307,308,5,116, - 0,0,308,309,5,114,0,0,309,310,5,117,0,0,310,311,5,99,0,0,311,312, - 5,116,0,0,312,313,5,111,0,0,313,314,5,114,0,0,314,24,1,0,0,0,315, - 316,5,99,0,0,316,317,5,111,0,0,317,318,5,110,0,0,318,319,5,115,0, - 0,319,320,5,116,0,0,320,321,5,114,0,0,321,322,5,117,0,0,322,323, - 5,99,0,0,323,324,5,116,0,0,324,325,5,115,0,0,325,26,1,0,0,0,326, - 327,5,99,0,0,327,328,5,111,0,0,328,329,5,110,0,0,329,330,5,102,0, - 0,330,331,5,111,0,0,331,332,5,114,0,0,332,333,5,109,0,0,333,28,1, - 0,0,0,334,335,5,97,0,0,335,336,5,115,0,0,336,30,1,0,0,0,337,338, - 5,98,0,0,338,339,5,105,0,0,339,340,5,110,0,0,340,341,5,100,0,0,341, - 32,1,0,0,0,342,343,5,116,0,0,343,344,5,111,0,0,344,34,1,0,0,0,345, - 346,5,112,0,0,346,347,5,114,0,0,347,348,5,105,0,0,348,349,5,118, - 0,0,349,350,5,97,0,0,350,351,5,116,0,0,351,352,5,101,0,0,352,36, - 1,0,0,0,353,354,5,115,0,0,354,355,5,104,0,0,355,356,5,97,0,0,356, - 357,5,114,0,0,357,358,5,101,0,0,358,359,5,100,0,0,359,38,1,0,0,0, - 360,361,5,115,0,0,361,362,5,116,0,0,362,363,5,97,0,0,363,364,5,116, - 0,0,364,365,5,101,0,0,365,40,1,0,0,0,366,367,5,101,0,0,367,368,5, - 100,0,0,368,369,5,103,0,0,369,370,5,101,0,0,370,42,1,0,0,0,371,372, - 5,112,0,0,372,373,5,114,0,0,373,374,5,111,0,0,374,375,5,106,0,0, - 375,376,5,101,0,0,376,377,5,99,0,0,377,378,5,116,0,0,378,379,5,105, - 0,0,379,380,5,111,0,0,380,381,5,110,0,0,381,44,1,0,0,0,382,383,5, - 119,0,0,383,384,5,105,0,0,384,385,5,116,0,0,385,386,5,104,0,0,386, - 46,1,0,0,0,387,388,5,117,0,0,388,389,5,115,0,0,389,390,5,105,0,0, - 390,391,5,110,0,0,391,392,5,103,0,0,392,48,1,0,0,0,393,394,5,118, - 0,0,394,395,5,105,0,0,395,396,5,97,0,0,396,50,1,0,0,0,397,398,5, - 109,0,0,398,399,5,97,0,0,399,400,5,116,0,0,400,401,5,101,0,0,401, - 402,5,114,0,0,402,403,5,105,0,0,403,404,5,97,0,0,404,405,5,108,0, - 0,405,406,5,105,0,0,406,407,5,122,0,0,407,408,5,101,0,0,408,52,1, - 0,0,0,409,410,5,105,0,0,410,411,5,102,0,0,411,54,1,0,0,0,412,413, - 5,97,0,0,413,414,5,98,0,0,414,415,5,115,0,0,415,416,5,101,0,0,416, - 417,5,110,0,0,417,418,5,116,0,0,418,56,1,0,0,0,419,420,5,111,0,0, - 420,421,5,110,0,0,421,58,1,0,0,0,422,423,5,112,0,0,423,424,5,111, - 0,0,424,425,5,108,0,0,425,426,5,105,0,0,426,427,5,99,0,0,427,428, - 5,121,0,0,428,60,1,0,0,0,429,430,5,100,0,0,430,431,5,101,0,0,431, - 432,5,102,0,0,432,433,5,97,0,0,433,434,5,117,0,0,434,435,5,108,0, - 0,435,436,5,116,0,0,436,62,1,0,0,0,437,438,5,115,0,0,438,439,5,111, - 0,0,439,440,5,117,0,0,440,441,5,114,0,0,441,442,5,99,0,0,442,443, - 5,101,0,0,443,64,1,0,0,0,444,445,5,114,0,0,445,446,5,101,0,0,446, - 447,5,112,0,0,447,448,5,111,0,0,448,449,5,115,0,0,449,450,5,105, - 0,0,450,451,5,116,0,0,451,452,5,111,0,0,452,453,5,114,0,0,453,454, - 5,121,0,0,454,66,1,0,0,0,455,456,5,99,0,0,456,457,5,111,0,0,457, - 458,5,109,0,0,458,459,5,109,0,0,459,460,5,105,0,0,460,461,5,116, - 0,0,461,68,1,0,0,0,462,463,5,114,0,0,463,464,5,101,0,0,464,465,5, - 118,0,0,465,466,5,105,0,0,466,467,5,115,0,0,467,468,5,105,0,0,468, - 469,5,111,0,0,469,470,5,110,0,0,470,70,1,0,0,0,471,472,5,105,0,0, - 472,473,5,100,0,0,473,72,1,0,0,0,474,475,5,100,0,0,475,476,5,111, - 0,0,476,477,5,99,0,0,477,74,1,0,0,0,478,479,5,109,0,0,479,480,5, - 111,0,0,480,481,5,100,0,0,481,482,5,101,0,0,482,76,1,0,0,0,483,484, - 5,101,0,0,484,485,5,109,0,0,485,486,5,105,0,0,486,487,5,116,0,0, - 487,488,5,115,0,0,488,78,1,0,0,0,489,490,5,114,0,0,490,491,5,101, - 0,0,491,492,5,99,0,0,492,493,5,101,0,0,493,494,5,105,0,0,494,495, - 5,118,0,0,495,496,5,101,0,0,496,497,5,114,0,0,497,80,1,0,0,0,498, - 499,5,114,0,0,499,500,5,101,0,0,500,501,5,113,0,0,501,502,5,117, - 0,0,502,503,5,105,0,0,503,504,5,114,0,0,504,505,5,101,0,0,505,506, - 5,115,0,0,506,82,1,0,0,0,507,508,5,97,0,0,508,509,5,110,0,0,509, - 510,5,121,0,0,510,84,1,0,0,0,511,512,5,103,0,0,512,513,5,101,0,0, - 513,514,5,116,0,0,514,86,1,0,0,0,515,516,5,115,0,0,516,517,5,101, - 0,0,517,518,5,116,0,0,518,88,1,0,0,0,519,520,5,119,0,0,520,521,5, - 97,0,0,521,522,5,116,0,0,522,523,5,99,0,0,523,524,5,104,0,0,524, - 90,1,0,0,0,525,526,5,115,0,0,526,527,5,116,0,0,527,528,5,97,0,0, - 528,529,5,114,0,0,529,530,5,116,0,0,530,92,1,0,0,0,531,532,5,115, - 0,0,532,533,5,116,0,0,533,534,5,111,0,0,534,535,5,112,0,0,535,94, - 1,0,0,0,536,537,5,114,0,0,537,538,5,101,0,0,538,539,5,97,0,0,539, - 540,5,100,0,0,540,96,1,0,0,0,541,542,5,119,0,0,542,543,5,114,0,0, - 543,544,5,105,0,0,544,545,5,116,0,0,545,546,5,101,0,0,546,98,1,0, - 0,0,547,548,5,114,0,0,548,549,5,101,0,0,549,550,5,115,0,0,550,551, - 5,111,0,0,551,552,5,108,0,0,552,553,5,118,0,0,553,554,5,101,0,0, - 554,100,1,0,0,0,555,556,5,99,0,0,556,557,5,111,0,0,557,558,5,110, - 0,0,558,559,5,110,0,0,559,560,5,101,0,0,560,561,5,99,0,0,561,562, - 5,116,0,0,562,102,1,0,0,0,563,564,5,100,0,0,564,565,5,105,0,0,565, - 566,5,115,0,0,566,567,5,99,0,0,567,568,5,111,0,0,568,569,5,110,0, - 0,569,570,5,110,0,0,570,571,5,101,0,0,571,572,5,99,0,0,572,573,5, - 116,0,0,573,104,1,0,0,0,574,575,5,99,0,0,575,576,5,97,0,0,576,577, - 5,108,0,0,577,578,5,108,0,0,578,106,1,0,0,0,579,580,5,119,0,0,580, - 581,5,97,0,0,581,582,5,116,0,0,582,583,5,99,0,0,583,584,5,104,0, - 0,584,585,5,45,0,0,585,586,5,115,0,0,586,587,5,116,0,0,587,588,5, - 97,0,0,588,589,5,114,0,0,589,590,5,116,0,0,590,108,1,0,0,0,591,592, - 5,119,0,0,592,593,5,97,0,0,593,594,5,116,0,0,594,595,5,99,0,0,595, - 596,5,104,0,0,596,597,5,45,0,0,597,598,5,115,0,0,598,599,5,116,0, - 0,599,600,5,111,0,0,600,601,5,112,0,0,601,110,1,0,0,0,602,603,5, - 115,0,0,603,604,5,117,0,0,604,605,5,98,0,0,605,606,5,115,0,0,606, - 607,5,99,0,0,607,608,5,114,0,0,608,609,5,105,0,0,609,610,5,98,0, - 0,610,611,5,101,0,0,611,112,1,0,0,0,612,613,5,117,0,0,613,614,5, - 110,0,0,614,615,5,115,0,0,615,616,5,117,0,0,616,617,5,98,0,0,617, - 618,5,115,0,0,618,619,5,99,0,0,619,620,5,114,0,0,620,621,5,105,0, - 0,621,622,5,98,0,0,622,623,5,101,0,0,623,114,1,0,0,0,624,625,5,111, - 0,0,625,626,5,112,0,0,626,627,5,116,0,0,627,628,5,105,0,0,628,629, - 5,109,0,0,629,630,5,105,0,0,630,631,5,115,0,0,631,632,5,116,0,0, - 632,633,5,105,0,0,633,634,5,99,0,0,634,635,5,45,0,0,635,636,5,114, - 0,0,636,637,5,101,0,0,637,638,5,103,0,0,638,639,5,105,0,0,639,640, - 5,115,0,0,640,641,5,116,0,0,641,642,5,101,0,0,642,643,5,114,0,0, - 643,116,1,0,0,0,644,645,5,99,0,0,645,646,5,114,0,0,646,647,5,100, - 0,0,647,648,5,116,0,0,648,118,1,0,0,0,649,650,5,111,0,0,650,651, - 5,112,0,0,651,652,5,116,0,0,652,653,5,105,0,0,653,654,5,111,0,0, - 654,655,5,110,0,0,655,656,5,97,0,0,656,657,5,108,0,0,657,658,5,45, - 0,0,658,659,5,111,0,0,659,660,5,110,0,0,660,661,5,101,0,0,661,120, - 1,0,0,0,662,663,5,101,0,0,663,664,5,120,0,0,664,665,5,97,0,0,665, - 666,5,99,0,0,666,667,5,116,0,0,667,668,5,108,0,0,668,669,5,121,0, - 0,669,670,5,45,0,0,670,671,5,111,0,0,671,672,5,110,0,0,672,673,5, - 101,0,0,673,122,1,0,0,0,674,675,5,109,0,0,675,676,5,97,0,0,676,677, - 5,110,0,0,677,678,5,121,0,0,678,679,5,45,0,0,679,680,5,117,0,0,680, - 681,5,110,0,0,681,682,5,105,0,0,682,683,5,113,0,0,683,684,5,117, - 0,0,684,685,5,101,0,0,685,124,1,0,0,0,686,687,5,109,0,0,687,688, - 5,97,0,0,688,689,5,110,0,0,689,690,5,121,0,0,690,126,1,0,0,0,691, - 692,5,111,0,0,692,693,5,114,0,0,693,694,5,100,0,0,694,695,5,101, - 0,0,695,696,5,114,0,0,696,697,5,101,0,0,697,698,5,100,0,0,698,128, - 1,0,0,0,699,700,5,117,0,0,700,701,5,110,0,0,701,702,5,105,0,0,702, - 703,5,116,0,0,703,130,1,0,0,0,704,705,5,119,0,0,705,706,5,97,0,0, - 706,707,5,116,0,0,707,708,5,99,0,0,708,709,5,104,0,0,709,710,5,45, - 0,0,710,711,5,104,0,0,711,712,5,97,0,0,712,713,5,110,0,0,713,714, - 5,100,0,0,714,715,5,108,0,0,715,716,5,101,0,0,716,132,1,0,0,0,717, - 718,5,109,0,0,718,719,5,101,0,0,719,720,5,115,0,0,720,721,5,115, - 0,0,721,722,5,97,0,0,722,723,5,103,0,0,723,724,5,101,0,0,724,134, - 1,0,0,0,725,726,5,97,0,0,726,727,5,116,0,0,727,728,5,111,0,0,728, - 729,5,109,0,0,729,730,5,45,0,0,730,731,5,114,0,0,731,732,5,101,0, - 0,732,733,5,102,0,0,733,136,1,0,0,0,734,735,5,105,0,0,735,736,5, - 110,0,0,736,737,5,116,0,0,737,738,5,101,0,0,738,739,5,114,0,0,739, - 740,5,102,0,0,740,741,5,97,0,0,741,742,5,99,0,0,742,743,5,101,0, - 0,743,744,5,45,0,0,744,745,5,114,0,0,745,746,5,101,0,0,746,747,5, - 102,0,0,747,138,1,0,0,0,748,749,5,111,0,0,749,750,5,112,0,0,750, - 751,5,116,0,0,751,752,5,105,0,0,752,753,5,111,0,0,753,754,5,110, - 0,0,754,755,5,97,0,0,755,756,5,108,0,0,756,140,1,0,0,0,757,758,5, - 108,0,0,758,759,5,105,0,0,759,760,5,115,0,0,760,761,5,116,0,0,761, - 142,1,0,0,0,762,763,5,98,0,0,763,764,5,111,0,0,764,765,5,111,0,0, - 765,766,5,108,0,0,766,144,1,0,0,0,767,768,5,98,0,0,768,769,5,121, - 0,0,769,770,5,116,0,0,770,771,5,101,0,0,771,772,5,115,0,0,772,146, - 1,0,0,0,773,774,5,100,0,0,774,775,5,111,0,0,775,776,5,117,0,0,776, - 777,5,98,0,0,777,778,5,108,0,0,778,779,5,101,0,0,779,148,1,0,0,0, - 780,781,5,105,0,0,781,782,5,110,0,0,782,783,5,116,0,0,783,784,5, - 51,0,0,784,785,5,50,0,0,785,150,1,0,0,0,786,787,5,105,0,0,787,788, - 5,110,0,0,788,789,5,116,0,0,789,790,5,54,0,0,790,791,5,52,0,0,791, - 152,1,0,0,0,792,793,5,115,0,0,793,794,5,116,0,0,794,795,5,114,0, - 0,795,796,5,105,0,0,796,797,5,110,0,0,797,798,5,103,0,0,798,154, - 1,0,0,0,799,800,5,117,0,0,800,801,5,105,0,0,801,802,5,110,0,0,802, - 803,5,116,0,0,803,804,5,51,0,0,804,805,5,50,0,0,805,156,1,0,0,0, - 806,807,5,117,0,0,807,808,5,105,0,0,808,809,5,110,0,0,809,810,5, - 116,0,0,810,811,5,54,0,0,811,812,5,52,0,0,812,158,1,0,0,0,813,814, - 5,116,0,0,814,815,5,114,0,0,815,816,5,117,0,0,816,817,5,101,0,0, - 817,160,1,0,0,0,818,819,5,102,0,0,819,820,5,97,0,0,820,821,5,108, - 0,0,821,822,5,115,0,0,822,823,5,101,0,0,823,162,1,0,0,0,824,825, - 5,110,0,0,825,826,5,117,0,0,826,827,5,108,0,0,827,828,5,108,0,0, - 828,164,1,0,0,0,829,830,5,45,0,0,830,831,5,62,0,0,831,166,1,0,0, - 0,832,833,5,58,0,0,833,168,1,0,0,0,834,835,5,59,0,0,835,170,1,0, - 0,0,836,837,5,44,0,0,837,172,1,0,0,0,838,839,5,46,0,0,839,174,1, - 0,0,0,840,841,5,123,0,0,841,176,1,0,0,0,842,843,5,125,0,0,843,178, - 1,0,0,0,844,845,5,91,0,0,845,180,1,0,0,0,846,847,5,93,0,0,847,182, - 1,0,0,0,848,849,5,40,0,0,849,184,1,0,0,0,850,851,5,41,0,0,851,186, - 1,0,0,0,852,853,5,60,0,0,853,188,1,0,0,0,854,855,5,62,0,0,855,190, - 1,0,0,0,856,858,5,45,0,0,857,856,1,0,0,0,857,858,1,0,0,0,858,860, - 1,0,0,0,859,861,7,0,0,0,860,859,1,0,0,0,861,862,1,0,0,0,862,860, - 1,0,0,0,862,863,1,0,0,0,863,192,1,0,0,0,864,866,5,45,0,0,865,864, - 1,0,0,0,865,866,1,0,0,0,866,875,1,0,0,0,867,876,5,48,0,0,868,872, - 7,1,0,0,869,871,7,0,0,0,870,869,1,0,0,0,871,874,1,0,0,0,872,870, - 1,0,0,0,872,873,1,0,0,0,873,876,1,0,0,0,874,872,1,0,0,0,875,867, - 1,0,0,0,875,868,1,0,0,0,876,883,1,0,0,0,877,879,5,46,0,0,878,880, - 7,0,0,0,879,878,1,0,0,0,880,881,1,0,0,0,881,879,1,0,0,0,881,882, - 1,0,0,0,882,884,1,0,0,0,883,877,1,0,0,0,883,884,1,0,0,0,884,894, - 1,0,0,0,885,887,7,2,0,0,886,888,7,3,0,0,887,886,1,0,0,0,887,888, - 1,0,0,0,888,890,1,0,0,0,889,891,7,0,0,0,890,889,1,0,0,0,891,892, - 1,0,0,0,892,890,1,0,0,0,892,893,1,0,0,0,893,895,1,0,0,0,894,885, - 1,0,0,0,894,895,1,0,0,0,895,194,1,0,0,0,896,900,7,4,0,0,897,899, - 7,5,0,0,898,897,1,0,0,0,899,902,1,0,0,0,900,898,1,0,0,0,900,901, - 1,0,0,0,901,196,1,0,0,0,902,900,1,0,0,0,903,908,5,34,0,0,904,907, - 3,199,99,0,905,907,8,6,0,0,906,904,1,0,0,0,906,905,1,0,0,0,907,910, - 1,0,0,0,908,906,1,0,0,0,908,909,1,0,0,0,909,911,1,0,0,0,910,908, - 1,0,0,0,911,912,5,34,0,0,912,198,1,0,0,0,913,921,5,92,0,0,914,922, - 7,7,0,0,915,916,5,117,0,0,916,917,3,201,100,0,917,918,3,201,100, - 0,918,919,3,201,100,0,919,920,3,201,100,0,920,922,1,0,0,0,921,914, - 1,0,0,0,921,915,1,0,0,0,922,200,1,0,0,0,923,924,7,8,0,0,924,202, - 1,0,0,0,925,926,5,47,0,0,926,927,5,47,0,0,927,931,1,0,0,0,928,930, - 8,9,0,0,929,928,1,0,0,0,930,933,1,0,0,0,931,929,1,0,0,0,931,932, - 1,0,0,0,932,934,1,0,0,0,933,931,1,0,0,0,934,935,6,101,0,0,935,204, - 1,0,0,0,936,937,5,47,0,0,937,938,5,42,0,0,938,942,1,0,0,0,939,941, - 9,0,0,0,940,939,1,0,0,0,941,944,1,0,0,0,942,943,1,0,0,0,942,940, - 1,0,0,0,943,945,1,0,0,0,944,942,1,0,0,0,945,946,5,42,0,0,946,947, - 5,47,0,0,947,948,1,0,0,0,948,949,6,102,0,0,949,206,1,0,0,0,950,952, - 7,10,0,0,951,950,1,0,0,0,952,953,1,0,0,0,953,951,1,0,0,0,953,954, - 1,0,0,0,954,955,1,0,0,0,955,956,6,103,0,0,956,208,1,0,0,0,18,0,857, - 862,865,872,875,881,883,887,892,894,900,906,908,921,931,942,953, - 1,6,0,0 + 7,103,2,104,7,104,2,105,7,105,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1, + 0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,2,1,2,1,2,1,2,1, + 2,1,2,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,4,1,4,1,4,1,4,1,4,1, + 5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,6,1,6,1,6,1,6,1,6,1,6,1, + 6,1,6,1,6,1,6,1,6,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,8,1,8,1,8,1, + 8,1,8,1,8,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,10,1,10,1,10,1,10, + 1,10,1,10,1,10,1,10,1,10,1,10,1,11,1,11,1,11,1,11,1,11,1,11,1,11, + 1,11,1,11,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12, + 1,12,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,14, + 1,14,1,14,1,14,1,14,1,14,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,15, + 1,16,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1,18,1,18,1,18,1,19,1,19, + 1,19,1,19,1,19,1,19,1,19,1,19,1,20,1,20,1,20,1,20,1,20,1,20,1,20, + 1,21,1,21,1,21,1,21,1,21,1,21,1,22,1,22,1,22,1,22,1,22,1,23,1,23, + 1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,24,1,24,1,24,1,24, + 1,24,1,25,1,25,1,25,1,25,1,25,1,25,1,26,1,26,1,26,1,26,1,27,1,27, + 1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,28,1,28,1,28, + 1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,30,1,30,1,30,1,31,1,31,1,31, + 1,31,1,31,1,31,1,31,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,33, + 1,33,1,33,1,33,1,33,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,34, + 1,34,1,34,1,34,1,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,36,1,36, + 1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,38,1,38,1,38, + 1,38,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,40,1,41, + 1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,42,1,42,1,42,1,42,1,42, + 1,42,1,42,1,42,1,42,1,43,1,43,1,43,1,43,1,44,1,44,1,44,1,44,1,45, + 1,45,1,45,1,45,1,46,1,46,1,46,1,46,1,46,1,46,1,47,1,47,1,47,1,47, + 1,47,1,47,1,48,1,48,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,50, + 1,50,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51, + 1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53, + 1,53,1,53,1,53,1,53,1,53,1,53,1,54,1,54,1,54,1,54,1,54,1,55,1,55, + 1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,56,1,56,1,56, + 1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,57,1,57,1,57,1,57,1,57, + 1,57,1,57,1,57,1,57,1,57,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58, + 1,58,1,58,1,58,1,58,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59, + 1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,60,1,60, + 1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,1,61,1,61,1,61,1,61,1,61, + 1,61,1,61,1,61,1,62,1,62,1,62,1,62,1,62,1,62,1,62,1,62,1,62,1,62, + 1,62,1,62,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,63, + 1,63,1,64,1,64,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,65,1,65,1,65, + 1,65,1,66,1,66,1,66,1,66,1,66,1,67,1,67,1,67,1,67,1,67,1,67,1,67, + 1,67,1,67,1,67,1,67,1,67,1,67,1,68,1,68,1,68,1,68,1,68,1,68,1,68, + 1,68,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,70,1,70,1,70, + 1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,71,1,71, + 1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,72,1,72,1,72,1,72,1,72,1,73, + 1,73,1,73,1,73,1,73,1,74,1,74,1,74,1,74,1,74,1,74,1,75,1,75,1,75, + 1,75,1,75,1,75,1,75,1,76,1,76,1,76,1,76,1,76,1,76,1,77,1,77,1,77, + 1,77,1,77,1,77,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,79,1,79,1,79, + 1,79,1,79,1,79,1,79,1,80,1,80,1,80,1,80,1,80,1,80,1,80,1,81,1,81, + 1,81,1,81,1,81,1,82,1,82,1,82,1,82,1,82,1,82,1,83,1,83,1,83,1,83, + 1,83,1,84,1,84,1,84,1,85,1,85,1,86,1,86,1,87,1,87,1,88,1,88,1,89, + 1,89,1,90,1,90,1,91,1,91,1,92,1,92,1,93,1,93,1,94,1,94,1,95,1,95, + 1,96,1,96,1,97,3,97,877,8,97,1,97,4,97,880,8,97,11,97,12,97,881, + 1,98,3,98,885,8,98,1,98,1,98,1,98,5,98,890,8,98,10,98,12,98,893, + 9,98,3,98,895,8,98,1,98,1,98,4,98,899,8,98,11,98,12,98,900,3,98, + 903,8,98,1,98,1,98,3,98,907,8,98,1,98,4,98,910,8,98,11,98,12,98, + 911,3,98,914,8,98,1,99,1,99,5,99,918,8,99,10,99,12,99,921,9,99,1, + 100,1,100,1,100,5,100,926,8,100,10,100,12,100,929,9,100,1,100,1, + 100,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,3,101,941,8, + 101,1,102,1,102,1,103,1,103,1,103,1,103,5,103,949,8,103,10,103,12, + 103,952,9,103,1,103,1,103,1,104,1,104,1,104,1,104,5,104,960,8,104, + 10,104,12,104,963,9,104,1,104,1,104,1,104,1,104,1,104,1,105,4,105, + 971,8,105,11,105,12,105,972,1,105,1,105,1,961,0,106,1,1,3,2,5,3, + 7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15, + 31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26, + 53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37, + 75,38,77,39,79,40,81,41,83,42,85,43,87,44,89,45,91,46,93,47,95,48, + 97,49,99,50,101,51,103,52,105,53,107,54,109,55,111,56,113,57,115, + 58,117,59,119,60,121,61,123,62,125,63,127,64,129,65,131,66,133,67, + 135,68,137,69,139,70,141,71,143,72,145,73,147,74,149,75,151,76,153, + 77,155,78,157,79,159,80,161,81,163,82,165,83,167,84,169,85,171,86, + 173,87,175,88,177,89,179,90,181,91,183,92,185,93,187,94,189,95,191, + 96,193,97,195,98,197,99,199,100,201,101,203,0,205,0,207,102,209, + 103,211,104,1,0,11,1,0,48,57,1,0,49,57,2,0,69,69,101,101,2,0,43, + 43,45,45,3,0,65,90,95,95,97,122,4,0,48,57,65,90,95,95,97,122,4,0, + 10,10,13,13,34,34,92,92,8,0,34,34,47,47,92,92,98,98,102,102,110, + 110,114,114,116,116,3,0,48,57,65,70,97,102,2,0,10,10,13,13,3,0,9, + 10,13,13,32,32,990,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0, + 0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0, + 0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0, + 0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0, + 0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0, + 0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0, + 0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0, + 0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0, + 0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0, + 0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0, + 0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1, + 0,0,0,0,109,1,0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0, + 117,1,0,0,0,0,119,1,0,0,0,0,121,1,0,0,0,0,123,1,0,0,0,0,125,1,0, + 0,0,0,127,1,0,0,0,0,129,1,0,0,0,0,131,1,0,0,0,0,133,1,0,0,0,0,135, + 1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0, + 0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1, + 0,0,0,0,155,1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0, + 163,1,0,0,0,0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0, + 0,0,0,173,1,0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181, + 1,0,0,0,0,183,1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0, + 0,191,1,0,0,0,0,193,1,0,0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,199,1, + 0,0,0,0,201,1,0,0,0,0,207,1,0,0,0,0,209,1,0,0,0,0,211,1,0,0,0,1, + 213,1,0,0,0,3,223,1,0,0,0,5,232,1,0,0,0,7,239,1,0,0,0,9,248,1,0, + 0,0,11,253,1,0,0,0,13,263,1,0,0,0,15,274,1,0,0,0,17,282,1,0,0,0, + 19,288,1,0,0,0,21,297,1,0,0,0,23,307,1,0,0,0,25,316,1,0,0,0,27,328, + 1,0,0,0,29,339,1,0,0,0,31,345,1,0,0,0,33,353,1,0,0,0,35,356,1,0, + 0,0,37,361,1,0,0,0,39,364,1,0,0,0,41,372,1,0,0,0,43,379,1,0,0,0, + 45,385,1,0,0,0,47,390,1,0,0,0,49,401,1,0,0,0,51,406,1,0,0,0,53,412, + 1,0,0,0,55,416,1,0,0,0,57,428,1,0,0,0,59,431,1,0,0,0,61,438,1,0, + 0,0,63,441,1,0,0,0,65,448,1,0,0,0,67,456,1,0,0,0,69,463,1,0,0,0, + 71,474,1,0,0,0,73,481,1,0,0,0,75,490,1,0,0,0,77,493,1,0,0,0,79,497, + 1,0,0,0,81,502,1,0,0,0,83,508,1,0,0,0,85,517,1,0,0,0,87,526,1,0, + 0,0,89,530,1,0,0,0,91,534,1,0,0,0,93,538,1,0,0,0,95,544,1,0,0,0, + 97,550,1,0,0,0,99,555,1,0,0,0,101,560,1,0,0,0,103,566,1,0,0,0,105, + 574,1,0,0,0,107,582,1,0,0,0,109,593,1,0,0,0,111,598,1,0,0,0,113, + 610,1,0,0,0,115,621,1,0,0,0,117,631,1,0,0,0,119,643,1,0,0,0,121, + 663,1,0,0,0,123,668,1,0,0,0,125,681,1,0,0,0,127,693,1,0,0,0,129, + 705,1,0,0,0,131,710,1,0,0,0,133,718,1,0,0,0,135,723,1,0,0,0,137, + 736,1,0,0,0,139,744,1,0,0,0,141,753,1,0,0,0,143,767,1,0,0,0,145, + 776,1,0,0,0,147,781,1,0,0,0,149,786,1,0,0,0,151,792,1,0,0,0,153, + 799,1,0,0,0,155,805,1,0,0,0,157,811,1,0,0,0,159,818,1,0,0,0,161, + 825,1,0,0,0,163,832,1,0,0,0,165,837,1,0,0,0,167,843,1,0,0,0,169, + 848,1,0,0,0,171,851,1,0,0,0,173,853,1,0,0,0,175,855,1,0,0,0,177, + 857,1,0,0,0,179,859,1,0,0,0,181,861,1,0,0,0,183,863,1,0,0,0,185, + 865,1,0,0,0,187,867,1,0,0,0,189,869,1,0,0,0,191,871,1,0,0,0,193, + 873,1,0,0,0,195,876,1,0,0,0,197,884,1,0,0,0,199,915,1,0,0,0,201, + 922,1,0,0,0,203,932,1,0,0,0,205,942,1,0,0,0,207,944,1,0,0,0,209, + 955,1,0,0,0,211,970,1,0,0,0,213,214,5,119,0,0,214,215,5,111,0,0, + 215,216,5,114,0,0,216,217,5,107,0,0,217,218,5,115,0,0,218,219,5, + 112,0,0,219,220,5,97,0,0,220,221,5,99,0,0,221,222,5,101,0,0,222, + 2,1,0,0,0,223,224,5,102,0,0,224,225,5,114,0,0,225,226,5,97,0,0,226, + 227,5,103,0,0,227,228,5,109,0,0,228,229,5,101,0,0,229,230,5,110, + 0,0,230,231,5,116,0,0,231,4,1,0,0,0,232,233,5,105,0,0,233,234,5, + 109,0,0,234,235,5,112,0,0,235,236,5,111,0,0,236,237,5,114,0,0,237, + 238,5,116,0,0,238,6,1,0,0,0,239,240,5,101,0,0,240,241,5,120,0,0, + 241,242,5,116,0,0,242,243,5,101,0,0,243,244,5,114,0,0,244,245,5, + 110,0,0,245,246,5,97,0,0,246,247,5,108,0,0,247,8,1,0,0,0,248,249, + 5,97,0,0,249,250,5,116,0,0,250,251,5,111,0,0,251,252,5,109,0,0,252, + 10,1,0,0,0,253,254,5,105,0,0,254,255,5,110,0,0,255,256,5,116,0,0, + 256,257,5,101,0,0,257,258,5,114,0,0,258,259,5,102,0,0,259,260,5, + 97,0,0,260,261,5,99,0,0,261,262,5,101,0,0,262,12,1,0,0,0,263,264, + 5,105,0,0,264,265,5,110,0,0,265,266,5,116,0,0,266,267,5,101,0,0, + 267,268,5,114,0,0,268,269,5,102,0,0,269,270,5,97,0,0,270,271,5,99, + 0,0,271,272,5,101,0,0,272,273,5,115,0,0,273,14,1,0,0,0,274,275,5, + 112,0,0,275,276,5,97,0,0,276,277,5,99,0,0,277,278,5,107,0,0,278, + 279,5,97,0,0,279,280,5,103,0,0,280,281,5,101,0,0,281,16,1,0,0,0, + 282,283,5,118,0,0,283,284,5,97,0,0,284,285,5,108,0,0,285,286,5,117, + 0,0,286,287,5,101,0,0,287,18,1,0,0,0,288,289,5,114,0,0,289,290,5, + 101,0,0,290,291,5,108,0,0,291,292,5,97,0,0,292,293,5,116,0,0,293, + 294,5,105,0,0,294,295,5,111,0,0,295,296,5,110,0,0,296,20,1,0,0,0, + 297,298,5,111,0,0,298,299,5,112,0,0,299,300,5,101,0,0,300,301,5, + 114,0,0,301,302,5,97,0,0,302,303,5,116,0,0,303,304,5,105,0,0,304, + 305,5,111,0,0,305,306,5,110,0,0,306,22,1,0,0,0,307,308,5,102,0,0, + 308,309,5,117,0,0,309,310,5,110,0,0,310,311,5,99,0,0,311,312,5,116, + 0,0,312,313,5,105,0,0,313,314,5,111,0,0,314,315,5,110,0,0,315,24, + 1,0,0,0,316,317,5,99,0,0,317,318,5,111,0,0,318,319,5,110,0,0,319, + 320,5,115,0,0,320,321,5,116,0,0,321,322,5,114,0,0,322,323,5,117, + 0,0,323,324,5,99,0,0,324,325,5,116,0,0,325,326,5,111,0,0,326,327, + 5,114,0,0,327,26,1,0,0,0,328,329,5,99,0,0,329,330,5,111,0,0,330, + 331,5,110,0,0,331,332,5,115,0,0,332,333,5,116,0,0,333,334,5,114, + 0,0,334,335,5,117,0,0,335,336,5,99,0,0,336,337,5,116,0,0,337,338, + 5,115,0,0,338,28,1,0,0,0,339,340,5,105,0,0,340,341,5,110,0,0,341, + 342,5,112,0,0,342,343,5,117,0,0,343,344,5,116,0,0,344,30,1,0,0,0, + 345,346,5,99,0,0,346,347,5,111,0,0,347,348,5,110,0,0,348,349,5,102, + 0,0,349,350,5,111,0,0,350,351,5,114,0,0,351,352,5,109,0,0,352,32, + 1,0,0,0,353,354,5,97,0,0,354,355,5,115,0,0,355,34,1,0,0,0,356,357, + 5,98,0,0,357,358,5,105,0,0,358,359,5,110,0,0,359,360,5,100,0,0,360, + 36,1,0,0,0,361,362,5,116,0,0,362,363,5,111,0,0,363,38,1,0,0,0,364, + 365,5,112,0,0,365,366,5,114,0,0,366,367,5,105,0,0,367,368,5,118, + 0,0,368,369,5,97,0,0,369,370,5,116,0,0,370,371,5,101,0,0,371,40, + 1,0,0,0,372,373,5,115,0,0,373,374,5,104,0,0,374,375,5,97,0,0,375, + 376,5,114,0,0,376,377,5,101,0,0,377,378,5,100,0,0,378,42,1,0,0,0, + 379,380,5,115,0,0,380,381,5,116,0,0,381,382,5,97,0,0,382,383,5,116, + 0,0,383,384,5,101,0,0,384,44,1,0,0,0,385,386,5,101,0,0,386,387,5, + 100,0,0,387,388,5,103,0,0,388,389,5,101,0,0,389,46,1,0,0,0,390,391, + 5,112,0,0,391,392,5,114,0,0,392,393,5,111,0,0,393,394,5,106,0,0, + 394,395,5,101,0,0,395,396,5,99,0,0,396,397,5,116,0,0,397,398,5,105, + 0,0,398,399,5,111,0,0,399,400,5,110,0,0,400,48,1,0,0,0,401,402,5, + 119,0,0,402,403,5,105,0,0,403,404,5,116,0,0,404,405,5,104,0,0,405, + 50,1,0,0,0,406,407,5,117,0,0,407,408,5,115,0,0,408,409,5,105,0,0, + 409,410,5,110,0,0,410,411,5,103,0,0,411,52,1,0,0,0,412,413,5,118, + 0,0,413,414,5,105,0,0,414,415,5,97,0,0,415,54,1,0,0,0,416,417,5, + 109,0,0,417,418,5,97,0,0,418,419,5,116,0,0,419,420,5,101,0,0,420, + 421,5,114,0,0,421,422,5,105,0,0,422,423,5,97,0,0,423,424,5,108,0, + 0,424,425,5,105,0,0,425,426,5,122,0,0,426,427,5,101,0,0,427,56,1, + 0,0,0,428,429,5,105,0,0,429,430,5,102,0,0,430,58,1,0,0,0,431,432, + 5,97,0,0,432,433,5,98,0,0,433,434,5,115,0,0,434,435,5,101,0,0,435, + 436,5,110,0,0,436,437,5,116,0,0,437,60,1,0,0,0,438,439,5,111,0,0, + 439,440,5,110,0,0,440,62,1,0,0,0,441,442,5,112,0,0,442,443,5,111, + 0,0,443,444,5,108,0,0,444,445,5,105,0,0,445,446,5,99,0,0,446,447, + 5,121,0,0,447,64,1,0,0,0,448,449,5,100,0,0,449,450,5,101,0,0,450, + 451,5,102,0,0,451,452,5,97,0,0,452,453,5,117,0,0,453,454,5,108,0, + 0,454,455,5,116,0,0,455,66,1,0,0,0,456,457,5,115,0,0,457,458,5,111, + 0,0,458,459,5,117,0,0,459,460,5,114,0,0,460,461,5,99,0,0,461,462, + 5,101,0,0,462,68,1,0,0,0,463,464,5,114,0,0,464,465,5,101,0,0,465, + 466,5,112,0,0,466,467,5,111,0,0,467,468,5,115,0,0,468,469,5,105, + 0,0,469,470,5,116,0,0,470,471,5,111,0,0,471,472,5,114,0,0,472,473, + 5,121,0,0,473,70,1,0,0,0,474,475,5,99,0,0,475,476,5,111,0,0,476, + 477,5,109,0,0,477,478,5,109,0,0,478,479,5,105,0,0,479,480,5,116, + 0,0,480,72,1,0,0,0,481,482,5,114,0,0,482,483,5,101,0,0,483,484,5, + 118,0,0,484,485,5,105,0,0,485,486,5,115,0,0,486,487,5,105,0,0,487, + 488,5,111,0,0,488,489,5,110,0,0,489,74,1,0,0,0,490,491,5,105,0,0, + 491,492,5,100,0,0,492,76,1,0,0,0,493,494,5,100,0,0,494,495,5,111, + 0,0,495,496,5,99,0,0,496,78,1,0,0,0,497,498,5,109,0,0,498,499,5, + 111,0,0,499,500,5,100,0,0,500,501,5,101,0,0,501,80,1,0,0,0,502,503, + 5,101,0,0,503,504,5,109,0,0,504,505,5,105,0,0,505,506,5,116,0,0, + 506,507,5,115,0,0,507,82,1,0,0,0,508,509,5,114,0,0,509,510,5,101, + 0,0,510,511,5,99,0,0,511,512,5,101,0,0,512,513,5,105,0,0,513,514, + 5,118,0,0,514,515,5,101,0,0,515,516,5,114,0,0,516,84,1,0,0,0,517, + 518,5,114,0,0,518,519,5,101,0,0,519,520,5,113,0,0,520,521,5,117, + 0,0,521,522,5,105,0,0,522,523,5,114,0,0,523,524,5,101,0,0,524,525, + 5,115,0,0,525,86,1,0,0,0,526,527,5,97,0,0,527,528,5,110,0,0,528, + 529,5,121,0,0,529,88,1,0,0,0,530,531,5,103,0,0,531,532,5,101,0,0, + 532,533,5,116,0,0,533,90,1,0,0,0,534,535,5,115,0,0,535,536,5,101, + 0,0,536,537,5,116,0,0,537,92,1,0,0,0,538,539,5,119,0,0,539,540,5, + 97,0,0,540,541,5,116,0,0,541,542,5,99,0,0,542,543,5,104,0,0,543, + 94,1,0,0,0,544,545,5,115,0,0,545,546,5,116,0,0,546,547,5,97,0,0, + 547,548,5,114,0,0,548,549,5,116,0,0,549,96,1,0,0,0,550,551,5,115, + 0,0,551,552,5,116,0,0,552,553,5,111,0,0,553,554,5,112,0,0,554,98, + 1,0,0,0,555,556,5,114,0,0,556,557,5,101,0,0,557,558,5,97,0,0,558, + 559,5,100,0,0,559,100,1,0,0,0,560,561,5,119,0,0,561,562,5,114,0, + 0,562,563,5,105,0,0,563,564,5,116,0,0,564,565,5,101,0,0,565,102, + 1,0,0,0,566,567,5,114,0,0,567,568,5,101,0,0,568,569,5,115,0,0,569, + 570,5,111,0,0,570,571,5,108,0,0,571,572,5,118,0,0,572,573,5,101, + 0,0,573,104,1,0,0,0,574,575,5,99,0,0,575,576,5,111,0,0,576,577,5, + 110,0,0,577,578,5,110,0,0,578,579,5,101,0,0,579,580,5,99,0,0,580, + 581,5,116,0,0,581,106,1,0,0,0,582,583,5,100,0,0,583,584,5,105,0, + 0,584,585,5,115,0,0,585,586,5,99,0,0,586,587,5,111,0,0,587,588,5, + 110,0,0,588,589,5,110,0,0,589,590,5,101,0,0,590,591,5,99,0,0,591, + 592,5,116,0,0,592,108,1,0,0,0,593,594,5,99,0,0,594,595,5,97,0,0, + 595,596,5,108,0,0,596,597,5,108,0,0,597,110,1,0,0,0,598,599,5,119, + 0,0,599,600,5,97,0,0,600,601,5,116,0,0,601,602,5,99,0,0,602,603, + 5,104,0,0,603,604,5,45,0,0,604,605,5,115,0,0,605,606,5,116,0,0,606, + 607,5,97,0,0,607,608,5,114,0,0,608,609,5,116,0,0,609,112,1,0,0,0, + 610,611,5,119,0,0,611,612,5,97,0,0,612,613,5,116,0,0,613,614,5,99, + 0,0,614,615,5,104,0,0,615,616,5,45,0,0,616,617,5,115,0,0,617,618, + 5,116,0,0,618,619,5,111,0,0,619,620,5,112,0,0,620,114,1,0,0,0,621, + 622,5,115,0,0,622,623,5,117,0,0,623,624,5,98,0,0,624,625,5,115,0, + 0,625,626,5,99,0,0,626,627,5,114,0,0,627,628,5,105,0,0,628,629,5, + 98,0,0,629,630,5,101,0,0,630,116,1,0,0,0,631,632,5,117,0,0,632,633, + 5,110,0,0,633,634,5,115,0,0,634,635,5,117,0,0,635,636,5,98,0,0,636, + 637,5,115,0,0,637,638,5,99,0,0,638,639,5,114,0,0,639,640,5,105,0, + 0,640,641,5,98,0,0,641,642,5,101,0,0,642,118,1,0,0,0,643,644,5,111, + 0,0,644,645,5,112,0,0,645,646,5,116,0,0,646,647,5,105,0,0,647,648, + 5,109,0,0,648,649,5,105,0,0,649,650,5,115,0,0,650,651,5,116,0,0, + 651,652,5,105,0,0,652,653,5,99,0,0,653,654,5,45,0,0,654,655,5,114, + 0,0,655,656,5,101,0,0,656,657,5,103,0,0,657,658,5,105,0,0,658,659, + 5,115,0,0,659,660,5,116,0,0,660,661,5,101,0,0,661,662,5,114,0,0, + 662,120,1,0,0,0,663,664,5,99,0,0,664,665,5,114,0,0,665,666,5,100, + 0,0,666,667,5,116,0,0,667,122,1,0,0,0,668,669,5,111,0,0,669,670, + 5,112,0,0,670,671,5,116,0,0,671,672,5,105,0,0,672,673,5,111,0,0, + 673,674,5,110,0,0,674,675,5,97,0,0,675,676,5,108,0,0,676,677,5,45, + 0,0,677,678,5,111,0,0,678,679,5,110,0,0,679,680,5,101,0,0,680,124, + 1,0,0,0,681,682,5,101,0,0,682,683,5,120,0,0,683,684,5,97,0,0,684, + 685,5,99,0,0,685,686,5,116,0,0,686,687,5,108,0,0,687,688,5,121,0, + 0,688,689,5,45,0,0,689,690,5,111,0,0,690,691,5,110,0,0,691,692,5, + 101,0,0,692,126,1,0,0,0,693,694,5,109,0,0,694,695,5,97,0,0,695,696, + 5,110,0,0,696,697,5,121,0,0,697,698,5,45,0,0,698,699,5,117,0,0,699, + 700,5,110,0,0,700,701,5,105,0,0,701,702,5,113,0,0,702,703,5,117, + 0,0,703,704,5,101,0,0,704,128,1,0,0,0,705,706,5,109,0,0,706,707, + 5,97,0,0,707,708,5,110,0,0,708,709,5,121,0,0,709,130,1,0,0,0,710, + 711,5,111,0,0,711,712,5,114,0,0,712,713,5,100,0,0,713,714,5,101, + 0,0,714,715,5,114,0,0,715,716,5,101,0,0,716,717,5,100,0,0,717,132, + 1,0,0,0,718,719,5,117,0,0,719,720,5,110,0,0,720,721,5,105,0,0,721, + 722,5,116,0,0,722,134,1,0,0,0,723,724,5,119,0,0,724,725,5,97,0,0, + 725,726,5,116,0,0,726,727,5,99,0,0,727,728,5,104,0,0,728,729,5,45, + 0,0,729,730,5,104,0,0,730,731,5,97,0,0,731,732,5,110,0,0,732,733, + 5,100,0,0,733,734,5,108,0,0,734,735,5,101,0,0,735,136,1,0,0,0,736, + 737,5,109,0,0,737,738,5,101,0,0,738,739,5,115,0,0,739,740,5,115, + 0,0,740,741,5,97,0,0,741,742,5,103,0,0,742,743,5,101,0,0,743,138, + 1,0,0,0,744,745,5,97,0,0,745,746,5,116,0,0,746,747,5,111,0,0,747, + 748,5,109,0,0,748,749,5,45,0,0,749,750,5,114,0,0,750,751,5,101,0, + 0,751,752,5,102,0,0,752,140,1,0,0,0,753,754,5,105,0,0,754,755,5, + 110,0,0,755,756,5,116,0,0,756,757,5,101,0,0,757,758,5,114,0,0,758, + 759,5,102,0,0,759,760,5,97,0,0,760,761,5,99,0,0,761,762,5,101,0, + 0,762,763,5,45,0,0,763,764,5,114,0,0,764,765,5,101,0,0,765,766,5, + 102,0,0,766,142,1,0,0,0,767,768,5,111,0,0,768,769,5,112,0,0,769, + 770,5,116,0,0,770,771,5,105,0,0,771,772,5,111,0,0,772,773,5,110, + 0,0,773,774,5,97,0,0,774,775,5,108,0,0,775,144,1,0,0,0,776,777,5, + 108,0,0,777,778,5,105,0,0,778,779,5,115,0,0,779,780,5,116,0,0,780, + 146,1,0,0,0,781,782,5,98,0,0,782,783,5,111,0,0,783,784,5,111,0,0, + 784,785,5,108,0,0,785,148,1,0,0,0,786,787,5,98,0,0,787,788,5,121, + 0,0,788,789,5,116,0,0,789,790,5,101,0,0,790,791,5,115,0,0,791,150, + 1,0,0,0,792,793,5,100,0,0,793,794,5,111,0,0,794,795,5,117,0,0,795, + 796,5,98,0,0,796,797,5,108,0,0,797,798,5,101,0,0,798,152,1,0,0,0, + 799,800,5,105,0,0,800,801,5,110,0,0,801,802,5,116,0,0,802,803,5, + 51,0,0,803,804,5,50,0,0,804,154,1,0,0,0,805,806,5,105,0,0,806,807, + 5,110,0,0,807,808,5,116,0,0,808,809,5,54,0,0,809,810,5,52,0,0,810, + 156,1,0,0,0,811,812,5,115,0,0,812,813,5,116,0,0,813,814,5,114,0, + 0,814,815,5,105,0,0,815,816,5,110,0,0,816,817,5,103,0,0,817,158, + 1,0,0,0,818,819,5,117,0,0,819,820,5,105,0,0,820,821,5,110,0,0,821, + 822,5,116,0,0,822,823,5,51,0,0,823,824,5,50,0,0,824,160,1,0,0,0, + 825,826,5,117,0,0,826,827,5,105,0,0,827,828,5,110,0,0,828,829,5, + 116,0,0,829,830,5,54,0,0,830,831,5,52,0,0,831,162,1,0,0,0,832,833, + 5,116,0,0,833,834,5,114,0,0,834,835,5,117,0,0,835,836,5,101,0,0, + 836,164,1,0,0,0,837,838,5,102,0,0,838,839,5,97,0,0,839,840,5,108, + 0,0,840,841,5,115,0,0,841,842,5,101,0,0,842,166,1,0,0,0,843,844, + 5,110,0,0,844,845,5,117,0,0,845,846,5,108,0,0,846,847,5,108,0,0, + 847,168,1,0,0,0,848,849,5,45,0,0,849,850,5,62,0,0,850,170,1,0,0, + 0,851,852,5,58,0,0,852,172,1,0,0,0,853,854,5,59,0,0,854,174,1,0, + 0,0,855,856,5,44,0,0,856,176,1,0,0,0,857,858,5,46,0,0,858,178,1, + 0,0,0,859,860,5,123,0,0,860,180,1,0,0,0,861,862,5,125,0,0,862,182, + 1,0,0,0,863,864,5,91,0,0,864,184,1,0,0,0,865,866,5,93,0,0,866,186, + 1,0,0,0,867,868,5,40,0,0,868,188,1,0,0,0,869,870,5,41,0,0,870,190, + 1,0,0,0,871,872,5,60,0,0,872,192,1,0,0,0,873,874,5,62,0,0,874,194, + 1,0,0,0,875,877,5,45,0,0,876,875,1,0,0,0,876,877,1,0,0,0,877,879, + 1,0,0,0,878,880,7,0,0,0,879,878,1,0,0,0,880,881,1,0,0,0,881,879, + 1,0,0,0,881,882,1,0,0,0,882,196,1,0,0,0,883,885,5,45,0,0,884,883, + 1,0,0,0,884,885,1,0,0,0,885,894,1,0,0,0,886,895,5,48,0,0,887,891, + 7,1,0,0,888,890,7,0,0,0,889,888,1,0,0,0,890,893,1,0,0,0,891,889, + 1,0,0,0,891,892,1,0,0,0,892,895,1,0,0,0,893,891,1,0,0,0,894,886, + 1,0,0,0,894,887,1,0,0,0,895,902,1,0,0,0,896,898,5,46,0,0,897,899, + 7,0,0,0,898,897,1,0,0,0,899,900,1,0,0,0,900,898,1,0,0,0,900,901, + 1,0,0,0,901,903,1,0,0,0,902,896,1,0,0,0,902,903,1,0,0,0,903,913, + 1,0,0,0,904,906,7,2,0,0,905,907,7,3,0,0,906,905,1,0,0,0,906,907, + 1,0,0,0,907,909,1,0,0,0,908,910,7,0,0,0,909,908,1,0,0,0,910,911, + 1,0,0,0,911,909,1,0,0,0,911,912,1,0,0,0,912,914,1,0,0,0,913,904, + 1,0,0,0,913,914,1,0,0,0,914,198,1,0,0,0,915,919,7,4,0,0,916,918, + 7,5,0,0,917,916,1,0,0,0,918,921,1,0,0,0,919,917,1,0,0,0,919,920, + 1,0,0,0,920,200,1,0,0,0,921,919,1,0,0,0,922,927,5,34,0,0,923,926, + 3,203,101,0,924,926,8,6,0,0,925,923,1,0,0,0,925,924,1,0,0,0,926, + 929,1,0,0,0,927,925,1,0,0,0,927,928,1,0,0,0,928,930,1,0,0,0,929, + 927,1,0,0,0,930,931,5,34,0,0,931,202,1,0,0,0,932,940,5,92,0,0,933, + 941,7,7,0,0,934,935,5,117,0,0,935,936,3,205,102,0,936,937,3,205, + 102,0,937,938,3,205,102,0,938,939,3,205,102,0,939,941,1,0,0,0,940, + 933,1,0,0,0,940,934,1,0,0,0,941,204,1,0,0,0,942,943,7,8,0,0,943, + 206,1,0,0,0,944,945,5,47,0,0,945,946,5,47,0,0,946,950,1,0,0,0,947, + 949,8,9,0,0,948,947,1,0,0,0,949,952,1,0,0,0,950,948,1,0,0,0,950, + 951,1,0,0,0,951,953,1,0,0,0,952,950,1,0,0,0,953,954,6,103,0,0,954, + 208,1,0,0,0,955,956,5,47,0,0,956,957,5,42,0,0,957,961,1,0,0,0,958, + 960,9,0,0,0,959,958,1,0,0,0,960,963,1,0,0,0,961,962,1,0,0,0,961, + 959,1,0,0,0,962,964,1,0,0,0,963,961,1,0,0,0,964,965,5,42,0,0,965, + 966,5,47,0,0,966,967,1,0,0,0,967,968,6,104,0,0,968,210,1,0,0,0,969, + 971,7,10,0,0,970,969,1,0,0,0,971,972,1,0,0,0,972,970,1,0,0,0,972, + 973,1,0,0,0,973,974,1,0,0,0,974,975,6,105,0,0,975,212,1,0,0,0,18, + 0,876,881,884,891,894,900,902,906,911,913,919,925,927,940,950,961, + 972,1,0,1,0 ]; private static __ATN: antlr.ATN; diff --git a/src/capability-language/generated/QuixosCapabilityParser.ts b/src/capability-language/generated/QuixosCapabilityParser.ts index b6b4762..902bfcf 100644 --- a/src/capability-language/generated/QuixosCapabilityParser.ts +++ b/src/capability-language/generated/QuixosCapabilityParser.ts @@ -11,178 +11,182 @@ type int = number; export class QuixosCapabilityParser extends antlr.Parser { public static readonly WORKSPACE = 1; - public static readonly IMPORT = 2; - public static readonly EXTERNAL = 3; - public static readonly ATOM = 4; - public static readonly INTERFACE = 5; - public static readonly INTERFACES = 6; - public static readonly PACKAGE = 7; - public static readonly VALUE = 8; - public static readonly RELATION = 9; - public static readonly OPERATION = 10; - public static readonly FUNCTION = 11; - public static readonly CONSTRUCTOR = 12; - public static readonly CONSTRUCTS = 13; - public static readonly CONFORM = 14; - public static readonly AS = 15; - public static readonly BIND = 16; - public static readonly TO = 17; - public static readonly PRIVATE = 18; - public static readonly SHARED = 19; - public static readonly STATE = 20; - public static readonly EDGE = 21; - public static readonly PROJECTION = 22; - public static readonly WITH = 23; - public static readonly USING = 24; - public static readonly VIA = 25; - public static readonly MATERIALIZE = 26; - public static readonly IF = 27; - public static readonly ABSENT = 28; - public static readonly ON = 29; - public static readonly POLICY = 30; - public static readonly DEFAULT = 31; - public static readonly SOURCE = 32; - public static readonly REPOSITORY = 33; - public static readonly COMMIT = 34; - public static readonly REVISION = 35; - public static readonly ID = 36; - public static readonly DOC = 37; - public static readonly MODE = 38; - public static readonly EMITS = 39; - public static readonly RECEIVER = 40; - public static readonly REQUIRES = 41; - public static readonly ANY = 42; - public static readonly GET = 43; - public static readonly SET = 44; - public static readonly WATCH = 45; - public static readonly START = 46; - public static readonly STOP = 47; - public static readonly READ = 48; - public static readonly WRITE = 49; - public static readonly RESOLVE = 50; - public static readonly CONNECT = 51; - public static readonly DISCONNECT = 52; - public static readonly CALL = 53; - public static readonly WATCH_START = 54; - public static readonly WATCH_STOP = 55; - public static readonly SUBSCRIBE = 56; - public static readonly UNSUBSCRIBE = 57; - public static readonly OPTIMISTIC_REGISTER = 58; - public static readonly CRDT = 59; - public static readonly OPTIONAL_ONE = 60; - public static readonly EXACTLY_ONE = 61; - public static readonly MANY_UNIQUE = 62; - public static readonly MANY = 63; - public static readonly ORDERED = 64; - public static readonly UNIT = 65; - public static readonly WATCH_HANDLE = 66; - public static readonly MESSAGE = 67; - public static readonly ATOM_REF = 68; - public static readonly INTERFACE_REF = 69; - public static readonly OPTIONAL = 70; - public static readonly LIST = 71; - public static readonly BOOL = 72; - public static readonly BYTES = 73; - public static readonly DOUBLE = 74; - public static readonly INT32 = 75; - public static readonly INT64 = 76; - public static readonly STRING = 77; - public static readonly UINT32 = 78; - public static readonly UINT64 = 79; - public static readonly TRUE = 80; - public static readonly FALSE = 81; - public static readonly NULL = 82; - public static readonly ARROW = 83; - public static readonly COLON = 84; - public static readonly SEMI = 85; - public static readonly COMMA = 86; - public static readonly DOT = 87; - public static readonly LBRACE = 88; - public static readonly RBRACE = 89; - public static readonly LBRACK = 90; - public static readonly RBRACK = 91; - public static readonly LPAREN = 92; - public static readonly RPAREN = 93; - public static readonly LT = 94; - public static readonly GT = 95; - public static readonly INTEGER = 96; - public static readonly JSON_NUMBER = 97; - public static readonly IDENTIFIER = 98; - public static readonly STRING_LITERAL = 99; - public static readonly LINE_COMMENT = 100; - public static readonly BLOCK_COMMENT = 101; - public static readonly WS = 102; + public static readonly FRAGMENT = 2; + public static readonly IMPORT = 3; + public static readonly EXTERNAL = 4; + public static readonly ATOM = 5; + public static readonly INTERFACE = 6; + public static readonly INTERFACES = 7; + public static readonly PACKAGE = 8; + public static readonly VALUE = 9; + public static readonly RELATION = 10; + public static readonly OPERATION = 11; + public static readonly FUNCTION = 12; + public static readonly CONSTRUCTOR = 13; + public static readonly CONSTRUCTS = 14; + public static readonly INPUT = 15; + public static readonly CONFORM = 16; + public static readonly AS = 17; + public static readonly BIND = 18; + public static readonly TO = 19; + public static readonly PRIVATE = 20; + public static readonly SHARED = 21; + public static readonly STATE = 22; + public static readonly EDGE = 23; + public static readonly PROJECTION = 24; + public static readonly WITH = 25; + public static readonly USING = 26; + public static readonly VIA = 27; + public static readonly MATERIALIZE = 28; + public static readonly IF = 29; + public static readonly ABSENT = 30; + public static readonly ON = 31; + public static readonly POLICY = 32; + public static readonly DEFAULT = 33; + public static readonly SOURCE = 34; + public static readonly REPOSITORY = 35; + public static readonly COMMIT = 36; + public static readonly REVISION = 37; + public static readonly ID = 38; + public static readonly DOC = 39; + public static readonly MODE = 40; + public static readonly EMITS = 41; + public static readonly RECEIVER = 42; + public static readonly REQUIRES = 43; + public static readonly ANY = 44; + public static readonly GET = 45; + public static readonly SET = 46; + public static readonly WATCH = 47; + public static readonly START = 48; + public static readonly STOP = 49; + public static readonly READ = 50; + public static readonly WRITE = 51; + public static readonly RESOLVE = 52; + public static readonly CONNECT = 53; + public static readonly DISCONNECT = 54; + public static readonly CALL = 55; + public static readonly WATCH_START = 56; + public static readonly WATCH_STOP = 57; + public static readonly SUBSCRIBE = 58; + public static readonly UNSUBSCRIBE = 59; + public static readonly OPTIMISTIC_REGISTER = 60; + public static readonly CRDT = 61; + public static readonly OPTIONAL_ONE = 62; + public static readonly EXACTLY_ONE = 63; + public static readonly MANY_UNIQUE = 64; + public static readonly MANY = 65; + public static readonly ORDERED = 66; + public static readonly UNIT = 67; + public static readonly WATCH_HANDLE = 68; + public static readonly MESSAGE = 69; + public static readonly ATOM_REF = 70; + public static readonly INTERFACE_REF = 71; + public static readonly OPTIONAL = 72; + public static readonly LIST = 73; + public static readonly BOOL = 74; + public static readonly BYTES = 75; + public static readonly DOUBLE = 76; + public static readonly INT32 = 77; + public static readonly INT64 = 78; + public static readonly STRING = 79; + public static readonly UINT32 = 80; + public static readonly UINT64 = 81; + public static readonly TRUE = 82; + public static readonly FALSE = 83; + public static readonly NULL = 84; + public static readonly ARROW = 85; + public static readonly COLON = 86; + public static readonly SEMI = 87; + public static readonly COMMA = 88; + public static readonly DOT = 89; + public static readonly LBRACE = 90; + public static readonly RBRACE = 91; + public static readonly LBRACK = 92; + public static readonly RBRACK = 93; + public static readonly LPAREN = 94; + public static readonly RPAREN = 95; + public static readonly LT = 96; + public static readonly GT = 97; + public static readonly INTEGER = 98; + public static readonly JSON_NUMBER = 99; + public static readonly IDENTIFIER = 100; + public static readonly STRING_LITERAL = 101; + public static readonly LINE_COMMENT = 102; + public static readonly BLOCK_COMMENT = 103; + public static readonly WS = 104; public static readonly RULE_document = 0; - public static readonly RULE_workspaceDecl = 1; - public static readonly RULE_workspaceItem = 2; - public static readonly RULE_resourceImportDecl = 3; - public static readonly RULE_externalAtomDecl = 4; - public static readonly RULE_externalInterfaceDecl = 5; - public static readonly RULE_resourcePreamble = 6; - public static readonly RULE_atomDecl = 7; - public static readonly RULE_interfaceResourceDecl = 8; - public static readonly RULE_interfaceMember = 9; - public static readonly RULE_operationMember = 10; - public static readonly RULE_valueMember = 11; - public static readonly RULE_valueMemberOperation = 12; - public static readonly RULE_relationshipMember = 13; - public static readonly RULE_relationshipOperation = 14; - public static readonly RULE_targetConstraint = 15; - public static readonly RULE_packageResourceDecl = 16; - public static readonly RULE_packageExport = 17; - public static readonly RULE_packageOperationExport = 18; - public static readonly RULE_packageFunctionExport = 19; - public static readonly RULE_packageConstructorExport = 20; - public static readonly RULE_eventClause = 21; - public static readonly RULE_operationMode = 22; - public static readonly RULE_receiverRequirement = 23; - public static readonly RULE_identifierList = 24; - public static readonly RULE_dependencyBlock = 25; - public static readonly RULE_dependencyPort = 26; - public static readonly RULE_primitiveList = 27; - public static readonly RULE_primitive = 28; - public static readonly RULE_sharedAttachmentDecl = 29; - public static readonly RULE_attachmentDecl = 30; - public static readonly RULE_stateDecl = 31; - public static readonly RULE_storagePolicy = 32; - public static readonly RULE_edgeDecl = 33; - public static readonly RULE_edgeEndpoint = 34; - public static readonly RULE_conformanceDecl = 35; - public static readonly RULE_conformanceItem = 36; - public static readonly RULE_relationshipMaterializationDecl = 37; - public static readonly RULE_operationBindingDecl = 38; - public static readonly RULE_memberOperationRef = 39; - public static readonly RULE_operationName = 40; - public static readonly RULE_operationProvider = 41; - public static readonly RULE_statePrimitive = 42; - public static readonly RULE_edgePrimitive = 43; - public static readonly RULE_dependencyBindingBlock = 44; - public static readonly RULE_dependencyBinding = 45; - public static readonly RULE_constructorBindingDecl = 46; - public static readonly RULE_valueType = 47; - public static readonly RULE_scalarType = 48; - public static readonly RULE_cardinality = 49; - public static readonly RULE_jsonLiteral = 50; - public static readonly RULE_jsonObject = 51; - public static readonly RULE_jsonMember = 52; - public static readonly RULE_jsonArray = 53; - public static readonly RULE_identifier = 54; - public static readonly RULE_stringLiteral = 55; + public static readonly RULE_fragmentDecl = 1; + public static readonly RULE_sourceImportDecl = 2; + public static readonly RULE_workspaceDecl = 3; + public static readonly RULE_workspaceItem = 4; + public static readonly RULE_resourceImportDecl = 5; + public static readonly RULE_externalAtomDecl = 6; + public static readonly RULE_externalInterfaceDecl = 7; + public static readonly RULE_resourcePreamble = 8; + public static readonly RULE_atomDecl = 9; + public static readonly RULE_interfaceResourceDecl = 10; + public static readonly RULE_interfaceMember = 11; + public static readonly RULE_operationMember = 12; + public static readonly RULE_valueMember = 13; + public static readonly RULE_valueMemberOperation = 14; + public static readonly RULE_relationshipMember = 15; + public static readonly RULE_relationshipOperation = 16; + public static readonly RULE_targetConstraint = 17; + public static readonly RULE_packageResourceDecl = 18; + public static readonly RULE_packageExport = 19; + public static readonly RULE_packageOperationExport = 20; + public static readonly RULE_packageFunctionExport = 21; + public static readonly RULE_packageConstructorExport = 22; + public static readonly RULE_eventClause = 23; + public static readonly RULE_operationMode = 24; + public static readonly RULE_receiverRequirement = 25; + public static readonly RULE_identifierList = 26; + public static readonly RULE_dependencyBlock = 27; + public static readonly RULE_dependencyPort = 28; + public static readonly RULE_primitiveList = 29; + public static readonly RULE_primitive = 30; + public static readonly RULE_sharedAttachmentDecl = 31; + public static readonly RULE_attachmentDecl = 32; + public static readonly RULE_stateDecl = 33; + public static readonly RULE_storagePolicy = 34; + public static readonly RULE_edgeDecl = 35; + public static readonly RULE_edgeEndpoint = 36; + public static readonly RULE_conformanceDecl = 37; + public static readonly RULE_conformanceItem = 38; + public static readonly RULE_relationshipMaterializationDecl = 39; + public static readonly RULE_operationBindingDecl = 40; + public static readonly RULE_memberOperationRef = 41; + public static readonly RULE_operationName = 42; + public static readonly RULE_operationProvider = 43; + public static readonly RULE_statePrimitive = 44; + public static readonly RULE_edgePrimitive = 45; + public static readonly RULE_dependencyBindingBlock = 46; + public static readonly RULE_dependencyBinding = 47; + public static readonly RULE_constructorBindingDecl = 48; + public static readonly RULE_valueType = 49; + public static readonly RULE_scalarType = 50; + public static readonly RULE_cardinality = 51; + public static readonly RULE_jsonLiteral = 52; + public static readonly RULE_jsonObject = 53; + public static readonly RULE_jsonMember = 54; + public static readonly RULE_jsonArray = 55; + public static readonly RULE_identifier = 56; + public static readonly RULE_stringLiteral = 57; public static readonly literalNames = [ - null, "'workspace'", "'import'", "'external'", "'atom'", "'interface'", - "'interfaces'", "'package'", "'value'", "'relation'", "'operation'", - "'function'", "'constructor'", "'constructs'", "'conform'", "'as'", - "'bind'", "'to'", "'private'", "'shared'", "'state'", "'edge'", - "'projection'", "'with'", "'using'", "'via'", "'materialize'", "'if'", - "'absent'", "'on'", "'policy'", "'default'", "'source'", "'repository'", - "'commit'", "'revision'", "'id'", "'doc'", "'mode'", "'emits'", - "'receiver'", "'requires'", "'any'", "'get'", "'set'", "'watch'", - "'start'", "'stop'", "'read'", "'write'", "'resolve'", "'connect'", - "'disconnect'", "'call'", "'watch-start'", "'watch-stop'", "'subscribe'", - "'unsubscribe'", "'optimistic-register'", "'crdt'", "'optional-one'", - "'exactly-one'", "'many-unique'", "'many'", "'ordered'", "'unit'", - "'watch-handle'", "'message'", "'atom-ref'", "'interface-ref'", + null, "'workspace'", "'fragment'", "'import'", "'external'", "'atom'", + "'interface'", "'interfaces'", "'package'", "'value'", "'relation'", + "'operation'", "'function'", "'constructor'", "'constructs'", "'input'", + "'conform'", "'as'", "'bind'", "'to'", "'private'", "'shared'", + "'state'", "'edge'", "'projection'", "'with'", "'using'", "'via'", + "'materialize'", "'if'", "'absent'", "'on'", "'policy'", "'default'", + "'source'", "'repository'", "'commit'", "'revision'", "'id'", "'doc'", + "'mode'", "'emits'", "'receiver'", "'requires'", "'any'", "'get'", + "'set'", "'watch'", "'start'", "'stop'", "'read'", "'write'", "'resolve'", + "'connect'", "'disconnect'", "'call'", "'watch-start'", "'watch-stop'", + "'subscribe'", "'unsubscribe'", "'optimistic-register'", "'crdt'", + "'optional-one'", "'exactly-one'", "'many-unique'", "'many'", "'ordered'", + "'unit'", "'watch-handle'", "'message'", "'atom-ref'", "'interface-ref'", "'optional'", "'list'", "'bool'", "'bytes'", "'double'", "'int32'", "'int64'", "'string'", "'uint32'", "'uint64'", "'true'", "'false'", "'null'", "'->'", "':'", "';'", "','", "'.'", "'{'", "'}'", "'['", @@ -190,15 +194,15 @@ export class QuixosCapabilityParser extends antlr.Parser { ]; public static readonly symbolicNames = [ - null, "WORKSPACE", "IMPORT", "EXTERNAL", "ATOM", "INTERFACE", "INTERFACES", - "PACKAGE", "VALUE", "RELATION", "OPERATION", "FUNCTION", "CONSTRUCTOR", - "CONSTRUCTS", "CONFORM", "AS", "BIND", "TO", "PRIVATE", "SHARED", - "STATE", "EDGE", "PROJECTION", "WITH", "USING", "VIA", "MATERIALIZE", - "IF", "ABSENT", "ON", "POLICY", "DEFAULT", "SOURCE", "REPOSITORY", - "COMMIT", "REVISION", "ID", "DOC", "MODE", "EMITS", "RECEIVER", - "REQUIRES", "ANY", "GET", "SET", "WATCH", "START", "STOP", "READ", - "WRITE", "RESOLVE", "CONNECT", "DISCONNECT", "CALL", "WATCH_START", - "WATCH_STOP", "SUBSCRIBE", "UNSUBSCRIBE", "OPTIMISTIC_REGISTER", + null, "WORKSPACE", "FRAGMENT", "IMPORT", "EXTERNAL", "ATOM", "INTERFACE", + "INTERFACES", "PACKAGE", "VALUE", "RELATION", "OPERATION", "FUNCTION", + "CONSTRUCTOR", "CONSTRUCTS", "INPUT", "CONFORM", "AS", "BIND", "TO", + "PRIVATE", "SHARED", "STATE", "EDGE", "PROJECTION", "WITH", "USING", + "VIA", "MATERIALIZE", "IF", "ABSENT", "ON", "POLICY", "DEFAULT", + "SOURCE", "REPOSITORY", "COMMIT", "REVISION", "ID", "DOC", "MODE", + "EMITS", "RECEIVER", "REQUIRES", "ANY", "GET", "SET", "WATCH", "START", + "STOP", "READ", "WRITE", "RESOLVE", "CONNECT", "DISCONNECT", "CALL", + "WATCH_START", "WATCH_STOP", "SUBSCRIBE", "UNSUBSCRIBE", "OPTIMISTIC_REGISTER", "CRDT", "OPTIONAL_ONE", "EXACTLY_ONE", "MANY_UNIQUE", "MANY", "ORDERED", "UNIT", "WATCH_HANDLE", "MESSAGE", "ATOM_REF", "INTERFACE_REF", "OPTIONAL", "LIST", "BOOL", "BYTES", "DOUBLE", "INT32", "INT64", @@ -208,18 +212,19 @@ export class QuixosCapabilityParser extends antlr.Parser { "STRING_LITERAL", "LINE_COMMENT", "BLOCK_COMMENT", "WS" ]; public static readonly ruleNames = [ - "document", "workspaceDecl", "workspaceItem", "resourceImportDecl", - "externalAtomDecl", "externalInterfaceDecl", "resourcePreamble", - "atomDecl", "interfaceResourceDecl", "interfaceMember", "operationMember", - "valueMember", "valueMemberOperation", "relationshipMember", "relationshipOperation", - "targetConstraint", "packageResourceDecl", "packageExport", "packageOperationExport", - "packageFunctionExport", "packageConstructorExport", "eventClause", - "operationMode", "receiverRequirement", "identifierList", "dependencyBlock", - "dependencyPort", "primitiveList", "primitive", "sharedAttachmentDecl", - "attachmentDecl", "stateDecl", "storagePolicy", "edgeDecl", "edgeEndpoint", - "conformanceDecl", "conformanceItem", "relationshipMaterializationDecl", - "operationBindingDecl", "memberOperationRef", "operationName", "operationProvider", - "statePrimitive", "edgePrimitive", "dependencyBindingBlock", "dependencyBinding", + "document", "fragmentDecl", "sourceImportDecl", "workspaceDecl", + "workspaceItem", "resourceImportDecl", "externalAtomDecl", "externalInterfaceDecl", + "resourcePreamble", "atomDecl", "interfaceResourceDecl", "interfaceMember", + "operationMember", "valueMember", "valueMemberOperation", "relationshipMember", + "relationshipOperation", "targetConstraint", "packageResourceDecl", + "packageExport", "packageOperationExport", "packageFunctionExport", + "packageConstructorExport", "eventClause", "operationMode", "receiverRequirement", + "identifierList", "dependencyBlock", "dependencyPort", "primitiveList", + "primitive", "sharedAttachmentDecl", "attachmentDecl", "stateDecl", + "storagePolicy", "edgeDecl", "edgeEndpoint", "conformanceDecl", + "conformanceItem", "relationshipMaterializationDecl", "operationBindingDecl", + "memberOperationRef", "operationName", "operationProvider", "statePrimitive", + "edgePrimitive", "dependencyBindingBlock", "dependencyBinding", "constructorBindingDecl", "valueType", "scalarType", "cardinality", "jsonLiteral", "jsonObject", "jsonMember", "jsonArray", "identifier", "stringLiteral", @@ -243,33 +248,42 @@ export class QuixosCapabilityParser extends antlr.Parser { let localContext = new DocumentContext(this.context, this.state); this.enterRule(localContext, 0, QuixosCapabilityParser.RULE_document); try { - this.state = 121; + this.state = 128; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 0, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { - this.state = 112; + this.state = 116; this.workspaceDecl(); - this.state = 113; + this.state = 117; this.match(QuixosCapabilityParser.EOF); } break; case 2: this.enterOuterAlt(localContext, 2); { - this.state = 115; + this.state = 119; this.interfaceResourceDecl(); - this.state = 116; + this.state = 120; this.match(QuixosCapabilityParser.EOF); } break; case 3: this.enterOuterAlt(localContext, 3); { - this.state = 118; + this.state = 122; this.packageResourceDecl(); - this.state = 119; + this.state = 123; + this.match(QuixosCapabilityParser.EOF); + } + break; + case 4: + this.enterOuterAlt(localContext, 4); + { + this.state = 125; + this.fragmentDecl(); + this.state = 126; this.match(QuixosCapabilityParser.EOF); } break; @@ -288,35 +302,21 @@ export class QuixosCapabilityParser extends antlr.Parser { } return localContext; } - public workspaceDecl(): WorkspaceDeclContext { - let localContext = new WorkspaceDeclContext(this.context, this.state); - this.enterRule(localContext, 2, QuixosCapabilityParser.RULE_workspaceDecl); + public fragmentDecl(): FragmentDeclContext { + let localContext = new FragmentDeclContext(this.context, this.state); + this.enterRule(localContext, 2, QuixosCapabilityParser.RULE_fragmentDecl); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 123; - this.match(QuixosCapabilityParser.WORKSPACE); - this.state = 124; - this.identifier(); - this.state = 125; - this.match(QuixosCapabilityParser.ID); - this.state = 126; - this.stringLiteral(); - this.state = 127; - this.match(QuixosCapabilityParser.REVISION); - this.state = 128; - this.stringLiteral(); - this.state = 129; - this.match(QuixosCapabilityParser.COMMIT); this.state = 130; - this.stringLiteral(); + this.match(QuixosCapabilityParser.FRAGMENT); this.state = 131; this.match(QuixosCapabilityParser.LBRACE); this.state = 135; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 544788) !== 0)) { + while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 2170920) !== 0)) { { { this.state = 132; @@ -344,50 +344,138 @@ export class QuixosCapabilityParser extends antlr.Parser { } return localContext; } + public sourceImportDecl(): SourceImportDeclContext { + let localContext = new SourceImportDeclContext(this.context, this.state); + this.enterRule(localContext, 4, QuixosCapabilityParser.RULE_sourceImportDecl); + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 140; + this.match(QuixosCapabilityParser.IMPORT); + this.state = 141; + this.stringLiteral(); + this.state = 142; + this.match(QuixosCapabilityParser.SEMI); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public workspaceDecl(): WorkspaceDeclContext { + let localContext = new WorkspaceDeclContext(this.context, this.state); + this.enterRule(localContext, 6, QuixosCapabilityParser.RULE_workspaceDecl); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 144; + this.match(QuixosCapabilityParser.WORKSPACE); + this.state = 145; + this.identifier(); + this.state = 146; + this.match(QuixosCapabilityParser.ID); + this.state = 147; + this.stringLiteral(); + this.state = 148; + this.match(QuixosCapabilityParser.REVISION); + this.state = 149; + this.stringLiteral(); + this.state = 150; + this.match(QuixosCapabilityParser.COMMIT); + this.state = 151; + this.stringLiteral(); + this.state = 152; + this.match(QuixosCapabilityParser.LBRACE); + this.state = 156; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 2170920) !== 0)) { + { + { + this.state = 153; + this.workspaceItem(); + } + } + this.state = 158; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + } + this.state = 159; + this.match(QuixosCapabilityParser.RBRACE); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } public workspaceItem(): WorkspaceItemContext { let localContext = new WorkspaceItemContext(this.context, this.state); - this.enterRule(localContext, 4, QuixosCapabilityParser.RULE_workspaceItem); + this.enterRule(localContext, 8, QuixosCapabilityParser.RULE_workspaceItem); try { - this.state = 145; + this.state = 167; this.errorHandler.sync(this); - switch (this.tokenStream.LA(1)) { - case QuixosCapabilityParser.ATOM: + switch (this.interpreter.adaptivePredict(this.tokenStream, 3, this.context) ) { + case 1: this.enterOuterAlt(localContext, 1); { - this.state = 140; + this.state = 161; + this.sourceImportDecl(); + } + break; + case 2: + this.enterOuterAlt(localContext, 2); + { + this.state = 162; this.atomDecl(); } break; - case QuixosCapabilityParser.IMPORT: - this.enterOuterAlt(localContext, 2); + case 3: + this.enterOuterAlt(localContext, 3); { - this.state = 141; + this.state = 163; this.resourceImportDecl(); } break; - case QuixosCapabilityParser.SHARED: - this.enterOuterAlt(localContext, 3); + case 4: + this.enterOuterAlt(localContext, 4); { - this.state = 142; + this.state = 164; this.sharedAttachmentDecl(); } break; - case QuixosCapabilityParser.CONFORM: - this.enterOuterAlt(localContext, 4); + case 5: + this.enterOuterAlt(localContext, 5); { - this.state = 143; + this.state = 165; this.conformanceDecl(); } break; - case QuixosCapabilityParser.CONSTRUCTOR: - this.enterOuterAlt(localContext, 5); + case 6: + this.enterOuterAlt(localContext, 6); { - this.state = 144; + this.state = 166; this.constructorBindingDecl(); } break; - default: - throw new antlr.NoViableAltException(this); } } catch (re) { @@ -405,34 +493,34 @@ export class QuixosCapabilityParser extends antlr.Parser { } public resourceImportDecl(): ResourceImportDeclContext { let localContext = new ResourceImportDeclContext(this.context, this.state); - this.enterRule(localContext, 6, QuixosCapabilityParser.RULE_resourceImportDecl); + this.enterRule(localContext, 10, QuixosCapabilityParser.RULE_resourceImportDecl); try { - this.state = 157; + this.state = 179; this.errorHandler.sync(this); - switch (this.interpreter.adaptivePredict(this.tokenStream, 3, this.context) ) { + switch (this.interpreter.adaptivePredict(this.tokenStream, 4, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { - this.state = 147; + this.state = 169; this.match(QuixosCapabilityParser.IMPORT); - this.state = 148; + this.state = 170; this.match(QuixosCapabilityParser.INTERFACE); - this.state = 149; + this.state = 171; this.identifier(); - this.state = 150; + this.state = 172; this.match(QuixosCapabilityParser.SEMI); } break; case 2: this.enterOuterAlt(localContext, 2); { - this.state = 152; + this.state = 174; this.match(QuixosCapabilityParser.IMPORT); - this.state = 153; + this.state = 175; this.match(QuixosCapabilityParser.PACKAGE); - this.state = 154; + this.state = 176; this.identifier(); - this.state = 155; + this.state = 177; this.match(QuixosCapabilityParser.SEMI); } break; @@ -453,21 +541,21 @@ export class QuixosCapabilityParser extends antlr.Parser { } public externalAtomDecl(): ExternalAtomDeclContext { let localContext = new ExternalAtomDeclContext(this.context, this.state); - this.enterRule(localContext, 8, QuixosCapabilityParser.RULE_externalAtomDecl); + this.enterRule(localContext, 12, QuixosCapabilityParser.RULE_externalAtomDecl); try { this.enterOuterAlt(localContext, 1); { - this.state = 159; + this.state = 181; this.match(QuixosCapabilityParser.EXTERNAL); - this.state = 160; + this.state = 182; this.match(QuixosCapabilityParser.ATOM); - this.state = 161; + this.state = 183; this.identifier(); - this.state = 162; + this.state = 184; this.match(QuixosCapabilityParser.ID); - this.state = 163; + this.state = 185; this.stringLiteral(); - this.state = 164; + this.state = 186; this.match(QuixosCapabilityParser.SEMI); } } @@ -486,21 +574,21 @@ export class QuixosCapabilityParser extends antlr.Parser { } public externalInterfaceDecl(): ExternalInterfaceDeclContext { let localContext = new ExternalInterfaceDeclContext(this.context, this.state); - this.enterRule(localContext, 10, QuixosCapabilityParser.RULE_externalInterfaceDecl); + this.enterRule(localContext, 14, QuixosCapabilityParser.RULE_externalInterfaceDecl); try { this.enterOuterAlt(localContext, 1); { - this.state = 166; + this.state = 188; this.match(QuixosCapabilityParser.EXTERNAL); - this.state = 167; + this.state = 189; this.match(QuixosCapabilityParser.INTERFACE); - this.state = 168; + this.state = 190; this.identifier(); - this.state = 169; + this.state = 191; this.match(QuixosCapabilityParser.REVISION); - this.state = 170; + this.state = 192; this.stringLiteral(); - this.state = 171; + this.state = 193; this.match(QuixosCapabilityParser.SEMI); } } @@ -519,29 +607,29 @@ export class QuixosCapabilityParser extends antlr.Parser { } public resourcePreamble(): ResourcePreambleContext { let localContext = new ResourcePreambleContext(this.context, this.state); - this.enterRule(localContext, 12, QuixosCapabilityParser.RULE_resourcePreamble); + this.enterRule(localContext, 16, QuixosCapabilityParser.RULE_resourcePreamble); try { - this.state = 176; + this.state = 198; this.errorHandler.sync(this); - switch (this.interpreter.adaptivePredict(this.tokenStream, 4, this.context) ) { + switch (this.interpreter.adaptivePredict(this.tokenStream, 5, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { - this.state = 173; + this.state = 195; this.resourceImportDecl(); } break; case 2: this.enterOuterAlt(localContext, 2); { - this.state = 174; + this.state = 196; this.externalAtomDecl(); } break; case 3: this.enterOuterAlt(localContext, 3); { - this.state = 175; + this.state = 197; this.externalInterfaceDecl(); } break; @@ -562,32 +650,32 @@ export class QuixosCapabilityParser extends antlr.Parser { } public atomDecl(): AtomDeclContext { let localContext = new AtomDeclContext(this.context, this.state); - this.enterRule(localContext, 14, QuixosCapabilityParser.RULE_atomDecl); + this.enterRule(localContext, 18, QuixosCapabilityParser.RULE_atomDecl); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 178; + this.state = 200; this.match(QuixosCapabilityParser.ATOM); - this.state = 179; + this.state = 201; this.identifier(); - this.state = 180; + this.state = 202; this.match(QuixosCapabilityParser.ID); - this.state = 181; + this.state = 203; this.stringLiteral(); - this.state = 184; + this.state = 206; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 37) { + if (_la === 39) { { - this.state = 182; + this.state = 204; this.match(QuixosCapabilityParser.DOC); - this.state = 183; + this.state = 205; this.stringLiteral(); } } - this.state = 186; + this.state = 208; this.match(QuixosCapabilityParser.SEMI); } } @@ -606,54 +694,54 @@ export class QuixosCapabilityParser extends antlr.Parser { } public interfaceResourceDecl(): InterfaceResourceDeclContext { let localContext = new InterfaceResourceDeclContext(this.context, this.state); - this.enterRule(localContext, 16, QuixosCapabilityParser.RULE_interfaceResourceDecl); + this.enterRule(localContext, 20, QuixosCapabilityParser.RULE_interfaceResourceDecl); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 191; + this.state = 213; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 2 || _la === 3) { + while (_la === 3 || _la === 4) { { { - this.state = 188; + this.state = 210; this.resourcePreamble(); } } - this.state = 193; + this.state = 215; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 194; + this.state = 216; this.match(QuixosCapabilityParser.INTERFACE); - this.state = 195; + this.state = 217; this.identifier(); - this.state = 196; + this.state = 218; this.match(QuixosCapabilityParser.ID); - this.state = 197; + this.state = 219; this.stringLiteral(); - this.state = 198; + this.state = 220; this.match(QuixosCapabilityParser.REVISION); - this.state = 199; + this.state = 221; this.stringLiteral(); - this.state = 200; + this.state = 222; this.match(QuixosCapabilityParser.LBRACE); - this.state = 204; + this.state = 226; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 1792) !== 0)) { + while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 3584) !== 0)) { { { - this.state = 201; + this.state = 223; this.interfaceMember(); } } - this.state = 206; + this.state = 228; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 207; + this.state = 229; this.match(QuixosCapabilityParser.RBRACE); } } @@ -672,29 +760,29 @@ export class QuixosCapabilityParser extends antlr.Parser { } public interfaceMember(): InterfaceMemberContext { let localContext = new InterfaceMemberContext(this.context, this.state); - this.enterRule(localContext, 18, QuixosCapabilityParser.RULE_interfaceMember); + this.enterRule(localContext, 22, QuixosCapabilityParser.RULE_interfaceMember); try { - this.state = 212; + this.state = 234; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.VALUE: this.enterOuterAlt(localContext, 1); { - this.state = 209; + this.state = 231; this.valueMember(); } break; case QuixosCapabilityParser.RELATION: this.enterOuterAlt(localContext, 2); { - this.state = 210; + this.state = 232; this.relationshipMember(); } break; case QuixosCapabilityParser.OPERATION: this.enterOuterAlt(localContext, 3); { - this.state = 211; + this.state = 233; this.operationMember(); } break; @@ -717,37 +805,37 @@ export class QuixosCapabilityParser extends antlr.Parser { } public operationMember(): OperationMemberContext { let localContext = new OperationMemberContext(this.context, this.state); - this.enterRule(localContext, 20, QuixosCapabilityParser.RULE_operationMember); + this.enterRule(localContext, 24, QuixosCapabilityParser.RULE_operationMember); try { this.enterOuterAlt(localContext, 1); { - this.state = 214; + this.state = 236; this.match(QuixosCapabilityParser.OPERATION); - this.state = 215; + this.state = 237; this.identifier(); - this.state = 216; + this.state = 238; this.match(QuixosCapabilityParser.ID); - this.state = 217; + this.state = 239; this.stringLiteral(); - this.state = 218; + this.state = 240; this.match(QuixosCapabilityParser.COLON); - this.state = 219; + this.state = 241; this.valueType(); - this.state = 220; + this.state = 242; this.match(QuixosCapabilityParser.ARROW); - this.state = 221; + this.state = 243; this.valueType(); - this.state = 222; + this.state = 244; this.match(QuixosCapabilityParser.LBRACE); - this.state = 223; + this.state = 245; this.match(QuixosCapabilityParser.CALL); - this.state = 224; + this.state = 246; this.match(QuixosCapabilityParser.ID); - this.state = 225; + this.state = 247; this.stringLiteral(); - this.state = 226; + this.state = 248; this.match(QuixosCapabilityParser.SEMI); - this.state = 227; + this.state = 249; this.match(QuixosCapabilityParser.RBRACE); } } @@ -766,40 +854,40 @@ export class QuixosCapabilityParser extends antlr.Parser { } public valueMember(): ValueMemberContext { let localContext = new ValueMemberContext(this.context, this.state); - this.enterRule(localContext, 22, QuixosCapabilityParser.RULE_valueMember); + this.enterRule(localContext, 26, QuixosCapabilityParser.RULE_valueMember); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 229; + this.state = 251; this.match(QuixosCapabilityParser.VALUE); - this.state = 230; + this.state = 252; this.identifier(); - this.state = 231; + this.state = 253; this.match(QuixosCapabilityParser.ID); - this.state = 232; + this.state = 254; this.stringLiteral(); - this.state = 233; + this.state = 255; this.match(QuixosCapabilityParser.COLON); - this.state = 234; + this.state = 256; this.valueType(); - this.state = 235; + this.state = 257; this.match(QuixosCapabilityParser.LBRACE); - this.state = 239; + this.state = 261; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (((((_la - 43)) & ~0x1F) === 0 && ((1 << (_la - 43)) & 7) !== 0)) { + while (((((_la - 45)) & ~0x1F) === 0 && ((1 << (_la - 45)) & 7) !== 0)) { { { - this.state = 236; + this.state = 258; this.valueMemberOperation(); } } - this.state = 241; + this.state = 263; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 242; + this.state = 264; this.match(QuixosCapabilityParser.RBRACE); } } @@ -818,55 +906,55 @@ export class QuixosCapabilityParser extends antlr.Parser { } public valueMemberOperation(): ValueMemberOperationContext { let localContext = new ValueMemberOperationContext(this.context, this.state); - this.enterRule(localContext, 24, QuixosCapabilityParser.RULE_valueMemberOperation); + this.enterRule(localContext, 28, QuixosCapabilityParser.RULE_valueMemberOperation); try { - this.state = 263; + this.state = 285; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.GET: this.enterOuterAlt(localContext, 1); { - this.state = 244; + this.state = 266; this.match(QuixosCapabilityParser.GET); - this.state = 245; + this.state = 267; this.match(QuixosCapabilityParser.ID); - this.state = 246; + this.state = 268; this.stringLiteral(); - this.state = 247; + this.state = 269; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.SET: this.enterOuterAlt(localContext, 2); { - this.state = 249; + this.state = 271; this.match(QuixosCapabilityParser.SET); - this.state = 250; + this.state = 272; this.match(QuixosCapabilityParser.ID); - this.state = 251; + this.state = 273; this.stringLiteral(); - this.state = 252; + this.state = 274; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.WATCH: this.enterOuterAlt(localContext, 3); { - this.state = 254; + this.state = 276; this.match(QuixosCapabilityParser.WATCH); - this.state = 255; + this.state = 277; this.match(QuixosCapabilityParser.START); - this.state = 256; + this.state = 278; this.match(QuixosCapabilityParser.ID); - this.state = 257; + this.state = 279; this.stringLiteral(); - this.state = 258; + this.state = 280; this.match(QuixosCapabilityParser.STOP); - this.state = 259; + this.state = 281; this.match(QuixosCapabilityParser.ID); - this.state = 260; + this.state = 282; this.stringLiteral(); - this.state = 261; + this.state = 283; this.match(QuixosCapabilityParser.SEMI); } break; @@ -889,52 +977,52 @@ export class QuixosCapabilityParser extends antlr.Parser { } public relationshipMember(): RelationshipMemberContext { let localContext = new RelationshipMemberContext(this.context, this.state); - this.enterRule(localContext, 26, QuixosCapabilityParser.RULE_relationshipMember); + this.enterRule(localContext, 30, QuixosCapabilityParser.RULE_relationshipMember); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 265; + this.state = 287; this.match(QuixosCapabilityParser.RELATION); - this.state = 266; + this.state = 288; this.identifier(); - this.state = 267; + this.state = 289; this.match(QuixosCapabilityParser.ID); - this.state = 268; + this.state = 290; this.stringLiteral(); - this.state = 269; + this.state = 291; this.match(QuixosCapabilityParser.COLON); - this.state = 270; + this.state = 292; this.cardinality(); - this.state = 271; + this.state = 293; this.targetConstraint(); - this.state = 273; + this.state = 295; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 64) { + if (_la === 66) { { - this.state = 272; + this.state = 294; this.match(QuixosCapabilityParser.ORDERED); } } - this.state = 275; + this.state = 297; this.match(QuixosCapabilityParser.LBRACE); - this.state = 279; + this.state = 301; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (((((_la - 45)) & ~0x1F) === 0 && ((1 << (_la - 45)) & 225) !== 0)) { + while (((((_la - 47)) & ~0x1F) === 0 && ((1 << (_la - 47)) & 225) !== 0)) { { { - this.state = 276; + this.state = 298; this.relationshipOperation(); } } - this.state = 281; + this.state = 303; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 282; + this.state = 304; this.match(QuixosCapabilityParser.RBRACE); } } @@ -953,68 +1041,68 @@ export class QuixosCapabilityParser extends antlr.Parser { } public relationshipOperation(): RelationshipOperationContext { let localContext = new RelationshipOperationContext(this.context, this.state); - this.enterRule(localContext, 28, QuixosCapabilityParser.RULE_relationshipOperation); + this.enterRule(localContext, 32, QuixosCapabilityParser.RULE_relationshipOperation); try { - this.state = 308; + this.state = 330; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.RESOLVE: this.enterOuterAlt(localContext, 1); { - this.state = 284; + this.state = 306; this.match(QuixosCapabilityParser.RESOLVE); - this.state = 285; + this.state = 307; this.match(QuixosCapabilityParser.ID); - this.state = 286; + this.state = 308; this.stringLiteral(); - this.state = 287; + this.state = 309; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.CONNECT: this.enterOuterAlt(localContext, 2); { - this.state = 289; + this.state = 311; this.match(QuixosCapabilityParser.CONNECT); - this.state = 290; + this.state = 312; this.match(QuixosCapabilityParser.ID); - this.state = 291; + this.state = 313; this.stringLiteral(); - this.state = 292; + this.state = 314; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.DISCONNECT: this.enterOuterAlt(localContext, 3); { - this.state = 294; + this.state = 316; this.match(QuixosCapabilityParser.DISCONNECT); - this.state = 295; + this.state = 317; this.match(QuixosCapabilityParser.ID); - this.state = 296; + this.state = 318; this.stringLiteral(); - this.state = 297; + this.state = 319; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.WATCH: this.enterOuterAlt(localContext, 4); { - this.state = 299; + this.state = 321; this.match(QuixosCapabilityParser.WATCH); - this.state = 300; + this.state = 322; this.match(QuixosCapabilityParser.START); - this.state = 301; + this.state = 323; this.match(QuixosCapabilityParser.ID); - this.state = 302; + this.state = 324; this.stringLiteral(); - this.state = 303; + this.state = 325; this.match(QuixosCapabilityParser.STOP); - this.state = 304; + this.state = 326; this.match(QuixosCapabilityParser.ID); - this.state = 305; + this.state = 327; this.stringLiteral(); - this.state = 306; + this.state = 328; this.match(QuixosCapabilityParser.SEMI); } break; @@ -1037,26 +1125,26 @@ export class QuixosCapabilityParser extends antlr.Parser { } public targetConstraint(): TargetConstraintContext { let localContext = new TargetConstraintContext(this.context, this.state); - this.enterRule(localContext, 30, QuixosCapabilityParser.RULE_targetConstraint); + this.enterRule(localContext, 34, QuixosCapabilityParser.RULE_targetConstraint); try { - this.state = 314; + this.state = 336; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.ATOM: this.enterOuterAlt(localContext, 1); { - this.state = 310; + this.state = 332; this.match(QuixosCapabilityParser.ATOM); - this.state = 311; + this.state = 333; this.identifier(); } break; case QuixosCapabilityParser.INTERFACE: this.enterOuterAlt(localContext, 2); { - this.state = 312; + this.state = 334; this.match(QuixosCapabilityParser.INTERFACE); - this.state = 313; + this.state = 335; this.identifier(); } break; @@ -1079,54 +1167,54 @@ export class QuixosCapabilityParser extends antlr.Parser { } public packageResourceDecl(): PackageResourceDeclContext { let localContext = new PackageResourceDeclContext(this.context, this.state); - this.enterRule(localContext, 32, QuixosCapabilityParser.RULE_packageResourceDecl); + this.enterRule(localContext, 36, QuixosCapabilityParser.RULE_packageResourceDecl); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 319; + this.state = 341; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 2 || _la === 3) { + while (_la === 3 || _la === 4) { { { - this.state = 316; + this.state = 338; this.resourcePreamble(); } } - this.state = 321; + this.state = 343; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 322; + this.state = 344; this.match(QuixosCapabilityParser.PACKAGE); - this.state = 323; + this.state = 345; this.identifier(); - this.state = 324; + this.state = 346; this.match(QuixosCapabilityParser.ID); - this.state = 325; + this.state = 347; this.stringLiteral(); - this.state = 326; + this.state = 348; this.match(QuixosCapabilityParser.REVISION); - this.state = 327; + this.state = 349; this.stringLiteral(); - this.state = 328; + this.state = 350; this.match(QuixosCapabilityParser.LBRACE); - this.state = 332; + this.state = 354; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 7168) !== 0)) { + while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 14336) !== 0)) { { { - this.state = 329; + this.state = 351; this.packageExport(); } } - this.state = 334; + this.state = 356; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 335; + this.state = 357; this.match(QuixosCapabilityParser.RBRACE); } } @@ -1145,29 +1233,29 @@ export class QuixosCapabilityParser extends antlr.Parser { } public packageExport(): PackageExportContext { let localContext = new PackageExportContext(this.context, this.state); - this.enterRule(localContext, 34, QuixosCapabilityParser.RULE_packageExport); + this.enterRule(localContext, 38, QuixosCapabilityParser.RULE_packageExport); try { - this.state = 340; + this.state = 362; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.OPERATION: this.enterOuterAlt(localContext, 1); { - this.state = 337; + this.state = 359; this.packageOperationExport(); } break; case QuixosCapabilityParser.FUNCTION: this.enterOuterAlt(localContext, 2); { - this.state = 338; + this.state = 360; this.packageFunctionExport(); } break; case QuixosCapabilityParser.CONSTRUCTOR: this.enterOuterAlt(localContext, 3); { - this.state = 339; + this.state = 361; this.packageConstructorExport(); } break; @@ -1190,56 +1278,56 @@ export class QuixosCapabilityParser extends antlr.Parser { } public packageOperationExport(): PackageOperationExportContext { let localContext = new PackageOperationExportContext(this.context, this.state); - this.enterRule(localContext, 36, QuixosCapabilityParser.RULE_packageOperationExport); + this.enterRule(localContext, 40, QuixosCapabilityParser.RULE_packageOperationExport); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 342; + this.state = 364; this.match(QuixosCapabilityParser.OPERATION); - this.state = 343; + this.state = 365; this.identifier(); - this.state = 344; + this.state = 366; this.match(QuixosCapabilityParser.ID); - this.state = 345; + this.state = 367; this.stringLiteral(); - this.state = 346; + this.state = 368; this.match(QuixosCapabilityParser.COLON); - this.state = 347; + this.state = 369; this.valueType(); - this.state = 348; + this.state = 370; this.match(QuixosCapabilityParser.ARROW); - this.state = 349; + this.state = 371; this.valueType(); - this.state = 350; + this.state = 372; this.match(QuixosCapabilityParser.MODE); - this.state = 351; + this.state = 373; this.operationMode(); - this.state = 353; - this.errorHandler.sync(this); - _la = this.tokenStream.LA(1); - if (_la === 39) { - { - this.state = 352; - this.eventClause(); - } - } - - this.state = 355; - this.match(QuixosCapabilityParser.RECEIVER); - this.state = 356; - this.receiverRequirement(); - this.state = 358; + this.state = 375; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); if (_la === 41) { { - this.state = 357; + this.state = 374; + this.eventClause(); + } + } + + this.state = 377; + this.match(QuixosCapabilityParser.RECEIVER); + this.state = 378; + this.receiverRequirement(); + this.state = 380; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 43) { + { + this.state = 379; this.dependencyBlock(); } } - this.state = 360; + this.state = 382; this.match(QuixosCapabilityParser.SEMI); } } @@ -1258,38 +1346,38 @@ export class QuixosCapabilityParser extends antlr.Parser { } public packageFunctionExport(): PackageFunctionExportContext { let localContext = new PackageFunctionExportContext(this.context, this.state); - this.enterRule(localContext, 38, QuixosCapabilityParser.RULE_packageFunctionExport); + this.enterRule(localContext, 42, QuixosCapabilityParser.RULE_packageFunctionExport); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 362; + this.state = 384; this.match(QuixosCapabilityParser.FUNCTION); - this.state = 363; + this.state = 385; this.identifier(); - this.state = 364; + this.state = 386; this.match(QuixosCapabilityParser.ID); - this.state = 365; + this.state = 387; this.stringLiteral(); - this.state = 366; + this.state = 388; this.match(QuixosCapabilityParser.COLON); - this.state = 367; + this.state = 389; this.valueType(); - this.state = 368; + this.state = 390; this.match(QuixosCapabilityParser.ARROW); - this.state = 369; + this.state = 391; this.valueType(); - this.state = 371; + this.state = 393; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 41) { + if (_la === 43) { { - this.state = 370; + this.state = 392; this.dependencyBlock(); } } - this.state = 373; + this.state = 395; this.match(QuixosCapabilityParser.SEMI); } } @@ -1308,38 +1396,38 @@ export class QuixosCapabilityParser extends antlr.Parser { } public packageConstructorExport(): PackageConstructorExportContext { let localContext = new PackageConstructorExportContext(this.context, this.state); - this.enterRule(localContext, 40, QuixosCapabilityParser.RULE_packageConstructorExport); + this.enterRule(localContext, 44, QuixosCapabilityParser.RULE_packageConstructorExport); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 375; + this.state = 397; this.match(QuixosCapabilityParser.CONSTRUCTOR); - this.state = 376; + this.state = 398; this.identifier(); - this.state = 377; + this.state = 399; this.match(QuixosCapabilityParser.ID); - this.state = 378; + this.state = 400; this.stringLiteral(); - this.state = 379; + this.state = 401; this.match(QuixosCapabilityParser.CONSTRUCTS); - this.state = 380; + this.state = 402; this.identifier(); - this.state = 381; + this.state = 403; this.match(QuixosCapabilityParser.COLON); - this.state = 382; + this.state = 404; this.valueType(); - this.state = 384; + this.state = 406; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 41) { + if (_la === 43) { { - this.state = 383; + this.state = 405; this.dependencyBlock(); } } - this.state = 386; + this.state = 408; this.match(QuixosCapabilityParser.SEMI); } } @@ -1358,13 +1446,13 @@ export class QuixosCapabilityParser extends antlr.Parser { } public eventClause(): EventClauseContext { let localContext = new EventClauseContext(this.context, this.state); - this.enterRule(localContext, 42, QuixosCapabilityParser.RULE_eventClause); + this.enterRule(localContext, 46, QuixosCapabilityParser.RULE_eventClause); try { this.enterOuterAlt(localContext, 1); { - this.state = 388; + this.state = 410; this.match(QuixosCapabilityParser.EMITS); - this.state = 389; + this.state = 411; this.valueType(); } } @@ -1383,14 +1471,14 @@ export class QuixosCapabilityParser extends antlr.Parser { } public operationMode(): OperationModeContext { let localContext = new OperationModeContext(this.context, this.state); - this.enterRule(localContext, 44, QuixosCapabilityParser.RULE_operationMode); + this.enterRule(localContext, 48, QuixosCapabilityParser.RULE_operationMode); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 391; + this.state = 413; _la = this.tokenStream.LA(1); - if(!(((((_la - 53)) & ~0x1F) === 0 && ((1 << (_la - 53)) & 31) !== 0))) { + if(!(((((_la - 55)) & ~0x1F) === 0 && ((1 << (_la - 55)) & 31) !== 0))) { this.errorHandler.recoverInline(this); } else { @@ -1414,46 +1502,46 @@ export class QuixosCapabilityParser extends antlr.Parser { } public receiverRequirement(): ReceiverRequirementContext { let localContext = new ReceiverRequirementContext(this.context, this.state); - this.enterRule(localContext, 46, QuixosCapabilityParser.RULE_receiverRequirement); + this.enterRule(localContext, 50, QuixosCapabilityParser.RULE_receiverRequirement); let _la: number; try { - this.state = 402; + this.state = 424; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.ANY: this.enterOuterAlt(localContext, 1); { - this.state = 393; + this.state = 415; this.match(QuixosCapabilityParser.ANY); } break; case QuixosCapabilityParser.ATOM: this.enterOuterAlt(localContext, 2); { - this.state = 394; + this.state = 416; this.match(QuixosCapabilityParser.ATOM); - this.state = 395; + this.state = 417; this.identifier(); } break; case QuixosCapabilityParser.INTERFACES: this.enterOuterAlt(localContext, 3); { - this.state = 396; + this.state = 418; this.match(QuixosCapabilityParser.INTERFACES); - this.state = 397; + this.state = 419; this.match(QuixosCapabilityParser.LBRACK); - this.state = 399; + this.state = 421; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 32 || _la === 98) { + if (_la === 34 || _la === 100) { { - this.state = 398; + this.state = 420; this.identifierList(); } } - this.state = 401; + this.state = 423; this.match(QuixosCapabilityParser.RBRACK); } break; @@ -1476,26 +1564,26 @@ export class QuixosCapabilityParser extends antlr.Parser { } public identifierList(): IdentifierListContext { let localContext = new IdentifierListContext(this.context, this.state); - this.enterRule(localContext, 48, QuixosCapabilityParser.RULE_identifierList); + this.enterRule(localContext, 52, QuixosCapabilityParser.RULE_identifierList); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 404; + this.state = 426; this.identifier(); - this.state = 409; + this.state = 431; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 86) { + while (_la === 88) { { { - this.state = 405; + this.state = 427; this.match(QuixosCapabilityParser.COMMA); - this.state = 406; + this.state = 428; this.identifier(); } } - this.state = 411; + this.state = 433; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } @@ -1516,30 +1604,30 @@ export class QuixosCapabilityParser extends antlr.Parser { } public dependencyBlock(): DependencyBlockContext { let localContext = new DependencyBlockContext(this.context, this.state); - this.enterRule(localContext, 50, QuixosCapabilityParser.RULE_dependencyBlock); + this.enterRule(localContext, 54, QuixosCapabilityParser.RULE_dependencyBlock); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 412; + this.state = 434; this.match(QuixosCapabilityParser.REQUIRES); - this.state = 413; + this.state = 435; this.match(QuixosCapabilityParser.LBRACE); - this.state = 417; + this.state = 439; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 3149856) !== 0)) { + while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 12591168) !== 0)) { { { - this.state = 414; + this.state = 436; this.dependencyPort(); } } - this.state = 419; + this.state = 441; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 420; + this.state = 442; this.match(QuixosCapabilityParser.RBRACE); } } @@ -1558,90 +1646,103 @@ export class QuixosCapabilityParser extends antlr.Parser { } public dependencyPort(): DependencyPortContext { let localContext = new DependencyPortContext(this.context, this.state); - this.enterRule(localContext, 52, QuixosCapabilityParser.RULE_dependencyPort); + this.enterRule(localContext, 56, QuixosCapabilityParser.RULE_dependencyPort); + let _la: number; try { - this.state = 457; + this.state = 483; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.STATE: this.enterOuterAlt(localContext, 1); { - this.state = 422; + this.state = 444; this.match(QuixosCapabilityParser.STATE); - this.state = 423; + this.state = 445; this.identifier(); - this.state = 424; + this.state = 446; this.match(QuixosCapabilityParser.ID); - this.state = 425; + this.state = 447; this.stringLiteral(); - this.state = 426; + this.state = 448; this.match(QuixosCapabilityParser.COLON); - this.state = 427; + this.state = 449; this.valueType(); - this.state = 428; + this.state = 450; this.primitiveList(); - this.state = 429; + this.state = 451; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.EDGE: this.enterOuterAlt(localContext, 2); { - this.state = 431; + this.state = 453; this.match(QuixosCapabilityParser.EDGE); - this.state = 432; + this.state = 454; this.identifier(); - this.state = 433; + this.state = 455; this.match(QuixosCapabilityParser.ID); - this.state = 434; + this.state = 456; this.stringLiteral(); - this.state = 435; + this.state = 457; this.match(QuixosCapabilityParser.COLON); - this.state = 436; + this.state = 458; this.cardinality(); - this.state = 437; + this.state = 459; this.targetConstraint(); - this.state = 438; + this.state = 460; this.primitiveList(); - this.state = 439; + this.state = 461; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.INTERFACE: this.enterOuterAlt(localContext, 3); { - this.state = 441; + this.state = 463; this.match(QuixosCapabilityParser.INTERFACE); - this.state = 442; + this.state = 464; this.identifier(); - this.state = 443; + this.state = 465; this.match(QuixosCapabilityParser.ID); - this.state = 444; + this.state = 466; this.stringLiteral(); - this.state = 445; + this.state = 467; this.match(QuixosCapabilityParser.COLON); - this.state = 446; + this.state = 468; this.identifier(); - this.state = 447; + this.state = 469; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.CONSTRUCTOR: this.enterOuterAlt(localContext, 4); { - this.state = 449; + this.state = 471; this.match(QuixosCapabilityParser.CONSTRUCTOR); - this.state = 450; + this.state = 472; this.identifier(); - this.state = 451; + this.state = 473; this.match(QuixosCapabilityParser.ID); - this.state = 452; + this.state = 474; this.stringLiteral(); - this.state = 453; + this.state = 475; this.match(QuixosCapabilityParser.COLON); - this.state = 454; + this.state = 476; this.identifier(); - this.state = 455; + this.state = 479; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 15) { + { + this.state = 477; + this.match(QuixosCapabilityParser.INPUT); + this.state = 478; + this.valueType(); + } + } + + this.state = 481; this.match(QuixosCapabilityParser.SEMI); } break; @@ -1664,32 +1765,32 @@ export class QuixosCapabilityParser extends antlr.Parser { } public primitiveList(): PrimitiveListContext { let localContext = new PrimitiveListContext(this.context, this.state); - this.enterRule(localContext, 54, QuixosCapabilityParser.RULE_primitiveList); + this.enterRule(localContext, 58, QuixosCapabilityParser.RULE_primitiveList); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 459; + this.state = 485; this.match(QuixosCapabilityParser.LBRACK); - this.state = 460; + this.state = 486; this.primitive(); - this.state = 465; + this.state = 491; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 86) { + while (_la === 88) { { { - this.state = 461; + this.state = 487; this.match(QuixosCapabilityParser.COMMA); - this.state = 462; + this.state = 488; this.primitive(); } } - this.state = 467; + this.state = 493; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 468; + this.state = 494; this.match(QuixosCapabilityParser.RBRACK); } } @@ -1708,14 +1809,14 @@ export class QuixosCapabilityParser extends antlr.Parser { } public primitive(): PrimitiveContext { let localContext = new PrimitiveContext(this.context, this.state); - this.enterRule(localContext, 56, QuixosCapabilityParser.RULE_primitive); + this.enterRule(localContext, 60, QuixosCapabilityParser.RULE_primitive); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 470; + this.state = 496; _la = this.tokenStream.LA(1); - if(!(((((_la - 48)) & ~0x1F) === 0 && ((1 << (_la - 48)) & 223) !== 0))) { + if(!(((((_la - 50)) & ~0x1F) === 0 && ((1 << (_la - 50)) & 223) !== 0))) { this.errorHandler.recoverInline(this); } else { @@ -1739,13 +1840,13 @@ export class QuixosCapabilityParser extends antlr.Parser { } public sharedAttachmentDecl(): SharedAttachmentDeclContext { let localContext = new SharedAttachmentDeclContext(this.context, this.state); - this.enterRule(localContext, 58, QuixosCapabilityParser.RULE_sharedAttachmentDecl); + this.enterRule(localContext, 62, QuixosCapabilityParser.RULE_sharedAttachmentDecl); try { this.enterOuterAlt(localContext, 1); { - this.state = 472; + this.state = 498; this.match(QuixosCapabilityParser.SHARED); - this.state = 473; + this.state = 499; this.attachmentDecl(); } } @@ -1764,22 +1865,22 @@ export class QuixosCapabilityParser extends antlr.Parser { } public attachmentDecl(): AttachmentDeclContext { let localContext = new AttachmentDeclContext(this.context, this.state); - this.enterRule(localContext, 60, QuixosCapabilityParser.RULE_attachmentDecl); + this.enterRule(localContext, 64, QuixosCapabilityParser.RULE_attachmentDecl); try { - this.state = 477; + this.state = 503; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.STATE: this.enterOuterAlt(localContext, 1); { - this.state = 475; + this.state = 501; this.stateDecl(); } break; case QuixosCapabilityParser.EDGE: this.enterOuterAlt(localContext, 2); { - this.state = 476; + this.state = 502; this.edgeDecl(); } break; @@ -1802,44 +1903,44 @@ export class QuixosCapabilityParser extends antlr.Parser { } public stateDecl(): StateDeclContext { let localContext = new StateDeclContext(this.context, this.state); - this.enterRule(localContext, 62, QuixosCapabilityParser.RULE_stateDecl); + this.enterRule(localContext, 66, QuixosCapabilityParser.RULE_stateDecl); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 479; + this.state = 505; this.match(QuixosCapabilityParser.STATE); - this.state = 480; + this.state = 506; this.identifier(); - this.state = 481; + this.state = 507; this.match(QuixosCapabilityParser.ID); - this.state = 482; + this.state = 508; this.stringLiteral(); - this.state = 483; + this.state = 509; this.match(QuixosCapabilityParser.ON); - this.state = 484; + this.state = 510; this.identifier(); - this.state = 485; + this.state = 511; this.match(QuixosCapabilityParser.COLON); - this.state = 486; + this.state = 512; this.valueType(); - this.state = 487; + this.state = 513; this.match(QuixosCapabilityParser.POLICY); - this.state = 488; + this.state = 514; this.storagePolicy(); - this.state = 491; + this.state = 517; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 31) { + if (_la === 33) { { - this.state = 489; + this.state = 515; this.match(QuixosCapabilityParser.DEFAULT); - this.state = 490; + this.state = 516; this.jsonLiteral(); } } - this.state = 493; + this.state = 519; this.match(QuixosCapabilityParser.SEMI); } } @@ -1858,28 +1959,28 @@ export class QuixosCapabilityParser extends antlr.Parser { } public storagePolicy(): StoragePolicyContext { let localContext = new StoragePolicyContext(this.context, this.state); - this.enterRule(localContext, 64, QuixosCapabilityParser.RULE_storagePolicy); + this.enterRule(localContext, 68, QuixosCapabilityParser.RULE_storagePolicy); try { - this.state = 501; + this.state = 527; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.OPTIMISTIC_REGISTER: this.enterOuterAlt(localContext, 1); { - this.state = 495; + this.state = 521; this.match(QuixosCapabilityParser.OPTIMISTIC_REGISTER); } break; case QuixosCapabilityParser.CRDT: this.enterOuterAlt(localContext, 2); { - this.state = 496; + this.state = 522; this.match(QuixosCapabilityParser.CRDT); - this.state = 497; + this.state = 523; this.match(QuixosCapabilityParser.LPAREN); - this.state = 498; + this.state = 524; this.valueType(); - this.state = 499; + this.state = 525; this.match(QuixosCapabilityParser.RPAREN); } break; @@ -1902,25 +2003,25 @@ export class QuixosCapabilityParser extends antlr.Parser { } public edgeDecl(): EdgeDeclContext { let localContext = new EdgeDeclContext(this.context, this.state); - this.enterRule(localContext, 66, QuixosCapabilityParser.RULE_edgeDecl); + this.enterRule(localContext, 70, QuixosCapabilityParser.RULE_edgeDecl); try { this.enterOuterAlt(localContext, 1); { - this.state = 503; + this.state = 529; this.match(QuixosCapabilityParser.EDGE); - this.state = 504; + this.state = 530; this.identifier(); - this.state = 505; + this.state = 531; this.match(QuixosCapabilityParser.ID); - this.state = 506; + this.state = 532; this.stringLiteral(); - this.state = 507; + this.state = 533; this.match(QuixosCapabilityParser.LBRACE); - this.state = 508; + this.state = 534; this.edgeEndpoint(); - this.state = 509; + this.state = 535; this.edgeEndpoint(); - this.state = 510; + this.state = 536; this.match(QuixosCapabilityParser.RBRACE); } } @@ -1939,34 +2040,34 @@ export class QuixosCapabilityParser extends antlr.Parser { } public edgeEndpoint(): EdgeEndpointContext { let localContext = new EdgeEndpointContext(this.context, this.state); - this.enterRule(localContext, 68, QuixosCapabilityParser.RULE_edgeEndpoint); + this.enterRule(localContext, 72, QuixosCapabilityParser.RULE_edgeEndpoint); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 512; + this.state = 538; this.targetConstraint(); - this.state = 513; + this.state = 539; this.match(QuixosCapabilityParser.PROJECTION); - this.state = 514; + this.state = 540; this.identifier(); - this.state = 515; + this.state = 541; this.match(QuixosCapabilityParser.ID); - this.state = 516; + this.state = 542; this.stringLiteral(); - this.state = 517; + this.state = 543; this.cardinality(); - this.state = 519; + this.state = 545; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 64) { + if (_la === 66) { { - this.state = 518; + this.state = 544; this.match(QuixosCapabilityParser.ORDERED); } } - this.state = 521; + this.state = 547; this.match(QuixosCapabilityParser.SEMI); } } @@ -1985,36 +2086,36 @@ export class QuixosCapabilityParser extends antlr.Parser { } public conformanceDecl(): ConformanceDeclContext { let localContext = new ConformanceDeclContext(this.context, this.state); - this.enterRule(localContext, 70, QuixosCapabilityParser.RULE_conformanceDecl); + this.enterRule(localContext, 74, QuixosCapabilityParser.RULE_conformanceDecl); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 523; + this.state = 549; this.match(QuixosCapabilityParser.CONFORM); - this.state = 524; + this.state = 550; this.identifier(); - this.state = 525; + this.state = 551; this.match(QuixosCapabilityParser.AS); - this.state = 526; + this.state = 552; this.identifier(); - this.state = 527; + this.state = 553; this.match(QuixosCapabilityParser.LBRACE); - this.state = 531; + this.state = 557; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 67436544) !== 0)) { + while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 269746176) !== 0)) { { { - this.state = 528; + this.state = 554; this.conformanceItem(); } } - this.state = 533; + this.state = 559; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 534; + this.state = 560; this.match(QuixosCapabilityParser.RBRACE); } } @@ -2033,31 +2134,31 @@ export class QuixosCapabilityParser extends antlr.Parser { } public conformanceItem(): ConformanceItemContext { let localContext = new ConformanceItemContext(this.context, this.state); - this.enterRule(localContext, 72, QuixosCapabilityParser.RULE_conformanceItem); + this.enterRule(localContext, 76, QuixosCapabilityParser.RULE_conformanceItem); try { - this.state = 540; + this.state = 566; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.PRIVATE: this.enterOuterAlt(localContext, 1); { - this.state = 536; + this.state = 562; this.match(QuixosCapabilityParser.PRIVATE); - this.state = 537; + this.state = 563; this.attachmentDecl(); } break; case QuixosCapabilityParser.BIND: this.enterOuterAlt(localContext, 2); { - this.state = 538; + this.state = 564; this.operationBindingDecl(); } break; case QuixosCapabilityParser.MATERIALIZE: this.enterOuterAlt(localContext, 3); { - this.state = 539; + this.state = 565; this.relationshipMaterializationDecl(); } break; @@ -2080,35 +2181,35 @@ export class QuixosCapabilityParser extends antlr.Parser { } public relationshipMaterializationDecl(): RelationshipMaterializationDeclContext { let localContext = new RelationshipMaterializationDeclContext(this.context, this.state); - this.enterRule(localContext, 74, QuixosCapabilityParser.RULE_relationshipMaterializationDecl); + this.enterRule(localContext, 78, QuixosCapabilityParser.RULE_relationshipMaterializationDecl); try { this.enterOuterAlt(localContext, 1); { - this.state = 542; + this.state = 568; this.match(QuixosCapabilityParser.MATERIALIZE); - this.state = 543; + this.state = 569; this.identifier(); - this.state = 544; + this.state = 570; this.match(QuixosCapabilityParser.IF); - this.state = 545; + this.state = 571; this.match(QuixosCapabilityParser.ABSENT); - this.state = 546; + this.state = 572; this.match(QuixosCapabilityParser.USING); - this.state = 547; + this.state = 573; this.match(QuixosCapabilityParser.CONSTRUCTOR); - this.state = 548; + this.state = 574; this.identifier(); - this.state = 549; + this.state = 575; this.match(QuixosCapabilityParser.VIA); - this.state = 550; + this.state = 576; this.match(QuixosCapabilityParser.EDGE); - this.state = 551; + this.state = 577; this.identifier(); - this.state = 552; + this.state = 578; this.match(QuixosCapabilityParser.DOT); - this.state = 553; + this.state = 579; this.identifier(); - this.state = 554; + this.state = 580; this.match(QuixosCapabilityParser.SEMI); } } @@ -2127,19 +2228,19 @@ export class QuixosCapabilityParser extends antlr.Parser { } public operationBindingDecl(): OperationBindingDeclContext { let localContext = new OperationBindingDeclContext(this.context, this.state); - this.enterRule(localContext, 76, QuixosCapabilityParser.RULE_operationBindingDecl); + this.enterRule(localContext, 80, QuixosCapabilityParser.RULE_operationBindingDecl); try { this.enterOuterAlt(localContext, 1); { - this.state = 556; + this.state = 582; this.match(QuixosCapabilityParser.BIND); - this.state = 557; + this.state = 583; this.memberOperationRef(); - this.state = 558; + this.state = 584; this.match(QuixosCapabilityParser.TO); - this.state = 559; + this.state = 585; this.operationProvider(); - this.state = 560; + this.state = 586; this.match(QuixosCapabilityParser.SEMI); } } @@ -2158,15 +2259,15 @@ export class QuixosCapabilityParser extends antlr.Parser { } public memberOperationRef(): MemberOperationRefContext { let localContext = new MemberOperationRefContext(this.context, this.state); - this.enterRule(localContext, 78, QuixosCapabilityParser.RULE_memberOperationRef); + this.enterRule(localContext, 82, QuixosCapabilityParser.RULE_memberOperationRef); try { this.enterOuterAlt(localContext, 1); { - this.state = 562; + this.state = 588; this.identifier(); - this.state = 563; + this.state = 589; this.match(QuixosCapabilityParser.DOT); - this.state = 564; + this.state = 590; this.operationName(); } } @@ -2185,86 +2286,86 @@ export class QuixosCapabilityParser extends antlr.Parser { } public operationName(): OperationNameContext { let localContext = new OperationNameContext(this.context, this.state); - this.enterRule(localContext, 80, QuixosCapabilityParser.RULE_operationName); + this.enterRule(localContext, 84, QuixosCapabilityParser.RULE_operationName); try { - this.state = 577; + this.state = 603; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.SOURCE: case QuixosCapabilityParser.IDENTIFIER: this.enterOuterAlt(localContext, 1); { - this.state = 566; + this.state = 592; this.identifier(); } break; case QuixosCapabilityParser.CALL: this.enterOuterAlt(localContext, 2); { - this.state = 567; + this.state = 593; this.match(QuixosCapabilityParser.CALL); } break; case QuixosCapabilityParser.GET: this.enterOuterAlt(localContext, 3); { - this.state = 568; + this.state = 594; this.match(QuixosCapabilityParser.GET); } break; case QuixosCapabilityParser.SET: this.enterOuterAlt(localContext, 4); { - this.state = 569; + this.state = 595; this.match(QuixosCapabilityParser.SET); } break; case QuixosCapabilityParser.RESOLVE: this.enterOuterAlt(localContext, 5); { - this.state = 570; + this.state = 596; this.match(QuixosCapabilityParser.RESOLVE); } break; case QuixosCapabilityParser.CONNECT: this.enterOuterAlt(localContext, 6); { - this.state = 571; + this.state = 597; this.match(QuixosCapabilityParser.CONNECT); } break; case QuixosCapabilityParser.DISCONNECT: this.enterOuterAlt(localContext, 7); { - this.state = 572; + this.state = 598; this.match(QuixosCapabilityParser.DISCONNECT); } break; case QuixosCapabilityParser.WATCH_START: this.enterOuterAlt(localContext, 8); { - this.state = 573; + this.state = 599; this.match(QuixosCapabilityParser.WATCH_START); } break; case QuixosCapabilityParser.WATCH_STOP: this.enterOuterAlt(localContext, 9); { - this.state = 574; + this.state = 600; this.match(QuixosCapabilityParser.WATCH_STOP); } break; case QuixosCapabilityParser.SUBSCRIBE: this.enterOuterAlt(localContext, 10); { - this.state = 575; + this.state = 601; this.match(QuixosCapabilityParser.SUBSCRIBE); } break; case QuixosCapabilityParser.UNSUBSCRIBE: this.enterOuterAlt(localContext, 11); { - this.state = 576; + this.state = 602; this.match(QuixosCapabilityParser.UNSUBSCRIBE); } break; @@ -2287,59 +2388,59 @@ export class QuixosCapabilityParser extends antlr.Parser { } public operationProvider(): OperationProviderContext { let localContext = new OperationProviderContext(this.context, this.state); - this.enterRule(localContext, 82, QuixosCapabilityParser.RULE_operationProvider); + this.enterRule(localContext, 86, QuixosCapabilityParser.RULE_operationProvider); let _la: number; try { - this.state = 598; + this.state = 624; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.STATE: this.enterOuterAlt(localContext, 1); { - this.state = 579; + this.state = 605; this.match(QuixosCapabilityParser.STATE); - this.state = 580; + this.state = 606; this.identifier(); - this.state = 581; + this.state = 607; this.match(QuixosCapabilityParser.DOT); - this.state = 582; + this.state = 608; this.statePrimitive(); } break; case QuixosCapabilityParser.EDGE: this.enterOuterAlt(localContext, 2); { - this.state = 584; + this.state = 610; this.match(QuixosCapabilityParser.EDGE); - this.state = 585; + this.state = 611; this.identifier(); - this.state = 586; + this.state = 612; this.match(QuixosCapabilityParser.DOT); - this.state = 587; + this.state = 613; this.identifier(); - this.state = 588; + this.state = 614; this.match(QuixosCapabilityParser.DOT); - this.state = 589; + this.state = 615; this.edgePrimitive(); } break; case QuixosCapabilityParser.PACKAGE: this.enterOuterAlt(localContext, 3); { - this.state = 591; + this.state = 617; this.match(QuixosCapabilityParser.PACKAGE); - this.state = 592; + this.state = 618; this.identifier(); - this.state = 593; + this.state = 619; this.match(QuixosCapabilityParser.DOT); - this.state = 594; + this.state = 620; this.identifier(); - this.state = 596; + this.state = 622; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 23) { + if (_la === 25) { { - this.state = 595; + this.state = 621; this.dependencyBindingBlock(); } } @@ -2365,14 +2466,14 @@ export class QuixosCapabilityParser extends antlr.Parser { } public statePrimitive(): StatePrimitiveContext { let localContext = new StatePrimitiveContext(this.context, this.state); - this.enterRule(localContext, 84, QuixosCapabilityParser.RULE_statePrimitive); + this.enterRule(localContext, 88, QuixosCapabilityParser.RULE_statePrimitive); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 600; + this.state = 626; _la = this.tokenStream.LA(1); - if(!(((((_la - 48)) & ~0x1F) === 0 && ((1 << (_la - 48)) & 195) !== 0))) { + if(!(((((_la - 50)) & ~0x1F) === 0 && ((1 << (_la - 50)) & 195) !== 0))) { this.errorHandler.recoverInline(this); } else { @@ -2396,14 +2497,14 @@ export class QuixosCapabilityParser extends antlr.Parser { } public edgePrimitive(): EdgePrimitiveContext { let localContext = new EdgePrimitiveContext(this.context, this.state); - this.enterRule(localContext, 86, QuixosCapabilityParser.RULE_edgePrimitive); + this.enterRule(localContext, 90, QuixosCapabilityParser.RULE_edgePrimitive); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 602; + this.state = 628; _la = this.tokenStream.LA(1); - if(!(((((_la - 50)) & ~0x1F) === 0 && ((1 << (_la - 50)) & 55) !== 0))) { + if(!(((((_la - 52)) & ~0x1F) === 0 && ((1 << (_la - 52)) & 55) !== 0))) { this.errorHandler.recoverInline(this); } else { @@ -2427,30 +2528,30 @@ export class QuixosCapabilityParser extends antlr.Parser { } public dependencyBindingBlock(): DependencyBindingBlockContext { let localContext = new DependencyBindingBlockContext(this.context, this.state); - this.enterRule(localContext, 88, QuixosCapabilityParser.RULE_dependencyBindingBlock); + this.enterRule(localContext, 92, QuixosCapabilityParser.RULE_dependencyBindingBlock); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 604; + this.state = 630; this.match(QuixosCapabilityParser.WITH); - this.state = 605; + this.state = 631; this.match(QuixosCapabilityParser.LBRACE); - this.state = 609; + this.state = 635; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 32 || _la === 98) { + while (_la === 34 || _la === 100) { { { - this.state = 606; + this.state = 632; this.dependencyBinding(); } } - this.state = 611; + this.state = 637; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 612; + this.state = 638; this.match(QuixosCapabilityParser.RBRACE); } } @@ -2469,127 +2570,127 @@ export class QuixosCapabilityParser extends antlr.Parser { } public dependencyBinding(): DependencyBindingContext { let localContext = new DependencyBindingContext(this.context, this.state); - this.enterRule(localContext, 90, QuixosCapabilityParser.RULE_dependencyBinding); + this.enterRule(localContext, 94, QuixosCapabilityParser.RULE_dependencyBinding); let _la: number; try { - this.state = 664; + this.state = 690; this.errorHandler.sync(this); - switch (this.interpreter.adaptivePredict(this.tokenStream, 41, this.context) ) { + switch (this.interpreter.adaptivePredict(this.tokenStream, 43, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { - this.state = 614; + this.state = 640; this.identifier(); - this.state = 615; + this.state = 641; this.match(QuixosCapabilityParser.TO); - this.state = 616; + this.state = 642; this.match(QuixosCapabilityParser.STATE); - this.state = 617; + this.state = 643; this.identifier(); - this.state = 624; + this.state = 650; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 25) { + if (_la === 27) { { - this.state = 618; + this.state = 644; this.match(QuixosCapabilityParser.VIA); - this.state = 619; + this.state = 645; this.match(QuixosCapabilityParser.EDGE); - this.state = 620; + this.state = 646; this.identifier(); - this.state = 621; + this.state = 647; this.match(QuixosCapabilityParser.DOT); - this.state = 622; + this.state = 648; this.identifier(); } } - this.state = 626; + this.state = 652; this.match(QuixosCapabilityParser.SEMI); } break; case 2: this.enterOuterAlt(localContext, 2); { - this.state = 628; + this.state = 654; this.identifier(); - this.state = 629; + this.state = 655; this.match(QuixosCapabilityParser.TO); - this.state = 630; + this.state = 656; this.match(QuixosCapabilityParser.EDGE); - this.state = 631; + this.state = 657; this.identifier(); - this.state = 632; + this.state = 658; this.match(QuixosCapabilityParser.DOT); - this.state = 633; + this.state = 659; this.identifier(); - this.state = 640; + this.state = 666; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 25) { + if (_la === 27) { { - this.state = 634; + this.state = 660; this.match(QuixosCapabilityParser.VIA); - this.state = 635; + this.state = 661; this.match(QuixosCapabilityParser.EDGE); - this.state = 636; + this.state = 662; this.identifier(); - this.state = 637; + this.state = 663; this.match(QuixosCapabilityParser.DOT); - this.state = 638; + this.state = 664; this.identifier(); } } - this.state = 642; + this.state = 668; this.match(QuixosCapabilityParser.SEMI); } break; case 3: this.enterOuterAlt(localContext, 3); { - this.state = 644; + this.state = 670; this.identifier(); - this.state = 645; + this.state = 671; this.match(QuixosCapabilityParser.TO); - this.state = 646; + this.state = 672; this.match(QuixosCapabilityParser.INTERFACE); - this.state = 647; + this.state = 673; this.identifier(); - this.state = 654; + this.state = 680; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 25) { + if (_la === 27) { { - this.state = 648; + this.state = 674; this.match(QuixosCapabilityParser.VIA); - this.state = 649; + this.state = 675; this.match(QuixosCapabilityParser.EDGE); - this.state = 650; + this.state = 676; this.identifier(); - this.state = 651; + this.state = 677; this.match(QuixosCapabilityParser.DOT); - this.state = 652; + this.state = 678; this.identifier(); } } - this.state = 656; + this.state = 682; this.match(QuixosCapabilityParser.SEMI); } break; case 4: this.enterOuterAlt(localContext, 4); { - this.state = 658; + this.state = 684; this.identifier(); - this.state = 659; + this.state = 685; this.match(QuixosCapabilityParser.TO); - this.state = 660; + this.state = 686; this.match(QuixosCapabilityParser.CONSTRUCTOR); - this.state = 661; + this.state = 687; this.identifier(); - this.state = 662; + this.state = 688; this.match(QuixosCapabilityParser.SEMI); } break; @@ -2610,34 +2711,34 @@ export class QuixosCapabilityParser extends antlr.Parser { } public constructorBindingDecl(): ConstructorBindingDeclContext { let localContext = new ConstructorBindingDeclContext(this.context, this.state); - this.enterRule(localContext, 92, QuixosCapabilityParser.RULE_constructorBindingDecl); + this.enterRule(localContext, 96, QuixosCapabilityParser.RULE_constructorBindingDecl); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 666; + this.state = 692; this.match(QuixosCapabilityParser.CONSTRUCTOR); - this.state = 667; + this.state = 693; this.identifier(); - this.state = 668; + this.state = 694; this.match(QuixosCapabilityParser.TO); - this.state = 669; + this.state = 695; this.identifier(); - this.state = 670; + this.state = 696; this.match(QuixosCapabilityParser.DOT); - this.state = 671; + this.state = 697; this.identifier(); - this.state = 673; + this.state = 699; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 23) { + if (_la === 25) { { - this.state = 672; + this.state = 698; this.dependencyBindingBlock(); } } - this.state = 675; + this.state = 701; this.match(QuixosCapabilityParser.SEMI); } } @@ -2656,9 +2757,9 @@ export class QuixosCapabilityParser extends antlr.Parser { } public valueType(): ValueTypeContext { let localContext = new ValueTypeContext(this.context, this.state); - this.enterRule(localContext, 94, QuixosCapabilityParser.RULE_valueType); + this.enterRule(localContext, 98, QuixosCapabilityParser.RULE_valueType); try { - this.state = 702; + this.state = 728; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.BOOL: @@ -2671,82 +2772,82 @@ export class QuixosCapabilityParser extends antlr.Parser { case QuixosCapabilityParser.UINT64: this.enterOuterAlt(localContext, 1); { - this.state = 677; + this.state = 703; this.scalarType(); } break; case QuixosCapabilityParser.UNIT: this.enterOuterAlt(localContext, 2); { - this.state = 678; + this.state = 704; this.match(QuixosCapabilityParser.UNIT); } break; case QuixosCapabilityParser.WATCH_HANDLE: this.enterOuterAlt(localContext, 3); { - this.state = 679; + this.state = 705; this.match(QuixosCapabilityParser.WATCH_HANDLE); } break; case QuixosCapabilityParser.MESSAGE: this.enterOuterAlt(localContext, 4); { - this.state = 680; + this.state = 706; this.match(QuixosCapabilityParser.MESSAGE); - this.state = 681; + this.state = 707; this.stringLiteral(); } break; case QuixosCapabilityParser.ATOM_REF: this.enterOuterAlt(localContext, 5); { - this.state = 682; + this.state = 708; this.match(QuixosCapabilityParser.ATOM_REF); - this.state = 683; + this.state = 709; this.match(QuixosCapabilityParser.LT); - this.state = 684; + this.state = 710; this.identifier(); - this.state = 685; + this.state = 711; this.match(QuixosCapabilityParser.GT); } break; case QuixosCapabilityParser.INTERFACE_REF: this.enterOuterAlt(localContext, 6); { - this.state = 687; + this.state = 713; this.match(QuixosCapabilityParser.INTERFACE_REF); - this.state = 688; + this.state = 714; this.match(QuixosCapabilityParser.LT); - this.state = 689; + this.state = 715; this.identifier(); - this.state = 690; + this.state = 716; this.match(QuixosCapabilityParser.GT); } break; case QuixosCapabilityParser.OPTIONAL: this.enterOuterAlt(localContext, 7); { - this.state = 692; + this.state = 718; this.match(QuixosCapabilityParser.OPTIONAL); - this.state = 693; + this.state = 719; this.match(QuixosCapabilityParser.LT); - this.state = 694; + this.state = 720; this.valueType(); - this.state = 695; + this.state = 721; this.match(QuixosCapabilityParser.GT); } break; case QuixosCapabilityParser.LIST: this.enterOuterAlt(localContext, 8); { - this.state = 697; + this.state = 723; this.match(QuixosCapabilityParser.LIST); - this.state = 698; + this.state = 724; this.match(QuixosCapabilityParser.LT); - this.state = 699; + this.state = 725; this.valueType(); - this.state = 700; + this.state = 726; this.match(QuixosCapabilityParser.GT); } break; @@ -2769,14 +2870,14 @@ export class QuixosCapabilityParser extends antlr.Parser { } public scalarType(): ScalarTypeContext { let localContext = new ScalarTypeContext(this.context, this.state); - this.enterRule(localContext, 96, QuixosCapabilityParser.RULE_scalarType); + this.enterRule(localContext, 100, QuixosCapabilityParser.RULE_scalarType); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 704; + this.state = 730; _la = this.tokenStream.LA(1); - if(!(((((_la - 72)) & ~0x1F) === 0 && ((1 << (_la - 72)) & 255) !== 0))) { + if(!(((((_la - 74)) & ~0x1F) === 0 && ((1 << (_la - 74)) & 255) !== 0))) { this.errorHandler.recoverInline(this); } else { @@ -2800,14 +2901,14 @@ export class QuixosCapabilityParser extends antlr.Parser { } public cardinality(): CardinalityContext { let localContext = new CardinalityContext(this.context, this.state); - this.enterRule(localContext, 98, QuixosCapabilityParser.RULE_cardinality); + this.enterRule(localContext, 102, QuixosCapabilityParser.RULE_cardinality); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 706; + this.state = 732; _la = this.tokenStream.LA(1); - if(!(((((_la - 60)) & ~0x1F) === 0 && ((1 << (_la - 60)) & 15) !== 0))) { + if(!(((((_la - 62)) & ~0x1F) === 0 && ((1 << (_la - 62)) & 15) !== 0))) { this.errorHandler.recoverInline(this); } else { @@ -2831,64 +2932,64 @@ export class QuixosCapabilityParser extends antlr.Parser { } public jsonLiteral(): JsonLiteralContext { let localContext = new JsonLiteralContext(this.context, this.state); - this.enterRule(localContext, 100, QuixosCapabilityParser.RULE_jsonLiteral); + this.enterRule(localContext, 104, QuixosCapabilityParser.RULE_jsonLiteral); try { - this.state = 716; + this.state = 742; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.STRING_LITERAL: this.enterOuterAlt(localContext, 1); { - this.state = 708; + this.state = 734; this.stringLiteral(); } break; case QuixosCapabilityParser.INTEGER: this.enterOuterAlt(localContext, 2); { - this.state = 709; + this.state = 735; this.match(QuixosCapabilityParser.INTEGER); } break; case QuixosCapabilityParser.JSON_NUMBER: this.enterOuterAlt(localContext, 3); { - this.state = 710; + this.state = 736; this.match(QuixosCapabilityParser.JSON_NUMBER); } break; case QuixosCapabilityParser.TRUE: this.enterOuterAlt(localContext, 4); { - this.state = 711; + this.state = 737; this.match(QuixosCapabilityParser.TRUE); } break; case QuixosCapabilityParser.FALSE: this.enterOuterAlt(localContext, 5); { - this.state = 712; + this.state = 738; this.match(QuixosCapabilityParser.FALSE); } break; case QuixosCapabilityParser.NULL: this.enterOuterAlt(localContext, 6); { - this.state = 713; + this.state = 739; this.match(QuixosCapabilityParser.NULL); } break; case QuixosCapabilityParser.LBRACE: this.enterOuterAlt(localContext, 7); { - this.state = 714; + this.state = 740; this.jsonObject(); } break; case QuixosCapabilityParser.LBRACK: this.enterOuterAlt(localContext, 8); { - this.state = 715; + this.state = 741; this.jsonArray(); } break; @@ -2911,40 +3012,40 @@ export class QuixosCapabilityParser extends antlr.Parser { } public jsonObject(): JsonObjectContext { let localContext = new JsonObjectContext(this.context, this.state); - this.enterRule(localContext, 102, QuixosCapabilityParser.RULE_jsonObject); + this.enterRule(localContext, 106, QuixosCapabilityParser.RULE_jsonObject); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 718; + this.state = 744; this.match(QuixosCapabilityParser.LBRACE); - this.state = 727; + this.state = 753; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 99) { + if (_la === 101) { { - this.state = 719; + this.state = 745; this.jsonMember(); - this.state = 724; + this.state = 750; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 86) { + while (_la === 88) { { { - this.state = 720; + this.state = 746; this.match(QuixosCapabilityParser.COMMA); - this.state = 721; + this.state = 747; this.jsonMember(); } } - this.state = 726; + this.state = 752; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } - this.state = 729; + this.state = 755; this.match(QuixosCapabilityParser.RBRACE); } } @@ -2963,15 +3064,15 @@ export class QuixosCapabilityParser extends antlr.Parser { } public jsonMember(): JsonMemberContext { let localContext = new JsonMemberContext(this.context, this.state); - this.enterRule(localContext, 104, QuixosCapabilityParser.RULE_jsonMember); + this.enterRule(localContext, 108, QuixosCapabilityParser.RULE_jsonMember); try { this.enterOuterAlt(localContext, 1); { - this.state = 731; + this.state = 757; this.stringLiteral(); - this.state = 732; + this.state = 758; this.match(QuixosCapabilityParser.COLON); - this.state = 733; + this.state = 759; this.jsonLiteral(); } } @@ -2990,40 +3091,40 @@ export class QuixosCapabilityParser extends antlr.Parser { } public jsonArray(): JsonArrayContext { let localContext = new JsonArrayContext(this.context, this.state); - this.enterRule(localContext, 106, QuixosCapabilityParser.RULE_jsonArray); + this.enterRule(localContext, 110, QuixosCapabilityParser.RULE_jsonArray); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 735; + this.state = 761; this.match(QuixosCapabilityParser.LBRACK); - this.state = 744; + this.state = 770; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (((((_la - 80)) & ~0x1F) === 0 && ((1 << (_la - 80)) & 722183) !== 0)) { + if (((((_la - 82)) & ~0x1F) === 0 && ((1 << (_la - 82)) & 722183) !== 0)) { { - this.state = 736; + this.state = 762; this.jsonLiteral(); - this.state = 741; + this.state = 767; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 86) { + while (_la === 88) { { { - this.state = 737; + this.state = 763; this.match(QuixosCapabilityParser.COMMA); - this.state = 738; + this.state = 764; this.jsonLiteral(); } } - this.state = 743; + this.state = 769; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } - this.state = 746; + this.state = 772; this.match(QuixosCapabilityParser.RBRACK); } } @@ -3042,14 +3143,14 @@ export class QuixosCapabilityParser extends antlr.Parser { } public identifier(): IdentifierContext { let localContext = new IdentifierContext(this.context, this.state); - this.enterRule(localContext, 108, QuixosCapabilityParser.RULE_identifier); + this.enterRule(localContext, 112, QuixosCapabilityParser.RULE_identifier); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 748; + this.state = 774; _la = this.tokenStream.LA(1); - if(!(_la === 32 || _la === 98)) { + if(!(_la === 34 || _la === 100)) { this.errorHandler.recoverInline(this); } else { @@ -3073,11 +3174,11 @@ export class QuixosCapabilityParser extends antlr.Parser { } public stringLiteral(): StringLiteralContext { let localContext = new StringLiteralContext(this.context, this.state); - this.enterRule(localContext, 110, QuixosCapabilityParser.RULE_stringLiteral); + this.enterRule(localContext, 114, QuixosCapabilityParser.RULE_stringLiteral); try { this.enterOuterAlt(localContext, 1); { - this.state = 750; + this.state = 776; this.match(QuixosCapabilityParser.STRING_LITERAL); } } @@ -3096,7 +3197,7 @@ export class QuixosCapabilityParser extends antlr.Parser { } public static readonly _serializedATN: number[] = [ - 4,1,102,753,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, + 4,1,104,779,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, @@ -3104,268 +3205,278 @@ export class QuixosCapabilityParser extends antlr.Parser { 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,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0, - 1,0,3,0,122,8,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,1,134, - 8,1,10,1,12,1,137,9,1,1,1,1,1,1,2,1,2,1,2,1,2,1,2,3,2,146,8,2,1, - 3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,3,3,158,8,3,1,4,1,4,1,4,1, - 4,1,4,1,4,1,4,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,6,1,6,1,6,3,6,177,8, - 6,1,7,1,7,1,7,1,7,1,7,1,7,3,7,185,8,7,1,7,1,7,1,8,5,8,190,8,8,10, - 8,12,8,193,9,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,5,8,203,8,8,10,8, - 12,8,206,9,8,1,8,1,8,1,9,1,9,1,9,3,9,213,8,9,1,10,1,10,1,10,1,10, - 1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,11,1,11, - 1,11,1,11,1,11,1,11,1,11,1,11,5,11,238,8,11,10,11,12,11,241,9,11, - 1,11,1,11,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12, - 1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,264,8,12,1,13,1,13, - 1,13,1,13,1,13,1,13,1,13,1,13,3,13,274,8,13,1,13,1,13,5,13,278,8, - 13,10,13,12,13,281,9,13,1,13,1,13,1,14,1,14,1,14,1,14,1,14,1,14, - 1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14, - 1,14,1,14,1,14,1,14,1,14,3,14,309,8,14,1,15,1,15,1,15,1,15,3,15, - 315,8,15,1,16,5,16,318,8,16,10,16,12,16,321,9,16,1,16,1,16,1,16, - 1,16,1,16,1,16,1,16,1,16,5,16,331,8,16,10,16,12,16,334,9,16,1,16, - 1,16,1,17,1,17,1,17,3,17,341,8,17,1,18,1,18,1,18,1,18,1,18,1,18, - 1,18,1,18,1,18,1,18,1,18,3,18,354,8,18,1,18,1,18,1,18,3,18,359,8, - 18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,3,19,372, - 8,19,1,19,1,19,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,3,20, - 385,8,20,1,20,1,20,1,21,1,21,1,21,1,22,1,22,1,23,1,23,1,23,1,23, - 1,23,1,23,3,23,400,8,23,1,23,3,23,403,8,23,1,24,1,24,1,24,5,24,408, - 8,24,10,24,12,24,411,9,24,1,25,1,25,1,25,5,25,416,8,25,10,25,12, - 25,419,9,25,1,25,1,25,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1, - 26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1, - 26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1,26,1, - 26,3,26,458,8,26,1,27,1,27,1,27,1,27,5,27,464,8,27,10,27,12,27,467, - 9,27,1,27,1,27,1,28,1,28,1,29,1,29,1,29,1,30,1,30,3,30,478,8,30, - 1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,3,31, - 492,8,31,1,31,1,31,1,32,1,32,1,32,1,32,1,32,1,32,3,32,502,8,32,1, - 33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,34,1,34,1,34,1,34,1, - 34,1,34,1,34,3,34,520,8,34,1,34,1,34,1,35,1,35,1,35,1,35,1,35,1, - 35,5,35,530,8,35,10,35,12,35,533,9,35,1,35,1,35,1,36,1,36,1,36,1, - 36,3,36,541,8,36,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1, - 37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,39,1,39,1, - 39,1,39,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,3, - 40,578,8,40,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1,41,1, - 41,1,41,1,41,1,41,1,41,1,41,1,41,3,41,597,8,41,3,41,599,8,41,1,42, - 1,42,1,43,1,43,1,44,1,44,1,44,5,44,608,8,44,10,44,12,44,611,9,44, - 1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,3,45, - 625,8,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45, - 1,45,1,45,1,45,3,45,641,8,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45, - 1,45,1,45,1,45,1,45,1,45,3,45,655,8,45,1,45,1,45,1,45,1,45,1,45, - 1,45,1,45,1,45,3,45,665,8,45,1,46,1,46,1,46,1,46,1,46,1,46,1,46, - 3,46,674,8,46,1,46,1,46,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47, - 1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47, - 1,47,1,47,1,47,1,47,3,47,703,8,47,1,48,1,48,1,49,1,49,1,50,1,50, - 1,50,1,50,1,50,1,50,1,50,1,50,3,50,717,8,50,1,51,1,51,1,51,1,51, - 5,51,723,8,51,10,51,12,51,726,9,51,3,51,728,8,51,1,51,1,51,1,52, - 1,52,1,52,1,52,1,53,1,53,1,53,1,53,5,53,740,8,53,10,53,12,53,743, - 9,53,3,53,745,8,53,1,53,1,53,1,54,1,54,1,55,1,55,1,55,0,0,56,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,0,7,1,0,53,57,2,0,48,52,54,55,2, - 0,48,49,54,55,2,0,50,52,54,55,1,0,72,79,1,0,60,63,2,0,32,32,98,98, - 783,0,121,1,0,0,0,2,123,1,0,0,0,4,145,1,0,0,0,6,157,1,0,0,0,8,159, - 1,0,0,0,10,166,1,0,0,0,12,176,1,0,0,0,14,178,1,0,0,0,16,191,1,0, - 0,0,18,212,1,0,0,0,20,214,1,0,0,0,22,229,1,0,0,0,24,263,1,0,0,0, - 26,265,1,0,0,0,28,308,1,0,0,0,30,314,1,0,0,0,32,319,1,0,0,0,34,340, - 1,0,0,0,36,342,1,0,0,0,38,362,1,0,0,0,40,375,1,0,0,0,42,388,1,0, - 0,0,44,391,1,0,0,0,46,402,1,0,0,0,48,404,1,0,0,0,50,412,1,0,0,0, - 52,457,1,0,0,0,54,459,1,0,0,0,56,470,1,0,0,0,58,472,1,0,0,0,60,477, - 1,0,0,0,62,479,1,0,0,0,64,501,1,0,0,0,66,503,1,0,0,0,68,512,1,0, - 0,0,70,523,1,0,0,0,72,540,1,0,0,0,74,542,1,0,0,0,76,556,1,0,0,0, - 78,562,1,0,0,0,80,577,1,0,0,0,82,598,1,0,0,0,84,600,1,0,0,0,86,602, - 1,0,0,0,88,604,1,0,0,0,90,664,1,0,0,0,92,666,1,0,0,0,94,702,1,0, - 0,0,96,704,1,0,0,0,98,706,1,0,0,0,100,716,1,0,0,0,102,718,1,0,0, - 0,104,731,1,0,0,0,106,735,1,0,0,0,108,748,1,0,0,0,110,750,1,0,0, - 0,112,113,3,2,1,0,113,114,5,0,0,1,114,122,1,0,0,0,115,116,3,16,8, - 0,116,117,5,0,0,1,117,122,1,0,0,0,118,119,3,32,16,0,119,120,5,0, - 0,1,120,122,1,0,0,0,121,112,1,0,0,0,121,115,1,0,0,0,121,118,1,0, - 0,0,122,1,1,0,0,0,123,124,5,1,0,0,124,125,3,108,54,0,125,126,5,36, - 0,0,126,127,3,110,55,0,127,128,5,35,0,0,128,129,3,110,55,0,129,130, - 5,34,0,0,130,131,3,110,55,0,131,135,5,88,0,0,132,134,3,4,2,0,133, - 132,1,0,0,0,134,137,1,0,0,0,135,133,1,0,0,0,135,136,1,0,0,0,136, - 138,1,0,0,0,137,135,1,0,0,0,138,139,5,89,0,0,139,3,1,0,0,0,140,146, - 3,14,7,0,141,146,3,6,3,0,142,146,3,58,29,0,143,146,3,70,35,0,144, - 146,3,92,46,0,145,140,1,0,0,0,145,141,1,0,0,0,145,142,1,0,0,0,145, - 143,1,0,0,0,145,144,1,0,0,0,146,5,1,0,0,0,147,148,5,2,0,0,148,149, - 5,5,0,0,149,150,3,108,54,0,150,151,5,85,0,0,151,158,1,0,0,0,152, - 153,5,2,0,0,153,154,5,7,0,0,154,155,3,108,54,0,155,156,5,85,0,0, - 156,158,1,0,0,0,157,147,1,0,0,0,157,152,1,0,0,0,158,7,1,0,0,0,159, - 160,5,3,0,0,160,161,5,4,0,0,161,162,3,108,54,0,162,163,5,36,0,0, - 163,164,3,110,55,0,164,165,5,85,0,0,165,9,1,0,0,0,166,167,5,3,0, - 0,167,168,5,5,0,0,168,169,3,108,54,0,169,170,5,35,0,0,170,171,3, - 110,55,0,171,172,5,85,0,0,172,11,1,0,0,0,173,177,3,6,3,0,174,177, - 3,8,4,0,175,177,3,10,5,0,176,173,1,0,0,0,176,174,1,0,0,0,176,175, - 1,0,0,0,177,13,1,0,0,0,178,179,5,4,0,0,179,180,3,108,54,0,180,181, - 5,36,0,0,181,184,3,110,55,0,182,183,5,37,0,0,183,185,3,110,55,0, - 184,182,1,0,0,0,184,185,1,0,0,0,185,186,1,0,0,0,186,187,5,85,0,0, - 187,15,1,0,0,0,188,190,3,12,6,0,189,188,1,0,0,0,190,193,1,0,0,0, - 191,189,1,0,0,0,191,192,1,0,0,0,192,194,1,0,0,0,193,191,1,0,0,0, - 194,195,5,5,0,0,195,196,3,108,54,0,196,197,5,36,0,0,197,198,3,110, - 55,0,198,199,5,35,0,0,199,200,3,110,55,0,200,204,5,88,0,0,201,203, - 3,18,9,0,202,201,1,0,0,0,203,206,1,0,0,0,204,202,1,0,0,0,204,205, - 1,0,0,0,205,207,1,0,0,0,206,204,1,0,0,0,207,208,5,89,0,0,208,17, - 1,0,0,0,209,213,3,22,11,0,210,213,3,26,13,0,211,213,3,20,10,0,212, - 209,1,0,0,0,212,210,1,0,0,0,212,211,1,0,0,0,213,19,1,0,0,0,214,215, - 5,10,0,0,215,216,3,108,54,0,216,217,5,36,0,0,217,218,3,110,55,0, - 218,219,5,84,0,0,219,220,3,94,47,0,220,221,5,83,0,0,221,222,3,94, - 47,0,222,223,5,88,0,0,223,224,5,53,0,0,224,225,5,36,0,0,225,226, - 3,110,55,0,226,227,5,85,0,0,227,228,5,89,0,0,228,21,1,0,0,0,229, - 230,5,8,0,0,230,231,3,108,54,0,231,232,5,36,0,0,232,233,3,110,55, - 0,233,234,5,84,0,0,234,235,3,94,47,0,235,239,5,88,0,0,236,238,3, - 24,12,0,237,236,1,0,0,0,238,241,1,0,0,0,239,237,1,0,0,0,239,240, - 1,0,0,0,240,242,1,0,0,0,241,239,1,0,0,0,242,243,5,89,0,0,243,23, - 1,0,0,0,244,245,5,43,0,0,245,246,5,36,0,0,246,247,3,110,55,0,247, - 248,5,85,0,0,248,264,1,0,0,0,249,250,5,44,0,0,250,251,5,36,0,0,251, - 252,3,110,55,0,252,253,5,85,0,0,253,264,1,0,0,0,254,255,5,45,0,0, - 255,256,5,46,0,0,256,257,5,36,0,0,257,258,3,110,55,0,258,259,5,47, - 0,0,259,260,5,36,0,0,260,261,3,110,55,0,261,262,5,85,0,0,262,264, - 1,0,0,0,263,244,1,0,0,0,263,249,1,0,0,0,263,254,1,0,0,0,264,25,1, - 0,0,0,265,266,5,9,0,0,266,267,3,108,54,0,267,268,5,36,0,0,268,269, - 3,110,55,0,269,270,5,84,0,0,270,271,3,98,49,0,271,273,3,30,15,0, - 272,274,5,64,0,0,273,272,1,0,0,0,273,274,1,0,0,0,274,275,1,0,0,0, - 275,279,5,88,0,0,276,278,3,28,14,0,277,276,1,0,0,0,278,281,1,0,0, - 0,279,277,1,0,0,0,279,280,1,0,0,0,280,282,1,0,0,0,281,279,1,0,0, - 0,282,283,5,89,0,0,283,27,1,0,0,0,284,285,5,50,0,0,285,286,5,36, - 0,0,286,287,3,110,55,0,287,288,5,85,0,0,288,309,1,0,0,0,289,290, - 5,51,0,0,290,291,5,36,0,0,291,292,3,110,55,0,292,293,5,85,0,0,293, - 309,1,0,0,0,294,295,5,52,0,0,295,296,5,36,0,0,296,297,3,110,55,0, - 297,298,5,85,0,0,298,309,1,0,0,0,299,300,5,45,0,0,300,301,5,46,0, - 0,301,302,5,36,0,0,302,303,3,110,55,0,303,304,5,47,0,0,304,305,5, - 36,0,0,305,306,3,110,55,0,306,307,5,85,0,0,307,309,1,0,0,0,308,284, - 1,0,0,0,308,289,1,0,0,0,308,294,1,0,0,0,308,299,1,0,0,0,309,29,1, - 0,0,0,310,311,5,4,0,0,311,315,3,108,54,0,312,313,5,5,0,0,313,315, - 3,108,54,0,314,310,1,0,0,0,314,312,1,0,0,0,315,31,1,0,0,0,316,318, - 3,12,6,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,322,1,0,0,0,321,319,1,0,0,0,322,323,5,7,0,0,323,324, - 3,108,54,0,324,325,5,36,0,0,325,326,3,110,55,0,326,327,5,35,0,0, - 327,328,3,110,55,0,328,332,5,88,0,0,329,331,3,34,17,0,330,329,1, - 0,0,0,331,334,1,0,0,0,332,330,1,0,0,0,332,333,1,0,0,0,333,335,1, - 0,0,0,334,332,1,0,0,0,335,336,5,89,0,0,336,33,1,0,0,0,337,341,3, - 36,18,0,338,341,3,38,19,0,339,341,3,40,20,0,340,337,1,0,0,0,340, - 338,1,0,0,0,340,339,1,0,0,0,341,35,1,0,0,0,342,343,5,10,0,0,343, - 344,3,108,54,0,344,345,5,36,0,0,345,346,3,110,55,0,346,347,5,84, - 0,0,347,348,3,94,47,0,348,349,5,83,0,0,349,350,3,94,47,0,350,351, - 5,38,0,0,351,353,3,44,22,0,352,354,3,42,21,0,353,352,1,0,0,0,353, - 354,1,0,0,0,354,355,1,0,0,0,355,356,5,40,0,0,356,358,3,46,23,0,357, - 359,3,50,25,0,358,357,1,0,0,0,358,359,1,0,0,0,359,360,1,0,0,0,360, - 361,5,85,0,0,361,37,1,0,0,0,362,363,5,11,0,0,363,364,3,108,54,0, - 364,365,5,36,0,0,365,366,3,110,55,0,366,367,5,84,0,0,367,368,3,94, - 47,0,368,369,5,83,0,0,369,371,3,94,47,0,370,372,3,50,25,0,371,370, - 1,0,0,0,371,372,1,0,0,0,372,373,1,0,0,0,373,374,5,85,0,0,374,39, - 1,0,0,0,375,376,5,12,0,0,376,377,3,108,54,0,377,378,5,36,0,0,378, - 379,3,110,55,0,379,380,5,13,0,0,380,381,3,108,54,0,381,382,5,84, - 0,0,382,384,3,94,47,0,383,385,3,50,25,0,384,383,1,0,0,0,384,385, - 1,0,0,0,385,386,1,0,0,0,386,387,5,85,0,0,387,41,1,0,0,0,388,389, - 5,39,0,0,389,390,3,94,47,0,390,43,1,0,0,0,391,392,7,0,0,0,392,45, - 1,0,0,0,393,403,5,42,0,0,394,395,5,4,0,0,395,403,3,108,54,0,396, - 397,5,6,0,0,397,399,5,90,0,0,398,400,3,48,24,0,399,398,1,0,0,0,399, - 400,1,0,0,0,400,401,1,0,0,0,401,403,5,91,0,0,402,393,1,0,0,0,402, - 394,1,0,0,0,402,396,1,0,0,0,403,47,1,0,0,0,404,409,3,108,54,0,405, - 406,5,86,0,0,406,408,3,108,54,0,407,405,1,0,0,0,408,411,1,0,0,0, - 409,407,1,0,0,0,409,410,1,0,0,0,410,49,1,0,0,0,411,409,1,0,0,0,412, - 413,5,41,0,0,413,417,5,88,0,0,414,416,3,52,26,0,415,414,1,0,0,0, - 416,419,1,0,0,0,417,415,1,0,0,0,417,418,1,0,0,0,418,420,1,0,0,0, - 419,417,1,0,0,0,420,421,5,89,0,0,421,51,1,0,0,0,422,423,5,20,0,0, - 423,424,3,108,54,0,424,425,5,36,0,0,425,426,3,110,55,0,426,427,5, - 84,0,0,427,428,3,94,47,0,428,429,3,54,27,0,429,430,5,85,0,0,430, - 458,1,0,0,0,431,432,5,21,0,0,432,433,3,108,54,0,433,434,5,36,0,0, - 434,435,3,110,55,0,435,436,5,84,0,0,436,437,3,98,49,0,437,438,3, - 30,15,0,438,439,3,54,27,0,439,440,5,85,0,0,440,458,1,0,0,0,441,442, - 5,5,0,0,442,443,3,108,54,0,443,444,5,36,0,0,444,445,3,110,55,0,445, - 446,5,84,0,0,446,447,3,108,54,0,447,448,5,85,0,0,448,458,1,0,0,0, - 449,450,5,12,0,0,450,451,3,108,54,0,451,452,5,36,0,0,452,453,3,110, - 55,0,453,454,5,84,0,0,454,455,3,108,54,0,455,456,5,85,0,0,456,458, - 1,0,0,0,457,422,1,0,0,0,457,431,1,0,0,0,457,441,1,0,0,0,457,449, - 1,0,0,0,458,53,1,0,0,0,459,460,5,90,0,0,460,465,3,56,28,0,461,462, - 5,86,0,0,462,464,3,56,28,0,463,461,1,0,0,0,464,467,1,0,0,0,465,463, - 1,0,0,0,465,466,1,0,0,0,466,468,1,0,0,0,467,465,1,0,0,0,468,469, - 5,91,0,0,469,55,1,0,0,0,470,471,7,1,0,0,471,57,1,0,0,0,472,473,5, - 19,0,0,473,474,3,60,30,0,474,59,1,0,0,0,475,478,3,62,31,0,476,478, - 3,66,33,0,477,475,1,0,0,0,477,476,1,0,0,0,478,61,1,0,0,0,479,480, - 5,20,0,0,480,481,3,108,54,0,481,482,5,36,0,0,482,483,3,110,55,0, - 483,484,5,29,0,0,484,485,3,108,54,0,485,486,5,84,0,0,486,487,3,94, - 47,0,487,488,5,30,0,0,488,491,3,64,32,0,489,490,5,31,0,0,490,492, - 3,100,50,0,491,489,1,0,0,0,491,492,1,0,0,0,492,493,1,0,0,0,493,494, - 5,85,0,0,494,63,1,0,0,0,495,502,5,58,0,0,496,497,5,59,0,0,497,498, - 5,92,0,0,498,499,3,94,47,0,499,500,5,93,0,0,500,502,1,0,0,0,501, - 495,1,0,0,0,501,496,1,0,0,0,502,65,1,0,0,0,503,504,5,21,0,0,504, - 505,3,108,54,0,505,506,5,36,0,0,506,507,3,110,55,0,507,508,5,88, - 0,0,508,509,3,68,34,0,509,510,3,68,34,0,510,511,5,89,0,0,511,67, - 1,0,0,0,512,513,3,30,15,0,513,514,5,22,0,0,514,515,3,108,54,0,515, - 516,5,36,0,0,516,517,3,110,55,0,517,519,3,98,49,0,518,520,5,64,0, - 0,519,518,1,0,0,0,519,520,1,0,0,0,520,521,1,0,0,0,521,522,5,85,0, - 0,522,69,1,0,0,0,523,524,5,14,0,0,524,525,3,108,54,0,525,526,5,15, - 0,0,526,527,3,108,54,0,527,531,5,88,0,0,528,530,3,72,36,0,529,528, - 1,0,0,0,530,533,1,0,0,0,531,529,1,0,0,0,531,532,1,0,0,0,532,534, - 1,0,0,0,533,531,1,0,0,0,534,535,5,89,0,0,535,71,1,0,0,0,536,537, - 5,18,0,0,537,541,3,60,30,0,538,541,3,76,38,0,539,541,3,74,37,0,540, - 536,1,0,0,0,540,538,1,0,0,0,540,539,1,0,0,0,541,73,1,0,0,0,542,543, - 5,26,0,0,543,544,3,108,54,0,544,545,5,27,0,0,545,546,5,28,0,0,546, - 547,5,24,0,0,547,548,5,12,0,0,548,549,3,108,54,0,549,550,5,25,0, - 0,550,551,5,21,0,0,551,552,3,108,54,0,552,553,5,87,0,0,553,554,3, - 108,54,0,554,555,5,85,0,0,555,75,1,0,0,0,556,557,5,16,0,0,557,558, - 3,78,39,0,558,559,5,17,0,0,559,560,3,82,41,0,560,561,5,85,0,0,561, - 77,1,0,0,0,562,563,3,108,54,0,563,564,5,87,0,0,564,565,3,80,40,0, - 565,79,1,0,0,0,566,578,3,108,54,0,567,578,5,53,0,0,568,578,5,43, - 0,0,569,578,5,44,0,0,570,578,5,50,0,0,571,578,5,51,0,0,572,578,5, - 52,0,0,573,578,5,54,0,0,574,578,5,55,0,0,575,578,5,56,0,0,576,578, - 5,57,0,0,577,566,1,0,0,0,577,567,1,0,0,0,577,568,1,0,0,0,577,569, - 1,0,0,0,577,570,1,0,0,0,577,571,1,0,0,0,577,572,1,0,0,0,577,573, - 1,0,0,0,577,574,1,0,0,0,577,575,1,0,0,0,577,576,1,0,0,0,578,81,1, - 0,0,0,579,580,5,20,0,0,580,581,3,108,54,0,581,582,5,87,0,0,582,583, - 3,84,42,0,583,599,1,0,0,0,584,585,5,21,0,0,585,586,3,108,54,0,586, - 587,5,87,0,0,587,588,3,108,54,0,588,589,5,87,0,0,589,590,3,86,43, - 0,590,599,1,0,0,0,591,592,5,7,0,0,592,593,3,108,54,0,593,594,5,87, - 0,0,594,596,3,108,54,0,595,597,3,88,44,0,596,595,1,0,0,0,596,597, - 1,0,0,0,597,599,1,0,0,0,598,579,1,0,0,0,598,584,1,0,0,0,598,591, - 1,0,0,0,599,83,1,0,0,0,600,601,7,2,0,0,601,85,1,0,0,0,602,603,7, - 3,0,0,603,87,1,0,0,0,604,605,5,23,0,0,605,609,5,88,0,0,606,608,3, - 90,45,0,607,606,1,0,0,0,608,611,1,0,0,0,609,607,1,0,0,0,609,610, - 1,0,0,0,610,612,1,0,0,0,611,609,1,0,0,0,612,613,5,89,0,0,613,89, - 1,0,0,0,614,615,3,108,54,0,615,616,5,17,0,0,616,617,5,20,0,0,617, - 624,3,108,54,0,618,619,5,25,0,0,619,620,5,21,0,0,620,621,3,108,54, - 0,621,622,5,87,0,0,622,623,3,108,54,0,623,625,1,0,0,0,624,618,1, - 0,0,0,624,625,1,0,0,0,625,626,1,0,0,0,626,627,5,85,0,0,627,665,1, - 0,0,0,628,629,3,108,54,0,629,630,5,17,0,0,630,631,5,21,0,0,631,632, - 3,108,54,0,632,633,5,87,0,0,633,640,3,108,54,0,634,635,5,25,0,0, - 635,636,5,21,0,0,636,637,3,108,54,0,637,638,5,87,0,0,638,639,3,108, - 54,0,639,641,1,0,0,0,640,634,1,0,0,0,640,641,1,0,0,0,641,642,1,0, - 0,0,642,643,5,85,0,0,643,665,1,0,0,0,644,645,3,108,54,0,645,646, - 5,17,0,0,646,647,5,5,0,0,647,654,3,108,54,0,648,649,5,25,0,0,649, - 650,5,21,0,0,650,651,3,108,54,0,651,652,5,87,0,0,652,653,3,108,54, - 0,653,655,1,0,0,0,654,648,1,0,0,0,654,655,1,0,0,0,655,656,1,0,0, - 0,656,657,5,85,0,0,657,665,1,0,0,0,658,659,3,108,54,0,659,660,5, - 17,0,0,660,661,5,12,0,0,661,662,3,108,54,0,662,663,5,85,0,0,663, - 665,1,0,0,0,664,614,1,0,0,0,664,628,1,0,0,0,664,644,1,0,0,0,664, - 658,1,0,0,0,665,91,1,0,0,0,666,667,5,12,0,0,667,668,3,108,54,0,668, - 669,5,17,0,0,669,670,3,108,54,0,670,671,5,87,0,0,671,673,3,108,54, - 0,672,674,3,88,44,0,673,672,1,0,0,0,673,674,1,0,0,0,674,675,1,0, - 0,0,675,676,5,85,0,0,676,93,1,0,0,0,677,703,3,96,48,0,678,703,5, - 65,0,0,679,703,5,66,0,0,680,681,5,67,0,0,681,703,3,110,55,0,682, - 683,5,68,0,0,683,684,5,94,0,0,684,685,3,108,54,0,685,686,5,95,0, - 0,686,703,1,0,0,0,687,688,5,69,0,0,688,689,5,94,0,0,689,690,3,108, - 54,0,690,691,5,95,0,0,691,703,1,0,0,0,692,693,5,70,0,0,693,694,5, - 94,0,0,694,695,3,94,47,0,695,696,5,95,0,0,696,703,1,0,0,0,697,698, - 5,71,0,0,698,699,5,94,0,0,699,700,3,94,47,0,700,701,5,95,0,0,701, - 703,1,0,0,0,702,677,1,0,0,0,702,678,1,0,0,0,702,679,1,0,0,0,702, - 680,1,0,0,0,702,682,1,0,0,0,702,687,1,0,0,0,702,692,1,0,0,0,702, - 697,1,0,0,0,703,95,1,0,0,0,704,705,7,4,0,0,705,97,1,0,0,0,706,707, - 7,5,0,0,707,99,1,0,0,0,708,717,3,110,55,0,709,717,5,96,0,0,710,717, - 5,97,0,0,711,717,5,80,0,0,712,717,5,81,0,0,713,717,5,82,0,0,714, - 717,3,102,51,0,715,717,3,106,53,0,716,708,1,0,0,0,716,709,1,0,0, - 0,716,710,1,0,0,0,716,711,1,0,0,0,716,712,1,0,0,0,716,713,1,0,0, - 0,716,714,1,0,0,0,716,715,1,0,0,0,717,101,1,0,0,0,718,727,5,88,0, - 0,719,724,3,104,52,0,720,721,5,86,0,0,721,723,3,104,52,0,722,720, - 1,0,0,0,723,726,1,0,0,0,724,722,1,0,0,0,724,725,1,0,0,0,725,728, - 1,0,0,0,726,724,1,0,0,0,727,719,1,0,0,0,727,728,1,0,0,0,728,729, - 1,0,0,0,729,730,5,89,0,0,730,103,1,0,0,0,731,732,3,110,55,0,732, - 733,5,84,0,0,733,734,3,100,50,0,734,105,1,0,0,0,735,744,5,90,0,0, - 736,741,3,100,50,0,737,738,5,86,0,0,738,740,3,100,50,0,739,737,1, - 0,0,0,740,743,1,0,0,0,741,739,1,0,0,0,741,742,1,0,0,0,742,745,1, - 0,0,0,743,741,1,0,0,0,744,736,1,0,0,0,744,745,1,0,0,0,745,746,1, - 0,0,0,746,747,5,91,0,0,747,107,1,0,0,0,748,749,7,6,0,0,749,109,1, - 0,0,0,750,751,5,99,0,0,751,111,1,0,0,0,49,121,135,145,157,176,184, - 191,204,212,239,263,273,279,308,314,319,332,340,353,358,371,384, - 399,402,409,417,457,465,477,491,501,519,531,540,577,596,598,609, - 624,640,654,664,673,702,716,724,727,741,744 + 52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,1,0,1,0,1,0, + 1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,3,0,129,8,0,1,1,1,1,1,1,5,1, + 134,8,1,10,1,12,1,137,9,1,1,1,1,1,1,2,1,2,1,2,1,2,1,3,1,3,1,3,1, + 3,1,3,1,3,1,3,1,3,1,3,1,3,5,3,155,8,3,10,3,12,3,158,9,3,1,3,1,3, + 1,4,1,4,1,4,1,4,1,4,1,4,3,4,168,8,4,1,5,1,5,1,5,1,5,1,5,1,5,1,5, + 1,5,1,5,1,5,3,5,180,8,5,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,7,1,7,1,7, + 1,7,1,7,1,7,1,7,1,8,1,8,1,8,3,8,199,8,8,1,9,1,9,1,9,1,9,1,9,1,9, + 3,9,207,8,9,1,9,1,9,1,10,5,10,212,8,10,10,10,12,10,215,9,10,1,10, + 1,10,1,10,1,10,1,10,1,10,1,10,1,10,5,10,225,8,10,10,10,12,10,228, + 9,10,1,10,1,10,1,11,1,11,1,11,3,11,235,8,11,1,12,1,12,1,12,1,12, + 1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,13,1,13, + 1,13,1,13,1,13,1,13,1,13,1,13,5,13,260,8,13,10,13,12,13,263,9,13, + 1,13,1,13,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14, + 1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,3,14,286,8,14,1,15,1,15, + 1,15,1,15,1,15,1,15,1,15,1,15,3,15,296,8,15,1,15,1,15,5,15,300,8, + 15,10,15,12,15,303,9,15,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,16, + 1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16, + 1,16,1,16,1,16,1,16,1,16,3,16,331,8,16,1,17,1,17,1,17,1,17,3,17, + 337,8,17,1,18,5,18,340,8,18,10,18,12,18,343,9,18,1,18,1,18,1,18, + 1,18,1,18,1,18,1,18,1,18,5,18,353,8,18,10,18,12,18,356,9,18,1,18, + 1,18,1,19,1,19,1,19,3,19,363,8,19,1,20,1,20,1,20,1,20,1,20,1,20, + 1,20,1,20,1,20,1,20,1,20,3,20,376,8,20,1,20,1,20,1,20,3,20,381,8, + 20,1,20,1,20,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,3,21,394, + 8,21,1,21,1,21,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,3,22, + 407,8,22,1,22,1,22,1,23,1,23,1,23,1,24,1,24,1,25,1,25,1,25,1,25, + 1,25,1,25,3,25,422,8,25,1,25,3,25,425,8,25,1,26,1,26,1,26,5,26,430, + 8,26,10,26,12,26,433,9,26,1,27,1,27,1,27,5,27,438,8,27,10,27,12, + 27,441,9,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1, + 28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1, + 28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1, + 28,3,28,480,8,28,1,28,1,28,3,28,484,8,28,1,29,1,29,1,29,1,29,5,29, + 490,8,29,10,29,12,29,493,9,29,1,29,1,29,1,30,1,30,1,31,1,31,1,31, + 1,32,1,32,3,32,504,8,32,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,33, + 1,33,1,33,1,33,1,33,3,33,518,8,33,1,33,1,33,1,34,1,34,1,34,1,34, + 1,34,1,34,3,34,528,8,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35, + 1,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,3,36,546,8,36,1,36,1,36, + 1,37,1,37,1,37,1,37,1,37,1,37,5,37,556,8,37,10,37,12,37,559,9,37, + 1,37,1,37,1,38,1,38,1,38,1,38,3,38,567,8,38,1,39,1,39,1,39,1,39, + 1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40, + 1,40,1,40,1,40,1,41,1,41,1,41,1,41,1,42,1,42,1,42,1,42,1,42,1,42, + 1,42,1,42,1,42,1,42,1,42,3,42,604,8,42,1,43,1,43,1,43,1,43,1,43, + 1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,43,3,43, + 623,8,43,3,43,625,8,43,1,44,1,44,1,45,1,45,1,46,1,46,1,46,5,46,634, + 8,46,10,46,12,46,637,9,46,1,46,1,46,1,47,1,47,1,47,1,47,1,47,1,47, + 1,47,1,47,1,47,1,47,3,47,651,8,47,1,47,1,47,1,47,1,47,1,47,1,47, + 1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,3,47,667,8,47,1,47,1,47, + 1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,3,47,681,8,47, + 1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,3,47,691,8,47,1,48,1,48, + 1,48,1,48,1,48,1,48,1,48,3,48,700,8,48,1,48,1,48,1,49,1,49,1,49, + 1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49, + 1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,3,49,729,8,49,1,50, + 1,50,1,51,1,51,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,3,52,743, + 8,52,1,53,1,53,1,53,1,53,5,53,749,8,53,10,53,12,53,752,9,53,3,53, + 754,8,53,1,53,1,53,1,54,1,54,1,54,1,54,1,55,1,55,1,55,1,55,5,55, + 766,8,55,10,55,12,55,769,9,55,3,55,771,8,55,1,55,1,55,1,56,1,56, + 1,57,1,57,1,57,0,0,58,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,0,7,1,0,55,59,2,0,50,54,56,57,2,0,50,51,56,57,2,0,52,54,56,57, + 1,0,74,81,1,0,62,65,2,0,34,34,100,100,811,0,128,1,0,0,0,2,130,1, + 0,0,0,4,140,1,0,0,0,6,144,1,0,0,0,8,167,1,0,0,0,10,179,1,0,0,0,12, + 181,1,0,0,0,14,188,1,0,0,0,16,198,1,0,0,0,18,200,1,0,0,0,20,213, + 1,0,0,0,22,234,1,0,0,0,24,236,1,0,0,0,26,251,1,0,0,0,28,285,1,0, + 0,0,30,287,1,0,0,0,32,330,1,0,0,0,34,336,1,0,0,0,36,341,1,0,0,0, + 38,362,1,0,0,0,40,364,1,0,0,0,42,384,1,0,0,0,44,397,1,0,0,0,46,410, + 1,0,0,0,48,413,1,0,0,0,50,424,1,0,0,0,52,426,1,0,0,0,54,434,1,0, + 0,0,56,483,1,0,0,0,58,485,1,0,0,0,60,496,1,0,0,0,62,498,1,0,0,0, + 64,503,1,0,0,0,66,505,1,0,0,0,68,527,1,0,0,0,70,529,1,0,0,0,72,538, + 1,0,0,0,74,549,1,0,0,0,76,566,1,0,0,0,78,568,1,0,0,0,80,582,1,0, + 0,0,82,588,1,0,0,0,84,603,1,0,0,0,86,624,1,0,0,0,88,626,1,0,0,0, + 90,628,1,0,0,0,92,630,1,0,0,0,94,690,1,0,0,0,96,692,1,0,0,0,98,728, + 1,0,0,0,100,730,1,0,0,0,102,732,1,0,0,0,104,742,1,0,0,0,106,744, + 1,0,0,0,108,757,1,0,0,0,110,761,1,0,0,0,112,774,1,0,0,0,114,776, + 1,0,0,0,116,117,3,6,3,0,117,118,5,0,0,1,118,129,1,0,0,0,119,120, + 3,20,10,0,120,121,5,0,0,1,121,129,1,0,0,0,122,123,3,36,18,0,123, + 124,5,0,0,1,124,129,1,0,0,0,125,126,3,2,1,0,126,127,5,0,0,1,127, + 129,1,0,0,0,128,116,1,0,0,0,128,119,1,0,0,0,128,122,1,0,0,0,128, + 125,1,0,0,0,129,1,1,0,0,0,130,131,5,2,0,0,131,135,5,90,0,0,132,134, + 3,8,4,0,133,132,1,0,0,0,134,137,1,0,0,0,135,133,1,0,0,0,135,136, + 1,0,0,0,136,138,1,0,0,0,137,135,1,0,0,0,138,139,5,91,0,0,139,3,1, + 0,0,0,140,141,5,3,0,0,141,142,3,114,57,0,142,143,5,87,0,0,143,5, + 1,0,0,0,144,145,5,1,0,0,145,146,3,112,56,0,146,147,5,38,0,0,147, + 148,3,114,57,0,148,149,5,37,0,0,149,150,3,114,57,0,150,151,5,36, + 0,0,151,152,3,114,57,0,152,156,5,90,0,0,153,155,3,8,4,0,154,153, + 1,0,0,0,155,158,1,0,0,0,156,154,1,0,0,0,156,157,1,0,0,0,157,159, + 1,0,0,0,158,156,1,0,0,0,159,160,5,91,0,0,160,7,1,0,0,0,161,168,3, + 4,2,0,162,168,3,18,9,0,163,168,3,10,5,0,164,168,3,62,31,0,165,168, + 3,74,37,0,166,168,3,96,48,0,167,161,1,0,0,0,167,162,1,0,0,0,167, + 163,1,0,0,0,167,164,1,0,0,0,167,165,1,0,0,0,167,166,1,0,0,0,168, + 9,1,0,0,0,169,170,5,3,0,0,170,171,5,6,0,0,171,172,3,112,56,0,172, + 173,5,87,0,0,173,180,1,0,0,0,174,175,5,3,0,0,175,176,5,8,0,0,176, + 177,3,112,56,0,177,178,5,87,0,0,178,180,1,0,0,0,179,169,1,0,0,0, + 179,174,1,0,0,0,180,11,1,0,0,0,181,182,5,4,0,0,182,183,5,5,0,0,183, + 184,3,112,56,0,184,185,5,38,0,0,185,186,3,114,57,0,186,187,5,87, + 0,0,187,13,1,0,0,0,188,189,5,4,0,0,189,190,5,6,0,0,190,191,3,112, + 56,0,191,192,5,37,0,0,192,193,3,114,57,0,193,194,5,87,0,0,194,15, + 1,0,0,0,195,199,3,10,5,0,196,199,3,12,6,0,197,199,3,14,7,0,198,195, + 1,0,0,0,198,196,1,0,0,0,198,197,1,0,0,0,199,17,1,0,0,0,200,201,5, + 5,0,0,201,202,3,112,56,0,202,203,5,38,0,0,203,206,3,114,57,0,204, + 205,5,39,0,0,205,207,3,114,57,0,206,204,1,0,0,0,206,207,1,0,0,0, + 207,208,1,0,0,0,208,209,5,87,0,0,209,19,1,0,0,0,210,212,3,16,8,0, + 211,210,1,0,0,0,212,215,1,0,0,0,213,211,1,0,0,0,213,214,1,0,0,0, + 214,216,1,0,0,0,215,213,1,0,0,0,216,217,5,6,0,0,217,218,3,112,56, + 0,218,219,5,38,0,0,219,220,3,114,57,0,220,221,5,37,0,0,221,222,3, + 114,57,0,222,226,5,90,0,0,223,225,3,22,11,0,224,223,1,0,0,0,225, + 228,1,0,0,0,226,224,1,0,0,0,226,227,1,0,0,0,227,229,1,0,0,0,228, + 226,1,0,0,0,229,230,5,91,0,0,230,21,1,0,0,0,231,235,3,26,13,0,232, + 235,3,30,15,0,233,235,3,24,12,0,234,231,1,0,0,0,234,232,1,0,0,0, + 234,233,1,0,0,0,235,23,1,0,0,0,236,237,5,11,0,0,237,238,3,112,56, + 0,238,239,5,38,0,0,239,240,3,114,57,0,240,241,5,86,0,0,241,242,3, + 98,49,0,242,243,5,85,0,0,243,244,3,98,49,0,244,245,5,90,0,0,245, + 246,5,55,0,0,246,247,5,38,0,0,247,248,3,114,57,0,248,249,5,87,0, + 0,249,250,5,91,0,0,250,25,1,0,0,0,251,252,5,9,0,0,252,253,3,112, + 56,0,253,254,5,38,0,0,254,255,3,114,57,0,255,256,5,86,0,0,256,257, + 3,98,49,0,257,261,5,90,0,0,258,260,3,28,14,0,259,258,1,0,0,0,260, + 263,1,0,0,0,261,259,1,0,0,0,261,262,1,0,0,0,262,264,1,0,0,0,263, + 261,1,0,0,0,264,265,5,91,0,0,265,27,1,0,0,0,266,267,5,45,0,0,267, + 268,5,38,0,0,268,269,3,114,57,0,269,270,5,87,0,0,270,286,1,0,0,0, + 271,272,5,46,0,0,272,273,5,38,0,0,273,274,3,114,57,0,274,275,5,87, + 0,0,275,286,1,0,0,0,276,277,5,47,0,0,277,278,5,48,0,0,278,279,5, + 38,0,0,279,280,3,114,57,0,280,281,5,49,0,0,281,282,5,38,0,0,282, + 283,3,114,57,0,283,284,5,87,0,0,284,286,1,0,0,0,285,266,1,0,0,0, + 285,271,1,0,0,0,285,276,1,0,0,0,286,29,1,0,0,0,287,288,5,10,0,0, + 288,289,3,112,56,0,289,290,5,38,0,0,290,291,3,114,57,0,291,292,5, + 86,0,0,292,293,3,102,51,0,293,295,3,34,17,0,294,296,5,66,0,0,295, + 294,1,0,0,0,295,296,1,0,0,0,296,297,1,0,0,0,297,301,5,90,0,0,298, + 300,3,32,16,0,299,298,1,0,0,0,300,303,1,0,0,0,301,299,1,0,0,0,301, + 302,1,0,0,0,302,304,1,0,0,0,303,301,1,0,0,0,304,305,5,91,0,0,305, + 31,1,0,0,0,306,307,5,52,0,0,307,308,5,38,0,0,308,309,3,114,57,0, + 309,310,5,87,0,0,310,331,1,0,0,0,311,312,5,53,0,0,312,313,5,38,0, + 0,313,314,3,114,57,0,314,315,5,87,0,0,315,331,1,0,0,0,316,317,5, + 54,0,0,317,318,5,38,0,0,318,319,3,114,57,0,319,320,5,87,0,0,320, + 331,1,0,0,0,321,322,5,47,0,0,322,323,5,48,0,0,323,324,5,38,0,0,324, + 325,3,114,57,0,325,326,5,49,0,0,326,327,5,38,0,0,327,328,3,114,57, + 0,328,329,5,87,0,0,329,331,1,0,0,0,330,306,1,0,0,0,330,311,1,0,0, + 0,330,316,1,0,0,0,330,321,1,0,0,0,331,33,1,0,0,0,332,333,5,5,0,0, + 333,337,3,112,56,0,334,335,5,6,0,0,335,337,3,112,56,0,336,332,1, + 0,0,0,336,334,1,0,0,0,337,35,1,0,0,0,338,340,3,16,8,0,339,338,1, + 0,0,0,340,343,1,0,0,0,341,339,1,0,0,0,341,342,1,0,0,0,342,344,1, + 0,0,0,343,341,1,0,0,0,344,345,5,8,0,0,345,346,3,112,56,0,346,347, + 5,38,0,0,347,348,3,114,57,0,348,349,5,37,0,0,349,350,3,114,57,0, + 350,354,5,90,0,0,351,353,3,38,19,0,352,351,1,0,0,0,353,356,1,0,0, + 0,354,352,1,0,0,0,354,355,1,0,0,0,355,357,1,0,0,0,356,354,1,0,0, + 0,357,358,5,91,0,0,358,37,1,0,0,0,359,363,3,40,20,0,360,363,3,42, + 21,0,361,363,3,44,22,0,362,359,1,0,0,0,362,360,1,0,0,0,362,361,1, + 0,0,0,363,39,1,0,0,0,364,365,5,11,0,0,365,366,3,112,56,0,366,367, + 5,38,0,0,367,368,3,114,57,0,368,369,5,86,0,0,369,370,3,98,49,0,370, + 371,5,85,0,0,371,372,3,98,49,0,372,373,5,40,0,0,373,375,3,48,24, + 0,374,376,3,46,23,0,375,374,1,0,0,0,375,376,1,0,0,0,376,377,1,0, + 0,0,377,378,5,42,0,0,378,380,3,50,25,0,379,381,3,54,27,0,380,379, + 1,0,0,0,380,381,1,0,0,0,381,382,1,0,0,0,382,383,5,87,0,0,383,41, + 1,0,0,0,384,385,5,12,0,0,385,386,3,112,56,0,386,387,5,38,0,0,387, + 388,3,114,57,0,388,389,5,86,0,0,389,390,3,98,49,0,390,391,5,85,0, + 0,391,393,3,98,49,0,392,394,3,54,27,0,393,392,1,0,0,0,393,394,1, + 0,0,0,394,395,1,0,0,0,395,396,5,87,0,0,396,43,1,0,0,0,397,398,5, + 13,0,0,398,399,3,112,56,0,399,400,5,38,0,0,400,401,3,114,57,0,401, + 402,5,14,0,0,402,403,3,112,56,0,403,404,5,86,0,0,404,406,3,98,49, + 0,405,407,3,54,27,0,406,405,1,0,0,0,406,407,1,0,0,0,407,408,1,0, + 0,0,408,409,5,87,0,0,409,45,1,0,0,0,410,411,5,41,0,0,411,412,3,98, + 49,0,412,47,1,0,0,0,413,414,7,0,0,0,414,49,1,0,0,0,415,425,5,44, + 0,0,416,417,5,5,0,0,417,425,3,112,56,0,418,419,5,7,0,0,419,421,5, + 92,0,0,420,422,3,52,26,0,421,420,1,0,0,0,421,422,1,0,0,0,422,423, + 1,0,0,0,423,425,5,93,0,0,424,415,1,0,0,0,424,416,1,0,0,0,424,418, + 1,0,0,0,425,51,1,0,0,0,426,431,3,112,56,0,427,428,5,88,0,0,428,430, + 3,112,56,0,429,427,1,0,0,0,430,433,1,0,0,0,431,429,1,0,0,0,431,432, + 1,0,0,0,432,53,1,0,0,0,433,431,1,0,0,0,434,435,5,43,0,0,435,439, + 5,90,0,0,436,438,3,56,28,0,437,436,1,0,0,0,438,441,1,0,0,0,439,437, + 1,0,0,0,439,440,1,0,0,0,440,442,1,0,0,0,441,439,1,0,0,0,442,443, + 5,91,0,0,443,55,1,0,0,0,444,445,5,22,0,0,445,446,3,112,56,0,446, + 447,5,38,0,0,447,448,3,114,57,0,448,449,5,86,0,0,449,450,3,98,49, + 0,450,451,3,58,29,0,451,452,5,87,0,0,452,484,1,0,0,0,453,454,5,23, + 0,0,454,455,3,112,56,0,455,456,5,38,0,0,456,457,3,114,57,0,457,458, + 5,86,0,0,458,459,3,102,51,0,459,460,3,34,17,0,460,461,3,58,29,0, + 461,462,5,87,0,0,462,484,1,0,0,0,463,464,5,6,0,0,464,465,3,112,56, + 0,465,466,5,38,0,0,466,467,3,114,57,0,467,468,5,86,0,0,468,469,3, + 112,56,0,469,470,5,87,0,0,470,484,1,0,0,0,471,472,5,13,0,0,472,473, + 3,112,56,0,473,474,5,38,0,0,474,475,3,114,57,0,475,476,5,86,0,0, + 476,479,3,112,56,0,477,478,5,15,0,0,478,480,3,98,49,0,479,477,1, + 0,0,0,479,480,1,0,0,0,480,481,1,0,0,0,481,482,5,87,0,0,482,484,1, + 0,0,0,483,444,1,0,0,0,483,453,1,0,0,0,483,463,1,0,0,0,483,471,1, + 0,0,0,484,57,1,0,0,0,485,486,5,92,0,0,486,491,3,60,30,0,487,488, + 5,88,0,0,488,490,3,60,30,0,489,487,1,0,0,0,490,493,1,0,0,0,491,489, + 1,0,0,0,491,492,1,0,0,0,492,494,1,0,0,0,493,491,1,0,0,0,494,495, + 5,93,0,0,495,59,1,0,0,0,496,497,7,1,0,0,497,61,1,0,0,0,498,499,5, + 21,0,0,499,500,3,64,32,0,500,63,1,0,0,0,501,504,3,66,33,0,502,504, + 3,70,35,0,503,501,1,0,0,0,503,502,1,0,0,0,504,65,1,0,0,0,505,506, + 5,22,0,0,506,507,3,112,56,0,507,508,5,38,0,0,508,509,3,114,57,0, + 509,510,5,31,0,0,510,511,3,112,56,0,511,512,5,86,0,0,512,513,3,98, + 49,0,513,514,5,32,0,0,514,517,3,68,34,0,515,516,5,33,0,0,516,518, + 3,104,52,0,517,515,1,0,0,0,517,518,1,0,0,0,518,519,1,0,0,0,519,520, + 5,87,0,0,520,67,1,0,0,0,521,528,5,60,0,0,522,523,5,61,0,0,523,524, + 5,94,0,0,524,525,3,98,49,0,525,526,5,95,0,0,526,528,1,0,0,0,527, + 521,1,0,0,0,527,522,1,0,0,0,528,69,1,0,0,0,529,530,5,23,0,0,530, + 531,3,112,56,0,531,532,5,38,0,0,532,533,3,114,57,0,533,534,5,90, + 0,0,534,535,3,72,36,0,535,536,3,72,36,0,536,537,5,91,0,0,537,71, + 1,0,0,0,538,539,3,34,17,0,539,540,5,24,0,0,540,541,3,112,56,0,541, + 542,5,38,0,0,542,543,3,114,57,0,543,545,3,102,51,0,544,546,5,66, + 0,0,545,544,1,0,0,0,545,546,1,0,0,0,546,547,1,0,0,0,547,548,5,87, + 0,0,548,73,1,0,0,0,549,550,5,16,0,0,550,551,3,112,56,0,551,552,5, + 17,0,0,552,553,3,112,56,0,553,557,5,90,0,0,554,556,3,76,38,0,555, + 554,1,0,0,0,556,559,1,0,0,0,557,555,1,0,0,0,557,558,1,0,0,0,558, + 560,1,0,0,0,559,557,1,0,0,0,560,561,5,91,0,0,561,75,1,0,0,0,562, + 563,5,20,0,0,563,567,3,64,32,0,564,567,3,80,40,0,565,567,3,78,39, + 0,566,562,1,0,0,0,566,564,1,0,0,0,566,565,1,0,0,0,567,77,1,0,0,0, + 568,569,5,28,0,0,569,570,3,112,56,0,570,571,5,29,0,0,571,572,5,30, + 0,0,572,573,5,26,0,0,573,574,5,13,0,0,574,575,3,112,56,0,575,576, + 5,27,0,0,576,577,5,23,0,0,577,578,3,112,56,0,578,579,5,89,0,0,579, + 580,3,112,56,0,580,581,5,87,0,0,581,79,1,0,0,0,582,583,5,18,0,0, + 583,584,3,82,41,0,584,585,5,19,0,0,585,586,3,86,43,0,586,587,5,87, + 0,0,587,81,1,0,0,0,588,589,3,112,56,0,589,590,5,89,0,0,590,591,3, + 84,42,0,591,83,1,0,0,0,592,604,3,112,56,0,593,604,5,55,0,0,594,604, + 5,45,0,0,595,604,5,46,0,0,596,604,5,52,0,0,597,604,5,53,0,0,598, + 604,5,54,0,0,599,604,5,56,0,0,600,604,5,57,0,0,601,604,5,58,0,0, + 602,604,5,59,0,0,603,592,1,0,0,0,603,593,1,0,0,0,603,594,1,0,0,0, + 603,595,1,0,0,0,603,596,1,0,0,0,603,597,1,0,0,0,603,598,1,0,0,0, + 603,599,1,0,0,0,603,600,1,0,0,0,603,601,1,0,0,0,603,602,1,0,0,0, + 604,85,1,0,0,0,605,606,5,22,0,0,606,607,3,112,56,0,607,608,5,89, + 0,0,608,609,3,88,44,0,609,625,1,0,0,0,610,611,5,23,0,0,611,612,3, + 112,56,0,612,613,5,89,0,0,613,614,3,112,56,0,614,615,5,89,0,0,615, + 616,3,90,45,0,616,625,1,0,0,0,617,618,5,8,0,0,618,619,3,112,56,0, + 619,620,5,89,0,0,620,622,3,112,56,0,621,623,3,92,46,0,622,621,1, + 0,0,0,622,623,1,0,0,0,623,625,1,0,0,0,624,605,1,0,0,0,624,610,1, + 0,0,0,624,617,1,0,0,0,625,87,1,0,0,0,626,627,7,2,0,0,627,89,1,0, + 0,0,628,629,7,3,0,0,629,91,1,0,0,0,630,631,5,25,0,0,631,635,5,90, + 0,0,632,634,3,94,47,0,633,632,1,0,0,0,634,637,1,0,0,0,635,633,1, + 0,0,0,635,636,1,0,0,0,636,638,1,0,0,0,637,635,1,0,0,0,638,639,5, + 91,0,0,639,93,1,0,0,0,640,641,3,112,56,0,641,642,5,19,0,0,642,643, + 5,22,0,0,643,650,3,112,56,0,644,645,5,27,0,0,645,646,5,23,0,0,646, + 647,3,112,56,0,647,648,5,89,0,0,648,649,3,112,56,0,649,651,1,0,0, + 0,650,644,1,0,0,0,650,651,1,0,0,0,651,652,1,0,0,0,652,653,5,87,0, + 0,653,691,1,0,0,0,654,655,3,112,56,0,655,656,5,19,0,0,656,657,5, + 23,0,0,657,658,3,112,56,0,658,659,5,89,0,0,659,666,3,112,56,0,660, + 661,5,27,0,0,661,662,5,23,0,0,662,663,3,112,56,0,663,664,5,89,0, + 0,664,665,3,112,56,0,665,667,1,0,0,0,666,660,1,0,0,0,666,667,1,0, + 0,0,667,668,1,0,0,0,668,669,5,87,0,0,669,691,1,0,0,0,670,671,3,112, + 56,0,671,672,5,19,0,0,672,673,5,6,0,0,673,680,3,112,56,0,674,675, + 5,27,0,0,675,676,5,23,0,0,676,677,3,112,56,0,677,678,5,89,0,0,678, + 679,3,112,56,0,679,681,1,0,0,0,680,674,1,0,0,0,680,681,1,0,0,0,681, + 682,1,0,0,0,682,683,5,87,0,0,683,691,1,0,0,0,684,685,3,112,56,0, + 685,686,5,19,0,0,686,687,5,13,0,0,687,688,3,112,56,0,688,689,5,87, + 0,0,689,691,1,0,0,0,690,640,1,0,0,0,690,654,1,0,0,0,690,670,1,0, + 0,0,690,684,1,0,0,0,691,95,1,0,0,0,692,693,5,13,0,0,693,694,3,112, + 56,0,694,695,5,19,0,0,695,696,3,112,56,0,696,697,5,89,0,0,697,699, + 3,112,56,0,698,700,3,92,46,0,699,698,1,0,0,0,699,700,1,0,0,0,700, + 701,1,0,0,0,701,702,5,87,0,0,702,97,1,0,0,0,703,729,3,100,50,0,704, + 729,5,67,0,0,705,729,5,68,0,0,706,707,5,69,0,0,707,729,3,114,57, + 0,708,709,5,70,0,0,709,710,5,96,0,0,710,711,3,112,56,0,711,712,5, + 97,0,0,712,729,1,0,0,0,713,714,5,71,0,0,714,715,5,96,0,0,715,716, + 3,112,56,0,716,717,5,97,0,0,717,729,1,0,0,0,718,719,5,72,0,0,719, + 720,5,96,0,0,720,721,3,98,49,0,721,722,5,97,0,0,722,729,1,0,0,0, + 723,724,5,73,0,0,724,725,5,96,0,0,725,726,3,98,49,0,726,727,5,97, + 0,0,727,729,1,0,0,0,728,703,1,0,0,0,728,704,1,0,0,0,728,705,1,0, + 0,0,728,706,1,0,0,0,728,708,1,0,0,0,728,713,1,0,0,0,728,718,1,0, + 0,0,728,723,1,0,0,0,729,99,1,0,0,0,730,731,7,4,0,0,731,101,1,0,0, + 0,732,733,7,5,0,0,733,103,1,0,0,0,734,743,3,114,57,0,735,743,5,98, + 0,0,736,743,5,99,0,0,737,743,5,82,0,0,738,743,5,83,0,0,739,743,5, + 84,0,0,740,743,3,106,53,0,741,743,3,110,55,0,742,734,1,0,0,0,742, + 735,1,0,0,0,742,736,1,0,0,0,742,737,1,0,0,0,742,738,1,0,0,0,742, + 739,1,0,0,0,742,740,1,0,0,0,742,741,1,0,0,0,743,105,1,0,0,0,744, + 753,5,90,0,0,745,750,3,108,54,0,746,747,5,88,0,0,747,749,3,108,54, + 0,748,746,1,0,0,0,749,752,1,0,0,0,750,748,1,0,0,0,750,751,1,0,0, + 0,751,754,1,0,0,0,752,750,1,0,0,0,753,745,1,0,0,0,753,754,1,0,0, + 0,754,755,1,0,0,0,755,756,5,91,0,0,756,107,1,0,0,0,757,758,3,114, + 57,0,758,759,5,86,0,0,759,760,3,104,52,0,760,109,1,0,0,0,761,770, + 5,92,0,0,762,767,3,104,52,0,763,764,5,88,0,0,764,766,3,104,52,0, + 765,763,1,0,0,0,766,769,1,0,0,0,767,765,1,0,0,0,767,768,1,0,0,0, + 768,771,1,0,0,0,769,767,1,0,0,0,770,762,1,0,0,0,770,771,1,0,0,0, + 771,772,1,0,0,0,772,773,5,93,0,0,773,111,1,0,0,0,774,775,7,6,0,0, + 775,113,1,0,0,0,776,777,5,101,0,0,777,115,1,0,0,0,51,128,135,156, + 167,179,198,206,213,226,234,261,285,295,301,330,336,341,354,362, + 375,380,393,406,421,424,431,439,479,483,491,503,517,527,545,557, + 566,603,622,624,635,650,666,680,690,699,728,742,750,753,767,770 ]; private static __ATN: antlr.ATN; @@ -3403,6 +3514,9 @@ export class DocumentContext extends antlr.ParserRuleContext { public packageResourceDecl(): PackageResourceDeclContext | null { return this.getRuleContext(0, PackageResourceDeclContext); } + public fragmentDecl(): FragmentDeclContext | null { + return this.getRuleContext(0, FragmentDeclContext); + } public override get ruleIndex(): number { return QuixosCapabilityParser.RULE_document; } @@ -3416,6 +3530,67 @@ export class DocumentContext extends antlr.ParserRuleContext { } +export class FragmentDeclContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public FRAGMENT(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.FRAGMENT, 0)!; + } + public LBRACE(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.LBRACE, 0)!; + } + public RBRACE(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.RBRACE, 0)!; + } + public workspaceItem(): WorkspaceItemContext[]; + public workspaceItem(i: number): WorkspaceItemContext | null; + public workspaceItem(i?: number): WorkspaceItemContext[] | WorkspaceItemContext | null { + if (i === undefined) { + return this.getRuleContexts(WorkspaceItemContext); + } + + return this.getRuleContext(i, WorkspaceItemContext); + } + public override get ruleIndex(): number { + return QuixosCapabilityParser.RULE_fragmentDecl; + } + public override accept(visitor: QuixosCapabilityVisitor): Result | null { + if (visitor.visitFragmentDecl) { + return visitor.visitFragmentDecl(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class SourceImportDeclContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public IMPORT(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.IMPORT, 0)!; + } + public stringLiteral(): StringLiteralContext { + return this.getRuleContext(0, StringLiteralContext)!; + } + public SEMI(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.SEMI, 0)!; + } + public override get ruleIndex(): number { + return QuixosCapabilityParser.RULE_sourceImportDecl; + } + public override accept(visitor: QuixosCapabilityVisitor): Result | null { + if (visitor.visitSourceImportDecl) { + return visitor.visitSourceImportDecl(this); + } else { + return visitor.visitChildren(this); + } + } +} + + export class WorkspaceDeclContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); @@ -3476,6 +3651,9 @@ export class WorkspaceItemContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); } + public sourceImportDecl(): SourceImportDeclContext | null { + return this.getRuleContext(0, SourceImportDeclContext); + } public atomDecl(): AtomDeclContext | null { return this.getRuleContext(0, AtomDeclContext); } @@ -4535,6 +4713,9 @@ export class DependencyPortContext extends antlr.ParserRuleContext { public CONSTRUCTOR(): antlr.TerminalNode | null { return this.getToken(QuixosCapabilityParser.CONSTRUCTOR, 0); } + public INPUT(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.INPUT, 0); + } public override get ruleIndex(): number { return QuixosCapabilityParser.RULE_dependencyPort; } diff --git a/src/capability-language/generated/QuixosCapabilityVisitor.ts b/src/capability-language/generated/QuixosCapabilityVisitor.ts index d21bfb9..15fa1ec 100644 --- a/src/capability-language/generated/QuixosCapabilityVisitor.ts +++ b/src/capability-language/generated/QuixosCapabilityVisitor.ts @@ -3,6 +3,8 @@ import { AbstractParseTreeVisitor } from "antlr4ng"; import { DocumentContext } from "./QuixosCapabilityParser.js"; +import { FragmentDeclContext } from "./QuixosCapabilityParser.js"; +import { SourceImportDeclContext } from "./QuixosCapabilityParser.js"; import { WorkspaceDeclContext } from "./QuixosCapabilityParser.js"; import { WorkspaceItemContext } from "./QuixosCapabilityParser.js"; import { ResourceImportDeclContext } from "./QuixosCapabilityParser.js"; @@ -74,6 +76,18 @@ export class QuixosCapabilityVisitor extends AbstractParseTreeVisitor Result; + /** + * Visit a parse tree produced by `QuixosCapabilityParser.fragmentDecl`. + * @param ctx the parse tree + * @return the visitor result + */ + visitFragmentDecl?: (ctx: FragmentDeclContext) => Result; + /** + * Visit a parse tree produced by `QuixosCapabilityParser.sourceImportDecl`. + * @param ctx the parse tree + * @return the visitor result + */ + visitSourceImportDecl?: (ctx: SourceImportDeclContext) => Result; /** * Visit a parse tree produced by `QuixosCapabilityParser.workspaceDecl`. * @param ctx the parse tree diff --git a/src/capability-language/git-resolver.ts b/src/capability-language/git-resolver.ts index 2902b57..b324d74 100644 --- a/src/capability-language/git-resolver.ts +++ b/src/capability-language/git-resolver.ts @@ -22,6 +22,7 @@ const checkoutName = (kind: string, repository: string, commit: string) => { export const createGitCapabilityResolver = async (options: { checkoutRoot: string; snapshotMap?: string; + snapshotOnly?: boolean; }): Promise => { await mkdir(options.checkoutRoot, { recursive: true }); const checkoutRoot = await realpath(options.checkoutRoot); @@ -52,6 +53,7 @@ export const createGitCapabilityResolver = async (options: { const key = sourceKey(kind, source.repository, source.commit); const snapshot = snapshots.get(key); if (snapshot) return { directory: snapshot }; + if (options.snapshotOnly) throw new Error(`No offline snapshot for ${kind} ${source.repository}@${source.commit}`); const existing = checkouts.get(key); if (existing) return await existing; const pending = (async () => { diff --git a/src/capability-language/index.ts b/src/capability-language/index.ts index 472be63..e2992ed 100644 --- a/src/capability-language/index.ts +++ b/src/capability-language/index.ts @@ -1,2 +1,5 @@ export * from "./parser.js"; export * from "./assembly.js"; +export * from "./source.js"; +export * from "./source-loader.js"; +export * from "./scaffold.js"; diff --git a/src/capability-language/parser.ts b/src/capability-language/parser.ts index d47110c..08e7b2a 100644 --- a/src/capability-language/parser.ts +++ b/src/capability-language/parser.ts @@ -724,7 +724,8 @@ const lowerDependencyPort = ( ? { id, displayName: name, - requirement: { kind: "constructor", atomId }, + requirement: { kind: "constructor", atomId, + ...(context.valueType() ? { inputType: lowerValueType(state, context.valueType()) } : {}) }, } : undefined; }; @@ -1678,22 +1679,22 @@ const lowerWorkspace = ( }; }; -const parseDocument = ( +export const parseDocument = ( source: string, fileName: string, -): { tree: DocumentContext; diagnostics: CapabilitySourceDiagnostic[] } => { +): { tree: DocumentContext; tokens: CommonTokenStream; diagnostics: CapabilitySourceDiagnostic[] } => { const diagnostics: CapabilitySourceDiagnostic[] = []; const listener = new SyntaxErrorListener(fileName, diagnostics); const lexer = new QuixosCapabilityLexer(CharStream.fromString(source)); lexer.removeErrorListeners(); lexer.addErrorListener(listener); - const parser = new QuixosCapabilityParser( - new CommonTokenStream(lexer), - ); + const tokens = new CommonTokenStream(lexer); + const parser = new QuixosCapabilityParser(tokens); parser.removeErrorListeners(); parser.addErrorListener(listener); const tree = parser.document(); - return { tree, diagnostics }; + tokens.fill(); + return { tree, tokens, diagnostics }; }; const newLoweringState = ( @@ -1945,6 +1946,11 @@ export const compileCapabilitySource = ( } const state = newLoweringState(fileName, diagnostics); + for (const item of workspaceContext.workspaceItem()) { + if (item.sourceImportDecl()) loweringIssue(state, item, "unresolved-source-import", + "Local imports require the workspace repository compiler"); + } + if (diagnostics.length) return { ok: false, diagnostics }; const lowered = lowerWorkspace(state, workspaceContext, environment); if (diagnostics.length > 0) { return { ok: false, diagnostics }; diff --git a/src/capability-language/resource-cli.ts b/src/capability-language/resource-cli.ts index 55ec4e4..7ae8179 100644 --- a/src/capability-language/resource-cli.ts +++ b/src/capability-language/resource-cli.ts @@ -2,6 +2,7 @@ import { writeFile } from "node:fs/promises"; import process from "node:process"; +import { bindingSchema } from "../bindings/index.js"; import { compileCapabilityResourceRepository, type ResolvedCapabilityResource, @@ -10,7 +11,7 @@ import { createGitCapabilityResolver } from "./git-resolver.js"; const usage = `usage: quixos-resource-compile --root DIRECTORY --kind interface|package --repository URL --commit GIT_REV --checkout-root DIRECTORY - [--snapshot-map PATH] [--graph-out PATH] + [--snapshot-map PATH] [--snapshot-only true] [--graph-out PATH] [--schema-out PATH] Resolves a standalone resource's recursive dependency-lock graph, validates its interface.qx or package.qx manifest, and emits the checked resource as JSON.`; @@ -21,6 +22,7 @@ const parseArgs = (args: string[]) => { const key = args[index]; const value = args[index + 1]; if (!key?.startsWith("--") || !value) throw new Error(usage); + if (!["--root", "--kind", "--repository", "--commit", "--checkout-root", "--snapshot-map", "--snapshot-only", "--graph-out", "--schema-out"].includes(key) || values.has(key)) throw new Error(usage); values.set(key, value); } const rootDirectory = values.get("--root"); @@ -35,6 +37,7 @@ const parseArgs = (args: string[]) => { if (!/^([0-9a-f]{40}|[0-9a-f]{64})$/.test(commit)) { throw new Error("--commit must be a full Git object ID"); } + if (values.has("--snapshot-only") && values.get("--snapshot-only") !== "true") throw new Error("--snapshot-only accepts true"); return { rootDirectory, kind, @@ -42,7 +45,9 @@ const parseArgs = (args: string[]) => { commit, checkoutRoot, snapshotMap: values.get("--snapshot-map"), + snapshotOnly: values.get("--snapshot-only") === "true", graphOut: values.get("--graph-out"), + schemaOut: values.get("--schema-out"), } as const; }; @@ -70,6 +75,7 @@ const main = async () => { const resolveResource = await createGitCapabilityResolver({ checkoutRoot: options.checkoutRoot, snapshotMap: options.snapshotMap, + snapshotOnly: options.snapshotOnly, }); const compiled = await compileCapabilityResourceRepository({ rootDirectory: options.rootDirectory, @@ -92,6 +98,7 @@ const main = async () => { resources: compiled.resources.map(graphEntry), }, null, 2)}\n`); } + if (options.schemaOut) await writeFile(options.schemaOut, `${JSON.stringify(bindingSchema(compiled), null, 2)}\n`); process.stdout.write(`${JSON.stringify(compiled.resource, null, 2)}\n`); }; diff --git a/src/capability-language/scaffold.ts b/src/capability-language/scaffold.ts new file mode 100644 index 0000000..c9b4563 --- /dev/null +++ b/src/capability-language/scaffold.ts @@ -0,0 +1,66 @@ +import { lstat, open, rename, unlink } from "node:fs/promises"; +import path from "node:path"; +import { randomUUID } from "node:crypto"; +import { addWorkspaceImport } from "./source.js"; +import { readQxSource } from "./source-loader.js"; +import { compileWorkspaceRepository, type CapabilityRepositoryResolver } from "./assembly.js"; + +export const planAtomScaffold = (workspace: string, name: string, id: string) => { + if (!/^[A-Z][A-Za-z0-9]*$/.test(name)) throw new Error("Atom name must be PascalCase"); + if (!id.trim()) throw new Error("Atom ID must not be empty"); + const fileName = `${name}.qx`; + return { + before: workspace, + workspace: addWorkspaceImport(workspace, fileName), + fileName, + fragment: `fragment {\n atom ${name} id ${JSON.stringify(id)};\n}\n`, + }; +}; + +/** Validate an in-memory proposal before creating files. Never replace a fragment. */ +export const scaffoldAtom = async (options: { + root: string; name: string; id: string; write: boolean; resolveResource: CapabilityRepositoryResolver; +}) => { + const before = await readQxSource(options.root, "workspace.qx"); + const plan = planAtomScaffold(before, options.name, options.id); + const fragmentPath = path.join(options.root, plan.fileName); + try { + await lstat(fragmentPath); + throw new Error(`Scaffold target already exists: ${plan.fileName}`); + } catch (error) { + if ((error as NodeJS.ErrnoException).code !== "ENOENT") throw error; + } + const observed = new Map(); + await compileWorkspaceRepository({ rootDirectory: options.root, resolveResource: options.resolveResource, + readSource: async (name) => { + if (name === "workspace.qx") return plan.workspace; + if (name === plan.fileName) return plan.fragment; + const text = await readQxSource(options.root, name); + observed.set(name, text); + return text; + } }); + if (!options.write) return plan; + const workspacePath = path.join(options.root, "workspace.qx"); + const temporary = path.join(options.root, `.qx-scaffold-${randomUUID()}.tmp`); + let createdFragment = false; + let createdTemporary = false; + try { + const fragment = await open(fragmentPath, "wx"); + createdFragment = true; + try { await fragment.writeFile(plan.fragment); } finally { await fragment.close(); } + const file = await open(temporary, "wx", (await lstat(workspacePath)).mode); + createdTemporary = true; + try { await file.writeFile(plan.workspace); } finally { await file.close(); } + observed.set("workspace.qx", before); + for (const [name, text] of observed) { + if (await readQxSource(options.root, name) !== text) throw new Error(`QX source changed during scaffolding: ${name}`); + } + await rename(temporary, workspacePath); + createdTemporary = false; + createdFragment = false; + } finally { + if (createdTemporary) await unlink(temporary); + if (createdFragment) await unlink(fragmentPath); + } + return plan; +}; diff --git a/src/capability-language/source-loader.ts b/src/capability-language/source-loader.ts new file mode 100644 index 0000000..f8e981c --- /dev/null +++ b/src/capability-language/source-loader.ts @@ -0,0 +1,77 @@ +import { lstat, readFile } from "node:fs/promises"; +import path from "node:path"; +import { parseQx, validateQxImportPath, walkSyntax } from "./source.js"; + +export const readQxSource = async (root: string, name: string) => { + validateQxImportPath(name); + let current = path.resolve(root); + const segments = name.split("/"); + for (const [index, segment] of segments.entries()) { + current = path.join(current, segment); + const stat = await lstat(current); + if (stat.isSymbolicLink() || (index === segments.length - 1 ? !stat.isFile() : !stat.isDirectory())) + throw new Error(`QX imports must be ordinary files beneath ordinary directories: ${name}`); + } + return readFile(current, "utf8"); +}; + +/** Local imports share one workspace scope; paths are always repository-relative. */ +export const resolveQxSources = async ( + read: (name: string) => Promise, entry = "workspace.qx", +) => { + const files = new Map(); + const active: string[] = []; + const visited = new Set(); + const segments: { start: number; end: number; fileName: string; sourceStart: number }[] = []; + let source = ""; + const append = (fileName: string, text: string, sourceStart: number) => { + segments.push({ start: source.length, end: source.length + text.length, fileName, sourceStart }); + source += text; + }; + const visit = async (name: string, root: boolean) => { + validateQxImportPath(name); + if (active.includes(name)) throw new Error(`QX import cycle: ${[...active, name].join(" -> ")}`); + if (visited.has(name)) return; + const text = await read(name); + const syntax = parseQx(text, name); + if (syntax.diagnostics.length) throw new Error(syntax.diagnostics.map((d) => + `${name}:${d.line}:${d.column + 1}: ${d.message}`).join("\n")); + const declaration = syntax.root.children[0]!; + if (declaration.kind !== (root ? "workspaceDecl" : "fragmentDecl")) + throw new Error(`${name}: expected ${root ? "workspace" : "fragment"} document`); + files.set(name, text); + active.push(name); + visited.add(name); + const braces = syntax.tokens.filter((token) => !token.trivia); + let cursor = root ? 0 : braces.find((token) => token.kind === "LBRACE")!.end; + const end = root ? text.length : braces.filter((token) => token.kind === "RBRACE").at(-1)!.start; + for (const node of walkSyntax(declaration)) { + if (node.kind !== "sourceImportDecl") continue; + append(name, text.slice(cursor, node.start), cursor); + const literal = node.children.find((child) => child.kind === "stringLiteral")!; + // Separators prevent adjacent tokens/comments joining across files. + append(name, "\n", node.start); + await visit(JSON.parse(text.slice(literal.start, literal.end)), false); + append(name, "\n", node.end); + cursor = node.end; + } + append(name, text.slice(cursor, end), cursor); + active.pop(); + }; + await visit(entry, true); + return { + source, sourceFiles: [...files.keys()], files, + originalPosition(line: number, column: number) { + const lines = source.split("\n"); + const offset = lines.slice(0, line - 1).reduce((sum, value) => sum + value.length + 1, 0) + + [...(lines[line - 1] ?? "")].slice(0, column).join("").length; + const segment = segments.find((entry) => entry.start <= offset && entry.end > offset); + if (!segment) return { fileName: entry, line, column }; + const prefix = files.get(segment.fileName)!.slice(0, segment.sourceStart + offset - segment.start); + return { fileName: segment.fileName, line: prefix.split("\n").length, + column: prefix.length - prefix.lastIndexOf("\n") - 1 }; + }, + }; +}; + +export const loadQxSources = (root: string) => resolveQxSources((name) => readQxSource(root, name)); diff --git a/src/capability-language/source.ts b/src/capability-language/source.ts new file mode 100644 index 0000000..3f6a2a7 --- /dev/null +++ b/src/capability-language/source.ts @@ -0,0 +1,128 @@ +import { ParserRuleContext } from "antlr4ng"; +import { parseDocument } from "./parser.js"; +import { QuixosCapabilityParser } from "./generated/QuixosCapabilityParser.js"; + +/** Offsets and columns use UTF-16, as do JavaScript and LSP. End is exclusive. */ +export type SourceRange = { start: number; end: number }; +export type SourceEdit = SourceRange & { text: string }; +export type SyntaxNode = SourceRange & { kind: string; children: SyntaxNode[] }; + +export const parseQx = (source: string, fileName = "") => { + const parsed = parseDocument(source, fileName); + // ANTLR indexes Unicode code points; editors index UTF-16 code units. + const offsets = [0]; + for (const character of source) offsets.push(offsets[offsets.length - 1]! + character.length); + const offset = (index: number) => offsets[Math.max(0, index)] ?? source.length; + const node = (context: ParserRuleContext): SyntaxNode => ({ + kind: QuixosCapabilityParser.ruleNames[context.ruleIndex]!, + start: offset(context.start?.start ?? 0), + end: offset((context.stop?.stop ?? -1) + 1), + children: context.children.flatMap((child) => child instanceof ParserRuleContext ? [node(child)] : []), + }); + return { + source, fileName, + root: node(parsed.tree), + diagnostics: parsed.diagnostics.map((diagnostic) => { + const line = source.split("\n")[diagnostic.line - 1] ?? ""; + return { ...diagnostic, column: [...line].slice(0, diagnostic.column).join("").length }; + }), + tokens: parsed.tokens.getTokens().filter((token) => token.type !== -1).map((token) => ({ + kind: QuixosCapabilityParser.symbolicNames[token.type] ?? "token", + start: offset(token.start), end: offset(token.stop + 1), + text: token.text ?? "", trivia: token.channel !== 0, + })), + }; +}; + +/** Edits refer to one immutable source snapshot; overlapping edits are errors. */ +export const applySourceEdits = (source: string, edits: readonly SourceEdit[]) => { + const sorted = [...edits].sort((a, b) => a.start - b.start || a.end - b.end); + let end = 0; + let previousStart = -1; + let result = ""; + for (const edit of sorted) { + if (!Number.isInteger(edit.start) || !Number.isInteger(edit.end) || + edit.start < end || edit.start === previousStart || edit.end < edit.start || edit.end > source.length) { + throw new Error("Invalid or overlapping source edits"); + } + result += source.slice(end, edit.start) + edit.text; + end = edit.end; + previousStart = edit.start; + } + return result + source.slice(end); +}; + +export const walkSyntax = function* (node: SyntaxNode): Generator { + yield node; + for (const child of node.children) yield* walkSyntax(child); +}; + +export const lintQx = (source: string, fileName = "") => { + const syntax = parseQx(source, fileName); + const diagnostics = syntax.diagnostics.map((entry) => ({ ...entry, severity: "error" as "error" | "warning" })); + if (diagnostics.length) return diagnostics; + const seen = new Set(); + for (const node of walkSyntax(syntax.root)) { + if (node.kind !== "sourceImportDecl") continue; + const literal = node.children.find((child) => child.kind === "stringLiteral")!; + const importPath: string = JSON.parse(source.slice(literal.start, literal.end)); + let message: string | undefined; + let code = "invalid-source-import"; + try { validateQxImportPath(importPath); } catch (error) { message = (error as Error).message; } + if (!message && seen.has(importPath)) { code = "duplicate-source-import"; message = `Repeated local import ${importPath}`; } + seen.add(importPath); + if (message) { + const prefix = source.slice(0, node.start); + diagnostics.push({ phase: "syntax", code, message, fileName, + line: prefix.split("\n").length, column: prefix.length - prefix.lastIndexOf("\n") - 1, + severity: code === "duplicate-source-import" ? "warning" : "error" }); + } + } + return diagnostics; +}; + +/** Conservative formatter: indentation only, preserving strings and comments verbatim. */ +export const formatQx = (source: string) => { + const syntax = parseQx(source); + if (syntax.diagnostics.length) throw new Error("Cannot format QX with syntax errors"); + const edits: SourceEdit[] = []; + let depth = 0; + let lineStart = 0; + for (const token of syntax.tokens) { + if (token.kind === "WS") continue; + lineStart = source.lastIndexOf("\n", token.start - 1) + 1; + if (/^[ \t]*$/.test(source.slice(lineStart, token.start))) { + const indentation = " ".repeat(Math.max(0, depth - (token.kind === "RBRACE" ? 1 : 0))); + if (source.slice(lineStart, token.start) !== indentation) + edits.push({ start: lineStart, end: token.start, text: indentation }); + } + if (!token.trivia) { + if (token.kind === "LBRACE") depth++; + if (token.kind === "RBRACE") depth--; + } + } + return applySourceEdits(source, edits); +}; + +export const addWorkspaceImport = (source: string, importPath: string) => { + validateQxImportPath(importPath); + const syntax = parseQx(source); + if (syntax.diagnostics.length || syntax.root.children[0]?.kind !== "workspaceDecl") + throw new Error("Expected a syntactically valid workspace"); + for (const node of walkSyntax(syntax.root)) { + if (node.kind === "sourceImportDecl") { + const literal = node.children.find((child) => child.kind === "stringLiteral")!; + if (JSON.parse(source.slice(literal.start, literal.end)) === importPath) return source; + } + } + const brace = syntax.tokens.find((token) => token.kind === "LBRACE")!; + const newline = source.includes("\r\n") ? "\r\n" : "\n"; + return applySourceEdits(source, [{ start: brace.end, end: brace.end, + text: `${newline} import ${JSON.stringify(importPath)};` }]); +}; + +export const validateQxImportPath = (value: string) => { + if (!/^(?:[A-Za-z0-9_-][A-Za-z0-9_.-]*\/)*[A-Za-z0-9_-][A-Za-z0-9_.-]*\.qx$/.test(value) || + value.split("/").some((part) => part === "." || part === "..")) + throw new Error(`Invalid repository-relative QX import path: ${value}`); +}; diff --git a/src/capability-language/tool-cli.ts b/src/capability-language/tool-cli.ts new file mode 100644 index 0000000..45c64a4 --- /dev/null +++ b/src/capability-language/tool-cli.ts @@ -0,0 +1,30 @@ +#!/usr/bin/env node +import { readFile, writeFile } from "node:fs/promises"; +import { parseQx, formatQx, lintQx } from "./source.js"; +import { scaffoldAtom } from "./scaffold.js"; +import { createGitCapabilityResolver } from "./git-resolver.js"; + +const main = async () => { + const [command, ...args] = process.argv.slice(2); + if (command === "scaffold-atom") { + const [root, name, id, ...flags] = args; + if (!root || !name || !id || flags.some((flag) => flag !== "--write")) throw new Error("usage: quixos-qx scaffold-atom ROOT NAME ID [--write]"); + const resolveResource = await createGitCapabilityResolver({ checkoutRoot: `${root}/.quixos/resource-checkouts` }); + const plan = await scaffoldAtom({ root, name, id, write: flags.includes("--write"), resolveResource }); + process.stdout.write(`${JSON.stringify(plan, null, 2)}\n`); + return; + } + const [file, flag, ...rest] = args; + if (!file || rest.length || (flag && flag !== "--write") || !["parse", "lint", "format"].includes(command ?? "") || + (flag && command !== "format")) throw new Error("usage: quixos-qx parse|lint|format FILE [--write (format only)]"); + const source = await readFile(file, "utf8"); + if (command === "format") { + const formatted = formatQx(source); + if (flag) await writeFile(file, formatted); else process.stdout.write(formatted); + } else { + const result = command === "parse" ? parseQx(source, file) : lintQx(source, file); + process.stdout.write(`${JSON.stringify(result, null, 2)}\n`); + if (Array.isArray(result) ? result.some((entry) => entry.severity === "error") : result.diagnostics.length) process.exitCode = 1; + } +}; +main().catch((error: unknown) => { console.error(error instanceof Error ? error.message : error); process.exitCode = 1; }); diff --git a/src/capability-model/types.ts b/src/capability-model/types.ts index 2cc0918..203b4c5 100644 --- a/src/capability-model/types.ts +++ b/src/capability-model/types.ts @@ -245,7 +245,7 @@ export type DependencyPortRequirement = kind: "interface"; interfaceRevisionId: InterfaceRevisionId; } - | { kind: "constructor"; atomId: AtomId }; + | { kind: "constructor"; atomId: AtomId; inputType?: ValueType }; export interface DependencyPort { id: DependencyPortId; diff --git a/src/capability-model/validation.ts b/src/capability-model/validation.ts index 0d87978..4d88f21 100644 --- a/src/capability-model/validation.ts +++ b/src/capability-model/validation.ts @@ -928,6 +928,7 @@ const validatePackages = ( } break; case "constructor": + if (port.requirement.inputType) validateValueType(issues, port.requirement.inputType, `${portPath}.requirement.inputType`, indexes); if (!indexes.atoms.has(port.requirement.atomId)) { issue( issues, @@ -1260,6 +1261,14 @@ const validateBoundDependencies = ( `Atom ${requirement.atomId} has no constructor binding`, ); } + if (requirement.inputType) { + const selected = params.indexes.constructors.get(requirement.atomId); + const implementation = selected ? params.indexes.packages.get(selected.packageRevisionId)?.exports.get(selected.exportId) : undefined; + if (implementation && !valueTypesEqual(requirement.inputType, implementation.inputType)) { + issue(issues, "invalid-dependency-binding", `${path}.binding.atomId`, + `Constructor port requires input ${typeLabel(requirement.inputType)}, but selected constructor accepts ${typeLabel(implementation.inputType)}`); + } + } break; } } diff --git a/test/bindings.test.ts b/test/bindings.test.ts new file mode 100644 index 0000000..60b7339 --- /dev/null +++ b/test/bindings.test.ts @@ -0,0 +1,30 @@ +import assert from "node:assert/strict"; +import test from "node:test"; +import { compileCapabilityResourceSource } from "../src/capability-language/parser.js"; +import { generateTypeScriptBindings, type BindingSchema } from "../src/bindings/index.js"; +const source = { repository: "https://example.test/p.git", commit: "1".repeat(40) }; +const schemaFor = (body: string): BindingSchema => { + const compiled = compileCapabilityResourceSource(`external atom Thing id "thing"; package Demo id "demo" revision "demo@1" { ${body} }`, { source }); + assert.equal(compiled.ok, true, JSON.stringify(compiled.diagnostics)); + if (!compiled.ok || compiled.resource.kind !== "package") throw new Error("expected package"); + return { format: "quixos-bindings", version: 1, interfaces: [], packages: [compiled.resource.revision] }; +}; +test("generator uses exact IDs, restricted ports, nominal references, and lossless scalar types", () => { + const schema = schemaFor('operation run id "run-id" : list -> optional> mode call receiver atom Thing requires { state payload id "payload-id" : bytes [read]; };'); + const generated = generateTypeScriptBindings(schema, "demo@1"); + assert.match(generated, /Array/); + assert.match(generated, /Promise/); + assert.match(generated, /QxObjectRef<"atom:thing">/); + assert.doesNotMatch(generated, /"set":/); + assert.match(generated, /"run-id": bindQxHandler/); + assert.equal(generateTypeScriptBindings(schema, "demo@1"), generated); +}); +test("missing external types and constructor signatures fail generation", () => { + const schema = schemaFor('function run id "run" : unit -> message "example.Payload";'); + assert.throws(() => generateTypeScriptBindings(schema, "demo@1"), /Missing TypeScript message binding/); + assert.match(generateTypeScriptBindings(schema, "demo@1", { messages: { "example.Payload": { module: "./payload.js", export: "payload" } } }), /BindingValue/); + const constructor = schemaFor('function run id "run" : unit -> unit requires { constructor thing id "ctor" : Thing; };'); + assert.throws(() => generateTypeScriptBindings(constructor, "demo@1"), /explicit input contract/); + const typed = schemaFor('function run id "run" : unit -> unit requires { constructor thing id "ctor" : Thing input string; };'); + assert.match(generateTypeScriptBindings(typed, "demo@1"), /construct.*input: string/); +}); diff --git a/test/capability-model.test.ts b/test/capability-model.test.ts index cf6d17e..52e58eb 100644 --- a/test/capability-model.test.ts +++ b/test/capability-model.test.ts @@ -28,6 +28,18 @@ const expectIssue = ( assert.equal(compileWorkspaceRevision(workspace).ok, false); }; +test("constructor dependency input contracts match the selected constructor", () => { + const workspace = makeValidCapabilityWorkspace(); + const port = workspace.packageImports.flatMap((pkg) => pkg.exports).flatMap((entry) => entry.dependencyPorts) + .find((port) => port.requirement.kind === "constructor")!; + assert.equal(port.requirement.kind, "constructor"); + if (port.requirement.kind !== "constructor") return; + port.requirement.inputType = valueType.unit; + assert.deepEqual(validateWorkspaceRevision(workspace), []); + port.requirement.inputType = valueType.string; + expectIssue(workspace, "invalid-dependency-binding"); +}); + const conformance = ( workspace: WorkspaceRevision, identity: Pick<(typeof workspace.conformances)[number], "atomId" | "interfaceRevisionId">, diff --git a/test/fixtures/typed-package/package.qx b/test/fixtures/typed-package/package.qx new file mode 100644 index 0000000..810f2ec --- /dev/null +++ b/test/fixtures/typed-package/package.qx @@ -0,0 +1,8 @@ +external atom Thing id "atom:example:thing"; + +package TypedExample id "package:typed-example" revision "package:typed-example@1" { + constructor createThing id "export:typed-example:create" constructs Thing : unit; + operation payloadGet id "export:typed-example:payload" : unit -> bytes mode call receiver atom Thing requires { + state payload id "port:typed-example:payload" : bytes [read]; + }; +} diff --git a/test/fixtures/typed-package/quixos.lock b/test/fixtures/typed-package/quixos.lock new file mode 100644 index 0000000..1e71956 --- /dev/null +++ b/test/fixtures/typed-package/quixos.lock @@ -0,0 +1,6 @@ +quixos-lock version 1 { + quixos source { + repository "https://example.test/quixos.git"; + commit "1111111111111111111111111111111111111111"; + } +} diff --git a/test/qx-source.test.ts b/test/qx-source.test.ts new file mode 100644 index 0000000..1a974ef --- /dev/null +++ b/test/qx-source.test.ts @@ -0,0 +1,84 @@ +import assert from "node:assert/strict"; +import test from "node:test"; +import { mkdtemp, writeFile, readFile, rm, symlink } from "node:fs/promises"; +import os from "node:os"; +import path from "node:path"; +import { parseQx, formatQx, lintQx, applySourceEdits, addWorkspaceImport, walkSyntax, + resolveQxSources, readQxSource, compileCapabilitySource, scaffoldAtom, compileWorkspaceRepository } from "../src/capability-language/index.js"; + +const workspace = `workspace Test id "w" revision "w@1" commit "${"1".repeat(40)}" {\n// keep 🐈 comment\n}\n`; +test("lint reports invalid and redundant imports without resolving repositories", () => { + const source = workspace.replace("}\n", 'import "a.qx"; import "a.qx"; import "../bad.qx";\n}\n'); + assert.deepEqual(lintQx(source).map((entry) => [entry.code, entry.severity]), [ + ["duplicate-source-import", "warning"], ["invalid-source-import", "error"], + ]); +}); +test("lossless tokens, UTF-16 ranges, and safe source edits", () => { + const text = workspace.replace("}\n", 'atom Cat id "🐈";\n}\n'); + const parsed = parseQx(text); + assert.deepEqual(parsed.diagnostics, []); + assert.equal(parsed.tokens.map((token) => token.text).join(""), text); + const atom = [...walkSyntax(parsed.root)].find((node) => node.kind === "atomDecl")!; + assert.equal(text.slice(atom.start, atom.end), 'atom Cat id "🐈";'); + assert.equal(applySourceEdits(text, [{ ...atom, text: 'atom Dog id "dog";' }]), text.replace('atom Cat id "🐈";', 'atom Dog id "dog";')); + assert.throws(() => applySourceEdits(text, [{ start: 0, end: 4, text: "" }, { start: 3, end: 7, text: "" }]), /overlapping/); + assert.throws(() => applySourceEdits(text, [{ start: -1, end: 0, text: "" }]), /Invalid/); +}); +test("formatting preserves comments and strings, is idempotent, and rejects invalid source", () => { + const text = workspace.replace("}\n", 'atom Cat id "{ cat }"; /* multiline\n unchanged */\n}\n'); + const formatted = formatQx(text); + assert.match(formatted, / atom Cat id "\{ cat \}"; \/\* multiline\n unchanged \*\//); + assert.equal(formatQx(formatted), formatted); + assert.deepEqual(parseQx(formatted).diagnostics, []); + assert.throws(() => formatQx("workspace {"), /syntax errors/); +}); +test("imports preserve root text, deduplicate diamonds, reject cycles, and compile together", async () => { + const root = addWorkspaceImport(addWorkspaceImport(workspace, "a.qx"), "b.qx"); + assert.equal(addWorkspaceImport(root, "a.qx"), root); + assert.match(root, /keep 🐈 comment/); + const files: Record = { "workspace.qx": root, + "a.qx": 'fragment { import "shared.qx"; atom A id "a"; }', + "b.qx": 'fragment { import "shared.qx"; atom B id "b"; }', + "shared.qx": 'fragment { atom Shared id "shared"; }' }; + const result = await resolveQxSources(async (name) => files[name]!); + assert.equal(result.sourceFiles.length, 4); + const compiled = compileCapabilitySource(result.source); + assert.equal(compiled.ok, true, JSON.stringify(compiled.diagnostics)); + if (compiled.ok) assert.equal(compiled.workspace.atoms.length, 3); + const unresolved = compileCapabilitySource(root); + assert.equal(unresolved.ok, false); + assert.match(JSON.stringify(unresolved.diagnostics), /unresolved-source-import/); + files["shared.qx"] = 'fragment { import "a.qx"; }'; + await assert.rejects(resolveQxSources(async (name) => files[name]!), /cycle/); + assert.throws(() => addWorkspaceImport(workspace, "../x.qx"), /Invalid/); +}); +test("repository scaffolding validates before writing and refuses duplicates and symlinks", async (t) => { + const root = await mkdtemp(path.join(os.tmpdir(), "qx-scaffold-")); + t.after(() => rm(root, { recursive: true, force: true })); + await writeFile(path.join(root, "workspace.qx"), workspace); + await writeFile(path.join(root, "quixos.lock"), `quixos-lock version 1 { quixos source { repository "https://example.test/q.git"; commit "${"1".repeat(40)}"; } }`); + const resolveResource = async (): Promise => { throw new Error("unexpected resource"); }; + const options = { root, name: "Cat", id: "cat", write: false, resolveResource }; + await scaffoldAtom(options); + assert.equal(await readFile(path.join(root, "workspace.qx"), "utf8"), workspace); + await assert.rejects(readFile(path.join(root, "Cat.qx")), /ENOENT/); + await scaffoldAtom({ ...options, write: true }); + const compiled = await compileWorkspaceRepository({ rootDirectory: root, resolveResource }); + assert.equal(compiled.workspace.atoms[0]!.id, "cat"); + await assert.rejects(scaffoldAtom({ ...options, write: true }), /already exists/); + await assert.rejects(scaffoldAtom({ ...options, name: "Other", write: true }), /Duplicate|duplicate/); + await assert.rejects(readFile(path.join(root, "Other.qx")), /ENOENT/); + await symlink(path.join(root, "Cat.qx"), path.join(root, "link.qx")); + await assert.rejects(readQxSource(root, "link.qx"), /ordinary files/); +}); +test("lowering diagnostics map to the imported file", async () => { + const files: Record = { "workspace.qx": addWorkspaceImport(workspace, "bad.qx"), + "bad.qx": 'fragment {\n conform Missing as Nope {}\n}' }; + const sources = await resolveQxSources(async (name) => files[name]!); + const compiled = compileCapabilitySource(sources.source); + assert.equal(compiled.ok, false); + const diagnostic = compiled.diagnostics[0]!; + const position = sources.originalPosition(diagnostic.line, diagnostic.column); + assert.equal(position.fileName, "bad.qx"); + assert.equal(position.line, 2); +}); diff --git a/yarn.lock b/yarn.lock index cafe60e..2c3508a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -52,8 +52,10 @@ __metadata: typescript: "npm:^7.0.2" bin: quixos-capability-compile: dist/src/capability-language/cli.js + quixos-codegen-ts: dist/src/bindings/cli.js quixos-descriptor-check: dist/src/descriptor-check.js quixos-lock-check: dist/src/resource-lock/cli.js + quixos-qx: dist/src/capability-language/tool-cli.js quixos-resource-compile: dist/src/capability-language/resource-cli.js quixos-workspace-compile: dist/src/capability-language/workspace-cli.js languageName: unknown