diff --git a/.github/workflows/portable-contracts.yml b/.github/workflows/portable-contracts.yml index caf6e8d..616651d 100644 --- a/.github/workflows/portable-contracts.yml +++ b/.github/workflows/portable-contracts.yml @@ -8,11 +8,6 @@ on: pull_request: workflow_dispatch: -concurrency: - # A newer push or PR update replaces the older run on the same ref; workflow_dispatch runs are never cancelled. - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.event_name != 'workflow_dispatch' }} - jobs: contracts-and-browser: name: ${{ matrix.os }} ${{ matrix.package }} @@ -21,10 +16,7 @@ jobs: strategy: fail-fast: false matrix: - # No Windows runner exists: the windows-latest leg runs on workflow_dispatch only (GitHub or a - # Windows runner), the ubuntu-latest leg gates push and PR. Windows push/PR triggers return in the PR - # that registers a Windows runner. - os: ${{ fromJSON(github.event_name == 'workflow_dispatch' && '["windows-latest", "ubuntu-latest"]' || '["ubuntu-latest"]') }} + os: [windows-latest, ubuntu-latest] package: [eve-contracts, eve-browser-lowering] steps: @@ -38,14 +30,6 @@ jobs: cache: npm cache-dependency-path: packages/${{ matrix.package }}/package-lock.json - # eve-browser-lowering links eve-contracts as file:../eve-contracts; npm installs none of the - # linked package's dependencies, and tsc resolves its declarations from the real path, so - # ajv must be installed in eve-contracts itself. - - name: Install eve-contracts dependencies - if: matrix.package != 'eve-contracts' - working-directory: packages/eve-contracts - run: npm ci - - name: Install package dependencies working-directory: packages/${{ matrix.package }} run: npm ci @@ -54,23 +38,6 @@ jobs: working-directory: packages/${{ matrix.package }} run: npm test - # The forge runner images carry no pwsh; GitHub's Windows and hosted images do. - - name: Install PowerShell - if: runner.os == 'Linux' - shell: bash - run: | - set -euo pipefail - if command -v pwsh >/dev/null; then pwsh -Version; exit 0; fi - SUDO=""; [ "$(id -u)" -eq 0 ] || SUDO="sudo" - PWSH_VERSION=7.4.6 - curl -fsSL "https://github.com/PowerShell/PowerShell/releases/download/v${PWSH_VERSION}/powershell-${PWSH_VERSION}-linux-x64.tar.gz" -o "${RUNNER_TEMP:-/tmp}/powershell.tar.gz" - $SUDO mkdir -p /opt/microsoft/powershell/7 - $SUDO tar -xzf "${RUNNER_TEMP:-/tmp}/powershell.tar.gz" -C /opt/microsoft/powershell/7 - $SUDO chmod +x /opt/microsoft/powershell/7/pwsh - $SUDO ln -sf /opt/microsoft/powershell/7/pwsh /usr/local/bin/pwsh - echo "DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1" >> "$GITHUB_ENV" - DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 pwsh -Version - - name: Reject stale generated output shell: pwsh run: | diff --git a/.gitignore b/.gitignore index 37111ad..7a4e50c 100644 --- a/.gitignore +++ b/.gitignore @@ -8,19 +8,12 @@ packages/eve-browser-lowering/node_modules/ !packages/eve-contracts/** packages/eve-contracts/node_modules/ packages/eve-contracts/*.tgz -!packages/thing-contract/ -!packages/thing-contract/** -packages/thing-contract/node_modules/ -packages/thing-contract/dist/ -packages/thing-contract/dist-test/ !packages/org.gamecult.eve.surface/ !packages/org.gamecult.eve.surface/** packages/org.gamecult.eve.surface/bin~/ packages/org.gamecult.eve.surface/obj~/ !packages/org.gamecult.eve.unity-uitoolkit/ !packages/org.gamecult.eve.unity-uitoolkit/** -!packages/GameCult.Thing.Contract/ -!packages/GameCult.Thing.Contract/** obj/ artifacts/ tools/deps/ @@ -32,4 +25,6 @@ flutter/eve_parity/assets/repixelizer/ *.deb *.ipa *.dSYM/ -/target +.voidbot/birth/ +.voidbot/logs/ +.voidbot/state/*.msgpack diff --git a/.voidbot/state/README.md b/.voidbot/state/README.md new file mode 100644 index 0000000..1ffe1c3 --- /dev/null +++ b/.voidbot/state/README.md @@ -0,0 +1,8 @@ +# Repo Persona State + +This folder stores birth and continuity state for `Eve`. +Do not treat these files as arbitrary editable projections. Persistent memory should cross typed operation boundaries. + +`docs/eve-face.md` is the human-readable mission/memory surface for Eve's repo +Persona. Keep `.voidbot/state/eve.cc` as the typed authority, and keep the docs +surface aligned when Eve's durable mission changes. diff --git a/.voidbot/state/eve.cc b/.voidbot/state/eve.cc new file mode 100644 index 0000000..a2b0380 Binary files /dev/null and b/.voidbot/state/eve.cc differ diff --git a/.voidbot/status/void-memory-maintenance.json b/.voidbot/status/void-memory-maintenance.json new file mode 100644 index 0000000..424b747 --- /dev/null +++ b/.voidbot/status/void-memory-maintenance.json @@ -0,0 +1,7 @@ +{ + "status": "starting", + "startedAt": "2026-07-08T06:38:39.965Z", + "stateFile": "E:\\Projects\\Eve\\.voidbot\\state\\eve.cc", + "launcher": "repo_face_heartbeat", + "reason": "repo_face_napping_with_short_term_memory" +} diff --git a/.voidbot/voice/README.md b/.voidbot/voice/README.md new file mode 100644 index 0000000..2fd8a71 --- /dev/null +++ b/.voidbot/voice/README.md @@ -0,0 +1,4 @@ +# Repo Persona Voice + +This folder belongs to the Discord-facing Persona for `Eve`. +Discord roles address the Persona; VoidBot's webhook persona pipe is the mouth. diff --git a/.voidbot/voice/eve.png b/.voidbot/voice/eve.png new file mode 100644 index 0000000..11de889 Binary files /dev/null and b/.voidbot/voice/eve.png differ diff --git a/.voidbot/voice/identity.json b/.voidbot/voice/identity.json new file mode 100644 index 0000000..cc4130b --- /dev/null +++ b/.voidbot/voice/identity.json @@ -0,0 +1,10 @@ +{ + "schemaVersion": "voidbot.repo_face_identity.v0", + "identityId": "eve", + "repoName": "Eve", + "displayName": "Eve", + "roleId": "1510848465243082874", + "avatarUrl": "https://raw.githubusercontent.com/GameCult/VoidBot/codex/voidbot-cultcache-replace-retry/assets/repo-faces/eve.png", + "repoPath": "E:\\Projects\\Eve", + "createdOrRefreshedAt": "2026-07-08T03:32:39.737Z" +} diff --git a/Cargo.lock b/Cargo.lock deleted file mode 100644 index c94a05f..0000000 --- a/Cargo.lock +++ /dev/null @@ -1,826 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 4 - -[[package]] -name = "android_system_properties" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae221649c9976a6f6c56ae1facf410f3ddb33cc661c4b7b61020a912d4237fbc" -dependencies = [ - "libc", -] - -[[package]] -name = "anyhow" -version = "1.0.104" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" - -[[package]] -name = "ar_archive_writer" -version = "0.5.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "523e5e187fff36fcb8d1d19ccf0ca4ca43ec3d158316057f66dc6f72716bc5ec" -dependencies = [ - "object", -] - -[[package]] -name = "autocfg" -version = "1.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" - -[[package]] -name = "block-buffer" -version = "0.10.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" -dependencies = [ - "generic-array", -] - -[[package]] -name = "bumpalo" -version = "3.20.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" - -[[package]] -name = "cc" -version = "1.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6651c9ed80effdc7db0ff72512157f901af5e3549e341e24b1dd4887d836d838" -dependencies = [ - "find-msvc-tools", - "shlex", -] - -[[package]] -name = "cfg-if" -version = "1.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" - -[[package]] -name = "chrono" -version = "0.4.45" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327" -dependencies = [ - "iana-time-zone", - "js-sys", - "num-traits", - "serde", - "wasm-bindgen", - "windows-link", -] - -[[package]] -name = "core-foundation-sys" -version = "0.8.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" - -[[package]] -name = "cpufeatures" -version = "0.2.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" -dependencies = [ - "libc", -] - -[[package]] -name = "crypto-common" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" -dependencies = [ - "generic-array", - "typenum", -] - -[[package]] -name = "cultcache-rs" -version = "0.3.1" -source = "git+https://github.com/GameCult/CultLib.git?rev=4c9af401ae33812d862dde4ff3131433fc73c7dc#4c9af401ae33812d862dde4ff3131433fc73c7dc" -dependencies = [ - "anyhow", - "chrono", - "cultcache-rs-derive", - "fs2", - "redb", - "rmp-serde", - "serde", - "serde_bytes", - "serde_json", - "serde_stacker", - "sha2", - "stacker", - "uuid", - "windows-sys 0.59.0", -] - -[[package]] -name = "cultcache-rs-derive" -version = "0.2.0" -source = "git+https://github.com/GameCult/CultLib.git?rev=4c9af401ae33812d862dde4ff3131433fc73c7dc#4c9af401ae33812d862dde4ff3131433fc73c7dc" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", -] - -[[package]] -name = "digest" -version = "0.10.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" -dependencies = [ - "block-buffer", - "crypto-common", -] - -[[package]] -name = "find-msvc-tools" -version = "0.1.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aedcfb3409746eddb02b9e19ebda1c3394f759a152e48ee875a0844d1b955484" - -[[package]] -name = "fs2" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9564fc758e15025b46aa6643b1b77d047d1a56a1aea6e01002ac0c7026876213" -dependencies = [ - "libc", - "winapi", -] - -[[package]] -name = "futures-core" -version = "0.3.34" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e" - -[[package]] -name = "futures-task" -version = "0.3.34" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd" - -[[package]] -name = "futures-util" -version = "0.3.34" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc" -dependencies = [ - "futures-core", - "futures-task", - "pin-project-lite", - "slab", -] - -[[package]] -name = "generic-array" -version = "0.14.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" -dependencies = [ - "typenum", - "version_check", -] - -[[package]] -name = "getrandom" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" -dependencies = [ - "cfg-if", - "libc", - "r-efi", -] - -[[package]] -name = "iana-time-zone" -version = "0.1.65" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" -dependencies = [ - "android_system_properties", - "core-foundation-sys", - "iana-time-zone-haiku", - "js-sys", - "log", - "wasm-bindgen", - "windows-core", -] - -[[package]] -name = "iana-time-zone-haiku" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" -dependencies = [ - "cc", -] - -[[package]] -name = "itoa" -version = "1.0.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" - -[[package]] -name = "js-sys" -version = "0.3.106" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7883d941dae510fb2d978fc3fe018c71c9e2892fd38854de3e8b92c2e5ad9cc5" -dependencies = [ - "cfg-if", - "futures-util", - "wasm-bindgen", -] - -[[package]] -name = "libc" -version = "0.2.190" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78" - -[[package]] -name = "log" -version = "0.4.34" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6" - -[[package]] -name = "memchr" -version = "2.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" - -[[package]] -name = "num-traits" -version = "0.2.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" -dependencies = [ - "autocfg", -] - -[[package]] -name = "object" -version = "0.39.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e5a6c098c7a3b6547378093f5cc30bc54fd361ce711e05293a5cc589562739b" -dependencies = [ - "memchr", -] - -[[package]] -name = "once_cell" -version = "1.21.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" - -[[package]] -name = "pin-project-lite" -version = "0.2.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" - -[[package]] -name = "proc-macro2" -version = "1.0.107" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" -dependencies = [ - "unicode-ident", -] - -[[package]] -name = "psm" -version = "0.1.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dcd034599e63b970727f70d79e02d62390a4a84f7c6b827c27c46d5ac3fa622" -dependencies = [ - "ar_archive_writer", - "cc", -] - -[[package]] -name = "quote" -version = "1.0.47" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" -dependencies = [ - "proc-macro2", -] - -[[package]] -name = "r-efi" -version = "6.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" - -[[package]] -name = "redb" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb338a6c67830a61bed824b78c2bb034ab1ff401a20616bd7957524f4fdc2f22" -dependencies = [ - "libc", -] - -[[package]] -name = "rmp" -version = "0.8.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ba8be72d372b2c9b35542551678538b562e7cf86c3315773cae48dfbfe7790c" -dependencies = [ - "num-traits", -] - -[[package]] -name = "rmp-serde" -version = "1.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72f81bee8c8ef9b577d1681a70ebbc962c232461e397b22c208c43c04b67a155" -dependencies = [ - "rmp", - "serde", -] - -[[package]] -name = "rustc-hash" -version = "2.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d" - -[[package]] -name = "rustversion" -version = "1.0.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" - -[[package]] -name = "serde" -version = "1.0.229" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" -dependencies = [ - "serde_core", - "serde_derive", -] - -[[package]] -name = "serde_bytes" -version = "0.11.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5d440709e79d88e51ac01c4b72fc6cb7314017bb7da9eeff678aa94c10e3ea8" -dependencies = [ - "serde", - "serde_core", -] - -[[package]] -name = "serde_core" -version = "1.0.229" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" -dependencies = [ - "serde_derive", -] - -[[package]] -name = "serde_derive" -version = "1.0.229" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" -dependencies = [ - "proc-macro2", - "quote", - "syn 3.0.8", -] - -[[package]] -name = "serde_json" -version = "1.0.154" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6" -dependencies = [ - "itoa", - "memchr", - "serde", - "serde_core", - "zmij", -] - -[[package]] -name = "serde_stacker" -version = "0.1.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4936375d50c4be7eff22293a9344f8e46f323ed2b3c243e52f89138d9bb0f4a" -dependencies = [ - "serde", - "serde_core", - "stacker", -] - -[[package]] -name = "sha2" -version = "0.10.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" -dependencies = [ - "cfg-if", - "cpufeatures", - "digest", -] - -[[package]] -name = "shlex" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" - -[[package]] -name = "slab" -version = "0.4.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" - -[[package]] -name = "slotmap" -version = "1.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bdd58c3c93c3d278ca835519292445cb4b0d4dc59ccfdf7ceadaab3f8aeb4038" -dependencies = [ - "version_check", -] - -[[package]] -name = "smallvec" -version = "1.16.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3244542535d5de959d90ec55d1b5ff0fd2bb7b1310223907d5f11932847f7b59" - -[[package]] -name = "stacker" -version = "0.1.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "707f49d46706bacf8a2b00d51dace3f9de527c13eec3778f570c411f89e69967" -dependencies = [ - "cc", - "cfg-if", - "libc", - "psm", - "windows-sys 0.61.2", -] - -[[package]] -name = "syn" -version = "2.0.119" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - -[[package]] -name = "syn" -version = "3.0.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01016da373cd8f7ef12624f796309f5c31ba8d646dd08856c02cd741d823c622" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - -[[package]] -name = "taffy" -version = "0.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cae92eb1b204bfd239b5c463e1bd2c3ce4913d2d3abfb5c64f5cfee9d65e5c68" -dependencies = [ - "rustc-hash", - "serde", - "slotmap", - "smallvec", -] - -[[package]] -name = "thing-contract" -version = "0.1.0" -dependencies = [ - "anyhow", - "cultcache-rs", - "rmp-serde", - "serde", - "serde_bytes", - "thing-testkit", -] - -[[package]] -name = "thing-core" -version = "0.1.0" -dependencies = [ - "stacker", - "taffy", - "thing-contract", - "thing-testkit", - "unicode-linebreak", - "unicode-segmentation", - "unicode-width", -] - -[[package]] -name = "thing-state" -version = "0.1.0" -dependencies = [ - "cultcache-rs", - "rmp-serde", - "serde", - "thing-core", -] - -[[package]] -name = "thing-testkit" -version = "0.1.0" -dependencies = [ - "anyhow", - "cultcache-rs", - "rmp-serde", - "serde", - "thing-contract", - "thing-core", - "thing-state", -] - -[[package]] -name = "typenum" -version = "1.20.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" - -[[package]] -name = "unicode-ident" -version = "1.0.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954" - -[[package]] -name = "unicode-linebreak" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f" - -[[package]] -name = "unicode-segmentation" -version = "1.13.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" - -[[package]] -name = "unicode-width" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca718471876992059f251e33aafc334346ada08042b7661dd1fe313a9bced557" - -[[package]] -name = "uuid" -version = "1.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cc1186384beb7dd8eedea376413fd654937285ea6c9cfbb928dc3043ea4b606" -dependencies = [ - "getrandom", - "js-sys", - "wasm-bindgen", -] - -[[package]] -name = "version_check" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" - -[[package]] -name = "wasm-bindgen" -version = "0.2.129" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bb54f33acc68fd454578d9820b0bde1a1a3d17aa17bb7b6595806d02886d409" -dependencies = [ - "cfg-if", - "once_cell", - "rustversion", - "wasm-bindgen-macro", - "wasm-bindgen-shared", -] - -[[package]] -name = "wasm-bindgen-macro" -version = "0.2.129" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e29d0c35b16e224a7eeb5cd2d25e3e1968fbd65604117b44d3b789d00ee8535" -dependencies = [ - "quote", - "wasm-bindgen-macro-support", -] - -[[package]] -name = "wasm-bindgen-macro-support" -version = "0.2.129" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f501a8bc3719dba86ef8ae4728879c08001bea749eb1333ac5b91e040e2a6b7" -dependencies = [ - "bumpalo", - "proc-macro2", - "quote", - "syn 3.0.8", - "wasm-bindgen-shared", -] - -[[package]] -name = "wasm-bindgen-shared" -version = "0.2.129" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23f0c9c52aa7cd7d77769a4cfe2a9adb1b331f489a41d912ce14513d5ab995c6" -dependencies = [ - "unicode-ident", -] - -[[package]] -name = "winapi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" - -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" - -[[package]] -name = "windows-core" -version = "0.62.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" -dependencies = [ - "windows-implement", - "windows-interface", - "windows-link", - "windows-result", - "windows-strings", -] - -[[package]] -name = "windows-implement" -version = "0.60.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", -] - -[[package]] -name = "windows-interface" -version = "0.59.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.119", -] - -[[package]] -name = "windows-link" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" - -[[package]] -name = "windows-result" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" -dependencies = [ - "windows-link", -] - -[[package]] -name = "windows-strings" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" -dependencies = [ - "windows-link", -] - -[[package]] -name = "windows-sys" -version = "0.59.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" -dependencies = [ - "windows-targets", -] - -[[package]] -name = "windows-sys" -version = "0.61.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" -dependencies = [ - "windows-link", -] - -[[package]] -name = "windows-targets" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" -dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_gnullvm", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc", -] - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" - -[[package]] -name = "windows_i686_gnu" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" - -[[package]] -name = "windows_i686_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" - -[[package]] -name = "windows_i686_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" - -[[package]] -name = "zmij" -version = "1.0.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" diff --git a/Cargo.toml b/Cargo.toml deleted file mode 100644 index 0dd9db3..0000000 --- a/Cargo.toml +++ /dev/null @@ -1,15 +0,0 @@ -[workspace] -members = ["crates/*"] -resolver = "2" - -[workspace.dependencies] -anyhow = "1" -cultcache-rs = { git = "https://github.com/GameCult/CultLib.git", rev = "4c9af401ae33812d862dde4ff3131433fc73c7dc", package = "cultcache-rs" } -serde = { version = "1", features = ["derive"] } -rmp-serde = "1.3" -taffy = { version = "0.16", default-features = false, features = ["std", "taffy_tree", "flexbox", "grid", "block_layout", "content_size"] } -# The terminal text tables, pinned exactly: a width is a golden. unicode-width drops its cjk -# tables, so ambiguous width is narrow. -unicode-width = { version = "=0.2.3", default-features = false } -unicode-segmentation = "=1.13.3" -unicode-linebreak = "=0.1.5" diff --git a/LICENSE b/LICENSE deleted file mode 100644 index b3fa4fd..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2026 GameCult - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/Makefile b/Makefile index 2b5076d..6c14435 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ EveCanvas_FILES = \ Sources/EVEViewController.mm \ Sources/EVEGLView.mm \ Sources/EVEFrameStreamClient.m \ - Sources/EVEDashboardClient.m \ + Sources/EVEHermodrClient.m \ Sources/EVESensorUplinkClient.m \ Sources/EVEH264StreamDecoder.m diff --git a/README.md b/README.md index 8956984..08661e6 100644 --- a/README.md +++ b/README.md @@ -1,41 +1,4 @@ -# Thing - -This repository is Thing (the Eve display, control and sensor edge for GameCult -apps). Its present tree is Thing 1, kept running for live consumers until each -ports; Thing 2.0 is built here (`docs/thing2-target.md`). The Thing 1 renderer -repos are archived under their Eve names: EveUnity, EveFlutter, EveElectron, -EveTui, EvePlugins and EveConformance. - -## Start Here - -Value: services publish a surface once, as a typed retained document -(`gamecult.eve.surface.v1`), and every runtime lowers it locally. Providers keep -authority over state and commands; Eve owns projection, input capture and -timestamped sensor publication. - -Problem: without a shared surface contract, each service hand-builds its own -dashboard and each renderer re-implements layout, binding and commands. - -Live (Thing 1): - -- `packages/org.gamecult.eve.surface`: renderer-neutral C# surface contract and - composition builders; tests in `tests/GameCult.Eve.Surface.Serialization.Tests`. -- `packages/eve-contracts`: TypeScript types and validators generated from - `schemas/` (`npm run generate`, `npm test`). -- `packages/eve-browser-lowering`: browser DOM/CSS lowering of surface documents - (`npm test`). -- `web/`: browser reference oracle (`web/index.html`, `web/eve-dsl.js`; tests - with `node --test web/eve-dsl.test.mjs`). -- `docs/surface-contract-v1.md`: the contract. `docs/repo-strategy.md`: repo - ownership. `docs/parity-testing-harness.md` with - `scripts/run-parity-harness.ps1`: parity runs. -- `android/` and `Sources/` (iOS Theos app, `make package`): native proof - clients; build steps under Build Shape below. - -Planned (Thing 2.0, in progress): `crates/thing-contract` is the first Rust -piece. The layout solver, text, accessibility tree, closed render-command list -and thin backends described in `docs/thing2-target.md` and `docs/thing2-map.md` -are not built yet; `docs/thing-campaign.md` holds the rename plan. +# Eve CultMesh-based surface web, portable control layer, and timestamped sensor edge. @@ -139,8 +102,10 @@ schema or composition builders. ## Current Mechanism -The current checked-in client is the iOS Theos app, still named `EveCanvas` at -the bundle level until the wider Eve runtime split exists. +The current checked-in iOS runtime is the Theos app still named `EveCanvas` at +the bundle level. Its primary input is Gjallar's aggregate surface through the +temporary Starfire Hermodr HTTP boundary; direct typed CultMesh transport can +replace that edge later without moving layout authority into the client. The Android proof under `android/` is a small native Kotlin client built with the installed Android SDK and CultLib's `cultmesh-kotlin` package, without @@ -152,9 +117,12 @@ payloads as `mimir.eve_media_observation.v1`. - `EVEAppDelegate` creates one fullscreen `UIWindow`. - `EVEViewController` installs: + - `EVEHermodrClient`, the configured live `gjallar.overview` surface client. + - native UIKit lowering for generic Eve trees and Gjallar's + `weighted-bisect` aggregate. - `EVEGLView`, a `CAEAGLLayer` backed OpenGL ES render target. - - a full-screen `UIImageView` that displays CEF relay frames. - - `EVEFrameStreamClient`, a native WebSocket client for frame/input transport. + - an optional full-screen `UIImageView` and `EVEFrameStreamClient` for legacy + configured frame streams. - a native UIKit `UILabel` overlay for crisp Retina status text. - `CADisplayLink` for frame ticking. - `CMMotionManager` for accelerometer and gyro telemetry. @@ -163,8 +131,10 @@ payloads as `mimir.eve_media_observation.v1`. - `EVESensorUplinkClient` opens separate WebSocket uplinks for camera and microphone observations so sensor traffic does not block display/control traffic. -- `EVEDashboardClient` opens the native Mimir dashboard socket and receives - scene/control state snapshots. +- `EVEHermodrClient` polls Odin-owned Hermodr for Gjallar's canonical + `gamecult.eve.surface_state.v1` aggregate and hands the decoded surface to + UIKit. Hermodr is a transport/lowering boundary; it does not own layout or + provider membership. - `EVEViewController` captures camera frames with AVFoundation and microphone blocks with AVAudioEngine, then sends binary CultMesh `eve-camera` and `eve-mic` media observations to Mimir. It also renders the dashboard natively with UIKit: a scene graph, @@ -187,8 +157,8 @@ payloads as `mimir.eve_media_observation.v1`. - CultNet carries typed surface state, commands, and timestamped sensor packets. Edge JSON is tolerated only as an interoperability envelope while the typed CultMesh document shape is being proven. -- UIKit is the current iOS streamed-frame owner; OpenGL ES is fallback/local - render. +- UIKit is the current iOS `gjallar.overview` lowering owner. Streamed frames + are an optional non-canonical input; OpenGL ES remains fallback/local render. - The status bar stays hidden. - Eve clients own local sensor reads and timestamps. Mimir owns synchronization and final interpretation after those samples arrive. @@ -214,6 +184,7 @@ See `docs/eve-dsl-reactive-bindings.md` for the first Eve DSL and reactive CultMesh binding contract. See `docs/eve-multiverse.md` for the Eve MultiVerse philosophy and missing API surface. +See `docs/eve-persona.md` for Eve's persistent mission memory. ## Browser Reference @@ -246,8 +217,11 @@ render: ## VoidBot CEF Stream -The CEF relay that produced these frames is not in VoidBot's default branch, so -no relay command is documented here until one exists. +Start the Starfire relay from `E:\Projects\VoidBot`: + +```powershell +npm run swarm:eve-cef-relay -- --width 1620 --height 2160 --scale 2 --port 8792 +``` EveCanvas displays binary JPEG frames and returns touch events only when a stream lowering is configured through `EVE_STREAM_URLS`. The native app no @@ -255,11 +229,12 @@ longer guesses a Starfire relay address. ## Mimir Sensor Uplink -Run the receiver processes from a Mimir checkout (a sibling `..\Mimir` here): +Start Mimir with `config/mimir-runtime.raven-eve.example.json` or run the +receiver processes directly: ```powershell -dotnet run --project ..\Mimir\src\Mimir.EveSensorReceiver\Mimir.EveSensorReceiver.csproj -- --port 8793 --path /eve/camera --source-id eve-camera --type video-frame -dotnet run --project ..\Mimir\src\Mimir.EveSensorReceiver\Mimir.EveSensorReceiver.csproj -- --port 8794 --path /eve/mic --source-id eve-mic --type audio-block +dotnet run --project E:\Projects\Mimir\src\Mimir.EveSensorReceiver\Mimir.EveSensorReceiver.csproj -- --port 8793 --path /eve/camera --source-id eve-camera --type video-frame +dotnet run --project E:\Projects\Mimir\src\Mimir.EveSensorReceiver\Mimir.EveSensorReceiver.csproj -- --port 8794 --path /eve/mic --source-id eve-mic --type audio-block ``` EveCanvas sends binary `mimir.eve_media_observation.v1` camera and microphone @@ -268,20 +243,19 @@ Periwinkle sends camera, microphone, motion, and touch observations only when launched with an explicit `org.gamecult.eve.SENSOR_URI`; the apps no longer guess receiver URLs. -## Native Mimir Dashboard +## Native Gjallar Runtime -Start the dashboard authority on Starfire: +EveCanvas is the native iOS lowering of Gjallar's aggregate Eve surface. Gjallar +owns visible surface membership, order, and `weighted-bisect` layout metadata; +EveCanvas owns UIKit views, touch handling, reconnect behavior, and visible +transport failure. Odin-owned Hermodr exposes the typed CultMesh record at the +iOS HTTP boundary. -```powershell -dotnet run --project ..\Mimir\src\Mimir.EveDashboard\Mimir.EveDashboard.csproj -- --port 8795 -``` - -EveCanvas connects to the Mimir dashboard WebSocket lowering for native retained -`dashboard-state` snapshots. That lowering renders the daemon-owned CultMesh -dashboard state; it is not provider discovery authority. Live provider discovery -belongs to Odin/CultMesh advertisements. Native iOS dashboard lowerings must be -configured through `EVE_DASHBOARD_URLS`; missing discovery stays visible instead -of falling back to LAN constants. EveCanvas sends compact commands back: +Configure one or more Hermodr base URLs through the `EVE_HERMODR_URLS` array in +`org.gamecult.evecanvas` preferences. EveCanvas reads +`gjallar.overview` from `/hermodr/surface/gjallar.overview` and does not guess a +LAN address. It sends supported interactions back through +`/hermodr/commands/eve`: - `select` - `move` @@ -379,14 +353,13 @@ without losing the basic app deployment path. ## Next Cut -- Connect the existing browser reference to a clean-consumer, networked - CultMesh sample and use it as the visual/behavior oracle for native clients. -- Split the shared CultNet/CultMesh surface contract from the iOS app code and - keep `gamecult.eve.surface.v1` as the renderer-facing contract. +- Admit live provider-owned Eve surfaces into Odin/CultMesh so Gjallar's + aggregate has real children to tile; advertisements without readable surface + state remain catalog entries, not invented UI. +- Add native command receipts for Gjallar tiles and prove touch round trips + against provider-owned command surfaces. - Replace JSON/base64 sensor packets with binary framing once camera and mic timing are proven through Mimir. -- Replace the dashboard fixture state with live `MimirPresentationControlState` - and `MimirSceneEditorState` snapshots. - Expand the Android Kotlin client from dashboard node rendering into the full retained `surface.root` renderer, and add the browser client against the same provider/sensor API. diff --git a/Sources/EVEDashboardClient.h b/Sources/EVEDashboardClient.h deleted file mode 100644 index 5823b59..0000000 --- a/Sources/EVEDashboardClient.h +++ /dev/null @@ -1,21 +0,0 @@ -#import - -@protocol EVEDashboardClientDelegate; - -@interface EVEDashboardClient : NSObject - -- (instancetype)initWithURLs:(NSArray *)urls delegate:(id)delegate; -- (void)connect; -- (void)disconnect; -- (void)sendCommand:(NSDictionary *)command; - -@property(nonatomic, copy, readonly) NSString *status; - -@end - -@protocol EVEDashboardClientDelegate - -- (void)dashboardClient:(EVEDashboardClient *)client didReceiveState:(NSDictionary *)state; -- (void)dashboardClient:(EVEDashboardClient *)client didChangeStatus:(NSString *)status; - -@end diff --git a/Sources/EVEDashboardClient.m b/Sources/EVEDashboardClient.m deleted file mode 100644 index 078e882..0000000 --- a/Sources/EVEDashboardClient.m +++ /dev/null @@ -1,126 +0,0 @@ -#import "EVEDashboardClient.h" - -@interface EVEDashboardClient () - -@property(nonatomic, copy) NSArray *urls; -@property(nonatomic, assign) NSUInteger urlIndex; -@property(nonatomic, weak) id delegate; -@property(nonatomic, strong) NSURLSession *session; -@property(nonatomic, strong) NSURLSessionWebSocketTask *task; -@property(nonatomic, assign) BOOL shouldReconnect; -@property(nonatomic, copy, readwrite) NSString *status; - -@end - -@implementation EVEDashboardClient - -- (instancetype)initWithURLs:(NSArray *)urls delegate:(id)delegate { - self = [super init]; - if (!self) { - return nil; - } - - self.urls = urls.count > 0 ? urls : @[]; - self.delegate = delegate; - self.session = [NSURLSession sessionWithConfiguration:NSURLSessionConfiguration.defaultSessionConfiguration]; - self.status = @"dashboard idle"; - return self; -} - -- (void)connect { - self.shouldReconnect = YES; - [self.task cancelWithCloseCode:NSURLSessionWebSocketCloseCodeNormalClosure reason:nil]; - NSURL *url = self.urls.count > 0 ? self.urls[self.urlIndex % self.urls.count] : nil; - if (!url) { - [self publishStatus:@"dashboard URL missing"]; - return; - } - - self.task = [self.session webSocketTaskWithURL:url]; - [self.task resume]; - [self publishStatus:[NSString stringWithFormat:@"dashboard connecting %@", url.host ?: @""]]; - [self receiveNextMessage]; -} - -- (void)disconnect { - self.shouldReconnect = NO; - [self.task cancelWithCloseCode:NSURLSessionWebSocketCloseCodeNormalClosure reason:nil]; - self.task = nil; -} - -- (void)sendCommand:(NSDictionary *)command { - if (!self.task) { - return; - } - - NSData *json = [NSJSONSerialization dataWithJSONObject:command options:0 error:nil]; - if (!json) { - return; - } - - NSString *text = [[NSString alloc] initWithData:json encoding:NSUTF8StringEncoding]; - NSURLSessionWebSocketMessage *message = [[NSURLSessionWebSocketMessage alloc] initWithString:text]; - [self.task sendMessage:message completionHandler:^(NSError *error) { - if (error) { - [self publishStatus:@"dashboard command failed"]; - } - }]; -} - -- (void)receiveNextMessage { - __weak typeof(self) weakSelf = self; - [self.task receiveMessageWithCompletionHandler:^(NSURLSessionWebSocketMessage *message, NSError *error) { - __strong typeof(weakSelf) self = weakSelf; - if (!self) { - return; - } - - if (error) { - [self publishStatus:@"dashboard disconnected"]; - [self reconnectSoon]; - return; - } - - if (message.type == NSURLSessionWebSocketMessageTypeString) { - NSData *data = [message.string dataUsingEncoding:NSUTF8StringEncoding]; - NSDictionary *state = data ? [NSJSONSerialization JSONObjectWithData:data options:0 error:nil] : nil; - if ([state isKindOfClass:NSDictionary.class]) { - dispatch_async(dispatch_get_main_queue(), ^{ - [self.delegate dashboardClient:self didReceiveState:state]; - }); - } - } - - [self receiveNextMessage]; - }]; -} - -- (void)reconnectSoon { - if (!self.shouldReconnect) { - return; - } - - if (self.urls.count > 1) { - self.urlIndex = (self.urlIndex + 1) % self.urls.count; - } - - dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ - if (self.shouldReconnect) { - [self connect]; - } - }); -} - -- (void)publishStatus:(NSString *)status { - self.status = status ?: @"dashboard"; - dispatch_async(dispatch_get_main_queue(), ^{ - [self.delegate dashboardClient:self didChangeStatus:self.status]; - }); -} - -- (void)dealloc { - [self disconnect]; - [self.session invalidateAndCancel]; -} - -@end diff --git a/Sources/EVEHermodrClient.h b/Sources/EVEHermodrClient.h new file mode 100644 index 0000000..8fa7fd8 --- /dev/null +++ b/Sources/EVEHermodrClient.h @@ -0,0 +1,28 @@ +#import + +NS_ASSUME_NONNULL_BEGIN + +@class EVEHermodrClient; + +@protocol EVEHermodrClientDelegate + +- (void)hermodrClient:(EVEHermodrClient *)client didReceiveSurface:(NSDictionary *)surface; +- (void)hermodrClient:(EVEHermodrClient *)client didChangeStatus:(NSString *)status; + +@end + +@interface EVEHermodrClient : NSObject + +@property(nonatomic, copy, readonly) NSString *status; + +- (instancetype)initWithBaseURLs:(NSArray *)baseURLs + providerId:(NSString *)providerId + surfaceId:(NSString *)surfaceId + delegate:(id)delegate; +- (void)connect; +- (void)disconnect; +- (void)sendCommand:(NSDictionary *)command; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Sources/EVEHermodrClient.m b/Sources/EVEHermodrClient.m new file mode 100644 index 0000000..181e284 --- /dev/null +++ b/Sources/EVEHermodrClient.m @@ -0,0 +1,192 @@ +#import "EVEHermodrClient.h" + +static NSTimeInterval const EVESurfaceRefreshInterval = 1.0; + +@interface EVEHermodrClient () + +@property(nonatomic, copy) NSArray *baseURLs; +@property(nonatomic, assign) NSUInteger urlIndex; +@property(nonatomic, copy) NSString *providerId; +@property(nonatomic, copy) NSString *surfaceId; +@property(nonatomic, weak) id delegate; +@property(nonatomic, strong) NSURLSession *session; +@property(nonatomic, strong) NSURLSessionDataTask *surfaceTask; +@property(nonatomic, assign) BOOL shouldRefresh; +@property(nonatomic, assign) NSUInteger generation; +@property(nonatomic, copy) NSData *lastSurfaceData; +@property(nonatomic, copy, readwrite) NSString *status; + +@end + +@implementation EVEHermodrClient + +- (instancetype)initWithBaseURLs:(NSArray *)baseURLs + providerId:(NSString *)providerId + surfaceId:(NSString *)surfaceId + delegate:(id)delegate { + self = [super init]; + if (!self) { + return nil; + } + + NSURLSessionConfiguration *configuration = NSURLSessionConfiguration.ephemeralSessionConfiguration; + configuration.requestCachePolicy = NSURLRequestReloadIgnoringLocalCacheData; + configuration.timeoutIntervalForRequest = 8.0; + configuration.timeoutIntervalForResource = 12.0; + self.session = [NSURLSession sessionWithConfiguration:configuration]; + self.baseURLs = baseURLs.count > 0 ? baseURLs : @[]; + self.providerId = providerId.length > 0 ? providerId : @"gjallar.overview"; + self.surfaceId = surfaceId.length > 0 ? surfaceId : self.providerId; + self.delegate = delegate; + self.status = @"Hermodr idle"; + return self; +} + +- (void)connect { + self.shouldRefresh = YES; + self.generation += 1; + [self.surfaceTask cancel]; + self.surfaceTask = nil; + self.lastSurfaceData = nil; + if (self.baseURLs.count == 0) { + [self publishStatus:@"Hermodr URL missing"]; + return; + } + [self requestSurfaceForGeneration:self.generation]; +} + +- (void)disconnect { + self.shouldRefresh = NO; + self.generation += 1; + [self.surfaceTask cancel]; + self.surfaceTask = nil; +} + +- (void)requestSurfaceForGeneration:(NSUInteger)generation { + if (!self.shouldRefresh || generation != self.generation) { + return; + } + + NSURL *baseURL = self.baseURLs[self.urlIndex % self.baseURLs.count]; + NSURL *surfaceURL = [self surfaceURLForBaseURL:baseURL]; + if (!surfaceURL) { + [self publishStatus:@"Hermodr URL invalid"]; + [self scheduleRefreshForGeneration:generation]; + return; + } + + NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:surfaceURL]; + request.HTTPMethod = @"GET"; + [request setValue:@"application/json" forHTTPHeaderField:@"Accept"]; + [self publishStatus:[NSString stringWithFormat:@"opening %@", self.providerId]]; + + __weak typeof(self) weakSelf = self; + self.surfaceTask = [self.session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { + __strong typeof(weakSelf) self = weakSelf; + if (!self || generation != self.generation || !self.shouldRefresh) { + return; + } + + NSHTTPURLResponse *http = [response isKindOfClass:NSHTTPURLResponse.class] ? (NSHTTPURLResponse *)response : nil; + NSError *parseError = nil; + NSDictionary *state = data.length > 0 ? [NSJSONSerialization JSONObjectWithData:data options:0 error:&parseError] : nil; + NSDictionary *surface = [state isKindOfClass:NSDictionary.class] && [state[@"surface"] isKindOfClass:NSDictionary.class] ? state[@"surface"] : nil; + NSDictionary *root = [surface[@"root"] isKindOfClass:NSDictionary.class] ? surface[@"root"] : nil; + BOOL accepted = !error && http.statusCode >= 200 && http.statusCode < 300 && root != nil; + + if (accepted) { + BOOL changed = ![self.lastSurfaceData isEqualToData:data]; + self.lastSurfaceData = data; + dispatch_async(dispatch_get_main_queue(), ^{ + [self publishStatus:[NSString stringWithFormat:@"%@ connected", self.providerId]]; + if (changed) { + [self.delegate hermodrClient:self didReceiveSurface:state]; + } + }); + } else { + if (self.baseURLs.count > 1) { + self.urlIndex = (self.urlIndex + 1) % self.baseURLs.count; + } + NSString *detail = error.localizedDescription; + if (detail.length == 0 && [state[@"error"] isKindOfClass:NSString.class]) { + detail = state[@"error"]; + } + if (detail.length == 0 && http) { + detail = [NSString stringWithFormat:@"HTTP %ld", (long)http.statusCode]; + } + if (detail.length == 0 && parseError) { + detail = parseError.localizedDescription; + } + [self publishStatus:[NSString stringWithFormat:@"Hermodr unavailable: %@", detail ?: @"invalid surface"]]; + } + [self scheduleRefreshForGeneration:generation]; + }]; + [self.surfaceTask resume]; +} + +- (void)scheduleRefreshForGeneration:(NSUInteger)generation { + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(EVESurfaceRefreshInterval * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ + [self requestSurfaceForGeneration:generation]; + }); +} + +- (NSURL *)surfaceURLForBaseURL:(NSURL *)baseURL { + NSURLComponents *components = [NSURLComponents componentsWithURL:baseURL resolvingAgainstBaseURL:NO]; + if (!components.scheme.length || !components.host.length) { + return nil; + } + NSString *basePath = [components.path stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"/"]]; + NSString *provider = [self.providerId stringByAddingPercentEncodingWithAllowedCharacters:NSCharacterSet.URLPathAllowedCharacterSet]; + components.path = [NSString stringWithFormat:@"/%@%@hermodr/surface/%@", + basePath, + basePath.length > 0 ? @"/" : @"", + provider ?: @""]; + components.queryItems = @[[NSURLQueryItem queryItemWithName:@"surfaceId" value:self.surfaceId]]; + return components.URL; +} + +- (NSURL *)commandURLForBaseURL:(NSURL *)baseURL { + NSURLComponents *components = [NSURLComponents componentsWithURL:baseURL resolvingAgainstBaseURL:NO]; + if (!components.scheme.length || !components.host.length) { + return nil; + } + NSString *basePath = [components.path stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"/"]]; + components.path = [NSString stringWithFormat:@"/%@%@hermodr/commands/eve", + basePath, + basePath.length > 0 ? @"/" : @""]; + components.query = nil; + return components.URL; +} + +- (void)sendCommand:(NSDictionary *)command { + if (self.baseURLs.count == 0 || ![NSJSONSerialization isValidJSONObject:command]) { + return; + } + NSURL *url = [self commandURLForBaseURL:self.baseURLs[self.urlIndex % self.baseURLs.count]]; + if (!url) { + return; + } + NSMutableDictionary *body = [command mutableCopy]; + if (![body[@"providerId"] isKindOfClass:NSString.class]) { + body[@"providerId"] = self.providerId; + } + NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; + request.HTTPMethod = @"POST"; + request.HTTPBody = [NSJSONSerialization dataWithJSONObject:body options:0 error:nil]; + [request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; + [[self.session dataTaskWithRequest:request] resume]; +} + +- (void)publishStatus:(NSString *)status { + self.status = status ?: @"Hermodr"; + dispatch_async(dispatch_get_main_queue(), ^{ + [self.delegate hermodrClient:self didChangeStatus:self.status]; + }); +} + +- (void)dealloc { + [self disconnect]; + [self.session invalidateAndCancel]; +} + +@end diff --git a/Sources/EVEViewController.mm b/Sources/EVEViewController.mm index 802f554..36e258f 100644 --- a/Sources/EVEViewController.mm +++ b/Sources/EVEViewController.mm @@ -4,7 +4,7 @@ #import #import "EVEFrameStreamClient.h" -#import "EVEDashboardClient.h" +#import "EVEHermodrClient.h" #import "EVEGLView.h" #import "EVEH264StreamDecoder.h" #import "EVESensorUplinkClient.h" @@ -170,7 +170,7 @@ static NSArray *EVEConfiguredURLs(NSString *key) { return urls; } -@interface EVEViewController () +@interface EVEViewController () @property(nonatomic, strong) EVEGLView *glView; @property(nonatomic, strong) UIImageView *streamImageView; @@ -189,7 +189,7 @@ static NSArray *EVEConfiguredURLs(NSString *key) { @property(nonatomic, strong) CADisplayLink *displayLink; @property(nonatomic, strong) CMMotionManager *motionManager; @property(nonatomic, strong) EVEFrameStreamClient *streamClient; -@property(nonatomic, strong) EVEDashboardClient *dashboardClient; +@property(nonatomic, strong) EVEHermodrClient *hermodrClient; @property(nonatomic, strong) EVESensorUplinkClient *cameraUplink; @property(nonatomic, strong) EVESensorUplinkClient *micUplink; @property(nonatomic, strong) AVCaptureSession *captureSession; @@ -291,9 +291,12 @@ static NSArray *EVEConfiguredURLs(NSString *key) { self.streamClient = [[EVEFrameStreamClient alloc] initWithURLs:streamURLs delegate:self]; [self.streamClient connect]; - NSArray *dashboardURLs = EVEConfiguredURLs(@"EVE_DASHBOARD_URLS"); - self.dashboardClient = [[EVEDashboardClient alloc] initWithURLs:dashboardURLs delegate:self]; - [self.dashboardClient connect]; + NSArray *hermodrURLs = EVEConfiguredURLs(@"EVE_HERMODR_URLS"); + self.hermodrClient = [[EVEHermodrClient alloc] initWithBaseURLs:hermodrURLs + providerId:@"gjallar.overview" + surfaceId:@"gjallar.overview" + delegate:self]; + [self.hermodrClient connect]; NSArray *cameraURLs = EVEConfiguredURLs(@"EVE_CAMERA_URLS"); NSArray *micURLs = EVEConfiguredURLs(@"EVE_MIC_URLS"); @@ -310,7 +313,7 @@ static NSArray *EVEConfiguredURLs(NSString *key) { - (void)dealloc { [self.displayLink invalidate]; [self.streamClient disconnect]; - [self.dashboardClient disconnect]; + [self.hermodrClient disconnect]; [self.cameraUplink disconnect]; [self.micUplink disconnect]; [self.captureSession stopRunning]; @@ -791,7 +794,7 @@ static NSArray *EVEConfiguredURLs(NSString *key) { return CGPointMake(x, y); } -- (void)dashboardClient:(EVEDashboardClient *)client didReceiveState:(NSDictionary *)state { +- (void)hermodrClient:(EVEHermodrClient *)client didReceiveSurface:(NSDictionary *)state { (void)client; NSString *title = [state[@"title"] isKindOfClass:NSString.class] ? state[@"title"] : @"dashboard"; self.dashboardStatus = [NSString stringWithFormat:@"%@ v%@", title, state[@"version"] ?: @"?"]; @@ -803,10 +806,7 @@ static NSArray *EVEConfiguredURLs(NSString *key) { self.selectedNodeId = selected; } - NSArray *nodes = state[@"nodes"]; - if (![nodes isKindOfClass:NSArray.class]) { - return; - } + NSArray *nodes = [state[@"nodes"] isKindOfClass:NSArray.class] ? state[@"nodes"] : @[]; [self.dashboardNodes removeAllObjects]; NSMutableSet *liveNodeIds = [NSMutableSet set]; @@ -876,19 +876,7 @@ static NSArray *EVEConfiguredURLs(NSString *key) { - (BOOL)shouldRenderFullscreenSurfaceForState:(NSDictionary *)state { NSDictionary *surface = [state[@"surface"] isKindOfClass:NSDictionary.class] ? state[@"surface"] : nil; NSDictionary *root = [surface[@"root"] isKindOfClass:NSDictionary.class] ? surface[@"root"] : nil; - if (!root) { - return NO; - } - - NSString *providerId = [state[@"providerId"] isKindOfClass:NSString.class] ? state[@"providerId"] : @""; - if ([providerId isEqualToString:@"odin.allseer"]) { - return YES; - } - - NSDictionary *props = [root[@"props"] isKindOfClass:NSDictionary.class] ? root[@"props"] : nil; - NSDictionary *layout = [props[@"layout"] isKindOfClass:NSDictionary.class] ? props[@"layout"] : nil; - NSString *viewportMode = [layout[@"viewportMode"] isKindOfClass:NSString.class] ? layout[@"viewportMode"] : @""; - return [viewportMode isEqualToString:@"fullscreen"]; + return root != nil; } - (void)renderFullscreenSurfaceState:(NSDictionary *)state title:(NSString *)title version:(id)version { @@ -896,8 +884,7 @@ static NSArray *EVEConfiguredURLs(NSString *key) { [view removeFromSuperview]; } - NSString *providerId = [state[@"providerId"] isKindOfClass:NSString.class] ? state[@"providerId"] : @""; - if ([providerId isEqualToString:@"odin.allseer"] && [self renderOdinInterfaceWallForState:state]) { + if ([self renderAggregateSurfaceWallForState:state]) { return; } @@ -932,7 +919,7 @@ static NSArray *EVEConfiguredURLs(NSString *key) { ]]; } -- (BOOL)renderOdinInterfaceWallForState:(NSDictionary *)state { +- (BOOL)renderAggregateSurfaceWallForState:(NSDictionary *)state { [self.surfaceDashboardView layoutIfNeeded]; CGRect bounds = self.surfaceDashboardView.bounds; if (bounds.size.width < 20.0 || bounds.size.height < 20.0) { @@ -941,6 +928,11 @@ static NSArray *EVEConfiguredURLs(NSString *key) { NSDictionary *surface = [state[@"surface"] isKindOfClass:NSDictionary.class] ? state[@"surface"] : nil; NSDictionary *root = [surface[@"root"] isKindOfClass:NSDictionary.class] ? surface[@"root"] : nil; + NSDictionary *rootLayout = [self surfaceLayoutForElement:root]; + NSString *mode = [rootLayout[@"mode"] isKindOfClass:NSString.class] ? rootLayout[@"mode"] : @""; + if (![mode isEqualToString:@"weighted-bisect"]) { + return NO; + } NSArray *children = [root[@"children"] isKindOfClass:NSArray.class] ? root[@"children"] : @[]; NSMutableArray *interfaces = [NSMutableArray array]; for (NSDictionary *child in children) { @@ -948,10 +940,10 @@ static NSArray *EVEConfiguredURLs(NSString *key) { continue; } NSString *kind = [child[@"kind"] isKindOfClass:NSString.class] ? child[@"kind"] : @""; - NSDictionary *props = [child[@"props"] isKindOfClass:NSDictionary.class] ? child[@"props"] : @{}; - NSDictionary *layout = [props[@"layout"] isKindOfClass:NSDictionary.class] ? props[@"layout"] : @{}; - NSNumber *visible = [layout[@"visible"] isKindOfClass:NSNumber.class] ? layout[@"visible"] : @YES; - if ([kind isEqualToString:@"interface"] && visible.boolValue) { + NSDictionary *layout = [self surfaceLayoutForElement:child]; + id visible = layout[@"visible"]; + BOOL isVisible = !visible || ![visible respondsToSelector:@selector(boolValue)] || [visible boolValue]; + if ([kind isEqualToString:@"interface"] && isVisible) { [interfaces addObject:child]; } } @@ -965,9 +957,20 @@ static NSArray *EVEConfiguredURLs(NSString *key) { wall.backgroundColor = [self fensalirBackdropColor]; [self.surfaceDashboardView addSubview:wall]; - CGFloat gap = 8.0; + if (interfaces.count == 0) { + NSDictionary *props = [root[@"props"] isKindOfClass:NSDictionary.class] ? root[@"props"] : @{}; + NSString *summary = [props[@"summary"] isKindOfClass:NSString.class] ? props[@"summary"] : @"No visible Eve surfaces"; + UILabel *empty = [self surfaceLabelWithText:summary size:14.0 weight:UIFontWeightMedium color:[self fensalirQuietTextColor]]; + empty.frame = CGRectInset(wall.bounds, 24.0, 24.0); + empty.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; + empty.textAlignment = NSTextAlignmentCenter; + [wall addSubview:empty]; + return YES; + } + + CGFloat gap = [rootLayout[@"gap"] respondsToSelector:@selector(doubleValue)] ? [rootLayout[@"gap"] doubleValue] : 8.0; CGRect packBounds = CGRectInset(bounds, gap, gap); - NSArray *placements = [self odinPackedPlacementsForInterfaces:interfaces bounds:packBounds gap:gap]; + NSArray *placements = [self aggregatePlacementsForInterfaces:interfaces bounds:packBounds gap:gap]; for (NSDictionary *placement in placements) { NSDictionary *interface = [placement[@"interface"] isKindOfClass:NSDictionary.class] ? placement[@"interface"] : nil; NSValue *frameValue = [placement[@"frame"] isKindOfClass:NSValue.class] ? placement[@"frame"] : nil; @@ -975,17 +978,18 @@ static NSArray *EVEConfiguredURLs(NSString *key) { if (!interface || !frameValue) { continue; } - [wall addSubview:[self odinInterfaceTile:interface frame:frameValue.CGRectValue weight:weight.doubleValue]]; + [wall addSubview:[self aggregateInterfaceTile:interface frame:frameValue.CGRectValue weight:weight.doubleValue]]; } return YES; } -- (NSArray *)odinPackedPlacementsForInterfaces:(NSArray *)interfaces bounds:(CGRect)bounds gap:(CGFloat)gap { +- (NSArray *)aggregatePlacementsForInterfaces:(NSArray *)interfaces bounds:(CGRect)bounds gap:(CGFloat)gap { NSMutableArray *items = [NSMutableArray arrayWithCapacity:interfaces.count]; for (NSDictionary *interface in interfaces) { - double weight = [self surfaceWeightForElement:interface]; - [items addObject:@{@"interface": interface, @"weight": @(MAX(0.65, weight))}]; + NSDictionary *layout = [self surfaceLayoutForElement:interface]; + double weight = [layout[@"weight"] respondsToSelector:@selector(doubleValue)] ? [layout[@"weight"] doubleValue] : 1.0; + [items addObject:@{@"interface": interface, @"weight": @(MAX(0.1, weight))}]; } [items sortUsingComparator:^NSComparisonResult(NSDictionary *left, NSDictionary *right) { double lw = [left[@"weight"] doubleValue]; @@ -1000,11 +1004,11 @@ static NSArray *EVEConfiguredURLs(NSString *key) { }]; NSMutableArray *placements = [NSMutableArray array]; - [self packOdinItems:items bounds:bounds gap:gap into:placements]; + [self packAggregateItems:items bounds:bounds gap:gap into:placements]; return placements; } -- (void)packOdinItems:(NSArray *)items bounds:(CGRect)bounds gap:(CGFloat)gap into:(NSMutableArray *)placements { +- (void)packAggregateItems:(NSArray *)items bounds:(CGRect)bounds gap:(CGFloat)gap into:(NSMutableArray *)placements { if (items.count == 0 || bounds.size.width <= 1.0 || bounds.size.height <= 1.0) { return; } @@ -1040,15 +1044,15 @@ static NSArray *EVEConfiguredURLs(NSString *key) { firstWidth = MAX(96.0, MIN(bounds.size.width - gap - 96.0, firstWidth)); CGRect left = CGRectMake(bounds.origin.x, bounds.origin.y, firstWidth, bounds.size.height); CGRect right = CGRectMake(CGRectGetMaxX(left) + gap, bounds.origin.y, bounds.size.width - firstWidth - gap, bounds.size.height); - [self packOdinItems:first bounds:left gap:gap into:placements]; - [self packOdinItems:second bounds:right gap:gap into:placements]; + [self packAggregateItems:first bounds:left gap:gap into:placements]; + [self packAggregateItems:second bounds:right gap:gap into:placements]; } else { CGFloat firstHeight = floor((bounds.size.height - gap) * (CGFloat)ratio); firstHeight = MAX(72.0, MIN(bounds.size.height - gap - 72.0, firstHeight)); CGRect top = CGRectMake(bounds.origin.x, bounds.origin.y, bounds.size.width, firstHeight); CGRect bottom = CGRectMake(bounds.origin.x, CGRectGetMaxY(top) + gap, bounds.size.width, bounds.size.height - firstHeight - gap); - [self packOdinItems:first bounds:top gap:gap into:placements]; - [self packOdinItems:second bounds:bottom gap:gap into:placements]; + [self packAggregateItems:first bounds:top gap:gap into:placements]; + [self packAggregateItems:second bounds:bottom gap:gap into:placements]; } } @@ -1060,31 +1064,19 @@ static NSArray *EVEConfiguredURLs(NSString *key) { return MAX(0.001, total); } -- (double)surfaceWeightForElement:(NSDictionary *)element { - NSString *kind = [element[@"kind"] isKindOfClass:NSString.class] ? element[@"kind"] : @""; +- (NSDictionary *)surfaceLayoutForElement:(NSDictionary *)element { + if (![element isKindOfClass:NSDictionary.class]) { + return @{}; + } + NSDictionary *layout = [element[@"layout"] isKindOfClass:NSDictionary.class] ? element[@"layout"] : nil; + if (layout) { + return layout; + } NSDictionary *props = [element[@"props"] isKindOfClass:NSDictionary.class] ? element[@"props"] : @{}; - NSArray *children = [element[@"children"] isKindOfClass:NSArray.class] ? element[@"children"] : @[]; - NSString *text = [self surfaceTextForElement:element props:props fallback:@""]; - double weight = [kind isEqualToString:@"interface"] ? 0.9 : 0.35; - if ([kind isEqualToString:@"text"] || [kind isEqualToString:@"metric"]) { - weight += MAX(0.22, (double)text.length / 95.0); - } else if ([kind isEqualToString:@"rail"]) { - weight += 0.55 + MIN(3.0, (double)children.count * 0.18); - } else if ([kind isEqualToString:@"card"] || [kind isEqualToString:@"pane"]) { - weight += 0.85; - } else if ([kind isEqualToString:@"dashboard"] || [kind isEqualToString:@"cockpit"]) { - weight += 0.65; - } - - for (NSDictionary *child in children) { - if ([child isKindOfClass:NSDictionary.class]) { - weight += [self surfaceWeightForElement:child]; - } - } - return MAX(0.25, weight); + return [props[@"layout"] isKindOfClass:NSDictionary.class] ? props[@"layout"] : @{}; } -- (UIView *)odinInterfaceTile:(NSDictionary *)interface frame:(CGRect)frame weight:(double)weight { +- (UIView *)aggregateInterfaceTile:(NSDictionary *)interface frame:(CGRect)frame weight:(double)weight { NSDictionary *props = [interface[@"props"] isKindOfClass:NSDictionary.class] ? interface[@"props"] : @{}; UIView *tile = [[UIView alloc] initWithFrame:frame]; tile.backgroundColor = [self fensalirPanelColor]; @@ -1865,7 +1857,7 @@ static NSArray *EVEConfiguredURLs(NSString *key) { } } -- (void)dashboardClient:(EVEDashboardClient *)client didChangeStatus:(NSString *)status { +- (void)hermodrClient:(EVEHermodrClient *)client didChangeStatus:(NSString *)status { (void)client; self.dashboardStatus = status; self.dashboardStatusLabel.text = status; @@ -2022,7 +2014,7 @@ static NSArray *EVEConfiguredURLs(NSString *key) { } CGFloat scale = MAX(0.25, MIN(3.0, self.activeGestureStartScale * recognizer.scale)); - [self.dashboardClient sendCommand:@{@"type": @"scale", @"nodeId": nodeId, @"scale": @(scale)}]; + [self.hermodrClient sendCommand:@{@"type": @"scale", @"nodeId": nodeId, @"scale": @(scale)}]; } - (void)nodeRotated:(UIRotationGestureRecognizer *)recognizer { @@ -2037,7 +2029,7 @@ static NSArray *EVEConfiguredURLs(NSString *key) { } CGFloat rotation = self.activeGestureStartRotation + recognizer.rotation; - [self.dashboardClient sendCommand:@{@"type": @"rotate", @"nodeId": nodeId, @"rotation": @(rotation)}]; + [self.hermodrClient sendCommand:@{@"type": @"rotate", @"nodeId": nodeId, @"rotation": @(rotation)}]; } - (void)sendMoveForNodeId:(NSString *)nodeId center:(CGPoint)center { @@ -2045,7 +2037,7 @@ static NSArray *EVEConfiguredURLs(NSString *key) { CGFloat canvasHeight = MAX(1.0, self.sceneCanvasView.bounds.size.height); CGFloat x = MIN(1.0, MAX(-1.0, (center.x / canvasWidth) * 2.0 - 1.0)); CGFloat y = MIN(1.0, MAX(-1.0, (center.y / canvasHeight) * 2.0 - 1.0)); - [self.dashboardClient sendCommand:@{@"type": @"move", @"nodeId": nodeId, @"x": @(x), @"y": @(y)}]; + [self.hermodrClient sendCommand:@{@"type": @"move", @"nodeId": nodeId, @"x": @(x), @"y": @(y)}]; } - (void)hierarchyNodePressed:(UIButton *)button { @@ -2063,11 +2055,11 @@ static NSArray *EVEConfiguredURLs(NSString *key) { NSString *command = [node[@"command"] isKindOfClass:NSString.class] ? node[@"command"] : nil; NSString *providerId = [node[@"providerId"] isKindOfClass:NSString.class] ? node[@"providerId"] : nil; if ([command isEqualToString:@"open-provider"] && providerId) { - [self.dashboardClient sendCommand:@{@"type": @"open-provider", @"nodeId": nodeId, @"providerId": providerId}]; + [self.hermodrClient sendCommand:@{@"type": @"open-provider", @"nodeId": nodeId, @"providerId": providerId}]; return; } - [self.dashboardClient sendCommand:@{@"type": @"select", @"nodeId": nodeId}]; + [self.hermodrClient sendCommand:@{@"type": @"select", @"nodeId": nodeId}]; } - (void)toolbarButtonPressed:(UIButton *)button { @@ -2077,7 +2069,7 @@ static NSArray *EVEConfiguredURLs(NSString *key) { return; } - [self.dashboardClient sendCommand:@{@"type": action, @"nodeId": nodeId}]; + [self.hermodrClient sendCommand:@{@"type": action, @"nodeId": nodeId}]; } - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer { diff --git a/control b/control index bb557e4..6dbb985 100644 --- a/control +++ b/control @@ -2,7 +2,7 @@ Package: org.gamecult.evecanvas Name: EveCanvas Version: 0.1.0 Architecture: iphoneos-arm -Description: Fullscreen OpenGL ES 3.0 render shell for EVE. +Description: Native iOS Eve runtime for Gjallar aggregate surfaces. Maintainer: GameCult Author: GameCult Section: Applications diff --git a/crates/thing-contract/Cargo.toml b/crates/thing-contract/Cargo.toml deleted file mode 100644 index b799adc..0000000 --- a/crates/thing-contract/Cargo.toml +++ /dev/null @@ -1,16 +0,0 @@ -[package] -name = "thing-contract" -version = "0.1.0" -edition = "2024" -license = "MIT" -publish = false - -[dependencies] -anyhow = { workspace = true } -cultcache-rs = { workspace = true } -serde = { workspace = true } -serde_bytes = "0.11" - -[dev-dependencies] -thing-testkit = { path = "../thing-testkit" } -rmp-serde = { workspace = true } diff --git a/crates/thing-contract/src/asset.rs b/crates/thing-contract/src/asset.rs deleted file mode 100644 index 0827521..0000000 --- a/crates/thing-contract/src/asset.rs +++ /dev/null @@ -1,39 +0,0 @@ -//! An asset catalog: the images a provider's surfaces reference by catalog id and asset id. - -use cultcache_rs::{CultSlots, DatabaseEntry}; - -use crate::domain::{Count, Segment, Version}; -use crate::keys::{ProviderId, asset_catalog_key}; - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct AssetEntry { - #[cultcache(key = 0)] - pub id: String, - #[cultcache(key = 1)] - pub media_type: String, - #[cultcache(key = 2)] - pub uri: String, - #[cultcache(key = 3)] - pub width: Count, - #[cultcache(key = 4)] - pub height: Count, -} - -#[derive(Clone, Debug, PartialEq, DatabaseEntry)] -#[cultcache(type = "gamecult.thing.asset_catalog", schema = "gamecult.thing.asset_catalog.v1")] -pub struct AssetCatalog { - #[cultcache(key = 0)] - pub provider_id: ProviderId, - #[cultcache(key = 1)] - pub catalog_id: Segment, - #[cultcache(key = 2)] - pub version: Version, - #[cultcache(key = 3, type_name = "System.Collections.Immutable.ImmutableArray")] - pub assets: Vec, -} - -impl AssetCatalog { - pub fn record_key(&self) -> String { - asset_catalog_key(&self.provider_id, &self.catalog_id) - } -} diff --git a/crates/thing-contract/src/command.rs b/crates/thing-contract/src/command.rs deleted file mode 100644 index 29bc9d2..0000000 --- a/crates/thing-contract/src/command.rs +++ /dev/null @@ -1,132 +0,0 @@ -//! Commands: what a surface declares, and the one envelope a consumer sends. The caller's -//! identity has no field here: the transport sets it. - -use cultcache_rs::{CultSlots, CultUnion, DatabaseEntry}; - -use crate::domain::Version; -use crate::keys::{CommandId, NodeId, SchemaId, invocation_key}; -use crate::source::ParamName; - -/// A command a surface declares. A node may reference only a declared command. -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct CommandDecl { - #[cultcache(key = 0)] - pub id: CommandId, - #[cultcache(key = 1)] - pub payload_schema: SchemaId, - /// The input nodes whose current values travel with an invocation. - #[cultcache(key = 2)] - pub captures: Vec, - #[cultcache(key = 3)] - pub confirm: Option, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct CommandIdRef { - #[cultcache(key = 0)] - pub id: CommandId, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum CommandRef { - #[cultcache(key = 0)] - Id(CommandIdRef), - #[cultcache(key = 1)] - Param(ParamName), -} - -/// A typed record of the declared `payload_schema`, as its MessagePack bytes. -#[derive(Clone, Debug, PartialEq, CultSlots)] -#[cultcache(type_name = "GameCult.Thing.Contract.RecordPayload")] -pub struct RecordPayload { - #[cultcache(key = 0)] - pub schema: SchemaId, - #[cultcache(key = 1, bytes)] - pub bytes: Vec, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct TextValue { - #[cultcache(key = 0)] - pub value: String, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct NumberValue { - #[cultcache(key = 0)] - pub value: f64, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct BoolValue { - #[cultcache(key = 0)] - pub value: bool, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct ChoiceValue { - #[cultcache(key = 0)] - pub value: String, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum InputValue { - #[cultcache(key = 0)] - Text(TextValue), - #[cultcache(key = 1)] - Number(NumberValue), - #[cultcache(key = 2)] - Bool(BoolValue), - #[cultcache(key = 3)] - Choice(ChoiceValue), -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct CapturedInput { - #[cultcache(key = 0)] - pub node: NodeId, - #[cultcache(key = 1)] - pub value: InputValue, -} - -/// A consumer's request that a provider run a declared command. Its fields are public, so a -/// result's copy of `invocation_id` is a convenience and not provenance: core binds results -/// to the invocations it issued. -#[derive(Clone, Debug, PartialEq, DatabaseEntry)] -#[cultcache(type = "gamecult.thing.command_invocation", schema = "gamecult.thing.command_invocation.v1")] -pub struct CommandInvocation { - /// A UUID string, unique per invocation. - #[cultcache(key = 0)] - pub invocation_id: String, - #[cultcache(key = 1)] - pub surface_key: String, - #[cultcache(key = 2)] - pub surface_version: Version, - #[cultcache(key = 3)] - pub command: CommandId, - #[cultcache(key = 4)] - pub payload: RecordPayload, - #[cultcache(key = 5, type_name = "System.Collections.Immutable.ImmutableArray")] - pub captured: Vec, - #[cultcache(key = 6)] - pub client: String, - /// RFC 3339, UTC. - #[cultcache(key = 7)] - pub issued_at: String, - #[cultcache(key = 8)] - pub delegation: Option, - /// The activating node's declared id in the resolved tree. For a node inside a Repeat it is - /// the template's id, never an instance id. A confirmed invocation names the node confirmed; - /// a resumed one carries the source and items of the invocation whose result carried the effect. - #[cultcache(key = 9)] - pub source: NodeId, - /// The key of each Repeat instance enclosing the source, outermost first; empty outside any Repeat. - #[cultcache(key = 10, type_name = "System.Collections.Immutable.ImmutableArray")] - pub items: Vec, -} - -impl CommandInvocation { - pub fn record_key(&self) -> String { - invocation_key(&self.invocation_id) - } -} diff --git a/crates/thing-contract/src/domain.rs b/crates/thing-contract/src/domain.rs deleted file mode 100644 index 09a5d45..0000000 --- a/crates/thing-contract/src/domain.rs +++ /dev/null @@ -1,237 +0,0 @@ -//! The value domains of the contract's numbers and local names. Each domain is one field -//! type, and `new` is its only door: constructors, struct literals and every serde -//! `Deserializer` reach a value through it, so a value out of domain cannot exist. -//! -//! Each type writes and reads exactly the leaf of its inner type (`Int32`, `Int64`, -//! `String`), so the bytes are the plain leaf's. The reference's unsigned leaves are absent -//! from the TypeScript and Python packages, which is why the bound is a checked type here -//! and a refusal golden there. - -use std::fmt; - -use cultcache_rs::CultTypeName; -use serde::{Deserialize, Deserializer, Serialize, Serializer, de}; - -/// A value was outside its domain. Names the domain and its bound, never the value. -#[derive(Clone, Copy, Debug, PartialEq, Eq)] -pub struct DomainError { - domain: &'static str, - bound: &'static str, -} - -impl DomainError { - const fn new(domain: &'static str, bound: &'static str) -> Self { - Self { domain, bound } - } - - /// The type that refused. - pub fn domain(&self) -> &'static str { - self.domain - } - - /// The bound that was not met. - pub fn bound(&self) -> &'static str { - self.bound - } -} - -impl fmt::Display for DomainError { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "{} must be {}", self.domain, self.bound) - } -} - -impl std::error::Error for DomainError {} - -/// A result's position in its invocation's answers, counting from 1. `new` is the only door: -/// -/// ``` -/// use thing_contract::Seq; -/// assert!(Seq::new(1).is_ok()); -/// ``` -/// -/// ```compile_fail,E0423 -/// use thing_contract::Seq; -/// let _ = Seq(0); -/// ``` -/// -/// ```compile_fail,E0616 -/// use thing_contract::Seq; -/// let mut seq = Seq::FIRST; -/// seq.0 = 0; -/// ``` -/// -/// ```compile_fail,E0599 -/// use thing_contract::Seq; -/// let _ = Seq::default(); -/// ``` -/// -/// ```compile_fail,E0277 -/// use thing_contract::Seq; -/// let _ = Seq::from(0); -/// ``` -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] -pub struct Seq(i32); - -impl CultTypeName for Seq { - fn cult_type_name() -> String { - "System.Int32".to_string() - } - const VALUE_TYPE: bool = true; -} - -impl Seq { - pub const FIRST: Seq = Seq(1); - - pub fn new(value: i32) -> Result { - if value >= 1 { Ok(Self(value)) } else { Err(DomainError::new("Seq", "at least 1")) } - } - - pub fn get(self) -> i32 { - self.0 - } - - /// The following position; stays at `i32::MAX` rather than leaving the domain. - pub fn next(self) -> Seq { - Seq(self.0.saturating_add(1)) - } -} - -/// A document or source version, never negative. `new` is the only door: -/// -/// ``` -/// use thing_contract::Version; -/// assert!(Version::new(0).is_ok()); -/// ``` -/// -/// ```compile_fail,E0423 -/// use thing_contract::Version; -/// let _ = Version(-1); -/// ``` -/// -/// ```compile_fail,E0599 -/// use thing_contract::Version; -/// let _ = Version::default(); -/// ``` -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] -pub struct Version(i64); - -impl CultTypeName for Version { - fn cult_type_name() -> String { - "System.Int64".to_string() - } - const VALUE_TYPE: bool = true; -} - -impl Version { - pub fn new(value: i64) -> Result { - if value >= 0 { Ok(Self(value)) } else { Err(DomainError::new("Version", "at least 0")) } - } - - pub fn get(self) -> i64 { - self.0 - } -} - -/// A count, an extent or an index, never negative. `new` is the only door: -/// -/// ``` -/// use thing_contract::Count; -/// assert!(Count::new(0).is_ok()); -/// ``` -/// -/// ```compile_fail,E0423 -/// use thing_contract::Count; -/// let _ = Count(-1); -/// ``` -/// -/// ```compile_fail,E0277 -/// use thing_contract::Count; -/// let _: Count = (-1).into(); -/// ``` -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] -pub struct Count(i32); - -impl Count { - pub fn new(value: i32) -> Result { - if value >= 0 { Ok(Self(value)) } else { Err(DomainError::new("Count", "at least 0")) } - } - - pub fn get(self) -> i32 { - self.0 - } -} - -/// A name the contract joins into a record key: non-empty, no `.`. `new` is the only door: -/// -/// ``` -/// use thing_contract::Segment; -/// assert!(Segment::new("main").is_ok()); -/// ``` -/// -/// ```compile_fail,E0423 -/// use thing_contract::Segment; -/// let _ = Segment(String::from("a.b")); -/// ``` -/// -/// ```compile_fail,E0277 -/// use thing_contract::Segment; -/// let _: Segment = "a.b".into(); -/// ``` -#[derive(Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] -pub struct Segment(String); - -impl CultTypeName for Segment { - fn cult_type_name() -> String { - "System.String".to_string() - } -} - -impl Segment { - pub fn new(value: impl Into) -> Result { - let value = value.into(); - if value.is_empty() { - Err(DomainError::new("Segment", "non-empty")) - } else if value.contains('.') { - Err(DomainError::new("Segment", "free of '.'")) - } else { - Ok(Self(value)) - } - } - - pub fn as_str(&self) -> &str { - &self.0 - } -} - -macro_rules! leaf_serde { - ($name:ident, $inner:ty, $serialize:ident) => { - impl Serialize for $name { - fn serialize(&self, serializer: S) -> Result { - serializer.$serialize(self.0) - } - } - - impl<'de> Deserialize<'de> for $name { - fn deserialize>(deserializer: D) -> Result { - Self::new(<$inner>::deserialize(deserializer)?).map_err(de::Error::custom) - } - } - }; -} - -leaf_serde!(Seq, i32, serialize_i32); -leaf_serde!(Version, i64, serialize_i64); -leaf_serde!(Count, i32, serialize_i32); - -impl Serialize for Segment { - fn serialize(&self, serializer: S) -> Result { - serializer.serialize_str(&self.0) - } -} - -impl<'de> Deserialize<'de> for Segment { - fn deserialize>(deserializer: D) -> Result { - Self::new(String::deserialize(deserializer)?).map_err(de::Error::custom) - } -} diff --git a/crates/thing-contract/src/keys.rs b/crates/thing-contract/src/keys.rs deleted file mode 100644 index 30ebb66..0000000 --- a/crates/thing-contract/src/keys.rs +++ /dev/null @@ -1,77 +0,0 @@ -//! Identifier newtypes and the record key of each kind. No caller spells a key as a free string. - -use cultcache_rs::CultTypeName; -use serde::{Deserialize, Serialize}; - -use crate::domain::{Segment, Seq, Version}; - -macro_rules! id_type { - ($(#[$doc:meta])* $name:ident) => { - $(#[$doc])* - #[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] - #[serde(transparent)] - pub struct $name(String); - - impl $name { - pub fn new(value: impl Into) -> Self { - Self(value.into()) - } - - pub fn as_str(&self) -> &str { - &self.0 - } - } - - impl CultTypeName for $name { - fn cult_type_name() -> String { - "System.String".to_string() - } - } - }; -} - -id_type!( - /// A provider of surfaces and state. - ProviderId -); -id_type!( - /// The schema id of a CultCache entry type, for example `gamecult.thing.surface.v1`. - SchemaId -); -id_type!( - /// The record key of a state record. - RecordKey -); -id_type!( - /// A node id, unique within its document after composition expansion. - NodeId -); -id_type!( - /// A command declared by a surface. - CommandId -); - -// Each key joins free-string provider or publisher ids (dotted, as the Verse names them) -// with typed trailing parts: a `Segment` holds no dot and a `Seq` or `Version` is digits. A -// key therefore splits at its last dot (surface, asset catalog, result) or last two -// (composition), so two different field sets never build one key. - -pub(crate) fn surface_key(provider: &ProviderId, label: &Segment) -> String { - format!("thing:surface:{}.{}", provider.as_str(), label.as_str()) -} - -pub(crate) fn composition_key(publisher: &str, name: &Segment, version: Version) -> String { - format!("thing:composition:{publisher}.{}.v{}", name.as_str(), version.get()) -} - -pub(crate) fn invocation_key(invocation_id: &str) -> String { - format!("thing:invocation:{invocation_id}") -} - -pub(crate) fn result_key(invocation_id: &str, seq: Seq) -> String { - format!("thing:result:{invocation_id}.{}", seq.get()) -} - -pub fn asset_catalog_key(provider: &ProviderId, catalog_id: &Segment) -> String { - format!("thing:asset_catalog:{}.{}", provider.as_str(), catalog_id.as_str()) -} diff --git a/crates/thing-contract/src/lib.rs b/crates/thing-contract/src/lib.rs deleted file mode 100644 index 3bc7bfa..0000000 --- a/crates/thing-contract/src/lib.rs +++ /dev/null @@ -1,58 +0,0 @@ -//! The `gamecult.thing.*` wire types and their bytes. This crate owns the contract: the -//! golden payloads it blesses are what every other language package and core are held to. -//! -//! Every kind is a CultCache `DatabaseEntry`; every closed set is a `CultUnion` written -//! `[armKey, [slots...]]`, the shape the C# reference reads and writes. -//! -//! Decoding is a door as well as the constructors: every kind keeps its public serde -//! `Deserialize` (CultCache's `DatabaseEntry` requires it). The domains therefore live in the -//! field types (`Seq`, `Version`, `Count`, `Segment`), whose `Deserialize` calls the same -//! `new` the constructors call, so no door skips a check. -//! -//! Stack hazard: `Node` nests without a bound of its own, and serde's `Deserialize` recurses -//! once per level, so a hostile payload nested deep enough overflows the stack of a caller that -//! decodes it directly. CultCache refuses such a payload on read and on write -//! (`cultcache_rs::check_payload_depth`, 256 containers); a caller that decodes bytes outside a -//! CultCache must run that check first. - -mod asset; -mod command; -mod domain; -mod keys; -mod node; -mod result; -mod source; -mod style; - -pub use asset::*; -pub use command::*; -pub use domain::{Count, DomainError, Segment, Seq, Version}; -pub use keys::{CommandId, NodeId, ProviderId, RecordKey, SchemaId, asset_catalog_key}; -pub use node::*; -pub use result::*; -pub use source::*; -pub use style::*; - -pub use cultcache_rs::DatabaseEntry; - -/// Whether `text` is an RFC 3339 UTC-or-offset date-time of the one shape a Thing timestamp is -/// written in (`YYYY-MM-DDThh:mm:ss`, an optional fraction, then `Z` or an offset). A timestamp a -/// provider publishes as text is shown as written only when this accepts it. -pub fn is_timestamp_text(text: &str) -> bool { - cultcache_rs::is_stored_at_stamp(text) -} -use cultcache_rs::{CultCache, CultCacheRegistry}; - -/// Registers the five kinds with a cache. -pub struct ThingContract; - -impl CultCacheRegistry for ThingContract { - fn register_entries(&self, cache: &mut CultCache) -> anyhow::Result<()> { - cache.register_entry_type::()?; - cache.register_entry_type::()?; - cache.register_entry_type::()?; - cache.register_entry_type::()?; - cache.register_entry_type::()?; - Ok(()) - } -} diff --git a/crates/thing-contract/src/node.rs b/crates/thing-contract/src/node.rs deleted file mode 100644 index 8be831c..0000000 --- a/crates/thing-contract/src/node.rs +++ /dev/null @@ -1,478 +0,0 @@ -//! Thing Script: the closed node union, the surface document that holds a tree of nodes, and the -//! composition document that names a reusable subtree. Arm keys are fixed: Slot (13) is the arm -//! added after the first twelve, and a decoder from before it refuses a record holding one -//! (CultCache's unknown-arm rule). - -use cultcache_rs::{CultSlots, CultUnion, DatabaseEntry}; - -use crate::domain::{Count, Segment, Version}; -use crate::command::{CommandDecl, CommandRef}; -use crate::keys::{NodeId, ProviderId, composition_key, surface_key}; -use crate::source::{Bind, BoolSource, CollectionSource, MemberPath, NumberSource, ParamName, TextSource}; -use crate::style::{BoxStyle, Paint, Role}; - -/// What every node carries. -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct NodeCommon { - #[cultcache(key = 0)] - pub id: NodeId, - #[cultcache(key = 1)] - pub visible: BoolSource, - #[cultcache(key = 2)] - pub a11y_label: Option, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -#[cultcache(type_name = "GameCult.Thing.Contract.Node")] -pub enum Node { - #[cultcache(key = 0)] - Box(BoxNode), - #[cultcache(key = 1)] - Text(TextNode), - #[cultcache(key = 2)] - Image(ImageNode), - #[cultcache(key = 3)] - Button(ButtonNode), - #[cultcache(key = 4)] - Toggle(ToggleNode), - #[cultcache(key = 5)] - Slider(SliderNode), - #[cultcache(key = 6)] - TextInput(TextInputNode), - #[cultcache(key = 7)] - Select(SelectNode), - #[cultcache(key = 8)] - Repeat(RepeatNode), - #[cultcache(key = 9)] - Overlay(OverlayNode), - #[cultcache(key = 10)] - Plot(PlotNode), - #[cultcache(key = 11)] - Embed(EmbedNode), - #[cultcache(key = 12)] - Use(UseNode), - #[cultcache(key = 13)] - Slot(SlotNode), -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct BoxNode { - #[cultcache(key = 0)] - pub common: NodeCommon, - #[cultcache(key = 1)] - pub style: BoxStyle, - #[cultcache(key = 2)] - pub paint: Paint, - #[cultcache(key = 3)] - pub role: Role, - #[cultcache(key = 4)] - pub children: Vec, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct TextNode { - #[cultcache(key = 0)] - pub common: NodeCommon, - #[cultcache(key = 1)] - pub content: TextSource, - #[cultcache(key = 2)] - pub style_token: String, - #[cultcache(key = 3)] - pub wrap: bool, - #[cultcache(key = 4)] - pub max_lines: Option, - #[cultcache(key = 5)] - pub selectable: bool, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum ImageFit { - #[cultcache(key = 0)] - Contain, - #[cultcache(key = 1)] - Cover, - #[cultcache(key = 2)] - Fill, - #[cultcache(key = 3)] - Unscaled, -} - -/// An asset of a catalog, with the alternative text a reader without the picture needs. -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct ImageNode { - #[cultcache(key = 0)] - pub common: NodeCommon, - #[cultcache(key = 1)] - pub catalog: String, - #[cultcache(key = 2)] - pub asset: String, - #[cultcache(key = 3)] - pub fit: ImageFit, - #[cultcache(key = 4)] - pub alt: TextSource, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct ButtonNode { - #[cultcache(key = 0)] - pub common: NodeCommon, - #[cultcache(key = 1)] - pub content: Vec, - #[cultcache(key = 2)] - pub on_activate: CommandRef, - #[cultcache(key = 3)] - pub enabled: BoolSource, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct ToggleNode { - #[cultcache(key = 0)] - pub common: NodeCommon, - #[cultcache(key = 1)] - pub checked: BoolSource, - #[cultcache(key = 2)] - pub on_change: CommandRef, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct SliderNode { - #[cultcache(key = 0)] - pub common: NodeCommon, - #[cultcache(key = 1)] - pub min: f64, - #[cultcache(key = 2)] - pub max: f64, - #[cultcache(key = 3)] - pub step: f64, - #[cultcache(key = 4)] - pub value: NumberSource, - #[cultcache(key = 5)] - pub commit: CommandRef, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum InputKind { - #[cultcache(key = 0)] - Text, - #[cultcache(key = 1)] - Number, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct TextInputNode { - #[cultcache(key = 0)] - pub common: NodeCommon, - #[cultcache(key = 1)] - pub multiline: bool, - /// Named `input_kind` in every runtime (Rust `input_kind`, C# `InputKind`, TypeScript `inputKind`): a field - /// named `kind` collides with the union tag in TypeScript. The wire is the slot key, 2. - #[cultcache(key = 2)] - pub input_kind: InputKind, - #[cultcache(key = 3)] - pub placeholder: TextSource, - #[cultcache(key = 4)] - pub initial: TextSource, - #[cultcache(key = 5)] - pub submit: CommandRef, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct SelectOption { - #[cultcache(key = 0)] - pub value: String, - #[cultcache(key = 1)] - pub label: String, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct LiteralOptions { - #[cultcache(key = 0)] - pub options: Vec, -} - -/// Options read from a collection: each item's value and label are members of the item. -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct BoundOptions { - #[cultcache(key = 0)] - pub collection: CollectionSource, - #[cultcache(key = 1)] - pub value_member: MemberPath, - #[cultcache(key = 2)] - pub label_member: MemberPath, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum OptionList { - #[cultcache(key = 0)] - Literal(LiteralOptions), - #[cultcache(key = 1)] - Bound(BoundOptions), -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct SelectNode { - #[cultcache(key = 0)] - pub common: NodeCommon, - #[cultcache(key = 1)] - pub options: OptionList, - #[cultcache(key = 2)] - pub value: Bind, - #[cultcache(key = 3)] - pub on_change: CommandRef, -} - -/// The template is instantiated once per item of the collection, keyed by `key_member` of the item. -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct RepeatNode { - #[cultcache(key = 0)] - pub common: NodeCommon, - #[cultcache(key = 1)] - pub collection: CollectionSource, - #[cultcache(key = 2)] - pub key_member: MemberPath, - #[cultcache(key = 3)] - pub template: std::boxed::Box, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct AnchorNode { - #[cultcache(key = 0)] - pub node: NodeId, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum Anchor { - #[cultcache(key = 0)] - Viewport, - #[cultcache(key = 1)] - Node(AnchorNode), -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct OverlayNode { - #[cultcache(key = 0)] - pub common: NodeCommon, - #[cultcache(key = 1)] - pub anchor: Anchor, - #[cultcache(key = 2)] - pub modal: bool, - #[cultcache(key = 3)] - pub dismiss: CommandRef, - #[cultcache(key = 4)] - pub children: Vec, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum PlotMark { - #[cultcache(key = 0)] - Line, - #[cultcache(key = 1)] - Bar, - #[cultcache(key = 2)] - Area, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct PlotNode { - #[cultcache(key = 0)] - pub common: NodeCommon, - /// A numeric list member of a record. - #[cultcache(key = 1)] - pub series: Bind, - #[cultcache(key = 2)] - pub mark: PlotMark, - #[cultcache(key = 3)] - pub x_min: Option, - #[cultcache(key = 4)] - pub x_max: Option, - #[cultcache(key = 5)] - pub y_min: Option, - #[cultcache(key = 6)] - pub y_max: Option, -} - -/// A leaf the host draws: `slot_kind` is a name the host declares it supports. -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct EmbedNode { - #[cultcache(key = 0)] - pub common: NodeCommon, - #[cultcache(key = 1)] - pub slot_kind: String, - #[cultcache(key = 2)] - pub slot_id: String, - #[cultcache(key = 3)] - pub width: f64, - #[cultcache(key = 4)] - pub height: f64, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct CompositionRef { - #[cultcache(key = 0)] - pub publisher: String, - #[cultcache(key = 1)] - pub name: Segment, - #[cultcache(key = 2)] - pub version: Version, -} - -impl CompositionRef { - /// The record key of the composition this names, from the one key function. - pub fn record_key(&self) -> String { - composition_key(&self.publisher, &self.name, self.version) - } -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct UseNode { - #[cultcache(key = 0)] - pub common: NodeCommon, - #[cultcache(key = 1)] - pub composition: CompositionRef, - #[cultcache(key = 2)] - pub args: Vec, -} - -/// Where a composition body places the nodes passed for its Slot parameter `param`. Only a child -/// list of a composition body holds one, and resolve refuses it elsewhere. It carries no -/// `NodeCommon`: the argument's nodes, keeping their caller-scope ids, replace it. -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct SlotNode { - #[cultcache(key = 0)] - pub param: ParamName, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct Arg { - #[cultcache(key = 0)] - pub name: String, - #[cultcache(key = 1)] - pub value: ArgValue, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct TextArg { - #[cultcache(key = 0)] - pub value: String, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct NumberArg { - #[cultcache(key = 0)] - pub value: f64, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct BoolArg { - #[cultcache(key = 0)] - pub value: bool, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct CollectionArg { - #[cultcache(key = 0)] - pub source: CollectionSource, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct CommandArg { - #[cultcache(key = 0)] - pub command: CommandRef, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct SlotArg { - #[cultcache(key = 0)] - pub nodes: Vec, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum ArgValue { - #[cultcache(key = 0)] - Text(TextArg), - #[cultcache(key = 1)] - Number(NumberArg), - #[cultcache(key = 2)] - Bool(BoolArg), - #[cultcache(key = 3)] - Bind(Bind), - #[cultcache(key = 4)] - Collection(CollectionArg), - #[cultcache(key = 5)] - Command(CommandArg), - #[cultcache(key = 6)] - Slot(SlotArg), -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum ParamKind { - #[cultcache(key = 0)] - Text, - #[cultcache(key = 1)] - Number, - #[cultcache(key = 2)] - Bool, - #[cultcache(key = 3)] - Bind, - #[cultcache(key = 4)] - Collection, - #[cultcache(key = 5)] - Command, - #[cultcache(key = 6)] - Slot, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct ParamDecl { - #[cultcache(key = 0)] - pub name: String, - #[cultcache(key = 1)] - pub kind: ParamKind, -} - -/// A provider's surface: a tree of nodes and the commands it declares. A change of structure -/// republishes the record with a higher `version`. -#[derive(Clone, Debug, PartialEq, DatabaseEntry)] -#[cultcache(type = "gamecult.thing.surface", schema = "gamecult.thing.surface.v1")] -pub struct SurfaceDocument { - #[cultcache(key = 0)] - pub provider_id: ProviderId, - #[cultcache(key = 1)] - pub label: Segment, - #[cultcache(key = 2)] - pub version: Version, - #[cultcache(key = 3)] - pub title: String, - #[cultcache(key = 4)] - pub root: Node, - #[cultcache(key = 5, type_name = "System.Collections.Immutable.ImmutableArray")] - pub commands: Vec, -} - -impl SurfaceDocument { - pub fn record_key(&self) -> String { - surface_key(&self.provider_id, &self.label) - } -} - -/// A reusable subtree with typed parameters. Compositions never own commands. -#[derive(Clone, Debug, PartialEq, DatabaseEntry)] -#[cultcache(type = "gamecult.thing.composition", schema = "gamecult.thing.composition.v1")] -pub struct CompositionDocument { - #[cultcache(key = 0)] - pub publisher: String, - #[cultcache(key = 1)] - pub name: Segment, - #[cultcache(key = 2)] - pub version: Version, - #[cultcache(key = 3, type_name = "System.Collections.Immutable.ImmutableArray")] - pub params: Vec, - #[cultcache(key = 4)] - pub body: Node, -} - -impl CompositionDocument { - pub fn record_key(&self) -> String { - composition_key(&self.publisher, &self.name, self.version) - } -} diff --git a/crates/thing-contract/src/result.rs b/crates/thing-contract/src/result.rs deleted file mode 100644 index 99cd0f4..0000000 --- a/crates/thing-contract/src/result.rs +++ /dev/null @@ -1,231 +0,0 @@ -//! The answer to a command invocation. A `CommandResult` is built by its four constructors, -//! each of which copies the invocation's id, and is read through accessors. Decoding is the -//! other door and holds the same domain: `seq` is a `Seq`, refused below 1 whichever door -//! it enters by. No API takes a state as a string or converts a map. - -use cultcache_rs::{CultSlots, CultUnion, DatabaseEntry}; - -use crate::command::{CommandInvocation, CommandRef}; -use crate::domain::{Seq, Version}; -use crate::keys::{NodeId, result_key}; - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct PendingOutcome { - #[cultcache(key = 0)] - pub message: String, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct CompletedOutcome { - #[cultcache(key = 0)] - pub source_version: Option, - /// Whether the captured drafts of the invocation clear. - #[cultcache(key = 1)] - pub clear_drafts: bool, - #[cultcache(key = 2)] - pub effect: Option, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct DeniedOutcome { - #[cultcache(key = 0)] - pub reason: String, - #[cultcache(key = 1)] - pub node: Option, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct FailedOutcome { - #[cultcache(key = 0)] - pub reason: String, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -#[cultcache(type_name = "GameCult.Thing.Contract.Outcome")] -pub enum Outcome { - #[cultcache(key = 0)] - Pending(PendingOutcome), - #[cultcache(key = 1)] - Completed(CompletedOutcome), - #[cultcache(key = 2)] - Denied(DeniedOutcome), - #[cultcache(key = 3)] - Failed(FailedOutcome), -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct OpenSurfaceEffect { - #[cultcache(key = 0)] - pub key: String, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct OpenExternalEffect { - #[cultcache(key = 0)] - pub url: String, - /// The command run when the external step returns. - #[cultcache(key = 1)] - pub resume: CommandRef, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum Effect { - #[cultcache(key = 0)] - OpenSurface(OpenSurfaceEffect), - #[cultcache(key = 1)] - OpenExternal(OpenExternalEffect), -} - -/// A provider's answer to one invocation. `seq` counts from 1 per invocation. The copied -/// invocation id is a convenience: core binds a result to an invocation it issued. -/// -/// The positive case, a result built by a constructor from the invocation it answers: -/// -/// ``` -/// use thing_contract::{CommandInvocation, CommandResult, Seq}; -/// fn answer(invocation: &CommandInvocation) -> CommandResult { -/// CommandResult::failed(invocation, Seq::FIRST, "refused") -/// } -/// ``` -/// -/// A struct literal does not compile, because the fields are private: -/// -/// ```compile_fail,E0451 -/// use thing_contract::{CommandResult, FailedOutcome, Outcome, Seq}; -/// let _ = CommandResult { -/// invocation_id: String::new(), -/// seq: Seq::FIRST, -/// outcome: Outcome::Failed(FailedOutcome { reason: String::new() }), -/// }; -/// ``` -/// -/// Each field is read through its accessor: -/// -/// ``` -/// use thing_contract::{CommandInvocation, CommandResult, Seq}; -/// fn read(invocation: &CommandInvocation) { -/// let result = CommandResult::failed(invocation, Seq::FIRST, "refused"); -/// let _ = result.invocation_id(); -/// } -/// ``` -/// -/// and assigning it does not compile: -/// -/// ```compile_fail,E0616 -/// use thing_contract::{CommandInvocation, CommandResult, Seq}; -/// fn tamper(invocation: &CommandInvocation) { -/// let mut result = CommandResult::failed(invocation, Seq::FIRST, "refused"); -/// result.invocation_id = String::new(); -/// } -/// ``` -/// -/// ``` -/// use thing_contract::{CommandInvocation, CommandResult, Seq}; -/// fn read(invocation: &CommandInvocation) { -/// let result = CommandResult::failed(invocation, Seq::FIRST, "refused"); -/// let _ = result.seq(); -/// } -/// ``` -/// -/// ```compile_fail,E0616 -/// use thing_contract::{CommandInvocation, CommandResult, Seq}; -/// fn tamper(invocation: &CommandInvocation) { -/// let mut result = CommandResult::failed(invocation, Seq::FIRST, "refused"); -/// result.seq = Seq::FIRST.next(); -/// } -/// ``` -/// -/// ``` -/// use thing_contract::{CommandInvocation, CommandResult, Seq}; -/// fn read(invocation: &CommandInvocation) { -/// let result = CommandResult::failed(invocation, Seq::FIRST, "refused"); -/// let _ = result.outcome(); -/// } -/// ``` -/// -/// ```compile_fail,E0616 -/// use thing_contract::{CommandInvocation, CommandResult, FailedOutcome, Outcome, Seq}; -/// fn tamper(invocation: &CommandInvocation) { -/// let mut result = CommandResult::failed(invocation, Seq::FIRST, "refused"); -/// result.outcome = Outcome::Failed(FailedOutcome { reason: String::new() }); -/// } -/// ``` -/// -/// Nothing converts a map into a result: -/// -/// ```compile_fail,E0277 -/// use std::collections::BTreeMap; -/// use thing_contract::CommandResult; -/// let flat: BTreeMap = BTreeMap::new(); -/// let _ = CommandResult::from(flat); -/// ``` -/// -/// Nor a string state: -/// -/// ```compile_fail,E0277 -/// use thing_contract::CommandResult; -/// let _ = CommandResult::from("completed"); -/// ``` -#[derive(Clone, Debug, PartialEq, DatabaseEntry)] -#[cultcache(type = "gamecult.thing.command_result", schema = "gamecult.thing.command_result.v1")] -pub struct CommandResult { - #[cultcache(key = 0)] - invocation_id: String, - #[cultcache(key = 1)] - seq: Seq, - #[cultcache(key = 2)] - outcome: Outcome, -} - -impl CommandResult { - fn answering(invocation: &CommandInvocation, seq: Seq, outcome: Outcome) -> Self { - Self { invocation_id: invocation.invocation_id.clone(), seq, outcome } - } - - pub fn pending(invocation: &CommandInvocation, seq: Seq, message: impl Into) -> Self { - Self::answering(invocation, seq, Outcome::Pending(PendingOutcome { message: message.into() })) - } - - pub fn completed( - invocation: &CommandInvocation, - seq: Seq, - source_version: Option, - clear_drafts: bool, - effect: Option, - ) -> Self { - Self::answering( - invocation, - seq, - Outcome::Completed(CompletedOutcome { source_version, clear_drafts, effect }), - ) - } - - pub fn denied( - invocation: &CommandInvocation, - seq: Seq, - reason: impl Into, - node: Option, - ) -> Self { - Self::answering(invocation, seq, Outcome::Denied(DeniedOutcome { reason: reason.into(), node })) - } - - pub fn failed(invocation: &CommandInvocation, seq: Seq, reason: impl Into) -> Self { - Self::answering(invocation, seq, Outcome::Failed(FailedOutcome { reason: reason.into() })) - } - - pub fn invocation_id(&self) -> &str { - &self.invocation_id - } - - pub fn seq(&self) -> Seq { - self.seq - } - - pub fn outcome(&self) -> &Outcome { - &self.outcome - } - - pub fn record_key(&self) -> String { - result_key(&self.invocation_id, self.seq) - } -} diff --git a/crates/thing-contract/src/source.rs b/crates/thing-contract/src/source.rs deleted file mode 100644 index 0a3cad0..0000000 --- a/crates/thing-contract/src/source.rs +++ /dev/null @@ -1,172 +0,0 @@ -//! Where a value comes from: a literal, a binding to a state record, or a composition parameter. -//! A member path is a list of names and indices, never an expression. - -use cultcache_rs::{CultSlots, CultUnion}; - -use crate::domain::Count; -use crate::keys::{ProviderId, RecordKey, SchemaId}; - -/// A composition parameter, named. -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct ParamName { - #[cultcache(key = 0)] - pub name: String, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct TextLiteral { - #[cultcache(key = 0)] - pub value: String, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct NumberLiteral { - #[cultcache(key = 0)] - pub value: f64, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct BoolLiteral { - #[cultcache(key = 0)] - pub value: bool, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum TextSource { - #[cultcache(key = 0)] - Literal(TextLiteral), - #[cultcache(key = 1)] - Bound(Bind), - #[cultcache(key = 2)] - Param(ParamName), -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum NumberSource { - #[cultcache(key = 0)] - Literal(NumberLiteral), - #[cultcache(key = 1)] - Bound(Bind), - #[cultcache(key = 2)] - Param(ParamName), -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum BoolSource { - #[cultcache(key = 0)] - Literal(BoolLiteral), - #[cultcache(key = 1)] - Bound(Bind), - #[cultcache(key = 2)] - Param(ParamName), -} - -/// One member of a record, read through a path, optionally formatted. -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct Bind { - #[cultcache(key = 0)] - pub source: StateSource, - #[cultcache(key = 1)] - pub member: MemberPath, - #[cultcache(key = 2)] - pub format: Option, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum StateSource { - #[cultcache(key = 0)] - Record(StateRef), - /// The current item inside a `Repeat` template. - #[cultcache(key = 1)] - Item, -} - -/// A state record. An absent provider is the publisher of the document. `schema` is the id the -/// provider's record type is registered under in its store: a provider's state type must have its -/// entry type equal to that schema id, because a store names a record's schema by its entry type. -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct StateRef { - #[cultcache(key = 0)] - pub provider: Option, - #[cultcache(key = 1)] - pub schema: SchemaId, - #[cultcache(key = 2)] - pub key: RecordKey, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct MemberPath { - #[cultcache(key = 0)] - pub steps: Vec, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum MemberStep { - #[cultcache(key = 0)] - Name(MemberName), - #[cultcache(key = 1)] - Index(MemberIndex), -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct MemberName { - #[cultcache(key = 0)] - pub name: String, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct MemberIndex { - #[cultcache(key = 0)] - pub index: Count, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum Format { - #[cultcache(key = 0)] - Number(NumberFormat), - #[cultcache(key = 1)] - Duration, - #[cultcache(key = 2)] - Timestamp, - #[cultcache(key = 3)] - Affix(AffixFormat), -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct NumberFormat { - #[cultcache(key = 0)] - pub precision: Count, - #[cultcache(key = 1)] - pub percent: bool, - #[cultcache(key = 2)] - pub unit: Option, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct AffixFormat { - #[cultcache(key = 0)] - pub prefix: String, - #[cultcache(key = 1)] - pub suffix: String, -} - -/// The records of one type, or a list member of one record. -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum CollectionSource { - #[cultcache(key = 0)] - Records(RecordsSource), - #[cultcache(key = 1)] - Member(Bind), - #[cultcache(key = 2)] - Param(ParamName), -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct RecordsSource { - #[cultcache(key = 0)] - pub provider: Option, - #[cultcache(key = 1)] - pub schema: SchemaId, - #[cultcache(key = 2)] - pub key_prefix: String, -} diff --git a/crates/thing-contract/src/style.rs b/crates/thing-contract/src/style.rs deleted file mode 100644 index 1869753..0000000 --- a/crates/thing-contract/src/style.rs +++ /dev/null @@ -1,241 +0,0 @@ -//! Box layout and paint as plain data. The crate holds no layout engine: core maps `BoxStyle` -//! onto its solver. - -use cultcache_rs::{CultSlots, CultUnion}; - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct Scalar { - #[cultcache(key = 0)] - pub value: f64, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum Dimension { - #[cultcache(key = 0)] - Px(Scalar), - #[cultcache(key = 1)] - Percent(Scalar), - #[cultcache(key = 2)] - Fr(Scalar), - #[cultcache(key = 3)] - Auto, - #[cultcache(key = 4)] - Content, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct Size2 { - #[cultcache(key = 0)] - pub width: Dimension, - #[cultcache(key = 1)] - pub height: Dimension, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct Edges { - #[cultcache(key = 0)] - pub top: Dimension, - #[cultcache(key = 1)] - pub right: Dimension, - #[cultcache(key = 2)] - pub bottom: Dimension, - #[cultcache(key = 3)] - pub left: Dimension, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum Display { - #[cultcache(key = 0)] - Flex, - #[cultcache(key = 1)] - Grid, - #[cultcache(key = 2)] - Block, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum Direction { - #[cultcache(key = 0)] - Row, - #[cultcache(key = 1)] - Column, - #[cultcache(key = 2)] - RowReverse, - #[cultcache(key = 3)] - ColumnReverse, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum Wrap { - #[cultcache(key = 0)] - NoWrap, - #[cultcache(key = 1)] - Wrap, - #[cultcache(key = 2)] - WrapReverse, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum Position { - #[cultcache(key = 0)] - Relative, - #[cultcache(key = 1)] - Absolute, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum Overflow { - #[cultcache(key = 0)] - Visible, - #[cultcache(key = 1)] - Clip, - #[cultcache(key = 2)] - Scroll, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum ItemAlign { - #[cultcache(key = 0)] - Auto, - #[cultcache(key = 1)] - Start, - #[cultcache(key = 2)] - End, - #[cultcache(key = 3)] - Center, - #[cultcache(key = 4)] - Stretch, - #[cultcache(key = 5)] - Baseline, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum ContentAlign { - #[cultcache(key = 0)] - Auto, - #[cultcache(key = 1)] - Start, - #[cultcache(key = 2)] - End, - #[cultcache(key = 3)] - Center, - #[cultcache(key = 4)] - Stretch, - #[cultcache(key = 5)] - SpaceBetween, - #[cultcache(key = 6)] - SpaceAround, - #[cultcache(key = 7)] - SpaceEvenly, -} - -/// The layout of a box. `gap` is the column gap in `width` and the row gap in `height`. -/// `grid_columns` and `grid_rows` are the grid tracks and are read only when `display` is Grid. -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct BoxStyle { - #[cultcache(key = 0)] - pub display: Display, - #[cultcache(key = 1)] - pub direction: Direction, - #[cultcache(key = 2)] - pub wrap: Wrap, - #[cultcache(key = 3)] - pub gap: Size2, - #[cultcache(key = 4)] - pub padding: Edges, - #[cultcache(key = 5)] - pub margin: Edges, - #[cultcache(key = 6)] - pub size: Size2, - #[cultcache(key = 7)] - pub min_size: Size2, - #[cultcache(key = 8)] - pub max_size: Size2, - #[cultcache(key = 9)] - pub position: Position, - #[cultcache(key = 10)] - pub inset: Edges, - #[cultcache(key = 11)] - pub overflow: Overflow, - #[cultcache(key = 12)] - pub align_items: ItemAlign, - #[cultcache(key = 13)] - pub align_self: ItemAlign, - #[cultcache(key = 14)] - pub align_content: ContentAlign, - #[cultcache(key = 15)] - pub justify_content: ContentAlign, - #[cultcache(key = 16)] - pub grow: f64, - #[cultcache(key = 17)] - pub shrink: f64, - #[cultcache(key = 18)] - pub basis: Dimension, - #[cultcache(key = 19)] - pub grid_columns: Vec, - #[cultcache(key = 20)] - pub grid_rows: Vec, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct ThemeToken { - #[cultcache(key = 0)] - pub name: String, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct Rgba { - #[cultcache(key = 0)] - pub r: u8, - #[cultcache(key = 1)] - pub g: u8, - #[cultcache(key = 2)] - pub b: u8, - #[cultcache(key = 3)] - pub a: u8, -} - -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum ColorRef { - #[cultcache(key = 0)] - Token(ThemeToken), - #[cultcache(key = 1)] - Rgba(Rgba), -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct Border { - #[cultcache(key = 0)] - pub color: ColorRef, - #[cultcache(key = 1)] - pub width: f64, -} - -#[derive(Clone, Debug, PartialEq, CultSlots)] -pub struct Paint { - #[cultcache(key = 0)] - pub background: Option, - #[cultcache(key = 1)] - pub border: Option, - #[cultcache(key = 2)] - pub radius: f64, -} - -/// The accessibility role of a box. The accessibility tree itself is core's. -#[derive(Clone, Debug, PartialEq, CultUnion)] -pub enum Role { - #[cultcache(key = 0)] - Group, - #[cultcache(key = 1)] - Region, - #[cultcache(key = 2)] - List, - #[cultcache(key = 3)] - ListItem, - #[cultcache(key = 4)] - Heading, - #[cultcache(key = 5)] - Dialog, - #[cultcache(key = 6)] - Toolbar, -} diff --git a/crates/thing-contract/tests/catalog_members.rs b/crates/thing-contract/tests/catalog_members.rs deleted file mode 100644 index a343883..0000000 --- a/crates/thing-contract/tests/catalog_members.rs +++ /dev/null @@ -1,63 +0,0 @@ -//! The catalog rows the five document kinds publish are the rows the C# package declares: -//! `tests/thing-contract-parity/catalog-members.tsv`, which NameSetTests (C#) and parity.test.ts -//! (TypeScript) are held to as well. Schema ids differ by writer, so the comparison is by group, -//! as `catalogGroups` in parity.test.ts makes it. - -use std::path::PathBuf; - -use cultcache_rs::{DatabaseEntry, SchemaCatalogMember, SingleFileMessagePackBackingStore}; -use thing_contract::*; - -fn tsv_groups() -> Vec { - let path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../tests/thing-contract-parity/catalog-members.tsv"); - let text = std::fs::read_to_string(path).unwrap(); - let mut groups: Vec<(String, Vec)> = Vec::new(); - for row in text.lines().filter(|line| !line.trim().is_empty()) { - let (schema, rest) = row.split_once('\t').unwrap(); - match groups.iter_mut().find(|(id, _)| id == schema) { - Some((_, rows)) => rows.push(rest.to_string()), - None => groups.push((schema.to_string(), vec![rest.to_string()])), - } - } - sorted(groups.into_iter().map(|(_, rows)| rows.join("\n")).collect()) -} - -fn group(members: &[SchemaCatalogMember]) -> String { - members.iter().map(|m| format!("{}\t{}\t{}", m.slot, m.member_name, m.type_name)).collect::>().join("\n") -} - -fn sorted(mut groups: Vec) -> Vec { - groups.sort(); - groups -} - -#[test] -fn rows_equal_the_csharp_file() { - let mine = sorted(vec![ - group(&SurfaceDocument::schema_members()), - group(&CompositionDocument::schema_members()), - group(&CommandInvocation::schema_members()), - group(&CommandResult::schema_members()), - group(&AssetCatalog::schema_members()), - ]); - assert_eq!(mine, tsv_groups()); -} - -#[test] -fn every_committed_store_carries_the_rows() { - // Each runtime's committed store, this crate's own included, declares the C# catalog. The Rust - // reader does not compare member type names when it opens a store, so a drifted name in a - // store another runtime wrote fails here. A store is copied first: reading it creates a lock - // file beside it. - for file in ["written-by-rs.cc", "written-by-cs.cc", "written-by-ts.cc"] { - let committed = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../tests/thing-contract-parity").join(file); - let work = PathBuf::from(env!("CARGO_TARGET_TMPDIR")).join(format!("catalog-members-{file}")); - std::fs::create_dir_all(&work).unwrap(); - let copy = work.join(file); - std::fs::copy(committed, ©).unwrap(); - let catalog = SingleFileMessagePackBackingStore::new(©).pull_schema_catalog().unwrap(); - let from_store = sorted(catalog.iter().map(|entry| group(&entry.members)).collect()); - assert_eq!(from_store, tsv_groups(), "{file}"); - let _ = std::fs::remove_dir_all(&work); - } -} diff --git a/crates/thing-contract/tests/foreign_stores.rs b/crates/thing-contract/tests/foreign_stores.rs deleted file mode 100644 index 0c59494..0000000 --- a/crates/thing-contract/tests/foreign_stores.rs +++ /dev/null @@ -1,63 +0,0 @@ -//! The stores the other two runtimes wrote. `written-by-cs.cc` and `written-by-ts.cc` in -//! `tests/thing-contract-parity` are read here, never written: each opens to exactly the five -//! records, each re-encodes to its value golden, and each sits under the key the other runtimes -//! key it by. The file is copied first: reading a store creates a lock file beside it. - -use std::fmt::Debug; -use std::path::PathBuf; - -use cultcache_rs::DatabaseEntry; -use thing_contract::*; -use thing_testkit::{golden, store}; - -fn parity_dir() -> PathBuf { - PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../tests/thing-contract-parity") -} - -fn goldens_dir() -> PathBuf { - PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests/goldens") -} - -fn scratch(purpose: &str, bytes: &[u8]) -> PathBuf { - static SERIAL: std::sync::atomic::AtomicU64 = std::sync::atomic::AtomicU64::new(0); - let serial = SERIAL.fetch_add(1, std::sync::atomic::Ordering::Relaxed); - let work = PathBuf::from(env!("CARGO_TARGET_TMPDIR")).join(format!("foreign-{purpose}-{serial}")); - std::fs::create_dir_all(&work).unwrap(); - let copy = work.join("store.cc"); - std::fs::write(©, bytes).unwrap(); - copy -} - -fn assert_record(cache: &cultcache_rs::CultCache, key: &str, golden_name: &str) { - let records = cache.get_all_with_keys::().unwrap(); - assert_eq!(records.len(), 1, "{golden_name}: one record of the kind"); - let (found, value) = &records[0]; - assert_eq!(found, key, "{golden_name}: keyed as the other runtimes key it"); - let expected = golden::read(&goldens_dir(), &format!("{golden_name}.bin")); - assert_eq!(rmp_serde::to_vec(value).unwrap(), expected, "{golden_name}: re-encodes to its golden"); -} - -fn assert_five_records(cache: &cultcache_rs::CultCache) { - assert_record::(cache, "thing:surface:provider.a.main", "surface-all-arms"); - assert_record::(cache, "thing:composition:provider.a.panel.v3", "composition-all-params"); - assert_record::(cache, "thing:invocation:3f2b8c1e-5d44-4a6b-9a07-1c2d3e4f5a6b", "invocation-all-inputs"); - assert_record::(cache, "thing:result:3f2b8c1e-5d44-4a6b-9a07-1c2d3e4f5a6b.1", "result-pending"); - assert_record::(cache, "thing:asset_catalog:provider.a.icons", "asset-catalog"); - assert_eq!(cache.snapshot().len(), 5, "no record beyond the five"); -} - -fn open_foreign(file: &str) { - let copy = scratch("foreign", &std::fs::read(parity_dir().join(file)).unwrap()); - assert_five_records(&store::open(©)); - let _ = std::fs::remove_dir_all(copy.parent().unwrap()); -} - -#[test] -fn the_store_csharp_wrote_opens_to_five_records_that_re_encode_to_the_goldens() { - open_foreign("written-by-cs.cc"); -} - -#[test] -fn the_store_typescript_wrote_opens_to_five_records_that_re_encode_to_the_goldens() { - open_foreign("written-by-ts.cc"); -} diff --git a/crates/thing-contract/tests/goldens.rs b/crates/thing-contract/tests/goldens.rs deleted file mode 100644 index 40d12bc..0000000 --- a/crates/thing-contract/tests/goldens.rs +++ /dev/null @@ -1,685 +0,0 @@ -//! The goldens: payload bytes written by this crate and nobody else, then compared byte for -//! byte. The TypeScript and C# packages and core are held to these files; none of them writes -//! one. `THING_BLESS=1` rewrites them; any other run compares. - -use std::collections::BTreeSet; -use std::fmt::Debug; -use std::path::PathBuf; - -use thing_testkit::{build::*, golden, store}; -use cultcache_rs::{CultCache, CultCacheEnvelope, CultCacheRegistry, DatabaseEntry}; -use thing_contract::*; - -fn goldens_dir() -> PathBuf { - PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests/goldens") -} - -/// Where the stores of all three runtimes live; this crate writes `written-by-rs.cc` there. -fn parity_dir() -> PathBuf { - PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../tests/thing-contract-parity") -} - -// A value that must never appear in a refusal. -const CANARY: &str = "CANARY-7f3a91c2"; - -fn golden(name: &str, value: &T) -> String { - let produced = rmp_serde::to_vec(value).unwrap(); - let committed = golden::check(&goldens_dir(), &format!("{name}.bin"), &produced); - let decoded: T = rmp_serde::from_slice(&committed).unwrap_or_else(|error| panic!("{name}: {error}")); - assert_eq!(&decoded, value, "{name}: the golden does not decode to the constructed value"); - assert_eq!(rmp_serde::to_vec(&decoded).unwrap(), committed, "{name}: re-encoding changed the bytes"); - name.to_string() -} - -fn bind_all_formats() -> Vec { - let number = Format::Number(NumberFormat { precision: count(2), percent: true, unit: Some("ms".into()) }); - let affix = Format::Affix(AffixFormat { prefix: "$".into(), suffix: "/s".into() }); - let indexed = MemberPath { - steps: vec![ - MemberStep::Name(MemberName { name: "items".into() }), - MemberStep::Index(MemberIndex { index: count(3) }), - ], - }; - vec![ - record_bind(indexed, Some(number)), - record_bind(path(&["elapsed"]), Some(Format::Duration)), - record_bind(path(&["at"]), Some(Format::Timestamp)), - record_bind(path(&["price"]), Some(affix)), - record_bind(path(&["plain"]), None), - item_bind(path(&["name"])), - ] -} - -/// A surface using all 13 node arms, nested more than four deep, with every source arm. -fn full_surface() -> SurfaceDocument { - let binds = bind_all_formats(); - let bound_text = TextSource::Bound(binds[3].clone()); - let bound_bool = BoolSource::Bound(binds[4].clone()); - let bound_number = NumberSource::Bound(binds[0].clone()); - - let mut painted = BoxNode { - common: NodeCommon { - id: nid("painted"), - visible: BoolSource::Param(param("show")), - a11y_label: Some(TextSource::Param(param("label"))), - }, - style: style(), - paint: Paint { - background: Some(ColorRef::Token(ThemeToken { name: "surface.raised".into() })), - border: Some(Border { color: ColorRef::Rgba(Rgba { r: 1, g: 2, b: 3, a: 255 }), width: 1.5 }), - radius: 4.0, - }, - role: Role::Region, - children: vec![], - }; - painted.style.display = Display::Grid; - painted.style.grid_columns = vec![Dimension::Fr(Scalar { value: 1.0 }), px(120.0)]; - painted.style.grid_rows = vec![Dimension::Content]; - painted.style.position = Position::Absolute; - painted.style.overflow = Overflow::Scroll; - painted.style.direction = Direction::RowReverse; - painted.style.wrap = Wrap::WrapReverse; - painted.style.align_items = ItemAlign::Baseline; - painted.style.align_self = ItemAlign::Center; - painted.style.align_content = ContentAlign::SpaceAround; - painted.style.justify_content = ContentAlign::SpaceEvenly; - painted.children = vec![text("deep-text", "deep")]; - - let repeat = Node::Repeat(RepeatNode { - common: common("rows"), - collection: CollectionSource::Records(RecordsSource { - provider: None, - schema: SchemaId::new("gamecult.thing.test.v1"), - key_prefix: "row-".into(), - }), - key_member: path(&["id"]), - template: std::boxed::Box::new(Node::Text(TextNode { - common: common("row-name"), - content: TextSource::Bound(item_bind(path(&["name"]))), - style_token: "body".into(), - wrap: false, - max_lines: Some(count(2)), - selectable: true, - })), - }); - - let leaves = vec![ - Node::Text(TextNode { - common: common("t-bound"), - content: bound_text, - style_token: "label".into(), - wrap: true, - max_lines: None, - selectable: false, - }), - Node::Image(ImageNode { - common: common("img"), - catalog: "icons".into(), - asset: "gear".into(), - fit: ImageFit::Cover, - alt: lit_text("a gear"), - }), - Node::Button(ButtonNode { - common: common("go"), - content: vec![text("go-label", "Go")], - on_activate: command("go"), - enabled: bound_bool.clone(), - }), - Node::Toggle(ToggleNode { common: common("flag"), checked: bound_bool, on_change: CommandRef::Param(param("toggle")) }), - Node::Slider(SliderNode { - common: common("level"), - min: 0.0, - max: 1.0, - step: 0.25, - value: bound_number, - commit: command("set-level"), - }), - Node::TextInput(TextInputNode { - common: common("name-input"), - multiline: true, - input_kind: InputKind::Number, - placeholder: lit_text("name"), - initial: TextSource::Param(param("initial")), - submit: command("rename"), - }), - Node::TextInput(TextInputNode { - common: common("title-input"), - multiline: false, - input_kind: InputKind::Text, - placeholder: lit_text("title"), - initial: TextSource::Param(param("initial")), - submit: command("retitle"), - }), - Node::Select(SelectNode { - common: common("pick"), - options: OptionList::Literal(LiteralOptions { - options: vec![SelectOption { value: "a".into(), label: "Alpha".into() }], - }), - value: binds[4].clone(), - on_change: command("pick"), - }), - Node::Select(SelectNode { - common: common("pick-bound"), - options: OptionList::Bound(BoundOptions { - collection: CollectionSource::Member(binds[0].clone()), - value_member: path(&["id"]), - label_member: path(&["name"]), - }), - value: binds[5].clone(), - on_change: command("pick"), - }), - repeat, - Node::Overlay(OverlayNode { - common: common("menu"), - anchor: Anchor::Node(AnchorNode { node: nid("go") }), - modal: false, - dismiss: command("close"), - children: vec![text("menu-item", "one")], - }), - Node::Overlay(OverlayNode { - common: common("dialog"), - anchor: Anchor::Viewport, - modal: true, - dismiss: command("close"), - children: vec![], - }), - Node::Plot(PlotNode { - common: common("trend"), - series: binds[1].clone(), - mark: PlotMark::Area, - x_min: Some(0.0), - x_max: None, - y_min: None, - y_max: Some(100.0), - }), - Node::Embed(EmbedNode { - common: common("viewport"), - slot_kind: "world.scene".into(), - slot_id: "main".into(), - width: 640.0, - height: 480.0, - }), - Node::Use(UseNode { - common: common("kv"), - composition: CompositionRef { publisher: "thing.std".into(), name: seg("key-value"), version: ver(1) }, - args: vec![Arg { name: "key".into(), value: ArgValue::Text(TextArg { value: "k".into() }) }], - }), - ]; - - let mut deep = boxed("d4", vec![Node::Box(painted)]); - for id in ["d3", "d2", "d1"] { - deep = boxed(id, vec![deep]); - } - let mut children = vec![deep]; - children.extend(leaves); - for plot_choice in [ - Node::Plot(PlotNode { - common: common("trend-line"), - series: binds[2].clone(), - mark: PlotMark::Line, - x_min: None, - x_max: None, - y_min: None, - y_max: None, - }), - Node::Plot(PlotNode { - common: common("trend-bar"), - series: binds[2].clone(), - mark: PlotMark::Bar, - x_min: None, - x_max: None, - y_min: None, - y_max: None, - }), - ] { - children.push(plot_choice); - } - for (index, fit) in [ImageFit::Contain, ImageFit::Fill, ImageFit::Unscaled].into_iter().enumerate() { - children.push(Node::Image(ImageNode { - common: common(&format!("img-fit-{index}")), - catalog: "icons".into(), - asset: "gear".into(), - fit, - alt: lit_text(""), - })); - } - for (index, role) in [Role::List, Role::ListItem, Role::Heading, Role::Dialog, Role::Toolbar].into_iter().enumerate() { - let mut role_style = style(); - if index == 0 { - role_style.direction = Direction::Row; - role_style.align_content = ContentAlign::Auto; - role_style.justify_content = ContentAlign::Stretch; - } - children.push(Node::Box(BoxNode { - common: common(&format!("role-{index}")), - style: role_style, - paint: plain_paint(), - role, - children: vec![], - })); - } - let mut block = BoxNode { - common: common("block"), - style: style(), - paint: plain_paint(), - role: Role::Group, - children: vec![], - }; - block.style.display = Display::Block; - block.style.direction = Direction::ColumnReverse; - block.style.wrap = Wrap::Wrap; - block.style.overflow = Overflow::Clip; - block.style.align_content = ContentAlign::Center; - block.style.justify_content = ContentAlign::End; - block.style.align_items = ItemAlign::End; - block.style.align_self = ItemAlign::Start; - block.style.basis = Dimension::Content; - children.push(Node::Box(block)); - children.push(Node::Text(TextNode { - common: common("t-param"), - content: TextSource::Param(param("title")), - style_token: "title".into(), - wrap: true, - max_lines: None, - selectable: false, - })); - children.push(Node::Toggle(ToggleNode { - common: NodeCommon { id: nid("literal-number"), visible: BoolSource::Param(param("v")), a11y_label: None }, - checked: lit_bool(false), - on_change: command("toggle"), - })); - children.push(Node::Slider(SliderNode { - common: common("slider-literal"), - min: -1.0, - max: 1.0, - step: 0.5, - value: lit_number(0.5), - commit: command("set-level"), - })); - children.push(Node::Slider(SliderNode { - common: common("slider-param"), - min: 0.0, - max: 10.0, - step: 1.0, - value: NumberSource::Param(param("n")), - commit: command("set-level"), - })); - children.push(Node::Repeat(RepeatNode { - common: common("rows-param"), - collection: CollectionSource::Param(param("rows")), - key_member: path(&["id"]), - template: std::boxed::Box::new(text("row-param", "r")), - })); - - SurfaceDocument { - provider_id: ProviderId::new("provider.a"), - label: seg("main"), - version: ver(7), - title: "All arms".into(), - root: boxed("root", children), - commands: vec![ - CommandDecl { - id: CommandId::new("go"), - payload_schema: SchemaId::new("gamecult.thing.test.go.v1"), - captures: vec![nid("name-input"), nid("level")], - confirm: Some("Go now?".into()), - }, - CommandDecl { - id: CommandId::new("close"), - payload_schema: SchemaId::new("gamecult.thing.test.close.v1"), - captures: vec![], - confirm: None, - }, - ], - } -} - -fn full_composition() -> CompositionDocument { - let args = vec![ - Arg { name: "text".into(), value: ArgValue::Text(TextArg { value: "t".into() }) }, - Arg { name: "number".into(), value: ArgValue::Number(NumberArg { value: 2.5 }) }, - Arg { name: "bool".into(), value: ArgValue::Bool(BoolArg { value: true }) }, - Arg { name: "bind".into(), value: ArgValue::Bind(record_bind(path(&["x"]), None)) }, - Arg { - name: "collection".into(), - value: ArgValue::Collection(CollectionArg { source: CollectionSource::Param(param("rows")) }), - }, - Arg { name: "command".into(), value: ArgValue::Command(CommandArg { command: command("go") }) }, - Arg { - name: "slot".into(), - value: ArgValue::Slot(SlotArg { nodes: vec![text("slot-text", "inside"), boxed("slot-box", vec![])] }), - }, - ]; - let inner_use = Node::Use(UseNode { - common: common("inner"), - composition: CompositionRef { publisher: "thing.std".into(), name: seg("card"), version: ver(2) }, - args, - }); - CompositionDocument { - publisher: "provider.a".into(), - name: seg("panel"), - version: ver(3), - params: [ - ("title", ParamKind::Text), - ("count", ParamKind::Number), - ("on", ParamKind::Bool), - ("source", ParamKind::Bind), - ("rows", ParamKind::Collection), - ("act", ParamKind::Command), - ("body", ParamKind::Slot), - ] - .into_iter() - .map(|(name, kind)| ParamDecl { name: name.into(), kind }) - .collect(), - body: boxed( - "panel-root", - vec![text("panel-title", "t"), inner_use, Node::Slot(SlotNode { param: param("body") })], - ), - } -} - -fn results(invocation: &CommandInvocation) -> Vec<(&'static str, CommandResult)> { - vec![ - ("result-pending", CommandResult::pending(invocation, seq(1), "working")), - ("result-completed", CommandResult::completed(invocation, seq(2), Some(ver(8)), true, None)), - ( - "result-completed-open-surface", - CommandResult::completed( - invocation, - seq(3), - None, - false, - Some(Effect::OpenSurface(OpenSurfaceEffect { key: "thing:surface:provider.a.next".into() })), - ), - ), - ( - "result-completed-open-external", - CommandResult::completed( - invocation, - seq(4), - Some(ver(9)), - true, - Some(Effect::OpenExternal(OpenExternalEffect { - url: "https://example.test/auth".into(), - resume: command("resume"), - })), - ), - ), - ("result-denied", CommandResult::denied(invocation, seq(5), "not yours", Some(nid("go")))), - ("result-denied-no-node", CommandResult::denied(invocation, seq(6), "not allowed", None)), - ("result-failed", CommandResult::failed(invocation, seq(7), "broke")), - ] -} - -fn asset_catalog() -> AssetCatalog { - AssetCatalog { - provider_id: ProviderId::new("provider.a"), - catalog_id: seg("icons"), - version: ver(2), - assets: vec![ - AssetEntry { id: "gear".into(), media_type: "image/png".into(), uri: "assets/gear.png".into(), width: count(32), height: count(32) }, - AssetEntry { id: "bolt".into(), media_type: "image/svg+xml".into(), uri: "assets/bolt.svg".into(), width: count(0), height: count(0) }, - ], - } -} - -/// A store with one record of each kind, written by cultcache-rs under a pinned clock. -fn write_store(path: &std::path::Path) { - let mut cache = store::create(path); - let surface = full_surface(); - let composition = full_composition(); - let invocation = invocation(); - let result = CommandResult::pending(&invocation, seq(1), "working"); - let catalog = asset_catalog(); - store::put_pinned(&mut cache, &surface.record_key(), &surface); - store::put_pinned(&mut cache, &composition.record_key(), &composition); - store::put_pinned(&mut cache, &invocation.record_key(), &invocation); - store::put_pinned(&mut cache, &result.record_key(), &result); - store::put_pinned(&mut cache, &catalog.record_key(), &catalog); -} - -fn envelope(key: &str, payload: Vec) -> CultCacheEnvelope { - CultCacheEnvelope { - key: key.into(), - r#type: T::TYPE.into(), - payload, - stored_at: store::PINNED_CLOCK.into(), - schema_id: Some(T::TYPE.into()), - } -} - -#[test] -fn slot_arm_bytes() { - let slot = Node::Slot(SlotNode { param: param("body") }); - let bytes = rmp_serde::to_vec(&slot).unwrap(); - assert_eq!(bytes, [0x92, 0x0D, 0x91, 0x91, 0xA4, 0x62, 0x6F, 0x64, 0x79]); - assert_eq!(rmp_serde::from_slice::(&bytes).unwrap(), slot); -} - -#[test] -fn goldens_match() { - let mut names = BTreeSet::new(); - names.insert(golden("surface-all-arms", &full_surface())); - names.insert(golden("composition-all-params", &full_composition())); - let invocation = invocation(); - names.insert(golden("invocation-all-inputs", &invocation)); - for (name, result) in results(&invocation) { - names.insert(golden(name, &result)); - } - names.insert(golden("asset-catalog", &asset_catalog())); - - // The refusal and tolerance goldens are written by `refusal_payloads` below; a stale file - // that no case names is an orphan. - let refusals = refusal_payloads(); - for (name, bytes) in &refusals { - golden::check(&goldens_dir(), &format!("{name}.bin"), bytes); - names.insert((*name).to_string()); - } - let on_disk: BTreeSet = std::fs::read_dir(goldens_dir()) - .unwrap() - .filter_map(|entry| entry.unwrap().file_name().into_string().ok()) - .filter_map(|file| file.strip_suffix(".bin").map(str::to_string)) - .collect(); - assert_eq!(on_disk, names, "every .bin golden is a named case and every case has its file"); - - // The store: one record of each kind, written under a pinned clock, byte for byte. - let scratch = PathBuf::from(env!("CARGO_TARGET_TMPDIR")).join("goldens-surface.cc"); - write_store(&scratch); - let parity = parity_dir(); - let committed = golden::check(&parity, "written-by-rs.cc", &std::fs::read(&scratch).unwrap()); - let reopened = parity.join("written-by-rs.cc"); - assert_eq!(std::fs::read(&reopened).unwrap(), committed); - let cache = store::open(&scratch); - let surface = full_surface(); - assert_eq!(cache.get::(&surface.record_key()).unwrap(), Some(surface)); - let composition = full_composition(); - assert_eq!(cache.get::(&composition.record_key()).unwrap(), Some(composition)); - assert_eq!(cache.get::(&invocation.record_key()).unwrap(), Some(invocation.clone())); - let result = CommandResult::pending(&invocation, seq(1), "working"); - assert_eq!(cache.get::(&result.record_key()).unwrap(), Some(result)); - let catalog = asset_catalog(); - assert_eq!(cache.get::(&catalog.record_key()).unwrap(), Some(catalog)); -} - -/// The foreign and malformed payloads. Each is the bytes a consumer might send; none is a -/// value of this crate, so each is spelled from MessagePack tuples and maps. -fn refusal_payloads() -> Vec<(&'static str, Vec)> { - // The map a Thing 1 provider writes for a command result: named members, a receipt - // inside, no positional slots. - #[derive(serde::Serialize)] - #[serde(rename_all = "camelCase")] - struct Receipt { - command_id: &'static str, - command: &'static str, - state: &'static str, - message: &'static str, - source_version: u64, - issued_at_utc: &'static str, - } - #[derive(serde::Serialize)] - struct Flat { - receipt: Receipt, - } - let flat = Flat { - receipt: Receipt { - command_id: "inv-1", - command: "go", - state: "completed", - message: CANARY, - source_version: 4, - issued_at_utc: "2026-01-01T00:00:00Z", - }, - }; - let unit: [u8; 0] = []; - let pending = Outcome::Pending(PendingOutcome { message: CANARY.into() }); - let root = text("root", "x"); - vec![ - ("result-thing1-flat", rmp_serde::to_vec_named(&flat).unwrap()), - // A surface whose root is an arm key the Node union does not declare: 14 is the first key - // Node does not declare (Slot is 13). - ( - "node-unknown-arm", - rmp_serde::to_vec(&("provider.a", "main", 1i64, CANARY, (14i32, (CANARY,)), unit)).unwrap(), - ), - // A result whose outcome is an arm key the Outcome union does not declare. - ("outcome-unknown-arm", rmp_serde::to_vec(&("inv-1", 1i32, (4i32, (CANARY,)))).unwrap()), - // A result with a fourth slot past the last declared one. - ( - "result-extra-slot", - rmp_serde::to_vec(&("inv-1", 1i32, (0i32, ("working",)), CANARY)).unwrap(), - ), - // Each domain refusal is a tuple of real values with one slot out of domain. - // A result at seq 0. - ("result-seq-zero", rmp_serde::to_vec(&("inv-1", 0i32, &pending)).unwrap()), - // A surface at version -1. - ( - "surface-version-negative", - rmp_serde::to_vec(&("provider.a", "main", -1i64, CANARY, &root, unit)).unwrap(), - ), - // A surface whose label holds a dot, so its key would be ambiguous. - ( - "surface-label-dotted", - rmp_serde::to_vec(&("provider.a", "b.c", 1i64, CANARY, &root, unit)).unwrap(), - ), - // An asset whose width is negative. - ( - "asset-extent-negative", - rmp_serde::to_vec(&("provider.a", "icons", 1i64, [("gear", "image/png", CANARY, -5i32, 32i32)])).unwrap(), - ), - // A colour channel past the u8 leaf. - ("rgba-channel-out-of-range", rmp_serde::to_vec(&(256i32, 0i32, 0i32, 255i32)).unwrap()), - ] -} - -#[test] -fn refusal_cases() { - let payloads: std::collections::BTreeMap<_, _> = refusal_payloads().into_iter().collect(); - let committed = |name: &str| golden::check(&goldens_dir(), &format!("{name}.bin"), &payloads[name]); - - // Stored under their key, each is refused naming the kind and the key, never a value. - let cases: [(&str, &str, &str); 7] = [ - ("result-thing1-flat", "gamecult.thing.command_result", "thing:result:inv-1.1"), - ("node-unknown-arm", "gamecult.thing.surface", "thing:surface:provider.a.main"), - ("outcome-unknown-arm", "gamecult.thing.command_result", "thing:result:inv-1.1"), - ("result-seq-zero", "gamecult.thing.command_result", "thing:result:inv-1.0"), - ("surface-version-negative", "gamecult.thing.surface", "thing:surface:provider.a.main"), - ("surface-label-dotted", "gamecult.thing.surface", "thing:surface:provider.a.b.c"), - ("asset-extent-negative", "gamecult.thing.asset_catalog", "thing:asset_catalog:provider.a.icons"), - ]; - for (name, kind, key) in cases { - let mut cache = CultCache::new(); - ThingContract.register_entries(&mut cache).unwrap(); - let bytes = committed(name); - let error = match kind { - "gamecult.thing.surface" => { - cache.put_envelope::(envelope::(key, bytes)).unwrap_err() - } - "gamecult.thing.asset_catalog" => { - cache.put_envelope::(envelope::(key, bytes)).unwrap_err() - } - _ => cache.put_envelope::(envelope::(key, bytes)).unwrap_err(), - }; - let message = format!("{error:#}"); - assert!(message.contains(kind), "{name}: the error names the kind: {message}"); - assert!(message.contains(key), "{name}: the error names the record key: {message}"); - assert!(!message.contains(CANARY), "{name}: the error echoed a value: {message}"); - } - - // Decoded directly, the refusal names the union and the arm key, and never the payload. - for (name, union, key) in [("node-unknown-arm", "Node", "14"), ("outcome-unknown-arm", "Outcome", "4")] { - let bytes = committed(name); - let message = if union == "Node" { - rmp_serde::from_slice::(&bytes).unwrap_err().to_string() - } else { - rmp_serde::from_slice::(&bytes).unwrap_err().to_string() - }; - assert!(message.contains(union) && message.contains(key), "{name}: {message}"); - assert!(!message.contains(CANARY), "{name}: {message}"); - } - - // Decoded directly, a domain refusal names the domain and never the payload. - for (name, domain) in [ - ("result-seq-zero", "Seq"), - ("surface-version-negative", "Version"), - ("surface-label-dotted", "Segment"), - ("asset-extent-negative", "Count"), - ] { - let bytes = committed(name); - let message = match name { - "result-seq-zero" => rmp_serde::from_slice::(&bytes).unwrap_err().to_string(), - "asset-extent-negative" => rmp_serde::from_slice::(&bytes).unwrap_err().to_string(), - _ => rmp_serde::from_slice::(&bytes).unwrap_err().to_string(), - }; - assert!(message.contains(domain), "{name}: {message}"); - assert!(!message.contains(CANARY), "{name}: {message}"); - } - - // The u8 leaf refuses a channel past 255 when decoded as an Rgba. - let rgba = rmp_serde::from_slice::(&committed("rgba-channel-out-of-range")).unwrap_err(); - assert!(!rgba.to_string().contains(CANARY)); - - // An extra trailing slot is read (CultLib's extra-trailing-slots ruling: read, never written - // back). Whether a missing slot is refused is CultLib's rule, so no golden asserts it. - let mut answered = invocation(); - answered.invocation_id = "inv-1".into(); - let extra: CommandResult = rmp_serde::from_slice(&committed("result-extra-slot")).unwrap(); - assert_eq!(extra, CommandResult::pending(&answered, seq(1), "working")); -} - -#[test] -fn deep_tree() { - // A 64-deep Box chain. - let mut chain = text("leaf", "bottom"); - for depth in (0..64).rev() { - chain = boxed(&format!("deep-{depth}"), vec![chain]); - } - let deep = SurfaceDocument { - provider_id: ProviderId::new("provider.a"), - label: seg("deep"), - version: ver(1), - title: "deep".into(), - root: chain, - commands: vec![], - }; - // A surface of 1,000 nodes: the root, 998 texts and one box. - let mut wide_children: Vec = (0..998).map(|index| text(&format!("t{index}"), "x")).collect(); - wide_children.push(boxed("tail", vec![])); - let wide = SurfaceDocument { - provider_id: ProviderId::new("provider.a"), - label: seg("wide"), - version: ver(1), - title: "wide".into(), - root: boxed("root", wide_children), - commands: vec![], - }; - - let path = PathBuf::from(env!("CARGO_TARGET_TMPDIR")).join("deep-tree.cc"); - { - let mut cache = store::create(&path); - store::put_pinned(&mut cache, &deep.record_key(), &deep); - store::put_pinned(&mut cache, &wide.record_key(), &wide); - } - let cache = store::open(&path); - assert_eq!(cache.get::(&deep.record_key()).unwrap(), Some(deep)); - assert_eq!(cache.get::(&wide.record_key()).unwrap(), Some(wide)); -} diff --git a/crates/thing-contract/tests/goldens/.gitattributes b/crates/thing-contract/tests/goldens/.gitattributes deleted file mode 100644 index fa1385d..0000000 --- a/crates/thing-contract/tests/goldens/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -* -text diff --git a/crates/thing-contract/tests/goldens/README.md b/crates/thing-contract/tests/goldens/README.md deleted file mode 100644 index 6e2ed8e..0000000 --- a/crates/thing-contract/tests/goldens/README.md +++ /dev/null @@ -1,47 +0,0 @@ -# thing-contract goldens - -Written only by `crates/thing-contract/tests/goldens.rs`, with `THING_BLESS=1` set on that test. -Every other run compares byte for byte. The TypeScript and C# packages and core decode these files -and are held to the answers below; none of them writes one. - -Each `.bin` is the payload of one record: the positional slot array of its kind, as MessagePack. -A union value is `[armKey, [armSlots...]]`; a unit arm is `[key, []]`. An optional member is nil -when absent. Arm keys are fixed for v1. - -## Values (decode to the constructed value, re-encode to the same bytes) - -| File | Kind | Decodes to | -|---|---|---| -| `surface-all-arms.bin` | `gamecult.thing.surface.v1` | One surface with 13 of the 14 node arms (Box 0, Text 1, Image 2, Button 3, Toggle 4, Slider 5, TextInput 6 as both input kinds, Text 0 and Number 1, Select 7, Repeat 8, Overlay 9, Plot 10, Embed 11, Use 12; Slot 13 is in `composition-all-params`, a body being where a slot stands), a Box chain four levels deep, every text, number and bool source arm, every Format arm, both state sources, both member steps, every dimension and colour arm, and two declared commands | -| `composition-all-params.bin` | `gamecult.thing.composition.v1` | A composition with one parameter of each of the 7 kinds, whose body uses a composition with one argument of each of the 7 argument arms and places the body slot (Slot 13) last in its root's children | -| `invocation-all-inputs.bin` | `gamecult.thing.command_invocation.v1` | An invocation with a payload record of bin bytes and one captured input of each of the 4 input arms, source `go-button` and items `[outer, inner]` | -| `result-pending.bin` | `gamecult.thing.command_result.v1` | Outcome Pending, seq 1 | -| `result-completed.bin` | same | Outcome Completed with source version 8, drafts cleared, no effect | -| `result-completed-open-surface.bin` | same | Completed with no source version and the OpenSurface effect | -| `result-completed-open-external.bin` | same | Completed with the OpenExternal effect and a resume command | -| `result-denied.bin` | same | Denied naming a node | -| `result-denied-no-node.bin` | same | Denied with a nil node | -| `result-failed.bin` | same | Failed | -| `asset-catalog.bin` | `gamecult.thing.asset_catalog.v1` | Two assets | - -## Refusals and tolerance - -| File | Payload | Expected | -|---|---|---| -| `result-thing1-flat.bin` | a MessagePack map with named members, the shape a Thing 1 provider wrote for a command result | refused when stored as a command result; the error names the kind and the record key and never a value | -| `node-unknown-arm.bin` | a surface whose root node has arm key 14, which Node does not declare | refused; the error names the kind and the record key, and decoded directly it names the union Node and the key 14, and never a value | -| `outcome-unknown-arm.bin` | a result whose outcome has arm key 4, which Outcome does not declare | refused in the same way, naming the union Outcome and the key 4 | -| `result-extra-slot.bin` | a Pending result with a fourth slot past the last one declared | read: it decodes to the Pending result with seq 1 (CultLib's extra-trailing-slots ruling: read, never written back) | -| `result-seq-zero.bin` | a result whose seq slot is 0 | refused; the error names the kind and the record key, decoded directly it names Seq, and never a value | -| `surface-version-negative.bin` | a surface whose version slot is -1 | refused in the same way, naming Version | -| `surface-label-dotted.bin` | a surface whose label is `b.c` | refused in the same way, naming Segment: a label holds no dot, so a record key splits at its last dot | -| `asset-extent-negative.bin` | an asset catalog whose first asset has width -5 | refused in the same way, naming Count | -| `rgba-channel-out-of-range.bin` | the Rgba slot array `[256, 0, 0, 255]` | refused when decoded as an Rgba: a channel is a byte, 0 to 255 | - -Domain refusals are the contract's rule, which the TypeScript and C# packages mirror: each is held to refuse these files, without the leaf set a Rust `u8` or a checked newtype has. - -## The nil vector - -`nil-positions.tsv` is written only by `crates/thing-contract/tests/nil_positions.rs` (`THING_BLESS=1`). For every element inside an array, at every depth, of each value golden above (the eleven `.bin` files from `surface-all-arms` to `asset-catalog`), the test replaces that element with nil (`0xC0`) and decodes the whole payload with the Rust decode door, `rmp_serde::from_slice` into the golden's kind. A row is `golden`, `path` (dotted array indices from the root, e.g. `3.0.1`), the element's byte `start` and `end` in the golden, and `ACCEPT` or `REFUSE`. An accepted variant re-encodes to the spliced bytes. Maps are not walked. - -A slot is required exactly when its Rust type is not optional, so `REFUSE` rows are the required slots and `ACCEPT` rows the optional ones. The Rust decode door decides every row; the TypeScript and C# packages keep no list of required slots and are held to every row. diff --git a/crates/thing-contract/tests/goldens/asset-catalog.bin b/crates/thing-contract/tests/goldens/asset-catalog.bin deleted file mode 100644 index 9794336..0000000 Binary files a/crates/thing-contract/tests/goldens/asset-catalog.bin and /dev/null differ diff --git a/crates/thing-contract/tests/goldens/asset-extent-negative.bin b/crates/thing-contract/tests/goldens/asset-extent-negative.bin deleted file mode 100644 index 4c9e0ca..0000000 --- a/crates/thing-contract/tests/goldens/asset-extent-negative.bin +++ /dev/null @@ -1 +0,0 @@ -”ªprovider.a¥icons‘•¤gear©image/png¯CANARY-7f3a91c2û \ No newline at end of file diff --git a/crates/thing-contract/tests/goldens/composition-all-params.bin b/crates/thing-contract/tests/goldens/composition-all-params.bin deleted file mode 100644 index aeea9ed..0000000 Binary files a/crates/thing-contract/tests/goldens/composition-all-params.bin and /dev/null differ diff --git a/crates/thing-contract/tests/goldens/invocation-all-inputs.bin b/crates/thing-contract/tests/goldens/invocation-all-inputs.bin deleted file mode 100644 index 5eb52d7..0000000 Binary files a/crates/thing-contract/tests/goldens/invocation-all-inputs.bin and /dev/null differ diff --git a/crates/thing-contract/tests/goldens/nil-positions.tsv b/crates/thing-contract/tests/goldens/nil-positions.tsv deleted file mode 100644 index 3ee8ff9..0000000 --- a/crates/thing-contract/tests/goldens/nil-positions.tsv +++ /dev/null @@ -1,2875 +0,0 @@ -surface-all-arms 0 1 12 REFUSE -surface-all-arms 1 12 17 REFUSE -surface-all-arms 2 17 18 REFUSE -surface-all-arms 3 18 27 REFUSE -surface-all-arms 4 27 4638 REFUSE -surface-all-arms 4.0 28 29 REFUSE -surface-all-arms 4.1 29 4638 REFUSE -surface-all-arms 4.1.0 30 41 REFUSE -surface-all-arms 4.1.0.0 31 36 REFUSE -surface-all-arms 4.1.0.1 36 40 REFUSE -surface-all-arms 4.1.0.1.0 37 38 REFUSE -surface-all-arms 4.1.0.1.1 38 40 REFUSE -surface-all-arms 4.1.0.1.1.0 39 40 REFUSE -surface-all-arms 4.1.0.2 40 41 ACCEPT -surface-all-arms 4.1.1 41 242 REFUSE -surface-all-arms 4.1.1.0 44 47 REFUSE -surface-all-arms 4.1.1.0.0 45 46 REFUSE -surface-all-arms 4.1.1.0.1 46 47 REFUSE -surface-all-arms 4.1.1.1 47 50 REFUSE -surface-all-arms 4.1.1.1.0 48 49 REFUSE -surface-all-arms 4.1.1.1.1 49 50 REFUSE -surface-all-arms 4.1.1.2 50 53 REFUSE -surface-all-arms 4.1.1.2.0 51 52 REFUSE -surface-all-arms 4.1.1.2.1 52 53 REFUSE -surface-all-arms 4.1.1.3 53 78 REFUSE -surface-all-arms 4.1.1.3.0 54 66 REFUSE -surface-all-arms 4.1.1.3.0.0 55 56 REFUSE -surface-all-arms 4.1.1.3.0.1 56 66 REFUSE -surface-all-arms 4.1.1.3.0.1.0 57 66 REFUSE -surface-all-arms 4.1.1.3.1 66 78 REFUSE -surface-all-arms 4.1.1.3.1.0 67 68 REFUSE -surface-all-arms 4.1.1.3.1.1 68 78 REFUSE -surface-all-arms 4.1.1.3.1.1.0 69 78 REFUSE -surface-all-arms 4.1.1.4 78 127 REFUSE -surface-all-arms 4.1.1.4.0 79 91 REFUSE -surface-all-arms 4.1.1.4.0.0 80 81 REFUSE -surface-all-arms 4.1.1.4.0.1 81 91 REFUSE -surface-all-arms 4.1.1.4.0.1.0 82 91 REFUSE -surface-all-arms 4.1.1.4.1 91 103 REFUSE -surface-all-arms 4.1.1.4.1.0 92 93 REFUSE -surface-all-arms 4.1.1.4.1.1 93 103 REFUSE -surface-all-arms 4.1.1.4.1.1.0 94 103 REFUSE -surface-all-arms 4.1.1.4.2 103 115 REFUSE -surface-all-arms 4.1.1.4.2.0 104 105 REFUSE -surface-all-arms 4.1.1.4.2.1 105 115 REFUSE -surface-all-arms 4.1.1.4.2.1.0 106 115 REFUSE -surface-all-arms 4.1.1.4.3 115 127 REFUSE -surface-all-arms 4.1.1.4.3.0 116 117 REFUSE -surface-all-arms 4.1.1.4.3.1 117 127 REFUSE -surface-all-arms 4.1.1.4.3.1.0 118 127 REFUSE -surface-all-arms 4.1.1.5 127 140 REFUSE -surface-all-arms 4.1.1.5.0 128 131 REFUSE -surface-all-arms 4.1.1.5.0.0 129 130 REFUSE -surface-all-arms 4.1.1.5.0.1 130 131 REFUSE -surface-all-arms 4.1.1.5.1 131 134 REFUSE -surface-all-arms 4.1.1.5.1.0 132 133 REFUSE -surface-all-arms 4.1.1.5.1.1 133 134 REFUSE -surface-all-arms 4.1.1.5.2 134 137 REFUSE -surface-all-arms 4.1.1.5.2.0 135 136 REFUSE -surface-all-arms 4.1.1.5.2.1 136 137 REFUSE -surface-all-arms 4.1.1.5.3 137 140 REFUSE -surface-all-arms 4.1.1.5.3.0 138 139 REFUSE -surface-all-arms 4.1.1.5.3.1 139 140 REFUSE -surface-all-arms 4.1.1.6 140 156 REFUSE -surface-all-arms 4.1.1.6.0 141 153 REFUSE -surface-all-arms 4.1.1.6.0.0 142 143 REFUSE -surface-all-arms 4.1.1.6.0.1 143 153 REFUSE -surface-all-arms 4.1.1.6.0.1.0 144 153 REFUSE -surface-all-arms 4.1.1.6.1 153 156 REFUSE -surface-all-arms 4.1.1.6.1.0 154 155 REFUSE -surface-all-arms 4.1.1.6.1.1 155 156 REFUSE -surface-all-arms 4.1.1.7 156 181 REFUSE -surface-all-arms 4.1.1.7.0 157 169 REFUSE -surface-all-arms 4.1.1.7.0.0 158 159 REFUSE -surface-all-arms 4.1.1.7.0.1 159 169 REFUSE -surface-all-arms 4.1.1.7.0.1.0 160 169 REFUSE -surface-all-arms 4.1.1.7.1 169 181 REFUSE -surface-all-arms 4.1.1.7.1.0 170 171 REFUSE -surface-all-arms 4.1.1.7.1.1 171 181 REFUSE -surface-all-arms 4.1.1.7.1.1.0 172 181 REFUSE -surface-all-arms 4.1.1.8 181 188 REFUSE -surface-all-arms 4.1.1.8.0 182 185 REFUSE -surface-all-arms 4.1.1.8.0.0 183 184 REFUSE -surface-all-arms 4.1.1.8.0.1 184 185 REFUSE -surface-all-arms 4.1.1.8.1 185 188 REFUSE -surface-all-arms 4.1.1.8.1.0 186 187 REFUSE -surface-all-arms 4.1.1.8.1.1 187 188 REFUSE -surface-all-arms 4.1.1.9 188 191 REFUSE -surface-all-arms 4.1.1.9.0 189 190 REFUSE -surface-all-arms 4.1.1.9.1 190 191 REFUSE -surface-all-arms 4.1.1.10 191 204 REFUSE -surface-all-arms 4.1.1.10.0 192 195 REFUSE -surface-all-arms 4.1.1.10.0.0 193 194 REFUSE -surface-all-arms 4.1.1.10.0.1 194 195 REFUSE -surface-all-arms 4.1.1.10.1 195 198 REFUSE -surface-all-arms 4.1.1.10.1.0 196 197 REFUSE -surface-all-arms 4.1.1.10.1.1 197 198 REFUSE -surface-all-arms 4.1.1.10.2 198 201 REFUSE -surface-all-arms 4.1.1.10.2.0 199 200 REFUSE -surface-all-arms 4.1.1.10.2.1 200 201 REFUSE -surface-all-arms 4.1.1.10.3 201 204 REFUSE -surface-all-arms 4.1.1.10.3.0 202 203 REFUSE -surface-all-arms 4.1.1.10.3.1 203 204 REFUSE -surface-all-arms 4.1.1.11 204 207 REFUSE -surface-all-arms 4.1.1.11.0 205 206 REFUSE -surface-all-arms 4.1.1.11.1 206 207 REFUSE -surface-all-arms 4.1.1.12 207 210 REFUSE -surface-all-arms 4.1.1.12.0 208 209 REFUSE -surface-all-arms 4.1.1.12.1 209 210 REFUSE -surface-all-arms 4.1.1.13 210 213 REFUSE -surface-all-arms 4.1.1.13.0 211 212 REFUSE -surface-all-arms 4.1.1.13.1 212 213 REFUSE -surface-all-arms 4.1.1.14 213 216 REFUSE -surface-all-arms 4.1.1.14.0 214 215 REFUSE -surface-all-arms 4.1.1.14.1 215 216 REFUSE -surface-all-arms 4.1.1.15 216 219 REFUSE -surface-all-arms 4.1.1.15.0 217 218 REFUSE -surface-all-arms 4.1.1.15.1 218 219 REFUSE -surface-all-arms 4.1.1.16 219 228 REFUSE -surface-all-arms 4.1.1.17 228 237 REFUSE -surface-all-arms 4.1.1.18 237 240 REFUSE -surface-all-arms 4.1.1.18.0 238 239 REFUSE -surface-all-arms 4.1.1.18.1 239 240 REFUSE -surface-all-arms 4.1.1.19 240 241 REFUSE -surface-all-arms 4.1.1.20 241 242 REFUSE -surface-all-arms 4.1.2 242 254 REFUSE -surface-all-arms 4.1.2.0 243 244 ACCEPT -surface-all-arms 4.1.2.1 244 245 ACCEPT -surface-all-arms 4.1.2.2 245 254 REFUSE -surface-all-arms 4.1.3 254 257 REFUSE -surface-all-arms 4.1.3.0 255 256 REFUSE -surface-all-arms 4.1.3.1 256 257 REFUSE -surface-all-arms 4.1.4 257 4638 REFUSE -surface-all-arms 4.1.4.0 260 1518 REFUSE -surface-all-arms 4.1.4.0.0 261 262 REFUSE -surface-all-arms 4.1.4.0.1 262 1518 REFUSE -surface-all-arms 4.1.4.0.1.0 263 272 REFUSE -surface-all-arms 4.1.4.0.1.0.0 264 267 REFUSE -surface-all-arms 4.1.4.0.1.0.1 267 271 REFUSE -surface-all-arms 4.1.4.0.1.0.1.0 268 269 REFUSE -surface-all-arms 4.1.4.0.1.0.1.1 269 271 REFUSE -surface-all-arms 4.1.4.0.1.0.1.1.0 270 271 REFUSE -surface-all-arms 4.1.4.0.1.0.2 271 272 ACCEPT -surface-all-arms 4.1.4.0.1.1 272 473 REFUSE -surface-all-arms 4.1.4.0.1.1.0 275 278 REFUSE -surface-all-arms 4.1.4.0.1.1.0.0 276 277 REFUSE -surface-all-arms 4.1.4.0.1.1.0.1 277 278 REFUSE -surface-all-arms 4.1.4.0.1.1.1 278 281 REFUSE -surface-all-arms 4.1.4.0.1.1.1.0 279 280 REFUSE -surface-all-arms 4.1.4.0.1.1.1.1 280 281 REFUSE -surface-all-arms 4.1.4.0.1.1.2 281 284 REFUSE -surface-all-arms 4.1.4.0.1.1.2.0 282 283 REFUSE -surface-all-arms 4.1.4.0.1.1.2.1 283 284 REFUSE -surface-all-arms 4.1.4.0.1.1.3 284 309 REFUSE -surface-all-arms 4.1.4.0.1.1.3.0 285 297 REFUSE -surface-all-arms 4.1.4.0.1.1.3.0.0 286 287 REFUSE -surface-all-arms 4.1.4.0.1.1.3.0.1 287 297 REFUSE -surface-all-arms 4.1.4.0.1.1.3.0.1.0 288 297 REFUSE -surface-all-arms 4.1.4.0.1.1.3.1 297 309 REFUSE -surface-all-arms 4.1.4.0.1.1.3.1.0 298 299 REFUSE -surface-all-arms 4.1.4.0.1.1.3.1.1 299 309 REFUSE -surface-all-arms 4.1.4.0.1.1.3.1.1.0 300 309 REFUSE -surface-all-arms 4.1.4.0.1.1.4 309 358 REFUSE -surface-all-arms 4.1.4.0.1.1.4.0 310 322 REFUSE -surface-all-arms 4.1.4.0.1.1.4.0.0 311 312 REFUSE -surface-all-arms 4.1.4.0.1.1.4.0.1 312 322 REFUSE -surface-all-arms 4.1.4.0.1.1.4.0.1.0 313 322 REFUSE -surface-all-arms 4.1.4.0.1.1.4.1 322 334 REFUSE -surface-all-arms 4.1.4.0.1.1.4.1.0 323 324 REFUSE -surface-all-arms 4.1.4.0.1.1.4.1.1 324 334 REFUSE -surface-all-arms 4.1.4.0.1.1.4.1.1.0 325 334 REFUSE -surface-all-arms 4.1.4.0.1.1.4.2 334 346 REFUSE -surface-all-arms 4.1.4.0.1.1.4.2.0 335 336 REFUSE -surface-all-arms 4.1.4.0.1.1.4.2.1 336 346 REFUSE -surface-all-arms 4.1.4.0.1.1.4.2.1.0 337 346 REFUSE -surface-all-arms 4.1.4.0.1.1.4.3 346 358 REFUSE -surface-all-arms 4.1.4.0.1.1.4.3.0 347 348 REFUSE -surface-all-arms 4.1.4.0.1.1.4.3.1 348 358 REFUSE -surface-all-arms 4.1.4.0.1.1.4.3.1.0 349 358 REFUSE -surface-all-arms 4.1.4.0.1.1.5 358 371 REFUSE -surface-all-arms 4.1.4.0.1.1.5.0 359 362 REFUSE -surface-all-arms 4.1.4.0.1.1.5.0.0 360 361 REFUSE -surface-all-arms 4.1.4.0.1.1.5.0.1 361 362 REFUSE -surface-all-arms 4.1.4.0.1.1.5.1 362 365 REFUSE -surface-all-arms 4.1.4.0.1.1.5.1.0 363 364 REFUSE -surface-all-arms 4.1.4.0.1.1.5.1.1 364 365 REFUSE -surface-all-arms 4.1.4.0.1.1.5.2 365 368 REFUSE -surface-all-arms 4.1.4.0.1.1.5.2.0 366 367 REFUSE -surface-all-arms 4.1.4.0.1.1.5.2.1 367 368 REFUSE -surface-all-arms 4.1.4.0.1.1.5.3 368 371 REFUSE -surface-all-arms 4.1.4.0.1.1.5.3.0 369 370 REFUSE -surface-all-arms 4.1.4.0.1.1.5.3.1 370 371 REFUSE -surface-all-arms 4.1.4.0.1.1.6 371 387 REFUSE -surface-all-arms 4.1.4.0.1.1.6.0 372 384 REFUSE -surface-all-arms 4.1.4.0.1.1.6.0.0 373 374 REFUSE -surface-all-arms 4.1.4.0.1.1.6.0.1 374 384 REFUSE -surface-all-arms 4.1.4.0.1.1.6.0.1.0 375 384 REFUSE -surface-all-arms 4.1.4.0.1.1.6.1 384 387 REFUSE -surface-all-arms 4.1.4.0.1.1.6.1.0 385 386 REFUSE -surface-all-arms 4.1.4.0.1.1.6.1.1 386 387 REFUSE -surface-all-arms 4.1.4.0.1.1.7 387 412 REFUSE -surface-all-arms 4.1.4.0.1.1.7.0 388 400 REFUSE -surface-all-arms 4.1.4.0.1.1.7.0.0 389 390 REFUSE -surface-all-arms 4.1.4.0.1.1.7.0.1 390 400 REFUSE -surface-all-arms 4.1.4.0.1.1.7.0.1.0 391 400 REFUSE -surface-all-arms 4.1.4.0.1.1.7.1 400 412 REFUSE -surface-all-arms 4.1.4.0.1.1.7.1.0 401 402 REFUSE -surface-all-arms 4.1.4.0.1.1.7.1.1 402 412 REFUSE -surface-all-arms 4.1.4.0.1.1.7.1.1.0 403 412 REFUSE -surface-all-arms 4.1.4.0.1.1.8 412 419 REFUSE -surface-all-arms 4.1.4.0.1.1.8.0 413 416 REFUSE -surface-all-arms 4.1.4.0.1.1.8.0.0 414 415 REFUSE -surface-all-arms 4.1.4.0.1.1.8.0.1 415 416 REFUSE -surface-all-arms 4.1.4.0.1.1.8.1 416 419 REFUSE -surface-all-arms 4.1.4.0.1.1.8.1.0 417 418 REFUSE -surface-all-arms 4.1.4.0.1.1.8.1.1 418 419 REFUSE -surface-all-arms 4.1.4.0.1.1.9 419 422 REFUSE -surface-all-arms 4.1.4.0.1.1.9.0 420 421 REFUSE -surface-all-arms 4.1.4.0.1.1.9.1 421 422 REFUSE -surface-all-arms 4.1.4.0.1.1.10 422 435 REFUSE -surface-all-arms 4.1.4.0.1.1.10.0 423 426 REFUSE -surface-all-arms 4.1.4.0.1.1.10.0.0 424 425 REFUSE -surface-all-arms 4.1.4.0.1.1.10.0.1 425 426 REFUSE -surface-all-arms 4.1.4.0.1.1.10.1 426 429 REFUSE -surface-all-arms 4.1.4.0.1.1.10.1.0 427 428 REFUSE -surface-all-arms 4.1.4.0.1.1.10.1.1 428 429 REFUSE -surface-all-arms 4.1.4.0.1.1.10.2 429 432 REFUSE -surface-all-arms 4.1.4.0.1.1.10.2.0 430 431 REFUSE -surface-all-arms 4.1.4.0.1.1.10.2.1 431 432 REFUSE -surface-all-arms 4.1.4.0.1.1.10.3 432 435 REFUSE -surface-all-arms 4.1.4.0.1.1.10.3.0 433 434 REFUSE -surface-all-arms 4.1.4.0.1.1.10.3.1 434 435 REFUSE -surface-all-arms 4.1.4.0.1.1.11 435 438 REFUSE -surface-all-arms 4.1.4.0.1.1.11.0 436 437 REFUSE -surface-all-arms 4.1.4.0.1.1.11.1 437 438 REFUSE -surface-all-arms 4.1.4.0.1.1.12 438 441 REFUSE -surface-all-arms 4.1.4.0.1.1.12.0 439 440 REFUSE -surface-all-arms 4.1.4.0.1.1.12.1 440 441 REFUSE -surface-all-arms 4.1.4.0.1.1.13 441 444 REFUSE -surface-all-arms 4.1.4.0.1.1.13.0 442 443 REFUSE -surface-all-arms 4.1.4.0.1.1.13.1 443 444 REFUSE -surface-all-arms 4.1.4.0.1.1.14 444 447 REFUSE -surface-all-arms 4.1.4.0.1.1.14.0 445 446 REFUSE -surface-all-arms 4.1.4.0.1.1.14.1 446 447 REFUSE -surface-all-arms 4.1.4.0.1.1.15 447 450 REFUSE -surface-all-arms 4.1.4.0.1.1.15.0 448 449 REFUSE -surface-all-arms 4.1.4.0.1.1.15.1 449 450 REFUSE -surface-all-arms 4.1.4.0.1.1.16 450 459 REFUSE -surface-all-arms 4.1.4.0.1.1.17 459 468 REFUSE -surface-all-arms 4.1.4.0.1.1.18 468 471 REFUSE -surface-all-arms 4.1.4.0.1.1.18.0 469 470 REFUSE -surface-all-arms 4.1.4.0.1.1.18.1 470 471 REFUSE -surface-all-arms 4.1.4.0.1.1.19 471 472 REFUSE -surface-all-arms 4.1.4.0.1.1.20 472 473 REFUSE -surface-all-arms 4.1.4.0.1.2 473 485 REFUSE -surface-all-arms 4.1.4.0.1.2.0 474 475 ACCEPT -surface-all-arms 4.1.4.0.1.2.1 475 476 ACCEPT -surface-all-arms 4.1.4.0.1.2.2 476 485 REFUSE -surface-all-arms 4.1.4.0.1.3 485 488 REFUSE -surface-all-arms 4.1.4.0.1.3.0 486 487 REFUSE -surface-all-arms 4.1.4.0.1.3.1 487 488 REFUSE -surface-all-arms 4.1.4.0.1.4 488 1518 REFUSE -surface-all-arms 4.1.4.0.1.4.0 489 1518 REFUSE -surface-all-arms 4.1.4.0.1.4.0.0 490 491 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1 491 1518 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.0 492 501 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.0.0 493 496 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.0.1 496 500 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.0.1.0 497 498 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.0.1.1 498 500 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.0.1.1.0 499 500 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.0.2 500 501 ACCEPT -surface-all-arms 4.1.4.0.1.4.0.1.1 501 702 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.0 504 507 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.0.0 505 506 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.0.1 506 507 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.1 507 510 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.1.0 508 509 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.1.1 509 510 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.2 510 513 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.2.0 511 512 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.2.1 512 513 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.3 513 538 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.3.0 514 526 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.3.0.0 515 516 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.3.0.1 516 526 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.3.0.1.0 517 526 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.3.1 526 538 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.3.1.0 527 528 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.3.1.1 528 538 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.3.1.1.0 529 538 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.4 538 587 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.4.0 539 551 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.4.0.0 540 541 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.4.0.1 541 551 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.4.0.1.0 542 551 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.4.1 551 563 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.4.1.0 552 553 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.4.1.1 553 563 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.4.1.1.0 554 563 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.4.2 563 575 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.4.2.0 564 565 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.4.2.1 565 575 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.4.2.1.0 566 575 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.4.3 575 587 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.4.3.0 576 577 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.4.3.1 577 587 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.4.3.1.0 578 587 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.5 587 600 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.5.0 588 591 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.5.0.0 589 590 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.5.0.1 590 591 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.5.1 591 594 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.5.1.0 592 593 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.5.1.1 593 594 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.5.2 594 597 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.5.2.0 595 596 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.5.2.1 596 597 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.5.3 597 600 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.5.3.0 598 599 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.5.3.1 599 600 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.6 600 616 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.6.0 601 613 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.6.0.0 602 603 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.6.0.1 603 613 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.6.0.1.0 604 613 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.6.1 613 616 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.6.1.0 614 615 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.6.1.1 615 616 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.7 616 641 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.7.0 617 629 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.7.0.0 618 619 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.7.0.1 619 629 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.7.0.1.0 620 629 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.7.1 629 641 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.7.1.0 630 631 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.7.1.1 631 641 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.7.1.1.0 632 641 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.8 641 648 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.8.0 642 645 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.8.0.0 643 644 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.8.0.1 644 645 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.8.1 645 648 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.8.1.0 646 647 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.8.1.1 647 648 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.9 648 651 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.9.0 649 650 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.9.1 650 651 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.10 651 664 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.10.0 652 655 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.10.0.0 653 654 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.10.0.1 654 655 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.10.1 655 658 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.10.1.0 656 657 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.10.1.1 657 658 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.10.2 658 661 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.10.2.0 659 660 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.10.2.1 660 661 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.10.3 661 664 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.10.3.0 662 663 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.10.3.1 663 664 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.11 664 667 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.11.0 665 666 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.11.1 666 667 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.12 667 670 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.12.0 668 669 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.12.1 669 670 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.13 670 673 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.13.0 671 672 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.13.1 672 673 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.14 673 676 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.14.0 674 675 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.14.1 675 676 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.15 676 679 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.15.0 677 678 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.15.1 678 679 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.16 679 688 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.17 688 697 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.18 697 700 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.18.0 698 699 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.18.1 699 700 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.19 700 701 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.1.20 701 702 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.2 702 714 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.2.0 703 704 ACCEPT -surface-all-arms 4.1.4.0.1.4.0.1.2.1 704 705 ACCEPT -surface-all-arms 4.1.4.0.1.4.0.1.2.2 705 714 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.3 714 717 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.3.0 715 716 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.3.1 716 717 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4 717 1518 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0 718 1518 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.0 719 720 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1 720 1518 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.0 721 730 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.0.0 722 725 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.0.1 725 729 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.0.1.0 726 727 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.0.1.1 727 729 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.0.1.1.0 728 729 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.0.2 729 730 ACCEPT -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1 730 931 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.0 733 736 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.0.0 734 735 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.0.1 735 736 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.1 736 739 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.1.0 737 738 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.1.1 738 739 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.2 739 742 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.2.0 740 741 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.2.1 741 742 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.3 742 767 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.3.0 743 755 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.3.0.0 744 745 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.3.0.1 745 755 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.3.0.1.0 746 755 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.3.1 755 767 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.3.1.0 756 757 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.3.1.1 757 767 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.3.1.1.0 758 767 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.4 767 816 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.4.0 768 780 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.4.0.0 769 770 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.4.0.1 770 780 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.4.0.1.0 771 780 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.4.1 780 792 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.4.1.0 781 782 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.4.1.1 782 792 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.4.1.1.0 783 792 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.4.2 792 804 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.4.2.0 793 794 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.4.2.1 794 804 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.4.2.1.0 795 804 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.4.3 804 816 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.4.3.0 805 806 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.4.3.1 806 816 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.4.3.1.0 807 816 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.5 816 829 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.5.0 817 820 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.5.0.0 818 819 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.5.0.1 819 820 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.5.1 820 823 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.5.1.0 821 822 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.5.1.1 822 823 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.5.2 823 826 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.5.2.0 824 825 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.5.2.1 825 826 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.5.3 826 829 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.5.3.0 827 828 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.5.3.1 828 829 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.6 829 845 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.6.0 830 842 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.6.0.0 831 832 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.6.0.1 832 842 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.6.0.1.0 833 842 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.6.1 842 845 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.6.1.0 843 844 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.6.1.1 844 845 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.7 845 870 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.7.0 846 858 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.7.0.0 847 848 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.7.0.1 848 858 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.7.0.1.0 849 858 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.7.1 858 870 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.7.1.0 859 860 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.7.1.1 860 870 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.7.1.1.0 861 870 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.8 870 877 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.8.0 871 874 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.8.0.0 872 873 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.8.0.1 873 874 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.8.1 874 877 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.8.1.0 875 876 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.8.1.1 876 877 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.9 877 880 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.9.0 878 879 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.9.1 879 880 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.10 880 893 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.10.0 881 884 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.10.0.0 882 883 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.10.0.1 883 884 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.10.1 884 887 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.10.1.0 885 886 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.10.1.1 886 887 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.10.2 887 890 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.10.2.0 888 889 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.10.2.1 889 890 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.10.3 890 893 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.10.3.0 891 892 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.10.3.1 892 893 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.11 893 896 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.11.0 894 895 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.11.1 895 896 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.12 896 899 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.12.0 897 898 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.12.1 898 899 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.13 899 902 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.13.0 900 901 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.13.1 901 902 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.14 902 905 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.14.0 903 904 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.14.1 904 905 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.15 905 908 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.15.0 906 907 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.15.1 907 908 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.16 908 917 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.17 917 926 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.18 926 929 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.18.0 927 928 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.18.1 928 929 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.19 929 930 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.1.20 930 931 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.2 931 943 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.2.0 932 933 ACCEPT -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.2.1 933 934 ACCEPT -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.2.2 934 943 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.3 943 946 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.3.0 944 945 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.3.1 945 946 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4 946 1518 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0 947 1518 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.0 948 949 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1 949 1518 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.0 950 959 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.0.0 951 954 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.0.1 954 958 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.0.1.0 955 956 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.0.1.1 956 958 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.0.1.1.0 957 958 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.0.2 958 959 ACCEPT -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1 959 1160 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.0 962 965 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.0.0 963 964 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.0.1 964 965 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.1 965 968 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.1.0 966 967 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.1.1 967 968 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.2 968 971 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.2.0 969 970 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.2.1 970 971 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.3 971 996 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.3.0 972 984 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.3.0.0 973 974 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.3.0.1 974 984 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.3.0.1.0 975 984 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.3.1 984 996 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.3.1.0 985 986 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.3.1.1 986 996 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.3.1.1.0 987 996 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4 996 1045 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.0 997 1009 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.0.0 998 999 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.0.1 999 1009 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.0.1.0 1000 1009 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.1 1009 1021 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.1.0 1010 1011 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.1.1 1011 1021 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.1.1.0 1012 1021 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.2 1021 1033 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.2.0 1022 1023 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.2.1 1023 1033 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.2.1.0 1024 1033 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.3 1033 1045 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.3.0 1034 1035 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.3.1 1035 1045 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.3.1.0 1036 1045 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5 1045 1058 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.0 1046 1049 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.0.0 1047 1048 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.0.1 1048 1049 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.1 1049 1052 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.1.0 1050 1051 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.1.1 1051 1052 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.2 1052 1055 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.2.0 1053 1054 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.2.1 1054 1055 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.3 1055 1058 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.3.0 1056 1057 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.3.1 1057 1058 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.6 1058 1074 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.6.0 1059 1071 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.6.0.0 1060 1061 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.6.0.1 1061 1071 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.6.0.1.0 1062 1071 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.6.1 1071 1074 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.6.1.0 1072 1073 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.6.1.1 1073 1074 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.7 1074 1099 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.7.0 1075 1087 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.7.0.0 1076 1077 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.7.0.1 1077 1087 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.7.0.1.0 1078 1087 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.7.1 1087 1099 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.7.1.0 1088 1089 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.7.1.1 1089 1099 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.7.1.1.0 1090 1099 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.8 1099 1106 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.8.0 1100 1103 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.8.0.0 1101 1102 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.8.0.1 1102 1103 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.8.1 1103 1106 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.8.1.0 1104 1105 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.8.1.1 1105 1106 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.9 1106 1109 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.9.0 1107 1108 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.9.1 1108 1109 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10 1109 1122 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.0 1110 1113 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.0.0 1111 1112 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.0.1 1112 1113 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.1 1113 1116 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.1.0 1114 1115 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.1.1 1115 1116 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.2 1116 1119 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.2.0 1117 1118 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.2.1 1118 1119 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.3 1119 1122 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.3.0 1120 1121 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.3.1 1121 1122 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.11 1122 1125 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.11.0 1123 1124 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.11.1 1124 1125 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.12 1125 1128 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.12.0 1126 1127 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.12.1 1127 1128 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.13 1128 1131 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.13.0 1129 1130 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.13.1 1130 1131 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.14 1131 1134 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.14.0 1132 1133 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.14.1 1133 1134 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.15 1134 1137 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.15.0 1135 1136 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.15.1 1136 1137 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.16 1137 1146 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.17 1146 1155 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.18 1155 1158 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.18.0 1156 1157 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.18.1 1157 1158 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.19 1158 1159 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.1.20 1159 1160 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.2 1160 1172 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.2.0 1161 1162 ACCEPT -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.2.1 1162 1163 ACCEPT -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.2.2 1163 1172 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.3 1172 1175 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.3.0 1173 1174 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.3.1 1174 1175 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4 1175 1518 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0 1176 1518 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.0 1177 1178 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1 1178 1518 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.0 1179 1205 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.0.0 1180 1188 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.0.1 1188 1196 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.0.1.0 1189 1190 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.0.1.1 1190 1196 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.0.1.1.0 1191 1196 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.0.2 1196 1205 ACCEPT -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.0.2.0 1197 1198 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.0.2.1 1198 1205 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.0.2.1.0 1199 1205 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1 1205 1433 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.0 1208 1211 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.0.0 1209 1210 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.0.1 1210 1211 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.1 1211 1214 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.1.0 1212 1213 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.1.1 1213 1214 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.2 1214 1217 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.2.0 1215 1216 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.2.1 1216 1217 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.3 1217 1242 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.3.0 1218 1230 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.3.0.0 1219 1220 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.3.0.1 1220 1230 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.3.0.1.0 1221 1230 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.3.1 1230 1242 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.3.1.0 1231 1232 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.3.1.1 1232 1242 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.3.1.1.0 1233 1242 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4 1242 1291 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.0 1243 1255 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.0.0 1244 1245 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.0.1 1245 1255 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.0.1.0 1246 1255 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.1 1255 1267 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.1.0 1256 1257 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.1.1 1257 1267 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.1.1.0 1258 1267 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.2 1267 1279 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.2.0 1268 1269 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.2.1 1269 1279 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.2.1.0 1270 1279 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.3 1279 1291 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.3.0 1280 1281 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.3.1 1281 1291 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.4.3.1.0 1282 1291 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5 1291 1304 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.0 1292 1295 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.0.0 1293 1294 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.0.1 1294 1295 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.1 1295 1298 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.1.0 1296 1297 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.1.1 1297 1298 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.2 1298 1301 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.2.0 1299 1300 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.2.1 1300 1301 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.3 1301 1304 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.3.0 1302 1303 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.5.3.1 1303 1304 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.6 1304 1320 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.6.0 1305 1317 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.6.0.0 1306 1307 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.6.0.1 1307 1317 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.6.0.1.0 1308 1317 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.6.1 1317 1320 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.6.1.0 1318 1319 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.6.1.1 1319 1320 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.7 1320 1345 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.7.0 1321 1333 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.7.0.0 1322 1323 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.7.0.1 1323 1333 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.7.0.1.0 1324 1333 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.7.1 1333 1345 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.7.1.0 1334 1335 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.7.1.1 1335 1345 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.7.1.1.0 1336 1345 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.8 1345 1352 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.8.0 1346 1349 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.8.0.0 1347 1348 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.8.0.1 1348 1349 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.8.1 1349 1352 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.8.1.0 1350 1351 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.8.1.1 1351 1352 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.9 1352 1355 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.9.0 1353 1354 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.9.1 1354 1355 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10 1355 1368 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.0 1356 1359 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.0.0 1357 1358 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.0.1 1358 1359 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.1 1359 1362 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.1.0 1360 1361 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.1.1 1361 1362 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.2 1362 1365 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.2.0 1363 1364 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.2.1 1364 1365 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.3 1365 1368 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.3.0 1366 1367 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.10.3.1 1367 1368 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.11 1368 1371 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.11.0 1369 1370 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.11.1 1370 1371 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.12 1371 1374 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.12.0 1372 1373 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.12.1 1373 1374 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.13 1374 1377 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.13.0 1375 1376 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.13.1 1376 1377 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.14 1377 1380 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.14.0 1378 1379 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.14.1 1379 1380 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.15 1380 1383 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.15.0 1381 1382 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.15.1 1382 1383 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.16 1383 1392 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.17 1392 1401 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.18 1401 1404 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.18.0 1402 1403 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.18.1 1403 1404 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.19 1404 1429 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.19.0 1405 1417 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.19.0.0 1406 1407 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.19.0.1 1407 1417 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.19.0.1.0 1408 1417 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.19.1 1417 1429 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.19.1.0 1418 1419 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.19.1.1 1419 1429 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.19.1.1.0 1420 1429 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.20 1429 1433 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.20.0 1430 1433 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.20.0.0 1431 1432 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.20.0.1 1432 1433 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.2 1433 1479 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.2.0 1434 1452 ACCEPT -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.2.0.0 1435 1436 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.2.0.1 1436 1452 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.2.0.1.0 1437 1452 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.2.1 1452 1470 ACCEPT -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.2.1.0 1453 1461 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.2.1.0.0 1454 1455 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.2.1.0.1 1455 1461 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.2.1.0.1.0 1456 1457 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.2.1.0.1.1 1457 1458 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.2.1.0.1.2 1458 1459 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.2.1.0.1.3 1459 1461 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.2.1.1 1461 1470 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.2.2 1470 1479 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.3 1479 1482 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.3.0 1480 1481 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.3.1 1481 1482 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.4 1482 1518 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0 1483 1518 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.0 1484 1485 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1 1485 1518 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.0 1486 1502 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.0.0 1487 1497 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.0.1 1497 1501 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.0.1.0 1498 1499 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.0.1.1 1499 1501 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.0.1.1.0 1500 1501 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.0.2 1501 1502 ACCEPT -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1 1502 1510 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.0 1503 1504 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.1 1504 1510 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.1.1.0 1505 1510 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.2 1510 1515 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.3 1515 1516 REFUSE -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.4 1516 1517 ACCEPT -surface-all-arms 4.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.4.0.1.5 1517 1518 REFUSE -surface-all-arms 4.1.4.1 1518 1609 REFUSE -surface-all-arms 4.1.4.1.0 1519 1520 REFUSE -surface-all-arms 4.1.4.1.1 1520 1609 REFUSE -surface-all-arms 4.1.4.1.1.0 1521 1535 REFUSE -surface-all-arms 4.1.4.1.1.0.0 1522 1530 REFUSE -surface-all-arms 4.1.4.1.1.0.1 1530 1534 REFUSE -surface-all-arms 4.1.4.1.1.0.1.0 1531 1532 REFUSE -surface-all-arms 4.1.4.1.1.0.1.1 1532 1534 REFUSE -surface-all-arms 4.1.4.1.1.0.1.1.0 1533 1534 REFUSE -surface-all-arms 4.1.4.1.1.0.2 1534 1535 ACCEPT -surface-all-arms 4.1.4.1.1.1 1535 1600 REFUSE -surface-all-arms 4.1.4.1.1.1.0 1536 1537 REFUSE -surface-all-arms 4.1.4.1.1.1.1 1537 1600 REFUSE -surface-all-arms 4.1.4.1.1.1.1.0 1538 1581 REFUSE -surface-all-arms 4.1.4.1.1.1.1.0.0 1539 1540 REFUSE -surface-all-arms 4.1.4.1.1.1.1.0.1 1540 1581 REFUSE -surface-all-arms 4.1.4.1.1.1.1.0.1.0 1541 1552 ACCEPT -surface-all-arms 4.1.4.1.1.1.1.0.1.1 1552 1575 REFUSE -surface-all-arms 4.1.4.1.1.1.1.0.1.2 1575 1581 REFUSE -surface-all-arms 4.1.4.1.1.1.1.1 1581 1592 REFUSE -surface-all-arms 4.1.4.1.1.1.1.1.0 1582 1592 REFUSE -surface-all-arms 4.1.4.1.1.1.1.1.0.0 1583 1592 REFUSE -surface-all-arms 4.1.4.1.1.1.1.1.0.0.0 1584 1585 REFUSE -surface-all-arms 4.1.4.1.1.1.1.1.0.0.1 1585 1592 REFUSE -surface-all-arms 4.1.4.1.1.1.1.1.0.0.1.0 1586 1592 REFUSE -surface-all-arms 4.1.4.1.1.1.1.2 1592 1600 ACCEPT -surface-all-arms 4.1.4.1.1.1.1.2.0 1593 1594 REFUSE -surface-all-arms 4.1.4.1.1.1.1.2.1 1594 1600 REFUSE -surface-all-arms 4.1.4.1.1.1.1.2.1.0 1595 1597 REFUSE -surface-all-arms 4.1.4.1.1.1.1.2.1.1 1597 1600 REFUSE -surface-all-arms 4.1.4.1.1.2 1600 1606 REFUSE -surface-all-arms 4.1.4.1.1.3 1606 1607 REFUSE -surface-all-arms 4.1.4.1.1.4 1607 1608 ACCEPT -surface-all-arms 4.1.4.1.1.5 1608 1609 REFUSE -surface-all-arms 4.1.4.2 1609 1646 REFUSE -surface-all-arms 4.1.4.2.0 1610 1611 REFUSE -surface-all-arms 4.1.4.2.1 1611 1646 REFUSE -surface-all-arms 4.1.4.2.1.0 1612 1622 REFUSE -surface-all-arms 4.1.4.2.1.0.0 1613 1617 REFUSE -surface-all-arms 4.1.4.2.1.0.1 1617 1621 REFUSE -surface-all-arms 4.1.4.2.1.0.1.0 1618 1619 REFUSE -surface-all-arms 4.1.4.2.1.0.1.1 1619 1621 REFUSE -surface-all-arms 4.1.4.2.1.0.1.1.0 1620 1621 REFUSE -surface-all-arms 4.1.4.2.1.0.2 1621 1622 ACCEPT -surface-all-arms 4.1.4.2.1.1 1622 1628 REFUSE -surface-all-arms 4.1.4.2.1.2 1628 1633 REFUSE -surface-all-arms 4.1.4.2.1.3 1633 1636 REFUSE -surface-all-arms 4.1.4.2.1.3.0 1634 1635 REFUSE -surface-all-arms 4.1.4.2.1.3.1 1635 1636 REFUSE -surface-all-arms 4.1.4.2.1.4 1636 1646 REFUSE -surface-all-arms 4.1.4.2.1.4.0 1637 1638 REFUSE -surface-all-arms 4.1.4.2.1.4.1 1638 1646 REFUSE -surface-all-arms 4.1.4.2.1.4.1.0 1639 1646 REFUSE -surface-all-arms 4.1.4.3 1646 1755 REFUSE -surface-all-arms 4.1.4.3.0 1647 1648 REFUSE -surface-all-arms 4.1.4.3.1 1648 1755 REFUSE -surface-all-arms 4.1.4.3.1.0 1649 1658 REFUSE -surface-all-arms 4.1.4.3.1.0.0 1650 1653 REFUSE -surface-all-arms 4.1.4.3.1.0.1 1653 1657 REFUSE -surface-all-arms 4.1.4.3.1.0.1.0 1654 1655 REFUSE -surface-all-arms 4.1.4.3.1.0.1.1 1655 1657 REFUSE -surface-all-arms 4.1.4.3.1.0.1.1.0 1656 1657 REFUSE -surface-all-arms 4.1.4.3.1.0.2 1657 1658 ACCEPT -surface-all-arms 4.1.4.3.1.1 1658 1691 REFUSE -surface-all-arms 4.1.4.3.1.1.0 1659 1691 REFUSE -surface-all-arms 4.1.4.3.1.1.0.0 1660 1661 REFUSE -surface-all-arms 4.1.4.3.1.1.0.1 1661 1691 REFUSE -surface-all-arms 4.1.4.3.1.1.0.1.0 1662 1677 REFUSE -surface-all-arms 4.1.4.3.1.1.0.1.0.0 1663 1672 REFUSE -surface-all-arms 4.1.4.3.1.1.0.1.0.1 1672 1676 REFUSE -surface-all-arms 4.1.4.3.1.1.0.1.0.1.0 1673 1674 REFUSE -surface-all-arms 4.1.4.3.1.1.0.1.0.1.1 1674 1676 REFUSE -surface-all-arms 4.1.4.3.1.1.0.1.0.1.1.0 1675 1676 REFUSE -surface-all-arms 4.1.4.3.1.1.0.1.0.2 1676 1677 ACCEPT -surface-all-arms 4.1.4.3.1.1.0.1.1 1677 1683 REFUSE -surface-all-arms 4.1.4.3.1.1.0.1.1.0 1678 1679 REFUSE -surface-all-arms 4.1.4.3.1.1.0.1.1.1 1679 1683 REFUSE -surface-all-arms 4.1.4.3.1.1.0.1.1.1.0 1680 1683 REFUSE -surface-all-arms 4.1.4.3.1.1.0.1.2 1683 1688 REFUSE -surface-all-arms 4.1.4.3.1.1.0.1.3 1688 1689 REFUSE -surface-all-arms 4.1.4.3.1.1.0.1.4 1689 1690 ACCEPT -surface-all-arms 4.1.4.3.1.1.0.1.5 1690 1691 REFUSE -surface-all-arms 4.1.4.3.1.2 1691 1697 REFUSE -surface-all-arms 4.1.4.3.1.2.0 1692 1693 REFUSE -surface-all-arms 4.1.4.3.1.2.1 1693 1697 REFUSE -surface-all-arms 4.1.4.3.1.2.1.0 1694 1697 REFUSE -surface-all-arms 4.1.4.3.1.3 1697 1755 REFUSE -surface-all-arms 4.1.4.3.1.3.0 1698 1699 REFUSE -surface-all-arms 4.1.4.3.1.3.1 1699 1755 REFUSE -surface-all-arms 4.1.4.3.1.3.1.0 1700 1743 REFUSE -surface-all-arms 4.1.4.3.1.3.1.0.0 1701 1702 REFUSE -surface-all-arms 4.1.4.3.1.3.1.0.1 1702 1743 REFUSE -surface-all-arms 4.1.4.3.1.3.1.0.1.0 1703 1714 ACCEPT -surface-all-arms 4.1.4.3.1.3.1.0.1.1 1714 1737 REFUSE -surface-all-arms 4.1.4.3.1.3.1.0.1.2 1737 1743 REFUSE -surface-all-arms 4.1.4.3.1.3.1.1 1743 1754 REFUSE -surface-all-arms 4.1.4.3.1.3.1.1.0 1744 1754 REFUSE -surface-all-arms 4.1.4.3.1.3.1.1.0.0 1745 1754 REFUSE -surface-all-arms 4.1.4.3.1.3.1.1.0.0.0 1746 1747 REFUSE -surface-all-arms 4.1.4.3.1.3.1.1.0.0.1 1747 1754 REFUSE -surface-all-arms 4.1.4.3.1.3.1.1.0.0.1.0 1748 1754 REFUSE -surface-all-arms 4.1.4.3.1.3.1.2 1754 1755 ACCEPT -surface-all-arms 4.1.4.4 1755 1837 REFUSE -surface-all-arms 4.1.4.4.0 1756 1757 REFUSE -surface-all-arms 4.1.4.4.1 1757 1837 REFUSE -surface-all-arms 4.1.4.4.1.0 1758 1769 REFUSE -surface-all-arms 4.1.4.4.1.0.0 1759 1764 REFUSE -surface-all-arms 4.1.4.4.1.0.1 1764 1768 REFUSE -surface-all-arms 4.1.4.4.1.0.1.0 1765 1766 REFUSE -surface-all-arms 4.1.4.4.1.0.1.1 1766 1768 REFUSE -surface-all-arms 4.1.4.4.1.0.1.1.0 1767 1768 REFUSE -surface-all-arms 4.1.4.4.1.0.2 1768 1769 ACCEPT -surface-all-arms 4.1.4.4.1.1 1769 1827 REFUSE -surface-all-arms 4.1.4.4.1.1.0 1770 1771 REFUSE -surface-all-arms 4.1.4.4.1.1.1 1771 1827 REFUSE -surface-all-arms 4.1.4.4.1.1.1.0 1772 1815 REFUSE -surface-all-arms 4.1.4.4.1.1.1.0.0 1773 1774 REFUSE -surface-all-arms 4.1.4.4.1.1.1.0.1 1774 1815 REFUSE -surface-all-arms 4.1.4.4.1.1.1.0.1.0 1775 1786 ACCEPT -surface-all-arms 4.1.4.4.1.1.1.0.1.1 1786 1809 REFUSE -surface-all-arms 4.1.4.4.1.1.1.0.1.2 1809 1815 REFUSE -surface-all-arms 4.1.4.4.1.1.1.1 1815 1826 REFUSE -surface-all-arms 4.1.4.4.1.1.1.1.0 1816 1826 REFUSE -surface-all-arms 4.1.4.4.1.1.1.1.0.0 1817 1826 REFUSE -surface-all-arms 4.1.4.4.1.1.1.1.0.0.0 1818 1819 REFUSE -surface-all-arms 4.1.4.4.1.1.1.1.0.0.1 1819 1826 REFUSE -surface-all-arms 4.1.4.4.1.1.1.1.0.0.1.0 1820 1826 REFUSE -surface-all-arms 4.1.4.4.1.1.1.2 1826 1827 ACCEPT -surface-all-arms 4.1.4.4.1.2 1827 1837 REFUSE -surface-all-arms 4.1.4.4.1.2.0 1828 1829 REFUSE -surface-all-arms 4.1.4.4.1.2.1 1829 1837 REFUSE -surface-all-arms 4.1.4.4.1.2.1.0 1830 1837 REFUSE -surface-all-arms 4.1.4.5 1837 1961 REFUSE -surface-all-arms 4.1.4.5.0 1838 1839 REFUSE -surface-all-arms 4.1.4.5.1 1839 1961 REFUSE -surface-all-arms 4.1.4.5.1.0 1840 1852 REFUSE -surface-all-arms 4.1.4.5.1.0.0 1841 1847 REFUSE -surface-all-arms 4.1.4.5.1.0.1 1847 1851 REFUSE -surface-all-arms 4.1.4.5.1.0.1.0 1848 1849 REFUSE -surface-all-arms 4.1.4.5.1.0.1.1 1849 1851 REFUSE -surface-all-arms 4.1.4.5.1.0.1.1.0 1850 1851 REFUSE -surface-all-arms 4.1.4.5.1.0.2 1851 1852 ACCEPT -surface-all-arms 4.1.4.5.1.1 1852 1861 REFUSE -surface-all-arms 4.1.4.5.1.2 1861 1870 REFUSE -surface-all-arms 4.1.4.5.1.3 1870 1879 REFUSE -surface-all-arms 4.1.4.5.1.4 1879 1948 REFUSE -surface-all-arms 4.1.4.5.1.4.0 1880 1881 REFUSE -surface-all-arms 4.1.4.5.1.4.1 1881 1948 REFUSE -surface-all-arms 4.1.4.5.1.4.1.0 1882 1925 REFUSE -surface-all-arms 4.1.4.5.1.4.1.0.0 1883 1884 REFUSE -surface-all-arms 4.1.4.5.1.4.1.0.1 1884 1925 REFUSE -surface-all-arms 4.1.4.5.1.4.1.0.1.0 1885 1896 ACCEPT -surface-all-arms 4.1.4.5.1.4.1.0.1.1 1896 1919 REFUSE -surface-all-arms 4.1.4.5.1.4.1.0.1.2 1919 1925 REFUSE -surface-all-arms 4.1.4.5.1.4.1.1 1925 1940 REFUSE -surface-all-arms 4.1.4.5.1.4.1.1.0 1926 1940 REFUSE -surface-all-arms 4.1.4.5.1.4.1.1.0.0 1927 1936 REFUSE -surface-all-arms 4.1.4.5.1.4.1.1.0.0.0 1928 1929 REFUSE -surface-all-arms 4.1.4.5.1.4.1.1.0.0.1 1929 1936 REFUSE -surface-all-arms 4.1.4.5.1.4.1.1.0.0.1.0 1930 1936 REFUSE -surface-all-arms 4.1.4.5.1.4.1.1.0.1 1936 1940 REFUSE -surface-all-arms 4.1.4.5.1.4.1.1.0.1.0 1937 1938 REFUSE -surface-all-arms 4.1.4.5.1.4.1.1.0.1.1 1938 1940 REFUSE -surface-all-arms 4.1.4.5.1.4.1.1.0.1.1.0 1939 1940 REFUSE -surface-all-arms 4.1.4.5.1.4.1.2 1940 1948 ACCEPT -surface-all-arms 4.1.4.5.1.4.1.2.0 1941 1942 REFUSE -surface-all-arms 4.1.4.5.1.4.1.2.1 1942 1948 REFUSE -surface-all-arms 4.1.4.5.1.4.1.2.1.0 1943 1944 REFUSE -surface-all-arms 4.1.4.5.1.4.1.2.1.1 1944 1945 REFUSE -surface-all-arms 4.1.4.5.1.4.1.2.1.2 1945 1948 ACCEPT -surface-all-arms 4.1.4.5.1.5 1948 1961 REFUSE -surface-all-arms 4.1.4.5.1.5.0 1949 1950 REFUSE -surface-all-arms 4.1.4.5.1.5.1 1950 1961 REFUSE -surface-all-arms 4.1.4.5.1.5.1.0 1951 1961 REFUSE -surface-all-arms 4.1.4.6 1961 2014 REFUSE -surface-all-arms 4.1.4.6.0 1962 1963 REFUSE -surface-all-arms 4.1.4.6.1 1963 2014 REFUSE -surface-all-arms 4.1.4.6.1.0 1964 1981 REFUSE -surface-all-arms 4.1.4.6.1.0.0 1965 1976 REFUSE -surface-all-arms 4.1.4.6.1.0.1 1976 1980 REFUSE -surface-all-arms 4.1.4.6.1.0.1.0 1977 1978 REFUSE -surface-all-arms 4.1.4.6.1.0.1.1 1978 1980 REFUSE -surface-all-arms 4.1.4.6.1.0.1.1.0 1979 1980 REFUSE -surface-all-arms 4.1.4.6.1.0.2 1980 1981 ACCEPT -surface-all-arms 4.1.4.6.1.1 1981 1982 REFUSE -surface-all-arms 4.1.4.6.1.2 1982 1985 REFUSE -surface-all-arms 4.1.4.6.1.2.0 1983 1984 REFUSE -surface-all-arms 4.1.4.6.1.2.1 1984 1985 REFUSE -surface-all-arms 4.1.4.6.1.3 1985 1993 REFUSE -surface-all-arms 4.1.4.6.1.3.0 1986 1987 REFUSE -surface-all-arms 4.1.4.6.1.3.1 1987 1993 REFUSE -surface-all-arms 4.1.4.6.1.3.1.0 1988 1993 REFUSE -surface-all-arms 4.1.4.6.1.4 1993 2004 REFUSE -surface-all-arms 4.1.4.6.1.4.0 1994 1995 REFUSE -surface-all-arms 4.1.4.6.1.4.1 1995 2004 REFUSE -surface-all-arms 4.1.4.6.1.4.1.0 1996 2004 REFUSE -surface-all-arms 4.1.4.6.1.5 2004 2014 REFUSE -surface-all-arms 4.1.4.6.1.5.0 2005 2006 REFUSE -surface-all-arms 4.1.4.6.1.5.1 2006 2014 REFUSE -surface-all-arms 4.1.4.6.1.5.1.0 2007 2014 REFUSE -surface-all-arms 4.1.4.7 2014 2070 REFUSE -surface-all-arms 4.1.4.7.0 2015 2016 REFUSE -surface-all-arms 4.1.4.7.1 2016 2070 REFUSE -surface-all-arms 4.1.4.7.1.0 2017 2035 REFUSE -surface-all-arms 4.1.4.7.1.0.0 2018 2030 REFUSE -surface-all-arms 4.1.4.7.1.0.1 2030 2034 REFUSE -surface-all-arms 4.1.4.7.1.0.1.0 2031 2032 REFUSE -surface-all-arms 4.1.4.7.1.0.1.1 2032 2034 REFUSE -surface-all-arms 4.1.4.7.1.0.1.1.0 2033 2034 REFUSE -surface-all-arms 4.1.4.7.1.0.2 2034 2035 ACCEPT -surface-all-arms 4.1.4.7.1.1 2035 2036 REFUSE -surface-all-arms 4.1.4.7.1.2 2036 2039 REFUSE -surface-all-arms 4.1.4.7.1.2.0 2037 2038 REFUSE -surface-all-arms 4.1.4.7.1.2.1 2038 2039 REFUSE -surface-all-arms 4.1.4.7.1.3 2039 2048 REFUSE -surface-all-arms 4.1.4.7.1.3.0 2040 2041 REFUSE -surface-all-arms 4.1.4.7.1.3.1 2041 2048 REFUSE -surface-all-arms 4.1.4.7.1.3.1.0 2042 2048 REFUSE -surface-all-arms 4.1.4.7.1.4 2048 2059 REFUSE -surface-all-arms 4.1.4.7.1.4.0 2049 2050 REFUSE -surface-all-arms 4.1.4.7.1.4.1 2050 2059 REFUSE -surface-all-arms 4.1.4.7.1.4.1.0 2051 2059 REFUSE -surface-all-arms 4.1.4.7.1.5 2059 2070 REFUSE -surface-all-arms 4.1.4.7.1.5.0 2060 2061 REFUSE -surface-all-arms 4.1.4.7.1.5.1 2061 2070 REFUSE -surface-all-arms 4.1.4.7.1.5.1.0 2062 2070 REFUSE -surface-all-arms 4.1.4.8 2070 2161 REFUSE -surface-all-arms 4.1.4.8.0 2071 2072 REFUSE -surface-all-arms 4.1.4.8.1 2072 2161 REFUSE -surface-all-arms 4.1.4.8.1.0 2073 2084 REFUSE -surface-all-arms 4.1.4.8.1.0.0 2074 2079 REFUSE -surface-all-arms 4.1.4.8.1.0.1 2079 2083 REFUSE -surface-all-arms 4.1.4.8.1.0.1.0 2080 2081 REFUSE -surface-all-arms 4.1.4.8.1.0.1.1 2081 2083 REFUSE -surface-all-arms 4.1.4.8.1.0.1.1.0 2082 2083 REFUSE -surface-all-arms 4.1.4.8.1.0.2 2083 2084 ACCEPT -surface-all-arms 4.1.4.8.1.1 2084 2097 REFUSE -surface-all-arms 4.1.4.8.1.1.0 2085 2086 REFUSE -surface-all-arms 4.1.4.8.1.1.1 2086 2097 REFUSE -surface-all-arms 4.1.4.8.1.1.1.0 2087 2097 REFUSE -surface-all-arms 4.1.4.8.1.1.1.0.0 2088 2097 REFUSE -surface-all-arms 4.1.4.8.1.1.1.0.0.0 2089 2091 REFUSE -surface-all-arms 4.1.4.8.1.1.1.0.0.1 2091 2097 REFUSE -surface-all-arms 4.1.4.8.1.2 2097 2153 REFUSE -surface-all-arms 4.1.4.8.1.2.0 2098 2141 REFUSE -surface-all-arms 4.1.4.8.1.2.0.0 2099 2100 REFUSE -surface-all-arms 4.1.4.8.1.2.0.1 2100 2141 REFUSE -surface-all-arms 4.1.4.8.1.2.0.1.0 2101 2112 ACCEPT -surface-all-arms 4.1.4.8.1.2.0.1.1 2112 2135 REFUSE -surface-all-arms 4.1.4.8.1.2.0.1.2 2135 2141 REFUSE -surface-all-arms 4.1.4.8.1.2.1 2141 2152 REFUSE -surface-all-arms 4.1.4.8.1.2.1.0 2142 2152 REFUSE -surface-all-arms 4.1.4.8.1.2.1.0.0 2143 2152 REFUSE -surface-all-arms 4.1.4.8.1.2.1.0.0.0 2144 2145 REFUSE -surface-all-arms 4.1.4.8.1.2.1.0.0.1 2145 2152 REFUSE -surface-all-arms 4.1.4.8.1.2.1.0.0.1.0 2146 2152 REFUSE -surface-all-arms 4.1.4.8.1.2.2 2152 2153 ACCEPT -surface-all-arms 4.1.4.8.1.3 2153 2161 REFUSE -surface-all-arms 4.1.4.8.1.3.0 2154 2155 REFUSE -surface-all-arms 4.1.4.8.1.3.1 2155 2161 REFUSE -surface-all-arms 4.1.4.8.1.3.1.0 2156 2161 REFUSE -surface-all-arms 4.1.4.9 2161 2294 REFUSE -surface-all-arms 4.1.4.9.0 2162 2163 REFUSE -surface-all-arms 4.1.4.9.1 2163 2294 REFUSE -surface-all-arms 4.1.4.9.1.0 2164 2181 REFUSE -surface-all-arms 4.1.4.9.1.0.0 2165 2176 REFUSE -surface-all-arms 4.1.4.9.1.0.1 2176 2180 REFUSE -surface-all-arms 4.1.4.9.1.0.1.0 2177 2178 REFUSE -surface-all-arms 4.1.4.9.1.0.1.1 2178 2180 REFUSE -surface-all-arms 4.1.4.9.1.0.1.1.0 2179 2180 REFUSE -surface-all-arms 4.1.4.9.1.0.2 2180 2181 ACCEPT -surface-all-arms 4.1.4.9.1.1 2181 2271 REFUSE -surface-all-arms 4.1.4.9.1.1.0 2182 2183 REFUSE -surface-all-arms 4.1.4.9.1.1.1 2183 2271 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0 2184 2253 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.0 2185 2186 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.1 2186 2253 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.1.0 2187 2230 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.1.0.0 2188 2189 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.1.0.1 2189 2230 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.1.0.1.0 2190 2201 ACCEPT -surface-all-arms 4.1.4.9.1.1.1.0.1.0.1.1 2201 2224 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.1.0.1.2 2224 2230 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.1.1 2230 2245 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.1.1.0 2231 2245 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.1.1.0.0 2232 2241 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.1.1.0.0.0 2233 2234 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.1.1.0.0.1 2234 2241 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.1.1.0.0.1.0 2235 2241 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.1.1.0.1 2241 2245 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.1.1.0.1.0 2242 2243 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.1.1.0.1.1 2243 2245 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.1.1.0.1.1.0 2244 2245 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.1.2 2245 2253 ACCEPT -surface-all-arms 4.1.4.9.1.1.1.0.1.2.0 2246 2247 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.1.2.1 2247 2253 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.1.2.1.0 2248 2249 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.1.2.1.1 2249 2250 REFUSE -surface-all-arms 4.1.4.9.1.1.1.0.1.2.1.2 2250 2253 ACCEPT -surface-all-arms 4.1.4.9.1.1.1.1 2253 2261 REFUSE -surface-all-arms 4.1.4.9.1.1.1.1.0 2254 2261 REFUSE -surface-all-arms 4.1.4.9.1.1.1.1.0.0 2255 2261 REFUSE -surface-all-arms 4.1.4.9.1.1.1.1.0.0.0 2256 2257 REFUSE -surface-all-arms 4.1.4.9.1.1.1.1.0.0.1 2257 2261 REFUSE -surface-all-arms 4.1.4.9.1.1.1.1.0.0.1.0 2258 2261 REFUSE -surface-all-arms 4.1.4.9.1.1.1.2 2261 2271 REFUSE -surface-all-arms 4.1.4.9.1.1.1.2.0 2262 2271 REFUSE -surface-all-arms 4.1.4.9.1.1.1.2.0.0 2263 2271 REFUSE -surface-all-arms 4.1.4.9.1.1.1.2.0.0.0 2264 2265 REFUSE -surface-all-arms 4.1.4.9.1.1.1.2.0.0.1 2265 2271 REFUSE -surface-all-arms 4.1.4.9.1.1.1.2.0.0.1.0 2266 2271 REFUSE -surface-all-arms 4.1.4.9.1.2 2271 2286 REFUSE -surface-all-arms 4.1.4.9.1.2.0 2272 2275 REFUSE -surface-all-arms 4.1.4.9.1.2.0.0 2273 2274 REFUSE -surface-all-arms 4.1.4.9.1.2.0.1 2274 2275 REFUSE -surface-all-arms 4.1.4.9.1.2.1 2275 2285 REFUSE -surface-all-arms 4.1.4.9.1.2.1.0 2276 2285 REFUSE -surface-all-arms 4.1.4.9.1.2.1.0.0 2277 2285 REFUSE -surface-all-arms 4.1.4.9.1.2.1.0.0.0 2278 2279 REFUSE -surface-all-arms 4.1.4.9.1.2.1.0.0.1 2279 2285 REFUSE -surface-all-arms 4.1.4.9.1.2.1.0.0.1.0 2280 2285 REFUSE -surface-all-arms 4.1.4.9.1.2.2 2285 2286 ACCEPT -surface-all-arms 4.1.4.9.1.3 2286 2294 REFUSE -surface-all-arms 4.1.4.9.1.3.0 2287 2288 REFUSE -surface-all-arms 4.1.4.9.1.3.1 2288 2294 REFUSE -surface-all-arms 4.1.4.9.1.3.1.0 2289 2294 REFUSE -surface-all-arms 4.1.4.10 2294 2391 REFUSE -surface-all-arms 4.1.4.10.0 2295 2296 REFUSE -surface-all-arms 4.1.4.10.1 2296 2391 REFUSE -surface-all-arms 4.1.4.10.1.0 2297 2308 REFUSE -surface-all-arms 4.1.4.10.1.0.0 2298 2303 REFUSE -surface-all-arms 4.1.4.10.1.0.1 2303 2307 REFUSE -surface-all-arms 4.1.4.10.1.0.1.0 2304 2305 REFUSE -surface-all-arms 4.1.4.10.1.0.1.1 2305 2307 REFUSE -surface-all-arms 4.1.4.10.1.0.1.1.0 2306 2307 REFUSE -surface-all-arms 4.1.4.10.1.0.2 2307 2308 ACCEPT -surface-all-arms 4.1.4.10.1.1 2308 2340 REFUSE -surface-all-arms 4.1.4.10.1.1.0 2309 2310 REFUSE -surface-all-arms 4.1.4.10.1.1.1 2310 2340 REFUSE -surface-all-arms 4.1.4.10.1.1.1.0 2311 2312 ACCEPT -surface-all-arms 4.1.4.10.1.1.1.1 2312 2335 REFUSE -surface-all-arms 4.1.4.10.1.1.1.2 2335 2340 REFUSE -surface-all-arms 4.1.4.10.1.2 2340 2348 REFUSE -surface-all-arms 4.1.4.10.1.2.0 2341 2348 REFUSE -surface-all-arms 4.1.4.10.1.2.0.0 2342 2348 REFUSE -surface-all-arms 4.1.4.10.1.2.0.0.0 2343 2344 REFUSE -surface-all-arms 4.1.4.10.1.2.0.0.1 2344 2348 REFUSE -surface-all-arms 4.1.4.10.1.2.0.0.1.0 2345 2348 REFUSE -surface-all-arms 4.1.4.10.1.3 2348 2391 REFUSE -surface-all-arms 4.1.4.10.1.3.0 2349 2350 REFUSE -surface-all-arms 4.1.4.10.1.3.1 2350 2391 REFUSE -surface-all-arms 4.1.4.10.1.3.1.0 2351 2366 REFUSE -surface-all-arms 4.1.4.10.1.3.1.0.0 2352 2361 REFUSE -surface-all-arms 4.1.4.10.1.3.1.0.1 2361 2365 REFUSE -surface-all-arms 4.1.4.10.1.3.1.0.1.0 2362 2363 REFUSE -surface-all-arms 4.1.4.10.1.3.1.0.1.1 2363 2365 REFUSE -surface-all-arms 4.1.4.10.1.3.1.0.1.1.0 2364 2365 REFUSE -surface-all-arms 4.1.4.10.1.3.1.0.2 2365 2366 ACCEPT -surface-all-arms 4.1.4.10.1.3.1.1 2366 2383 REFUSE -surface-all-arms 4.1.4.10.1.3.1.1.0 2367 2368 REFUSE -surface-all-arms 4.1.4.10.1.3.1.1.1 2368 2383 REFUSE -surface-all-arms 4.1.4.10.1.3.1.1.1.0 2369 2372 REFUSE -surface-all-arms 4.1.4.10.1.3.1.1.1.0.0 2370 2371 REFUSE -surface-all-arms 4.1.4.10.1.3.1.1.1.0.1 2371 2372 REFUSE -surface-all-arms 4.1.4.10.1.3.1.1.1.1 2372 2382 REFUSE -surface-all-arms 4.1.4.10.1.3.1.1.1.1.0 2373 2382 REFUSE -surface-all-arms 4.1.4.10.1.3.1.1.1.1.0.0 2374 2382 REFUSE -surface-all-arms 4.1.4.10.1.3.1.1.1.1.0.0.0 2375 2376 REFUSE -surface-all-arms 4.1.4.10.1.3.1.1.1.1.0.0.1 2376 2382 REFUSE -surface-all-arms 4.1.4.10.1.3.1.1.1.1.0.0.1.0 2377 2382 REFUSE -surface-all-arms 4.1.4.10.1.3.1.1.1.2 2382 2383 ACCEPT -surface-all-arms 4.1.4.10.1.3.1.2 2383 2388 REFUSE -surface-all-arms 4.1.4.10.1.3.1.3 2388 2389 REFUSE -surface-all-arms 4.1.4.10.1.3.1.4 2389 2390 ACCEPT -surface-all-arms 4.1.4.10.1.3.1.5 2390 2391 REFUSE -surface-all-arms 4.1.4.11 2391 2456 REFUSE -surface-all-arms 4.1.4.11.0 2392 2393 REFUSE -surface-all-arms 4.1.4.11.1 2393 2456 REFUSE -surface-all-arms 4.1.4.11.1.0 2394 2405 REFUSE -surface-all-arms 4.1.4.11.1.0.0 2395 2400 REFUSE -surface-all-arms 4.1.4.11.1.0.1 2400 2404 REFUSE -surface-all-arms 4.1.4.11.1.0.1.0 2401 2402 REFUSE -surface-all-arms 4.1.4.11.1.0.1.1 2402 2404 REFUSE -surface-all-arms 4.1.4.11.1.0.1.1.0 2403 2404 REFUSE -surface-all-arms 4.1.4.11.1.0.2 2404 2405 ACCEPT -surface-all-arms 4.1.4.11.1.1 2405 2411 REFUSE -surface-all-arms 4.1.4.11.1.1.0 2406 2407 REFUSE -surface-all-arms 4.1.4.11.1.1.1 2407 2411 REFUSE -surface-all-arms 4.1.4.11.1.1.1.0 2408 2411 REFUSE -surface-all-arms 4.1.4.11.1.2 2411 2412 REFUSE -surface-all-arms 4.1.4.11.1.3 2412 2421 REFUSE -surface-all-arms 4.1.4.11.1.3.0 2413 2414 REFUSE -surface-all-arms 4.1.4.11.1.3.1 2414 2421 REFUSE -surface-all-arms 4.1.4.11.1.3.1.0 2415 2421 REFUSE -surface-all-arms 4.1.4.11.1.4 2421 2456 REFUSE -surface-all-arms 4.1.4.11.1.4.0 2422 2456 REFUSE -surface-all-arms 4.1.4.11.1.4.0.0 2423 2424 REFUSE -surface-all-arms 4.1.4.11.1.4.0.1 2424 2456 REFUSE -surface-all-arms 4.1.4.11.1.4.0.1.0 2425 2441 REFUSE -surface-all-arms 4.1.4.11.1.4.0.1.0.0 2426 2436 REFUSE -surface-all-arms 4.1.4.11.1.4.0.1.0.1 2436 2440 REFUSE -surface-all-arms 4.1.4.11.1.4.0.1.0.1.0 2437 2438 REFUSE -surface-all-arms 4.1.4.11.1.4.0.1.0.1.1 2438 2440 REFUSE -surface-all-arms 4.1.4.11.1.4.0.1.0.1.1.0 2439 2440 REFUSE -surface-all-arms 4.1.4.11.1.4.0.1.0.2 2440 2441 ACCEPT -surface-all-arms 4.1.4.11.1.4.0.1.1 2441 2448 REFUSE -surface-all-arms 4.1.4.11.1.4.0.1.1.0 2442 2443 REFUSE -surface-all-arms 4.1.4.11.1.4.0.1.1.1 2443 2448 REFUSE -surface-all-arms 4.1.4.11.1.4.0.1.1.1.0 2444 2448 REFUSE -surface-all-arms 4.1.4.11.1.4.0.1.2 2448 2453 REFUSE -surface-all-arms 4.1.4.11.1.4.0.1.3 2453 2454 REFUSE -surface-all-arms 4.1.4.11.1.4.0.1.4 2454 2455 ACCEPT -surface-all-arms 4.1.4.11.1.4.0.1.5 2455 2456 REFUSE -surface-all-arms 4.1.4.12 2456 2486 REFUSE -surface-all-arms 4.1.4.12.0 2457 2458 REFUSE -surface-all-arms 4.1.4.12.1 2458 2486 REFUSE -surface-all-arms 4.1.4.12.1.0 2459 2472 REFUSE -surface-all-arms 4.1.4.12.1.0.0 2460 2467 REFUSE -surface-all-arms 4.1.4.12.1.0.1 2467 2471 REFUSE -surface-all-arms 4.1.4.12.1.0.1.0 2468 2469 REFUSE -surface-all-arms 4.1.4.12.1.0.1.1 2469 2471 REFUSE -surface-all-arms 4.1.4.12.1.0.1.1.0 2470 2471 REFUSE -surface-all-arms 4.1.4.12.1.0.2 2471 2472 ACCEPT -surface-all-arms 4.1.4.12.1.1 2472 2475 REFUSE -surface-all-arms 4.1.4.12.1.1.0 2473 2474 REFUSE -surface-all-arms 4.1.4.12.1.1.1 2474 2475 REFUSE -surface-all-arms 4.1.4.12.1.2 2475 2476 REFUSE -surface-all-arms 4.1.4.12.1.3 2476 2485 REFUSE -surface-all-arms 4.1.4.12.1.3.0 2477 2478 REFUSE -surface-all-arms 4.1.4.12.1.3.1 2478 2485 REFUSE -surface-all-arms 4.1.4.12.1.3.1.0 2479 2485 REFUSE -surface-all-arms 4.1.4.12.1.4 2485 2486 REFUSE -surface-all-arms 4.1.4.13 2486 2584 REFUSE -surface-all-arms 4.1.4.13.0 2487 2488 REFUSE -surface-all-arms 4.1.4.13.1 2488 2584 REFUSE -surface-all-arms 4.1.4.13.1.0 2489 2501 REFUSE -surface-all-arms 4.1.4.13.1.0.0 2490 2496 REFUSE -surface-all-arms 4.1.4.13.1.0.1 2496 2500 REFUSE -surface-all-arms 4.1.4.13.1.0.1.0 2497 2498 REFUSE -surface-all-arms 4.1.4.13.1.0.1.1 2498 2500 REFUSE -surface-all-arms 4.1.4.13.1.0.1.1.0 2499 2500 REFUSE -surface-all-arms 4.1.4.13.1.0.2 2500 2501 ACCEPT -surface-all-arms 4.1.4.13.1.1 2501 2561 REFUSE -surface-all-arms 4.1.4.13.1.1.0 2502 2545 REFUSE -surface-all-arms 4.1.4.13.1.1.0.0 2503 2504 REFUSE -surface-all-arms 4.1.4.13.1.1.0.1 2504 2545 REFUSE -surface-all-arms 4.1.4.13.1.1.0.1.0 2505 2516 ACCEPT -surface-all-arms 4.1.4.13.1.1.0.1.1 2516 2539 REFUSE -surface-all-arms 4.1.4.13.1.1.0.1.2 2539 2545 REFUSE -surface-all-arms 4.1.4.13.1.1.1 2545 2558 REFUSE -surface-all-arms 4.1.4.13.1.1.1.0 2546 2558 REFUSE -surface-all-arms 4.1.4.13.1.1.1.0.0 2547 2558 REFUSE -surface-all-arms 4.1.4.13.1.1.1.0.0.0 2548 2549 REFUSE -surface-all-arms 4.1.4.13.1.1.1.0.0.1 2549 2558 REFUSE -surface-all-arms 4.1.4.13.1.1.1.0.0.1.0 2550 2558 REFUSE -surface-all-arms 4.1.4.13.1.1.2 2558 2561 ACCEPT -surface-all-arms 4.1.4.13.1.1.2.0 2559 2560 REFUSE -surface-all-arms 4.1.4.13.1.1.2.1 2560 2561 REFUSE -surface-all-arms 4.1.4.13.1.2 2561 2564 REFUSE -surface-all-arms 4.1.4.13.1.2.0 2562 2563 REFUSE -surface-all-arms 4.1.4.13.1.2.1 2563 2564 REFUSE -surface-all-arms 4.1.4.13.1.3 2564 2573 ACCEPT -surface-all-arms 4.1.4.13.1.4 2573 2574 ACCEPT -surface-all-arms 4.1.4.13.1.5 2574 2575 ACCEPT -surface-all-arms 4.1.4.13.1.6 2575 2584 ACCEPT -surface-all-arms 4.1.4.14 2584 2637 REFUSE -surface-all-arms 4.1.4.14.0 2585 2586 REFUSE -surface-all-arms 4.1.4.14.1 2586 2637 REFUSE -surface-all-arms 4.1.4.14.1.0 2587 2602 REFUSE -surface-all-arms 4.1.4.14.1.0.0 2588 2597 REFUSE -surface-all-arms 4.1.4.14.1.0.1 2597 2601 REFUSE -surface-all-arms 4.1.4.14.1.0.1.0 2598 2599 REFUSE -surface-all-arms 4.1.4.14.1.0.1.1 2599 2601 REFUSE -surface-all-arms 4.1.4.14.1.0.1.1.0 2600 2601 REFUSE -surface-all-arms 4.1.4.14.1.0.2 2601 2602 ACCEPT -surface-all-arms 4.1.4.14.1.1 2602 2614 REFUSE -surface-all-arms 4.1.4.14.1.2 2614 2619 REFUSE -surface-all-arms 4.1.4.14.1.3 2619 2628 REFUSE -surface-all-arms 4.1.4.14.1.4 2628 2637 REFUSE -surface-all-arms 4.1.4.15 2637 2682 REFUSE -surface-all-arms 4.1.4.15.0 2638 2639 REFUSE -surface-all-arms 4.1.4.15.1 2639 2682 REFUSE -surface-all-arms 4.1.4.15.1.0 2640 2649 REFUSE -surface-all-arms 4.1.4.15.1.0.0 2641 2644 REFUSE -surface-all-arms 4.1.4.15.1.0.1 2644 2648 REFUSE -surface-all-arms 4.1.4.15.1.0.1.0 2645 2646 REFUSE -surface-all-arms 4.1.4.15.1.0.1.1 2646 2648 REFUSE -surface-all-arms 4.1.4.15.1.0.1.1.0 2647 2648 REFUSE -surface-all-arms 4.1.4.15.1.0.2 2648 2649 ACCEPT -surface-all-arms 4.1.4.15.1.1 2649 2671 REFUSE -surface-all-arms 4.1.4.15.1.1.0 2650 2660 REFUSE -surface-all-arms 4.1.4.15.1.1.1 2660 2670 REFUSE -surface-all-arms 4.1.4.15.1.1.2 2670 2671 REFUSE -surface-all-arms 4.1.4.15.1.2 2671 2682 REFUSE -surface-all-arms 4.1.4.15.1.2.0 2672 2682 REFUSE -surface-all-arms 4.1.4.15.1.2.0.0 2673 2677 REFUSE -surface-all-arms 4.1.4.15.1.2.0.1 2677 2682 REFUSE -surface-all-arms 4.1.4.15.1.2.0.1.0 2678 2679 REFUSE -surface-all-arms 4.1.4.15.1.2.0.1.1 2679 2682 REFUSE -surface-all-arms 4.1.4.15.1.2.0.1.1.0 2680 2682 REFUSE -surface-all-arms 4.1.4.16 2682 2764 REFUSE -surface-all-arms 4.1.4.16.0 2683 2684 REFUSE -surface-all-arms 4.1.4.16.1 2684 2764 REFUSE -surface-all-arms 4.1.4.16.1.0 2685 2702 REFUSE -surface-all-arms 4.1.4.16.1.0.0 2686 2697 REFUSE -surface-all-arms 4.1.4.16.1.0.1 2697 2701 REFUSE -surface-all-arms 4.1.4.16.1.0.1.0 2698 2699 REFUSE -surface-all-arms 4.1.4.16.1.0.1.1 2699 2701 REFUSE -surface-all-arms 4.1.4.16.1.0.1.1.0 2700 2701 REFUSE -surface-all-arms 4.1.4.16.1.0.2 2701 2702 ACCEPT -surface-all-arms 4.1.4.16.1.1 2702 2757 REFUSE -surface-all-arms 4.1.4.16.1.1.0 2703 2746 REFUSE -surface-all-arms 4.1.4.16.1.1.0.0 2704 2705 REFUSE -surface-all-arms 4.1.4.16.1.1.0.1 2705 2746 REFUSE -surface-all-arms 4.1.4.16.1.1.0.1.0 2706 2717 ACCEPT -surface-all-arms 4.1.4.16.1.1.0.1.1 2717 2740 REFUSE -surface-all-arms 4.1.4.16.1.1.0.1.2 2740 2746 REFUSE -surface-all-arms 4.1.4.16.1.1.1 2746 2754 REFUSE -surface-all-arms 4.1.4.16.1.1.1.0 2747 2754 REFUSE -surface-all-arms 4.1.4.16.1.1.1.0.0 2748 2754 REFUSE -surface-all-arms 4.1.4.16.1.1.1.0.0.0 2749 2750 REFUSE -surface-all-arms 4.1.4.16.1.1.1.0.0.1 2750 2754 REFUSE -surface-all-arms 4.1.4.16.1.1.1.0.0.1.0 2751 2754 REFUSE -surface-all-arms 4.1.4.16.1.1.2 2754 2757 ACCEPT -surface-all-arms 4.1.4.16.1.1.2.0 2755 2756 REFUSE -surface-all-arms 4.1.4.16.1.1.2.1 2756 2757 REFUSE -surface-all-arms 4.1.4.16.1.2 2757 2760 REFUSE -surface-all-arms 4.1.4.16.1.2.0 2758 2759 REFUSE -surface-all-arms 4.1.4.16.1.2.1 2759 2760 REFUSE -surface-all-arms 4.1.4.16.1.3 2760 2761 ACCEPT -surface-all-arms 4.1.4.16.1.4 2761 2762 ACCEPT -surface-all-arms 4.1.4.16.1.5 2762 2763 ACCEPT -surface-all-arms 4.1.4.16.1.6 2763 2764 ACCEPT -surface-all-arms 4.1.4.17 2764 2845 REFUSE -surface-all-arms 4.1.4.17.0 2765 2766 REFUSE -surface-all-arms 4.1.4.17.1 2766 2845 REFUSE -surface-all-arms 4.1.4.17.1.0 2767 2783 REFUSE -surface-all-arms 4.1.4.17.1.0.0 2768 2778 REFUSE -surface-all-arms 4.1.4.17.1.0.1 2778 2782 REFUSE -surface-all-arms 4.1.4.17.1.0.1.0 2779 2780 REFUSE -surface-all-arms 4.1.4.17.1.0.1.1 2780 2782 REFUSE -surface-all-arms 4.1.4.17.1.0.1.1.0 2781 2782 REFUSE -surface-all-arms 4.1.4.17.1.0.2 2782 2783 ACCEPT -surface-all-arms 4.1.4.17.1.1 2783 2838 REFUSE -surface-all-arms 4.1.4.17.1.1.0 2784 2827 REFUSE -surface-all-arms 4.1.4.17.1.1.0.0 2785 2786 REFUSE -surface-all-arms 4.1.4.17.1.1.0.1 2786 2827 REFUSE -surface-all-arms 4.1.4.17.1.1.0.1.0 2787 2798 ACCEPT -surface-all-arms 4.1.4.17.1.1.0.1.1 2798 2821 REFUSE -surface-all-arms 4.1.4.17.1.1.0.1.2 2821 2827 REFUSE -surface-all-arms 4.1.4.17.1.1.1 2827 2835 REFUSE -surface-all-arms 4.1.4.17.1.1.1.0 2828 2835 REFUSE -surface-all-arms 4.1.4.17.1.1.1.0.0 2829 2835 REFUSE -surface-all-arms 4.1.4.17.1.1.1.0.0.0 2830 2831 REFUSE -surface-all-arms 4.1.4.17.1.1.1.0.0.1 2831 2835 REFUSE -surface-all-arms 4.1.4.17.1.1.1.0.0.1.0 2832 2835 REFUSE -surface-all-arms 4.1.4.17.1.1.2 2835 2838 ACCEPT -surface-all-arms 4.1.4.17.1.1.2.0 2836 2837 REFUSE -surface-all-arms 4.1.4.17.1.1.2.1 2837 2838 REFUSE -surface-all-arms 4.1.4.17.1.2 2838 2841 REFUSE -surface-all-arms 4.1.4.17.1.2.0 2839 2840 REFUSE -surface-all-arms 4.1.4.17.1.2.1 2840 2841 REFUSE -surface-all-arms 4.1.4.17.1.3 2841 2842 ACCEPT -surface-all-arms 4.1.4.17.1.4 2842 2843 ACCEPT -surface-all-arms 4.1.4.17.1.5 2843 2844 ACCEPT -surface-all-arms 4.1.4.17.1.6 2844 2845 ACCEPT -surface-all-arms 4.1.4.18 2845 2882 REFUSE -surface-all-arms 4.1.4.18.0 2846 2847 REFUSE -surface-all-arms 4.1.4.18.1 2847 2882 REFUSE -surface-all-arms 4.1.4.18.1.0 2848 2864 REFUSE -surface-all-arms 4.1.4.18.1.0.0 2849 2859 REFUSE -surface-all-arms 4.1.4.18.1.0.1 2859 2863 REFUSE -surface-all-arms 4.1.4.18.1.0.1.0 2860 2861 REFUSE -surface-all-arms 4.1.4.18.1.0.1.1 2861 2863 REFUSE -surface-all-arms 4.1.4.18.1.0.1.1.0 2862 2863 REFUSE -surface-all-arms 4.1.4.18.1.0.2 2863 2864 ACCEPT -surface-all-arms 4.1.4.18.1.1 2864 2870 REFUSE -surface-all-arms 4.1.4.18.1.2 2870 2875 REFUSE -surface-all-arms 4.1.4.18.1.3 2875 2878 REFUSE -surface-all-arms 4.1.4.18.1.3.0 2876 2877 REFUSE -surface-all-arms 4.1.4.18.1.3.1 2877 2878 REFUSE -surface-all-arms 4.1.4.18.1.4 2878 2882 REFUSE -surface-all-arms 4.1.4.18.1.4.0 2879 2880 REFUSE -surface-all-arms 4.1.4.18.1.4.1 2880 2882 REFUSE -surface-all-arms 4.1.4.18.1.4.1.0 2881 2882 REFUSE -surface-all-arms 4.1.4.19 2882 2919 REFUSE -surface-all-arms 4.1.4.19.0 2883 2884 REFUSE -surface-all-arms 4.1.4.19.1 2884 2919 REFUSE -surface-all-arms 4.1.4.19.1.0 2885 2901 REFUSE -surface-all-arms 4.1.4.19.1.0.0 2886 2896 REFUSE -surface-all-arms 4.1.4.19.1.0.1 2896 2900 REFUSE -surface-all-arms 4.1.4.19.1.0.1.0 2897 2898 REFUSE -surface-all-arms 4.1.4.19.1.0.1.1 2898 2900 REFUSE -surface-all-arms 4.1.4.19.1.0.1.1.0 2899 2900 REFUSE -surface-all-arms 4.1.4.19.1.0.2 2900 2901 ACCEPT -surface-all-arms 4.1.4.19.1.1 2901 2907 REFUSE -surface-all-arms 4.1.4.19.1.2 2907 2912 REFUSE -surface-all-arms 4.1.4.19.1.3 2912 2915 REFUSE -surface-all-arms 4.1.4.19.1.3.0 2913 2914 REFUSE -surface-all-arms 4.1.4.19.1.3.1 2914 2915 REFUSE -surface-all-arms 4.1.4.19.1.4 2915 2919 REFUSE -surface-all-arms 4.1.4.19.1.4.0 2916 2917 REFUSE -surface-all-arms 4.1.4.19.1.4.1 2917 2919 REFUSE -surface-all-arms 4.1.4.19.1.4.1.0 2918 2919 REFUSE -surface-all-arms 4.1.4.20 2919 2956 REFUSE -surface-all-arms 4.1.4.20.0 2920 2921 REFUSE -surface-all-arms 4.1.4.20.1 2921 2956 REFUSE -surface-all-arms 4.1.4.20.1.0 2922 2938 REFUSE -surface-all-arms 4.1.4.20.1.0.0 2923 2933 REFUSE -surface-all-arms 4.1.4.20.1.0.1 2933 2937 REFUSE -surface-all-arms 4.1.4.20.1.0.1.0 2934 2935 REFUSE -surface-all-arms 4.1.4.20.1.0.1.1 2935 2937 REFUSE -surface-all-arms 4.1.4.20.1.0.1.1.0 2936 2937 REFUSE -surface-all-arms 4.1.4.20.1.0.2 2937 2938 ACCEPT -surface-all-arms 4.1.4.20.1.1 2938 2944 REFUSE -surface-all-arms 4.1.4.20.1.2 2944 2949 REFUSE -surface-all-arms 4.1.4.20.1.3 2949 2952 REFUSE -surface-all-arms 4.1.4.20.1.3.0 2950 2951 REFUSE -surface-all-arms 4.1.4.20.1.3.1 2951 2952 REFUSE -surface-all-arms 4.1.4.20.1.4 2952 2956 REFUSE -surface-all-arms 4.1.4.20.1.4.0 2953 2954 REFUSE -surface-all-arms 4.1.4.20.1.4.1 2954 2956 REFUSE -surface-all-arms 4.1.4.20.1.4.1.0 2955 2956 REFUSE -surface-all-arms 4.1.4.21 2956 3189 REFUSE -surface-all-arms 4.1.4.21.0 2957 2958 REFUSE -surface-all-arms 4.1.4.21.1 2958 3189 REFUSE -surface-all-arms 4.1.4.21.1.0 2959 2972 REFUSE -surface-all-arms 4.1.4.21.1.0.0 2960 2967 REFUSE -surface-all-arms 4.1.4.21.1.0.1 2967 2971 REFUSE -surface-all-arms 4.1.4.21.1.0.1.0 2968 2969 REFUSE -surface-all-arms 4.1.4.21.1.0.1.1 2969 2971 REFUSE -surface-all-arms 4.1.4.21.1.0.1.1.0 2970 2971 REFUSE -surface-all-arms 4.1.4.21.1.0.2 2971 2972 ACCEPT -surface-all-arms 4.1.4.21.1.1 2972 3173 REFUSE -surface-all-arms 4.1.4.21.1.1.0 2975 2978 REFUSE -surface-all-arms 4.1.4.21.1.1.0.0 2976 2977 REFUSE -surface-all-arms 4.1.4.21.1.1.0.1 2977 2978 REFUSE -surface-all-arms 4.1.4.21.1.1.1 2978 2981 REFUSE -surface-all-arms 4.1.4.21.1.1.1.0 2979 2980 REFUSE -surface-all-arms 4.1.4.21.1.1.1.1 2980 2981 REFUSE -surface-all-arms 4.1.4.21.1.1.2 2981 2984 REFUSE -surface-all-arms 4.1.4.21.1.1.2.0 2982 2983 REFUSE -surface-all-arms 4.1.4.21.1.1.2.1 2983 2984 REFUSE -surface-all-arms 4.1.4.21.1.1.3 2984 3009 REFUSE -surface-all-arms 4.1.4.21.1.1.3.0 2985 2997 REFUSE -surface-all-arms 4.1.4.21.1.1.3.0.0 2986 2987 REFUSE -surface-all-arms 4.1.4.21.1.1.3.0.1 2987 2997 REFUSE -surface-all-arms 4.1.4.21.1.1.3.0.1.0 2988 2997 REFUSE -surface-all-arms 4.1.4.21.1.1.3.1 2997 3009 REFUSE -surface-all-arms 4.1.4.21.1.1.3.1.0 2998 2999 REFUSE -surface-all-arms 4.1.4.21.1.1.3.1.1 2999 3009 REFUSE -surface-all-arms 4.1.4.21.1.1.3.1.1.0 3000 3009 REFUSE -surface-all-arms 4.1.4.21.1.1.4 3009 3058 REFUSE -surface-all-arms 4.1.4.21.1.1.4.0 3010 3022 REFUSE -surface-all-arms 4.1.4.21.1.1.4.0.0 3011 3012 REFUSE -surface-all-arms 4.1.4.21.1.1.4.0.1 3012 3022 REFUSE -surface-all-arms 4.1.4.21.1.1.4.0.1.0 3013 3022 REFUSE -surface-all-arms 4.1.4.21.1.1.4.1 3022 3034 REFUSE -surface-all-arms 4.1.4.21.1.1.4.1.0 3023 3024 REFUSE -surface-all-arms 4.1.4.21.1.1.4.1.1 3024 3034 REFUSE -surface-all-arms 4.1.4.21.1.1.4.1.1.0 3025 3034 REFUSE -surface-all-arms 4.1.4.21.1.1.4.2 3034 3046 REFUSE -surface-all-arms 4.1.4.21.1.1.4.2.0 3035 3036 REFUSE -surface-all-arms 4.1.4.21.1.1.4.2.1 3036 3046 REFUSE -surface-all-arms 4.1.4.21.1.1.4.2.1.0 3037 3046 REFUSE -surface-all-arms 4.1.4.21.1.1.4.3 3046 3058 REFUSE -surface-all-arms 4.1.4.21.1.1.4.3.0 3047 3048 REFUSE -surface-all-arms 4.1.4.21.1.1.4.3.1 3048 3058 REFUSE -surface-all-arms 4.1.4.21.1.1.4.3.1.0 3049 3058 REFUSE -surface-all-arms 4.1.4.21.1.1.5 3058 3071 REFUSE -surface-all-arms 4.1.4.21.1.1.5.0 3059 3062 REFUSE -surface-all-arms 4.1.4.21.1.1.5.0.0 3060 3061 REFUSE -surface-all-arms 4.1.4.21.1.1.5.0.1 3061 3062 REFUSE -surface-all-arms 4.1.4.21.1.1.5.1 3062 3065 REFUSE -surface-all-arms 4.1.4.21.1.1.5.1.0 3063 3064 REFUSE -surface-all-arms 4.1.4.21.1.1.5.1.1 3064 3065 REFUSE -surface-all-arms 4.1.4.21.1.1.5.2 3065 3068 REFUSE -surface-all-arms 4.1.4.21.1.1.5.2.0 3066 3067 REFUSE -surface-all-arms 4.1.4.21.1.1.5.2.1 3067 3068 REFUSE -surface-all-arms 4.1.4.21.1.1.5.3 3068 3071 REFUSE -surface-all-arms 4.1.4.21.1.1.5.3.0 3069 3070 REFUSE -surface-all-arms 4.1.4.21.1.1.5.3.1 3070 3071 REFUSE -surface-all-arms 4.1.4.21.1.1.6 3071 3087 REFUSE -surface-all-arms 4.1.4.21.1.1.6.0 3072 3084 REFUSE -surface-all-arms 4.1.4.21.1.1.6.0.0 3073 3074 REFUSE -surface-all-arms 4.1.4.21.1.1.6.0.1 3074 3084 REFUSE -surface-all-arms 4.1.4.21.1.1.6.0.1.0 3075 3084 REFUSE -surface-all-arms 4.1.4.21.1.1.6.1 3084 3087 REFUSE -surface-all-arms 4.1.4.21.1.1.6.1.0 3085 3086 REFUSE -surface-all-arms 4.1.4.21.1.1.6.1.1 3086 3087 REFUSE -surface-all-arms 4.1.4.21.1.1.7 3087 3112 REFUSE -surface-all-arms 4.1.4.21.1.1.7.0 3088 3100 REFUSE -surface-all-arms 4.1.4.21.1.1.7.0.0 3089 3090 REFUSE -surface-all-arms 4.1.4.21.1.1.7.0.1 3090 3100 REFUSE -surface-all-arms 4.1.4.21.1.1.7.0.1.0 3091 3100 REFUSE -surface-all-arms 4.1.4.21.1.1.7.1 3100 3112 REFUSE -surface-all-arms 4.1.4.21.1.1.7.1.0 3101 3102 REFUSE -surface-all-arms 4.1.4.21.1.1.7.1.1 3102 3112 REFUSE -surface-all-arms 4.1.4.21.1.1.7.1.1.0 3103 3112 REFUSE -surface-all-arms 4.1.4.21.1.1.8 3112 3119 REFUSE -surface-all-arms 4.1.4.21.1.1.8.0 3113 3116 REFUSE -surface-all-arms 4.1.4.21.1.1.8.0.0 3114 3115 REFUSE -surface-all-arms 4.1.4.21.1.1.8.0.1 3115 3116 REFUSE -surface-all-arms 4.1.4.21.1.1.8.1 3116 3119 REFUSE -surface-all-arms 4.1.4.21.1.1.8.1.0 3117 3118 REFUSE -surface-all-arms 4.1.4.21.1.1.8.1.1 3118 3119 REFUSE -surface-all-arms 4.1.4.21.1.1.9 3119 3122 REFUSE -surface-all-arms 4.1.4.21.1.1.9.0 3120 3121 REFUSE -surface-all-arms 4.1.4.21.1.1.9.1 3121 3122 REFUSE -surface-all-arms 4.1.4.21.1.1.10 3122 3135 REFUSE -surface-all-arms 4.1.4.21.1.1.10.0 3123 3126 REFUSE -surface-all-arms 4.1.4.21.1.1.10.0.0 3124 3125 REFUSE -surface-all-arms 4.1.4.21.1.1.10.0.1 3125 3126 REFUSE -surface-all-arms 4.1.4.21.1.1.10.1 3126 3129 REFUSE -surface-all-arms 4.1.4.21.1.1.10.1.0 3127 3128 REFUSE -surface-all-arms 4.1.4.21.1.1.10.1.1 3128 3129 REFUSE -surface-all-arms 4.1.4.21.1.1.10.2 3129 3132 REFUSE -surface-all-arms 4.1.4.21.1.1.10.2.0 3130 3131 REFUSE -surface-all-arms 4.1.4.21.1.1.10.2.1 3131 3132 REFUSE -surface-all-arms 4.1.4.21.1.1.10.3 3132 3135 REFUSE -surface-all-arms 4.1.4.21.1.1.10.3.0 3133 3134 REFUSE -surface-all-arms 4.1.4.21.1.1.10.3.1 3134 3135 REFUSE -surface-all-arms 4.1.4.21.1.1.11 3135 3138 REFUSE -surface-all-arms 4.1.4.21.1.1.11.0 3136 3137 REFUSE -surface-all-arms 4.1.4.21.1.1.11.1 3137 3138 REFUSE -surface-all-arms 4.1.4.21.1.1.12 3138 3141 REFUSE -surface-all-arms 4.1.4.21.1.1.12.0 3139 3140 REFUSE -surface-all-arms 4.1.4.21.1.1.12.1 3140 3141 REFUSE -surface-all-arms 4.1.4.21.1.1.13 3141 3144 REFUSE -surface-all-arms 4.1.4.21.1.1.13.0 3142 3143 REFUSE -surface-all-arms 4.1.4.21.1.1.13.1 3143 3144 REFUSE -surface-all-arms 4.1.4.21.1.1.14 3144 3147 REFUSE -surface-all-arms 4.1.4.21.1.1.14.0 3145 3146 REFUSE -surface-all-arms 4.1.4.21.1.1.14.1 3146 3147 REFUSE -surface-all-arms 4.1.4.21.1.1.15 3147 3150 REFUSE -surface-all-arms 4.1.4.21.1.1.15.0 3148 3149 REFUSE -surface-all-arms 4.1.4.21.1.1.15.1 3149 3150 REFUSE -surface-all-arms 4.1.4.21.1.1.16 3150 3159 REFUSE -surface-all-arms 4.1.4.21.1.1.17 3159 3168 REFUSE -surface-all-arms 4.1.4.21.1.1.18 3168 3171 REFUSE -surface-all-arms 4.1.4.21.1.1.18.0 3169 3170 REFUSE -surface-all-arms 4.1.4.21.1.1.18.1 3170 3171 REFUSE -surface-all-arms 4.1.4.21.1.1.19 3171 3172 REFUSE -surface-all-arms 4.1.4.21.1.1.20 3172 3173 REFUSE -surface-all-arms 4.1.4.21.1.2 3173 3185 REFUSE -surface-all-arms 4.1.4.21.1.2.0 3174 3175 ACCEPT -surface-all-arms 4.1.4.21.1.2.1 3175 3176 ACCEPT -surface-all-arms 4.1.4.21.1.2.2 3176 3185 REFUSE -surface-all-arms 4.1.4.21.1.3 3185 3188 REFUSE -surface-all-arms 4.1.4.21.1.3.0 3186 3187 REFUSE -surface-all-arms 4.1.4.21.1.3.1 3187 3188 REFUSE -surface-all-arms 4.1.4.21.1.4 3188 3189 REFUSE -surface-all-arms 4.1.4.22 3189 3422 REFUSE -surface-all-arms 4.1.4.22.0 3190 3191 REFUSE -surface-all-arms 4.1.4.22.1 3191 3422 REFUSE -surface-all-arms 4.1.4.22.1.0 3192 3205 REFUSE -surface-all-arms 4.1.4.22.1.0.0 3193 3200 REFUSE -surface-all-arms 4.1.4.22.1.0.1 3200 3204 REFUSE -surface-all-arms 4.1.4.22.1.0.1.0 3201 3202 REFUSE -surface-all-arms 4.1.4.22.1.0.1.1 3202 3204 REFUSE -surface-all-arms 4.1.4.22.1.0.1.1.0 3203 3204 REFUSE -surface-all-arms 4.1.4.22.1.0.2 3204 3205 ACCEPT -surface-all-arms 4.1.4.22.1.1 3205 3406 REFUSE -surface-all-arms 4.1.4.22.1.1.0 3208 3211 REFUSE -surface-all-arms 4.1.4.22.1.1.0.0 3209 3210 REFUSE -surface-all-arms 4.1.4.22.1.1.0.1 3210 3211 REFUSE -surface-all-arms 4.1.4.22.1.1.1 3211 3214 REFUSE -surface-all-arms 4.1.4.22.1.1.1.0 3212 3213 REFUSE -surface-all-arms 4.1.4.22.1.1.1.1 3213 3214 REFUSE -surface-all-arms 4.1.4.22.1.1.2 3214 3217 REFUSE -surface-all-arms 4.1.4.22.1.1.2.0 3215 3216 REFUSE -surface-all-arms 4.1.4.22.1.1.2.1 3216 3217 REFUSE -surface-all-arms 4.1.4.22.1.1.3 3217 3242 REFUSE -surface-all-arms 4.1.4.22.1.1.3.0 3218 3230 REFUSE -surface-all-arms 4.1.4.22.1.1.3.0.0 3219 3220 REFUSE -surface-all-arms 4.1.4.22.1.1.3.0.1 3220 3230 REFUSE -surface-all-arms 4.1.4.22.1.1.3.0.1.0 3221 3230 REFUSE -surface-all-arms 4.1.4.22.1.1.3.1 3230 3242 REFUSE -surface-all-arms 4.1.4.22.1.1.3.1.0 3231 3232 REFUSE -surface-all-arms 4.1.4.22.1.1.3.1.1 3232 3242 REFUSE -surface-all-arms 4.1.4.22.1.1.3.1.1.0 3233 3242 REFUSE -surface-all-arms 4.1.4.22.1.1.4 3242 3291 REFUSE -surface-all-arms 4.1.4.22.1.1.4.0 3243 3255 REFUSE -surface-all-arms 4.1.4.22.1.1.4.0.0 3244 3245 REFUSE -surface-all-arms 4.1.4.22.1.1.4.0.1 3245 3255 REFUSE -surface-all-arms 4.1.4.22.1.1.4.0.1.0 3246 3255 REFUSE -surface-all-arms 4.1.4.22.1.1.4.1 3255 3267 REFUSE -surface-all-arms 4.1.4.22.1.1.4.1.0 3256 3257 REFUSE -surface-all-arms 4.1.4.22.1.1.4.1.1 3257 3267 REFUSE -surface-all-arms 4.1.4.22.1.1.4.1.1.0 3258 3267 REFUSE -surface-all-arms 4.1.4.22.1.1.4.2 3267 3279 REFUSE -surface-all-arms 4.1.4.22.1.1.4.2.0 3268 3269 REFUSE -surface-all-arms 4.1.4.22.1.1.4.2.1 3269 3279 REFUSE -surface-all-arms 4.1.4.22.1.1.4.2.1.0 3270 3279 REFUSE -surface-all-arms 4.1.4.22.1.1.4.3 3279 3291 REFUSE -surface-all-arms 4.1.4.22.1.1.4.3.0 3280 3281 REFUSE -surface-all-arms 4.1.4.22.1.1.4.3.1 3281 3291 REFUSE -surface-all-arms 4.1.4.22.1.1.4.3.1.0 3282 3291 REFUSE -surface-all-arms 4.1.4.22.1.1.5 3291 3304 REFUSE -surface-all-arms 4.1.4.22.1.1.5.0 3292 3295 REFUSE -surface-all-arms 4.1.4.22.1.1.5.0.0 3293 3294 REFUSE -surface-all-arms 4.1.4.22.1.1.5.0.1 3294 3295 REFUSE -surface-all-arms 4.1.4.22.1.1.5.1 3295 3298 REFUSE -surface-all-arms 4.1.4.22.1.1.5.1.0 3296 3297 REFUSE -surface-all-arms 4.1.4.22.1.1.5.1.1 3297 3298 REFUSE -surface-all-arms 4.1.4.22.1.1.5.2 3298 3301 REFUSE -surface-all-arms 4.1.4.22.1.1.5.2.0 3299 3300 REFUSE -surface-all-arms 4.1.4.22.1.1.5.2.1 3300 3301 REFUSE -surface-all-arms 4.1.4.22.1.1.5.3 3301 3304 REFUSE -surface-all-arms 4.1.4.22.1.1.5.3.0 3302 3303 REFUSE -surface-all-arms 4.1.4.22.1.1.5.3.1 3303 3304 REFUSE -surface-all-arms 4.1.4.22.1.1.6 3304 3320 REFUSE -surface-all-arms 4.1.4.22.1.1.6.0 3305 3317 REFUSE -surface-all-arms 4.1.4.22.1.1.6.0.0 3306 3307 REFUSE -surface-all-arms 4.1.4.22.1.1.6.0.1 3307 3317 REFUSE -surface-all-arms 4.1.4.22.1.1.6.0.1.0 3308 3317 REFUSE -surface-all-arms 4.1.4.22.1.1.6.1 3317 3320 REFUSE -surface-all-arms 4.1.4.22.1.1.6.1.0 3318 3319 REFUSE -surface-all-arms 4.1.4.22.1.1.6.1.1 3319 3320 REFUSE -surface-all-arms 4.1.4.22.1.1.7 3320 3345 REFUSE -surface-all-arms 4.1.4.22.1.1.7.0 3321 3333 REFUSE -surface-all-arms 4.1.4.22.1.1.7.0.0 3322 3323 REFUSE -surface-all-arms 4.1.4.22.1.1.7.0.1 3323 3333 REFUSE -surface-all-arms 4.1.4.22.1.1.7.0.1.0 3324 3333 REFUSE -surface-all-arms 4.1.4.22.1.1.7.1 3333 3345 REFUSE -surface-all-arms 4.1.4.22.1.1.7.1.0 3334 3335 REFUSE -surface-all-arms 4.1.4.22.1.1.7.1.1 3335 3345 REFUSE -surface-all-arms 4.1.4.22.1.1.7.1.1.0 3336 3345 REFUSE -surface-all-arms 4.1.4.22.1.1.8 3345 3352 REFUSE -surface-all-arms 4.1.4.22.1.1.8.0 3346 3349 REFUSE -surface-all-arms 4.1.4.22.1.1.8.0.0 3347 3348 REFUSE -surface-all-arms 4.1.4.22.1.1.8.0.1 3348 3349 REFUSE -surface-all-arms 4.1.4.22.1.1.8.1 3349 3352 REFUSE -surface-all-arms 4.1.4.22.1.1.8.1.0 3350 3351 REFUSE -surface-all-arms 4.1.4.22.1.1.8.1.1 3351 3352 REFUSE -surface-all-arms 4.1.4.22.1.1.9 3352 3355 REFUSE -surface-all-arms 4.1.4.22.1.1.9.0 3353 3354 REFUSE -surface-all-arms 4.1.4.22.1.1.9.1 3354 3355 REFUSE -surface-all-arms 4.1.4.22.1.1.10 3355 3368 REFUSE -surface-all-arms 4.1.4.22.1.1.10.0 3356 3359 REFUSE -surface-all-arms 4.1.4.22.1.1.10.0.0 3357 3358 REFUSE -surface-all-arms 4.1.4.22.1.1.10.0.1 3358 3359 REFUSE -surface-all-arms 4.1.4.22.1.1.10.1 3359 3362 REFUSE -surface-all-arms 4.1.4.22.1.1.10.1.0 3360 3361 REFUSE -surface-all-arms 4.1.4.22.1.1.10.1.1 3361 3362 REFUSE -surface-all-arms 4.1.4.22.1.1.10.2 3362 3365 REFUSE -surface-all-arms 4.1.4.22.1.1.10.2.0 3363 3364 REFUSE -surface-all-arms 4.1.4.22.1.1.10.2.1 3364 3365 REFUSE -surface-all-arms 4.1.4.22.1.1.10.3 3365 3368 REFUSE -surface-all-arms 4.1.4.22.1.1.10.3.0 3366 3367 REFUSE -surface-all-arms 4.1.4.22.1.1.10.3.1 3367 3368 REFUSE -surface-all-arms 4.1.4.22.1.1.11 3368 3371 REFUSE -surface-all-arms 4.1.4.22.1.1.11.0 3369 3370 REFUSE -surface-all-arms 4.1.4.22.1.1.11.1 3370 3371 REFUSE -surface-all-arms 4.1.4.22.1.1.12 3371 3374 REFUSE -surface-all-arms 4.1.4.22.1.1.12.0 3372 3373 REFUSE -surface-all-arms 4.1.4.22.1.1.12.1 3373 3374 REFUSE -surface-all-arms 4.1.4.22.1.1.13 3374 3377 REFUSE -surface-all-arms 4.1.4.22.1.1.13.0 3375 3376 REFUSE -surface-all-arms 4.1.4.22.1.1.13.1 3376 3377 REFUSE -surface-all-arms 4.1.4.22.1.1.14 3377 3380 REFUSE -surface-all-arms 4.1.4.22.1.1.14.0 3378 3379 REFUSE -surface-all-arms 4.1.4.22.1.1.14.1 3379 3380 REFUSE -surface-all-arms 4.1.4.22.1.1.15 3380 3383 REFUSE -surface-all-arms 4.1.4.22.1.1.15.0 3381 3382 REFUSE -surface-all-arms 4.1.4.22.1.1.15.1 3382 3383 REFUSE -surface-all-arms 4.1.4.22.1.1.16 3383 3392 REFUSE -surface-all-arms 4.1.4.22.1.1.17 3392 3401 REFUSE -surface-all-arms 4.1.4.22.1.1.18 3401 3404 REFUSE -surface-all-arms 4.1.4.22.1.1.18.0 3402 3403 REFUSE -surface-all-arms 4.1.4.22.1.1.18.1 3403 3404 REFUSE -surface-all-arms 4.1.4.22.1.1.19 3404 3405 REFUSE -surface-all-arms 4.1.4.22.1.1.20 3405 3406 REFUSE -surface-all-arms 4.1.4.22.1.2 3406 3418 REFUSE -surface-all-arms 4.1.4.22.1.2.0 3407 3408 ACCEPT -surface-all-arms 4.1.4.22.1.2.1 3408 3409 ACCEPT -surface-all-arms 4.1.4.22.1.2.2 3409 3418 REFUSE -surface-all-arms 4.1.4.22.1.3 3418 3421 REFUSE -surface-all-arms 4.1.4.22.1.3.0 3419 3420 REFUSE -surface-all-arms 4.1.4.22.1.3.1 3420 3421 REFUSE -surface-all-arms 4.1.4.22.1.4 3421 3422 REFUSE -surface-all-arms 4.1.4.23 3422 3655 REFUSE -surface-all-arms 4.1.4.23.0 3423 3424 REFUSE -surface-all-arms 4.1.4.23.1 3424 3655 REFUSE -surface-all-arms 4.1.4.23.1.0 3425 3438 REFUSE -surface-all-arms 4.1.4.23.1.0.0 3426 3433 REFUSE -surface-all-arms 4.1.4.23.1.0.1 3433 3437 REFUSE -surface-all-arms 4.1.4.23.1.0.1.0 3434 3435 REFUSE -surface-all-arms 4.1.4.23.1.0.1.1 3435 3437 REFUSE -surface-all-arms 4.1.4.23.1.0.1.1.0 3436 3437 REFUSE -surface-all-arms 4.1.4.23.1.0.2 3437 3438 ACCEPT -surface-all-arms 4.1.4.23.1.1 3438 3639 REFUSE -surface-all-arms 4.1.4.23.1.1.0 3441 3444 REFUSE -surface-all-arms 4.1.4.23.1.1.0.0 3442 3443 REFUSE -surface-all-arms 4.1.4.23.1.1.0.1 3443 3444 REFUSE -surface-all-arms 4.1.4.23.1.1.1 3444 3447 REFUSE -surface-all-arms 4.1.4.23.1.1.1.0 3445 3446 REFUSE -surface-all-arms 4.1.4.23.1.1.1.1 3446 3447 REFUSE -surface-all-arms 4.1.4.23.1.1.2 3447 3450 REFUSE -surface-all-arms 4.1.4.23.1.1.2.0 3448 3449 REFUSE -surface-all-arms 4.1.4.23.1.1.2.1 3449 3450 REFUSE -surface-all-arms 4.1.4.23.1.1.3 3450 3475 REFUSE -surface-all-arms 4.1.4.23.1.1.3.0 3451 3463 REFUSE -surface-all-arms 4.1.4.23.1.1.3.0.0 3452 3453 REFUSE -surface-all-arms 4.1.4.23.1.1.3.0.1 3453 3463 REFUSE -surface-all-arms 4.1.4.23.1.1.3.0.1.0 3454 3463 REFUSE -surface-all-arms 4.1.4.23.1.1.3.1 3463 3475 REFUSE -surface-all-arms 4.1.4.23.1.1.3.1.0 3464 3465 REFUSE -surface-all-arms 4.1.4.23.1.1.3.1.1 3465 3475 REFUSE -surface-all-arms 4.1.4.23.1.1.3.1.1.0 3466 3475 REFUSE -surface-all-arms 4.1.4.23.1.1.4 3475 3524 REFUSE -surface-all-arms 4.1.4.23.1.1.4.0 3476 3488 REFUSE -surface-all-arms 4.1.4.23.1.1.4.0.0 3477 3478 REFUSE -surface-all-arms 4.1.4.23.1.1.4.0.1 3478 3488 REFUSE -surface-all-arms 4.1.4.23.1.1.4.0.1.0 3479 3488 REFUSE -surface-all-arms 4.1.4.23.1.1.4.1 3488 3500 REFUSE -surface-all-arms 4.1.4.23.1.1.4.1.0 3489 3490 REFUSE -surface-all-arms 4.1.4.23.1.1.4.1.1 3490 3500 REFUSE -surface-all-arms 4.1.4.23.1.1.4.1.1.0 3491 3500 REFUSE -surface-all-arms 4.1.4.23.1.1.4.2 3500 3512 REFUSE -surface-all-arms 4.1.4.23.1.1.4.2.0 3501 3502 REFUSE -surface-all-arms 4.1.4.23.1.1.4.2.1 3502 3512 REFUSE -surface-all-arms 4.1.4.23.1.1.4.2.1.0 3503 3512 REFUSE -surface-all-arms 4.1.4.23.1.1.4.3 3512 3524 REFUSE -surface-all-arms 4.1.4.23.1.1.4.3.0 3513 3514 REFUSE -surface-all-arms 4.1.4.23.1.1.4.3.1 3514 3524 REFUSE -surface-all-arms 4.1.4.23.1.1.4.3.1.0 3515 3524 REFUSE -surface-all-arms 4.1.4.23.1.1.5 3524 3537 REFUSE -surface-all-arms 4.1.4.23.1.1.5.0 3525 3528 REFUSE -surface-all-arms 4.1.4.23.1.1.5.0.0 3526 3527 REFUSE -surface-all-arms 4.1.4.23.1.1.5.0.1 3527 3528 REFUSE -surface-all-arms 4.1.4.23.1.1.5.1 3528 3531 REFUSE -surface-all-arms 4.1.4.23.1.1.5.1.0 3529 3530 REFUSE -surface-all-arms 4.1.4.23.1.1.5.1.1 3530 3531 REFUSE -surface-all-arms 4.1.4.23.1.1.5.2 3531 3534 REFUSE -surface-all-arms 4.1.4.23.1.1.5.2.0 3532 3533 REFUSE -surface-all-arms 4.1.4.23.1.1.5.2.1 3533 3534 REFUSE -surface-all-arms 4.1.4.23.1.1.5.3 3534 3537 REFUSE -surface-all-arms 4.1.4.23.1.1.5.3.0 3535 3536 REFUSE -surface-all-arms 4.1.4.23.1.1.5.3.1 3536 3537 REFUSE -surface-all-arms 4.1.4.23.1.1.6 3537 3553 REFUSE -surface-all-arms 4.1.4.23.1.1.6.0 3538 3550 REFUSE -surface-all-arms 4.1.4.23.1.1.6.0.0 3539 3540 REFUSE -surface-all-arms 4.1.4.23.1.1.6.0.1 3540 3550 REFUSE -surface-all-arms 4.1.4.23.1.1.6.0.1.0 3541 3550 REFUSE -surface-all-arms 4.1.4.23.1.1.6.1 3550 3553 REFUSE -surface-all-arms 4.1.4.23.1.1.6.1.0 3551 3552 REFUSE -surface-all-arms 4.1.4.23.1.1.6.1.1 3552 3553 REFUSE -surface-all-arms 4.1.4.23.1.1.7 3553 3578 REFUSE -surface-all-arms 4.1.4.23.1.1.7.0 3554 3566 REFUSE -surface-all-arms 4.1.4.23.1.1.7.0.0 3555 3556 REFUSE -surface-all-arms 4.1.4.23.1.1.7.0.1 3556 3566 REFUSE -surface-all-arms 4.1.4.23.1.1.7.0.1.0 3557 3566 REFUSE -surface-all-arms 4.1.4.23.1.1.7.1 3566 3578 REFUSE -surface-all-arms 4.1.4.23.1.1.7.1.0 3567 3568 REFUSE -surface-all-arms 4.1.4.23.1.1.7.1.1 3568 3578 REFUSE -surface-all-arms 4.1.4.23.1.1.7.1.1.0 3569 3578 REFUSE -surface-all-arms 4.1.4.23.1.1.8 3578 3585 REFUSE -surface-all-arms 4.1.4.23.1.1.8.0 3579 3582 REFUSE -surface-all-arms 4.1.4.23.1.1.8.0.0 3580 3581 REFUSE -surface-all-arms 4.1.4.23.1.1.8.0.1 3581 3582 REFUSE -surface-all-arms 4.1.4.23.1.1.8.1 3582 3585 REFUSE -surface-all-arms 4.1.4.23.1.1.8.1.0 3583 3584 REFUSE -surface-all-arms 4.1.4.23.1.1.8.1.1 3584 3585 REFUSE -surface-all-arms 4.1.4.23.1.1.9 3585 3588 REFUSE -surface-all-arms 4.1.4.23.1.1.9.0 3586 3587 REFUSE -surface-all-arms 4.1.4.23.1.1.9.1 3587 3588 REFUSE -surface-all-arms 4.1.4.23.1.1.10 3588 3601 REFUSE -surface-all-arms 4.1.4.23.1.1.10.0 3589 3592 REFUSE -surface-all-arms 4.1.4.23.1.1.10.0.0 3590 3591 REFUSE -surface-all-arms 4.1.4.23.1.1.10.0.1 3591 3592 REFUSE -surface-all-arms 4.1.4.23.1.1.10.1 3592 3595 REFUSE -surface-all-arms 4.1.4.23.1.1.10.1.0 3593 3594 REFUSE -surface-all-arms 4.1.4.23.1.1.10.1.1 3594 3595 REFUSE -surface-all-arms 4.1.4.23.1.1.10.2 3595 3598 REFUSE -surface-all-arms 4.1.4.23.1.1.10.2.0 3596 3597 REFUSE -surface-all-arms 4.1.4.23.1.1.10.2.1 3597 3598 REFUSE -surface-all-arms 4.1.4.23.1.1.10.3 3598 3601 REFUSE -surface-all-arms 4.1.4.23.1.1.10.3.0 3599 3600 REFUSE -surface-all-arms 4.1.4.23.1.1.10.3.1 3600 3601 REFUSE -surface-all-arms 4.1.4.23.1.1.11 3601 3604 REFUSE -surface-all-arms 4.1.4.23.1.1.11.0 3602 3603 REFUSE -surface-all-arms 4.1.4.23.1.1.11.1 3603 3604 REFUSE -surface-all-arms 4.1.4.23.1.1.12 3604 3607 REFUSE -surface-all-arms 4.1.4.23.1.1.12.0 3605 3606 REFUSE -surface-all-arms 4.1.4.23.1.1.12.1 3606 3607 REFUSE -surface-all-arms 4.1.4.23.1.1.13 3607 3610 REFUSE -surface-all-arms 4.1.4.23.1.1.13.0 3608 3609 REFUSE -surface-all-arms 4.1.4.23.1.1.13.1 3609 3610 REFUSE -surface-all-arms 4.1.4.23.1.1.14 3610 3613 REFUSE -surface-all-arms 4.1.4.23.1.1.14.0 3611 3612 REFUSE -surface-all-arms 4.1.4.23.1.1.14.1 3612 3613 REFUSE -surface-all-arms 4.1.4.23.1.1.15 3613 3616 REFUSE -surface-all-arms 4.1.4.23.1.1.15.0 3614 3615 REFUSE -surface-all-arms 4.1.4.23.1.1.15.1 3615 3616 REFUSE -surface-all-arms 4.1.4.23.1.1.16 3616 3625 REFUSE -surface-all-arms 4.1.4.23.1.1.17 3625 3634 REFUSE -surface-all-arms 4.1.4.23.1.1.18 3634 3637 REFUSE -surface-all-arms 4.1.4.23.1.1.18.0 3635 3636 REFUSE -surface-all-arms 4.1.4.23.1.1.18.1 3636 3637 REFUSE -surface-all-arms 4.1.4.23.1.1.19 3637 3638 REFUSE -surface-all-arms 4.1.4.23.1.1.20 3638 3639 REFUSE -surface-all-arms 4.1.4.23.1.2 3639 3651 REFUSE -surface-all-arms 4.1.4.23.1.2.0 3640 3641 ACCEPT -surface-all-arms 4.1.4.23.1.2.1 3641 3642 ACCEPT -surface-all-arms 4.1.4.23.1.2.2 3642 3651 REFUSE -surface-all-arms 4.1.4.23.1.3 3651 3654 REFUSE -surface-all-arms 4.1.4.23.1.3.0 3652 3653 REFUSE -surface-all-arms 4.1.4.23.1.3.1 3653 3654 REFUSE -surface-all-arms 4.1.4.23.1.4 3654 3655 REFUSE -surface-all-arms 4.1.4.24 3655 3888 REFUSE -surface-all-arms 4.1.4.24.0 3656 3657 REFUSE -surface-all-arms 4.1.4.24.1 3657 3888 REFUSE -surface-all-arms 4.1.4.24.1.0 3658 3671 REFUSE -surface-all-arms 4.1.4.24.1.0.0 3659 3666 REFUSE -surface-all-arms 4.1.4.24.1.0.1 3666 3670 REFUSE -surface-all-arms 4.1.4.24.1.0.1.0 3667 3668 REFUSE -surface-all-arms 4.1.4.24.1.0.1.1 3668 3670 REFUSE -surface-all-arms 4.1.4.24.1.0.1.1.0 3669 3670 REFUSE -surface-all-arms 4.1.4.24.1.0.2 3670 3671 ACCEPT -surface-all-arms 4.1.4.24.1.1 3671 3872 REFUSE -surface-all-arms 4.1.4.24.1.1.0 3674 3677 REFUSE -surface-all-arms 4.1.4.24.1.1.0.0 3675 3676 REFUSE -surface-all-arms 4.1.4.24.1.1.0.1 3676 3677 REFUSE -surface-all-arms 4.1.4.24.1.1.1 3677 3680 REFUSE -surface-all-arms 4.1.4.24.1.1.1.0 3678 3679 REFUSE -surface-all-arms 4.1.4.24.1.1.1.1 3679 3680 REFUSE -surface-all-arms 4.1.4.24.1.1.2 3680 3683 REFUSE -surface-all-arms 4.1.4.24.1.1.2.0 3681 3682 REFUSE -surface-all-arms 4.1.4.24.1.1.2.1 3682 3683 REFUSE -surface-all-arms 4.1.4.24.1.1.3 3683 3708 REFUSE -surface-all-arms 4.1.4.24.1.1.3.0 3684 3696 REFUSE -surface-all-arms 4.1.4.24.1.1.3.0.0 3685 3686 REFUSE -surface-all-arms 4.1.4.24.1.1.3.0.1 3686 3696 REFUSE -surface-all-arms 4.1.4.24.1.1.3.0.1.0 3687 3696 REFUSE -surface-all-arms 4.1.4.24.1.1.3.1 3696 3708 REFUSE -surface-all-arms 4.1.4.24.1.1.3.1.0 3697 3698 REFUSE -surface-all-arms 4.1.4.24.1.1.3.1.1 3698 3708 REFUSE -surface-all-arms 4.1.4.24.1.1.3.1.1.0 3699 3708 REFUSE -surface-all-arms 4.1.4.24.1.1.4 3708 3757 REFUSE -surface-all-arms 4.1.4.24.1.1.4.0 3709 3721 REFUSE -surface-all-arms 4.1.4.24.1.1.4.0.0 3710 3711 REFUSE -surface-all-arms 4.1.4.24.1.1.4.0.1 3711 3721 REFUSE -surface-all-arms 4.1.4.24.1.1.4.0.1.0 3712 3721 REFUSE -surface-all-arms 4.1.4.24.1.1.4.1 3721 3733 REFUSE -surface-all-arms 4.1.4.24.1.1.4.1.0 3722 3723 REFUSE -surface-all-arms 4.1.4.24.1.1.4.1.1 3723 3733 REFUSE -surface-all-arms 4.1.4.24.1.1.4.1.1.0 3724 3733 REFUSE -surface-all-arms 4.1.4.24.1.1.4.2 3733 3745 REFUSE -surface-all-arms 4.1.4.24.1.1.4.2.0 3734 3735 REFUSE -surface-all-arms 4.1.4.24.1.1.4.2.1 3735 3745 REFUSE -surface-all-arms 4.1.4.24.1.1.4.2.1.0 3736 3745 REFUSE -surface-all-arms 4.1.4.24.1.1.4.3 3745 3757 REFUSE -surface-all-arms 4.1.4.24.1.1.4.3.0 3746 3747 REFUSE -surface-all-arms 4.1.4.24.1.1.4.3.1 3747 3757 REFUSE -surface-all-arms 4.1.4.24.1.1.4.3.1.0 3748 3757 REFUSE -surface-all-arms 4.1.4.24.1.1.5 3757 3770 REFUSE -surface-all-arms 4.1.4.24.1.1.5.0 3758 3761 REFUSE -surface-all-arms 4.1.4.24.1.1.5.0.0 3759 3760 REFUSE -surface-all-arms 4.1.4.24.1.1.5.0.1 3760 3761 REFUSE -surface-all-arms 4.1.4.24.1.1.5.1 3761 3764 REFUSE -surface-all-arms 4.1.4.24.1.1.5.1.0 3762 3763 REFUSE -surface-all-arms 4.1.4.24.1.1.5.1.1 3763 3764 REFUSE -surface-all-arms 4.1.4.24.1.1.5.2 3764 3767 REFUSE -surface-all-arms 4.1.4.24.1.1.5.2.0 3765 3766 REFUSE -surface-all-arms 4.1.4.24.1.1.5.2.1 3766 3767 REFUSE -surface-all-arms 4.1.4.24.1.1.5.3 3767 3770 REFUSE -surface-all-arms 4.1.4.24.1.1.5.3.0 3768 3769 REFUSE -surface-all-arms 4.1.4.24.1.1.5.3.1 3769 3770 REFUSE -surface-all-arms 4.1.4.24.1.1.6 3770 3786 REFUSE -surface-all-arms 4.1.4.24.1.1.6.0 3771 3783 REFUSE -surface-all-arms 4.1.4.24.1.1.6.0.0 3772 3773 REFUSE -surface-all-arms 4.1.4.24.1.1.6.0.1 3773 3783 REFUSE -surface-all-arms 4.1.4.24.1.1.6.0.1.0 3774 3783 REFUSE -surface-all-arms 4.1.4.24.1.1.6.1 3783 3786 REFUSE -surface-all-arms 4.1.4.24.1.1.6.1.0 3784 3785 REFUSE -surface-all-arms 4.1.4.24.1.1.6.1.1 3785 3786 REFUSE -surface-all-arms 4.1.4.24.1.1.7 3786 3811 REFUSE -surface-all-arms 4.1.4.24.1.1.7.0 3787 3799 REFUSE -surface-all-arms 4.1.4.24.1.1.7.0.0 3788 3789 REFUSE -surface-all-arms 4.1.4.24.1.1.7.0.1 3789 3799 REFUSE -surface-all-arms 4.1.4.24.1.1.7.0.1.0 3790 3799 REFUSE -surface-all-arms 4.1.4.24.1.1.7.1 3799 3811 REFUSE -surface-all-arms 4.1.4.24.1.1.7.1.0 3800 3801 REFUSE -surface-all-arms 4.1.4.24.1.1.7.1.1 3801 3811 REFUSE -surface-all-arms 4.1.4.24.1.1.7.1.1.0 3802 3811 REFUSE -surface-all-arms 4.1.4.24.1.1.8 3811 3818 REFUSE -surface-all-arms 4.1.4.24.1.1.8.0 3812 3815 REFUSE -surface-all-arms 4.1.4.24.1.1.8.0.0 3813 3814 REFUSE -surface-all-arms 4.1.4.24.1.1.8.0.1 3814 3815 REFUSE -surface-all-arms 4.1.4.24.1.1.8.1 3815 3818 REFUSE -surface-all-arms 4.1.4.24.1.1.8.1.0 3816 3817 REFUSE -surface-all-arms 4.1.4.24.1.1.8.1.1 3817 3818 REFUSE -surface-all-arms 4.1.4.24.1.1.9 3818 3821 REFUSE -surface-all-arms 4.1.4.24.1.1.9.0 3819 3820 REFUSE -surface-all-arms 4.1.4.24.1.1.9.1 3820 3821 REFUSE -surface-all-arms 4.1.4.24.1.1.10 3821 3834 REFUSE -surface-all-arms 4.1.4.24.1.1.10.0 3822 3825 REFUSE -surface-all-arms 4.1.4.24.1.1.10.0.0 3823 3824 REFUSE -surface-all-arms 4.1.4.24.1.1.10.0.1 3824 3825 REFUSE -surface-all-arms 4.1.4.24.1.1.10.1 3825 3828 REFUSE -surface-all-arms 4.1.4.24.1.1.10.1.0 3826 3827 REFUSE -surface-all-arms 4.1.4.24.1.1.10.1.1 3827 3828 REFUSE -surface-all-arms 4.1.4.24.1.1.10.2 3828 3831 REFUSE -surface-all-arms 4.1.4.24.1.1.10.2.0 3829 3830 REFUSE -surface-all-arms 4.1.4.24.1.1.10.2.1 3830 3831 REFUSE -surface-all-arms 4.1.4.24.1.1.10.3 3831 3834 REFUSE -surface-all-arms 4.1.4.24.1.1.10.3.0 3832 3833 REFUSE -surface-all-arms 4.1.4.24.1.1.10.3.1 3833 3834 REFUSE -surface-all-arms 4.1.4.24.1.1.11 3834 3837 REFUSE -surface-all-arms 4.1.4.24.1.1.11.0 3835 3836 REFUSE -surface-all-arms 4.1.4.24.1.1.11.1 3836 3837 REFUSE -surface-all-arms 4.1.4.24.1.1.12 3837 3840 REFUSE -surface-all-arms 4.1.4.24.1.1.12.0 3838 3839 REFUSE -surface-all-arms 4.1.4.24.1.1.12.1 3839 3840 REFUSE -surface-all-arms 4.1.4.24.1.1.13 3840 3843 REFUSE -surface-all-arms 4.1.4.24.1.1.13.0 3841 3842 REFUSE -surface-all-arms 4.1.4.24.1.1.13.1 3842 3843 REFUSE -surface-all-arms 4.1.4.24.1.1.14 3843 3846 REFUSE -surface-all-arms 4.1.4.24.1.1.14.0 3844 3845 REFUSE -surface-all-arms 4.1.4.24.1.1.14.1 3845 3846 REFUSE -surface-all-arms 4.1.4.24.1.1.15 3846 3849 REFUSE -surface-all-arms 4.1.4.24.1.1.15.0 3847 3848 REFUSE -surface-all-arms 4.1.4.24.1.1.15.1 3848 3849 REFUSE -surface-all-arms 4.1.4.24.1.1.16 3849 3858 REFUSE -surface-all-arms 4.1.4.24.1.1.17 3858 3867 REFUSE -surface-all-arms 4.1.4.24.1.1.18 3867 3870 REFUSE -surface-all-arms 4.1.4.24.1.1.18.0 3868 3869 REFUSE -surface-all-arms 4.1.4.24.1.1.18.1 3869 3870 REFUSE -surface-all-arms 4.1.4.24.1.1.19 3870 3871 REFUSE -surface-all-arms 4.1.4.24.1.1.20 3871 3872 REFUSE -surface-all-arms 4.1.4.24.1.2 3872 3884 REFUSE -surface-all-arms 4.1.4.24.1.2.0 3873 3874 ACCEPT -surface-all-arms 4.1.4.24.1.2.1 3874 3875 ACCEPT -surface-all-arms 4.1.4.24.1.2.2 3875 3884 REFUSE -surface-all-arms 4.1.4.24.1.3 3884 3887 REFUSE -surface-all-arms 4.1.4.24.1.3.0 3885 3886 REFUSE -surface-all-arms 4.1.4.24.1.3.1 3886 3887 REFUSE -surface-all-arms 4.1.4.24.1.4 3887 3888 REFUSE -surface-all-arms 4.1.4.25 3888 4121 REFUSE -surface-all-arms 4.1.4.25.0 3889 3890 REFUSE -surface-all-arms 4.1.4.25.1 3890 4121 REFUSE -surface-all-arms 4.1.4.25.1.0 3891 3904 REFUSE -surface-all-arms 4.1.4.25.1.0.0 3892 3899 REFUSE -surface-all-arms 4.1.4.25.1.0.1 3899 3903 REFUSE -surface-all-arms 4.1.4.25.1.0.1.0 3900 3901 REFUSE -surface-all-arms 4.1.4.25.1.0.1.1 3901 3903 REFUSE -surface-all-arms 4.1.4.25.1.0.1.1.0 3902 3903 REFUSE -surface-all-arms 4.1.4.25.1.0.2 3903 3904 ACCEPT -surface-all-arms 4.1.4.25.1.1 3904 4105 REFUSE -surface-all-arms 4.1.4.25.1.1.0 3907 3910 REFUSE -surface-all-arms 4.1.4.25.1.1.0.0 3908 3909 REFUSE -surface-all-arms 4.1.4.25.1.1.0.1 3909 3910 REFUSE -surface-all-arms 4.1.4.25.1.1.1 3910 3913 REFUSE -surface-all-arms 4.1.4.25.1.1.1.0 3911 3912 REFUSE -surface-all-arms 4.1.4.25.1.1.1.1 3912 3913 REFUSE -surface-all-arms 4.1.4.25.1.1.2 3913 3916 REFUSE -surface-all-arms 4.1.4.25.1.1.2.0 3914 3915 REFUSE -surface-all-arms 4.1.4.25.1.1.2.1 3915 3916 REFUSE -surface-all-arms 4.1.4.25.1.1.3 3916 3941 REFUSE -surface-all-arms 4.1.4.25.1.1.3.0 3917 3929 REFUSE -surface-all-arms 4.1.4.25.1.1.3.0.0 3918 3919 REFUSE -surface-all-arms 4.1.4.25.1.1.3.0.1 3919 3929 REFUSE -surface-all-arms 4.1.4.25.1.1.3.0.1.0 3920 3929 REFUSE -surface-all-arms 4.1.4.25.1.1.3.1 3929 3941 REFUSE -surface-all-arms 4.1.4.25.1.1.3.1.0 3930 3931 REFUSE -surface-all-arms 4.1.4.25.1.1.3.1.1 3931 3941 REFUSE -surface-all-arms 4.1.4.25.1.1.3.1.1.0 3932 3941 REFUSE -surface-all-arms 4.1.4.25.1.1.4 3941 3990 REFUSE -surface-all-arms 4.1.4.25.1.1.4.0 3942 3954 REFUSE -surface-all-arms 4.1.4.25.1.1.4.0.0 3943 3944 REFUSE -surface-all-arms 4.1.4.25.1.1.4.0.1 3944 3954 REFUSE -surface-all-arms 4.1.4.25.1.1.4.0.1.0 3945 3954 REFUSE -surface-all-arms 4.1.4.25.1.1.4.1 3954 3966 REFUSE -surface-all-arms 4.1.4.25.1.1.4.1.0 3955 3956 REFUSE -surface-all-arms 4.1.4.25.1.1.4.1.1 3956 3966 REFUSE -surface-all-arms 4.1.4.25.1.1.4.1.1.0 3957 3966 REFUSE -surface-all-arms 4.1.4.25.1.1.4.2 3966 3978 REFUSE -surface-all-arms 4.1.4.25.1.1.4.2.0 3967 3968 REFUSE -surface-all-arms 4.1.4.25.1.1.4.2.1 3968 3978 REFUSE -surface-all-arms 4.1.4.25.1.1.4.2.1.0 3969 3978 REFUSE -surface-all-arms 4.1.4.25.1.1.4.3 3978 3990 REFUSE -surface-all-arms 4.1.4.25.1.1.4.3.0 3979 3980 REFUSE -surface-all-arms 4.1.4.25.1.1.4.3.1 3980 3990 REFUSE -surface-all-arms 4.1.4.25.1.1.4.3.1.0 3981 3990 REFUSE -surface-all-arms 4.1.4.25.1.1.5 3990 4003 REFUSE -surface-all-arms 4.1.4.25.1.1.5.0 3991 3994 REFUSE -surface-all-arms 4.1.4.25.1.1.5.0.0 3992 3993 REFUSE -surface-all-arms 4.1.4.25.1.1.5.0.1 3993 3994 REFUSE -surface-all-arms 4.1.4.25.1.1.5.1 3994 3997 REFUSE -surface-all-arms 4.1.4.25.1.1.5.1.0 3995 3996 REFUSE -surface-all-arms 4.1.4.25.1.1.5.1.1 3996 3997 REFUSE -surface-all-arms 4.1.4.25.1.1.5.2 3997 4000 REFUSE -surface-all-arms 4.1.4.25.1.1.5.2.0 3998 3999 REFUSE -surface-all-arms 4.1.4.25.1.1.5.2.1 3999 4000 REFUSE -surface-all-arms 4.1.4.25.1.1.5.3 4000 4003 REFUSE -surface-all-arms 4.1.4.25.1.1.5.3.0 4001 4002 REFUSE -surface-all-arms 4.1.4.25.1.1.5.3.1 4002 4003 REFUSE -surface-all-arms 4.1.4.25.1.1.6 4003 4019 REFUSE -surface-all-arms 4.1.4.25.1.1.6.0 4004 4016 REFUSE -surface-all-arms 4.1.4.25.1.1.6.0.0 4005 4006 REFUSE -surface-all-arms 4.1.4.25.1.1.6.0.1 4006 4016 REFUSE -surface-all-arms 4.1.4.25.1.1.6.0.1.0 4007 4016 REFUSE -surface-all-arms 4.1.4.25.1.1.6.1 4016 4019 REFUSE -surface-all-arms 4.1.4.25.1.1.6.1.0 4017 4018 REFUSE -surface-all-arms 4.1.4.25.1.1.6.1.1 4018 4019 REFUSE -surface-all-arms 4.1.4.25.1.1.7 4019 4044 REFUSE -surface-all-arms 4.1.4.25.1.1.7.0 4020 4032 REFUSE -surface-all-arms 4.1.4.25.1.1.7.0.0 4021 4022 REFUSE -surface-all-arms 4.1.4.25.1.1.7.0.1 4022 4032 REFUSE -surface-all-arms 4.1.4.25.1.1.7.0.1.0 4023 4032 REFUSE -surface-all-arms 4.1.4.25.1.1.7.1 4032 4044 REFUSE -surface-all-arms 4.1.4.25.1.1.7.1.0 4033 4034 REFUSE -surface-all-arms 4.1.4.25.1.1.7.1.1 4034 4044 REFUSE -surface-all-arms 4.1.4.25.1.1.7.1.1.0 4035 4044 REFUSE -surface-all-arms 4.1.4.25.1.1.8 4044 4051 REFUSE -surface-all-arms 4.1.4.25.1.1.8.0 4045 4048 REFUSE -surface-all-arms 4.1.4.25.1.1.8.0.0 4046 4047 REFUSE -surface-all-arms 4.1.4.25.1.1.8.0.1 4047 4048 REFUSE -surface-all-arms 4.1.4.25.1.1.8.1 4048 4051 REFUSE -surface-all-arms 4.1.4.25.1.1.8.1.0 4049 4050 REFUSE -surface-all-arms 4.1.4.25.1.1.8.1.1 4050 4051 REFUSE -surface-all-arms 4.1.4.25.1.1.9 4051 4054 REFUSE -surface-all-arms 4.1.4.25.1.1.9.0 4052 4053 REFUSE -surface-all-arms 4.1.4.25.1.1.9.1 4053 4054 REFUSE -surface-all-arms 4.1.4.25.1.1.10 4054 4067 REFUSE -surface-all-arms 4.1.4.25.1.1.10.0 4055 4058 REFUSE -surface-all-arms 4.1.4.25.1.1.10.0.0 4056 4057 REFUSE -surface-all-arms 4.1.4.25.1.1.10.0.1 4057 4058 REFUSE -surface-all-arms 4.1.4.25.1.1.10.1 4058 4061 REFUSE -surface-all-arms 4.1.4.25.1.1.10.1.0 4059 4060 REFUSE -surface-all-arms 4.1.4.25.1.1.10.1.1 4060 4061 REFUSE -surface-all-arms 4.1.4.25.1.1.10.2 4061 4064 REFUSE -surface-all-arms 4.1.4.25.1.1.10.2.0 4062 4063 REFUSE -surface-all-arms 4.1.4.25.1.1.10.2.1 4063 4064 REFUSE -surface-all-arms 4.1.4.25.1.1.10.3 4064 4067 REFUSE -surface-all-arms 4.1.4.25.1.1.10.3.0 4065 4066 REFUSE -surface-all-arms 4.1.4.25.1.1.10.3.1 4066 4067 REFUSE -surface-all-arms 4.1.4.25.1.1.11 4067 4070 REFUSE -surface-all-arms 4.1.4.25.1.1.11.0 4068 4069 REFUSE -surface-all-arms 4.1.4.25.1.1.11.1 4069 4070 REFUSE -surface-all-arms 4.1.4.25.1.1.12 4070 4073 REFUSE -surface-all-arms 4.1.4.25.1.1.12.0 4071 4072 REFUSE -surface-all-arms 4.1.4.25.1.1.12.1 4072 4073 REFUSE -surface-all-arms 4.1.4.25.1.1.13 4073 4076 REFUSE -surface-all-arms 4.1.4.25.1.1.13.0 4074 4075 REFUSE -surface-all-arms 4.1.4.25.1.1.13.1 4075 4076 REFUSE -surface-all-arms 4.1.4.25.1.1.14 4076 4079 REFUSE -surface-all-arms 4.1.4.25.1.1.14.0 4077 4078 REFUSE -surface-all-arms 4.1.4.25.1.1.14.1 4078 4079 REFUSE -surface-all-arms 4.1.4.25.1.1.15 4079 4082 REFUSE -surface-all-arms 4.1.4.25.1.1.15.0 4080 4081 REFUSE -surface-all-arms 4.1.4.25.1.1.15.1 4081 4082 REFUSE -surface-all-arms 4.1.4.25.1.1.16 4082 4091 REFUSE -surface-all-arms 4.1.4.25.1.1.17 4091 4100 REFUSE -surface-all-arms 4.1.4.25.1.1.18 4100 4103 REFUSE -surface-all-arms 4.1.4.25.1.1.18.0 4101 4102 REFUSE -surface-all-arms 4.1.4.25.1.1.18.1 4102 4103 REFUSE -surface-all-arms 4.1.4.25.1.1.19 4103 4104 REFUSE -surface-all-arms 4.1.4.25.1.1.20 4104 4105 REFUSE -surface-all-arms 4.1.4.25.1.2 4105 4117 REFUSE -surface-all-arms 4.1.4.25.1.2.0 4106 4107 ACCEPT -surface-all-arms 4.1.4.25.1.2.1 4107 4108 ACCEPT -surface-all-arms 4.1.4.25.1.2.2 4108 4117 REFUSE -surface-all-arms 4.1.4.25.1.3 4117 4120 REFUSE -surface-all-arms 4.1.4.25.1.3.0 4118 4119 REFUSE -surface-all-arms 4.1.4.25.1.3.1 4119 4120 REFUSE -surface-all-arms 4.1.4.25.1.4 4120 4121 REFUSE -surface-all-arms 4.1.4.26 4121 4353 REFUSE -surface-all-arms 4.1.4.26.0 4122 4123 REFUSE -surface-all-arms 4.1.4.26.1 4123 4353 REFUSE -surface-all-arms 4.1.4.26.1.0 4124 4136 REFUSE -surface-all-arms 4.1.4.26.1.0.0 4125 4131 REFUSE -surface-all-arms 4.1.4.26.1.0.1 4131 4135 REFUSE -surface-all-arms 4.1.4.26.1.0.1.0 4132 4133 REFUSE -surface-all-arms 4.1.4.26.1.0.1.1 4133 4135 REFUSE -surface-all-arms 4.1.4.26.1.0.1.1.0 4134 4135 REFUSE -surface-all-arms 4.1.4.26.1.0.2 4135 4136 ACCEPT -surface-all-arms 4.1.4.26.1.1 4136 4337 REFUSE -surface-all-arms 4.1.4.26.1.1.0 4139 4142 REFUSE -surface-all-arms 4.1.4.26.1.1.0.0 4140 4141 REFUSE -surface-all-arms 4.1.4.26.1.1.0.1 4141 4142 REFUSE -surface-all-arms 4.1.4.26.1.1.1 4142 4145 REFUSE -surface-all-arms 4.1.4.26.1.1.1.0 4143 4144 REFUSE -surface-all-arms 4.1.4.26.1.1.1.1 4144 4145 REFUSE -surface-all-arms 4.1.4.26.1.1.2 4145 4148 REFUSE -surface-all-arms 4.1.4.26.1.1.2.0 4146 4147 REFUSE -surface-all-arms 4.1.4.26.1.1.2.1 4147 4148 REFUSE -surface-all-arms 4.1.4.26.1.1.3 4148 4173 REFUSE -surface-all-arms 4.1.4.26.1.1.3.0 4149 4161 REFUSE -surface-all-arms 4.1.4.26.1.1.3.0.0 4150 4151 REFUSE -surface-all-arms 4.1.4.26.1.1.3.0.1 4151 4161 REFUSE -surface-all-arms 4.1.4.26.1.1.3.0.1.0 4152 4161 REFUSE -surface-all-arms 4.1.4.26.1.1.3.1 4161 4173 REFUSE -surface-all-arms 4.1.4.26.1.1.3.1.0 4162 4163 REFUSE -surface-all-arms 4.1.4.26.1.1.3.1.1 4163 4173 REFUSE -surface-all-arms 4.1.4.26.1.1.3.1.1.0 4164 4173 REFUSE -surface-all-arms 4.1.4.26.1.1.4 4173 4222 REFUSE -surface-all-arms 4.1.4.26.1.1.4.0 4174 4186 REFUSE -surface-all-arms 4.1.4.26.1.1.4.0.0 4175 4176 REFUSE -surface-all-arms 4.1.4.26.1.1.4.0.1 4176 4186 REFUSE -surface-all-arms 4.1.4.26.1.1.4.0.1.0 4177 4186 REFUSE -surface-all-arms 4.1.4.26.1.1.4.1 4186 4198 REFUSE -surface-all-arms 4.1.4.26.1.1.4.1.0 4187 4188 REFUSE -surface-all-arms 4.1.4.26.1.1.4.1.1 4188 4198 REFUSE -surface-all-arms 4.1.4.26.1.1.4.1.1.0 4189 4198 REFUSE -surface-all-arms 4.1.4.26.1.1.4.2 4198 4210 REFUSE -surface-all-arms 4.1.4.26.1.1.4.2.0 4199 4200 REFUSE -surface-all-arms 4.1.4.26.1.1.4.2.1 4200 4210 REFUSE -surface-all-arms 4.1.4.26.1.1.4.2.1.0 4201 4210 REFUSE -surface-all-arms 4.1.4.26.1.1.4.3 4210 4222 REFUSE -surface-all-arms 4.1.4.26.1.1.4.3.0 4211 4212 REFUSE -surface-all-arms 4.1.4.26.1.1.4.3.1 4212 4222 REFUSE -surface-all-arms 4.1.4.26.1.1.4.3.1.0 4213 4222 REFUSE -surface-all-arms 4.1.4.26.1.1.5 4222 4235 REFUSE -surface-all-arms 4.1.4.26.1.1.5.0 4223 4226 REFUSE -surface-all-arms 4.1.4.26.1.1.5.0.0 4224 4225 REFUSE -surface-all-arms 4.1.4.26.1.1.5.0.1 4225 4226 REFUSE -surface-all-arms 4.1.4.26.1.1.5.1 4226 4229 REFUSE -surface-all-arms 4.1.4.26.1.1.5.1.0 4227 4228 REFUSE -surface-all-arms 4.1.4.26.1.1.5.1.1 4228 4229 REFUSE -surface-all-arms 4.1.4.26.1.1.5.2 4229 4232 REFUSE -surface-all-arms 4.1.4.26.1.1.5.2.0 4230 4231 REFUSE -surface-all-arms 4.1.4.26.1.1.5.2.1 4231 4232 REFUSE -surface-all-arms 4.1.4.26.1.1.5.3 4232 4235 REFUSE -surface-all-arms 4.1.4.26.1.1.5.3.0 4233 4234 REFUSE -surface-all-arms 4.1.4.26.1.1.5.3.1 4234 4235 REFUSE -surface-all-arms 4.1.4.26.1.1.6 4235 4251 REFUSE -surface-all-arms 4.1.4.26.1.1.6.0 4236 4248 REFUSE -surface-all-arms 4.1.4.26.1.1.6.0.0 4237 4238 REFUSE -surface-all-arms 4.1.4.26.1.1.6.0.1 4238 4248 REFUSE -surface-all-arms 4.1.4.26.1.1.6.0.1.0 4239 4248 REFUSE -surface-all-arms 4.1.4.26.1.1.6.1 4248 4251 REFUSE -surface-all-arms 4.1.4.26.1.1.6.1.0 4249 4250 REFUSE -surface-all-arms 4.1.4.26.1.1.6.1.1 4250 4251 REFUSE -surface-all-arms 4.1.4.26.1.1.7 4251 4276 REFUSE -surface-all-arms 4.1.4.26.1.1.7.0 4252 4264 REFUSE -surface-all-arms 4.1.4.26.1.1.7.0.0 4253 4254 REFUSE -surface-all-arms 4.1.4.26.1.1.7.0.1 4254 4264 REFUSE -surface-all-arms 4.1.4.26.1.1.7.0.1.0 4255 4264 REFUSE -surface-all-arms 4.1.4.26.1.1.7.1 4264 4276 REFUSE -surface-all-arms 4.1.4.26.1.1.7.1.0 4265 4266 REFUSE -surface-all-arms 4.1.4.26.1.1.7.1.1 4266 4276 REFUSE -surface-all-arms 4.1.4.26.1.1.7.1.1.0 4267 4276 REFUSE -surface-all-arms 4.1.4.26.1.1.8 4276 4283 REFUSE -surface-all-arms 4.1.4.26.1.1.8.0 4277 4280 REFUSE -surface-all-arms 4.1.4.26.1.1.8.0.0 4278 4279 REFUSE -surface-all-arms 4.1.4.26.1.1.8.0.1 4279 4280 REFUSE -surface-all-arms 4.1.4.26.1.1.8.1 4280 4283 REFUSE -surface-all-arms 4.1.4.26.1.1.8.1.0 4281 4282 REFUSE -surface-all-arms 4.1.4.26.1.1.8.1.1 4282 4283 REFUSE -surface-all-arms 4.1.4.26.1.1.9 4283 4286 REFUSE -surface-all-arms 4.1.4.26.1.1.9.0 4284 4285 REFUSE -surface-all-arms 4.1.4.26.1.1.9.1 4285 4286 REFUSE -surface-all-arms 4.1.4.26.1.1.10 4286 4299 REFUSE -surface-all-arms 4.1.4.26.1.1.10.0 4287 4290 REFUSE -surface-all-arms 4.1.4.26.1.1.10.0.0 4288 4289 REFUSE -surface-all-arms 4.1.4.26.1.1.10.0.1 4289 4290 REFUSE -surface-all-arms 4.1.4.26.1.1.10.1 4290 4293 REFUSE -surface-all-arms 4.1.4.26.1.1.10.1.0 4291 4292 REFUSE -surface-all-arms 4.1.4.26.1.1.10.1.1 4292 4293 REFUSE -surface-all-arms 4.1.4.26.1.1.10.2 4293 4296 REFUSE -surface-all-arms 4.1.4.26.1.1.10.2.0 4294 4295 REFUSE -surface-all-arms 4.1.4.26.1.1.10.2.1 4295 4296 REFUSE -surface-all-arms 4.1.4.26.1.1.10.3 4296 4299 REFUSE -surface-all-arms 4.1.4.26.1.1.10.3.0 4297 4298 REFUSE -surface-all-arms 4.1.4.26.1.1.10.3.1 4298 4299 REFUSE -surface-all-arms 4.1.4.26.1.1.11 4299 4302 REFUSE -surface-all-arms 4.1.4.26.1.1.11.0 4300 4301 REFUSE -surface-all-arms 4.1.4.26.1.1.11.1 4301 4302 REFUSE -surface-all-arms 4.1.4.26.1.1.12 4302 4305 REFUSE -surface-all-arms 4.1.4.26.1.1.12.0 4303 4304 REFUSE -surface-all-arms 4.1.4.26.1.1.12.1 4304 4305 REFUSE -surface-all-arms 4.1.4.26.1.1.13 4305 4308 REFUSE -surface-all-arms 4.1.4.26.1.1.13.0 4306 4307 REFUSE -surface-all-arms 4.1.4.26.1.1.13.1 4307 4308 REFUSE -surface-all-arms 4.1.4.26.1.1.14 4308 4311 REFUSE -surface-all-arms 4.1.4.26.1.1.14.0 4309 4310 REFUSE -surface-all-arms 4.1.4.26.1.1.14.1 4310 4311 REFUSE -surface-all-arms 4.1.4.26.1.1.15 4311 4314 REFUSE -surface-all-arms 4.1.4.26.1.1.15.0 4312 4313 REFUSE -surface-all-arms 4.1.4.26.1.1.15.1 4313 4314 REFUSE -surface-all-arms 4.1.4.26.1.1.16 4314 4323 REFUSE -surface-all-arms 4.1.4.26.1.1.17 4323 4332 REFUSE -surface-all-arms 4.1.4.26.1.1.18 4332 4335 REFUSE -surface-all-arms 4.1.4.26.1.1.18.0 4333 4334 REFUSE -surface-all-arms 4.1.4.26.1.1.18.1 4334 4335 REFUSE -surface-all-arms 4.1.4.26.1.1.19 4335 4336 REFUSE -surface-all-arms 4.1.4.26.1.1.20 4336 4337 REFUSE -surface-all-arms 4.1.4.26.1.2 4337 4349 REFUSE -surface-all-arms 4.1.4.26.1.2.0 4338 4339 ACCEPT -surface-all-arms 4.1.4.26.1.2.1 4339 4340 ACCEPT -surface-all-arms 4.1.4.26.1.2.2 4340 4349 REFUSE -surface-all-arms 4.1.4.26.1.3 4349 4352 REFUSE -surface-all-arms 4.1.4.26.1.3.0 4350 4351 REFUSE -surface-all-arms 4.1.4.26.1.3.1 4351 4352 REFUSE -surface-all-arms 4.1.4.26.1.4 4352 4353 REFUSE -surface-all-arms 4.1.4.27 4353 4388 REFUSE -surface-all-arms 4.1.4.27.0 4354 4355 REFUSE -surface-all-arms 4.1.4.27.1 4355 4388 REFUSE -surface-all-arms 4.1.4.27.1.0 4356 4370 REFUSE -surface-all-arms 4.1.4.27.1.0.0 4357 4365 REFUSE -surface-all-arms 4.1.4.27.1.0.1 4365 4369 REFUSE -surface-all-arms 4.1.4.27.1.0.1.0 4366 4367 REFUSE -surface-all-arms 4.1.4.27.1.0.1.1 4367 4369 REFUSE -surface-all-arms 4.1.4.27.1.0.1.1.0 4368 4369 REFUSE -surface-all-arms 4.1.4.27.1.0.2 4369 4370 ACCEPT -surface-all-arms 4.1.4.27.1.1 4370 4379 REFUSE -surface-all-arms 4.1.4.27.1.1.0 4371 4372 REFUSE -surface-all-arms 4.1.4.27.1.1.1 4372 4379 REFUSE -surface-all-arms 4.1.4.27.1.1.1.0 4373 4379 REFUSE -surface-all-arms 4.1.4.27.1.2 4379 4385 REFUSE -surface-all-arms 4.1.4.27.1.3 4385 4386 REFUSE -surface-all-arms 4.1.4.27.1.4 4386 4387 ACCEPT -surface-all-arms 4.1.4.27.1.5 4387 4388 REFUSE -surface-all-arms 4.1.4.28 4388 4427 REFUSE -surface-all-arms 4.1.4.28.0 4389 4390 REFUSE -surface-all-arms 4.1.4.28.1 4390 4427 REFUSE -surface-all-arms 4.1.4.28.1.0 4391 4413 REFUSE -surface-all-arms 4.1.4.28.1.0.0 4392 4407 REFUSE -surface-all-arms 4.1.4.28.1.0.1 4407 4412 REFUSE -surface-all-arms 4.1.4.28.1.0.1.0 4408 4409 REFUSE -surface-all-arms 4.1.4.28.1.0.1.1 4409 4412 REFUSE -surface-all-arms 4.1.4.28.1.0.1.1.0 4410 4412 REFUSE -surface-all-arms 4.1.4.28.1.0.2 4412 4413 ACCEPT -surface-all-arms 4.1.4.28.1.1 4413 4417 REFUSE -surface-all-arms 4.1.4.28.1.1.0 4414 4415 REFUSE -surface-all-arms 4.1.4.28.1.1.1 4415 4417 REFUSE -surface-all-arms 4.1.4.28.1.1.1.0 4416 4417 REFUSE -surface-all-arms 4.1.4.28.1.2 4417 4427 REFUSE -surface-all-arms 4.1.4.28.1.2.0 4418 4419 REFUSE -surface-all-arms 4.1.4.28.1.2.1 4419 4427 REFUSE -surface-all-arms 4.1.4.28.1.2.1.0 4420 4427 REFUSE -surface-all-arms 4.1.4.29 4427 4503 REFUSE -surface-all-arms 4.1.4.29.0 4428 4429 REFUSE -surface-all-arms 4.1.4.29.1 4429 4503 REFUSE -surface-all-arms 4.1.4.29.1.0 4430 4451 REFUSE -surface-all-arms 4.1.4.29.1.0.0 4431 4446 REFUSE -surface-all-arms 4.1.4.29.1.0.1 4446 4450 REFUSE -surface-all-arms 4.1.4.29.1.0.1.0 4447 4448 REFUSE -surface-all-arms 4.1.4.29.1.0.1.1 4448 4450 REFUSE -surface-all-arms 4.1.4.29.1.0.1.1.0 4449 4450 REFUSE -surface-all-arms 4.1.4.29.1.0.2 4450 4451 ACCEPT -surface-all-arms 4.1.4.29.1.1 4451 4460 REFUSE -surface-all-arms 4.1.4.29.1.2 4460 4469 REFUSE -surface-all-arms 4.1.4.29.1.3 4469 4478 REFUSE -surface-all-arms 4.1.4.29.1.4 4478 4490 REFUSE -surface-all-arms 4.1.4.29.1.4.0 4479 4480 REFUSE -surface-all-arms 4.1.4.29.1.4.1 4480 4490 REFUSE -surface-all-arms 4.1.4.29.1.4.1.0 4481 4490 REFUSE -surface-all-arms 4.1.4.29.1.5 4490 4503 REFUSE -surface-all-arms 4.1.4.29.1.5.0 4491 4492 REFUSE -surface-all-arms 4.1.4.29.1.5.1 4492 4503 REFUSE -surface-all-arms 4.1.4.29.1.5.1.0 4493 4503 REFUSE -surface-all-arms 4.1.4.30 4503 4570 REFUSE -surface-all-arms 4.1.4.30.0 4504 4505 REFUSE -surface-all-arms 4.1.4.30.1 4505 4570 REFUSE -surface-all-arms 4.1.4.30.1.0 4506 4525 REFUSE -surface-all-arms 4.1.4.30.1.0.0 4507 4520 REFUSE -surface-all-arms 4.1.4.30.1.0.1 4520 4524 REFUSE -surface-all-arms 4.1.4.30.1.0.1.0 4521 4522 REFUSE -surface-all-arms 4.1.4.30.1.0.1.1 4522 4524 REFUSE -surface-all-arms 4.1.4.30.1.0.1.1.0 4523 4524 REFUSE -surface-all-arms 4.1.4.30.1.0.2 4524 4525 ACCEPT -surface-all-arms 4.1.4.30.1.1 4525 4534 REFUSE -surface-all-arms 4.1.4.30.1.2 4534 4543 REFUSE -surface-all-arms 4.1.4.30.1.3 4543 4552 REFUSE -surface-all-arms 4.1.4.30.1.4 4552 4557 REFUSE -surface-all-arms 4.1.4.30.1.4.0 4553 4554 REFUSE -surface-all-arms 4.1.4.30.1.4.1 4554 4557 REFUSE -surface-all-arms 4.1.4.30.1.4.1.0 4555 4557 REFUSE -surface-all-arms 4.1.4.30.1.5 4557 4570 REFUSE -surface-all-arms 4.1.4.30.1.5.0 4558 4559 REFUSE -surface-all-arms 4.1.4.30.1.5.1 4559 4570 REFUSE -surface-all-arms 4.1.4.30.1.5.1.0 4560 4570 REFUSE -surface-all-arms 4.1.4.31 4570 4638 REFUSE -surface-all-arms 4.1.4.31.0 4571 4572 REFUSE -surface-all-arms 4.1.4.31.1 4572 4638 REFUSE -surface-all-arms 4.1.4.31.1.0 4573 4590 REFUSE -surface-all-arms 4.1.4.31.1.0.0 4574 4585 REFUSE -surface-all-arms 4.1.4.31.1.0.1 4585 4589 REFUSE -surface-all-arms 4.1.4.31.1.0.1.0 4586 4587 REFUSE -surface-all-arms 4.1.4.31.1.0.1.1 4587 4589 REFUSE -surface-all-arms 4.1.4.31.1.0.1.1.0 4588 4589 REFUSE -surface-all-arms 4.1.4.31.1.0.2 4589 4590 ACCEPT -surface-all-arms 4.1.4.31.1.1 4590 4598 REFUSE -surface-all-arms 4.1.4.31.1.1.0 4591 4592 REFUSE -surface-all-arms 4.1.4.31.1.1.1 4592 4598 REFUSE -surface-all-arms 4.1.4.31.1.1.1.0 4593 4598 REFUSE -surface-all-arms 4.1.4.31.1.2 4598 4606 REFUSE -surface-all-arms 4.1.4.31.1.2.0 4599 4606 REFUSE -surface-all-arms 4.1.4.31.1.2.0.0 4600 4606 REFUSE -surface-all-arms 4.1.4.31.1.2.0.0.0 4601 4602 REFUSE -surface-all-arms 4.1.4.31.1.2.0.0.1 4602 4606 REFUSE -surface-all-arms 4.1.4.31.1.2.0.0.1.0 4603 4606 REFUSE -surface-all-arms 4.1.4.31.1.3 4606 4638 REFUSE -surface-all-arms 4.1.4.31.1.3.0 4607 4608 REFUSE -surface-all-arms 4.1.4.31.1.3.1 4608 4638 REFUSE -surface-all-arms 4.1.4.31.1.3.1.0 4609 4625 REFUSE -surface-all-arms 4.1.4.31.1.3.1.0.0 4610 4620 REFUSE -surface-all-arms 4.1.4.31.1.3.1.0.1 4620 4624 REFUSE -surface-all-arms 4.1.4.31.1.3.1.0.1.0 4621 4622 REFUSE -surface-all-arms 4.1.4.31.1.3.1.0.1.1 4622 4624 REFUSE -surface-all-arms 4.1.4.31.1.3.1.0.1.1.0 4623 4624 REFUSE -surface-all-arms 4.1.4.31.1.3.1.0.2 4624 4625 ACCEPT -surface-all-arms 4.1.4.31.1.3.1.1 4625 4630 REFUSE -surface-all-arms 4.1.4.31.1.3.1.1.0 4626 4627 REFUSE -surface-all-arms 4.1.4.31.1.3.1.1.1 4627 4630 REFUSE -surface-all-arms 4.1.4.31.1.3.1.1.1.0 4628 4630 REFUSE -surface-all-arms 4.1.4.31.1.3.1.2 4630 4635 REFUSE -surface-all-arms 4.1.4.31.1.3.1.3 4635 4636 REFUSE -surface-all-arms 4.1.4.31.1.3.1.4 4636 4637 ACCEPT -surface-all-arms 4.1.4.31.1.3.1.5 4637 4638 REFUSE -surface-all-arms 5 4638 4733 REFUSE -surface-all-arms 5.0 4639 4695 REFUSE -surface-all-arms 5.0.0 4640 4643 REFUSE -surface-all-arms 5.0.1 4643 4669 REFUSE -surface-all-arms 5.0.2 4669 4687 REFUSE -surface-all-arms 5.0.2.0 4670 4681 REFUSE -surface-all-arms 5.0.2.1 4681 4687 REFUSE -surface-all-arms 5.0.3 4687 4695 ACCEPT -surface-all-arms 5.1 4695 4733 REFUSE -surface-all-arms 5.1.0 4696 4702 REFUSE -surface-all-arms 5.1.1 4702 4731 REFUSE -surface-all-arms 5.1.2 4731 4732 REFUSE -surface-all-arms 5.1.3 4732 4733 ACCEPT -composition-all-params 0 1 12 REFUSE -composition-all-params 1 12 18 REFUSE -composition-all-params 2 18 19 REFUSE -composition-all-params 3 19 84 REFUSE -composition-all-params 3.0 20 30 REFUSE -composition-all-params 3.0.0 21 27 REFUSE -composition-all-params 3.0.1 27 30 REFUSE -composition-all-params 3.0.1.0 28 29 REFUSE -composition-all-params 3.0.1.1 29 30 REFUSE -composition-all-params 3.1 30 40 REFUSE -composition-all-params 3.1.0 31 37 REFUSE -composition-all-params 3.1.1 37 40 REFUSE -composition-all-params 3.1.1.0 38 39 REFUSE -composition-all-params 3.1.1.1 39 40 REFUSE -composition-all-params 3.2 40 47 REFUSE -composition-all-params 3.2.0 41 44 REFUSE -composition-all-params 3.2.1 44 47 REFUSE -composition-all-params 3.2.1.0 45 46 REFUSE -composition-all-params 3.2.1.1 46 47 REFUSE -composition-all-params 3.3 47 58 REFUSE -composition-all-params 3.3.0 48 55 REFUSE -composition-all-params 3.3.1 55 58 REFUSE -composition-all-params 3.3.1.0 56 57 REFUSE -composition-all-params 3.3.1.1 57 58 REFUSE -composition-all-params 3.4 58 67 REFUSE -composition-all-params 3.4.0 59 64 REFUSE -composition-all-params 3.4.1 64 67 REFUSE -composition-all-params 3.4.1.0 65 66 REFUSE -composition-all-params 3.4.1.1 66 67 REFUSE -composition-all-params 3.5 67 75 REFUSE -composition-all-params 3.5.0 68 72 REFUSE -composition-all-params 3.5.1 72 75 REFUSE -composition-all-params 3.5.1.0 73 74 REFUSE -composition-all-params 3.5.1.1 74 75 REFUSE -composition-all-params 3.6 75 84 REFUSE -composition-all-params 3.6.0 76 81 REFUSE -composition-all-params 3.6.1 81 84 REFUSE -composition-all-params 3.6.1.0 82 83 REFUSE -composition-all-params 3.6.1.1 83 84 REFUSE -composition-all-params 4 84 821 REFUSE -composition-all-params 4.0 85 86 REFUSE -composition-all-params 4.1 86 821 REFUSE -composition-all-params 4.1.0 87 104 REFUSE -composition-all-params 4.1.0.0 88 99 REFUSE -composition-all-params 4.1.0.1 99 103 REFUSE -composition-all-params 4.1.0.1.0 100 101 REFUSE -composition-all-params 4.1.0.1.1 101 103 REFUSE -composition-all-params 4.1.0.1.1.0 102 103 REFUSE -composition-all-params 4.1.0.2 103 104 ACCEPT -composition-all-params 4.1.1 104 305 REFUSE -composition-all-params 4.1.1.0 107 110 REFUSE -composition-all-params 4.1.1.0.0 108 109 REFUSE -composition-all-params 4.1.1.0.1 109 110 REFUSE -composition-all-params 4.1.1.1 110 113 REFUSE -composition-all-params 4.1.1.1.0 111 112 REFUSE -composition-all-params 4.1.1.1.1 112 113 REFUSE -composition-all-params 4.1.1.2 113 116 REFUSE -composition-all-params 4.1.1.2.0 114 115 REFUSE -composition-all-params 4.1.1.2.1 115 116 REFUSE -composition-all-params 4.1.1.3 116 141 REFUSE -composition-all-params 4.1.1.3.0 117 129 REFUSE -composition-all-params 4.1.1.3.0.0 118 119 REFUSE -composition-all-params 4.1.1.3.0.1 119 129 REFUSE -composition-all-params 4.1.1.3.0.1.0 120 129 REFUSE -composition-all-params 4.1.1.3.1 129 141 REFUSE -composition-all-params 4.1.1.3.1.0 130 131 REFUSE -composition-all-params 4.1.1.3.1.1 131 141 REFUSE -composition-all-params 4.1.1.3.1.1.0 132 141 REFUSE -composition-all-params 4.1.1.4 141 190 REFUSE -composition-all-params 4.1.1.4.0 142 154 REFUSE -composition-all-params 4.1.1.4.0.0 143 144 REFUSE -composition-all-params 4.1.1.4.0.1 144 154 REFUSE -composition-all-params 4.1.1.4.0.1.0 145 154 REFUSE -composition-all-params 4.1.1.4.1 154 166 REFUSE -composition-all-params 4.1.1.4.1.0 155 156 REFUSE -composition-all-params 4.1.1.4.1.1 156 166 REFUSE -composition-all-params 4.1.1.4.1.1.0 157 166 REFUSE -composition-all-params 4.1.1.4.2 166 178 REFUSE -composition-all-params 4.1.1.4.2.0 167 168 REFUSE -composition-all-params 4.1.1.4.2.1 168 178 REFUSE -composition-all-params 4.1.1.4.2.1.0 169 178 REFUSE -composition-all-params 4.1.1.4.3 178 190 REFUSE -composition-all-params 4.1.1.4.3.0 179 180 REFUSE -composition-all-params 4.1.1.4.3.1 180 190 REFUSE -composition-all-params 4.1.1.4.3.1.0 181 190 REFUSE -composition-all-params 4.1.1.5 190 203 REFUSE -composition-all-params 4.1.1.5.0 191 194 REFUSE -composition-all-params 4.1.1.5.0.0 192 193 REFUSE -composition-all-params 4.1.1.5.0.1 193 194 REFUSE -composition-all-params 4.1.1.5.1 194 197 REFUSE -composition-all-params 4.1.1.5.1.0 195 196 REFUSE -composition-all-params 4.1.1.5.1.1 196 197 REFUSE -composition-all-params 4.1.1.5.2 197 200 REFUSE -composition-all-params 4.1.1.5.2.0 198 199 REFUSE -composition-all-params 4.1.1.5.2.1 199 200 REFUSE -composition-all-params 4.1.1.5.3 200 203 REFUSE -composition-all-params 4.1.1.5.3.0 201 202 REFUSE -composition-all-params 4.1.1.5.3.1 202 203 REFUSE -composition-all-params 4.1.1.6 203 219 REFUSE -composition-all-params 4.1.1.6.0 204 216 REFUSE -composition-all-params 4.1.1.6.0.0 205 206 REFUSE -composition-all-params 4.1.1.6.0.1 206 216 REFUSE -composition-all-params 4.1.1.6.0.1.0 207 216 REFUSE -composition-all-params 4.1.1.6.1 216 219 REFUSE -composition-all-params 4.1.1.6.1.0 217 218 REFUSE -composition-all-params 4.1.1.6.1.1 218 219 REFUSE -composition-all-params 4.1.1.7 219 244 REFUSE -composition-all-params 4.1.1.7.0 220 232 REFUSE -composition-all-params 4.1.1.7.0.0 221 222 REFUSE -composition-all-params 4.1.1.7.0.1 222 232 REFUSE -composition-all-params 4.1.1.7.0.1.0 223 232 REFUSE -composition-all-params 4.1.1.7.1 232 244 REFUSE -composition-all-params 4.1.1.7.1.0 233 234 REFUSE -composition-all-params 4.1.1.7.1.1 234 244 REFUSE -composition-all-params 4.1.1.7.1.1.0 235 244 REFUSE -composition-all-params 4.1.1.8 244 251 REFUSE -composition-all-params 4.1.1.8.0 245 248 REFUSE -composition-all-params 4.1.1.8.0.0 246 247 REFUSE -composition-all-params 4.1.1.8.0.1 247 248 REFUSE -composition-all-params 4.1.1.8.1 248 251 REFUSE -composition-all-params 4.1.1.8.1.0 249 250 REFUSE -composition-all-params 4.1.1.8.1.1 250 251 REFUSE -composition-all-params 4.1.1.9 251 254 REFUSE -composition-all-params 4.1.1.9.0 252 253 REFUSE -composition-all-params 4.1.1.9.1 253 254 REFUSE -composition-all-params 4.1.1.10 254 267 REFUSE -composition-all-params 4.1.1.10.0 255 258 REFUSE -composition-all-params 4.1.1.10.0.0 256 257 REFUSE -composition-all-params 4.1.1.10.0.1 257 258 REFUSE -composition-all-params 4.1.1.10.1 258 261 REFUSE -composition-all-params 4.1.1.10.1.0 259 260 REFUSE -composition-all-params 4.1.1.10.1.1 260 261 REFUSE -composition-all-params 4.1.1.10.2 261 264 REFUSE -composition-all-params 4.1.1.10.2.0 262 263 REFUSE -composition-all-params 4.1.1.10.2.1 263 264 REFUSE -composition-all-params 4.1.1.10.3 264 267 REFUSE -composition-all-params 4.1.1.10.3.0 265 266 REFUSE -composition-all-params 4.1.1.10.3.1 266 267 REFUSE -composition-all-params 4.1.1.11 267 270 REFUSE -composition-all-params 4.1.1.11.0 268 269 REFUSE -composition-all-params 4.1.1.11.1 269 270 REFUSE -composition-all-params 4.1.1.12 270 273 REFUSE -composition-all-params 4.1.1.12.0 271 272 REFUSE -composition-all-params 4.1.1.12.1 272 273 REFUSE -composition-all-params 4.1.1.13 273 276 REFUSE -composition-all-params 4.1.1.13.0 274 275 REFUSE -composition-all-params 4.1.1.13.1 275 276 REFUSE -composition-all-params 4.1.1.14 276 279 REFUSE -composition-all-params 4.1.1.14.0 277 278 REFUSE -composition-all-params 4.1.1.14.1 278 279 REFUSE -composition-all-params 4.1.1.15 279 282 REFUSE -composition-all-params 4.1.1.15.0 280 281 REFUSE -composition-all-params 4.1.1.15.1 281 282 REFUSE -composition-all-params 4.1.1.16 282 291 REFUSE -composition-all-params 4.1.1.17 291 300 REFUSE -composition-all-params 4.1.1.18 300 303 REFUSE -composition-all-params 4.1.1.18.0 301 302 REFUSE -composition-all-params 4.1.1.18.1 302 303 REFUSE -composition-all-params 4.1.1.19 303 304 REFUSE -composition-all-params 4.1.1.20 304 305 REFUSE -composition-all-params 4.1.2 305 317 REFUSE -composition-all-params 4.1.2.0 306 307 ACCEPT -composition-all-params 4.1.2.1 307 308 ACCEPT -composition-all-params 4.1.2.2 308 317 REFUSE -composition-all-params 4.1.3 317 320 REFUSE -composition-all-params 4.1.3.0 318 319 REFUSE -composition-all-params 4.1.3.1 319 320 REFUSE -composition-all-params 4.1.4 320 821 REFUSE -composition-all-params 4.1.4.0 321 355 REFUSE -composition-all-params 4.1.4.0.0 322 323 REFUSE -composition-all-params 4.1.4.0.1 323 355 REFUSE -composition-all-params 4.1.4.0.1.0 324 342 REFUSE -composition-all-params 4.1.4.0.1.0.0 325 337 REFUSE -composition-all-params 4.1.4.0.1.0.1 337 341 REFUSE -composition-all-params 4.1.4.0.1.0.1.0 338 339 REFUSE -composition-all-params 4.1.4.0.1.0.1.1 339 341 REFUSE -composition-all-params 4.1.4.0.1.0.1.1.0 340 341 REFUSE -composition-all-params 4.1.4.0.1.0.2 341 342 ACCEPT -composition-all-params 4.1.4.0.1.1 342 347 REFUSE -composition-all-params 4.1.4.0.1.1.0 343 344 REFUSE -composition-all-params 4.1.4.0.1.1.1 344 347 REFUSE -composition-all-params 4.1.4.0.1.1.1.0 345 347 REFUSE -composition-all-params 4.1.4.0.1.2 347 352 REFUSE -composition-all-params 4.1.4.0.1.3 352 353 REFUSE -composition-all-params 4.1.4.0.1.4 353 354 ACCEPT -composition-all-params 4.1.4.0.1.5 354 355 REFUSE -composition-all-params 4.1.4.1 355 812 REFUSE -composition-all-params 4.1.4.1.0 356 357 REFUSE -composition-all-params 4.1.4.1.1 357 812 REFUSE -composition-all-params 4.1.4.1.1.0 358 370 REFUSE -composition-all-params 4.1.4.1.1.0.0 359 365 REFUSE -composition-all-params 4.1.4.1.1.0.1 365 369 REFUSE -composition-all-params 4.1.4.1.1.0.1.0 366 367 REFUSE -composition-all-params 4.1.4.1.1.0.1.1 367 369 REFUSE -composition-all-params 4.1.4.1.1.0.1.1.0 368 369 REFUSE -composition-all-params 4.1.4.1.1.0.2 369 370 ACCEPT -composition-all-params 4.1.4.1.1.1 370 387 REFUSE -composition-all-params 4.1.4.1.1.1.0 371 381 REFUSE -composition-all-params 4.1.4.1.1.1.1 381 386 REFUSE -composition-all-params 4.1.4.1.1.1.2 386 387 REFUSE -composition-all-params 4.1.4.1.1.2 387 812 REFUSE -composition-all-params 4.1.4.1.1.2.0 388 399 REFUSE -composition-all-params 4.1.4.1.1.2.0.0 389 394 REFUSE -composition-all-params 4.1.4.1.1.2.0.1 394 399 REFUSE -composition-all-params 4.1.4.1.1.2.0.1.0 395 396 REFUSE -composition-all-params 4.1.4.1.1.2.0.1.1 396 399 REFUSE -composition-all-params 4.1.4.1.1.2.0.1.1.0 397 399 REFUSE -composition-all-params 4.1.4.1.1.2.1 399 419 REFUSE -composition-all-params 4.1.4.1.1.2.1.0 400 407 REFUSE -composition-all-params 4.1.4.1.1.2.1.1 407 419 REFUSE -composition-all-params 4.1.4.1.1.2.1.1.0 408 409 REFUSE -composition-all-params 4.1.4.1.1.2.1.1.1 409 419 REFUSE -composition-all-params 4.1.4.1.1.2.1.1.1.0 410 419 REFUSE -composition-all-params 4.1.4.1.1.2.2 419 429 REFUSE -composition-all-params 4.1.4.1.1.2.2.0 420 425 REFUSE -composition-all-params 4.1.4.1.1.2.2.1 425 429 REFUSE -composition-all-params 4.1.4.1.1.2.2.1.0 426 427 REFUSE -composition-all-params 4.1.4.1.1.2.2.1.1 427 429 REFUSE -composition-all-params 4.1.4.1.1.2.2.1.1.0 428 429 REFUSE -composition-all-params 4.1.4.1.1.2.3 429 489 REFUSE -composition-all-params 4.1.4.1.1.2.3.0 430 435 REFUSE -composition-all-params 4.1.4.1.1.2.3.1 435 489 REFUSE -composition-all-params 4.1.4.1.1.2.3.1.0 436 437 REFUSE -composition-all-params 4.1.4.1.1.2.3.1.1 437 489 REFUSE -composition-all-params 4.1.4.1.1.2.3.1.1.0 438 481 REFUSE -composition-all-params 4.1.4.1.1.2.3.1.1.0.0 439 440 REFUSE -composition-all-params 4.1.4.1.1.2.3.1.1.0.1 440 481 REFUSE -composition-all-params 4.1.4.1.1.2.3.1.1.0.1.0 441 452 ACCEPT -composition-all-params 4.1.4.1.1.2.3.1.1.0.1.1 452 475 REFUSE -composition-all-params 4.1.4.1.1.2.3.1.1.0.1.2 475 481 REFUSE -composition-all-params 4.1.4.1.1.2.3.1.1.1 481 488 REFUSE -composition-all-params 4.1.4.1.1.2.3.1.1.1.0 482 488 REFUSE -composition-all-params 4.1.4.1.1.2.3.1.1.1.0.0 483 488 REFUSE -composition-all-params 4.1.4.1.1.2.3.1.1.1.0.0.0 484 485 REFUSE -composition-all-params 4.1.4.1.1.2.3.1.1.1.0.0.1 485 488 REFUSE -composition-all-params 4.1.4.1.1.2.3.1.1.1.0.0.1.0 486 488 REFUSE -composition-all-params 4.1.4.1.1.2.3.1.1.2 488 489 ACCEPT -composition-all-params 4.1.4.1.1.2.4 489 512 REFUSE -composition-all-params 4.1.4.1.1.2.4.0 490 501 REFUSE -composition-all-params 4.1.4.1.1.2.4.1 501 512 REFUSE -composition-all-params 4.1.4.1.1.2.4.1.0 502 503 REFUSE -composition-all-params 4.1.4.1.1.2.4.1.1 503 512 REFUSE -composition-all-params 4.1.4.1.1.2.4.1.1.0 504 512 REFUSE -composition-all-params 4.1.4.1.1.2.4.1.1.0.0 505 506 REFUSE -composition-all-params 4.1.4.1.1.2.4.1.1.0.1 506 512 REFUSE -composition-all-params 4.1.4.1.1.2.4.1.1.0.1.0 507 512 REFUSE -composition-all-params 4.1.4.1.1.2.5 512 530 REFUSE -composition-all-params 4.1.4.1.1.2.5.0 513 521 REFUSE -composition-all-params 4.1.4.1.1.2.5.1 521 530 REFUSE -composition-all-params 4.1.4.1.1.2.5.1.0 522 523 REFUSE -composition-all-params 4.1.4.1.1.2.5.1.1 523 530 REFUSE -composition-all-params 4.1.4.1.1.2.5.1.1.0 524 530 REFUSE -composition-all-params 4.1.4.1.1.2.5.1.1.0.0 525 526 REFUSE -composition-all-params 4.1.4.1.1.2.5.1.1.0.1 526 530 REFUSE -composition-all-params 4.1.4.1.1.2.5.1.1.0.1.0 527 530 REFUSE -composition-all-params 4.1.4.1.1.2.6 530 812 REFUSE -composition-all-params 4.1.4.1.1.2.6.0 531 536 REFUSE -composition-all-params 4.1.4.1.1.2.6.1 536 812 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.0 537 538 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1 538 812 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0 539 812 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.0 540 577 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.0.0 541 542 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.0.1 542 577 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.0.1.0 543 559 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.0.1.0.0 544 554 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.0.1.0.1 554 558 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.0.1.0.1.0 555 556 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.0.1.0.1.1 556 558 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.0.1.0.1.1.0 557 558 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.0.1.0.2 558 559 ACCEPT -composition-all-params 4.1.4.1.1.2.6.1.1.0.0.1.1 559 569 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.0.1.1.0 560 561 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.0.1.1.1 561 569 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.0.1.1.1.0 562 569 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.0.1.2 569 574 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.0.1.3 574 575 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.0.1.4 575 576 ACCEPT -composition-all-params 4.1.4.1.1.2.6.1.1.0.0.1.5 576 577 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1 577 812 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.0 578 579 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1 579 812 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.0 580 595 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.0.0 581 590 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.0.1 590 594 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.0.1.0 591 592 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.0.1.1 592 594 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.0.1.1.0 593 594 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.0.2 594 595 ACCEPT -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1 595 796 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.0 598 601 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.0.0 599 600 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.0.1 600 601 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.1 601 604 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.1.0 602 603 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.1.1 603 604 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.2 604 607 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.2.0 605 606 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.2.1 606 607 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.3 607 632 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.3.0 608 620 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.3.0.0 609 610 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.3.0.1 610 620 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.3.0.1.0 611 620 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.3.1 620 632 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.3.1.0 621 622 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.3.1.1 622 632 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.3.1.1.0 623 632 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.4 632 681 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.4.0 633 645 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.4.0.0 634 635 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.4.0.1 635 645 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.4.0.1.0 636 645 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.4.1 645 657 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.4.1.0 646 647 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.4.1.1 647 657 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.4.1.1.0 648 657 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.4.2 657 669 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.4.2.0 658 659 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.4.2.1 659 669 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.4.2.1.0 660 669 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.4.3 669 681 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.4.3.0 670 671 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.4.3.1 671 681 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.4.3.1.0 672 681 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.5 681 694 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.5.0 682 685 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.5.0.0 683 684 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.5.0.1 684 685 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.5.1 685 688 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.5.1.0 686 687 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.5.1.1 687 688 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.5.2 688 691 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.5.2.0 689 690 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.5.2.1 690 691 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.5.3 691 694 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.5.3.0 692 693 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.5.3.1 693 694 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.6 694 710 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.6.0 695 707 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.6.0.0 696 697 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.6.0.1 697 707 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.6.0.1.0 698 707 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.6.1 707 710 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.6.1.0 708 709 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.6.1.1 709 710 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.7 710 735 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.7.0 711 723 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.7.0.0 712 713 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.7.0.1 713 723 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.7.0.1.0 714 723 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.7.1 723 735 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.7.1.0 724 725 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.7.1.1 725 735 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.7.1.1.0 726 735 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.8 735 742 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.8.0 736 739 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.8.0.0 737 738 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.8.0.1 738 739 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.8.1 739 742 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.8.1.0 740 741 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.8.1.1 741 742 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.9 742 745 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.9.0 743 744 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.9.1 744 745 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.10 745 758 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.10.0 746 749 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.10.0.0 747 748 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.10.0.1 748 749 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.10.1 749 752 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.10.1.0 750 751 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.10.1.1 751 752 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.10.2 752 755 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.10.2.0 753 754 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.10.2.1 754 755 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.10.3 755 758 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.10.3.0 756 757 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.10.3.1 757 758 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.11 758 761 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.11.0 759 760 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.11.1 760 761 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.12 761 764 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.12.0 762 763 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.12.1 763 764 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.13 764 767 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.13.0 765 766 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.13.1 766 767 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.14 767 770 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.14.0 768 769 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.14.1 769 770 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.15 770 773 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.15.0 771 772 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.15.1 772 773 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.16 773 782 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.17 782 791 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.18 791 794 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.18.0 792 793 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.18.1 793 794 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.19 794 795 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.1.20 795 796 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.2 796 808 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.2.0 797 798 ACCEPT -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.2.1 798 799 ACCEPT -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.2.2 799 808 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.3 808 811 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.3.0 809 810 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.3.1 810 811 REFUSE -composition-all-params 4.1.4.1.1.2.6.1.1.0.1.1.4 811 812 REFUSE -composition-all-params 4.1.4.2 812 821 REFUSE -composition-all-params 4.1.4.2.0 813 814 REFUSE -composition-all-params 4.1.4.2.1 814 821 REFUSE -composition-all-params 4.1.4.2.1.0 815 821 REFUSE -composition-all-params 4.1.4.2.1.0.0 816 821 REFUSE -invocation-all-inputs 0 1 39 REFUSE -invocation-all-inputs 1 39 69 REFUSE -invocation-all-inputs 2 69 70 REFUSE -invocation-all-inputs 3 70 73 REFUSE -invocation-all-inputs 4 73 106 REFUSE -invocation-all-inputs 4.0 74 100 REFUSE -invocation-all-inputs 4.1 100 106 REFUSE -invocation-all-inputs 5 106 166 REFUSE -invocation-all-inputs 5.0 107 126 REFUSE -invocation-all-inputs 5.0.0 108 119 REFUSE -invocation-all-inputs 5.0.1 119 126 REFUSE -invocation-all-inputs 5.0.1.0 120 121 REFUSE -invocation-all-inputs 5.0.1.1 121 126 REFUSE -invocation-all-inputs 5.0.1.1.0 122 126 REFUSE -invocation-all-inputs 5.1 126 145 REFUSE -invocation-all-inputs 5.1.0 127 133 REFUSE -invocation-all-inputs 5.1.1 133 145 REFUSE -invocation-all-inputs 5.1.1.0 134 135 REFUSE -invocation-all-inputs 5.1.1.1 135 145 REFUSE -invocation-all-inputs 5.1.1.1.0 136 145 REFUSE -invocation-all-inputs 5.2 145 155 REFUSE -invocation-all-inputs 5.2.0 146 151 REFUSE -invocation-all-inputs 5.2.1 151 155 REFUSE -invocation-all-inputs 5.2.1.0 152 153 REFUSE -invocation-all-inputs 5.2.1.1 153 155 REFUSE -invocation-all-inputs 5.2.1.1.0 154 155 REFUSE -invocation-all-inputs 5.3 155 166 REFUSE -invocation-all-inputs 5.3.0 156 161 REFUSE -invocation-all-inputs 5.3.1 161 166 REFUSE -invocation-all-inputs 5.3.1.0 162 163 REFUSE -invocation-all-inputs 5.3.1.1 163 166 REFUSE -invocation-all-inputs 5.3.1.1.0 164 166 REFUSE -invocation-all-inputs 6 166 179 REFUSE -invocation-all-inputs 7 179 200 REFUSE -invocation-all-inputs 8 200 211 ACCEPT -invocation-all-inputs 9 211 221 REFUSE -invocation-all-inputs 10 221 234 REFUSE -invocation-all-inputs 10.0 222 228 REFUSE -invocation-all-inputs 10.1 228 234 REFUSE -result-pending 0 1 39 REFUSE -result-pending 1 39 40 REFUSE -result-pending 2 40 51 REFUSE -result-pending 2.0 41 42 REFUSE -result-pending 2.1 42 51 REFUSE -result-pending 2.1.0 43 51 REFUSE -result-completed 0 1 39 REFUSE -result-completed 1 39 40 REFUSE -result-completed 2 40 46 REFUSE -result-completed 2.0 41 42 REFUSE -result-completed 2.1 42 46 REFUSE -result-completed 2.1.0 43 44 ACCEPT -result-completed 2.1.1 44 45 REFUSE -result-completed 2.1.2 45 46 ACCEPT -result-completed-open-surface 0 1 39 REFUSE -result-completed-open-surface 1 39 40 REFUSE -result-completed-open-surface 2 40 78 REFUSE -result-completed-open-surface 2.0 41 42 REFUSE -result-completed-open-surface 2.1 42 78 REFUSE -result-completed-open-surface 2.1.0 43 44 ACCEPT -result-completed-open-surface 2.1.1 44 45 REFUSE -result-completed-open-surface 2.1.2 45 78 ACCEPT -result-completed-open-surface 2.1.2.0 46 47 REFUSE -result-completed-open-surface 2.1.2.1 47 78 REFUSE -result-completed-open-surface 2.1.2.1.0 48 78 REFUSE -result-completed-open-external 0 1 39 REFUSE -result-completed-open-external 1 39 40 REFUSE -result-completed-open-external 2 40 84 REFUSE -result-completed-open-external 2.0 41 42 REFUSE -result-completed-open-external 2.1 42 84 REFUSE -result-completed-open-external 2.1.0 43 44 ACCEPT -result-completed-open-external 2.1.1 44 45 REFUSE -result-completed-open-external 2.1.2 45 84 ACCEPT -result-completed-open-external 2.1.2.0 46 47 REFUSE -result-completed-open-external 2.1.2.1 47 84 REFUSE -result-completed-open-external 2.1.2.1.0 48 74 REFUSE -result-completed-open-external 2.1.2.1.1 74 84 REFUSE -result-completed-open-external 2.1.2.1.1.0 75 76 REFUSE -result-completed-open-external 2.1.2.1.1.1 76 84 REFUSE -result-completed-open-external 2.1.2.1.1.1.0 77 84 REFUSE -result-denied 0 1 39 REFUSE -result-denied 1 39 40 REFUSE -result-denied 2 40 56 REFUSE -result-denied 2.0 41 42 REFUSE -result-denied 2.1 42 56 REFUSE -result-denied 2.1.0 43 53 REFUSE -result-denied 2.1.1 53 56 ACCEPT -result-denied-no-node 0 1 39 REFUSE -result-denied-no-node 1 39 40 REFUSE -result-denied-no-node 2 40 56 REFUSE -result-denied-no-node 2.0 41 42 REFUSE -result-denied-no-node 2.1 42 56 REFUSE -result-denied-no-node 2.1.0 43 55 REFUSE -result-denied-no-node 2.1.1 55 56 ACCEPT -result-failed 0 1 39 REFUSE -result-failed 1 39 40 REFUSE -result-failed 2 40 49 REFUSE -result-failed 2.0 41 42 REFUSE -result-failed 2.1 42 49 REFUSE -result-failed 2.1.0 43 49 REFUSE -asset-catalog 0 1 12 REFUSE -asset-catalog 1 12 18 REFUSE -asset-catalog 2 18 19 REFUSE -asset-catalog 3 19 92 REFUSE -asset-catalog 3.0 20 54 REFUSE -asset-catalog 3.0.0 21 26 REFUSE -asset-catalog 3.0.1 26 36 REFUSE -asset-catalog 3.0.2 36 52 REFUSE -asset-catalog 3.0.3 52 53 REFUSE -asset-catalog 3.0.4 53 54 REFUSE -asset-catalog 3.1 54 92 REFUSE -asset-catalog 3.1.0 55 60 REFUSE -asset-catalog 3.1.1 60 74 REFUSE -asset-catalog 3.1.2 74 90 REFUSE -asset-catalog 3.1.3 90 91 REFUSE -asset-catalog 3.1.4 91 92 REFUSE diff --git a/crates/thing-contract/tests/goldens/node-unknown-arm.bin b/crates/thing-contract/tests/goldens/node-unknown-arm.bin deleted file mode 100644 index e9b287a..0000000 --- a/crates/thing-contract/tests/goldens/node-unknown-arm.bin +++ /dev/null @@ -1 +0,0 @@ -–ªprovider.a¤main¯CANARY-7f3a91c2’‘¯CANARY-7f3a91c2� \ No newline at end of file diff --git a/crates/thing-contract/tests/goldens/outcome-unknown-arm.bin b/crates/thing-contract/tests/goldens/outcome-unknown-arm.bin deleted file mode 100644 index aa5b9f6..0000000 --- a/crates/thing-contract/tests/goldens/outcome-unknown-arm.bin +++ /dev/null @@ -1 +0,0 @@ -“¥inv-1’‘¯CANARY-7f3a91c2 \ No newline at end of file diff --git a/crates/thing-contract/tests/goldens/result-completed-open-external.bin b/crates/thing-contract/tests/goldens/result-completed-open-external.bin deleted file mode 100644 index 04a1e7a..0000000 Binary files a/crates/thing-contract/tests/goldens/result-completed-open-external.bin and /dev/null differ diff --git a/crates/thing-contract/tests/goldens/result-completed-open-surface.bin b/crates/thing-contract/tests/goldens/result-completed-open-surface.bin deleted file mode 100644 index ff1963e..0000000 Binary files a/crates/thing-contract/tests/goldens/result-completed-open-surface.bin and /dev/null differ diff --git a/crates/thing-contract/tests/goldens/result-completed.bin b/crates/thing-contract/tests/goldens/result-completed.bin deleted file mode 100644 index 1f92a8f..0000000 --- a/crates/thing-contract/tests/goldens/result-completed.bin +++ /dev/null @@ -1 +0,0 @@ -“Ù$3f2b8c1e-5d44-4a6b-9a07-1c2d3e4f5a6b’“ÃÀ \ No newline at end of file diff --git a/crates/thing-contract/tests/goldens/result-denied-no-node.bin b/crates/thing-contract/tests/goldens/result-denied-no-node.bin deleted file mode 100644 index 64425b4..0000000 --- a/crates/thing-contract/tests/goldens/result-denied-no-node.bin +++ /dev/null @@ -1 +0,0 @@ -“Ù$3f2b8c1e-5d44-4a6b-9a07-1c2d3e4f5a6b’’«not allowedÀ \ No newline at end of file diff --git a/crates/thing-contract/tests/goldens/result-denied.bin b/crates/thing-contract/tests/goldens/result-denied.bin deleted file mode 100644 index 8d03fc3..0000000 --- a/crates/thing-contract/tests/goldens/result-denied.bin +++ /dev/null @@ -1 +0,0 @@ -“Ù$3f2b8c1e-5d44-4a6b-9a07-1c2d3e4f5a6b’’©not yours¢go \ No newline at end of file diff --git a/crates/thing-contract/tests/goldens/result-extra-slot.bin b/crates/thing-contract/tests/goldens/result-extra-slot.bin deleted file mode 100644 index 29a7ef8..0000000 Binary files a/crates/thing-contract/tests/goldens/result-extra-slot.bin and /dev/null differ diff --git a/crates/thing-contract/tests/goldens/result-failed.bin b/crates/thing-contract/tests/goldens/result-failed.bin deleted file mode 100644 index 387cae8..0000000 --- a/crates/thing-contract/tests/goldens/result-failed.bin +++ /dev/null @@ -1 +0,0 @@ -“Ù$3f2b8c1e-5d44-4a6b-9a07-1c2d3e4f5a6b’‘¥broke \ No newline at end of file diff --git a/crates/thing-contract/tests/goldens/result-pending.bin b/crates/thing-contract/tests/goldens/result-pending.bin deleted file mode 100644 index 21a9198..0000000 Binary files a/crates/thing-contract/tests/goldens/result-pending.bin and /dev/null differ diff --git a/crates/thing-contract/tests/goldens/result-seq-zero.bin b/crates/thing-contract/tests/goldens/result-seq-zero.bin deleted file mode 100644 index 9e35825..0000000 Binary files a/crates/thing-contract/tests/goldens/result-seq-zero.bin and /dev/null differ diff --git a/crates/thing-contract/tests/goldens/result-thing1-flat.bin b/crates/thing-contract/tests/goldens/result-thing1-flat.bin deleted file mode 100644 index 18bf70e..0000000 --- a/crates/thing-contract/tests/goldens/result-thing1-flat.bin +++ /dev/null @@ -1 +0,0 @@ -�§receipt†©commandId¥inv-1§command¢go¥state©completed§message¯CANARY-7f3a91c2­sourceVersion«issuedAtUtc´2026-01-01T00:00:00Z \ No newline at end of file diff --git a/crates/thing-contract/tests/goldens/rgba-channel-out-of-range.bin b/crates/thing-contract/tests/goldens/rgba-channel-out-of-range.bin deleted file mode 100644 index d109bd7..0000000 Binary files a/crates/thing-contract/tests/goldens/rgba-channel-out-of-range.bin and /dev/null differ diff --git a/crates/thing-contract/tests/goldens/surface-all-arms.bin b/crates/thing-contract/tests/goldens/surface-all-arms.bin deleted file mode 100644 index 6806355..0000000 Binary files a/crates/thing-contract/tests/goldens/surface-all-arms.bin and /dev/null differ diff --git a/crates/thing-contract/tests/goldens/surface-label-dotted.bin b/crates/thing-contract/tests/goldens/surface-label-dotted.bin deleted file mode 100644 index 3d8f566..0000000 Binary files a/crates/thing-contract/tests/goldens/surface-label-dotted.bin and /dev/null differ diff --git a/crates/thing-contract/tests/goldens/surface-version-negative.bin b/crates/thing-contract/tests/goldens/surface-version-negative.bin deleted file mode 100644 index 8a19456..0000000 Binary files a/crates/thing-contract/tests/goldens/surface-version-negative.bin and /dev/null differ diff --git a/crates/thing-contract/tests/nil_positions.rs b/crates/thing-contract/tests/nil_positions.rs deleted file mode 100644 index f39c22f..0000000 --- a/crates/thing-contract/tests/nil_positions.rs +++ /dev/null @@ -1,132 +0,0 @@ -//! The nil vector: for every element of every array of every value golden, the golden with that -//! element replaced by nil, and whether the Rust decode door accepts it. A slot is required -//! exactly when its Rust type is not optional, so the rows are the required-slot set; the C# and -//! TypeScript packages hold no list of their own and are held to every row. -//! `THING_BLESS=1` rewrites `goldens/nil-positions.tsv`; any other run compares. - -use std::fmt::Debug; -use std::path::PathBuf; - -use serde::Serialize; -use serde::de::DeserializeOwned; -use thing_contract::*; -use thing_testkit::golden; - -/// One MessagePack value's byte span; `kids` is set for arrays only (maps are never walked). -struct Span { - start: usize, - end: usize, - kids: Option>, -} - -fn be(bytes: &[u8], at: usize, width: usize) -> usize { - bytes[at..at + width].iter().fold(0, |acc, byte| acc << 8 | *byte as usize) -} - -fn collection(bytes: &[u8], start: usize, mut at: usize, count: usize, is_array: bool) -> Span { - let mut kids = Vec::new(); - for _ in 0..count { - let kid = item(bytes, at); - at = kid.end; - kids.push(kid); - } - Span { start, end: at, kids: is_array.then_some(kids) } -} - -fn item(bytes: &[u8], at: usize) -> Span { - let tag = bytes[at]; - let flat = |len: usize| Span { start: at, end: at + len, kids: None }; - match tag { - 0x00..=0x7f | 0xe0..=0xff | 0xc0 | 0xc2 | 0xc3 => flat(1), - 0x80..=0x8f => collection(bytes, at, at + 1, (tag & 0x0f) as usize * 2, false), - 0x90..=0x9f => collection(bytes, at, at + 1, (tag & 0x0f) as usize, true), - 0xa0..=0xbf => flat(1 + (tag & 0x1f) as usize), - 0xc4 | 0xd9 => flat(2 + be(bytes, at + 1, 1)), - 0xc5 | 0xda => flat(3 + be(bytes, at + 1, 2)), - 0xc6 | 0xdb => flat(5 + be(bytes, at + 1, 4)), - 0xca => flat(5), - 0xcb => flat(9), - 0xcc | 0xd0 => flat(2), - 0xcd | 0xd1 => flat(3), - 0xce | 0xd2 => flat(5), - 0xcf | 0xd3 => flat(9), - 0xdc => collection(bytes, at, at + 3, be(bytes, at + 1, 2), true), - 0xdd => collection(bytes, at, at + 5, be(bytes, at + 1, 4), true), - 0xde => collection(bytes, at, at + 3, be(bytes, at + 1, 2) * 2, false), - 0xdf => collection(bytes, at, at + 5, be(bytes, at + 1, 4) * 2, false), - 0xd4 => flat(3), - 0xd5 => flat(4), - 0xd6 => flat(6), - 0xd7 => flat(10), - 0xd8 => flat(18), - 0xc7 => flat(3 + be(bytes, at + 1, 1)), - 0xc8 => flat(4 + be(bytes, at + 1, 2)), - 0xc9 => flat(6 + be(bytes, at + 1, 4)), - _ => panic!("unsupported tag {tag:#x} at {at}"), - } -} - -/// Every element inside an array, at every depth, in walk order, with its dotted index path. -fn elements(span: &Span, prefix: &str, out: &mut Vec<(String, usize, usize)>) { - for (index, kid) in span.kids.iter().flatten().enumerate() { - let path = if prefix.is_empty() { index.to_string() } else { format!("{prefix}.{index}") }; - out.push((path.clone(), kid.start, kid.end)); - elements(kid, &path, out); - } -} - -/// The rows of one golden: nil spliced over each element, decoded as `T`. An accepted variant -/// must re-encode to the spliced bytes. -fn rows(file: &str, out: &mut String) -> (usize, usize) { - let bytes = golden::read(&goldens_dir(), &format!("{file}.bin")); - let mut found = Vec::new(); - elements(&item(&bytes, 0), "", &mut found); - let (mut accepted, mut refused) = (0, 0); - for (path, start, end) in found { - let mut spliced = bytes[..start].to_vec(); - spliced.push(0xc0); - spliced.extend_from_slice(&bytes[end..]); - let verdict = match rmp_serde::from_slice::(&spliced) { - Ok(value) => { - assert_eq!(rmp_serde::to_vec(&value).unwrap(), spliced, "{file} {path}: an accepted nil must re-encode to the spliced bytes"); - accepted += 1; - "ACCEPT" - } - Err(_) => { - refused += 1; - "REFUSE" - } - }; - out.push_str(&format!("{file}\t{path}\t{start}\t{end}\t{verdict}\n")); - } - (accepted, refused) -} - -#[test] -fn nil_positions_match() { - let mut table = String::new(); - let mut totals = Vec::new(); - totals.push(("surface-all-arms", rows::("surface-all-arms", &mut table))); - totals.push(("composition-all-params", rows::("composition-all-params", &mut table))); - totals.push(("invocation-all-inputs", rows::("invocation-all-inputs", &mut table))); - for file in [ - "result-pending", - "result-completed", - "result-completed-open-surface", - "result-completed-open-external", - "result-denied", - "result-denied-no-node", - "result-failed", - ] { - totals.push((file, rows::(file, &mut table))); - } - totals.push(("asset-catalog", rows::("asset-catalog", &mut table))); - for (file, (accepted, refused)) in &totals { - println!("NILTOTAL {file} accept={accepted} refuse={refused}"); - } - golden::check(&goldens_dir(), "nil-positions.tsv", table.as_bytes()); -} - -fn goldens_dir() -> PathBuf { - PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests/goldens") -} diff --git a/crates/thing-contract/tests/result.rs b/crates/thing-contract/tests/result.rs deleted file mode 100644 index 49fd667..0000000 --- a/crates/thing-contract/tests/result.rs +++ /dev/null @@ -1,224 +0,0 @@ -use thing_testkit::build::*; -use cultcache_rs::{CultCache, CultCacheEnvelope, CultCacheRegistry, DatabaseEntry, decode_payload}; -use serde::Deserialize; -use serde::de::IntoDeserializer; -use serde::de::value::{Error as ValueError, I32Deserializer, I64Deserializer, StringDeserializer}; -use thing_contract::*; - -const CANARY: &str = "CANARY-9d41c7e0"; - -fn other_invocation() -> CommandInvocation { - let mut other = invocation(); - other.invocation_id = "an-invocation-no-constructor-can-guess".into(); - other -} - -#[test] -fn result_copies_invocation_id() { - let invocation = other_invocation(); - let built = [ - CommandResult::pending(&invocation, seq(1), "m"), - CommandResult::completed(&invocation, seq(2), None, false, None), - CommandResult::denied(&invocation, seq(3), "r", None), - CommandResult::failed(&invocation, seq(4), "r"), - ]; - for (index, result) in built.iter().enumerate() { - assert_eq!(result.invocation_id(), "an-invocation-no-constructor-can-guess"); - assert_eq!(result.seq().get(), index as i32 + 1); - } -} - -#[test] -fn each_constructor_builds_its_outcome_arm() { - let invocation = other_invocation(); - let node = Some(nid("go")); - assert!(matches!( - CommandResult::pending(&invocation, seq(1), "wait").outcome(), - Outcome::Pending(PendingOutcome { message }) if message == "wait" - )); - let effect = Effect::OpenSurface(OpenSurfaceEffect { key: "k".into() }); - assert!(matches!( - CommandResult::completed(&invocation, seq(1), Some(ver(5)), true, Some(effect.clone())).outcome(), - Outcome::Completed(CompletedOutcome { source_version: Some(v), clear_drafts: true, effect: Some(e) }) - if v.get() == 5 && *e == effect - )); - assert!(matches!( - CommandResult::completed(&invocation, seq(1), None, false, None).outcome(), - Outcome::Completed(CompletedOutcome { source_version: None, clear_drafts: false, effect: None }) - )); - assert!(matches!( - CommandResult::denied(&invocation, seq(1), "no", node.clone()).outcome(), - Outcome::Denied(DeniedOutcome { reason, node: n }) if reason == "no" && *n == node - )); - assert!(matches!( - CommandResult::failed(&invocation, seq(1), "broke").outcome(), - Outcome::Failed(FailedOutcome { reason }) if reason == "broke" - )); -} - -fn surface(provider: &str, label: &str) -> SurfaceDocument { - SurfaceDocument { - provider_id: ProviderId::new(provider), - label: seg(label), - version: ver(1), - title: String::new(), - root: boxed("r", vec![]), - commands: vec![], - } -} - -fn composition(publisher: &str, name: &str, version: i64) -> CompositionDocument { - CompositionDocument { - publisher: publisher.into(), - name: seg(name), - version: ver(version), - params: vec![], - body: boxed("r", vec![]), - } -} - -fn catalog(provider: &str, id: &str) -> AssetCatalog { - AssetCatalog { provider_id: ProviderId::new(provider), catalog_id: seg(id), version: ver(1), assets: vec![] } -} - -#[test] -fn record_keys_are_built_from_the_fields() { - let invocation = other_invocation(); - assert_eq!(invocation.record_key(), "thing:invocation:an-invocation-no-constructor-can-guess"); - assert_eq!( - CommandResult::failed(&invocation, seq(3), "r").record_key(), - "thing:result:an-invocation-no-constructor-can-guess.3" - ); - assert_eq!(surface("p", "main").record_key(), "thing:surface:p.main"); - assert_eq!(composition("pub", "card", 2).record_key(), "thing:composition:pub.card.v2"); - assert_eq!(catalog("p", "icons").record_key(), "thing:asset_catalog:p.icons"); -} - -#[test] -fn record_keys_injective() { - // The pair the old keys collided on: a dotted provider with a plain label, and a plain - // provider with a dotted label. The second no longer exists. - assert_eq!(surface("a.b", "c").record_key(), "thing:surface:a.b.c"); - assert!(Segment::new("b.c").is_err()); - assert_ne!(surface("a", "c").record_key(), surface("a.b", "c").record_key()); - assert_ne!(surface("a.b", "c").record_key(), surface("a", "bc").record_key()); - - // A composition splits at its last two dots: publisher, name, then the version. - assert_eq!(composition("a.b", "c", 1).record_key(), "thing:composition:a.b.c.v1"); - assert_ne!(composition("a.b", "c", 1).record_key(), composition("a", "bc", 1).record_key()); - assert_ne!(composition("a", "c", 1).record_key(), composition("a", "c", 11).record_key()); - assert_ne!(composition("a", "c", 1).record_key(), composition("a", "c", 0).record_key()); - - // A catalog likewise, and under the asset_catalog prefix. - assert_eq!(catalog("a.b", "c").record_key(), "thing:asset_catalog:a.b.c"); - assert_ne!(catalog("a.b", "c").record_key(), catalog("a", "bc").record_key()); - - // A result splits at its last dot, and the seq is digits. - let mut inv = invocation(); - inv.invocation_id = "x.1".into(); - let first = CommandResult::failed(&inv, seq(2), "r").record_key(); - inv.invocation_id = "x".into(); - let second = CommandResult::failed(&inv, seq(12), "r").record_key(); - assert_eq!(first, "thing:result:x.1.2"); - assert_eq!(second, "thing:result:x.12"); - assert_ne!(first, second); -} - -#[test] -fn domain_newtypes_refuse_out_of_domain() { - // new, the one door. - for bad in [0, -1, i32::MIN] { - assert!(Seq::new(bad).is_err(), "Seq {bad}"); - } - assert_eq!(Seq::new(1).unwrap(), Seq::FIRST); - assert_eq!(Seq::new(i32::MAX).unwrap().next(), Seq::new(i32::MAX).unwrap()); - assert_eq!(Seq::FIRST.next().get(), 2); - assert!(Version::new(-1).is_err()); - assert!(Version::new(i64::MIN).is_err()); - assert_eq!(Version::new(0).unwrap().get(), 0); - assert!(Count::new(-1).is_err()); - assert!(Count::new(i32::MIN).is_err()); - assert_eq!(Count::new(0).unwrap().get(), 0); - assert_eq!(Count::new(7).unwrap().get(), 7); - assert!(Segment::new("").is_err()); - assert!(Segment::new("a.b").is_err()); - assert!(Segment::new(".").is_err()); - assert_eq!(Segment::new("ab").unwrap().as_str(), "ab"); - - // serde, the other door: rmp_serde and serde's own IntoDeserializer. - for bad in [0, -1, i32::MIN] { - assert!(rmp_serde::from_slice::(&rmp_serde::to_vec(&bad).unwrap()).is_err(), "Seq {bad}"); - assert!(Seq::deserialize(I32Deserializer::::new(bad)).is_err()); - assert!(Count::deserialize(I32Deserializer::::new(bad)).is_ok() == (bad >= 0)); - } - assert_eq!(Seq::deserialize(I32Deserializer::::new(1)).unwrap(), Seq::FIRST); - assert!(rmp_serde::from_slice::(&rmp_serde::to_vec(&-1i64).unwrap()).is_err()); - assert!(Version::deserialize(I64Deserializer::::new(-1)).is_err()); - assert_eq!(Version::deserialize(I64Deserializer::::new(0)).unwrap().get(), 0); - assert!(rmp_serde::from_slice::(&rmp_serde::to_vec(&-1i32).unwrap()).is_err()); - assert_eq!(Count::deserialize(I32Deserializer::::new(0)).unwrap().get(), 0); - for bad in ["", "a.b"] { - assert!(rmp_serde::from_slice::(&rmp_serde::to_vec(bad).unwrap()).is_err(), "Segment {bad:?}"); - let deserializer: StringDeserializer = bad.to_string().into_deserializer(); - assert!(Segment::deserialize(deserializer).is_err()); - } - let deserializer: StringDeserializer = "ab".to_string().into_deserializer(); - assert_eq!(Segment::deserialize(deserializer).unwrap().as_str(), "ab"); - - // Each writes exactly the plain leaf, so the bytes are the leaf's. - assert_eq!(rmp_serde::to_vec(&seq(5)).unwrap(), rmp_serde::to_vec(&5i32).unwrap()); - assert_eq!(rmp_serde::to_vec(&ver(5)).unwrap(), rmp_serde::to_vec(&5i64).unwrap()); - assert_eq!(rmp_serde::to_vec(&count(5)).unwrap(), rmp_serde::to_vec(&5i32).unwrap()); - assert_eq!(rmp_serde::to_vec(&seg("ab")).unwrap(), rmp_serde::to_vec("ab").unwrap()); - - // The error names the domain and its bound, never the value. - let message = Segment::new(format!("{CANARY}.x")).unwrap_err().to_string(); - assert_eq!(message, "Segment must be free of '.'"); - assert_eq!(Seq::new(-77).unwrap_err().to_string(), "Seq must be at least 1"); - assert_eq!(Version::new(-77).unwrap_err().to_string(), "Version must be at least 0"); - assert_eq!(Count::new(-77).unwrap_err().to_string(), "Count must be at least 0"); - assert_eq!(Segment::new("").unwrap_err().to_string(), "Segment must be non-empty"); - let error = Segment::new(format!("{CANARY}.x")).unwrap_err(); - assert_eq!((error.domain(), error.bound()), ("Segment", "free of '.'")); - assert!(!format!("{error:?}").contains(CANARY)); -} - -/// The result payload `[id, seq, [0, [message]]]` with the seq slot spelled by the caller. -fn result_payload(seq_slot: i32) -> Vec { - let pending = Outcome::Pending(PendingOutcome { message: CANARY.into() }); - rmp_serde::to_vec(&("inv-1", seq_slot, &pending)).unwrap() -} - -#[test] -fn result_decode_door_holds_domain() { - // A seq the constructors cannot build is refused by every decode door. - for bad in [0, -1, i32::MIN] { - let payload = result_payload(bad); - let message = rmp_serde::from_slice::(&payload).unwrap_err().to_string(); - assert!(message.contains("Seq") && !message.contains(CANARY), "{message}"); - - let message = format!("{:#}", decode_payload::(&payload).unwrap_err()); - assert!(!message.contains(CANARY), "{message}"); - - let mut cache = CultCache::new(); - ThingContract.register_entries(&mut cache).unwrap(); - let key = format!("thing:result:inv-1.{bad}"); - let envelope = CultCacheEnvelope { - key: key.clone(), - r#type: CommandResult::TYPE.into(), - payload, - stored_at: "2026-01-01T00:00:00Z".into(), - schema_id: Some(CommandResult::TYPE.into()), - }; - let message = format!("{:#}", cache.put_envelope::(envelope).unwrap_err()); - assert!(message.contains("gamecult.thing.command_result") && message.contains(&key), "{message}"); - assert!(!message.contains(CANARY), "{message}"); - } - - // The boundary decodes, and equals what the constructor builds. - let mut answered = invocation(); - answered.invocation_id = "inv-1".into(); - let expected = CommandResult::pending(&answered, Seq::FIRST, CANARY); - assert_eq!(rmp_serde::from_slice::(&result_payload(1)).unwrap(), expected); - assert_eq!(decode_payload::(&result_payload(1)).unwrap(), expected); -} diff --git a/crates/thing-core/Cargo.toml b/crates/thing-core/Cargo.toml deleted file mode 100644 index 069e324..0000000 --- a/crates/thing-core/Cargo.toml +++ /dev/null @@ -1,20 +0,0 @@ -[package] -name = "thing-core" -version = "0.1.0" -edition = "2024" -license = "MIT" -publish = false - -# Normal dependencies are thing-contract, stacker, taffy and the three Unicode tables of the Cells -# text engine (unicode-width, unicode-segmentation, unicode-linebreak): layout and terminal text -# are thing-core's job, and no Taffy type is in its public API. -[dependencies] -thing-contract = { path = "../thing-contract" } -stacker = "0.1.25" -taffy.workspace = true -unicode-width.workspace = true -unicode-segmentation.workspace = true -unicode-linebreak.workspace = true - -[dev-dependencies] -thing-testkit = { path = "../thing-testkit" } diff --git a/crates/thing-core/src/bind/format.rs b/crates/thing-core/src/bind/format.rs deleted file mode 100644 index 0f3078f..0000000 --- a/crates/thing-core/src/bind/format.rs +++ /dev/null @@ -1,172 +0,0 @@ -//! Format: total and locale-free. Each function takes the value the site read and returns the -//! text, or the reason the value does not fit (a detail that never carries the value). - -use thing_contract::{AffixFormat, NumberFormat, is_timestamp_text}; - -/// Fixed-point text of `n` at `format.precision`, scaled by 100 for a percent, with the percent -/// sign and the unit. Non-finite numbers print as NaN, inf, -inf; negative zero prints as zero. -pub fn number(n: f64, format: &NumberFormat) -> String { - let scaled = if format.percent { n * 100.0 } else { n }; - let mut text = if scaled.is_nan() { - "NaN".to_string() - } else if scaled.is_infinite() { - if scaled > 0.0 { "inf" } else { "-inf" }.to_string() - } else { - format!("{scaled:.*}", format.precision.get() as usize) - }; - if text.starts_with('-') && text[1..].bytes().all(|byte| byte == b'0' || byte == b'.') { - text.remove(0); - } - if format.percent { - text.push('%'); - } - if let Some(unit) = &format.unit { - text.push(' '); - text.push_str(unit); - } - text -} - -/// Seconds rounded half away from zero, printed by the largest unit present with the later -/// units at two digits: `5s`, `1m 05s`, `1h 00m 05s`, `1d 01h 00m 00s`, a leading `-` when negative. -pub fn duration(seconds: f64) -> Result { - if !seconds.is_finite() { - return Err("a duration is not finite"); - } - let total = seconds.round() as i128; - let t = total.unsigned_abs(); - let (days, hours, minutes, secs) = (t / 86_400, t % 86_400 / 3_600, t % 3_600 / 60, t % 60); - let body = if days > 0 { - format!("{days}d {hours:02}h {minutes:02}m {secs:02}s") - } else if hours > 0 { - format!("{hours}h {minutes:02}m {secs:02}s") - } else if minutes > 0 { - format!("{minutes}m {secs:02}s") - } else { - format!("{secs}s") - }; - Ok(if total < 0 { format!("-{body}") } else { body }) -} - -const FIRST_SECOND: i128 = -62_135_596_800; // 0001-01-01T00:00:00Z -const LAST_SECOND: i128 = 253_402_300_799; // 9999-12-31T23:59:59Z - -/// Unix seconds, floored, as `YYYY-MM-DDTHH:MM:SSZ` in UTC, years 0001 to 9999. -pub fn timestamp(seconds: f64) -> Result { - if !seconds.is_finite() { - return Err("a timestamp is not finite"); - } - let floored = seconds.floor() as i128; - if !(FIRST_SECOND..=LAST_SECOND).contains(&floored) { - return Err("a timestamp is outside years 0001 to 9999"); - } - let (days, rest) = (floored.div_euclid(86_400), floored.rem_euclid(86_400)); - let (year, month, day) = civil(days as i64); - Ok(format!("{year:04}-{month:02}-{day:02}T{:02}:{:02}:{:02}Z", rest / 3_600, rest % 3_600 / 60, rest % 60)) -} - -/// Days since 1970-01-01 as a proleptic Gregorian date. -fn civil(days: i64) -> (i64, i64, i64) { - let z = days + 719_468; - let era = z.div_euclid(146_097); - let day_of_era = z.rem_euclid(146_097); - let year_of_era = (day_of_era - day_of_era / 1_460 + day_of_era / 36_524 - day_of_era / 146_096) / 365; - let day_of_year = day_of_era - (365 * year_of_era + year_of_era / 4 - year_of_era / 100); - let month_index = (5 * day_of_year + 2) / 153; - let day = day_of_year - (153 * month_index + 2) / 5 + 1; - let month = if month_index < 10 { month_index + 3 } else { month_index - 9 }; - (year_of_era + era * 400 + i64::from(month <= 2), month, day) -} - -/// Text that is already a `stored_at` stamp, as written. -pub fn stamp(text: &str) -> Result { - if is_timestamp_text(text) { Ok(text.to_string()) } else { Err("the text is not a timestamp") } -} - -pub fn affix(text: &str, format: &AffixFormat) -> String { - format!("{}{text}{}", format.prefix, format.suffix) -} - -#[cfg(test)] -mod tests { - use thing_contract::Count; - - use super::*; - - fn fmt(precision: i32, percent: bool, unit: Option<&str>) -> NumberFormat { - NumberFormat { precision: Count::new(precision).unwrap(), percent, unit: unit.map(Into::into) } - } - - #[test] - fn number_table() { - let table = [ - (0.42, fmt(1, true, None), "42.0%"), - (3.14159, fmt(2, false, None), "3.14"), - (2.5, fmt(0, false, None), "2"), - (1234.5, fmt(1, false, Some("MB")), "1234.5 MB"), - (0.5, fmt(0, true, Some("of cap")), "50% of cap"), - (-0.0, fmt(1, false, None), "0.0"), - (-0.04, fmt(1, false, None), "0.0"), - (-1.25, fmt(1, false, None), "-1.2"), - (f64::NAN, fmt(2, true, None), "NaN%"), - (f64::INFINITY, fmt(2, false, Some("x")), "inf x"), - (f64::NEG_INFINITY, fmt(0, false, None), "-inf"), - ]; - for (n, format, expected) in table { - assert_eq!(number(n, &format), expected, "{n} {format:?}"); - } - } - - #[test] - fn duration_table() { - let table = [ - (0.0, "0s"), - (5.0, "5s"), - (59.4, "59s"), - (59.5, "1m 00s"), - (65.0, "1m 05s"), - (3605.0, "1h 00m 05s"), - (90_000.0, "1d 01h 00m 00s"), - (-65.0, "-1m 05s"), - (-0.4, "0s"), - (-0.5, "-1s"), - ]; - for (seconds, expected) in table { - assert_eq!(duration(seconds).unwrap(), expected, "{seconds}"); - } - assert!(duration(f64::NAN).is_err() && duration(f64::INFINITY).is_err()); - } - - #[test] - fn timestamp_table() { - let table = [ - (0.0, "1970-01-01T00:00:00Z"), - (0.9, "1970-01-01T00:00:00Z"), - (-0.1, "1969-12-31T23:59:59Z"), - (951_782_400.0, "2000-02-29T00:00:00Z"), - (1_767_225_600.0, "2026-01-01T00:00:00Z"), - (-62_135_596_800.0, "0001-01-01T00:00:00Z"), - (253_402_300_799.0, "9999-12-31T23:59:59Z"), - ]; - for (seconds, expected) in table { - assert_eq!(timestamp(seconds).unwrap(), expected, "{seconds}"); - } - assert!(timestamp(253_402_300_800.0).is_err()); - assert!(timestamp(-62_135_596_801.0).is_err()); - assert!(timestamp(f64::NAN).is_err()); - } - - #[test] - fn stamp_text_is_printed_as_written() { - assert_eq!(stamp("2026-01-01T00:00:00Z").unwrap(), "2026-01-01T00:00:00Z"); - assert_eq!(stamp("2026-01-01T02:00:00.5+02:00").unwrap(), "2026-01-01T02:00:00.5+02:00"); - assert!(stamp("yesterday").is_err()); - assert!(stamp("2026-01-01 00:00:00Z").is_err()); - } - - #[test] - fn affix_wraps_text() { - let format = AffixFormat { prefix: "[".into(), suffix: "]".into() }; - assert_eq!(affix("ok", &format), "[ok]"); - } -} diff --git a/crates/thing-core/src/bind/mod.rs b/crates/thing-core/src/bind/mod.rs deleted file mode 100644 index 7081e45..0000000 --- a/crates/thing-core/src/bind/mod.rs +++ /dev/null @@ -1,346 +0,0 @@ -//! Bind: a `ResolvedTree` and provider state become a `BoundTree`, the value of every source -//! site of every node, the instances of every Repeat and the typed faults between. The Binder is -//! handed trees and the changes the frame owner drained; it never drains, never decodes and keeps -//! no state value beside the port: a changed address is read again. The state interests it holds -//! are exactly the ones the bound trees read, held through the shared `Ledger`. -//! -//! A bound tree is a side table over the resolved document, not a second node tree. - -mod format; -mod repeat; -mod walk; - -use std::collections::{BTreeMap, HashMap, HashSet}; - -use thing_contract::{AssetEntry, NodeId, SelectOption}; - -use crate::diagnostic::{Code, Diagnostic}; -use crate::port::{Address, Change, Interest, Ledger, StatePort}; -use crate::resolve::{Limits, ResolvedTree}; -use walk::{Unit, Walker}; - -/// Every source site a node can carry. Closed. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)] -pub enum Field { - Visible, - A11yLabel, - Content, - Alt, - Enabled, - Checked, - Value, - Placeholder, - Initial, - Selected, - Options, - Series, - Asset, -} - -impl Field { - pub fn name(self) -> &'static str { - match self { - Field::Visible => "visible", - Field::A11yLabel => "a11y_label", - Field::Content => "content", - Field::Alt => "alt", - Field::Enabled => "enabled", - Field::Checked => "checked", - Field::Value => "value", - Field::Placeholder => "placeholder", - Field::Initial => "initial", - Field::Selected => "selected", - Field::Options => "options", - Field::Series => "series", - Field::Asset => "asset", - } - } -} - -/// Why a site or a Repeat has no value. `detail` names the fault and never carries a state value. -#[derive(Clone, Debug, PartialEq, Eq)] -pub struct BindError { - pub code: Code, - pub detail: String, -} - -/// What one site shows. A value is never coerced into another site type. -#[derive(Clone, Debug, PartialEq)] -pub enum Bound { - Text(String), - Number(f64), - Bool(bool), - Series(Vec), - Options(Vec), - /// The catalog entry an Image names. - Asset(AssetEntry), - /// The record or the member is not there (or is nil). - Absent, - Error(BindError), -} - -/// One instance of a Repeat's template: its key, and the template with derived ids, whose sites -/// are in the same table. A refused item's key is `!` and its record key. -#[derive(Clone, Debug, PartialEq)] -pub struct Instance { - pub key: String, - pub root: thing_contract::Node, -} - -/// The values of one resolved document. -#[derive(Clone, Debug, PartialEq)] -pub struct BoundTree { - tree: ResolvedTree, - values: HashMap<(NodeId, Field), Bound>, - instances: HashMap>, - repeat_errors: HashMap, -} - -impl BoundTree { - pub fn resolved(&self) -> &ResolvedTree { - &self.tree - } - - pub fn value(&self, node: &NodeId, field: Field) -> Option<&Bound> { - self.values.get(&(node.clone(), field)) - } - - /// The instances of a Repeat, in collection order; none when the Repeat is in error. - pub fn instances(&self, repeat: &NodeId) -> &[Instance] { - self.instances.get(repeat).map_or(&[], Vec::as_slice) - } - - /// Why a Repeat has no instances, when it is in error. - pub fn repeat_error(&self, repeat: &NodeId) -> Option<&BindError> { - self.repeat_errors.get(repeat) - } - - /// Every bound site, instances' included, sorted by node id and field. - pub fn sites(&self) -> Vec<(&NodeId, Field, &Bound)> { - let mut sites: Vec<_> = self.values.iter().map(|((node, field), bound)| (node, *field, bound)).collect(); - sites.sort_by(|a, b| (a.0.as_str(), a.1).cmp(&(b.0.as_str(), b.1))); - sites - } -} - -/// What one bind or apply changed: per surface key, the node ids whose value changed (appeared, -/// vanished or differed) or whose Repeat instance set changed; and the diagnostics of sites that -/// entered an error or changed error code. -#[derive(Clone, Debug, Default, PartialEq)] -pub struct Applied { - pub dirty: BTreeMap>, - pub diagnostics: Vec, -} - -/// What a surface's unit read and owns, so a unit can be replaced alone. -struct Owned { - values: Vec<(NodeId, Field)>, - repeats: Vec, - ids: Vec, - nodes: usize, - interests: HashSet, -} - -struct Surface { - key: String, - bound: BoundTree, - tree_ids: HashSet, - parts: HashMap, -} - -pub struct Binder { - limits: Limits, - surfaces: HashMap, -} - -fn tree_ids(tree: &ResolvedTree) -> HashSet { - fn visit(node: &thing_contract::Node, out: &mut HashSet) { - crate::resolve::grow(|| { - out.extend(walk::common(node).map(|common| common.id.clone())); - if let thing_contract::Node::Repeat(repeat) = node { - visit(&repeat.template, out); - } - walk::children(node).iter().for_each(|child| visit(child, out)); - }) - } - let mut ids = HashSet::new(); - visit(&tree.document().root, &mut ids); - ids -} - -impl Surface { - fn interests(&self) -> HashSet { - self.parts.values().flat_map(|owned| owned.interests.iter().cloned()).collect() - } - - /// Bind the units `only` selects (all when `None`), replace what they owned, and report what - /// changed against what they held. - fn run( - &mut self, - limits: &Limits, - port: &mut dyn StatePort, - ledger: &mut Ledger, - only: Option<&HashSet>, - ) -> (Vec, Vec) { - let before = self.interests(); - let mut old_values: HashMap<(NodeId, Field), Bound> = HashMap::new(); - let mut old_keys: HashMap> = HashMap::new(); - let mut old_errors: HashMap = HashMap::new(); - let retired: Vec = match only { - None => self.parts.keys().cloned().collect(), - Some(only) => only.iter().filter(|unit| self.parts.contains_key(*unit)).cloned().collect(), - }; - for unit in retired { - let Some(owned) = self.parts.remove(&unit) else { continue }; - for key in owned.values { - if let Some(bound) = self.bound.values.remove(&key) { - old_values.insert(key, bound); - } - } - for repeat in owned.repeats { - if let Some(instances) = self.bound.instances.remove(&repeat) { - old_keys.insert(repeat.clone(), instances.into_iter().map(|instance| instance.key).collect()); - } - if let Some(error) = self.bound.repeat_errors.remove(&repeat) { - old_errors.insert(repeat, error.code); - } - } - } - - let mut taken = self.tree_ids.clone(); - let mut spent = 0; - for owned in self.parts.values() { - taken.extend(owned.ids.iter().cloned()); - spent += owned.nodes; - } - let provider = self.bound.tree.document().provider_id.clone(); - let parts = Walker::new(&*port, &provider, limits, taken, limits.max_nodes.saturating_sub(spent), only) - .run(&self.bound.tree.document().root); - - let mut diagnostics = Vec::new(); - let mut dirty: Vec = Vec::new(); - let mut note = |node: &NodeId, code: Code, detail: &str, was: Option| { - if was != Some(code) { - diagnostics.push(Diagnostic { code, surface: self.key.clone(), node: Some(node.clone()), detail: detail.to_string() }); - } - }; - for (unit, part) in parts { - let mut owned = Owned { - values: Vec::new(), - repeats: Vec::new(), - ids: part.ids, - nodes: part.nodes, - interests: part.interests, - }; - for (key, bound) in part.values { - let old = old_values.remove(&key); - if old.as_ref() != Some(&bound) { - dirty.push(key.0.clone()); - } - if let Bound::Error(error) = &bound { - note(&key.0, error.code, &error.detail, match &old { - Some(Bound::Error(was)) => Some(was.code), - _ => None, - }); - } - owned.values.push(key.clone()); - self.bound.values.insert(key, bound); - } - for (repeat, error) in part.errors { - note(&repeat, error.code, &error.detail, old_errors.get(&repeat).copied()); - self.bound.repeat_errors.insert(repeat, error); - } - for (repeat, instances) in part.instances { - let keys: Vec = instances.iter().map(|instance| instance.key.clone()).collect(); - if old_keys.remove(&repeat).as_ref() != Some(&keys) { - dirty.push(repeat.clone()); - } - owned.repeats.push(repeat.clone()); - self.bound.instances.insert(repeat, instances); - } - self.parts.insert(unit, owned); - } - // What the retired units held and the new ones no longer do has vanished. - dirty.extend(old_values.into_keys().map(|(node, _)| node)); - dirty.extend(old_keys.into_keys()); - - ledger.diff(port, &before, &self.interests()); - let mut seen = HashSet::new(); - dirty.retain(|node| seen.insert(node.clone())); - dirty.sort_by(|a, b| a.as_str().cmp(b.as_str())); - (dirty, diagnostics) - } - - fn matching(&self, address: &Address) -> HashSet { - self.parts - .iter() - .filter(|(_, owned)| owned.interests.iter().any(|interest| interest.matches(address))) - .map(|(unit, _)| unit.clone()) - .collect() - } -} - -impl Binder { - pub fn new(limits: Limits) -> Self { - Self { limits, surfaces: HashMap::new() } - } - - /// Bind a resolved tree. A tree for a surface already held replaces its tree: the walk, the - /// diff against what was bound and the interest diff are the same as an apply's. - pub fn bind(&mut self, tree: ResolvedTree, port: &mut dyn StatePort, ledger: &mut Ledger) -> Applied { - let key = tree.document().record_key(); - let ids = tree_ids(&tree); - let surface = self.surfaces.entry(key.clone()).or_insert_with(|| Surface { - key: key.clone(), - bound: BoundTree { - tree: tree.clone(), - values: HashMap::new(), - instances: HashMap::new(), - repeat_errors: HashMap::new(), - }, - tree_ids: HashSet::new(), - parts: HashMap::new(), - }); - surface.bound.tree = tree; - surface.tree_ids = ids; - let (dirty, diagnostics) = surface.run(&self.limits, port, ledger, None); - Applied { dirty: BTreeMap::from([(key, dirty)]).into_iter().filter(|(_, ids)| !ids.is_empty()).collect(), diagnostics } - } - - /// One drained change: nothing is read unless a held interest matches its address; then each - /// unit that read it is bound again from the port. - pub fn apply(&mut self, change: &Change, port: &mut dyn StatePort, ledger: &mut Ledger) -> Applied { - let address = match change { - Change::Upsert(entry) => &entry.address, - Change::Delete(address) => address, - Change::Refused(refusal) => &refusal.address, - }; - let mut applied = Applied::default(); - let mut keys: Vec = self.surfaces.keys().cloned().collect(); - keys.sort(); - for key in keys { - let surface = self.surfaces.get_mut(&key).expect("key listed"); - let units = surface.matching(address); - if units.is_empty() { - continue; - } - let (dirty, diagnostics) = surface.run(&self.limits, port, ledger, Some(&units)); - if !dirty.is_empty() { - applied.dirty.insert(key, dirty); - } - applied.diagnostics.extend(diagnostics); - } - applied - } - - /// Drop a surface: its interests are released. - pub fn forget(&mut self, surface: &str, port: &mut dyn StatePort, ledger: &mut Ledger) { - if let Some(surface) = self.surfaces.remove(surface) { - ledger.diff(port, &surface.interests(), &HashSet::new()); - } - } - - pub fn tree(&self, surface: &str) -> Option<&BoundTree> { - self.surfaces.get(surface).map(|surface| &surface.bound) - } -} diff --git a/crates/thing-core/src/bind/repeat.rs b/crates/thing-core/src/bind/repeat.rs deleted file mode 100644 index 2f5da1b..0000000 --- a/crates/thing-core/src/bind/repeat.rs +++ /dev/null @@ -1,199 +0,0 @@ -//! Repeat: a collection's items become instances of the template, keyed so identity follows the -//! item. An instance's ids derive from (repeat id, key, template id) by one scheme: -//! `#:/