Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
296b65f96a | ||
|
|
5055f0f174 | ||
|
|
6b10e0b174 | ||
|
|
2f24754d8b | ||
|
|
ba589e3a15 | ||
|
|
07ba63560b | ||
|
|
d436d87f71 | ||
|
|
a900128545 | ||
|
|
059b0c906d | ||
|
|
bd7b3643c2 | ||
|
|
0eda270473 | ||
|
|
b3a4ac854f | ||
|
|
7db69358fd | ||
|
|
3e750fe0b4 | ||
|
|
96b6f2aaef | ||
|
|
22a4f3701e | ||
|
|
1883ab95d5 | ||
|
|
001ad6c3d0 | ||
|
|
1fe5baba05 | ||
|
|
4ae84566e2 | ||
|
|
0ee62be668 | ||
|
|
6e5b7c9bde | ||
|
|
b8b13bbd75 | ||
|
|
fb5ce198f0 | ||
|
|
02f4001820 | ||
|
|
c040d1a87a | ||
|
|
87cfa59252 | ||
|
|
b370474999 | ||
|
|
c4fe77d128 | ||
|
|
e94e6c770f | ||
|
|
8a5afa2814 | ||
|
|
6bb621f895 | ||
|
|
43fab1649a | ||
|
|
4a64f41858 | ||
|
|
09768a2113 | ||
|
|
655e820756 | ||
|
|
5384139230 | ||
|
|
a31367cc51 | ||
|
|
eb27e9c896 | ||
|
|
41d0a387e1 | ||
|
|
f145593741 | ||
|
|
4bfdc5cf44 | ||
|
|
9ba82dd229 | ||
|
|
5b55d159f7 | ||
|
|
0e7d1c8184 | ||
|
|
802bd30273 | ||
|
|
ec580edc90 | ||
|
|
1d9f7d24db | ||
|
|
946fc93734 | ||
|
|
a8157ab58d | ||
|
|
89a9be03e8 | ||
|
|
f9ae872168 | ||
|
|
8fb4356c91 | ||
|
|
7765227d14 | ||
|
|
e95778946f | ||
|
|
9c242d790f | ||
|
|
ba1c1c5f53 | ||
|
|
ce440ae0da | ||
|
|
16ac392ab2 | ||
|
|
e8d8f7ca10 | ||
|
|
272c5810bb | ||
|
|
6d428354cb | ||
|
|
7c798210c8 | ||
|
|
43d13d0436 | ||
|
|
b1b3496a38 | ||
|
|
92aef5d4e3 | ||
|
|
c7ccea544c | ||
|
|
978cb3283c | ||
|
|
ed7dfa5a5c | ||
|
|
6ab51d5fb0 | ||
|
|
6ca233c6db | ||
|
|
261f84af1b | ||
|
|
caf29f4c5e | ||
|
|
fb779cf5ee | ||
|
|
b0e6062697 | ||
|
|
6738124c77 | ||
|
|
6f9a330cbc | ||
|
|
d99a72244b | ||
|
|
b0fc91f652 | ||
|
|
e696e7cc2d | ||
|
|
95e028d250 | ||
|
|
a8b63590ee | ||
|
|
8e11486a07 | ||
|
|
2b16a6c9fa | ||
|
|
6368b84915 | ||
|
|
62ab1896e5 | ||
|
|
c4b40fb3fe | ||
|
|
cb8c81cbe4 | ||
|
|
86d3b17234 | ||
|
|
4b968914ad | ||
|
|
32b761795b | ||
|
|
883a926e43 | ||
|
|
f43400825d | ||
|
|
97e08a9244 | ||
|
|
4777f73cf9 | ||
|
|
580cf600d0 | ||
|
|
2e5f62807d | ||
|
|
49207846eb | ||
|
|
06702a0a62 | ||
|
|
ef383bab30 | ||
|
|
c3b1082282 | ||
|
|
79eacbec6a | ||
|
|
da827f1f93 | ||
|
|
fa38d4c3d6 | ||
|
|
e954707948 | ||
|
|
87ab44808f | ||
|
|
49536d35c1 | ||
|
|
5a4d2edf97 | ||
|
|
d56b097984 | ||
|
|
21752a8852 | ||
|
|
33a8f266ab | ||
|
|
8c1ae8477a | ||
|
|
67e592c3cc | ||
|
|
866d37b57b | ||
|
|
04734b17be | ||
|
|
f7dc6cb5b4 | ||
|
|
e8f18d5543 | ||
|
|
4a0f6d87f2 | ||
|
|
34e07df0da | ||
|
|
7ee33dc33e | ||
|
|
815c7c446f | ||
|
|
dd433fac97 | ||
|
|
fa0546e215 | ||
|
|
20e99f000c | ||
|
|
d2617e44ba | ||
|
|
17089bca60 | ||
|
|
bf6adcd301 | ||
|
|
f453f48fc7 | ||
|
|
6dfaf45628 | ||
|
|
a47bebf922 | ||
|
|
00643532a3 | ||
|
|
a1bf10f801 | ||
|
|
aab5a34b7c | ||
|
|
4aaab8f649 | ||
|
|
0f5551ab86 | ||
|
|
9cbf0bd02d | ||
|
|
ef5c9a89e5 | ||
|
|
59d5a92583 | ||
|
|
639b8b7094 | ||
|
|
0e6b285a9e | ||
|
|
d8e40b497c | ||
|
|
bbd2c350fc | ||
|
|
ea957ec030 | ||
|
|
748e760caa | ||
|
|
bf8f819a9d | ||
|
|
d77d0c3e7f | ||
|
|
8be4404f54 | ||
|
|
82a72e2fb6 | ||
|
|
6d5e01693e | ||
|
|
0e7d0b9bf4 | ||
|
|
0d7edae8cf | ||
|
|
49cfd53f97 | ||
|
|
1d5e4ba860 | ||
|
|
e15858b79d | ||
|
|
c8cbf4613d | ||
|
|
d72c273acd | ||
|
|
f76a7fb237 | ||
|
|
aff60b9ff3 | ||
|
|
8e9f28c856 | ||
|
|
5e73b78b55 | ||
|
|
cebac974d9 | ||
|
|
534f9b56d1 | ||
|
|
baea1f7142 | ||
|
|
d687e35096 | ||
|
|
6f1ffc34c1 | ||
|
|
c3f3c43224 | ||
|
|
8072e6f1d1 | ||
|
|
d1b611a911 | ||
|
|
1213468924 | ||
|
|
bff5c3377d | ||
|
|
90bcf5d929 | ||
|
|
a0c33187bf | ||
|
|
49c747e3f5 | ||
|
|
5f71304898 | ||
|
|
37552c282b | ||
|
|
b41b2d75f8 | ||
|
|
e1a07a2e2f | ||
|
|
a6684d352a | ||
|
|
3396dcbd90 | ||
|
|
b684eca1d8 | ||
|
|
be3654f149 | ||
|
|
a8fc57c2e1 | ||
|
|
149bad248e | ||
|
|
9c0ddd48ca | ||
|
|
20240c1027 | ||
|
|
d1450439d5 | ||
|
|
d9570f3cc8 | ||
|
|
b266f4f1b7 | ||
|
|
62bb67b5a3 | ||
|
|
256e10a9c1 | ||
|
|
89a2b21746 | ||
|
|
0b4a707637 | ||
|
|
c80219b1a3 | ||
|
|
380e9d4b63 | ||
|
|
389e26dc89 | ||
|
|
f41e064ea6 | ||
|
|
c12cf2123f | ||
|
|
6bf4de71c6 | ||
|
|
75514f1a84 | ||
|
|
5f3cf5f797 | ||
|
|
179683867c | ||
|
|
e47a81d82c | ||
|
|
160ba55c92 | ||
|
|
c912eb3a9c | ||
|
|
89cf17066f | ||
|
|
4fee4c0ce6 | ||
|
|
061bb2d33c | ||
|
|
96d9c45203 | ||
|
|
2e45637f1d | ||
|
|
b7635deb8b | ||
|
|
de99c5fdea | ||
|
|
b4e084dd25 | ||
|
|
c6cb35366e | ||
|
|
67b2fc60b2 | ||
|
|
a3ee6cc0c0 | ||
|
|
8d4daf4ef8 | ||
|
|
e25263e807 | ||
|
|
ba6cae3948 | ||
|
|
e7951f1bc6 | ||
|
|
6712e6dab6 | ||
|
|
9a518bda66 | ||
|
|
59166106f2 | ||
|
|
dc3e596625 | ||
|
|
1fe05c06fe | ||
|
|
b685597092 | ||
|
|
59a2878447 | ||
|
|
8630542261 | ||
|
|
039af3f3b7 | ||
|
|
8004c01526 | ||
|
|
f7601e7a4f | ||
|
|
402d8ff675 | ||
|
|
1e2856e261 | ||
|
|
f563d2ba9a | ||
|
|
e52db5b112 | ||
|
|
c27a425680 | ||
|
|
f0ed160cd0 | ||
|
|
6053e8b315 | ||
|
|
5933297cae | ||
|
|
5e646fc527 | ||
|
|
aa88f78c44 | ||
|
|
85e559dad5 | ||
|
|
6fea1a8d31 | ||
|
|
54179705e2 | ||
|
|
dfb60d7b7c | ||
|
|
335466b4a1 | ||
|
|
6ac09676b0 | ||
|
|
4244adfed6 | ||
|
|
390261e166 | ||
|
|
2af19bcfcf | ||
|
|
0ef6447971 | ||
|
|
c0835c613c | ||
|
|
20e6008fd4 | ||
|
|
8a98e3dcc6 | ||
|
|
90c28eedbb | ||
|
|
533b2b2d81 | ||
|
|
509bbb872d | ||
|
|
c84910524f | ||
|
|
60d1953ff6 | ||
|
|
25575d1111 | ||
|
|
d84153004d | ||
|
|
643d0e45e6 | ||
|
|
3a8e15e4c5 | ||
|
|
d5ba657f6e | ||
|
|
e9f375c4f7 | ||
|
|
f804bef346 | ||
|
|
3db0766339 | ||
|
|
faf9f957e7 | ||
|
|
2c8a47d51f | ||
|
|
2e3b2719e7 | ||
|
|
7729f263c0 | ||
|
|
d59bebd7eb | ||
|
|
d5b9541d1d | ||
|
|
8a8f52d7f1 | ||
|
|
89a930d2f5 | ||
|
|
0354a6fb8b | ||
|
|
010e6b45fd | ||
|
|
a25bd6b19d | ||
|
|
e6a8d2f7bc | ||
|
|
95ebf37f0b | ||
|
|
b3f73c389d | ||
|
|
3c828e35f3 | ||
|
|
8930007945 | ||
|
|
9b19e96271 | ||
|
|
cc3cb2702c | ||
|
|
be1d308f9e | ||
|
|
981c486b0c | ||
|
|
827f2c3053 | ||
|
|
ced85a30cc | ||
|
|
2a0a95f668 | ||
|
|
0e6bfb77bc | ||
|
|
f1e7d8d5c4 | ||
|
|
afac6cffee | ||
|
|
20a36d0dcf | ||
|
|
2780adc2ce | ||
|
|
3daa2fd990 | ||
|
|
220119e64f | ||
|
|
4dd514ea05 | ||
|
|
764e3dc060 | ||
|
|
49b9ce5dcd | ||
|
|
abdcbf1135 | ||
|
|
373bd3d314 | ||
|
|
a215cebfee | ||
|
|
ab3508c9cb | ||
|
|
4fb47fbde1 | ||
|
|
bab7c93d00 | ||
|
|
2b176ccdff | ||
|
|
582fe2d6c2 | ||
|
|
4ca8678e6b | ||
|
|
b5302b813a | ||
|
|
6f8e4bd3df | ||
|
|
9496f99fd4 | ||
|
|
fe9fe247c4 | ||
|
|
d57e90e67c | ||
|
|
530d15aef7 | ||
|
|
351366fb3d | ||
|
|
8312cb029a | ||
|
|
5162a890c4 | ||
|
|
f3f0950313 | ||
|
|
5b27eb6d49 | ||
|
|
d55f71577c | ||
|
|
53daeca615 | ||
|
|
57cf5ba51b | ||
|
|
9d8a8ea2ae | ||
|
|
b6db8a2b29 | ||
|
|
5b508e70e6 | ||
|
|
73c73d5cbc | ||
|
|
923dced8b0 | ||
|
|
2b2160869e | ||
|
|
8cf21cf4de | ||
|
|
da12f9ae86 | ||
|
|
f6bc5f8922 | ||
|
|
bef919fa16 | ||
|
|
00ee68c348 | ||
|
|
206a5a61ed | ||
|
|
fa46fb1ade | ||
|
|
76795c6ac9 | ||
|
|
20fcc27182 | ||
|
|
a6e3c6b1d6 | ||
|
|
5b40669953 | ||
|
|
4d578bc028 | ||
|
|
82b7f000bd | ||
|
|
20e3ec5592 | ||
|
|
1f008bcb27 | ||
|
|
f0827a221c | ||
|
|
b93a87ba93 | ||
|
|
d738f2feca | ||
|
|
e45f80e363 | ||
|
|
84b6692230 | ||
|
|
5d3eb925fe | ||
|
|
6ce8153371 | ||
|
|
2c52126955 | ||
|
|
08647b6830 | ||
|
|
2ba2e8dda4 | ||
|
|
06ee7e1fb0 | ||
|
|
dff1fb2d7b | ||
|
|
476319613a | ||
|
|
fe3f8b1b62 | ||
|
|
09b55b8040 | ||
|
|
230023a13b | ||
|
|
d2c1f2294b | ||
|
|
72233d108b | ||
|
|
3ce99945b8 | ||
|
|
034f7c0198 | ||
|
|
d314dbc312 | ||
|
|
00f585c3b9 | ||
|
|
a153511710 | ||
|
|
3b5c49e329 | ||
|
|
b19b432281 | ||
|
|
58547c8221 | ||
|
|
845244ec2c | ||
|
|
de84b526d4 | ||
|
|
c3baa1952c | ||
|
|
c2d62e0fdc | ||
|
|
57807c184e | ||
|
|
05e8d34bcf | ||
|
|
5ce12714ac | ||
|
|
a761afaa43 | ||
|
|
220852f8cb | ||
|
|
eb24965076 | ||
|
|
0d11f8f99d | ||
|
|
c4707c4e8e | ||
|
|
a4c9e7e102 | ||
|
|
21085b967d | ||
|
|
d0202247ce | ||
|
|
e4681bef35 | ||
|
|
f618d8bce9 | ||
|
|
3ee2bef7ce |
No files matched your search
@@ -12,3 +12,6 @@ LIBOPUS_NO_PKG = "1"
|
|||||||
# with Windows 10+ (no VCRUNTIME140.dll). cc/cmake-rs see `crt-static` and build libopus with /MT.
|
# with Windows 10+ (no VCRUNTIME140.dll). cc/cmake-rs see `crt-static` and build libopus with /MT.
|
||||||
[target.x86_64-pc-windows-msvc]
|
[target.x86_64-pc-windows-msvc]
|
||||||
rustflags = ["-C", "target-feature=+crt-static"]
|
rustflags = ["-C", "target-feature=+crt-static"]
|
||||||
|
|
||||||
|
[target.aarch64-pc-windows-msvc]
|
||||||
|
rustflags = ["-C", "target-feature=+crt-static"]
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# Native dependency recipes verify exact source bytes on every build host.
|
||||||
|
native/patches/** text eol=lf
|
||||||
|
xtask/src/*.rs text eol=lf
|
||||||
@@ -0,0 +1,167 @@
|
|||||||
|
# Trusted manual runs only, on an administrator-provisioned Linux x64 runner.
|
||||||
|
# This job never installs host tools, signs production packages, publishes, or uses a device.
|
||||||
|
name: android-ci
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
working-directory: ${{ github.workspace }}/android-${{ github.run_id }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
android-arm64:
|
||||||
|
runs-on: teamspeach-android-linux-x64
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: never
|
||||||
|
TARGET: aarch64-linux-android
|
||||||
|
EXPECTED_REVISION: ${{ github.sha }}
|
||||||
|
CI_RUN_ID: ${{ github.run_id }}
|
||||||
|
CARGO_TARGET_DIR: ${{ github.workspace }}/android-${{ github.run_id }}/target
|
||||||
|
GRADLE_USER_HOME: ${{ github.workspace }}/android-${{ github.run_id }}/.gradle-ci
|
||||||
|
ANDROID_HOME: ${{ vars.ANDROID_SDK_ROOT }}
|
||||||
|
ANDROID_SDK_ROOT: ${{ vars.ANDROID_SDK_ROOT }}
|
||||||
|
JAVA_HOME: ${{ vars.ANDROID_JAVA_HOME }}
|
||||||
|
LLVM_HOME: ${{ vars.NATIVE_LLVM_HOME }}
|
||||||
|
LIBCLANG_PATH: ${{ vars.NATIVE_LIBCLANG_PATH }}
|
||||||
|
SKIA_SOURCE_DIR: ${{ vars.NATIVE_SKIA_SOURCE_DIR }}
|
||||||
|
TEAMSPEACH_GRADLE_DISTRIBUTION: ${{ vars.ANDROID_GRADLE_DISTRIBUTION }}
|
||||||
|
TEAMSPEACH_BUNDLETOOL: ${{ vars.ANDROID_BUNDLETOOL }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
path: android-${{ github.run_id }}
|
||||||
|
clean: true
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Require provisioned Linux Android tools (no host installation)
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
test "$(uname -s)" = Linux
|
||||||
|
test "$(uname -m)" = x86_64
|
||||||
|
test "$(git rev-parse HEAD)" = "$EXPECTED_REVISION"
|
||||||
|
: "${ANDROID_SDK_ROOT:?set ANDROID_SDK_ROOT to installed SDK36 with build-tools/36.0.0 and NDK28.2.13676358}"
|
||||||
|
: "${JAVA_HOME:?set ANDROID_JAVA_HOME to installed JDK17+ (JDK21 is supported)}"
|
||||||
|
: "${LLVM_HOME:?set NATIVE_LLVM_HOME to installed LLVM}"
|
||||||
|
: "${LIBCLANG_PATH:?set NATIVE_LIBCLANG_PATH to the matching libclang directory}"
|
||||||
|
: "${SKIA_SOURCE_DIR:?set NATIVE_SKIA_SOURCE_DIR to a dependency-synchronized Skia checkout}"
|
||||||
|
: "${TEAMSPEACH_GRADLE_DISTRIBUTION:?set ANDROID_GRADLE_DISTRIBUTION to local gradle-8.14.3-bin.zip}"
|
||||||
|
: "${TEAMSPEACH_BUNDLETOOL:?set ANDROID_BUNDLETOOL to local bundletool.jar}"
|
||||||
|
export ANDROID_NDK_ROOT="$ANDROID_SDK_ROOT/ndk/28.2.13676358"
|
||||||
|
export ANDROID_NDK_HOME="$ANDROID_NDK_ROOT"
|
||||||
|
export PATH="$JAVA_HOME/bin:$LLVM_HOME/bin:$ANDROID_SDK_ROOT/build-tools/36.0.0:$PATH"
|
||||||
|
for tool in cargo rustc rustup git cmake ninja python3 pkg-config clang clang++ ar llvm-strip llvm-readelf java javac jar keytool jarsigner sh zipalign aapt2 apksigner; do
|
||||||
|
command -v "$tool"
|
||||||
|
done
|
||||||
|
test -f "$ANDROID_SDK_ROOT/platforms/android-36/android.jar"
|
||||||
|
test -f "$ANDROID_NDK_ROOT/source.properties"
|
||||||
|
test -x "$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android26-clang"
|
||||||
|
test -f "$SKIA_SOURCE_DIR/BUILD.gn"
|
||||||
|
test -x "$SKIA_SOURCE_DIR/bin/gn"
|
||||||
|
test -d "$SKIA_SOURCE_DIR/third_party/externals"
|
||||||
|
test -f "$TEAMSPEACH_BUNDLETOOL"
|
||||||
|
test -d "$(rustc --print target-libdir --target "$TARGET")"
|
||||||
|
# A clean checkout and run-specific Cargo/Gradle/output trees prevent stale
|
||||||
|
# packages or dependency receipts from another job/revision being selected.
|
||||||
|
test ! -e target
|
||||||
|
test ! -e dist/android
|
||||||
|
test ! -e .gradle-ci
|
||||||
|
python3 - <<'PY'
|
||||||
|
import hashlib, os, pathlib, re, subprocess
|
||||||
|
ndk = pathlib.Path(os.environ['ANDROID_NDK_ROOT'], 'source.properties').read_text()
|
||||||
|
assert re.search(r'^Pkg\.Revision\s*=\s*28\.2\.13676358\s*$', ndk, re.M), 'NDK must match Gradle ndkVersion'
|
||||||
|
java = subprocess.check_output(['java', '-version'], stderr=subprocess.STDOUT, text=True)
|
||||||
|
assert int(re.search(r'version "(\d+)', java)[1]) >= 17, 'JDK17+ is required'
|
||||||
|
assert list(pathlib.Path(os.environ['LIBCLANG_PATH']).glob('libclang.so*')), 'matching LLVM libclang.so is required'
|
||||||
|
properties = pathlib.Path('platform/android/gradle/wrapper/gradle-wrapper.properties').read_text()
|
||||||
|
expected = re.search(r'^distributionSha256Sum=(\w+)$', properties, re.M)[1]
|
||||||
|
with open(os.environ['TEAMSPEACH_GRADLE_DISTRIBUTION'], 'rb') as source:
|
||||||
|
digest = hashlib.sha256()
|
||||||
|
for chunk in iter(lambda: source.read(1024 * 1024), b''):
|
||||||
|
digest.update(chunk)
|
||||||
|
assert digest.hexdigest() == expected, 'local Gradle zip checksum mismatch'
|
||||||
|
# No signing configuration is consumed from a dedicated runner's environment.
|
||||||
|
for name in ('TEAMSPEACH_ANDROID_KEYSTORE', 'TEAMSPEACH_ANDROID_STORE_PASSWORD', 'TEAMSPEACH_ANDROID_KEY_ALIAS', 'TEAMSPEACH_ANDROID_KEY_PASSWORD'):
|
||||||
|
assert name not in os.environ, 'remove production signing environment from this unsigned runner'
|
||||||
|
PY
|
||||||
|
echo "ANDROID_NDK_ROOT=$ANDROID_NDK_ROOT" >> "$GITHUB_ENV"
|
||||||
|
echo "ANDROID_NDK_HOME=$ANDROID_NDK_HOME" >> "$GITHUB_ENV"
|
||||||
|
echo "$JAVA_HOME/bin" >> "$GITHUB_PATH"
|
||||||
|
echo "$LLVM_HOME/bin" >> "$GITHUB_PATH"
|
||||||
|
echo "$ANDROID_SDK_ROOT/build-tools/36.0.0" >> "$GITHUB_PATH"
|
||||||
|
echo "SKIA_GN_COMMAND=$SKIA_SOURCE_DIR/bin/gn" >> "$GITHUB_ENV"
|
||||||
|
echo "SKIA_NINJA_COMMAND=$(command -v ninja)" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
|
- name: Check workspace version and packaging behavior
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
cargo run --locked -p xtask -- check-version
|
||||||
|
cargo test --locked -p xtask
|
||||||
|
|
||||||
|
- name: Build pinned Android WebRTC from source on Linux
|
||||||
|
run: cargo run --locked -p xtask -- deps --target "$TARGET" --llvm-dir "$LLVM_HOME"
|
||||||
|
|
||||||
|
- name: Build and verify harness first, then unsigned production (full Skia + WebRTC)
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
for variant in harness production; do
|
||||||
|
if [ "$variant" = harness ]; then harness=true; else harness=false; fi
|
||||||
|
out="dist/android/$variant"
|
||||||
|
cargo run --locked -p xtask -- build --target "$TARGET" --llvm-dir "$LLVM_HOME" --skia-source "$SKIA_SOURCE_DIR" --test-harness "$harness"
|
||||||
|
# Explicit online dependency resolution supports a fresh Gradle cache.
|
||||||
|
# Bootstrap still requires the local checksum-pinned zip; SDK downloads stay disabled.
|
||||||
|
cargo run --locked -p xtask -- package --target "$TARGET" --out "$out" --test-harness "$harness" --gradle-online true
|
||||||
|
cargo run --locked -p xtask -- verify-package --target "$TARGET" --out "$out" --test-harness "$harness"
|
||||||
|
cp "$CARGO_TARGET_DIR/$TARGET/release/native-build.json" "$out/$TARGET/native-build.json"
|
||||||
|
cp native/native-deps.lock.json "$out/$TARGET/native-deps.lock.json"
|
||||||
|
cp "target/native-deps/$TARGET/provenance.json" "$out/$TARGET/dependency-provenance.json"
|
||||||
|
python3 - "$out" "$harness" <<'PY'
|
||||||
|
import hashlib, json, os, pathlib, subprocess, sys
|
||||||
|
out = pathlib.Path(sys.argv[1])
|
||||||
|
harness = sys.argv[2] == 'true'
|
||||||
|
target = os.environ['TARGET']
|
||||||
|
revision = subprocess.check_output(['git', 'rev-parse', 'HEAD'], text=True).strip()
|
||||||
|
assert revision == os.environ['EXPECTED_REVISION'], 'checkout revision changed'
|
||||||
|
receipt = json.loads((out / target / 'package-report.json').read_text())
|
||||||
|
verification = json.loads((out / target / 'verification.json').read_text())
|
||||||
|
assert receipt['testOnly'] == harness and receipt['sourceBuild']['testHarness'] == harness
|
||||||
|
assert verification['passed'] is True
|
||||||
|
assert {a['kind'] for a in receipt['artifacts']} == ({'apk'} if harness else {'apk', 'aab'})
|
||||||
|
assert all(a['signing'] == ('android-debug-test' if harness else 'unsigned-not-installable') and not a['release_eligible'] for a in receipt['artifacts'])
|
||||||
|
files = [out / a['name'] for a in receipt['artifacts']]
|
||||||
|
files += [out / target / name for name in ('package-report.json', 'verification.json', 'native-build.json', 'native-deps.lock.json', 'dependency-provenance.json')]
|
||||||
|
hashes = {}
|
||||||
|
for path in files:
|
||||||
|
with path.open('rb') as source:
|
||||||
|
digest = hashlib.sha256()
|
||||||
|
for chunk in iter(lambda: source.read(1024 * 1024), b''):
|
||||||
|
digest.update(chunk)
|
||||||
|
hashes[str(path.relative_to(out))] = digest.hexdigest()
|
||||||
|
(out / 'build-info.json').write_text(json.dumps({'schema': 1, 'revision': revision, 'run_id': os.environ['CI_RUN_ID'], 'target': target, 'testHarness': harness, 'gradleOnline': True, 'deviceAcceptance': 'not exercised', 'publicationAuthorized': False, 'sha256': hashes}, indent=2) + '\n')
|
||||||
|
PY
|
||||||
|
done
|
||||||
|
|
||||||
|
- name: Retain installable test-only ARM64 harness and exact receipts
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: android-harness-arm64
|
||||||
|
path: |
|
||||||
|
android-${{ github.run_id }}/dist/android/harness/*-harness-test.apk
|
||||||
|
android-${{ github.run_id }}/dist/android/harness/build-info.json
|
||||||
|
android-${{ github.run_id }}/dist/android/harness/aarch64-linux-android/*.json
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
|
- name: Retain unsigned production ARM64 APK and store AAB (not installable)
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: android-production-unsigned-arm64
|
||||||
|
path: |
|
||||||
|
android-${{ github.run_id }}/dist/android/production/*-unsigned.apk
|
||||||
|
android-${{ github.run_id }}/dist/android/production/*-unsigned.aab
|
||||||
|
android-${{ github.run_id }}/dist/android/production/build-info.json
|
||||||
|
android-${{ github.run_id }}/dist/android/production/aarch64-linux-android/*.json
|
||||||
|
if-no-files-found: error
|
||||||
@@ -1,9 +1,6 @@
|
|||||||
# Continuous integration on the self-hosted Gitea runner (Linux x64 container jobs).
|
# Trusted pushes/manual runs only: public pull requests must not execute on private runners.
|
||||||
# Everything runs inside the job container; nothing is installed on the runner host.
|
# Runner administrators provision the native SDKs/tools; jobs never install on the host.
|
||||||
# Triggers are trusted only: pushes to main by maintainers and manual dispatch. There is deliberately no
|
name: native-ci
|
||||||
# pull_request trigger: the repository is public and the runner sits on a private network, so outside
|
|
||||||
# contributions are reviewed first and then validated by a maintainer (push to main or workflow_dispatch).
|
|
||||||
name: ci
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -13,118 +10,81 @@ on:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux-x64:
|
native-linux:
|
||||||
runs-on: ubuntu-latest
|
strategy:
|
||||||
container:
|
fail-fast: false
|
||||||
image: node:22-bookworm
|
matrix:
|
||||||
|
include:
|
||||||
|
- target: x86_64-unknown-linux-gnu
|
||||||
|
runner: teamspeach-native-linux-x64
|
||||||
|
- target: aarch64-unknown-linux-gnu
|
||||||
|
runner: teamspeach-native-linux-arm64
|
||||||
|
runs-on: ${{ matrix.runner }}
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: never
|
CARGO_TERM_COLOR: never
|
||||||
CARGO_BUILD_JOBS: "2"
|
CARGO_BUILD_JOBS: "2"
|
||||||
|
TARGET: ${{ matrix.target }}
|
||||||
|
LLVM_HOME: ${{ vars.NATIVE_LLVM_HOME }}
|
||||||
|
SKIA_SOURCE_DIR: ${{ vars.NATIVE_SKIA_SOURCE_DIR }}
|
||||||
|
LIBCLANG_PATH: ${{ vars.NATIVE_LIBCLANG_PATH }}
|
||||||
|
LK_CUSTOM_WEBRTC: ${{ github.workspace }}/target/native-deps/${{ matrix.target }}/webrtc
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: System packages (container only)
|
- name: Require explicitly provisioned source and native tools
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
set -euo pipefail
|
||||||
apt-get install -y --no-install-recommends build-essential cmake curl ca-certificates git \
|
: "${LLVM_HOME:?set NATIVE_LLVM_HOME to installed LLVM}"
|
||||||
xvfb xauth libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libgbm1 libgtk-3-0 \
|
: "${LIBCLANG_PATH:?set NATIVE_LIBCLANG_PATH to the libclang directory}"
|
||||||
libasound2 libxss1 libxshmfence1 libxkbcommon0 libxcomposite1 libxdamage1 libxrandr2 libpango-1.0-0
|
: "${SKIA_SOURCE_DIR:?set NATIVE_SKIA_SOURCE_DIR to a dependency-synchronized Skia checkout}"
|
||||||
|
test -x "$LLVM_HOME/bin/clang"
|
||||||
|
test -f "$SKIA_SOURCE_DIR/BUILD.gn"
|
||||||
|
test -x "$SKIA_SOURCE_DIR/bin/gn"
|
||||||
|
echo "$LLVM_HOME/bin" >> "$GITHUB_PATH"
|
||||||
|
command -v cargo
|
||||||
|
command -v cmake
|
||||||
|
command -v ninja
|
||||||
|
command -v python3
|
||||||
|
command -v xvfb-run
|
||||||
|
command -v dbus-run-session
|
||||||
|
echo "SKIA_GN_COMMAND=$SKIA_SOURCE_DIR/bin/gn" >> "$GITHUB_ENV"
|
||||||
|
echo "SKIA_NINJA_COMMAND=$(command -v ninja)" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Rust toolchain
|
- name: Native version gate
|
||||||
run: |
|
run: cargo run --locked -p xtask -- check-version
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable --target wasm32-unknown-unknown
|
|
||||||
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
|
||||||
|
|
||||||
- name: glibc baseline
|
- name: Gitea transport unit tests (mocked HTTP, no publication)
|
||||||
run: ldd --version | sed -n 1p
|
run: python3 -m unittest discover -s xtask -p test_publish_release.py
|
||||||
|
|
||||||
- name: Node dependencies
|
- name: Provision pinned WebRTC sources and archive
|
||||||
run: npm ci
|
run: cargo run --locked -p xtask -- deps --target "$TARGET" --llvm-dir "$LLVM_HOME" --jobs "$CARGO_BUILD_JOBS"
|
||||||
|
|
||||||
- name: Portable microphone DSP
|
- name: Build full native app and update helper (Skia + WebRTC defaults)
|
||||||
run: |
|
run: cargo run --locked -p xtask -- build --target "$TARGET" --llvm-dir "$LLVM_HOME" --skia-source "$SKIA_SOURCE_DIR" --jobs "$CARGO_BUILD_JOBS"
|
||||||
node scripts/build-denoise.mjs
|
|
||||||
cargo test --manifest-path dsp/Cargo.toml --locked
|
|
||||||
|
|
||||||
- name: Unit tests (desktop)
|
- name: Rust workspace tests on matching native architecture
|
||||||
run: npm test
|
run: cargo test --locked --workspace --target "$TARGET" --jobs "$CARGO_BUILD_JOBS"
|
||||||
|
|
||||||
- name: Core tests
|
- name: Build explicit native test harness
|
||||||
run: cargo test --manifest-path core/Cargo.toml --locked
|
run: cargo run --locked -p xtask -- build --target "$TARGET" --llvm-dir "$LLVM_HOME" --skia-source "$SKIA_SOURCE_DIR" --jobs "$CARGO_BUILD_JOBS" --test-harness true
|
||||||
|
|
||||||
- name: Core release build
|
- name: Native offline UI smoke (not updater end-to-end acceptance)
|
||||||
run: cargo build --manifest-path core/Cargo.toml --release --locked
|
run: dbus-run-session -- xvfb-run -a cargo run --locked -p xtask -- smoke --target "$TARGET" --scenario offline-ui --out "native-smoke-$TARGET"
|
||||||
|
|
||||||
- name: Core binary architecture
|
- name: Native historical profile migration smoke
|
||||||
run: node scripts/binary-arch.mjs core/target/release/teamspeach-core --expect linux-x64
|
run: dbus-run-session -- xvfb-run -a cargo run --locked -p xtask -- smoke --target "$TARGET" --scenario migration --out "native-migration-$TARGET"
|
||||||
|
|
||||||
- name: Core identity smoke (stdio, offline)
|
- name: Upload measured native smoke evidence
|
||||||
run: node scripts/core-smoke.mjs core/target/release/teamspeach-core
|
|
||||||
|
|
||||||
- name: Electron UI smoke (Xvfb, offline, disposable profile)
|
|
||||||
env:
|
|
||||||
TEAMSPEACH_SMOKE_EXTRA_ARGS: --no-sandbox
|
|
||||||
run: xvfb-run -a node scripts/smoke-ui.mjs --out smoke-out
|
|
||||||
|
|
||||||
- name: Updater engine behaviour (Xvfb, emulated release host)
|
|
||||||
run: xvfb-run -a node --test test/update-engine.test.mjs
|
|
||||||
|
|
||||||
- name: Upload smoke evidence
|
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ci-smoke-linux-x64
|
name: native-ci-${{ matrix.target }}
|
||||||
path: smoke-out/
|
path: |
|
||||||
if-no-files-found: ignore
|
native-smoke-${{ matrix.target }}/
|
||||||
|
native-migration-${{ matrix.target }}/
|
||||||
linux-arm64-cross:
|
if-no-files-found: warn
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: node:22-bookworm
|
|
||||||
env:
|
|
||||||
CARGO_TERM_COLOR: never
|
|
||||||
CARGO_BUILD_JOBS: "2"
|
|
||||||
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
|
|
||||||
CC_aarch64_unknown_linux_gnu: aarch64-linux-gnu-gcc
|
|
||||||
CXX_aarch64_unknown_linux_gnu: aarch64-linux-gnu-g++
|
|
||||||
AR_aarch64_unknown_linux_gnu: aarch64-linux-gnu-ar
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Cross toolchain and user-mode emulator (container only, no binfmt)
|
|
||||||
run: |
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y --no-install-recommends build-essential cmake curl ca-certificates git \
|
|
||||||
gcc-aarch64-linux-gnu g++-aarch64-linux-gnu libc6-dev-arm64-cross qemu-user
|
|
||||||
|
|
||||||
- name: Rust toolchain
|
|
||||||
run: |
|
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable --target aarch64-unknown-linux-gnu
|
|
||||||
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
|
||||||
|
|
||||||
- name: Core cross build (aarch64-unknown-linux-gnu)
|
|
||||||
run: cargo build --manifest-path core/Cargo.toml --release --locked --target aarch64-unknown-linux-gnu
|
|
||||||
|
|
||||||
- name: Core binary architecture
|
|
||||||
run: node scripts/binary-arch.mjs core/target/aarch64-unknown-linux-gnu/release/teamspeach-core --expect linux-arm64
|
|
||||||
|
|
||||||
- name: Required glibc symbols
|
|
||||||
run: aarch64-linux-gnu-objdump -T core/target/aarch64-unknown-linux-gnu/release/teamspeach-core | grep -o 'GLIBC_[0-9.]*' | sort -Vu | tail -n1
|
|
||||||
|
|
||||||
- name: 16 KiB page compatibility (Asahi) of the core ELF
|
|
||||||
run: node scripts/elf-pagesize.mjs core/target/aarch64-unknown-linux-gnu/release/teamspeach-core --page 16384
|
|
||||||
|
|
||||||
- name: Core identity smoke under qemu-aarch64 (emulated, not native hardware)
|
|
||||||
run: node scripts/core-smoke.mjs core/target/aarch64-unknown-linux-gnu/release/teamspeach-core --wrapper "qemu-aarch64 -L /usr/aarch64-linux-gnu"
|
|
||||||
|
|
||||||
# The unit tests (voice detector, resampler, identity keys, codecs, protocol) built for aarch64 and run
|
|
||||||
# under user-mode qemu. Emulated, not native hardware; the bridge smoke tests spawn the core binary and
|
|
||||||
# are left to the host build above. Tests that re-run their own binary as a child get the same emulator
|
|
||||||
# and sysroot explicitly (core/src/test_exec.rs): without binfmt the kernel cannot exec the aarch64 ELF.
|
|
||||||
- name: Core unit tests under qemu-aarch64 (emulated, not native hardware)
|
|
||||||
env:
|
|
||||||
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_RUNNER: qemu-aarch64 -L /usr/aarch64-linux-gnu
|
|
||||||
TEAMSPEACH_TEST_QEMU: qemu-aarch64
|
|
||||||
TEAMSPEACH_TEST_QEMU_SYSROOT: /usr/aarch64-linux-gnu
|
|
||||||
run: cargo test --manifest-path core/Cargo.toml --locked --target aarch64-unknown-linux-gnu --bin teamspeach-core
|
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
# Release builds on the self-hosted Gitea runner (Linux x64 job containers).
|
# Trusted tag pushes publish only after both native architectures and release assembly pass.
|
||||||
# - workflow_dispatch: build + verify packages, keep them as run artifacts (no release).
|
# Manual dispatch builds/verifies and retains artifacts without publication.
|
||||||
# - tag v*: same, then publish a Gitea release with the packages, only if every build job succeeded.
|
# These labels require preprovisioned matching-ISA native runners (no emulated acceptance).
|
||||||
# Windows x64 packages are built on a Windows machine and attached separately (see README).
|
name: native-release
|
||||||
name: release
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -17,215 +16,138 @@ defaults:
|
|||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux-x64:
|
native-linux:
|
||||||
runs-on: ubuntu-latest
|
strategy:
|
||||||
container:
|
fail-fast: false
|
||||||
image: node:22-bookworm
|
matrix:
|
||||||
|
include:
|
||||||
|
- target: x86_64-unknown-linux-gnu
|
||||||
|
runner: teamspeach-native-linux-x64
|
||||||
|
- target: aarch64-unknown-linux-gnu
|
||||||
|
runner: teamspeach-native-linux-arm64
|
||||||
|
runs-on: ${{ matrix.runner }}
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: never
|
CARGO_TERM_COLOR: never
|
||||||
CARGO_BUILD_JOBS: "2"
|
CARGO_BUILD_JOBS: "2"
|
||||||
|
TARGET: ${{ matrix.target }}
|
||||||
|
LLVM_HOME: ${{ vars.NATIVE_LLVM_HOME }}
|
||||||
|
SKIA_SOURCE_DIR: ${{ vars.NATIVE_SKIA_SOURCE_DIR }}
|
||||||
|
LIBCLANG_PATH: ${{ vars.NATIVE_LIBCLANG_PATH }}
|
||||||
|
LK_CUSTOM_WEBRTC: ${{ github.workspace }}/target/native-deps/${{ matrix.target }}/webrtc
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Version gate (tag = package.json = core/Cargo.toml)
|
- name: Require explicit native source/tool provisioning
|
||||||
run: node scripts/check-version.mjs
|
|
||||||
|
|
||||||
- name: System packages (container only)
|
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
apt-get update
|
: "${LLVM_HOME:?set NATIVE_LLVM_HOME to installed LLVM}"
|
||||||
apt-get install -y --no-install-recommends build-essential cmake curl ca-certificates git \
|
: "${LIBCLANG_PATH:?set NATIVE_LIBCLANG_PATH to the libclang directory}"
|
||||||
xvfb xauth libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libgbm1 libgtk-3-0 \
|
: "${SKIA_SOURCE_DIR:?set NATIVE_SKIA_SOURCE_DIR to a dependency-synchronized Skia checkout}"
|
||||||
libasound2 libxss1 libxshmfence1 libxkbcommon0 libxcomposite1 libxdamage1 libxrandr2 libpango-1.0-0
|
test -x "$LLVM_HOME/bin/clang"
|
||||||
|
test -f "$SKIA_SOURCE_DIR/BUILD.gn"
|
||||||
|
test -x "$SKIA_SOURCE_DIR/bin/gn"
|
||||||
|
echo "$LLVM_HOME/bin" >> "$GITHUB_PATH"
|
||||||
|
for tool in cargo cmake ninja python3 xvfb-run dbus-run-session linuxdeploy appimagetool unsquashfs llvm-readelf; do
|
||||||
|
command -v "$tool"
|
||||||
|
done
|
||||||
|
echo "SKIA_GN_COMMAND=$SKIA_SOURCE_DIR/bin/gn" >> "$GITHUB_ENV"
|
||||||
|
echo "SKIA_NINJA_COMMAND=$(command -v ninja)" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Rust toolchain
|
- name: Tag must match native workspace version
|
||||||
|
run: cargo run --locked -p xtask -- check-version
|
||||||
|
|
||||||
|
- name: Provision pinned WebRTC sources and archive
|
||||||
|
run: cargo run --locked -p xtask -- deps --target "$TARGET" --llvm-dir "$LLVM_HOME" --jobs "$CARGO_BUILD_JOBS"
|
||||||
|
|
||||||
|
- name: Rust workspace tests on matching native architecture
|
||||||
|
run: cargo test --locked --workspace --target "$TARGET" --jobs "$CARGO_BUILD_JOBS"
|
||||||
|
|
||||||
|
- name: Build explicit native smoke harness with default Skia and WebRTC
|
||||||
|
run: cargo run --locked -p xtask -- build --target "$TARGET" --llvm-dir "$LLVM_HOME" --skia-source "$SKIA_SOURCE_DIR" --jobs "$CARGO_BUILD_JOBS" --test-harness true
|
||||||
|
|
||||||
|
- name: Native offline UI and historical profile migration smoke
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable --target wasm32-unknown-unknown
|
dbus-run-session -- xvfb-run -a cargo run --locked -p xtask -- smoke --target "$TARGET" --scenario offline-ui --out "native-smoke-$TARGET"
|
||||||
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
dbus-run-session -- xvfb-run -a cargo run --locked -p xtask -- smoke --target "$TARGET" --scenario migration --out "native-migration-$TARGET"
|
||||||
|
|
||||||
- name: Tests
|
- name: Rebuild production native app and update helper (no test harness)
|
||||||
|
run: cargo run --locked -p xtask -- build --target "$TARGET" --llvm-dir "$LLVM_HOME" --skia-source "$SKIA_SOURCE_DIR" --jobs "$CARGO_BUILD_JOBS"
|
||||||
|
|
||||||
|
- name: Package and inspect real native archive payloads
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
npm ci
|
cargo run --locked -p xtask -- package --target "$TARGET" --out dist/native
|
||||||
node scripts/build-denoise.mjs
|
cargo run --locked -p xtask -- verify-package --target "$TARGET" --out dist/native
|
||||||
cargo test --manifest-path dsp/Cargo.toml --locked
|
cp native/native-deps.lock.json "dist/native/$TARGET/native-deps.lock.json"
|
||||||
npm test
|
|
||||||
cargo test --manifest-path core/Cargo.toml --locked
|
|
||||||
|
|
||||||
- name: Core release build and checks
|
- name: Upload native release bundle and exact provisioning receipt
|
||||||
run: |
|
uses: actions/upload-artifact@v3
|
||||||
set -euo pipefail
|
|
||||||
cargo build --manifest-path core/Cargo.toml --release --locked
|
|
||||||
node scripts/binary-arch.mjs core/target/release/teamspeach-core --expect linux-x64
|
|
||||||
node scripts/core-smoke.mjs core/target/release/teamspeach-core
|
|
||||||
|
|
||||||
- name: Electron UI smoke (Xvfb, offline)
|
|
||||||
env:
|
|
||||||
TEAMSPEACH_SMOKE_EXTRA_ARGS: --no-sandbox
|
|
||||||
run: xvfb-run -a node scripts/smoke-ui.mjs --out smoke-out
|
|
||||||
|
|
||||||
- name: Updater engine behaviour (Xvfb, real electron-updater, emulated release server)
|
|
||||||
run: xvfb-run -a node --test test/update-engine.test.mjs
|
|
||||||
|
|
||||||
- name: Package
|
|
||||||
run: node scripts/dist.mjs --os linux --arch x64
|
|
||||||
|
|
||||||
- name: Update feed matches the packages (name, size, sha512, version)
|
|
||||||
run: node scripts/update-feed-check.mjs --version "$(node -p "require('./package.json').version")" dist/*-linux.yml
|
|
||||||
|
|
||||||
- name: Package report (ELF layout of every packaged binary incl. the AppImage runtime)
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
report=dist/build-info-linux-x64.txt
|
|
||||||
# sed consumes all input, so ldd never gets SIGPIPE under pipefail (head -n1 caused exit 141).
|
|
||||||
ldd --version | sed -n 1p > "$report"
|
|
||||||
git rev-parse HEAD >> "$report"
|
|
||||||
node scripts/elf-pagesize.mjs dist/linux-unpacked dist/TeamsPeach-*.AppImage --page 4096 --json dist/elf-report-linux-x64.json > elf.txt
|
|
||||||
cat elf.txt >> "$report"
|
|
||||||
sha256sum dist/*.AppImage dist/*.tar.gz dist/*-linux.yml >> "$report"
|
|
||||||
cat "$report"
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
with:
|
||||||
name: teamspeach-linux-x64
|
name: teamspeach-native-${{ matrix.target }}
|
||||||
path: |
|
path: |
|
||||||
dist/*.AppImage
|
dist/native/TeamsPeach-*.AppImage
|
||||||
dist/*.tar.gz
|
dist/native/TeamsPeach-*.tar.gz
|
||||||
dist/build-info-linux-x64.txt
|
dist/native/*.yml
|
||||||
dist/elf-report-linux-x64.json
|
dist/native/native-manifest.json
|
||||||
dist/*-linux.yml
|
dist/native/${{ matrix.target }}/package-report.json
|
||||||
|
dist/native/${{ matrix.target }}/verification.json
|
||||||
|
dist/native/${{ matrix.target }}/native-deps.lock.json
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
linux-arm64:
|
- name: Upload measured native smoke evidence
|
||||||
runs-on: ubuntu-latest
|
if: always()
|
||||||
container:
|
uses: actions/upload-artifact@v3
|
||||||
image: node:22-bookworm
|
with:
|
||||||
env:
|
name: native-release-smoke-${{ matrix.target }}
|
||||||
CARGO_TERM_COLOR: never
|
path: |
|
||||||
CARGO_BUILD_JOBS: "2"
|
native-smoke-${{ matrix.target }}/
|
||||||
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
|
native-migration-${{ matrix.target }}/
|
||||||
CC_aarch64_unknown_linux_gnu: aarch64-linux-gnu-gcc
|
if-no-files-found: warn
|
||||||
CXX_aarch64_unknown_linux_gnu: aarch64-linux-gnu-g++
|
|
||||||
AR_aarch64_unknown_linux_gnu: aarch64-linux-gnu-ar
|
assemble:
|
||||||
|
needs: [native-linux]
|
||||||
|
runs-on: teamspeach-native-linux-x64
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Version gate (tag = package.json = core/Cargo.toml)
|
|
||||||
run: node scripts/check-version.mjs
|
|
||||||
|
|
||||||
- name: Cross toolchain and user-mode emulator (container only, no binfmt)
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y --no-install-recommends build-essential cmake curl ca-certificates git \
|
|
||||||
gcc-aarch64-linux-gnu g++-aarch64-linux-gnu libc6-dev-arm64-cross qemu-user
|
|
||||||
|
|
||||||
- name: Rust toolchain
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable --target aarch64-unknown-linux-gnu --target wasm32-unknown-unknown
|
|
||||||
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
|
||||||
|
|
||||||
- name: Core cross build and checks
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
cargo build --manifest-path core/Cargo.toml --release --locked --target aarch64-unknown-linux-gnu
|
|
||||||
node scripts/binary-arch.mjs core/target/aarch64-unknown-linux-gnu/release/teamspeach-core --expect linux-arm64
|
|
||||||
node scripts/elf-pagesize.mjs core/target/aarch64-unknown-linux-gnu/release/teamspeach-core --page 16384
|
|
||||||
node scripts/core-smoke.mjs core/target/aarch64-unknown-linux-gnu/release/teamspeach-core --wrapper "qemu-aarch64 -L /usr/aarch64-linux-gnu"
|
|
||||||
|
|
||||||
- name: Package
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
npm ci
|
|
||||||
node scripts/dist.mjs --os linux --arch arm64
|
|
||||||
node scripts/update-feed-check.mjs --version "$(node -p "require('./package.json').version")" dist/*-linux-arm64.yml
|
|
||||||
|
|
||||||
- name: 16 KiB page check of every packaged ELF incl. the AppImage runtime (Asahi)
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
report=dist/build-info-linux-arm64.txt
|
|
||||||
echo "glibc of build sysroot: $(dpkg-query -W -f='${Version}' libc6-dev-arm64-cross)" > "$report"
|
|
||||||
git rev-parse HEAD >> "$report"
|
|
||||||
node scripts/elf-pagesize.mjs dist/linux-arm64-unpacked dist/TeamsPeach-*-arm64.AppImage --page 16384 --json dist/elf-report-linux-arm64.json > elf.txt
|
|
||||||
cat elf.txt >> "$report"
|
|
||||||
sha256sum dist/*.AppImage dist/*.tar.gz dist/*-linux-arm64.yml >> "$report"
|
|
||||||
cat "$report"
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: teamspeach-linux-arm64
|
|
||||||
path: |
|
|
||||||
dist/*.AppImage
|
|
||||||
dist/*.tar.gz
|
|
||||||
dist/build-info-linux-arm64.txt
|
|
||||||
dist/elf-report-linux-arm64.json
|
|
||||||
dist/*-linux-arm64.yml
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
||||||
# The AppImage runtime must start on a stock system: run it in a slim container without development
|
|
||||||
# packages (no unversioned libz.so), natively for x64 and under qemu-aarch64 for arm64.
|
|
||||||
appimage-startup:
|
|
||||||
needs: [linux-x64, linux-arm64]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: node:22-bookworm-slim
|
|
||||||
steps:
|
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: artifacts
|
name: teamspeach-native-x86_64-unknown-linux-gnu
|
||||||
|
path: artifacts/teamspeach-native-x86_64-unknown-linux-gnu
|
||||||
- name: x64 AppImage runtime starts without development packages
|
- uses: actions/download-artifact@v3
|
||||||
run: |
|
with:
|
||||||
set -euo pipefail
|
name: teamspeach-native-aarch64-unknown-linux-gnu
|
||||||
echo "zlib files present:"; ls /usr/lib/x86_64-linux-gnu/ | grep '^libz\.' || true
|
path: artifacts/teamspeach-native-aarch64-unknown-linux-gnu
|
||||||
app=$(ls artifacts/teamspeach-linux-x64/TeamsPeach-*.AppImage)
|
- name: Gitea transport unit tests (mocked HTTP, no publication)
|
||||||
chmod +x "$app"
|
run: python3 -m unittest discover -s xtask -p test_publish_release.py
|
||||||
"$app" --appimage-version
|
- name: Merge strict native manifests and recheck every package digest
|
||||||
|
run: cargo run --locked -p xtask -- prepare-release --out artifacts
|
||||||
- name: arm64 AppImage runtime starts under qemu-aarch64 (emulated)
|
- uses: actions/upload-artifact@v3
|
||||||
run: |
|
with:
|
||||||
set -euo pipefail
|
name: native-release-manifest
|
||||||
dpkg --add-architecture arm64
|
path: artifacts/native-manifest.json
|
||||||
apt-get update
|
if-no-files-found: error
|
||||||
apt-get install -y --no-install-recommends qemu-user libc6:arm64 zlib1g:arm64
|
|
||||||
echo "arm64 zlib files present:"; ls /usr/lib/aarch64-linux-gnu/ | grep '^libz\.' || true
|
|
||||||
app=$(ls artifacts/teamspeach-linux-arm64/TeamsPeach-*-arm64.AppImage)
|
|
||||||
chmod +x "$app"
|
|
||||||
qemu-aarch64 -L / "$app" --appimage-version
|
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
needs: [linux-x64, linux-arm64, appimage-startup]
|
needs: [native-linux, assemble]
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
runs-on: ubuntu-latest
|
runs-on: teamspeach-native-linux-x64
|
||||||
container:
|
|
||||||
image: node:22-bookworm
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: artifacts
|
name: teamspeach-native-x86_64-unknown-linux-gnu
|
||||||
|
path: artifacts/teamspeach-native-x86_64-unknown-linux-gnu
|
||||||
- name: Publish release (draft → upload all → publish)
|
- uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: teamspeach-native-aarch64-unknown-linux-gnu
|
||||||
|
path: artifacts/teamspeach-native-aarch64-unknown-linux-gnu
|
||||||
|
- name: Validate packages, create draft, upload, verify remote hashes, publish
|
||||||
env:
|
env:
|
||||||
TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
API: ${{ github.server_url }}/api/v1/repos/${{ github.repository }}
|
GITHUB_REF: ${{ github.ref }}
|
||||||
TAG: ${{ github.ref_name }}
|
GITHUB_SERVER_URL: ${{ github.server_url }}
|
||||||
run: |
|
GITHUB_REPOSITORY: ${{ github.repository }}
|
||||||
set -euo pipefail
|
run: cargo run --locked -p xtask -- publish-release --out artifacts
|
||||||
node scripts/check-version.mjs
|
|
||||||
cat > notes.md <<'EOF'
|
|
||||||
Linux x64 and Linux ARM64 (aarch64) are built in CI: tests, offline core check, ELF alignment check
|
|
||||||
(16 KiB pages for ARM64, including the AppImage runtime), see build-info-*.txt.
|
|
||||||
ARM64 is checked statically and under qemu, not on Apple Silicon. Packages are not signed.
|
|
||||||
Windows x64 is built on the developer machine from the same commit and attached separately
|
|
||||||
(provenance in *-win-x64-local-build-info.txt).
|
|
||||||
Automatic updates (from the first updater-capable version on): Windows x64 NSIS installation and
|
|
||||||
Linux AppImage install from this release's latest*.yml / <channel>*.yml feeds after user confirmation;
|
|
||||||
zip and tar.gz users are notified and replace files manually.
|
|
||||||
EOF
|
|
||||||
node scripts/publish-release.mjs artifacts notes.md
|
|
||||||
@@ -1,78 +0,0 @@
|
|||||||
# Manual end-to-end proof of the AppImage self-update between two PUBLISHED releases (Linux x64).
|
|
||||||
# Downloads the older release's AppImage anonymously, runs it in a disposable profile under Xvfb with
|
|
||||||
# APPIMAGE_EXTRACT_AND_RUN, lets it update itself from git.eeee.moe and checks version + identity afterwards.
|
|
||||||
# Uses no secrets; never runs on pull requests.
|
|
||||||
name: update-e2e
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
from_tag:
|
|
||||||
description: Older updater-capable release tag (e.g. v0.1.2-rc.1)
|
|
||||||
required: true
|
|
||||||
to_tag:
|
|
||||||
description: Newer release tag the old one must update to (e.g. v0.1.2-rc.2)
|
|
||||||
required: true
|
|
||||||
new_prefs:
|
|
||||||
description: Optional JSON of settings that exist only in the new version, applied after the update and checked after a restart
|
|
||||||
required: false
|
|
||||||
default: ''
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
appimage-x64:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: node:22-bookworm
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: System packages (container only)
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y --no-install-recommends ca-certificates curl xvfb xauth libnss3 libatk1.0-0 \
|
|
||||||
libatk-bridge2.0-0 libcups2 libdrm2 libgbm1 libgtk-3-0 libasound2 libxss1 libxshmfence1 \
|
|
||||||
libxkbcommon0 libxcomposite1 libxdamage1 libxrandr2 libpango-1.0-0
|
|
||||||
|
|
||||||
- name: Test driver (playwright-core)
|
|
||||||
run: npm ci
|
|
||||||
|
|
||||||
- name: Download the older published AppImage (anonymous)
|
|
||||||
env:
|
|
||||||
FROM_TAG: ${{ inputs.from_tag }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
[[ "$FROM_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$ ]] || { echo "bad tag $FROM_TAG"; exit 2; }
|
|
||||||
mkdir -p old
|
|
||||||
curl -fsSL -o "old/TeamsPeach-${FROM_TAG#v}.AppImage" \
|
|
||||||
"https://git.eeee.moe/TeamsPeach/client/releases/download/${FROM_TAG}/TeamsPeach-${FROM_TAG#v}.AppImage"
|
|
||||||
sha256sum old/*.AppImage
|
|
||||||
|
|
||||||
- name: Self-update end to end
|
|
||||||
env:
|
|
||||||
FROM_TAG: ${{ inputs.from_tag }}
|
|
||||||
TO_TAG: ${{ inputs.to_tag }}
|
|
||||||
NEW_PREFS: ${{ inputs.new_prefs }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
[[ "$TO_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?$ ]] || { echo "bad tag $TO_TAG"; exit 2; }
|
|
||||||
if [ -n "$NEW_PREFS" ]; then
|
|
||||||
node -e 'const p = JSON.parse(process.argv[1]); if (!p || typeof p !== "object" || Array.isArray(p)) process.exit(2)' "$NEW_PREFS"
|
|
||||||
xvfb-run -a node scripts/update-e2e.mjs --from "old/TeamsPeach-${FROM_TAG#v}.AppImage" --to-tag "$TO_TAG" --out update-e2e-out --new-prefs "$NEW_PREFS"
|
|
||||||
else
|
|
||||||
xvfb-run -a node scripts/update-e2e.mjs --from "old/TeamsPeach-${FROM_TAG#v}.AppImage" --to-tag "$TO_TAG" --out update-e2e-out
|
|
||||||
fi
|
|
||||||
cat update-e2e-out/result.json
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
if: always()
|
|
||||||
with:
|
|
||||||
name: update-e2e
|
|
||||||
path: update-e2e-out/
|
|
||||||
@@ -1,7 +1,12 @@
|
|||||||
# dependencies and build output
|
# dependencies and build output
|
||||||
node_modules/
|
# Understand analysis intermediates are local; publish only the durable graph and baseline.
|
||||||
|
.ua/tmp/
|
||||||
|
.ua/.trash-*/
|
||||||
|
.ua/intermediate/*
|
||||||
|
!.ua/intermediate/scan-result.json
|
||||||
dist/
|
dist/
|
||||||
core-bin/
|
# Native Cargo artifacts
|
||||||
|
target/
|
||||||
core/target/
|
core/target/
|
||||||
|
|
||||||
# local runtime data, logs and identities
|
# local runtime data, logs and identities
|
||||||
|
|||||||
@@ -0,0 +1,104 @@
|
|||||||
|
# .understandignore — patterns for files/dirs to exclude from analysis
|
||||||
|
# Syntax: same as .gitignore (globs, # comments, ! negation, trailing / for dirs)
|
||||||
|
# Lines below are suggestions — uncomment to activate.
|
||||||
|
# Use ! prefix to force-include something excluded by defaults.
|
||||||
|
#
|
||||||
|
# Built-in defaults (always excluded unless negated):
|
||||||
|
# node_modules/, .git/, dist/, build/, obj/, *.lock, *.min.js, etc.
|
||||||
|
#
|
||||||
|
|
||||||
|
# --- From .gitignore (uncomment to exclude) ---
|
||||||
|
|
||||||
|
# core-bin/
|
||||||
|
# core/target/
|
||||||
|
# identity*.ini
|
||||||
|
# teamspeach-identity*.ini
|
||||||
|
# smoke-out/
|
||||||
|
# smoke-voice-out/
|
||||||
|
# probe-stream-out/
|
||||||
|
# loopback-out/
|
||||||
|
# .env
|
||||||
|
# .env.*
|
||||||
|
# .DS_Store
|
||||||
|
# Thumbs.db
|
||||||
|
|
||||||
|
# --- Detected directories (uncomment to exclude) ---
|
||||||
|
|
||||||
|
# docs/
|
||||||
|
# scripts/
|
||||||
|
# test/
|
||||||
|
|
||||||
|
# --- Test file patterns (uncomment to exclude) ---
|
||||||
|
|
||||||
|
# JS / TS
|
||||||
|
# *.test.*
|
||||||
|
# *.spec.*
|
||||||
|
# *.snap
|
||||||
|
# C# / .NET
|
||||||
|
# **/*Tests.cs
|
||||||
|
# **/*Test.cs
|
||||||
|
# **/*Fixture.cs
|
||||||
|
# **/*.Tests.csproj
|
||||||
|
# Java / Kotlin
|
||||||
|
# **/src/test/**
|
||||||
|
# **/*Test.java
|
||||||
|
# **/*IT.java
|
||||||
|
# **/*Spec.kt
|
||||||
|
# Go
|
||||||
|
# **/*_test.go
|
||||||
|
# C++
|
||||||
|
# **/*_test.cc
|
||||||
|
# **/*_test.cpp
|
||||||
|
# **/*_test.cxx
|
||||||
|
# **/*Test.cc
|
||||||
|
# **/*Test.cpp
|
||||||
|
# **/*_unittest.cc
|
||||||
|
# **/*_unittest.cpp
|
||||||
|
# **/*_browsertest.cc
|
||||||
|
# **/*_benchmark.cc
|
||||||
|
# **/*Benchmark.cpp
|
||||||
|
# Python
|
||||||
|
# **/test_*.py
|
||||||
|
# **/*_test.py
|
||||||
|
# **/tests.py
|
||||||
|
# **/conftest.py
|
||||||
|
# Rust
|
||||||
|
# **/tests.rs
|
||||||
|
# **/test_*.rs
|
||||||
|
# **/*_test.rs
|
||||||
|
# **/bench_*.rs
|
||||||
|
# **/*_bench.rs
|
||||||
|
# Ruby
|
||||||
|
# **/*_spec.rb
|
||||||
|
# **/*_test.rb
|
||||||
|
# **/test_*.rb
|
||||||
|
# **/spec_helper.rb
|
||||||
|
# **/test_helper.rb
|
||||||
|
# **/rails_helper.rb
|
||||||
|
# Swift
|
||||||
|
# **/Tests/**/*.swift
|
||||||
|
# **/Specs/**/*.swift
|
||||||
|
|
||||||
|
# Исключения исследования мобильного порта; тесты и исходники остаются в карте.
|
||||||
|
**/.env*
|
||||||
|
**/*.pem
|
||||||
|
**/*.key
|
||||||
|
**/*.p12
|
||||||
|
**/*.pfx
|
||||||
|
**/identity*.ini
|
||||||
|
**/teamspeach-identity*.ini
|
||||||
|
**/credentials*
|
||||||
|
**/secrets.json
|
||||||
|
**/vendor/**
|
||||||
|
**/assets/**
|
||||||
|
**/resources/**
|
||||||
|
docs/evidence/**
|
||||||
|
native/compatibility.json
|
||||||
|
native/native-deps.lock.json
|
||||||
|
core/THIRD_PARTY_NOTICES.md
|
||||||
|
LICENSES/denoise-THIRD-PARTY-NOTICES.txt
|
||||||
|
package-lock.json
|
||||||
|
.impeccable/**
|
||||||
|
# Граф и его baseline не являются исходниками приложения.
|
||||||
|
.ua/**
|
||||||
|
.understand-anything/**
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"autoUpdate": false,
|
||||||
|
"outputLanguage": "ru"
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"lastAnalyzedAt": "2026-11-10T19:23:30.715637+00:00",
|
||||||
|
"gitCommitHash": "5ce12714acc306f6055bf1e9db3282c5af7704cb",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"analyzedFiles": 372,
|
||||||
|
"workingTreeSnapshot": true,
|
||||||
|
"workingTreeFiles": [
|
||||||
|
".gitea/workflows/android.yml",
|
||||||
|
"AGENTS.md",
|
||||||
|
"CHANGELOG.md",
|
||||||
|
"README.md",
|
||||||
|
"docs/mobile-port-assessment.md",
|
||||||
|
"docs/mobile-port-progress.md",
|
||||||
|
"platform/android/build.gradle.kts",
|
||||||
|
"xtask/src/main.rs",
|
||||||
|
"xtask/src/package.rs"
|
||||||
|
],
|
||||||
|
"fingerprintBaselineCommit": "a761afaa43dddbdf78c70afb2546c79c3b1289e5",
|
||||||
|
"note": "Граф актуализирован по незакоммиченному рабочему дереву. Штатный incremental save отказал из-за dirty tree; fingerprints/scan baseline оставлены прежними для следующего воспроизводимого обновления после коммита."
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
# Работа над мобильным портом
|
||||||
|
|
||||||
|
## Native-only архитектура
|
||||||
|
|
||||||
|
- Единственный клиент — `native/` (Rust + Slint), протокольное ядро подключается через `core::runtime`. Electron/Node/Chromium UI и npm-сборка удалены; не возвращать их как временный host.
|
||||||
|
- Сборка, упаковка и smoke выполняются через Cargo/`xtask`. Общие ресурсы клиента находятся в `native/resources/`; версию задаёт Cargo workspace.
|
||||||
|
- Native-only не означает, что все платформы проверены. Фиксировать отдельно compile/package/runtime и реальные Android/iOS/device результаты; не переносить старые Electron passes в native acceptance.
|
||||||
|
- Android: выбран полный build/package в Linux CI (`.gitea/workflows/android.yml`); на Windows — разработка и установка APK через Platform-Tools. WSL/Docker/локальный Linux для этого маршрута не требуются; не предлагать их установку по умолчанию. Pinned WebRTC Android source-build остаётся Linux-only на CI, не обещать локальную Windows-сборку простой заменой путей.
|
||||||
|
- iOS требует macOS + Xcode/Apple SDK и соответствующий signing, локально или на отдельном macOS CI. Android workflow не доказывает iOS-готовность.
|
||||||
|
- Desktop acceptance gate: до явного подтверждения пользователя о проверенной установленной Windows-версии не выполнять push. После подтверждения зафиксировать desktop-baseline; дальнейшая мобильная работа не должна менять desktop-поведение без отдельного запроса. Изменения общих core/DSP/services проверять на desktop-регрессии; по возможности изолировать mobile-specific код.
|
||||||
|
- Windows 0.1.7 принята владельцем 2026-11-11 (подключение, канал, двусторонний голос); baseline — `desktop-baseline-0.1.7-20261111`. `main` — проверенная база, дальнейшая Android/iOS-разработка — `feature/mobile-port`. Приёмка Windows не означает Android/iOS acceptance; не менять desktop-поведение без отдельного запроса.
|
||||||
|
|
||||||
|
## Переносимая память
|
||||||
|
|
||||||
|
- В начале новой сессии прочитать `docs/mobile-port-progress.md` и относящиеся к задаче разделы `docs/mobile-port-assessment.md`. Эти документы — переносимая память проекта, а не память чата.
|
||||||
|
- Сопоставить записанную ревизию с текущим HEAD и рабочим деревом, включая staged, unstaged и относящиеся к задаче untracked-изменения. Перепроверять затронутые выводы и ссылки, а не перечитывать весь репозиторий.
|
||||||
|
- Использовать `codebase-knowledge-builder` при изучении новой подсистемы или существенном изменении ранее изученной; не запускать полный разбор ради мелкой правки. Существенные выводы подтверждать исходниками, отделяя факты, предположения и неизвестное.
|
||||||
|
- После существенных изменений обновлять соответствующие знания, ссылки на исходники, ревизию и сведения о реально проведённых проверках. Статический разбор не доказывает работоспособность на Android/iOS.
|
||||||
|
- Перед завершением сессии обновлять краткую передачу состояния в `docs/mobile-port-progress.md`, если появились новые решения, результаты или блокеры; не дублировать в ней весь разбор.
|
||||||
|
- Не перезапускать Understand-Anything каждую сессию. Использовать `.ua/knowledge-graph.json` как навигацию; обновлять при изменении архитектуры, предпочитая инкрементальное обновление. Проверять метаданные и не выдавать старый граф за актуальный. Автообновление графа оставлять выключенным без отдельного разрешения.
|
||||||
|
- Исследовательская стадия не разрешает менять исходники, запускать приложение, сборку, установочные скрипты или тесты. Для этого требуется отдельное разрешение. Не читать секреты и не помещать их в документы или граф; сохранять чужие инструкции и изменения.
|
||||||
@@ -1,5 +1,473 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
- Edit Server stays accessible when the user may change specific properties but not the server name. The server still authorizes each save.
|
||||||
|
|
||||||
|
- After renaming a server, Server Info shows the acknowledged name and the next Edit Server dialog uses it for confirmation.
|
||||||
|
|
||||||
|
- The Permission Groups panel and creation dialogs distinguish New Server Group from New Channel Group in English and Russian.
|
||||||
|
|
||||||
|
- Permission Groups asks for the group name once before deleting. Rename no longer depends on nonexistent per-kind rename permission flags; the server checks the target group's modify power.
|
||||||
|
|
||||||
|
- Refreshing Permission Groups accepts beta14 list rows without a type when the current roster confirms the group ID, name and kind. Template and query groups remain hidden.
|
||||||
|
|
||||||
|
- Permission Groups now shows the server's catalog error alongside group rows already available from the roster.
|
||||||
|
|
||||||
|
- When a TeamSpeak permission refusal includes a missing permission ID, the native client displays that ID with the server error.
|
||||||
|
|
||||||
|
- Clearing a bookmark name in the desktop editor now uses its server address as the display name, matching the bookmark store.
|
||||||
|
|
||||||
|
- The first microphone or playback request now uses the device selected in the saved profile, even before Audio settings are opened. Restoring the selection does not start either device.
|
||||||
|
|
||||||
|
- The saved voice output level is applied before the first connection. Adjusting voice volume no longer reconfigures the microphone or reopens audio devices.
|
||||||
|
|
||||||
|
- Unmuting from the voice toolbar or a shortcut now checks the imported microphone mapping before telling the server that the microphone is unmuted. A refused shortcut leaves the other tabs muted too.
|
||||||
|
|
||||||
|
- The core rejects explicit null detector, sensitivity, and level values in set_transmit instead of silently treating them as omitted.
|
||||||
|
|
||||||
|
- New server connections apply the selected output profile's per-speaker automatic gain control before receiving voice. Audio settings changes also reach ready cores that have not joined a server yet.
|
||||||
|
|
||||||
|
- Temporary password management now reads beta14 password rows, shows their issuer and expiry, and offers the server default or a current channel when creating a rule.
|
||||||
|
|
||||||
|
- The Banned Users panel can now clear all bans after typed confirmation for the viewed server. Closing the dialog without confirming leaves the rules unchanged.
|
||||||
|
|
||||||
|
- Removing one ban now requires a single confirmation for the selected rule.
|
||||||
|
|
||||||
|
- The ban list shows the reason, issuer and expiry of each rule. Invalid expiry data is shown as unknown, not permanent. Late replies cannot populate a closed panel or a different server's list.
|
||||||
|
|
||||||
|
- A chat attachment that collides with an existing server file can now be replaced from Transfers after confirmation. The retry uses the bytes originally selected, even if the local file has since changed.
|
||||||
|
|
||||||
|
- The core omits channel and server password values and the server key pair from cached admin properties, while preserving password flags.
|
||||||
|
|
||||||
|
- A release check now clears the old download progress when the offered package changes or disappears.
|
||||||
|
|
||||||
|
- Switching update channels clears the previous channel's last-check time until the new channel is checked.
|
||||||
|
|
||||||
|
- Shortcut conflicts now appear only in the profile that owns the conflicting chord. The bookmark Move dialog now labels unnamed folders in both destination and ordering choices.
|
||||||
|
|
||||||
|
- Search the server client database by nickname or UID. Enter submits the query; typing still filters the file browser immediately.
|
||||||
|
|
||||||
|
- Deafening a second server tab or restoring its sound no longer interrupts microphone capture on the transmitting tab.
|
||||||
|
|
||||||
|
- Reading mute state with an empty set_audio request no longer interrupts voice capture. Partial updates preserve the omitted flag and reject explicit null values.
|
||||||
|
|
||||||
|
- Playback no longer treats a missing or malformed output mute flag as permission to play voice. The initial roster must also identify the local client.
|
||||||
|
|
||||||
|
- Turning off push-to-talk after releasing the key resumes the previously authorized microphone on the same connection. Turning push-to-talk back on stops continuous speech until the next hold.
|
||||||
|
|
||||||
|
- Audio settings now show the PTT key being recorded, a Cancel action, and an inline error if the chord is invalid or cannot be saved. The previous binding remains usable after cancellation.
|
||||||
|
|
||||||
|
- Holding Push to Mute while speaking with Push to Talk no longer reconfigures capture on key-down. Releasing mute resumes the voice route only when transmission is still requested.
|
||||||
|
|
||||||
|
- Pressing push-to-talk again after its release delay expires resumes the previously active, authorized microphone on the same connection. A focus or input route change clears that remembered state.
|
||||||
|
|
||||||
|
- Releasing the on-screen push-to-talk button keeps capture active while another PTT key is held or the configured release delay is running. Repeated releases no longer extend the delay.
|
||||||
|
|
||||||
|
- Local whisper shortcuts bind the acknowledged whisper route together with its capture permit. When a second shortcut replaces the first, releasing the first no longer silences the second.
|
||||||
|
|
||||||
|
- Switching a whisper list to a different server or channel group catalog clears the old group and resets its delivery scope. A picker opened for the previous group type cannot select a recipient in the new catalog.
|
||||||
|
|
||||||
|
- Server and channel group whispers reject zero IDs even when padded with zeroes. Positive decimal IDs with leading zeroes remain valid.
|
||||||
|
|
||||||
|
- Ending a whisper rechecks its recipients against the current roster, so a departed client's reused numeric ID does not receive the end marker.
|
||||||
|
|
||||||
|
- Rejected voice packets no longer create a whisper history event or interrupt an active whisper. Only packets admitted by the jitter buffer update the receiver's whisper state.
|
||||||
|
|
||||||
|
- Dialog checkboxes now show their edited state immediately. A second click before submission toggles the current value rather than repeating the previous edit.
|
||||||
|
|
||||||
|
- The diagnostic stdio bridge requires JSON objects for requests and their arguments. Positional arrays and explicit null arguments no longer dispatch commands; omitting arguments for a no-argument command still works.
|
||||||
|
|
||||||
|
- A delayed channel subscription refusal is no longer displayed on a different server tab or after reconnection.
|
||||||
|
|
||||||
|
- The stdio channel subscription commands now reject positional arrays. They require named fields, including an explicit boolean for subscribe or unsubscribe.
|
||||||
|
|
||||||
|
- Imported shortcut files now report skipped duplicate profile and binding IDs. The first entry is retained, including when a duplicate uses different UUID letter case.
|
||||||
|
|
||||||
|
- A pending channel information or description request now rejects a reply if the requested channel was deleted, even if a new channel has since used its numeric ID.
|
||||||
|
|
||||||
|
- Permission Groups shows only regular groups. Refreshing one group list preserves the other list and the creation actions. A late request to open the panel no longer replaces the current tab or reopens a closed panel.
|
||||||
|
|
||||||
|
- Server Log now waits for Load and accepts the requested line count, start position, order and instance flag. A refusal leaves the request editable; switching server tabs invalidates the old request.
|
||||||
|
|
||||||
|
- Server Info discards late replies from a closed panel or a previous connection. Empty, ambiguous and mismatched server-property replies no longer open an editor.
|
||||||
|
|
||||||
|
- The Move to Own Channel form checks the password's 1024-byte UTF-8 limit before submission and preserves leading and trailing spaces.
|
||||||
|
|
||||||
|
- A confirmed participant move no longer reports a changed target just because the roster already shows the participant in the destination channel. Replies from a replaced session are still rejected.
|
||||||
|
|
||||||
|
- Move to Own Channel is offered only for participants in another channel. Its confirmation stays bound to the original participant and destination, asks for a password only for a protected channel, and keeps server refusals visible.
|
||||||
|
|
||||||
|
- Group Rename opens with the selected group's current name. Blank and unchanged names close the editor without submitting; changed names are trimmed before submission.
|
||||||
|
|
||||||
|
- A late client database search or page response no longer replaces newer results or reopens a closed panel. Results and errors are bound to the original server and tab.
|
||||||
|
|
||||||
|
- Client database search accepts patterns up to 255 Unicode characters. Administrative client UID fields use the 128-character limit, independently of UTF-8 byte length.
|
||||||
|
|
||||||
|
- Server and channel group names use the same 128-character Unicode limit in the editor and core. Multibyte names no longer fail early because of their UTF-8 byte length.
|
||||||
|
|
||||||
|
- Administrative commands reject IDs, log offsets and editable numeric properties above the reference interface's safe-integer limit before connecting. Server quota, bandwidth and default-group fields enforce the same limit in the native editor.
|
||||||
|
|
||||||
|
- Desktop users can select multiple files in the channel upload dialog. Selections above 100 files are rejected as a batch; cancelling or reconnecting does not queue files in another session.
|
||||||
|
|
||||||
|
- The channel file Rename form opens with the current filename. Confirming the same name leaves the file unchanged without sending a rename command.
|
||||||
|
|
||||||
|
- Switching the microphone to another server tab no longer marks audio devices active before they start. If setup fails, neither tab retains a usable capture permit. Muted sessions no longer report an expected absence of a capture permit as a changed target.
|
||||||
|
|
||||||
|
- A successful server login remembers the address even if the selected playback device is unavailable. The playback error is still reported.
|
||||||
|
|
||||||
|
- The first empty server tab restores the last saved address in its Connect form after restart. Additional empty tabs do not inherit that address.
|
||||||
|
|
||||||
|
- Shortcut profile diagnostics now distinguish unsupported Block Incoming Whispers bindings from other invalid entries. Other valid bindings remain usable.
|
||||||
|
|
||||||
|
- Whisper history and notifications use the sender captured at receipt. A guest who later receives the same client number cannot inherit the original guest's reply action.
|
||||||
|
- Reply Whisper addresses only the connection that sent the whisper, even when a second client is connected with the same UID. Saved whisper lists keep their existing multi-client behavior.
|
||||||
|
|
||||||
|
- Channel commanders have a separate indicator in the detailed tree. The compact tree uses the saved commander lamp setting. Only the user's own row offers a commander change, and its confirmation reflects the current server flag.
|
||||||
|
|
||||||
|
- Participant volume changes while dragging the fader; releasing it saves the gain by UID. Mute stays local to the connection. Reset removes the saved modifier and unmutes the participant.
|
||||||
|
|
||||||
|
- The participant menu reads the selected client's capabilities on opening. Late replies cannot change a closed or reopened menu, and unavailable server actions stay disabled.
|
||||||
|
|
||||||
|
- Poke accepts up to 1024 UTF-8 bytes locally. A server refusal keeps the message editable; submitting a draft after the recipient leaves cannot send it to a replacement participant.
|
||||||
|
|
||||||
|
- Participant Connection Info shows localized timing, packet loss and traffic metrics without rounding 64-bit counters. Old statistics cannot populate a replacement tab or participant.
|
||||||
|
|
||||||
|
- Participant Info retains previously returned fields when a later update omits them. Superseded replies and errors cannot populate the next tab or a new participant reusing the same client number.
|
||||||
|
|
||||||
|
- The participant menu offers Grant or Revoke according to the current talker flag. Manual grants no longer require a pending request. Queue grants still require the selected request in the moderator's current channel.
|
||||||
|
|
||||||
|
- Reject explicitly null away and talk-request messages. Omitting a message remains valid.
|
||||||
|
|
||||||
|
- Invalid connection requests no longer revoke the current microphone route or trigger a default identity lookup. The manager forwards validated commands to the embedded core without parsing them again.
|
||||||
|
|
||||||
|
- Validate connect and disconnect string lengths and selected identity IDs before dispatch. The JSON bridge rejects explicitly null fields instead of treating them as omitted.
|
||||||
|
|
||||||
|
- Partial snapshot imports now list acknowledged changes alongside failures. Property and permission rows identify the object and field without displaying its value. Reusing an existing icon does not count as an upload.
|
||||||
|
|
||||||
|
- Snapshot Apply and Cancel now refer to the exact previewed file, even when the next file has a catalog with the same ID.
|
||||||
|
|
||||||
|
- A saved partial snapshot now shows its filename alongside the warning and issue details.
|
||||||
|
|
||||||
|
- Cancelling a snapshot immediately after starting it now prevents the initial server query. A cancellation received during that query stops subsequent work.
|
||||||
|
|
||||||
|
- Snapshot progress and cancellation controls are tied to the job, session and window that opened the panel. Completed and planned counts now use the same units, including permission reads.
|
||||||
|
|
||||||
|
- Reject oversized regular snapshot files using their checked descriptor size before reading the payload. Unknown-size streams remain bounded during reading.
|
||||||
|
|
||||||
|
- Dismissing an idle snapshot import now revokes its token, so a late confirmation cannot apply a file that was cancelled.
|
||||||
|
|
||||||
|
- Snapshot export rejects incomplete channel trees and ambiguous sibling order before writing the snapshot.
|
||||||
|
|
||||||
|
- Snapshot export no longer attaches an unrelated channel's properties to a saved channel. Missing or ambiguous properties are reported as a partial export.
|
||||||
|
|
||||||
|
- Channel Info ignores superseded successes and errors after navigation or reconnect. It rejects an empty, ambiguous or mismatched reply instead of showing the wrong channel.
|
||||||
|
|
||||||
|
- Contacts offers Ignore or Unignore according to the selected UID's current state. A queued action from a deleted contact can no longer change the ignore list.
|
||||||
|
|
||||||
|
- Desktop transfer settings display and copy the explicitly selected default download folder. Using the system Downloads folder does not turn it into a saved preference.
|
||||||
|
|
||||||
|
- The channel file browser disables Move when the channel denies rename. Download Folder requires both browsing and downloading permission.
|
||||||
|
|
||||||
|
- Check the dimensions of inline channel images before allocating decoded pixels.
|
||||||
|
|
||||||
|
- Reject zero transfer IDs for pause, resume and cancel before dispatch.
|
||||||
|
|
||||||
|
- Reject channel IDs above the protocol's safe-integer limit in file operations before sending a request.
|
||||||
|
|
||||||
|
- Releasing a file chooser token no longer keeps an unused directory grant alive solely to suggest its path in a later dialog. An active download still retains its own grant until it finishes.
|
||||||
|
|
||||||
|
- Opening the recording panel reads the recorder status. Pause, Resume, Stop and Reveal stay bound to the selected take so delayed controls cannot affect the next recording in the same tab.
|
||||||
|
|
||||||
|
- A stale Preview, Start or Stop command no longer acts on a replacement source in the same tab. A broadcast is shown as live only after both the setup acknowledgement and the server-assigned stream ID arrive.
|
||||||
|
|
||||||
|
- Reject zero client IDs for targeted stream commands. After WebRTC renegotiation, match ICE candidates to the addressed media transport and attach receiver sinks only after the answer commits.
|
||||||
|
|
||||||
|
- Opening Streams now queries other participants in the connected client's current channel. A background refresh cannot cancel a pending request for a selected participant.
|
||||||
|
|
||||||
|
- Leaving a stream closes the selected viewer immediately. A repeated stop waits for the pending leave instead of sending another request, and delayed cleanup does not close a replacement viewer of the same stream.
|
||||||
|
|
||||||
|
- Broadcast admission and removal buttons name their viewer. Actions stay bound to the same viewer when the list order changes.
|
||||||
|
|
||||||
|
- Stop on an active broadcast tile now targets the registered stream and its publisher. Closing the capture no longer looks up a replacement publisher to stop after the wait.
|
||||||
|
|
||||||
|
- Active publications now have an Edit broadcast action for the title, video bitrate, viewer limit and admission policy. It edits the registered stream without selecting or restarting the capture source.
|
||||||
|
|
||||||
|
- A running publisher reports changed stream settings only after the server acknowledges the update. Tighter admission rules apply immediately; looser rules wait for acknowledgement. A late reply cannot replace the state of a disconnected publication.
|
||||||
|
|
||||||
|
- Stopping a publication sends the close reason required by TS6 beta14. Stream discovery now distinguishes a server refusal for the requested participant from a successful lookup with no streams.
|
||||||
|
|
||||||
|
- A server stop naming only the local publisher now releases its registered capture. Queued stream notifications stay with the publication that received them and cannot stop its replacement.
|
||||||
|
|
||||||
|
- Approving or denying a stream viewer request now checks the UID selected in the menu. An obsolete request cannot admit or block a different viewer who was assigned the same client number.
|
||||||
|
|
||||||
|
- Removing or blocking a viewer from a stream menu now uses the UID captured when the action was selected. A replacement viewer can keep watching if the server reuses that number.
|
||||||
|
|
||||||
|
- Automatic stream viewer removal rechecks the viewer's UID before sending. A replacement client does not inherit a queued eviction when publication privacy changes.
|
||||||
|
|
||||||
|
- When the server stops a stream by publisher ID alone, current viewers of that publisher close immediately. The stop does not replay against a newly opened viewer.
|
||||||
|
|
||||||
|
- The stream viewer ignores a join reply or signaling event with a malformed recipient ID instead of treating it as unaddressed. Omitted IDs and empty wire flags remain supported.
|
||||||
|
|
||||||
|
- A viewer now reports a rejected outgoing ICE candidate after sending its answer, closes that peer, and leaves the stream once. Previously the send failure was lost.
|
||||||
|
|
||||||
|
- The core rejects malformed outgoing stream negotiation messages before transmission. Stream join notes now enforce the original 200-unit single-line limit.
|
||||||
|
|
||||||
|
- Switching between 12- and 24-hour time now updates loaded chat messages immediately. Recent server events use localized day periods without changing their recorded timestamps.
|
||||||
|
|
||||||
|
- A rejected channel password now opens an empty retry field with a localized error. Cancelling the password prompt leaves the user in the original channel.
|
||||||
|
|
||||||
|
- The channel menu offers Subscribe or Unsubscribe according to the current snapshot. A command from a dismissed or replaced menu cannot act on a newly selected channel.
|
||||||
|
- Joining channel zero now returns a local validation error through both the embedded and diagnostic APIs.
|
||||||
|
|
||||||
|
- Show Moderation Events now hides and restores channel events already in the chat view, including events received while hidden. Ordinary chat history is unchanged.
|
||||||
|
- Incoming chat with no explicit sender UID now uses the matching roster entry for the ignore list, just as it does for authorship. Reusing a client number does not transfer another user's ignore status.
|
||||||
|
|
||||||
|
- Private whispers no longer target a participant by client number alone when their UID is unavailable. Whispering to an explicitly selected channel still works.
|
||||||
|
|
||||||
|
- Creating a privilege key no longer reports success with an empty or ambiguous key. A repeated notification for the same key is accepted.
|
||||||
|
|
||||||
|
- Client information requests recheck the participant's UID when the server acknowledges the request. A stale client number cannot return another participant's details.
|
||||||
|
|
||||||
|
- Client database ID lookup now checks the returned UID and rejects conflicting IDs instead of passing unrelated notification rows to callers.
|
||||||
|
|
||||||
|
- Group creation no longer returns an existing group or a same-name group of another type as the newly created group. Follow-up permissions require one matching new ID.
|
||||||
|
|
||||||
|
- Searching a channel directory filters the loaded file names locally. Refreshing the same folder keeps the filter; opening another folder clears it.
|
||||||
|
|
||||||
|
- Searching or paging the client database now refreshes permission hints just like opening the first page, without losing the query or page offset.
|
||||||
|
|
||||||
|
- Filter scoped administration lists row by row so a change of group or channel within a notification cannot mix permissions from different targets.
|
||||||
|
|
||||||
|
- The connected nickname editor starts with the current name and stays open on server refusal. It uses the core's nickname validation and closes after an acknowledged change.
|
||||||
|
|
||||||
|
- Channel disclosure now remembers hidden participants per server address after restart. Collapsing a channel leaves its subchannels visible.
|
||||||
|
|
||||||
|
- The Compact tree style now reduces participant row and icon sizes without shrinking channels. The selected style takes effect immediately and survives restart.
|
||||||
|
|
||||||
|
- Desktop settings now report taskbar hiding as enabled for On Minimize, On Close and Both. The microphone lock description no longer promises automatic unmuting.
|
||||||
|
|
||||||
|
- Starting a local recording no longer asks for a free-form name that the core would reject. The native client uses the local start timestamp for the take folder, or the core's UTC name when the local offset is unavailable.
|
||||||
|
|
||||||
|
- Releasing the stream volume slider or confirming its form saves the level for the next viewer. Dragging previews the selected stream without writing preferences for each movement.
|
||||||
|
|
||||||
|
- Stream volume controls now use the playback engine's 0–100% range. Clicking the middle of the slider sets the selected viewer to half gain.
|
||||||
|
|
||||||
|
- Streams announced in server-routed mode show the SFU limitation instead of offering P2P playback. Direct streams from the same publisher remain watchable.
|
||||||
|
|
||||||
|
- A server notification that a channel description changed now invalidates its cached text and any pending description read for that channel. A newly reported empty description remains distinct from an unknown one.
|
||||||
|
|
||||||
|
- Audio and notification device pickers identify unavailable saved devices after enumeration. The saved route remains selected, and its name returns when the device becomes available again.
|
||||||
|
|
||||||
|
- Chat recognizes copied server-file links with bracketed IPv6 addresses, including links inside BBCode.
|
||||||
|
|
||||||
|
- The native Create Channel dialog no longer sends untouched optional overrides that can make ordinary guest creation fail. Codec and voice encryption offer Server default; explicit choices still go to the server.
|
||||||
|
|
||||||
|
- Channel creation returns an ID only for a matching notification from the same client under the requested parent. An accepted creation without a unique ID asks the caller to reload the tree before applying further changes.
|
||||||
|
|
||||||
|
- When creating a channel, changing its parent clears the previous insertion point. The picker lists only children of the new parent; leaving the position unset lets the server choose it.
|
||||||
|
Creating or editing now also checks the selected predecessor at submission and refuses the change if it moved to another parent or disappeared.
|
||||||
|
|
||||||
|
- Moving a channel to its current parent and explicit position returns an unchanged result without sending a server command.
|
||||||
|
|
||||||
|
- Move Channel opens at the channel's current position. Selecting a new parent offers First and that parent's children; the moving channel and its descendants are excluded from the destinations.
|
||||||
|
The core also checks the destination against the current tree when the move is submitted, so a predecessor that has since moved or disappeared cannot silently redirect the operation.
|
||||||
|
|
||||||
|
- Channel information and lists now show the current parent and preceding sibling after a neighboring channel moves.
|
||||||
|
|
||||||
|
- The server view now names the legacy Speex or CELT codec of the joined channel when voice is unavailable. Browsing another channel does not change the warning. The native transmission gate requires a known Opus codec.
|
||||||
|
|
||||||
|
- Reapplying direct voice transmission no longer ends an active burst or invalidates captured frames. Switching between direct transmission and voice activation still invalidates the old capture epoch.
|
||||||
|
|
||||||
|
- Push-to-talk release delay can now be set from Audio settings. Off preserves the last duration and cancels a running delay. Changing shortcut profiles also cancels a pending release from the previous profile.
|
||||||
|
|
||||||
|
- A talk request can now be submitted without a message. Pokes still require text.
|
||||||
|
Once a withdrawal is visible to the moderator, the old Grant action no longer gives that client talk power.
|
||||||
|
|
||||||
|
- The Away with Message shortcut prompts once for all connected sessions. If a tab reconnects before confirmation, its replacement stays untouched and the other original sessions still receive the message. Cancel leaves all statuses unchanged; the per-server menu still targets one session.
|
||||||
|
|
||||||
|
- The moderation queue shows the newest talk requests first. Grant Next still selects the oldest waiting peer in the current channel and skips withdrawn requests.
|
||||||
|
|
||||||
|
- Alt-clicking the speaker gain slider resets only the gain to 0 dB. The Reset button also clears local mute. Both changes take effect on confirmation.
|
||||||
|
|
||||||
|
- The peer volume dialog now has a tapered slider from -200 to +10 dB in 0.5 dB increments. Reset restores 0 dB and clears local mute in the draft; Cancel leaves the original settings untouched.
|
||||||
|
|
||||||
|
- An unreadable speaker UID in saved local volume preferences no longer prevents valid speaker gains from being restored. Loading reports the invalid entry and leaves the original file untouched.
|
||||||
|
|
||||||
|
- Returning to the server tab that already owns the live microphone no longer interrupts capture when automatic microphone switching is enabled.
|
||||||
|
|
||||||
|
- File transfers now recognize HTTPFT and S3 anywhere in the server's capability announcement. A new connection without an announcement no longer displays the previous server's features.
|
||||||
|
|
||||||
|
- Desktop Appearance can open the folder of an individual installed theme. The existing Open Extension Directory button still opens the parent folder.
|
||||||
|
|
||||||
|
- Advanced notification settings now have separate controls and Listen actions for moderator moves into and out of your channel, a kick into your channel, assignment and removal of a server group, and permission errors. Existing advanced choices still apply until a variant is edited.
|
||||||
|
|
||||||
|
- Clients crossing channel subscription boundaries are reported as moving when the server supplies the movement reason or both channels. Subscribing to a roster no longer announces those clients as connecting. Batched roster entries preserve the previous channel for subsequent moves.
|
||||||
|
|
||||||
|
- Identity Details lists bookmarks in folder order. Bookmarks with no assigned identity follow the current default without rewriting the bookmark.
|
||||||
|
|
||||||
|
- When a connection is refused because its identity security level is too low, the server tab offers to review that identity at the requested level. Opening the review does not start a search or reconnect.
|
||||||
|
|
||||||
|
- First-run setup now keeps the selected theme when resuming an initialized profile without an identity. A failed theme save can be retried before any identity is created.
|
||||||
|
|
||||||
|
- Identity import now reports how many distinct identities were added or already present. Reimporting a known key no longer fails when all 256 slots are occupied.
|
||||||
|
|
||||||
|
- Desktop identity export now saves `.ini` backups atomically. A write failure leaves the previous backup intact.
|
||||||
|
|
||||||
|
- Removing the selected identity clears its saved selection. Details and subsequent edits stay with the surviving identity.
|
||||||
|
|
||||||
|
- A tab with a failed core remains selectable for recovery. Selecting a stale tab after restart no longer exits the application or disrupts the other tabs.
|
||||||
|
|
||||||
|
- On a confirmed move to another channel, the core revokes already captured audio before publishing the new channel snapshot. Other users' moves do not interrupt capture.
|
||||||
|
|
||||||
|
- Hiding offline contacts also hides the grouping switch without resetting its saved value.
|
||||||
|
|
||||||
|
- Collapsed contact groups show the total unread private messages for their hidden contacts.
|
||||||
|
|
||||||
|
- Contacts now count unread private messages across all server tabs, including conversations that have no open chat tab.
|
||||||
|
|
||||||
|
- Online and offline contact groups can be expanded independently and remember their state across restarts.
|
||||||
|
|
||||||
|
- The desktop bookmark section can be collapsed from its header and remembers that choice across restarts.
|
||||||
|
|
||||||
|
- Desktop sidebar and server pane widths now survive restart, including sizes saved by earlier native builds. Dragging on an ultrawide display cannot exceed the supported 1600 px server pane width.
|
||||||
|
|
||||||
|
- Variants in a theme package are sorted by name in the picker, matching the TS6 desktop order.
|
||||||
|
|
||||||
|
- The theme picker groups installed variants by package and shows shared package links once.
|
||||||
|
|
||||||
|
- The theme picker shows only declared package links, labels documentation separately from email, and confirms each destination before opening it.
|
||||||
|
|
||||||
|
- External links from Settings now show the local malicious-domain warning before opening. Malformed DNS names are rejected before classification.
|
||||||
|
|
||||||
|
- Trusted sites now shows whether the phishing list is up to date, using a previous copy, or unavailable.
|
||||||
|
|
||||||
|
- Reloading themes now names a missing selected variant when restoring the stock theme.
|
||||||
|
|
||||||
|
- A failed recording finalization now leaves the incomplete WAV in staging. The recording panel reports the writer error and does not offer to export it.
|
||||||
|
- Stopping a recording no longer releases its directory grant while the writer is still finalizing WAV files. A late completion from an older take does not release the new take's grant.
|
||||||
|
- The recording panel shows “Finalizing recording” after Stop. A late status reply cannot restore Pause or Stop while the WAV writer finishes.
|
||||||
|
- Recording export asks about all existing destination files before replacing any of them. Cancelling an overwrite prompt leaves the existing files unchanged and retains the recording in staging.
|
||||||
|
- Recording waveforms now show silence for blocks lost to a full writer queue, matching the saved WAV.
|
||||||
|
- The recording panel now shows a live waveform for each track. Late replies cannot reopen a dismissed panel, and an older take's completion cannot authorize the current export.
|
||||||
|
- Server chat now identifies advertised Matrix rooms as unsupported without disabling ordinary text chat or asking for an account.
|
||||||
|
- Cancelling a password prompt no longer lets an older application snapshot reopen it.
|
||||||
|
- Startup connections follow the order shown in the bookmark sidebar, including bookmarks inside reordered folders.
|
||||||
|
- Two connections using the same identity and server now keep independent chat drafts. An acknowledgement in one tab no longer clears or unblocks a send in the other.
|
||||||
|
- Channel chat now checks the channel captured by the editor against the core's current channel before sending. A draft for a channel you have left is rejected instead of being sent to the new channel.
|
||||||
|
- An incoming chat message no longer appears twice when it is already included in the history page being loaded.
|
||||||
|
- Closing a background private chat keeps the selected conversation and its draft in view. Reopened chats retain their label when the peer is offline.
|
||||||
|
- Deleting the selected inactive shortcut profile now returns the editor to the active profile and its bindings.
|
||||||
|
- Switching shortcut profiles cancels a held push-to-talk key immediately; the configured release delay still applies to ordinary key-up.
|
||||||
|
- Settings checkboxes now display the value acknowledged by the application instead of retaining a local toggle state.
|
||||||
|
- Settings selectors now show the acknowledged value after a change. The whisper receive selector
|
||||||
|
no longer displays its previous mode after saving the new one.
|
||||||
|
- Restarting a tab's core from its menu now confirms which tab restarted. A failed restart is
|
||||||
|
reported as a failure before the caller receives its result.
|
||||||
|
- Closing or restarting a connection discards queued playback from that session without interrupting
|
||||||
|
another tab's microphone. Refusing to close the last tab preserves held push-to-talk and whisper.
|
||||||
|
- Whisper settings now explain read-only and damaged files. Failed list deletion preserves assigned
|
||||||
|
shortcuts, and Settings action buttons retain a clickable width on desktop.
|
||||||
|
- A delayed global shortcut release can no longer stop a newly held local push-to-talk or whisper
|
||||||
|
binding, or fire a local release-triggered action after the binding profile changes.
|
||||||
|
- Channel and server edit dialogs read current values before editing, retain drafts after rejection,
|
||||||
|
and close only on the matching server acknowledgement. Passwords are never prefilled.
|
||||||
|
- Added ordinary-channel S3 metadata browsing, taking precedence over HTTPFT when both are advertised.
|
||||||
|
The core accepts underscore-bearing command names and requires both matching list data and successful
|
||||||
|
status; malformed or timed-out replies are errors, not empty folders. An isolated official TS6 beta14
|
||||||
|
server verified an empty root listing and refused an ordinary guest upload grant. S3 file bytes,
|
||||||
|
remote mutations and the live-peer check remain unverified; HTTPFT stays blocked without legacy fallback.
|
||||||
|
- Verified two-way synthetic voice through the core CLI with silent disposable profiles. This did not
|
||||||
|
exercise official-client peers, physical microphones or speakers.
|
||||||
|
- A transport loss during a requested disconnect now completes the request as unconfirmed and
|
||||||
|
leaves the session disconnected. Unexpected connection loss still follows the reconnect path.
|
||||||
|
- A rejected connection command no longer tears down incoming voice. An expired capture frame is
|
||||||
|
dropped without stopping the microphone; a revoked session still cannot submit audio.
|
||||||
|
- Updated the desktop toolchain to Rust 1.100.0, Slint 1.19.1 (Skia m157.2), LiveKit WebRTC
|
||||||
|
bindings 0.4.2/0.3.55, Sonora 0.3.0 and Rubato 5.1.0. Local media and clipboard patches
|
||||||
|
are retained; old SDK build receipts do not certify the new source versions.
|
||||||
|
- Fixed native Windows build environment capture for non-ASCII values by selecting UTF-8 in the
|
||||||
|
child MSVC activation shell; verified against real vcvarsall with a synthetic Cyrillic value.
|
||||||
|
- Pinned LF checkout for native dependency patches and recipe sources so Windows line-ending
|
||||||
|
conversion cannot invalidate exact patch checksums; expected lock hashes remain unchanged.
|
||||||
|
- Added a manual Android CI route producing separate full-feature ARM64 test-harness APK and unsigned
|
||||||
|
production APK/AAB bundles with source/build/dependency receipts. Windows developers do not need WSL.
|
||||||
|
Android packaging keeps offline Gradle by default; CI opts into dependency resolution explicitly and
|
||||||
|
isolates each package's Gradle outputs. CI runner provisioning and device acceptance remain unverified.
|
||||||
|
- Removed the Electron application, npm manifests and browser-only test/build tooling. Rust/Slint
|
||||||
|
is now the only application; native resources and versioning no longer depend on the removed tree.
|
||||||
|
Retained native profile migration and diagnostic core CLI. This cutover is not mobile runtime acceptance.
|
||||||
|
- Started the native implementation with one Cargo workspace and lockfile and pinned Rust 1.96.0.
|
||||||
|
Core/DSP dependency resolutions are preserved; the later native-only cutover removes the reference host.
|
||||||
|
- Added the native compatibility inventory; entries remain pending, not claims of feature completion.
|
||||||
|
Initial Slint software and Skia windows were exercised with a real pointer Close action;
|
||||||
|
this does not establish native voice, video, mobile support or whole-client migration completion.
|
||||||
|
- Extracted the protocol core into an embedded library with validated typed commands, joined session
|
||||||
|
lifetimes, generation-stamped events, bounded PCM and capture guards at the actual UDP-send boundary.
|
||||||
|
Diagnostic stdio remains independently usable for core inspection.
|
||||||
|
- Ported native profile import, local stores and session-bound file/icon/snapshot services. Imports retain
|
||||||
|
the original profile, preserve identity keys/UIDs and require bookmark passwords once again. Native
|
||||||
|
secret/preference pair commits recover interrupted writes; unknown staging directories are never discarded.
|
||||||
|
Windows isolated DPAPI and migration/restart smoke passed; other OS key stores and live mutations remain
|
||||||
|
separate verification gates. Snapshot format stays 0.0.1; native About labels legacy notices as historical.
|
||||||
|
- Added worker-owned CPAL audio, bounded timestamped callback queues, drift-aware Rubato conversion,
|
||||||
|
integrated Sonora AEC/NS/AGC and independent notification sinks. Capture/output revocation survives
|
||||||
|
queue congestion; source expiry remains attached through resampling to hardware presentation.
|
||||||
|
Controlled DSP/queue/permission and native worker smoke passed (generated PCM, no physical devices).
|
||||||
|
Official-peer voice, acoustic echo cancellation and mobile/Asahi hardware remain unverified.
|
||||||
|
- Added pinned source-built native WebRTC provisioning, checked desktop/mobile capture adapters and
|
||||||
|
generation-bound TS6 viewer/publisher state machines. Windows x64 CXX bridge compilation passed.
|
||||||
|
The production software decoder factory decoded synthetic H264 High, AV1, VP8 and VP9 fixtures;
|
||||||
|
all four 64×48 I420 outputs exactly matched independent FFmpeg decoding. Sustained native playback,
|
||||||
|
official TS6 peers, physical capture, hardware decode and other platforms remain separate gates.
|
||||||
|
- Proved a device-free native PeerConnection loopback through the real sender/decoder/display path
|
||||||
|
(13 decoded frames, 12 presented, terminal cleanup). Isolated WebRTC Opus symbols from the voice
|
||||||
|
core's existing codec without weakening linker checks or rewriting unrelated assembly objects.
|
||||||
|
- Rebuilt Privacy, Video, Notifications and About in the original section order. Unsupported account,
|
||||||
|
telemetry, Cisco/backend and content-report options are explicitly unavailable, never fake preferences.
|
||||||
|
Working Chromium decoder controls and installation/project details moved to linked subpages with
|
||||||
|
back-focus restoration. Report Issue uses the project's verified issue list through the external-link guard.
|
||||||
|
- Preserved native decoder-policy restart, notification overrides, trusted-site management and local
|
||||||
|
changelog/license navigation. Corrected narrow Russian update-row overlap without hiding status.
|
||||||
|
- Restored original selector wrapping, selected-preview radius clipping and whisper action tints.
|
||||||
|
Permission lists now reserve their source toolbar space and wrap badges without losing long-name
|
||||||
|
truncation; private-info descriptions and empty group states use the source sizing and spacing.
|
||||||
|
- Fixed channel right-click opening Whisper settings and silently staging a target. The normal channel
|
||||||
|
menu now leaves the current view and whisper state unchanged; only its explicit Add to Whisperlist
|
||||||
|
action stages the channel, behind the existing connection/session validity guard.
|
||||||
|
- Moved identity export and UID copy into the selected identity's context menu. Export keeps its
|
||||||
|
private-key confirmation. Disconnected nickname edits use identity Details; connected nickname
|
||||||
|
edits use the own-client information header. Removed the duplicate bookmark settings manager;
|
||||||
|
bookmarks remain editable in the sidebar.
|
||||||
|
- Language changes are saved for restart, with a cancelable restart confirmation. File-transfer
|
||||||
|
settings use the source defaults, shared rate limits and per-channel concurrency limits.
|
||||||
|
- Added generation-bound group deletion and explicit group/channel permission removal, plus the
|
||||||
|
channel icon picker. A refused icon after successful channel creation cannot create the channel
|
||||||
|
a second time; stale form/session responses do not apply to another view.
|
||||||
|
- About reports actual build metadata. Corrected identity slider layout, device-selector caption
|
||||||
|
overlap, broadcast tab/thumbnail geometry and transfer-row spacing. Migrated affected smoke scripts.
|
||||||
|
- Matched the detail header's source flex grouping, restored full-height administration panels and
|
||||||
|
bottom pagination, corrected client-list wrapping, group-badge spacing and server-info typography.
|
||||||
|
Audio device captions and broadcast title chips now use measured original text metrics.
|
||||||
|
- Whole-client pixel parity is not established; reference comparisons retain their original thresholds.
|
||||||
|
|
||||||
|
## 0.1.7 — 2026-11-02
|
||||||
|
|
||||||
|
- Matched light-theme toolbar/header/composer icon colors, header separators and chevron placement
|
||||||
|
to the installed reference. Corrected narrow chat width and input placeholder spacing.
|
||||||
|
All eight main-screen EN/RU, dark/light and wide/narrow fixture comparisons passed; this does not
|
||||||
|
establish whole-client parity or native-platform interoperability.
|
||||||
|
- Replaced the plain chat textarea with one local CodeMirror editor and the persisted Rich Text Editor
|
||||||
|
toggle. Hybrid preview uses the existing safe TS Markdown renderer; switching modes retains text,
|
||||||
|
selection and undo, while switching conversations isolates draft history. Toolbar/slash/emoji edits,
|
||||||
|
Enter/Shift+Enter, IME and refused-send preservation were exercised in the packaged offscreen app.
|
||||||
|
Constructed stylesheets keep the application CSP strict; no inline-style exception was added.
|
||||||
|
- Added the original editor's bold, italic, link, inline-code and code-block keyboard bindings.
|
||||||
|
Corrected the notification output selector's missing bottom margin using the original component rule.
|
||||||
|
- Matched list/quote authoring controls: Shift+Enter continuation, ordered/task item transitions,
|
||||||
|
Tab/Shift+Tab indentation, empty-item exit and Escape-then-Tab focus escape. Fenced code is not
|
||||||
|
mistaken for a list; quoted fences retain their quote prefix.
|
||||||
|
|
||||||
## 0.1.6 — 2026-11-02
|
## 0.1.6 — 2026-11-02
|
||||||
|
|
||||||
Current development snapshot; full visual parity and native Asahi verification remain unfinished.
|
Current development snapshot; full visual parity and native Asahi verification remain unfinished.
|
||||||
|
|||||||
@@ -0,0 +1,47 @@
|
|||||||
|
[workspace]
|
||||||
|
resolver = "3"
|
||||||
|
members = ["core", "dsp", "native", "xtask"]
|
||||||
|
exclude = ["core/vendor/tsclientlib", "core/vendor/tsproto", "core/vendor/tsproto-packets", "dsp/vendor/sonora", "dsp/vendor/sonora-agc2", "native/vendor/libwebrtc-0.4.2", "native/vendor/webrtc-sys-0.3.55", "native/vendor/katex-rs-0.3.0", "native/vendor/mermaid-rs-renderer-0.3.1", "native/vendor/cpal-0.18.2", "native/vendor/i-slint-backend-android-activity-1.19.1"]
|
||||||
|
|
||||||
|
[workspace.package]
|
||||||
|
version = "0.1.7"
|
||||||
|
edition = "2024"
|
||||||
|
rust-version = "1.96"
|
||||||
|
publish = false
|
||||||
|
|
||||||
|
[workspace.dependencies]
|
||||||
|
base16ct = { version = "1", features = ["alloc"] }
|
||||||
|
serde = { version = "1", features = ["derive"] }
|
||||||
|
serde_json = { version = "1", features = ["raw_value", "preserve_order", "unbounded_depth"] }
|
||||||
|
thiserror = "2"
|
||||||
|
tokio = { version = "1", features = ["rt", "sync", "time", "macros"] }
|
||||||
|
slint = { version = "=1.19.1", default-features = false, features = ["std", "compat-1-18", "accessibility", "image-default-formats", "unstable-fontique-012"] }
|
||||||
|
slint-build = "=1.19.1"
|
||||||
|
cpal = "=0.18.2"
|
||||||
|
rubato = { version = "=5.1.0", default-features = false }
|
||||||
|
sonora = "=0.3.0"
|
||||||
|
sonora-ns = "=0.3.0"
|
||||||
|
libwebrtc = "=0.4.2"
|
||||||
|
webrtc-sys = "=0.3.55"
|
||||||
|
katex-native = "=0.1.1"
|
||||||
|
katex-rs = "=0.3.0"
|
||||||
|
mermaid-rs-renderer = { version = "=0.3.1", default-features = false }
|
||||||
|
cssparser = "=0.38.0"
|
||||||
|
|
||||||
|
[patch."https://github.com/ReSpeak/tsclientlib"]
|
||||||
|
tsproto = { path = "core/vendor/tsproto" }
|
||||||
|
tsproto-packets = { path = "core/vendor/tsproto-packets" }
|
||||||
|
|
||||||
|
[patch.crates-io]
|
||||||
|
sonora = { path = "dsp/vendor/sonora" }
|
||||||
|
sonora-agc2 = { path = "dsp/vendor/sonora-agc2" }
|
||||||
|
libwebrtc = { path = "native/vendor/libwebrtc-0.4.2" }
|
||||||
|
webrtc-sys = { path = "native/vendor/webrtc-sys-0.3.55" }
|
||||||
|
katex-rs = { path = "native/vendor/katex-rs-0.3.0" }
|
||||||
|
mermaid-rs-renderer = { path = "native/vendor/mermaid-rs-renderer-0.3.1" }
|
||||||
|
cpal = { path = "native/vendor/cpal-0.18.2" }
|
||||||
|
i-slint-backend-android-activity = { path = "native/vendor/i-slint-backend-android-activity-1.19.1" }
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
lto = "thin"
|
||||||
|
codegen-units = 4
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
name: TeamsPeach
|
name: TeamsPeach
|
||||||
description: The installed TeamSpeak 6 client's own visual system, reproduced from its source values.
|
description: Native TeamsPeach's account-free visual contract, derived from TeamSpeak 6 reference evidence.
|
||||||
colors:
|
colors:
|
||||||
tsv-bg-dark: "#2b3346"
|
tsv-bg-dark: "#2b3346"
|
||||||
tsv-bg-light: "#f5f5f5"
|
tsv-bg-light: "#f5f5f5"
|
||||||
@@ -46,7 +46,7 @@ colors:
|
|||||||
tsv-commander-color: "#daa520"
|
tsv-commander-color: "#daa520"
|
||||||
typography:
|
typography:
|
||||||
body:
|
body:
|
||||||
fontFamily: '"Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Fixed", "Segoe UI", Roboto, Helvetica, Arial, sans-serif'
|
fontFamily: '"Noto Sans"'
|
||||||
fontSize: "15px"
|
fontSize: "15px"
|
||||||
lineHeight: "19px"
|
lineHeight: "19px"
|
||||||
fontWeight: 450
|
fontWeight: 450
|
||||||
@@ -100,25 +100,29 @@ components:
|
|||||||
**North Star: "The official TeamSpeak 6 client, value for value."**
|
**North Star: "The official TeamSpeak 6 client, value for value."**
|
||||||
|
|
||||||
The owner asked for the installed TeamSpeak 6 client's design, without reinterpretation. Two earlier
|
The owner asked for the installed TeamSpeak 6 client's design, without reinterpretation. Two earlier
|
||||||
TeamsPeach worlds (flat warm-neutral, then the Liquid Glass approximation) are retired. The target values
|
TeamsPeach worlds (flat warm-neutral, then the Liquid Glass approximation) are retired. The current
|
||||||
come from installed client 6.0.0.5163 (`main.css` sha256 `bc700401…`, `main.js` sha256 `9d6bea2e…`): theme
|
desktop visual reference is **TeamSpeak 6.0.0.5232**; see the [visual source map](docs/evidence/official-parity/visual-source-map.md)
|
||||||
tokens from its webpack theme modules (`main.js` @92422 dark, @201685 light), scale tokens and component
|
for both manifest-checked bundle hashes, fixture scope, capture commands and comparison results.
|
||||||
geometry from `main.css`, layout constants from `main.js` (window slots @1273206). The extracted values
|
The retained design values below are historically derived from **6.0.0.5163** (`main.css` sha256
|
||||||
|
`bc700401…`, `main.js` sha256 `9d6bea2e…`): webpack theme tokens (`main.js` @92422 dark, @201685 light),
|
||||||
|
scale and component geometry (`main.css`) and layout constants (`main.js` window slots @1273206).
|
||||||
|
Do not use those offsets as 5232 offsets. The extracted historical values
|
||||||
and source offsets are in `docs/evidence/official-parity/ts6spec-{shell,tree,chat,controls,settings}.md`.
|
and source offsets are in `docs/evidence/official-parity/ts6spec-{shell,tree,chat,controls,settings}.md`.
|
||||||
The stylesheet keeps the official `--tsv-*` token names so values can be compared one to one. Source
|
Native stock theme data retains the official `--tsv-*` names in
|
||||||
matching, screenshot similarity and functional parity are separate evidence claims; this document is
|
`native/src/services/themes/stock.css`; `native/ui/` expresses the Slint geometry and presentation.
|
||||||
the implementation contract, not proof that every rendered pixel or feature matches.
|
Source matching, screenshot similarity and functional parity are separate evidence claims; this document
|
||||||
|
is the retained implementation contract, not proof that every native pixel or feature matches.
|
||||||
|
|
||||||
The product name and application icon stay TeamsPeach's own. Non-brand interface pictograms now use
|
The product name and application icon stay TeamsPeach's own. Retained source-derived fonts and sounds,
|
||||||
the installed client's SVG artwork; provenance and redistribution limitations are recorded in
|
and historical non-brand pictograms, have provenance/redistribution limitations in `LICENSES/`.
|
||||||
`LICENSES/teamspeak-client-icons-PROVENANCE.md`. The official JavaScript application is reference-only,
|
The official JavaScript application and removed browser implementation are historical references only,
|
||||||
not the product's implementation.
|
not product runtime dependencies. Native cutover does not establish visual or functional acceptance.
|
||||||
|
|
||||||
## Colors
|
## Colors
|
||||||
|
|
||||||
Dark is the default for new profiles; light follows the official light module. Both are declared as
|
Dark is the default for new profiles; light follows the official light module. Native stock token data
|
||||||
plain `:root` (dark) and `@media (prefers-color-scheme: light) :root` blocks at (0,1,0) specificity, so a
|
and the supported user-theme importer preserve the dark/light contract without a browser cascade.
|
||||||
locally installed theme file can override them by order, as with the official stock theme.
|
Supported declaration order/specificity and `!important` are handled as data; see `docs/themes.md`.
|
||||||
|
|
||||||
Blue `--tsv-tint` (#1588FA dark, #5DA1CB light; `--tsv-tint2` #22658f light) marks own nickname,
|
Blue `--tsv-tint` (#1588FA dark, #5DA1CB light; `--tsv-tint2` #22658f light) marks own nickname,
|
||||||
selection outlines, active toggles and primary actions; green (`--presence-online`) marks talking/online
|
selection outlines, active toggles and primary actions; green (`--presence-online`) marks talking/online
|
||||||
@@ -129,37 +133,39 @@ in the tree use `--ts-third-font-color` (#bbd6f3).
|
|||||||
## Typography
|
## Typography
|
||||||
|
|
||||||
Noto Sans variable files version 2.013 from the installed client are bundled under
|
Noto Sans variable files version 2.013 from the installed client are bundled under
|
||||||
`app/renderer/assets/fonts/`, with SIL OFL 1.1 in `LICENSES/NotoSans-OFL.txt`. Normal, italic and
|
`native/resources/fonts/`, with SIL OFL 1.1 in `LICENSES/NotoSans-OFL.txt`. Preserve normal, italic and
|
||||||
oblique declarations follow the original font-face semantics. Body 15/19, content 14/18, small 13,
|
oblique source semantics where the native font backend supports them. Body 15/19, content 14/18,
|
||||||
header titles 24/28 bold. Channel labels use 14px normal weight; client names use 14px semibold.
|
small 13, header titles 24/28 bold. Channel labels use 14px normal; client names use 14px semibold.
|
||||||
Chat names use the source hash/contrast colour calculation, with 16/19 message text and 13/15 events.
|
Chat names use the source hash/contrast colour calculation, with 16/19 message text and 13/15 events.
|
||||||
|
|
||||||
## Layout
|
## Layout
|
||||||
|
|
||||||
The window is the official three-slot frame (`.tsv-window`):
|
The desktop target is the official three-slot frame (source component names below are historical
|
||||||
|
geometry labels, not required DOM selectors):
|
||||||
|
|
||||||
1. **Sidebar** `#app-sidebar`, 270px default, max 420; dragging below 200 collapses it to the 62px rail.
|
1. **Sidebar**, 270px default, max 420; dragging below 200 collapses it to the 62px rail.
|
||||||
Header gradient #121A2C → #1D2537, activity rows 44px with an always-visible 8px-radius pill inset
|
Header gradient #121A2C → #1D2537, activity rows 44px with an always-visible 8px-radius pill inset
|
||||||
10px (4px gap), group captions 13px subtitle, footer 55px with a 3px separator inset 20px.
|
10px (4px gap), group captions 13px subtitle, footer 55px with a 3px separator inset 20px.
|
||||||
2. **Server pane** `#server-panel`, 500px default, min 220: 44px window bar (#121A2C) carrying the toolbar
|
2. **Server pane**, 500px default, min 220: 44px window bar (#121A2C) carrying the toolbar
|
||||||
pill (26px, `--tsv-bg`, 1px `--strong-bg` separators) with microphone and speaker; separate Away action; a 10px
|
pill (26px, `--tsv-bg`, 1px `--strong-bg` separators) with microphone and speaker; separate Away action; a 10px
|
||||||
inverse fillet; the server tree on the 25° gradient (#252F44 → #2E374C); the 92px server header card;
|
inverse fillet; the server tree on the 25° gradient (#252F44 → #2E374C); the 92px server header card;
|
||||||
channel rows 44px with a 30px pill (inset 7/10, radius 9, 1.5px outline, channel background gradient
|
channel rows 44px with a 30px pill (inset 7/10, radius 9, 1.5px outline, channel background gradient
|
||||||
on by default); client rows 40px with 33px avatars and 23px status plates; the 55px status bar with
|
on by default); client rows 40px with 33px avatars and 23px status plates; the 55px status bar with
|
||||||
40px side padding.
|
40px side padding.
|
||||||
3. **Detail pane** `.workspace`, min 295, body `--tsv-shaded-bg`: 44px window bar with the native caption
|
3. **Detail pane**, min 295, body `--tsv-shaded-bg`: 44px window bar reserving native caption
|
||||||
overlay, 71px content header (38px icon, 24/28 bold title, segmented mode switch), 4px separator, the
|
integration, 71px content header (38px icon, 24/28 bold title, segmented mode switch), 4px separator, the
|
||||||
stream stage, chat log and composer.
|
stream stage, chat log and composer.
|
||||||
|
|
||||||
Settings occupy the main and detail slots as the official settings activity does at ≥900px: category
|
Settings occupy the main and detail slots as the official settings activity does at ≥900px: category
|
||||||
column `clamp(30ch, 20vw, 50ch)` with 44px rows, `--settings-highlight-bg` selection and a 4px tint bar;
|
column `clamp(30ch, 20vw, 50ch)` with 44px rows, `--settings-highlight-bg` selection and a 4px tint bar;
|
||||||
pages max 640px wide with section cards (`--tsv-header-bg`, radius 15, padding 8px 20px, 12px apart).
|
pages max 640px wide with section cards (`--tsv-header-bg`, radius 15, padding 8px 20px, 12px apart).
|
||||||
Below 900px the same settings category node moves into sidebar resources and returns on leaving settings
|
Below 900px retain category navigation without losing settings drafts/focus. Small/Large use the official
|
||||||
or widening the window. Small/Large use the official token modules (53225/68865), not browser zoom;
|
token modules (53225/68865), not browser zoom; collapsed rail widths are 52/62/72px. Compact/mobile
|
||||||
collapsed rail widths are 52/62/72px. The native caption bar remains 44px to match its OS overlay.
|
adaptation preserves usable targets, safe areas, IME and an independent voice strip; it is not desktop
|
||||||
|
pixel-parity evidence. Native caption integration retains the 44px design target where supported.
|
||||||
|
|
||||||
Resize handles are invisible 9px strips centred on each pane edge, tinted at 50% while focused or
|
Resize handles are invisible 9px strips centred on each pane edge, tinted at 50% while focused or
|
||||||
dragged. The native caption overlay is 44px high in the window-bar colour (`app/main/titlebar.js`).
|
dragged. Native window/caption colors follow the window-bar palette through real platform integration.
|
||||||
|
|
||||||
## Elevation & Depth
|
## Elevation & Depth
|
||||||
|
|
||||||
@@ -199,9 +205,9 @@ notifications), pill (toolbar, filled buttons, segmented controls).
|
|||||||
type, receive the shared source control styling. These changes address the first packaged capture
|
type, receive the shared source control styling. These changes address the first packaged capture
|
||||||
batch; confirmation screenshots are QA evidence, not assumed passes.
|
batch; confirmation screenshots are QA evidence, not assumed passes.
|
||||||
- **Selected values:** language flags and sidebar icon-mode pictograms come from the original local
|
- **Selected values:** language flags and sidebar icon-mode pictograms come from the original local
|
||||||
artwork. The underlying select owns the value; decorative selected artwork is aria-hidden. Default
|
artwork where legally available. The native value control owns selection; decorative artwork is not
|
||||||
audio-device captions come only from Chromium's explicit `default` alias and remain available to
|
a second accessibility control. Default-device captions require actual platform default metadata,
|
||||||
assistive technology. Missing alias metadata leaves the caption blank, not guessed.
|
not guesses from device names; absent alias metadata leaves the caption unset.
|
||||||
|
|
||||||
Motion is limited to the official short state transitions (pill growth 150ms, toolbar 100ms, controls
|
Motion is limited to the official short state transitions (pill growth 150ms, toolbar 100ms, controls
|
||||||
120ms, toast 180ms); reduced motion removes them. Reduced transparency/increased contrast make menus and
|
120ms, toast 180ms); reduced motion removes them. Reduced transparency/increased contrast make menus and
|
||||||
@@ -222,10 +228,10 @@ notifications opaque; forced colours use system tokens.
|
|||||||
the central toolbar preserves the source Away + microphone/speaker geometry.
|
the central toolbar preserves the source Away + microphone/speaker geometry.
|
||||||
- Information/Chat/Files modes are in the detail header. Open private conversations and explicitly
|
- Information/Chat/Files modes are in the detail header. Open private conversations and explicitly
|
||||||
opened server chat are sidebar activities; no extra tab row occupies the channel chat canvas.
|
opened server chat are sidebar activities; no extra tab row occupies the channel chat canvas.
|
||||||
- Stream placement moves the same stage/media nodes between chat and the 175px tree overlay. Tile layout
|
- Stream placement reuses the same decoded media/session between chat and the 175px tree overlay.
|
||||||
and stream controls depend on the native/media capabilities described in FEATURE_COMPATIBILITY.md.
|
Tile layout and native controls require the scoped capabilities/evidence in FEATURE_COMPATIBILITY.md.
|
||||||
- Original non-brand SVGs and the exact 2.013 font replace the earlier approximate glyphs and font.
|
- The exact 2.013 font and retained source-derived artwork preserve reference provenance; native
|
||||||
This is not evidence that every component's placement or state matches the original.
|
component placement/state and any legally unavailable pictograms remain separate acceptance questions.
|
||||||
- A "System" theme tile exists beside the official Dark and Light tiles.
|
- A "System" theme tile exists beside the official Dark and Light tiles.
|
||||||
- New server administration, identity, snapshot, whisper, recording and file surfaces use the source
|
- New server administration, identity, snapshot, whisper, recording and file surfaces use the source
|
||||||
control tokens around real APIs. Token conformity alone does not establish identical screen composition.
|
control tokens around real APIs. Token conformity alone does not establish identical screen composition.
|
||||||
@@ -233,22 +239,31 @@ notifications opaque; forced colours use system tokens.
|
|||||||
whisper manager bind real local/server operations. They do not emulate a myTeamSpeak account.
|
whisper manager bind real local/server operations. They do not emulate a myTeamSpeak account.
|
||||||
The whisper overlay shares the settings controls and list reset; its tree preview derives only from
|
The whisper overlay shares the settings controls and list reset; its tree preview derives only from
|
||||||
current-session snapshots, and received-whisper history distinguishes departed identities.
|
current-session snapshots, and received-whisper history distinguishes departed identities.
|
||||||
- File Transfer uses source-style icon actions and keyboard-operable minus/value/plus controls. Existing
|
- File Transfer uses source-style icon actions and keyboard-operable minus/value/plus controls, 3/3
|
||||||
always-ask and 2/2 concurrency defaults remain; folder captions expose only the basename and concurrency
|
per-channel concurrency defaults, the saved download location and shared application rate limits.
|
||||||
subtitles truthfully describe the shared app-wide pool, not the original's per-server wording.
|
|
||||||
- Notification category switches suppress all sounds in that category without erasing per-event choices
|
- Notification category switches suppress all sounds in that category without erasing per-event choices
|
||||||
or event logs. The disabled-category message and system notification subtitles use the original strings.
|
or event logs. The disabled-category message and system notification subtitles use the original strings.
|
||||||
- The refreshed actual-frontend matrix remains a strict visual failure: 168 evaluated pairs, none
|
- Privacy, Video, Notifications and About follow the owner's explicit original-composition choice.
|
||||||
blocked and none fully passing. A later focused 32-pair confirmation also failed; it measures a
|
Unsupported controls keep their source positions but are disabled and explained; no telemetry, cloud
|
||||||
newer build and is not substituted for the full matrix. Native/account/branding exceptions remain
|
account, Cisco native backend or fabricated service is introduced. Real native decoder policy,
|
||||||
explicit; source transfer and functional checks do not establish completed 1:1 reproduction.
|
project links and installation details live on working subpages with back-focus restoration.
|
||||||
Build-specific results and remaining differences are in `qa-parity-harness.md`.
|
About retains TeamsPeach branding and real metadata; Report Issue targets the verified project tracker.
|
||||||
|
Content reporting, Terms and five source-position social tiles explicitly state their unavailable status.
|
||||||
|
- The current 5232 desktop comparisons use synthetic state, not a user account. Both native runs
|
||||||
|
completed all 20 scenes (dark/light × EN/RU at 1280×800), but neither passed a whole screen.
|
||||||
|
The strict comparator does not mask branding, account-only slots or caption differences.
|
||||||
|
The historical Electron 192-pair checkpoint passed 56; its subsequent four-panel 32-pair
|
||||||
|
checkpoint failed every whole-screen comparison. Runtime workflow success is not pixel parity.
|
||||||
|
See the [current visual source map](docs/evidence/official-parity/visual-source-map.md) and the
|
||||||
|
[historical QA record](docs/evidence/official-parity/qa-parity-harness.md).
|
||||||
|
|
||||||
## Do's and Don'ts
|
## Do's and Don'ts
|
||||||
|
|
||||||
- **Do** take every new value from the installed client and cite its offset in the evidence specs.
|
- **Do** cite the source build and offset or measured scene for new values. Keep 5163 extractions
|
||||||
- **Do** keep the native caption overlay colours equal to `--ts-new-header-bg` and `--tsv-font-color`.
|
separate from 5232 capture evidence.
|
||||||
- **Do** keep the stock `--tsv-*` token declarations at (0,1,0) specificity.
|
- **Do** keep native caption colors aligned with `--ts-new-header-bg` and `--tsv-font-color` where supported.
|
||||||
|
- **Do** retain stock token names and the explicitly supported native theme-import subset; no DOM fallback.
|
||||||
- **Don't** reinterpret, restyle or "improve" the official look; deviations above are product constraints.
|
- **Don't** reinterpret, restyle or "improve" the official look; deviations above are product constraints.
|
||||||
- **Don't** add account-bound controls (bell, cloud contacts, presence) that would do nothing.
|
- **Don't** present unavailable account or native controls as working; original-layout compatibility rows
|
||||||
|
must be disabled, explained and incapable of storing an ineffective preference.
|
||||||
- **Don't** claim full feature parity from visual parity; see `FEATURE_COMPATIBILITY.md`.
|
- **Don't** claim full feature parity from visual parity; see `FEATURE_COMPATIBILITY.md`.
|
||||||
@@ -1,6 +1,583 @@
|
|||||||
# TeamsPeach ↔ TeamSpeak 6 server features
|
# TeamsPeach ↔ TeamSpeak 6 server features
|
||||||
|
|
||||||
|
## Current Windows account-free checkpoint (2026-11-26)
|
||||||
|
|
||||||
|
**Channel banner fetch (Windows):** On private classic beta14, `fetch_banner` returned the exact seeded 74-byte PNG and Slint painted its color inside the selected channel row. A restricted channel with the same file returned `PermissionsClientInsufficient`. Replacing the banner with a missing file cleared the artwork without changing the neighboring row or selection outline; the former banner token was rejected. An HTTPS reference produced no tree fetch action. Raw command validation also rejects zero and unknown fields. See the [live receipt](docs/evidence/official-parity/channel-fetch-banner-beta14.md) for scope and reproduction.
|
||||||
|
|
||||||
|
**Server host button (Windows):** On private beta14, the Slint editor rejected 1,025 ASCII characters in each of the tooltip, link URL, and image URL fields. Cancel preserved the seeded values. A second guest independently verified three single-field saves, a combined save, and exact restoration; fresh editors showed the acknowledged values. The 1,024-character editor limit is not a measured server limit. The `.invalid` URLs were never opened or downloaded. See the [host button receipt](docs/evidence/official-parity/server-host-button-beta14.md).
|
||||||
|
|
||||||
|
**Server host banner (Windows):** On private beta14, Slint rejected oversized URLs, invalid interval and mode values, and a wrong server-name confirmation. Cancel preserved both seeded URLs, interval 120, and mode 0. Each of the four controls saved alone, then all four saved together, and the original values were restored. A second guest independently read all four fields after each step, and fresh editors showed the acknowledged values. The URLs used `.invalid`; no browser or image fetch, rendering, or refresh timing was tested. See the [banner receipt](docs/evidence/official-parity/server-host-banner-beta14.md).
|
||||||
|
|
||||||
|
**Acknowledged channel edit across a live reconnect:** On private Windows beta14, a second guest confirmed the first Slint topic edit before the initiating tab disconnected. The same tab reconnected under a different guest identity and submitted a new edit to the same channel. Only completion delivery was gated. Releasing the original success left the replacement's busy draft, channel details, status, and pre-existing disconnect error unchanged. The replacement's own success closed its editor, and the observer still saw the replacement topic. This checks delayed delivery of a successful edit, not rollback or a disconnect before server acknowledgement. See the [live receipt](docs/evidence/official-parity/channel-edit-replacement-beta14.md).
|
||||||
|
|
||||||
|
**Server total file-transfer bandwidth (Windows):** On disposable beta14, the Slint editor rejected -1 and 9,007,199,254,740,992 independently for each field (editor range 0 through 9,007,199,254,740,991). Cancelling preserved the finite download/upload baseline of 1,048,576 / 2,097,152 bytes/s. A fresh editor and independent second-guest server_info confirmed a download-only edit, an upload-only edit, and a paired edit, with exact restoration after each save. No files were transferred, so this proves configuration and readback, not rate limiting or throughput. See the [snapshot receipt and fixture command](docs/evidence/official-parity/server-bandwidth-beta14.md).
|
||||||
|
|
||||||
|
**Server transfer quotas (Windows):** On disposable loopback beta14, the fixture granted only the additional quota permission and seeded finite download and upload quotas of 64 and 96 MByte. The Slint editor accepts integers from 0 through 9,007,199,254,740,991; the test rejected -1 and 9,007,199,254,740,992 for both fields and retained the invalid drafts with field errors. Cancelling preserved the seeded quotas. An independent server_info request from the second guest and a freshly opened editor both confirmed the saved values of 128 and 192 MByte, then exact restoration to 64 and 96 MByte. The test required those exact seeded wire values before editing; it did not convert an unlimited u64::MAX value, exercise quota enforcement, or transfer files. The focused test passed and the fixture stopped.
|
||||||
|
|
||||||
|
**Server capacity and reserved slots (Windows, 2026-11-28):** On a disposable loopback beta14 with permission to edit both fields, the Slint Server Settings form kept invalid drafts of -1 and 65536 with field errors for each input. Cancelling a valid draft preserved the original 8 maximum clients and 0 reserved slots. Saving 7 and 1 left six public slots for the two muted guests. A fresh editor and an independent server_info request from the second guest confirmed both saved values and their restoration to 8 and 0. The server name, welcome text, host message and host message mode remained unchanged. One focused test passed and the fixture stopped. Admission at capacity, use of reserved slots, permission loss, and reconnect were not exercised.
|
||||||
|
|
||||||
|
**Server host message:** Before integration, a guest granted b_virtualserver_modify_hostmessage on private beta14 used Edit Server to set a two-line host message and its mode. The editor rejected an 8193-character draft and mode values -1 and 4. Cancellation left original properties unchanged. A second guest read back the saved values and their restoration without a change to the server name or welcome message. This checks administration and readback, not display of the host message on login.
|
||||||
|
|
||||||
|
**Property-specific server edit permissions:** A guest on private beta14 could open Edit Server with only welcome-message rights. An attempted rename left the draft open with a visible server refusal. Saving a welcome-only edit succeeded; the other guest confirmed the unchanged name, updated welcome, then restoration. A separate authorized run verified rename and the next confirmation name. The offline connection worker rejected a delayed server_edit refusal delivered after session replacement without changing the replacement server. No live network disconnect was timed against a successful edit.
|
||||||
|
|
||||||
|
**Editing the server name and welcome message:** On private beta14 the Windows editor rejected overlong fields and did not accept the proposed new name as confirmation. Cancelling preserved both original values. Saving a new name and two-line welcome updated the detail title, properties and the confirmation name of the next editor on the same server UID. A second guest independently read both values, then verified their restoration. Only name and welcome permissions were added to the disposable fixture; no other server property was changed.
|
||||||
|
|
||||||
|
**Default channel and guest arrival:** On a private beta14 server the Windows Create Channel form made a permanent room the sole default. A fresh guest connecting without a channel landed there. Setting a second permanent room as default in Edit Channel transferred the flag without changing either ID; a second new identity landed in that room. Cancellation preserved the preceding default, and each reopened editor showed the saved flag. Neither guest had a saved channel or supplied a channel password. Server restart and bookmark-specific channel overrides were not exercised.
|
||||||
|
|
||||||
|
**Channel encryption setting:** On private beta14 the guest's explicit encrypted-channel creation was initially refused with missing permission 129. With b_channel_modify_make_codec_encrypted granted, selecting Enabled at creation produced channel_codec_is_unencrypted=0 in channel_info. Cancelling an edit preserved that flag; disabling and re-enabling encryption produced 1 and 0 respectively. Each fresh editor displayed the inverse of the server flag for the same channel ID. No voice packets were sent or inspected, and the virtual server encryption policy was not changed.
|
||||||
|
|
||||||
|
**Channel banner properties:** On private beta14 the native channel editor rejected a 1025-character address. Cancelling a draft preserved the initial URL and mode. Without b_channel_modify_banner the server refused the save (permission 119). With that permission the roster and reopened editor showed the test URL in modes 1 and 2, then an empty URL and mode 0 after clearing. The reserved .invalid address was not evidence of image loading or rendering.
|
||||||
|
|
||||||
|
**Channel codec latency factor:** On private beta14 the editor rejected 0 and 11, and cancellation preserved the original channel_info property for the same room ID. Saving a different allowed factor produced the explicitly chosen value in channel_info and in a freshly opened editor. The initial roster did not provide a value in the supported range; the form default was not counted as a server acknowledgement. No end-to-end audio delay was measured.
|
||||||
|
|
||||||
|
**Channel talk power threshold:** On private beta14 the moderator's Slint Edit Channel form rejected values outside the signed 32-bit range. Cancelling a change kept the room at 0 on both rosters; saving 50 updated both rosters and a newly opened editor. In that room the two input-muted guests then exercised requests, withdrawal, grant and revoke; the guest's unauthorized grant was refused. This verifies the field and protocol moderation state, not microphone speech.
|
||||||
|
|
||||||
|
**Permanent and semi-permanent channel types:** On private beta14 the Windows Slint picker created a room of each type. Cancelling creation left no visible room; cancelling a type change preserved the original roster value. Saving permanent to semi-permanent and semi-permanent to permanent kept each room's server-assigned ID. A fresh editor showed the acknowledged type. The server was not restarted between observations, so this verifies the two protocol flags and their UI, not retention after server restart.
|
||||||
|
|
||||||
|
**Temporary channel expiry:** On private beta14 both guests saw a temporary room created with a 30-second delete delay. The create form rejected -1; the edit form rejected 4294967296. Cancelling an edit preserved 30. After saving 4, a fresh editor and both rosters showed 4. Once the last occupant returned to the lobby, the empty room was still present one second later and then disappeared from both rosters. This checks delayed expiry, not exact timer precision. The fixture needed b_channel_modify_temp_delete_delay and i_channel_create_modify_with_temp_delete_delay set to 30 (permission ID 109).
|
||||||
|
|
||||||
|
**Creating and editing a channel across two guests:** After the owner created a protected temporary room and saved its topic on private beta14, another guest opened the same channel ID from its own tree. The server refused that guest's topic edit; the editor showed PermissionsClientInsufficient and retained the unsaved text until cancellation. Both rosters kept the owner's topic. A separate offline connection-worker regression delivered the old create and edit refusals after session replacement and observed TargetChanged without inserting a room or overwriting the replacement room's name or topic. This is not a timed network disconnect during a successful mutation.
|
||||||
|
|
||||||
|
**Regular channel group lifecycle:** On a channel-group-only private beta14 fixture, two identically labelled New Group actions initially led the test to request a server group; the server refused it. The create controls and editor titles now identify the group kind. The corrected Slint workflow created a regular channel group, renamed the same cgid, cancelled deletion, rejected the old name and deleted after exact confirmation. Independent lists from the second tab retained all other IDs and names. Separate offline tests held real core refusals across session replacement for create, rename and delete of both group kinds. Live network reconnect during the command, template/query group administration and membership changes were not exercised.
|
||||||
|
|
||||||
|
**Regular server group lifecycle:** Two private beta14 guests checked creation from Permission Groups, rename under the same new server group ID and deletion after one typed confirmation. Cancelling either edit preserved the group, and the old name did not confirm deletion after rename. Independent server-group lists from the second guest preserved every pre-existing ID and name. The initial rename was refused with permission 168 (i_group_modify_power). The successful fixture granted create and delete plus modify power 75. This run did not mutate channel groups or template/query groups.
|
||||||
|
|
||||||
|
**Refreshing sparse group lists:** On two private beta14 tabs the refresh projection consumed independently requested server-group and channel-group lists. When a wire row lacks its type, the matching typed roster for the same server and group kind supplies it only if the numeric ID and name agree. An explicitly invalid type or mismatched group fails the refresh; template and query rows do not gain regular-group actions. No group mutation was sent in this read-only trial.
|
||||||
|
|
||||||
|
**Administration context:** On two private beta14 tabs the rendered Permission Groups pane matched independent group-list and admin_context replies for the viewed generation and server UID. A partial-reply regression showed the catalog refusal without losing valid roster groups, and stale server identity or generation was rejected. The parser accepted an empty argument object and rejected an unknown property. The partial refusal was supplied in the regression test, not forced by changing server rights in the live run.
|
||||||
|
|
||||||
|
**Editing family capacity:** On private beta14 a temporary root room started with a client limit of 2 and family limit of 6. Cancelling inheritance retained 6. Saving inheritance changed the native roster value to `inherited`; turning it off and setting 4 restored a numeric family limit. The channel ID and its own limit of 2 remained unchanged, and fresh editors showed the acknowledged flag, numeric limit when applicable, and no unlimited-family flag. This tested editing and readback, not admission under the limit.
|
||||||
|
|
||||||
|
**Channel order on create and edit:** On private beta14 the Slint Create Channel form inserted a temporary root room first. Both guest rosters showed its predecessor as 0 and the former first room pointing to the new ID. Cancelling a subsequent edit preserved that chain. Selecting the former first room as predecessor and saving reversed the two links on both rosters without moving either guest. A newly opened editor showed the acknowledged predecessor ID. The fixture grants b_channel_create_with_sortorder and b_channel_modify_sortorder. A separate form test covered same-named siblings and clearing an obsolete predecessor on parent changes.
|
||||||
|
|
||||||
|
**Moving an occupied channel:** Cancelling Move Channel preserved the original parent and predecessor on both guest rosters. After confirmation, both guests saw the same temporary room ID as the first child of the lobby, with the occupant still inside. Reopening Move Channel showed the lobby ID and predecessor 0. The private fixture granted b_channel_modify_parent, b_channel_modify_sortorder and b_channel_create_child; the first move was refused with permission ID 86 (i_channel_max_depth). Setting this fixture-only depth limit to 2 allowed the move. Separate tests covered duplicate sibling labels, missing permission diagnostics and late replies across session replacement. No real network interruption was timed against the move.
|
||||||
|
|
||||||
|
**Deleting an occupied channel:** Two connected guests observed the same temporary root channel. In its Slint context menu, an incorrect confirmation name kept the editor open; cancellation left the creator in the room. A confirmed forced deletion by the other guest showed the server's PermissionsClientInsufficient error and left the room occupied. The creator's confirmed deletion returned the occupant to the lobby and removed the room ID from both rosters and both viewed trees before either guest disconnected. Separately, the connection actor rejected a delayed offline deletion refusal after session replacement with the same numeric room ID; it did not change the replacement selection or roster. No real network reconnect was timed against the server acknowledgement.
|
||||||
|
|
||||||
|
**Channel capacity at creation:** The private beta14 guest created temporary root channels with finite limits (2 and 6), both limits unlimited, and a finite client limit with family capacity inherited. A fresh editor for each server-assigned channel ID showed the requested mode. Invalid numeric bounds stayed in the draft and cancellation discarded the changes. This verifies the three capacity flags, not participant admission, enforcement in subchannels, or the full channel CRUD workflow.
|
||||||
|
|
||||||
|
**Bookmark display name:** Clearing the name in the Slint editor displayed the existing address under the same sidebar ID. A 65-character name was rejected before saving; a blocked preferences write preserved the prior record. Two restarts retained the fallback name and address. Separate store tests exercised plain bookmark fields, keybind migration and restored chord dispatch; they do not establish network login or OS shortcut delivery.
|
||||||
|
|
||||||
|
**Voice through the saved endpoints:** On private beta14, two native guests exchanged generated voice using a capture backend that accepted only the saved `qa-input` and a voice playback backend that accepted only `qa-output`. After each unmute the receiver produced at least three new non-silent blocks; after mute it drained to silence. Separate callback tests injected CPAL device loss during partial playback and after capture: playback returned silence, capture published no new block, and neither lost stream could resume. Session retirement and epoch changes rejected stale PCM in separate tests. This covers the Windows preference behavior, not physical hot-plug, acoustic echo cancellation or an official peer.
|
||||||
|
|
||||||
|
**Saving voice device choices:** Using an isolated device catalog, the Windows Slint selectors saved distinct input and output IDs. Attempts to switch to the system defaults during a failed preferences write left the file, both selectors and the acknowledged engine routes unchanged. Two restarts retained both choices without starting hardware. The input backend and missing-output connection checks below cover first use; this selector test did not stream PCM through either fixture ID.
|
||||||
|
|
||||||
|
**Saved voice devices at startup:** The Windows Connect form joined private beta14 with an unavailable output ID saved in the disposable profile. Without any test-side output selection, playback reported audio_device_missing, neither device started, and the acknowledged connection address was retained. In a separate offline test the first private capture attempt on each of two launches supplied the saved exact input ID to a test backend, which refused it without opening a microphone. These tests do not verify a successful physical device open or hot-plug.
|
||||||
|
|
||||||
|
**Voice output level:** The Windows Slint Audio control saved -200 dB. An attempted change to 0 dB failed on a blocked preferences write. After two restarts, the first incoming beta14 tone showed the sender talking but produced no non-silent samples at the synthetic receiver. Setting 0 dB restored sound; at -6 dB, mean block energy was between 20% and 31% of unity. Separate regressions verified live AGC and that master voice gain does not affect stream gain. No physical device or official peer participated.
|
||||||
|
|
||||||
|
**Connection retry after password refusal:** On private beta14 the Windows Connect form reported the failed login and retained the previously saved address. The tab remained disconnected, with no roster or audio device starts. A request with the retired session key returned TargetChanged. Reopening Connect on that tab showed an empty password field. The correct fixture password admitted the muted identity, and the acknowledged address survived a restart even though the explicitly selected playback device was unavailable. Separate tests checked pre-network argument rejection and capture handoff across viewed tabs.
|
||||||
|
|
||||||
|
**Microphone toolbar during a call:** On private beta14 the Slint toolbar callback unmuted, muted and unmuted the input owner while the second guest remained input-muted. Both rosters agreed on the sender's microphone flag. Muting revoked the original capture permit and the synthetic receiver drained to silence; unmuting issued a different permit and produced new non-silent output blocks. Two focused native tests passed, including the VAD settings regression. This verifies set_audio with generated voice, not a physical headset or an official peer.
|
||||||
|
|
||||||
|
**Unconfirmed microphone mapping:** On private beta14 two disposable guests stayed muted after both a toolbar unmute and a local unmute shortcut handler were refused with device_mapping_required. Both core replies and both rosters retained input/output mute. No capture permit was issued, neither audio device started and the mapping refusal preceded the microphone permission request. Three targeted Windows tests passed, including missing-device handoff and toolbar routing while viewing another tab. The test did not use a physical keyboard or a physical microphone.
|
||||||
|
|
||||||
|
**Transmit control from Audio settings:** On private beta14 the sender's Slint settings callbacks disabled PTT, enabled volume-gate VAD, changed its threshold, and disabled VAD again. The synthetic microphone continued producing the same tone. Both the sender's transmitting flag and the other guest's talking indicator went on in direct mode, off at 0 dB, on at -45 dB, off at 0 dB and back on when VAD was disabled. The existing PTT release-delay test passed on the same fixture. No physical microphone or speaker was opened.
|
||||||
|
|
||||||
|
**Transmit detector switch during a burst:** Two disposable clients on private beta14 used a generated 900 Hz tone and a synthetic receive output. Direct mode delivered the tone. Switching mid-burst to a -10 dB volume gate invalidated the old capture epoch and ended the burst without an explicit end_audio. Fresh below-threshold frames were accepted locally but produced neither a talking indication nor non-silent receiver blocks. Lowering the threshold to -40 dB preserved the epoch and made the same tone audible again. This checks the typed core command and receive path, not settings UI or physical capture.
|
||||||
|
|
||||||
|
**Playback DSP command boundary:** A fresh disconnected stdio core accepted both boolean values of agc. It returned bad_request for a missing field, null, a number, a string, and an extra key. Five separate native regressions covered partial and old playback blocks, wrong sample rate, privacy epochs, reconnect and saved device recovery. Combined with the live gain measurement below, this verifies set_playback_dsp on Windows with generated audio; it does not establish physical headset or official-client parity.
|
||||||
|
|
||||||
|
**Playback AGC during a call:** On private beta14 two disposable guests exchanged a generated quiet 1 kHz Opus tone. The receiver's Slint Audio settings callback switched the selected output profile off, on and off. In settled windows of at least 20 non-silent synthetic output blocks, mean block energy with AGC enabled was at least four times the first off window; the final off window was within 25% of baseline. The separate detached-UI voice test also passed. No physical device or official client participated.
|
||||||
|
|
||||||
|
**Playback AGC before connecting:** A ready disconnected core acknowledged the explicit output device's saved AGC setting and the template setting when no device override existed. No input or output device started. With identical generated Opus packets, a separate core test measured more than four times the reference energy for quiet audio after AGC settled; disabling AGC restored sample-identical PCM. Three focused core tests and two native tests passed. This does not verify a live settings toggle during a call, physical output or official-peer voice parity.
|
||||||
|
|
||||||
|
**Temporary server passwords:** On private beta14 the Windows panel created a disposable 300-second rule for the server's default channel. A separate list request confirmed the value (pw_clear), issuer, description, expiry and tcid=0. Cancelling deletion kept the rule; confirming removed it from the panel and the server. The test used a guest with b_virtualserver_modify_temporary_passwords and did not log passwords or test login with the issued credential. A separate WebQuery-created fixture record produced ClientInvalidId when read by the native guest; cross-issuer listing is not verified.
|
||||||
|
|
||||||
|
**Clearing the ban list:** On private beta14, the native panel required the displayed server name before deleting all bans. Incorrect input kept the dialog open; cancelling retained both seeded ban IDs. Correct confirmation cleared both rows, an independent ban_list request returned no rules, and the empty panel no longer offered the action. This test used a disposable server with exactly two known rules.
|
||||||
|
|
||||||
|
**Creating a timed ban:** On private beta14, the native Add Ban form rejected an empty target and a negative duration. Cancelling a valid draft left both seeded rules and IDs intact. Submitting a unique unused nickname pattern created one 60-second rule; the refreshed panel and an independent ban_list reply agreed on its ID and reason. No connected participant matched the pattern.
|
||||||
|
|
||||||
|
**Single ban deletion:** On private beta14 a guest with list and delete permission selected the one-hour fixture rule in the native ban panel. Cancelling preserved both original ban IDs. Confirming once removed only the selected ID; the refreshed panel and an independent ban_list request agreed that the permanent rule remained. No clear-all operation was issued.
|
||||||
|
|
||||||
|
**Ban list:** On private beta14 a guest with only ban-list read access opened Banned Users from the Slint server menu. The permanent and one-hour fixture rules matched the independent core reply, including their reasons, expiry and row IDs. Without read permission the panel showed PermissionsClientInsufficient and no rows. Separate tests covered malformed expiry, unknown arguments, panel closure and stale sessions. The native client did not create or delete a ban in these tests.
|
||||||
|
|
||||||
|
**Replacing a chat attachment:** On classic beta14, a disposable Windows guest chose a file with the native picker and received a ts3file link. Choosing another version under the same name produced the Replace action. Cancelling kept the original eight bytes; confirming uploaded the selected twenty bytes even after the local source changed again. The remote listing and both downloads agreed. Replacement required file delete power in the scratch channel in addition to upload, browse and download rights. A separate picker test rejected a selection from a retired session. Neither test exercised S3 or sent a chat message.
|
||||||
|
|
||||||
|
**Scheduler refusal recovery:** With a 2 MiB/s download budget, the scheduler configured the running tab for 1 MiB/s before dispatching a second tab's start or resume. In both cases the second core's simulated refusal propagated to the caller and the running tab received a 2 MiB/s configuration afterward. Three focused service tests passed. A separate classic beta14 test verified two overlapping 4 MiB downloads against the saved 1 MiB/s aggregate ceiling and compared both outputs with the source pattern. The refusal was injected only in the service test, not on the wire.
|
||||||
|
|
||||||
|
**Channel password edits:** Two disposable beta14 guests verified password rotation through the Slint channel editor. An oversized replacement stayed in the field with an error. Reopening after a successful change did not reveal the replacement. Submitting a blank password with a topic change preserved protection: the old password failed and the replacement admitted the second guest. Explicit removal cleared the protection flag on both rosters and the guest could rejoin without a password. No bookmark or server-login password was involved.
|
||||||
|
|
||||||
|
**Phonetic channel name:** On private beta14 the Slint Create Channel and Edit Channel forms rejected a 256-character phonetic name inline. Creating a temporary channel preserved its separate pronunciation in the roster and editor. Cancelling a replacement retained the original; saving it changed the pronunciation for the same server channel ID without changing the tree name or description. This covers the stored metadata, not speech synthesis.
|
||||||
|
|
||||||
|
**Opus codec selection:** On private beta14 an explicit Opus Music create was refused without the codec permission. With b_channel_create_modify_with_codec_opusmusic granted, the Slint Create Channel picker created a temporary root room with opus_music in the server roster. Cancelling an Opus Voice edit kept Music. Saving the change produced opus_voice for the same room ID and a fresh editor showed Opus Voice with the original description. This verifies channel_create.channel_codec and channel_edit.channel_codec for the two Opus modes, not legacy codecs or audio encoding and playback.
|
||||||
|
|
||||||
|
**Channel capacity at creation:** On private beta14 the disposable guest had b_channel_create_with_maxclients and b_channel_create_with_maxfamilyclients. The Slint toolbar form retained -2 and 2147483648 with field errors and discarded a cancelled draft. After creating a temporary root channel, Edit Channel for its roster ID showed 2 clients and 6 family clients, with unlimited and inherited modes off. This verifies the two numeric creation fields, not admission or child inheritance.
|
||||||
|
|
||||||
|
**Channel capacity edits:** On loopback beta14 the Slint editor saved limits of 3 for the channel and 4 for its family. Reopening showed both numbers with both unlimited switches off. Values below -1 and above 2147483647 produced field errors. Cancelling a draft that changed the numbers and switches preserved 3/4 with both switches off. After submitting unlimited mode for both, a fresh editor showed both switches on and both numbers at -1. This covers numeric limits and unlimited flags when editing a temporary root channel, not child inheritance or admission at capacity.
|
||||||
|
|
||||||
|
**Channel description at creation:** On private beta14 with b_channel_create_with_description granted to the disposable guest, the Windows Slint toolbar form retained an over-limit draft with an inline error and discarded a cancelled draft. Submitting a two-line description created a temporary root channel; a separate channel_description request for its roster ID and a newly opened Edit Channel form both returned the exact text. This covers the creation property, not other optional fields or the whole channel administration workflow.
|
||||||
|
|
||||||
|
**Withdrawn updates:** The loopback server first offered native 0.1.8 to a disposable 0.1.7 Windows installation. After download, the listing changed to only 0.1.6 and 0.1.7. A second check returned UpToDate, no offer, zero transferred bytes, an empty update cache and no installable package. No second package was requested. Six focused tests passed, including candidate selection and the About selector. Combined with the channel and integrity runs below, this covers checkForUpdates and updateChannel on this fixture, not an actual installer or a public-feed availability check.
|
||||||
|
|
||||||
|
**Explicit update download:** On the local Windows release fixture an active session deferred automatic download, while explicit download retrieved the offered package. A short response failed the size check and a changed payload failed SHA512. The short package left no cache entry, could not be installed and did not change the disposable executable. The fixture uses blocking reads on accepted connections. No installer was launched.
|
||||||
|
|
||||||
|
**Update channel:** The About selector changed Preview to Stable in a disposable Windows profile. Two restarts retained Stable in both the selector and updater. A failed attempt to save Preview left selection, service and file unchanged. With a loopback release fixture, switching channels cleared the previous offer and check time; a late Preview check or download did not publish into Stable. Nine focused tests passed, including checksum rejection and call-aware download deferral. The installed application was not replaced.
|
||||||
|
|
||||||
|
**Local profile persistence (Windows, 2026-11-28):** Nine focused Rust tests passed on disposable profiles. Slint kept duplicate-chord warnings in the correct profile when two profiles reused a binding ID. After restart the active profile's F9 push-to-mute worked and the previous profile's F8 did not start PTT. A 33rd profile was rejected without changing the saved file. Shortcut events were supplied at the native platform boundary; no system-wide registration or physical keyboard was exercised.
|
||||||
|
|
||||||
|
The offline folder editor covered generated IDs, unnamed labels, moving folders, depth and capacity limits, restart, failed saves and recovery of orphaned or cyclic parents. The Contacts Ignore and Chats Remove controls preserved UID-based filtering across restarts: a renamed blocked contact stayed blocked, but another UID with the same name and recycled client number was delivered. Incoming chat events were synthetic; live send and failed-send draft retention were not verified by these tests.
|
||||||
|
|
||||||
|
**Voice toolbar ownership (Windows beta14):** With the observer tab in view and the other tab owning input, the microphone button muted the input owner. The speaker button then restored and disabled that owner's output without unmuting its microphone. The toolbar and both server rosters agreed after each change; the observer kept both mute flags. No physical input or output was opened.
|
||||||
|
|
||||||
|
**Cross-tab deafen (Windows beta14):** While one tab transmitted continuous synthetic input, the native deafen action on the receiving tab stopped and then restored its talking indicator. Its microphone stayed muted. The sending tab retained its original capture permit, kept transmitting and kept producing fresh capture blocks through both changes. No physical devices were opened.
|
||||||
|
|
||||||
|
**Voice playback after UI detach (Windows beta14):** A receiver with a synthetic output rendered a tone from a second disposable core. The first burst drained to silence, the receiver released its UI attachment, and a fresh burst produced new non-silent output blocks without reattaching or replacing either session. Notifications and comfort noise were disabled. Separate mixer tests checked gain and isolation when closing a connection. No physical speaker or microphone was opened.
|
||||||
|
|
||||||
|
**Playback authorization:** On Windows, generated PCM stayed silent when the initial roster lacked a local client ID. An explicit boolean output_muted=false admitted the samples; a missing flag or the string "false" closed the route again. Separate mixer tests checked volume and the surviving connection's samples after another route retired. No physical speaker was opened.
|
||||||
|
|
||||||
|
**Native capture ingress on Windows:** The synthetic 48 kHz input passed through the capture worker, DSP and embedded core to another beta14 client. Separate tests checked the full 960-sample frame against the timestamp of its first half (200 ms inclusive), discarded stale frames without retiring a valid permit, and discarded partial frames on mute or rebind. During input handoff the old permit was unusable before the new core's acknowledgement; viewing a third tab did not transfer ownership. Generation changes invalidated the old capture epoch. These checks do not measure a physical microphone or speaker.
|
||||||
|
|
||||||
|
**Capture release during a 600 ms stall:** A core regression revoked the capture epoch with one frame queued, one dequeued, and one held by VAD. The transport guard rejected the dequeued frame immediately. After a 600 ms consumer stall, the queue contained only an end marker; the old dequeued and preroll frames could neither enter encoding nor pass the send guard. A fresh frame with the new epoch started a new VAD burst and passed the guard. No network or devices were used in this stall test; live PTT and whisper release were checked separately on beta14.
|
||||||
|
|
||||||
|
**PTT key on Windows:** The Audio recorder rejected Ctrl+F9 and a failed atomic save without replacing F8. Cancel restored the old binding. Saving F10 retained the new key across two restarts. On private beta14 with continuous synthetic input, the old F8 did not transmit; F10 started and ended speech at the receiver and respected the selected tail. This checks native local key events, not OS-wide registration.
|
||||||
|
|
||||||
|
**Overlapping PTT and Push to Mute (Windows beta14):** With F8 held and both peers reporting speech, F9 stopped transmission and cleared the receiver's talking indicator without changing the visible mute flags. Releasing F9 with F8 held restored speech; releasing F8 before F9 left both peers silent. A later F8 hold still transmitted. These were local native key events with a synthetic capture backend, not OS-wide shortcut registration.
|
||||||
|
|
||||||
|
**Local whisper keys on Windows beta14:** Two saved list shortcuts were driven through native platform key events with the receiver viewed and the sender owning input. F9 replaced F8; releasing F8 preserved the F9 route. Synthetic PCM sent through the current manager permit produced remote talking and a sender-matched entry in the receiver's whisper history. Releasing F9 revoked the permit and ended remote talking. Separate worker tests checked that capture blocks acquire the whisper epoch when bound and do not carry it into an ordinary rebind. No physical device or OS-wide shortcut registration was used.
|
||||||
|
|
||||||
|
**Group whisper delivery (Windows beta14):** Two disposable Rust cores shared the default Opus channel with receive policy set to Allow All. In current-channel mode, `duplex_qa --group-whisper` delivered tones and sender-matched whisper notifications for the receiver's server and channel groups. Between those deliveries, transmissions to an existing server group and channel group the receiver did not belong to produced no playback, talking start or whisper notification on that same connection. Both disconnects were confirmed. This does not exercise a Slint hotkey, a physical device or other channel scopes.
|
||||||
|
|
||||||
|
**Channel subscriptions across tabs (Windows beta14):** Two muted guests stayed in the lobby. From the first tab's tree menus, Unsubscribe All cleared both accessible test channels, Subscribe enabled only channel A, Unsubscribe cleared it, and Subscribe All enabled both. Each transition required a newer snapshot; the second tab retained its flags and menu actions. Subscription to a third channel with needed subscribe power 100 returned a visible PermissionsClientInsufficient; that channel remained unsubscribed on both tabs. Separate tests covered stale menu tokens, malformed stdio arguments and refusal ownership after a tab switch or replacement session. Reconnect during acknowledgement was not forced on the live server.
|
||||||
|
|
||||||
|
**Channel reads across deletion:** Protocol tests fed deletion of the requested channel, reuse of its ID and a replacement description before the pending acknowledgement. Both channel_info and channel_description rejected the original request; deleting an unrelated channel preserved the requested description. The Windows beta14 channel editor separately passed multiline and empty description readback. ID reuse was tested with protocol events, not by forcing reuse on beta14.
|
||||||
|
|
||||||
|
**Classic uploads on Windows (2026-11-27):** Two muted tabs restored a 1 MiB/s upload limit and two upload slots saved through Slint. Both 4 MiB uploads made simultaneous progress; the combined rate stayed within the configured ceiling plus 192 KiB sampling allowance. Lowering the slot count to one paused the newer same-tab upload while the older upload and the other tab finished. Explicit resume completed the paused upload. All five files were downloaded and compared byte for byte. The ignored test `two_connected_tabs_share_the_saved_upload_rate_and_slots` requires a disposable classic beta14 on `127.0.0.1:19987` with an empty channel named `TeamsPeach Upload QA` granting the two guests upload, browse and download rights in that channel. No HTTPFT or S3 result is implied.
|
||||||
|
|
||||||
|
**Permission Groups on Windows (2026-11-27):** On both tabs of a private beta14 fixture, the rendered rows matched the regular groups in independent server and channel group list replies. The row menus and creation actions retained the viewed connection and matched its permission hints. Separate model tests checked one-list replacement (including an empty reply), equal IDs across catalogs, invalid replies and late panel results. No group was created, renamed or deleted on the live server.
|
||||||
|
|
||||||
|
**Server Log on Windows:** On private beta14, granting only b_virtualserver_log_view allowed a guest to read the virtual server log. The displayed lines matched an independent forward read from position zero. The instance log remained inaccessible: the editor displayed PermissionsClientInsufficient and retained the submitted options. Cancelling or submitting invalid bounds did not open a log panel; switching tabs invalidated the old form. Separate tests covered literal text, order, metadata-only rows, empty and malformed replies. To reproduce the positive test, enable a private runtime log directory on the disposable fixture after bootstrap. No log contents were printed.
|
||||||
|
|
||||||
|
**Server Info on Windows:** Two muted beta14 guests opened the server tree row's menu in turn. The rendered name and welcome message matched a separate server_info response for each connection, and the edit action retained the viewed tab's session and server UID. Model tests rejected obsolete results after Back, a new connection generation or a different UID. No server settings were changed.
|
||||||
|
|
||||||
|
**Protected move destination:** On private beta14 the move confirmation opened with an empty secret field for a protected destination. An oversized multibyte password and a tab were rejected in the editor. Cancelling left the two guests in their original channels. A command-builder test checked that a 1024-byte password including surrounding spaces was preserved. This does not establish a successful server-authorized participant move.
|
||||||
|
|
||||||
|
**Move to Own Channel:** With two muted beta14 guests the action was absent in the same channel and available once the initiator entered a separate temporary channel. The unprotected destination had no password field. Cancellation and the server's permission refusal left both guests in place; submitting an open confirmation after the initiator changed channels reported a changed target. No successful privileged move was observed.
|
||||||
|
|
||||||
|
**Client database panel:** Without list permission the disposable beta14 guest saw PermissionsClientInsufficient and no database rows or active search target. With b_virtualserver_client_dblist and b_virtualserver_client_dbsearch, listing, nickname search and UID search returned the same roster nickname, UID and positive database ID in the same session. The Windows smoke located the rendered search selector and submitted each mode through the Slint callback; it did not drive the dropdown or Enter key. No database entry was edited or deleted. Separate tests covered page bounds, Unicode search limits and stale query results.
|
||||||
|
|
||||||
|
**Channel codec quality:** The create form rejected 11 and created a temporary channel at quality 5. The edit form restored 5, saved 7, and retained an invalid -1 with a field error. Cancelling a draft of 3 left quality 7 in both the server roster and a newly opened editor. The check exercised server properties, not encoded audio quality.
|
||||||
|
|
||||||
|
**Channel rename:** In the private beta14 channel editor, a 41-character name remained in the form with a validation error. Cancelling a replacement draft preserved the original name. A 40-character rename was acknowledged on the same channel ID in the roster, Slint tree and reopened editor; the topic and the lobby name stayed unchanged.
|
||||||
|
|
||||||
|
**Channel upload chooser on Windows:** The native multi-file dialog returned exact names and sizes for two regular files. Cancellation, a reconnect while the picker was open, and selection of 101 files produced no usable upload batch. The staging regression also verified that changing a source after selection dropped staged bytes and issued no tokens. Five focused checks passed. This covers selection and session ownership, not receipt of uploaded bytes by a server. Mobile pickers were not changed or tested.
|
||||||
|
|
||||||
|
**Download destinations across tabs:** With Always Ask saved, a restarted Windows runtime hid the default chooser but retained the approved folder. Cancelling a one-off picker queued nothing; a picker held across reconnect was rejected. The first tab downloaded into its one-off folder. With both guests connected, disabling Always Ask on the second tab restored the approved folder and published the same seeded bytes there. The first copy remained intact. No upload or mobile picker was exercised.
|
||||||
|
|
||||||
|
**Download slot reduction:** After restoring two download slots from disk, two guests on private classic beta14 ran three downloads: two on one tab and one on the other. Changing the limit to one in Slint paused the newer same-tab transfer without publishing its partial file. The older transfer and the independent tab finished; the paused transfer completed only after an explicit resume. All three 4 MiB files matched the source pattern. Upload slots were not exercised on the wire.
|
||||||
|
|
||||||
|
**Shared download rate:** After setting 1 MiB/s through Slint and restarting the runtime, two tabs downloaded separate copies of the same 4 MiB classic beta14 fixture. Both cores reported positive progress at the same time. From that sample to final publication, their remaining combined bytes fit the 1 MiB/s ceiling with 192 KiB of allowance for in-flight chunks and sampling. Both complete files matched the seeded pattern byte for byte. This covers limitDownload and downloadMiB, not a two-tab upload rate or a hard per-packet bandwidth limit.
|
||||||
|
|
||||||
|
**Channel file mutations on Windows (2026-11-27):** On private classic beta14, a guest opened the empty, non-default permanent channel named `TeamsPeach Directory QA` with directory creation, rename, delete and browse rights. The native browser created and renamed a folder; cancelling deletion preserved the renamed folder, and confirming deletion removed it. Independent root listings matched the browser after each operation. In a separate temporary channel, a permission refusal remained visible and the listing stayed empty. Cancelling a rename of a seeded file or submitting its original name also left it unchanged.
|
||||||
|
|
||||||
|
**Microphone handoff failure:** With two private beta14 guests, viewing the second tab left the first capture permit valid. Choosing Use Microphone for the second tab with an unavailable exact output endpoint reported the device error, revoked the original permit, left no usable new permit and started no devices. Notification output was configured as None. Seven focused Windows checks passed, including connect-form persistence and capture revocation. Successful PCM delivery across a live UI handoff was not tested here.
|
||||||
|
|
||||||
|
**Remembered connection address:** On private beta14, a Windows Connect form replaced the saved address only after the muted guest joined. With a missing exact WASAPI endpoint, the playback error remained visible, neither audio direction started, and a fresh runtime restored the new address without connecting. A separate offline Slint test covered cancellation, refusal and a blank second tab. These checks do not verify swapping microphone owners between live connections.
|
||||||
|
|
||||||
|
**Central Matrix exclusion:** The native server-chat test rendered a matrix: room URI as non-interactive text and a matrix.to HTTPS room link as an external-link confirmation. Cancelling that prompt preserved the exact server conversation and its unsent draft. Together with the empty offline Chats check, this covers the account-free boundary, not central or server-hosted Matrix transport. Neither a browser nor a Matrix server was contacted.
|
||||||
|
|
||||||
|
**Account and Remote Apps exclusions:** An isolated Slint window showed local identity settings, no Account or Remote Apps category, and a disabled account-only private-message setting with the account requirement. Attempting that setting and then sending from empty offline Chats left no conversation, tab, login dialog or active server connection. The ordinary server-chat Matrix notice was tested separately. This verifies the native UI boundary, not account interoperability or a network traffic audit. An empty chat alone does not establish what a stale central-room link does when another conversation is open.
|
||||||
|
|
||||||
|
**Block Incoming Whispers shortcut (excluded):** The reference declares ActivateBlock, DeactivateBlock and ToggleBlock without a demonstrated dispatcher. Importing those modes in a disposable version 2 shortcut profile produced an explicit diagnostic, no local down/up action, and no global registration candidates; the profile bytes and a working Reply Whisper chord were preserved. The supported receive-mode selector is separate. No OS global shortcut was registered.
|
||||||
|
|
||||||
|
**Whisper sender identity on Windows:** The native client records the UID and nickname captured by the receiving core. A later roster cannot turn an unknown sender or a recycled client number into a reply target. On private beta14, two diagnostic cores matched the receipt to the sender roster under Allow All, observed neither playback nor a receipt under Deny All, then received an identified whisper after re-enabling. The connected Slint receive selector persisted Deny All across profile reopen. Three core and four native regression checks passed separately. A physical Reply shortcut and live recipient-number reassignment were not exercised.
|
||||||
|
|
||||||
|
**Channel commander on Windows:** Slint rendering tests verified the compact lamp versus separate icon, the detailed-tree icon, and preference persistence in English/dark and Russian/light fixtures. On private beta14 the other guest's menu had no commander action. The server refused the self change with PermissionsClientInsufficient; both flags remained off and the old confirmation could not affect the replacement identity. Four native checks and two core checks passed. A successful authorized commander change on beta14 remains unverified.
|
||||||
|
|
||||||
|
**Country flags in the desktop tree:** The native Appearance switch `showCountryFlags` uses bundled flag-icons v7.3.2 4:3 SVGs; unsupported or missing codes produce neither an image nor a placeholder, and the image yields space to the name on crowded rows. The focused Windows Slint smoke checked the U.S. flag's blue canton and alternating red and light stripe pixels in English and Russian, dark and light, including compact and detailed tree rows and 900 × 800. Reopening restored the saved switch; a refused save retained the exact preference bytes and rendered state. Client order, selected channel, input owner and conversation stayed unchanged. Five focused checks passed, including the asset inventory and bundled MIT notice. See [asset provenance](LICENSES/NOTICE.md). The roster was synthetic; live server country metadata and mobile rendering were not tested.
|
||||||
|
|
||||||
|
**Participant volume:** On private beta14 the Slint fader applied -10 dB during the drag without saving it, then persisted it on release. Muting the peer did not change the listener's own gain. Reconnecting the listener restored -10 dB for the peer without restoring mute; Reset returned the gain to 0 dB and removed the stored modifier. Twelve native checks covered ordering, persistence and error handling. Three core tests covered two-speaker Opus mixing, stale queued audio and reused client numbers. No physical capture or playback device was used.
|
||||||
|
|
||||||
|
**Participant context on Windows:** On private beta14, two muted guests opened the self and peer menus on both tabs. Poke, volume, Connection Info and group availability matched independently queried capabilities for the selected client ID, UID and generation. The test inspected an eligible group choice without submitting it. Escape preserved selection and whisper targeting. A separate popup test verified one request per opening and rejection of stale responses after reopening. Five native and two core checks passed.
|
||||||
|
|
||||||
|
**Participant Poke on Windows:** Two muted guests used Slint's participant menu on private beta14. The server refused the long message with ParameterInvalidSize; the editor retained it and accepted a shorter correction. The destination recorded the exact literal message with the initiator's UID. Cancelled, locally oversized and stale drafts did not arrive. The replacement guest had the same display name but a different client ID; reused-ID rejection was tested separately. Five native checks and a real stdio byte-boundary test passed. No physical audio was used.
|
||||||
|
|
||||||
|
**Participant connection statistics:** The Windows Slint menu displayed the peer's server-assigned client ID and a numeric timing metric with units on private beta14. After changing tabs and reconnecting, the self panel used the new session. Escape dismissed the menu without changing selection or the whisper target. Separate tests checked English and Russian formatting, exact counters, empty and unscoped responses and client-number reuse. Seven native and three core checks passed; no physical audio was used.
|
||||||
|
|
||||||
|
**Participant Info on Windows:** On private beta14, two muted guests opened the rendered participant Info menus. The test compared displayed properties with targeted core reads, required nonempty version and platform for self, checked the peer result against the server's actual permission response, and verified tab-switch cleanup. A separate reconnect scenario checked the same tab with a new identity. Matching rows merge the last explicitly supplied value for each field; an empty field can clear it. An acknowledgement without a matching row fails. Ten native and two core tests passed. Physical devices were not used.
|
||||||
|
|
||||||
|
**Talk power on Windows:** On private beta14 the moderator granted and revoked talk power from a participant's Slint menu without a pending request. Both guests observed the new talker flag. A queue grant succeeded for a pending request, a withdrawn request was rejected locally, and an ordinary guest's manual grant was refused by the server without changing either roster. Four native checks and a stdio validation test passed. Queue identity checks occur before dispatch; the server remains authoritative. Both guests were muted.
|
||||||
|
|
||||||
|
**Away status and talk requests:** Two muted beta14 clients observed the submitted away message and return to online. Cancelling the Slint form left both rosters unchanged; reconnecting one recipient before submission prevented the old prompt from changing its replacement. In a temporary moderated channel, both clients observed talk requests with and without a message, grant and revocation, then withdrawal. The core stdio test verified Unicode length limits, rejected null and forbidden controls, and distinguished malformed requests from valid offline commands. No physical voice equipment was used.
|
||||||
|
|
||||||
|
**Disconnecting the viewed tab:** Two muted guests connected to private beta14. After the first tab reconnected, selecting it did not move the second tab's microphone ownership. Disconnect from the first tab's Slint menu removed only that guest from the surviving roster. A separate embedded-core test exercised capture revocation and handoff acknowledgement with generated PCM. The live test did not open physical audio devices or initiate its connections through the Slint Connect form.
|
||||||
|
|
||||||
|
**Partial snapshot import receipts:** Controlled apply tests verified retained acknowledgements after refusal or cancellation, failed icon transfers, reused icons, and renames followed by failed creation. The partial report lists the affected objects, fields and permissions without their values. A recycled transfer ID was not cancelled in the replacement session. On live beta14 the confirmed Skip run reported one skipped root, zero changes and an unchanged roster. The 32-test Windows run did not perform privileged live mutations.
|
||||||
|
|
||||||
|
**Applying the previewed snapshot:** The private beta14 Windows test opened two client snapshots with the same catalog ID. Stale Apply and Cancel actions could neither apply nor dismiss the replacement. Cancelling confirmation made no changes; an empty confirmation was rejected. Confirming the server UID with Skip reported one existing root skipped, zero changes and an unchanged channel roster. Service tests, not the live server, covered partial mutations, cancellation and reconnect. The focused run passed 29 tests.
|
||||||
|
|
||||||
|
**Snapshot export result:** Windows Save cancellation created no file. On classic desktop UI with a private beta14 server, selecting the channels section wrote a client JSON snapshot with one permanent channel; the partial report showed the saved filename and the channel-permission issue. Reopening that file displayed the expected catalog and server UID. Separate service tests covered all selected sections and variable substitution. A complete privileged export of groups and icons was not run on the live server.
|
||||||
|
|
||||||
|
**Snapshot cancellation:** Six focused tests verified early cancellation of export and apply, preservation of an acknowledged parent without creating its child, exact session ownership when a file-transfer number is reused, and presentation of a partial cancellation report. An export cancelled at job start created no output or core request. These cases used controlled service and UI-state tests; no live import modified a server.
|
||||||
|
|
||||||
|
**Snapshot progress:** On private beta14 the channels-only export finished with phase `channel`, 2 of 2 processed steps, one saved channel and one channel-permission issue. A completed count is not a claim that all steps succeeded. Separate tests checked stale jobs, connection and attachment changes, cancellation, and terminal report preservation. Twenty focused native tests passed. No snapshot changes were applied to the live server.
|
||||||
|
|
||||||
|
**Opening client snapshots:** The live Windows Open dialog showed the saved beta14 catalog and target server UID. Separate selection and codec tests rejected malformed JSON, server-side exports and oversized documents without creating import tokens. Reconnect invalidated the original selection. No import was applied to the live server.
|
||||||
|
|
||||||
|
**Channels-only snapshot on Windows:** A muted guest opened Export from the server menu on private beta14. Cancelling the real Save dialog created no file. A second export wrote the named JSON file with exactly the requested channels section. Its permanent channel hierarchy matched the current roster (one channel). The report was **partial**, with one channel-permission issue; progress was visible. Opening the saved file through the Windows Open dialog showed the matching catalog, metadata and target server UID in Slint. No snapshot was applied and no permissions were changed. This verifies the channel_list consumer, not a fully privileged export of every section.
|
||||||
|
|
||||||
|
**Channel Info on Windows:** On private beta14, a muted guest opened Channel Info from the temporary channel's Slint menu. The visible name, edited topic and multiline description matched the selected channel. Back cleared the details; selecting the lobby showed its own properties without joining it. Separate tests exercised out-of-order results, reconnection and invalid reply cardinality. A real stdio test rejected invalid arguments for channel_info, channel_description and channel_list before connection lookup. This verifies the Windows channel_info workflow, not all channel administration.
|
||||||
|
|
||||||
|
**Contact highlighting:** The Slint Appearance switch saved its disabled state across two restarts. Turning it back on marked the saved contact's tree row; a different UID reusing the same client number was not marked. This used isolated roster snapshots, not live presence or a screenshot comparison with the official client.
|
||||||
|
|
||||||
|
**Local contact editing on Windows:** The offline Slint test added a UID and name, rejected malformed and duplicate UIDs without changing memory or disk, set and cleared an alias, and restored the alias and ignore entry after restart. Ignoring stored the UID and original name, not the alias. Cancelling removal kept the contact; confirmed removal survived a second restart. A separate runtime test used ordered roster and chat events to distinguish UIDs even when the client number was reused. These checks cover the local contacts preference and its uid, name and alias fields, not cloud presence or live private chat interoperability.
|
||||||
|
|
||||||
|
**Copy download location on Windows:** Transfer Settings displays the saved path both immediately after selection and after restart. The copy action uses that setting, not the cached OS Downloads grant. A service test checked the empty and configured strings, and a Winit/Slint test activated Copy and observed os_actions_disabled in an isolated profile. The real Windows clipboard was neither read nor written. Two live download scenarios passed in the same revision; a third stopped at login with TS 3329 before its picker opened.
|
||||||
|
|
||||||
|
**Inline channel image on Windows:** A muted guest sent a ts3image link in the Slint channel chat on classic beta14. Activating it loaded the fixture PNG; its RGBA bytes matched the 2-by-1 red/green reference and the window painted red to the left of green. Reconnecting rejected a request from the retired session and stale asset results while accepting the replacement conversation's result. Three decoder checks covered size and format boundaries; a stdio check rejected invalid file_fetch_image requests. No HTTPFT, S3 or external image fetching was exercised.
|
||||||
|
|
||||||
|
**Pause, resume and cancel on Windows:** A muted guest downloaded `teamspeach-transfer-control.bin` from classic beta14 at a configured 1 MiB/s. The Slint row showed positive partial progress before Pause. Cancelling the paused transfer left the destination and staging empty. Resuming a second paused transfer published all 4 MiB, checked byte for byte. The fixture has 64 blocks of 65536 bytes: byte zero is the block index; other bytes at offset i are (i + (i >> 8)) modulo 256. One stdio test verified the ID bounds for all three commands, and four core loopback tests exercised resume offsets, cancellation and replaced partial files. This covers `command:file_pause`, `command:file_resume` and `command:file_cancel` on classic storage.
|
||||||
|
|
||||||
|
**Download failure and overwrite:** With classic beta14 the Slint file browser downloaded the selected file into the approved folder and reported 46 B / 46 B. Cancelling overwrite kept the existing bytes; confirming a one-off picker after reconnect did not enqueue a transfer. Three separate Windows tests verified that a partial staged write followed by StorageFull preserves the previous file, a cancelled copy leaves no partial replacement, and a replayed core event does not retry a failed export. The storage-full error was injected at the writer, not produced by filling a volume. This covers `preload:filesDownload` and `main-only-command:file_download` on classic storage.
|
||||||
|
|
||||||
|
**Transfer history on Windows:** After a real download from private beta14, the guest reopened the list from the file browser and saw 46 B / 46 B for the published file. Reconnecting on the same tab produced a fresh session key, an empty core transfer list and an empty Slint panel. Over stdio, an unexpected channel_id returned bad_request; empty arguments without a connection returned not_connected. This covers `command:file_transfers` on classic storage, not sustained transfer speed.
|
||||||
|
|
||||||
|
**Channel file list on Windows:** The guest opened the default channel's file browser from its Slint menu on private beta14. The listed filename and size matched the 46-byte fixture, and Download from that row produced the exact bytes. A separate live test rejected a stale picker after reconnect. The stdio test rejected invalid paths, unknown fields and out-of-range IDs before connection lookup; the largest valid channel ID reached the connection gate. This covers `command:file_list` on classic storage, not HTTPFT or S3.
|
||||||
|
|
||||||
|
**File chooser release:** The last-used directory hint retains only a path. Releasing an unused token drops the backing lease; attempting to download with the released token returns bad_request before dispatch and leaves existing bytes unchanged. A separately retained in-flight staging grant survives token release until the transfer reaches a terminal state. All 13 file-service tests passed. This verifies the native service equivalent of `preload:filesRelease`; the OS picker and reconnect case were verified separately.
|
||||||
|
|
||||||
|
**Transfer settings readback:** The Windows Slint controls saved 8 download slots, 2 upload slots and directional limits of 1.5 and 2.5 MiB/s. Restart restored all four fields, both limit switches, the prompt choice and the selected directory; a real beta14 guest download reached that directory. Four separate checks covered the numeric controls, divided rate configuration sent to two simulated core sessions, invalid or rejected changes, and persistence failure. This is UI and scheduler-command evidence, not a measured two-peer wire rate.
|
||||||
|
|
||||||
|
**One-off Windows download folder:** With Always Ask enabled, cancelling the system picker queued no transfer and created no output. Confirming a picker left open across a reconnect in the same tab returned `target_changed`. The replacement session downloaded the 46 fixture bytes only after a new selection, without changing the default folder. All three download-directory tests passed on private beta14 with classic file storage. This covers Windows `preload:filesChooseDownloadDir`.
|
||||||
|
|
||||||
|
**Windows default download folder:** Transfer Settings selected and cancelled through the system folder picker. After restart, a muted beta14 guest downloaded the fixture's 46 known bytes using classic file transfer into the selected folder. Cancelling an overwrite preserved the existing bytes without queuing a transfer. A separate restart test removed the selected folder and observed the restore error without recreating it or staging a download. To reproduce the positive test, provision `/teamspeach-download-smoke.bin` in the disposable server's default channel with `BYTES` from `native/src/smoke/download_folder_fixture.rs`; the guest needs list and read permission only. This covers Windows `preload:filesChooseDefaultDir`, not S3, uploads, or multi-tab limits.
|
||||||
|
|
||||||
|
**Recording destination on Windows:** Audio Settings opened the Windows folder picker. Selecting a disposable folder updated Settings; Cancel retained it, generic preferences could not replace it, and two fresh runtime launches restored it. Both beta14 recording exports landed in that folder. A separate service test rejected failed persistence and stale chooser results without granting access. This covers Windows `preload:pickRecordingFolder` and `preference:recordingFolder`, not Android or iOS document pickers.
|
||||||
|
|
||||||
|
**Recording commands on beta14:** The Slint panel started, paused, resumed and stopped a master take in a disposable destination. The track waveform, recorder status and info were checked against the silent PCM export and its timeline. Cancelling or submitting an invalid start left the destination untouched. During a second take, old buttons and a queued Stop could not pause or stop it; the first WAV remained byte-for-byte intact. Reconnection opened an idle recorder. Eleven native checks passed. A separate offline stdio test rejected malformed arguments for all seven recording commands with bad_request and preserved an existing file. No physical audio devices were opened.
|
||||||
|
|
||||||
|
**Publication consent and registration:** Old Slint callbacks and queued actions cannot start or stop a replacement capture even when the tab and source match. A registered Stop also checks the publication identity when the server stream ID and owner match. A delayed setup reply leaves a publisher in Starting after an early stream ID; a refusal releases its source and unregisters that ID. Eight Windows tests passed, including the beta14 generated-source publisher scenario. This did not exercise the OS picker, physical capture consent, or a real refusal displayed by the chooser workflow; `command:stream_setup` remains open.
|
||||||
|
|
||||||
|
**P2P signaling after an ICE restart:** `native_viewer_signaling_rollback_and_ice_restart` used two native Windows peers with host-only ICE. An early candidate waited for the remote offer, and the viewer sent its answer before local candidates. After rollback and renegotiation the viewer rejected a retired ICE username fragment and decoded a green frame on the new selected pair after decoding red on the original connection. Four focused regressions covered candidate routing and cancellation; 16 core protocol tests passed, including signaling object and byte limits. This verifies `command:stream_signal` with native peers, not official-client interoperability.
|
||||||
|
|
||||||
|
**Watching a closed P2P stream:** `slint_watch_admits_and_presents_generated_av_on_beta14` exercised Watch and Allow on the selected stream tiles. Before admission the viewer applied no offer and decoded no audio. After admission the viewer tile presented generated red pixels and its decoder received at least 30 matching blocks of a 1 kHz tone. A different observer cancelled before admission; using its stale action after disconnect did not start playback on the selected tab. This covers Windows `command:stream_join`, not physical devices or an official client.
|
||||||
|
|
||||||
|
**Channel-wide stream discovery:** On private beta14, `duplex_qa --stream-lifecycle` returned an empty list for a solitary client. After a second client connected, its untargeted request returned only the publisher and a matching P2P announcement. Targeted discovery returned the same stream. The observer's Slint Streams stage showed the registered ID, updated title and Watch action. Separate tests covered partial refusal, stale and overlapping requests, and an SFU announcement displayed without a P2P Watch action. The SFU case used fixture data, not a live SFU transport.
|
||||||
|
|
||||||
|
**Voluntary viewer leave on beta14:** With two viewers receiving generated video, the second left the stream. Its native peer was released, decoder statistics were no longer available and no decoded frame remained. The publisher retained only the first viewer, which received new magenta frames without rejoining. After a fresh join by the second viewer, stopping its old handle again did not interrupt the replacement. Separate tests covered one leave request across a delayed acknowledgement and rejected a stale UI close for the same stream ID. This verifies Windows `command:stream_leave`; physical audio and the official client were not exercised.
|
||||||
|
|
||||||
|
**Removing one of two active viewers:** In `approved_beta14_viewer_receives_generated_video`, the second viewer requested access again after refusal, was admitted, and decoded red and green frames. The publisher used that viewer's named Slint removal action. Only that viewer entered Removed, with no frame left to present. The publication remained live and the first viewer decoded three new blue frames before the publisher stopped it. Two separate publisher regressions verified that a reused client number does not transfer manual or queued removal to a replacement UID. This covers Windows `command:stream_remove` with generated video, not physical capture or an official peer.
|
||||||
|
|
||||||
|
**Stopping an active broadcast:** In the three-client Windows beta14 test, the publisher invoked Stop from the Slint tile for the registered stream while the admitted viewer was receiving video. The source rejected another frame, the publisher had no pending or admitted viewers, and the admitted viewer ended with no frame left to present. The refused viewer stayed declined. Fresh discovery from both viewers did not bring the stream back. This covers `command:stream_stop` for a generated source, not physical capture or an official client.
|
||||||
|
|
||||||
|
**Viewer admission and video on beta14:** In `approved_beta14_viewer_receives_generated_video` three muted native tabs connected to private beta14. From its Slint tile, the publisher admitted the first viewer to a closed publication. That viewer answered and decoded three red frames. The second viewer requested the same stream and received a refusal, sent no answer, and was not admitted. Only after the refusal did the source switch to green; the first viewer decoded three green frames without rejoining. Its departure emptied the publisher's viewer list. This covers Windows `command:stream_respond` with generated 64×48 video on the same host, not physical capture, audio delivery, or an official client.
|
||||||
|
|
||||||
|
**Viewer admission refusal on beta14:** In `duplex_qa --stream-lifecycle` the publisher received the observer's join request for its registered stream. The server acknowledged the negative response with an empty offer; the observer received the decline message for the same stream. A fresh targeted listing still returned the original publication, and its subsequent metadata update and stop were observed. Both disconnects were confirmed. No viewer was admitted and no media was sent in this run.
|
||||||
|
|
||||||
|
**Active publication editor:** On private beta14, `active_publisher_settings_cancel_and_update_on_beta14` opened the Slint editor from a registered publisher tile with a generated source. Cancelling kept the original title. Saving changed the tile title; the observer's fresh discovery returned the same stream ID and owner with the new title, 2700 Kbps and a viewer limit of 4. Editing does not grant or change the audio or video capture source. The separate core lifecycle check exercised audio metadata; this UI run did not change the audio flag or measure media delivery.
|
||||||
|
|
||||||
|
**Stream metadata updates on beta14:** In `duplex_qa --stream-lifecycle`, the observer requested the publisher's stream before the update and again after the server acknowledged it. The same stream ID and owner were returned with a new name, bitrate 2500 instead of 1000, viewer limit 3 instead of unlimited, and audio enabled instead of disabled. Both clients disconnected cleanly. Separate native publisher tests checked the last confirmed options before acknowledgement, admission during privacy changes, server refusal, and a late acknowledgement after disconnect. This measures advertised metadata, not encoded bitrate, actual audio delivery, or the rendered settings dialog.
|
||||||
|
|
||||||
|
**Stream registration on beta14:** Two muted disposable guests ran `duplex_qa --stream-lifecycle`. The publisher received its assigned ID in `notifystreamstarted`. The observer requested the publisher's stream list and received `notifystreaminfo` matching the ID, name and owner. Beta14 rejected an ID-only stop with TS 1542 (missing parameter). With `reason=1` it acknowledged the stop and the observer received `notifystreamstopped` for that exact stream ID. Both disconnects were confirmed. No viewer joined, and no audio or video was transmitted in this scenario.
|
||||||
|
|
||||||
|
**Audio and moving video on two local WebRTC peers:** The focused Windows test `decoded_tone_and_moving_video_on_local_peers` measured the generated 1 kHz tone in 43 of 46 decoded 10 ms audio blocks (22080 samples; normalized RMS 0.06233). A matching block requires more than 80% of its first-channel energy at 1 kHz and a minimum signal level. In the same run libvpx decoded 13 video frames and 12 increasing frame counters reached the display path. The source stop callback ran once. This verifies same-host audio and video transport before physical playback; it does not verify TeamSpeak signaling, an official client or a physical device.
|
||||||
|
|
||||||
|
**Two-colour WebRTC loopback:** The Windows `webrtc_smoke` example sent 14 generated 64×48 frames between two native PeerConnections. The software decoder reported libvpx and 14 decoded frames; the display path presented seven red frames followed by six green frames. The ended source rejected further input, its stop callback ran once, and the closed surface had no pending image. No physical audio device was started. Screenshots: `target/codec-fixtures/peer-loopback-red.png` and `peer-loopback-green.png` in the same directory. This tests local video transport, not audio delivery, TS6 server signaling, an official peer, AV1 or H264 High negotiation.
|
||||||
|
|
||||||
|
**Clock format:** On Windows, switching the Chats setting changed the time shown on an already loaded history row. After restart the saved format was restored; switching back updated the same row, and reopening the profile returned the original millisecond timestamp. Recent Server Events showed the same event in both clock formats in English and Russian, retaining its row ID and raw log. Seven focused tests passed using isolated profiles and fixture events.
|
||||||
|
|
||||||
|
**Server-target send on beta14:** In the extended Windows Slint send test, the two disposable guests exchanged the private and channel messages. Sending from the server conversation returned `PermissionsClientInsufficient`. The sender saw the refusal, with no own echo; revisiting that server conversation restored its unsent draft. No matching message was visible in the recipient's server conversation. This is evidence of server-target refusal, not successful broadcast. The live test and three focused core validation tests passed.
|
||||||
|
|
||||||
|
**Live private and channel text:** Two native tabs with different identities connected to private beta14. The Slint editor sent Unicode text to the exact private recipient and then to the joined temporary channel. In each case the sender saw one echo and its draft cleared after acknowledgement; the other tab displayed the exact text and sender UID in its own conversation. An 8193-byte draft was rejected locally and retained. This did not exercise server-target text, a denied send, or reassignment of a client number during delivery.
|
||||||
|
|
||||||
|
**Protected channel creation and join:** Two disposable guests used a private beta14 server. The holder's Slint Create Channel form retained the over-limit password with an inline error; cancelling the draft did not create a room or retain its secret on reopen. After submission both rosters showed the new temporary channel as protected. Selecting the row and cancelling the join prompt left the joiner in the lobby. An incorrect password opened an empty retry field with the localized refusal; the correct password moved the exact client on both rosters and both Slint trees. This covers channel_create.channel_password and command:join_channel on Windows, not bookmark login or physical audio.
|
||||||
|
|
||||||
|
**Channel subscriptions:** On private beta14, `channel_admin_qa --channel-subscriptions` verified single and all-channel subscribe/unsubscribe through fresh snapshots of the original, non-own lobby after explicitly clearing the connect-time subscribe-all mode. The server expired the generated temporary channel and confirmed disconnect. There was no second non-own channel to verify isolation. Without the explicit initial reset, the lobby showed unsubscribed after leaving it; subscribe was acknowledged but snapshot revision stayed at 4. Do not infer a transition from that acknowledgement. A separate Slint menu test using fixture snapshots checked individual and bulk command arguments and rejected stale menu IDs. Live UI permission refusal and reconnect before acknowledgement remain open.
|
||||||
|
|
||||||
|
**Chat preferences (Windows, isolated control events):** Four native tests passed. For `preference:chatOpenIncoming` an incoming private conversation stayed hidden with auto-open off, appeared as an unread background tab when enabled, and retained both messages. Neither the viewed room's draft nor the input-owning session changed. For `preference:chatIgnoredUsers` the contact's Ignore/Unignore actions controlled chat delivery by exact UID: explicit sender identity took precedence over the roster, while an absent sender UID used the preceding roster. A different UID using the same nickname and number remained visible. For `preference:chatShowModerationEvents` the visible timeline hid existing events when disabled and restored events received both before and during suppression. Only the two ordinary texts appeared in persisted channel history. Server control events were supplied by the fixture; no official peer or network delivery was tested.
|
||||||
|
|
||||||
|
**Connected Whisper settings:** Two native tabs on private beta14 changed the receive policy through the Slint selector and kept their connections. With the same saved F9 receiver list and input owner, the sender transmitted 42 synthetic frames under each policy. Deny All produced no remote talking or new whisper notification; switching back to Allow All restored remote talking and exactly one sender-matched notification. The frames were paced independently of UI rendering. A separate restart check restored the saved Deny All selection. No physical audio devices or OS-wide key registration were involved.
|
||||||
|
|
||||||
|
**Audio PTT checkbox:** The rendered checkbox, key binding and dependent controls followed the saved mode across two restarts. A failed save left the old mode intact. On private beta14 with VAD disabled, turning PTT off after key release resumed an already authorized synthetic input without another key press. Turning PTT back on stopped transmission and cleared the remote talking indicator; the next hold transmitted again. No physical device or global shortcut was used.
|
||||||
|
|
||||||
|
**Whisper through reconnect (Windows, beta14):** In `duplex_qa --whisper`, the receiver identified a 1450 Hz whisper from the live sender before that sender disconnected without stopping its whisper. After the sender reconnected, frames carrying the old tag triggered neither local transmission nor playback or a whisper notification. The receiver then decoded 42 ordinary 1750 Hz frames without a whisper notification. All three disconnects were acknowledged. This covers two diagnostic cores on loopback, not a physical shortcut, an official peer, or reassignment of the recipient's number.
|
||||||
|
|
||||||
|
**Sidebar preferences:** The Windows offline workflow `bookmark_sidebar_and_local_contact_reopen_without_network` covers `preference:savedServers` and `preference:bookmarkOrder`. It reopens the saved identity, nickname, channel and startup flags, checks the mixed folder/bookmark order after restart and preserves both disk and memory on a failed save. Duplicate and incomplete order writes are rejected. This does not verify bookmarked network login or a system password store.
|
||||||
|
|
||||||
|
**Moving bookmark folders:** The same Windows sidebar workflow moved the populated Outer folder under Archive through its Move form. After restarting the runtime and cancelling Archive deletion, it navigated the moved hierarchy and found the original folder and deep bookmark IDs. Confirmed removal deleted the subtree but retained Outside. This adds the folder-move case for `preference:bookmarkFolders`; the workflow uses shell actions, not physical pointer input.
|
||||||
|
|
||||||
|
**Client information readback:** On private TS6 beta14, `channel_admin_qa --client-info` returned version and platform for the exact roster client and rejected a mismatched UID locally. In `participant_info_menu_rejects_a_previous_session_target`, the Slint participant menu displayed version and platform for the first identity, cleared the details on disconnect, rejected the previous target after reconnect with a visible `target_changed` error, and opened fresh details for the second identity. A core regression separately covered disappearance or reuse of a client number before acknowledgement. The live menu test did not force a disconnect while a reply was in flight.
|
||||||
|
|
||||||
|
**Database identity readback on beta14:** With guest database search permission, `channel_admin_qa --client-database-id` returned the same positive database ID, UID and nickname from UID lookup and nickname search. Disconnect, core shutdown and profile cleanup succeeded. This was a read-only CLI check. In the original unprivileged run the UID lookup succeeded but the nickname search was refused with TS 2568.
|
||||||
|
|
||||||
|
**Directory search:** The Slint file browser filters the current listing without issuing a database search or a new file-list request. The test `directory_filter_keeps_file_targets_and_resets_on_navigation` matched a mixed-case Cyrillic name, kept the parent entry, included a new match after refresh and verified the selected file's original channel, path and session. Opening another directory cleared the filter. Three focused Windows tests passed; this did not exercise a network file transfer.
|
||||||
|
|
||||||
|
**Client database search and pagination:** Initial, searched and paginated results use the same server-context projection. Windows test `database_pages_and_search_results_keep_permission_and_target` checked the captured session and database ID, retained search/offset and enabled/disabled delete action for explicit allow/deny hints. Three projection and validation tests passed. No live database enumeration or deletion was attempted in this run.
|
||||||
|
|
||||||
|
**Connected nickname change:** On private TS6 beta14, `nickname_refusal_keeps_draft_and_retry_updates_only_own_identity` opened the tab's rename form with the current nickname, rejected a two-character draft locally and kept a refused duplicate nickname editable. On retry, both clients saw the trimmed new name with the original server-reported UID and client ID. Reopening the temporary profile confirmed that only the initiating local identity's nickname changed. The test binds server UIDs to the acknowledged client IDs rather than assuming a server-reported UID equals a local profile UID.
|
||||||
|
|
||||||
|
**Channel member disclosure:** The tree stores collapsed channel IDs under the server address in `collapsedChannels`. Collapsing hides direct members only: child channels and their members remain visible. A Windows Slint test exercised disclosure, two restarts, a different address reusing channel 7, and re-expansion on the original address in EN/dark and RU/light. The preference test checked pruning, isolation, rejection of malformed entries and preservation of disk and memory after a failed save. Three focused tests passed with fixture rosters; no network channel move or subscription was involved.
|
||||||
|
|
||||||
|
**Participant order in the desktop tree:** The Slint appearance test measured a participant and a nested channel under the same parent. Changing tree density kept their order. Turning off Show clients before channels then placed the subchannel above the participant without changing either row height or the selected channel. The order persisted after restart in EN/dark and RU/light. This exercised the rendered tree with a fixture roster, not a server-side move.
|
||||||
|
|
||||||
|
**Desktop tree style:** The Appearance selector now changes the rendered client rows. Compact uses 28 px rows, 22 px icons and 15 px nicknames; Detailed uses 40 px rows, 33 px icons and 14 px nicknames, following the [TS6 tree specification](docs/evidence/official-parity/ts6spec-tree.md). The Windows Slint test `tree_style_resizes_only_client_rows_and_survives_restart` measured the visible client and channel hit areas before the change, after the change on the same session, and after restart. The channel stayed 44 px high and channel 7 remained selected. Covered EN/dark and RU/light with fixture rosters, not full screenshot or live-audio parity.
|
||||||
|
|
||||||
|
**Display Size and the desktop sidebar:** `display_size_survives_failed_save_and_two_restarts` activated the real Appearance radio tiles in the Windows Slint software renderer. Small saved before the fix but left the collapsed footer at 62 px; after the fix Small, Medium and Large measured 52, 62 and 72 px wide, all 55 px high. In each EN/RU and dark/light combination, the first runtime restart restored Small, then Large was saved and a blocked atomic write for Medium returned `io`, leaving Large selected and `prefs.json` byte-for-byte unchanged. The second restart restored Large; the tile and footer also remained available at 900 x 800. The test dragged the sidebar closed from its default width and also exercised reopening it to 250 px and collapsing again in EN/dark. This was disconnected, using disposable profiles and fresh runtime/window instances within one test process, not a live voice/chat or official screenshot comparison.
|
||||||
|
|
||||||
|
**Default channel background:** The pinned 6.0.0.5232 bundle gates the no-image fill separately from the channel highlight (`main.js` character offset 3898723). Windows test `channel_background_updates_pixels_and_survives_failed_save_and_restart` actuated the native Appearance switch in English and Russian, light and dark, then measured the Slint software-rendered rows on an isolated synthetic roster. Disabling removed the default fill on selected and unselected channels and the idle spacer; selection outline, row bounds, order, and the client and server-header pixels stayed intact. Reopening the disposable profile restored Off; a refused atomic write returned `io`, kept all preference bytes, and preserved row paint within one RGB value after accounting for the visible error banner’s measured vertical offset. At 900 × 800 the rows and selection remained visible. The test used fresh runtime/window instances, not a new process, and did not exercise server-supplied banners, compact/mobile layout, or live media. This is native control-level evidence, not a whole-frame reference comparison.
|
||||||
|
|
||||||
|
**Server-backed channel banners:** The pinned 6.0.0.5232 tree gates the banner URL on Show Channel Banners and uses the separate default background when no banner is usable (`main.js` offsets 3885438 and 3898723). The native desktop tree follows that split for `ts3image://` raster banners. It requests the current channel through the existing `FetchBanner` core route, checks the viewed session and announced reference before accepting results, and never hands arbitrary URLs to Slint. The decoder accepts PNG, JPEG, GIF and WebP under the existing allocation and dimension limits; banner replies are capped at 4 MiB and retained rasters are reduced to at most 1024 × 128 RGBA pixels. With 64 entries this bounds the steady-state runtime raster cache at 32 MiB, excluding in-flight decode buffers and renderer copies. Failed loads are not cached; showing the row again or toggling banners back on permits a fresh request. Off clears cached images and invalidates outstanding results, even after re-enabling.
|
||||||
|
|
||||||
|
The Windows Slint test `channel_banners_render_replace_clear_and_follow_saved_visibility` used real encoded PNG replies at the offline transport boundary and exercised English and Russian in both stock themes. It measured the banner and an independent no-banner row, verified replacement, clearing, fallback behavior, unchanged selection outline and session ownership, persistence after reopening the runtime, and a refused atomic write that preserved the exact preference bytes. It also measured a 1600 × 400 source retained as 512 × 128, rejected SVG and external URL inputs, and exercised a late reply and same-reference retry in EN/dark. The test did not exercise real server file transfer, HTTP(S) banners, animated or full banner modes, mobile layout, a process restart, or whole-frame parity.
|
||||||
|
|
||||||
|
**Global shortcuts and OS settings:** The [installed settings review](docs/evidence/official-parity/ts6spec-settings.md) records TS6's Windows-specific OS page and shortcut registration feedback. TeamsPeach lists the OS page on other platforms too, with capability-specific availability. Global shortcuts use Windows, X11/portal or macOS Carbon backends; saving a binding is not proof of physical registration. Native taskbar status now uses the same hide-mode interpretation as the tray action. Windows test `taskbar_capability_tracks_the_selected_hide_mode` selected minimize, close, both and never: the capability flag followed all four settings. The lock-mute description now matches the handler: unlocking does not unmute the microphone. This test did not hide a window in the tray, lock the workstation or exercise physical shortcuts.
|
||||||
|
|
||||||
|
**Appearance and local privacy reference:** The [installed settings review](docs/evidence/official-parity/ts6spec-settings.md) describes theme, sizing, tree and chat styles, trusted sites and restoration of suppressed confirmations. Earlier static inspection found rendering consumers for display size, chat compactness, clients-before-channels and contact highlighting; later native evidence above covers other individual settings. Chat links pass through native URL classification and consent; remembered hosts are guarded by the flagged-site preference. The optional phishing-list refresh fetches the list, not the user's visited URLs. Reset Confirmations restores four preferences, but the inspected operation paths do not consult them; for example, clearing transfer history always prompts. These static comparisons are not proof of native visual parity, OS effects or confirmation suppression.
|
||||||
|
|
||||||
|
**Chat formatting and unread badges:** The [TS6 chat specification](docs/evidence/official-parity/ts6spec-chat.md) describes line-based formatting, BBCode and toolbar controls. TeamsPeach parses bounded typed nodes in `native/src/services/chat/parse.rs`, falls back to literal text on complexity overflow, and renders styled Slint runs, not HTML. Inactive conversations and messages arriving while older history is open contribute to unread counts. Returning to the latest messages clears the relevant conversation. The installed-client matrix identifies `setBadgeText`; native Windows uses a taskbar overlay, macOS a Dock label, and Linux a launcher signal on supported desktops. This comparison does not verify identical rendered text or a visible badge on those platforms.
|
||||||
|
|
||||||
|
**Notifications reference (2026-11-27):** The [installed settings review](docs/evidence/official-parity/ts6spec-settings.md) identifies a separate output selector and fader, group enablement, Listen and advanced per-event overrides. The official English locale names talking while muted (`settings.notifications.warnings.talking_while_muted`). TeamsPeach has the setting, sound and recent-event mapping, but its runtime has no muted-speech detector feeding that event. In particular, a rejected muted audio frame does not establish speech. Windows Listen/policy coverage is recorded below; the warning's source, setting and group acceptance remain open. Microphone capture policy has not been changed for this comparison.
|
||||||
|
|
||||||
|
**Recording mode preference (Windows, TS6 beta14):** The Audio settings selector saved Master. An invalid mode (4) returned `bad_request` and left Master selected. The same temporary profile was reopened twice; on the third launch the recording form offered Master by default. Choosing Multitrack and cancelling created no output. Reopening and submitting without changing the mode produced a finalized mode-2 manifest and a master WAV whose size matched the recorded timeline. Verified by `recording_panel_exports_a_paused_and_resumed_master` with a preapproved destination; the OS directory picker was not exercised.
|
||||||
|
|
||||||
|
**Local recording (Windows, TS6 beta14):** The installed English locale (`server.recording.*`, lines 2979–3005) names Master, Multitrack and Both, pause/resume, output folder, tracks and disk-overrun warnings. In `recording_panel_exports_a_paused_and_resumed_master` a real Winit/Slint window on loopback opened the recording form, selected Master, displayed track waveform data, paused, resumed, stopped and published the take through the Windows document adapter. The exported manifest contained mode 2, one pause and a positive frame count; the WAV length was exactly 44 + 2 bytes per frame (44-byte header plus 16-bit mono PCM). The take directory matched the start timestamp. This used a temporary profile and a preapproved temporary folder, not the OS picker or a physical microphone. Multitrack content, overflow, failed finalization and overwrite cancellation have separate checks.
|
||||||
|
|
||||||
|
**Stream volume control (Windows):** Moving the Slint slider previews gain on the selected viewer; releasing it or submitting the volume form saves a whole percentage for future viewers. A midpoint click dispatched approximately 0.5 gain. A disposable profile reopened at 0%, 43% and 100% after saving gains of 0, 0.426 and 1. Four focused UI, profile, viewer and PCM mixer tests passed. These checks used an isolated mixer, not live WebRTC or a physical output device.
|
||||||
|
|
||||||
|
**SFU stream offers (2026-11-27):** A mode-2 announcement now produces a stream tile with the localized SFU limitation and no P2P Watch action. A later metadata update can change one tile without disabling P2P streams from the same publisher. The media hub checks the latest announcement before registering a viewer or issuing a join. Windows tests `server_routed_stream_tile_has_no_p2p_watch_action` and `announced_sfu_mode_never_starts_a_p2p_join` passed with headless Slint and a recording signalling fixture. This verifies the inventory's explicit unsupported behavior, not mode-2 negotiation or media delivery.
|
||||||
|
|
||||||
|
**Channel description (Windows beta14, 2026-11-27):** The guest was refused creation with a description, then created a plain temporary channel. In the Slint editor it saved two lines, read them back via both the editor and `channel_description`, retained an oversized draft with an error, and cancelled an edit without changing the server value. Clearing the description returned an explicit empty string on a fresh read. The live test uses the same five-second request spacing as `channel_admin_qa`; an earlier unpaced edit hit `ClientIsFlooding`. Four core tests separately cover invalidation, including a pending read and an unrelated channel. Positive create-with-description is still unverified.
|
||||||
|
|
||||||
|
**Matrix reference (2026-11-27):** The [official chat review](docs/evidence/official-parity/ts6spec-chat.md) distinguishes the account-gated central/homebase path from decentralized server rooms using server identity and `MATRIXCHAT`. Central Matrix is outside the account-free contract. Rust detects server advertisement and displays a limitation in the ordinary server conversation; it does not perform discovery, Matrix login, invitation handling or sync. A classic server-target text send is not a Matrix room send. Neither the source review nor a Matrix-negative server proves positive Matrix interoperability.
|
||||||
|
|
||||||
|
**Stream reference (2026-11-27):** The [official client notes](docs/evidence/ts6-official-client.md) distinguish P2P offer/answer, ICE and realignment from mode-2 SFU access and mediasoup negotiation. Native P2P has session-bound discovery, per-viewer peers, capture consent and preview, renegotiation, decoder checks and bounded frame delivery. Fullscreen and pop-out reuse the existing stream. Compared to the [official settings](docs/evidence/official-parity/ts6spec-settings.md), the native stage has a vertical tile list, no source-resolution preset and one selected application-audio source rather than All/Exclude scopes. Native status is not a full RTC throughput panel. Server publication explicitly rejects SFU; on the receive side the inspected Watch action and hub did not check an advertised mode 2 before a P2P join. No successful SFU endpoint or live official-peer negotiation is claimed.
|
||||||
|
|
||||||
|
**File transport comparison (2026-11-27):** The [official storage evidence](docs/evidence/ts6-filetransfer-native.json) distinguishes legacy file verbs, HTTPFT and S3. TeamsPeach implements legacy TCP transfers and mutations. For ordinary S3 channels the active core requests channel-wide listings and signed GET/PUT URLs, correlates notifications and acknowledgements, and awaits upload completion; it does not fall back to legacy on unsupported mutations. HTTPFT-only storage remains unsupported. The historical matrix's combined blocked status is not the current S3 implementation status. The recorded empty S3 listing is not proof of populated listings, successful TeamSpeak-signed transfers or overwrite behavior; see the [bridge contract](docs/bridge.md).
|
||||||
|
|
||||||
|
**Device recovery UI (2026-11-27, supersedes the display gap in the reference comparison below):** After the first device enumeration, Audio and Notifications settings identify an absent or unconfigurable saved route and suggest reconnecting the device or selecting another. Before enumeration no absence is claimed. When the saved endpoint returns, the warning clears and its name reappears without a route-selection request. Windows headless Slint exercised capture, playback and notification choices (`saved_audio_device_recovers_without_switching_routes`); two focused tests passed. Physical device removal and recovery of an active stream were not exercised.
|
||||||
|
|
||||||
|
**TS3 file links (2026-11-27):** The installed TS6 English locale (lines 160–164) names download progress, disconnected/error states and Open File. TeamsPeach creates server- and channel-scoped links in its file browser and enables a file card's download action only in a conversation on the matching server UID. An IPv6 literal in brackets previously prevented detection of the copied URL. Windows test `copied_ipv6_file_link_reopens_the_same_chat_attachment` checks the browser encoder through chat attachment extraction, both bare and inside BBCode, including a nondefault port, encoded UID, spaces, plus sign, ampersand and brackets in the path/name. Three focused tests passed. No server transfer, OS file opening or visual card-state parity was exercised.
|
||||||
|
|
||||||
|
**Voice DSP, devices and 3D reference (2026-11-27):** The installed TS6 locale (`en.json` lines 5–12, 1689–1701), [Audio settings specification](docs/evidence/official-parity/ts6spec-settings.md) and [observed profile fields](docs/evidence/voice-official-source-20261029.json) identify per-device DSP, test capture/playback and independent notification routing. Native Audio settings apply capture AEC3/NS/AGC2, per-speaker playback AGC, ducking and comfort noise. Native typing attenuation uses local text-input events; the inspected native profiles have no TS6 `AgcExperimentalMode` equivalent. Explicit missing CPAL device IDs fail instead of silently selecting another endpoint; the native status does not reproduce the TS6 device-recovery prompt. No acoustic equivalence or physical hot-plug result follows from source inspection. The [historical 3D finding](docs/evidence/official-parity/final-feature-matrix.json) records a no-op Sound3D category without a corresponding settings surface; the native inventory preserves this exclusion, not a successful spatial-audio operation.
|
||||||
|
|
||||||
|
**Whisper reference (2026-11-27):** Installed TS6 `locales/en.json` lines 1849–1864 and 2047–2108 name block/reply/list hotkeys, client/channel and group targets, preview, history, Allow All and Deny All. TeamsPeach constructs `C2SWhisper` or `C2SWhisperNew` packets (`core/src/whisper.rs`); held routes and frames are bound to the current generation and epoch, with no ordinary-channel fallback. Preview is presentation only. Receive policy is configured before connecting and on ready cores: Deny All discards incoming whisper packets before decode and clears queued whisper audio (`core/src/audio.rs`). The official JS hooks `SetWhisperReceiveMode` and `HandleIgnoredWhisperEvent` do not establish a server-side refusal. TS6 declares block-hotkey labels without a demonstrated dispatch path; TeamsPeach offers reply, quick and list hotkeys and Deny All in settings, not a block shortcut. Static comparison, not a live recipient or reconnect test.
|
||||||
|
|
||||||
|
**Windows channel form on beta14 (2026-11-27):** `smoke::tabs::channel_create_from_toolbar_and_edit_on_beta14` used the actual Slint toolbar callback and editor on a headless desktop backend, an isolated identity and a live loopback server. For `admin-property:channel_create.channel_name` and `channel_create.channel_topic`, a 41-character name and 256-character topic remained in the draft with inline errors; cancellation discarded a valid draft, and a new form created the temporary root channel with the same name. Its row appeared in the tree and its topic was read back in Edit Channel. For `admin-property:channel_edit.channel_topic`, the editor retained the oversized draft with an error, cancellation preserved the old topic on reopen, and submission displayed the acknowledged new topic on reopen. Untouched optional overrides previously caused a guest permission refusal; codec and encryption now offer Server default. Five additional non-network editor/property tests passed. No physical display comparison, in-flight reconnect, nested-channel placement or privileged position change is claimed.
|
||||||
|
|
||||||
|
**Legacy chat send and local history reference (2026-11-27):** The [TS6 chat specification](docs/evidence/official-parity/ts6spec-chat.md) identifies private, channel and server targets and the native local-history methods. [Channel transport evidence](docs/evidence/official-parity/channel-text-target-evidence.json) distinguishes the channel ID in the client API from the classic wire command: mode 2 has no channel target. TeamsPeach checks the sender's current channel for mode 2 and the recipient UID for private messages before sending (`core/src/session.rs`); it does not promise delivery to another channel. Observed text events populate a profile-owned, paged history keyed by own identity, server UID and conversation (`native/src/services/chat_history.rs`). The installed locale's chat-history setting describes sidebar grouping and notification placement, not whether to persist messages. TS6 file-format compatibility, Matrix transport and end-to-end delivery are not established by this source comparison.
|
||||||
|
|
||||||
|
**TS6 server administration reference (2026-11-27):** Installed `client_ui/locales/en.json` lines 1181–1235, 1253–1427 and 1447–1545 identify ban and client database lists, categorized server settings, log filtering, privilege keys, temporary passwords and snapshots. In TeamsPeach, `native/src/app/server_actions/projection.rs` exposes list, create and delete actions for bans, keys and passwords, raw log lines and database search/pagination. Differences: no ban edit control, no copy control in those key/password lists, and no event-type or identity filter for server logs. Server Edit reads current properties and submits typed changes; its general/advanced form does not reproduce the official categories. Native snapshots support UID-bound import, conflict selection, cancellation and partial results, not the official per-element preview or revert control (see [snapshot comparison](docs/evidence/official-parity/ts6spec-snapshots.md)). This is a comparison of advertised controls and native source, not live administration acceptance.
|
||||||
|
|
||||||
|
**Channel creation reply (2026-11-27, `e6a8d2f`):** On an isolated TS6 beta14 server, `channel_admin_qa` received the new temporary root channel ID, read back its topic and codec quality, changed the topic without changing the name or quality, and read back both client and family limit edits. Invalid quality and stale generation were refused without changing properties. The guest could not place the channel under a parent (TS 2568); family inheritance and explicit sibling positioning remain unverified. Leaving the channel caused it to expire; disconnect, core exit and disposable-profile cleanup succeeded. This exercised core IPC, not the owning Slint dialog.
|
||||||
|
|
||||||
|
**Create Channel position:** The Windows Slint form dropped a previously selected root predecessor when the destination changed to channel 8. The resulting create commands distinguished no channel_order property, an explicit first position (0), and the second of two identically named siblings (13). Six focused create/move editor tests passed. No server mutation was attempted in this test.
|
||||||
|
|
||||||
|
**Channel CRUD reference comparison:** In the installed TS6 UI bundle (SHA-256 `352683c3eb1d674c6b0fe098ec8ba132b696739a33424080c9266b751de41537`), byte offsets 2199453, 1938146, 1936309, 1939071 and 1938521 identify create, property edit, move, delete and description calls respectively. The move wrapper compares parent and predecessor before calling native code; delete passes whether the channel contains clients or children. TeamsPeach uses explicit force and name confirmation on delete. The UI exposes a subscription permission hint; the underlying official subscription call was not established by this inspection. The native core supports subscribe/unsubscribe. The comparison does not establish a live move or delete on a server.
|
||||||
|
|
||||||
|
**Move Channel dialog:** A Windows Slint test opened the form at its current parent and predecessor, changed the parent, and selected the second of two identically named siblings. The resulting typed command targeted channel 42 with parent 8 and predecessor 13; the drag source and its subtree were not offered as destinations. Six focused editor tests passed. No channel move was sent to a server in this run.
|
||||||
|
|
||||||
|
**Channel order readback:** The core regression verified that channel properties retain their wire format while reporting the current parent and preceding sibling. The live check, `channel_admin_qa --channel-order`, requires a private beta14 fixture that permits creating a temporary channel at a specified position. The guest received TS 2568 on creation. Disconnect, core shutdown and profile cleanup succeeded, but neither relinking nor restoration was observed on the server.
|
||||||
|
|
||||||
|
**Legacy channel codecs:** The Windows Slint tab test observed the localized warning for Speex Narrowband, Wideband, Ultra-Wideband and CELT Mono in the visible interface. Selecting an adjacent Opus channel without joining it kept the warning. Viewing an Opus tab or joining an Opus channel cleared it. A separate core test checked that none of the four legacy codecs selects an encoder or produces decoded playback. On private beta14, WebQuery rejected channel creation for each legacy codec (0, 1, 2, 3) with TS 1538, while the same request for Opus Voice (4) succeeded and channelinfo confirmed the codec. The UI used fixture snapshots; a live legacy-channel join and outgoing packet count remain unverified.
|
||||||
|
|
||||||
|
**Voice transmission modes:** The installed TS6 settings distinguish continuous transmission, PTT, voice activation and PTT combined with voice activation. Its detector choices are Automatic, Volume Gate and Hybrid. Five Windows core tests exercised speech onset, level hysteresis and hangover, changes of detector, invalidation of buffered PCM and hybrid rejection of a loud non-speech tone. The native PTT configuration test separately verified that selecting PTT preserves the input device's VAD policy. This is a behavioral comparison, not a claim that TS6's internal detector thresholds match or that an official peer received the audio.
|
||||||
|
|
||||||
|
**PTT release delay (Windows beta14):** On repeated F8 holds with a continuous synthetic capture device, the sender stopped transmitting 127 ms after key-up at 100 ms, 523 ms at 500 ms, and 15 ms with delay off. The receiver's talking state ended after 158, 554 and 46 ms respectively. Focus loss during a 500 ms tail stopped the sender 15 ms after focus loss. These are observations from one loopback run, not audible speaker latency. Separate Slint and profile tests verified preset persistence across restart, rejection of 250 ms and cancellation on profile change.
|
||||||
|
|
||||||
|
**Talk request draft:** The isolated Windows Slint test rejected a 51-character message before emitting any action. With a valid 50-character draft, replacing the tab's session key made Submit show the changed-session notice without dispatching a request. Cancel retained the original target. The separate live reconnect run did not pass: beta14 returned ClientIsFlooding. This result covers the native editor, not a request in flight on the network.
|
||||||
|
|
||||||
|
**Withdrawn talk request:** On the private beta14 fixture, a moderator used a previously captured Grant action after both rosters had received the withdrawal. The native workflow reported target_changed with the pending-request error, and both rosters still showed no request and no talk power. A withdrawal racing with an already sent grant was not tested.
|
||||||
|
|
||||||
|
**Talk moderation on beta14:** Two muted Windows sessions joined a temporary channel with required talk power 50. Both rosters reported a positive timestamp for a request submitted without a message, then its withdrawal. A second request carried the entered text into the moderator's queue. Grant and revoke from that entry changed the requester's is_talker flag in both rosters. This exercised the native form and queue actions, not a physical hotkey, permission denial or reconnect during grant.
|
||||||
|
|
||||||
|
**Away with Message:** Two muted native sessions joined the same private loopback TS6 beta14 using different disposable identities. After cancelling the Slint form both rosters showed both clients online. After confirming a single message, both rosters reported both clients away with that message. The test injected a semantic shortcut event; it did not exercise OS chord registration or a physical keypress. No audio device was used.
|
||||||
|
|
||||||
|
With the next prompt open on the second tab, the first tab disconnected and reconnected. After confirmation, both live rosters showed the replacement online and the original second session away with the new message. The runtime reported the stale recipient rather than reporting complete success.
|
||||||
|
|
||||||
|
**Talk request queue:** The installed TS6 UI lists positive request timestamps in the local channel in descending order (bundle byte 4201898). The Windows native regression checked display order separately from the Grant Next shortcut: a withdrawn request disappears, an already granted peer or the local client is not chosen by the shortcut, and an unknown local channel yields no target. This verifies snapshot selection, not a live permission grant or a physical shortcut.
|
||||||
|
|
||||||
|
**Peer fader Alt-click:** The Windows software-rendered slider test pressed Alt before mouse-down and released Alt while dragging. The draft stayed at -12.5 dB until mouse-up, then returned to 0 dB with mute still enabled. No command was submitted by this gesture. The separate Reset action also cleared mute. This test did not use a live server or a physical output.
|
||||||
|
|
||||||
|
**Peer volume slider:** The Windows software-rendered Slint dialog accepted a pointer drag on the speaker slider without submitting an action. Cancel and reopen restored -12.5 dB. Reset submitted 0 dB and unmuted only after confirmation. The test checked all 421 half-decibel values against the inverse taper and the six official travel anchors. Three targeted dialog tests passed. This covered neither an installed live-peer context menu nor physical audio output.
|
||||||
|
|
||||||
|
**Local speaker volume:** The installed TS6 UI calls setClientVolumeModifier with server handler, client ID, dB and persistence flag (byte 1969424); its fader rounds to half-decibels over -200 to +10 dB (byte 3067840). The native store ignores an undecodable UID without losing other preferences or rewriting the profile on load. Five store tests and two core tests passed on Windows, including reused numeric IDs and decoded two-speaker mixing. This run did not exercise the desktop fader or physical audio output.
|
||||||
|
|
||||||
|
**Multiple connections and microphone ownership:** In the installed TS6 bundle, FindAudioInputServerConnectionHandler (byte 2517988) looks for an established handler with input hardware; automatic activation defaults off and restoration to the previous target defaults on. Three Windows native tests exercised acknowledged handoff, conditional restoration, and rejection of a late session reply. Returning to the already-active tab retained its permit and accepted the next PCM frame. These tests used embedded cores and simulated connected states, not live servers or a physical microphone.
|
||||||
|
|
||||||
|
**Server capability comparison:** The installed TS6 UI uses case-sensitive substring checks on capabilityExtensions (hasFeature, MATRIXCHAT at byte 2232606). The Windows core matched the snapshot and file backend across multi-row announcements, partial edits, explicit clearing and a fresh initserver without extensions. An S3 marker beyond the diagnostic display limit still selected S3. Six targeted core tests passed. No live server capture, transfer or two-tab microphone test was made in this check.
|
||||||
|
|
||||||
|
**Log directory (Windows):** Installation Details showed a missing-directory notice and no Open logs action on a fresh profile. With an empty logs directory in that same disposable profile, the action opened exactly that directory in Explorer. The isolated About regression also rejected a direct OpenLogs operation with os_actions_disabled while the directory existed and kept Diagnostics open. No log contents were inspected and no mobile export was tested.
|
||||||
|
|
||||||
|
**Theme folders (Windows):** From the native Appearance picker, Explorer confirmed the package-specific button opened the disposable profile's `extensions/org.fixture.folder` and the general button opened `extensions`. The isolated Slint regression invoked both actions and received `os_actions_disabled` before continuing through selection and restart. No mobile picker/share claim.
|
||||||
|
|
||||||
|
**Channel visibility transitions (2026-11-27):** Windows passed seven core event/snapshot tests, including a batched enter with a shared destination, a per-client override and a subsequent move with an explicit origin for an uncached client. Five native notification adapter tests passed: supervised moves into and out of the current channel and a kick into it selected the movement log and corresponding WAV file; subscription changes emitted no notification. These were packet and control fixtures, not a live server test, individual Listen preview, or physical playback.
|
||||||
|
|
||||||
|
**Reference comparison (2026-11-27):** The installed TS6 client UI bundle has SHA-256 `352683c3eb1d674c6b0fe098ec8ba132b696739a33424080c9266b751de41537`. Byte offsets here refer to that bundle, not the older matrix hash. At 4721953, Identity Details walks the bookmark tree and includes unassigned entries for the default identity. The Windows Slint reattachment test verified that a nested unassigned bookmark follows a change of default without acquiring an explicit UID. At 3920374 the official refusal dialog chooses the attempted identity before falling back to the default; at 3920620 it reconnects when the required quality is reached. The latter is **not verified** in TeamsPeach. At 2806802 the official theme step stores the selected theme; the offline username strings describe a local, unsynchronized name. The native account-free flow was verified separately below; this is not evidence of identical screen layout or a live official-client run.
|
||||||
|
|
||||||
|
**Identity security challenge:** A Windows client connected to an isolated TS6 beta14 server configured to require level 31. The server refused the nondefault level-9 identity. Windows UI Automation opened the resulting review button and observed the correct identity and target 31; both public identity records and the default were unchanged afterward. The native regression separately checked that restarting the tab invalidates the review action. This run did not attempt improvement to level 31 or a subsequent successful connection.
|
||||||
|
|
||||||
|
**Offline onboarding:** Both a fresh directory and an initialized empty profile persisted the light theme chosen in the Windows Slint form. A failed preferences write created no identity; retry succeeded, and restarting restored one UID and the selected appearance. This was exercised without network or physical audio.
|
||||||
|
|
||||||
|
**Identity list updates:** Windows Slint retained a nondefault UID and its related bookmark when replacing the window attachment, even with identical display names. Editing the nickname in the new window changed only that UID; switching to the default did not expose the other identity's bookmark. Two attachment tests passed. Creation, default selection, additive INI import and confirmed deletion were exercised in the separate identity workflows below.
|
||||||
|
|
||||||
|
**Identity improvement progress:** The Windows Slint regression for `preload:onIdentityProgress` ran two searches on the same disposable identity. A late cancellation for the first job did not stop the second or replace its displayed target and quality; the active Cancel stopped the correct job and its final search offset matched the persisted checkpoint.
|
||||||
|
|
||||||
|
**Identity export cancellation:** Windows UI Automation cancelled the private-key warning and confirmed no Save dialog opened. After accepting the warning, cancelling the native Save dialog left an existing backup unchanged and did not create a new INI. Together with the verified export/import UID round trip, this covers the Windows `preload:exportIdentity` contract.
|
||||||
|
|
||||||
|
**Identity import feedback:** The Windows picker accepted a generated TeamSpeak-format INI and reported one added UID. Importing it again reported one existing UID, and malformed input produced a visible error without changing the recipient's public vault or default. The core also accepted duplicates at full capacity and rejected an overflowing batch without partial writes.
|
||||||
|
|
||||||
|
**Identity backups (Windows):** A generated identity was exported from its selector context menu after the private-key warning and imported through the system file chooser into a second disposable profile. After restart, the public UID matched and the recipient's original default was unchanged. Five focused document/export tests passed, including preservation of the old backup after a partial write. These results do not establish mobile provider or power-loss guarantees.
|
||||||
|
|
||||||
|
**Theme ZIP import:** Windows opened the system file chooser from the native theme picker and installed the selected local archive. Reload retained the selected variant and its stylesheet hash; unsupported selectors produced a visible diagnostic. A second ZIP referencing an external stylesheet was refused before publication. Two focused tests also passed for external/escaping resources and archive confinement. This verifies the native supported subset, not arbitrary TS6 browser CSS or the mobile picker.
|
||||||
|
|
||||||
|
**Theme picker:** Windows UI Automation verified `preload:listThemes` after Reload: the package name and two variant names appeared together, and scrolling showed the diagnostic for a second invalid package. In an isolated native run, Preview applied the variant color, family and size while the stored selection remained null. ZIP installation is a separate contract.
|
||||||
|
|
||||||
|
**Theme links:** Windows UI Automation verified `preload:openThemeLink` against four local manifest entries (homepage, documentation, repository, email). Each action displayed its own destination, including trusted hosts and mail links, before cancellation. A second fixture without the optional web URLs did not expose their actions.
|
||||||
|
|
||||||
|
**Settings link verdict:** for `preload:privacyLinkThreat`, the same extension repository URL was opened up to the confirmation step in two disposable Windows profiles. A matching cached domain produced the malicious-site warning; no list produced the ordinary external-link warning. Both displayed the exact URL and were cancelled. Eight privacy service tests passed, including invalid-host rejection and cancellation without an open capability.
|
||||||
|
|
||||||
|
**Local phishing list:** `preload:privacyThreatStatus` was checked in the Windows trusted-sites view with no list and with an old cache from the expected source. The eight native privacy service tests also exercised fresh, failed-refresh and disabled states. The status says whether list data is available, not that an unlisted URL is safe.
|
||||||
|
|
||||||
|
**Theme selection:** Windows passed `selected_variant_survives_restart_and_restores_stock_on_removal` for `preload:selectTheme`. A locally installed variant kept its rendered background, font family and size across runtime restart. With the package withdrawn, Reload removed the saved selection, named the missing variant and restored stock colors and typography without changing its stylesheet.
|
||||||
|
|
||||||
|
The current visual reference is **TeamSpeak 6.0.0.5232**. The four reference manifests agree on the
|
||||||
|
served `main.js` and `main.css` SHA-256 fingerprints in the [visual source map and capture recipe](docs/evidence/official-parity/visual-source-map.md).
|
||||||
|
The 6.0.0.5163 extractions and earlier Electron results below are historical. The 5232 captures render
|
||||||
|
the official frontend and native Slint against a shared synthetic fixture, not a signed-in account,
|
||||||
|
user profile, or live connected session.
|
||||||
|
|
||||||
|
Scope is local and server functionality without a myTeamSpeak account: identity/bookmarks, server
|
||||||
|
tree and voice controls, channel/private chat, settings and permission-gated server tools and files.
|
||||||
|
Independent TeamsPeach branding, omitted myTeamSpeak/homebase account services and Remote Apps,
|
||||||
|
and native window captions are deliberate differences, not waivers for other layout mismatches.
|
||||||
|
Server-hosted Matrix chat and SFU streams are **not** account-only exclusions.
|
||||||
|
|
||||||
|
- **Visual:** `target/evidence/official-5232-pc/official/` contains five scenes in each of four
|
||||||
|
theme/locale combinations at 1280×800. Native runs `native-5232-pc-02` and `native-5232-pc-03`
|
||||||
|
each rendered 20/20. `compare-5232-pc-02/parity-report.json` and `compare-5232-pc-03/parity-report.json`
|
||||||
|
each record **0 passed, 20 failed, 0 blocked**. The strict whole-frame comparison is unmasked;
|
||||||
|
declared differences explain residuals but do not change the verdict.
|
||||||
|
- **Offline function:** `target/evidence/pc5232-functional-04/result.json` records 8 passed checks
|
||||||
|
and 28 captures: 12 settings categories, EN/RU and dark/light at widths 390/800/1280, rich chat,
|
||||||
|
PTT text-focus, capture denial, draft retention, two profile restarts and stale-session rejection.
|
||||||
|
No network, OS actions, physical capture or local peer transport was enabled. Separate focused
|
||||||
|
Windows gates recorded 109 native audio/tree tests, five DSP regression filters, three
|
||||||
|
`tsproto-packets` grammar tests and 44 core file/raw/session tests. These are scoped results,
|
||||||
|
not promoted entries in `native/compatibility.json`.
|
||||||
|
- **Server Matrix chat:** `current-contract:matrix-not-account` and the unsupported-state contract for `feature:chat.server_matrix` were exercised on Windows. `server_matrix_notice_tracks_advertisement_without_disabling_plain_chat` opens server chat in an isolated native window, flips the session's advertised chat capability and observes the notice appear and disappear while plain text input stays enabled without an account dialog. No Matrix room, login or transport was implemented or contacted.
|
||||||
|
- **Profile import:** `current-contract:profile-import` passed on Windows with generated profiles. Eight service tests cover external-key vault/default/hashcash preservation, corrupt or changing input, destination collision, password markers and explicit per-role device mapping. `cancelling_imported_bookmark_password_keeps_session_offline_after_restart` cancelled the actual Slint prompt on three launches, preserved the source hashes, history, bookmark order and password marker, and observed no active connection or audio start.
|
||||||
|
- **Bookmark sidebar and startup:** `schema-field:bookmarkOrder` and `current-contract:bookmarks-sidebar` passed the native `bookmark_sidebar_and_local_contact_reopen_without_network` workflow. For `preload:getStartupBookmarks`, Windows UI Automation observed the two password prompts in depth-first sidebar order in the running desktop executable even though their storage order was reversed. Both were cancelled before connecting.
|
||||||
|
- **Deliberate settings differences, TS6 5232:** the installed `main.js` matching the hash in the visual source map references the Account page (byte 1130212), Remote Apps page (1132687), analytics modes (4773285) and `skipUIPermissionChecks` (1104295). Windows UI Automation showed the twelve TeamsPeach categories, without Account, Remote Apps or Developer Options. Pointer activation of Privacy → More Information showed the read-only diagnostics explanation and no selectable analytics mode. This compares the user-visible settings; it is not a network telemetry audit.
|
||||||
|
- **Notifications and file settings:** Windows passed both core `disconnect_tests` (explicit
|
||||||
|
disconnect vs. reconnect and terminal phase classification), 49 selected native library tests,
|
||||||
|
and all four `notification_preferences` integration tests. The legacy `group_status` cue and its
|
||||||
|
stored values are preserved; the Status category has an independent switch.
|
||||||
|
`target/evidence/pc5232-notification-03/result.json` passed with 32 captures. Global Private Chat,
|
||||||
|
Global Group Chat, Incoming call and Outgoing call were captured separately and stayed disabled
|
||||||
|
on pointer and accessibility activation attempts. Persisted preferences and the existing
|
||||||
|
disconnected tab were unchanged; there were zero active sessions and no physical audio.
|
||||||
|
- **Sound coverage:** On 2026-11-27 the Windows Slint settings surface exposed six formerly missing advanced controls: moderator move in/out, kick in, server group assigned/revoked and permission error. Fifteen targeted Windows tests passed across the native library and notification preference integration tests. The PCM fixture exercises event and Listen output, repeats, the disabled sink and the silent fader for all 58 sounds; preference regressions cover legacy overrides, independent choices, hide/show and reopen. This brings 57 of 58 source cases through both individual Listen and sound policy with a supported trigger. Talking while muted has Listen and policy
|
||||||
|
coverage against a fixture, but no genuine speech trigger. The native local Recent Server Events
|
||||||
|
service and view projection were exercised with test inputs: 501 events with sound disabled,
|
||||||
|
500 retained and the newest 200 projected. Switching and closing tabs showed no cross-session
|
||||||
|
leakage; the local view is separate from the remote Server Log action.
|
||||||
|
- **Files scope:** focused tests checked that numeric steppers and typed input share the same step
|
||||||
|
and bounds, valid settings survive reopening, and invalid limits are rejected. This is not
|
||||||
|
end-to-end file I/O acceptance or proof that real transfers obey these settings. These results
|
||||||
|
do not establish installed-build or official-peer behavior or change any of the 718 pending
|
||||||
|
requirements in `native/compatibility.json`.
|
||||||
|
- **Direct whisper transport:** `cargo run --locked -p teamspeach-core --example duplex_qa -- --whisper`
|
||||||
|
ran two disposable Rust CLI peers against the private beta14. Sender and receiver agreed on the
|
||||||
|
recipient's live server UID. The receiver decoded 43 frames at 650 Hz with `whisper_received`;
|
||||||
|
deny mode suppressed both playback and the event at 900 Hz. Restoring allow mode delivered
|
||||||
|
40 frames at 1150 Hz. A stopped-epoch 1450 Hz tag produced no playback; subsequent ordinary
|
||||||
|
1750 Hz voice delivered 42 frames without a whisper event. Both disconnects were confirmed.
|
||||||
|
This checks core transport, not installed-client settings, official peers or physical audio.
|
||||||
|
- **Generated voice transport:** two core CLI peers exchanged paced 500 Hz and 900 Hz test tones
|
||||||
|
simultaneously through an isolated official TeamSpeak server beta 14 (100 sent frames per peer).
|
||||||
|
Spectral and exact sender checks matched 99/101 decoded frames B→A and 100/101 A→B; both peers
|
||||||
|
disconnected cleanly. No physical endpoint or official client peer was used.
|
||||||
|
- **Duplex voice and stall regression:** `cargo run --locked -p teamspeach-core --example duplex_qa`
|
||||||
|
exercised the actual QA core against the isolated localhost beta 14 server. A→B and B→A each
|
||||||
|
received 45 frames, with onset latency 14 ms and 21 ms respectively and 864 ms of overlap.
|
||||||
|
Release, mute, rejection while disconnected and a fresh reconnect were verified, with 3/3 clean
|
||||||
|
leaves. Separately, 112 Windows `media::audio` tests passed, including capture delayed beyond
|
||||||
|
200 ms during active playback and capture permit replacement. The reproducible tests confirm the
|
||||||
|
stalled-worker code-path fix; the reported physical WASAPI scenario was not independently observed.
|
||||||
|
- **S3 read-only listing:** against an isolated official TeamSpeak server beta 14, the core negotiated
|
||||||
|
`s3`, observed empty `b64_json` with `return_code` then ACK `id=0`, returned an empty root
|
||||||
|
(0 entries, 0 malformed, `read_only=true`, `list_supported=true`), and disconnected cleanly.
|
||||||
|
A separate direct SigV4 store PUT/list/GET recovered the seeded bytes (SHA-256
|
||||||
|
`c099147635c59787127aa7d9b9e247a5e0736f5e7a833bfb2732515e1ccdecae`). That is store evidence,
|
||||||
|
not a populated listing, upload, download or mutation through the TeamSpeak channel.
|
||||||
|
- **Open acceptance:** strict visual parity, populated S3 listings and positive signed transfers or
|
||||||
|
mutations through TeamSpeak, HTTPFT, live server-hosted Matrix/SFU, official-peer two-way voice
|
||||||
|
and physical audio, visible native captions/accessibility, installed desktop acceptance of this
|
||||||
|
build, and mobile/Asahi device checks. Generated voice and stall-regression tests do not establish
|
||||||
|
physical desktop voice acceptance or release readiness for this build.
|
||||||
|
|
||||||
|
## Native-only cutover and verification (2026-11-10)
|
||||||
|
|
||||||
|
The current product source is Rust/Slint with in-process Rust core services, native DSP, Skia and
|
||||||
|
source-built libwebrtc. The Electron runtime, interface, consumer suites and launch/build tooling have
|
||||||
|
been removed. This owner-authorized source cutover is **not** completion of all native/mobile acceptance.
|
||||||
|
`native/compatibility.json` retains 718 pending behavioral requirements; none are promoted to passes.
|
||||||
|
Historical browser-client evidence below remains useful regression history, never native acceptance.
|
||||||
|
|
||||||
|
For historical deleted source, use the revision-pinned
|
||||||
|
[pre-cutover tree](https://git.eeee.moe/TeamsPeach/client/src/commit/eb24965076599267687c8c4dd6f24f22953b15f6).
|
||||||
|
It is reference-only, not a development/runtime dependency. Current commands are Cargo/`xtask` interfaces
|
||||||
|
in README; no historical runtime or harness is needed to build the native client.
|
||||||
|
|
||||||
|
Windows x64 WebRTC was built from pinned SDK `88705b15086ecbe2c26ee91ede6203f974a0fc62` and
|
||||||
|
WebRTC `9c3a1386f07e4348c28cd85c066821cebc3b56e4`; `native/native-deps.lock.json` records the
|
||||||
|
resolved DEPS, patches, effective GN arguments, compiler, archive gates and artifact hashes.
|
||||||
|
The native CXX bridge compiled against that source-built archive. No mutable prebuilt was used.
|
||||||
|
|
||||||
|
`native/tools/codec_probe.cpp` exercised the production software-only decoder factory with four
|
||||||
|
independently encoded synthetic 64×48 single-frame fixtures. H264 High decoded through FFmpeg,
|
||||||
|
AV1 Profile 0 through dav1d, and VP8/VP9 through libvpx. Every output matched the corresponding
|
||||||
|
independent FFmpeg I420 reference byte-for-byte. Fixtures and outputs were generated under
|
||||||
|
`target/codec-fixtures`; this proves these small decode cases, not sustained playback, hardware
|
||||||
|
acceleration, official-peer compatibility or other targets.
|
||||||
|
|
||||||
|
A separate real native PeerConnection loopback negotiated and transported generated video through
|
||||||
|
the production sender, receiver and bounded display path: 13 frames decoded by libvpx, 12 presented
|
||||||
|
with the expected red pixels, and one source-stop callback. Terminal cleanup removed the pending
|
||||||
|
frame. `target/codec-fixtures/peer-loopback.png` is the captured decoded image, not a UI mock.
|
||||||
|
This check exposed and fixed duplicate Opus linkage: WebRTC's 443 external Opus symbols and their
|
||||||
|
references are isolated from the unchanged voice-core codec, while unrelated assembly objects are
|
||||||
|
preserved byte-for-byte. No physical microphone, speaker, camera, screen capture or working server
|
||||||
|
was used for these checks.
|
||||||
|
|
||||||
|
## Approved original panel composition
|
||||||
|
Historical browser-client checkpoint: the paragraphs in this section describe that build, not a native pass.
|
||||||
|
|
||||||
|
|
||||||
|
The owner selected the original TS6 composition for Privacy, Video, Notifications and About. Root
|
||||||
|
sections now retain the source order with explicit unavailable states. Actual decoder controls are in
|
||||||
|
Video → Chromium Video Options; installation diagnostics and project links are subpages of About.
|
||||||
|
Report Issue opens the verified project issue list only through the external-link confirmation.
|
||||||
|
No telemetry, account integration, Cisco backend, content-report service or social affiliation is implied.
|
||||||
|
|
||||||
|
`approved-panels-confirmed/result.json` under `C:/Users/Admin/tmp/teamspeach-parity-complete-20261102/`
|
||||||
|
passed all four workflow groups and 32 captures with no external openings, network attempts, capture
|
||||||
|
attempts or renderer errors. Locale, notification overrides, licence/changelog navigation and real
|
||||||
|
decoder-policy restart passed separately. `approved-panel-pairs` still reports 32 strict visual failures;
|
||||||
|
that result is not converted into a pixel-parity pass by the approved composition change.
|
||||||
|
|
||||||
|
## Current local workflow corrections
|
||||||
|
Historical browser-client workflow checkpoint; these behaviors remain native requirements unless corrected below.
|
||||||
|
|
||||||
|
|
||||||
|
Identity export and Copy UID are in the identity selector's context menu (also Shift+F10).
|
||||||
|
Export still requires the private-key warning confirmation. Disconnected nickname changes use
|
||||||
|
Details; a connected own-client nickname is edited in its information header. Bookmarks have one
|
||||||
|
manager in the sidebar, not a second Settings category. Language selection is persisted for restart.
|
||||||
|
The identity migration, including warning cancellation and nickname persistence, passed the actual
|
||||||
|
isolated renderer/native-CLI scenario at
|
||||||
|
`C:/Users/Admin/tmp/teamspeach-parity-complete-20261102/identity-context-fixed/result.json`.
|
||||||
|
|
||||||
|
The comprehensive packaged matrix (`full-geometry-matrix/`) completed 192 pairs: 56 passed, 136 failed,
|
||||||
|
with no blocked navigation. All eight theme/locale/size variants of main/full/few/empty, private chat,
|
||||||
|
server bans and client lists passed. Remaining whole-screen failures are not whole-client parity.
|
||||||
|
Final verification and artifact hashes are in `docs/evidence/official-parity/qa-parity-harness.md`.
|
||||||
|
Navigation intentionally omits Account/Remote Apps; local-contact, privacy, video-backend and About
|
||||||
|
content also differ. Remaining geometry is not automatically an authorized exception.
|
||||||
|
|
||||||
## Expanded local panels checkpoint (2026-11-01)
|
## Expanded local panels checkpoint (2026-11-01)
|
||||||
|
Historical browser-client evidence only. “Current” in the retained table means the recorded 2026-11-01 build.
|
||||||
|
|
||||||
|
|
||||||
This supersedes the earlier absence of local contacts below. Remote Apps remains explicitly excluded.
|
This supersedes the earlier absence of local contacts below. Remote Apps remains explicitly excluded.
|
||||||
The earlier tables remain historical evidence, not a declaration that all current screens match TS6.
|
The earlier tables remain historical evidence, not a declaration that all current screens match TS6.
|
||||||
@@ -17,6 +594,7 @@ the exact build hashes and limits are in `docs/evidence/official-parity/qa-parit
|
|||||||
| Server icons and snapshot transfer ownership | Main/renderer consumer tests cover session grants, reconnect, partial failure and recycled transfer IDs | No successful live server icon mutation is claimed |
|
| Server icons and snapshot transfer ownership | Main/renderer consumer tests cover session grants, reconnect, partial failure and recycled transfer IDs | No successful live server icon mutation is claimed |
|
||||||
| Local contacts and public badges | Model/prefs/catalog tests and actual contact add/alias/restart passed; offline state is retained honestly | Not cloud contacts, badge ownership/redeeming or global presence |
|
| Local contacts and public badges | Model/prefs/catalog tests and actual contact add/alias/restart passed; offline state is retained honestly | Not cloud contacts, badge ownership/redeeming or global presence |
|
||||||
| Rich chat | Actual history IPC/restart, scope isolation and local KaTeX/Mermaid hydration passed | Synthetic messages, no server traffic; sandbox permissions tested separately |
|
| Rich chat | Actual history IPC/restart, scope isolation and local KaTeX/Mermaid hydration passed | Synthetic messages, no server traffic; sandbox permissions tested separately |
|
||||||
|
| Rich-text composer (post-release development) | Real packaged typing, formatting, emoji/slash completion, raw/hybrid settings, selection/undo, conversation isolation, refused sends and IME passed; hostile preview stayed inert with zero network requests | Windows hidden runtime only; the separate v0.1.6 release does not include this post-cut feature |
|
||||||
| Identity related bookmarks | Actual nested/default assignment display and nickname-clearing restart passed without changing UID | The original identity component exposes ordinary nickname, not a separate editable phonetic field |
|
| Identity related bookmarks | Actual nested/default assignment display and nickname-clearing restart passed without changing UID | The original identity component exposes ordinary nickname, not a separate editable phonetic field |
|
||||||
| Whisper manager and history | Actual hidden UI with synthetic events passed overlay switching, preview, session/recycled-ID cleanup and received-history handling | No live whisper delivery proof; two microphone attempts were refused by the test stub |
|
| Whisper manager and history | Actual hidden UI with synthetic events passed overlay switching, preview, session/recycled-ID cleanup and received-history handling | No live whisper delivery proof; two microphone attempts were refused by the test stub |
|
||||||
| Changelog and licenses | Actual packaged list/detail navigation and focus restoration passed after fixing stringified DOM arrays | Displays this installation's documents, not TeamSpeak service terms |
|
| Changelog and licenses | Actual packaged list/detail navigation and focus restoration passed after fixing stringified DOM arrays | Displays this installation's documents, not TeamSpeak service terms |
|
||||||
@@ -36,7 +614,7 @@ unless stated. No new live-server mutation or physical media capture is part of
|
|||||||
|---|---|---|
|
|---|---|---|
|
||||||
| First-run nickname, P-256 identity, public UID, restart persistence, rename keeps UID | proven | `docs/evidence/runtime/2026-10-24-identity/` |
|
| First-run nickname, P-256 identity, public UID, restart persistence, rename keeps UID | proven | `docs/evidence/runtime/2026-10-24-identity/` |
|
||||||
| Connect / disconnect by address | proven | identity run `04-connected.png` |
|
| Connect / disconnect by address | proven | identity run `04-connected.png` |
|
||||||
| Saved servers (name + address, no passwords): save, edit, delete, restart persistence, one-click connect, clean switch | proven | `docs/evidence/runtime/2026-10-24-servers-settings/` (connect with same UID, mic muted) + `test/prefs.test.js` |
|
| Saved servers (name + address, no passwords): save, edit, delete, restart persistence, one-click connect, clean switch | proven | `docs/evidence/runtime/2026-10-24-servers-settings/` (connect with same UID, mic muted); [historical preferences tests](https://git.eeee.moe/TeamsPeach/client/src/commit/eb24965076599267687c8c4dd6f24f22953b15f6/test/prefs.test.js) |
|
||||||
| Sectioned settings (Identity, Servers, Appearance, Audio, Video, Keys, Information) without dropping the connection | proven | servers-settings run: all 7 panels visited while connected, keyboard Home/arrows, Escape returns |
|
| Sectioned settings (Identity, Servers, Appearance, Audio, Video, Keys, Information) without dropping the connection | proven | servers-settings run: all 7 panels visited while connected, keyboard Home/arrows, Escape returns |
|
||||||
| Theme: system / dark / light | implemented | dark captured in servers-settings screenshots |
|
| Theme: system / dark / light | implemented | dark captured in servers-settings screenshots |
|
||||||
| User themes / extensions | Current implementation; format- and `--tsv-*` token-compatible, not official DOM-class compatible | `docs/themes.md`; current consumer unit suite and guarded runtime acceptance below |
|
| User themes / extensions | Current implementation; format- and `--tsv-*` token-compatible, not official DOM-class compatible | `docs/themes.md`; current consumer unit suite and guarded runtime acceptance below |
|
||||||
@@ -74,17 +652,18 @@ unless stated. No new live-server mutation or physical media capture is part of
|
|||||||
| Per-participant local volume/mute/reset | generated native two-codec decode/mix plus real UI transport verified | Whole native suite: 66 unit tests including both codecs, gain/mute/reset and subprocess proof; max sample error 2, target mute retains other speaker exactly. Connection-scoped UID identity and recycled decode queues tested; no new live call claim |
|
| Per-participant local volume/mute/reset | generated native two-codec decode/mix plus real UI transport verified | Whole native suite: 66 unit tests including both codecs, gain/mute/reset and subprocess proof; max sample error 2, target mute retains other speaker exactly. Connection-scoped UID identity and recycled decode queues tested; no new live call claim |
|
||||||
| Channel member collapse and sidebar resize | isolated Electron UI verified | `C:/Users/Admin/tmp/teamspeach-ui9-20261024/dev-tree/result.json`; actual pointer/keyboard, per-server persistence, child headings retained; no active live-call proof |
|
| Channel member collapse and sidebar resize | isolated Electron UI verified | `C:/Users/Admin/tmp/teamspeach-ui9-20261024/dev-tree/result.json`; actual pointer/keyboard, per-server persistence, child headings retained; no active live-call proof |
|
||||||
| Selected-application broadcast audio | Windows native capture proof and synthetic bridge-to-WebRTC proof are separate; Linux runtime unverified; macOS blocked | `docs/evidence/native-app-audio-proof.json` records prior Windows 64.7 dB selection isolation, before later ancestry/lifetime fixes. `smoke-out/appaudio-synthetic/result.json` proves exact-contract PCM through production transport/worklet and decoded WebRTC. Combined native-to-WebRTC verification needs an isolated audio endpoint; prior default-output tone was potentially audible. Linux requires pactl/parec and PulseAudio or PipeWire-Pulse; macOS SDK/CoreAudio/TCC implementation is missing |
|
| Selected-application broadcast audio | Windows native capture proof and synthetic bridge-to-WebRTC proof are separate; Linux runtime unverified; macOS blocked | `docs/evidence/native-app-audio-proof.json` records prior Windows 64.7 dB selection isolation, before later ancestry/lifetime fixes. `smoke-out/appaudio-synthetic/result.json` proves exact-contract PCM through production transport/worklet and decoded WebRTC. Combined native-to-WebRTC verification needs an isolated audio endpoint; prior default-output tone was potentially audible. Linux requires pactl/parec and PulseAudio or PipeWire-Pulse; macOS SDK/CoreAudio/TCC implementation is missing |
|
||||||
| General file browser / file transfer | Implemented in current cutover, not part of this historical baseline | Legacy TCP transfer and app-wide settings; current native and main/renderer tests below |
|
| General file browser / file transfer | Implemented in the historical browser-client cutover, not part of this baseline | Legacy TCP transfer and app-wide settings; native acceptance remains separate |
|
||||||
| Other features | No blanket parity claim | The current full feature matrix identifies owners, observed tests and exact remaining prerequisites |
|
| Other features | No blanket parity claim | The current full feature matrix identifies owners, observed tests and exact remaining prerequisites |
|
||||||
|
|
||||||
## Earlier account-free acceptance checkpoint (2026-11-01)
|
## Earlier account-free acceptance checkpoint (2026-11-01)
|
||||||
|
|
||||||
Scope is strictly local/server functionality without an account; myTeamSpeak/cloud/Matrix services and
|
Scope is strictly local/server functionality without an account; central myTeamSpeak/homebase services and
|
||||||
Remote Apps integration are excluded by instruction. No account UI is substituted for a missing local
|
Remote Apps integration are excluded by instruction. Server-hosted `MATRIXCHAT` is not an account-only
|
||||||
feature. Tests use disposable state and controlled inputs. A protocol unit fixture is not a real server
|
exception: its native transport remains unimplemented (see below). No account UI is substituted for a
|
||||||
interoperability claim, and synthetic renderer IPC is never described as native transaction success.
|
missing local feature. Tests use disposable state and controlled inputs; protocol fixtures do not establish
|
||||||
|
real server interoperability, and synthetic renderer IPC is never native transaction success.
|
||||||
|
|
||||||
Current exercised gates: **318 Node consumer tests passed**, one deliberately skipped live release-list
|
Historical exercised gates: **318 Node consumer tests passed**, one deliberately skipped live release-list
|
||||||
test; **152 native unit tests passed**, one optional external-PCM audit ignored; **5 native stdio bridge
|
test; **152 native unit tests passed**, one optional external-PCM audit ignored; **5 native stdio bridge
|
||||||
tests passed** after contract fixes. Full logs are in
|
tests passed** after contract fixes. Full logs are in
|
||||||
`C:/Users/Admin/tmp/teamspeach-official-parity-20261101/qa-final/`. Actual release subprocess checks also
|
`C:/Users/Admin/tmp/teamspeach-official-parity-20261101/qa-final/`. Actual release subprocess checks also
|
||||||
@@ -115,11 +694,11 @@ reference's source-observed 260 px popup modifier; this is not whole-image or wh
|
|||||||
| Legacy files, opaque chooser capabilities, commit/cancel/no-overwrite, global settings | AstraFiles | Real loopback TCP byte/hash/pacing/cancellation tests and main/renderer/scheduler consumer suites passed | HTTPFT/S3 explicitly unsupported; no speculative fallback; filesystem hard-link requirement fails safely |
|
| Legacy files, opaque chooser capabilities, commit/cancel/no-overwrite, global settings | AstraFiles | Real loopback TCP byte/hash/pacing/cancellation tests and main/renderer/scheduler consumer suites passed | HTTPFT/S3 explicitly unsupported; no speculative fallback; filesystem hard-link requirement fails safely |
|
||||||
| Recording/WAV timing, tracks, pause/finalize, notification log/matrix, OS local settings | AstraRecordThemes | Generated native PCM/WAV tests and main/renderer policy suites passed | No real microphone, OS startup/lock action, notification sound or private recording exercised |
|
| Recording/WAV timing, tracks, pause/finalize, notification log/matrix, OS local settings | AstraRecordThemes | Generated native PCM/WAV tests and main/renderer policy suites passed | No real microphone, OS startup/lock action, notification sound or private recording exercised |
|
||||||
| Local themes and appearance options | AstraRecordThemes / AstraVisual | Functional confinement suites and real selected CSS/font/image/restart/denied-remote smoke passed; actual settings pixels inspected | Package/token compatibility only, not official DOM-class compatibility |
|
| Local themes and appearance options | AstraRecordThemes / AstraVisual | Functional confinement suites and real selected CSS/font/image/restart/denied-remote smoke passed; actual settings pixels inspected | Package/token compatibility only, not official DOM-class compatibility |
|
||||||
| Local history, safe rich chat, drafts/unread, links/images, file attachments | AstraChat | Main/parser suites; actual 621-row history IPC/restart, local KaTeX/Mermaid and inert malicious-content smoke passed | Non-own-channel legacy text delivery unverified; no Matrix/cloud edit/reactions/read receipts |
|
| Local history, safe rich chat, drafts/unread, links/images, file attachments | AstraChat | Main/parser suites; actual 621-row history IPC/restart, local KaTeX/Mermaid and inert malicious-content smoke passed | Non-own-channel legacy delivery unverified; central chat excluded, server-hosted Matrix room actions missing |
|
||||||
| P2P stream extras, layout, internal/standalone popout and publishing controls | AstraStreams | 249 generated-media stage checks; actual sender→receiver video/Opus, admission, rate changes, pause, ban and cleanup passed | macOS selected-application audio unimplemented; standalone viewport emulation limitation below; no live SFU claim |
|
| P2P stream extras, layout, internal/standalone popout and publishing controls | AstraStreams | 249 generated-media stage checks; actual sender→receiver video/Opus, admission, rate changes, pause, ban and cleanup passed | macOS selected-application audio unimplemented; standalone viewport emulation limitation below; no live SFU claim |
|
||||||
| Official visual system and EN/RU catalogs | AstraVisual / AstraQA | All twelve settings categories EN/RU/restart; actual full three-pane/settings/menu pixels reviewed; 224 class-matched metrics passed | Historical 22/22 source-reference probes are not whole-client identity |
|
| Official visual system and EN/RU catalogs | AstraVisual / AstraQA | All twelve settings categories EN/RU/restart; actual full three-pane/settings/menu pixels reviewed; 224 class-matched metrics passed | Historical 22/22 source-reference probes are not whole-client identity |
|
||||||
|
|
||||||
The complete **38-row original feature inventory**, owner, evidence and exclusions is
|
The original feature inventory, owners, evidence and corrected exclusions are in
|
||||||
[`docs/evidence/official-parity/final-feature-matrix.json`](docs/evidence/official-parity/final-feature-matrix.json).
|
[`docs/evidence/official-parity/final-feature-matrix.json`](docs/evidence/official-parity/final-feature-matrix.json).
|
||||||
Consolidated results and exact package hashes: `qa-final/verification.json` and `qa-final/package-manifest.json`
|
Consolidated results and exact package hashes: `qa-final/verification.json` and `qa-final/package-manifest.json`
|
||||||
under the evidence root above. The isolated package is `build/win-unpacked/TeamsPeach.exe`; no installer
|
under the evidence root above. The isolated package is `build/win-unpacked/TeamsPeach.exe`; no installer
|
||||||
@@ -127,15 +706,33 @@ was run, no version was changed and nothing was published.
|
|||||||
|
|
||||||
## Remaining implementation gaps and external verification prerequisites
|
## Remaining implementation gaps and external verification prerequisites
|
||||||
|
|
||||||
|
Authorized live check on 2026-11-02: `server_info` and the resulting snapshot from 10.10.10.160:9987
|
||||||
|
announced P2P=true and Matrix/SFU/HTTPFT/S3=false to core 0.1.6. Both mute flags were confirmed.
|
||||||
|
Two temporary identities disconnected cleanly and their local profiles were removed; no token,
|
||||||
|
invitation, media or server-setting mutation was attempted. This is a per-client/session advertisement,
|
||||||
|
not a claim about every server configuration. Evidence: `docs/evidence/official-parity/server-sfu-prerequisite.json`.
|
||||||
|
|
||||||
|
- **Server-hosted Matrix chat:** static frontend review on 2026-11-02 corrects the earlier blanket Matrix
|
||||||
|
exclusion. `MATRIXCHAT` selects a server-identity participation, separate from account/homebase login.
|
||||||
|
It supports channel/private rooms, invitation accept/reject and room-based edit/reply/reactions;
|
||||||
|
pinning is non-direct-room-only and other actions remain permission/event-dependent. Static native
|
||||||
|
constructors establish `chatlogintoken`, `notifychatlogintoken token=...` and
|
||||||
|
`requestchat type=private clid=<uint16>`, but well-known binding, token-to-Matrix login/renewal,
|
||||||
|
device/session lifecycle, server UUID derivation and sync/event envelopes remain unresolved.
|
||||||
|
No authenticated native/server-room exchange has been captured. Generic Matrix login is not a valid
|
||||||
|
substitute, and no inert setting or room-action controls are added. Exact source chain and scope:
|
||||||
|
`docs/evidence/official-parity/ts6spec-chat.md`, section 0.
|
||||||
- **SFU:** `docs/evidence/official-parity/sfu-native-inspection.json` and
|
- **SFU:** `docs/evidence/official-parity/sfu-native-inspection.json` and
|
||||||
`docs/evidence/official-parity/sfu-request-construction.json` recover command/envelope fields,
|
`docs/evidence/official-parity/sfu-request-construction.json` recover command/envelope fields,
|
||||||
not authoritative token origin/renewal, exact optional/value branches or a proved mediasoup-to-Chromium
|
not authoritative token origin/renewal, exact optional/value branches or a proved mediasoup-to-Chromium
|
||||||
negotiation. `docs/evidence/official-parity/server-sfu-prerequisite.json` records a read-only check of the configured server's empty
|
negotiation. `docs/evidence/official-parity/server-sfu-prerequisite.json` records a read-only check of the configured server's empty
|
||||||
SFU endpoint; it does not prove absence of an advertised runtime capability. No controlled SFU endpoint
|
SFU endpoint; it does not prove absence of an advertised runtime capability. No controlled SFU endpoint
|
||||||
has been exercised, so SFU remains blocked rather than falsely successful.
|
has been exercised, so SFU remains blocked rather than falsely successful.
|
||||||
- **HTTPFT/S3:** `docs/evidence/ts6-filetransfer-native.json` and `docs/evidence/ts6-filetransfer-native-continuation.json` record
|
- **Historical HTTPFT/S3 inspection (2026-11-01):** `docs/evidence/ts6-filetransfer-native.json` and
|
||||||
command arguments but not complete endpoint/base-URL binding, operation response envelopes, S3 payload
|
`docs/evidence/ts6-filetransfer-native-continuation.json` recorded command arguments but not complete
|
||||||
mapping or required headers/verb values. No controlled newer-storage server fixture is available.
|
endpoint/base-URL binding, operation response envelopes, S3 payload mapping or required headers/verb
|
||||||
|
values. No controlled newer-storage server fixture was available at that checkpoint; see the
|
||||||
|
current checkpoint above for the separately observed empty S3 listing.
|
||||||
- **macOS implementations:** selected-application audio capture is not implemented; a CoreAudio/TCC
|
- **macOS implementations:** selected-application audio capture is not implemented; a CoreAudio/TCC
|
||||||
backend is still needed. Global shortcuts are explicitly unsupported by the non-Windows/non-Linux
|
backend is still needed. Global shortcuts are explicitly unsupported by the non-Windows/non-Linux
|
||||||
branch of `core/src/hotkeys.rs`. These are implementation gaps, not merely unexecuted tests.
|
branch of `core/src/hotkeys.rs`. These are implementation gaps, not merely unexecuted tests.
|
||||||
@@ -150,3 +747,83 @@ was run, no version was changed and nothing was published.
|
|||||||
explanation. Explicitly authorized test-only CDP viewport emulation exercises the real adopted video,
|
explanation. Explicitly authorized test-only CDP viewport emulation exercises the real adopted video,
|
||||||
MediaStream, continuing RTP, child controls and restore/cleanup. It does not verify unmodified native
|
MediaStream, continuing RTP, child controls and restore/cleanup. It does not verify unmodified native
|
||||||
offscreen painting or a normal visible child window; production flags are not weakened for the test.
|
offscreen painting or a normal visible child window; production flags are not weakened for the test.
|
||||||
|
|
||||||
|
## Native runtime integration and Windows offline evidence
|
||||||
|
|
||||||
|
The native host now owns a dedicated Tokio application worker and constructs the existing profile,
|
||||||
|
connection, file, audio and stream services. `native/src/app/runtime/` routes captured shell/chat/settings
|
||||||
|
intents and authoritative core/audio/platform events; settings use an ordered bounded consumer with
|
||||||
|
pending control identities and explicit completion/error state. First-run profile/import/recovery
|
||||||
|
decisions precede writable profile ownership, and private-key import and staging-discard operations
|
||||||
|
require an explicit warning confirmation.
|
||||||
|
|
||||||
|
`ui::application::bind` constructs a generation-scoped Slint attachment without entering its event
|
||||||
|
loop. It keeps Slint objects on the UI thread, applies coalesced Send-only snapshots, drains bounded
|
||||||
|
effects/prompts, and updates latest video images without re-projecting the tree for each frame.
|
||||||
|
Native theme font bytes pass the existing confined asset policy and are registered with Slint's
|
||||||
|
pinned Fontique interface; CSS Color 4 token values are converted to the sRGB UI surface.
|
||||||
|
|
||||||
|
`AppConfig::isolated` disables network and OS/device actions. Runtime snapshots expose actual
|
||||||
|
audio-start event counters and structured settings completion errors so a denied action cannot be
|
||||||
|
mistaken for a successful operation or an unrelated stale error. Mobile call capabilities and UI
|
||||||
|
generations have separate lifetimes; desktop installation state comes from validated running-package
|
||||||
|
metadata, not a caller-supplied installed flag.
|
||||||
|
|
||||||
|
Windows x64 integration now builds through `xtask build --target x86_64-pc-windows-msvc
|
||||||
|
--test-harness true`. The full release-profile workspace test command passed, including 461 native
|
||||||
|
library tests, the real atomic-document replacement regression, connection lifetime tests and updater
|
||||||
|
contracts. The captured-speech quality test remains explicitly ignored without its external PCM fixture.
|
||||||
|
|
||||||
|
Executed native smoke reports (under the local `target/evidence/` directory):
|
||||||
|
|
||||||
|
- `native-offline-ui-03/result.json`: actual Slint software rasterization, account-free onboarding,
|
||||||
|
all twelve settings categories, EN/RU and dark/light at 390/800/1280 logical pixels, actual semantic
|
||||||
|
combobox values matching persisted selections, math/Mermaid images, literal HTML, real text-input
|
||||||
|
focus blocking local PTT, microphone permission denial with zero physical endpoint starts, refused
|
||||||
|
Unicode draft retention/undo/redo, two full profile restarts and stale session rejection.
|
||||||
|
- `native-migration-01/result.json`: generated legacy profile import, unchanged hashes of five source
|
||||||
|
files, preserved UID/default identity, security offset 42424242 and history. No existing user profile
|
||||||
|
was imported or modified. This run predates the controlled-combobox correction checked above.
|
||||||
|
- `native-media-loopback-01/result.json`: production native PeerConnections decoded moving generated
|
||||||
|
video (13 decoded, 12 presented, libvpx) and 46 decoded audio blocks / 22080 samples, RMS 0.06160.
|
||||||
|
Audio was observed at the real decoded AudioSink before the closed output gate; no speaker or
|
||||||
|
microphone was opened. This is same-host RTP/ICE/DTLS evidence, not official TS6 signaling acceptance.
|
||||||
|
|
||||||
|
Smoke failures found and corrected an OS-capability page which refused navigation, stale native
|
||||||
|
combobox captions despite persisted values, missing text-focus propagation to local shortcuts and
|
||||||
|
Windows atomic overwrite failing while the old reader remained open. Windows publication now uses
|
||||||
|
`FileRenameInformationEx` with POSIX replacement semantics, preserving existing reader handles.
|
||||||
|
|
||||||
|
These results do not establish acoustic AEC, physical capture, official-peer interoperability,
|
||||||
|
Asahi/mobile execution, OS accessibility, installed updater/relaunch or complete visual parity.
|
||||||
|
Existing Electron evidence above remains historical reference only. Its production runtime/source has
|
||||||
|
been removed by the native-only cutover; outstanding acceptance gates remain outstanding, not waived.
|
||||||
|
|
||||||
|
Windows test-only packaging produced an unsigned NSIS installer (38,668,543 bytes) and ZIP
|
||||||
|
(52,858,951 bytes) in `target/evidence/native-package-03/`. Its `x86_64-pc-windows-msvc/verification.json`
|
||||||
|
passed real archive extraction, application/helper ISA and imports, asset/license hashes and the
|
||||||
|
browser/Node/WASM exclusion checks. NSIS's x86 uninstaller/plugin are classified separately from the
|
||||||
|
x64 application. The executable extracted from that ZIP passed the complete offline UI smoke from
|
||||||
|
its own package directory: `target/evidence/native-packaged-smoke-01/result.json`.
|
||||||
|
The installer was not executed, no default installation was modified, and no release manifest/update
|
||||||
|
feed was published. Both artifacts have `testOnly=true` and `release_eligible=false`; they are not a
|
||||||
|
production migration or installed update/relaunch proof.
|
||||||
|
|
||||||
|
### Ordinary desktop startup correction
|
||||||
|
|
||||||
|
The first test ZIP failed normal Windows launch with `Attach the desktop lease after the Slint
|
||||||
|
window is realized`; offscreen smoke did not cover the winit startup ordering. Desktop attachment
|
||||||
|
now awaits Slint's native-window future on its UI executor, retains/cancels that task with the UI
|
||||||
|
generation, and propagates real initialization failures. Closing onboarding also now stops the
|
||||||
|
application before profile services exist (including failed profile inspection).
|
||||||
|
|
||||||
|
`native/examples/desktop_startup_smoke.rs` exercised the real Windows window and desktop lease,
|
||||||
|
captured its 1280×800 pixels and closed it through the normal close-request callback. Evidence:
|
||||||
|
`target/evidence/native-desktop-startup-02/`. The corrected portable `teamspeach.exe` was also started
|
||||||
|
normally with a fresh test profile, observed as a visible TeamsPeach window, then sent WM_CLOSE:
|
||||||
|
exit code 0, empty stdout/stderr. No microphone/speaker or server connection was started.
|
||||||
|
The desktop delivery is `TeamsPeach-0.1.7-win-x64-startup-fix/` and the matching ZIP; the executable
|
||||||
|
SHA256 is `9d4d898b7ea723a9e0cdff2ca47cf4dbbdb2981163a6403498ab010c7bad9a95`.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,23 +1,34 @@
|
|||||||
# TeamsPeach — notices
|
# TeamsPeach — notices
|
||||||
|
|
||||||
- TeamsPeach's own code carries no open-source license yet (`UNLICENSED` in package.json): all rights
|
- TeamsPeach's own code carries no open-source license yet: all rights reserved by its owner until the owner
|
||||||
reserved by its owner until the owner chooses a license.
|
chooses a license. Removing the former renderer does not grant redistribution rights.
|
||||||
- Electron and Chromium license texts ship at the root of the application directory
|
- The application uses native Rust/Slint UI and media components; Electron, Chromium and the renderer's
|
||||||
(`LICENSE`, `LICENSES.chromium.html`), as placed there by electron-builder.
|
WebAssembly DSP module are not bundled runtimes.
|
||||||
- The native core (`teamspeach-core`, built on ReSpeak tsclientlib, libopus and other Rust crates)
|
- The native core (`teamspeach-core`, built on ReSpeak tsclientlib, libopus and other Rust crates)
|
||||||
ships its complete third-party notices in `teamspeach-core-THIRD_PARTY_NOTICES.md` in this folder.
|
has its third-party notices in `core/THIRD_PARTY_NOTICES.md` in the source tree, also exposed in native About.
|
||||||
This includes the earshot voice detector (MIT OR Apache-2.0), whose crate embeds the small neural network
|
This includes the earshot voice detector (MIT OR Apache-2.0), whose crate embeds the small neural network
|
||||||
it runs (`weights.bin`) under the same license.
|
it runs (`weights.bin`) under the same license.
|
||||||
- The interface font Noto Sans (variable regular and italic, version 2.013, © 2022 The Noto Project Authors) is
|
- The interface font Noto Sans (variable regular and italic, version 2.013, © 2022 The Noto Project Authors) is
|
||||||
bundled under the SIL Open Font License 1.1; see `NotoSans-OFL.txt` in this folder. The files are the exact
|
bundled under the SIL Open Font License 1.1; see `NotoSans-OFL.txt` in this folder. The files are the exact
|
||||||
copies shipped in the installed official TeamSpeak 6 client bundle, unmodified.
|
copies shipped in the installed official TeamSpeak 6 client bundle, unmodified.
|
||||||
- Interface icons are artwork of the official TeamSpeak 6 client (TeamSpeak Systems GmbH), included at the owner's
|
- `teamspeak-client-icons-PROVENANCE.md` preserves the former renderer's TeamSpeak artwork source, hashes,
|
||||||
direction without an identified redistribution licence; TeamsPeach does not relicense them. Source, hashes and
|
transformations and rights restrictions as a historical record, not a native asset inventory. Those renderer
|
||||||
transformations are recorded in `teamspeak-client-icons-PROVENANCE.md` in this folder.
|
sprites, masks and flag files are not migrated to the native resource bundle. The TeamsPeach application icon
|
||||||
- The portable microphone noise suppressor uses the WebRTC-derived Sonora implementation, BSD-3-Clause.
|
is retained unchanged as `native/resources/icon.png`.
|
||||||
See `sonora-NOTICE.txt` for source/version provenance and `denoise-THIRD-PARTY-NOTICES.txt` for the pinned
|
- Native roster flags use the original 4:3 SVGs from [flag-icons](https://github.com/lipis/flag-icons/tree/v7.3.2)
|
||||||
dependency and Rust standard-library license texts. The same packaged WebAssembly module runs on all targets.
|
v7.3.2, MIT, Copyright (c) 2013 Panayiotis Lipiridis. The unmodified upstream licence is in
|
||||||
- Notification WAV files are copied from the installed official TeamSpeak client at the owner's direction.
|
`native/resources/flags/LICENSE` (packaged as `resources/flags/LICENSE`). The
|
||||||
|
[npm release archive](https://registry.npmjs.org/flag-icons/-/flag-icons-7.3.2.tgz) has SHA-256
|
||||||
|
`9477c5252afe0e99dd2d4408b664c83e7c7c80785c7983751d5c7a020198a731`. The subset contains all 249
|
||||||
|
ISO 3166-1 entries and the two-letter geographic extensions `cp`, `dg`, `eu`, `ic`, and `xk`;
|
||||||
|
organization flags, longer regional codes, and the unknown placeholder are not bundled.
|
||||||
|
- Native microphone DSP uses the WebRTC-derived Sonora AEC3, noise suppression and adaptive AGC2 chain,
|
||||||
|
BSD-3-Clause. See `sonora-NOTICE.txt` and `dsp/vendor/provenance.json` for source/version and local patch
|
||||||
|
provenance. `denoise-THIRD-PARTY-NOTICES.txt` retains the historical DSP dependency and Rust standard-library
|
||||||
|
license texts; it is not a complete dependency inventory for the native application. Native About explicitly
|
||||||
|
reports the absence of a complete native UI/media dependency notice inventory.
|
||||||
|
- The 54 notification WAV files in `native/resources/sounds/` are copied unchanged from the installed official
|
||||||
|
TeamSpeak client at the owner's direction.
|
||||||
No redistribution licence has been identified; source hashes and event mapping are recorded in
|
No redistribution licence has been identified; source hashes and event mapping are recorded in
|
||||||
`teamspeak-client-sounds-PROVENANCE.md`. They are not relicensed by TeamsPeach.
|
`teamspeak-client-sounds-PROVENANCE.md`. They are not relicensed by TeamsPeach.
|
||||||
- TeamSpeak is a trademark of TeamSpeak Systems GmbH. TeamsPeach is an independent client and is not
|
- TeamSpeak is a trademark of TeamSpeak Systems GmbH. TeamsPeach is an independent client and is not
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
Noto Sans 2.013 variable, axes wght 100-900 and wdth 62.5-100 (app/renderer/assets/fonts/NotoSans-VF.ttf,
|
Noto Sans 2.013 variable, axes wght 100-900 and wdth 62.5-100 (native/resources/fonts/NotoSans-VF.ttf,
|
||||||
NotoSans-Italic-VF.ttf): unmodified copies of the files shipped in the installed official TeamSpeak 6 client
|
NotoSans-Italic-VF.ttf): unmodified copies of the files shipped in the installed official TeamSpeak 6 client
|
||||||
(html/client_ui/b1d0ab70303caea663db.ttf, name ID 3 "2.013;GOOG;NotoSans-Regular", sha256
|
(html/client_ui/b1d0ab70303caea663db.ttf, name ID 3 "2.013;GOOG;NotoSans-Regular", sha256
|
||||||
74df1f61ab9d4bfaa961c65f8dc991deaae2885b0a6a6d6a60ed23980b3c8554; html/client_ui/628d4779d07f4e15066b.ttf, name ID 3
|
74df1f61ab9d4bfaa961c65f8dc991deaae2885b0a6a6d6a60ed23980b3c8554; html/client_ui/628d4779d07f4e15066b.ttf, name ID 3
|
||||||
|
|||||||
@@ -1,32 +1,46 @@
|
|||||||
TeamsPeach noise reduction (app/renderer/assets/audio/denoise.wasm)
|
TeamsPeach native capture DSP (dsp/)
|
||||||
===================================================================
|
===================================================================
|
||||||
|
|
||||||
The microphone noise reduction module is built from TeamsPeach's dsp/ crate
|
The native microphone capture processor is linked as Rust code from TeamsPeach's
|
||||||
(scripts/build-denoise.mjs, target wasm32-unknown-unknown) and contains code from
|
dsp/ crate. It runs Sonora's integrated AEC3, noise suppression and adaptive AGC2
|
||||||
the following crates, compiled in unmodified:
|
chain according to the selected settings. There is no renderer WebAssembly ABI.
|
||||||
|
The noise-only filter-bank implementation remains a Rust-test-only behavioral
|
||||||
|
reference, not a second production capture stage.
|
||||||
|
|
||||||
sonora 0.2.0 BSD-3-Clause (three-band 48 kHz filter bank)
|
Pinned Sonora packages include (all 0.3.0, BSD-3-Clause):
|
||||||
sonora-ns 0.2.0 BSD-3-Clause (WebRTC noise suppressor)
|
sonora, sonora-aec3, sonora-agc2, sonora-common-audio,
|
||||||
sonora-fft 0.2.0 BSD-3-Clause (FFT used by the noise suppressor)
|
sonora-fft, sonora-ns, sonora-simd.
|
||||||
|
|
||||||
Source: https://github.com/dignifiedquire/sonora
|
Source: https://github.com/dignifiedquire/sonora
|
||||||
Commit: a024d6ef8351add55be5e8b1d6cc35f555787660 (per the published crates'
|
Commit: 1632d47c1e77d0857f9145bd175134b348541e11 (per the published crates'
|
||||||
.cargo_vcs_info.json)
|
.cargo_vcs_info.json)
|
||||||
Registry: crates.io; package checksums (SHA-256 of the .crate files)
|
Registry: crates.io; package checksums (SHA-256 of the .crate files)
|
||||||
sonora 0.2.0 2e1ce442ab5cb392c4067b8f2cced20be4cf12e479f6dfbf44acbe9b14ac9250
|
sonora 0.3.0 d461e6c9ad112f8728919387a4bc5639fd28631f2070171efad38676e907edd8
|
||||||
sonora-ns 0.2.0 d511feef19302c716d245c4555087d161ba91c178735ea11107dcce0d0b7a86f
|
sonora-aec3 0.3.0 f2809c3fda13f71deac22d0ddb6c02c493f254d3da2afe59a7e256a8f15bcffe
|
||||||
sonora-fft 0.2.0 27e272c70f34363afb5382dd1818c05f8f63ef6785635736a14e9ccbbb5ba012
|
sonora-agc2 0.3.0 501b5dd3f8bdc8c983dc64a131cef22a429f3ff879d6f0007b8bfe46ec7b96aa
|
||||||
|
sonora-common-audio 0.3.0 2c05dfa300c14dc8498751ce2c5b87aad2acf1892d4f9d66b92ae2f372a83410
|
||||||
|
sonora-fft 0.3.0 ec3529f2cf748f1acc85d9403ffa08a3fe69dec6bf22383910b3bd21aca2fd26
|
||||||
|
sonora-ns 0.3.0 31c0a62e78419a174dbf9c9c01943c1ecd8c298a68d15c4fb4906cb19f0428b9
|
||||||
|
sonora-simd 0.3.0 f939d8e63a2a0baa7555294d7b09c5e3d382f28358755b920e13ad527658c8fa
|
||||||
|
|
||||||
sonora is a pure Rust port of the WebRTC Native Code audio processing module
|
sonora is a pure Rust port of the WebRTC Native Code audio processing module
|
||||||
(M145 plus later upstream fixes), via PulseAudio's webrtc-audio-processing
|
(M145 plus later upstream fixes), via PulseAudio's webrtc-audio-processing
|
||||||
extraction. Only the filter bank and noise suppressor run; sonora's echo
|
extraction. TeamsPeach vendors sonora and sonora-agc2, retaining local mono AGC2
|
||||||
canceller and gain controller are never constructed. TeamsPeach does not claim
|
borrowed-channel processing to avoid frame copies. Upstream 0.3.0's generic limiter
|
||||||
bit-identical behaviour with TeamSpeak's own noise reduction.
|
subsumes the former local limiter descriptor-allocation patch. Exact modified files,
|
||||||
|
upstream archive checksums and patch scope are in dsp/vendor/provenance.json;
|
||||||
|
upstream license and copyright texts are retained in each vendored package.
|
||||||
|
Other pinned Sonora packages use their registry sources. No end-to-end
|
||||||
|
allocation-free guarantee or bit-identical behavior with TeamSpeak's proprietary
|
||||||
|
DSP is claimed.
|
||||||
|
|
||||||
The module also contains parts of the Rust standard library (core, alloc, std
|
The native executable also uses the Rust standard library (core, alloc, std and
|
||||||
and its bundled allocator and math routines), licensed MIT OR Apache-2.0.
|
its bundled allocator and math routines), licensed MIT OR Apache-2.0. Current
|
||||||
|
resolved DSP dependency license texts are in denoise-THIRD-PARTY-NOTICES.txt;
|
||||||
|
that file includes locked optional, build-time and target-specific dependencies
|
||||||
|
and is not a complete inventory of the native executable's dependencies.
|
||||||
|
|
||||||
License of sonora, sonora-ns and sonora-fft (BSD-3-Clause, verbatim):
|
License of the Sonora packages (BSD-3-Clause, verbatim):
|
||||||
|
|
||||||
Copyright (c) 2011, The WebRTC Project Authors. All rights reserved.
|
Copyright (c) 2011, The WebRTC Project Authors. All rights reserved.
|
||||||
Copyright (c) 2016, Arun Raghavan and contributors. All rights reserved.
|
Copyright (c) 2016, Arun Raghavan and contributors. All rights reserved.
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# Official TeamSpeak 6 client icon artwork in TeamsPeach — provenance
|
# Official TeamSpeak 6 client icon artwork in TeamsPeach — provenance
|
||||||
|
|
||||||
|
**Historical scope.** This document records the removed reference renderer's artwork imports and transformations.
|
||||||
|
The `app/renderer/` paths below are historical, not current native resource dependencies. The renderer SVG sprite,
|
||||||
|
mask files and country-flag files were not migrated into the native resource bundle. Their original source hashes
|
||||||
|
and redistribution restrictions are retained here; removing the renderer grants no new rights. The separate
|
||||||
|
TeamsPeach product icon was relocated unchanged to `native/resources/icon.png` (SHA-256
|
||||||
|
`87cfe10da3359eae8c000d0e5b2491524e132c4f9c34a54bfd0c94296c97c422`).
|
||||||
|
|
||||||
The SVG symbols in the sprite of `app/renderer/index.html` and the four mask files in `app/renderer/assets/icons/`
|
The SVG symbols in the sprite of `app/renderer/index.html` and the four mask files in `app/renderer/assets/icons/`
|
||||||
are artwork of the official TeamSpeak 6 client (TeamSpeak Systems GmbH), copied from the client installed on the
|
are artwork of the official TeamSpeak 6 client (TeamSpeak Systems GmbH), copied from the client installed on the
|
||||||
owner's workstation at the owner's direction (2026-11-01 brief: the installed client's design, value for value).
|
owner's workstation at the owner's direction (2026-11-01 brief: the installed client's design, value for value).
|
||||||
@@ -8,8 +15,8 @@ owner's workstation at the owner's direction (2026-11-01 brief: the installed cl
|
|||||||
governed by its own licence agreement (`licenses/en/la_desktop.html` in the client installation). TeamsPeach does not
|
governed by its own licence agreement (`licenses/en/la_desktop.html` in the client installation). TeamsPeach does not
|
||||||
relicense this artwork and does not claim the right to publish it; it is not covered by TeamsPeach's own terms or by
|
relicense this artwork and does not claim the right to publish it; it is not covered by TeamsPeach's own terms or by
|
||||||
any open-source licence in this folder. TeamSpeak logos, wordmarks, `teamspeak_label`, brand icons, presets and
|
any open-source licence in this folder. TeamSpeak logos, wordmarks, `teamspeak_label`, brand icons, presets and
|
||||||
account/myTeamSpeak-only artwork are deliberately not included; the TeamsPeach name and `assets/icon.png` remain the
|
account/myTeamSpeak-only artwork were deliberately not included; the TeamsPeach name and product icon remain the
|
||||||
product brand.
|
product brand (current path `native/resources/icon.png`).
|
||||||
|
|
||||||
## Source
|
## Source
|
||||||
|
|
||||||
@@ -350,6 +357,16 @@ under the installed client's `images/icons/`; hashes were read on 2026-11-01.
|
|||||||
|
|
||||||
`i-chat-contact` represents a locally received whisper participant, not an account service.
|
`i-chat-contact` represents a locally received whisper participant, not an account service.
|
||||||
|
|
||||||
|
## Analytics mode artwork
|
||||||
|
|
||||||
|
The owner-approved original Privacy composition uses two source symbols to describe unavailable
|
||||||
|
diagnostics modes, not to enable telemetry. The same redistribution restrictions above apply.
|
||||||
|
|
||||||
|
| Product symbol | Source file | SHA-256 |
|
||||||
|
|---|---|---|
|
||||||
|
| `i-analytics-limited` | `analytics_limited.svg` | `0d7af0589dd5dc76610ef324228ad07a364e8e5c6cd66dc9d52939f10119fe49` |
|
||||||
|
| `i-analytics-enhanced` | `analytics_enhanced.svg` | `18a012f09aaefd230c65286e594d0fcf09115473497da07421a692ea86bf1535` |
|
||||||
|
|
||||||
## Not included
|
## Not included
|
||||||
|
|
||||||
TeamSpeak logo/label/mono marks, `ts_logo_qr.png`, `brands-*`, room presets and banners, content backgrounds, hex decorations,
|
TeamSpeak logo/label/mono marks, `ts_logo_qr.png`, `brands-*`, room presets and banners, content backgrounds, hex decorations,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Official TeamSpeak 6 client notification sounds in TeamsPeach — provenance
|
# Official TeamSpeak 6 client notification sounds in TeamsPeach — provenance
|
||||||
|
|
||||||
The 54 files in `app/renderer/assets/sounds/` are notification sounds of the official TeamSpeak 6 client
|
The 54 files in `native/resources/sounds/` (formerly `app/renderer/assets/sounds/`) are notification sounds of the official TeamSpeak 6 client
|
||||||
(TeamSpeak Systems GmbH), copied byte for byte from the client installed on the owner's workstation at the owner's
|
(TeamSpeak Systems GmbH), copied byte for byte from the client installed on the owner's workstation at the owner's
|
||||||
direction (2026-11-01 brief: the installed client's features and panels, value for value).
|
direction (2026-11-01 brief: the installed client's features and panels, value for value).
|
||||||
|
|
||||||
@@ -25,8 +25,9 @@ by any open-source licence in this folder.
|
|||||||
|
|
||||||
## Transformations
|
## Transformations
|
||||||
|
|
||||||
None. Each file is an unchanged copy (RIFF/WAVE PCM, including its original `LIST`/`CDif`/`cue `/`bext` chunks); the
|
None. Each file is an unchanged copy (RIFF/WAVE PCM, including its original `LIST`/`CDif`/`cue `/`bext` chunks).
|
||||||
renderer decodes it with Chromium's own decoder at playback time.
|
The native worker decodes PCM with `hound`, then resamples/mixes through the native notification output path;
|
||||||
|
it does not use Chromium's decoder. The former renderer resource paths were relocated without changing file bytes.
|
||||||
|
|
||||||
## Files
|
## Files
|
||||||
|
|
||||||
|
|||||||
@@ -7,17 +7,19 @@ session; items marked *inferred* come from the brief alone).
|
|||||||
|
|
||||||
## Platform
|
## Platform
|
||||||
|
|
||||||
web
|
native
|
||||||
|
|
||||||
(An Electron desktop application whose interface is HTML/CSS; target systems: Linux ARM64 on Apple M1 Pro
|
(A Rust/Slint application targeting Linux ARM64 on Apple M1 Pro under Asahi Linux first,
|
||||||
under Asahi Linux first, plus Linux x86-64 and Windows x86-64.)
|
plus Linux x86-64 and Windows x86-64. Other desktop/mobile targets are acceptance targets,
|
||||||
|
not a claim of tested platform support.)
|
||||||
|
|
||||||
## Stack
|
## Stack
|
||||||
|
|
||||||
Delegated: Electron with plain JavaScript modules and HTML/CSS for the interface; a Rust native core
|
Rust workspace: Slint UI in `native/`, ReSpeak tsclientlib protocol library in `core/`,
|
||||||
(ReSpeak tsclientlib) for the TeamSpeak protocol, spoken to over newline-JSON stdio. Chosen because the
|
native DSP in `dsp/`, and source-built libwebrtc with Skia presentation. The application
|
||||||
screenshare viewer needs a real libwebrtc-compatible WebRTC stack (Chromium's) and the owner had no stack
|
uses typed in-process services and bounded media channels; the standalone core JSON adapter
|
||||||
preference.
|
remains a diagnostic interface, not the desktop transport. There is no browser or JavaScript
|
||||||
|
runtime. Cargo `xtask` owns dependency provisioning, builds, packaging and isolated smoke entry points.
|
||||||
|
|
||||||
## Users
|
## Users
|
||||||
|
|
||||||
@@ -40,17 +42,19 @@ a claim of complete interoperability; the evidence matrix records the demonstrat
|
|||||||
## Operating Context
|
## Operating Context
|
||||||
|
|
||||||
Long voice sessions with the app in the background; push-to-talk or an open microphone; occasional stream
|
Long voice sessions with the app in the background; push-to-talk or an open microphone; occasional stream
|
||||||
viewing and explicitly started publishing in a channel; the client now offers target-bound moderation
|
viewing and explicitly started publishing in a channel; target-bound moderation and explicit group/client
|
||||||
and explicit group/client permission changes, while the server remains authoritative.
|
permission changes remain required, while the server remains authoritative. Historical implementation
|
||||||
|
evidence is separated from native acceptance in FEATURE_COMPATIBILITY.md.
|
||||||
|
|
||||||
## Capabilities and Constraints
|
## Capabilities and Constraints
|
||||||
|
|
||||||
- No myTeamSpeak account, registration or global services; identity is a local P-256 key with a public UID.
|
- No myTeamSpeak account, registration or global services; identity is a local P-256 key with a public UID.
|
||||||
- Server-provided content (names, chat, descriptions, banners, icons) is untrusted input.
|
- Server-provided content (names, chat, descriptions, banners, icons) is untrusted input.
|
||||||
- Screenshare viewing uses the P2P path only; SFU-routed streams are reported as unsupported.
|
- Screenshare viewing uses the P2P path only; SFU-routed streams are reported as unsupported.
|
||||||
- The renderer may not choose files, paths or commands; native dialogs live in the main process.
|
- UI intents cannot choose arbitrary host paths or commands; native services own chooser grants and validation.
|
||||||
- Later goal: broader parity with server features; out of scope: global myTeamSpeak features.
|
- Broader local/server parity remains required; global myTeamSpeak services are outside scope.
|
||||||
- Undecided: sending one's own screen share; global push-to-talk on Wayland; license of TeamsPeach's code.
|
- Publishing, global shortcuts and platform integration require real native backends and separately scoped evidence.
|
||||||
|
- Product cutover does not establish full acceptance; no historical browser-client pass becomes a native pass.
|
||||||
|
|
||||||
## Brand Commitments
|
## Brand Commitments
|
||||||
|
|
||||||
@@ -60,8 +64,9 @@ installed official TeamSpeak 6 client's design, not an interpretation: the Liqui
|
|||||||
peach accent are retired. Colours, typography (bundled Noto Sans, SIL OFL), spacing, row heights,
|
peach accent are retired. Colours, typography (bundled Noto Sans, SIL OFL), spacing, row heights,
|
||||||
the three-slot window (sidebar, server tree, detail pane), menus, settings and chat geometry come from
|
the three-slot window (sidebar, server tree, detail pane), menus, settings and chat geometry come from
|
||||||
the installed client's own source values, with extraction offsets in `docs/evidence/official-parity/`.
|
the installed client's own source values, with extraction offsets in `docs/evidence/official-parity/`.
|
||||||
The TeamSpeak application logo and name are not shipped. Non-brand SVG artwork is copied from the
|
The TeamSpeak application logo and name are not shipped. Historical non-brand SVG artwork and retained
|
||||||
installed client for the owner's requested local reproduction; no redistribution licence is claimed.
|
notification sounds have provenance records in `LICENSES/`; no redistribution licence is claimed.
|
||||||
|
Removing the old interface does not remove the legal obligations of retained assets.
|
||||||
Account-bound surfaces (notification bell, cloud contacts, myTeamSpeak presence, Setup Chat) remain omitted.
|
Account-bound surfaces (notification bell, cloud contacts, myTeamSpeak presence, Setup Chat) remain omitted.
|
||||||
Local UID contacts use connected-server presence only and are not a substitute for cloud synchronization.
|
Local UID contacts use connected-server presence only and are not a substitute for cloud synchronization.
|
||||||
Remaining visual and functional deviations are listed in DESIGN.md and FEATURE_COMPATIBILITY.md; visual
|
Remaining visual and functional deviations are listed in DESIGN.md and FEATURE_COMPATIBILITY.md; visual
|
||||||
|
|||||||
@@ -2,8 +2,9 @@
|
|||||||
|
|
||||||
A desktop client for **TeamSpeak 6** servers without a myTeamSpeak account: voice, chat, a channel tree
|
A desktop client for **TeamSpeak 6** servers without a myTeamSpeak account: voice, chat, a channel tree
|
||||||
with server groups, icons and banners, and **TS6 screenshare viewing**.
|
with server groups, icons and banners, and **TS6 screenshare viewing**.
|
||||||
The interface uses Electron (plain JavaScript modules and HTML/CSS); a native Rust core handles the
|
The interface is native **Rust/Slint**, with Skia presentation and source-built libwebrtc. The Rust
|
||||||
protocol (`core/`, ReSpeak tsclientlib) over private stdio. See the [bridge contract](docs/bridge.md).
|
protocol library (`core/`, ReSpeak tsclientlib) runs in process through typed, bounded services.
|
||||||
|
The standalone core's diagnostic JSON adapter is documented in the [bridge contract](docs/bridge.md).
|
||||||
|
|
||||||
See [`FEATURE_COMPATIBILITY.md`](FEATURE_COMPATIBILITY.md) for feature status and evidence. This is not a
|
See [`FEATURE_COMPATIBILITY.md`](FEATURE_COMPATIBILITY.md) for feature status and evidence. This is not a
|
||||||
claim of full TeamSpeak 6 parity: official-client voice interoperability and Asahi hardware operation
|
claim of full TeamSpeak 6 parity: official-client voice interoperability and Asahi hardware operation
|
||||||
@@ -11,52 +12,160 @@ have not been proven.
|
|||||||
|
|
||||||
## Development (Windows / Linux)
|
## Development (Windows / Linux)
|
||||||
|
|
||||||
```
|
Use the pinned Rust toolchain in `rust-toolchain.toml`, a native C/C++ compiler, CMake, Python 3,
|
||||||
npm ci
|
and the target's installed SDK/toolchain. Native dependencies are source-built from the revisions and
|
||||||
rustup target add wasm32-unknown-unknown
|
provenance gates in `native/native-deps.lock.json`; no browser runtime or JavaScript build tooling is required.
|
||||||
node scripts/build-denoise.mjs # independent WASM noise reduction
|
|
||||||
cargo build --release --locked --manifest-path core/Cargo.toml # requires Rust ≥ 1.89, CMake and a C compiler
|
Run from the repository root, selecting the real target triple:
|
||||||
npm start
|
|
||||||
|
```sh
|
||||||
|
cargo run -p xtask -- deps --target x86_64-pc-windows-msvc
|
||||||
|
cargo run -p xtask -- build --target x86_64-pc-windows-msvc
|
||||||
```
|
```
|
||||||
|
|
||||||
Electron looks for the core in `core/target/release` and `core/target/debug`, choosing the newer binary.
|
Linux targets include `x86_64-unknown-linux-gnu` and `aarch64-unknown-linux-gnu`. Provisioning requires
|
||||||
If rustup installed Cargo without adding it to PATH on Windows, run
|
network access and suitable installed platform tools; `xtask` does not install system SDKs. `--llvm-dir`,
|
||||||
`%USERPROFILE%\.cargo\bin\cargo.exe` or open Developer PowerShell for VS. Use `-j 2` if linking runs out
|
`--skia-source` and `--jobs` select explicitly supplied tools/sources and build parallelism.
|
||||||
of memory.
|
The normal build retains the Skia and WebRTC feature set; a reduced-feature build is not a product build.
|
||||||
|
Outputs use workspace `target/<target-triple>/release` or `CARGO_TARGET_DIR` (relative to the repository root).
|
||||||
|
Launch `teamspeach.exe` on Windows or `teamspeach` on Linux from that directory.
|
||||||
|
|
||||||
Use a separate profile without touching the main one: `TEAMSPEACH_PROFILE_DIR=<absolute-path> npm start`.
|
Set `TEAMSPEACH_PROFILE_DIR` to an absolute, separate directory before launch to avoid changing the main
|
||||||
|
profile. First-run native onboarding supports explicit read-only import of a selected historical profile;
|
||||||
The safe UI suites use a disposable, hidden, nonfocusable, offscreen and muted Electron process:
|
it never silently adopts or overwrites it. See **Identity backups and profile migration** below.
|
||||||
`node scripts/smoke-official-shell-offscreen.mjs --exe <isolated-package> --out <evidence-directory>`.
|
|
||||||
The launcher refuses packaged main code that differs from the current offscreen-aware source. Generated
|
|
||||||
streams use real local Chromium WebRTC but synthetic signaling/server state; this is not live-server
|
|
||||||
interoperability proof. No native fullscreen/PiP, OS input, capture, clipboard or native dialogs are used.
|
|
||||||
|
|
||||||
## Packaging
|
## Packaging
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm run dist:win-x64 # NSIS + zip
|
cargo run -p xtask -- package --target x86_64-pc-windows-msvc --out dist/native-local
|
||||||
npm run dist:linux-x64 # AppImage + tar.gz
|
cargo run -p xtask -- verify-package --target x86_64-pc-windows-msvc --out dist/native-local
|
||||||
npm run dist:linux-arm64 # AppImage + tar.gz (build the aarch64 core separately)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
`scripts/dist.mjs` **refuses** to package without a core for the target OS and architecture (checked via
|
Packaging consumes a completed native build and installed platform packaging tools. Use a fresh output
|
||||||
its PE/ELF/Mach-O header), copies the core's `THIRD_PARTY_NOTICES.md` into `resources/licenses/`, and
|
directory for a rebuild. Windows uses NSIS and ZIP; Linux uses AppImage and tar.gz. The package includes
|
||||||
checks that the package actually contains the core. For Asahi's 16 KiB pages, use
|
native resources, core/WebRTC notices and asset provenance. Actual archive inspection checks architecture,
|
||||||
`node scripts/elf-pagesize.mjs <file-or-directory>` to check PT_LOAD alignment, glibc and dependencies.
|
imports, assets/licenses, native build receipts and the absence of browser/JavaScript runtime payloads.
|
||||||
|
ARM64 Linux acceptance includes 16 KiB-compatible ELF segments; emulation is not Asahi hardware evidence.
|
||||||
|
|
||||||
CI: `.gitea/workflows/ci.yml` (Gitea Actions, Linux x64 containers) runs tests, builds the core, checks
|
Local packages, unsigned packages and test-harness packages are not publication or installed-update proof.
|
||||||
identity invariants offline over stdio, runs Electron smoke checks under Xvfb, and cross-compiles the
|
`xtask package` and `verify-package` are local-only; `publish-release` is a separate explicit command
|
||||||
aarch64 core with 16 KiB checks and execution under `qemu-aarch64` (emulation, not Apple hardware).
|
used by the trusted-tag workflow. No command creates tags or infers signing credentials. Redistribution
|
||||||
It runs on pushes to `main` and manual dispatch only. Pull requests do not run automatically: this is a
|
rights for retained TeamSpeak artwork/sounds and platform signing/acceptance remain separate requirements.
|
||||||
public repository with a runner on a private network, so a maintainer reviews external changes first.
|
CI/release configuration is under `.gitea/workflows/`; an unexecuted configuration is not a successful run.
|
||||||
|
|
||||||
Releases: `.gitea/workflows/release.yml` runs for `v*` tags. The tag must match `package.json` and
|
### Native CI and releases
|
||||||
`core/Cargo.toml`. It builds Linux x64 and ARM64, checks ELF files, and publishes the release only after
|
|
||||||
uploading all files to a draft. Windows x64 is built on the developer's machine from the same commit and
|
The workflows require matching native runners labelled `teamspeach-native-linux-x64` and
|
||||||
attached with a `local` designation and a `*-build-info.txt` provenance file.
|
`teamspeach-native-linux-arm64`. Provision the Rust version from `rust-toolchain.toml`, Python 3, LLVM/libclang, CMake, Ninja,
|
||||||
|
Linux audio/window development libraries, Xvfb and D-Bus session tools before enabling them.
|
||||||
|
Set repository variables `NATIVE_LLVM_HOME`, `NATIVE_LIBCLANG_PATH` and `NATIVE_SKIA_SOURCE_DIR`
|
||||||
|
to existing tools and a dependency-synchronized Skia checkout containing `bin/gn`. Packaging also
|
||||||
|
requires linuxdeploy, appimagetool, unsquashfs and archive/LLVM inspection tools. Jobs explicitly run
|
||||||
|
`xtask deps` to provision pinned WebRTC; they do not install system SDKs on the runner.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cargo run --locked -p xtask -- check-version
|
||||||
|
python -B -m unittest discover -s xtask -p test_publish_release.py
|
||||||
|
cargo run --locked -p xtask -- prepare-release --out artifacts
|
||||||
|
```
|
||||||
|
|
||||||
|
Release assembly consumes the downloaded `teamspeach-native-<target-triple>` bundles for both Linux
|
||||||
|
architectures, including their package, payload-verification and dependency receipts. It validates all
|
||||||
|
digests and merges the native manifest. Trusted `v*` tags then use `publish-release --out artifacts`
|
||||||
|
with the workflow's `GITEA_TOKEN`, `GITHUB_REF`, `GITHUB_SERVER_URL` and `GITHUB_REPOSITORY` environment.
|
||||||
|
Publication creates a new draft, uploads and reads back all assets, checks hashes, then publishes;
|
||||||
|
it refuses to overwrite an existing release. Manual dispatch builds/verifies without publication.
|
||||||
|
The Python tests mock HTTP and never publish. Native compilation, UI smoke and device acceptance
|
||||||
|
remain separate checks; removing the Electron updater harness does not establish native update E2E.
|
||||||
|
|
||||||
|
### Android development (Windows, Linux CI)
|
||||||
|
|
||||||
|
The selected Android route is **develop on Windows → manually dispatch Gitea Actions → build and
|
||||||
|
package entirely on Linux CI → download artifacts → install the test-only APK with Windows `adb`**.
|
||||||
|
WSL, Docker and a local Linux installation are **not required on the developer PC**. Windows needs
|
||||||
|
the editor/source checkout, a browser for Gitea and Android SDK Platform-Tools for device installation;
|
||||||
|
the Android SDK/NDK, Java and heavy native build tools belong on the CI runner for this route.
|
||||||
|
|
||||||
|
Pinned WebRTC's [official Android source-build documentation](https://github.com/webrtc-sdk/webrtc/blob/9c3a1386f07e4348c28cd85c066821cebc3b56e4/docs/native-code/android/README.md)
|
||||||
|
states “Android development is only supported on Linux.” This is a build-host requirement for CI,
|
||||||
|
not a requirement to run Linux locally. A Windows WebRTC Android source build is not a supported
|
||||||
|
alternative. CI keeps the full **Skia + WebRTC** feature set and pinned-source/receipt checks.
|
||||||
|
|
||||||
|
#### CI administrator prerequisites
|
||||||
|
|
||||||
|
The manual [`android-ci`](.gitea/workflows/android.yml) workflow is separate from the Linux desktop
|
||||||
|
workflows above. Before dispatch, an administrator must enable Gitea Actions and artifact support,
|
||||||
|
register a dedicated **Linux x64** runner labelled `teamspeach-android-linux-x64`, and provision its
|
||||||
|
toolchains and repository variables. Their presence is not established merely by committing the workflow.
|
||||||
|
|
||||||
|
| Repository variable | Required existing runner installation/input |
|
||||||
|
| --- | --- |
|
||||||
|
| `ANDROID_SDK_ROOT` | Android SDK with API 36, `build-tools/36.0.0` and `ndk/28.2.13676358` |
|
||||||
|
| `ANDROID_JAVA_HOME` | JDK 17+ including `keytool` (JDK 21 is acceptable) |
|
||||||
|
| `NATIVE_LLVM_HOME` | LLVM tool directory used by `xtask` |
|
||||||
|
| `NATIVE_LIBCLANG_PATH` | libclang library directory |
|
||||||
|
| `NATIVE_SKIA_SOURCE_DIR` | Dependency-synchronized Skia source checkout containing `bin/gn` |
|
||||||
|
| `ANDROID_GRADLE_DISTRIBUTION` | Local `gradle-8.14.3-bin.zip`; bootstrap verifies its committed SHA-256 |
|
||||||
|
| `ANDROID_BUNDLETOOL` | Local `bundletool.jar` for AAB inspection |
|
||||||
|
|
||||||
|
Also provision the pinned Rust toolchain and `aarch64-linux-android` target, Python 3, Git, CMake,
|
||||||
|
Ninja and required Linux native-build dependencies. The workflow does not install system SDKs or
|
||||||
|
download a Gradle distribution. It source-builds pinned WebRTC via `xtask deps`, builds the ARM64
|
||||||
|
application, packages both variants and runs `verify-package`. Its explicit `--gradle-online true`
|
||||||
|
allows Gradle dependency resolution on CI; the ordinary packaging default remains offline.
|
||||||
|
Provision runner resources for the full native build; local developer-machine limits are not a CI policy.
|
||||||
|
No production signing credentials are needed or used by this unsigned-artifact workflow.
|
||||||
|
|
||||||
|
#### Dispatch, download and install from Windows
|
||||||
|
|
||||||
|
1. Deliver the source changes through the normal authorized repository process. In the repository's
|
||||||
|
**Actions** page select **android-ci** (`android.yml`), choose the intended branch/ref and dispatch it
|
||||||
|
manually. This workflow has no automatic push/tag trigger and does not publish releases.
|
||||||
|
2. Only after an actual successful run, download and extract **`android-harness-arm64`** and
|
||||||
|
**`android-production-unsigned-arm64`**. Each bundle includes root `build-info.json` identifying
|
||||||
|
the exact revision, package manifests/hashes and `aarch64-linux-android` package-verification,
|
||||||
|
native-build and dependency JSON receipts. Match the run/ref and APK SHA-256 to that evidence
|
||||||
|
before installing; a bare APK is not provenance.
|
||||||
|
For version `0.1.7`, the harness APK is `TeamsPeach-0.1.7-android-arm64-harness-test.apk`; the
|
||||||
|
production bundle contains `TeamsPeach-0.1.7-android-arm64-unsigned.apk` and `.aab`.
|
||||||
|
Use the version actually recorded by the selected run, not a stale download.
|
||||||
|
3. Use a separate **ARM64 Android 8/API 26+ test device**, enable USB debugging and approve this
|
||||||
|
PC's debugging authorization. From the extracted harness APK directory in PowerShell, with
|
||||||
|
Platform-Tools on `PATH`, select the device explicitly and install **only the harness APK**:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
adb devices -l
|
||||||
|
$serial = 'replace-with-authorized-device-serial'
|
||||||
|
Get-FileHash .\TeamsPeach-0.1.7-android-arm64-harness-test.apk -Algorithm SHA256
|
||||||
|
adb -s $serial install -t -r .\TeamsPeach-0.1.7-android-arm64-harness-test.apk
|
||||||
|
```
|
||||||
|
|
||||||
|
Compare the displayed hash with the APK entry in `build-info.json` → `sha256`. `-t` permits the intentionally
|
||||||
|
`testOnly` APK; its debug/test signature is not production signing. Each CI package has an isolated
|
||||||
|
debug key, so a later run can have a different certificate and `-r` can fail with a signature mismatch.
|
||||||
|
Never automatically uninstall anything. Do not remove a production installation or its profile to
|
||||||
|
force an update; use a separate test device. Removing a previous disposable harness installation
|
||||||
|
requires an explicit user decision: **uninstall deletes that app's data**, including local identities
|
||||||
|
and settings. The CI job never selects, installs on or runs tests against a phone.
|
||||||
|
|
||||||
|
The **unsigned production APK is not installable** until separately authorized production signing
|
||||||
|
and signature verification are completed. **An AAB is not directly installable with `adb install`**;
|
||||||
|
it requires the separate signing/store or APK-generation process. These bundles are not a release.
|
||||||
|
The harness is for test-only/offline smoke scenarios, not production feature/device acceptance.
|
||||||
|
Neither this workflow configuration nor installing a harness proves live voice, official-client
|
||||||
|
interoperability, Bluetooth/background behavior or full mobile parity. No successful CI run, generated
|
||||||
|
APK/AAB, device install or mobile acceptance is claimed here.
|
||||||
|
|
||||||
|
**iOS still requires macOS and Xcode/Apple SDKs**, either locally or on separately provisioned macOS
|
||||||
|
CI, plus appropriate signing/provisioning for devices. Windows editing does not make iOS buildable
|
||||||
|
on Windows, and this Android workflow does not build or validate iOS. See the
|
||||||
|
[mobile assessment's current decision](docs/mobile-port-assessment.md#текущее-решение-android-all-ci-2026-11-10)
|
||||||
|
for its relationship to the preserved historical investigation.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
The following is the retained behavioral contract for the native client, not a declaration that every
|
||||||
|
native/platform acceptance case has passed. Consult FEATURE_COMPATIBILITY.md for scoped evidence and gaps.
|
||||||
|
|
||||||
|
|
||||||
1. On first launch, enter a nickname to create a local P-256 identity without an account. Settings →
|
1. On first launch, enter a nickname to create a local P-256 identity without an account. Settings →
|
||||||
Identity manages multiple identities, their names/nicknames, default selection, additive import,
|
Identity manages multiple identities, their names/nicknames, default selection, additive import,
|
||||||
@@ -121,8 +230,8 @@ attached with a `local` designation and a `*-build-info.txt` provenance file.
|
|||||||
Local volume uses the official -200..+10 dB taper, Mute and Reset. Reset restores 0 dB and unmutes;
|
Local volume uses the official -200..+10 dB taper, Mute and Reset. Reset restores 0 dB and unmutes;
|
||||||
explicitly committed modifiers persist by UID, while mute is session-local. Gain is applied before
|
explicitly committed modifiers persist by UID, while mute is session-local. Gain is applied before
|
||||||
voice mixing and never changes other participants.
|
voice mixing and never changes other participants.
|
||||||
The native avatar chooser accepts PNG/JPEG up to 128 KiB and exposes image bytes, never a file path, to
|
The native avatar chooser accepts PNG/JPEG up to 128 KiB; UI intents do not supply arbitrary host paths.
|
||||||
the renderer. Permission lists show explicit client/channel assignments, not a full effective-rights audit.
|
Permission lists show explicit client/channel assignments, not a full effective-rights audit.
|
||||||
8. **Start Stream** opens the source chooser. Selecting a tile shows its thumbnail; **Next** starts
|
8. **Start Stream** opens the source chooser. Selecting a tile shows its thumbnail; **Next** starts
|
||||||
the muted private preview. Only **Go Live** publishes it. Choose an observed window/screen or
|
the muted private preview. Only **Go Live** publishes it. Choose an observed window/screen or
|
||||||
explicitly opt into a camera; camera capture does not include a microphone. Back, cancellation,
|
explicitly opt into a camera; camera capture does not include a microphone. Back, cancellation,
|
||||||
@@ -133,31 +242,35 @@ attached with a `local` designation and a `*-build-info.txt` provenance file.
|
|||||||
Selected-application audio is opt-in: Windows uses WASAPI process-tree capture on build 20348+;
|
Selected-application audio is opt-in: Windows uses WASAPI process-tree capture on build 20348+;
|
||||||
Linux uses PulseAudio/pipewire-pulse sink-input streams through `pactl` and `parec`. Pure PipeWire
|
Linux uses PulseAudio/pipewire-pulse sink-input streams through `pactl` and `parec`. Pure PipeWire
|
||||||
without Pulse compatibility and macOS selected-application audio are not implemented.
|
without Pulse compatibility and macOS selected-application audio are not implemented.
|
||||||
Changing the audio source/scope/app selection never silently reopens the system picker. An explicit
|
Changing the audio source/scope/app selection never silently reopens a system picker. Changed sources
|
||||||
Restart preview action is required for desktop-capturer sources; system-picker sources require Back
|
require explicit preview restart or Back and a fresh source selection, according to the native backend.
|
||||||
and a new explicit selection. The separate supported system-audio choice remains under Advanced.
|
|
||||||
Per-app/master gains apply to the outgoing mix; clicking the percent readout resets gain to 100%.
|
Per-app/master gains apply to the outgoing mix; clicking the percent readout resets gain to 100%.
|
||||||
System audio is never substituted silently, and the local tile is not another receiver subscription.
|
System audio is never substituted silently, and the local tile is not another receiver subscription.
|
||||||
Native capture depends on OS consent and the installed desktop/portal backend; these paths are not
|
Native capture depends on OS consent and the installed desktop/portal backend; these paths are not
|
||||||
universal cross-platform or official-client interoperability proof.
|
universal cross-platform or official-client interoperability proof.
|
||||||
9. Channel/server menus provide typed administration with explicit destructive confirmations and server
|
9. Channel/server menus provide typed administration with explicit destructive confirmations and server
|
||||||
errors. Snapshot import is non-atomic: completed server changes are not rolled back by cancellation.
|
errors. Snapshot import is non-atomic: completed server changes are not rolled back by cancellation.
|
||||||
General file browsing/transfers support the legacy server transport; HTTPFT/S3 remain explicit gaps
|
Channel files use legacy transfer on legacy servers. Ordinary channels can browse S3 metadata;
|
||||||
with no speculative legacy fallback. Filesystem publication fails safely when required atomic/no-replace
|
S3 takes precedence for listing when both S3 and HTTPFT are advertised. HTTPFT remains blocked,
|
||||||
semantics are unavailable. Recording and transfer destinations are approved in main, not renderer paths.
|
with no fallback to legacy storage. S3 upload/download bytes and remote mutations have not been
|
||||||
|
verified live through TeamSpeak. Native services require chooser grants for recording and file
|
||||||
|
destinations and explicit confirmation for overwrite or destructive operations. Filesystem
|
||||||
|
publication fails safely when required atomic/no-replace semantics are unavailable.
|
||||||
File Transfer settings retain an approved download folder or ask every time, and apply upload/download
|
File Transfer settings retain an approved download folder or ask every time, and apply upload/download
|
||||||
concurrency across all tabs (combined at most ten) plus shared directional rate limits. Limits apply to
|
concurrency across all tabs (combined at most ten) plus shared directional rate limits. Limits apply to
|
||||||
active file/snapshot work without restarting streams; they are conservative ceilings, not bandwidth guarantees.
|
active file/snapshot work without restarting streams; they are conservative ceilings, not bandwidth guarantees.
|
||||||
10. Chat history is local and separated by own identity, server and channel/peer identity. Drafts and
|
10. Chat history is local and separated by own identity, server and channel/peer identity. Drafts and
|
||||||
unread state are connection-local. Rich text, local math/diagrams, emoji and server-file links do not
|
unread state are connection-local. Rich text, local math/diagrams, emoji and server-file links do not
|
||||||
require cloud services. Remote images require explicit consent; trusted external sites can be removed
|
require cloud services. Remote images require explicit consent; trusted external sites can be removed
|
||||||
in Settings → Privacy. Matrix/cloud edits, reactions, read receipts and cloud contacts are outside
|
in Settings → Privacy. Central myTeamSpeak/homebase chat and cloud contacts are outside the account-free
|
||||||
the account-free scope; local UID contacts are separate.
|
scope. Server-hosted Matrix rooms on `MATRIXCHAT` servers are a separate, unimplemented transport:
|
||||||
|
their frontend uses the server identity, but native endpoint discovery, authentication and invite requests
|
||||||
|
remain unresolved. They are not excluded merely because they share Matrix room controls. Local UID contacts are separate.
|
||||||
11. Streams support hide/show without unsubscribing, ordering, focus with a secondary strip, pages,
|
11. Streams support hide/show without unsubscribing, ordering, focus with a secondary strip, pages,
|
||||||
an internal tile overlay and moving the existing stage over the server tree. Publisher admission,
|
an internal tile overlay and moving the existing stage over the server tree. Publisher admission,
|
||||||
kick/ban/unblock, pause and live options keep the original tracks/sessions. Standalone pop-out reuses
|
kick/ban/unblock, pause and live options keep the original tracks/sessions. Standalone pop-out must
|
||||||
the same video; its hidden guest renderer was exercised with explicit test-only viewport emulation.
|
reuse the same decoded media and ownership without a second join. Historical browser-only viewport
|
||||||
Unmodified native pop-out painting and SFU interoperability remain unverified.
|
emulation does not prove native pop-out painting or SFU interoperability.
|
||||||
|
|
||||||
|
|
||||||
## Local panels and integrations
|
## Local panels and integrations
|
||||||
@@ -171,16 +284,15 @@ attached with a `local` designation and a `*-build-info.txt` provenance file.
|
|||||||
IPC, page or remote-button binding is included.
|
IPC, page or remote-button binding is included.
|
||||||
- **Server icons:** the server administration pane lists, uploads, deletes and assigns icons through
|
- **Server icons:** the server administration pane lists, uploads, deletes and assigns icons through
|
||||||
legacy TeamSpeak file transfer. The server's permissions remain authoritative. A reconnect invalidates
|
legacy TeamSpeak file transfer. The server's permissions remain authoritative. A reconnect invalidates
|
||||||
the panel's mutation grant; HTTPFT/S3 storage is not silently treated as an empty icon collection.
|
the panel's mutation grant. Ordinary-channel S3 browsing does not enable S3 or HTTPFT server icons.
|
||||||
- **Noise reduction:** Settings → Audio has four levels saved per input device. The implementation is
|
- **Noise reduction:** Settings → Audio has four levels saved per input device. The implementation is
|
||||||
independent DSP; selected settings and generated-media checks do not prove microphone sound quality
|
independent DSP; selected settings and generated-media checks do not prove microphone sound quality
|
||||||
or bit-identical behavior with the official client.
|
or bit-identical behavior with the official client.
|
||||||
- **Saved bookmark passwords:** encryption uses the operating system's protected storage. Linux
|
- **Saved bookmark passwords:** native protected storage uses platform secret APIs, never a plaintext
|
||||||
`basic_text`/unknown backends are refused; there is no plaintext fallback. A password is revealed only
|
fallback. Historical encrypted passwords require explicit one-time re-entry; old ciphertext is not
|
||||||
by an explicit eye-button click. Changing the address removes its saved passwords; duplicating a bookmark
|
reused. Reveal requires an explicit action, address changes invalidate saved credentials, and forgetting
|
||||||
at the same address preserves them. Forgetting a password still works if encryption becomes unavailable.
|
a password remains possible if the key store is unavailable. Encryption is tied to the OS user/key store,
|
||||||
Encryption is tied to the OS user/key store and is not a portable backup format. Windows DPAPI was exercised;
|
not a portable backup format. Hardware verification is platform-specific; simulated backends are not proof.
|
||||||
Linux keyring and macOS Keychain behavior have not been verified on hardware.
|
|
||||||
|
|
||||||
## Language
|
## Language
|
||||||
|
|
||||||
@@ -190,29 +302,34 @@ changes do not translate server names, chat messages or operating-system device
|
|||||||
|
|
||||||
## Updates
|
## Updates
|
||||||
|
|
||||||
Check for updates in Settings → Information. The first updater-capable version must be installed
|
Check for updates in Settings → Information. Updates come only from published releases of the public
|
||||||
manually: version 0.1.1 and older cannot update themselves. Updates come only from published releases
|
[TeamsPeach/client repository](https://git.eeee.moe/TeamsPeach/client), without credentials. The native
|
||||||
of the public [TeamsPeach/client repository](https://git.eeee.moe/TeamsPeach/client), without credentials.
|
updater requires a validated `rust-slint` release manifest, exact target artifacts and verified hashes.
|
||||||
|
Historical browser-client release feeds alone are insufficient for a native offer.
|
||||||
|
|
||||||
Windows x64 NSIS installations and Linux x64/ARM64 AppImages can download a verified package and install
|
Windows x64 NSIS installations with a valid native installation receipt and Linux x64/ARM64 AppImages
|
||||||
it after confirmation. Windows zip and Linux tar.gz distributions notify you and open the release page;
|
have explicit-install paths. Portable archives and custom-profile Windows runs are manual-only;
|
||||||
replace those files manually. Development runs and unsupported platforms do not self-update. The
|
development/test builds do not self-update. Preview includes prereleases; Stable excludes them.
|
||||||
default Preview channel includes prereleases; choose Stable to exclude them. Installation never starts
|
Nothing installs or restarts automatically, and interrupting an active session requires confirmation.
|
||||||
automatically, and interrupting an active server session requires explicit confirmation.
|
See [Updates](docs/updates.md) for platform modes and release/acceptance requirements. No successful
|
||||||
|
published native upgrade is claimed without source/destination versions and preserved-profile evidence.
|
||||||
|
|
||||||
For platform details, release requirements and verification scope, see [Updates](docs/updates.md).
|
## Identity backups and profile migration
|
||||||
Implementation and service-level tests do not by themselves prove a successful installed upgrade;
|
|
||||||
published-release end-to-end evidence must identify the source and destination versions.
|
|
||||||
|
|
||||||
## Identity backups
|
Identity export writes a TeamSpeak-format `.ini` through a native chooser after a private-key warning.
|
||||||
|
**This file contains your private key: protect it like a password.** Import is additive, preserves existing
|
||||||
|
UIDs, and never silently replaces a corrupt identity. Native onboarding also offers explicit migration
|
||||||
|
from an existing historical profile into a separate native profile; close the old client first.
|
||||||
|
|
||||||
Settings → Identity → Export saves a TeamSpeak-format `.ini` file through a native dialog.
|
Migration copies and validates identities/default selection, preferences, history, keybindings, whispers,
|
||||||
**This file contains your private key: protect it like a password.** Restore it with Import after
|
local volumes, file settings and extensions, leaving the source untouched. Passwords require re-entry;
|
||||||
disconnecting from the server; replacing the current identity requires confirmation. You can also use
|
legacy device identifiers require separate user-confirmed input/output/notification mapping before capture.
|
||||||
Restore from backup on the first-run screen. The core never silently replaces a corrupt identity.
|
Interrupted staging imports need an explicit recovery decision; no silent reset or source deletion occurs.
|
||||||
|
Native data defaults to `%APPDATA%\TeamsPeachNative` on Windows,
|
||||||
Data locations: `%APPDATA%\TeamsPeach` (Windows), `~/.config/TeamsPeach` (Linux). Files include
|
`$XDG_CONFIG_HOME/TeamsPeachNative` (or `~/.config/TeamsPeachNative`) on Linux, and
|
||||||
`core/identity.json`, `core/profile.json`, `prefs.json` and `logs/`.
|
`~/Library/Application Support/TeamsPeachNative` on macOS. These roots are separate from historical
|
||||||
|
`TeamsPeach` profiles. Mobile uses its private application container's `profile-v1` directory.
|
||||||
|
An absolute, normalized `TEAMSPEACH_PROFILE_DIR` selects a separate root; do not point it at the old profile.
|
||||||
|
|
||||||
## Limitations
|
## Limitations
|
||||||
|
|
||||||
@@ -222,9 +339,9 @@ Data locations: `%APPDATA%\TeamsPeach` (Windows), `~/.config/TeamsPeach` (Linux)
|
|||||||
- P2P screenshare publishing is implemented, but native source capture on every OS/window manager,
|
- P2P screenshare publishing is implemented, but native source capture on every OS/window manager,
|
||||||
macOS selected-application audio and official-client interoperability are not all verified. SFU publishing
|
macOS selected-application audio and official-client interoperability are not all verified. SFU publishing
|
||||||
is unavailable. See the feature matrix for the precise implementation and evidence boundaries.
|
is unavailable. See the feature matrix for the precise implementation and evidence boundaries.
|
||||||
- In-window push-to-talk releases on focus loss. Global bindings use the available Windows/Linux
|
- In-window push-to-talk must release on focus loss. Global bindings depend on the real OS backend,
|
||||||
backend; actual OS registration and Wayland portal operation were not exercised by the hidden UI
|
registration and permissions; hidden checks do not prove OS registration or Wayland portal operation.
|
||||||
checks. macOS global shortcuts are explicitly unsupported. No platform-wide shortcut guarantee is made.
|
No platform-wide shortcut guarantee is made.
|
||||||
- Local contacts are keyed by server identity UID and can be highlighted in the tree. They do not sync
|
- Local contacts are keyed by server identity UID and can be highlighted in the tree. They do not sync
|
||||||
with myTeamSpeak, provide global presence or enable cloud/offline chat.
|
with myTeamSpeak, provide global presence or enable cloud/offline chat.
|
||||||
- Server-stored avatars, icons and banners use TeamSpeak file transfer. myTeamSpeak avatars use public
|
- Server-stored avatars, icons and banners use TeamSpeak file transfer. myTeamSpeak avatars use public
|
||||||
@@ -233,19 +350,19 @@ Data locations: `%APPDATA%\TeamsPeach` (Windows), `~/.config/TeamsPeach` (Linux)
|
|||||||
live because no client on the test server advertised one.
|
live because no client on the test server advertised one.
|
||||||
Built-in TeamSpeak group icons (IDs 100, 200, 300, 500, 600) use a neutral badge with the group name,
|
Built-in TeamSpeak group icons (IDs 100, 200, 300, 500, 600) use a neutral badge with the group name,
|
||||||
because the server does not supply these files.
|
because the server does not supply these files.
|
||||||
- Chromium does not expose the official client's Cisco OpenH264 switch or per-codec hardware backend
|
- Native decoder policy applies to the real libwebrtc factory. Historical Chromium hardware-decoder
|
||||||
selection. Chromium chooses the decoder; AV1 hardware decoding with D3D11 was demonstrated on Windows.
|
evidence does not establish native hardware decode, per-codec selection or Cisco backend support.
|
||||||
- macOS and Windows ARM64 builds are not published because build hosts are unavailable. Linux ARM64 is
|
- macOS and Windows ARM64 builds are not published because build hosts are unavailable. Linux ARM64 is
|
||||||
cross-compiled; execution on Asahi M1 Pro hardware has not been checked because the target was
|
cross-compiled; execution on Asahi M1 Pro hardware has not been checked because the target was
|
||||||
unreachable over SSH.
|
unreachable over SSH.
|
||||||
- Packages are unsigned. Windows SmartScreen warns about unsigned builds; macOS Gatekeeper would also
|
- Packages are unsigned. Windows SmartScreen warns about unsigned builds; macOS Gatekeeper would also
|
||||||
require attention for a future macOS build.
|
require attention for a future macOS build.
|
||||||
- The recorded two-way voice run used synthetic capture between two TeamsPeach clients. It does not
|
- A two-way core CLI run verified synthetic voice with silent disposable profiles. It did not use real
|
||||||
prove live microphone interoperability with the official TS6 client or operation on Asahi hardware.
|
microphones or playback devices and does not prove official-client peer or Asahi interoperability.
|
||||||
|
|
||||||
## Product and design
|
## Product and design
|
||||||
|
|
||||||
The interface reproduces the installed TeamSpeak 6 client's own design from its source values (see
|
The design contract reproduces the installed TeamSpeak 6 client's source values (see
|
||||||
DESIGN.md and `docs/evidence/official-parity/`): a three-pane window with a 270 px navigation sidebar
|
DESIGN.md and `docs/evidence/official-parity/`): a three-pane window with a 270 px navigation sidebar
|
||||||
(collapsible to a 62 px rail) listing server connections and saved servers, a 500 px server pane with
|
(collapsible to a 62 px rail) listing server connections and saved servers, a 500 px server pane with
|
||||||
the server header card and channel tree, and a detail pane with the channel header, stream stage, chat
|
the server header card and channel tree, and a detail pane with the channel header, stream stage, chat
|
||||||
@@ -256,21 +373,15 @@ New profiles default to dark independently of the OS; Light and System remain se
|
|||||||
official surfaces (notification bell, cloud contacts, myTeamSpeak presence) are intentionally absent;
|
official surfaces (notification bell, cloud contacts, myTeamSpeak presence) are intentionally absent;
|
||||||
local UID contacts are an independent account-free feature.
|
local UID contacts are an independent account-free feature.
|
||||||
|
|
||||||
Each pane has the official 44 px window bar as its drag surface; the server pane's bar carries the
|
The native window must retain OS minimize, maximize/restore, close, system shortcuts and caption behavior
|
||||||
microphone/speakers toolbar pill. Startup and error views keep a 44 px drag strip. Electron's hidden
|
without fake JavaScript controls. The target app-bar geometry is 44 px and its colors follow the theme;
|
||||||
title bar retains native caption controls in the window-bar colour: Windows/Linux use the
|
actual caption integration and accessibility require platform-specific evidence. Fullscreen/PiP must not
|
||||||
window-controls overlay; macOS retains left-side traffic lights.
|
create a second media subscription. Bundled Noto Sans (OFL) and the official blue tint retain the typography
|
||||||
Minimize, maximize/restore, close, system shortcuts and caption double-click belong to the OS, not
|
and color contract; green indicates a speaker.
|
||||||
duplicated JavaScript handlers. Native button accessibility names follow the OS language; the app's
|
|
||||||
title-bar landmark follows English/Russian. Theme changes also update the native overlay colours.
|
|
||||||
Fullscreen content removes the app bar; picture-in-picture remains a separate native window.
|
|
||||||
Only a read-only, trusted top-frame state endpoint is exposed, not generic window control IPC.
|
|
||||||
|
|
||||||
Bundled Noto Sans (OFL) and the official blue tint keep text identical across platforms; green indicates
|
Server text remains data, never executable markup. Native services validate commands and media bytes,
|
||||||
a speaker.
|
bind delayed actions to connection/session/UI generations, and own native chooser/path capabilities.
|
||||||
Server text is rendered with `textContent`; image bytes are checked by signature. The renderer uses
|
No embedded browser, browser sandbox, DOM or renderer/main IPC is part of the runtime architecture.
|
||||||
context isolation, a sandbox, a strict CSP and allowlisted main-process commands. Only the main process
|
|
||||||
selects file paths through native dialogs.
|
|
||||||
|
|
||||||
## Repository language and evidence
|
## Repository language and evidence
|
||||||
|
|
||||||
@@ -283,37 +394,30 @@ Historical JSON captures and screenshots in `docs/evidence/runtime/` retain the
|
|||||||
names and device names observed during each run, including Russian text. They are not translated or
|
names and device names observed during each run, including Russian text. They are not translated or
|
||||||
rewritten to resemble the current interface. Unicode test fixtures retain their original values.
|
rewritten to resemble the current interface. Unicode test fixtures retain their original values.
|
||||||
|
|
||||||
## Checks
|
## Checks and evidence
|
||||||
|
|
||||||
- `npm test` runs unit tests for contracts such as IPC validation, viewer sessions and stream discovery.
|
Native verification uses the Cargo workspace and `xtask` entry points, not the removed browser harness:
|
||||||
- `node --test test/titlebar.test.js` covers native caption configuration, state-event publication,
|
|
||||||
theme-listener cleanup and IPC trust rejection. `node scripts/smoke-titlebar-offscreen.mjs --out <dir>`
|
```sh
|
||||||
uses the shared hidden/offscreen harness and a disposable profile for EN/RU, light/dark, System-theme
|
cargo test --release --locked --workspace
|
||||||
and layout evidence. Native overlay buttons are outside renderer screenshots. Actual OS dragging,
|
cargo run -p xtask -- build --target x86_64-pc-windows-msvc --test-harness true
|
||||||
Snap layouts, caption double-click, shortcuts and Linux/macOS integration require separate manual
|
cargo run -p xtask -- smoke --target x86_64-pc-windows-msvc --scenario offline-ui --out target/evidence/native-ui
|
||||||
platform checks; this smoke never sends OS keys or shows/maximizes/minimizes a window.
|
cargo run -p xtask -- smoke --target x86_64-pc-windows-msvc --scenario migration --out target/evidence/native-migration
|
||||||
- `node scripts/smoke-official-shell-offscreen.mjs --out <dir>` measures the actual renderer across EN/RU,
|
cargo run -p xtask -- smoke --target x86_64-pc-windows-msvc --scenario media-loopback --out target/evidence/native-media
|
||||||
dark/light and 1280×900/880×560, including onboarding, connection, chat, all settings, menus and dialogs.
|
```
|
||||||
Its server data is labelled read-only synthetic IPC, not a live connection or product demonstration.
|
|
||||||
Companion `smoke-stream-stage-offscreen.mjs` measures actual contained image size with generated local
|
Use fresh output directories and disposable profiles. Test-harness builds disable real network/device/OS
|
||||||
WebRTC; `smoke-broadcast-ui-offscreen.mjs` uses generated muted canvas capture, never private pixels.
|
actions and are not release eligible. Generated media proves only its exercised local transport/decoder
|
||||||
The shared launcher requires an invisible, unfocused, nonfocusable offscreen window, mutes webContents,
|
path. Live official peers, physical capture/playback, visible native windows, OS accessibility,
|
||||||
and rejects packaged main-process code that differs from the current guarded source. Separate disposable
|
installed upgrades and Asahi/mobile hardware need separately authorized isolated checks.
|
||||||
profiles prevent these checks from changing normal preferences. Results are evidence only when exercised.
|
|
||||||
- `node scripts/official-pair-capture-offscreen.mjs --out <dir> --sizes 1553x998,1280x800,880x800`
|
The S3 result is scoped to an empty ordinary-channel listing on an isolated official TS6 beta14
|
||||||
compares the actual installed official frontend with TeamsPeach using the same synthetic data.
|
server. An ordinary guest upload grant was refused; neither that refusal nor a separate direct object-store
|
||||||
It preserves explicit brand/account/native-caption exceptions, checks painted chat timestamps rather
|
readback proves TeamSpeak file transfers. The live-peer check is still pending; keep any separately
|
||||||
than hidden DOM history, and exercises bottom-anchor/history-reading behavior across window resize.
|
authorized probes and sanitized evidence in disposable profiles, channels and storage, away from user
|
||||||
The strict pixel gate currently fails; see `docs/evidence/official-parity/qa-parity-harness.md`.
|
credentials and files.
|
||||||
The default matrix uses 1553×998, 1280×800 and the supported 880×800 minimum-width case.
|
|
||||||
- `smoke-identity-offscreen.mjs`, `smoke-information-offscreen.mjs` and `smoke-file-settings-offscreen.mjs`
|
`native/compatibility.json` preserves 718 pending acceptance requirements, not pass marks. Historical
|
||||||
exercise actual local UI, native identity CLI, document navigation and persisted transfer settings.
|
captures in `docs/evidence/` remain exact records of their original builds; they do not prove native parity.
|
||||||
`smoke-notification-groups-offscreen.mjs` checks mute precedence and restart without playing sound.
|
Strict visual comparisons previously failed and are not converted to passes by the stack cutover.
|
||||||
- `smoke-bookmarks-offscreen.mjs` is Windows-specific: real DPAPI save/reveal/restart, safe credential
|
See FEATURE_COMPATIBILITY.md for recorded native evidence and explicit remaining prerequisites.
|
||||||
deletion, session-bound channel drops and startup routing with main's server-connect guard retained.
|
|
||||||
`smoke-server-icons-offscreen.mjs` uses the production main grant service with synthetic core replies,
|
|
||||||
not a real server or native file chooser. All accept `--exe <isolated-package> --out <evidence-directory>`.
|
|
||||||
- `node scripts/core-smoke.mjs <core-binary>` checks identity invariants offline.
|
|
||||||
- `node scripts/smoke-ui.mjs`, `smoke-voice.mjs`, `probe-stream.mjs`, `loopback-stream.mjs` and
|
|
||||||
`smoke-tree.mjs` exercise the real UI. Recorded results are in `docs/evidence/runtime/`; each run's
|
|
||||||
scope and limitations apply.
|
|
||||||
@@ -1,155 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
/** Renderer allowlist for core/src/admin.rs and admin_extra.rs; server permissions remain authoritative. */
|
|
||||||
function createAdminValidators({shape,bool,boundedInt,optional,oneOf,isPlainObject,ValidationError}) {
|
|
||||||
const bad = message => { throw new ValidationError(message); };
|
|
||||||
const text = (min,max) => (v,k) => {
|
|
||||||
if (typeof v !== 'string' || [...v].length < min || [...v].length > max || (max===8192 ? /[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f-\u009f]/ : /[\u0000-\u001f\u007f-\u009f]/).test(v)) bad(k+': invalid text');
|
|
||||||
return v;
|
|
||||||
};
|
|
||||||
const float=(v,k)=>{if(typeof v!=='number'||!Number.isFinite(v)||Math.abs(v)>3.4028234663852886e38)bad(k+': expected finite f32');return v;};
|
|
||||||
const positive=boundedInt(1,Number.MAX_SAFE_INTEGER), zero=boundedInt(0,Number.MAX_SAFE_INTEGER), generation=positive;
|
|
||||||
const properties=(spec,requiredName=false)=>(v)=>{
|
|
||||||
if(!isPlainObject(v)||Object.keys(v).length===0)bad('properties: nonempty object required');
|
|
||||||
const out=shape(Object.fromEntries(Object.entries(spec).map(([k,check])=>[k,optional(check)])))(v);
|
|
||||||
if(requiredName&&!out.channel_name)bad('channel_name: required');
|
|
||||||
if(out.channel_flag_permanent&&out.channel_flag_semi_permanent)bad('channel cannot be permanent and semi-permanent');
|
|
||||||
return out;
|
|
||||||
};
|
|
||||||
const CHANNEL_CREATE = {
|
|
||||||
"channel_name": text(1,40),
|
|
||||||
"channel_topic": text(0,255),
|
|
||||||
"channel_description": text(0,8192),
|
|
||||||
"channel_password": text(0,1024),
|
|
||||||
"channel_codec": boundedInt(0,5),
|
|
||||||
"channel_codec_quality": boundedInt(0,10),
|
|
||||||
"channel_maxclients": boundedInt(-1,2147483647),
|
|
||||||
"channel_maxfamilyclients": boundedInt(-1,2147483647),
|
|
||||||
"channel_order": boundedInt(0,Number.MAX_SAFE_INTEGER),
|
|
||||||
"channel_codec_is_unencrypted": bool,
|
|
||||||
"channel_delete_delay": boundedInt(0,4294967295),
|
|
||||||
"channel_flag_maxclients_unlimited": bool,
|
|
||||||
"channel_flag_maxfamilyclients_unlimited": bool,
|
|
||||||
"channel_flag_maxfamilyclients_inherited": bool,
|
|
||||||
"channel_name_phonetic": text(0,255),
|
|
||||||
"channel_flag_permanent": bool,
|
|
||||||
"channel_flag_semi_permanent": bool,
|
|
||||||
"channel_flag_default": bool,
|
|
||||||
};
|
|
||||||
const CHANNEL_EDIT = {
|
|
||||||
"channel_order": boundedInt(0,Number.MAX_SAFE_INTEGER),
|
|
||||||
"channel_name": text(1,40),
|
|
||||||
"channel_topic": text(0,255),
|
|
||||||
"channel_flag_default": bool,
|
|
||||||
"channel_password": text(0,1024),
|
|
||||||
"channel_flag_permanent": bool,
|
|
||||||
"channel_flag_semi_permanent": bool,
|
|
||||||
"channel_codec": boundedInt(0,5),
|
|
||||||
"channel_codec_quality": boundedInt(0,10),
|
|
||||||
"channel_needed_talk_power": boundedInt(-2147483648,2147483647),
|
|
||||||
"channel_maxclients": boundedInt(-1,2147483647),
|
|
||||||
"channel_maxfamilyclients": boundedInt(-1,2147483647),
|
|
||||||
"channel_codec_latency_factor": boundedInt(1,10),
|
|
||||||
"channel_codec_is_unencrypted": bool,
|
|
||||||
"channel_delete_delay": boundedInt(0,4294967295),
|
|
||||||
"channel_flag_maxclients_unlimited": bool,
|
|
||||||
"channel_flag_maxfamilyclients_unlimited": bool,
|
|
||||||
"channel_flag_maxfamilyclients_inherited": bool,
|
|
||||||
"channel_name_phonetic": text(0,255),
|
|
||||||
"channel_description": text(0,8192),
|
|
||||||
"channel_banner_gfx_url": text(0,1024),
|
|
||||||
"channel_banner_mode": boundedInt(0,2),
|
|
||||||
};
|
|
||||||
const SERVER_EDIT = {
|
|
||||||
"virtualserver_name": text(1,64),
|
|
||||||
"virtualserver_sfu_endpoint": text(0,1024),
|
|
||||||
"virtualserver_storage_quota": boundedInt(-1,4294967295),
|
|
||||||
"virtualserver_welcomemessage": text(0,8192),
|
|
||||||
"virtualserver_maxclients": boundedInt(0,65535),
|
|
||||||
"virtualserver_password": text(0,1024),
|
|
||||||
"virtualserver_hostmessage": text(0,8192),
|
|
||||||
"virtualserver_hostmessage_mode": boundedInt(0,3),
|
|
||||||
"virtualserver_hostbanner_url": text(0,1024),
|
|
||||||
"virtualserver_hostbanner_gfx_url": text(0,1024),
|
|
||||||
"virtualserver_hostbanner_gfx_interval": boundedInt(0,4294967295),
|
|
||||||
"virtualserver_hostbutton_tooltip": text(0,1024),
|
|
||||||
"virtualserver_hostbutton_url": text(0,1024),
|
|
||||||
"virtualserver_hostbutton_gfx_url": text(0,1024),
|
|
||||||
"virtualserver_icon_id": boundedInt(0,4294967295),
|
|
||||||
"virtualserver_reserved_slots": boundedInt(0,65535),
|
|
||||||
"virtualserver_hostbanner_mode": boundedInt(0,2),
|
|
||||||
"virtualserver_nickname": text(0,1024),
|
|
||||||
"virtualserver_max_download_total_bandwidth": boundedInt(0,Number.MAX_SAFE_INTEGER),
|
|
||||||
"virtualserver_max_upload_total_bandwidth": boundedInt(0,Number.MAX_SAFE_INTEGER),
|
|
||||||
"virtualserver_download_quota": boundedInt(0,Number.MAX_SAFE_INTEGER),
|
|
||||||
"virtualserver_upload_quota": boundedInt(0,Number.MAX_SAFE_INTEGER),
|
|
||||||
"virtualserver_antiflood_points_tick_reduce": boundedInt(0,4294967295),
|
|
||||||
"virtualserver_antiflood_points_needed_command_block": boundedInt(0,4294967295),
|
|
||||||
"virtualserver_antiflood_points_needed_ip_block": boundedInt(0,4294967295),
|
|
||||||
"virtualserver_codec_encryption_mode": boundedInt(0,2),
|
|
||||||
"virtualserver_needed_identity_security_level": boundedInt(0,255),
|
|
||||||
"virtualserver_default_server_group": boundedInt(0,Number.MAX_SAFE_INTEGER),
|
|
||||||
"virtualserver_default_channel_group": boundedInt(0,Number.MAX_SAFE_INTEGER),
|
|
||||||
"virtualserver_default_channel_admin_group": boundedInt(0,Number.MAX_SAFE_INTEGER),
|
|
||||||
"virtualserver_complain_autoban_count": boundedInt(0,4294967295),
|
|
||||||
"virtualserver_complain_autoban_time": boundedInt(0,4294967295),
|
|
||||||
"virtualserver_complain_remove_time": boundedInt(0,4294967295),
|
|
||||||
"virtualserver_min_clients_in_channel_before_forced_silence": boundedInt(0,4294967295),
|
|
||||||
"virtualserver_priority_speaker_dimm_modificator": float,
|
|
||||||
"virtualserver_name_phonetic": text(0,1024),
|
|
||||||
"virtualserver_channel_temp_delete_delay_default": boundedInt(0,4294967295),
|
|
||||||
"virtualserver_weblist_enabled": bool,
|
|
||||||
"virtualserver_log_client": bool,
|
|
||||||
"virtualserver_log_query": bool,
|
|
||||||
"virtualserver_log_channel": bool,
|
|
||||||
"virtualserver_log_permissions": bool,
|
|
||||||
"virtualserver_log_server": bool,
|
|
||||||
"virtualserver_log_filetransfer": bool,
|
|
||||||
};
|
|
||||||
|
|
||||||
const confirm=text(0,1024), uid=text(1,128), groupKind=oneOf('server','channel');
|
|
||||||
const permission=(server)=>(value)=>{
|
|
||||||
if(!Array.isArray(value)||value.length<1||value.length>512)bad('permissions: expected 1..512 rows');
|
|
||||||
return value.map(v=>{
|
|
||||||
const p=shape({id:text(1,128),value:boundedInt(-2147483648,2147483647),negate:optional(bool),skip:optional(bool)})(v);
|
|
||||||
if(!/^[A-Za-z0-9_]+$/.test(p.id)||(/^\d+$/.test(p.id)&&(!Number.isSafeInteger(Number(p.id))||Number(p.id)<1||Number(p.id)>4294967295)))bad('permission: invalid identifier');
|
|
||||||
if(!server&&(p.negate||p.skip))bad('permission: negate/skip require server group');return p;
|
|
||||||
});
|
|
||||||
};
|
|
||||||
const commands={
|
|
||||||
admin_context:shape({}),
|
|
||||||
channel_create:shape({generation,parent_id:zero,properties:properties(CHANNEL_CREATE,true)}),
|
|
||||||
channel_edit:shape({generation,channel_id:positive,properties:properties(CHANNEL_EDIT)}),
|
|
||||||
channel_move:(a)=>{const o=shape({generation,channel_id:positive,parent_id:zero,order:optional(zero)})(a);if(o.channel_id===o.parent_id)bad('channel cannot parent itself');return o;},
|
|
||||||
channel_delete:shape({generation,channel_id:positive,force:bool,confirm}),
|
|
||||||
channel_subscribe:shape({channel_id:positive,subscribe:bool}), channel_subscribe_all:shape({subscribe:bool}),
|
|
||||||
channel_description:shape({channel_id:positive}),channel_info:shape({channel_id:positive}),channel_list:shape({}),
|
|
||||||
client_info:shape({client_id:boundedInt(1,65535),uid}),
|
|
||||||
set_away:(a)=>{const o=shape({away:bool,message:optional(text(0,80))})(a);if(!o.away&&o.message!==undefined)bad('message requires away');return o;},
|
|
||||||
talk_request:(a)=>{const o=shape({request:bool,message:optional(text(0,50))})(a);if(!o.request&&o.message!==undefined)bad('message requires request');return o;},
|
|
||||||
talk_power:shape({generation,client_id:boundedInt(1,65535),uid,grant:bool}),
|
|
||||||
ban_list:shape({}),ban_add:(a)=>{const o=shape({generation,ip:optional(text(0,255)),name:optional(text(0,255)),uid:optional(text(0,255)),duration_s:boundedInt(0,4294967295),reason:optional(text(0,512))})(a);if(!o.ip&&!o.name&&!o.uid)bad('ban needs ip, name or uid');return o;},
|
|
||||||
ban_delete:shape({generation,ban_id:positive,confirm}),ban_delete_all:shape({generation,confirm}),
|
|
||||||
privilege_key_list:shape({}),privilege_key_add:(a)=>{
|
|
||||||
const o=shape({generation,kind:oneOf('server_group','channel_group'),group_id:positive,channel_id:optional(positive),description:optional(text(0,255))})(a);
|
|
||||||
if((o.kind==='channel_group')!==(o.channel_id!==undefined))bad('channel_id required only for channel_group');return o;
|
|
||||||
},
|
|
||||||
privilege_key_delete:shape({generation,token:text(1,255),confirm}),privilege_key_use:shape({generation,token:text(1,255)}),
|
|
||||||
temp_password_list:shape({}),temp_password_add:(a)=>{const o=shape({generation,password:text(1,255),description:optional(text(0,255)),duration_s:boundedInt(1,4294967295),channel_id:optional(zero),channel_password:optional(text(0,255))})(a);if(!o.channel_id&&o.channel_password)bad('channel_password needs channel_id');return o;},
|
|
||||||
temp_password_delete:shape({generation,password:text(1,255),confirm}),
|
|
||||||
server_info:shape({}),server_edit:shape({generation,confirm,properties:properties(SERVER_EDIT)}),
|
|
||||||
server_group_perm_list:shape({group_id:positive}),channel_group_perm_list:shape({group_id:positive}),channel_perm_list:shape({channel_id:positive}),server_group_client_list:shape({group_id:positive}),
|
|
||||||
server_group_list:shape({}),channel_group_list:shape({}),
|
|
||||||
server_log:shape({lines:boundedInt(1,1000),reverse:bool,instance:bool,begin_pos:zero}),
|
|
||||||
client_database_list:shape({start:boundedInt(0,4294967295),duration:boundedInt(1,200)}),
|
|
||||||
client_database_find:shape({pattern:text(1,255),uid:bool}),client_database_id:shape({uid}),
|
|
||||||
client_database_delete:shape({generation,client_database_id:positive,confirm}),
|
|
||||||
group_add:shape({generation,kind:groupKind,name:text(1,128),type:boundedInt(0,2)}),
|
|
||||||
group_rename:shape({generation,kind:groupKind,group_id:positive,name:text(1,128)}),
|
|
||||||
group_set_permissions:(a)=>shape({generation,kind:groupKind,group_id:positive,permissions:permission(a?.kind==='server')})(a),
|
|
||||||
channel_set_permissions:shape({generation,channel_id:positive,permissions:permission(false)}),
|
|
||||||
server_group_add_client:shape({generation,group_id:positive,client_database_id:positive}),
|
|
||||||
server_group_member_add_uid:shape({generation,group_id:positive,uid}),
|
|
||||||
};
|
|
||||||
return commands;
|
|
||||||
}
|
|
||||||
module.exports={createAdminValidators};
|
|
||||||
@@ -1,326 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const { spawn } = require('node:child_process');
|
|
||||||
const { randomUUID } = require('node:crypto');
|
|
||||||
|
|
||||||
const PCM_BYTES = 3840;
|
|
||||||
const MAX_APPS = 8;
|
|
||||||
const MAX_IN_FLIGHT = 4;
|
|
||||||
const fail = (code, message) => ({ ok: false, error: { code, message } });
|
|
||||||
const error = (message) => new Error(message);
|
|
||||||
const object = value => value && typeof value === 'object' && !Array.isArray(value);
|
|
||||||
const keys = (value, allowed) => object(value) && Object.keys(value).every(key => allowed.includes(key));
|
|
||||||
const identifier = value => typeof value === 'string' && value.length > 0 && value.length <= 256 && !/[\x00-\x20]/.test(value);
|
|
||||||
|
|
||||||
// Bound unfinished lines too: readline's line event alone cannot bound a corrupt helper.
|
|
||||||
function readLines(stream, limit, onLine, onError) {
|
|
||||||
let pending = '';
|
|
||||||
let failed = false;
|
|
||||||
stream.setEncoding('utf8');
|
|
||||||
stream.on('data', chunk => {
|
|
||||||
if (failed) return;
|
|
||||||
pending += chunk;
|
|
||||||
let end;
|
|
||||||
while ((end = pending.indexOf('\n')) >= 0) {
|
|
||||||
if (end > limit) { failed = true; onError(error('Application audio helper exceeded its frame limit.')); return; }
|
|
||||||
const line = pending.slice(0, end);
|
|
||||||
pending = pending.slice(end + 1);
|
|
||||||
try { if (line) onLine(JSON.parse(line)); } catch (cause) { failed = true; onError(cause); return; }
|
|
||||||
}
|
|
||||||
if (pending.length > limit) { failed = true; onError(error('Application audio helper exceeded its frame limit.')); }
|
|
||||||
});
|
|
||||||
stream.on('error', onError);
|
|
||||||
stream.on('end', () => { if (!failed && pending.trim()) onError(error('Application audio helper returned a truncated frame.')); });
|
|
||||||
}
|
|
||||||
|
|
||||||
function validPcm(frame) {
|
|
||||||
return object(frame) && frame.event === 'pcm' && Number.isSafeInteger(frame.sequence) && frame.sequence >= 0 &&
|
|
||||||
typeof frame.pcm === 'string' && frame.pcm.length === 5120 && /^[A-Za-z0-9+/]+$/.test(frame.pcm) && Buffer.from(frame.pcm, 'base64').length === PCM_BYTES;
|
|
||||||
}
|
|
||||||
|
|
||||||
class AppAudioController {
|
|
||||||
constructor({ resolveBinary, getWindow, trustedFrame, spawnProcess = spawn, ownPid = process.pid, now = Date.now }) {
|
|
||||||
this.resolveBinary = resolveBinary;
|
|
||||||
this.getWindow = getWindow;
|
|
||||||
this.trustedFrame = trustedFrame;
|
|
||||||
this.spawnProcess = spawnProcess;
|
|
||||||
this.ownPid = ownPid;
|
|
||||||
this.now = now;
|
|
||||||
this.observed = new Map();
|
|
||||||
this.grant = null;
|
|
||||||
this.active = null;
|
|
||||||
this.pendingSession = null;
|
|
||||||
this.listing = null;
|
|
||||||
this.generation = 0;
|
|
||||||
this.listChildren = new Set();
|
|
||||||
this.bound = new WeakSet();
|
|
||||||
}
|
|
||||||
|
|
||||||
bindWindow() {
|
|
||||||
const contents = this.getWindow()?.webContents;
|
|
||||||
if (!contents || this.bound.has(contents)) return;
|
|
||||||
this.bound.add(contents);
|
|
||||||
contents.on('did-start-navigation', (_event, _url, _inPlace, isMainFrame) => { if (isMainFrame) this.stopAll(); });
|
|
||||||
contents.on('render-process-gone', () => this.stopAll());
|
|
||||||
contents.on('destroyed', () => this.stopAll());
|
|
||||||
}
|
|
||||||
|
|
||||||
authorizeSelection(frame, sourceId) {
|
|
||||||
this.stopAll();
|
|
||||||
this.bindWindow();
|
|
||||||
if (!this.trustedFrame(frame)) return {};
|
|
||||||
const sessionId = randomUUID();
|
|
||||||
this.grant = { sessionId, frame, sourceId, expiresAt: this.now() + 30000, confirmed: false };
|
|
||||||
return { appAudioSessionId: sessionId };
|
|
||||||
}
|
|
||||||
|
|
||||||
confirmSelection(frame) {
|
|
||||||
if (this.grant?.frame === frame && this.trustedFrame(frame) && this.grant.expiresAt >= this.now()) this.grant.confirmed = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
spawn(args) {
|
|
||||||
const child = this.spawnProcess(this.resolveBinary(), ['app-audio', ...args], { stdio: ['pipe', 'pipe', 'pipe'], windowsHide: true });
|
|
||||||
child.stdin.on('error', () => {});
|
|
||||||
// Never retain unbounded diagnostics or forward native process details to a renderer.
|
|
||||||
child.stderr.resume();
|
|
||||||
return child;
|
|
||||||
}
|
|
||||||
|
|
||||||
terminate(child) {
|
|
||||||
if (child.exitCode !== null && child.exitCode !== undefined) return;
|
|
||||||
child.stdin.end();
|
|
||||||
const timer = setTimeout(() => child.kill(), 250);
|
|
||||||
timer.unref?.();
|
|
||||||
child.once('close', () => clearTimeout(timer));
|
|
||||||
}
|
|
||||||
|
|
||||||
enumerate() {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
let child;
|
|
||||||
try { child = this.spawn(['list']); } catch (cause) { reject(cause); return; }
|
|
||||||
this.listChildren.add(child);
|
|
||||||
let result;
|
|
||||||
let settled = false;
|
|
||||||
const timer = setTimeout(() => finish(error('Application audio enumeration timed out.')), 12000);
|
|
||||||
const finish = cause => {
|
|
||||||
if (settled) return;
|
|
||||||
settled = true;
|
|
||||||
clearTimeout(timer);
|
|
||||||
this.listChildren.delete(child);
|
|
||||||
if (cause) { this.terminate(child); reject(cause); } else resolve(result);
|
|
||||||
};
|
|
||||||
readLines(child.stdout, 256 * 1024, value => {
|
|
||||||
if (result !== undefined || !object(value) || typeof value.supported !== 'boolean' || !Array.isArray(value.applications) || value.applications.length > 2048) throw error('Invalid application audio list.');
|
|
||||||
if (value.supported && !['process-tree', 'audio-stream'].includes(value.scope)) throw error('Unsupported application audio scope.');
|
|
||||||
const hostAncestors = value.hostAncestors;
|
|
||||||
if (value.supported && value.scope === 'process-tree' && (!Array.isArray(hostAncestors) || hostAncestors.length > 128 || !hostAncestors.includes(this.ownPid) || hostAncestors.some(pid => !Number.isSafeInteger(pid) || pid <= 0))) throw error('Native helper did not establish process-tree self-exclusion.');
|
|
||||||
const applications = value.applications.map(app => {
|
|
||||||
if (!object(app) || !identifier(app.id) || typeof app.label !== 'string' || app.label.length > 4096 || !Number.isSafeInteger(app.pid) || app.pid <= 0 || !Array.isArray(app.ancestors) || app.ancestors.length > 128 || app.ancestors.some(pid => !Number.isSafeInteger(pid) || pid <= 0)) throw error('Invalid application audio identity.');
|
|
||||||
return { id: app.id, label: app.label, pid: app.pid, ancestors: app.ancestors };
|
|
||||||
}).filter(app => app.pid !== this.ownPid && !app.ancestors.includes(this.ownPid) && (value.scope !== 'process-tree' || !hostAncestors.includes(app.pid)));
|
|
||||||
if (new Set(applications.map(app => app.id)).size !== applications.length) throw error('Duplicate application audio identity.');
|
|
||||||
result = { supported: value.supported, platform: value.platform, scope: value.scope, reason: typeof value.reason === 'string' ? value.reason.slice(0, 4096) : undefined, applications: value.supported ? applications : [] };
|
|
||||||
}, finish);
|
|
||||||
child.once('error', finish);
|
|
||||||
child.once('close', code => finish(code !== 0 || result === undefined ? error('Application audio enumeration failed.') : null));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
async list() {
|
|
||||||
this.bindWindow();
|
|
||||||
const generation = this.generation;
|
|
||||||
try {
|
|
||||||
const result = await this.enumerate();
|
|
||||||
if (generation !== this.generation) return fail('appaudio_cancelled', 'Application audio selection was cancelled.');
|
|
||||||
this.observed = new Map(result.applications.map(app => [app.id, app]));
|
|
||||||
return { ok: true, ...result };
|
|
||||||
} catch (cause) { return fail('appaudio_unavailable', cause.message); }
|
|
||||||
}
|
|
||||||
|
|
||||||
async start(frame, options) {
|
|
||||||
const scope = options?.scope ?? 'selected';
|
|
||||||
if (!keys(options, ['sessionId', 'ids', 'scope']) || !['selected', 'all', 'exclude'].includes(scope) || !identifier(options.sessionId) || !Array.isArray(options.ids) || options.ids.length > MAX_APPS || (scope === 'selected' && !options.ids.length) || (scope === 'all' && options.ids.length) || options.ids.some(id => !identifier(id)) || new Set(options.ids).size !== options.ids.length) return fail('invalid_appaudio_options', 'Choose an audio scope and at most eight observed applications.');
|
|
||||||
const grant = this.grant;
|
|
||||||
if (!grant || grant.sessionId !== options.sessionId || grant.frame !== frame || !grant.confirmed || grant.expiresAt < this.now() || !this.trustedFrame(frame)) return fail('appaudio_selection_expired', 'Explicitly select and preview a broadcast source before capturing application audio.');
|
|
||||||
if (options.ids.some(id => !this.observed.has(id))) return fail('appaudio_not_observed', 'Select applications from the current audio list.');
|
|
||||||
this.grant = null; // one use, including failures and concurrent requests
|
|
||||||
const pending = { id: options.sessionId, frame };
|
|
||||||
this.pendingSession = pending;
|
|
||||||
const generation = this.generation;
|
|
||||||
try {
|
|
||||||
const fresh = await this.enumerate();
|
|
||||||
if (generation !== this.generation || !this.trustedFrame(frame)) return fail('appaudio_cancelled', 'Application audio selection was cancelled.');
|
|
||||||
if (!fresh.supported) return fail('appaudio_unsupported', fresh.reason || 'Application audio is not supported on this platform.');
|
|
||||||
const selected = this.selectScope(fresh, options.ids, scope);
|
|
||||||
if (scope === 'selected' && selected.length !== options.ids.length) return fail('appaudio_selection_expired', 'A selected audio application exited or changed identity.');
|
|
||||||
const session = { id: options.sessionId, frame, children: new Set(), captures: new Map(), inFlight: new Set(), nextToken: 1, closed: false, rejectReady: new Set(), scope, ids: [...options.ids], refreshTimer: null };
|
|
||||||
this.active = session;
|
|
||||||
if (scope !== 'selected') this.send(session, { event: 'applications', applications: selected.map(app => ({ id: app.id, label: app.label })) });
|
|
||||||
await Promise.all(selected.map(app => this.capture(session, app.id)));
|
|
||||||
if (session.closed || generation !== this.generation) return fail('appaudio_cancelled', 'Application audio selection was cancelled.');
|
|
||||||
if (scope !== 'selected') this.refreshScope(session);
|
|
||||||
return { ok: true, sessionId: session.id };
|
|
||||||
} catch (cause) {
|
|
||||||
if (generation === this.generation) this.stopAll();
|
|
||||||
return fail(cause.code || 'appaudio_failed', cause.message);
|
|
||||||
} finally {
|
|
||||||
if (this.pendingSession === pending) this.pendingSession = null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
selectScope(fresh, ids, scope) {
|
|
||||||
const chosen = new Set(ids);
|
|
||||||
const excludedPids = new Set(ids.map(id => this.observed.get(id)?.pid).filter(Boolean));
|
|
||||||
let selected = fresh.applications.filter(app => scope === 'all' || (scope === 'selected' ? chosen.has(app.id)
|
|
||||||
: !chosen.has(app.id) && !excludedPids.has(app.pid) && !app.ancestors.some(pid => excludedPids.has(pid))));
|
|
||||||
if (fresh.scope === 'process-tree') {
|
|
||||||
if (scope === 'exclude' && selected.some(app => fresh.applications.some(other => chosen.has(other.id) && other.ancestors.includes(app.pid)))) {
|
|
||||||
throw error('The excluded application shares a captured ancestor process tree. This backend cannot separate that ancestor without also recording the excluded app; choose Selected Apps instead.');
|
|
||||||
}
|
|
||||||
const roots = selected.filter(app => !selected.some(other => other.id !== app.id && (app.ancestors.includes(other.pid) || (app.pid === other.pid && other.id < app.id))));
|
|
||||||
if (scope === 'selected' && roots.length !== selected.length) throw Object.assign(error('Choose only one member of an application process tree to avoid duplicate audio.'), { code: 'appaudio_overlap' });
|
|
||||||
selected = roots;
|
|
||||||
}
|
|
||||||
if (selected.length > MAX_APPS) throw error('This audio scope exceeds the eight-application capture limit. Narrow the scope; no applications were silently omitted.');
|
|
||||||
return selected;
|
|
||||||
}
|
|
||||||
|
|
||||||
refreshScope(session) {
|
|
||||||
clearTimeout(session.refreshTimer);
|
|
||||||
session.refreshTimer = setTimeout(async () => {
|
|
||||||
if (session.closed) return;
|
|
||||||
try {
|
|
||||||
const fresh = await this.enumerate();
|
|
||||||
if (session.closed) return;
|
|
||||||
if (!fresh.supported) throw error(fresh.reason || 'Application audio became unavailable.');
|
|
||||||
const selected = this.selectScope(fresh, session.ids, session.scope);
|
|
||||||
const wanted = new Set(selected.map(app => app.id));
|
|
||||||
for (const [id, capture] of session.captures) if (!wanted.has(id)) {
|
|
||||||
session.captures.delete(id); capture.retired = true; this.terminate(capture.child);
|
|
||||||
}
|
|
||||||
this.send(session, { event: 'applications', applications: selected.map(app => ({ id: app.id, label: app.label })) });
|
|
||||||
await Promise.all(selected.filter(app => !session.captures.has(app.id)).map(app => this.capture(session, app.id)));
|
|
||||||
if (!session.closed) this.refreshScope(session);
|
|
||||||
} catch (cause) {
|
|
||||||
if (!session.closed) { this.send(session, { event: 'error', code: 'appaudio_scope_failed', message: cause.message }); this.stopAll(); }
|
|
||||||
}
|
|
||||||
}, 1000);
|
|
||||||
}
|
|
||||||
|
|
||||||
capture(session, id) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
const child = this.spawn(['capture', id]);
|
|
||||||
session.children.add(child);
|
|
||||||
const capture = { child, retired: false };
|
|
||||||
session.captures.set(id, capture);
|
|
||||||
let formatted = false;
|
|
||||||
let sequence = -1;
|
|
||||||
let ready = false;
|
|
||||||
let ended = false;
|
|
||||||
const timer = setTimeout(() => finish(error('Application audio activation timed out.')), 12000);
|
|
||||||
const rejectReady = cause => { clearTimeout(timer); if (!ready) { ready = true; reject(cause); } };
|
|
||||||
session.rejectReady.add(rejectReady);
|
|
||||||
const finish = cause => {
|
|
||||||
if (ended) return;
|
|
||||||
ended = true;
|
|
||||||
clearTimeout(timer);
|
|
||||||
session.rejectReady.delete(rejectReady);
|
|
||||||
if (capture.retired) { rejectReady(error('Application left the audio scope.')); return; }
|
|
||||||
if (formatted && session.scope !== 'selected' && !session.closed) {
|
|
||||||
// A normal app exit changes a dynamic scope; a still-present broken recorder is an error.
|
|
||||||
void this.enumerate().then(fresh => {
|
|
||||||
if (session.closed || capture.retired) return;
|
|
||||||
if (!fresh.supported || fresh.applications.some(app => app.id === id)) throw cause || error('Application audio recorder stopped unexpectedly.');
|
|
||||||
capture.retired = true; session.captures.delete(id); this.terminate(child);
|
|
||||||
this.refreshScope(session);
|
|
||||||
}).catch(failure => {
|
|
||||||
if (!session.closed) { this.send(session, { event: 'error', code: 'appaudio_ended', message: failure.message }); this.stopAll(); }
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
rejectReady(cause || error('The selected audio application stopped.'));
|
|
||||||
if (!session.closed) {
|
|
||||||
this.send(session, { event: 'error', code: 'appaudio_ended', message: cause?.message || 'The selected audio application stopped.' });
|
|
||||||
this.stopAll();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
readLines(child.stdout, 8192, packet => {
|
|
||||||
if (session.closed || capture.retired) return;
|
|
||||||
if (!formatted) {
|
|
||||||
if (packet?.event !== 'format' || packet.sampleRate !== 48000 || packet.channels !== 2 || packet.format !== 's16le' || packet.frames !== 960) throw error('Invalid application audio format.');
|
|
||||||
formatted = true;
|
|
||||||
clearTimeout(timer);
|
|
||||||
ready = true;
|
|
||||||
session.rejectReady.delete(rejectReady);
|
|
||||||
resolve();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!validPcm(packet) || packet.sequence <= sequence) throw error('Invalid application audio PCM frame.');
|
|
||||||
sequence = packet.sequence;
|
|
||||||
// Keep draining native pipes but drop realtime frames while the renderer is
|
|
||||||
// stalled. At most four unacknowledged PCM events can cross Electron IPC.
|
|
||||||
if (session.inFlight.size >= MAX_IN_FLIGHT) return;
|
|
||||||
const token = session.nextToken++;
|
|
||||||
session.inFlight.add(token);
|
|
||||||
this.send(session, { event: 'pcm', id, sequence, pcm: packet.pcm, token });
|
|
||||||
}, finish);
|
|
||||||
child.once('error', finish);
|
|
||||||
child.once('close', () => { session.children.delete(child); finish(); });
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
send(session, packet) {
|
|
||||||
const win = this.getWindow();
|
|
||||||
if (session.closed || !win || win.isDestroyed() || !this.trustedFrame(session.frame)) { this.stopAll(); return; }
|
|
||||||
try { win.webContents.send('appaudio:event', { sessionId: session.id, ...packet }); } catch { this.stopAll(); }
|
|
||||||
}
|
|
||||||
|
|
||||||
ack(frame, options) {
|
|
||||||
if (!keys(options, ['sessionId', 'token']) || !Number.isSafeInteger(options.token)) return;
|
|
||||||
const session = this.active;
|
|
||||||
if (session?.frame === frame && session.id === options.sessionId) session.inFlight.delete(options.token);
|
|
||||||
}
|
|
||||||
|
|
||||||
stop(frame, options) {
|
|
||||||
if (!keys(options, ['sessionId']) || !identifier(options.sessionId)) return fail('invalid_appaudio_options', 'Invalid audio capture session.');
|
|
||||||
if ((this.active?.id === options.sessionId && this.active.frame === frame) || (this.pendingSession?.id === options.sessionId && this.pendingSession.frame === frame) || (this.grant?.sessionId === options.sessionId && this.grant.frame === frame)) this.stopAll();
|
|
||||||
return { ok: true };
|
|
||||||
}
|
|
||||||
|
|
||||||
stopAll() {
|
|
||||||
this.generation++;
|
|
||||||
this.grant = null;
|
|
||||||
this.pendingSession = null;
|
|
||||||
const session = this.active;
|
|
||||||
this.active = null;
|
|
||||||
if (session) {
|
|
||||||
const win = this.getWindow();
|
|
||||||
if (win && !win.isDestroyed() && this.trustedFrame(session.frame)) {
|
|
||||||
try { win.webContents.send('appaudio:event', { sessionId: session.id, event: 'stopped', message: 'Application audio capture stopped.' }); } catch { /* Window teardown still owns disposal. */ }
|
|
||||||
}
|
|
||||||
session.closed = true;
|
|
||||||
clearTimeout(session.refreshTimer);
|
|
||||||
session.captures.clear();
|
|
||||||
session.inFlight.clear();
|
|
||||||
for (const reject of session.rejectReady) reject(error('Application audio capture was cancelled.'));
|
|
||||||
session.rejectReady.clear();
|
|
||||||
for (const child of session.children) this.terminate(child);
|
|
||||||
session.children.clear();
|
|
||||||
}
|
|
||||||
for (const child of this.listChildren) this.terminate(child);
|
|
||||||
}
|
|
||||||
|
|
||||||
registerIpc(ipcMain, trustedSender) {
|
|
||||||
const trusted = event => trustedSender(event) && this.trustedFrame(event.senderFrame);
|
|
||||||
const handle = (channel, fn) => ipcMain.handle(channel, (event, options) => trusted(event) ? fn(event.senderFrame, options) : fail('forbidden', 'Application audio is restricted to the application top frame.'));
|
|
||||||
handle('appaudio:list', () => {
|
|
||||||
if (!this.listing) this.listing = this.list().finally(() => { this.listing = null; });
|
|
||||||
return this.listing;
|
|
||||||
});
|
|
||||||
handle('appaudio:start', (frame, options) => this.start(frame, options));
|
|
||||||
handle('appaudio:stop', (frame, options) => this.stop(frame, options));
|
|
||||||
ipcMain.on('appaudio:ack', (event, options) => { if (trusted(event)) this.ack(event.senderFrame, options); });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = { AppAudioController, readLines, validPcm, MAX_IN_FLIGHT };
|
|
||||||
@@ -1,458 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Public myTeamSpeak badge catalog for displaying other clients' badges (official tree `ts-badges`, client info
|
|
||||||
* Badge Showcase). Account-free: this only reads TeamSpeak's public catalog; it never redeems, owns, signs or
|
|
||||||
* sets badges.
|
|
||||||
*
|
|
||||||
* Evidence (installed TS6 6.0.0, read-only):
|
|
||||||
* - TeamSpeak.dll embeds the catalog URL `https://badges-content.teamspeak.com/list` and the protobuf schema
|
|
||||||
* `global_badge_list.proto` (package com.teamspeak.myteamspeak.proto.cloud):
|
|
||||||
* message BadgeList { int32 version = 1; int64 updated = 2; repeated Badge badges = 3; }
|
|
||||||
* message Badge { string uuid = 1; string name = 2; string url = 3; string description = 4;
|
|
||||||
* int64 created = 5; int32 version = 6; }
|
|
||||||
* - The native client caches artwork per badge as `<cache>/badges/96/<uuid>` (small SVG, client_ui `url`) and
|
|
||||||
* `<uuid>_details` (detailed SVG, client_ui `detailed_url`); on Windows the cache is
|
|
||||||
* %LOCALAPPDATA%/TeamSpeak/Cache/Default/badges/96. Those files are read here read-only when present.
|
|
||||||
* - Network artwork for a badge missing from both caches is derived from the catalog entry's own `url` as
|
|
||||||
* `<url>.svg` / `<url>_details.svg` (TeamSpeak.dll string "_details.svg"). Observed live 2026-11-01: GET /list →
|
|
||||||
* 200 application/octet-stream, 17245 bytes, a plain BadgeList body (no extra header; version 99, 91 badges);
|
|
||||||
* badge 0005232e-538e-4cb2-93b6-d7d83e873829 has url `https://badges-content.teamspeak.com/<uuid>/PietSmiet`,
|
|
||||||
* and `<url>.svg` / `<url>_details.svg` → 200 image/svg+xml, 6880 / 7278 bytes, the same sizes as the TS6 cache
|
|
||||||
* files. The suffix rule is verified for that sample, not for every catalog entry. Only URLs on the fixed
|
|
||||||
* catalog origin are ever requested.
|
|
||||||
*
|
|
||||||
* Network policy (same as phishing-list.js): anonymous GET, no cookies/credentials/referrer, redirect:'error',
|
|
||||||
* bounded time and bytes, single-flight, no request until the renderer first needs badge data, failed refreshes
|
|
||||||
* keep the previous list, the last good list and fetched artwork are cached in the profile with a size bound.
|
|
||||||
*/
|
|
||||||
|
|
||||||
const fs = require('node:fs');
|
|
||||||
const path = require('node:path');
|
|
||||||
|
|
||||||
const BADGE_LIST_URL = 'https://badges-content.teamspeak.com/list';
|
|
||||||
const BADGE_ORIGIN = 'https://badges-content.teamspeak.com';
|
|
||||||
const REFRESH_MS = 24 * 60 * 60 * 1000;
|
|
||||||
const RETRY_MS = 10 * 60 * 1000;
|
|
||||||
const REQUEST_TIMEOUT_MS = 20000;
|
|
||||||
const MAX_LIST_BYTES = 4 * 1024 * 1024;
|
|
||||||
const MAX_BADGES = 10000;
|
|
||||||
const MAX_ART_BYTES = 512 * 1024;
|
|
||||||
const MAX_CACHED_ART = 400;
|
|
||||||
const MAX_REQUEST_UUIDS = 64;
|
|
||||||
const CACHE_VERSION = 1;
|
|
||||||
const MAX_NAME = 256;
|
|
||||||
const MAX_DESCRIPTION = 2048;
|
|
||||||
const MAX_URL = 1024;
|
|
||||||
|
|
||||||
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
||||||
const CONTROL = /[\u0000-\u0008\u000b-\u001f\u007f]/;
|
|
||||||
const SVG_START = /^\s*(?:<\?xml[^>]*\?>\s*)?(?:<!--[\s\S]*?-->\s*)*(?:<!DOCTYPE[^>]*>\s*)?(?:<!--[\s\S]*?-->\s*)*<svg[\s>]/i;
|
|
||||||
|
|
||||||
class BadgeError extends Error {
|
|
||||||
constructor(code, message) { super(message); this.code = code; }
|
|
||||||
}
|
|
||||||
|
|
||||||
const validUuid = (v) => typeof v === 'string' && UUID.test(v);
|
|
||||||
|
|
||||||
// ---------- protobuf (proto3 wire format, only what BadgeList needs) ----------
|
|
||||||
|
|
||||||
function readVarint(buf, state) {
|
|
||||||
let result = 0;
|
|
||||||
let scale = 1;
|
|
||||||
for (let i = 0; i < 10; i += 1) {
|
|
||||||
if (state.pos >= buf.length) throw new BadgeError('format', 'badge list: truncated varint');
|
|
||||||
const byte = buf[state.pos++];
|
|
||||||
result += (byte & 0x7f) * scale;
|
|
||||||
if ((byte & 0x80) === 0) return result;
|
|
||||||
scale *= 128;
|
|
||||||
}
|
|
||||||
throw new BadgeError('format', 'badge list: varint too long');
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Calls onField(fieldNo, wireType, value) for each field of buf; value is a Number (varint) or a subarray. */
|
|
||||||
function readFields(buf, onField) {
|
|
||||||
const state = { pos: 0 };
|
|
||||||
while (state.pos < buf.length) {
|
|
||||||
const key = readVarint(buf, state);
|
|
||||||
const field = Math.floor(key / 8);
|
|
||||||
const wire = key % 8;
|
|
||||||
if (field < 1) throw new BadgeError('format', 'badge list: invalid field number');
|
|
||||||
switch (wire) {
|
|
||||||
case 0: onField(field, wire, readVarint(buf, state)); break;
|
|
||||||
case 1:
|
|
||||||
if (state.pos + 8 > buf.length) throw new BadgeError('format', 'badge list: truncated fixed64');
|
|
||||||
state.pos += 8;
|
|
||||||
break;
|
|
||||||
case 2: {
|
|
||||||
const length = readVarint(buf, state);
|
|
||||||
if (length > buf.length - state.pos) throw new BadgeError('format', 'badge list: truncated field');
|
|
||||||
onField(field, wire, buf.subarray(state.pos, state.pos + length));
|
|
||||||
state.pos += length;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 5:
|
|
||||||
if (state.pos + 4 > buf.length) throw new BadgeError('format', 'badge list: truncated fixed32');
|
|
||||||
state.pos += 4;
|
|
||||||
break;
|
|
||||||
default: throw new BadgeError('format', `badge list: unsupported wire type ${wire}`);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const utf8 = new TextDecoder('utf-8', { fatal: true });
|
|
||||||
function text(bytes) {
|
|
||||||
try { return utf8.decode(bytes); } catch { throw new BadgeError('format', 'badge list: invalid UTF-8'); }
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Only https URLs on the fixed catalog origin, without credentials, query or fragment. */
|
|
||||||
function catalogUrl(value) {
|
|
||||||
if (typeof value !== 'string' || value.length === 0 || value.length > MAX_URL) return null;
|
|
||||||
let url;
|
|
||||||
try { url = new URL(value); } catch { return null; }
|
|
||||||
if (url.origin !== BADGE_ORIGIN || url.username || url.password || url.search || url.hash || url.pathname.length < 2) return null;
|
|
||||||
return url.href;
|
|
||||||
}
|
|
||||||
|
|
||||||
function cleanBadge(raw) {
|
|
||||||
const uuid = typeof raw.uuid === 'string' ? raw.uuid.toLowerCase() : '';
|
|
||||||
if (!validUuid(uuid)) return null;
|
|
||||||
const name = raw.name ?? '';
|
|
||||||
const description = raw.description ?? '';
|
|
||||||
if (name.length > MAX_NAME || CONTROL.test(name) || description.length > MAX_DESCRIPTION || CONTROL.test(description)) return null;
|
|
||||||
return { uuid, name, description, url: catalogUrl(raw.url) };
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Bytes → { version, updated, badges }. Structural errors reject the whole body; individual badges with an invalid
|
|
||||||
* UUID or text are dropped, duplicates keep the first entry. A body without any valid badge is rejected.
|
|
||||||
*/
|
|
||||||
function parseBadgeList(bytes) {
|
|
||||||
const buf = Buffer.isBuffer(bytes) ? bytes : Buffer.from(bytes);
|
|
||||||
if (buf.length === 0 || buf.length > MAX_LIST_BYTES) throw new BadgeError('format', 'badge list: empty or too large');
|
|
||||||
let version = 0;
|
|
||||||
let updated = 0;
|
|
||||||
const raws = [];
|
|
||||||
readFields(buf, (field, wire, value) => {
|
|
||||||
if (field === 1 && wire === 0) version = value;
|
|
||||||
else if (field === 2 && wire === 0) updated = value;
|
|
||||||
else if (field === 3 && wire === 2) {
|
|
||||||
if (raws.length >= MAX_BADGES) throw new BadgeError('format', 'badge list: too many badges');
|
|
||||||
const badge = {};
|
|
||||||
readFields(value, (f, w, v) => {
|
|
||||||
if (w !== 2) return;
|
|
||||||
if (f === 1) badge.uuid = text(v);
|
|
||||||
else if (f === 2) badge.name = text(v);
|
|
||||||
else if (f === 3) badge.url = text(v);
|
|
||||||
else if (f === 4) badge.description = text(v);
|
|
||||||
});
|
|
||||||
raws.push(badge);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
const seen = new Set();
|
|
||||||
const badges = [];
|
|
||||||
for (const raw of raws) {
|
|
||||||
const badge = cleanBadge(raw);
|
|
||||||
if (!badge || seen.has(badge.uuid)) continue;
|
|
||||||
seen.add(badge.uuid);
|
|
||||||
badges.push(badge);
|
|
||||||
}
|
|
||||||
if (badges.length === 0) throw new BadgeError('format', 'badge list: no valid badges');
|
|
||||||
return { version, updated, badges };
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Network artwork URL for a catalog entry; null unless it stays on the fixed origin. */
|
|
||||||
function artworkUrl(badge, detailed) {
|
|
||||||
if (!badge?.url) return null;
|
|
||||||
const base = badge.url.endsWith('.svg') ? badge.url.slice(0, -4) : badge.url;
|
|
||||||
return catalogUrl(`${base}${detailed ? '_details' : ''}.svg`);
|
|
||||||
}
|
|
||||||
|
|
||||||
function validSvg(value) {
|
|
||||||
return typeof value === 'string' && value.length > 0 && Buffer.byteLength(value) <= MAX_ART_BYTES && SVG_START.test(value.replace(/^\uFEFF/, ''));
|
|
||||||
}
|
|
||||||
|
|
||||||
async function readBounded(res, max, signal) {
|
|
||||||
const declared = Number(res.headers?.get?.('content-length'));
|
|
||||||
if (Number.isFinite(declared) && declared > max) throw new BadgeError('too-large', 'badge response too large');
|
|
||||||
if (!res.body || typeof res.body.getReader !== 'function') {
|
|
||||||
const buf = Buffer.from(await res.arrayBuffer());
|
|
||||||
if (signal.aborted) throw signal.reason;
|
|
||||||
if (buf.length > max) throw new BadgeError('too-large', 'badge response too large');
|
|
||||||
return buf;
|
|
||||||
}
|
|
||||||
const reader = res.body.getReader();
|
|
||||||
const chunks = [];
|
|
||||||
let total = 0;
|
|
||||||
const onAbort = () => { reader.cancel(signal.reason).catch(() => {}); };
|
|
||||||
signal.addEventListener('abort', onAbort, { once: true });
|
|
||||||
try {
|
|
||||||
for (;;) {
|
|
||||||
if (signal.aborted) throw signal.reason;
|
|
||||||
const { done, value } = await reader.read();
|
|
||||||
if (signal.aborted) throw signal.reason;
|
|
||||||
if (done) break;
|
|
||||||
total += value.byteLength;
|
|
||||||
if (total > max) {
|
|
||||||
await reader.cancel().catch(() => {});
|
|
||||||
throw new BadgeError('too-large', 'badge response too large');
|
|
||||||
}
|
|
||||||
chunks.push(Buffer.from(value.buffer, value.byteOffset, value.byteLength));
|
|
||||||
}
|
|
||||||
} finally {
|
|
||||||
signal.removeEventListener('abort', onAbort);
|
|
||||||
}
|
|
||||||
return Buffer.concat(chunks, total);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** The installed official client's artwork cache directory (observed on Windows only; read-only use). */
|
|
||||||
function officialBadgeCacheDirs(env = process.env, platform = process.platform) {
|
|
||||||
if (platform !== 'win32' || typeof env.LOCALAPPDATA !== 'string' || !path.win32.isAbsolute(env.LOCALAPPDATA)) return [];
|
|
||||||
return [path.win32.join(env.LOCALAPPDATA, 'TeamSpeak', 'Cache', 'Default', 'badges', '96')];
|
|
||||||
}
|
|
||||||
|
|
||||||
class BadgeCatalog {
|
|
||||||
/**
|
|
||||||
* @param {object} o
|
|
||||||
* @param {string} o.cacheDir profile directory for list.json and fetched artwork
|
|
||||||
* @param {(url: string, init: object) => Promise<Response>} o.fetchImpl Electron net.fetch in the app
|
|
||||||
* @param {string[]} [o.officialCacheDirs] read-only artwork directories of an installed TS6 client
|
|
||||||
* @param {boolean} [o.enabled] false: no network (offscreen tests); caches are still read
|
|
||||||
*/
|
|
||||||
constructor({ cacheDir, fetchImpl, officialCacheDirs = [], enabled = true, now = Date.now, log = () => {} }) {
|
|
||||||
Object.assign(this, { cacheDir, fetchImpl, officialCacheDirs, enabled, now, log });
|
|
||||||
this.badges = new Map();
|
|
||||||
this.fetchedAt = null;
|
|
||||||
this.checkedAt = null;
|
|
||||||
this.fromCache = false;
|
|
||||||
this.error = null;
|
|
||||||
this.cacheLoaded = false;
|
|
||||||
this.pending = null;
|
|
||||||
this.artPending = new Map();
|
|
||||||
this.artFailures = new Map();
|
|
||||||
this.controllers = new Set();
|
|
||||||
this.generation = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
status() {
|
|
||||||
return {
|
|
||||||
enabled: this.enabled, source: BADGE_LIST_URL, loaded: this.fetchedAt !== null, count: this.badges.size,
|
|
||||||
fetchedAt: this.fetchedAt, checkedAt: this.checkedAt, fromCache: this.fromCache, error: this.error,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
get listFile() { return path.join(this.cacheDir, 'list.json'); }
|
|
||||||
get artDir() { return path.join(this.cacheDir, 'art'); }
|
|
||||||
|
|
||||||
loadCache() {
|
|
||||||
if (this.cacheLoaded) return;
|
|
||||||
this.cacheLoaded = true;
|
|
||||||
try {
|
|
||||||
const stat = fs.statSync(this.listFile);
|
|
||||||
if (!stat.isFile() || stat.size > MAX_LIST_BYTES * 2) return;
|
|
||||||
const data = JSON.parse(fs.readFileSync(this.listFile, 'utf8'));
|
|
||||||
if (data?.version !== CACHE_VERSION || data.source !== BADGE_LIST_URL || !Number.isFinite(data.fetchedAt)
|
|
||||||
|| !Array.isArray(data.badges) || data.badges.length > MAX_BADGES) return;
|
|
||||||
const badges = new Map();
|
|
||||||
for (const entry of data.badges) {
|
|
||||||
const badge = entry && typeof entry === 'object' ? cleanBadge(entry) : null;
|
|
||||||
if (badge && !badges.has(badge.uuid)) badges.set(badge.uuid, badge);
|
|
||||||
}
|
|
||||||
if (badges.size === 0 || (this.fetchedAt !== null && this.fetchedAt >= data.fetchedAt)) return;
|
|
||||||
this.badges = badges;
|
|
||||||
this.fetchedAt = data.fetchedAt;
|
|
||||||
this.fromCache = true;
|
|
||||||
} catch {
|
|
||||||
// no cache yet or unreadable
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Loads the cache and starts a refresh when the list is missing or older than REFRESH_MS (RETRY_MS after a failure). */
|
|
||||||
ensureFresh() {
|
|
||||||
this.loadCache();
|
|
||||||
if (!this.enabled) return Promise.resolve(this.status());
|
|
||||||
const now = this.now();
|
|
||||||
const stale = this.fetchedAt === null || now - this.fetchedAt >= REFRESH_MS;
|
|
||||||
const recentlyTried = this.checkedAt !== null && now - this.checkedAt < (this.error ? RETRY_MS : REFRESH_MS);
|
|
||||||
if (stale && !recentlyTried) return this.refresh();
|
|
||||||
return this.pending ?? Promise.resolve(this.status());
|
|
||||||
}
|
|
||||||
|
|
||||||
refresh() {
|
|
||||||
if (!this.enabled) return Promise.resolve(this.status());
|
|
||||||
if (!this.pending) {
|
|
||||||
const pending = this.fetchList().finally(() => { if (this.pending === pending) this.pending = null; });
|
|
||||||
this.pending = pending;
|
|
||||||
}
|
|
||||||
return this.pending;
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
this.generation += 1;
|
|
||||||
for (const controller of this.controllers) controller.abort(new BadgeError('stopped', 'badge catalog stopped'));
|
|
||||||
this.controllers.clear();
|
|
||||||
this.pending = null;
|
|
||||||
this.artPending.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
async request(url, accept) {
|
|
||||||
const generation = this.generation;
|
|
||||||
const controller = new AbortController();
|
|
||||||
this.controllers.add(controller);
|
|
||||||
const timer = setTimeout(() => controller.abort(new BadgeError('timeout', `badges: no answer in ${REQUEST_TIMEOUT_MS / 1000} s`)), REQUEST_TIMEOUT_MS);
|
|
||||||
timer.unref?.();
|
|
||||||
try {
|
|
||||||
const res = await this.fetchImpl(url, {
|
|
||||||
method: 'GET', signal: controller.signal, redirect: 'error', cache: 'no-store',
|
|
||||||
credentials: 'omit', referrerPolicy: 'no-referrer', headers: { Accept: accept },
|
|
||||||
});
|
|
||||||
if (generation !== this.generation) throw new BadgeError('stopped', 'badge catalog stopped');
|
|
||||||
if (res.redirected || (res.url && res.url !== url)) throw new BadgeError('redirect', 'badge response did not come from the fixed endpoint');
|
|
||||||
if (!res.ok) throw new BadgeError('http', `badges: HTTP ${res.status}`);
|
|
||||||
const body = await readBounded(res, accept === 'image/svg+xml' ? MAX_ART_BYTES : MAX_LIST_BYTES, controller.signal);
|
|
||||||
if (generation !== this.generation) throw new BadgeError('stopped', 'badge catalog stopped');
|
|
||||||
return body;
|
|
||||||
} catch (err) {
|
|
||||||
const reason = controller.signal.aborted ? controller.signal.reason : null;
|
|
||||||
throw reason instanceof BadgeError ? reason : err;
|
|
||||||
} finally {
|
|
||||||
clearTimeout(timer);
|
|
||||||
this.controllers.delete(controller);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async fetchList() {
|
|
||||||
const generation = this.generation;
|
|
||||||
this.checkedAt = this.now();
|
|
||||||
try {
|
|
||||||
const body = await this.request(BADGE_LIST_URL, 'application/octet-stream');
|
|
||||||
const { badges } = parseBadgeList(body);
|
|
||||||
if (generation !== this.generation) return this.status();
|
|
||||||
this.badges = new Map(badges.map((badge) => [badge.uuid, badge]));
|
|
||||||
this.fetchedAt = this.now();
|
|
||||||
this.fromCache = false;
|
|
||||||
this.error = null;
|
|
||||||
this.writeList();
|
|
||||||
this.log('info', `badge catalog: ${badges.length} badges`);
|
|
||||||
} catch (err) {
|
|
||||||
if (generation !== this.generation) return this.status();
|
|
||||||
this.error = { code: err instanceof BadgeError ? err.code : 'network', message: String(err?.message ?? err) };
|
|
||||||
this.log('warn', `badge catalog: ${this.error.message} (keeping ${this.badges.size} known badges)`);
|
|
||||||
}
|
|
||||||
return this.status();
|
|
||||||
}
|
|
||||||
|
|
||||||
writeList() {
|
|
||||||
try {
|
|
||||||
fs.mkdirSync(this.cacheDir, { recursive: true });
|
|
||||||
const tmp = `${this.listFile}.tmp`;
|
|
||||||
fs.writeFileSync(tmp, JSON.stringify({ version: CACHE_VERSION, source: BADGE_LIST_URL, fetchedAt: this.fetchedAt, badges: [...this.badges.values()] }));
|
|
||||||
fs.renameSync(tmp, this.listFile);
|
|
||||||
} catch (err) {
|
|
||||||
this.log('warn', `badge catalog cache not written: ${err.message}`);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Catalog entries for the requested UUIDs (unknown ones flagged), plus the source status. */
|
|
||||||
async info(uuids) {
|
|
||||||
await this.ensureFresh();
|
|
||||||
return {
|
|
||||||
status: this.status(),
|
|
||||||
badges: uuids.map((uuid) => {
|
|
||||||
const badge = this.badges.get(uuid);
|
|
||||||
return badge ? { uuid, known: true, name: badge.name, description: badge.description } : { uuid, known: false, name: '', description: '' };
|
|
||||||
}),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
readArtFile(file) {
|
|
||||||
try {
|
|
||||||
const stat = fs.statSync(file);
|
|
||||||
if (!stat.isFile() || stat.size === 0 || stat.size > MAX_ART_BYTES) return null;
|
|
||||||
const svg = fs.readFileSync(file, 'utf8');
|
|
||||||
return validSvg(svg) ? svg : null;
|
|
||||||
} catch {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/** SVG text for a badge: profile cache, then the installed TS6 cache, then the fixed catalog origin. */
|
|
||||||
async artwork(uuid, detailed) {
|
|
||||||
if (!validUuid(uuid)) throw new BadgeError('bad_request', 'invalid badge id');
|
|
||||||
const name = `${uuid}${detailed ? '_details' : ''}`;
|
|
||||||
const own = this.readArtFile(path.join(this.artDir, `${name}.svg`));
|
|
||||||
if (own) return { svg: own, source: 'cache' };
|
|
||||||
for (const dir of this.officialCacheDirs) {
|
|
||||||
const svg = this.readArtFile(path.join(dir, name));
|
|
||||||
if (svg) return { svg, source: 'teamspeak-cache' };
|
|
||||||
}
|
|
||||||
if (!this.enabled) throw new BadgeError('unavailable', 'badge artwork is not cached and network access is disabled');
|
|
||||||
const failedAt = this.artFailures.get(name);
|
|
||||||
if (failedAt !== undefined && this.now() - failedAt < RETRY_MS) throw new BadgeError('unavailable', 'badge artwork recently failed');
|
|
||||||
let pending = this.artPending.get(name);
|
|
||||||
if (!pending) {
|
|
||||||
pending = this.fetchArt(uuid, detailed, name).finally(() => { if (this.artPending.get(name) === pending) this.artPending.delete(name); });
|
|
||||||
this.artPending.set(name, pending);
|
|
||||||
}
|
|
||||||
return pending;
|
|
||||||
}
|
|
||||||
|
|
||||||
async fetchArt(uuid, detailed, name) {
|
|
||||||
await this.ensureFresh();
|
|
||||||
const url = artworkUrl(this.badges.get(uuid), detailed);
|
|
||||||
if (!url) throw new BadgeError('unavailable', 'badge is not in the public catalog');
|
|
||||||
try {
|
|
||||||
const svg = (await this.request(url, 'image/svg+xml')).toString('utf8');
|
|
||||||
if (!validSvg(svg)) throw new BadgeError('format', 'badge artwork is not an SVG image');
|
|
||||||
this.artFailures.delete(name);
|
|
||||||
this.writeArt(name, svg);
|
|
||||||
return { svg, source: 'network' };
|
|
||||||
} catch (err) {
|
|
||||||
this.artFailures.set(name, this.now());
|
|
||||||
throw err instanceof BadgeError ? err : new BadgeError('network', String(err?.message ?? err));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Atomic write; the oldest files beyond MAX_CACHED_ART are evicted. */
|
|
||||||
writeArt(name, svg) {
|
|
||||||
try {
|
|
||||||
fs.mkdirSync(this.artDir, { recursive: true });
|
|
||||||
const entries = fs.readdirSync(this.artDir).filter((file) => file.endsWith('.svg'));
|
|
||||||
if (entries.length >= MAX_CACHED_ART) {
|
|
||||||
const aged = entries.map((file) => {
|
|
||||||
try { return { file, at: fs.statSync(path.join(this.artDir, file)).mtimeMs }; } catch { return { file, at: 0 }; }
|
|
||||||
}).sort((a, b) => a.at - b.at);
|
|
||||||
for (const { file } of aged.slice(0, entries.length - MAX_CACHED_ART + 1)) fs.rmSync(path.join(this.artDir, file), { force: true });
|
|
||||||
}
|
|
||||||
const file = path.join(this.artDir, `${name}.svg`);
|
|
||||||
fs.writeFileSync(`${file}.tmp`, svg);
|
|
||||||
fs.renameSync(`${file}.tmp`, file);
|
|
||||||
} catch (err) {
|
|
||||||
this.log('warn', `badge artwork not cached: ${err.message}`);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const FORBIDDEN = Object.freeze({ ok: false, error: { code: 'forbidden', message: 'forbidden' } });
|
|
||||||
const failure = (err) => ({ ok: false, error: { code: err instanceof BadgeError ? err.code : 'internal', message: String(err?.message ?? err) } });
|
|
||||||
|
|
||||||
/** badges:info(uuids[]) and badges:art(uuid, detailed): the renderer never supplies a URL or a path. */
|
|
||||||
function registerBadgesIpc({ ipcMain, trustedSender, catalog }) {
|
|
||||||
ipcMain.handle('badges:info', async (event, uuids) => {
|
|
||||||
if (!trustedSender(event)) return FORBIDDEN;
|
|
||||||
if (!Array.isArray(uuids) || uuids.length > MAX_REQUEST_UUIDS || !uuids.every(validUuid)) {
|
|
||||||
return { ok: false, error: { code: 'bad_request', message: 'Invalid badge ids' } };
|
|
||||||
}
|
|
||||||
try { return { ok: true, ...(await catalog.info([...new Set(uuids)])) }; } catch (err) { return failure(err); }
|
|
||||||
});
|
|
||||||
ipcMain.handle('badges:art', async (event, uuid, detailed) => {
|
|
||||||
if (!trustedSender(event)) return FORBIDDEN;
|
|
||||||
if (!validUuid(uuid) || typeof detailed !== 'boolean') return { ok: false, error: { code: 'bad_request', message: 'Invalid badge request' } };
|
|
||||||
try { return { ok: true, ...(await catalog.artwork(uuid, detailed)) }; } catch (err) { return failure(err); }
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
BadgeCatalog, registerBadgesIpc, parseBadgeList, artworkUrl, validSvg, officialBadgeCacheDirs,
|
|
||||||
BADGE_LIST_URL, BADGE_ORIGIN, MAX_LIST_BYTES, MAX_BADGES, MAX_ART_BYTES, MAX_CACHED_ART, MAX_REQUEST_UUIDS, REFRESH_MS,
|
|
||||||
};
|
|
||||||
@@ -1,296 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const bookmarks = require('../renderer/shared/bookmarks.js');
|
|
||||||
const { validateRequest } = require('./ipc-validate');
|
|
||||||
const { ConnectionManager } = require('./connections');
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Bookmark passwords and bookmark connects, resolved only in main.
|
|
||||||
*
|
|
||||||
* Passwords are sealed with Electron's synchronous safeStorage (Windows DPAPI, macOS Keychain, Linux
|
|
||||||
* libsecret/KWallet) and stored as opaque base64 in the bookmark (`server_password_encrypted`,
|
|
||||||
* `channel_password_encrypted`). The sealed plaintext is an envelope binding the format version, the purpose
|
|
||||||
* (server/channel) and the exact trimmed address, so ciphertext moved to another field or address never
|
|
||||||
* decrypts into a connect. There is no plaintext fallback: Linux `basic_text` (a hardcoded key) and an
|
|
||||||
* undetermined backend are refused, and nothing here ever enables safeStorage plain-text encryption.
|
|
||||||
*
|
|
||||||
* The renderer never receives plaintext except from an explicit `bookmarks:password-reveal`. Generic
|
|
||||||
* `prefs:set` writes pass through `protectPrefsPatch`, which keeps the current ciphertext of an unchanged
|
|
||||||
* bookmark whatever stale copy the renderer sends, drops it on an address change and accepts it on a new
|
|
||||||
* bookmark only as an exact copy of a same-address bookmark (explicit duplication).
|
|
||||||
*/
|
|
||||||
|
|
||||||
const ENVELOPE_VERSION = 1;
|
|
||||||
const FIELDS = Object.freeze({ server: 'server_password_encrypted', channel: 'channel_password_encrypted' });
|
|
||||||
const PASSWORD_MAX = 255;
|
|
||||||
const CONTROL = /[\u0000-\u001f\u007f]/;
|
|
||||||
// Backends whose key lives in the OS keyring; `basic_text` uses Chromium's hardcoded key and `unknown` means the
|
|
||||||
// backend is not determined (for example before app ready).
|
|
||||||
const LINUX_KEYRING_BACKENDS = new Set(['gnome_libsecret', 'kwallet', 'kwallet5', 'kwallet6']);
|
|
||||||
// Chromium OSCrypt on Linux prefixes data sealed with its hardcoded fallback key `v10` (keyring key: `v11`).
|
|
||||||
const LINUX_HARDCODED_KEY_PREFIX = 'v10';
|
|
||||||
const MESSAGE_MAX = 200;
|
|
||||||
|
|
||||||
class BookmarkError extends Error {
|
|
||||||
constructor(code, message) {
|
|
||||||
super(message);
|
|
||||||
this.code = code;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const fail = (code, message) => ({ ok: false, error: { code, message } });
|
|
||||||
const isRecord = (value) => value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
||||||
const sameAddress = (a, b) => typeof a === 'string' && typeof b === 'string' && a.trim() === b.trim();
|
|
||||||
const validAddress = (value) => typeof value === 'string' && value.length <= bookmarks.ADDRESS_MAX && value.trim().length > 0 && !CONTROL.test(value);
|
|
||||||
// Same bound as the connect validator's server_password/channel_password (ipc-validate.js).
|
|
||||||
const validPassword = (value) => typeof value === 'string' && value.length <= PASSWORD_MAX && !CONTROL.test(value);
|
|
||||||
const validBookmarkId = (value) => typeof value === 'string' && bookmarks.ID.test(value);
|
|
||||||
|
|
||||||
/** Bounded, non-secret failure for any thrown error; unknown errors never echo their message. */
|
|
||||||
function failure(error) {
|
|
||||||
if (error instanceof BookmarkError) return fail(error.code, error.message);
|
|
||||||
const message = typeof error?.message === 'string' ? error.message : '';
|
|
||||||
// ipc-validate.js ValidationError and Prefs/bookmark validation name keys and rules, never values.
|
|
||||||
if (error?.code === 'bad_request' || /^(prefs|bookmarks): /.test(message)) return fail('bad_request', message.slice(0, MESSAGE_MAX));
|
|
||||||
// Node file errors (Prefs.set persisting) carry paths; report only that saving failed.
|
|
||||||
if (typeof error?.code === 'string' && /^E[A-Z]+$/.test(error.code)) return fail('io', 'The bookmark could not be saved');
|
|
||||||
return fail('internal', 'The bookmark request failed');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {object} o
|
|
||||||
* @param {Electron.IpcMain} o.ipcMain
|
|
||||||
* @param {(event) => boolean} o.trustedSender application top frame check
|
|
||||||
* @param {{ get(): object, set(partial: object): object }} o.prefs the main Prefs instance
|
|
||||||
* @param {Electron.SafeStorage} o.safeStorage
|
|
||||||
* @param {NodeJS.Platform} o.platform
|
|
||||||
* @param {(id: string) => ({ state: string, session: number, core: object | null } | null)} o.getConnection
|
|
||||||
* @param {(id: string, cmd: string, args?: object) => Promise<object>} o.request core request on one connection
|
|
||||||
* @param {boolean} o.testOffscreen hidden test runs never dispatch a bookmark connect
|
|
||||||
* @returns {{ protectPrefsPatch(partial: unknown): unknown }}
|
|
||||||
*/
|
|
||||||
function registerBookmarkIpc({ ipcMain, trustedSender, prefs, safeStorage, platform, getConnection, request, testOffscreen }) {
|
|
||||||
let startupIssued = false;
|
|
||||||
/**
|
|
||||||
* Whether OS-backed encryption can be used. `touch: false` (status display) avoids opening the macOS Keychain
|
|
||||||
* or the Linux keyring, which can block on a user prompt; saving, revealing and connecting check for real.
|
|
||||||
*/
|
|
||||||
function storageStatus({ touch }) {
|
|
||||||
// DPAPI never prompts; Keychain and keyring prompts would be visible in a hidden test run.
|
|
||||||
if (testOffscreen && platform !== 'win32') return { available: false, reason: 'test_mode' };
|
|
||||||
if (platform === 'linux') {
|
|
||||||
let backend = 'unknown';
|
|
||||||
try { backend = safeStorage.getSelectedStorageBackend(); } catch { /* treated as unknown */ }
|
|
||||||
if (!LINUX_KEYRING_BACKENDS.has(backend)) return { available: false, reason: backend === 'basic_text' ? 'insecure_backend' : 'unknown_backend' };
|
|
||||||
} else if (platform !== 'win32' && platform !== 'darwin') {
|
|
||||||
return { available: false, reason: 'unsupported_platform' };
|
|
||||||
}
|
|
||||||
if (!touch && platform !== 'win32') return { available: true };
|
|
||||||
let available = false;
|
|
||||||
try { available = safeStorage.isEncryptionAvailable() === true; } catch { /* unavailable */ }
|
|
||||||
return available ? { available: true } : { available: false, reason: 'unavailable' };
|
|
||||||
}
|
|
||||||
|
|
||||||
function requireStorage() {
|
|
||||||
const status = storageStatus({ touch: true });
|
|
||||||
if (!status.available) throw new BookmarkError('storage_unavailable', `Secure password storage is unavailable (${status.reason})`);
|
|
||||||
}
|
|
||||||
|
|
||||||
const hardcodedKey = (sealed) => platform === 'linux' && sealed.subarray(0, LINUX_HARDCODED_KEY_PREFIX.length).toString('latin1') === LINUX_HARDCODED_KEY_PREFIX;
|
|
||||||
|
|
||||||
function seal(kind, address, secret) {
|
|
||||||
requireStorage();
|
|
||||||
let sealed;
|
|
||||||
try { sealed = safeStorage.encryptString(JSON.stringify({ v: ENVELOPE_VERSION, purpose: kind, address, secret })); } catch { sealed = null; }
|
|
||||||
if (!Buffer.isBuffer(sealed) || sealed.length === 0 || hardcodedKey(sealed)) throw new BookmarkError('encryption_failed', 'The operating system could not encrypt the password');
|
|
||||||
const text = sealed.toString('base64');
|
|
||||||
if (!bookmarks.validSecret(text)) throw new BookmarkError('too_long', 'The encrypted password is too long to store');
|
|
||||||
return text;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Decrypts one stored field for `kind` at `address`; any doubt is an error, never an empty password. */
|
|
||||||
function open(text, kind, address) {
|
|
||||||
const unreadable = new BookmarkError('password_unreadable', `The saved ${kind} password cannot be decrypted; save it again`);
|
|
||||||
if (!bookmarks.validSecret(text)) throw unreadable;
|
|
||||||
const sealed = Buffer.from(text, 'base64');
|
|
||||||
if (sealed.toString('base64') !== text || hardcodedKey(sealed)) throw unreadable;
|
|
||||||
requireStorage();
|
|
||||||
let envelope;
|
|
||||||
try { envelope = JSON.parse(safeStorage.decryptString(sealed)); } catch { throw unreadable; }
|
|
||||||
if (!isRecord(envelope) || Object.keys(envelope).length !== 4 || envelope.v !== ENVELOPE_VERSION || !validPassword(envelope.secret) || envelope.secret === '') throw unreadable;
|
|
||||||
if (envelope.purpose !== kind || envelope.address !== address) {
|
|
||||||
throw new BookmarkError('password_mismatch', `The saved ${kind} password does not belong to this bookmark address; save it again`);
|
|
||||||
}
|
|
||||||
return envelope.secret;
|
|
||||||
}
|
|
||||||
|
|
||||||
const find = (id) => prefs.get().savedServers.find((server) => server.id === id) ?? null;
|
|
||||||
|
|
||||||
/** The bookmark `id`, still at `expectedAddress` (exact after trimming). */
|
|
||||||
function target(id, expectedAddress) {
|
|
||||||
const bookmark = find(id);
|
|
||||||
if (!bookmark) throw new BookmarkError('not_found', 'The bookmark no longer exists');
|
|
||||||
if (!sameAddress(bookmark.address, expectedAddress)) throw new BookmarkError('address_changed', 'The bookmark address changed; review it and try again');
|
|
||||||
return bookmark;
|
|
||||||
}
|
|
||||||
|
|
||||||
function passwordArgs(id, expectedAddress, kind) {
|
|
||||||
if (!validBookmarkId(id)) throw new BookmarkError('bad_request', 'Invalid bookmark');
|
|
||||||
if (!validAddress(expectedAddress)) throw new BookmarkError('bad_request', 'Invalid bookmark address');
|
|
||||||
if (typeof kind !== 'string' || !Object.hasOwn(FIELDS, kind)) throw new BookmarkError('bad_request', 'Invalid password kind');
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Connect arguments for the stored bookmark, decrypted here and checked like a renderer connect. */
|
|
||||||
function connectArgs(bookmark) {
|
|
||||||
const address = bookmark.address.trim();
|
|
||||||
const args = { address };
|
|
||||||
if (bookmark.identity_id !== undefined) args.identity_id = bookmark.identity_id;
|
|
||||||
if (bookmark.nickname !== undefined) args.nickname = bookmark.nickname;
|
|
||||||
if (bookmark.channel !== undefined) args.channel = bookmark.channel;
|
|
||||||
if (bookmark[FIELDS.server] !== undefined) args.server_password = open(bookmark[FIELDS.server], 'server', address);
|
|
||||||
if (bookmark[FIELDS.channel] !== undefined) args.channel_password = open(bookmark[FIELDS.channel], 'channel', address);
|
|
||||||
return validateRequest('connect', args);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Everything a connect is derived from; a difference after an await means the target changed.
|
|
||||||
const connectSource = (bookmark) => JSON.stringify([bookmark.address, bookmark.identity_id, bookmark.nickname, bookmark.channel,
|
|
||||||
bookmark.auto_connect, bookmark.auto_connect_muted, bookmark[FIELDS.server], bookmark[FIELDS.channel]]);
|
|
||||||
|
|
||||||
const handle = (channel, fn) => ipcMain.handle(channel, async (event, ...args) => {
|
|
||||||
if (!trustedSender(event)) return fail('forbidden', 'forbidden');
|
|
||||||
try { return await fn(event, ...args); } catch (error) { return failure(error); }
|
|
||||||
});
|
|
||||||
|
|
||||||
handle('bookmarks:password-state', (_event, id) => {
|
|
||||||
if (!validBookmarkId(id)) throw new BookmarkError('bad_request', 'Invalid bookmark');
|
|
||||||
const bookmark = find(id);
|
|
||||||
if (!bookmark) throw new BookmarkError('not_found', 'The bookmark no longer exists');
|
|
||||||
const status = storageStatus({ touch: false });
|
|
||||||
return {
|
|
||||||
ok: true,
|
|
||||||
available: status.available,
|
|
||||||
serverPasswordSaved: bookmark[FIELDS.server] !== undefined,
|
|
||||||
channelPasswordSaved: bookmark[FIELDS.channel] !== undefined,
|
|
||||||
...(status.reason ? { reason: status.reason } : {}),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
handle('bookmarks:password-set', (event, id, expectedAddress, kind, value) => {
|
|
||||||
passwordArgs(id, expectedAddress, kind);
|
|
||||||
if (!validPassword(value)) throw new BookmarkError('bad_request', `The ${kind} password must be at most ${PASSWORD_MAX} characters without control characters`);
|
|
||||||
const field = FIELDS[kind];
|
|
||||||
const original = target(id, expectedAddress);
|
|
||||||
const address = original.address.trim();
|
|
||||||
const previous = original[field];
|
|
||||||
// Encryption may block on an OS prompt; the write below starts again from the current prefs.
|
|
||||||
const sealed = value === '' ? null : seal(kind, address, value);
|
|
||||||
if (!trustedSender(event)) throw new BookmarkError('forbidden', 'forbidden');
|
|
||||||
const current = target(id, expectedAddress);
|
|
||||||
if (current[field] !== previous) throw new BookmarkError('password_changed', 'The saved password changed; review it and try again');
|
|
||||||
if (sealed === null && current[field] === undefined) return { ok: true, prefs: prefs.get() };
|
|
||||||
const savedServers = prefs.get().savedServers.map((server) => {
|
|
||||||
if (server.id !== id) return server;
|
|
||||||
const next = { ...server };
|
|
||||||
if (sealed === null) delete next[field];
|
|
||||||
else next[field] = sealed;
|
|
||||||
return next;
|
|
||||||
});
|
|
||||||
return { ok: true, prefs: prefs.set({ savedServers }) };
|
|
||||||
});
|
|
||||||
|
|
||||||
handle('bookmarks:password-reveal', (event, id, expectedAddress, kind) => {
|
|
||||||
passwordArgs(id, expectedAddress, kind);
|
|
||||||
const bookmark = target(id, expectedAddress);
|
|
||||||
const stored = bookmark[FIELDS[kind]];
|
|
||||||
if (stored === undefined) throw new BookmarkError('not_saved', `No ${kind} password is saved for this bookmark`);
|
|
||||||
const value = open(stored, kind, bookmark.address.trim());
|
|
||||||
if (!trustedSender(event)) throw new BookmarkError('forbidden', 'forbidden');
|
|
||||||
if (target(id, expectedAddress)[FIELDS[kind]] !== stored) throw new BookmarkError('password_changed', 'The saved password changed; try again');
|
|
||||||
return { ok: true, value };
|
|
||||||
});
|
|
||||||
|
|
||||||
handle('bookmarks:connect', async (event, connectionId, bookmarkId, startup = false) => {
|
|
||||||
if (!ConnectionManager.validId(connectionId)) throw new BookmarkError('bad_request', 'Invalid server connection');
|
|
||||||
if (!validBookmarkId(bookmarkId)) throw new BookmarkError('bad_request', 'Invalid bookmark');
|
|
||||||
if (typeof startup !== 'boolean') throw new BookmarkError('bad_request', 'Invalid startup flag');
|
|
||||||
const resolve = () => {
|
|
||||||
const bookmark = find(bookmarkId);
|
|
||||||
if (!bookmark) throw new BookmarkError('not_found', 'The bookmark no longer exists');
|
|
||||||
if (startup && bookmark.auto_connect !== true) throw new BookmarkError('not_startup', 'The bookmark no longer connects at startup');
|
|
||||||
return bookmark;
|
|
||||||
};
|
|
||||||
const bookmark = resolve();
|
|
||||||
const source = connectSource(bookmark);
|
|
||||||
const entry = getConnection(connectionId);
|
|
||||||
if (!entry) throw new BookmarkError('connection_closed', 'The server connection is no longer available');
|
|
||||||
if (!entry.core) throw new BookmarkError('core_unavailable', 'The core is not running');
|
|
||||||
if (entry.state !== 'disconnected') throw new BookmarkError('already_connected', 'The server tab is already connected');
|
|
||||||
const { session, core } = entry;
|
|
||||||
const unchanged = () => getConnection(connectionId) === entry && entry.session === session && entry.core === core && entry.state === 'disconnected';
|
|
||||||
// A keyring prompt may outlive the original window, bookmark or connection grant.
|
|
||||||
const args = connectArgs(bookmark);
|
|
||||||
if (!trustedSender(event)) throw new BookmarkError('forbidden', 'forbidden');
|
|
||||||
if (!unchanged()) throw new BookmarkError('connection_changed', 'The server connection changed before connecting');
|
|
||||||
if (connectSource(resolve()) !== source) throw new BookmarkError('bookmark_changed', 'The bookmark changed before connecting; try again');
|
|
||||||
if (testOffscreen) throw new BookmarkError('test_safety', 'Real server connections are disabled in offscreen tests');
|
|
||||||
// Official Connect(bookmark, autoconnect): connect_muted only on an automatic connect, and only the input
|
|
||||||
// (initialClientSelfProperties.inputMuted). Unmuted bookmarks leave the current mute state alone.
|
|
||||||
if (startup && bookmark.auto_connect_muted === true) {
|
|
||||||
const muted = await request(connectionId, 'set_audio', { input_muted: true });
|
|
||||||
if (!trustedSender(event)) throw new BookmarkError('forbidden', 'forbidden');
|
|
||||||
if (muted?.ok !== true) return isRecord(muted?.error) ? muted : fail('mute_failed', 'The microphone could not be muted before connecting');
|
|
||||||
if (!unchanged()) throw new BookmarkError('connection_changed', 'The server connection changed before connecting');
|
|
||||||
if (connectSource(resolve()) !== source) throw new BookmarkError('bookmark_changed', 'The bookmark changed before connecting; try again');
|
|
||||||
}
|
|
||||||
return request(connectionId, 'connect', args);
|
|
||||||
});
|
|
||||||
|
|
||||||
handle('bookmarks:startup', () => {
|
|
||||||
if (testOffscreen || startupIssued) return { ok: true, bookmarks: [] };
|
|
||||||
const list = bookmarks.allBookmarks(prefs.get())
|
|
||||||
.filter((bookmark) => bookmark.auto_connect === true)
|
|
||||||
.map((bookmark) => ({
|
|
||||||
id: bookmark.id,
|
|
||||||
address: bookmark.address,
|
|
||||||
...(bookmark.identity_id !== undefined ? { identity_id: bookmark.identity_id } : {}),
|
|
||||||
...(bookmark.nickname !== undefined ? { nickname: bookmark.nickname } : {}),
|
|
||||||
...(bookmark.channel !== undefined ? { channel: bookmark.channel } : {}),
|
|
||||||
}));
|
|
||||||
startupIssued = true;
|
|
||||||
return { ok: true, bookmarks: list };
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Generic renderer prefs writes: call immediately before `prefs.set(partial)` with no await between, so both see
|
|
||||||
* the same stored bookmarks. Returns the partial with protected fields taken from the store, or throws.
|
|
||||||
*/
|
|
||||||
function protectPrefsPatch(partial) {
|
|
||||||
if (!isRecord(partial) || !Object.hasOwn(partial, 'savedServers') || !Array.isArray(partial.savedServers)) return partial;
|
|
||||||
const current = prefs.get().savedServers;
|
|
||||||
const byId = new Map(current.map((server) => [server.id, server]));
|
|
||||||
const savedServers = partial.savedServers.map((incoming) => {
|
|
||||||
if (!isRecord(incoming)) return incoming; // the prefs validator rejects it
|
|
||||||
const next = { ...incoming };
|
|
||||||
for (const field of bookmarks.SECRET_KEYS) delete next[field];
|
|
||||||
const existing = typeof incoming.id === 'string' ? byId.get(incoming.id) : undefined;
|
|
||||||
if (existing) {
|
|
||||||
if (sameAddress(incoming.address, existing.address)) {
|
|
||||||
for (const field of bookmarks.SECRET_KEYS) if (existing[field] !== undefined) next[field] = existing[field];
|
|
||||||
}
|
|
||||||
return next;
|
|
||||||
}
|
|
||||||
for (const field of bookmarks.SECRET_KEYS) {
|
|
||||||
if (incoming[field] === undefined) continue;
|
|
||||||
const copied = typeof incoming[field] === 'string' && current.some((server) => server[field] === incoming[field] && sameAddress(server.address, incoming.address));
|
|
||||||
if (!copied) throw new Error(`prefs: ${field} can only be copied from a bookmark with the same address`);
|
|
||||||
next[field] = incoming[field];
|
|
||||||
}
|
|
||||||
return next;
|
|
||||||
});
|
|
||||||
return { ...partial, savedServers };
|
|
||||||
}
|
|
||||||
|
|
||||||
return { protectPrefsPatch };
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = { registerBookmarkIpc };
|
|
||||||
@@ -1,194 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const os = require('node:os');
|
|
||||||
const { normalizeOrigin } = require('./permissions');
|
|
||||||
|
|
||||||
// Electron 44.9.3: session.setDisplayMediaRequestHandler and desktopCapturer.
|
|
||||||
// restrictOwnAudio is mapped to kLoopbackWithoutChromeId in electron_browser_context.cc.
|
|
||||||
// Capability means a real API path exists, not that OS consent/drivers/portals were verified.
|
|
||||||
function captureCapabilities({ platform = process.platform, release = os.release(), env = process.env } = {}) {
|
|
||||||
const minor = Number(release.split('.')[1]);
|
|
||||||
const major = Number(release.split('.')[0]);
|
|
||||||
const build = Number(release.split('.')[2]);
|
|
||||||
const wayland = platform === 'linux' && (env.XDG_SESSION_TYPE === 'wayland' || Boolean(env.WAYLAND_DISPLAY));
|
|
||||||
const mac = platform === 'darwin';
|
|
||||||
const windows = platform === 'win32';
|
|
||||||
const supported = windows || mac || platform === 'linux';
|
|
||||||
const systemAudio = windows || (mac && major >= 22);
|
|
||||||
const excludeSelf = (windows && build >= 20348) || (mac && (major > 23 || (major === 23 && minor >= 2)));
|
|
||||||
return {
|
|
||||||
platform, backend: windows ? 'windows-desktop-capturer' : mac ? 'macos-screencapturekit' : wayland ? 'pipewire-portal' : platform === 'linux' ? 'x11-desktop-capturer' : 'unsupported',
|
|
||||||
supported, sourceTypes: supported ? ['window', 'screen', 'camera'] : [],
|
|
||||||
nativePicker: mac && major >= 24, portal: wayland,
|
|
||||||
audio: {
|
|
||||||
system: { supported: systemAudio, reason: systemAudio ? 'OS consent and a working loopback device are required.' : 'Electron does not expose Linux desktop audio through its supported display-capture API.' },
|
|
||||||
applications: { supported: false, reason: 'Electron 44 has no supported arbitrary process-audio selection API. A platform-native audio helper is required; system audio is never substituted.' },
|
|
||||||
excludeSelf: { supported: excludeSelf, verified: false, reason: excludeSelf ? 'Chromium restrictOwnAudio requests exclusion of this application; actual isolation requires platform audio verification.' : 'Self-audio exclusion requires Windows build 20348+ or the macOS CoreAudio tap path (macOS 14.2+).' },
|
|
||||||
},
|
|
||||||
requirements: wayland
|
|
||||||
? ['PipeWire and an active xdg-desktop-portal ScreenCast backend are required.', 'GNOME/KDE use their matching portal; Hyprland uses its portal; niri uses the GNOME portal. wlroots monitor/window choices depend on installed backend and compositor protocols.', 'The portal owns source selection. No fallback to X11 or a whole monitor is performed.']
|
|
||||||
: mac ? ['Screen Recording consent is required. macOS 15+ uses the native system picker.', 'Audio capture on macOS 14.2+ requires NSAudioCaptureUsageDescription in the running application bundle.']
|
|
||||||
: windows ? ['Protected, minimized, elevated or hardware-accelerated windows may not be capturable.'] : ['An accessible X11 session is required; window-manager and GPU behavior are not guaranteed.'],
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
function failure(code, message) { return { ok: false, error: { code, message } }; }
|
|
||||||
function validOptions(options, keys) {
|
|
||||||
return options !== null && typeof options === 'object' && !Array.isArray(options) && Object.keys(options).every(key => keys.includes(key));
|
|
||||||
}
|
|
||||||
|
|
||||||
class CaptureController {
|
|
||||||
constructor({ desktopCapturer, getWindow, appOrigin, platform, release, env, now = Date.now, onSelected = () => ({}), onCaptureGranted = () => {} }) {
|
|
||||||
this.desktopCapturer = desktopCapturer;
|
|
||||||
this.getWindow = getWindow;
|
|
||||||
this.appOrigin = appOrigin;
|
|
||||||
this.capabilities = captureCapabilities({ platform, release, env });
|
|
||||||
this.now = now;
|
|
||||||
this.onSelected = onSelected;
|
|
||||||
this.onCaptureGranted = onCaptureGranted;
|
|
||||||
this.sources = new Map();
|
|
||||||
this.selection = null;
|
|
||||||
this.generation = 0;
|
|
||||||
this.timer = null;
|
|
||||||
this.boundContents = new WeakSet();
|
|
||||||
}
|
|
||||||
|
|
||||||
trustedFrame(frame) {
|
|
||||||
const win = this.getWindow();
|
|
||||||
return Boolean(win && !win.isDestroyed() && frame && frame === win.webContents.mainFrame && normalizeOrigin(frame.url) === this.appOrigin);
|
|
||||||
}
|
|
||||||
|
|
||||||
bindWindow() {
|
|
||||||
const win = this.getWindow();
|
|
||||||
if (!win || win.isDestroyed() || this.boundContents.has(win.webContents)) return;
|
|
||||||
this.boundContents.add(win.webContents);
|
|
||||||
win.webContents.on('did-start-navigation', (_event, _url, _inPlace, isMainFrame) => { if (isMainFrame) this.cancel(); });
|
|
||||||
win.webContents.on('render-process-gone', () => this.cancel());
|
|
||||||
win.webContents.on('destroyed', () => this.cancel());
|
|
||||||
}
|
|
||||||
|
|
||||||
cancel() {
|
|
||||||
this.generation++;
|
|
||||||
this.selection = null;
|
|
||||||
this.sources.clear();
|
|
||||||
clearTimeout(this.timer);
|
|
||||||
this.timer = null;
|
|
||||||
return { ok: true };
|
|
||||||
}
|
|
||||||
|
|
||||||
async listSources(options = {}) {
|
|
||||||
this.bindWindow();
|
|
||||||
this.cancel();
|
|
||||||
if (!validOptions(options, ['types'])) return failure('invalid_capture_options', 'Invalid source chooser options.');
|
|
||||||
if (!this.capabilities.supported) return failure('capture_unsupported', 'This operating system has no supported display capture backend.');
|
|
||||||
const types = options.types ?? ['window', 'screen'];
|
|
||||||
if (!Array.isArray(types) || !types.length || types.length > 2 || types.some(t => t !== 'window' && t !== 'screen')) return failure('invalid_capture_options', 'Choose window and/or screen sources.');
|
|
||||||
if (this.capabilities.nativePicker || this.capabilities.portal) return { ok: true, capabilities: this.capabilities, sources: [{ id: 'native-picker', name: this.capabilities.portal ? 'Choose in the desktop portal' : 'Choose in the macOS system picker', kind: 'native', thumbnail: '', appIcon: '' }] };
|
|
||||||
const generation = this.generation;
|
|
||||||
try {
|
|
||||||
// No thumbnails: enumerating private windows must not capture their pixels.
|
|
||||||
// A preview starts only after selecting that source and clicking Preview.
|
|
||||||
const sources = await this.desktopCapturer.getSources({ types, thumbnailSize: { width: 0, height: 0 }, fetchWindowIcons: true });
|
|
||||||
if (generation !== this.generation) return failure('capture_cancelled', 'Source selection was cancelled.');
|
|
||||||
const result = sources.map(source => {
|
|
||||||
this.sources.set(source.id, { id: source.id, name: source.name });
|
|
||||||
return { id: source.id, name: source.name, kind: this.capabilities.portal ? 'portal' : source.id.startsWith('window:') ? 'window' : 'screen', thumbnail: '', appIcon: source.appIcon?.toDataURL() ?? '' };
|
|
||||||
});
|
|
||||||
return { ok: true, sources: result, capabilities: this.capabilities };
|
|
||||||
} catch (error) {
|
|
||||||
return failure(this.capabilities.portal ? 'portal_unavailable_or_cancelled' : 'source_enumeration_failed', this.capabilities.portal ? `The ScreenCast portal did not provide a source. Check PipeWire, the desktop portal backend, and chooser consent. ${error.message}` : `Unable to enumerate display sources: ${error.message}`);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
select(options = {}) {
|
|
||||||
if (!this.capabilities.supported) return failure('capture_unsupported', 'This operating system has no supported capture backend.');
|
|
||||||
this.bindWindow();
|
|
||||||
this.generation++;
|
|
||||||
this.selection = null;
|
|
||||||
clearTimeout(this.timer);
|
|
||||||
if (!validOptions(options, ['sourceId', 'audioMode', 'excludeSelf'])) return failure('invalid_capture_options', 'Invalid capture selection options.');
|
|
||||||
const { sourceId, audioMode = 'none', excludeSelf = true } = options;
|
|
||||||
if (typeof sourceId !== 'string' || sourceId.length > 2048) return failure('invalid_capture_source', 'Select a source from the chooser.');
|
|
||||||
if (typeof excludeSelf !== 'boolean') return failure('invalid_capture_options', 'Audio exclusion must be a boolean.');
|
|
||||||
const camera = sourceId.startsWith('camera:') && sourceId.length > 7;
|
|
||||||
const native = this.capabilities.nativePicker && sourceId === 'native-picker';
|
|
||||||
const portal = this.capabilities.portal && sourceId === 'native-picker';
|
|
||||||
const source = this.sources.get(sourceId);
|
|
||||||
if (!camera && !native && !portal && !source) return failure('capture_source_expired', 'Select the source again; stale or arbitrary source IDs cannot be captured.');
|
|
||||||
if (audioMode !== 'none' && audioMode !== 'system') return failure('application_audio_unavailable', this.capabilities.audio.applications.reason);
|
|
||||||
if (camera && audioMode !== 'none') return failure('camera_audio_unavailable', 'Camera preview does not capture microphone or system audio.');
|
|
||||||
if (audioMode === 'system' && !this.capabilities.audio.system.supported) return failure('system_audio_unavailable', this.capabilities.audio.system.reason);
|
|
||||||
if (audioMode === 'system' && excludeSelf && !this.capabilities.audio.excludeSelf.supported) return failure('audio_exclusion_unavailable', this.capabilities.audio.excludeSelf.reason);
|
|
||||||
const win = this.getWindow();
|
|
||||||
if (!win || win.isDestroyed() || !this.trustedFrame(win.webContents.mainFrame)) return failure('forbidden', 'Capture is restricted to the application top frame.');
|
|
||||||
const expiresAt = this.now() + 15000;
|
|
||||||
// Camera device IDs are opaque renderer-origin IDs. Electron's permission
|
|
||||||
// request supplies mediaTypes, not deviceId; exact binding is enforced by
|
|
||||||
// the renderer's observed enumeration + exact getUserMedia constraint.
|
|
||||||
this.selection = { source, sourceId, native, portal, camera, audioMode, excludeSelf, expiresAt, frame: win.webContents.mainFrame, permissionUsed: false };
|
|
||||||
let session;
|
|
||||||
try { session = this.onSelected(this.selection); } catch (error) { this.cancel(); return failure('capture_authorization_failed', error.message); }
|
|
||||||
this.timer = setTimeout(() => this.cancel(), 15000);
|
|
||||||
this.timer.unref?.();
|
|
||||||
return { ok: true, expiresAt, audio: audioMode === 'system', excludeSelf: audioMode === 'system' && excludeSelf, camera, appAudioSessionId: session?.appAudioSessionId };
|
|
||||||
}
|
|
||||||
|
|
||||||
permissionRequestAllowed(webContents, permission, details) {
|
|
||||||
const selection = this.selection;
|
|
||||||
const win = this.getWindow();
|
|
||||||
if (!selection || selection.permissionUsed || selection.expiresAt < this.now() || !win || win.isDestroyed() || webContents !== win.webContents || !this.trustedFrame(selection.frame)) return false;
|
|
||||||
if (permission !== 'media' || !details || normalizeOrigin(details.requestingUrl) !== this.appOrigin || details.isMainFrame !== true) return false;
|
|
||||||
const types = details.mediaTypes;
|
|
||||||
if (!Array.isArray(types) || (selection.camera ? types.length !== 1 || types[0] !== 'video' : types.length !== 0)) return false;
|
|
||||||
selection.permissionUsed = true;
|
|
||||||
if (selection.camera || selection.native) {
|
|
||||||
clearTimeout(this.timer);
|
|
||||||
this.timer = null;
|
|
||||||
try { this.onCaptureGranted(selection); } catch { this.cancel(); return false; }
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
install(session) {
|
|
||||||
session.setDisplayMediaRequestHandler(async (request, callback) => {
|
|
||||||
const selection = this.selection;
|
|
||||||
const allow = selection && !selection.camera && selection.permissionUsed && selection.expiresAt >= this.now() && this.trustedFrame(request.frame) && request.frame === selection.frame && normalizeOrigin(request.securityOrigin) === this.appOrigin && request.userGesture && request.videoRequested && request.audioRequested === (selection.audioMode === 'system');
|
|
||||||
// Consume before any await. A portal is opened inside this gesture-bound
|
|
||||||
// display request, not while enumerating cards or after user activation expires.
|
|
||||||
this.cancel();
|
|
||||||
if (!allow || selection.native) { callback(null); return; }
|
|
||||||
const generation = this.generation;
|
|
||||||
try {
|
|
||||||
let source = selection.source;
|
|
||||||
if (selection.portal) {
|
|
||||||
const sources = await this.desktopCapturer.getSources({ types: ['window', 'screen'], thumbnailSize: { width: 0, height: 0 }, fetchWindowIcons: false });
|
|
||||||
if (sources.length !== 1 || generation !== this.generation || !this.trustedFrame(request.frame)) { callback(null); return; }
|
|
||||||
source = { id: sources[0].id, name: sources[0].name };
|
|
||||||
}
|
|
||||||
this.onCaptureGranted(selection);
|
|
||||||
callback({ video: source, ...(selection.audioMode === 'system' ? { audio: 'loopback' } : {}) });
|
|
||||||
} catch { callback(null); }
|
|
||||||
}, { useSystemPicker: this.capabilities.nativePicker });
|
|
||||||
}
|
|
||||||
|
|
||||||
registerIpc(ipcMain, trustedSender) {
|
|
||||||
const handle = (channel, fn) => ipcMain.handle(channel, (event, options) => trustedSender(event) && this.trustedFrame(event.senderFrame) ? fn(options, event) : failure('forbidden', 'Capture is restricted to the application top frame.'));
|
|
||||||
handle('capture:capabilities', () => this.capabilities);
|
|
||||||
handle('capture:sources', options => this.listSources(options));
|
|
||||||
handle('capture:select', async (options, event) => {
|
|
||||||
// Read Chromium's real activation state, never execute with userGesture=true.
|
|
||||||
// Camera getUserMedia does not itself require a gesture, so this check is
|
|
||||||
// required in addition to the display handler's request.userGesture gate.
|
|
||||||
const generation = this.generation;
|
|
||||||
try {
|
|
||||||
const active = await event.sender.executeJavaScriptInIsolatedWorld(1001, [{ code: 'navigator.userActivation.isActive' }]);
|
|
||||||
if (generation !== this.generation) return failure('capture_cancelled', 'Capture selection was cancelled.');
|
|
||||||
if (active !== true || !this.trustedFrame(event.senderFrame)) return failure('capture_gesture_required', 'Click Preview to authorize capture.');
|
|
||||||
return this.select(options);
|
|
||||||
} catch { return failure('capture_cancelled', 'The capture frame closed or navigated.'); }
|
|
||||||
});
|
|
||||||
handle('capture:cancel', () => this.cancel());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = { CaptureController, captureCapabilities };
|
|
||||||
@@ -1,395 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
// Account-free local chat history, external-link opening and the unread badge.
|
|
||||||
// The official client keeps legacy server text chat per identity × server × conversation and loads
|
|
||||||
// it in pages (`saveChatMessage` / `getChatMessages`, installed main.js col 2147052 / 2139200).
|
|
||||||
// The renderer never names a path: it sends a validated scope; the directory is derived from hashes.
|
|
||||||
|
|
||||||
const fs = require('node:fs');
|
|
||||||
const path = require('node:path');
|
|
||||||
const crypto = require('node:crypto');
|
|
||||||
|
|
||||||
const STORE_DIR = 'v1';
|
|
||||||
const STORE_VERSION = 1;
|
|
||||||
const CHUNK_LINES = 128;
|
|
||||||
const MAX_PAGE = 200;
|
|
||||||
const MAX_TEXT_LENGTH = 32768;
|
|
||||||
const MAX_NAME_LENGTH = 128;
|
|
||||||
const MAX_LIST = 200;
|
|
||||||
const CONTROL = /[\u0000-\u001f\u007f]/;
|
|
||||||
const UID = /^[A-Za-z0-9+/=_-]{1,128}$/;
|
|
||||||
const EXTERNAL_PROTOCOLS = new Set(['http:', 'https:', 'mailto:']);
|
|
||||||
|
|
||||||
class ValidationError extends Error {
|
|
||||||
constructor(message) {
|
|
||||||
super(message);
|
|
||||||
this.code = 'bad_request';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function validBase(base) {
|
|
||||||
if (!base || typeof base !== 'object') throw new ValidationError('scope must be an object');
|
|
||||||
const { identity, server } = base;
|
|
||||||
if (typeof identity !== 'string' || !UID.test(identity)) throw new ValidationError('identity must be a client uid');
|
|
||||||
if (typeof server !== 'string' || server.length < 1 || server.length > 256 || CONTROL.test(server)) throw new ValidationError('server must be a server uid');
|
|
||||||
return { identity, server };
|
|
||||||
}
|
|
||||||
|
|
||||||
function validScope(scope) {
|
|
||||||
const base = validBase(scope);
|
|
||||||
const { kind, key } = scope;
|
|
||||||
if (kind === 'channel') {
|
|
||||||
if (typeof key !== 'string' || !/^[1-9][0-9]{0,9}$/.test(key)) throw new ValidationError('channel key must be a channel id');
|
|
||||||
} else if (kind === 'server') {
|
|
||||||
if (key !== 'server') throw new ValidationError('server key must be "server"');
|
|
||||||
} else if (kind === 'client') {
|
|
||||||
if (typeof key !== 'string' || !UID.test(key)) throw new ValidationError('client key must be a client uid');
|
|
||||||
} else {
|
|
||||||
throw new ValidationError('kind must be channel, server or client');
|
|
||||||
}
|
|
||||||
return { ...base, kind, key };
|
|
||||||
}
|
|
||||||
|
|
||||||
function validName(value, field) {
|
|
||||||
if (typeof value !== 'string' || value.length > MAX_NAME_LENGTH) throw new ValidationError(`${field} must be a string up to ${MAX_NAME_LENGTH} characters`);
|
|
||||||
return value.replace(/[\u0000-\u001f\u007f]/g, ' ');
|
|
||||||
}
|
|
||||||
|
|
||||||
function validRecord(record) {
|
|
||||||
if (!record || typeof record !== 'object') throw new ValidationError('record must be an object');
|
|
||||||
const { time, type, from_uid: fromUid, from_name: fromName, own, text } = record;
|
|
||||||
if (!Number.isSafeInteger(time) || time <= 0 || time > 8_640_000_000_000_000) throw new ValidationError('time must be valid epoch milliseconds');
|
|
||||||
if (type !== 'text' && type !== 'poke') throw new ValidationError('type must be text or poke');
|
|
||||||
if (fromUid !== null && (typeof fromUid !== 'string' || !UID.test(fromUid))) throw new ValidationError('from_uid must be a uid or null');
|
|
||||||
if (typeof own !== 'boolean') throw new ValidationError('own must be boolean');
|
|
||||||
if (typeof text !== 'string' || text.length > MAX_TEXT_LENGTH) throw new ValidationError(`text must be a string up to ${MAX_TEXT_LENGTH} characters`);
|
|
||||||
return { t: time, y: type, u: fromUid, n: validName(fromName, 'from_name'), o: own, m: text };
|
|
||||||
}
|
|
||||||
|
|
||||||
function hash(value) {
|
|
||||||
return crypto.createHash('sha256').update(value, 'utf8').digest('hex').slice(0, 32);
|
|
||||||
}
|
|
||||||
|
|
||||||
function chunkName(index) {
|
|
||||||
return `${String(index).padStart(6, '0')}.jsonl`;
|
|
||||||
}
|
|
||||||
|
|
||||||
function decodeLine(line) {
|
|
||||||
try {
|
|
||||||
const r = JSON.parse(line);
|
|
||||||
if (!r || typeof r !== 'object') return null;
|
|
||||||
const record = { time: r.t, type: r.y, from_uid: r.u, from_name: r.n, own: r.o, text: r.m };
|
|
||||||
validRecord(record);
|
|
||||||
return record;
|
|
||||||
} catch {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async function writeAtomic(file, data) {
|
|
||||||
const tmp = `${file}.${process.pid}.${crypto.randomBytes(4).toString('hex')}.tmp`;
|
|
||||||
const fh = await fs.promises.open(tmp, 'w', 0o600);
|
|
||||||
try {
|
|
||||||
await fh.writeFile(data);
|
|
||||||
await fh.sync();
|
|
||||||
} finally {
|
|
||||||
await fh.close();
|
|
||||||
}
|
|
||||||
await fs.promises.rename(tmp, file);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* One directory per conversation: `meta.json` plus append-only chunk files of CHUNK_LINES JSON lines.
|
|
||||||
* A message's numeric index is its line position, so page reads touch at most two chunks.
|
|
||||||
*/
|
|
||||||
class ChatHistoryStore {
|
|
||||||
constructor(baseDir) {
|
|
||||||
this.root = path.join(baseDir, STORE_DIR);
|
|
||||||
this.conversations = new Map();
|
|
||||||
this.opening = new Map();
|
|
||||||
}
|
|
||||||
|
|
||||||
serverDir(base) {
|
|
||||||
return path.join(this.root, hash(base.identity), hash(base.server));
|
|
||||||
}
|
|
||||||
|
|
||||||
conversationDir(scope) {
|
|
||||||
return path.join(this.serverDir(scope), `${scope.kind}-${hash(scope.key)}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Opens (and repairs) a conversation once per process; later calls reuse the cached counters. */
|
|
||||||
async open(scope, create) {
|
|
||||||
const dir = this.conversationDir(scope);
|
|
||||||
let conv = this.conversations.get(dir);
|
|
||||||
if (conv) return conv;
|
|
||||||
const pending = this.opening.get(dir);
|
|
||||||
if (pending) {
|
|
||||||
conv = await pending;
|
|
||||||
return conv || (create ? this.open(scope, true) : null);
|
|
||||||
}
|
|
||||||
const operation = this.openConversation(scope, create);
|
|
||||||
this.opening.set(dir, operation);
|
|
||||||
try { return await operation; }
|
|
||||||
finally { this.opening.delete(dir); }
|
|
||||||
}
|
|
||||||
|
|
||||||
async openConversation(scope, create) {
|
|
||||||
const dir = this.conversationDir(scope);
|
|
||||||
let meta = null;
|
|
||||||
try {
|
|
||||||
meta = JSON.parse(await fs.promises.readFile(path.join(dir, 'meta.json'), 'utf8'));
|
|
||||||
} catch (err) {
|
|
||||||
if (err.code !== 'ENOENT' && !(err instanceof SyntaxError)) throw err;
|
|
||||||
}
|
|
||||||
if (meta && meta.version !== STORE_VERSION) {
|
|
||||||
const e = new Error(`Chat history format ${meta.version} is not supported by this version`);
|
|
||||||
e.code = 'unsupported_version';
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
if (meta && (meta.identity !== scope.identity || meta.server !== scope.server || meta.kind !== scope.kind || meta.key !== scope.key)) {
|
|
||||||
// A hash collision or a hand-edited file: never mix two conversations.
|
|
||||||
const e = new Error('Chat history directory belongs to another conversation');
|
|
||||||
e.code = 'conflict';
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
if (!meta && !create) {
|
|
||||||
try {
|
|
||||||
await fs.promises.access(dir);
|
|
||||||
} catch {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const loaded = Boolean(meta);
|
|
||||||
if (!meta) meta = { version: STORE_VERSION, identity: scope.identity, server: scope.server, kind: scope.kind, key: scope.key, label: '', open: false, created: Date.now() };
|
|
||||||
const conv = { dir, meta, chunks: 0, lastLines: 0, lastTime: 0, queue: Promise.resolve(), metaWritten: loaded };
|
|
||||||
await this.scan(conv);
|
|
||||||
this.conversations.set(dir, conv);
|
|
||||||
return conv;
|
|
||||||
}
|
|
||||||
|
|
||||||
async scan(conv) {
|
|
||||||
let names;
|
|
||||||
try {
|
|
||||||
names = await fs.promises.readdir(conv.dir);
|
|
||||||
} catch (err) {
|
|
||||||
if (err.code === 'ENOENT') return;
|
|
||||||
throw err;
|
|
||||||
}
|
|
||||||
const indices = names.map((n) => /^(\d{6})\.jsonl$/.exec(n)).filter(Boolean).map((m) => Number(m[1])).sort((a, b) => a - b);
|
|
||||||
if (indices.length === 0) return;
|
|
||||||
const last = indices[indices.length - 1];
|
|
||||||
const file = path.join(conv.dir, chunkName(last));
|
|
||||||
const buf = await fs.promises.readFile(file);
|
|
||||||
// An interrupted append leaves a line without its newline; cut it so the next append starts clean.
|
|
||||||
const end = buf.lastIndexOf(0x0a) + 1;
|
|
||||||
if (end !== buf.length) await fs.promises.truncate(file, end);
|
|
||||||
const text = buf.subarray(0, end).toString('utf8');
|
|
||||||
const lines = end === 0 ? 0 : text.split('\n').length - 1;
|
|
||||||
conv.chunks = last + 1;
|
|
||||||
conv.lastLines = lines;
|
|
||||||
const lastLine = text.slice(text.lastIndexOf('\n', text.length - 2) + 1, -1);
|
|
||||||
conv.lastTime = (lastLine && decodeLine(lastLine)?.time) || 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
total(conv) {
|
|
||||||
return conv.chunks === 0 ? 0 : (conv.chunks - 1) * CHUNK_LINES + conv.lastLines;
|
|
||||||
}
|
|
||||||
|
|
||||||
async writeMeta(conv) {
|
|
||||||
await fs.promises.mkdir(conv.dir, { recursive: true, mode: 0o700 });
|
|
||||||
await writeAtomic(path.join(conv.dir, 'meta.json'), JSON.stringify(conv.meta));
|
|
||||||
conv.metaWritten = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
serialize(conv, task) {
|
|
||||||
const run = conv.queue.then(task, task);
|
|
||||||
conv.queue = run.catch(() => {});
|
|
||||||
return run;
|
|
||||||
}
|
|
||||||
|
|
||||||
async append(rawScope, rawRecord, rawLabel) {
|
|
||||||
const scope = validScope(rawScope);
|
|
||||||
const line = `${JSON.stringify(validRecord(rawRecord))}\n`;
|
|
||||||
const label = rawLabel == null ? null : validName(rawLabel, 'label');
|
|
||||||
const conv = await this.open(scope, true);
|
|
||||||
return this.serialize(conv, async () => {
|
|
||||||
const rollover = conv.chunks === 0 || conv.lastLines >= CHUNK_LINES;
|
|
||||||
const chunk = rollover ? conv.chunks : conv.chunks - 1;
|
|
||||||
if (!conv.metaWritten || (label !== null && conv.meta.label !== label)) {
|
|
||||||
if (label !== null) conv.meta.label = label;
|
|
||||||
await this.writeMeta(conv);
|
|
||||||
}
|
|
||||||
const fh = await fs.promises.open(path.join(conv.dir, chunkName(chunk)), 'a', 0o600);
|
|
||||||
try {
|
|
||||||
await fh.write(line);
|
|
||||||
await fh.datasync();
|
|
||||||
} finally {
|
|
||||||
await fh.close();
|
|
||||||
}
|
|
||||||
if (rollover) {
|
|
||||||
conv.chunks += 1;
|
|
||||||
conv.lastLines = 0;
|
|
||||||
}
|
|
||||||
conv.lastLines += 1;
|
|
||||||
conv.lastTime = rawRecord.time;
|
|
||||||
return { index: this.total(conv) - 1, total: this.total(conv) };
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
async page(rawScope, before, count) {
|
|
||||||
const scope = validScope(rawScope);
|
|
||||||
if (!Number.isSafeInteger(before) || before < -1) throw new ValidationError('before must be -1 or an index');
|
|
||||||
if (!Number.isSafeInteger(count) || count < 1 || count > MAX_PAGE) throw new ValidationError(`count must be 1..${MAX_PAGE}`);
|
|
||||||
const conv = await this.open(scope, false);
|
|
||||||
if (!conv) return { total: 0, messages: [] };
|
|
||||||
return this.serialize(conv, async () => {
|
|
||||||
const total = this.total(conv);
|
|
||||||
const end = before === -1 ? total : Math.min(before, total);
|
|
||||||
const start = Math.max(0, end - count);
|
|
||||||
const messages = [];
|
|
||||||
for (let chunk = Math.floor(start / CHUNK_LINES); start < end && chunk <= Math.floor((end - 1) / CHUNK_LINES); chunk += 1) {
|
|
||||||
let text;
|
|
||||||
try {
|
|
||||||
text = await fs.promises.readFile(path.join(conv.dir, chunkName(chunk)), 'utf8');
|
|
||||||
} catch (err) {
|
|
||||||
if (err.code === 'ENOENT') continue;
|
|
||||||
throw err;
|
|
||||||
}
|
|
||||||
const lines = text.split('\n');
|
|
||||||
for (let i = 0; i < lines.length - 1; i += 1) {
|
|
||||||
const index = chunk * CHUNK_LINES + i;
|
|
||||||
if (index < start || index >= end) continue;
|
|
||||||
const message = decodeLine(lines[i]);
|
|
||||||
// A damaged line keeps its index (so paging stays stable) but is not shown.
|
|
||||||
if (message) messages.push({ index, ...message });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return { total, start, messages };
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
async setOpen(rawScope, open, rawLabel) {
|
|
||||||
const scope = validScope(rawScope);
|
|
||||||
if (typeof open !== 'boolean') throw new ValidationError('open must be boolean');
|
|
||||||
const label = rawLabel == null ? null : validName(rawLabel, 'label');
|
|
||||||
const conv = await this.open(scope, open);
|
|
||||||
if (!conv) return { changed: false };
|
|
||||||
return this.serialize(conv, async () => {
|
|
||||||
const changed = conv.meta.open !== open || (label !== null && conv.meta.label !== label);
|
|
||||||
conv.meta.open = open;
|
|
||||||
if (label !== null) conv.meta.label = label;
|
|
||||||
if (changed || !conv.metaWritten) await this.writeMeta(conv);
|
|
||||||
return { changed };
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
async list(rawBase) {
|
|
||||||
const base = validBase(rawBase);
|
|
||||||
let names;
|
|
||||||
try {
|
|
||||||
names = await fs.promises.readdir(this.serverDir(base));
|
|
||||||
} catch (err) {
|
|
||||||
if (err.code === 'ENOENT') return { conversations: [] };
|
|
||||||
throw err;
|
|
||||||
}
|
|
||||||
const out = [];
|
|
||||||
for (const name of names) {
|
|
||||||
if (!/^(channel|server|client)-[0-9a-f]{32}$/.test(name)) continue;
|
|
||||||
let meta;
|
|
||||||
try {
|
|
||||||
meta = JSON.parse(await fs.promises.readFile(path.join(this.serverDir(base), name, 'meta.json'), 'utf8'));
|
|
||||||
} catch {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (!meta || meta.version !== STORE_VERSION || meta.identity !== base.identity || meta.server !== base.server) continue;
|
|
||||||
let conv;
|
|
||||||
try {
|
|
||||||
conv = await this.open(validScope({ ...base, kind: meta.kind, key: meta.key }), false);
|
|
||||||
} catch {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (!conv) continue;
|
|
||||||
const scope = conv.meta;
|
|
||||||
out.push({ kind: scope.kind, key: scope.key, label: typeof conv.meta.label === 'string' ? conv.meta.label : '', open: conv.meta.open === true, updated: conv.lastTime || Number(conv.meta.created) || 0, total: this.total(conv) });
|
|
||||||
}
|
|
||||||
out.sort((a, b) => b.updated - a.updated);
|
|
||||||
return { conversations: out.slice(0, MAX_LIST) };
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function validExternalUrl(url) {
|
|
||||||
if (typeof url !== 'string' || url.length === 0 || url.length > 2048 || CONTROL.test(url)) throw new ValidationError('url must be a string up to 2048 characters');
|
|
||||||
let parsed;
|
|
||||||
try {
|
|
||||||
parsed = new URL(url);
|
|
||||||
} catch {
|
|
||||||
throw new ValidationError('url is not absolute');
|
|
||||||
}
|
|
||||||
if (!EXTERNAL_PROTOCOLS.has(parsed.protocol)) throw new ValidationError('only http, https and mailto links can be opened');
|
|
||||||
if (parsed.protocol !== 'mailto:' && !parsed.hostname) throw new ValidationError('url has no host');
|
|
||||||
if (parsed.username || parsed.password) throw new ValidationError('url credentials are not allowed');
|
|
||||||
return parsed.href;
|
|
||||||
}
|
|
||||||
|
|
||||||
const BADGE_PREFIX = 'data:image/png;base64,';
|
|
||||||
|
|
||||||
function wrap(fn) {
|
|
||||||
return async (...args) => {
|
|
||||||
try {
|
|
||||||
return { ok: true, ...(await fn(...args)) };
|
|
||||||
} catch (err) {
|
|
||||||
return { ok: false, error: { code: err.code || 'io', message: err.message } };
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Registers chat IPC. `testOffscreen` runs never reach the OS shell or the taskbar: the requests are
|
|
||||||
* recorded on `globalThis` for the hidden smoke harness instead.
|
|
||||||
*/
|
|
||||||
function registerChatIpc(ipcMain, { trustedSender, getWindow, baseDir, testOffscreen, shell, nativeImage, app }) {
|
|
||||||
const store = new ChatHistoryStore(baseDir);
|
|
||||||
const guarded = (channel, fn) => {
|
|
||||||
const run = wrap(fn);
|
|
||||||
ipcMain.handle(channel, (event, ...args) => (trustedSender(event) ? run(...args) : { ok: false, error: { code: 'forbidden', message: 'forbidden' } }));
|
|
||||||
};
|
|
||||||
guarded('chat-history:append', (scope, record, label) => store.append(scope, record, label));
|
|
||||||
guarded('chat-history:page', (scope, before, count) => store.page(scope, before, count));
|
|
||||||
guarded('chat-history:list', (base) => store.list(base));
|
|
||||||
guarded('chat-history:set-open', (scope, open, label) => store.setOpen(scope, open, label));
|
|
||||||
guarded('link:open-external', async (url) => {
|
|
||||||
const href = validExternalUrl(url);
|
|
||||||
if (testOffscreen) {
|
|
||||||
(globalThis.__teamspeachOpenedExternal ??= []).push(href);
|
|
||||||
return { suppressed: true };
|
|
||||||
}
|
|
||||||
await shell.openExternal(href);
|
|
||||||
return {};
|
|
||||||
});
|
|
||||||
guarded('app:unread-badge', async (count, png) => {
|
|
||||||
if (!Number.isSafeInteger(count) || count < 0 || count > 1_000_000) throw new ValidationError('count must be a non-negative integer');
|
|
||||||
if (testOffscreen) {
|
|
||||||
globalThis.__teamspeachUnreadBadge = { count, png: typeof png === 'string' && png.startsWith(BADGE_PREFIX) };
|
|
||||||
return { suppressed: true, supported: false };
|
|
||||||
}
|
|
||||||
if (process.platform === 'win32') {
|
|
||||||
const win = getWindow();
|
|
||||||
if (!win || win.isDestroyed()) return { supported: false };
|
|
||||||
if (count === 0) {
|
|
||||||
win.setOverlayIcon(null, '');
|
|
||||||
return { supported: true };
|
|
||||||
}
|
|
||||||
if (typeof png !== 'string' || !png.startsWith(BADGE_PREFIX) || png.length > 32768) throw new ValidationError('badge must be a small PNG data URL');
|
|
||||||
const image = nativeImage.createFromDataURL(png);
|
|
||||||
const size = image.getSize();
|
|
||||||
if (image.isEmpty() || size.width > 64 || size.height > 64) throw new ValidationError('badge image must be at most 64×64');
|
|
||||||
win.setOverlayIcon(image, `${count} unread`);
|
|
||||||
return { supported: true };
|
|
||||||
}
|
|
||||||
if (process.platform === 'darwin' || process.platform === 'linux') return { supported: app.setBadgeCount(count) };
|
|
||||||
return { supported: false };
|
|
||||||
});
|
|
||||||
return store;
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = { registerChatIpc, ChatHistoryStore, validScope, validRecord, validExternalUrl, CHUNK_LINES, MAX_PAGE };
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Chat preferences that follow the official TS6 Settings > Chats page (client_ui/main.js settings component
|
|
||||||
* near offset 4873300; defaults from workflowSettings class `Xe` and appearanceSettings class `qe`).
|
|
||||||
*
|
|
||||||
* Official key → TeamsPeach key default
|
|
||||||
* appearanceSettings.chat_input_toolbar_visibility → chatToolbarVisibility 'always-visible'
|
|
||||||
* appearanceSettings.chat_mermaid_autoload_mode → chatMermaidAutoload 'only-simple'
|
|
||||||
* workflowSettings.openIncomingChats → chatOpenIncoming true
|
|
||||||
* appearanceSettings.chat_show_system_messages → chatShowModerationEvents true
|
|
||||||
* workflowSettings.use24hrTime → chatUse24hTime true
|
|
||||||
* workflowSettings.autoDownloadImages → autoDownloadImages false
|
|
||||||
* chat-server ignore list (per myTeamSpeak chat connection) → chatIgnoredUsers [] (local, keyed by client UID)
|
|
||||||
*
|
|
||||||
* Not modelled because TeamsPeach has no backing feature: useRichTextEditor (the composer is a plain
|
|
||||||
* textarea), autoAcceptIncomingDirectChats (TS6-server decentral chat invitations), useChatsHistory and
|
|
||||||
* sort_contacts_alphabetically / show_offline_contacts / group_offline_contacts (myTeamSpeak contacts and
|
|
||||||
* group chats).
|
|
||||||
*/
|
|
||||||
|
|
||||||
const MAX_IGNORED_USERS = 1000;
|
|
||||||
const MAX_NAME_LENGTH = 128;
|
|
||||||
// TeamSpeak client UIDs are base64 SHA-1 digests; ServerQuery clients use short ASCII ids such as "serveradmin".
|
|
||||||
const UID = /^[A-Za-z0-9+/]{1,126}={0,2}$/;
|
|
||||||
const CONTROL = /[\u0000-\u001f\u007f]/;
|
|
||||||
|
|
||||||
const isBool = (v) => typeof v === 'boolean';
|
|
||||||
const isPlainObject = (v) => v !== null && typeof v === 'object' && !Array.isArray(v) && Object.getPrototypeOf(v) === Object.prototype;
|
|
||||||
|
|
||||||
function validUid(uid) {
|
|
||||||
return typeof uid === 'string' && uid.length <= 128 && UID.test(uid);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** [{ uid, name }]: unique UIDs; `name` is the nickname seen when the user was ignored (display only). */
|
|
||||||
function validIgnoredUsers(list) {
|
|
||||||
if (!Array.isArray(list) || list.length > MAX_IGNORED_USERS) return false;
|
|
||||||
const seen = new Set();
|
|
||||||
for (const entry of list) {
|
|
||||||
if (!isPlainObject(entry)) return false;
|
|
||||||
const keys = Object.keys(entry);
|
|
||||||
if (keys.length !== 2 || !keys.includes('uid') || !keys.includes('name')) return false;
|
|
||||||
if (!validUid(entry.uid) || seen.has(entry.uid)) return false;
|
|
||||||
if (typeof entry.name !== 'string' || entry.name.length > MAX_NAME_LENGTH || CONTROL.test(entry.name)) return false;
|
|
||||||
seen.add(entry.uid);
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
const CHAT_SCHEMA = {
|
|
||||||
chatToolbarVisibility: { default: 'always-visible', check: (v) => v === 'inactive' || v === 'dynamic' || v === 'always-visible' },
|
|
||||||
chatMermaidAutoload: { default: 'only-simple', check: (v) => v === 'never' || v === 'only-simple' },
|
|
||||||
chatOpenIncoming: { default: true, check: isBool },
|
|
||||||
chatShowModerationEvents: { default: true, check: isBool },
|
|
||||||
chatUse24hTime: { default: true, check: isBool },
|
|
||||||
autoDownloadImages: { default: false, check: isBool },
|
|
||||||
chatIgnoredUsers: { default: [], check: validIgnoredUsers },
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = { CHAT_SCHEMA, MAX_IGNORED_USERS, validUid };
|
|
||||||
@@ -1,113 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const fs = require('node:fs');
|
|
||||||
const path = require('node:path');
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Persisted local per-user volume modifiers (official TS6 `setClientVolumeModifier(sc, clid, dB, persist)`
|
|
||||||
* with persist=true when the fader is released or Reset is chosen). TS6 stores them natively; the key it
|
|
||||||
* uses is not visible. TeamsPeach keys them by the client's unique identity (base64 UID), so a person keeps
|
|
||||||
* their volume on every server and after reconnecting; numeric client ids are never used as keys.
|
|
||||||
* Mute is not persisted (session only), and 0 dB entries are removed.
|
|
||||||
*
|
|
||||||
* File `<userData>/client-volumes.json`: { schema, volumes: { <uid>: { db, updated } } }, at most
|
|
||||||
* MAX_ENTRIES (the least recently updated entry is dropped first). Invalid entries are dropped on load;
|
|
||||||
* writes are atomic (tmp + rename) and leave memory unchanged when they fail.
|
|
||||||
*
|
|
||||||
* Every core gets the whole map (`set_local_volumes replace:true`) whenever it becomes ready, and each
|
|
||||||
* change as an upsert, so all simultaneous connections play a person at the same modifier.
|
|
||||||
*/
|
|
||||||
|
|
||||||
const SCHEMA = 'teamspeach-client-volumes/1';
|
|
||||||
const MAX_ENTRIES = 4096;
|
|
||||||
const UID = /^[A-Za-z0-9+/]{1,126}={0,2}$/;
|
|
||||||
|
|
||||||
function validUid(uid) {
|
|
||||||
return typeof uid === 'string' && uid.length <= 128 && UID.test(uid);
|
|
||||||
}
|
|
||||||
|
|
||||||
function validDb(db) {
|
|
||||||
return typeof db === 'number' && Number.isFinite(db) && db >= -200 && db <= 10 && Number.isInteger(db * 2);
|
|
||||||
}
|
|
||||||
|
|
||||||
class ClientVolumes {
|
|
||||||
constructor(file) {
|
|
||||||
this.file = file;
|
|
||||||
/** @type {Map<string, {db: number, updated: number}>} */
|
|
||||||
this.volumes = new Map();
|
|
||||||
let raw = null;
|
|
||||||
try {
|
|
||||||
raw = JSON.parse(fs.readFileSync(file, 'utf8'));
|
|
||||||
} catch {
|
|
||||||
return; // first run or unreadable: empty
|
|
||||||
}
|
|
||||||
if (!raw || raw.schema !== SCHEMA || !raw.volumes || typeof raw.volumes !== 'object') return;
|
|
||||||
const entries = Object.entries(raw.volumes)
|
|
||||||
.filter(([uid, e]) => validUid(uid) && e && validDb(e.db) && e.db !== 0 && Number.isSafeInteger(e.updated) && e.updated >= 0)
|
|
||||||
.sort((a, b) => b[1].updated - a[1].updated)
|
|
||||||
.slice(0, MAX_ENTRIES);
|
|
||||||
for (const [uid, e] of entries) this.volumes.set(uid, { db: e.db, updated: e.updated });
|
|
||||||
}
|
|
||||||
|
|
||||||
get(uid) {
|
|
||||||
return this.volumes.get(uid)?.db ?? 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** [{uid, db}] for `set_local_volumes`. */
|
|
||||||
list() {
|
|
||||||
return Array.from(this.volumes, ([uid, e]) => ({ uid, db: e.db }));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Stores (or with 0 dB removes) one modifier. Throws on invalid input or a failed write. */
|
|
||||||
set(uid, db, now = Date.now()) {
|
|
||||||
if (!validUid(uid)) throw new Error('client volume: invalid uid');
|
|
||||||
if (!validDb(db)) throw new Error('client volume: db must be -200..10 in 0.5 steps');
|
|
||||||
const next = new Map(this.volumes);
|
|
||||||
next.delete(uid);
|
|
||||||
if (db !== 0) next.set(uid, { db, updated: now });
|
|
||||||
while (next.size > MAX_ENTRIES) {
|
|
||||||
let oldest = null;
|
|
||||||
for (const [k, e] of next) if (oldest === null || e.updated < next.get(oldest).updated) oldest = k;
|
|
||||||
next.delete(oldest);
|
|
||||||
}
|
|
||||||
const body = { schema: SCHEMA, volumes: Object.fromEntries(next) };
|
|
||||||
fs.mkdirSync(path.dirname(this.file), { recursive: true });
|
|
||||||
const tmp = `${this.file}.tmp`;
|
|
||||||
fs.writeFileSync(tmp, JSON.stringify(body));
|
|
||||||
fs.renameSync(tmp, this.file);
|
|
||||||
this.volumes = next;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {object} o
|
|
||||||
* @param {Electron.IpcMain} o.ipcMain
|
|
||||||
* @param {(event) => boolean} o.trustedSender
|
|
||||||
* @param {import('./connections').ConnectionManager} o.connections
|
|
||||||
* @param {string} o.file
|
|
||||||
* @param {(level: string, msg: string) => void} [o.log]
|
|
||||||
*/
|
|
||||||
function registerClientVolumesIpc({ ipcMain, trustedSender, connections, file, log = () => {} }) {
|
|
||||||
const store = new ClientVolumes(file);
|
|
||||||
const push = (id, args) => connections.request(id, 'set_local_volumes', args).then((r) => {
|
|
||||||
if (r && r.ok === false && r.error?.code !== 'connection_closed') log('warn', `client volumes: ${id} ${r.error?.code} ${r.error?.message}`);
|
|
||||||
}, (err) => log('warn', `client volumes: ${id} ${err?.message ?? err}`));
|
|
||||||
connections.on('status', (id, status) => {
|
|
||||||
if (status?.status === 'ready') void push(id, { replace: true, volumes: store.list() });
|
|
||||||
});
|
|
||||||
ipcMain.handle('client-volumes:set', (event, uid, db) => {
|
|
||||||
if (!trustedSender(event)) return { ok: false, error: { code: 'forbidden', message: 'forbidden' } };
|
|
||||||
try {
|
|
||||||
store.set(uid, db);
|
|
||||||
} catch (err) {
|
|
||||||
return { ok: false, error: { code: 'bad_request', message: String(err?.message ?? err) } };
|
|
||||||
}
|
|
||||||
for (const c of connections.list()) {
|
|
||||||
if (c.core?.status === 'ready') void push(c.id, { replace: false, volumes: [{ uid, db }] });
|
|
||||||
}
|
|
||||||
return { ok: true, db };
|
|
||||||
});
|
|
||||||
return store;
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = { ClientVolumes, registerClientVolumesIpc, MAX_ENTRIES, SCHEMA };
|
|
||||||
@@ -1,233 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const path = require('node:path');
|
|
||||||
const { EventEmitter } = require('node:events');
|
|
||||||
const { CoreProcess } = require('./core-process');
|
|
||||||
|
|
||||||
/** Official TS6 keeps one server connection handler per tab; this bounds the number of core processes. */
|
|
||||||
const MAX_CONNECTIONS = 8;
|
|
||||||
const ID_PATTERN = /^c[1-9][0-9]{0,8}$/;
|
|
||||||
|
|
||||||
const closedError = (id) => ({ ok: false, error: { code: 'connection_closed', message: `Server connection ${id} no longer exists` } });
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Simultaneous server connections: one `teamspeach-core` process per connection, all sharing the
|
|
||||||
* profile (identity + nickname) in `dataDir`. Each core locks the profile shared and its own
|
|
||||||
* `<dataDir>/connections/<slot>` exclusively; the private key is never copied (core/src/main.rs,
|
|
||||||
* core/src/profile.rs serialize identity writes across cores).
|
|
||||||
*
|
|
||||||
* Connection ids (`c1`, `c2`, …) are never reused within a run, so a request, answer or event for a
|
|
||||||
* closed connection can never be attributed to a newer one. Slots (directories, log files) are reused.
|
|
||||||
*
|
|
||||||
* Captured microphone audio goes only to the input connection chosen by the renderer (official
|
|
||||||
* `FindAudioInputServerConnectionHandler`: the connection whose own client has the input hardware);
|
|
||||||
* changing it ends any talk spurt on the previous core first.
|
|
||||||
*
|
|
||||||
* Emits 'event' (id, coreEvent), 'status' (id, status), 'changed' (list).
|
|
||||||
*/
|
|
||||||
class ConnectionManager extends EventEmitter {
|
|
||||||
constructor({ resolveBinary, dataDir, logsDir, createCore = (options) => new CoreProcess(options), maxConnections = MAX_CONNECTIONS }) {
|
|
||||||
super();
|
|
||||||
this.resolveBinary = resolveBinary;
|
|
||||||
this.dataDir = dataDir;
|
|
||||||
this.logsDir = logsDir;
|
|
||||||
this.createCore = createCore;
|
|
||||||
this.maxConnections = maxConnections;
|
|
||||||
this.entries = new Map();
|
|
||||||
this.nextId = 1;
|
|
||||||
this.stoppingSlots = new Set();
|
|
||||||
this.inputId = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static validId(id) {
|
|
||||||
return typeof id === 'string' && ID_PATTERN.test(id);
|
|
||||||
}
|
|
||||||
|
|
||||||
_freeSlot() {
|
|
||||||
const used = new Set(Array.from(this.entries.values(), (e) => e.slot));
|
|
||||||
for (let slot = 1; ; slot += 1) if (!used.has(slot) && !this.stoppingSlots.has(slot)) return slot;
|
|
||||||
}
|
|
||||||
|
|
||||||
_info(entry) {
|
|
||||||
return {
|
|
||||||
id: entry.id,
|
|
||||||
slot: entry.slot,
|
|
||||||
core: { ...entry.status },
|
|
||||||
state: entry.state,
|
|
||||||
address: entry.address,
|
|
||||||
identityId: entry.identityId,
|
|
||||||
session: entry.session,
|
|
||||||
input: this.inputId === entry.id,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
list() {
|
|
||||||
return Array.from(this.entries.values(), (e) => this._info(e));
|
|
||||||
}
|
|
||||||
|
|
||||||
get(id) {
|
|
||||||
return this.entries.get(id) ?? null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** True while any connection is connecting, connected or disconnecting. */
|
|
||||||
anyActive() {
|
|
||||||
for (const e of this.entries.values()) if (e.state !== 'disconnected') return true;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Opens a new server connection (a new core process). */
|
|
||||||
create() {
|
|
||||||
if (this.entries.size >= this.maxConnections) {
|
|
||||||
return { ok: false, error: { code: 'too_many_connections', message: `At most ${this.maxConnections} server connections can be open` } };
|
|
||||||
}
|
|
||||||
const id = `c${this.nextId++}`;
|
|
||||||
const entry = { id, slot: this._freeSlot(), core: null, status: { status: 'starting' }, state: 'disconnected', address: '', identityId: null, session: 0, stopping: null, restarting: null };
|
|
||||||
this.entries.set(id, entry);
|
|
||||||
// Announce first: the core's 'starting' status must never reach the renderer before the connection does.
|
|
||||||
this.emit('changed', this.list());
|
|
||||||
this._spawn(entry);
|
|
||||||
return { ok: true, connection: this._info(entry) };
|
|
||||||
}
|
|
||||||
|
|
||||||
_spawn(entry) {
|
|
||||||
const binary = this.resolveBinary();
|
|
||||||
if (!binary.path) {
|
|
||||||
entry.core = null;
|
|
||||||
entry.status = { status: 'missing', candidates: binary.candidates };
|
|
||||||
this.emit('status', entry.id, entry.status);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const core = this.createCore({
|
|
||||||
binary: binary.path,
|
|
||||||
dataDir: this.dataDir,
|
|
||||||
connectionDir: path.join(this.dataDir, 'connections', String(entry.slot)),
|
|
||||||
// Slot 1 keeps the historical file name, so single-server diagnostics stay where they were.
|
|
||||||
logFile: path.join(this.logsDir, entry.slot === 1 ? 'core.log' : `core-${entry.slot}.log`),
|
|
||||||
});
|
|
||||||
entry.core = core;
|
|
||||||
// Listeners check identity: a replaced or closed core can never write into a live connection.
|
|
||||||
const current = () => this.entries.get(entry.id) === entry && entry.core === core;
|
|
||||||
core.on('status', (status) => {
|
|
||||||
if (!current()) return;
|
|
||||||
entry.status = { ...status, binary: binary.path };
|
|
||||||
if (status.status !== 'ready') {
|
|
||||||
if (entry.state !== 'disconnected') entry.session += 1;
|
|
||||||
entry.state = 'disconnected';
|
|
||||||
if (this.inputId === entry.id) this.setInput(null);
|
|
||||||
}
|
|
||||||
this.emit('status', entry.id, entry.status);
|
|
||||||
});
|
|
||||||
core.on('event', (evt) => {
|
|
||||||
if (!current()) return;
|
|
||||||
if (evt.event === 'state' && typeof evt.state === 'string') {
|
|
||||||
if ((evt.state === 'disconnected' && entry.state !== 'disconnected') || (entry.state === 'connected' && evt.state === 'connecting')) entry.session += 1;
|
|
||||||
if (typeof evt.identity_id === 'string') entry.identityId = evt.identity_id;
|
|
||||||
entry.state = evt.state;
|
|
||||||
if (typeof evt.address === 'string') entry.address = evt.address;
|
|
||||||
}
|
|
||||||
this.emit('event', entry.id, evt);
|
|
||||||
});
|
|
||||||
core.start();
|
|
||||||
}
|
|
||||||
|
|
||||||
async _stopCore(entry) {
|
|
||||||
if (entry.stopping) return entry.stopping;
|
|
||||||
const core = entry.core;
|
|
||||||
entry.core = null;
|
|
||||||
entry.state = 'disconnected';
|
|
||||||
entry.session += 1;
|
|
||||||
if (this.inputId === entry.id) this.setInput(null);
|
|
||||||
if (!core) return;
|
|
||||||
this.stoppingSlots.add(entry.slot);
|
|
||||||
entry.stopping = (async () => {
|
|
||||||
try { await core.stop(); }
|
|
||||||
finally {
|
|
||||||
core.removeAllListeners();
|
|
||||||
this.stoppingSlots.delete(entry.slot);
|
|
||||||
if (this.entries.get(entry.id) === entry && !entry.core) {
|
|
||||||
entry.status = { status: 'stopped' };
|
|
||||||
this.emit('status', entry.id, entry.status);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})();
|
|
||||||
try { await entry.stopping; }
|
|
||||||
finally { entry.stopping = null; }
|
|
||||||
}
|
|
||||||
|
|
||||||
request(id, cmd, args) {
|
|
||||||
const entry = this.entries.get(id);
|
|
||||||
if (!entry) return Promise.resolve(closedError(id));
|
|
||||||
if (!entry.core) return Promise.resolve({ ok: false, error: { code: 'core_unavailable', message: 'The core is not running' } });
|
|
||||||
return entry.core.request(cmd, args);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Selects the connection that receives captured microphone audio (`null`: none). */
|
|
||||||
setInput(id) {
|
|
||||||
if (id !== null && !this.entries.has(id)) return { ok: false, error: closedError(id).error };
|
|
||||||
if (this.inputId !== id) {
|
|
||||||
this.entries.get(this.inputId)?.core?.sendAudio('audio_end');
|
|
||||||
this.inputId = id;
|
|
||||||
this.emit('changed', this.list());
|
|
||||||
}
|
|
||||||
return { ok: true, input: this.inputId };
|
|
||||||
}
|
|
||||||
|
|
||||||
sendAudioFrame(pcmBase64, whisper) {
|
|
||||||
const entry = this.entries.get(this.inputId);
|
|
||||||
return entry?.state === 'connected' && entry.status.status === 'ready' ? entry.core?.sendAudio('audio_frame', whisper === undefined ? { pcm: pcmBase64 } : { pcm: pcmBase64, whisper }) ?? false : false;
|
|
||||||
}
|
|
||||||
|
|
||||||
endAudio() {
|
|
||||||
this.entries.get(this.inputId)?.core?.sendAudio('audio_end');
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Disconnects (best effort) and stops the connection's core; its id becomes invalid. */
|
|
||||||
async close(id) {
|
|
||||||
const entry = this.entries.get(id);
|
|
||||||
if (!entry) return { ok: false, error: closedError(id).error };
|
|
||||||
if (entry.core || entry.stopping) this.stoppingSlots.add(entry.slot);
|
|
||||||
this.entries.delete(id);
|
|
||||||
if (this.inputId === id) {
|
|
||||||
entry.core?.sendAudio('audio_end');
|
|
||||||
this.inputId = null;
|
|
||||||
}
|
|
||||||
this.emit('changed', this.list());
|
|
||||||
await this._stopCore(entry);
|
|
||||||
return { ok: true };
|
|
||||||
}
|
|
||||||
|
|
||||||
async restart(id) {
|
|
||||||
const entry = this.entries.get(id);
|
|
||||||
if (!entry) return { ok: false, error: closedError(id).error };
|
|
||||||
if (entry.restarting) return entry.restarting;
|
|
||||||
entry.restarting = (async () => {
|
|
||||||
await this._stopCore(entry);
|
|
||||||
if (this.entries.get(id) !== entry) return { ok: false, error: closedError(id).error };
|
|
||||||
entry.status = { status: 'starting' };
|
|
||||||
this._spawn(entry);
|
|
||||||
return { ok: true };
|
|
||||||
})();
|
|
||||||
try { return await entry.restarting; }
|
|
||||||
finally { entry.restarting = null; }
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Stops every core but keeps the connections (identity import); `startAll` respawns them. */
|
|
||||||
async stopAll() {
|
|
||||||
await Promise.all(Array.from(this.entries.values(), (e) => this._stopCore(e)));
|
|
||||||
}
|
|
||||||
|
|
||||||
startAll() {
|
|
||||||
for (const entry of this.entries.values()) {
|
|
||||||
if (entry.core) continue;
|
|
||||||
entry.status = { status: 'starting' };
|
|
||||||
this._spawn(entry);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
get running() {
|
|
||||||
for (const e of this.entries.values()) if (e.core?.running) return true;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = { ConnectionManager, MAX_CONNECTIONS };
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Local contacts and the related server-tree options.
|
|
||||||
*
|
|
||||||
* The official TS6 contact list is a myTeamSpeak/Matrix service (direct rooms keyed by myTeamSpeak id, cloud
|
|
||||||
* presence, invites, categories, favourites). TeamsPeach has no account, so it keeps an account-free
|
|
||||||
* replacement on this computer only:
|
|
||||||
* - a contact is a TeamSpeak identity UID (the stable key the server reports for every client) with an optional
|
|
||||||
* local display alias and the nickname seen when it was added; nothing is sent to anyone when a contact is
|
|
||||||
* added, renamed or removed (no invite, no request, no acceptance by the other side);
|
|
||||||
* - presence is derived only from the snapshots of servers this client is connected to: "offline" means "not on
|
|
||||||
* any connected server", never a cloud status.
|
|
||||||
* Blocking reuses the existing chatIgnoredUsers list (chat-prefs.js) rather than a second list.
|
|
||||||
*
|
|
||||||
* Official appearanceSettings key (client_ui/main.js class qe) → TeamsPeach key default
|
|
||||||
* sort_contacts_alphabetically → contactsSortAlphabetically true
|
|
||||||
* show_offline_contacts → contactsShowOffline true
|
|
||||||
* group_offline_contacts → contactsGroupOffline true
|
|
||||||
* contact_grouping.state.online_is_expanded / offline_is_expanded (class T defaults)
|
|
||||||
* → contactsOnlineExpanded true / contactsOfflineExpanded false
|
|
||||||
* show_server_badges → showBadges true
|
|
||||||
* should_highlight_contacts → highlightContacts true
|
|
||||||
*/
|
|
||||||
|
|
||||||
const { validUid } = require('./chat-prefs');
|
|
||||||
|
|
||||||
const MAX_CONTACTS = 1000;
|
|
||||||
const MAX_TEXT = 128;
|
|
||||||
const CONTROL = /[\u0000-\u001f\u007f]/;
|
|
||||||
|
|
||||||
const isBool = (v) => typeof v === 'boolean';
|
|
||||||
const isPlainObject = (v) => v !== null && typeof v === 'object' && !Array.isArray(v) && Object.getPrototypeOf(v) === Object.prototype;
|
|
||||||
const validText = (v) => typeof v === 'string' && v.length <= MAX_TEXT && !CONTROL.test(v);
|
|
||||||
|
|
||||||
/** [{ uid, alias, name }]: unique UIDs; alias '' = no local rename; name = nickname seen when added (display fallback). */
|
|
||||||
function validContacts(list) {
|
|
||||||
if (!Array.isArray(list) || list.length > MAX_CONTACTS) return false;
|
|
||||||
const seen = new Set();
|
|
||||||
for (const entry of list) {
|
|
||||||
if (!isPlainObject(entry)) return false;
|
|
||||||
const keys = Object.keys(entry);
|
|
||||||
if (keys.length !== 3 || !keys.includes('uid') || !keys.includes('alias') || !keys.includes('name')) return false;
|
|
||||||
if (!validUid(entry.uid) || seen.has(entry.uid) || !validText(entry.alias) || !validText(entry.name)) return false;
|
|
||||||
seen.add(entry.uid);
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
const CONTACT_SCHEMA = {
|
|
||||||
contacts: { default: [], check: validContacts },
|
|
||||||
contactsSortAlphabetically: { default: true, check: isBool },
|
|
||||||
contactsShowOffline: { default: true, check: isBool },
|
|
||||||
contactsGroupOffline: { default: true, check: isBool },
|
|
||||||
contactsOnlineExpanded: { default: true, check: isBool },
|
|
||||||
contactsOfflineExpanded: { default: false, check: isBool },
|
|
||||||
showBadges: { default: true, check: isBool },
|
|
||||||
highlightContacts: { default: true, check: isBool },
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = { CONTACT_SCHEMA, MAX_CONTACTS, validContacts };
|
|
||||||
@@ -1,262 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const { spawn } = require('node:child_process');
|
|
||||||
const { EventEmitter } = require('node:events');
|
|
||||||
const readline = require('node:readline');
|
|
||||||
const fs = require('node:fs');
|
|
||||||
|
|
||||||
const READY_TIMEOUT_MS = 15000;
|
|
||||||
const STOP_TIMEOUT_MS = 6000;
|
|
||||||
const AUDIO_BACKLOG_LIMIT = 128 * 1024;
|
|
||||||
const MAX_LINE_BYTES = 256 * 1024;
|
|
||||||
|
|
||||||
const TIMEOUTS = {
|
|
||||||
connect: 60000,
|
|
||||||
disconnect: 10000,
|
|
||||||
rename: 15000,
|
|
||||||
join_channel: 15000,
|
|
||||||
send_text: 15000,
|
|
||||||
stream_list: 15000,
|
|
||||||
default: 15000,
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Owns one `teamspeach-core` child process speaking the newline-JSON protocol of docs/bridge.md.
|
|
||||||
* With `connectionDir` the core is one of several simultaneous connection cores sharing the profile
|
|
||||||
* in `dataDir` (shared profile lock, exclusive lock on its own connection directory).
|
|
||||||
* Emits: 'event' (core event object), 'status' ({status, code?, message?, coreVersion?}).
|
|
||||||
*/
|
|
||||||
class CoreProcess extends EventEmitter {
|
|
||||||
constructor({ binary, dataDir, connectionDir, logFile, logLevel }) {
|
|
||||||
super();
|
|
||||||
this.binary = binary;
|
|
||||||
this.dataDir = dataDir;
|
|
||||||
this.connectionDir = connectionDir || null;
|
|
||||||
this.logFile = logFile;
|
|
||||||
this.logLevel = logLevel || 'info';
|
|
||||||
this.child = null;
|
|
||||||
this.pending = new Map();
|
|
||||||
this.nextId = 1;
|
|
||||||
this.status = 'stopped';
|
|
||||||
this.coreVersion = null;
|
|
||||||
this.stopping = false;
|
|
||||||
this.droppedAudioFrames = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
if (this.child) throw new Error('core already running');
|
|
||||||
this.stopping = false;
|
|
||||||
this.coreVersion = null;
|
|
||||||
rotateLog(this.logFile);
|
|
||||||
const log = fs.createWriteStream(this.logFile, { flags: 'a' });
|
|
||||||
const writeLog = (text) => { if (!log.destroyed && !log.writableEnded) log.write(text); };
|
|
||||||
let child;
|
|
||||||
let logFailed = false;
|
|
||||||
const onLogFailure = (err) => {
|
|
||||||
if (logFailed) return;
|
|
||||||
logFailed = true;
|
|
||||||
// A broken diagnostic destination must neither crash main nor leave stderr paused.
|
|
||||||
child?.stderr.unpipe(log);
|
|
||||||
child?.stderr.resume();
|
|
||||||
log.destroy();
|
|
||||||
const message = `Core log unavailable: ${err.message}`;
|
|
||||||
console.warn(message);
|
|
||||||
this.emit('status', { status: this.status, logError: message });
|
|
||||||
};
|
|
||||||
log.on('error', onLogFailure);
|
|
||||||
log.on('close', () => {
|
|
||||||
if (!log.writableFinished) onLogFailure(new Error('log destination closed before finishing'));
|
|
||||||
});
|
|
||||||
writeLog(`\n=== ${new Date().toISOString()} start ${this.binary}\n`);
|
|
||||||
|
|
||||||
try {
|
|
||||||
const args = ['--data-dir', this.dataDir];
|
|
||||||
if (this.connectionDir) args.push('--connection-dir', this.connectionDir);
|
|
||||||
child = spawn(this.binary, args, {
|
|
||||||
stdio: ['pipe', 'pipe', 'pipe'],
|
|
||||||
windowsHide: true,
|
|
||||||
env: { ...process.env, TEAMSPEACH_LOG: process.env.TEAMSPEACH_LOG || this.logLevel },
|
|
||||||
});
|
|
||||||
} catch (err) {
|
|
||||||
log.end();
|
|
||||||
this._setStatus('failed', { reason: 'spawn', message: err.message });
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.child = child;
|
|
||||||
this._setStatus('starting');
|
|
||||||
|
|
||||||
child.stderr.pipe(log, { end: false });
|
|
||||||
child.stdin.on('error', (err) => writeLog(`[main] stdin error: ${err.message}\n`));
|
|
||||||
|
|
||||||
const rl = readline.createInterface({ input: child.stdout, crlfDelay: Infinity });
|
|
||||||
let exited = false;
|
|
||||||
const diagnostics = { write: writeLog };
|
|
||||||
rl.on('line', (line) => this._onLine(line, diagnostics));
|
|
||||||
|
|
||||||
const readyTimer = setTimeout(() => {
|
|
||||||
if (this.status === 'starting') {
|
|
||||||
writeLog('[main] core did not report ready in time, terminating\n');
|
|
||||||
this._setStatus('failed', { reason: 'ready_timeout', message: 'The core did not report ready within 15 seconds' });
|
|
||||||
child.kill();
|
|
||||||
}
|
|
||||||
}, READY_TIMEOUT_MS);
|
|
||||||
const onReady = () => clearTimeout(readyTimer);
|
|
||||||
this.once('ready-internal', onReady);
|
|
||||||
|
|
||||||
child.on('error', (err) => {
|
|
||||||
clearTimeout(readyTimer);
|
|
||||||
writeLog(`[main] spawn error: ${err.message}\n`);
|
|
||||||
this._setStatus('failed', { reason: 'spawn', message: err.message });
|
|
||||||
});
|
|
||||||
|
|
||||||
const finishProcess = (code, signal) => {
|
|
||||||
if (exited) return;
|
|
||||||
exited = true;
|
|
||||||
clearTimeout(readyTimer);
|
|
||||||
this.removeListener('ready-internal', onReady);
|
|
||||||
const expected = this.stopping;
|
|
||||||
if (expected || this.status !== 'failed') this._setStatus(expected ? 'stopped' : 'exited', { code, signal, message: exitMessage(code) });
|
|
||||||
};
|
|
||||||
// exit ends command availability; close owns final stdio/log disposal (also failed spawn).
|
|
||||||
child.once('exit', finishProcess);
|
|
||||||
|
|
||||||
// close also fires after a failed spawn (exit does not), and follows stdio closure.
|
|
||||||
child.on('close', (code, signal) => {
|
|
||||||
finishProcess(code, signal);
|
|
||||||
rl.close();
|
|
||||||
writeLog(`[main] core exited code=${code} signal=${signal}\n`);
|
|
||||||
if (!log.destroyed) log.end();
|
|
||||||
this.child = null;
|
|
||||||
for (const [, entry] of this.pending) {
|
|
||||||
clearTimeout(entry.timer);
|
|
||||||
entry.resolve({ ok: false, error: { code: 'core_exited', message: 'The core exited' } });
|
|
||||||
}
|
|
||||||
this.pending.clear();
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
_onLine(line, log) {
|
|
||||||
if (!line) return;
|
|
||||||
let msg;
|
|
||||||
try {
|
|
||||||
msg = JSON.parse(line);
|
|
||||||
} catch {
|
|
||||||
log.write(`[main] unparseable stdout line (${line.length} chars)\n`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (msg === null || typeof msg !== 'object') return;
|
|
||||||
if (Object.prototype.hasOwnProperty.call(msg, 'id')) {
|
|
||||||
const entry = this.pending.get(msg.id);
|
|
||||||
if (!entry) return;
|
|
||||||
this.pending.delete(msg.id);
|
|
||||||
clearTimeout(entry.timer);
|
|
||||||
entry.resolve(msg.ok ? { ok: true, result: msg.result ?? {} } : { ok: false, error: normalizeError(msg.error) });
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (msg.event === 'ready') {
|
|
||||||
if (this.status !== 'starting') return; // late/duplicate ready cannot resurrect an exited core
|
|
||||||
this.coreVersion = typeof msg.core_version === 'string' ? msg.core_version : null;
|
|
||||||
if (msg.protocol !== 1) {
|
|
||||||
log.write(`[main] unsupported core protocol ${msg.protocol}\n`);
|
|
||||||
this._setStatus('failed', { reason: 'protocol', protocol: msg.protocol, message: `Unsupported core protocol version: ${msg.protocol}` });
|
|
||||||
this.child?.kill();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.emit('ready-internal');
|
|
||||||
this._setStatus('ready', { coreVersion: this.coreVersion });
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (typeof msg.event === 'string') this.emit('event', msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
_setStatus(status, extra = {}) {
|
|
||||||
this.status = status;
|
|
||||||
this.emit('status', { status, ...extra });
|
|
||||||
}
|
|
||||||
|
|
||||||
get running() {
|
|
||||||
return this.child !== null;
|
|
||||||
}
|
|
||||||
|
|
||||||
request(cmd, args) {
|
|
||||||
if (!this.child || this.status !== 'ready') {
|
|
||||||
return Promise.resolve({ ok: false, error: { code: 'core_unavailable', message: 'The core is not running' } });
|
|
||||||
}
|
|
||||||
const id = `m${this.nextId++}`;
|
|
||||||
const payload = args === undefined ? { id, cmd } : { id, cmd, args };
|
|
||||||
const line = JSON.stringify(payload) + '\n';
|
|
||||||
if (Buffer.byteLength(line) > MAX_LINE_BYTES) {
|
|
||||||
return Promise.resolve({ ok: false, error: { code: 'bad_request', message: 'Request too large' } });
|
|
||||||
}
|
|
||||||
return new Promise((resolve) => {
|
|
||||||
const timeoutMs = TIMEOUTS[cmd] ?? TIMEOUTS.default;
|
|
||||||
const timer = setTimeout(() => {
|
|
||||||
this.pending.delete(id);
|
|
||||||
resolve({ ok: false, error: { code: 'timeout', message: `The core did not answer "${cmd}" within ${Math.round(timeoutMs / 1000)} s` } });
|
|
||||||
}, timeoutMs);
|
|
||||||
this.pending.set(id, { resolve, timer });
|
|
||||||
this.child.stdin.write(line);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/** audio_frame / audio_end: never answered. Frames are dropped instead of queueing unboundedly behind a stalled pipe. */
|
|
||||||
sendAudio(cmd, args) {
|
|
||||||
if (!this.child || this.status !== 'ready') return false;
|
|
||||||
if (cmd === 'audio_frame' && this.child.stdin.writableLength > AUDIO_BACKLOG_LIMIT) {
|
|
||||||
this.droppedAudioFrames += 1;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
this.child.stdin.write(JSON.stringify(args === undefined ? { cmd } : { cmd, args }) + '\n');
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
async stop() {
|
|
||||||
const child = this.child;
|
|
||||||
if (!child) return;
|
|
||||||
this.stopping = true;
|
|
||||||
const exited = new Promise((resolve) => child.once('close', resolve));
|
|
||||||
if (this.status === 'ready') {
|
|
||||||
await Promise.race([this.request('shutdown'), delay(STOP_TIMEOUT_MS)]);
|
|
||||||
} else {
|
|
||||||
child.stdin.end();
|
|
||||||
}
|
|
||||||
const done = await Promise.race([exited.then(() => true), delay(STOP_TIMEOUT_MS).then(() => false)]);
|
|
||||||
if (!done && this.child) {
|
|
||||||
this.child.kill();
|
|
||||||
await Promise.race([exited, delay(2000)]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function normalizeError(error) {
|
|
||||||
if (!error || typeof error !== 'object') return { code: 'internal', message: 'Empty error response' };
|
|
||||||
const out = { code: String(error.code ?? 'internal'), message: String(error.message ?? '') };
|
|
||||||
if (error.ts_error && typeof error.ts_error === 'object') out.ts_error = error.ts_error;
|
|
||||||
if (error.detail && typeof error.detail === 'object') out.detail = error.detail;
|
|
||||||
return out;
|
|
||||||
}
|
|
||||||
|
|
||||||
function exitMessage(code) {
|
|
||||||
switch (code) {
|
|
||||||
case 0: return 'The core exited';
|
|
||||||
case 2: return 'The core rejected its start arguments';
|
|
||||||
case 3: return 'The profile is in use by another TeamsPeach instance or the data directory is unavailable';
|
|
||||||
case 1: return 'Internal core error (details in core.log)';
|
|
||||||
default: return `The core exited with code ${code}`;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function rotateLog(file) {
|
|
||||||
try {
|
|
||||||
if (fs.statSync(file).size > 5 * 1024 * 1024) fs.renameSync(file, `${file}.1`);
|
|
||||||
} catch {
|
|
||||||
// no log yet
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function delay(ms) {
|
|
||||||
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = { CoreProcess };
|
|
||||||
@@ -1,257 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const crypto = require('node:crypto');
|
|
||||||
const fs = require('node:fs');
|
|
||||||
const path = require('node:path');
|
|
||||||
const { FileSettings, TransferScheduler } = require('./files-settings');
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Channel file browser, main side. Owns every host path: the renderer only ever sees opaque tokens plus a
|
|
||||||
* display name/size, and asks main to start transfers with them. Host paths come exclusively from native
|
|
||||||
* dialogs opened for a user click (official "Choose destination folder" / "Choose Files"), and main builds
|
|
||||||
* the core commands `file_download` / `file_upload` itself — these commands are never renderer-callable.
|
|
||||||
*
|
|
||||||
* Offscreen tests never open a dialog: with TEAMSPEACH_TEST_OFFSCREEN the "chosen" download folder is
|
|
||||||
* TEAMSPEACH_TEST_FILES_DOWNLOAD_DIR and the "chosen" upload files are the regular files directly inside
|
|
||||||
* TEAMSPEACH_TEST_FILES_UPLOAD_DIR; both must lie inside the disposable test profile.
|
|
||||||
*/
|
|
||||||
|
|
||||||
const TOKEN_TTL_MS = 30 * 60 * 1000;
|
|
||||||
const MAX_TOKENS = 512;
|
|
||||||
const MAX_UPLOAD_PICK = 100;
|
|
||||||
const MAX_REMOTE_PATH = 512;
|
|
||||||
const MAX_PASSWORD = 255;
|
|
||||||
const MAX_SUBDIRS = 32;
|
|
||||||
const CONTROL = /[\u0000-\u001f\u007f]/;
|
|
||||||
|
|
||||||
const fail = (code, message) => ({ ok: false, error: { code, message } });
|
|
||||||
|
|
||||||
function within(child, parent) {
|
|
||||||
const rel = path.relative(parent, child);
|
|
||||||
return rel !== '' && !rel.startsWith('..') && !path.isAbsolute(rel);
|
|
||||||
}
|
|
||||||
|
|
||||||
function absolute(value) {
|
|
||||||
return typeof value === 'string' && value.length >= 1 && value.length <= 4096 && path.isAbsolute(value) && !value.includes('\u0000');
|
|
||||||
}
|
|
||||||
|
|
||||||
const posInt = value => Number.isSafeInteger(value) && value > 0;
|
|
||||||
const remotePath = value => typeof value === 'string' && value.startsWith('/') && value.length <= MAX_REMOTE_PATH && !CONTROL.test(value) && !value.includes('\\') && value.slice(1).split('/').every((part, i, parts) => part === '' ? i === parts.length - 1 : remoteName(part));
|
|
||||||
const remoteName = value => typeof value === 'string' && value.length >= 1 && value.length <= 255 && !/[/\\]/.test(value) && !CONTROL.test(value) && value !== '.' && value !== '..';
|
|
||||||
const password = value => value === undefined || (typeof value === 'string' && value.length <= MAX_PASSWORD && !CONTROL.test(value));
|
|
||||||
|
|
||||||
class TokenStore {
|
|
||||||
constructor(now = () => Date.now()) {
|
|
||||||
this.now = now;
|
|
||||||
this.tokens = new Map();
|
|
||||||
}
|
|
||||||
|
|
||||||
add(entry) {
|
|
||||||
this.prune();
|
|
||||||
if (this.tokens.size >= MAX_TOKENS) {
|
|
||||||
const oldest = this.tokens.keys().next().value;
|
|
||||||
this.tokens.delete(oldest);
|
|
||||||
}
|
|
||||||
const token = crypto.randomUUID();
|
|
||||||
this.tokens.set(token, { ...entry, expires: this.now() + TOKEN_TTL_MS });
|
|
||||||
return token;
|
|
||||||
}
|
|
||||||
|
|
||||||
get(token, kind) {
|
|
||||||
this.prune();
|
|
||||||
if (typeof token !== 'string') return null;
|
|
||||||
const entry = this.tokens.get(token);
|
|
||||||
if (!entry || entry.kind !== kind) return null;
|
|
||||||
entry.expires = this.now() + TOKEN_TTL_MS;
|
|
||||||
return entry;
|
|
||||||
}
|
|
||||||
|
|
||||||
release(token) { return this.tokens.delete(token); }
|
|
||||||
|
|
||||||
prune() {
|
|
||||||
const now = this.now();
|
|
||||||
for (const [token, entry] of this.tokens) if (entry.expires <= now) this.tokens.delete(token);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function regularFile(file) {
|
|
||||||
try {
|
|
||||||
const st = fs.statSync(file);
|
|
||||||
return st.isFile() ? st.size : null;
|
|
||||||
} catch {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function folder(dir) {
|
|
||||||
try {
|
|
||||||
return fs.statSync(dir).isDirectory();
|
|
||||||
} catch {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {object} o
|
|
||||||
* @param {Electron.IpcMain} o.ipcMain
|
|
||||||
* @param {(event) => boolean} o.trustedSender
|
|
||||||
* @param {Electron.Dialog} o.dialog
|
|
||||||
* @param {Electron.Shell} o.shell
|
|
||||||
* @param {() => Electron.BrowserWindow | null} o.getWindow
|
|
||||||
* @param {(connectionId: string, cmd: string, args: object) => Promise<object>} o.request raw per-connection core request
|
|
||||||
* @param {(connectionId: unknown) => boolean} o.validConnectionId
|
|
||||||
* @param {boolean} o.testOffscreen
|
|
||||||
* @param {string | null} o.testProfileDir absolute disposable profile dir in offscreen tests
|
|
||||||
* @param {(key: string) => string} o.tr native dialog text in the interface language
|
|
||||||
* @param {NodeJS.ProcessEnv} [o.env]
|
|
||||||
*/
|
|
||||||
function registerFilesIpc({ ipcMain, trustedSender, dialog, shell, clipboard, getWindow, request, validConnectionId, getConnectionEpoch, settingsPath, testOffscreen, testProfileDir, tr, env = process.env }) {
|
|
||||||
const tokens = new TokenStore();
|
|
||||||
const settings = new FileSettings(settingsPath);
|
|
||||||
const scheduler = new TransferScheduler(request, settings, getConnectionEpoch);
|
|
||||||
|
|
||||||
const testDir = name => {
|
|
||||||
const dir = env[name];
|
|
||||||
if (!absolute(dir) || !testProfileDir || !folder(dir)) return null;
|
|
||||||
const real = fs.realpathSync(dir);
|
|
||||||
return within(real, fs.realpathSync(testProfileDir)) ? real : null;
|
|
||||||
};
|
|
||||||
|
|
||||||
const showOpen = async options => {
|
|
||||||
const win = getWindow();
|
|
||||||
return win ? dialog.showOpenDialog(win, options) : dialog.showOpenDialog(options);
|
|
||||||
};
|
|
||||||
|
|
||||||
const handle = (channel, fn) => ipcMain.handle(channel, async (event, ...args) => {
|
|
||||||
if (!trustedSender(event)) return fail('forbidden', 'forbidden');
|
|
||||||
try {
|
|
||||||
return await fn(...args);
|
|
||||||
} catch (err) {
|
|
||||||
return fail('internal', String(err?.message ?? err));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
const chooseFolder = async () => {
|
|
||||||
if (testOffscreen) {
|
|
||||||
const dir = testDir('TEAMSPEACH_TEST_FILES_DOWNLOAD_DIR');
|
|
||||||
if (!dir) throw new Error('Folder dialogs are disabled in offscreen tests');
|
|
||||||
return dir;
|
|
||||||
}
|
|
||||||
const result = await showOpen({ title: tr('files.native.choose_destination'), properties: ['openDirectory', 'createDirectory', 'dontAddToRecent'] });
|
|
||||||
if (result.canceled || !result.filePaths?.length) return null;
|
|
||||||
return fs.realpathSync(result.filePaths[0]);
|
|
||||||
};
|
|
||||||
handle('files:settings/get', async () => ({ ok: true, settings: settings.publicValue() }));
|
|
||||||
handle('files:settings/set', async partial => {
|
|
||||||
const previous = { ...settings.value };
|
|
||||||
try {
|
|
||||||
settings.save(partial);
|
|
||||||
await scheduler.changed();
|
|
||||||
return { ok: true, settings: settings.publicValue() };
|
|
||||||
} catch (err) {
|
|
||||||
settings.save(previous, true);
|
|
||||||
await scheduler.changed();
|
|
||||||
return fail('bad_request', err.message);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
handle('files:settings/choose-default', async () => {
|
|
||||||
const dir = await chooseFolder();
|
|
||||||
if (dir) settings.save({ approvedDownloadDir: dir }, true);
|
|
||||||
return { ok: true, settings: settings.publicValue() };
|
|
||||||
});
|
|
||||||
handle('files:settings/copy-default', async () => {
|
|
||||||
if (testOffscreen) return fail('unavailable', 'Clipboard access is disabled in offscreen tests');
|
|
||||||
if (!settings.value.approvedDownloadDir) return fail('not_found', 'No download folder has been approved');
|
|
||||||
clipboard.writeText(settings.value.approvedDownloadDir);
|
|
||||||
return { ok: true };
|
|
||||||
});
|
|
||||||
|
|
||||||
handle('files:choose-download-dir', async connectionId => {
|
|
||||||
const epoch = validConnectionId(connectionId) ? getConnectionEpoch(connectionId) : null;
|
|
||||||
if (epoch == null) return fail('not_connected', 'The server connection is no longer available');
|
|
||||||
let dir = !settings.value.alwaysAsk ? settings.value.approvedDownloadDir : null;
|
|
||||||
const outsideFixture = dir && testOffscreen && (!testProfileDir || !within(fs.realpathSync(dir), fs.realpathSync(testProfileDir)));
|
|
||||||
if (dir && (!absolute(dir) || !folder(dir) || outsideFixture)) {
|
|
||||||
return fail('not_found', 'The saved download folder is unavailable; choose it again in File Transfer settings');
|
|
||||||
}
|
|
||||||
if (!dir) dir = await chooseFolder();
|
|
||||||
if (!dir) return { ok: true, token: null };
|
|
||||||
if (getConnectionEpoch(connectionId) !== epoch) return fail('not_connected', 'The server connection changed while choosing a folder');
|
|
||||||
if (!absolute(dir) || !folder(dir)) return fail('bad_request', 'The chosen folder is not usable');
|
|
||||||
return { ok: true, token: tokens.add({ kind: 'dir', path: dir }), label: path.basename(dir) || dir };
|
|
||||||
});
|
|
||||||
|
|
||||||
handle('files:choose-upload', async connectionId => {
|
|
||||||
const epoch = validConnectionId(connectionId) ? getConnectionEpoch(connectionId) : null;
|
|
||||||
if (epoch == null) return fail('not_connected', 'The server connection is no longer available');
|
|
||||||
let files;
|
|
||||||
if (testOffscreen) {
|
|
||||||
const dir = testDir('TEAMSPEACH_TEST_FILES_UPLOAD_DIR');
|
|
||||||
if (!dir) return fail('unavailable', 'File dialogs are disabled in offscreen tests');
|
|
||||||
files = fs.readdirSync(dir).sort().map(name => path.join(dir, name));
|
|
||||||
} else {
|
|
||||||
const result = await showOpen({ title: tr('files.native.choose_files'), properties: ['openFile', 'multiSelections', 'dontAddToRecent'] });
|
|
||||||
if (result.canceled || !result.filePaths?.length) return { ok: true, files: [] };
|
|
||||||
files = result.filePaths.map(p => path.resolve(p));
|
|
||||||
}
|
|
||||||
if (getConnectionEpoch(connectionId) !== epoch) return fail('not_connected', 'The server connection changed while choosing files');
|
|
||||||
const picked = [];
|
|
||||||
for (const file of files.slice(0, MAX_UPLOAD_PICK)) {
|
|
||||||
const safeTestPath = !testOffscreen || (within(fs.realpathSync(file), fs.realpathSync(testProfileDir)) && !fs.lstatSync(file).isSymbolicLink());
|
|
||||||
const size = absolute(file) && safeTestPath ? regularFile(file) : null;
|
|
||||||
const name = path.basename(file);
|
|
||||||
if (size === null || !remoteName(name)) continue;
|
|
||||||
picked.push({ token: tokens.add({ kind: 'file', path: file, name }), name, size });
|
|
||||||
}
|
|
||||||
return { ok: true, files: picked, skipped: files.length - picked.length };
|
|
||||||
});
|
|
||||||
|
|
||||||
handle('files:download', async (connectionId, opts) => {
|
|
||||||
if (!validConnectionId(connectionId)) return fail('bad_request', 'Invalid server connection');
|
|
||||||
const o = opts && typeof opts === 'object' ? opts : {};
|
|
||||||
const entry = tokens.get(o.token, 'dir');
|
|
||||||
if (!entry) return fail('bad_request', 'Choose the destination folder again');
|
|
||||||
if (!posInt(o.channelId) || !remotePath(o.path) || !password(o.channelPassword) || typeof o.overwrite !== 'boolean') return fail('bad_request', 'Invalid download request');
|
|
||||||
const subdirs = o.subdirs === undefined ? [] : o.subdirs;
|
|
||||||
if (!Array.isArray(subdirs) || subdirs.length > MAX_SUBDIRS || !subdirs.every(remoteName)) return fail('bad_request', 'Invalid download folder');
|
|
||||||
return scheduler.requestTransfer(connectionId, 'file_download', {
|
|
||||||
channel_id: o.channelId,
|
|
||||||
path: o.path,
|
|
||||||
...(o.channelPassword ? { channel_password: o.channelPassword } : {}),
|
|
||||||
dest_dir: entry.path,
|
|
||||||
subdirs,
|
|
||||||
overwrite: o.overwrite,
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
handle('files:upload', async (connectionId, opts) => {
|
|
||||||
if (!validConnectionId(connectionId)) return fail('bad_request', 'Invalid server connection');
|
|
||||||
const o = opts && typeof opts === 'object' ? opts : {};
|
|
||||||
const entry = tokens.get(o.token, 'file');
|
|
||||||
if (!entry) return fail('bad_request', 'Choose the file again');
|
|
||||||
if (!posInt(o.channelId) || !remotePath(o.dir) || !o.dir.endsWith('/') || !password(o.channelPassword) || typeof o.overwrite !== 'boolean') return fail('bad_request', 'Invalid upload request');
|
|
||||||
const target = o.dir + entry.name;
|
|
||||||
if (target.length > MAX_REMOTE_PATH) return fail('bad_request', 'The server path is too long');
|
|
||||||
return scheduler.requestTransfer(connectionId, 'file_upload', {
|
|
||||||
channel_id: o.channelId,
|
|
||||||
path: target,
|
|
||||||
...(o.channelPassword ? { channel_password: o.channelPassword } : {}),
|
|
||||||
source: entry.path,
|
|
||||||
overwrite: o.overwrite,
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
handle('files:release', async token => ({ ok: true, released: tokens.release(token) }));
|
|
||||||
|
|
||||||
handle('files:open-folder', async token => {
|
|
||||||
const entry = tokens.get(token, 'dir');
|
|
||||||
if (!entry || !folder(entry.path)) return fail('bad_request', 'The folder is no longer available');
|
|
||||||
if (testOffscreen) return fail('unavailable', 'Opening folders is disabled in offscreen tests');
|
|
||||||
const error = await shell.openPath(entry.path);
|
|
||||||
return error ? fail('io', error) : { ok: true };
|
|
||||||
});
|
|
||||||
|
|
||||||
return { tokens, onEvent: (id, event) => scheduler.onEvent(id, event), onClosed: id => scheduler.onClosed(id), requestTransfer: (id, cmd, args) => scheduler.requestTransfer(id, cmd, args) };
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = { registerFilesIpc, TokenStore };
|
|
||||||
@@ -1,134 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
const fs = require('node:fs');
|
|
||||||
const path = require('node:path');
|
|
||||||
|
|
||||||
const DEFAULTS = Object.freeze({ alwaysAsk: true, downloadSlots: 2, uploadSlots: 2, limitDownload: false, limitUpload: false, downloadMiB: 10, uploadMiB: 10, approvedDownloadDir: null });
|
|
||||||
const PUBLIC = ['alwaysAsk', 'downloadSlots', 'uploadSlots', 'limitDownload', 'limitUpload', 'downloadMiB', 'uploadMiB'];
|
|
||||||
function valid(s) {
|
|
||||||
return ['alwaysAsk', 'limitDownload', 'limitUpload'].every(k => typeof s[k] === 'boolean')
|
|
||||||
&& ['downloadSlots', 'uploadSlots'].every(k => Number.isInteger(s[k]) && s[k] >= 1 && s[k] <= 9)
|
|
||||||
&& s.downloadSlots + s.uploadSlots <= 10
|
|
||||||
&& ['downloadMiB', 'uploadMiB'].every(k => Number.isFinite(s[k]) && s[k] >= 1 && s[k] <= 25600 && Number.isInteger(s[k] * 2));
|
|
||||||
}
|
|
||||||
class FileSettings {
|
|
||||||
constructor(filename) {
|
|
||||||
this.filename = filename;
|
|
||||||
this.value = { ...DEFAULTS };
|
|
||||||
if (filename && fs.existsSync(filename)) {
|
|
||||||
const saved = JSON.parse(fs.readFileSync(filename, 'utf8'));
|
|
||||||
if (!valid(saved) || !(saved.approvedDownloadDir === null || (typeof saved.approvedDownloadDir === 'string' && path.isAbsolute(saved.approvedDownloadDir)))) throw new Error('Invalid saved transfer settings');
|
|
||||||
this.value = { ...DEFAULTS, ...saved };
|
|
||||||
}
|
|
||||||
}
|
|
||||||
publicValue() {
|
|
||||||
const out = Object.fromEntries(PUBLIC.map(k => [k, this.value[k]]));
|
|
||||||
out.downloadFolder = this.value.approvedDownloadDir ? path.basename(this.value.approvedDownloadDir) || this.value.approvedDownloadDir : null;
|
|
||||||
return out;
|
|
||||||
}
|
|
||||||
save(partial, approved = false) {
|
|
||||||
if (!partial || typeof partial !== 'object' || Array.isArray(partial) || Object.keys(partial).some(k => !PUBLIC.includes(k) && !(approved && k === 'approvedDownloadDir'))) throw new Error('Invalid transfer setting');
|
|
||||||
const next = { ...this.value, ...partial };
|
|
||||||
if (!valid(next)) throw new Error('Invalid transfer limits: concurrency total must not exceed 10');
|
|
||||||
if (this.filename) {
|
|
||||||
const temp = `${this.filename}.${process.pid}.tmp`;
|
|
||||||
try { fs.writeFileSync(temp, JSON.stringify(next), { mode: 0o600 }); fs.renameSync(temp, this.filename); }
|
|
||||||
finally { try { fs.unlinkSync(temp); } catch (e) { if (e.code !== 'ENOENT') throw e; } }
|
|
||||||
}
|
|
||||||
this.value = next;
|
|
||||||
return this.publicValue();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Native queues own IDs/progress/cancellation. This broker allocates app-wide starts across
|
|
||||||
// per-server cores, preserving already-started transfers when a limit is reduced.
|
|
||||||
class TransferScheduler {
|
|
||||||
constructor(request, settings, epoch) {
|
|
||||||
this.request = request; this.settings = settings; this.epoch = epoch;
|
|
||||||
this.cores = new Map(); this.serial = Promise.resolve();
|
|
||||||
}
|
|
||||||
run(fn) { const next = this.serial.then(fn); this.serial = next.catch(() => {}); return next; }
|
|
||||||
core(id) {
|
|
||||||
let c = this.cores.get(id);
|
|
||||||
if (!c || c.epoch !== this.epoch(id)) { c = { epoch: this.epoch(id), records: new Map(), config: null }; this.cores.set(id, c); }
|
|
||||||
return c;
|
|
||||||
}
|
|
||||||
requestTransfer(id, cmd, args) {
|
|
||||||
const epoch = this.epoch(id);
|
|
||||||
return this.run(async () => {
|
|
||||||
if (epoch == null || this.epoch(id) !== epoch) return { ok: false, error: { code: 'not_connected', message: 'Connection changed before transfer' } };
|
|
||||||
const c = this.core(id);
|
|
||||||
// First enqueue with no unallocated starts. Existing active transfers are unaffected.
|
|
||||||
const paused = { download_slots: 0, upload_slots: 0, download_limit: c.config?.download_limit ?? 0, upload_limit: c.config?.upload_limit ?? 0 };
|
|
||||||
const configured = await this.request(id, 'file_config', paused);
|
|
||||||
if (!configured.ok) return configured;
|
|
||||||
c.config = paused;
|
|
||||||
let result;
|
|
||||||
try { result = await this.request(id, cmd, args); }
|
|
||||||
catch (err) { await this.rebalance(); throw err; }
|
|
||||||
if (result.ok && this.epoch(id) === epoch && this.cores.get(id) === c) {
|
|
||||||
const rec = result.result;
|
|
||||||
if (!c.records.has(rec.transfer_id)) c.records.set(rec.transfer_id, rec);
|
|
||||||
}
|
|
||||||
await this.rebalance();
|
|
||||||
return result;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
onEvent(id, event) {
|
|
||||||
if (event.event !== 'file_transfer') return;
|
|
||||||
const c = this.cores.get(id);
|
|
||||||
if (!c || c.epoch !== this.epoch(id)) return;
|
|
||||||
// Keep terminal tombstones until the queued response has been reconciled.
|
|
||||||
c.records.set(event.transfer_id, event);
|
|
||||||
this.run(() => this.rebalance()).catch(err => console.error('Transfer scheduler:', err.message));
|
|
||||||
}
|
|
||||||
onClosed(id) { this.cores.delete(id); this.run(() => this.rebalance()).catch(err => console.error('Transfer scheduler:', err.message)); }
|
|
||||||
changed() { return this.run(() => this.rebalance()); }
|
|
||||||
async rebalance() {
|
|
||||||
const entries = [...this.cores].filter(([id, c]) => c.epoch === this.epoch(id) && c.epoch != null);
|
|
||||||
const settings = this.settings.value;
|
|
||||||
const configs = new Map(entries.map(([id]) => [id, { download_slots: 0, upload_slots: 0, download_limit: 0, upload_limit: 0 }]));
|
|
||||||
for (const direction of ['download', 'upload']) {
|
|
||||||
const cap = settings[`${direction}Slots`];
|
|
||||||
const demand = entries.map(([id, c]) => {
|
|
||||||
const rows = [...c.records.values()].filter(r => r.direction === direction && !['done', 'failed', 'cancelled'].includes(r.state));
|
|
||||||
return { id, active: rows.filter(r => r.state !== 'queued' || r.reserved).length, queued: rows.filter(r => r.state === 'queued' && !r.reserved) };
|
|
||||||
});
|
|
||||||
let remaining = Math.max(0, cap - demand.reduce((n, d) => n + d.active, 0));
|
|
||||||
for (const d of demand) configs.get(d.id)[`${direction}_slots`] = d.active;
|
|
||||||
// Round-robin one slot per demanded connection, never multiply a per-app limit.
|
|
||||||
while (remaining > 0) {
|
|
||||||
let used = false;
|
|
||||||
for (const d of demand) {
|
|
||||||
if (remaining === 0) break;
|
|
||||||
if (d.queued.length > 0) { configs.get(d.id)[`${direction}_slots`]++; d.queued.shift().reserved = true; remaining--; used = true; }
|
|
||||||
}
|
|
||||||
if (!used) break;
|
|
||||||
}
|
|
||||||
const enabled = settings[direction === 'download' ? 'limitDownload' : 'limitUpload'];
|
|
||||||
const consumers = demand.filter(d => d.active > 0 || configs.get(d.id)[`${direction}_slots`] > 0);
|
|
||||||
const rate = enabled ? Math.floor(settings[`${direction}MiB`] * 1048576 / Math.max(1, consumers.length)) : 0;
|
|
||||||
for (const d of consumers) configs.get(d.id)[`${direction}_limit`] = rate;
|
|
||||||
}
|
|
||||||
// Apply decreases before increases, so adding a core never multiplies the old ceiling.
|
|
||||||
for (const [id, c] of entries) {
|
|
||||||
const next = configs.get(id);
|
|
||||||
const interim = { ...next };
|
|
||||||
for (const k of ['download_slots', 'upload_slots']) interim[k] = Math.min(c.config?.[k] ?? 0, next[k]);
|
|
||||||
for (const k of ['download_limit', 'upload_limit']) {
|
|
||||||
const old = c.config?.[k] ?? 0;
|
|
||||||
interim[k] = old === 0 ? next[k] : next[k] === 0 ? old : Math.min(old, next[k]);
|
|
||||||
}
|
|
||||||
if (JSON.stringify(c.config) !== JSON.stringify(interim)) {
|
|
||||||
const r = await this.request(id, 'file_config', interim); if (!r.ok) throw new Error(r.error?.message || 'Transfer limits refused'); c.config = interim;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for (const [id, c] of entries) {
|
|
||||||
const next = configs.get(id);
|
|
||||||
if (JSON.stringify(c.config) !== JSON.stringify(next)) {
|
|
||||||
const r = await this.request(id, 'file_config', next); if (!r.ok) throw new Error(r.error?.message || 'Transfer limits refused'); c.config = next;
|
|
||||||
}
|
|
||||||
for (const [key, rec] of c.records) if (['done', 'failed', 'cancelled'].includes(rec.state)) c.records.delete(key);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
module.exports = { FileSettings, TransferScheduler, DEFAULTS };
|
|
||||||
@@ -1,124 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
// Only main owns paths, dialogs, subprocesses and private-key import/export.
|
|
||||||
const path = require('node:path');
|
|
||||||
const { spawn } = require('node:child_process');
|
|
||||||
const UID = /^[A-Za-z0-9+/]{27}=$/;
|
|
||||||
const failure = (code, message) => ({ ok: false, error: { code, message } });
|
|
||||||
function registerIdentityIpc({ ipcMain, trustedSender, getWindow, resolveCoreBinary, dataDir, dialog, tr, sendToRenderer, onChanged = () => {} }) {
|
|
||||||
let improvement = null;
|
|
||||||
let closing = false;
|
|
||||||
const children = new Set();
|
|
||||||
const notify = (action, uid, result) => {
|
|
||||||
const change = { action, uid, result };
|
|
||||||
sendToRenderer('identities:changed', change);
|
|
||||||
onChanged(change);
|
|
||||||
};
|
|
||||||
function launch(action, fields = {}, improving = false) {
|
|
||||||
if (closing) return Promise.resolve(failure('closed', 'Application is closing'));
|
|
||||||
const binary = resolveCoreBinary();
|
|
||||||
if (!binary.path) return Promise.resolve(failure('core_missing', 'Core executable not found'));
|
|
||||||
const args = ['identity', action, '--data-dir', dataDir()];
|
|
||||||
for (const [key, value] of Object.entries(fields)) args.push(`--${key}`, String(value));
|
|
||||||
return new Promise((resolve) => {
|
|
||||||
const child = spawn(binary.path, args, { windowsHide: true, stdio: ['pipe', 'pipe', 'pipe'] });
|
|
||||||
children.add(child);
|
|
||||||
let buffer = ''; let answer = null; let settled = false;
|
|
||||||
if (improving) improvement = { child, uid: fields.uid, progress: { uid: fields.uid, target: fields.target, running: true } };
|
|
||||||
const finish = (value) => {
|
|
||||||
if (settled) return;
|
|
||||||
settled = true; clearTimeout(timer); children.delete(child);
|
|
||||||
if (improvement?.child === child) improvement = null;
|
|
||||||
if (improving) sendToRenderer('identity:progress', { uid: fields.uid, running: false, ...value });
|
|
||||||
resolve(value);
|
|
||||||
};
|
|
||||||
const timer = setTimeout(() => { child.kill(); finish(failure('timeout', 'Identity operation exceeded its time limit')); }, improving ? 65000 : 30000);
|
|
||||||
child.stdin.on('error', () => {});
|
|
||||||
// stderr can contain OS paths; never forward it or key-bearing input to logs/renderer.
|
|
||||||
child.stderr.resume();
|
|
||||||
child.on('error', () => finish(failure('io', 'Cannot launch identity worker')));
|
|
||||||
child.stdout.setEncoding('utf8');
|
|
||||||
child.stdout.on('data', (chunk) => {
|
|
||||||
buffer += chunk;
|
|
||||||
if (buffer.length > 1024 * 1024) { child.kill(); finish(failure('protocol', 'Identity worker output exceeded limit')); return; }
|
|
||||||
let end;
|
|
||||||
while ((end = buffer.indexOf('\n')) >= 0) {
|
|
||||||
const line = buffer.slice(0, end); buffer = buffer.slice(end + 1);
|
|
||||||
try {
|
|
||||||
const value = JSON.parse(line);
|
|
||||||
if (value.event === 'identity_progress' && improvement?.child === child) {
|
|
||||||
improvement.progress = { ...value, running: true };
|
|
||||||
sendToRenderer('identity:progress', improvement.progress);
|
|
||||||
} else if (typeof value.ok === 'boolean') answer = value;
|
|
||||||
} catch { child.kill(); finish(failure('protocol', 'Invalid identity worker response')); }
|
|
||||||
}
|
|
||||||
});
|
|
||||||
child.on('close', () => finish(answer || failure('io', 'Identity worker stopped without a result')));
|
|
||||||
if (!improving) child.stdin.end();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
ipcMain.handle('identity:request', async (event, action, args = {}) => {
|
|
||||||
if (!trustedSender(event)) return failure('forbidden', 'Untrusted sender');
|
|
||||||
if (!args || typeof args !== 'object' || Array.isArray(args)) return failure('bad_request', 'Invalid identity arguments');
|
|
||||||
const fields = {};
|
|
||||||
if (!['list', 'create', 'update', 'default', 'delete', 'improve', 'cancel', 'status'].includes(action)) return failure('bad_request', 'Unknown identity action');
|
|
||||||
if (action === 'status') return { ok: true, result: improvement?.progress || null };
|
|
||||||
if (action === 'cancel') {
|
|
||||||
if (improvement) improvement.child.stdin.end('cancel\n');
|
|
||||||
return { ok: true, result: { cancel_requested: Boolean(improvement) } };
|
|
||||||
}
|
|
||||||
if (!['list', 'create'].includes(action)) {
|
|
||||||
if (typeof args.uid !== 'string' || !UID.test(args.uid)) return failure('bad_request', 'Invalid identity UID');
|
|
||||||
fields.uid = args.uid;
|
|
||||||
}
|
|
||||||
if (action === 'create' || action === 'update') {
|
|
||||||
for (const key of ['name', 'nickname']) {
|
|
||||||
if (action === 'update' && args[key] === undefined) continue;
|
|
||||||
if (typeof args[key] !== 'string' || args[key].length > 256 || /[\x00-\x1f\x7f]/.test(args[key])) return failure('bad_request', 'Invalid identity name or nickname');
|
|
||||||
fields[key] = args[key];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (action === 'delete') {
|
|
||||||
if (args.confirm_uid !== args.uid) return failure('bad_request', 'Confirm the exact identity to delete');
|
|
||||||
if (improvement?.uid === args.uid) return failure('identity_in_use', 'Cancel security improvement before deleting');
|
|
||||||
fields['confirm-uid'] = args.confirm_uid;
|
|
||||||
}
|
|
||||||
if (action === 'improve') {
|
|
||||||
if (improvement) return failure('busy', 'Security improvement is already running');
|
|
||||||
if (!Number.isInteger(args.target) || args.target < 1 || args.target > 100) return failure('bad_request', 'Security target must be 1–100');
|
|
||||||
fields.target = args.target; fields.seconds = 30;
|
|
||||||
}
|
|
||||||
const result = await launch(action, fields, action === 'improve');
|
|
||||||
if (result.ok && action !== 'list') notify(action, fields.uid || result.result?.uid, result.result);
|
|
||||||
return result;
|
|
||||||
});
|
|
||||||
ipcMain.handle('identity:export', async (event, uid) => {
|
|
||||||
if (!trustedSender(event)) return failure('forbidden', 'Untrusted sender');
|
|
||||||
if (typeof uid !== 'string' || !UID.test(uid)) return failure('bad_request', 'Select an identity');
|
|
||||||
try {
|
|
||||||
const picked = await dialog.showSaveDialog(getWindow(), { title: tr('native.identityExport.title'), defaultPath: 'teamspeach-identity.ini', filters: [{ name: tr('native.identity.filter'), extensions: ['ini'] }], properties: ['showOverwriteConfirmation', 'createDirectory'] });
|
|
||||||
if (picked.canceled || !picked.filePath) return { ok: false, canceled: true };
|
|
||||||
const result = await launch('export', { uid, out: picked.filePath });
|
|
||||||
return result.ok ? { ...result, uid, file: path.basename(picked.filePath) } : result;
|
|
||||||
} catch { return failure('io', 'Cannot select identity export destination'); }
|
|
||||||
});
|
|
||||||
ipcMain.handle('identity:import', async (event) => {
|
|
||||||
if (!trustedSender(event)) return failure('forbidden', 'Untrusted sender');
|
|
||||||
try {
|
|
||||||
const picked = await dialog.showOpenDialog(getWindow(), { title: tr('native.identityImport.title'), filters: [{ name: tr('native.identity.filter'), extensions: ['ini'] }], properties: ['openFile'] });
|
|
||||||
if (picked.canceled || !picked.filePaths?.length) return { ok: false, canceled: true };
|
|
||||||
const result = await launch('import', { in: picked.filePaths[0] });
|
|
||||||
if (result.ok) notify('import', null, result.result);
|
|
||||||
return result;
|
|
||||||
} catch { return failure('io', 'Cannot select identity import file'); }
|
|
||||||
});
|
|
||||||
return {
|
|
||||||
shutdown() {
|
|
||||||
closing = true;
|
|
||||||
for (const child of children) child.stdin.end('cancel\n');
|
|
||||||
// Graceful cancellation checkpoints first; enforce termination if a worker is stuck in I/O.
|
|
||||||
const timer = setTimeout(() => { for (const child of children) child.kill(); }, 1500);
|
|
||||||
timer.unref();
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
module.exports = { registerIdentityIpc };
|
|
||||||
@@ -1,515 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
// Settings > About data (installed client_ui/main.js: ChangelogEntry render@1810599, changelog view
|
|
||||||
// render@1814959, Open Source Licenses list render@1822582, license detail render@1821111).
|
|
||||||
//
|
|
||||||
// The official client reads a changelog feed and fetches tsui://default/licenses/licenses.json
|
|
||||||
// ({ name: { icon, repository, licenseText } }). TeamsPeach serves the same three views from files that are
|
|
||||||
// actually part of this installation, chosen here in main only; the renderer passes nothing but an opaque
|
|
||||||
// license id that must exist in the index built below:
|
|
||||||
// - CHANGELOG.md (repository root; packaged as resources/CHANGELOG.md),
|
|
||||||
// - the licenses folder (repository LICENSES/; packaged as resources/licenses/) with the TeamsPeach notice,
|
|
||||||
// bundled font/noise-reduction notices and the native core's generated THIRD_PARTY_NOTICES.md,
|
|
||||||
// - Electron's own LICENSE and Chromium's LICENSES.chromium.html next to the executable,
|
|
||||||
// - license files of the production npm dependency tree inside the application directory,
|
|
||||||
// - the chat renderer vendor notices (app/renderer/vendor/THIRD_PARTY_NOTICES.txt).
|
|
||||||
// Nothing is fetched from the network. A source that is missing in this installation is reported as missing.
|
|
||||||
|
|
||||||
const fs = require('node:fs');
|
|
||||||
const fsp = require('node:fs/promises');
|
|
||||||
const path = require('node:path');
|
|
||||||
|
|
||||||
const MAX_CHANGELOG_BYTES = 2 * 1024 * 1024;
|
|
||||||
const MAX_NOTICE_BYTES = 64 * 1024 * 1024;
|
|
||||||
const LICENSE_FILE = /^(licen[cs]e|copying|notice|unlicense)([-._].*)?$/i;
|
|
||||||
const GROUP_ORDER = ['teamspeach', 'electron', 'chromium', 'npm', 'core', 'renderer'];
|
|
||||||
|
|
||||||
// ---------- CHANGELOG.md ----------
|
|
||||||
|
|
||||||
const RELEASE_HEADING = /^##\s+(.+?)\s*$/;
|
|
||||||
const DATED = /^(.+?)\s+[—–-]\s+(\d{4}-\d{2}-\d{2})(?:\s+(.*))?$/;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Keep-a-changelog style CHANGELOG.md → official changelog entries (old format: notes + changes).
|
|
||||||
* `## <version> — <YYYY-MM-DD> [qualifier]` or `## Unreleased`; paragraphs become notes, `- ` items changes
|
|
||||||
* (indented continuation lines are joined with a space).
|
|
||||||
*/
|
|
||||||
function parseChangelog(markdown) {
|
|
||||||
const entries = [];
|
|
||||||
let entry = null;
|
|
||||||
let block = null; // { kind: 'note' | 'change', lines: [] }
|
|
||||||
const flush = () => {
|
|
||||||
if (!entry || !block) { block = null; return; }
|
|
||||||
const text = block.lines.join(' ').replace(/\s+/g, ' ').trim();
|
|
||||||
if (text) (block.kind === 'change' ? entry.changes : entry.notes).push(text);
|
|
||||||
block = null;
|
|
||||||
};
|
|
||||||
for (const raw of String(markdown).split(/\r?\n/)) {
|
|
||||||
const heading = RELEASE_HEADING.exec(raw);
|
|
||||||
if (heading && !raw.startsWith('###')) {
|
|
||||||
flush();
|
|
||||||
const title = heading[1];
|
|
||||||
const dated = DATED.exec(title);
|
|
||||||
entry = {
|
|
||||||
version: dated ? dated[1].trim() : title,
|
|
||||||
date: dated ? dated[2] : null,
|
|
||||||
qualifier: dated && dated[3] ? dated[3].trim() : null,
|
|
||||||
unreleased: !dated && /^unreleased$/i.test(title),
|
|
||||||
notes: [],
|
|
||||||
changes: [],
|
|
||||||
};
|
|
||||||
entries.push(entry);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (!entry) continue;
|
|
||||||
if (/^#/.test(raw)) { flush(); continue; }
|
|
||||||
if (!raw.trim()) { flush(); continue; }
|
|
||||||
const item = /^[-*]\s+(.*)$/.exec(raw);
|
|
||||||
if (item) {
|
|
||||||
flush();
|
|
||||||
block = { kind: 'change', lines: [item[1]] };
|
|
||||||
} else if (block) {
|
|
||||||
block.lines.push(raw.trim());
|
|
||||||
} else {
|
|
||||||
block = { kind: 'note', lines: [raw.trim()] };
|
|
||||||
}
|
|
||||||
}
|
|
||||||
flush();
|
|
||||||
return entries;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------- core THIRD_PARTY_NOTICES.md (core/tools/third_party_notices.py) ----------
|
|
||||||
|
|
||||||
const CRATES_IO_INDEX = 'registry+https://github.com/rust-lang/crates.io-index';
|
|
||||||
|
|
||||||
function crateRepository(name, version, source) {
|
|
||||||
if (source === CRATES_IO_INDEX) return `https://crates.io/crates/${encodeURIComponent(name)}/${encodeURIComponent(version)}`;
|
|
||||||
const git = /^git\+(https:\/\/[^?#\s]+)/.exec(source);
|
|
||||||
return git ? git[1].replace(/\.git$/, '') : null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Fenced text blocks following a `### a 1.0 (FILE); b 2.0 (FILE)` header, keyed by "name version". */
|
|
||||||
function parseCoreNotices(markdown) {
|
|
||||||
const lines = String(markdown).split(/\r?\n/);
|
|
||||||
const crates = [];
|
|
||||||
let intro = '';
|
|
||||||
let i = 0;
|
|
||||||
for (; i < lines.length && !lines[i].startsWith('| '); i++) {
|
|
||||||
if (!lines[i].startsWith('#') && lines[i].trim()) intro += `${intro ? ' ' : ''}${lines[i].trim()}`;
|
|
||||||
}
|
|
||||||
for (; i < lines.length && lines[i].startsWith('|'); i++) {
|
|
||||||
const cells = lines[i].split('|').slice(1, -1).map((cell) => cell.trim());
|
|
||||||
if (cells.length !== 4 || cells[0] === 'Crate' || /^-+$/.test(cells[0])) continue;
|
|
||||||
const [name, version, license, source] = cells;
|
|
||||||
crates.push({ name, version, license, repository: crateRepository(name, version, source), texts: [] });
|
|
||||||
}
|
|
||||||
const byKey = new Map(crates.map((crate) => [`${crate.name} ${crate.version}`, crate]));
|
|
||||||
const extra = [];
|
|
||||||
let header = null;
|
|
||||||
let fence = null;
|
|
||||||
for (; i < lines.length; i++) {
|
|
||||||
const line = lines[i];
|
|
||||||
if (fence) {
|
|
||||||
if (line.startsWith('```')) {
|
|
||||||
const text = fence.join('\n');
|
|
||||||
if (header.kind === 'section') extra.push({ name: header.title, version: null, license: null, repository: null, texts: [{ label: null, text }] });
|
|
||||||
else {
|
|
||||||
for (const { key, label } of header.owners) byKey.get(key)?.texts.push({ label, text });
|
|
||||||
}
|
|
||||||
fence = null;
|
|
||||||
header = null;
|
|
||||||
} else fence.push(line);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (line.startsWith('### ')) {
|
|
||||||
const owners = [];
|
|
||||||
// "a 1.0 (LICENSE-MIT); b 2.0 (LICENSE)"; a label may itself contain "; " (crates without a license file).
|
|
||||||
for (const m of line.slice(4).matchAll(/(?:^|; )([^\s;()]+) ([^\s;()]+) \(([^)]*)\)/g)) {
|
|
||||||
owners.push({ key: `${m[1]} ${m[2]}`, label: m[3] });
|
|
||||||
}
|
|
||||||
header = { kind: 'texts', owners };
|
|
||||||
} else if (line.startsWith('## ') && line.trim() !== '## License texts') {
|
|
||||||
// e.g. "## libopus (bundled in audiopus_sys, statically linked)"
|
|
||||||
header = { kind: 'section', title: line.slice(3).trim() };
|
|
||||||
} else if (line.startsWith('```') && header) {
|
|
||||||
fence = [];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return { intro, entries: [...extra, ...crates] };
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------- app/renderer/vendor/THIRD_PARTY_NOTICES.txt (scripts/vendor-chat-notices.mjs) ----------
|
|
||||||
|
|
||||||
const VENDOR_HEADER = /^===== (.+)@([^@\s]+) \((.*)\) =====$/;
|
|
||||||
|
|
||||||
function parseVendorNotices(text) {
|
|
||||||
const lines = String(text).split(/\r?\n/);
|
|
||||||
const preface = [];
|
|
||||||
const entries = [];
|
|
||||||
let current = null;
|
|
||||||
for (const line of lines) {
|
|
||||||
const header = VENDOR_HEADER.exec(line);
|
|
||||||
if (header) {
|
|
||||||
if (current) entries.push(current);
|
|
||||||
current = { name: header[1], version: header[2], license: header[3].replace(/^\((.*)\)$/, '$1'), lines: [] };
|
|
||||||
} else if (current) current.lines.push(line);
|
|
||||||
else if (line.trim()) preface.push(line.trim());
|
|
||||||
}
|
|
||||||
if (current) entries.push(current);
|
|
||||||
return {
|
|
||||||
// The first line is the file title; the rest states the inventory's scope.
|
|
||||||
intro: preface.slice(1).join(' '),
|
|
||||||
entries: entries.map(({ lines: body, ...entry }) => ({ ...entry, text: body.join('\n').trim() })),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------- Electron LICENSES.chromium.html ----------
|
|
||||||
|
|
||||||
const ENTITIES = { amp: '&', lt: '<', gt: '>', quot: '"', apos: "'", nbsp: '\u00a0' };
|
|
||||||
function decodeEntities(text) {
|
|
||||||
return text.replace(/&(#x[0-9a-f]+|#\d+|[a-z]+);/gi, (all, code) => {
|
|
||||||
if (code[0] === '#') {
|
|
||||||
const n = code[1] === 'x' || code[1] === 'X' ? parseInt(code.slice(2), 16) : parseInt(code.slice(1), 10);
|
|
||||||
return Number.isInteger(n) && n >= 0 && n <= 0x10ffff ? String.fromCodePoint(n) : all;
|
|
||||||
}
|
|
||||||
return ENTITIES[code.toLowerCase()] ?? all;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
const PRODUCT_TITLE = /^\s*<span class="title">([\s\S]*?)<\/span>/;
|
|
||||||
const PRODUCT_HOMEPAGE = /<span class="homepage"><a href="([^"]*)">/;
|
|
||||||
const PRODUCT_LICENSE = /<pre>([\s\S]*?)<\/pre>/;
|
|
||||||
|
|
||||||
/** Chromium credits page (tools/licenses/licenses.py): one product per <div class="product">. */
|
|
||||||
function parseChromiumCredits(html) {
|
|
||||||
const products = [];
|
|
||||||
for (const chunk of String(html).split('<div class="product">').slice(1)) {
|
|
||||||
const title = PRODUCT_TITLE.exec(chunk);
|
|
||||||
const license = PRODUCT_LICENSE.exec(chunk);
|
|
||||||
if (!title || !license) continue;
|
|
||||||
const homepage = PRODUCT_HOMEPAGE.exec(chunk);
|
|
||||||
const url = homepage ? decodeEntities(homepage[1]) : null;
|
|
||||||
products.push({
|
|
||||||
name: decodeEntities(title[1]).trim(),
|
|
||||||
repository: url && /^https?:\/\//i.test(url) ? url : null,
|
|
||||||
text: decodeEntities(license[1]),
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return products;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------- production npm dependencies ----------
|
|
||||||
|
|
||||||
/** package.json "repository" → https URL, or null when it is not a recognisable public URL. */
|
|
||||||
function npmRepository(repository) {
|
|
||||||
let url = typeof repository === 'string' ? repository : repository && typeof repository.url === 'string' ? repository.url : null;
|
|
||||||
if (!url) return null;
|
|
||||||
url = url.trim();
|
|
||||||
// npm shorthand: "user/repo" and "github:user/repo" denote GitHub.
|
|
||||||
const shorthand = /^(?:github:)?([\w.-]+)\/([\w.-]+)$/.exec(url);
|
|
||||||
if (shorthand) return `https://github.com/${shorthand[1]}/${shorthand[2].replace(/\.git$/, '')}`;
|
|
||||||
url = url.replace(/^git\+/, '')
|
|
||||||
.replace(/^git@([^:]+):/, 'https://$1/')
|
|
||||||
.replace(/^ssh:\/\/git@/, 'https://')
|
|
||||||
.replace(/^git:\/\//, 'https://')
|
|
||||||
.replace(/\.git$/, '');
|
|
||||||
return /^https:\/\/[^\s/]+\/\S+$/.test(url) ? url : null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Node resolution of `name` required from `fromDir`, staying inside `rootDir`. */
|
|
||||||
function resolvePackage(fromDir, name, rootDir) {
|
|
||||||
let dir = fromDir;
|
|
||||||
for (;;) {
|
|
||||||
const candidate = path.join(dir, 'node_modules', name);
|
|
||||||
if (fs.existsSync(path.join(candidate, 'package.json'))) return candidate;
|
|
||||||
if (path.resolve(dir) === path.resolve(rootDir)) return null;
|
|
||||||
const parent = path.dirname(dir);
|
|
||||||
if (parent === dir) return null;
|
|
||||||
dir = parent;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Runtime `dependencies` (plus installed optional ones) reachable from the application's package.json. */
|
|
||||||
function collectProductionPackages(appDir) {
|
|
||||||
const found = new Map();
|
|
||||||
const missing = [];
|
|
||||||
const visit = (dir, manifest) => {
|
|
||||||
const names = new Set([...Object.keys(manifest.dependencies ?? {}), ...Object.keys(manifest.optionalDependencies ?? {})]);
|
|
||||||
for (const name of names) {
|
|
||||||
const location = resolvePackage(dir, name, appDir);
|
|
||||||
if (!location) {
|
|
||||||
if (!manifest.optionalDependencies?.[name]) missing.push(name);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (found.has(location)) continue;
|
|
||||||
let pkg;
|
|
||||||
try { pkg = JSON.parse(fs.readFileSync(path.join(location, 'package.json'), 'utf8')); } catch { missing.push(name); continue; }
|
|
||||||
let files = [];
|
|
||||||
try { files = fs.readdirSync(location).filter((file) => LICENSE_FILE.test(file)).sort(); } catch { /* unreadable */ }
|
|
||||||
const license = typeof pkg.license === 'string' ? pkg.license
|
|
||||||
: Array.isArray(pkg.licenses) ? pkg.licenses.map((l) => l?.type ?? l).filter((l) => typeof l === 'string').join(' OR ') || null
|
|
||||||
: pkg.license?.type ?? null;
|
|
||||||
found.set(location, { name: pkg.name ?? name, version: pkg.version ?? null, license, repository: npmRepository(pkg.repository), location, files });
|
|
||||||
visit(location, pkg);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
const root = JSON.parse(fs.readFileSync(path.join(appDir, 'package.json'), 'utf8'));
|
|
||||||
visit(appDir, root);
|
|
||||||
const packages = [...found.values()].sort((a, b) => a.name.localeCompare(b.name) || String(a.version).localeCompare(String(b.version)));
|
|
||||||
return { packages, missing: [...new Set(missing)].sort() };
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------- service ----------
|
|
||||||
|
|
||||||
const OS_DIR = { win32: 'win', darwin: 'mac', linux: 'linux' };
|
|
||||||
|
|
||||||
/** Fixed file locations for this installation; only main decides them. */
|
|
||||||
function informationPaths({ isPackaged, appRoot, appPath, resourcesPath, execPath, rendererDir, platform, arch }) {
|
|
||||||
const exeDir = path.dirname(execPath);
|
|
||||||
// Packaged: electron-builder renames Electron's LICENSE to LICENSE.electron.txt beside the executable
|
|
||||||
// (macOS: inside Contents/Resources). Development: node_modules/electron/dist (macOS: beside Electron.app).
|
|
||||||
const electronLicenses = isPackaged
|
|
||||||
? [path.join(exeDir, 'LICENSE.electron.txt'), path.join(resourcesPath, 'LICENSE.electron.txt')]
|
|
||||||
: [path.join(exeDir, 'LICENSE'), ...(platform === 'darwin' ? [path.resolve(exeDir, '..', '..', '..', 'LICENSE')] : [])];
|
|
||||||
const chromiumCredits = [path.join(exeDir, 'LICENSES.chromium.html'),
|
|
||||||
...(platform === 'darwin' ? [isPackaged ? path.join(resourcesPath, 'LICENSES.chromium.html') : path.resolve(exeDir, '..', '..', '..', 'LICENSES.chromium.html')] : [])];
|
|
||||||
const electronFiles = { electronLicenses, chromiumCredits };
|
|
||||||
if (isPackaged) {
|
|
||||||
return {
|
|
||||||
changelog: [path.join(resourcesPath, 'CHANGELOG.md')],
|
|
||||||
licensesDir: path.join(resourcesPath, 'licenses'),
|
|
||||||
coreNotices: [path.join(resourcesPath, 'licenses', 'teamspeach-core-THIRD_PARTY_NOTICES.md')],
|
|
||||||
appDir: appPath,
|
|
||||||
vendorDir: path.join(rendererDir, 'vendor'),
|
|
||||||
...electronFiles,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
changelog: [path.join(appRoot, 'CHANGELOG.md')],
|
|
||||||
licensesDir: path.join(appRoot, 'LICENSES'),
|
|
||||||
coreNotices: [
|
|
||||||
path.join(appRoot, 'core-bin', `${OS_DIR[platform] ?? platform}-${arch}`, 'THIRD_PARTY_NOTICES.md'),
|
|
||||||
path.join(appRoot, 'core', 'THIRD_PARTY_NOTICES.md'),
|
|
||||||
],
|
|
||||||
appDir: appRoot,
|
|
||||||
vendorDir: path.join(rendererDir, 'vendor'),
|
|
||||||
...electronFiles,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
// Known files of the licenses folder (LICENSES/NOTICE.md describes each); others are listed by file name.
|
|
||||||
const LICENSE_DIR_NAMES = {
|
|
||||||
'NOTICE.md': { name: 'TeamsPeach', order: 0 },
|
|
||||||
'NotoSans-OFL.txt': { name: 'Noto Sans', license: 'OFL-1.1', order: 1 },
|
|
||||||
'sonora-NOTICE.txt': { name: 'sonora', license: 'BSD-3-Clause', order: 2 },
|
|
||||||
'teamspeak-client-icons-PROVENANCE.md': { name: 'TeamSpeak 6 client icons', order: 3 },
|
|
||||||
};
|
|
||||||
const CORE_NOTICES_FILE = 'teamspeach-core-THIRD_PARTY_NOTICES.md';
|
|
||||||
|
|
||||||
async function readFirst(candidates, maxBytes) {
|
|
||||||
for (const file of candidates) {
|
|
||||||
try {
|
|
||||||
const stat = await fsp.stat(file);
|
|
||||||
if (!stat.isFile()) continue;
|
|
||||||
if (stat.size > maxBytes) throw Object.assign(new Error(`${path.basename(file)} is too large`), { code: 'too_large' });
|
|
||||||
return { file, text: await fsp.readFile(file, 'utf8') };
|
|
||||||
} catch (err) {
|
|
||||||
if (err.code === 'too_large') throw err;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
function missingError(candidates) {
|
|
||||||
return { code: 'missing', file: path.basename(candidates[0]) };
|
|
||||||
}
|
|
||||||
|
|
||||||
function createInformationService(options) {
|
|
||||||
const paths = informationPaths(options);
|
|
||||||
const electronVersion = options.electronVersion ?? null;
|
|
||||||
let changelog = null;
|
|
||||||
let index = null;
|
|
||||||
|
|
||||||
async function getChangelog() {
|
|
||||||
if (!changelog) {
|
|
||||||
changelog = (async () => {
|
|
||||||
const found = await readFirst(paths.changelog, MAX_CHANGELOG_BYTES);
|
|
||||||
if (!found) return { ok: false, error: missingError(paths.changelog) };
|
|
||||||
return { ok: true, entries: parseChangelog(found.text) };
|
|
||||||
})().catch((err) => { changelog = null; return { ok: false, error: { code: err.code === 'too_large' ? 'too_large' : 'unreadable', file: 'CHANGELOG.md' } }; });
|
|
||||||
}
|
|
||||||
return changelog;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Each group: { id, note, error, entries: [{ name, version, license, repository, load: () => Promise<string> }] }
|
|
||||||
async function teamspeachGroup() {
|
|
||||||
let files;
|
|
||||||
try { files = await fsp.readdir(paths.licensesDir); } catch { return { id: 'teamspeach', error: missingError([paths.licensesDir]), entries: [] }; }
|
|
||||||
const entries = files
|
|
||||||
.filter((file) => file !== CORE_NOTICES_FILE && /\.(md|txt)$/i.test(file))
|
|
||||||
.map((file) => ({ file, known: LICENSE_DIR_NAMES[file] }))
|
|
||||||
.sort((a, b) => (a.known?.order ?? 99) - (b.known?.order ?? 99) || a.file.localeCompare(b.file))
|
|
||||||
.map(({ file, known }) => ({
|
|
||||||
name: known?.name ?? file,
|
|
||||||
version: null,
|
|
||||||
license: known?.license ?? null,
|
|
||||||
repository: null,
|
|
||||||
load: () => fsp.readFile(path.join(paths.licensesDir, file), 'utf8'),
|
|
||||||
}));
|
|
||||||
return { id: 'teamspeach', entries };
|
|
||||||
}
|
|
||||||
|
|
||||||
async function electronGroups() {
|
|
||||||
const { electronLicenses: electronLicense, chromiumCredits } = paths;
|
|
||||||
const electron = await readFirst(electronLicense, MAX_NOTICE_BYTES);
|
|
||||||
const electronGroup = electron
|
|
||||||
? { id: 'electron', entries: [{ name: 'Electron', version: electronVersion, license: 'MIT', repository: null, load: async () => electron.text }] }
|
|
||||||
: { id: 'electron', error: missingError(['LICENSE.electron.txt']), entries: [] };
|
|
||||||
const chromium = await readFirst(chromiumCredits, MAX_NOTICE_BYTES);
|
|
||||||
if (!chromium) return [electronGroup, { id: 'chromium', error: missingError(chromiumCredits), entries: [] }];
|
|
||||||
const products = parseChromiumCredits(chromium.text);
|
|
||||||
const chromiumGroup = {
|
|
||||||
id: 'chromium',
|
|
||||||
entries: products.map(({ name, repository, text }) => ({ name, version: null, license: null, repository, load: async () => text })),
|
|
||||||
};
|
|
||||||
if (!products.length) chromiumGroup.error = { code: 'unparsed', file: 'LICENSES.chromium.html' };
|
|
||||||
return [electronGroup, chromiumGroup];
|
|
||||||
}
|
|
||||||
|
|
||||||
function npmGroup() {
|
|
||||||
let result;
|
|
||||||
try { result = collectProductionPackages(paths.appDir); } catch { return { id: 'npm', error: missingError([path.join(paths.appDir, 'package.json')]), entries: [] }; }
|
|
||||||
const group = {
|
|
||||||
id: 'npm',
|
|
||||||
entries: result.packages.map((pkg) => ({
|
|
||||||
name: pkg.name,
|
|
||||||
version: pkg.version,
|
|
||||||
license: pkg.license,
|
|
||||||
repository: pkg.repository,
|
|
||||||
noLicenseFile: pkg.files.length === 0,
|
|
||||||
load: async () => {
|
|
||||||
const parts = [];
|
|
||||||
for (const file of pkg.files) parts.push(`--- ${file} ---\n${(await fsp.readFile(path.join(pkg.location, file), 'utf8')).trim()}`);
|
|
||||||
return parts.join('\n\n');
|
|
||||||
},
|
|
||||||
})),
|
|
||||||
};
|
|
||||||
if (result.missing.length) group.error = { code: 'missing_packages', file: result.missing.join(', ') };
|
|
||||||
return group;
|
|
||||||
}
|
|
||||||
|
|
||||||
async function coreGroup() {
|
|
||||||
const found = await readFirst(paths.coreNotices, MAX_NOTICE_BYTES);
|
|
||||||
if (!found) return { id: 'core', error: missingError(paths.coreNotices), entries: [] };
|
|
||||||
const parsed = parseCoreNotices(found.text);
|
|
||||||
return {
|
|
||||||
id: 'core',
|
|
||||||
note: parsed.intro,
|
|
||||||
entries: parsed.entries.map((crate) => ({
|
|
||||||
name: crate.name,
|
|
||||||
version: crate.version,
|
|
||||||
license: crate.license,
|
|
||||||
repository: crate.repository,
|
|
||||||
noLicenseFile: crate.texts.length === 0,
|
|
||||||
load: async () => crate.texts.map(({ label, text }) => (label ? `--- ${label} ---\n${text}` : text)).join('\n\n'),
|
|
||||||
})),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
async function rendererGroup() {
|
|
||||||
const file = path.join(paths.vendorDir, 'THIRD_PARTY_NOTICES.txt');
|
|
||||||
let text;
|
|
||||||
try { text = await fsp.readFile(file, 'utf8'); } catch { return { id: 'renderer', error: missingError([file]), entries: [] }; }
|
|
||||||
const parsed = parseVendorNotices(text);
|
|
||||||
let fromRegistry = new Set();
|
|
||||||
try {
|
|
||||||
const deps = JSON.parse(await fsp.readFile(path.join(paths.vendorDir, 'DEPENDENCIES.json'), 'utf8'));
|
|
||||||
fromRegistry = new Set((deps.packages ?? []).filter((p) => typeof p.resolved === 'string' && p.resolved.startsWith('https://registry.npmjs.org/')).map((p) => `${p.name}@${p.version}`));
|
|
||||||
} catch { /* inventory without registry provenance: no links */ }
|
|
||||||
return {
|
|
||||||
id: 'renderer',
|
|
||||||
note: parsed.intro,
|
|
||||||
entries: parsed.entries.map((entry) => ({
|
|
||||||
name: entry.name,
|
|
||||||
version: entry.version,
|
|
||||||
license: entry.license,
|
|
||||||
repository: fromRegistry.has(`${entry.name}@${entry.version}`) ? `https://www.npmjs.com/package/${entry.name}/v/${entry.version}` : null,
|
|
||||||
load: async () => entry.text,
|
|
||||||
})),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
async function buildIndex() {
|
|
||||||
const settle = (promise, id) => Promise.resolve().then(promise).catch(() => ({ id, error: { code: 'unreadable', file: id }, entries: [] }));
|
|
||||||
const results = await Promise.all([
|
|
||||||
settle(teamspeachGroup, 'teamspeach'),
|
|
||||||
settle(electronGroups, 'electron'),
|
|
||||||
settle(npmGroup, 'npm'),
|
|
||||||
settle(coreGroup, 'core'),
|
|
||||||
settle(rendererGroup, 'renderer'),
|
|
||||||
]);
|
|
||||||
const groups = results.flat().sort((a, b) => GROUP_ORDER.indexOf(a.id) - GROUP_ORDER.indexOf(b.id));
|
|
||||||
const byId = new Map();
|
|
||||||
for (const group of groups) {
|
|
||||||
group.entries.forEach((entry, i) => {
|
|
||||||
entry.id = `${group.id}:${i}`;
|
|
||||||
byId.set(entry.id, entry);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return { groups, byId };
|
|
||||||
}
|
|
||||||
|
|
||||||
async function ensureIndex() {
|
|
||||||
if (!index) index = buildIndex().catch((err) => { index = null; throw err; });
|
|
||||||
return index;
|
|
||||||
}
|
|
||||||
|
|
||||||
async function getLicenses() {
|
|
||||||
try {
|
|
||||||
const { groups } = await ensureIndex();
|
|
||||||
return {
|
|
||||||
ok: true,
|
|
||||||
groups: groups.map((group) => ({
|
|
||||||
id: group.id,
|
|
||||||
note: group.note ?? null,
|
|
||||||
error: group.error ?? null,
|
|
||||||
entries: group.entries.map(({ id, name, version, license, repository, noLicenseFile }) => ({ id, name, version, license, repository, noLicenseFile: noLicenseFile === true })),
|
|
||||||
})),
|
|
||||||
};
|
|
||||||
} catch {
|
|
||||||
return { ok: false, error: { code: 'unreadable', file: null } };
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async function getLicenseText(id) {
|
|
||||||
if (typeof id !== 'string' || id.length > 64 || !/^[a-z]+:\d+$/.test(id)) return { ok: false, error: { code: 'bad_request', file: null } };
|
|
||||||
let entry;
|
|
||||||
try { entry = (await ensureIndex()).byId.get(id); } catch { entry = null; }
|
|
||||||
if (!entry) return { ok: false, error: { code: 'not_found', file: null } };
|
|
||||||
try {
|
|
||||||
return { ok: true, id, name: entry.name, version: entry.version, license: entry.license, text: await entry.load() };
|
|
||||||
} catch {
|
|
||||||
return { ok: false, error: { code: 'unreadable', file: null } };
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return { getChangelog, getLicenses, getLicenseText, paths };
|
|
||||||
}
|
|
||||||
|
|
||||||
function registerInformationIpc({ ipcMain, trustedSender, service }) {
|
|
||||||
const forbidden = { ok: false, error: { code: 'forbidden', file: null } };
|
|
||||||
ipcMain.handle('about:changelog', (event) => (trustedSender(event) ? service.getChangelog() : forbidden));
|
|
||||||
ipcMain.handle('about:licenses', (event) => (trustedSender(event) ? service.getLicenses() : forbidden));
|
|
||||||
ipcMain.handle('about:license-text', (event, id) => (trustedSender(event) ? service.getLicenseText(id) : forbidden));
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
parseChangelog,
|
|
||||||
parseCoreNotices,
|
|
||||||
parseVendorNotices,
|
|
||||||
parseChromiumCredits,
|
|
||||||
collectProductionPackages,
|
|
||||||
npmRepository,
|
|
||||||
informationPaths,
|
|
||||||
createInformationService,
|
|
||||||
registerInformationIpc,
|
|
||||||
};
|
|
||||||
@@ -1,277 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
const { createAdminValidators } = require('./admin-validate');
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Allowlist + argument-shape validation for renderer → core requests.
|
|
||||||
* The renderer may only call these bridge commands; `shutdown`, `audio_frame` and `audio_end`
|
|
||||||
* are main-owned (audio has its own binary IPC channel). Unknown keys are rejected like the core does.
|
|
||||||
*/
|
|
||||||
|
|
||||||
class ValidationError extends Error {
|
|
||||||
constructor(message) {
|
|
||||||
super(message);
|
|
||||||
this.code = 'bad_request';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const CONTROL_CHARS = /[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/;
|
|
||||||
|
|
||||||
const str = (min, max, { multiline = false, maxBytes } = {}) => (value, key) => {
|
|
||||||
if (typeof value !== 'string') throw new ValidationError(`${key}: expected a string`);
|
|
||||||
if (value.length < min || value.length > max) throw new ValidationError(`${key}: invalid length`);
|
|
||||||
if (maxBytes !== undefined && Buffer.byteLength(value, 'utf8') > maxBytes) throw new ValidationError(`${key}: too long`);
|
|
||||||
if (multiline ? CONTROL_CHARS.test(value) : /[\u0000-\u001f\u007f]/.test(value)) {
|
|
||||||
throw new ValidationError(`${key}: control characters are not allowed`);
|
|
||||||
}
|
|
||||||
return value;
|
|
||||||
};
|
|
||||||
|
|
||||||
const posInt = (value, key) => {
|
|
||||||
if (!Number.isSafeInteger(value) || value < 0) throw new ValidationError(`${key}: expected a non-negative integer`);
|
|
||||||
return value;
|
|
||||||
};
|
|
||||||
|
|
||||||
const bool = (value, key) => {
|
|
||||||
if (typeof value !== 'boolean') throw new ValidationError(`${key}: expected true/false`);
|
|
||||||
return value;
|
|
||||||
};
|
|
||||||
|
|
||||||
const oneOf = (...allowed) => (value, key) => {
|
|
||||||
if (!allowed.includes(value)) throw new ValidationError(`${key}: value not allowed`);
|
|
||||||
return value;
|
|
||||||
};
|
|
||||||
|
|
||||||
const optional = (check) => {
|
|
||||||
const wrapped = (value, key) => check(value, key);
|
|
||||||
wrapped.optional = true;
|
|
||||||
return wrapped;
|
|
||||||
};
|
|
||||||
|
|
||||||
function isPlainObject(value) {
|
|
||||||
return value !== null && typeof value === 'object' && Object.getPrototypeOf(value) === Object.prototype;
|
|
||||||
}
|
|
||||||
|
|
||||||
function shape(spec) {
|
|
||||||
return (args) => {
|
|
||||||
if (args === undefined || args === null) args = {};
|
|
||||||
if (!isPlainObject(args)) throw new ValidationError('args: expected an object');
|
|
||||||
for (const key of Object.keys(args)) {
|
|
||||||
if (!Object.prototype.hasOwnProperty.call(spec, key)) throw new ValidationError(`${key}: unknown argument`);
|
|
||||||
}
|
|
||||||
const out = {};
|
|
||||||
for (const [key, check] of Object.entries(spec)) {
|
|
||||||
const value = args[key];
|
|
||||||
if (value === undefined) {
|
|
||||||
if (!check.optional) throw new ValidationError(`${key}: required argument`);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
out[key] = check(value, key);
|
|
||||||
}
|
|
||||||
return out;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
const streamId = str(1, 256);
|
|
||||||
const SIGNAL_COMMANDS = new Set(['answer', 'iceCandidate', 'reconnectOffer']);
|
|
||||||
|
|
||||||
function signalJson(value) {
|
|
||||||
if (!isPlainObject(value)) throw new ValidationError('json: expected an object');
|
|
||||||
const keys = Object.keys(value);
|
|
||||||
if (keys.length !== 2 || !keys.includes('cmd') || !keys.includes('args')) throw new ValidationError('json: expected exactly the fields cmd and args');
|
|
||||||
if (!SIGNAL_COMMANDS.has(value.cmd)) throw new ValidationError('json.cmd: signalling command not allowed');
|
|
||||||
const args = value.args;
|
|
||||||
if (!isPlainObject(args)) throw new ValidationError('json.args: expected an object');
|
|
||||||
if (value.cmd === 'answer') {
|
|
||||||
shape({ answer: str(1, 60000, { multiline: true }) })(args);
|
|
||||||
} else if (value.cmd === 'reconnectOffer') {
|
|
||||||
shape({ offer: str(1, 60000, { multiline: true }) })(args);
|
|
||||||
} else {
|
|
||||||
shape({
|
|
||||||
mLine: posInt,
|
|
||||||
mid: str(0, 64),
|
|
||||||
sdp: str(0, 2048),
|
|
||||||
})(args);
|
|
||||||
}
|
|
||||||
const serialized = JSON.stringify(value);
|
|
||||||
if (Buffer.byteLength(serialized, 'utf8') > 60 * 1024) throw new ValidationError('json: larger than 60 KiB');
|
|
||||||
return JSON.parse(serialized);
|
|
||||||
}
|
|
||||||
|
|
||||||
const boundedInt = (min, max) => (value, key) => {
|
|
||||||
if (!Number.isSafeInteger(value) || value < min || value > max) throw new ValidationError(`${key}: integer out of range`);
|
|
||||||
return value;
|
|
||||||
};
|
|
||||||
const modifierDb = (value, key) => {
|
|
||||||
if (typeof value !== 'number' || !Number.isFinite(value) || value < -200 || value > 10 || !Number.isInteger(value * 2)) throw new ValidationError(`${key}: expected dB -200..10 in 0.5 steps`);
|
|
||||||
return value;
|
|
||||||
};
|
|
||||||
/** Server-side file path: absolute within the channel's file area ("/…"), no control characters. */
|
|
||||||
const filePath = (value, key) => {
|
|
||||||
str(1, 512)(value, key);
|
|
||||||
if (!value.startsWith('/')) throw new ValidationError(`${key}: expected a path starting with /`);
|
|
||||||
return value;
|
|
||||||
};
|
|
||||||
const channelPassword = str(0, 255);
|
|
||||||
const clientTarget = { client_id: boundedInt(1, 65535), uid: str(1, 128) };
|
|
||||||
const menuActionArgs = {
|
|
||||||
poke: { message: str(1, 1024, { maxBytes: 1024 }) },
|
|
||||||
connection_info: {}, commander: { enabled: bool },
|
|
||||||
move_to_own_channel: { password: optional(str(0, 1024, { maxBytes: 1024 })) },
|
|
||||||
delete_avatar: {},
|
|
||||||
server_group: { group_id: boundedInt(1, Number.MAX_SAFE_INTEGER), enabled: bool },
|
|
||||||
channel_group: { group_id: boundedInt(1, Number.MAX_SAFE_INTEGER), channel_id: boundedInt(1, Number.MAX_SAFE_INTEGER) },
|
|
||||||
client_permissions: {}, channel_permissions: { channel_id: boundedInt(1, Number.MAX_SAFE_INTEGER) },
|
|
||||||
set_client_permission: { permission_id: boundedInt(1, 0xffffffff), value: (v,k) => v === null ? null : boundedInt(-2147483648,2147483647)(v,k), skip: bool },
|
|
||||||
set_channel_permission: { channel_id: boundedInt(1, Number.MAX_SAFE_INTEGER), permission_id: boundedInt(1,0xffffffff), value: (v,k) => v === null ? null : boundedInt(-2147483648,2147483647)(v,k) },
|
|
||||||
kick_channel: { reason: str(0,1024,{ maxBytes:1024 }) },
|
|
||||||
kick_server: { reason: str(0,1024,{ maxBytes:1024 }) },
|
|
||||||
ban: { reason: str(0,1024,{ maxBytes:1024 }), duration: boundedInt(0,0xffffffff) },
|
|
||||||
volume: { db: modifierDb, muted: bool },
|
|
||||||
avatar: { data: (v,k) => {
|
|
||||||
str(1,174764)(v,k);
|
|
||||||
if (!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(v)) throw new ValidationError('avatar: invalid base64');
|
|
||||||
const bytes=Buffer.from(v,'base64');
|
|
||||||
if (bytes.length > 128*1024 || !(bytes.subarray(0,8).equals(Buffer.from([137,80,78,71,13,10,26,10])) || bytes.subarray(0,3).equals(Buffer.from([255,216,255])))) throw new ValidationError('avatar: expected PNG/JPEG <=128 KiB');
|
|
||||||
return v;
|
|
||||||
} },
|
|
||||||
};
|
|
||||||
function clientAction(args) {
|
|
||||||
if (!isPlainObject(args) || !Object.prototype.hasOwnProperty.call(menuActionArgs,args.action)) throw new ValidationError('action: unknown client action');
|
|
||||||
return shape({ ...clientTarget, generation: boundedInt(1,Number.MAX_SAFE_INTEGER), action: oneOf(args.action), ...menuActionArgs[args.action] })(args);
|
|
||||||
}
|
|
||||||
|
|
||||||
const streamMetadata = {
|
|
||||||
name: str(1, 200), type: oneOf(1, 2, 3), accessibility: oneOf(1, 2, 3), mode: oneOf(1),
|
|
||||||
bitrate: boundedInt(100, 100000), viewer_limit: boundedInt(0, 65535), audio: bool,
|
|
||||||
};
|
|
||||||
|
|
||||||
const boundedArray = (max, item) => (value, key) => {
|
|
||||||
if (!Array.isArray(value) || value.length > max) throw new ValidationError(`${key}: expected at most ${max} items`);
|
|
||||||
return value.map((v, i) => item(v, `${key}[${i}]`));
|
|
||||||
};
|
|
||||||
function whisperTarget(value, key) {
|
|
||||||
if (!isPlainObject(value)) throw new ValidationError(`${key}: expected an object`);
|
|
||||||
switch (value.kind) {
|
|
||||||
case 'list': return shape({ kind: oneOf('list'), entries: boundedArray(1024, shape({ type: boundedInt(0, 255), uuid: str(0, 256), name: str(0, 8192, { maxBytes: 8192 }) })) })(value);
|
|
||||||
case 'group': return shape({ kind: oneOf('group'), group_type: boundedInt(0, 3), target_mode: boundedInt(0, 6), group_id: str(0, 20), server_uuid: str(0, 256) })(value);
|
|
||||||
case 'ids': return shape({ kind: oneOf('ids'), clients: boundedArray(255, shape({ id: boundedInt(1, 65535), uid: (u, k) => u === null ? null : str(1, 128)(u, k) })), channel_ids: boundedArray(255, boundedInt(1, Number.MAX_SAFE_INTEGER)) })(value);
|
|
||||||
default: throw new ValidationError(`${key}.kind: expected list, group or ids`);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const COMMANDS = {
|
|
||||||
...createAdminValidators({ shape, bool, boundedInt, optional, oneOf, isPlainObject, ValidationError }),
|
|
||||||
whisper_start: shape({ epoch: boundedInt(1, 0xffffffff), target: whisperTarget }),
|
|
||||||
whisper_stop: shape({ epoch: boundedInt(1, 0xffffffff) }),
|
|
||||||
set_whisper_receive: shape({ mode: oneOf('allow_all', 'deny_all') }),
|
|
||||||
profile_get: shape({}),
|
|
||||||
profile_create: shape({ nickname: str(1, 64) }),
|
|
||||||
rename: shape({ nickname: str(1, 64) }),
|
|
||||||
connect: shape({
|
|
||||||
address: str(1, 255),
|
|
||||||
server_password: optional(str(0, 255)),
|
|
||||||
channel: optional(str(1, 512)),
|
|
||||||
channel_password: optional(str(0, 255)),
|
|
||||||
identity_id: optional((v, k) => { if (typeof v !== 'string' || !/^[A-Za-z0-9+/]{27}=$/.test(v)) throw new ValidationError(`${k}: invalid identity UID`); return v; }),
|
|
||||||
// Per-connection override (bookmark nickname); same bound as rename, the core enforces 3-30 trimmed chars.
|
|
||||||
nickname: optional(str(1, 64)),
|
|
||||||
}),
|
|
||||||
disconnect: shape({ message: optional(str(0, 80)) }),
|
|
||||||
join_channel: shape({ channel_id: posInt, password: optional(str(0, 255)) }),
|
|
||||||
send_text: (args) => {
|
|
||||||
const out = shape({
|
|
||||||
target: oneOf('channel', 'server', 'client'),
|
|
||||||
client_id: optional(posInt),
|
|
||||||
expected_client_uid: optional(str(1, 128)),
|
|
||||||
message: str(1, 8192, { multiline: true, maxBytes: 8192 }),
|
|
||||||
})(args);
|
|
||||||
if ((out.target === 'client') !== (out.client_id !== undefined)) {
|
|
||||||
throw new ValidationError('client_id: required for private messages only');
|
|
||||||
}
|
|
||||||
if ((out.target === 'client') !== (out.expected_client_uid !== undefined)) throw new ValidationError('expected_client_uid: required for private messages only');
|
|
||||||
return out;
|
|
||||||
},
|
|
||||||
set_audio: shape({ input_muted: optional(bool), output_muted: optional(bool) }),
|
|
||||||
set_transmit: (args) => {
|
|
||||||
const out = shape({ mode: oneOf('direct', 'vad'), detector: optional(oneOf('automatic', 'volume_gate', 'hybrid')), sensitivity: optional(oneOf('high', 'normal', 'low')), level_db: optional(boundedInt(-50, 50)) })(args);
|
|
||||||
if (out.mode === 'direct' && (out.detector !== undefined || out.sensitivity !== undefined || out.level_db !== undefined)) throw new ValidationError('set_transmit: detector, sensitivity and level_db apply to vad only');
|
|
||||||
return out;
|
|
||||||
},
|
|
||||||
set_playback_dsp: shape({ agc: bool }),
|
|
||||||
stream_list: shape({ client_id: optional(posInt) }),
|
|
||||||
stream_join: shape({ stream_id: streamId, client_id: posInt, message: optional(str(0, 200)) }),
|
|
||||||
stream_signal: shape({ stream_id: streamId, client_id: posInt, json: signalJson }),
|
|
||||||
stream_leave: shape({ stream_id: streamId, client_id: posInt }),
|
|
||||||
stream_setup: shape(streamMetadata),
|
|
||||||
stream_update: shape({ stream_id: streamId, ...streamMetadata }),
|
|
||||||
stream_stop: shape({ stream_id: streamId }),
|
|
||||||
stream_respond: (args) => {
|
|
||||||
const out = shape({ stream_id: streamId, client_id: boundedInt(1, 65535), decision: bool,
|
|
||||||
offer: str(0, 60000, { multiline: true, maxBytes: 60000 }), message: str(0, 200) })(args);
|
|
||||||
if (out.decision !== (out.offer.length > 0)) throw new ValidationError('offer: required only for acceptance');
|
|
||||||
return out;
|
|
||||||
},
|
|
||||||
stream_remove: shape({ stream_id: streamId, client_id: boundedInt(1, 65535) }),
|
|
||||||
fetch_icon: shape({
|
|
||||||
icon_id: (v, k) => {
|
|
||||||
if (!Number.isSafeInteger(v) || v <= 0 || v > 0xffffffff) throw new ValidationError(`${k}: expected an icon id`);
|
|
||||||
return v;
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
fetch_avatar: shape({ client_id: posInt }),
|
|
||||||
fetch_banner: shape({ channel_id: posInt }),
|
|
||||||
fetch_server_banner: shape({}),
|
|
||||||
client_context: shape(clientTarget),
|
|
||||||
client_action: clientAction,
|
|
||||||
// Local recording (core/src/recording_session.rs). The folder must be the one chosen in the main-owned
|
|
||||||
// folder dialog (recording-main.js); the renderer cannot name another directory.
|
|
||||||
recording_start: (args, context) => shape({
|
|
||||||
directory: (v, key) => {
|
|
||||||
const approved = context.approvedRecordingDirectory?.() ?? null;
|
|
||||||
if (typeof v !== 'string' || approved === null || v !== approved) throw new ValidationError(`${key}: folder was not chosen in the folder dialog`);
|
|
||||||
return v;
|
|
||||||
},
|
|
||||||
mode: oneOf(1, 2, 3),
|
|
||||||
label: optional(str(19, 19)),
|
|
||||||
})(args),
|
|
||||||
recording_stop: shape({}),
|
|
||||||
recording_pause: shape({}),
|
|
||||||
recording_resume: shape({}),
|
|
||||||
recording_status: shape({}),
|
|
||||||
recording_info: shape({}),
|
|
||||||
recording_waveform: shape({ track_id: posInt, from_bucket: posInt }),
|
|
||||||
// Server file browser (legacy file transfer). file_download/file_upload carry host paths and are main-only
|
|
||||||
// (files-main.js), so they are deliberately absent here.
|
|
||||||
file_list: shape({ channel_id: boundedInt(1, Number.MAX_SAFE_INTEGER), path: filePath, channel_password: optional(channelPassword) }),
|
|
||||||
file_mkdir: shape({ channel_id: boundedInt(1, Number.MAX_SAFE_INTEGER), path: filePath, channel_password: optional(channelPassword) }),
|
|
||||||
file_rename: shape({
|
|
||||||
channel_id: boundedInt(1, Number.MAX_SAFE_INTEGER), from: filePath, to: filePath, channel_password: optional(channelPassword),
|
|
||||||
target_channel_id: optional(boundedInt(1, Number.MAX_SAFE_INTEGER)), target_channel_password: optional(channelPassword),
|
|
||||||
}),
|
|
||||||
file_delete: shape({
|
|
||||||
channel_id: boundedInt(1, Number.MAX_SAFE_INTEGER),
|
|
||||||
paths: (v, key) => {
|
|
||||||
if (!Array.isArray(v) || v.length < 1 || v.length > 100) throw new ValidationError(`${key}: expected 1-100 paths`);
|
|
||||||
return v.map((p, i) => filePath(p, `${key}[${i}]`));
|
|
||||||
},
|
|
||||||
channel_password: optional(channelPassword),
|
|
||||||
}),
|
|
||||||
file_cancel: shape({ transfer_id: boundedInt(1, 0xffffffff) }),
|
|
||||||
file_transfers: shape({}),
|
|
||||||
file_fetch_image: shape({ channel_id: boundedInt(1, Number.MAX_SAFE_INTEGER), path: filePath }),
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns sanitized args or throws ValidationError. `context` supplies main-owned facts some commands are
|
|
||||||
* checked against (approvedRecordingDirectory()).
|
|
||||||
*/
|
|
||||||
function validateRequest(cmd, args, context = {}) {
|
|
||||||
if (typeof cmd !== 'string' || !Object.prototype.hasOwnProperty.call(COMMANDS, cmd)) {
|
|
||||||
const err = new ValidationError('Command not allowed');
|
|
||||||
err.code = 'unknown_command';
|
|
||||||
throw err;
|
|
||||||
}
|
|
||||||
return COMMANDS[cmd](args, context);
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = { validateRequest, ValidationError, RENDERER_COMMANDS: Object.keys(COMMANDS) };
|
|
||||||
@@ -1,242 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Key binding schema (keybinds.json version 2): profiles, actions, binding sources, conflicts and the
|
|
||||||
* version 1 → 2 migration. Pure: no file system and no Electron, so it is unit-testable.
|
|
||||||
*
|
|
||||||
* Actions follow the official hotkey action enum (main.js 6.0.0 @2287523): every enum entry except
|
|
||||||
* "Unassigned" has an id here. `kind` is when it runs:
|
|
||||||
* hold – down starts, up ends (official up/down pair: Push-To-Talk, Push-To-Mute, the three whispers);
|
|
||||||
* press – runs on down only (official GoLiveCurrentFullscreen: down Activate, up Deactivate = no-op);
|
|
||||||
* trigger – runs once on release (official single-mode actions store only the `up` event).
|
|
||||||
* `group` is the official settings group (get_all @2290500); a group holds at most MAX_PER_GROUP bindings.
|
|
||||||
*
|
|
||||||
* A binding's source is physical: { code, ctrl, alt, shift, meta, global }: KeyboardEvent.code plus modifiers;
|
|
||||||
* global ones are registered with the `teamspeach-core hotkeys` helper, local ones work only in the focused window.
|
|
||||||
*/
|
|
||||||
|
|
||||||
const { randomUUID } = require('node:crypto');
|
|
||||||
|
|
||||||
const KEYBINDS_VERSION = 2;
|
|
||||||
const MAX_BINDINGS = 64; // per profile; also the helper's registration limit
|
|
||||||
const MAX_PROFILES = 32;
|
|
||||||
const MAX_PER_GROUP = 6; // official max_hotkeys_for_action (c3V = 6)
|
|
||||||
const PROFILE_NAME_MAX = 64;
|
|
||||||
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
||||||
const CONTROL = /[\u0000-\u001f\u007f]/;
|
|
||||||
const KEY_CODE = /^[A-Za-z0-9]{1,32}$/;
|
|
||||||
const MODIFIER_CODES = new Set(['ControlLeft', 'ControlRight', 'AltLeft', 'AltRight', 'ShiftLeft', 'ShiftRight', 'MetaLeft', 'MetaRight', 'OSLeft', 'OSRight']);
|
|
||||||
|
|
||||||
/** id → { kind, group, official }. Group order below is the settings order. */
|
|
||||||
const ACTIONS = Object.freeze({
|
|
||||||
push_to_talk: { kind: 'hold', group: 'push_to_talk', official: 'Push-To-Talk' },
|
|
||||||
push_to_mute: { kind: 'hold', group: 'push_to_mute', official: 'Push-To-Mute' },
|
|
||||||
microphone_toggle: { kind: 'trigger', group: 'microphone', official: 'Toggle Microphone Mute' },
|
|
||||||
microphone_mute: { kind: 'trigger', group: 'microphone', official: 'Microphone Mute' },
|
|
||||||
microphone_unmute: { kind: 'trigger', group: 'microphone', official: 'Microphone Unmute' },
|
|
||||||
speaker_toggle: { kind: 'trigger', group: 'speaker', official: 'Toggle Speaker Mute' },
|
|
||||||
speaker_mute: { kind: 'trigger', group: 'speaker', official: 'Speaker Mute' },
|
|
||||||
speaker_unmute: { kind: 'trigger', group: 'speaker', official: 'Speaker Unmute' },
|
|
||||||
away_toggle: { kind: 'trigger', group: 'away', official: 'Toggle Away Status' },
|
|
||||||
away_online: { kind: 'trigger', group: 'away', official: 'Set Online' },
|
|
||||||
away_set: { kind: 'trigger', group: 'away', official: 'Set Away' },
|
|
||||||
away_toggle_message: { kind: 'trigger', group: 'away', official: 'Toggle Away Status with Message' },
|
|
||||||
reply_whisper: { kind: 'hold', group: 'reply_whisper', official: 'Reply to the last user that whispered you' },
|
|
||||||
quick_whisper: { kind: 'hold', group: 'quick_whisper', official: 'Whisper to the currently selected items in the servertree' },
|
|
||||||
whisper_list: { kind: 'hold', group: 'whisper_list', official: 'Whisper to a set list', target: 'whisper_list' },
|
|
||||||
go_live_current: { kind: 'press', group: 'go_live_current', official: 'Go Live with current Fullscreen App' },
|
|
||||||
recording_start: { kind: 'trigger', group: 'recording_start', official: 'Start Recording' },
|
|
||||||
recording_stop: { kind: 'trigger', group: 'recording_stop', official: 'Stop Recording' },
|
|
||||||
recording_toggle_pause: { kind: 'trigger', group: 'recording_toggle_pause', official: 'Pause or Resume Recording' },
|
|
||||||
disconnect_current: { kind: 'trigger', group: 'disconnect', official: 'Disconnect from Current Server' },
|
|
||||||
disconnect_all: { kind: 'trigger', group: 'disconnect', official: 'Disconnect from All Servers' },
|
|
||||||
talk_power_request: { kind: 'trigger', group: 'talk_power', official: 'Request Talk Power' },
|
|
||||||
talk_power_grant_next: { kind: 'trigger', group: 'talk_power', official: 'Grant Next User Talk Power' },
|
|
||||||
});
|
|
||||||
|
|
||||||
const fail = (message) => { throw new Error(message); };
|
|
||||||
const isObject = (v) => v !== null && typeof v === 'object' && !Array.isArray(v);
|
|
||||||
const onlyKeys = (v, keys) => Object.keys(v).every((k) => keys.includes(k));
|
|
||||||
const text = (v, min, max) => typeof v === 'string' && v.length >= min && v.length <= max && !CONTROL.test(v);
|
|
||||||
|
|
||||||
function normalizeId(id) {
|
|
||||||
const value = id === undefined || id === '' ? randomUUID() : id;
|
|
||||||
if (typeof value !== 'string' || !UUID.test(value)) fail('id: expected a UUID');
|
|
||||||
return value.toLowerCase();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns a normalized binding or throws naming the bad field. A whisper_list target may be '' or a list
|
|
||||||
* that no longer exists: like the official resolveTarget the row then asks for a list and does nothing.
|
|
||||||
*/
|
|
||||||
function normalizeBinding(b) {
|
|
||||||
if (!isObject(b) || !onlyKeys(b, ['id', 'action', 'target', 'code', 'ctrl', 'alt', 'shift', 'meta', 'global'])) fail('binding: unknown field');
|
|
||||||
const id = normalizeId(b.id);
|
|
||||||
const spec = ACTIONS[b.action];
|
|
||||||
if (!spec) fail('action: unknown');
|
|
||||||
const target = b.target ?? '';
|
|
||||||
if (spec.target === 'whisper_list') {
|
|
||||||
if (typeof target !== 'string' || (target !== '' && !UUID.test(target))) fail('target: expected a whisper list UUID');
|
|
||||||
} else if (target !== '') fail('target: only whisper_list has a target');
|
|
||||||
if (typeof b.code !== 'string' || !KEY_CODE.test(b.code) || MODIFIER_CODES.has(b.code)) fail('code: invalid key');
|
|
||||||
for (const m of ['ctrl', 'alt', 'shift', 'meta', 'global']) {
|
|
||||||
if (typeof (b[m] ?? false) !== 'boolean') fail(`${m}: expected true/false`);
|
|
||||||
}
|
|
||||||
return { id, action: b.action, target: target.toLowerCase(), code: b.code, ctrl: Boolean(b.ctrl), alt: Boolean(b.alt), shift: Boolean(b.shift), meta: Boolean(b.meta), global: b.global !== false };
|
|
||||||
}
|
|
||||||
|
|
||||||
function normalizeProfileName(name) {
|
|
||||||
if (typeof name !== 'string') fail('name: expected text');
|
|
||||||
const trimmed = name.trim();
|
|
||||||
if (!text(trimmed, 1, PROFILE_NAME_MAX)) fail(`name: 1-${PROFILE_NAME_MAX} characters`);
|
|
||||||
return trimmed;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Bindings of one profile; `previous` (same profile before the change) lets migrated groups keep >6 rows. */
|
|
||||||
function normalizeBindings(raw, previous = []) {
|
|
||||||
if (!Array.isArray(raw) || raw.length > MAX_BINDINGS) fail(`bindings: at most ${MAX_BINDINGS}`);
|
|
||||||
const next = raw.map(normalizeBinding);
|
|
||||||
if (new Set(next.map((b) => b.id)).size !== next.length) fail('bindings: duplicate id');
|
|
||||||
const count = (list) => list.reduce((m, b) => m.set(ACTIONS[b.action].group, (m.get(ACTIONS[b.action].group) ?? 0) + 1), new Map());
|
|
||||||
const before = count(previous);
|
|
||||||
for (const [group, n] of count(next)) {
|
|
||||||
if (n > Math.max(MAX_PER_GROUP, before.get(group) ?? 0)) fail(`bindings: at most ${MAX_PER_GROUP} per action`);
|
|
||||||
}
|
|
||||||
return next;
|
|
||||||
}
|
|
||||||
|
|
||||||
function normalizeProfile(p) {
|
|
||||||
if (!isObject(p) || !onlyKeys(p, ['id', 'name', 'bindings'])) fail('profile: unknown field');
|
|
||||||
const id = normalizeId(p.id);
|
|
||||||
const name = normalizeProfileName(p.name);
|
|
||||||
const bindings = [];
|
|
||||||
let dropped = 0;
|
|
||||||
for (const raw of Array.isArray(p.bindings) ? p.bindings.slice(0, MAX_BINDINGS) : []) {
|
|
||||||
try {
|
|
||||||
const b = normalizeBinding(raw);
|
|
||||||
if (!bindings.some((x) => x.id === b.id)) bindings.push(b);
|
|
||||||
} catch {
|
|
||||||
dropped += 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return { profile: { id, name, bindings }, dropped };
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Loads a parsed store (version 1 or 2) into the v2 shape. Version 1 `{ bindings }` becomes one active
|
|
||||||
* profile named `defaultProfileName` holding every valid binding unchanged (ids, chords, global flag,
|
|
||||||
* targets); `requireExactMatch` is true because version 1 always matched exactly. A version 1 file without
|
|
||||||
* valid bindings becomes "No Profile" (the official first-run state). Fresh stores default to the official
|
|
||||||
* unchecked toggle (captured settings-keybinds: "Hotkeys will trigger even when other keys are pressed.").
|
|
||||||
*/
|
|
||||||
function loadStore(data, { defaultProfileName = 'Default' } = {}) {
|
|
||||||
const empty = { requireExactMatch: false, activeProfile: null, profiles: [] };
|
|
||||||
if (!data) return { state: empty, dropped: 0, migrated: false };
|
|
||||||
if (data.version === 1) {
|
|
||||||
const { profile, dropped } = normalizeProfile({ id: '', name: defaultProfileName, bindings: data.bindings });
|
|
||||||
if (profile.bindings.length === 0) return { state: { ...empty, requireExactMatch: true }, dropped, migrated: true };
|
|
||||||
return { state: { requireExactMatch: true, activeProfile: profile.id, profiles: [profile] }, dropped, migrated: true };
|
|
||||||
}
|
|
||||||
let dropped = 0;
|
|
||||||
const profiles = [];
|
|
||||||
for (const raw of Array.isArray(data.profiles) ? data.profiles.slice(0, MAX_PROFILES) : []) {
|
|
||||||
try {
|
|
||||||
const r = normalizeProfile(raw);
|
|
||||||
dropped += r.dropped;
|
|
||||||
if (!profiles.some((p) => p.id === r.profile.id)) profiles.push(r.profile);
|
|
||||||
} catch {
|
|
||||||
dropped += 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const active = typeof data.activeProfile === 'string' ? data.activeProfile.toLowerCase() : null;
|
|
||||||
return {
|
|
||||||
state: {
|
|
||||||
requireExactMatch: data.requireExactMatch === true,
|
|
||||||
activeProfile: profiles.some((p) => p.id === active) ? active : (profiles[0]?.id ?? null),
|
|
||||||
profiles,
|
|
||||||
},
|
|
||||||
dropped,
|
|
||||||
migrated: false,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
const chordKey = (b) => `${b.ctrl ? 'C' : ''}${b.alt ? 'A' : ''}${b.shift ? 'S' : ''}${b.meta ? 'M' : ''}+${b.code}`;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Bindings that cannot work as stored: the same chord twice, a plain chord on the Audio
|
|
||||||
* push-to-talk key (voice.js handles that key itself), or a whisper_list row without an existing list.
|
|
||||||
*/
|
|
||||||
function conflicts(bindings, pttCode, listIds = null) {
|
|
||||||
const out = [];
|
|
||||||
const byChord = new Map();
|
|
||||||
for (const b of bindings) {
|
|
||||||
const key = chordKey(b);
|
|
||||||
const other = byChord.get(key);
|
|
||||||
if (other) {
|
|
||||||
out.push({ id: b.id, reason: 'duplicate', with: other.id });
|
|
||||||
if (!out.some((c) => c.id === other.id && c.reason === 'duplicate')) out.push({ id: other.id, reason: 'duplicate', with: b.id });
|
|
||||||
} else byChord.set(key, b);
|
|
||||||
if (pttCode && b.action !== 'push_to_talk' && b.code === pttCode && !b.ctrl && !b.alt && !b.shift && !b.meta) out.push({ id: b.id, reason: 'ptt' });
|
|
||||||
if (listIds && ACTIONS[b.action]?.target === 'whisper_list' && !listIds.has(b.target)) out.push({ id: b.id, reason: 'select_list' });
|
|
||||||
}
|
|
||||||
return out;
|
|
||||||
}
|
|
||||||
|
|
||||||
const MODIFIER_BITS = [['ctrl', 1], ['alt', 2], ['shift', 4], ['meta', 8]];
|
|
||||||
const maskOf = (b) => MODIFIER_BITS.reduce((m, [k, bit]) => (b[k] ? m | bit : m), 0);
|
|
||||||
const popcount = (m) => (m & 1) + ((m >> 1) & 1) + ((m >> 2) & 1) + ((m >> 3) & 1);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Registrations for the global helper. Windows RegisterHotKey and X11 XGrabKey only fire on the exact
|
|
||||||
* modifier set, so "Require exact key match" off is realised by also registering the chord with extra
|
|
||||||
* modifiers. Every binding's own chord comes first; extra-modifier variants follow by fewest added
|
|
||||||
* modifiers while the helper limit allows, never taking a chord another binding uses exactly. Variant
|
|
||||||
* ids are `<id>~<mask>`; `variantOf` maps each registered id back to its binding id.
|
|
||||||
*/
|
|
||||||
function expandRegistrations(bindings, { exact, limit = MAX_BINDINGS } = {}) {
|
|
||||||
const regs = [];
|
|
||||||
const variantOf = new Map();
|
|
||||||
const taken = new Set();
|
|
||||||
for (const b of bindings.slice(0, limit)) {
|
|
||||||
regs.push(b);
|
|
||||||
variantOf.set(b.id, b.id);
|
|
||||||
taken.add(chordKey(b));
|
|
||||||
}
|
|
||||||
let wanted = 0;
|
|
||||||
if (!exact) {
|
|
||||||
const extras = [];
|
|
||||||
for (let mask = 1; mask < 16; mask += 1) extras.push(mask);
|
|
||||||
extras.sort((a, b) => popcount(a) - popcount(b) || a - b);
|
|
||||||
for (const extra of extras) {
|
|
||||||
for (const b of bindings) {
|
|
||||||
if (maskOf(b) & extra) continue;
|
|
||||||
const variant = { ...b, id: `${b.id}~${extra}` };
|
|
||||||
for (const [k, bit] of MODIFIER_BITS) if (extra & bit) variant[k] = true;
|
|
||||||
const key = chordKey(variant);
|
|
||||||
if (taken.has(key)) continue;
|
|
||||||
wanted += 1;
|
|
||||||
if (regs.length >= limit) continue;
|
|
||||||
taken.add(key);
|
|
||||||
regs.push(variant);
|
|
||||||
variantOf.set(variant.id, b.id);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return { registrations: regs, variantOf, variants: { wanted, registered: regs.length - Math.min(bindings.length, limit) } };
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
KEYBINDS_VERSION,
|
|
||||||
MAX_BINDINGS,
|
|
||||||
MAX_PROFILES,
|
|
||||||
MAX_PER_GROUP,
|
|
||||||
ACTIONS,
|
|
||||||
UUID,
|
|
||||||
normalizeBinding,
|
|
||||||
normalizeBindings,
|
|
||||||
normalizeProfileName,
|
|
||||||
loadStore,
|
|
||||||
conflicts,
|
|
||||||
chordKey,
|
|
||||||
expandRegistrations,
|
|
||||||
};
|
|
||||||
@@ -1,712 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const path = require('node:path');
|
|
||||||
const fs = require('node:fs');
|
|
||||||
const {
|
|
||||||
app, BrowserWindow, ipcMain, protocol, session, nativeTheme, dialog, Menu, shell, clipboard, desktopCapturer, nativeImage, net, safeStorage,
|
|
||||||
} = require('electron');
|
|
||||||
|
|
||||||
// A disposable profile directory for tests/second instances. Set by whoever launches the app, never by the renderer.
|
|
||||||
const profileOverride = process.env.TEAMSPEACH_PROFILE_DIR;
|
|
||||||
const normalUserData = app.getPath('userData');
|
|
||||||
if (profileOverride) {
|
|
||||||
if (!path.isAbsolute(profileOverride)) {
|
|
||||||
console.error('TEAMSPEACH_PROFILE_DIR must be an absolute path');
|
|
||||||
process.exit(2);
|
|
||||||
}
|
|
||||||
app.setPath('userData', profileOverride);
|
|
||||||
}
|
|
||||||
// Automated UI checks must not steal focus from the owner's desktop.
|
|
||||||
if (process.env.TEAMSPEACH_TEST_OFFSCREEN === '1' && (!profileOverride || path.resolve(profileOverride).toLowerCase() === path.resolve(normalUserData).toLowerCase())) {
|
|
||||||
console.error('Offscreen tests require a separate absolute disposable profile');
|
|
||||||
process.exit(2);
|
|
||||||
}
|
|
||||||
const testOffscreen = Boolean(profileOverride) && process.env.TEAMSPEACH_TEST_OFFSCREEN === '1';
|
|
||||||
if (testOffscreen) {
|
|
||||||
// Tests may replace these with fixture answers; never open a native dialog from a hidden run.
|
|
||||||
for (const name of ['showOpenDialog', 'showSaveDialog', 'showMessageBox']) dialog[name] = async () => { throw new Error('Native dialogs are disabled in offscreen tests'); };
|
|
||||||
}
|
|
||||||
|
|
||||||
const { APP_ROOT, RENDERER_DIR, resolveCoreBinary, dataDir, logsDir, prefsFile } = require('./paths');
|
|
||||||
const { ConnectionManager } = require('./connections');
|
|
||||||
const { validateRequest } = require('./ipc-validate');
|
|
||||||
const { permissionCheckAllowed, permissionRequestAllowed } = require('./permissions');
|
|
||||||
const { CaptureController } = require('./capture');
|
|
||||||
const { AppAudioController } = require('./appaudio-main');
|
|
||||||
// Same switch the core uses for its own verbosity (see docs/bridge.md).
|
|
||||||
const RENDERER_DEBUG_LOG = /\b(debug|trace)\b/.test(process.env.TEAMSPEACH_LOG ?? '');
|
|
||||||
const { Prefs } = require('./prefs');
|
|
||||||
const { createUpdateService } = require('./updates');
|
|
||||||
const { titlebarOptions, registerTitlebarIpc, bindTitlebar } = require('./titlebar');
|
|
||||||
const i18n = require('../renderer/shared/i18n.js');
|
|
||||||
const themes = require('./themes');
|
|
||||||
const { registerChatIpc } = require('./chat-main');
|
|
||||||
const { registerRecordingIpc, approvedRecordingDirectory } = require('./recording-main');
|
|
||||||
const { registerFilesIpc } = require('./files-main');
|
|
||||||
const { registerOsSettings, defaultIconPath } = require('./os-settings-main');
|
|
||||||
const { registerIdentityIpc } = require('./identities');
|
|
||||||
const { registerClientVolumesIpc } = require('./client-volumes');
|
|
||||||
const { registerWhisperIpc } = require('./whisper-main');
|
|
||||||
const { registerServerSnapshotsIpc } = require('./server-snapshots');
|
|
||||||
const { registerStreamPopout } = require('./stream-popout-main');
|
|
||||||
const { PhishingList, registerPhishingIpc } = require('./phishing-list');
|
|
||||||
const { trustedHostsUpdateError } = require('./privacy-prefs');
|
|
||||||
const { createInformationService, registerInformationIpc } = require('./information-panels');
|
|
||||||
const { BadgeCatalog, registerBadgesIpc, officialBadgeCacheDirs } = require('./badges');
|
|
||||||
const { registerServerIconsIpc } = require('./server-icons');
|
|
||||||
const { registerBookmarkIpc } = require('./bookmark-secrets');
|
|
||||||
|
|
||||||
const APP_SCHEME = 'app';
|
|
||||||
const APP_HOST = 'teamspeach';
|
|
||||||
const APP_ORIGIN = `${APP_SCHEME}://${APP_HOST}`;
|
|
||||||
const MERMAID_FRAME_PATH = '/mermaid-frame.html';
|
|
||||||
const MERMAID_FRAME_CSP = [
|
|
||||||
"default-src 'none'",
|
|
||||||
`script-src ${APP_ORIGIN}/vendor/mermaid/mermaid.min.js ${APP_ORIGIN}/js/markdown/mermaid-frame.js`,
|
|
||||||
"style-src 'unsafe-inline'", 'img-src data: blob:', "connect-src 'none'",
|
|
||||||
"base-uri 'none'", "form-action 'none'", "frame-src 'none'", "object-src 'none'",
|
|
||||||
`frame-ancestors ${APP_ORIGIN}`, 'sandbox allow-scripts',
|
|
||||||
].join('; ');
|
|
||||||
const MERMAID_FRAME_PERMISSIONS = 'camera=(), microphone=(), display-capture=(), geolocation=(), fullscreen=(), clipboard-read=(), clipboard-write=(), autoplay=(), usb=(), serial=(), hid=(), midi=(), screen-wake-lock=(), encrypted-media=(), picture-in-picture=(), publickey-credentials-get=()';
|
|
||||||
|
|
||||||
const CSP = [
|
|
||||||
"default-src 'none'",
|
|
||||||
"script-src 'self' 'wasm-unsafe-eval'",
|
|
||||||
"style-src 'self' tsext:",
|
|
||||||
"img-src 'self' data: blob: tsext:",
|
|
||||||
"media-src 'self' blob: mediastream:",
|
|
||||||
"font-src 'self' tsext:",
|
|
||||||
"connect-src 'self'",
|
|
||||||
"worker-src 'self'",
|
|
||||||
"base-uri 'none'",
|
|
||||||
"form-action 'none'",
|
|
||||||
`frame-src ${APP_ORIGIN}${MERMAID_FRAME_PATH}`,
|
|
||||||
"frame-ancestors 'none'",
|
|
||||||
"object-src 'none'",
|
|
||||||
].join('; ');
|
|
||||||
|
|
||||||
const MIME = {
|
|
||||||
'.html': 'text/html; charset=utf-8',
|
|
||||||
'.js': 'text/javascript; charset=utf-8',
|
|
||||||
'.css': 'text/css; charset=utf-8',
|
|
||||||
'.svg': 'image/svg+xml',
|
|
||||||
'.png': 'image/png',
|
|
||||||
'.woff2': 'font/woff2',
|
|
||||||
'.ttf': 'font/ttf',
|
|
||||||
'.json': 'application/json',
|
|
||||||
'.wasm': 'application/wasm',
|
|
||||||
'.wav': 'audio/wav',
|
|
||||||
};
|
|
||||||
|
|
||||||
// Chromium hides host candidates behind mDNS names when the page has no capture permission.
|
|
||||||
// The TS6 streamer is native libwebrtc; plain host candidates keep LAN viewing working even while the mic is off.
|
|
||||||
app.commandLine.appendSwitch('disable-features', 'WebRtcHideLocalIpsWithMdns');
|
|
||||||
|
|
||||||
// Hardware video decoding policy is a launch-time Chromium switch, so it is read from the saved
|
|
||||||
// preferences before the app is ready and only changes after a restart.
|
|
||||||
const hardwareVideoDecodeAtLaunch = new Prefs(prefsFile()).get().hardwareVideoDecode;
|
|
||||||
if (!hardwareVideoDecodeAtLaunch) app.commandLine.appendSwitch('disable-accelerated-video-decode');
|
|
||||||
|
|
||||||
protocol.registerSchemesAsPrivileged([
|
|
||||||
{ scheme: APP_SCHEME, privileges: { standard: true, secure: true, supportFetchAPI: true, codeCache: true } },
|
|
||||||
themes.SCHEME_PRIVILEGE,
|
|
||||||
]);
|
|
||||||
|
|
||||||
let mainWindow = null;
|
|
||||||
let connections = null;
|
|
||||||
let prefs = null;
|
|
||||||
let capture = null;
|
|
||||||
let appAudio = null;
|
|
||||||
let themeService = null;
|
|
||||||
let osSettings = null;
|
|
||||||
let identities = null;
|
|
||||||
let whisperIpc = null;
|
|
||||||
let filesController = null;
|
|
||||||
let streamPopout = null;
|
|
||||||
let phishingList = null;
|
|
||||||
let badgeCatalog = null;
|
|
||||||
|
|
||||||
const gotInstanceLock = app.requestSingleInstanceLock();
|
|
||||||
if (!gotInstanceLock) {
|
|
||||||
app.quit();
|
|
||||||
} else {
|
|
||||||
app.on('second-instance', () => {
|
|
||||||
if (mainWindow) {
|
|
||||||
if (mainWindow.isMinimized()) mainWindow.restore();
|
|
||||||
mainWindow.focus();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
let updates = null;
|
|
||||||
let quitting = false;
|
|
||||||
let rendererLog = null;
|
|
||||||
let rendererLogBudget = { windowStart: 0, count: 0 };
|
|
||||||
|
|
||||||
function isAppUrl(url) {
|
|
||||||
return typeof url === 'string' && url.startsWith(`${APP_ORIGIN}/`);
|
|
||||||
}
|
|
||||||
|
|
||||||
function trustedSender(event) {
|
|
||||||
return Boolean(mainWindow && event.sender === mainWindow.webContents && event.senderFrame && event.senderFrame === mainWindow.webContents.mainFrame && isAppUrl(event.senderFrame.url));
|
|
||||||
}
|
|
||||||
|
|
||||||
function sendToRenderer(channel, payload) {
|
|
||||||
if (mainWindow && !mainWindow.isDestroyed()) mainWindow.webContents.send(channel, payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------- server connections (one core process each) ----------
|
|
||||||
|
|
||||||
function sendConnections(list) {
|
|
||||||
sendToRenderer('connections:changed', { connections: list, input: connections.inputId });
|
|
||||||
}
|
|
||||||
|
|
||||||
function startConnections() {
|
|
||||||
fs.mkdirSync(logsDir(), { recursive: true });
|
|
||||||
connections = new ConnectionManager({ resolveBinary: resolveCoreBinary, dataDir: dataDir(), logsDir: logsDir() });
|
|
||||||
connections.on('status', (id, status) => {
|
|
||||||
if (status.status !== 'ready') onConnectionInactive(id);
|
|
||||||
sendToRenderer('core:status', { ...status, connectionId: id });
|
|
||||||
});
|
|
||||||
connections.on('event', onCoreEvent);
|
|
||||||
connections.on('changed', sendConnections);
|
|
||||||
// The first server tab exists from the start, like the official client's initial connection tab.
|
|
||||||
connections.create();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Media that belonged to a connection's server session is no longer reachable through it. */
|
|
||||||
function onConnectionInactive(id) {
|
|
||||||
externalMedia.delete(id);
|
|
||||||
filesController?.onClosed(id);
|
|
||||||
// Capture and app audio serve the one outgoing share; once no connection is active nothing can publish.
|
|
||||||
if (!connections.anyActive()) {
|
|
||||||
appAudio?.stopAll();
|
|
||||||
capture?.cancel();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function onCoreEvent(id, evt) {
|
|
||||||
filesController?.onEvent(id, evt);
|
|
||||||
if (evt.event === 'audio') {
|
|
||||||
if (typeof evt.pcm !== 'string') return;
|
|
||||||
const pcm = Buffer.from(evt.pcm, 'base64');
|
|
||||||
if (pcm.length !== 1920) return;
|
|
||||||
sendToRenderer('core:audio', { connectionId: id, pcm, speakers: Array.isArray(evt.speakers) ? evt.speakers : [] });
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (evt.event === 'state' && (evt.state === 'disconnected' || evt.state === 'connecting')) onConnectionInactive(id);
|
|
||||||
if (evt.event === 'snapshot' && Array.isArray(evt.clients)) {
|
|
||||||
for (const c of evt.clients) {
|
|
||||||
if (Array.isArray(c.myts_avatars)) for (const v of c.myts_avatars) allowExternalMedia(id, v && v.url);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sendToRenderer('core:event', { ...evt, connectionId: id });
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------- shared profile ----------
|
|
||||||
|
|
||||||
// Only these go through profile:request; `rename` on a connection is a normal per-connection core:request.
|
|
||||||
const PROFILE_COMMANDS = new Set(['profile_get', 'profile_create', 'rename']);
|
|
||||||
const PROFILE_ONLY_COMMANDS = new Set(['profile_get', 'profile_create']);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Profile commands have one explicit owner instead of "whichever tab is on screen":
|
|
||||||
* - profile_get / profile_create: the oldest connection core that is ready (creation order); it reports the
|
|
||||||
* profile's default identity. Creating the identity is additionally single-writer in the core
|
|
||||||
* (profile.lock + re-check), so a second creator fails with profile_exists.
|
|
||||||
* - rename: saves the profile nickname WITHOUT renaming on any server, so it is only sent to a ready core that
|
|
||||||
* is not connected. Renaming on a server is the per-connection `rename` (core:request) and affects only that
|
|
||||||
* server; nothing ever renames on all servers implicitly.
|
|
||||||
*/
|
|
||||||
async function profileRequest(cmd, args) {
|
|
||||||
const ready = Array.from(connections.entries.values()).filter((e) => e.core && e.status.status === 'ready');
|
|
||||||
if (ready.length === 0) return { ok: false, error: { code: 'core_unavailable', message: 'The core is not running' } };
|
|
||||||
if (cmd !== 'rename') return connections.request(ready[0].id, cmd, args);
|
|
||||||
const idle = ready.find((e) => e.state === 'disconnected');
|
|
||||||
if (!idle) return { ok: false, error: { code: 'connected', message: 'Every server tab is connected; rename on a server instead' } };
|
|
||||||
return connections.request(idle.id, cmd, args);
|
|
||||||
}
|
|
||||||
|
|
||||||
async function onIdentityChanged() {
|
|
||||||
// Vault edits affect future connections; active server nicknames change only through explicit rename.
|
|
||||||
const profile = await profileRequest('profile_get');
|
|
||||||
if (profile.ok) sendToRenderer('profile:changed', profile.result);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function appendLog(file, text) {
|
|
||||||
try {
|
|
||||||
fs.mkdirSync(logsDir(), { recursive: true });
|
|
||||||
fs.appendFileSync(path.join(logsDir(), file), `${new Date().toISOString()} ${text}\n`);
|
|
||||||
} catch {
|
|
||||||
// logging must never break the app
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------- external images announced by the server (http/https only) ----------
|
|
||||||
|
|
||||||
const EXTERNAL_MEDIA_LIMIT = 4 * 1024 * 1024;
|
|
||||||
/** connection id → URLs announced by that connection's server. */
|
|
||||||
const externalMedia = new Map();
|
|
||||||
let mediaSession = null;
|
|
||||||
|
|
||||||
/** Only URLs a core reported from server data may be fetched; the renderer cannot add its own. */
|
|
||||||
function allowExternalMedia(id, url) {
|
|
||||||
if (typeof url !== 'string' || url.length > 2048) return;
|
|
||||||
try {
|
|
||||||
const u = new URL(url);
|
|
||||||
if (u.protocol !== 'https:' && u.protocol !== 'http:') return;
|
|
||||||
} catch {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
let urls = externalMedia.get(id);
|
|
||||||
if (!urls) externalMedia.set(id, (urls = new Set()));
|
|
||||||
if (urls.size >= 512) urls.clear();
|
|
||||||
urls.add(url);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function sniffImage(b) {
|
|
||||||
if (b.length >= 8 && b.readUInt32BE(0) === 0x89504e47) return 'image/png';
|
|
||||||
if (b.length >= 3 && b[0] === 0xff && b[1] === 0xd8 && b[2] === 0xff) return 'image/jpeg';
|
|
||||||
if (b.length >= 6 && b.toString('latin1', 0, 4) === 'GIF8') return 'image/gif';
|
|
||||||
if (b.length >= 12 && b.toString('latin1', 0, 4) === 'RIFF' && b.toString('latin1', 8, 12) === 'WEBP') return 'image/webp';
|
|
||||||
if (b.length >= 4 && b.readUInt32BE(0) === 0x00000100) return 'image/x-icon';
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
async function fetchExternalMedia(connectionId, url) {
|
|
||||||
const allowed = externalMedia.get(connectionId);
|
|
||||||
if (typeof url !== 'string' || !allowed?.has(url)) {
|
|
||||||
return { ok: false, error: { code: 'forbidden', message: 'The server did not announce this address' } };
|
|
||||||
}
|
|
||||||
if (!mediaSession) mediaSession = session.fromPartition('teamspeach-media', { cache: true });
|
|
||||||
const controller = new AbortController();
|
|
||||||
const timer = setTimeout(() => controller.abort(), 15000);
|
|
||||||
try {
|
|
||||||
const res = await mediaSession.fetch(url, { signal: controller.signal, headers: { Accept: 'image/*' } });
|
|
||||||
const finalProtocol = new URL(res.url || url).protocol;
|
|
||||||
if (finalProtocol !== 'https:' && finalProtocol !== 'http:') throw new Error('redirect to a non-http scheme');
|
|
||||||
if (!res.ok) return { ok: false, error: { code: 'http_error', message: `HTTP ${res.status}` } };
|
|
||||||
const reader = res.body.getReader();
|
|
||||||
const chunks = [];
|
|
||||||
let size = 0;
|
|
||||||
for (;;) {
|
|
||||||
const { done, value } = await reader.read();
|
|
||||||
if (done) break;
|
|
||||||
size += value.byteLength;
|
|
||||||
if (size > EXTERNAL_MEDIA_LIMIT) {
|
|
||||||
controller.abort();
|
|
||||||
return { ok: false, error: { code: 'media_too_large', message: 'Image larger than 4 MiB' } };
|
|
||||||
}
|
|
||||||
chunks.push(Buffer.from(value));
|
|
||||||
}
|
|
||||||
const bytes = Buffer.concat(chunks);
|
|
||||||
// Servers mislabel images (e.g. text/plain); trust only the bytes.
|
|
||||||
const mime = sniffImage(bytes);
|
|
||||||
if (externalMedia.get(connectionId) !== allowed) return { ok: false, error: { code: 'connection_closed', message: 'The server session ended' } };
|
|
||||||
if (!mime) return { ok: false, error: { code: 'media_unsupported', message: 'Not an image' } };
|
|
||||||
return { ok: true, result: { mime, bytes: bytes.length, data: bytes.toString('base64') } };
|
|
||||||
} catch (err) {
|
|
||||||
return { ok: false, error: { code: 'io', message: err.name === 'AbortError' ? 'Download timed out' : err.message } };
|
|
||||||
} finally {
|
|
||||||
clearTimeout(timer);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------- identity backup (main-only, native dialogs) ----------
|
|
||||||
|
|
||||||
/** Native dialog text in the user's interface language. */
|
|
||||||
function tr(key, params) {
|
|
||||||
return i18n.t(key, params, prefs.get().language);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
async function chooseAvatar() {
|
|
||||||
const pick = await dialog.showOpenDialog(mainWindow, {
|
|
||||||
title: tr('native.avatar.title'),
|
|
||||||
filters: [{ name: tr('native.avatar.filter'), extensions: ['png', 'jpg', 'jpeg'] }],
|
|
||||||
properties: ['openFile'],
|
|
||||||
});
|
|
||||||
if (pick.canceled || pick.filePaths.length !== 1) return { ok: true, canceled: true };
|
|
||||||
let file;
|
|
||||||
try {
|
|
||||||
file = await fs.promises.open(pick.filePaths[0], 'r');
|
|
||||||
const stat = await file.stat();
|
|
||||||
const limit = 128 * 1024;
|
|
||||||
if (!stat.isFile() || stat.size === 0 || stat.size > limit) throw new Error(tr('native.avatar.invalid'));
|
|
||||||
// Read at most the validated size plus one byte, even if the selected file changes while open.
|
|
||||||
const data = Buffer.alloc(stat.size + 1);
|
|
||||||
let size = 0;
|
|
||||||
while (size < data.length) {
|
|
||||||
const { bytesRead } = await file.read(data, size, data.length - size, null);
|
|
||||||
if (!bytesRead) break;
|
|
||||||
size += bytesRead;
|
|
||||||
}
|
|
||||||
const image = data.subarray(0, size);
|
|
||||||
const png = image.length >= 8 && image.toString('latin1', 0, 8) === '\x89PNG\r\n\x1a\n';
|
|
||||||
const jpeg = image.length >= 3 && image[0] === 0xff && image[1] === 0xd8 && image[2] === 0xff;
|
|
||||||
if (size !== stat.size || (!png && !jpeg)) throw new Error(tr('native.avatar.invalid'));
|
|
||||||
return { ok: true, data: image.toString('base64') };
|
|
||||||
} catch {
|
|
||||||
return { ok: false, error: { code: 'invalid_avatar', message: tr('native.avatar.invalid') } };
|
|
||||||
} finally {
|
|
||||||
if (file) await file.close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------- window ----------
|
|
||||||
|
|
||||||
function createWindow() {
|
|
||||||
mainWindow = new BrowserWindow({
|
|
||||||
width: 1220,
|
|
||||||
height: 780,
|
|
||||||
minWidth: 880,
|
|
||||||
minHeight: 560,
|
|
||||||
show: false,
|
|
||||||
...(testOffscreen ? { focusable: false } : {}),
|
|
||||||
title: 'TeamsPeach',
|
|
||||||
...titlebarOptions(process.platform, nativeTheme.shouldUseDarkColors),
|
|
||||||
backgroundColor: nativeTheme.shouldUseDarkColors ? '#141b27' : '#e9edf2',
|
|
||||||
icon: path.join(__dirname, '..', 'renderer', 'assets', 'icon.png'),
|
|
||||||
webPreferences: {
|
|
||||||
...(testOffscreen ? { offscreen: true, backgroundThrottling: false, paintWhenInitiallyHidden: true } : {}),
|
|
||||||
preload: path.join(__dirname, '..', 'preload', 'preload.js'),
|
|
||||||
contextIsolation: true,
|
|
||||||
sandbox: true,
|
|
||||||
nodeIntegration: false,
|
|
||||||
nodeIntegrationInWorker: false,
|
|
||||||
webSecurity: true,
|
|
||||||
spellcheck: false,
|
|
||||||
autoplayPolicy: 'no-user-gesture-required',
|
|
||||||
devTools: !app.isPackaged || process.env.TEAMSPEACH_DEVTOOLS === '1',
|
|
||||||
},
|
|
||||||
});
|
|
||||||
if (testOffscreen) mainWindow.webContents.setAudioMuted(true);
|
|
||||||
streamPopout.attach(mainWindow);
|
|
||||||
bindTitlebar(mainWindow, nativeTheme);
|
|
||||||
osSettings.attachWindow(mainWindow);
|
|
||||||
// Hide-to-tray on close (official os settings) is decided first; only a real close continues below.
|
|
||||||
mainWindow.on('close', (event) => {
|
|
||||||
if (osSettings.interceptClose(event)) return;
|
|
||||||
});
|
|
||||||
if (!testOffscreen) mainWindow.once('ready-to-show', () => mainWindow.show());
|
|
||||||
mainWindow.on('closed', () => {
|
|
||||||
appAudio?.stopAll();
|
|
||||||
capture?.cancel();
|
|
||||||
mainWindow = null;
|
|
||||||
});
|
|
||||||
mainWindow.loadURL(`${APP_ORIGIN}/index.html`);
|
|
||||||
}
|
|
||||||
|
|
||||||
function registerProtocol() {
|
|
||||||
protocol.handle(APP_SCHEME, async (request) => {
|
|
||||||
const url = new URL(request.url);
|
|
||||||
if (url.host !== APP_HOST) return new Response('Not found', { status: 404 });
|
|
||||||
let rel;
|
|
||||||
try {
|
|
||||||
rel = decodeURIComponent(url.pathname);
|
|
||||||
} catch {
|
|
||||||
return new Response('Bad request', { status: 400 });
|
|
||||||
}
|
|
||||||
if (rel === '/' || rel === '') rel = '/index.html';
|
|
||||||
const filePath = path.normalize(path.join(RENDERER_DIR, rel));
|
|
||||||
if (!filePath.startsWith(RENDERER_DIR + path.sep)) return new Response('Forbidden', { status: 403 });
|
|
||||||
const type = MIME[path.extname(filePath).toLowerCase()];
|
|
||||||
if (!type) return new Response('Forbidden', { status: 403 });
|
|
||||||
try {
|
|
||||||
const body = await fs.promises.readFile(filePath);
|
|
||||||
return new Response(body, {
|
|
||||||
status: 200,
|
|
||||||
headers: {
|
|
||||||
'Content-Type': type,
|
|
||||||
'Content-Security-Policy': rel === MERMAID_FRAME_PATH ? MERMAID_FRAME_CSP : CSP,
|
|
||||||
...(rel === MERMAID_FRAME_PATH ? { 'Permissions-Policy': MERMAID_FRAME_PERMISSIONS } : {}),
|
|
||||||
'X-Content-Type-Options': 'nosniff',
|
|
||||||
'Cross-Origin-Opener-Policy': 'same-origin',
|
|
||||||
'Referrer-Policy': 'no-referrer',
|
|
||||||
},
|
|
||||||
});
|
|
||||||
} catch {
|
|
||||||
return new Response('Not found', { status: 404 });
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function hardenSession() {
|
|
||||||
const ses = session.defaultSession;
|
|
||||||
// Electron passes origins as "app://teamspeach/"; the policy normalises them (see permissions.js).
|
|
||||||
ses.setPermissionRequestHandler((_wc, permission, callback, details) => {
|
|
||||||
callback(!testOffscreen && details?.isMainFrame !== false && (permissionRequestAllowed(permission, details, APP_ORIGIN) || capture.permissionRequestAllowed(_wc, permission, details)));
|
|
||||||
});
|
|
||||||
ses.setPermissionCheckHandler((_wc, permission, requestingOrigin, details) => {
|
|
||||||
return !testOffscreen && permissionCheckAllowed(permission, requestingOrigin, details, APP_ORIGIN);
|
|
||||||
});
|
|
||||||
if (testOffscreen) ses.setDisplayMediaRequestHandler((_request, callback) => callback(null));
|
|
||||||
else capture.install(ses);
|
|
||||||
}
|
|
||||||
|
|
||||||
app.on('web-contents-created', (_event, contents) => {
|
|
||||||
contents.on('will-navigate', (event, url) => {
|
|
||||||
if (!isAppUrl(url)) event.preventDefault();
|
|
||||||
});
|
|
||||||
contents.on('will-redirect', (event, url) => {
|
|
||||||
if (!isAppUrl(url)) event.preventDefault();
|
|
||||||
});
|
|
||||||
contents.setWindowOpenHandler(() => ({ action: 'deny' }));
|
|
||||||
contents.on('will-attach-webview', (event) => event.preventDefault());
|
|
||||||
});
|
|
||||||
|
|
||||||
// ---------- IPC ----------
|
|
||||||
|
|
||||||
function registerIpc() {
|
|
||||||
registerInformationIpc({ ipcMain, trustedSender, service: createInformationService({ isPackaged: app.isPackaged,
|
|
||||||
appRoot: APP_ROOT, appPath: app.getAppPath(), resourcesPath: process.resourcesPath, execPath: process.execPath,
|
|
||||||
rendererDir: RENDERER_DIR, platform: process.platform, arch: process.arch, electronVersion: process.versions.electron }) });
|
|
||||||
registerTitlebarIpc(ipcMain, () => mainWindow, APP_ORIGIN);
|
|
||||||
capture.registerIpc(ipcMain, (event) => !testOffscreen && trustedSender(event));
|
|
||||||
appAudio.registerIpc(ipcMain, (event) => !testOffscreen && trustedSender(event));
|
|
||||||
themeService.registerIpc(ipcMain, trustedSender);
|
|
||||||
registerChatIpc(ipcMain, { trustedSender, getWindow: () => mainWindow, baseDir: path.join(app.getPath('userData'), 'chat-history'), testOffscreen, shell, nativeImage, app });
|
|
||||||
registerRecordingIpc({ ipcMain, trustedSender, dialog, getWindow: () => mainWindow, testOffscreen, testProfileDir: testOffscreen ? profileOverride : null, prefs });
|
|
||||||
filesController = registerFilesIpc({ ipcMain, trustedSender, dialog, shell, clipboard, getWindow: () => mainWindow, request: (id, cmd, args) => connections.request(id, cmd, args), validConnectionId: (id) => ConnectionManager.validId(id), getConnectionEpoch: (id) => { const entry = connections.get(id); return entry?.state === 'connected' ? entry.session : null; }, settingsPath: path.join(app.getPath('userData'), 'files-settings.json'), testOffscreen, testProfileDir: testOffscreen ? profileOverride : null, tr });
|
|
||||||
osSettings = registerOsSettings({ ipcMain, trustedSender, getWindow: () => mainWindow, testOffscreen, prefs, translate: (k) => i18n.t(k, {}, prefs.get().language), iconPath: defaultIconPath() });
|
|
||||||
registerClientVolumesIpc({ ipcMain, trustedSender, connections, file: path.join(path.dirname(prefsFile()), 'client-volumes.json'), log: (level, message) => appendLog('main.log', `${level}: ${message}`) });
|
|
||||||
identities = registerIdentityIpc({ ipcMain, trustedSender, getWindow: () => mainWindow, resolveCoreBinary, dataDir, dialog, tr, sendToRenderer, onChanged: onIdentityChanged });
|
|
||||||
whisperIpc = registerWhisperIpc({ ipcMain, trustedSender, getWindow: () => mainWindow, userDataDir: app.getPath('userData'), resolveBinary: () => resolveCoreBinary().path, testOffscreen, getPttCode: () => prefs.get().pttCode, defaultProfileName: tr('keybind.profile.default') });
|
|
||||||
phishingList = new PhishingList({ cacheFile: path.join(app.getPath('userData'), 'phishing-domains.json'),
|
|
||||||
fetchImpl: (url, init) => net.fetch(url, init), enabled: !testOffscreen,
|
|
||||||
log: (level, message) => appendLog('main.log', `${level}: ${message}`) });
|
|
||||||
registerPhishingIpc({ ipcMain, trustedSender, list: phishingList });
|
|
||||||
phishingList.start();
|
|
||||||
badgeCatalog = new BadgeCatalog({ cacheDir: path.join(app.getPath('userData'), 'badges'),
|
|
||||||
fetchImpl: (url, init) => net.fetch(url, init), enabled: !testOffscreen,
|
|
||||||
officialCacheDirs: testOffscreen ? [] : officialBadgeCacheDirs(),
|
|
||||||
log: (level, message) => appendLog('main.log', `${level}: ${message}`) });
|
|
||||||
registerBadgesIpc({ ipcMain, trustedSender, catalog: badgeCatalog });
|
|
||||||
const bookmarkService = registerBookmarkIpc({ ipcMain, trustedSender, prefs, safeStorage, platform: process.platform,
|
|
||||||
getConnection: (id) => connections.get(id), request: (id, cmd, args) => connections.request(id, cmd, args), testOffscreen });
|
|
||||||
registerServerIconsIpc({ ipcMain, trustedSender, dialog, nativeImage, getWindow: () => mainWindow,
|
|
||||||
request: (id, cmd, args) => ['file_upload', 'file_download'].includes(cmd) ? filesController.requestTransfer(id, cmd, args) : connections.request(id, cmd, args),
|
|
||||||
validConnectionId: (id) => ConnectionManager.validId(id), getConnection: (id) => connections.get(id),
|
|
||||||
subscribeCore: (listener) => { connections.on('event', listener); return () => connections.off('event', listener); }, testOffscreen, tr });
|
|
||||||
registerServerSnapshotsIpc({ ipcMain, trustedSender, dialog, getWindow: () => mainWindow, request: (id, cmd, args) => ['file_upload', 'file_download'].includes(cmd) ? filesController.requestTransfer(id, cmd, args) : connections.request(id, cmd, args), validConnectionId: (id) => ConnectionManager.validId(id), getConnection: (id) => connections.get(id), subscribeCore: (listener) => { connections.on('event', listener); return () => connections.off('event', listener); }, testOffscreen, tr });
|
|
||||||
streamPopout = registerStreamPopout({ ipcMain, BrowserWindow, getWindow: () => mainWindow, trustedSender, appOrigin: APP_ORIGIN, getConnection: (id) => connections.get(id), testOffscreen });
|
|
||||||
ipcMain.handle('core:request', async (event, connectionId, cmd, args) => {
|
|
||||||
if (!trustedSender(event)) return { ok: false, error: { code: 'forbidden', message: 'forbidden' } };
|
|
||||||
if (!ConnectionManager.validId(connectionId)) return { ok: false, error: { code: 'bad_request', message: 'Invalid server connection' } };
|
|
||||||
if (PROFILE_ONLY_COMMANDS.has(cmd)) return { ok: false, error: { code: 'bad_request', message: 'Profile commands go through profile:request' } };
|
|
||||||
if (testOffscreen && cmd === 'connect') return { ok: false, error: { code: 'test_safety', message: 'Real server connections are disabled in offscreen tests' } };
|
|
||||||
let clean;
|
|
||||||
try {
|
|
||||||
clean = validateRequest(cmd, args, { approvedRecordingDirectory: () => approvedRecordingDirectory(prefs) });
|
|
||||||
} catch (err) {
|
|
||||||
return { ok: false, error: { code: err.code || 'bad_request', message: err.message } };
|
|
||||||
}
|
|
||||||
const hasArgs = Object.keys(clean).length > 0;
|
|
||||||
const entry = connections.get(connectionId);
|
|
||||||
const epoch = entry?.session;
|
|
||||||
const core = entry?.core;
|
|
||||||
const response = await connections.request(connectionId, cmd, hasArgs ? clean : undefined);
|
|
||||||
if (!response.ok && response.error.code === 'external_media' && response.error.detail && connections.get(connectionId) === entry && entry?.session === epoch && entry?.core === core) {
|
|
||||||
const detail = response.error.detail;
|
|
||||||
allowExternalMedia(connectionId, detail.url);
|
|
||||||
if (Array.isArray(detail.urls)) for (const v of detail.urls) allowExternalMedia(connectionId, v && v.url);
|
|
||||||
}
|
|
||||||
return response;
|
|
||||||
});
|
|
||||||
|
|
||||||
// The profile (identity + nickname) is shared by every connection core; see profileRequest().
|
|
||||||
ipcMain.handle('profile:request', async (event, cmd, args) => {
|
|
||||||
if (!trustedSender(event)) return { ok: false, error: { code: 'forbidden', message: 'forbidden' } };
|
|
||||||
if (!PROFILE_COMMANDS.has(cmd)) return { ok: false, error: { code: 'unknown_command', message: 'Command not allowed' } };
|
|
||||||
let clean;
|
|
||||||
try {
|
|
||||||
clean = validateRequest(cmd, args);
|
|
||||||
} catch (err) {
|
|
||||||
return { ok: false, error: { code: err.code || 'bad_request', message: err.message } };
|
|
||||||
}
|
|
||||||
return profileRequest(cmd, Object.keys(clean).length > 0 ? clean : undefined);
|
|
||||||
});
|
|
||||||
|
|
||||||
// Captured voice: routed by main to the selected input connection only (connections.setInput).
|
|
||||||
ipcMain.on('core:audio-frame', (event, frame, whisper) => {
|
|
||||||
if (!trustedSender(event)) return;
|
|
||||||
if (!(frame instanceof Uint8Array) || frame.byteLength !== 1920) return;
|
|
||||||
if (whisper !== undefined && !(Number.isInteger(whisper) && whisper >= 1 && whisper <= 0xffffffff)) return;
|
|
||||||
connections.sendAudioFrame(Buffer.from(frame.buffer, frame.byteOffset, frame.byteLength).toString('base64'), whisper);
|
|
||||||
});
|
|
||||||
|
|
||||||
ipcMain.on('core:audio-end', (event) => {
|
|
||||||
if (!trustedSender(event)) return;
|
|
||||||
connections.endAudio();
|
|
||||||
});
|
|
||||||
|
|
||||||
ipcMain.handle('connections:list', (event) => (trustedSender(event) ? { connections: connections.list(), input: connections.inputId } : null));
|
|
||||||
ipcMain.handle('connections:create', (event) => (trustedSender(event) ? connections.create() : { ok: false, error: { code: 'forbidden', message: 'forbidden' } }));
|
|
||||||
ipcMain.handle('connections:close', (event, connectionId) => {
|
|
||||||
if (!trustedSender(event)) return { ok: false, error: { code: 'forbidden', message: 'forbidden' } };
|
|
||||||
if (!ConnectionManager.validId(connectionId)) return { ok: false, error: { code: 'bad_request', message: 'Invalid server connection' } };
|
|
||||||
// The official client always keeps one connection tab; the last one is reused, never closed.
|
|
||||||
if (connections.entries.size <= 1) return { ok: false, error: { code: 'last_connection', message: 'The last server tab cannot be closed' } };
|
|
||||||
onConnectionInactive(connectionId);
|
|
||||||
return connections.close(connectionId);
|
|
||||||
});
|
|
||||||
ipcMain.handle('connections:set-input', (event, connectionId) => {
|
|
||||||
if (!trustedSender(event)) return { ok: false, error: { code: 'forbidden', message: 'forbidden' } };
|
|
||||||
if (connectionId !== null && !ConnectionManager.validId(connectionId)) return { ok: false, error: { code: 'bad_request', message: 'Invalid server connection' } };
|
|
||||||
return connections.setInput(connectionId);
|
|
||||||
});
|
|
||||||
|
|
||||||
ipcMain.handle('core:restart', async (event, connectionId) => {
|
|
||||||
if (!trustedSender(event) || !ConnectionManager.validId(connectionId)) return false;
|
|
||||||
return (await connections.restart(connectionId)).ok;
|
|
||||||
});
|
|
||||||
|
|
||||||
ipcMain.handle('app:info', (event) => {
|
|
||||||
if (!trustedSender(event)) return null;
|
|
||||||
return {
|
|
||||||
appVersion: app.getVersion(),
|
|
||||||
electron: process.versions.electron,
|
|
||||||
chrome: process.versions.chrome,
|
|
||||||
platform: process.platform,
|
|
||||||
arch: process.arch,
|
|
||||||
packaged: app.isPackaged,
|
|
||||||
coreVersion: Array.from(connections.entries.values()).find((e) => e.core?.coreVersion)?.core.coreVersion ?? null,
|
|
||||||
coreBinary: resolveCoreBinary().path || null,
|
|
||||||
dataDir: dataDir(),
|
|
||||||
logsDir: logsDir(),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
ipcMain.handle('prefs:get', (event) => (trustedSender(event) ? prefs.get() : null));
|
|
||||||
ipcMain.handle('prefs:set', (event, partial) => {
|
|
||||||
if (!trustedSender(event)) return { ok: false };
|
|
||||||
// Main-only: set by the recording folder dialog (recording-main.js), never by the renderer.
|
|
||||||
if (partial && typeof partial === 'object' && Object.hasOwn(partial, 'recordingFolder')) return { ok: false, message: 'prefs: recordingFolder is chosen in the folder dialog' };
|
|
||||||
const trustError = trustedHostsUpdateError(prefs.get(), partial, (host) => phishingList.has(host));
|
|
||||||
if (trustError) return { ok: false, message: trustError };
|
|
||||||
try {
|
|
||||||
const next = prefs.set(bookmarkService.protectPrefsPatch(partial));
|
|
||||||
if (partial && Object.prototype.hasOwnProperty.call(partial, 'theme')) nativeTheme.themeSource = next.theme;
|
|
||||||
if (Object.hasOwn(partial, 'pttCode')) whisperIpc?.refreshBindings();
|
|
||||||
return { ok: true, prefs: next };
|
|
||||||
} catch (err) {
|
|
||||||
return { ok: false, message: err.message };
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
ipcMain.handle('avatar:choose', (event) => (trustedSender(event) ? chooseAvatar() : { ok: false, error: { code: 'forbidden', message: 'forbidden' } }));
|
|
||||||
|
|
||||||
ipcMain.handle('media:external', (event, connectionId, url) => (trustedSender(event) ? fetchExternalMedia(connectionId, url) : { ok: false }));
|
|
||||||
|
|
||||||
ipcMain.handle('clipboard:write', (event, text) => {
|
|
||||||
if (!trustedSender(event) || testOffscreen || typeof text !== 'string' || text.length > 4096) return false;
|
|
||||||
clipboard.writeText(text);
|
|
||||||
return true;
|
|
||||||
});
|
|
||||||
|
|
||||||
ipcMain.handle('app:video-status', (event) => {
|
|
||||||
if (!trustedSender(event)) return null;
|
|
||||||
return { hardwareDecodeAtLaunch: hardwareVideoDecodeAtLaunch, gpu: app.getGPUFeatureStatus() };
|
|
||||||
});
|
|
||||||
|
|
||||||
ipcMain.handle('app:relaunch', (event) => {
|
|
||||||
if (!trustedSender(event) || testOffscreen) return false;
|
|
||||||
app.relaunch();
|
|
||||||
app.quit();
|
|
||||||
return true;
|
|
||||||
});
|
|
||||||
|
|
||||||
ipcMain.handle('app:open-logs', async (event) => {
|
|
||||||
if (!trustedSender(event) || testOffscreen) return false;
|
|
||||||
fs.mkdirSync(logsDir(), { recursive: true });
|
|
||||||
return (await shell.openPath(logsDir())) === '';
|
|
||||||
});
|
|
||||||
|
|
||||||
ipcMain.on('app:log', (event, level, message) => {
|
|
||||||
if (!trustedSender(event) || typeof message !== 'string') return;
|
|
||||||
const now = Date.now();
|
|
||||||
if (now - rendererLogBudget.windowStart > 1000) rendererLogBudget = { windowStart: now, count: 0 };
|
|
||||||
if (++rendererLogBudget.count > 40) return;
|
|
||||||
const lvl = ['debug', 'info', 'warn', 'error'].includes(level) ? level : 'info';
|
|
||||||
// Per-burst voice diagnostics are debug level: written only when started with TEAMSPEACH_LOG=debug|trace.
|
|
||||||
if (lvl === 'debug' && !RENDERER_DEBUG_LOG) return;
|
|
||||||
if (!rendererLog) {
|
|
||||||
fs.mkdirSync(logsDir(), { recursive: true });
|
|
||||||
rendererLog = fs.createWriteStream(path.join(logsDir(), 'renderer.log'), { flags: 'a' });
|
|
||||||
}
|
|
||||||
rendererLog.write(`${new Date().toISOString()} ${lvl} ${message.slice(0, 4000).replace(/[\r\n]+/g, ' ')}\n`);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------- app lifecycle ----------
|
|
||||||
|
|
||||||
app.whenReady().then(() => {
|
|
||||||
if (!gotInstanceLock) return;
|
|
||||||
Menu.setApplicationMenu(null);
|
|
||||||
prefs = new Prefs(prefsFile());
|
|
||||||
// Explicit theme choice drives Chromium's prefers-color-scheme; 'system' follows the OS.
|
|
||||||
nativeTheme.themeSource = prefs.get().theme;
|
|
||||||
registerProtocol();
|
|
||||||
themeService = themes.createThemeService({
|
|
||||||
root: themes.extensionsDir(app.getPath('userData')),
|
|
||||||
appOrigin: APP_ORIGIN,
|
|
||||||
prefs,
|
|
||||||
openPath: (dir) => shell.openPath(dir),
|
|
||||||
openExternal: (url) => shell.openExternal(url),
|
|
||||||
allowShell: !testOffscreen,
|
|
||||||
});
|
|
||||||
themeService.registerProtocol(protocol);
|
|
||||||
appAudio = new AppAudioController({
|
|
||||||
resolveBinary: () => resolveCoreBinary().path,
|
|
||||||
getWindow: () => mainWindow,
|
|
||||||
trustedFrame: (frame) => Boolean(capture?.trustedFrame(frame)),
|
|
||||||
});
|
|
||||||
capture = new CaptureController({
|
|
||||||
desktopCapturer, getWindow: () => mainWindow, appOrigin: APP_ORIGIN,
|
|
||||||
onSelected: (selection) => appAudio.authorizeSelection(selection.frame, selection.sourceId),
|
|
||||||
onCaptureGranted: (selection) => appAudio.confirmSelection(selection.frame),
|
|
||||||
});
|
|
||||||
hardenSession();
|
|
||||||
// Before IPC and the window exist, so no renderer request can find the manager missing.
|
|
||||||
startConnections();
|
|
||||||
registerIpc();
|
|
||||||
if (process.env.TEAMSPEACH_TEST_HOLD_WINDOW === '1') {
|
|
||||||
// Test harness only (scripts/lib/electron-app.mjs with --exe): Playwright cannot inject its startup loader
|
|
||||||
// into a packaged app, and attaching while the first page commits loses its utility world, so the harness
|
|
||||||
// attaches first and then creates the window through this hook.
|
|
||||||
globalThis.__teamspeachCreateWindow = () => {
|
|
||||||
delete globalThis.__teamspeachCreateWindow;
|
|
||||||
createWindow();
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
createWindow();
|
|
||||||
}
|
|
||||||
// Updates come only from published releases of the public repo; nothing installs without a click.
|
|
||||||
updates = createUpdateService({
|
|
||||||
prefs,
|
|
||||||
isSessionActive: () => connections.anyActive(),
|
|
||||||
send: (state) => sendToRenderer('update:state', state),
|
|
||||||
...(testOffscreen ? { openExternal: async () => { throw new Error('External applications are disabled in offscreen tests'); } } : {}),
|
|
||||||
});
|
|
||||||
updates.registerIpc(ipcMain, trustedSender);
|
|
||||||
updates.start();
|
|
||||||
});
|
|
||||||
|
|
||||||
app.on('window-all-closed', () => app.quit());
|
|
||||||
|
|
||||||
app.on('before-quit', (event) => {
|
|
||||||
osSettings?.markQuitting();
|
|
||||||
identities?.shutdown();
|
|
||||||
whisperIpc?.dispose();
|
|
||||||
phishingList?.stop();
|
|
||||||
badgeCatalog?.stop();
|
|
||||||
streamPopout?.dispose();
|
|
||||||
appAudio?.stopAll();
|
|
||||||
capture?.cancel();
|
|
||||||
if (quitting || !connections || !connections.running) return;
|
|
||||||
event.preventDefault();
|
|
||||||
quitting = true;
|
|
||||||
connections.stopAll().finally(() => app.quit());
|
|
||||||
});
|
|
||||||
@@ -1,189 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const path = require('node:path');
|
|
||||||
const { app, Menu, Notification, Tray, powerMonitor } = require('electron');
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Official Settings → OS Specific (settings.os.windows.*), account-free: Start with the OS, flash the taskbar on
|
|
||||||
* messages / pokes, hide in the taskbar on minimize or close (with a tray icon to come back), mute the microphone
|
|
||||||
* while the computer is locked; plus the "Server Private Chat" system notification.
|
|
||||||
*
|
|
||||||
* Every item is explicit opt-in (all defaults off) and reports what the platform API actually supports:
|
|
||||||
* - autostart: Electron app.setLoginItemSettings exists on Windows and macOS only; installed builds only (a dev
|
|
||||||
* run would register the Electron binary). The OS login item is the source of truth, never a stored pref.
|
|
||||||
* - lock events: powerMonitor 'lock-screen' / 'unlock-screen' are emitted on Windows and macOS only.
|
|
||||||
* - setSkipTaskbar: Windows and Linux (no-op on macOS, where the Dock is not a taskbar).
|
|
||||||
* In TEAMSPEACH_TEST_OFFSCREEN nothing native is touched: no login item, tray, flash or notification.
|
|
||||||
*/
|
|
||||||
|
|
||||||
const HIDE_MODES = new Set(['never', 'minimize', 'close', 'both']);
|
|
||||||
|
|
||||||
function capabilities({ testOffscreen }) {
|
|
||||||
const platform = process.platform;
|
|
||||||
const loginItems = platform === 'win32' || platform === 'darwin';
|
|
||||||
const autoStart = testOffscreen
|
|
||||||
? { supported: false, reason: 'test_mode' }
|
|
||||||
: !loginItems
|
|
||||||
? { supported: false, reason: 'platform' }
|
|
||||||
: !app.isPackaged
|
|
||||||
? { supported: false, reason: 'not_packaged' }
|
|
||||||
: { supported: true, enabled: Boolean(app.getLoginItemSettings().openAtLogin) };
|
|
||||||
return {
|
|
||||||
platform,
|
|
||||||
autoStart,
|
|
||||||
flashFrame: { supported: !testOffscreen },
|
|
||||||
hideInTaskbar: { supported: !testOffscreen && (platform === 'win32' || platform === 'linux') },
|
|
||||||
lockMute: { supported: !testOffscreen && (platform === 'win32' || platform === 'darwin') },
|
|
||||||
notifications: { supported: !testOffscreen && Notification.isSupported() },
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {object} o
|
|
||||||
* @param {Electron.IpcMain} o.ipcMain
|
|
||||||
* @param {(event) => boolean} o.trustedSender
|
|
||||||
* @param {() => Electron.BrowserWindow | null} o.getWindow
|
|
||||||
* @param {boolean} o.testOffscreen
|
|
||||||
* @param {{ get(): object }} o.prefs
|
|
||||||
* @param {(key: string) => string} o.translate main-side translator for tray labels
|
|
||||||
* @param {string} o.iconPath tray icon file
|
|
||||||
* @returns {{ attachWindow(win): void, interceptClose(event): boolean, markQuitting(): void }}
|
|
||||||
*/
|
|
||||||
function registerOsSettings({ ipcMain, trustedSender, getWindow, testOffscreen, prefs, translate, iconPath }) {
|
|
||||||
let tray = null;
|
|
||||||
let quitting = false;
|
|
||||||
let lockListenersOn = false;
|
|
||||||
|
|
||||||
const caps = () => capabilities({ testOffscreen });
|
|
||||||
const hideMode = () => (HIDE_MODES.has(prefs.get().osHideInTaskbar) ? prefs.get().osHideInTaskbar : 'never');
|
|
||||||
|
|
||||||
function showWindow() {
|
|
||||||
const win = getWindow();
|
|
||||||
if (!win || win.isDestroyed()) return;
|
|
||||||
win.setSkipTaskbar(false);
|
|
||||||
if (win.isMinimized()) win.restore();
|
|
||||||
win.show();
|
|
||||||
win.focus();
|
|
||||||
}
|
|
||||||
|
|
||||||
function ensureTray() {
|
|
||||||
if (tray || testOffscreen) return;
|
|
||||||
tray = new Tray(iconPath);
|
|
||||||
tray.setToolTip('TeamsPeach');
|
|
||||||
tray.setContextMenu(Menu.buildFromTemplate([
|
|
||||||
{ label: translate('os.tray.show'), click: showWindow },
|
|
||||||
{ type: 'separator' },
|
|
||||||
{ label: translate('os.tray.quit'), click: () => { quitting = true; app.quit(); } },
|
|
||||||
]));
|
|
||||||
tray.on('click', showWindow);
|
|
||||||
}
|
|
||||||
|
|
||||||
function dropTrayIfUnused() {
|
|
||||||
if (tray && hideMode() === 'never') {
|
|
||||||
const win = getWindow();
|
|
||||||
if (win && !win.isDestroyed()) {
|
|
||||||
win.setSkipTaskbar(false);
|
|
||||||
if (!win.isVisible()) win.show();
|
|
||||||
}
|
|
||||||
tray.destroy();
|
|
||||||
tray = null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function updateLockListeners() {
|
|
||||||
const want = !testOffscreen && caps().lockMute.supported && prefs.get().osMuteWhenLocked === true;
|
|
||||||
if (want === lockListenersOn) return;
|
|
||||||
lockListenersOn = want;
|
|
||||||
if (want) {
|
|
||||||
powerMonitor.on('lock-screen', onLock);
|
|
||||||
powerMonitor.on('unlock-screen', onUnlock);
|
|
||||||
} else {
|
|
||||||
powerMonitor.off('lock-screen', onLock);
|
|
||||||
powerMonitor.off('unlock-screen', onUnlock);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function send(locked) {
|
|
||||||
const win = getWindow();
|
|
||||||
if (win && !win.isDestroyed()) win.webContents.send('os:lock', locked);
|
|
||||||
}
|
|
||||||
function onLock() { send(true); }
|
|
||||||
function onUnlock() { send(false); }
|
|
||||||
|
|
||||||
const forbidden = { ok: false, error: { code: 'forbidden', message: 'forbidden' } };
|
|
||||||
|
|
||||||
ipcMain.handle('os:capabilities', (event) => (trustedSender(event) ? caps() : null));
|
|
||||||
|
|
||||||
ipcMain.handle('os:set-autostart', (event, enabled) => {
|
|
||||||
if (!trustedSender(event)) return forbidden;
|
|
||||||
if (typeof enabled !== 'boolean') return { ok: false, error: { code: 'bad_request', message: 'expected true/false' } };
|
|
||||||
const c = caps().autoStart;
|
|
||||||
if (!c.supported) return { ok: false, error: { code: 'unsupported', message: c.reason } };
|
|
||||||
try {
|
|
||||||
app.setLoginItemSettings({ openAtLogin: enabled });
|
|
||||||
return { ok: true, enabled: Boolean(app.getLoginItemSettings().openAtLogin) };
|
|
||||||
} catch (error) {
|
|
||||||
return { ok: false, error: { code: 'os_error', message: String(error.message ?? error) } };
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// Called by the renderer after it saved osHideInTaskbar / osMuteWhenLocked, so main applies them at once.
|
|
||||||
ipcMain.handle('os:apply', (event) => {
|
|
||||||
if (!trustedSender(event)) return forbidden;
|
|
||||||
updateLockListeners();
|
|
||||||
dropTrayIfUnused();
|
|
||||||
return { ok: true };
|
|
||||||
});
|
|
||||||
|
|
||||||
ipcMain.handle('os:flash', (event, kind) => {
|
|
||||||
if (!trustedSender(event) || testOffscreen) return false;
|
|
||||||
const p = prefs.get();
|
|
||||||
const allowed = (kind === 'message' && p.osFlashOnMessage === true) || (kind === 'poke' && p.osFlashOnPoke === true);
|
|
||||||
const win = getWindow();
|
|
||||||
if (!allowed || !win || win.isDestroyed() || win.isFocused()) return false;
|
|
||||||
win.flashFrame(true);
|
|
||||||
win.once('focus', () => { if (!win.isDestroyed()) win.flashFrame(false); });
|
|
||||||
return true;
|
|
||||||
});
|
|
||||||
|
|
||||||
ipcMain.handle('os:notify', (event, title, body, kind = 'private') => {
|
|
||||||
if (!trustedSender(event) || testOffscreen) return false;
|
|
||||||
if (kind !== 'private' && kind !== 'channel') return false;
|
|
||||||
const preference = kind === 'channel' ? 'systemNotifyChannelChat' : 'systemNotifyServerPrivate';
|
|
||||||
if (prefs.get()[preference] !== true || !Notification.isSupported()) return false;
|
|
||||||
if (typeof title !== 'string' || typeof body !== 'string' || title.length > 200) return false;
|
|
||||||
const win = getWindow();
|
|
||||||
if (win && !win.isDestroyed() && win.isFocused()) return false;
|
|
||||||
const n = new Notification({ title, body: body.slice(0, 500), silent: true });
|
|
||||||
n.on('click', showWindow);
|
|
||||||
n.show();
|
|
||||||
return true;
|
|
||||||
});
|
|
||||||
|
|
||||||
updateLockListeners();
|
|
||||||
|
|
||||||
return {
|
|
||||||
attachWindow(win) {
|
|
||||||
if (testOffscreen) return;
|
|
||||||
win.on('minimize', () => {
|
|
||||||
if (!['minimize', 'both'].includes(hideMode()) || !caps().hideInTaskbar.supported) return;
|
|
||||||
ensureTray();
|
|
||||||
win.setSkipTaskbar(true);
|
|
||||||
});
|
|
||||||
win.on('restore', () => win.setSkipTaskbar(false));
|
|
||||||
win.on('show', () => win.setSkipTaskbar(false));
|
|
||||||
},
|
|
||||||
/** Call first in the window 'close' handler; true = the window was hidden instead of closed. */
|
|
||||||
interceptClose(event) {
|
|
||||||
if (quitting || !['close', 'both'].includes(hideMode()) || !caps().hideInTaskbar.supported) return false;
|
|
||||||
const win = getWindow();
|
|
||||||
if (!win || win.isDestroyed()) return false;
|
|
||||||
ensureTray();
|
|
||||||
event.preventDefault();
|
|
||||||
win.hide();
|
|
||||||
return true;
|
|
||||||
},
|
|
||||||
markQuitting() { quitting = true; },
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = { registerOsSettings, capabilities, HIDE_MODES, defaultIconPath: () => path.join(__dirname, '..', 'renderer', 'assets', 'icon.png') };
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const path = require('node:path');
|
|
||||||
const fs = require('node:fs');
|
|
||||||
const { app } = require('electron');
|
|
||||||
|
|
||||||
const CORE_FILE = process.platform === 'win32' ? 'teamspeach-core.exe' : 'teamspeach-core';
|
|
||||||
const APP_ROOT = path.resolve(__dirname, '..', '..');
|
|
||||||
const RENDERER_DIR = path.join(APP_ROOT, 'app', 'renderer');
|
|
||||||
|
|
||||||
/** Candidate locations of the native core. Only main decides these; nothing comes from the renderer. */
|
|
||||||
function coreCandidates() {
|
|
||||||
if (app.isPackaged) return [path.join(process.resourcesPath, 'core', CORE_FILE)];
|
|
||||||
return [
|
|
||||||
path.join(APP_ROOT, 'core', 'target', 'release', CORE_FILE),
|
|
||||||
path.join(APP_ROOT, 'core', 'target', 'debug', CORE_FILE),
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Newest existing candidate wins in development so a fresh debug build is not shadowed by a stale release build. */
|
|
||||||
function resolveCoreBinary() {
|
|
||||||
const candidates = coreCandidates();
|
|
||||||
let best = null;
|
|
||||||
for (const candidate of candidates) {
|
|
||||||
try {
|
|
||||||
const stat = fs.statSync(candidate);
|
|
||||||
if (stat.isFile() && (!best || stat.mtimeMs > best.mtimeMs)) best = { path: candidate, mtimeMs: stat.mtimeMs };
|
|
||||||
} catch {
|
|
||||||
// missing candidate
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return { path: best ? best.path : null, candidates };
|
|
||||||
}
|
|
||||||
|
|
||||||
function dataDir() {
|
|
||||||
return path.join(app.getPath('userData'), 'core');
|
|
||||||
}
|
|
||||||
|
|
||||||
function logsDir() {
|
|
||||||
return path.join(app.getPath('userData'), 'logs');
|
|
||||||
}
|
|
||||||
|
|
||||||
function prefsFile() {
|
|
||||||
return path.join(app.getPath('userData'), 'prefs.json');
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = { APP_ROOT, RENDERER_DIR, CORE_FILE, resolveCoreBinary, dataDir, logsDir, prefsFile };
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Permission policy for the app's own origin. Electron reports origins as a URL spec with a trailing
|
|
||||||
* slash ("app://teamspeach/"), so origins are compared after normalisation. Allowed: microphone capture
|
|
||||||
* on request, device enumeration and output selection on check, and HTML full screen on request (the
|
|
||||||
* stream player; Electron asks the request handler before entering it). Camera, screen capture and every
|
|
||||||
* other permission stay denied.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// WHATWG URL reports "null" as the origin of non-special schemes such as app:, so the origin is rebuilt from
|
|
||||||
// the parsed protocol and host. Inputs with credentials or backslashes (lookalikes such as
|
|
||||||
// "app://teamspeach\@evil" or "app://teamspeach@evil") never match.
|
|
||||||
function normalizeOrigin(origin) {
|
|
||||||
if (typeof origin !== 'string' || origin.includes('\\')) return '';
|
|
||||||
let url;
|
|
||||||
try {
|
|
||||||
url = new URL(origin);
|
|
||||||
} catch {
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
if (url.username || url.password || !url.host) return '';
|
|
||||||
return `${url.protocol}//${url.host}`.toLowerCase();
|
|
||||||
}
|
|
||||||
|
|
||||||
function isAppOrigin(origin, appOrigin) {
|
|
||||||
return normalizeOrigin(origin) === appOrigin;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** setPermissionCheckHandler: enumerateDevices labels/ids and setSinkId depend on this. */
|
|
||||||
function permissionCheckAllowed(permission, requestingOrigin, details, appOrigin) {
|
|
||||||
if (details?.isMainFrame === false) return false;
|
|
||||||
if (!isAppOrigin(requestingOrigin, appOrigin)) return false;
|
|
||||||
if (permission === 'media') return Boolean(details) && details.mediaType === 'audio';
|
|
||||||
return permission === 'speaker-selection';
|
|
||||||
}
|
|
||||||
|
|
||||||
/** setPermissionRequestHandler: getUserMedia for audio only, and full screen, from a page of the app. */
|
|
||||||
function permissionRequestAllowed(permission, details, appOrigin) {
|
|
||||||
if (details?.isMainFrame === false) return false;
|
|
||||||
if (!details || !isAppOrigin(details.requestingUrl, appOrigin)) return false;
|
|
||||||
if (permission === 'fullscreen') return true;
|
|
||||||
if (permission !== 'media') return false;
|
|
||||||
const types = Array.isArray(details.mediaTypes) ? details.mediaTypes : [];
|
|
||||||
return types.length > 0 && types.every((t) => t === 'audio');
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = { normalizeOrigin, permissionCheckAllowed, permissionRequestAllowed };
|
|
||||||
@@ -1,226 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Threat classification for external links, from the same source as the installed TS6 client's
|
|
||||||
* ExternalLinkGuard (client_ui/main.js class Ee): PHISHING_LIST_URLS = [PHISHING_LIST_URL], fetched at start
|
|
||||||
* and every FETCH_INTERVAL_MS (1 h), one domain per line, matched exactly against the link's lowercase
|
|
||||||
* hostname ("warn-malicious").
|
|
||||||
*
|
|
||||||
* Network policy (stricter than the official fetch):
|
|
||||||
* - one fixed public HTTPS URL, anonymous GET: no cookies or credentials, no referrer, no query, no
|
|
||||||
* identifiers; the request never contains a visited link — classification is a local Set lookup;
|
|
||||||
* - redirect:'error': the fixed endpoint is fetched directly and any redirect fails the request before a second
|
|
||||||
* request is made; the whole request is bounded by REQUEST_TIMEOUT_MS and MAX_BYTES, and a body with any
|
|
||||||
* non-domain line (other than blank or '#' comment lines) or over MAX_DOMAINS is rejected as a whole, so an
|
|
||||||
* error page mixed with domains can never replace a known good list;
|
|
||||||
* - stop() aborts an in-flight request and discards its result: no list or cache update after stop;
|
|
||||||
* - a failed refresh keeps the previous list; the last good list is cached in the profile so a restart
|
|
||||||
* while offline still classifies links;
|
|
||||||
* - disabled (no request, no cache) when the owner passes enabled=false, e.g. offscreen tests.
|
|
||||||
*/
|
|
||||||
|
|
||||||
const fs = require('node:fs');
|
|
||||||
const path = require('node:path');
|
|
||||||
|
|
||||||
const PHISHING_LIST_URL = 'https://files.teamspeak-services.com/client/phishing-domains/active.txt';
|
|
||||||
const FETCH_INTERVAL_MS = 60 * 60 * 1000;
|
|
||||||
const REQUEST_TIMEOUT_MS = 20000;
|
|
||||||
const MAX_BYTES = 16 * 1024 * 1024;
|
|
||||||
const MAX_DOMAINS = 1000000;
|
|
||||||
const CACHE_VERSION = 1;
|
|
||||||
|
|
||||||
// Lowercase DNS name as WHATWG URL serialises it (punycode for IDN); '_' occurs in real hostnames.
|
|
||||||
const LABEL = '[a-z0-9_](?:[a-z0-9_-]{0,61}[a-z0-9_])?';
|
|
||||||
const DOMAIN = new RegExp(`^(?=.{1,253}$)${LABEL}(?:\\.${LABEL})*$`);
|
|
||||||
|
|
||||||
const validDomain = (value) => typeof value === 'string' && DOMAIN.test(value);
|
|
||||||
|
|
||||||
class ListError extends Error {
|
|
||||||
constructor(code, message) { super(message); this.code = code; }
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Text → Set of domains. Empty and '#' lines are skipped; any other non-domain line rejects the whole body. */
|
|
||||||
function parseList(text) {
|
|
||||||
const domains = new Set();
|
|
||||||
for (const line of text.split('\n')) {
|
|
||||||
const entry = line.trim().toLowerCase().replace(/\.$/, '');
|
|
||||||
if (!entry || entry.startsWith('#')) continue;
|
|
||||||
if (!validDomain(entry)) throw new ListError('bad-response', 'phishing list contains a line that is not a domain');
|
|
||||||
domains.add(entry);
|
|
||||||
if (domains.size > MAX_DOMAINS) throw new ListError('too-large', `phishing list has more than ${MAX_DOMAINS} domains`);
|
|
||||||
}
|
|
||||||
return { domains };
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Reads at most `max` bytes; an abort (stop or timeout) cancels the body even if the stream ignores it. */
|
|
||||||
async function readBounded(res, max, signal) {
|
|
||||||
const declared = Number(res.headers?.get?.('content-length'));
|
|
||||||
if (Number.isFinite(declared) && declared > max) throw new ListError('too-large', 'phishing list response too large');
|
|
||||||
if (!res.body || typeof res.body.getReader !== 'function') {
|
|
||||||
const text = await res.text();
|
|
||||||
if (signal.aborted) throw signal.reason;
|
|
||||||
if (Buffer.byteLength(text) > max) throw new ListError('too-large', 'phishing list response too large');
|
|
||||||
return text;
|
|
||||||
}
|
|
||||||
const reader = res.body.getReader();
|
|
||||||
const chunks = [];
|
|
||||||
let total = 0;
|
|
||||||
const onAbort = () => { reader.cancel(signal.reason).catch(() => {}); };
|
|
||||||
signal.addEventListener('abort', onAbort, { once: true });
|
|
||||||
try {
|
|
||||||
for (;;) {
|
|
||||||
if (signal.aborted) throw signal.reason;
|
|
||||||
const { done, value } = await reader.read();
|
|
||||||
if (signal.aborted) throw signal.reason;
|
|
||||||
if (done) break;
|
|
||||||
total += value.byteLength;
|
|
||||||
if (total > max) {
|
|
||||||
await reader.cancel().catch(() => {});
|
|
||||||
throw new ListError('too-large', 'phishing list response too large');
|
|
||||||
}
|
|
||||||
chunks.push(Buffer.from(value.buffer, value.byteOffset, value.byteLength));
|
|
||||||
}
|
|
||||||
} finally {
|
|
||||||
signal.removeEventListener('abort', onAbort);
|
|
||||||
}
|
|
||||||
return Buffer.concat(chunks, total).toString('utf8');
|
|
||||||
}
|
|
||||||
|
|
||||||
class PhishingList {
|
|
||||||
/**
|
|
||||||
* @param {object} o
|
|
||||||
* @param {string} o.cacheFile profile file for the last good list
|
|
||||||
* @param {(url: string, init: object) => Promise<Response>} o.fetchImpl Electron net.fetch in the app
|
|
||||||
* @param {boolean} [o.enabled]
|
|
||||||
*/
|
|
||||||
constructor({ cacheFile, fetchImpl, enabled = true, now = Date.now, setIntervalImpl = setInterval, clearIntervalImpl = clearInterval, log = () => {} }) {
|
|
||||||
Object.assign(this, { cacheFile, fetchImpl, enabled, now, setIntervalImpl, clearIntervalImpl, log });
|
|
||||||
this.domains = new Set();
|
|
||||||
this.fetchedAt = null; // ms of the list in use (network or cache)
|
|
||||||
this.checkedAt = null; // ms of the last network attempt
|
|
||||||
this.fromCache = false;
|
|
||||||
this.error = null;
|
|
||||||
this.timer = null;
|
|
||||||
this.pending = null;
|
|
||||||
this.controller = null; // AbortController of the in-flight request
|
|
||||||
this.generation = 0; // bumped by stop(); results of an older generation are discarded
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Exact hostname match, like the official `_phishingDomains.has(hostname)`. */
|
|
||||||
has(host) {
|
|
||||||
return typeof host === 'string' && this.domains.has(host.toLowerCase().replace(/\.$/, ''));
|
|
||||||
}
|
|
||||||
|
|
||||||
status() {
|
|
||||||
return {
|
|
||||||
enabled: this.enabled, source: PHISHING_LIST_URL, loaded: this.fetchedAt !== null, count: this.domains.size,
|
|
||||||
fetchedAt: this.fetchedAt, checkedAt: this.checkedAt, fromCache: this.fromCache, error: this.error,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
if (!this.enabled || this.timer !== null) return;
|
|
||||||
this.loadCache();
|
|
||||||
void this.refresh();
|
|
||||||
this.timer = this.setIntervalImpl(() => { void this.refresh(); }, FETCH_INTERVAL_MS);
|
|
||||||
this.timer?.unref?.();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Ends the schedule, aborts an in-flight request and discards its result. refresh() may be called again later. */
|
|
||||||
stop() {
|
|
||||||
if (this.timer !== null) this.clearIntervalImpl(this.timer);
|
|
||||||
this.timer = null;
|
|
||||||
this.generation += 1;
|
|
||||||
this.controller?.abort(new ListError('stopped', 'phishing list refresh stopped'));
|
|
||||||
this.controller = null;
|
|
||||||
this.pending = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
loadCache() {
|
|
||||||
try {
|
|
||||||
const stat = fs.statSync(this.cacheFile);
|
|
||||||
if (!stat.isFile() || stat.size > MAX_BYTES * 2) return;
|
|
||||||
const data = JSON.parse(fs.readFileSync(this.cacheFile, 'utf8'));
|
|
||||||
if (data?.version !== CACHE_VERSION || data.source !== PHISHING_LIST_URL || !Number.isFinite(data.fetchedAt)
|
|
||||||
|| !Array.isArray(data.domains) || data.domains.length > MAX_DOMAINS || !data.domains.every(validDomain)) return;
|
|
||||||
if (this.fetchedAt !== null && this.fetchedAt >= data.fetchedAt) return;
|
|
||||||
this.domains = new Set(data.domains);
|
|
||||||
this.fetchedAt = data.fetchedAt;
|
|
||||||
this.fromCache = true;
|
|
||||||
} catch {
|
|
||||||
// no cache yet, or unreadable: classification starts empty until the first fetch
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Single-flight network refresh; never throws. Resolves to status(). */
|
|
||||||
refresh() {
|
|
||||||
if (!this.enabled) return Promise.resolve(this.status());
|
|
||||||
if (!this.pending) {
|
|
||||||
const pending = this.fetchOnce().finally(() => { if (this.pending === pending) this.pending = null; });
|
|
||||||
this.pending = pending;
|
|
||||||
}
|
|
||||||
return this.pending;
|
|
||||||
}
|
|
||||||
|
|
||||||
async fetchOnce() {
|
|
||||||
const generation = this.generation;
|
|
||||||
const stopped = () => generation !== this.generation;
|
|
||||||
const controller = new AbortController();
|
|
||||||
this.controller = controller;
|
|
||||||
const timer = setTimeout(() => controller.abort(new ListError('timeout', `phishing list: no answer in ${REQUEST_TIMEOUT_MS / 1000} s`)), REQUEST_TIMEOUT_MS);
|
|
||||||
timer.unref?.();
|
|
||||||
this.checkedAt = this.now();
|
|
||||||
try {
|
|
||||||
const res = await this.fetchImpl(PHISHING_LIST_URL, {
|
|
||||||
method: 'GET', signal: controller.signal, redirect: 'error', cache: 'no-store',
|
|
||||||
credentials: 'omit', referrerPolicy: 'no-referrer', headers: { Accept: 'text/plain' },
|
|
||||||
});
|
|
||||||
if (stopped()) return this.status();
|
|
||||||
// redirect:'error' already refuses redirects; a fetch implementation that followed one anyway is rejected.
|
|
||||||
if (res.redirected || (res.url && res.url !== PHISHING_LIST_URL)) throw new ListError('redirect', 'phishing list response did not come from the fixed endpoint');
|
|
||||||
if (!res.ok) throw new ListError('http', `phishing list: HTTP ${res.status}`);
|
|
||||||
const text = await readBounded(res, MAX_BYTES, controller.signal);
|
|
||||||
if (stopped()) return this.status();
|
|
||||||
const { domains } = parseList(text);
|
|
||||||
this.domains = domains;
|
|
||||||
this.fetchedAt = this.now();
|
|
||||||
this.fromCache = false;
|
|
||||||
this.error = null;
|
|
||||||
this.writeCache();
|
|
||||||
this.log('info', `phishing list: ${domains.size} domains`);
|
|
||||||
} catch (err) {
|
|
||||||
if (stopped()) return this.status();
|
|
||||||
const reason = controller.signal.aborted ? controller.signal.reason : null;
|
|
||||||
const code = err instanceof ListError ? err.code : reason instanceof ListError ? reason.code : 'network';
|
|
||||||
this.error = { code, message: String((reason instanceof ListError ? reason : err)?.message ?? err) };
|
|
||||||
this.log('warn', `phishing list: ${this.error.message} (keeping ${this.domains.size} known domains)`);
|
|
||||||
} finally {
|
|
||||||
clearTimeout(timer);
|
|
||||||
if (this.controller === controller) this.controller = null;
|
|
||||||
}
|
|
||||||
return this.status();
|
|
||||||
}
|
|
||||||
|
|
||||||
writeCache() {
|
|
||||||
try {
|
|
||||||
fs.mkdirSync(path.dirname(this.cacheFile), { recursive: true });
|
|
||||||
const tmp = `${this.cacheFile}.tmp`;
|
|
||||||
fs.writeFileSync(tmp, JSON.stringify({ version: CACHE_VERSION, source: PHISHING_LIST_URL, fetchedAt: this.fetchedAt, domains: [...this.domains] }));
|
|
||||||
fs.renameSync(tmp, this.cacheFile);
|
|
||||||
} catch (err) {
|
|
||||||
this.log('warn', `phishing list cache not written: ${err.message}`);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Renderer access: one exact-host lookup per external link, and the source state. */
|
|
||||||
function registerPhishingIpc({ ipcMain, trustedSender, list }) {
|
|
||||||
ipcMain.handle('privacy:link-threat', (event, host) => {
|
|
||||||
if (!trustedSender(event)) return { ok: false, error: { code: 'forbidden', message: 'forbidden' } };
|
|
||||||
if (typeof host !== 'string' || host.length > 253) return { ok: false, error: { code: 'bad_request', message: 'Invalid host' } };
|
|
||||||
return { ok: true, malicious: list.has(host), loaded: list.status().loaded };
|
|
||||||
});
|
|
||||||
ipcMain.handle('privacy:threat-status', (event) => (trustedSender(event) ? { ok: true, status: list.status() } : { ok: false, error: { code: 'forbidden', message: 'forbidden' } }));
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = { PhishingList, registerPhishingIpc, parseList, PHISHING_LIST_URL, FETCH_INTERVAL_MS, MAX_BYTES, MAX_DOMAINS };
|
|
||||||
@@ -1,165 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const fs = require('node:fs');
|
|
||||||
const path = require('node:path');
|
|
||||||
const { USER_STYLE_PREF } = require('./themes');
|
|
||||||
const { VOICE_SCHEMA, migrateVoicePrefs } = require('./voice-prefs');
|
|
||||||
const { PRIVACY_SCHEMA, migratePrivacyPrefs } = require('./privacy-prefs');
|
|
||||||
const { CHAT_SCHEMA } = require('./chat-prefs');
|
|
||||||
const { CONTACT_SCHEMA } = require('./contacts-prefs');
|
|
||||||
const bookmarks = require('../renderer/shared/bookmarks.js');
|
|
||||||
const LAYOUT_VERSION = 2;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* UI preferences owned by main (identity/nickname live in the core data dir, never here).
|
|
||||||
* Every key has a validator; unknown keys and wrong types are rejected.
|
|
||||||
*/
|
|
||||||
const SCHEMA = {
|
|
||||||
lastAddress: { default: '', check: (v) => typeof v === 'string' && v.length <= 255 && !/[\u0000-\u001f]/.test(v) },
|
|
||||||
...VOICE_SCHEMA,
|
|
||||||
...PRIVACY_SCHEMA,
|
|
||||||
pttCode: { default: 'F8', check: (v) => typeof v === 'string' && /^[A-Za-z0-9]{1,32}$/.test(v) },
|
|
||||||
inputDeviceId: { default: '', check: (v) => typeof v === 'string' && v.length <= 512 },
|
|
||||||
outputDeviceId: { default: '', check: (v) => typeof v === 'string' && v.length <= 512 },
|
|
||||||
hardwareVideoDecode: { default: true, check: (v) => typeof v === 'boolean' },
|
|
||||||
streamVolume: { default: 100, check: (v) => Number.isInteger(v) && v >= 0 && v <= 100 },
|
|
||||||
streamStageRatio: { default: 0.55, check: (v) => typeof v === 'number' && Number.isFinite(v) && v >= 0.15 && v <= 0.8 },
|
|
||||||
streamStageCollapsed: { default: false, check: (v) => typeof v === 'boolean' },
|
|
||||||
// Zero retains the responsive default; the renderer clamps saved pixels to the current window.
|
|
||||||
sidebarWidth: { default: 0, check: (v) => Number.isInteger(v) && v >= 0 && v <= 1600 },
|
|
||||||
// Server pane width in px (official main slot); zero keeps the official default 500 px.
|
|
||||||
serverPaneWidth: { default: 0, check: (v) => Number.isInteger(v) && v >= 0 && v <= 1600 },
|
|
||||||
collapsedChannels: { default: [], check: validCollapsedChannels },
|
|
||||||
savedServersCollapsed: { default: false, check: (v) => typeof v === 'boolean' },
|
|
||||||
// Dark by default for new profiles regardless of the OS (owner's request); a stored valid choice —
|
|
||||||
// including 'system' or 'light' — is always kept.
|
|
||||||
theme: { default: 'dark', check: (v) => v === 'system' || v === 'dark' || v === 'light' },
|
|
||||||
displaySize: { default: 'medium', check: (v) => ['small', 'medium', 'large'].includes(v) },
|
|
||||||
treeStyle: { default: 'detailed', check: (v) => ['compact', 'detailed'].includes(v) },
|
|
||||||
chatStyle: { default: 'detailed', check: (v) => ['compact', 'detailed'].includes(v) },
|
|
||||||
sidebarIconMode: { default: 'adaptive', check: (v) => ['adaptive', 'small', 'large'].includes(v) },
|
|
||||||
showCountryFlags: { default: false, check: (v) => typeof v === 'boolean' },
|
|
||||||
showChannelBanners: { default: true, check: (v) => typeof v === 'boolean' },
|
|
||||||
showChannelBackground: { default: true, check: (v) => typeof v === 'boolean' },
|
|
||||||
showClientsBeforeChannels: { default: true, check: (v) => typeof v === 'boolean' },
|
|
||||||
channelCommanderAsLamp: { default: true, check: (v) => typeof v === 'boolean' },
|
|
||||||
// Updater: 'preview' accepts prereleases (all TeamsPeach releases so far), 'stable' only full releases.
|
|
||||||
updateChannel: { default: 'preview', check: (v) => v === 'preview' || v === 'stable' },
|
|
||||||
// Interface language: English for new profiles (owner's request); a stored valid choice is kept.
|
|
||||||
language: { default: 'en', check: (v) => v === 'en' || v === 'ru' },
|
|
||||||
// Bookmarks: a local identity UID, containing folder and connect options (nickname, initial channel,
|
|
||||||
// startup connect/mute). Passwords are only ever stored as OS-encrypted ciphertext written by
|
|
||||||
// bookmark-secrets.js; the shape rules live in shared/bookmarks.js.
|
|
||||||
savedServers: { default: [], check: bookmarks.validServers },
|
|
||||||
// Local bookmark folders (official Bookmarks "New Folder") and the shared display order of folders and
|
|
||||||
// bookmarks. Cross-field rules (references, cycles, depth, order permutation) live in shared/bookmarks.js.
|
|
||||||
bookmarkFolders: { default: [], check: bookmarks.validFolders },
|
|
||||||
bookmarkOrder: { default: [], check: bookmarks.validOrder },
|
|
||||||
// Chat (official settings.chat.*): formatting toolbar visibility, diagram auto-load and images.
|
|
||||||
...CHAT_SCHEMA,
|
|
||||||
...CONTACT_SCHEMA,
|
|
||||||
// Official workflowSettings.autoEnableMicrophone (default off): focusing a server tab moves the microphone there.
|
|
||||||
autoEnableMicrophone: { default: false, check: (v) => typeof v === 'boolean' },
|
|
||||||
// Official workflowSettings.autoReactivateMicOnPreviousTarget (default on): when the microphone's connection
|
|
||||||
// ends, the microphone returns to the connection that had it before.
|
|
||||||
autoReactivateMicOnPreviousTarget: { default: true, check: (v) => typeof v === 'boolean' },
|
|
||||||
// Third-party theme extension selection '<identifier>//<variant name>' (official appearance.user_style); null = stock theme.
|
|
||||||
userStyle: USER_STYLE_PREF,
|
|
||||||
// Main-only (main.js rejects renderer writes): set by the recording folder dialog (recording-main.js).
|
|
||||||
recordingFolder: { default: null, check: (v) => v === null || (typeof v === 'string' && v.length >= 1 && v.length <= 1024 && path.isAbsolute(v) && !/[\u0000-\u001f\u007f]/.test(v)) },
|
|
||||||
// Official recording.mode: 1 Multitrack, 2 Master, 3 Multitrack + Master (default).
|
|
||||||
recordingMode: { default: 3, check: (v) => v === 1 || v === 2 || v === 3 },
|
|
||||||
// Per event: 0 off, 1 sound, 2 important (also while muted/away); logs are independent.
|
|
||||||
notificationStates: { default: {}, check: (v) => v !== null && typeof v === 'object' && !Array.isArray(v) && Object.keys(v).length <= 128 && Object.entries(v).every(([k, s]) => /^[a-z_]{1,96}$/.test(k) && (s === 0 || s === 1 || s === 2)) },
|
|
||||||
systemNotifyServerPrivate: { default: false, check: (v) => typeof v === 'boolean' },
|
|
||||||
systemNotifyChannelChat: { default: false, check: (v) => typeof v === 'boolean' },
|
|
||||||
// OS integration (official settings.os.*).
|
|
||||||
osFlashOnMessage: { default: false, check: (v) => typeof v === 'boolean' },
|
|
||||||
osFlashOnPoke: { default: false, check: (v) => typeof v === 'boolean' },
|
|
||||||
osHideInTaskbar: { default: 'never', check: (v) => ['never', 'minimize', 'close', 'both'].includes(v) },
|
|
||||||
osMuteWhenLocked: { default: false, check: (v) => typeof v === 'boolean' },
|
|
||||||
};
|
|
||||||
|
|
||||||
const CONTROL = /[\u0000-\u001f\u007f]/;
|
|
||||||
|
|
||||||
const BOOKMARK_KEYS = ['savedServers', 'bookmarkFolders', 'bookmarkOrder'];
|
|
||||||
|
|
||||||
function validCollapsedChannels(list) {
|
|
||||||
if (!Array.isArray(list) || list.length > 32) return false;
|
|
||||||
const servers = new Set();
|
|
||||||
for (const entry of list) {
|
|
||||||
if (!entry || typeof entry !== 'object' || Array.isArray(entry)) return false;
|
|
||||||
const keys = Object.keys(entry);
|
|
||||||
if (keys.length !== 2 || !keys.includes('server') || !keys.includes('channels')) return false;
|
|
||||||
if (typeof entry.server !== 'string' || !entry.server.trim() || entry.server.length > 255 || CONTROL.test(entry.server) || servers.has(entry.server)) return false;
|
|
||||||
if (!Array.isArray(entry.channels) || entry.channels.length > 512) return false;
|
|
||||||
const channels = new Set();
|
|
||||||
for (const id of entry.channels) {
|
|
||||||
if (!Number.isSafeInteger(id) || id <= 0 || channels.has(id)) return false;
|
|
||||||
channels.add(id);
|
|
||||||
}
|
|
||||||
servers.add(entry.server);
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
class Prefs {
|
|
||||||
constructor(file) {
|
|
||||||
this.file = file;
|
|
||||||
this.values = defaults();
|
|
||||||
try {
|
|
||||||
const raw = JSON.parse(fs.readFileSync(file, 'utf8'));
|
|
||||||
if (raw && typeof raw === 'object') {
|
|
||||||
for (const [key, spec] of Object.entries(SCHEMA)) {
|
|
||||||
if (Object.prototype.hasOwnProperty.call(raw, key) && spec.check(raw[key])) this.values[key] = raw[key];
|
|
||||||
}
|
|
||||||
migrateVoicePrefs(raw, this.values);
|
|
||||||
migratePrivacyPrefs(raw, this.values);
|
|
||||||
// Two-pane files predate serverPaneWidth. Three-pane saves always include that key,
|
|
||||||
// so preserve those even before the explicit version marker was introduced.
|
|
||||||
if (!Object.hasOwn(raw, 'layoutVersion') && !Object.hasOwn(raw, 'serverPaneWidth') && Object.hasOwn(raw, 'sidebarWidth') && SCHEMA.sidebarWidth.check(raw.sidebarWidth)) {
|
|
||||||
this.values.serverPaneWidth = raw.sidebarWidth;
|
|
||||||
this.values.sidebarWidth = SCHEMA.sidebarWidth.default;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch {
|
|
||||||
// first run or unreadable file: defaults
|
|
||||||
}
|
|
||||||
// Each bookmark list was validated alone; references and order are repaired together without losing bookmarks.
|
|
||||||
Object.assign(this.values, bookmarks.normalize(this.values));
|
|
||||||
}
|
|
||||||
|
|
||||||
get() {
|
|
||||||
return { ...this.values };
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Applies a validated partial update; returns the full prefs or throws. */
|
|
||||||
set(partial) {
|
|
||||||
if (!partial || typeof partial !== 'object' || Array.isArray(partial)) throw new Error('prefs: expected an object');
|
|
||||||
const next = { ...this.values };
|
|
||||||
for (const [key, value] of Object.entries(partial)) {
|
|
||||||
const spec = SCHEMA[key];
|
|
||||||
if (!spec) throw new Error(`prefs: unknown key ${key}`);
|
|
||||||
if (!spec.check(value)) throw new Error(`prefs: invalid value for ${key}`);
|
|
||||||
next[key] = value;
|
|
||||||
}
|
|
||||||
if (BOOKMARK_KEYS.some((key) => Object.hasOwn(partial, key))) {
|
|
||||||
// A write without an explicit order keeps the stored sequence: removed ids drop out, new ones go last.
|
|
||||||
if (!Object.hasOwn(partial, 'bookmarkOrder')) next.bookmarkOrder = bookmarks.completeOrder(next);
|
|
||||||
if (!bookmarks.consistent(next)) throw new Error('prefs: inconsistent bookmarks and folders');
|
|
||||||
}
|
|
||||||
// Persist first: if writing fails, neither the file nor the in-memory values change.
|
|
||||||
fs.mkdirSync(path.dirname(this.file), { recursive: true });
|
|
||||||
const tmp = `${this.file}.tmp`;
|
|
||||||
fs.writeFileSync(tmp, JSON.stringify({ ...next, layoutVersion: LAYOUT_VERSION }, null, 2));
|
|
||||||
fs.renameSync(tmp, this.file);
|
|
||||||
this.values = next;
|
|
||||||
return this.get();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function defaults() {
|
|
||||||
return Object.fromEntries(Object.entries(SCHEMA).map(([key, spec]) => [key, structuredClone(spec.default)]));
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = { Prefs };
|
|
||||||
@@ -1,66 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Privacy preferences that follow the installed TS6 client's workflowSettings (client_ui/main.js, class Xe/Ge):
|
|
||||||
* - trustedExternalHosts: hosts the user chose to "Always trust" in the external-link warning.
|
|
||||||
* - allowWhitelistMalicious (default off): lets the warning offer "Always trust" for a host the phishing list
|
|
||||||
* flags. Off, a flagged host can still be opened after the warning but never becomes trusted.
|
|
||||||
* - confirmationSettings: one boolean per remembered confirmation (true = ask). A confirmation that offers
|
|
||||||
* "Don't ask again" stores false; Settings > Privacy > Reset Confirmations sets every key back to true.
|
|
||||||
*
|
|
||||||
* Myteamspeak chat settings (enableServerShare, enableTypingNotifications) and analytics are not stored:
|
|
||||||
* TeamsPeach has no chat-service presence or typing channel and sends no diagnostics.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Official class Ge defaults: every confirmation is shown until the user opts out.
|
|
||||||
const CONFIRMATION_KEYS = Object.freeze(['delete_ban', 'delete_temp_pw', 'delete_privilege_key', 'clear_file_transfer_history']);
|
|
||||||
const CONFIRMATION_DEFAULTS = Object.freeze(Object.fromEntries(CONFIRMATION_KEYS.map((key) => [key, true])));
|
|
||||||
const MAX_TRUSTED_HOSTS = 500;
|
|
||||||
const HOST = /^[a-z0-9.-]+$/;
|
|
||||||
|
|
||||||
const isPlainObject = (v) => v !== null && typeof v === 'object' && !Array.isArray(v) && Object.getPrototypeOf(v) === Object.prototype;
|
|
||||||
|
|
||||||
function validTrustedHosts(v) {
|
|
||||||
return Array.isArray(v) && v.length <= MAX_TRUSTED_HOSTS
|
|
||||||
&& v.every((h) => typeof h === 'string' && h.length >= 1 && h.length <= 253 && HOST.test(h));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Exactly the known keys, each a boolean: the renderer always writes the complete object. */
|
|
||||||
function validConfirmationSettings(v) {
|
|
||||||
if (!isPlainObject(v)) return false;
|
|
||||||
const keys = Object.keys(v);
|
|
||||||
return keys.length === CONFIRMATION_KEYS.length && CONFIRMATION_KEYS.every((key) => typeof v[key] === 'boolean');
|
|
||||||
}
|
|
||||||
|
|
||||||
const PRIVACY_SCHEMA = {
|
|
||||||
trustedExternalHosts: { default: [], check: validTrustedHosts },
|
|
||||||
allowWhitelistMalicious: { default: false, check: (v) => typeof v === 'boolean' },
|
|
||||||
confirmationSettings: { default: { ...CONFIRMATION_DEFAULTS }, check: validConfirmationSettings },
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Keeps the remembered choices of a stored confirmationSettings object that does not match the current key set
|
|
||||||
* (written by another version): known boolean keys are kept, missing keys default to "ask", unknown keys drop.
|
|
||||||
* Mirrors the official load merge `{...defaults, ...stored}`. `values` already holds validated keys/defaults.
|
|
||||||
*/
|
|
||||||
function migratePrivacyPrefs(raw, values) {
|
|
||||||
const stored = raw?.confirmationSettings;
|
|
||||||
if (!isPlainObject(stored) || validConfirmationSettings(stored)) return;
|
|
||||||
values.confirmationSettings = Object.fromEntries(CONFIRMATION_KEYS.map((key) => [key, typeof stored[key] === 'boolean' ? stored[key] : true]));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Main-side guard for a prefs update: a host the phishing list flags may only become newly trusted while
|
|
||||||
* allowWhitelistMalicious is (or becomes, in the same update) enabled. Hosts already trusted stay as they are,
|
|
||||||
* like the official client. Returns an error message or null.
|
|
||||||
*/
|
|
||||||
function trustedHostsUpdateError(current, partial, isMalicious) {
|
|
||||||
if (!partial || !Object.hasOwn(partial, 'trustedExternalHosts') || !Array.isArray(partial.trustedExternalHosts)) return null;
|
|
||||||
const allow = Object.hasOwn(partial, 'allowWhitelistMalicious') ? partial.allowWhitelistMalicious === true : current.allowWhitelistMalicious === true;
|
|
||||||
if (allow) return null;
|
|
||||||
const before = new Set(current.trustedExternalHosts ?? []);
|
|
||||||
const flagged = partial.trustedExternalHosts.find((host) => !before.has(host) && isMalicious(host));
|
|
||||||
return flagged ? `prefs: ${flagged} is flagged as malicious; enable "Allow trusting sites flagged as malicious" first` : null;
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = { PRIVACY_SCHEMA, CONFIRMATION_KEYS, CONFIRMATION_DEFAULTS, migratePrivacyPrefs, trustedHostsUpdateError };
|
|
||||||
@@ -1,88 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const path = require('node:path');
|
|
||||||
const fs = require('node:fs');
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Local recording, main side: the output folder is chosen only through the native folder dialog (official
|
|
||||||
* "Select Recording Folder") and kept in the main-owned pref `recordingFolder`. The renderer can never set
|
|
||||||
* that pref or name another folder: `recording_start` is accepted only for exactly the approved folder
|
|
||||||
* (see `approvedRecordingDirectory`, used by ipc-validate).
|
|
||||||
*
|
|
||||||
* Offscreen tests never open a dialog: with TEAMSPEACH_TEST_OFFSCREEN the folder comes from
|
|
||||||
* TEAMSPEACH_TEST_RECORDING_DIR, which must lie inside the disposable test profile.
|
|
||||||
*/
|
|
||||||
|
|
||||||
const MAX_TITLE = 200;
|
|
||||||
|
|
||||||
function within(child, parent) {
|
|
||||||
const rel = path.relative(parent, child);
|
|
||||||
return rel !== '' && !rel.startsWith('..') && !path.isAbsolute(rel);
|
|
||||||
}
|
|
||||||
|
|
||||||
function validFolder(value) {
|
|
||||||
return typeof value === 'string' && value.length >= 1 && value.length <= 1024 && path.isAbsolute(value) && !/[\u0000-\u001f\u007f]/.test(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** The folder `recording_start` may write to, or null. */
|
|
||||||
function approvedRecordingDirectory(prefs) {
|
|
||||||
const dir = prefs.get().recordingFolder;
|
|
||||||
return validFolder(dir) ? dir : null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {object} o
|
|
||||||
* @param {Electron.IpcMain} o.ipcMain
|
|
||||||
* @param {(event) => boolean} o.trustedSender
|
|
||||||
* @param {Electron.Dialog} o.dialog
|
|
||||||
* @param {() => Electron.BrowserWindow | null} o.getWindow
|
|
||||||
* @param {boolean} o.testOffscreen
|
|
||||||
* @param {string | null} o.testProfileDir absolute disposable profile dir in offscreen tests
|
|
||||||
* @param {{ get(): object, set(partial: object): object }} o.prefs
|
|
||||||
*/
|
|
||||||
function registerRecordingIpc({ ipcMain, trustedSender, dialog, getWindow, testOffscreen, testProfileDir, prefs }) {
|
|
||||||
ipcMain.handle('recording:pick-folder', async (event, title) => {
|
|
||||||
if (!trustedSender(event)) return { ok: false, error: { code: 'forbidden', message: 'forbidden' } };
|
|
||||||
let picked = null;
|
|
||||||
if (testOffscreen) {
|
|
||||||
const fixture = process.env.TEAMSPEACH_TEST_RECORDING_DIR;
|
|
||||||
if (!validFolder(fixture) || !testProfileDir || !within(path.resolve(fixture), path.resolve(testProfileDir))) {
|
|
||||||
return { ok: false, error: { code: 'unavailable', message: 'Folder dialogs are disabled in offscreen tests' } };
|
|
||||||
}
|
|
||||||
picked = path.resolve(fixture);
|
|
||||||
try {
|
|
||||||
const profile = await fs.promises.realpath(testProfileDir);
|
|
||||||
let current = path.resolve(testProfileDir);
|
|
||||||
for (const component of path.relative(current, picked).split(path.sep)) {
|
|
||||||
current = path.join(current, component);
|
|
||||||
let stat;
|
|
||||||
try { stat = await fs.promises.lstat(current); }
|
|
||||||
catch (error) { if (error.code !== 'ENOENT') throw error; await fs.promises.mkdir(current); stat = await fs.promises.lstat(current); }
|
|
||||||
if (stat.isSymbolicLink() || !stat.isDirectory() || !within(await fs.promises.realpath(current), profile)) throw new Error('unsafe fixture path');
|
|
||||||
}
|
|
||||||
} catch {
|
|
||||||
return { ok: false, error: { code: 'unavailable', message: 'Recording fixture must stay inside the disposable profile' } };
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
const options = {
|
|
||||||
title: typeof title === 'string' && title.length <= MAX_TITLE && !/[\u0000-\u001f]/.test(title) ? title : undefined,
|
|
||||||
properties: ['openDirectory', 'createDirectory', 'dontAddToRecent'],
|
|
||||||
};
|
|
||||||
const current = approvedRecordingDirectory(prefs);
|
|
||||||
if (current) options.defaultPath = current;
|
|
||||||
const win = getWindow();
|
|
||||||
const result = win ? await dialog.showOpenDialog(win, options) : await dialog.showOpenDialog(options);
|
|
||||||
if (result.canceled || !result.filePaths?.length) return { ok: true, path: null };
|
|
||||||
picked = path.resolve(result.filePaths[0]);
|
|
||||||
}
|
|
||||||
if (!validFolder(picked)) return { ok: false, error: { code: 'bad_request', message: 'Folder path is not usable' } };
|
|
||||||
try {
|
|
||||||
prefs.set({ recordingFolder: picked });
|
|
||||||
} catch (err) {
|
|
||||||
return { ok: false, error: { code: 'io', message: String(err?.message ?? err) } };
|
|
||||||
}
|
|
||||||
return { ok: true, path: picked };
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = { registerRecordingIpc, approvedRecordingDirectory, validFolder };
|
|
||||||
@@ -1,297 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
// Server Icons manager (official client_ui module 33609 with icon provider 66727): the virtual server's
|
|
||||||
// icon files live in file-transfer channel 0. Listing is `/icons/`; classic storage addresses each file as
|
|
||||||
// `/icon_<id>` on the wire, which the core derives from the canonical `/icons/icon_<id>` bridge path.
|
|
||||||
// Channel 0 never reaches the renderer's generic file commands: everything here is main-owned, pinned to
|
|
||||||
// one connection session, and host paths come only from the native dialog opened by an explicit click.
|
|
||||||
// HTTPFT/S3 servers are refused by the core (`media_unsupported`); nothing pretends to reach that storage.
|
|
||||||
|
|
||||||
const crypto = require('node:crypto');
|
|
||||||
const fs = require('node:fs/promises');
|
|
||||||
const os = require('node:os');
|
|
||||||
const path = require('node:path');
|
|
||||||
const { crc32 } = require('./server-snapshot-codec');
|
|
||||||
|
|
||||||
const ICON_FOLDER = '/icons/';
|
|
||||||
/** Same bound as snapshot icon transfers; also below the core's 256 KiB `fetch_icon` preview limit. */
|
|
||||||
const MAX_ICON_BYTES = 128 * 1024;
|
|
||||||
/** Local decode-safety bound for raster headers (not a TeamSpeak rule; the server stays authoritative). */
|
|
||||||
const MAX_ICON_SIDE = 1024;
|
|
||||||
const MAX_SELECTION = 32;
|
|
||||||
/** `file_delete` accepts at most this many paths per command (core/src/file_transfer.rs MAX_DELETE). */
|
|
||||||
const DELETE_BATCH = 100;
|
|
||||||
const MAX_DELETE_IDS = 10_000;
|
|
||||||
const TRANSFER_DEADLINE_MS = 120_000;
|
|
||||||
/** Official upload dialog filter: image/jpeg, image/png, image/svg+xml. */
|
|
||||||
const UPLOAD_EXTENSIONS = ['png', 'jpg', 'jpeg', 'svg'];
|
|
||||||
/** Listing grants (one per open panel listing) and how long a panel may act on one. */
|
|
||||||
const MAX_GRANTS = 32;
|
|
||||||
const GRANT_TTL_MS = 30 * 60 * 1000;
|
|
||||||
|
|
||||||
function coded(code, message, extra = {}) { return Object.assign(new Error(message), { code }, extra); }
|
|
||||||
const fail = error => ({ ok: false, error: { code: error.code || 'server_icons_error', message: String(error.message || error) } });
|
|
||||||
|
|
||||||
/** Icon id of a listing entry name `icon_<canonical nonzero u32>`, else null. */
|
|
||||||
function iconIdOf(name) {
|
|
||||||
const match = /^icon_([1-9]\d{0,9})$/.exec(typeof name === 'string' ? name : '');
|
|
||||||
if (!match) return null;
|
|
||||||
const id = Number(match[1]);
|
|
||||||
return id <= 0xffffffff ? id : null;
|
|
||||||
}
|
|
||||||
function validIconId(id) { return Number.isSafeInteger(id) && id >= 1 && id <= 0xffffffff; }
|
|
||||||
const iconPath = id => `${ICON_FOLDER}icon_${id}`;
|
|
||||||
|
|
||||||
/** PNG IHDR or JPEG SOFn dimensions; null when the header is malformed. */
|
|
||||||
function rasterSize(bytes, mime) {
|
|
||||||
if (mime === 'image/png') {
|
|
||||||
if (bytes.length < 24 || bytes.subarray(12, 16).toString('ascii') !== 'IHDR') return null;
|
|
||||||
return { width: bytes.readUInt32BE(16), height: bytes.readUInt32BE(20) };
|
|
||||||
}
|
|
||||||
let i = 2;
|
|
||||||
while (i + 4 <= bytes.length) {
|
|
||||||
if (bytes[i] !== 0xff) return null;
|
|
||||||
const marker = bytes[i + 1];
|
|
||||||
if (marker === 0xff) { i += 1; continue; }
|
|
||||||
if (marker === 0x01 || (marker >= 0xd0 && marker <= 0xd8)) { i += 2; continue; }
|
|
||||||
if (marker === 0xd9 || marker === 0xda) return null;
|
|
||||||
const length = bytes.readUInt16BE(i + 2);
|
|
||||||
if (length < 2) return null;
|
|
||||||
const sof = marker >= 0xc0 && marker <= 0xcf && ![0xc4, 0xc8, 0xcc].includes(marker);
|
|
||||||
if (sof) return i + 9 <= bytes.length ? { height: bytes.readUInt16BE(i + 5), width: bytes.readUInt16BE(i + 7) } : null;
|
|
||||||
i += 2 + length;
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Type, size and decode checks for one chosen file. Raster headers are bounded before any decode; when
|
|
||||||
* Electron's nativeImage is supplied the bytes must also decode. SVG stays opaque bytes in main and is only
|
|
||||||
* ever shown by the renderer as an <img> blob (no script execution).
|
|
||||||
*/
|
|
||||||
function checkIconBytes(bytes, nativeImage) {
|
|
||||||
if (!bytes.length || bytes.length > MAX_ICON_BYTES) throw coded('too_large', 'Icon must be 1 byte to 128 KiB');
|
|
||||||
let mime = null;
|
|
||||||
if (bytes.subarray(0, 8).equals(Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]))) mime = 'image/png';
|
|
||||||
else if (bytes[0] === 0xff && bytes[1] === 0xd8 && bytes[2] === 0xff) mime = 'image/jpeg';
|
|
||||||
else if (/^(?:\uFEFF)?\s*(?:<\?xml[^>]*>\s*)?(?:<!--[\s\S]*?-->\s*)*(?:<!DOCTYPE[^>]*>\s*)?<svg[\s>]/i.test(bytes.toString('utf8'))) mime = 'image/svg+xml';
|
|
||||||
if (!mime) throw coded('unsupported_type', 'Icons must be PNG, JPEG or SVG');
|
|
||||||
if (mime !== 'image/svg+xml') {
|
|
||||||
const size = rasterSize(bytes, mime);
|
|
||||||
if (!size || size.width < 1 || size.height < 1) throw coded('invalid_image', 'The image header is damaged');
|
|
||||||
if (size.width > MAX_ICON_SIDE || size.height > MAX_ICON_SIDE) throw coded('too_large', `Icons may be at most ${MAX_ICON_SIDE}×${MAX_ICON_SIDE} pixels`);
|
|
||||||
if (nativeImage && nativeImage.createFromBuffer(bytes).isEmpty()) throw coded('invalid_image', 'The image could not be decoded');
|
|
||||||
}
|
|
||||||
return mime;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Read a dialog-chosen regular file of bounded size; never follows a size that changed while reading. */
|
|
||||||
async function readChosenFile(file) {
|
|
||||||
const handle = await fs.open(file, 'r');
|
|
||||||
try {
|
|
||||||
const stat = await handle.stat();
|
|
||||||
if (!stat.isFile()) throw coded('not_a_file', 'Choose a regular image file');
|
|
||||||
if (stat.size < 1 || stat.size > MAX_ICON_BYTES) throw coded('too_large', 'Icon must be 1 byte to 128 KiB');
|
|
||||||
const bytes = Buffer.alloc(stat.size + 1);
|
|
||||||
let read = 0;
|
|
||||||
for (;;) {
|
|
||||||
const { bytesRead } = await handle.read(bytes, read, bytes.length - read, read);
|
|
||||||
if (bytesRead === 0) break;
|
|
||||||
read += bytesRead;
|
|
||||||
if (read > stat.size) throw coded('changed', 'The file changed while it was read');
|
|
||||||
}
|
|
||||||
if (read !== stat.size) throw coded('changed', 'The file changed while it was read');
|
|
||||||
return bytes.subarray(0, read);
|
|
||||||
} finally { await handle.close(); }
|
|
||||||
}
|
|
||||||
|
|
||||||
function registerServerIconsIpc({ ipcMain, trustedSender, dialog, getWindow, request, validConnectionId, getConnection, subscribeCore, testOffscreen, tr, nativeImage = null }) {
|
|
||||||
const busy = new Set();
|
|
||||||
const invoke = async (id, command, args = {}) => {
|
|
||||||
const response = await request(id, command, args);
|
|
||||||
if (!response?.ok) throw coded(response?.error?.code || 'server_error', response?.error?.message || `${command} failed`);
|
|
||||||
return response.result;
|
|
||||||
};
|
|
||||||
/** The exact connection entry, main session counter and core process the operation started on. */
|
|
||||||
const pin = id => {
|
|
||||||
if (!validConnectionId(id)) throw coded('bad_request', 'Invalid server connection');
|
|
||||||
const entry = getConnection(id); if (!entry) throw coded('connection_closed', 'Server connection is closed');
|
|
||||||
const pinned = { id, entry, session: entry.session, core: entry.core };
|
|
||||||
pinned.same = () => getConnection(id) === entry && entry.session === pinned.session && entry.core === pinned.core;
|
|
||||||
pinned.alive = () => { if (!pinned.same()) throw coded('connection_changed', 'Server connection changed; reopen Server Icons'); };
|
|
||||||
return pinned;
|
|
||||||
};
|
|
||||||
const handle = (channel, callback) => ipcMain.handle(channel, async (event, ...args) => {
|
|
||||||
if (!trustedSender(event)) return fail(coded('forbidden', 'Forbidden'));
|
|
||||||
try { return await callback(event, ...args); } catch (error) { return fail(error); }
|
|
||||||
});
|
|
||||||
/** One icon operation per connection; `guard.check` fails once the connection or window changed. */
|
|
||||||
async function exclusive(event, id, work) {
|
|
||||||
const pinned = pin(id);
|
|
||||||
if (busy.has(id)) throw coded('busy', 'Another server icon operation is running');
|
|
||||||
busy.add(id);
|
|
||||||
const check = () => { pinned.alive(); if (!trustedSender(event)) throw coded('forbidden', 'Server Icons window changed'); };
|
|
||||||
try { return await work({ check, pinned }); } finally { busy.delete(id); }
|
|
||||||
}
|
|
||||||
|
|
||||||
// Opaque list grants: mutations are accepted only for the exact connection entry, session, core and admin
|
|
||||||
// generation that produced the listing the user saw. A UI from before a reconnect cannot mutate the new one.
|
|
||||||
const grants = new Map();
|
|
||||||
function grant(pinned, generation) {
|
|
||||||
const now = Date.now();
|
|
||||||
for (const [token, entry] of grants) if (entry.expires < now || !entry.pinned.same()) grants.delete(token);
|
|
||||||
while (grants.size >= MAX_GRANTS) grants.delete(grants.keys().next().value);
|
|
||||||
const token = crypto.randomUUID();
|
|
||||||
grants.set(token, { pinned, generation, expires: now + GRANT_TTL_MS });
|
|
||||||
return token;
|
|
||||||
}
|
|
||||||
/** Before the first mutation: the grant must belong to this pinned session and its generation still be current. */
|
|
||||||
async function authorize(id, token, { check, pinned }) {
|
|
||||||
const entry = typeof token === 'string' ? grants.get(token) : undefined;
|
|
||||||
const stale = () => coded('connection_changed', 'Server connection changed; reload Server Icons');
|
|
||||||
if (!entry || entry.expires < Date.now() || entry.pinned.id !== id || entry.pinned.entry !== pinned.entry
|
|
||||||
|| entry.pinned.session !== pinned.session || entry.pinned.core !== pinned.core || !entry.pinned.same()) throw stale();
|
|
||||||
const context = await invoke(id, 'admin_context'); check();
|
|
||||||
if (context?.generation !== entry.generation) { grants.delete(token); throw stale(); }
|
|
||||||
}
|
|
||||||
|
|
||||||
async function list(id, check) {
|
|
||||||
const listing = await invoke(id, 'file_list', { channel_id: 0, path: ICON_FOLDER }); check();
|
|
||||||
if (!Array.isArray(listing?.entries)) throw coded('server_error', 'Invalid icon list response');
|
|
||||||
const icons = [];
|
|
||||||
for (const entry of listing.entries) {
|
|
||||||
const iconId = entry?.type === 'file' ? iconIdOf(entry.name) : null;
|
|
||||||
if (iconId !== null) icons.push({ id: iconId, size: Number(entry.size) || 0, datetime: Number(entry.datetime) || 0 });
|
|
||||||
}
|
|
||||||
return icons;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Run one queued transfer to its terminal `file_transfer` event. A transfer abandoned while its session is
|
|
||||||
* unchanged (window changed, timeout) is cancelled; after a reconnect it is not: transfer ids restart per
|
|
||||||
* session, so the old id could name an unrelated transfer of the new session.
|
|
||||||
*/
|
|
||||||
async function transfer(id, command, args, { check, pinned }) {
|
|
||||||
check();
|
|
||||||
let transferId, finished = false, resolve, reject;
|
|
||||||
const early = new Map();
|
|
||||||
const completion = new Promise((a, b) => { resolve = a; reject = b; });
|
|
||||||
completion.catch(() => {});
|
|
||||||
const accept = event => {
|
|
||||||
if (finished || !['done', 'failed', 'cancelled'].includes(event.state)) return;
|
|
||||||
finished = true;
|
|
||||||
if (event.state === 'done') resolve(event);
|
|
||||||
else reject(coded(event.error?.code || event.state, event.error?.message || `Icon transfer ${event.state}`));
|
|
||||||
};
|
|
||||||
// Installed before the request: short transfers can finish before the queued reply arrives.
|
|
||||||
const unsubscribe = subscribeCore((connectionId, event) => {
|
|
||||||
if (connectionId !== id || event?.event !== 'file_transfer' || !pinned.same()) return;
|
|
||||||
if (transferId === undefined) early.set(event.transfer_id, event);
|
|
||||||
else if (event.transfer_id === transferId) accept(event);
|
|
||||||
});
|
|
||||||
let timer = null, deadline = null;
|
|
||||||
try {
|
|
||||||
transferId = (await invoke(id, command, args)).transfer_id;
|
|
||||||
if (!Number.isSafeInteger(transferId)) throw coded('server_error', 'Missing icon transfer ID');
|
|
||||||
if (early.has(transferId)) accept(early.get(transferId));
|
|
||||||
timer = setInterval(() => { try { check(); } catch (error) { if (!finished) { finished = true; reject(error); } } }, 250);
|
|
||||||
deadline = setTimeout(() => { if (!finished) { finished = true; reject(coded('timeout', 'Icon transfer did not finish')); } }, TRANSFER_DEADLINE_MS);
|
|
||||||
await completion;
|
|
||||||
check();
|
|
||||||
} catch (error) {
|
|
||||||
const terminal = ['done', 'failed', 'cancelled'].includes(error.code);
|
|
||||||
if (Number.isSafeInteger(transferId) && !terminal && pinned.same()) {
|
|
||||||
await request(id, 'file_cancel', { transfer_id: transferId }).catch(() => {});
|
|
||||||
}
|
|
||||||
throw error;
|
|
||||||
} finally {
|
|
||||||
clearInterval(timer); clearTimeout(deadline); unsubscribe();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const temporary = async fn => {
|
|
||||||
const folder = await fs.mkdtemp(path.join(os.tmpdir(), 'teamspeach-icons-'));
|
|
||||||
try { return await fn(folder); } finally { await fs.rm(folder, { recursive: true, force: true }); }
|
|
||||||
};
|
|
||||||
|
|
||||||
/** Content-addressed upload: never overwrites a different file that already holds this CRC32 name. */
|
|
||||||
async function uploadBytes(id, bytes, guard) {
|
|
||||||
const iconId = crc32(bytes);
|
|
||||||
if (!validIconId(iconId)) throw coded('invalid_image', 'This image has a reserved icon checksum');
|
|
||||||
const name = `icon_${iconId}`;
|
|
||||||
return temporary(async folder => {
|
|
||||||
if ((await list(id, guard.check)).some(icon => icon.id === iconId)) {
|
|
||||||
await transfer(id, 'file_download', { channel_id: 0, path: iconPath(iconId), dest_dir: folder, subdirs: [], overwrite: false }, guard);
|
|
||||||
const existing = await fs.readFile(path.join(folder, name));
|
|
||||||
if (!existing.equals(bytes)) throw coded('collision', 'A different icon already uses this checksum; it was not overwritten');
|
|
||||||
return { id: iconId, existing: true };
|
|
||||||
}
|
|
||||||
const source = path.join(folder, name);
|
|
||||||
await fs.writeFile(source, bytes, { flag: 'wx', mode: 0o600 });
|
|
||||||
await transfer(id, 'file_upload', { channel_id: 0, path: iconPath(iconId), source, overwrite: false }, guard);
|
|
||||||
if (!(await list(id, guard.check)).some(icon => icon.id === iconId)) throw coded('server_error', 'The upload finished but the server does not list the icon');
|
|
||||||
return { id: iconId, existing: false };
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// A failed listing (e.g. HTTPFT/S3 storage) returns no grant, so nothing can be mutated from it.
|
|
||||||
handle('server-icons:list', (event, id) => exclusive(event, id, async ({ check, pinned }) => {
|
|
||||||
const context = await invoke(id, 'admin_context'); check();
|
|
||||||
if (!Number.isSafeInteger(context?.generation) || context.generation < 1) throw coded('connection_changed', 'Server connection is not ready');
|
|
||||||
const icons = await list(id, check);
|
|
||||||
return { ok: true, icons, generation: context.generation, authorization: grant(pinned, context.generation) };
|
|
||||||
}));
|
|
||||||
|
|
||||||
handle('server-icons:upload', (event, id, authorization) => exclusive(event, id, async guard => {
|
|
||||||
const { check } = guard;
|
|
||||||
if (testOffscreen) throw coded('unavailable', 'Icon file dialogs are disabled in offscreen tests');
|
|
||||||
await authorize(id, authorization, guard);
|
|
||||||
const window = getWindow();
|
|
||||||
const options = {
|
|
||||||
title: tr ? tr('server.icons.upload.title') : 'Select icon',
|
|
||||||
filters: [{ name: 'PNG, JPEG, SVG', extensions: UPLOAD_EXTENSIONS }],
|
|
||||||
properties: ['openFile', 'multiSelections', 'dontAddToRecent'],
|
|
||||||
};
|
|
||||||
const picked = await (window ? dialog.showOpenDialog(window, options) : dialog.showOpenDialog(options)); check();
|
|
||||||
if (picked.canceled || !picked.filePaths?.length) return { ok: true, cancelled: true };
|
|
||||||
// The dialog can stay open across a reconnect: verify the grant again before the first transfer.
|
|
||||||
await authorize(id, authorization, guard);
|
|
||||||
if (picked.filePaths.length > MAX_SELECTION) throw coded('bad_request', `Choose at most ${MAX_SELECTION} icons at once`);
|
|
||||||
const uploaded = [], errors = [];
|
|
||||||
for (const file of picked.filePaths) {
|
|
||||||
const name = path.basename(file);
|
|
||||||
try {
|
|
||||||
const bytes = await readChosenFile(file); check();
|
|
||||||
checkIconBytes(bytes, nativeImage);
|
|
||||||
uploaded.push({ ...(await uploadBytes(id, bytes, guard)), name });
|
|
||||||
} catch (error) {
|
|
||||||
if (['connection_changed', 'connection_closed', 'forbidden'].includes(error.code)) throw error;
|
|
||||||
errors.push({ name, code: error.code || 'server_icons_error', message: String(error.message || error) });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return { ok: true, uploaded, errors };
|
|
||||||
}));
|
|
||||||
|
|
||||||
handle('server-icons:delete', (event, id, authorization, ids) => exclusive(event, id, async guard => {
|
|
||||||
const { check } = guard;
|
|
||||||
if (!Array.isArray(ids) || ids.length < 1 || ids.length > MAX_DELETE_IDS || !ids.every(validIconId) || new Set(ids).size !== ids.length) {
|
|
||||||
throw coded('bad_request', 'Invalid icon selection');
|
|
||||||
}
|
|
||||||
await authorize(id, authorization, guard);
|
|
||||||
const deleted = [];
|
|
||||||
try {
|
|
||||||
for (let i = 0; i < ids.length; i += DELETE_BATCH) {
|
|
||||||
const batch = ids.slice(i, i + DELETE_BATCH);
|
|
||||||
await invoke(id, 'file_delete', { channel_id: 0, paths: batch.map(iconPath) }); check();
|
|
||||||
deleted.push(...batch);
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
return { ...fail(error), deleted };
|
|
||||||
}
|
|
||||||
return { ok: true, deleted };
|
|
||||||
}));
|
|
||||||
|
|
||||||
return { dispose() { busy.clear(); grants.clear(); } };
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = { registerServerIconsIpc, checkIconBytes, rasterSize, iconIdOf, MAX_ICON_BYTES };
|
|
||||||
@@ -1,217 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
// Client snapshot schema/ordering: installed TS6 6.0.0.5163 main.js, service zS,
|
|
||||||
// createSnapshot @2426171. This is NOT the unrelated native live UI snapshot.
|
|
||||||
const SERVER_FIELDS = {
|
|
||||||
name: 'name', namePhonetic: 'name_phonetic', welcomeMessage: 'welcomemessage', webListEnabled: 'weblist_enabled',
|
|
||||||
sfuEndpoint: 'sfu_endpoint', maxUsers: 'maxclients', reservedSlots: 'reserved_slots', iconId: 'icon_id',
|
|
||||||
bannerGfxUrl: 'hostbanner_gfx_url', bannerUrl: 'hostbanner_url', bannerGfxInterval: 'hostbanner_gfx_interval', bannerMode: 'hostbanner_mode',
|
|
||||||
hostButtonGfxUrl: 'hostbutton_gfx_url', hostButtonUrl: 'hostbutton_url', hostButtonTooltip: 'hostbutton_tooltip',
|
|
||||||
hostMessage: 'hostmessage', hostMessageMode: 'hostmessage_mode', maxDownloadTotalBandwidth: 'max_download_total_bandwidth',
|
|
||||||
maxUploadTotalBandwidth: 'max_upload_total_bandwidth', downloadQuota: 'download_quota', uploadQuota: 'upload_quota', storageQuota: 'storage_quota',
|
|
||||||
minClientsInChannelBeforeForcedSilence: 'min_clients_in_channel_before_forced_silence', antiFloodPointsTickReduce: 'antiflood_points_tick_reduce',
|
|
||||||
antiFloodPointsNeededCommandBlock: 'antiflood_points_needed_command_block', antiFloodPointsNeededIpBlock: 'antiflood_points_needed_ip_block',
|
|
||||||
prioritySpeakerDimmModificator: 'priority_speaker_dimm_modificator', channelTempDeleteDelayDefault: 'channel_temp_delete_delay_default',
|
|
||||||
neededIdentitySecurityLevel: 'needed_identity_security_level', codecEncryptionMode: 'codec_encryption_mode',
|
|
||||||
logClient: 'log_client', logChannel: 'log_channel', logServer: 'log_server', logFiletransfer: 'log_filetransfer', logPermissions: 'log_permissions', logQuery: 'log_query',
|
|
||||||
};
|
|
||||||
const CHANNEL_FIELDS = { name: 'name', topic: 'topic', description: 'description', default: 'flag_default', maxUsers: 'maxclients', maxFamilyUsers: 'maxfamilyclients', bannerGfxUrl: 'banner_gfx_url', bannerMode: 'banner_mode', codec: 'codec', quality: 'codec_quality' };
|
|
||||||
const TEXT_FIELDS = new Set(['name', 'namePhonetic', 'welcomeMessage', 'sfuEndpoint', 'bannerGfxUrl', 'bannerUrl', 'hostButtonGfxUrl', 'hostButtonUrl', 'hostButtonTooltip', 'hostMessage', 'topic', 'description']);
|
|
||||||
const BOOL_FIELDS = new Set(['webListEnabled', 'default', 'logClient', 'logChannel', 'logServer', 'logFiletransfer', 'logPermissions', 'logQuery']);
|
|
||||||
const FLAGS = ['includeServerSettings', 'includeChannels', 'includeServerGroups', 'includeServerGroupMembers', 'includeChannelGroups', 'includeIcons'];
|
|
||||||
const object = x => x !== null && typeof x === 'object' && !Array.isArray(x);
|
|
||||||
function variables(value, vars, extracting = false) {
|
|
||||||
if (typeof value !== 'string' || !vars) return value;
|
|
||||||
if (!extracting) return value.replace(/\$\{([^}]+)\}/g, (match, key) => Object.hasOwn(vars, key) ? vars[key] : match);
|
|
||||||
for (const [key, text] of Object.entries(vars).sort((a, b) => b[1].length - a[1].length)) if (text) value = value.split(text).join('${' + key + '}');
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
function validVars(vars) { return vars === undefined || (object(vars) && Object.keys(vars).length <= 100 && Object.entries(vars).every(([k, v]) => k.length <= 128 && typeof v === 'string' && v.length <= 8192)); }
|
|
||||||
function validate(document) {
|
|
||||||
if (!object(document) || document.type !== 'teamspeak.server.snapshot' || document.schemaVersion !== '0.0.1') throw new Error('Expected a TeamSpeak client snapshot, schema 0.0.1');
|
|
||||||
if (!object(document.meta) || typeof document.meta.createdAt !== 'string' || !validVars(document.vars) || !Array.isArray(document.catalog) || !document.catalog.length) throw new Error('Invalid snapshot metadata or catalog');
|
|
||||||
let count = 0;
|
|
||||||
const permissions = rows => {
|
|
||||||
if (!Array.isArray(rows)) throw new Error('Invalid permissions');
|
|
||||||
for (const p of rows) if (!object(p) || !/^[ib]_[a-z0-9_]+$/.test(p.id) || !Number.isInteger(p.value) || p.value < -2147483648 || p.value > 4294967295 || ['skip', 'negate'].some(k => p[k] !== undefined && typeof p[k] !== 'boolean')) throw new Error('Invalid permission value');
|
|
||||||
};
|
|
||||||
const fields = (row, map) => { for (const key of Object.keys(map)) if (row[key] !== undefined && !(TEXT_FIELDS.has(key) ? typeof row[key] === 'string' : BOOL_FIELDS.has(key) ? typeof row[key] === 'boolean' : typeof row[key] === 'number' && Number.isFinite(row[key]))) throw new Error(`Invalid property ${key}`); };
|
|
||||||
const channels = (rows, depth = 0) => {
|
|
||||||
if (!Array.isArray(rows) || depth > 64) throw new Error('Invalid channel tree');
|
|
||||||
for (const row of rows) { if (++count > 10000 || !object(row) || typeof row.name !== 'string' || !row.name) throw new Error('Invalid channel'); fields(row, CHANNEL_FIELDS); if (row.permissions !== undefined) permissions(row.permissions); if (row.channels !== undefined) channels(row.channels, depth + 1); }
|
|
||||||
};
|
|
||||||
const ids = new Set();
|
|
||||||
for (const item of document.catalog) {
|
|
||||||
if (!object(item) || typeof item.id !== 'string' || !item.id || ids.has(item.id)) throw new Error('Invalid or duplicate catalog id'); ids.add(item.id);
|
|
||||||
if (item.server !== undefined) { if (!object(item.server)) throw new Error('Invalid server settings'); fields(item.server, SERVER_FIELDS); }
|
|
||||||
if (item.channels !== undefined) channels(item.channels);
|
|
||||||
for (const key of ['serverGroups', 'channelGroups']) if (item[key] !== undefined) {
|
|
||||||
if (!Array.isArray(item[key])) throw new Error('Invalid groups');
|
|
||||||
for (const group of item[key]) {
|
|
||||||
if (++count > 10000 || !object(group) || typeof group.name !== 'string' || !group.name) throw new Error('Invalid group'); permissions(group.permissions);
|
|
||||||
for (const flag of ['default', 'defaultChannelAdmin']) if (group[flag] !== undefined && typeof group[flag] !== 'boolean') throw new Error('Invalid group default');
|
|
||||||
if (group.members !== undefined && (!Array.isArray(group.members) || group.members.length > 10000 || group.members.some(m => !object(m) || typeof m.uid !== 'string' || !m.uid || m.uid.length > 128 || (m.nickname !== undefined && typeof m.nickname !== 'string')))) throw new Error('Invalid group members');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (item.icons !== undefined && (!Array.isArray(item.icons) || item.icons.length > 10000 || item.icons.some(i => !object(i) || !/^\d{1,10}$/.test(i.id) || Number(i.id) > 4294967295 || typeof i.data !== 'string' || i.data.length > 180000 || typeof i.mimeType !== 'string'))) throw new Error('Invalid icons');
|
|
||||||
}
|
|
||||||
return document;
|
|
||||||
}
|
|
||||||
function fromWire(row, fields, prefix, vars) {
|
|
||||||
const result = {};
|
|
||||||
for (const [key, wire] of Object.entries(fields)) if (row[prefix + wire] !== undefined) {
|
|
||||||
const value = row[prefix + wire];
|
|
||||||
result[key] = TEXT_FIELDS.has(key) ? variables(String(value), vars, true) : BOOL_FIELDS.has(key) ? value === true || value === '1' || value === 1 : Number(value);
|
|
||||||
if (!TEXT_FIELDS.has(key) && !BOOL_FIELDS.has(key) && key !== 'prioritySpeakerDimmModificator' && !Number.isSafeInteger(result[key])) throw new Error(`Property ${prefix + wire} is outside the lossless JSON integer range`);
|
|
||||||
}
|
|
||||||
if (result.iconId !== undefined) result.iconId >>>= 0;
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
function crc32(bytes) { let crc = 0xffffffff; for (const byte of bytes) { crc ^= byte; for (let j = 0; j < 8; j++) crc = (crc >>> 1) ^ ((crc & 1) ? 0xedb88320 : 0); } return (crc ^ 0xffffffff) >>> 0; }
|
|
||||||
|
|
||||||
class SnapshotOperation {
|
|
||||||
constructor({ call, context, check, progress, icons }) { Object.assign(this, { call, context, check, progress, icons }); this.errors = []; this.completed = 0; this.total = 0; this.created = { channels: [], serverGroups: [], channelGroups: [], icons: [], members: [], renamed: [] }; }
|
|
||||||
async step(type, identifier, action) {
|
|
||||||
this.check();
|
|
||||||
try { return await action(); } catch (error) { this.check(); this.errors.push({ type, identifier: String(identifier), message: error.message, code: error.code }); return undefined; }
|
|
||||||
finally { this.completed++; this.progress({ phase: type, identifier: String(identifier), current: this.completed, total: this.total, errors: this.errors.length }); }
|
|
||||||
}
|
|
||||||
async rows(cmd, args = {}) { const result = await this.call(cmd, args); if (!Array.isArray(result.rows)) throw new Error(`${cmd}: invalid rows response`); return result.rows; }
|
|
||||||
mutate(cmd, args) { this.check(); return this.call(cmd, { generation: this.context.generation, ...args }); }
|
|
||||||
async permissions(cmd, args) {
|
|
||||||
const catalog = new Map((this.context.permissions_catalog || []).map(p => [String(p.id), p.name]));
|
|
||||||
const result = [];
|
|
||||||
for (const row of await this.rows(cmd, args)) {
|
|
||||||
const name = row.permsid || catalog.get(String(row.permid));
|
|
||||||
if (!name) { this.errors.push({ type: 'permission', identifier: String(row.permid), message: 'Permission is missing from server catalog' }); continue; }
|
|
||||||
const p = { id: name, value: name === 'i_icon_id' ? Number(row.permvalue) >>> 0 : Number(row.permvalue) };
|
|
||||||
if (Number(row.permskip)) p.skip = true; if (Number(row.permnegated)) p.negate = true; if (Number(row.permgrant)) p.grant = Number(row.permgrant); result.push(p);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
async create(options) {
|
|
||||||
if (!object(options) || !validVars(options.vars) || FLAGS.some(f => options[f] !== undefined && typeof options[f] !== 'boolean')) throw new Error('Invalid snapshot options');
|
|
||||||
const server = (await this.rows('server_info'))[0] || {};
|
|
||||||
const entry = { id: options.catalogId || 'default', description: options.catalogDescription || 'Server snapshot' };
|
|
||||||
if (options.includeServerSettings) entry.server = fromWire(server, SERVER_FIELDS, 'virtualserver_', options.vars);
|
|
||||||
if (options.includeChannels) {
|
|
||||||
const rows = await this.rows('channel_list'); this.total += rows.length;
|
|
||||||
const visit = async (parent, seen = new Set()) => {
|
|
||||||
const out = [];
|
|
||||||
// channel_order is the predecessor ID, not a numeric rank.
|
|
||||||
const remaining = rows.filter(r => String(r.cpid ?? r.pid ?? 0) === String(parent)); let previous = '0';
|
|
||||||
const ordered = [];
|
|
||||||
while (remaining.length) { let index = remaining.findIndex(r => String(r.channel_order ?? 0) === previous); if (index < 0) index = 0; const row = remaining.splice(index, 1)[0]; ordered.push(row); previous = String(row.cid); }
|
|
||||||
for (const row of ordered) {
|
|
||||||
if (seen.has(String(row.cid))) throw new Error('Cyclic server channel tree');
|
|
||||||
if (!Number(row.channel_flag_permanent)) continue;
|
|
||||||
seen.add(String(row.cid));
|
|
||||||
const channel = await this.step('channel', row.channel_name, async () => {
|
|
||||||
const info = (await this.rows('channel_info', { channel_id: Number(row.cid) }))[0];
|
|
||||||
const item = fromWire({ ...row, ...info }, CHANNEL_FIELDS, 'channel_', options.vars);
|
|
||||||
item.permissions = await this.step('channelPermission', row.cid, () => this.permissions('channel_perm_list', { channel_id: Number(row.cid) })) || [];
|
|
||||||
const children = await visit(row.cid, seen); if (children.length) item.channels = children;
|
|
||||||
return item;
|
|
||||||
}); if (channel) out.push(channel);
|
|
||||||
}
|
|
||||||
return out;
|
|
||||||
};
|
|
||||||
entry.channels = await visit(0);
|
|
||||||
}
|
|
||||||
for (const [kind, enabled, key] of [['server', options.includeServerGroups, 'serverGroups'], ['channel', options.includeChannelGroups, 'channelGroups']]) if (enabled) {
|
|
||||||
const rows = (await this.rows(`${kind}_group_list`)).filter(g => Number(g.type) === 1).sort((a, b) => Number(a.sortid ?? 0) - Number(b.sortid ?? 0) || Number(a.sgid ?? a.cgid) - Number(b.sgid ?? b.cgid)); this.total += rows.length;
|
|
||||||
entry[key] = [];
|
|
||||||
for (const row of rows) {
|
|
||||||
const id = Number(row.sgid ?? row.cgid);
|
|
||||||
const group = await this.step(key, row.name, async () => {
|
|
||||||
const item = { name: variables(row.name, options.vars, true), permissions: await this.permissions(`${kind}_group_perm_list`, { group_id: id }) };
|
|
||||||
if (String(id) === String(server[`virtualserver_default_${kind}_group`])) item.default = true;
|
|
||||||
if (kind === 'channel' && String(id) === String(server.virtualserver_default_channel_admin_group)) item.defaultChannelAdmin = true;
|
|
||||||
if (kind === 'server' && options.includeServerGroupMembers && !item.default) {
|
|
||||||
const members = await this.step('members', id, () => this.rows('server_group_client_list', { group_id: id }));
|
|
||||||
if (members?.length) item.members = members.map(m => ({ nickname: m.client_nickname ?? m.nickname ?? '', uid: m.client_unique_identifier ?? m.cluid ?? m.uid }));
|
|
||||||
}
|
|
||||||
return item;
|
|
||||||
}); if (group) entry[key].push(group);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (options.includeIcons) entry.icons = await this.step('icons', 'export', () => this.icons.collect(this)) || [];
|
|
||||||
return { type: 'teamspeak.server.snapshot', schemaVersion: '0.0.1', meta: { description: options.snapshotDescription, createdAt: new Date().toISOString(), createdBy: options.createdBy || 'Unknown', source: { serverVersion: server.virtualserver_version, platform: server.virtualserver_platform } }, vars: options.vars, catalog: [entry] };
|
|
||||||
}
|
|
||||||
async apply(entry, vars, conflictMode) {
|
|
||||||
const iconMap = new Map();
|
|
||||||
const countChannels = rows => (rows || []).reduce((n, c) => n + 1 + countChannels(c.channels), 0);
|
|
||||||
this.total = (entry.icons || []).length + countChannels(entry.channels) + (entry.serverGroups || []).length + (entry.channelGroups || []).length + Object.keys(entry.server || {}).length;
|
|
||||||
for (const icon of entry.icons || []) {
|
|
||||||
const id = await this.step('icon', icon.id, () => this.icons.upload(icon, this));
|
|
||||||
if (id !== undefined) { iconMap.set(String(icon.id), id); this.created.icons.push(id); }
|
|
||||||
}
|
|
||||||
const remapIcon = value => {
|
|
||||||
const id = value >>> 0; if (id <= 1000) return id;
|
|
||||||
if (!iconMap.has(String(id))) throw new Error(`Icon ${id} was not imported; reference not changed`);
|
|
||||||
return iconMap.get(String(id));
|
|
||||||
};
|
|
||||||
const setPermissions = async (scope, id, list) => {
|
|
||||||
for (const p of list || []) {
|
|
||||||
if (p.id === 'i_group_auto_update_max_value') continue; // Official client intentionally excludes this permission.
|
|
||||||
await this.step('permission', `${scope}:${id}:${p.id}`, async () => {
|
|
||||||
let value = p.id === 'i_icon_id' ? remapIcon(p.value) | 0 : p.value;
|
|
||||||
const permission = { id: p.id, value, ...(scope === 'channel' ? {} : { negate: !!p.negate, skip: !!p.skip }) };
|
|
||||||
return scope === 'channel' ? this.mutate('channel_set_permissions', { channel_id: id, permissions: [permission] }) : this.mutate('group_set_permissions', { kind: scope === 'channel_group' ? 'channel' : 'server', group_id: id, permissions: [permission] });
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
for (const [key, value] of Object.entries(entry.server || {})) await this.step('server', key, async () => {
|
|
||||||
if (!Object.hasOwn(SERVER_FIELDS, key)) throw new Error(`Unsupported server property ${key}`);
|
|
||||||
return this.mutate('server_edit', { confirm: this.context.server_uid, properties: { ['virtualserver_' + SERVER_FIELDS[key]]: key === 'iconId' ? remapIcon(value) : variables(value, vars) } });
|
|
||||||
});
|
|
||||||
const channelRows = entry.channels?.length ? await this.rows('channel_list') : [];
|
|
||||||
const resolveName = async (name, rows, getName, rename) => {
|
|
||||||
const existing = rows.find(row => getName(row) === name); if (!existing) return name;
|
|
||||||
if (conflictMode === 'skip') { this.errors.push({ type: 'conflict', identifier: name, message: 'Skipped existing name', severity: 'warning' }); return null; }
|
|
||||||
const next = (base, start) => { let suffix = start; let candidate = base; while (rows.some(row => getName(row) === candidate)) { candidate = `${base} (${suffix++})`; if (suffix > 10000) throw new Error('No unused name'); } return candidate; };
|
|
||||||
if (conflictMode === 'rename_existing') { const replacement = next(`OLD ${name}`, 2); await rename(existing, replacement); this.created.renamed.push({ name, replacement }); return name; }
|
|
||||||
return next(name, 1);
|
|
||||||
};
|
|
||||||
const applyChannels = async (rows, parent = 0) => {
|
|
||||||
let previous = 0;
|
|
||||||
for (const item of rows || []) {
|
|
||||||
const id = await this.step('channel', item.name, async () => {
|
|
||||||
const siblings = channelRows.filter(c => Number(c.cpid ?? c.pid ?? 0) === parent);
|
|
||||||
const name = await resolveName(variables(item.name, vars), siblings, c => c.channel_name, async (row, replacement) => { await this.mutate('channel_edit', { channel_id: Number(row.cid), properties: { channel_name: replacement } }); row.channel_name = replacement; });
|
|
||||||
if (name === null) return undefined;
|
|
||||||
const result = await this.mutate('channel_create', { parent_id: parent, properties: { channel_name: name, channel_flag_permanent: true, channel_order: previous } });
|
|
||||||
if (!Number.isSafeInteger(result.channel_id) || result.channel_id <= 0) throw new Error('Server did not return a created channel ID');
|
|
||||||
const id = result.channel_id; this.created.channels.push(id); channelRows.push({ cid: id, cpid: parent, channel_name: name });
|
|
||||||
for (const [key, value] of Object.entries(item)) if (key !== 'name' && Object.hasOwn(CHANNEL_FIELDS, key)) await this.step('channelProperty', `${name}:${key}`, () => this.mutate('channel_edit', { channel_id: id, properties: { ['channel_' + CHANNEL_FIELDS[key]]: variables(value, vars) } }));
|
|
||||||
await setPermissions('channel', id, item.permissions);
|
|
||||||
return id;
|
|
||||||
});
|
|
||||||
if (id !== undefined) { previous = id; await applyChannels(item.channels, id); }
|
|
||||||
}
|
|
||||||
};
|
|
||||||
await applyChannels(entry.channels);
|
|
||||||
const defaults = {};
|
|
||||||
const pendingMembers = [];
|
|
||||||
for (const [kind, key] of [['server', 'serverGroups'], ['channel', 'channelGroups']]) if (entry[key]?.length) {
|
|
||||||
const existing = await this.rows(`${kind}_group_list`);
|
|
||||||
for (const item of entry[key]) await this.step(key, item.name, async () => {
|
|
||||||
const name = await resolveName(variables(item.name, vars), existing, g => g.name, async (row, replacement) => { await this.mutate('group_rename', { kind, group_id: Number(row.sgid ?? row.cgid), name: replacement }); row.name = replacement; });
|
|
||||||
if (name === null) return;
|
|
||||||
const result = await this.mutate('group_add', { kind, name, type: 1 });
|
|
||||||
const id = result.group_id; if (!Number.isSafeInteger(id) || id <= 0) throw new Error('Server did not return a created group ID');
|
|
||||||
this.created[key].push(id); existing.push({ name, [kind === 'server' ? 'sgid' : 'cgid']: id, type: 1 });
|
|
||||||
if (item.default) defaults[`virtualserver_default_${kind}_group`] = id;
|
|
||||||
if (kind === 'channel' && item.defaultChannelAdmin) defaults.virtualserver_default_channel_admin_group = id;
|
|
||||||
await setPermissions(kind === 'server' ? 'server' : 'channel_group', id, item.permissions);
|
|
||||||
if (kind === 'server') for (const member of item.members || []) pendingMembers.push({ id, member });
|
|
||||||
});
|
|
||||||
}
|
|
||||||
for (const [key, value] of Object.entries(defaults)) await this.step('defaultGroup', key, () => this.mutate('server_edit', { confirm: this.context.server_uid, properties: { [key]: value } }));
|
|
||||||
for (const { id, member } of pendingMembers) await this.step('member', member.uid, async () => {
|
|
||||||
await this.mutate('server_group_member_add_uid', { group_id: id, uid: member.uid });
|
|
||||||
this.created.members.push({ group_id: id, uid: member.uid });
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
module.exports = { SnapshotOperation, validate, validVars, crc32, FLAGS };
|
|
||||||
@@ -1,192 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const fs = require('node:fs/promises');
|
|
||||||
const os = require('node:os');
|
|
||||||
const path = require('node:path');
|
|
||||||
const crypto = require('node:crypto');
|
|
||||||
const { SnapshotOperation, validate, validVars, crc32 } = require('./server-snapshot-codec');
|
|
||||||
const MAX_DOCUMENT_BYTES = 32 * 1024 * 1024;
|
|
||||||
const MAX_ICON_BYTES = 128 * 1024;
|
|
||||||
const fail = error => ({ ok: false, error: { code: error.code || 'snapshot_error', message: String(error.message || error) } });
|
|
||||||
function coded(code, message) { return Object.assign(new Error(message), { code }); }
|
|
||||||
function iconBytes(icon) {
|
|
||||||
const encoded = icon.data.startsWith('data:') ? icon.data.slice(icon.data.indexOf(',') + 1) : icon.data;
|
|
||||||
if (!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(encoded)) throw new Error('Invalid icon base64');
|
|
||||||
const bytes = Buffer.from(encoded, 'base64');
|
|
||||||
if (!bytes.length || bytes.length > MAX_ICON_BYTES) throw new Error('Icon exceeds 128 KiB');
|
|
||||||
mimeType(bytes); // Never turn arbitrary imported bytes into server files.
|
|
||||||
return bytes;
|
|
||||||
}
|
|
||||||
function mimeType(bytes) {
|
|
||||||
if (bytes.subarray(0, 8).equals(Buffer.from([137,80,78,71,13,10,26,10]))) return 'image/png';
|
|
||||||
if (bytes[0] === 255 && bytes[1] === 216 && bytes[2] === 255) return 'image/jpeg';
|
|
||||||
if (/^GIF8[79]a$/.test(bytes.subarray(0, 6).toString('ascii'))) return 'image/gif';
|
|
||||||
if (bytes.subarray(0, 4).toString() === 'RIFF' && bytes.subarray(8, 12).toString() === 'WEBP') return 'image/webp';
|
|
||||||
// SVG stays opaque file bytes in main; it is never parsed or inserted into renderer DOM.
|
|
||||||
if (/^(?:\uFEFF)?\s*(?:<\?xml[^>]*>\s*)?(?:<!--[\s\S]*?-->\s*)*<svg[\s>]/i.test(bytes.toString('utf8'))) return 'image/svg+xml';
|
|
||||||
throw new Error('Unsupported server icon image format');
|
|
||||||
}
|
|
||||||
|
|
||||||
function registerServerSnapshotsIpc({ ipcMain, trustedSender, dialog, getWindow, request, validConnectionId, getConnection, subscribeCore, testOffscreen, tr }) {
|
|
||||||
const jobs = new Map();
|
|
||||||
const imports = new Map();
|
|
||||||
const invoke = async (id, command, args = {}) => {
|
|
||||||
const response = await request(id, command, args);
|
|
||||||
if (!response?.ok) throw coded(response?.error?.code || 'server_error', response?.error?.message || `${command} failed`);
|
|
||||||
return response.result;
|
|
||||||
};
|
|
||||||
const pin = id => {
|
|
||||||
if (!validConnectionId(id)) throw new Error('Invalid server connection');
|
|
||||||
const entry = getConnection(id); if (!entry) throw coded('connection_closed', 'Server connection is closed');
|
|
||||||
const session = entry.session, core = entry.core;
|
|
||||||
return () => { if (getConnection(id) !== entry || entry.session !== session || entry.core !== core) throw coded('connection_changed', 'Server connection changed; reopen snapshots'); };
|
|
||||||
};
|
|
||||||
const pick = async (method, options) => {
|
|
||||||
if (testOffscreen) throw coded('unavailable', 'Snapshot file dialogs are disabled in offscreen tests');
|
|
||||||
const window = getWindow(); return window ? dialog[method](window, options) : dialog[method](options);
|
|
||||||
};
|
|
||||||
const nativeTitle = key => tr ? tr(key) : key;
|
|
||||||
const handle = (channel, callback) => ipcMain.handle(channel, async (event, ...args) => {
|
|
||||||
if (!trustedSender(event)) return fail(coded('forbidden', 'Forbidden'));
|
|
||||||
try { return await callback(event, ...args); } catch (error) { return fail(error); }
|
|
||||||
});
|
|
||||||
const iconsFor = (id, job, check) => {
|
|
||||||
const transfer = async (command, args) => {
|
|
||||||
check();
|
|
||||||
let transferId, finished = false;
|
|
||||||
const early = new Map();
|
|
||||||
let resolve, reject;
|
|
||||||
const completion = new Promise((a, b) => { resolve = a; reject = b; });
|
|
||||||
// Install before starting: short transfers can finish before the queued reply arrives.
|
|
||||||
const accept = event => {
|
|
||||||
if (finished || !['done', 'failed', 'cancelled'].includes(event.state)) return;
|
|
||||||
finished = true;
|
|
||||||
if (event.state === 'done') resolve(event);
|
|
||||||
else reject(coded(event.state, event.error?.message || event.error || `Icon transfer ${event.state}`));
|
|
||||||
};
|
|
||||||
const unsubscribe = subscribeCore((connectionId, event) => {
|
|
||||||
if (connectionId !== id || event.event !== 'file_transfer') return;
|
|
||||||
try { job.alive(); } catch (error) { if (!finished) { finished = true; reject(error); } return; }
|
|
||||||
if (transferId === undefined) early.set(event.transfer_id, event);
|
|
||||||
else if (event.transfer_id === transferId) accept(event);
|
|
||||||
});
|
|
||||||
// Attach immediately so a terminal event racing the request cannot become unhandled.
|
|
||||||
completion.catch(() => {});
|
|
||||||
try {
|
|
||||||
const result = await invoke(id, command, args); transferId = result.transfer_id;
|
|
||||||
job.alive();
|
|
||||||
if (!Number.isSafeInteger(transferId) && typeof transferId !== 'string') throw new Error('Missing icon transfer ID');
|
|
||||||
job.transferId = transferId;
|
|
||||||
if (early.has(transferId)) accept(early.get(transferId));
|
|
||||||
if (job.cancelled) { job.alive(); await invoke(id, 'file_cancel', { transfer_id: transferId }); }
|
|
||||||
const timer = setInterval(() => { try { check(); } catch (error) { if (error.code !== 'cancelled' && !finished) { finished = true; reject(error); } } }, 250);
|
|
||||||
try { await completion; } finally { clearInterval(timer); }
|
|
||||||
check();
|
|
||||||
} finally {
|
|
||||||
unsubscribe(); job.transferId = null;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
const temporary = async fn => {
|
|
||||||
const folder = await fs.mkdtemp(path.join(os.tmpdir(), 'teamspeach-snapshot-'));
|
|
||||||
try { return await fn(folder); } finally { await fs.rm(folder, { recursive: true, force: true }); }
|
|
||||||
};
|
|
||||||
return {
|
|
||||||
collect: async operation => {
|
|
||||||
const listing = await invoke(id, 'file_list', { channel_id: 0, path: '/icons/' });
|
|
||||||
if (!Array.isArray(listing.entries)) throw new Error('Invalid icon list response');
|
|
||||||
const icons = [];
|
|
||||||
for (const file of listing.entries) {
|
|
||||||
if (file.type !== 'file' || !/^icon_\d{1,10}$/.test(file.name)) continue;
|
|
||||||
const icon = await operation.step('icon', file.name, () => temporary(async folder => {
|
|
||||||
if (Number(file.size) > MAX_ICON_BYTES) throw new Error('Icon exceeds 128 KiB');
|
|
||||||
await transfer('file_download', { channel_id: 0, path: '/icons/' + file.name, dest_dir: folder, subdirs: [], overwrite: false });
|
|
||||||
const bytes = await fs.readFile(path.join(folder, file.name)); if (bytes.length > MAX_ICON_BYTES) throw new Error('Icon exceeds 128 KiB');
|
|
||||||
return { id: file.name.slice(5), data: bytes.toString('base64'), mimeType: mimeType(bytes) };
|
|
||||||
}));
|
|
||||||
if (icon) icons.push(icon);
|
|
||||||
}
|
|
||||||
return icons;
|
|
||||||
},
|
|
||||||
upload: async icon => temporary(async folder => {
|
|
||||||
const bytes = iconBytes(icon), iconId = crc32(bytes), name = 'icon_' + iconId;
|
|
||||||
// Identical content-addressed icons need no write. Never overwrite a different file.
|
|
||||||
const listing = await invoke(id, 'file_list', { channel_id: 0, path: '/icons/' });
|
|
||||||
if (!Array.isArray(listing.entries)) throw new Error('Invalid icon list response');
|
|
||||||
if (listing.entries?.some(file => file.name === name)) {
|
|
||||||
await transfer('file_download', { channel_id: 0, path: '/icons/' + name, dest_dir: folder, subdirs: [], overwrite: false });
|
|
||||||
const existing = await fs.readFile(path.join(folder, name));
|
|
||||||
if (!existing.equals(bytes)) throw new Error('Icon CRC32 collision; existing icon was not overwritten');
|
|
||||||
return iconId;
|
|
||||||
}
|
|
||||||
const source = path.join(folder, name); await fs.writeFile(source, bytes, { flag: 'wx', mode: 0o600 });
|
|
||||||
await transfer('file_upload', { channel_id: 0, path: '/icons/' + name, source, overwrite: false });
|
|
||||||
const uploaded = await invoke(id, 'file_list', { channel_id: 0, path: '/icons/' });
|
|
||||||
if (!uploaded.entries?.some(file => file.name === name)) throw new Error('Icon upload completed but its target ID was not listed; references were not changed');
|
|
||||||
return iconId;
|
|
||||||
}),
|
|
||||||
};
|
|
||||||
};
|
|
||||||
async function run(event, id, mode, prepare, action) {
|
|
||||||
if (jobs.has(id)) throw coded('busy', 'A snapshot operation is already running on this connection');
|
|
||||||
const alive = pin(id), job = { cancelled: false, transferId: null, alive };
|
|
||||||
jobs.set(id, job);
|
|
||||||
let operation;
|
|
||||||
const check = () => { alive(); if (!trustedSender(event)) throw coded('forbidden', 'Snapshot window changed'); if (job.cancelled) throw coded('cancelled', 'Snapshot cancelled; completed changes are retained'); };
|
|
||||||
try {
|
|
||||||
const context = await invoke(id, 'admin_context'); check();
|
|
||||||
const prepared = await prepare(context, check); check();
|
|
||||||
if (prepared === null) return { ok: true, cancelled: true, success: false };
|
|
||||||
const progress = value => { if (!event.sender.isDestroyed()) event.sender.send('snapshots:progress', { connectionId: id, mode, ...value }); };
|
|
||||||
const call = async (command, args) => { check(); const result = await invoke(id, command, args); alive(); return result; };
|
|
||||||
operation = new SnapshotOperation({ call, context, check, progress, icons: iconsFor(id, job, check) });
|
|
||||||
const result = await action(operation, prepared, check);
|
|
||||||
check();
|
|
||||||
return { ok: true, success: operation.errors.length === 0, partial: operation.errors.length > 0, errors: operation.errors, created: operation.created, ...result };
|
|
||||||
} catch (error) {
|
|
||||||
if (!operation) throw error;
|
|
||||||
operation.errors.push({ type: mode, identifier: 'operation', code: error.code, message: error.message });
|
|
||||||
return { ok: true, success: false, partial: true, cancelled: error.code === 'cancelled', errors: operation.errors, created: operation.created };
|
|
||||||
} finally { jobs.delete(id); }
|
|
||||||
}
|
|
||||||
handle('snapshots:export', (event, id, options) => run(event, id, 'export', async (_context, check) => {
|
|
||||||
const picked = await pick('showSaveDialog', { title: nativeTitle('snapshots.export'), defaultPath: 'server-snapshot.json', filters: [{ name: 'JSON', extensions: ['json'] }] }); check();
|
|
||||||
return picked.canceled || !picked.filePath ? null : picked.filePath;
|
|
||||||
}, async (operation, file, check) => {
|
|
||||||
const document = await operation.create(options); check();
|
|
||||||
const contents = JSON.stringify(document, null, 2); if (Buffer.byteLength(contents) > MAX_DOCUMENT_BYTES) throw new Error('Snapshot exceeds 32 MiB');
|
|
||||||
await fs.writeFile(file, contents, { mode: 0o600 });
|
|
||||||
return { saved: true, name: path.basename(file) };
|
|
||||||
}));
|
|
||||||
handle('snapshots:open', async (event, id) => {
|
|
||||||
const alive = pin(id);
|
|
||||||
const check = () => { alive(); if (!trustedSender(event)) throw coded('forbidden', 'Snapshot window changed'); };
|
|
||||||
const context = await invoke(id, 'admin_context'); check();
|
|
||||||
const result = await pick('showOpenDialog', { title: nativeTitle('snapshots.open'), filters: [{ name: 'JSON', extensions: ['json'] }], properties: ['openFile', 'dontAddToRecent'] }); check();
|
|
||||||
if (result.canceled || !result.filePaths?.length) return { ok: true, cancelled: true };
|
|
||||||
const file = await fs.open(result.filePaths[0], 'r'); let text;
|
|
||||||
try { const stat = await file.stat(); if (!stat.isFile() || stat.size > MAX_DOCUMENT_BYTES) throw new Error('Snapshot must be a regular file no larger than 32 MiB'); text = await file.readFile('utf8'); } finally { await file.close(); }
|
|
||||||
if (text.trimStart().startsWith('version=')) throw new Error('Server-side snapshot files are not supported; choose a client JSON snapshot');
|
|
||||||
const document = validate(JSON.parse(text)); check();
|
|
||||||
for (const [token, entry] of imports) if (entry.expires < Date.now() || entry.id === id) imports.delete(token);
|
|
||||||
if (imports.size >= 16) imports.delete(imports.keys().next().value);
|
|
||||||
const token = crypto.randomUUID(); imports.set(token, { id, document, check, generation: context.generation, serverUid: context.server_uid, expires: Date.now() + 30 * 60 * 1000 });
|
|
||||||
return { ok: true, token, name: path.basename(result.filePaths[0]), meta: document.meta, vars: document.vars || {}, confirmation: context.server_uid, catalog: document.catalog.map(item => ({ id: item.id, description: item.description || '', sections: ['server', 'channels', 'serverGroups', 'channelGroups', 'icons'].filter(key => item[key] !== undefined) })) };
|
|
||||||
});
|
|
||||||
handle('snapshots:apply', (event, id, options) => run(event, id, 'apply', async (context, check) => {
|
|
||||||
const entry = imports.get(options?.token);
|
|
||||||
if (!entry || entry.id !== id || entry.expires < Date.now()) throw new Error('Open the snapshot file again');
|
|
||||||
entry.check(); check();
|
|
||||||
if (entry.generation !== context.generation || entry.serverUid !== context.server_uid || options.confirmation !== context.server_uid) throw new Error('Confirm the current server identity before applying');
|
|
||||||
if (!['skip', 'rename_new', 'rename_existing'].includes(options.conflictMode) || !validVars(options.vars)) throw new Error('Invalid apply options');
|
|
||||||
const catalog = entry.document.catalog.find(c => c.id === options.catalogId); if (!catalog) throw new Error('Choose a catalog entry');
|
|
||||||
return { catalog, vars: { ...entry.document.vars, ...options.vars }, conflictMode: options.conflictMode };
|
|
||||||
}, async (operation, value) => { await operation.apply(value.catalog, value.vars, value.conflictMode); return {}; }));
|
|
||||||
handle('snapshots:cancel', async (_event, id) => {
|
|
||||||
const job = jobs.get(id); if (!job) return { ok: true, cancelling: false };
|
|
||||||
job.cancelled = true;
|
|
||||||
if (job.transferId !== null) { job.alive(); await invoke(id, 'file_cancel', { transfer_id: job.transferId }); }
|
|
||||||
return { ok: true, cancelling: true };
|
|
||||||
});
|
|
||||||
return { dispose() { for (const job of jobs.values()) job.cancelled = true; imports.clear(); } };
|
|
||||||
}
|
|
||||||
module.exports = { registerServerSnapshotsIpc };
|
|
||||||
@@ -1,104 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const { randomUUID } = require('node:crypto');
|
|
||||||
const deny = () => ({ action: 'deny' });
|
|
||||||
const failure = message => ({ ok: false, error: { code: 'stream_popout', message } });
|
|
||||||
|
|
||||||
/** Only a one-use main-frame grant can open the fixed, scriptless same-origin player document. */
|
|
||||||
function registerStreamPopout({ ipcMain, BrowserWindow, getWindow, trustedSender, appOrigin, getConnection, testOffscreen = false, now = Date.now }) {
|
|
||||||
const url = `${appOrigin}/stream-popout.html`;
|
|
||||||
const grants = new Map(), children = new Map();
|
|
||||||
let attached = null;
|
|
||||||
const current = grant => testOffscreen || (() => {
|
|
||||||
const connection = getConnection(grant.connectionId);
|
|
||||||
return connection?.state === 'connected' && connection.session === grant.epoch;
|
|
||||||
})();
|
|
||||||
const trusted = event => trustedSender(event) && event.senderFrame === event.sender.mainFrame;
|
|
||||||
const close = token => {
|
|
||||||
grants.delete(token);
|
|
||||||
const entry = children.get(token);
|
|
||||||
if (entry && !entry.window.isDestroyed()) entry.window.close();
|
|
||||||
};
|
|
||||||
const dispose = () => {
|
|
||||||
grants.clear();
|
|
||||||
for (const token of children.keys()) close(token);
|
|
||||||
};
|
|
||||||
ipcMain.handle('stream-popout:prepare', (event, input) => {
|
|
||||||
if (!trusted(event)) return failure('Only the main application frame can detach a stream.');
|
|
||||||
if (!input || Object.keys(input).some(key => !['connectionId', 'streamId'].includes(key)) || typeof input.connectionId !== 'string' || !/^c[1-9][0-9]*$/.test(input.connectionId) || typeof input.streamId !== 'string' || !input.streamId || input.streamId.length > 256 || /[\u0000-\u001f]/.test(input.streamId)) return failure('Invalid stream owner.');
|
|
||||||
for (const [token, grant] of grants) if (grant.expires < now()) grants.delete(token);
|
|
||||||
if (grants.size + children.size >= 16) return failure('Close an existing detached stream before opening another.');
|
|
||||||
const connection = getConnection(input.connectionId);
|
|
||||||
const grant = { ...input, frame: event.senderFrame, epoch: connection?.session, expires: now() + 5000 };
|
|
||||||
if (!current(grant)) return failure('The stream connection is no longer active.');
|
|
||||||
const token = `stream-popout-${randomUUID()}`;
|
|
||||||
grants.set(token, grant);
|
|
||||||
return { ok: true, token, url };
|
|
||||||
});
|
|
||||||
ipcMain.handle('stream-popout:close', (event, input) => {
|
|
||||||
if (!trusted(event) || !input || Object.keys(input).some(key => key !== 'token') || typeof input.token !== 'string') return failure('Invalid detached stream owner.');
|
|
||||||
close(input.token); return { ok: true };
|
|
||||||
});
|
|
||||||
ipcMain.handle('stream-popout:present', (event, input) => {
|
|
||||||
if (!trusted(event) || !input || Object.keys(input).some(key => key !== 'token')) return failure('Invalid detached stream owner.');
|
|
||||||
const entry = children.get(input.token);
|
|
||||||
if (!entry || entry.window.isDestroyed() || !entry.loaded || !current(entry.grant)) return failure('Detached stream is no longer available.');
|
|
||||||
if (!testOffscreen) entry.window.show();
|
|
||||||
return { ok: true };
|
|
||||||
});
|
|
||||||
const attach = parent => {
|
|
||||||
if (attached === parent) return;
|
|
||||||
attached = parent;
|
|
||||||
parent.webContents.on('did-start-navigation', (_event, _url, sameDocument, isMainFrame) => { if (isMainFrame && !sameDocument) dispose(); });
|
|
||||||
parent.webContents.on('render-process-gone', dispose);
|
|
||||||
parent.once('closed', dispose);
|
|
||||||
parent.webContents.setWindowOpenHandler(details => {
|
|
||||||
const grant = grants.get(details.frameName);
|
|
||||||
if (!grant || details.url !== url || details.postBody || grant.frame !== parent.webContents.mainFrame || grant.expires < now() || !current(grant) || parent !== getWindow()) return deny();
|
|
||||||
grants.delete(details.frameName);
|
|
||||||
const token = details.frameName;
|
|
||||||
// Electron constructs the guest WebContents BEFORE createWindow. Security/offscreen prefs
|
|
||||||
// must be supplied here, and the callback must wrap that exact guest (not a second blank one).
|
|
||||||
const webPreferences = { contextIsolation: true, sandbox: true, nodeIntegration: false, nodeIntegrationInWorker: false,
|
|
||||||
nodeIntegrationInSubFrames: false, webSecurity: true, webviewTag: false, navigateOnDragDrop: false,
|
|
||||||
spellcheck: false, autoplayPolicy: 'no-user-gesture-required', offscreen: Boolean(testOffscreen) };
|
|
||||||
return {
|
|
||||||
action: 'allow', outlivesOpener: false,
|
|
||||||
overrideBrowserWindowOptions: { show: false, focusable: !testOffscreen, webPreferences },
|
|
||||||
createWindow: inherited => {
|
|
||||||
const child = new BrowserWindow({ webContents: inherited.webContents,
|
|
||||||
width: 960, height: 600, minWidth: 320, minHeight: 200, title: 'TeamsPeach',
|
|
||||||
show: false, focusable: !testOffscreen, skipTaskbar: Boolean(testOffscreen), fullscreenable: !testOffscreen,
|
|
||||||
...(testOffscreen ? { x: -10000, y: -10000 } : {}), webPreferences });
|
|
||||||
child.setMenu(null);
|
|
||||||
if (testOffscreen) child.webContents.setAudioMuted(true);
|
|
||||||
child.webContents.setWindowOpenHandler(deny);
|
|
||||||
let loaded = false;
|
|
||||||
child.webContents.on('will-navigate', (event, destination) => { if (loaded || destination !== url) event.preventDefault(); });
|
|
||||||
child.webContents.on('will-frame-navigate', event => { if (!event.isMainFrame || loaded || event.url !== url) event.preventDefault(); });
|
|
||||||
child.webContents.on('will-redirect', event => event.preventDefault());
|
|
||||||
child.webContents.on('will-attach-webview', event => event.preventDefault());
|
|
||||||
if (testOffscreen) child.webContents.on('content-bounds-updated', event => event.preventDefault());
|
|
||||||
const entry = { window: child, grant, loaded: false };
|
|
||||||
children.set(token, entry);
|
|
||||||
child.webContents.on('did-finish-load', () => {
|
|
||||||
if (child.webContents.getURL() !== url) return;
|
|
||||||
// A wrapped offscreen guest can retain its pre-attachment 0×0 viewport despite
|
|
||||||
// BrowserWindow outer bounds. Set the loaded document's client size without showing it.
|
|
||||||
child.setContentSize(960, 600, false);
|
|
||||||
loaded = true; entry.loaded = true;
|
|
||||||
if (!parent.isDestroyed()) parent.webContents.send('stream-popout:ready', { token });
|
|
||||||
});
|
|
||||||
child.once('closed', () => {
|
|
||||||
children.delete(token);
|
|
||||||
if (!parent.isDestroyed() && !parent.webContents.isDestroyed()) parent.webContents.send('stream-popout:closed', { token });
|
|
||||||
});
|
|
||||||
return child.webContents;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
});
|
|
||||||
};
|
|
||||||
return { attach, dispose };
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = { registerStreamPopout };
|
|
||||||
@@ -1,784 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
// Local TeamSpeak 6 theme extensions (the official client's "User Theme"), account-free and offline.
|
|
||||||
// Format: official docs/Extensions.md + docs/extensions.json (JSON Schema draft-07) shipped with TS6.
|
|
||||||
// Official runtime behaviour mirrored here (TS6 html/client_ui/main.js, offsets in docs/themes.md):
|
|
||||||
// * getInstalledThemes() lists one folder per extension; the UI re-reads it at most every 5 minutes
|
|
||||||
// unless the user presses refresh;
|
|
||||||
// * the selection is saved as "<identifier>//<variant name>"; an unknown selection resets to the stock theme;
|
|
||||||
// * the variant CSS is applied as <link rel="stylesheet" id="userStyle"> appended to <head>.
|
|
||||||
// Hardening that the official client does not document: files are served only through the restricted
|
|
||||||
// tsext: scheme, never outside the extension folder (no traversal, no symlinks/junctions), with bounded
|
|
||||||
// reads, a CSS scan that rejects @import and non-local url()/image-set() references, and only the
|
|
||||||
// selected variant's stylesheet, fonts and images (other extensions expose their preview images only).
|
|
||||||
// This module is electron-free: protocol/shell functions are injected by main.js.
|
|
||||||
|
|
||||||
const fs = require('node:fs');
|
|
||||||
const path = require('node:path');
|
|
||||||
|
|
||||||
const SCHEME = 'tsext';
|
|
||||||
// No fetch API, no service workers, no CSP bypass: the page CSP adds only `tsext:` to style/img/font-src.
|
|
||||||
// corsEnabled lets @font-face (always a CORS request) load from the app origin.
|
|
||||||
const SCHEME_PRIVILEGE = Object.freeze({ scheme: SCHEME, privileges: Object.freeze({ standard: true, secure: true, corsEnabled: true }) });
|
|
||||||
|
|
||||||
const LIMITS = Object.freeze({
|
|
||||||
rootEntries: 1024, // directory entries looked at in the extension root
|
|
||||||
extensions: 64, // extension folders validated per scan
|
|
||||||
packageBytes: 64 * 1024,
|
|
||||||
cssBytes: 2 * 1024 * 1024,
|
|
||||||
imageBytes: 4 * 1024 * 1024,
|
|
||||||
fontBytes: 4 * 1024 * 1024,
|
|
||||||
pathLength: 512,
|
|
||||||
pathDepth: 8,
|
|
||||||
});
|
|
||||||
const CACHE_MS = 5 * 60 * 1000; // official refreshAvailableUserStyles: 3e5 ms unless forced
|
|
||||||
|
|
||||||
const TYPES = Object.freeze({
|
|
||||||
'.css': { mime: 'text/css; charset=utf-8', kind: 'css', limit: LIMITS.cssBytes },
|
|
||||||
'.png': { mime: 'image/png', kind: 'image', limit: LIMITS.imageBytes },
|
|
||||||
'.svg': { mime: 'image/svg+xml', kind: 'image', limit: LIMITS.imageBytes },
|
|
||||||
'.jpg': { mime: 'image/jpeg', kind: 'image', limit: LIMITS.imageBytes },
|
|
||||||
'.jpeg': { mime: 'image/jpeg', kind: 'image', limit: LIMITS.imageBytes },
|
|
||||||
'.gif': { mime: 'image/gif', kind: 'image', limit: LIMITS.imageBytes },
|
|
||||||
'.webp': { mime: 'image/webp', kind: 'image', limit: LIMITS.imageBytes },
|
|
||||||
'.woff': { mime: 'font/woff', kind: 'font', limit: LIMITS.fontBytes },
|
|
||||||
'.woff2': { mime: 'font/woff2', kind: 'font', limit: LIMITS.fontBytes },
|
|
||||||
'.ttf': { mime: 'font/ttf', kind: 'font', limit: LIMITS.fontBytes },
|
|
||||||
'.otf': { mime: 'font/otf', kind: 'font', limit: LIMITS.fontBytes },
|
|
||||||
});
|
|
||||||
const RESOURCE_CSP = "default-src 'none'; style-src 'unsafe-inline'; img-src data:; sandbox";
|
|
||||||
|
|
||||||
// ---------- schema (exact transcription of extensions.json; draft-07 semantics) ----------
|
|
||||||
|
|
||||||
const IDENTIFIER = /^[a-z]{2,}\.([a-z]{3,}\.){1,}[a-z]{3,}$/;
|
|
||||||
const SEMVER = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;
|
|
||||||
const HTTPS = /^https:\/\/.*\..*/;
|
|
||||||
const SOURCE = /^[-\w\s=.]{3,200}$/;
|
|
||||||
const VARIANT_IMAGE = /^.*\.(?:png|svg)$/;
|
|
||||||
const ROOM = /^#.*:([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])(\.([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]))*$/;
|
|
||||||
// "format" keywords: a conservative reading of RFC 5322 addr-spec and RFC 1123 host names.
|
|
||||||
const EMAIL = /^[^\s@<>()[\]\\,;:"]+@[^\s@<>()[\]\\,;:"]+\.[^\s@<>()[\]\\,;:"]+$/;
|
|
||||||
const HOSTNAME = /^(?=.{1,253}$)([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])(\.([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]))*$/;
|
|
||||||
|
|
||||||
class SchemaError extends Error {}
|
|
||||||
|
|
||||||
const isObject = (v) => v !== null && typeof v === 'object' && !Array.isArray(v);
|
|
||||||
// JSON Schema lengths count code points, not UTF-16 units.
|
|
||||||
const length = (s) => Array.from(s).length;
|
|
||||||
|
|
||||||
function fail(where, message) {
|
|
||||||
throw new SchemaError(`${where}: ${message}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
function checkObject(v, where, { required = [], allowed }) {
|
|
||||||
if (!isObject(v)) fail(where, 'must be an object');
|
|
||||||
for (const key of Object.keys(v)) if (!allowed.includes(key)) fail(where, `unknown property "${key}"`);
|
|
||||||
for (const key of required) if (!Object.prototype.hasOwnProperty.call(v, key)) fail(where, `missing "${key}"`);
|
|
||||||
}
|
|
||||||
|
|
||||||
function checkString(v, where, { min = 0, max = Infinity, pattern, format } = {}) {
|
|
||||||
if (typeof v !== 'string') fail(where, 'must be a string');
|
|
||||||
const n = length(v);
|
|
||||||
if (n < min) fail(where, `shorter than ${min}`);
|
|
||||||
if (n > max) fail(where, `longer than ${max}`);
|
|
||||||
if (pattern && !pattern.test(v)) fail(where, 'does not match the required pattern');
|
|
||||||
if (format && !format.test(v)) fail(where, 'has an invalid format');
|
|
||||||
}
|
|
||||||
|
|
||||||
function checkInteger(v, where, min) {
|
|
||||||
if (typeof v !== 'number' || !Number.isInteger(v)) fail(where, 'must be an integer');
|
|
||||||
if (v < min) fail(where, `must be at least ${min}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
function canonical(v) {
|
|
||||||
if (Array.isArray(v)) return `[${v.map(canonical).join(',')}]`;
|
|
||||||
if (isObject(v)) return `{${Object.keys(v).sort().map((k) => `${JSON.stringify(k)}:${canonical(v[k])}`).join(',')}}`;
|
|
||||||
return JSON.stringify(v);
|
|
||||||
}
|
|
||||||
|
|
||||||
function checkUnique(list, where) {
|
|
||||||
const seen = new Set();
|
|
||||||
for (const item of list) {
|
|
||||||
const key = canonical(item);
|
|
||||||
if (seen.has(key)) fail(where, 'items must be unique');
|
|
||||||
seen.add(key);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const TOP_KEYS = ['engines', 'version', 'name', 'description', 'author', 'homepage', 'docsUrl', 'repository', 'community', 'identifier', 'image', 'license', 'keywords', 'content'];
|
|
||||||
const TOP_REQUIRED = ['engines', 'identifier', 'image', 'repository', 'author', 'description', 'name', 'version', 'content', 'license'];
|
|
||||||
|
|
||||||
/** Validates a parsed package.json against extensions.json; throws SchemaError("<path>: <reason>"). */
|
|
||||||
function validatePackage(pkg) {
|
|
||||||
checkObject(pkg, 'package', { required: TOP_REQUIRED, allowed: TOP_KEYS });
|
|
||||||
checkObject(pkg.engines, 'engines', { required: ['teamspeak'], allowed: ['teamspeak'] });
|
|
||||||
checkInteger(pkg.engines.teamspeak, 'engines.teamspeak', 1);
|
|
||||||
checkString(pkg.version, 'version', { pattern: SEMVER });
|
|
||||||
checkString(pkg.name, 'name', { min: 5, max: 64 });
|
|
||||||
checkString(pkg.description, 'description', { min: 20, max: 256 });
|
|
||||||
if (typeof pkg.author === 'string') {
|
|
||||||
checkString(pkg.author, 'author', { min: 3, max: 64 });
|
|
||||||
} else {
|
|
||||||
checkObject(pkg.author, 'author', { required: ['name'], allowed: ['name', 'email', 'url', 'userTag'] });
|
|
||||||
checkString(pkg.author.name, 'author.name', { min: 3, max: 64 });
|
|
||||||
if ('email' in pkg.author) checkString(pkg.author.email, 'author.email', { format: EMAIL });
|
|
||||||
if ('url' in pkg.author) checkString(pkg.author.url, 'author.url', { pattern: HTTPS });
|
|
||||||
if ('userTag' in pkg.author) checkString(pkg.author.userTag, 'author.userTag', { format: EMAIL });
|
|
||||||
}
|
|
||||||
if ('homepage' in pkg) checkString(pkg.homepage, 'homepage', { max: 1024, pattern: HTTPS });
|
|
||||||
if ('docsUrl' in pkg) checkString(pkg.docsUrl, 'docsUrl', { max: 1024, pattern: HTTPS });
|
|
||||||
if (typeof pkg.repository === 'string') {
|
|
||||||
checkString(pkg.repository, 'repository', { min: 15, max: 512, pattern: HTTPS });
|
|
||||||
} else {
|
|
||||||
checkObject(pkg.repository, 'repository', { required: ['type', 'url'], allowed: ['type', 'url', 'directory'] });
|
|
||||||
if (pkg.repository.type !== 'git' && pkg.repository.type !== 'svn') fail('repository.type', 'must be "git" or "svn"');
|
|
||||||
checkString(pkg.repository.url, 'repository.url', { max: 1024, pattern: HTTPS });
|
|
||||||
if ('directory' in pkg.repository) checkString(pkg.repository.directory, 'repository.directory', { max: 256 });
|
|
||||||
}
|
|
||||||
if ('community' in pkg) {
|
|
||||||
checkObject(pkg.community, 'community', { allowed: ['room', 'server'] });
|
|
||||||
if ('room' in pkg.community) checkString(pkg.community.room, 'community.room', { min: 20, max: 256, pattern: ROOM });
|
|
||||||
if ('server' in pkg.community) checkString(pkg.community.server, 'community.server', { min: 3, max: 128, format: HOSTNAME });
|
|
||||||
}
|
|
||||||
checkString(pkg.identifier, 'identifier', { min: 11, max: 64, pattern: IDENTIFIER });
|
|
||||||
checkString(pkg.image, 'image', { min: 6 });
|
|
||||||
checkString(pkg.license, 'license', { min: 3, max: 20 });
|
|
||||||
if ('keywords' in pkg) {
|
|
||||||
if (!Array.isArray(pkg.keywords)) fail('keywords', 'must be an array');
|
|
||||||
if (pkg.keywords.length > 5) fail('keywords', 'more than 5 items');
|
|
||||||
pkg.keywords.forEach((k, i) => checkString(k, `keywords[${i}]`, { min: 3, max: 10 }));
|
|
||||||
checkUnique(pkg.keywords, 'keywords');
|
|
||||||
}
|
|
||||||
checkObject(pkg.content, 'content', { allowed: ['themes'] });
|
|
||||||
if (Object.keys(pkg.content).length < 1) fail('content', 'must not be empty');
|
|
||||||
const themes = pkg.content.themes;
|
|
||||||
if (!Array.isArray(themes)) fail('content.themes', 'must be an array');
|
|
||||||
if (themes.length < 1 || themes.length > 20) fail('content.themes', 'must contain 1–20 items');
|
|
||||||
checkUnique(themes, 'content.themes');
|
|
||||||
themes.forEach((theme, i) => {
|
|
||||||
const where = `content.themes[${i}]`;
|
|
||||||
checkObject(theme, where, { required: ['name', 'source', 'apiVersion', 'image'], allowed: ['name', 'source', 'apiVersion', 'image'] });
|
|
||||||
checkString(theme.name, `${where}.name`, { min: 4, max: 30 });
|
|
||||||
checkString(theme.source, `${where}.source`, { pattern: SOURCE });
|
|
||||||
checkInteger(theme.apiVersion, `${where}.apiVersion`, 1);
|
|
||||||
checkString(theme.image, `${where}.image`, { min: 6, max: 128, pattern: VARIANT_IMAGE });
|
|
||||||
});
|
|
||||||
return pkg;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------- selection ("<identifier>//<variant name>") ----------
|
|
||||||
|
|
||||||
function parseSelection(value) {
|
|
||||||
if (typeof value !== 'string' || value.length > 200 || /[\u0000-\u001f\u007f]/.test(value)) return null;
|
|
||||||
const at = value.indexOf('//');
|
|
||||||
if (at <= 0) return null;
|
|
||||||
const identifier = value.slice(0, at);
|
|
||||||
const name = value.slice(at + 2);
|
|
||||||
if (!IDENTIFIER.test(identifier) || identifier.length > 64) return null;
|
|
||||||
const n = length(name);
|
|
||||||
if (n < 4 || n > 30) return null;
|
|
||||||
return { identifier, name };
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Accepts the saved string and the official client's older object form {extensionIdentifier, name}. */
|
|
||||||
function normalizeSelection(value) {
|
|
||||||
if (value === null) return null;
|
|
||||||
if (isObject(value) && typeof value.extensionIdentifier === 'string' && typeof value.name === 'string') {
|
|
||||||
value = `${value.extensionIdentifier}//${value.name}`;
|
|
||||||
}
|
|
||||||
const parsed = parseSelection(value);
|
|
||||||
return parsed ? `${parsed.identifier}//${parsed.name}` : undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
const USER_STYLE_PREF = Object.freeze({ default: null, check: (v) => v === null || parseSelection(v) !== null });
|
|
||||||
|
|
||||||
function extensionsDir(userData) {
|
|
||||||
return path.join(userData, 'extensions');
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------- confined, bounded file access ----------
|
|
||||||
|
|
||||||
class AccessError extends Error {
|
|
||||||
constructor(code, detail) {
|
|
||||||
super(code);
|
|
||||||
this.code = code;
|
|
||||||
this.detail = detail;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/** A relative POSIX path inside the extension: no absolute paths, drives, streams, backslashes or dot segments. */
|
|
||||||
function relativeSegments(rel) {
|
|
||||||
if (typeof rel !== 'string' || rel.length === 0 || rel.length > LIMITS.pathLength) return null;
|
|
||||||
if (/[\u0000-\u001f\u007f\\:*?"<>|]/.test(rel) || rel.startsWith('/')) return null;
|
|
||||||
const segments = rel.split('/');
|
|
||||||
if (segments.length > LIMITS.pathDepth) return null;
|
|
||||||
for (const s of segments) if (s === '' || s === '.' || s === '..') return null;
|
|
||||||
return segments;
|
|
||||||
}
|
|
||||||
|
|
||||||
function within(base, target) {
|
|
||||||
const rel = path.relative(base, target);
|
|
||||||
return rel !== '' && !rel.startsWith('..') && !path.isAbsolute(rel);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Reject a replaced extension/root directory, including junctions, before every resource read. */
|
|
||||||
async function checkedDirectory(directory, expectedReal = null) {
|
|
||||||
const st = await fs.promises.lstat(directory);
|
|
||||||
if (st.isSymbolicLink() || !st.isDirectory()) throw new AccessError('link');
|
|
||||||
const real = await fs.promises.realpath(directory);
|
|
||||||
if (expectedReal !== null && real !== expectedReal) throw new AccessError('link');
|
|
||||||
return real;
|
|
||||||
}
|
|
||||||
/** Resolves a file inside `rootReal` (already a realpath), refusing links anywhere on the way. */
|
|
||||||
async function resolveInside(rootReal, rel) {
|
|
||||||
const segments = relativeSegments(rel);
|
|
||||||
if (!segments) throw new AccessError('file', rel);
|
|
||||||
let current = rootReal;
|
|
||||||
for (let i = 0; i < segments.length; i++) {
|
|
||||||
current = path.join(current, segments[i]);
|
|
||||||
let st;
|
|
||||||
try {
|
|
||||||
st = await fs.promises.lstat(current);
|
|
||||||
} catch {
|
|
||||||
throw new AccessError('file', rel);
|
|
||||||
}
|
|
||||||
if (st.isSymbolicLink()) throw new AccessError('link', rel);
|
|
||||||
const last = i === segments.length - 1;
|
|
||||||
if (last ? !st.isFile() : !st.isDirectory()) throw new AccessError('file', rel);
|
|
||||||
}
|
|
||||||
let real;
|
|
||||||
try {
|
|
||||||
real = await fs.promises.realpath(current);
|
|
||||||
} catch {
|
|
||||||
throw new AccessError('file', rel);
|
|
||||||
}
|
|
||||||
if (!within(rootReal, real)) throw new AccessError('file', rel);
|
|
||||||
return real;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Reads at most `limit` bytes; fails if the file is larger, not regular, or replaced while open. */
|
|
||||||
async function readBounded(file, limit) {
|
|
||||||
const before = await fs.promises.lstat(file);
|
|
||||||
if (!before.isFile()) throw new AccessError('file');
|
|
||||||
if (before.size > limit) throw new AccessError('size');
|
|
||||||
const handle = await fs.promises.open(file, 'r');
|
|
||||||
try {
|
|
||||||
const st = await handle.stat();
|
|
||||||
if (!st.isFile() || st.ino !== before.ino || st.dev !== before.dev) throw new AccessError('file');
|
|
||||||
if (st.size > limit) throw new AccessError('size');
|
|
||||||
const data = Buffer.alloc(st.size + 1);
|
|
||||||
let size = 0;
|
|
||||||
while (size < data.length) {
|
|
||||||
const { bytesRead } = await handle.read(data, size, data.length - size, null);
|
|
||||||
if (!bytesRead) break;
|
|
||||||
size += bytesRead;
|
|
||||||
}
|
|
||||||
if (size !== st.size) throw new AccessError('size');
|
|
||||||
return { data: data.subarray(0, size), mtimeMs: st.mtimeMs };
|
|
||||||
} finally {
|
|
||||||
await handle.close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------- content checks ----------
|
|
||||||
|
|
||||||
function sniff(kind, ext, buf) {
|
|
||||||
if (kind === 'image') {
|
|
||||||
if (ext === '.png') return buf.length >= 8 && buf.toString('latin1', 0, 8) === '\x89PNG\r\n\x1a\n';
|
|
||||||
if (ext === '.jpg' || ext === '.jpeg') return buf.length >= 3 && buf[0] === 0xff && buf[1] === 0xd8 && buf[2] === 0xff;
|
|
||||||
if (ext === '.gif') return buf.length >= 6 && /^GIF8[79]a$/.test(buf.toString('latin1', 0, 6));
|
|
||||||
if (ext === '.webp') return buf.length >= 12 && buf.toString('latin1', 0, 4) === 'RIFF' && buf.toString('latin1', 8, 12) === 'WEBP';
|
|
||||||
if (ext === '.svg') {
|
|
||||||
const text = decodeUtf8(buf);
|
|
||||||
if (text === null || !/<svg[\s>]/i.test(text)) return false;
|
|
||||||
// SVG is served as an inert image, but active/XML/external content is rejected as well.
|
|
||||||
if (/<\s*(?:script|foreignObject)\b|<!\s*(?:DOCTYPE|ENTITY)|\bon[a-z]+\s*=/i.test(text)) return false;
|
|
||||||
if (/\b(?:href|src)\s*=\s*["']\s*(?!#|data:image\/)[^"']+/i.test(text)) return false;
|
|
||||||
try { checkCss(text); } catch { return false; }
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (kind === 'font') {
|
|
||||||
const tag = buf.length >= 4 ? buf.toString('latin1', 0, 4) : '';
|
|
||||||
if (ext === '.woff') return tag === 'wOFF';
|
|
||||||
if (ext === '.woff2') return tag === 'wOF2';
|
|
||||||
if (ext === '.ttf') return tag === '\x00\x01\x00\x00' || tag === 'true';
|
|
||||||
if (ext === '.otf') return tag === 'OTTO' || tag === '\x00\x01\x00\x00';
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
function decodeUtf8(buf) {
|
|
||||||
try {
|
|
||||||
return new TextDecoder('utf-8', { fatal: true }).decode(buf).replace(/^\uFEFF/, '');
|
|
||||||
} catch {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const IDENT_CHAR = /[A-Za-z0-9_\-\u0080-\uffff]/;
|
|
||||||
const IDENT_START = /[A-Za-z_\-\u0080-\uffff]/;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Minimal CSS Syntax tokenizer, enough to see every at-rule name, url() target and quoted string after
|
|
||||||
* escape decoding and comment removal (so `@\69mport` or `u\72l(` cannot hide a reference).
|
|
||||||
*/
|
|
||||||
function tokenizeCss(css) {
|
|
||||||
const tokens = [];
|
|
||||||
const n = css.length;
|
|
||||||
let i = 0;
|
|
||||||
const readEscape = () => {
|
|
||||||
// at a backslash
|
|
||||||
const hex = /^[0-9a-fA-F]{1,6}/.exec(css.slice(i + 1, i + 7));
|
|
||||||
if (hex) {
|
|
||||||
i += 1 + hex[0].length;
|
|
||||||
if (i < n && /[ \t\n\r\f]/.test(css[i])) i += css[i] === '\r' && css[i + 1] === '\n' ? 2 : 1;
|
|
||||||
const cp = parseInt(hex[0], 16);
|
|
||||||
return cp === 0 || cp > 0x10ffff || (cp >= 0xd800 && cp <= 0xdfff) ? '\ufffd' : String.fromCodePoint(cp);
|
|
||||||
}
|
|
||||||
i += 2;
|
|
||||||
return css[i - 1] ?? '';
|
|
||||||
};
|
|
||||||
const validEscape = (at) => css[at] === '\\' && at + 1 < n && css[at + 1] !== '\n';
|
|
||||||
const readName = () => {
|
|
||||||
let out = '';
|
|
||||||
while (i < n) {
|
|
||||||
if (validEscape(i)) out += readEscape();
|
|
||||||
else if (IDENT_CHAR.test(css[i])) out += css[i++];
|
|
||||||
else break;
|
|
||||||
}
|
|
||||||
return out;
|
|
||||||
};
|
|
||||||
const readString = (quote) => {
|
|
||||||
i++;
|
|
||||||
let out = '';
|
|
||||||
while (i < n && css[i] !== quote) {
|
|
||||||
if (css[i] === '\\') {
|
|
||||||
if (css[i + 1] === '\n') i += 2;
|
|
||||||
else out += readEscape();
|
|
||||||
} else if (css[i] === '\n') {
|
|
||||||
break; // bad-string; the rest is still scanned
|
|
||||||
} else {
|
|
||||||
out += css[i++];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
i++;
|
|
||||||
return out;
|
|
||||||
};
|
|
||||||
while (i < n) {
|
|
||||||
const c = css[i];
|
|
||||||
if (c === '/' && css[i + 1] === '*') {
|
|
||||||
const end = css.indexOf('*/', i + 2);
|
|
||||||
if (end < 0) throw new AccessError('css', 'unterminated comment');
|
|
||||||
i = end + 2;
|
|
||||||
} else if (c === '"' || c === "'") {
|
|
||||||
tokens.push({ type: 'string', value: readString(c) });
|
|
||||||
} else if (c === '@') {
|
|
||||||
i++;
|
|
||||||
tokens.push({ type: 'at', value: readName().toLowerCase() });
|
|
||||||
} else if (IDENT_START.test(c) || validEscape(i)) {
|
|
||||||
const name = readName();
|
|
||||||
if (css[i] === '(') {
|
|
||||||
i++;
|
|
||||||
const lower = name.toLowerCase();
|
|
||||||
let j = i;
|
|
||||||
while (j < n && /[ \t\n\r\f]/.test(css[j])) j++;
|
|
||||||
if (lower === 'url' && css[j] !== '"' && css[j] !== "'") {
|
|
||||||
i = j;
|
|
||||||
let out = '';
|
|
||||||
while (i < n && css[i] !== ')') {
|
|
||||||
if (validEscape(i)) out += readEscape();
|
|
||||||
else out += css[i++];
|
|
||||||
}
|
|
||||||
i++;
|
|
||||||
tokens.push({ type: 'url', value: out.trim() });
|
|
||||||
} else {
|
|
||||||
tokens.push({ type: 'function', value: lower });
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
tokens.push({ type: 'ident', value: name });
|
|
||||||
}
|
|
||||||
} else if (c === '(') {
|
|
||||||
tokens.push({ type: '(' });
|
|
||||||
i++;
|
|
||||||
} else if (c === ')') {
|
|
||||||
tokens.push({ type: ')' });
|
|
||||||
i++;
|
|
||||||
} else {
|
|
||||||
i++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return tokens;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** A CSS reference may only be a fragment, data: or a relative path inside the extension. */
|
|
||||||
function checkCssReference(value) {
|
|
||||||
const v = value.trim();
|
|
||||||
if (v === '' || v.startsWith('#')) return;
|
|
||||||
if (/^data:/i.test(v)) return;
|
|
||||||
if (/^[a-z][a-z0-9+.-]*:/i.test(v) || v.startsWith('/') || v.startsWith('\\')) throw new AccessError('css', `reference ${v.slice(0, 80)}`);
|
|
||||||
let pathPart = v.split(/[?#]/, 1)[0];
|
|
||||||
try {
|
|
||||||
pathPart = decodeURIComponent(pathPart);
|
|
||||||
} catch {
|
|
||||||
throw new AccessError('css', `reference ${v.slice(0, 80)}`);
|
|
||||||
}
|
|
||||||
if (!relativeSegments(pathPart)) throw new AccessError('css', `reference ${v.slice(0, 80)}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Rejects @import (any target) and every url()/src()/image-set() string that is not local to the extension. */
|
|
||||||
function checkCss(text) {
|
|
||||||
const tokens = tokenizeCss(text);
|
|
||||||
const stack = [];
|
|
||||||
for (let k = 0; k < tokens.length; k++) {
|
|
||||||
const tok = tokens[k];
|
|
||||||
if (tok.type === 'at' && tok.value === 'import') throw new AccessError('css', '@import');
|
|
||||||
if (tok.type === 'url') checkCssReference(tok.value);
|
|
||||||
if (tok.type === 'function') stack.push(tok.value);
|
|
||||||
else if (tok.type === '(') stack.push('(');
|
|
||||||
else if (tok.type === ')') stack.pop();
|
|
||||||
else if (tok.type === 'string' && stack.some((f) => f === 'url' || f === 'src' || f === 'image-set' || f === '-webkit-image-set' || f === 'image')) {
|
|
||||||
checkCssReference(tok.value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------- scanning ----------
|
|
||||||
|
|
||||||
function encodePath(rel) {
|
|
||||||
return rel.split('/').map(encodeURIComponent).join('/');
|
|
||||||
}
|
|
||||||
|
|
||||||
function resourceUrl(identifier, rel, mtimeMs) {
|
|
||||||
return `${SCHEME}://${identifier}/${encodePath(rel)}?v=${Math.floor(mtimeMs).toString(36)}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
async function readPackage(rootReal, folder) {
|
|
||||||
const dir = path.join(rootReal, folder);
|
|
||||||
const dirReal = await checkedDirectory(dir);
|
|
||||||
if (!within(rootReal, dirReal)) throw new AccessError('link');
|
|
||||||
let file;
|
|
||||||
try {
|
|
||||||
file = await resolveInside(dir, 'package.json');
|
|
||||||
} catch (err) {
|
|
||||||
throw new AccessError(err.code === 'link' ? 'link' : 'package');
|
|
||||||
}
|
|
||||||
const { data } = await readBounded(file, LIMITS.packageBytes);
|
|
||||||
const text = decodeUtf8(data);
|
|
||||||
let pkg;
|
|
||||||
try {
|
|
||||||
if (text === null) throw new Error('utf-8');
|
|
||||||
pkg = JSON.parse(text);
|
|
||||||
} catch {
|
|
||||||
throw new AccessError('json');
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
validatePackage(pkg);
|
|
||||||
} catch (err) {
|
|
||||||
if (err instanceof SchemaError) throw new AccessError('schema', err.message);
|
|
||||||
throw err;
|
|
||||||
}
|
|
||||||
if (pkg.identifier !== folder) throw new AccessError('folder', pkg.identifier);
|
|
||||||
// Selection keys are "<identifier>//<name>"; duplicate names would be ambiguous.
|
|
||||||
const names = new Set();
|
|
||||||
for (const theme of pkg.content.themes) {
|
|
||||||
if (names.has(theme.name)) throw new AccessError('schema', `content.themes: duplicate name "${theme.name}"`);
|
|
||||||
names.add(theme.name);
|
|
||||||
if (path.extname(theme.source).toLowerCase() !== '.css') throw new AccessError('file', theme.source);
|
|
||||||
}
|
|
||||||
const stamp = async (rel, kindWanted) => {
|
|
||||||
const type = TYPES[path.extname(rel).toLowerCase()];
|
|
||||||
if (!type || type.kind !== kindWanted) throw new AccessError('file', rel);
|
|
||||||
const real = await resolveInside(dirReal, rel);
|
|
||||||
const fst = await fs.promises.stat(real);
|
|
||||||
if (fst.size > type.limit) throw new AccessError('size', rel);
|
|
||||||
return { rel, mtimeMs: fst.mtimeMs };
|
|
||||||
};
|
|
||||||
const image = await stamp(pkg.image, 'image');
|
|
||||||
const themes = [];
|
|
||||||
for (const theme of pkg.content.themes) {
|
|
||||||
const source = await stamp(theme.source, 'css');
|
|
||||||
const preview = await stamp(theme.image, 'image');
|
|
||||||
themes.push({ name: theme.name, apiVersion: theme.apiVersion, sourceRel: source.rel, sourceUrl: resourceUrl(folder, source.rel, source.mtimeMs), imageRel: preview.rel, imageUrl: resourceUrl(folder, preview.rel, preview.mtimeMs) });
|
|
||||||
}
|
|
||||||
return { pkg, dirReal, imageRel: image.rel, imageUrl: resourceUrl(folder, image.rel, image.mtimeMs), themes };
|
|
||||||
}
|
|
||||||
|
|
||||||
function publicEntry(entry) {
|
|
||||||
const { pkg } = entry;
|
|
||||||
const author = typeof pkg.author === 'string' ? { name: pkg.author } : { ...pkg.author };
|
|
||||||
const repository = typeof pkg.repository === 'string' ? { url: pkg.repository } : { ...pkg.repository };
|
|
||||||
return {
|
|
||||||
identifier: pkg.identifier,
|
|
||||||
name: pkg.name,
|
|
||||||
description: pkg.description,
|
|
||||||
version: pkg.version,
|
|
||||||
license: pkg.license,
|
|
||||||
author,
|
|
||||||
repository,
|
|
||||||
homepage: pkg.homepage ?? null,
|
|
||||||
docsUrl: pkg.docsUrl ?? null,
|
|
||||||
community: pkg.community ? { ...pkg.community } : null,
|
|
||||||
keywords: pkg.keywords ? [...pkg.keywords] : [],
|
|
||||||
image: entry.imageUrl,
|
|
||||||
themes: entry.themes.map((t) => ({ name: t.name, source: t.sourceUrl, image: t.imageUrl, apiVersion: t.apiVersion })),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Scans `root`: one folder per extension; returns valid entries keyed by identifier and rejected folders. */
|
|
||||||
async function scanExtensions(root) {
|
|
||||||
// mkdir may race another local process; lstat afterwards must still reject a root link.
|
|
||||||
await fs.promises.mkdir(root, { recursive: true });
|
|
||||||
const rootReal = await checkedDirectory(root);
|
|
||||||
const names = [];
|
|
||||||
let truncated = false;
|
|
||||||
let visited = 0;
|
|
||||||
const dir = await fs.promises.opendir(rootReal);
|
|
||||||
try {
|
|
||||||
for await (const dirent of dir) {
|
|
||||||
if (++visited > LIMITS.rootEntries) {
|
|
||||||
truncated = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (dirent.name.startsWith('.')) continue;
|
|
||||||
if (dirent.isDirectory() || dirent.isSymbolicLink()) names.push(dirent.name);
|
|
||||||
}
|
|
||||||
} finally {
|
|
||||||
await dir.close().catch(() => {});
|
|
||||||
}
|
|
||||||
names.sort();
|
|
||||||
if (names.length > LIMITS.extensions) truncated = true;
|
|
||||||
const entries = new Map();
|
|
||||||
const invalid = [];
|
|
||||||
for (const folder of names.slice(0, LIMITS.extensions)) {
|
|
||||||
try {
|
|
||||||
const entry = await readPackage(rootReal, folder);
|
|
||||||
entries.set(folder, entry);
|
|
||||||
} catch (err) {
|
|
||||||
const code = err instanceof AccessError ? err.code : 'package';
|
|
||||||
invalid.push({ folder, reason: code === 'css' ? 'file' : code, detail: err instanceof AccessError && err.detail ? String(err.detail).slice(0, 200) : null });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (truncated) invalid.push({ folder: '', reason: 'limit', detail: null, max: LIMITS.extensions });
|
|
||||||
return { rootReal, entries, invalid };
|
|
||||||
}
|
|
||||||
|
|
||||||
// ---------- service ----------
|
|
||||||
|
|
||||||
function createThemeService({ root, appOrigin, prefs, openPath, openExternal, allowShell, now = Date.now }) {
|
|
||||||
let scan = null;
|
|
||||||
let scannedAt = 0;
|
|
||||||
let pending = null;
|
|
||||||
let lastMissing = null;
|
|
||||||
|
|
||||||
async function ensureScan(force) {
|
|
||||||
if (!force && scan && now() - scannedAt < CACHE_MS) return scan;
|
|
||||||
if (!pending) {
|
|
||||||
pending = scanExtensions(root).then((result) => {
|
|
||||||
scan = result;
|
|
||||||
scannedAt = now();
|
|
||||||
return result;
|
|
||||||
}).finally(() => {
|
|
||||||
pending = null;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return pending;
|
|
||||||
}
|
|
||||||
|
|
||||||
function findTheme(result, selection) {
|
|
||||||
const parsed = parseSelection(selection);
|
|
||||||
if (!parsed) return null;
|
|
||||||
const entry = result.entries.get(parsed.identifier);
|
|
||||||
const theme = entry && entry.themes.find((t) => t.name === parsed.name);
|
|
||||||
return theme ? { entry, theme } : null;
|
|
||||||
}
|
|
||||||
|
|
||||||
function activeView(result) {
|
|
||||||
const selection = prefs.get().userStyle;
|
|
||||||
const found = selection ? findTheme(result, selection) : null;
|
|
||||||
return found ? { selection, identifier: found.entry.pkg.identifier, name: found.theme.name, source: found.theme.sourceUrl } : null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Official behaviour: a selection that no installed extension provides falls back to the stock theme. */
|
|
||||||
function reconcileSelection(result) {
|
|
||||||
const selection = prefs.get().userStyle;
|
|
||||||
if (selection && !findTheme(result, selection)) {
|
|
||||||
prefs.set({ userStyle: null });
|
|
||||||
lastMissing = { selection, name: parseSelection(selection)?.name ?? selection };
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async function list(force) {
|
|
||||||
const result = await ensureScan(force);
|
|
||||||
reconcileSelection(result);
|
|
||||||
const missing = lastMissing;
|
|
||||||
lastMissing = null;
|
|
||||||
return {
|
|
||||||
ok: true,
|
|
||||||
directory: root,
|
|
||||||
scannedAt,
|
|
||||||
extensions: Array.from(result.entries.values()).map(publicEntry),
|
|
||||||
invalid: result.invalid.map((v) => ({ ...v })),
|
|
||||||
selection: prefs.get().userStyle,
|
|
||||||
active: activeView(result),
|
|
||||||
missing,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
async function select(value) {
|
|
||||||
const selection = normalizeSelection(value);
|
|
||||||
if (selection === undefined) return { ok: false, error: { code: 'bad_request', message: 'invalid theme selection' } };
|
|
||||||
if (selection === null) {
|
|
||||||
prefs.set({ userStyle: null });
|
|
||||||
return { ok: true, selection: null, active: null };
|
|
||||||
}
|
|
||||||
let result = await ensureScan(false);
|
|
||||||
if (!findTheme(result, selection)) result = await ensureScan(true);
|
|
||||||
if (!findTheme(result, selection)) return { ok: false, error: { code: 'not_found', message: 'theme not installed' } };
|
|
||||||
prefs.set({ userStyle: selection });
|
|
||||||
return { ok: true, selection, active: activeView(result) };
|
|
||||||
}
|
|
||||||
|
|
||||||
async function openDirectory(identifier) {
|
|
||||||
if (!allowShell) return { ok: false, error: { code: 'unavailable', message: 'opening folders is disabled in this session' } };
|
|
||||||
let target = root;
|
|
||||||
if (identifier !== null) {
|
|
||||||
if (typeof identifier !== 'string' || !IDENTIFIER.test(identifier)) return { ok: false, error: { code: 'bad_request', message: 'invalid identifier' } };
|
|
||||||
const entry = (await ensureScan(false)).entries.get(identifier);
|
|
||||||
if (!entry) return { ok: false, error: { code: 'not_found', message: 'extension not installed' } };
|
|
||||||
target = entry.dirReal;
|
|
||||||
} else {
|
|
||||||
await ensureScan(false);
|
|
||||||
}
|
|
||||||
const current = await ensureScan(false);
|
|
||||||
await checkedDirectory(root, current.rootReal);
|
|
||||||
if (identifier !== null) await checkedDirectory(target, target);
|
|
||||||
const error = await openPath(target);
|
|
||||||
return error ? { ok: false, error: { code: 'open_failed', message: error } } : { ok: true };
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Opens only links taken from a validated package.json (https:// or the author's mailto:). */
|
|
||||||
async function openLink(options) {
|
|
||||||
if (!allowShell) return { ok: false, error: { code: 'unavailable', message: 'opening links is disabled in this session' } };
|
|
||||||
const identifier = options && options.identifier;
|
|
||||||
const kind = options && options.kind;
|
|
||||||
if (typeof identifier !== 'string' || !IDENTIFIER.test(identifier)) return { ok: false, error: { code: 'bad_request', message: 'invalid identifier' } };
|
|
||||||
const entry = (await ensureScan(false)).entries.get(identifier);
|
|
||||||
if (!entry) return { ok: false, error: { code: 'not_found', message: 'extension not installed' } };
|
|
||||||
const { pkg } = entry;
|
|
||||||
let url = null;
|
|
||||||
if (kind === 'homepage') url = pkg.homepage ?? null;
|
|
||||||
else if (kind === 'repository') url = typeof pkg.repository === 'string' ? pkg.repository : pkg.repository.url;
|
|
||||||
else if (kind === 'docs') url = pkg.docsUrl ?? null;
|
|
||||||
else if (kind === 'email') url = typeof pkg.author === 'object' && pkg.author.email ? `mailto:${pkg.author.email}` : null;
|
|
||||||
else return { ok: false, error: { code: 'bad_request', message: 'invalid link kind' } };
|
|
||||||
if (!url || !(HTTPS.test(url) || (kind === 'email' && /^mailto:[^\s]+$/.test(url)))) return { ok: false, error: { code: 'not_found', message: 'no such link' } };
|
|
||||||
try {
|
|
||||||
await openExternal(url);
|
|
||||||
return { ok: true, url };
|
|
||||||
} catch (err) {
|
|
||||||
return { ok: false, error: { code: 'open_failed', message: err.message } };
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function deny(status, reason) {
|
|
||||||
return new Response(reason, { status, headers: { 'Content-Type': 'text/plain; charset=utf-8', 'X-Content-Type-Options': 'nosniff', 'Access-Control-Allow-Origin': appOrigin } });
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Serves tsext://<identifier>/<path>. Everything outside this policy is a 403/404. */
|
|
||||||
async function handle(request) {
|
|
||||||
if (request.method !== 'GET') return deny(405, 'method not allowed');
|
|
||||||
let url;
|
|
||||||
let rel;
|
|
||||||
try {
|
|
||||||
url = new URL(request.url);
|
|
||||||
rel = decodeURIComponent(url.pathname.replace(/^\//, ''));
|
|
||||||
} catch {
|
|
||||||
return deny(400, 'bad request');
|
|
||||||
}
|
|
||||||
const identifier = url.hostname;
|
|
||||||
if (!IDENTIFIER.test(identifier) || url.username || url.password || url.port) return deny(404, 'not found');
|
|
||||||
const result = await ensureScan(false);
|
|
||||||
const entry = result.entries.get(identifier);
|
|
||||||
if (!entry) return deny(404, 'not found');
|
|
||||||
const ext = path.extname(rel).toLowerCase();
|
|
||||||
const type = TYPES[ext];
|
|
||||||
if (!type || !relativeSegments(rel)) return deny(403, 'forbidden');
|
|
||||||
const previews = new Set([entry.imageRel, ...entry.themes.map((t) => t.imageRel)]);
|
|
||||||
const active = activeView(result);
|
|
||||||
const isActive = active && active.identifier === identifier;
|
|
||||||
const activeTheme = isActive ? entry.themes.find((t) => t.name === active.name) : null;
|
|
||||||
let allowed;
|
|
||||||
if (type.kind === 'css') allowed = Boolean(activeTheme && activeTheme.sourceRel === rel);
|
|
||||||
else if (previews.has(rel)) allowed = type.kind === 'image';
|
|
||||||
else allowed = Boolean(isActive);
|
|
||||||
if (!allowed) return deny(403, 'forbidden');
|
|
||||||
let body;
|
|
||||||
try {
|
|
||||||
await checkedDirectory(root, result.rootReal);
|
|
||||||
await checkedDirectory(entry.dirReal, entry.dirReal);
|
|
||||||
const file = await resolveInside(entry.dirReal, rel);
|
|
||||||
({ data: body } = await readBounded(file, type.limit));
|
|
||||||
if (type.kind === 'css') {
|
|
||||||
const text = decodeUtf8(body);
|
|
||||||
if (text === null) throw new AccessError('css', 'not utf-8');
|
|
||||||
checkCss(text);
|
|
||||||
} else if (!sniff(type.kind, ext, body)) {
|
|
||||||
throw new AccessError('type');
|
|
||||||
}
|
|
||||||
} catch (err) {
|
|
||||||
if (err instanceof AccessError) return deny(err.code === 'file' ? 404 : err.code === 'size' ? 413 : 403, err.code);
|
|
||||||
return deny(404, 'not found');
|
|
||||||
}
|
|
||||||
return new Response(body, {
|
|
||||||
status: 200,
|
|
||||||
headers: {
|
|
||||||
'Content-Type': type.mime,
|
|
||||||
'Content-Security-Policy': RESOURCE_CSP,
|
|
||||||
'X-Content-Type-Options': 'nosniff',
|
|
||||||
'Access-Control-Allow-Origin': appOrigin,
|
|
||||||
'Cache-Control': 'no-store',
|
|
||||||
'Referrer-Policy': 'no-referrer',
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function registerProtocol(protocol) {
|
|
||||||
protocol.handle(SCHEME, handle);
|
|
||||||
}
|
|
||||||
|
|
||||||
function registerIpc(ipcMain, trustedSender) {
|
|
||||||
const forbidden = { ok: false, error: { code: 'forbidden', message: 'forbidden' } };
|
|
||||||
const guard = (fn) => async (event, arg) => {
|
|
||||||
if (!trustedSender(event)) return forbidden;
|
|
||||||
try {
|
|
||||||
return await fn(arg);
|
|
||||||
} catch (err) {
|
|
||||||
return { ok: false, error: { code: 'internal', message: err.message } };
|
|
||||||
}
|
|
||||||
};
|
|
||||||
ipcMain.handle('themes:list', guard((force) => list(force === true)));
|
|
||||||
ipcMain.handle('themes:select', guard(select));
|
|
||||||
ipcMain.handle('themes:open-dir', guard((identifier) => openDirectory(identifier ?? null)));
|
|
||||||
ipcMain.handle('themes:open-link', guard(openLink));
|
|
||||||
}
|
|
||||||
|
|
||||||
return { list, select, openDirectory, openLink, handle, registerProtocol, registerIpc };
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
SCHEME,
|
|
||||||
SCHEME_PRIVILEGE,
|
|
||||||
LIMITS,
|
|
||||||
CACHE_MS,
|
|
||||||
USER_STYLE_PREF,
|
|
||||||
extensionsDir,
|
|
||||||
validatePackage,
|
|
||||||
parseSelection,
|
|
||||||
normalizeSelection,
|
|
||||||
checkCss,
|
|
||||||
scanExtensions,
|
|
||||||
createThemeService,
|
|
||||||
};
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
// Native caption controls retain OS accessibility, system menus and Windows Snap layouts.
|
|
||||||
// Official TS6 draws its captions inside the 44px pane window bar (--tsv-header-window-bar-height)
|
|
||||||
// on --ts-new-header-bg; the overlay matches that bar so the frame reads as one surface.
|
|
||||||
const TITLEBAR_HEIGHT = 44;
|
|
||||||
function overlayColors(dark) {
|
|
||||||
return { color: dark ? '#121a2c' : '#ebebeb', symbolColor: dark ? '#ffffff' : '#494949', height: TITLEBAR_HEIGHT };
|
|
||||||
}
|
|
||||||
function titlebarOptions(platform, dark) {
|
|
||||||
return {
|
|
||||||
titleBarStyle: 'hidden',
|
|
||||||
...(platform === 'darwin' ? { trafficLightPosition: { x: 16, y: 15 } } : { titleBarOverlay: overlayColors(dark) }),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
function trustedWindowFrame(event, win, origin) {
|
|
||||||
if (!win || win.isDestroyed() || event.sender !== win.webContents || !event.senderFrame || event.senderFrame !== win.webContents.mainFrame) return false;
|
|
||||||
try {
|
|
||||||
const url = new URL(event.senderFrame.url);
|
|
||||||
return `${url.protocol}//${url.host}` === origin && !url.username && !url.password;
|
|
||||||
} catch { return false; }
|
|
||||||
}
|
|
||||||
function windowState(win, platform) {
|
|
||||||
return { platform, maximized: win.isMaximized(), minimized: win.isMinimized(), fullscreen: win.isFullScreen(), focused: win.isFocused() };
|
|
||||||
}
|
|
||||||
function registerTitlebarIpc(ipcMain, getWindow, origin, platform = process.platform) {
|
|
||||||
ipcMain.handle('window:get-state', event => {
|
|
||||||
const win = getWindow();
|
|
||||||
return trustedWindowFrame(event, win, origin) ? windowState(win, platform) : null;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function bindTitlebar(win, nativeTheme, platform = process.platform) {
|
|
||||||
const sendState = () => {
|
|
||||||
if (!win.isDestroyed() && !win.webContents.isDestroyed()) win.webContents.send('window:state', windowState(win, platform));
|
|
||||||
};
|
|
||||||
const updateTheme = () => {
|
|
||||||
if (!win.isDestroyed() && platform !== 'darwin') win.setTitleBarOverlay(overlayColors(nativeTheme.shouldUseDarkColors));
|
|
||||||
};
|
|
||||||
for (const event of ['maximize', 'unmaximize', 'minimize', 'restore', 'enter-full-screen', 'leave-full-screen', 'focus', 'blur']) win.on(event, sendState);
|
|
||||||
win.webContents.on('did-finish-load', sendState);
|
|
||||||
nativeTheme.on('updated', updateTheme);
|
|
||||||
win.once('closed', () => nativeTheme.removeListener('updated', updateTheme));
|
|
||||||
}
|
|
||||||
module.exports = { TITLEBAR_HEIGHT, overlayColors, titlebarOptions, trustedWindowFrame, windowState, registerTitlebarIpc, bindTitlebar };
|
|
||||||
@@ -1,277 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
// Where updates come from and which published release this installation may move to.
|
|
||||||
// Pure Node (no Electron): the complete Gitea release list is fetched anonymously from one fixed HTTPS host,
|
|
||||||
// releases are filtered by channel, version (semver) and platform, and only complete releases are offered.
|
|
||||||
// electron-updater then reads the feed of the chosen release and verifies size and sha512.
|
|
||||||
|
|
||||||
const path = require('node:path');
|
|
||||||
const semver = require('semver');
|
|
||||||
|
|
||||||
const FORGE_ORIGIN = 'https://git.eeee.moe';
|
|
||||||
const OWNER = 'TeamsPeach';
|
|
||||||
const REPO = 'client';
|
|
||||||
const RELEASES_API = `${FORGE_ORIGIN}/api/v1/repos/${OWNER}/${REPO}/releases`;
|
|
||||||
const PAGE_SIZE = 50;
|
|
||||||
const MAX_PAGES = 20;
|
|
||||||
const MAX_RESPONSE_BYTES = 4 * 1024 * 1024;
|
|
||||||
const PRODUCT = 'TeamsPeach';
|
|
||||||
const LINUX_EXECUTABLE = 'teamspeach';
|
|
||||||
|
|
||||||
const ASSET_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]{0,199}$/;
|
|
||||||
const SHA512_BASE64 = /^[A-Za-z0-9+/]{86}==$/;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Failure with a stable machine code and parameters; the renderer shows the localized text for `code`.
|
|
||||||
* `message` is English technical text for logs only.
|
|
||||||
*/
|
|
||||||
class UpdateError extends Error {
|
|
||||||
constructor(code, params = {}, message = code) {
|
|
||||||
super(message);
|
|
||||||
this.code = code;
|
|
||||||
this.params = params;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Strict SemVer 2.0 without build metadata (`0.1.2`, `0.1.2-rc.1`); null otherwise (`01.1.1`, `0.1`, `1.0.0+x`). */
|
|
||||||
function cleanVersion(text) {
|
|
||||||
if (typeof text !== 'string' || text.includes('+')) return null;
|
|
||||||
return semver.valid(text) === text ? text : null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Release tag `v<version>`; returns the version or null. */
|
|
||||||
function tagVersion(tag) {
|
|
||||||
return typeof tag === 'string' && tag.startsWith('v') ? cleanVersion(tag.slice(1)) : null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* What this installation is and how it can be updated.
|
|
||||||
* mode 'auto': electron-updater installs (NSIS-installed Windows x64, Linux AppImage).
|
|
||||||
* mode 'manual': user is told and replaces files himself (Windows zip, Linux tar.gz).
|
|
||||||
* mode 'none': dev run or a platform that has no published build.
|
|
||||||
*/
|
|
||||||
function detectTarget({ platform, arch, packaged, env, execPath, exists }) {
|
|
||||||
const none = (id, disabledCode) => ({ id, platform, arch, mode: 'none', kind: null, disabledCode });
|
|
||||||
if (!packaged) return none(`${platform}-${arch}-dev`, 'dev-build');
|
|
||||||
if (platform === 'win32') {
|
|
||||||
if (arch !== 'x64') return none(`win-${arch}`, 'unsupported-platform');
|
|
||||||
// The NSIS installer leaves its uninstaller next to the executable; the portable zip does not.
|
|
||||||
if (exists(path.join(path.dirname(execPath), `Uninstall ${PRODUCT}.exe`))) {
|
|
||||||
return { id: 'win-x64-nsis', platform, arch, mode: 'auto', kind: 'nsis', disabledCode: null };
|
|
||||||
}
|
|
||||||
return { id: 'win-x64-zip', platform, arch, mode: 'manual', kind: 'zip', disabledCode: null };
|
|
||||||
}
|
|
||||||
if (platform === 'linux') {
|
|
||||||
if (arch !== 'x64' && arch !== 'arm64') return none(`linux-${arch}`, 'unsupported-platform');
|
|
||||||
if (env.APPIMAGE) return { id: `linux-${arch}-appimage`, platform, arch, mode: 'auto', kind: 'appimage', disabledCode: null };
|
|
||||||
return { id: `linux-${arch}-tar.gz`, platform, arch, mode: 'manual', kind: 'tar.gz', disabledCode: null };
|
|
||||||
}
|
|
||||||
if (platform === 'darwin') return none(`mac-${arch}`, 'unsupported-platform');
|
|
||||||
return none(`${platform}-${arch}`, 'unsupported-platform');
|
|
||||||
}
|
|
||||||
|
|
||||||
/** electron-builder names the feed after the version's first prerelease identifier, else "latest". */
|
|
||||||
function feedChannel(version) {
|
|
||||||
const pre = semver.prerelease(version);
|
|
||||||
return pre && pre.length > 0 ? String(pre[0]) : 'latest';
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Exact feed file electron-builder writes for this target (app-builder-lib getUpdateInfoFileName). */
|
|
||||||
function feedFileName(target, version) {
|
|
||||||
const channel = feedChannel(version);
|
|
||||||
if (target.kind === 'nsis') return `${channel}.yml`;
|
|
||||||
if (target.kind === 'appimage') return target.arch === 'x64' ? `${channel}-linux.yml` : `${channel}-linux-${target.arch}.yml`;
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Exact installer electron-builder produces for this target (package.json build config: AppImage default
|
|
||||||
* name, nsis.artifactName "${productName}-${version}-win-${arch}-setup.${ext}").
|
|
||||||
*/
|
|
||||||
function packageFileName(target, version) {
|
|
||||||
if (target.kind === 'appimage') return target.arch === 'x64' ? `${PRODUCT}-${version}.AppImage` : `${PRODUCT}-${version}-${target.arch}.AppImage`;
|
|
||||||
if (target.kind === 'nsis') return `${PRODUCT}-${version}-win-${target.arch}-setup.exe`;
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Package names a manual-mode user downloads (builder defaults, plus the historical "-local" Windows zip). */
|
|
||||||
function manualAssetNames(target, version) {
|
|
||||||
if (target.kind === 'tar.gz') return [target.arch === 'x64' ? `${LINUX_EXECUTABLE}-${version}.tar.gz` : `${LINUX_EXECUTABLE}-${version}-${target.arch}.tar.gz`];
|
|
||||||
if (target.kind === 'zip') return [`${PRODUCT}-${version}-win-x64.zip`, `${PRODUCT}-${version}-win.zip`, `${PRODUCT}-${version}-win-x64-local.zip`];
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
|
|
||||||
function releaseDownloadBase(tag) {
|
|
||||||
return `${FORGE_ORIGIN}/${OWNER}/${REPO}/releases/download/${tag}/`;
|
|
||||||
}
|
|
||||||
|
|
||||||
function releasePageUrl(tag) {
|
|
||||||
return `${FORGE_ORIGIN}/${OWNER}/${REPO}/releases/tag/${tag}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Picks the releases this installation may update to, newest first.
|
|
||||||
* Every published, non-draft release with a valid tag is considered. A release is "preview" when Gitea
|
|
||||||
* marks it prerelease or its version has a prerelease part; the stable channel never sees previews.
|
|
||||||
* Same or older versions are never offered. A release counts only when it carries this target's feed and
|
|
||||||
* installer (auto) or package (manual); newer releases without one are reported in `withoutBuild`.
|
|
||||||
*/
|
|
||||||
function selectReleases(releases, { currentVersion, channel, target }) {
|
|
||||||
const current = cleanVersion(currentVersion);
|
|
||||||
if (!current) throw new UpdateError('bad-version', { version: String(currentVersion) }, `app version ${currentVersion} is not semver`);
|
|
||||||
if (channel !== 'preview' && channel !== 'stable') throw new UpdateError('bad-channel', { channel: String(channel) }, `unknown channel ${channel}`);
|
|
||||||
if (!Array.isArray(releases)) throw new UpdateError('bad-response', { detail: 'release list is not an array' }, 'release list is not an array');
|
|
||||||
const candidates = [];
|
|
||||||
const withoutBuild = [];
|
|
||||||
const previews = [];
|
|
||||||
for (const release of releases) {
|
|
||||||
if (!release || typeof release !== 'object' || release.draft !== false) continue;
|
|
||||||
const version = tagVersion(release.tag_name);
|
|
||||||
if (!version || !semver.gt(version, current)) continue;
|
|
||||||
const preview = release.prerelease !== false || semver.prerelease(version) !== null;
|
|
||||||
if (channel === 'stable' && preview) {
|
|
||||||
previews.push(version);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
const assets = new Map();
|
|
||||||
for (const asset of Array.isArray(release.assets) ? release.assets : []) {
|
|
||||||
if (asset && typeof asset.name === 'string' && ASSET_NAME.test(asset.name) && Number.isSafeInteger(asset.size) && asset.size > 0) {
|
|
||||||
assets.set(asset.name, asset.size);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const tag = release.tag_name;
|
|
||||||
const entry = {
|
|
||||||
tag,
|
|
||||||
version,
|
|
||||||
preview,
|
|
||||||
publishedAt: typeof release.published_at === 'string' ? release.published_at : null,
|
|
||||||
assets,
|
|
||||||
downloadBase: releaseDownloadBase(tag),
|
|
||||||
releaseUrl: releasePageUrl(tag),
|
|
||||||
feedChannel: feedChannel(version),
|
|
||||||
feedFile: null,
|
|
||||||
packageFile: null,
|
|
||||||
manualAsset: null,
|
|
||||||
};
|
|
||||||
if (target.mode === 'auto') {
|
|
||||||
const feed = feedFileName(target, version);
|
|
||||||
const pkg = packageFileName(target, version);
|
|
||||||
if (!assets.has(feed) || !assets.has(pkg)) {
|
|
||||||
const missing = assets.has(feed) ? pkg : feed;
|
|
||||||
withoutBuild.push({ version, code: assets.has(feed) ? 'no-package' : 'no-feed', params: { version, file: missing, target: target.id } });
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
entry.feedFile = feed;
|
|
||||||
entry.packageFile = pkg;
|
|
||||||
} else if (target.mode === 'manual') {
|
|
||||||
const name = manualAssetNames(target, version).find((n) => assets.has(n));
|
|
||||||
if (!name) {
|
|
||||||
withoutBuild.push({ version, code: 'no-package', params: { version, file: manualAssetNames(target, version)[0], target: target.id } });
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
entry.manualAsset = name;
|
|
||||||
} else {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
candidates.push(entry);
|
|
||||||
}
|
|
||||||
candidates.sort((a, b) => semver.rcompare(a.version, b.version));
|
|
||||||
withoutBuild.sort((a, b) => semver.rcompare(a.version, b.version));
|
|
||||||
previews.sort(semver.rcompare);
|
|
||||||
return { candidates, withoutBuild, newestPreview: previews.length > 0 ? previews[0] : null };
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks the feed electron-updater parsed against the release it was taken from: same version, and exactly
|
|
||||||
* one package — this target's installer by its exact builder name (so an arm64 feed pointing at the x64
|
|
||||||
* AppImage, or a renamed/foreign file, is refused) — present in THIS release with the declared size and a sha512.
|
|
||||||
*/
|
|
||||||
function verifyFeed(candidate, target, updateInfo) {
|
|
||||||
const mismatch = (detail) => new UpdateError('feed-mismatch', { tag: candidate.tag, detail }, `${candidate.tag}: ${detail}`);
|
|
||||||
if (!updateInfo || typeof updateInfo !== 'object') throw mismatch('feed is empty');
|
|
||||||
if (cleanVersion(updateInfo.version) !== candidate.version) throw mismatch(`feed describes version ${String(updateInfo.version)}`);
|
|
||||||
const expected = packageFileName(target, candidate.version);
|
|
||||||
const files = Array.isArray(updateInfo.files) ? updateInfo.files : [];
|
|
||||||
if (files.length !== 1 || !files[0] || files[0].url !== expected) {
|
|
||||||
const listed = files.map((f) => (f && typeof f.url === 'string' ? f.url : '?')).join(', ') || 'nothing';
|
|
||||||
throw mismatch(`feed for ${target.id} must list only ${expected}, lists: ${listed}`);
|
|
||||||
}
|
|
||||||
if (updateInfo.path !== undefined && updateInfo.path !== expected) throw mismatch(`feed path ${String(updateInfo.path)} is not ${expected}`);
|
|
||||||
const file = files[0];
|
|
||||||
if (typeof file.sha512 !== 'string' || !SHA512_BASE64.test(file.sha512)) throw mismatch(`no sha512 for ${expected}`);
|
|
||||||
if (!candidate.assets.has(expected)) {
|
|
||||||
throw new UpdateError('incomplete-release', { tag: candidate.tag, file: expected }, `${candidate.tag} has no asset ${expected}`);
|
|
||||||
}
|
|
||||||
if (file.size !== candidate.assets.get(expected)) {
|
|
||||||
throw new UpdateError('incomplete-release', { tag: candidate.tag, file: expected }, `${candidate.tag}: size of ${expected} differs from the feed`);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Anonymous GET of EVERY published release (paged; Gitea reports the total in X-Total-Count).
|
|
||||||
* `fetchImpl` is Electron's net.fetch in the app. Network failure, timeout (whole listing), HTTP errors,
|
|
||||||
* malformed bodies and a listing that cannot be completed within MAX_PAGES all throw UpdateError —
|
|
||||||
* never a partial list that could hide a newer release.
|
|
||||||
*/
|
|
||||||
async function fetchReleases({ fetchImpl, timeoutMs = 20000 }) {
|
|
||||||
const badResponse = (detail) => new UpdateError('bad-response', { detail }, `release list: ${detail}`);
|
|
||||||
const signal = AbortSignal.timeout(timeoutMs);
|
|
||||||
const all = [];
|
|
||||||
let total = null;
|
|
||||||
for (let page = 1; page <= MAX_PAGES; page += 1) {
|
|
||||||
const url = `${RELEASES_API}?draft=false&limit=${PAGE_SIZE}&page=${page}`;
|
|
||||||
let text;
|
|
||||||
let headerTotal;
|
|
||||||
try {
|
|
||||||
const res = await fetchImpl(url, { signal, redirect: 'error', cache: 'no-store', headers: { Accept: 'application/json' } });
|
|
||||||
if (!res.ok) throw new UpdateError('http', { status: res.status }, `release list: HTTP ${res.status}`);
|
|
||||||
if (Number(res.headers.get('content-length')) > MAX_RESPONSE_BYTES) throw badResponse('response too large');
|
|
||||||
headerTotal = res.headers.get('x-total-count');
|
|
||||||
text = await res.text();
|
|
||||||
} catch (err) {
|
|
||||||
if (err instanceof UpdateError) throw err;
|
|
||||||
const seconds = Math.round(timeoutMs / 1000);
|
|
||||||
if (signal.aborted) throw new UpdateError('timeout', { seconds }, `release list: no answer in ${seconds} s`);
|
|
||||||
const detail = err && err.cause && err.cause.message ? `${err.message}: ${err.cause.message}` : String(err && err.message ? err.message : err);
|
|
||||||
throw new UpdateError('network', { detail }, `release list: ${detail}`);
|
|
||||||
}
|
|
||||||
if (text.length > MAX_RESPONSE_BYTES) throw badResponse('response too large');
|
|
||||||
let items;
|
|
||||||
try {
|
|
||||||
items = JSON.parse(text);
|
|
||||||
} catch {
|
|
||||||
throw badResponse('not JSON');
|
|
||||||
}
|
|
||||||
if (!Array.isArray(items)) throw badResponse('not a release list');
|
|
||||||
if (headerTotal !== null) {
|
|
||||||
if (!/^\d+$/.test(headerTotal)) throw badResponse('invalid X-Total-Count');
|
|
||||||
total = Number(headerTotal);
|
|
||||||
}
|
|
||||||
all.push(...items);
|
|
||||||
// Done when the server's total is reached, or (no total reported) when a page comes back empty.
|
|
||||||
if (total !== null ? all.length >= total || items.length === 0 : items.length === 0) {
|
|
||||||
if (total !== null && all.length < total) {
|
|
||||||
throw new UpdateError('incomplete-list', { fetched: all.length, total }, `release list: got ${all.length} of ${total}`);
|
|
||||||
}
|
|
||||||
return all;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
throw new UpdateError('incomplete-list', { fetched: all.length, total }, `release list longer than ${MAX_PAGES} pages`);
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
FORGE_ORIGIN,
|
|
||||||
RELEASES_API,
|
|
||||||
PAGE_SIZE,
|
|
||||||
UpdateError,
|
|
||||||
cleanVersion,
|
|
||||||
detectTarget,
|
|
||||||
feedFileName,
|
|
||||||
packageFileName,
|
|
||||||
manualAssetNames,
|
|
||||||
releaseDownloadBase,
|
|
||||||
releasePageUrl,
|
|
||||||
selectReleases,
|
|
||||||
verifyFeed,
|
|
||||||
fetchReleases,
|
|
||||||
};
|
|
||||||
@@ -1,463 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
// Update service of the main process. Finds the newest eligible published release (update-source.js),
|
|
||||||
// lets electron-updater read that release's feed, download and verify the package, and installs ONLY after
|
|
||||||
// an explicit user action. It never quits or restarts the app on its own.
|
|
||||||
//
|
|
||||||
// Every check uses a NEW electron-updater instance. electron-updater keeps the last checked feed inside the
|
|
||||||
// instance and cannot cancel a running check, so a check that timed out (or a check for another channel) can
|
|
||||||
// still finish later; with one instance per check, such a late result can only touch an abandoned instance.
|
|
||||||
// Download and install always use the exact instance that checked the offered release.
|
|
||||||
|
|
||||||
const fs = require('node:fs');
|
|
||||||
const path = require('node:path');
|
|
||||||
const { app, net, shell } = require('electron');
|
|
||||||
const source = require('./update-source');
|
|
||||||
const { logsDir } = require('./paths');
|
|
||||||
|
|
||||||
const STARTUP_DELAY_MS = 15 * 1000;
|
|
||||||
const CHECK_INTERVAL_MS = 6 * 60 * 60 * 1000;
|
|
||||||
const DEFERRED_POLL_MS = 60 * 1000;
|
|
||||||
const FEED_TIMEOUT_MS = 60 * 1000;
|
|
||||||
const LOG_LIMIT_BYTES = 1024 * 1024;
|
|
||||||
const CHANNELS = ['preview', 'stable'];
|
|
||||||
|
|
||||||
function fileLogger(file) {
|
|
||||||
const write = (level, parts) => {
|
|
||||||
const line = `${new Date().toISOString()} ${level} ${parts.map((p) => (p instanceof Error ? p.stack || p.message : String(p))).join(' ')}`;
|
|
||||||
try {
|
|
||||||
fs.mkdirSync(path.dirname(file), { recursive: true });
|
|
||||||
try {
|
|
||||||
if (fs.statSync(file).size > LOG_LIMIT_BYTES) fs.renameSync(file, `${file}.1`);
|
|
||||||
} catch {
|
|
||||||
// no log yet
|
|
||||||
}
|
|
||||||
fs.appendFileSync(file, `${line.replace(/[\r\n]+/g, ' ')}\n`);
|
|
||||||
} catch {
|
|
||||||
// logging must never break updating
|
|
||||||
}
|
|
||||||
};
|
|
||||||
return {
|
|
||||||
info: (...p) => write('info', p),
|
|
||||||
warn: (...p) => write('warn', p),
|
|
||||||
error: (...p) => write('error', p),
|
|
||||||
debug: () => {},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/** electron-updater instance for this target, configured so that nothing happens without our call. */
|
|
||||||
function defaultCreateUpdater(target, logger, channel) {
|
|
||||||
const { NsisUpdater, AppImageUpdater } = require('electron-updater');
|
|
||||||
const instance = target.kind === 'nsis' ? new NsisUpdater() : new AppImageUpdater();
|
|
||||||
instance.logger = logger;
|
|
||||||
instance.autoDownload = false;
|
|
||||||
instance.autoInstallOnAppQuit = false;
|
|
||||||
instance.allowDowngrade = false;
|
|
||||||
// Only the GitHub providers read allowPrerelease; with the generic provider the channel policy is applied
|
|
||||||
// by update-source before a feed is chosen. Kept consistent with the selected channel anyway.
|
|
||||||
instance.allowPrerelease = channel === 'preview';
|
|
||||||
instance.disableWebInstaller = true;
|
|
||||||
return instance;
|
|
||||||
}
|
|
||||||
|
|
||||||
const CHECKSUM_FAILURE = /checksum mismatch/i;
|
|
||||||
const NETWORK_FAILURE = /net::ERR_|ENOTFOUND|ECONNRESET|ECONNREFUSED|ETIMEDOUT|EAI_AGAIN|socket hang up/i;
|
|
||||||
|
|
||||||
/** Maps electron-updater / network failures to stable codes; `detail` keeps the technical text. */
|
|
||||||
function classify(err, fallback, tag) {
|
|
||||||
if (err instanceof source.UpdateError) return err;
|
|
||||||
const detail = (err && err.message ? err.message : String(err)).split('\n')[0].slice(0, 300);
|
|
||||||
const code = err && err.code;
|
|
||||||
if (code === 'ERR_CHECKSUM_MISMATCH' || CHECKSUM_FAILURE.test(detail)) return new source.UpdateError('checksum', { tag, detail }, detail);
|
|
||||||
if (code === 'ERR_UPDATER_CHANNEL_FILE_NOT_FOUND' || (err && err.statusCode === 404)) {
|
|
||||||
return new source.UpdateError('incomplete-release', { tag, file: null, detail }, detail);
|
|
||||||
}
|
|
||||||
if (err && Number.isInteger(err.statusCode)) return new source.UpdateError('http', { status: err.statusCode }, detail);
|
|
||||||
if (NETWORK_FAILURE.test(detail)) {
|
|
||||||
return new source.UpdateError('network', { detail }, detail);
|
|
||||||
}
|
|
||||||
return new source.UpdateError(fallback, { tag, detail }, detail);
|
|
||||||
}
|
|
||||||
|
|
||||||
function withTimeout(promise, ms, tag) {
|
|
||||||
let timer;
|
|
||||||
const seconds = Math.round(ms / 1000);
|
|
||||||
return Promise.race([
|
|
||||||
promise,
|
|
||||||
new Promise((_, reject) => {
|
|
||||||
timer = setTimeout(() => reject(new source.UpdateError('timeout', { seconds, tag }, `feed of ${tag}: no answer in ${seconds} s`)), ms);
|
|
||||||
}),
|
|
||||||
]).finally(() => clearTimeout(timer));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {object} o
|
|
||||||
* @param {{ get(): object, set(partial: object): object }} o.prefs holds `updateChannel`
|
|
||||||
* @param {() => boolean} o.isSessionActive true while connected to a server (voice / stream viewing)
|
|
||||||
* @param {(state: object) => void} o.send pushes the state to the renderer
|
|
||||||
* Remaining options exist for the Electron behaviour harness; the release host is not configurable.
|
|
||||||
*/
|
|
||||||
function createUpdateService({
|
|
||||||
prefs,
|
|
||||||
isSessionActive,
|
|
||||||
send,
|
|
||||||
electronApp = app,
|
|
||||||
fetchImpl = (url, init) => net.fetch(url, init),
|
|
||||||
target = source.detectTarget({
|
|
||||||
platform: process.platform,
|
|
||||||
arch: process.arch,
|
|
||||||
packaged: electronApp.isPackaged,
|
|
||||||
env: process.env,
|
|
||||||
execPath: process.execPath,
|
|
||||||
exists: fs.existsSync,
|
|
||||||
}),
|
|
||||||
createUpdater = defaultCreateUpdater,
|
|
||||||
openExternal = (url) => shell.openExternal(url),
|
|
||||||
logger = fileLogger(path.join(logsDir(), 'updater.log')),
|
|
||||||
appImagePath = () => process.env.APPIMAGE,
|
|
||||||
argv = process.argv,
|
|
||||||
feedTimeoutMs = FEED_TIMEOUT_MS,
|
|
||||||
profileOverride = process.env.TEAMSPEACH_PROFILE_DIR,
|
|
||||||
}) {
|
|
||||||
const currentVersion = electronApp.getVersion();
|
|
||||||
// The NSIS installer restarts the app through Explorer (StdUtils.ExecShellAsUser), which does not pass this
|
|
||||||
// process's environment on: an app running on a TEAMSPEACH_PROFILE_DIR profile would come back on the
|
|
||||||
// default profile. Such a run is offered the release page (manual install) instead of an automatic install.
|
|
||||||
// AppImage relaunch (app.relaunch) keeps the environment and is not affected.
|
|
||||||
const installBlock = target.kind === 'nsis' && profileOverride ? 'custom-profile' : null;
|
|
||||||
const autoInstall = target.mode === 'auto' && !installBlock;
|
|
||||||
let offered = null; // { candidate, updater } — release in state.available and the instance that checked it
|
|
||||||
let downloaded = null; // { candidate, updater } — verified package ready to install
|
|
||||||
let downloading = null; // { updater, token }
|
|
||||||
let busy = null; // in-flight check/download promise
|
|
||||||
let timers = [];
|
|
||||||
let deferredTimer = null;
|
|
||||||
let lastProgressSent = 0;
|
|
||||||
|
|
||||||
const state = {
|
|
||||||
currentVersion,
|
|
||||||
channel: 'preview',
|
|
||||||
mode: installBlock ? 'manual' : target.mode,
|
|
||||||
manualReason: installBlock, // null | 'custom-profile'
|
|
||||||
target: target.id,
|
|
||||||
phase: target.mode === 'none' ? 'disabled' : 'idle',
|
|
||||||
lastCheckedAt: null,
|
|
||||||
available: null,
|
|
||||||
progress: null,
|
|
||||||
newerWithoutBuild: [],
|
|
||||||
newerPreview: null,
|
|
||||||
error: null, // { code, params } — localized by the renderer; params.detail is technical text
|
|
||||||
disabledCode: target.disabledCode,
|
|
||||||
disabledParams: target.mode === 'none' ? { platform: target.platform, arch: target.arch } : null,
|
|
||||||
};
|
|
||||||
|
|
||||||
logger.info(`updater: version ${currentVersion} pid ${process.pid} target ${target.id} mode ${state.mode}${installBlock ? ` (${installBlock})` : ''}`);
|
|
||||||
|
|
||||||
function channel() {
|
|
||||||
const value = prefs.get().updateChannel;
|
|
||||||
return CHANNELS.includes(value) ? value : 'preview';
|
|
||||||
}
|
|
||||||
|
|
||||||
function snapshot() {
|
|
||||||
return {
|
|
||||||
...state,
|
|
||||||
channel: channel(),
|
|
||||||
available: state.available ? { ...state.available } : null,
|
|
||||||
progress: state.progress ? { ...state.progress } : null,
|
|
||||||
newerWithoutBuild: state.newerWithoutBuild.map((x) => ({ ...x, params: { ...x.params } })),
|
|
||||||
error: state.error ? { code: state.error.code, params: { ...state.error.params } } : null,
|
|
||||||
disabledParams: state.disabledParams ? { ...state.disabledParams } : null,
|
|
||||||
sessionActive: Boolean(isSessionActive()),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
function emit() {
|
|
||||||
try {
|
|
||||||
send(snapshot());
|
|
||||||
} catch (err) {
|
|
||||||
logger.warn('updater: state push failed', err);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function setPhase(phase, extra = {}) {
|
|
||||||
Object.assign(state, { phase }, extra);
|
|
||||||
emit();
|
|
||||||
}
|
|
||||||
|
|
||||||
function fail(err, fallback, tag) {
|
|
||||||
const e = classify(err, fallback, tag);
|
|
||||||
logger.error(`updater: ${e.code}: ${e.message}`);
|
|
||||||
setPhase('error', { error: { code: e.code, params: e.params || {} }, progress: null });
|
|
||||||
return e;
|
|
||||||
}
|
|
||||||
|
|
||||||
function newUpdater(selectedChannel) {
|
|
||||||
const u = createUpdater(target, logger, selectedChannel);
|
|
||||||
// Failures are handled where the promises reject; the listener keeps EventEmitter from throwing.
|
|
||||||
u.on('error', (err) => logger.warn('updater: electron-updater error event', err));
|
|
||||||
u.on('download-progress', (p) => {
|
|
||||||
if (!downloading || downloading.updater !== u) return;
|
|
||||||
state.progress = { percent: Math.max(0, Math.min(100, Number(p.percent) || 0)), transferred: p.transferred, total: p.total };
|
|
||||||
const now = Date.now();
|
|
||||||
if (now - lastProgressSent >= 250) {
|
|
||||||
lastProgressSent = now;
|
|
||||||
emit();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return u;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Reads the candidate's feed through electron-updater and checks it against the release assets. */
|
|
||||||
async function readFeed(u, candidate) {
|
|
||||||
u.setFeedURL({ provider: 'generic', url: candidate.downloadBase, channel: candidate.feedChannel });
|
|
||||||
const result = await withTimeout(u.checkForUpdates(), feedTimeoutMs, candidate.tag);
|
|
||||||
if (!result) throw new source.UpdateError('feed-mismatch', { tag: candidate.tag, detail: 'updater inactive' }, 'electron-updater inactive');
|
|
||||||
source.verifyFeed(candidate, target, result.updateInfo);
|
|
||||||
if (!result.isUpdateAvailable) {
|
|
||||||
const detail = 'electron-updater: not applicable to this system';
|
|
||||||
throw new source.UpdateError('feed-mismatch', { tag: candidate.tag, detail }, detail);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async function runCheck() {
|
|
||||||
const selectedChannel = channel();
|
|
||||||
setPhase('checking', { error: null });
|
|
||||||
let selection;
|
|
||||||
try {
|
|
||||||
const releases = await source.fetchReleases({ fetchImpl });
|
|
||||||
selection = source.selectReleases(releases, { currentVersion, channel: selectedChannel, target });
|
|
||||||
} catch (err) {
|
|
||||||
fail(err, 'bad-response');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const skipped = [...selection.withoutBuild];
|
|
||||||
let chosen = null;
|
|
||||||
if (target.mode === 'manual') {
|
|
||||||
if (selection.candidates[0]) chosen = { candidate: selection.candidates[0], updater: null };
|
|
||||||
} else {
|
|
||||||
for (const candidate of selection.candidates) {
|
|
||||||
const u = newUpdater(selectedChannel);
|
|
||||||
try {
|
|
||||||
await readFeed(u, candidate);
|
|
||||||
chosen = { candidate, updater: u };
|
|
||||||
break;
|
|
||||||
} catch (err) {
|
|
||||||
const e = classify(err, 'feed-mismatch', candidate.tag);
|
|
||||||
// A broken or incomplete release is skipped in favour of an older complete one; a network failure or
|
|
||||||
// timeout ends the check with an error, so "no update" is never reported without a full answer.
|
|
||||||
if (e.code !== 'feed-mismatch' && e.code !== 'incomplete-release') {
|
|
||||||
fail(e, 'network');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
logger.warn(`updater: skip ${candidate.tag}: ${e.message}`);
|
|
||||||
skipped.push({ version: candidate.version, code: e.code, params: { version: candidate.version, ...e.params } });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
offered = chosen;
|
|
||||||
state.lastCheckedAt = new Date().toISOString();
|
|
||||||
state.newerWithoutBuild = skipped;
|
|
||||||
state.newerPreview = selection.newestPreview;
|
|
||||||
if (!chosen) {
|
|
||||||
downloaded = null;
|
|
||||||
logger.info(`updater: up to date (${selectedChannel}), ${skipped.length} newer release(s) without a usable build`);
|
|
||||||
setPhase('up-to-date', { available: null, progress: null, error: null });
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const c = chosen.candidate;
|
|
||||||
logger.info(`updater: ${c.tag} available (${selectedChannel})`);
|
|
||||||
const available = { version: c.version, tag: c.tag, preview: c.preview, publishedAt: c.publishedAt, assetName: c.manualAsset || c.packageFile };
|
|
||||||
if (downloaded && downloaded.candidate.tag === c.tag) {
|
|
||||||
offered = downloaded;
|
|
||||||
setPhase('downloaded', { available, error: null });
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
downloaded = null;
|
|
||||||
setPhase('available', { available, progress: null, error: null });
|
|
||||||
}
|
|
||||||
|
|
||||||
async function runDownload() {
|
|
||||||
const job = offered;
|
|
||||||
const { CancellationToken } = require('electron-updater');
|
|
||||||
downloading = { updater: job.updater, token: new CancellationToken() };
|
|
||||||
const { token } = downloading;
|
|
||||||
setPhase('downloading', { progress: { percent: 0, transferred: 0, total: 0 }, error: null });
|
|
||||||
try {
|
|
||||||
await job.updater.downloadUpdate(token);
|
|
||||||
if (offered !== job) {
|
|
||||||
logger.info(`updater: ${job.candidate.tag} downloaded but no longer offered`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
downloaded = job;
|
|
||||||
logger.info(`updater: ${job.candidate.tag} downloaded and verified`);
|
|
||||||
setPhase('downloaded', { progress: null });
|
|
||||||
} catch (err) {
|
|
||||||
if (token.cancelled) {
|
|
||||||
logger.info('updater: download cancelled');
|
|
||||||
if (offered === job) setPhase('available', { progress: null });
|
|
||||||
} else {
|
|
||||||
fail(err, 'download', job.candidate.tag);
|
|
||||||
}
|
|
||||||
} finally {
|
|
||||||
downloading = null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function exclusive(fn) {
|
|
||||||
if (busy) return busy.then(snapshot);
|
|
||||||
busy = fn().finally(() => {
|
|
||||||
busy = null;
|
|
||||||
});
|
|
||||||
return busy.then(snapshot);
|
|
||||||
}
|
|
||||||
|
|
||||||
function scheduleDeferredPoll() {
|
|
||||||
if (deferredTimer) return;
|
|
||||||
deferredTimer = setInterval(() => {
|
|
||||||
if (state.phase !== 'deferred') {
|
|
||||||
clearInterval(deferredTimer);
|
|
||||||
deferredTimer = null;
|
|
||||||
} else if (!isSessionActive()) {
|
|
||||||
download({ manual: false });
|
|
||||||
}
|
|
||||||
}, DEFERRED_POLL_MS);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Background downloads wait while the user is connected; a manual request downloads now. */
|
|
||||||
function download({ manual }) {
|
|
||||||
if (busy) return busy.then(snapshot);
|
|
||||||
if (!autoInstall || !offered || (state.phase !== 'available' && state.phase !== 'deferred')) return Promise.resolve(snapshot());
|
|
||||||
if (!manual && isSessionActive()) {
|
|
||||||
if (state.phase !== 'deferred') {
|
|
||||||
logger.info('updater: download deferred until the session ends');
|
|
||||||
setPhase('deferred');
|
|
||||||
}
|
|
||||||
scheduleDeferredPoll();
|
|
||||||
return Promise.resolve(snapshot());
|
|
||||||
}
|
|
||||||
return exclusive(runDownload);
|
|
||||||
}
|
|
||||||
|
|
||||||
function check({ manual }) {
|
|
||||||
if (target.mode === 'none' || state.phase === 'installing') return Promise.resolve(snapshot());
|
|
||||||
return exclusive(runCheck)
|
|
||||||
.then((s) => (s.phase === 'available' && autoInstall ? download({ manual: false }) : s))
|
|
||||||
.then((s) => {
|
|
||||||
if (manual) logger.info(`updater: manual check → ${s.phase}`);
|
|
||||||
return s;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Installs the downloaded, verified package after an explicit user action. Uses electron-updater's
|
|
||||||
* quitAndInstall; its install step is synchronous and reports failures through the 'error' event.
|
|
||||||
* NSIS: silent update of the existing installation, the installer starts the new version. Whether the
|
|
||||||
* installer then succeeds happens after this process quits and is not claimed here.
|
|
||||||
* AppImage: the file is replaced, then app.relaunch() starts the new AppImage only after this process
|
|
||||||
* has exited (the single-instance lock and the core's data-dir lock are free by then).
|
|
||||||
*/
|
|
||||||
function install(options) {
|
|
||||||
const confirmInterrupt = Boolean(options && options.confirmInterrupt === true);
|
|
||||||
if (installBlock) return { ok: false, code: installBlock };
|
|
||||||
if (target.mode !== 'auto' || state.phase !== 'downloaded' || !downloaded || offered !== downloaded) {
|
|
||||||
return { ok: false, code: 'not-ready' };
|
|
||||||
}
|
|
||||||
if (isSessionActive() && !confirmInterrupt) return { ok: false, code: 'session-active' };
|
|
||||||
const u = downloaded.updater;
|
|
||||||
const tag = downloaded.candidate.tag;
|
|
||||||
setPhase('installing');
|
|
||||||
let installError = null;
|
|
||||||
let destination = appImagePath();
|
|
||||||
const onError = (err) => {
|
|
||||||
installError = err;
|
|
||||||
};
|
|
||||||
const onRename = (file) => {
|
|
||||||
destination = file;
|
|
||||||
};
|
|
||||||
u.on('error', onError);
|
|
||||||
u.on('appimage-filename-updated', onRename);
|
|
||||||
try {
|
|
||||||
if (target.kind === 'appimage') u.quitAndInstall(true, false);
|
|
||||||
else u.quitAndInstall(true, true);
|
|
||||||
} catch (err) {
|
|
||||||
installError = err;
|
|
||||||
} finally {
|
|
||||||
u.removeListener('error', onError);
|
|
||||||
u.removeListener('appimage-filename-updated', onRename);
|
|
||||||
}
|
|
||||||
if (installError) {
|
|
||||||
const e = fail(installError, 'install', tag);
|
|
||||||
return { ok: false, code: 'install-failed', params: e.params };
|
|
||||||
}
|
|
||||||
if (target.kind === 'appimage') {
|
|
||||||
// quitAndInstall quits on the next tick; the relaunch is registered before that.
|
|
||||||
electronApp.relaunch({ execPath: destination, args: argv.slice(1) });
|
|
||||||
logger.info(`updater: AppImage replaced by ${tag} at ${destination}; relaunch after exit`);
|
|
||||||
} else {
|
|
||||||
logger.info(`updater: NSIS installer for ${tag} started; app quits`);
|
|
||||||
}
|
|
||||||
return { ok: true };
|
|
||||||
}
|
|
||||||
|
|
||||||
async function setChannel(value) {
|
|
||||||
if (!CHANNELS.includes(value)) return snapshot();
|
|
||||||
if (value !== channel()) {
|
|
||||||
prefs.set({ updateChannel: value });
|
|
||||||
logger.info(`updater: channel → ${value}`);
|
|
||||||
if (downloading) downloading.token.cancel();
|
|
||||||
if (busy) await busy;
|
|
||||||
offered = null;
|
|
||||||
downloaded = null;
|
|
||||||
Object.assign(state, { available: null, progress: null, newerWithoutBuild: [], newerPreview: null });
|
|
||||||
if (state.phase !== 'disabled') setPhase('idle');
|
|
||||||
}
|
|
||||||
return check({ manual: true });
|
|
||||||
}
|
|
||||||
|
|
||||||
async function openRelease() {
|
|
||||||
if (!offered) return { ok: false };
|
|
||||||
try {
|
|
||||||
await openExternal(source.releasePageUrl(offered.candidate.tag));
|
|
||||||
return { ok: true };
|
|
||||||
} catch (err) {
|
|
||||||
logger.warn('updater: cannot open release page', err);
|
|
||||||
return { ok: false };
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function start() {
|
|
||||||
if (target.mode === 'none') {
|
|
||||||
logger.info(`updater: disabled: ${target.disabledCode}`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
timers.push(setTimeout(() => check({ manual: false }), STARTUP_DELAY_MS));
|
|
||||||
timers.push(setInterval(() => check({ manual: false }), CHECK_INTERVAL_MS));
|
|
||||||
}
|
|
||||||
|
|
||||||
function stop() {
|
|
||||||
for (const t of timers) clearTimeout(t);
|
|
||||||
timers = [];
|
|
||||||
clearInterval(deferredTimer);
|
|
||||||
deferredTimer = null;
|
|
||||||
if (downloading) downloading.token.cancel();
|
|
||||||
}
|
|
||||||
|
|
||||||
function registerIpc(ipcMain, trustedSender) {
|
|
||||||
ipcMain.handle('update:get-state', (event) => (trustedSender(event) ? snapshot() : null));
|
|
||||||
ipcMain.handle('update:check', (event) => (trustedSender(event) ? check({ manual: true }) : null));
|
|
||||||
ipcMain.handle('update:download', (event) => (trustedSender(event) ? download({ manual: true }) : null));
|
|
||||||
ipcMain.handle('update:install', (event, options) => {
|
|
||||||
if (!trustedSender(event)) return { ok: false, code: 'forbidden' };
|
|
||||||
if (options !== undefined && (options === null || typeof options !== 'object' || Array.isArray(options))) {
|
|
||||||
return { ok: false, code: 'bad-request' };
|
|
||||||
}
|
|
||||||
return install(options);
|
|
||||||
});
|
|
||||||
ipcMain.handle('update:open-release', (event) => (trustedSender(event) ? openRelease() : { ok: false }));
|
|
||||||
ipcMain.handle('update:set-channel', (event, value) => (trustedSender(event) && typeof value === 'string' ? setChannel(value) : null));
|
|
||||||
}
|
|
||||||
|
|
||||||
return { start, stop, check, download, install, setChannel, openRelease, getState: snapshot, registerIpc };
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = { createUpdateService, createElectronUpdater: defaultCreateUpdater };
|
|
||||||
@@ -1,150 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Voice preferences that follow the official TS6 audio settings model (client_ui/main.js, AudioSettings):
|
|
||||||
* - push to talk is global (`ptt.active`, release delay Off/100/300/500 ms, stored ms default 300);
|
|
||||||
* - capture DSP is per input device: agc, denoise on/off + `denoiseLevel` (the official denoiserLevel
|
|
||||||
* 0..3 = Low/Moderate/High/Very High, default 1 Moderate), typing suppression, VAD on/off, VAD mode
|
|
||||||
* (automatic | volume_gate | hybrid), VAD level -50..50 dB (default -30);
|
|
||||||
* - playback DSP is per output device: aec (echo cancellation), agc (level other users), comfort noise
|
|
||||||
* on/off + level -97..-23 dB (default -60), echo reduction/ducking -40..0 dB (default 0);
|
|
||||||
* - master output level and notification level are dB on the official fader (-200..+10, 0.5 steps),
|
|
||||||
* notification device 'voice' (follow playback device, default), '' (system default), 'none' or an id.
|
|
||||||
* Profiles live under `template` (used for every device without its own entry) and `devices` (by the
|
|
||||||
* capture/playback device id; a device's entry is created by its first change).
|
|
||||||
*
|
|
||||||
* TeamsPeach extension kept from earlier versions: `vadSensitivity` of the automatic/hybrid detector.
|
|
||||||
*
|
|
||||||
* Fresh profiles get the official defaults. A profile written by an earlier TeamsPeach version is migrated
|
|
||||||
* in memory from its legacy keys (transmitMode, vadSensitivity, echoCancellation, noiseSuppression,
|
|
||||||
* autoGainControl, voiceVolume): every stored choice keeps its effect; controls that did not exist before
|
|
||||||
* (playback AGC, comfort noise, ducking, typing attenuation, VAD level, noise reduction level) start at the
|
|
||||||
* official defaults. Input profiles stored before `denoiseLevel` existed keep every stored field, including
|
|
||||||
* their denoise on/off choice, and gain the default level. The file itself is only rewritten — without the
|
|
||||||
* legacy keys — by the user's next settings change.
|
|
||||||
*/
|
|
||||||
|
|
||||||
const VAD_MODES = ['automatic', 'volume_gate', 'hybrid'];
|
|
||||||
const SENSITIVITIES = ['high', 'normal', 'low'];
|
|
||||||
const RELEASE_DELAYS = [100, 300, 500];
|
|
||||||
const MAX_DEVICE_PROFILES = 64;
|
|
||||||
const CONTROL = /[\u0000-\u001f\u007f]/;
|
|
||||||
|
|
||||||
const isBool = (v) => typeof v === 'boolean';
|
|
||||||
const intIn = (lo, hi) => (v) => Number.isInteger(v) && v >= lo && v <= hi;
|
|
||||||
const isPlainObject = (v) => v !== null && typeof v === 'object' && !Array.isArray(v) && Object.getPrototypeOf(v) === Object.prototype;
|
|
||||||
|
|
||||||
/** Official fader modifier: finite, -200..+10, on the 0.5 dB grid. */
|
|
||||||
function validDb(v) {
|
|
||||||
return typeof v === 'number' && Number.isFinite(v) && v >= -200 && v <= 10 && Number.isInteger(v * 2);
|
|
||||||
}
|
|
||||||
|
|
||||||
const IN_FIELDS = {
|
|
||||||
agc: isBool,
|
|
||||||
denoise: isBool,
|
|
||||||
denoiseLevel: intIn(0, 3),
|
|
||||||
typing: isBool,
|
|
||||||
vad: isBool,
|
|
||||||
vadMode: (v) => VAD_MODES.includes(v),
|
|
||||||
vadLevel: intIn(-50, 50),
|
|
||||||
vadSensitivity: (v) => SENSITIVITIES.includes(v),
|
|
||||||
};
|
|
||||||
|
|
||||||
const OUT_FIELDS = {
|
|
||||||
aec: isBool,
|
|
||||||
agc: isBool,
|
|
||||||
comfortNoise: isBool,
|
|
||||||
comfortNoiseLevel: intIn(-97, -23),
|
|
||||||
echoReduction: intIn(-40, 0),
|
|
||||||
};
|
|
||||||
|
|
||||||
// Official defaults (main.js class k / class T).
|
|
||||||
const IN_DEFAULT = Object.freeze({ agc: true, denoise: true, denoiseLevel: 1, typing: false, vad: true, vadMode: 'automatic', vadLevel: -30, vadSensitivity: 'normal' });
|
|
||||||
const OUT_DEFAULT = Object.freeze({ aec: false, agc: true, comfortNoise: false, comfortNoiseLevel: -60, echoReduction: 0 });
|
|
||||||
|
|
||||||
function validProfile(fields) {
|
|
||||||
return (p) => isPlainObject(p)
|
|
||||||
&& Object.keys(p).length === Object.keys(fields).length
|
|
||||||
&& Object.entries(fields).every(([k, check]) => Object.prototype.hasOwnProperty.call(p, k) && check(p[k]));
|
|
||||||
}
|
|
||||||
|
|
||||||
function validDsp(fields) {
|
|
||||||
const profile = validProfile(fields);
|
|
||||||
return (v) => isPlainObject(v)
|
|
||||||
&& Object.keys(v).length === 2
|
|
||||||
&& profile(v.template)
|
|
||||||
&& isPlainObject(v.devices)
|
|
||||||
&& Object.keys(v.devices).length <= MAX_DEVICE_PROFILES
|
|
||||||
&& Object.entries(v.devices).every(([id, p]) => id.length >= 1 && id.length <= 512 && !CONTROL.test(id) && profile(p));
|
|
||||||
}
|
|
||||||
|
|
||||||
const VOICE_SCHEMA = {
|
|
||||||
pttEnabled: { default: false, check: isBool },
|
|
||||||
pttReleaseDelay: {
|
|
||||||
default: { active: false, ms: 300 },
|
|
||||||
check: (v) => isPlainObject(v) && Object.keys(v).length === 2 && isBool(v.active) && RELEASE_DELAYS.includes(v.ms),
|
|
||||||
},
|
|
||||||
inputDsp: { default: { template: { ...IN_DEFAULT }, devices: {} }, check: validDsp(IN_FIELDS) },
|
|
||||||
outputDsp: { default: { template: { ...OUT_DEFAULT }, devices: {} }, check: validDsp(OUT_FIELDS) },
|
|
||||||
outputLevelDb: { default: 0, check: validDb },
|
|
||||||
notificationDeviceId: { default: 'voice', check: (v) => typeof v === 'string' && v.length <= 512 && !CONTROL.test(v) },
|
|
||||||
notificationLevelDb: { default: -23, check: validDb },
|
|
||||||
};
|
|
||||||
|
|
||||||
const has = (o, k) => Object.prototype.hasOwnProperty.call(o, k);
|
|
||||||
|
|
||||||
/** Legacy voice volume percent (0..200) → dB modifier on the 0.5 dB grid. */
|
|
||||||
function percentToDb(pct) {
|
|
||||||
if (!(pct > 0)) return -200;
|
|
||||||
const db = Math.round(2 * 20 * Math.log10(pct / 100)) / 2;
|
|
||||||
return Math.max(-200, Math.min(10, db));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** An input DSP value stored before `denoiseLevel` existed, with the default level added to every profile. */
|
|
||||||
function withDenoiseLevel(dsp) {
|
|
||||||
if (!isPlainObject(dsp) || !isPlainObject(dsp.devices)) return null;
|
|
||||||
const upgrade = (p) => (isPlainObject(p) && !has(p, 'denoiseLevel') ? { ...p, denoiseLevel: IN_DEFAULT.denoiseLevel } : p);
|
|
||||||
return { ...dsp, template: upgrade(dsp.template), devices: Object.fromEntries(Object.entries(dsp.devices).map(([id, p]) => [id, upgrade(p)])) };
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Fills voice keys missing from a stored profile (`raw`, as read from disk) from its legacy keys, into
|
|
||||||
* `values` (already holding validated stored keys and defaults). A stored valid key is never touched; a stored
|
|
||||||
* input DSP that predates `denoiseLevel` is kept with that one field added.
|
|
||||||
*/
|
|
||||||
function migrateVoicePrefs(raw, values) {
|
|
||||||
if (!isPlainObject(raw)) return values;
|
|
||||||
if (has(raw, 'inputDsp') && !VOICE_SCHEMA.inputDsp.check(raw.inputDsp)) {
|
|
||||||
const upgraded = withDenoiseLevel(raw.inputDsp);
|
|
||||||
if (upgraded && VOICE_SCHEMA.inputDsp.check(upgraded)) values.inputDsp = upgraded;
|
|
||||||
}
|
|
||||||
// A first-run or unrelated preference object is not a legacy audio profile.
|
|
||||||
if (!['transmitMode', 'vadSensitivity', 'autoGainControl', 'noiseSuppression', 'echoCancellation', 'voiceVolume'].some((key) => has(raw, key))) return values;
|
|
||||||
const legacy = (key, check, fallback) => (has(raw, key) && check(raw[key]) ? raw[key] : fallback);
|
|
||||||
const mode = legacy('transmitMode', (v) => v === 'ptt' || v === 'open' || v === 'vad', 'ptt');
|
|
||||||
if (!has(raw, 'pttEnabled')) values.pttEnabled = mode === 'ptt';
|
|
||||||
if (!has(raw, 'inputDsp')) {
|
|
||||||
values.inputDsp = {
|
|
||||||
template: {
|
|
||||||
...IN_DEFAULT,
|
|
||||||
agc: legacy('autoGainControl', isBool, true),
|
|
||||||
denoise: legacy('noiseSuppression', isBool, true),
|
|
||||||
vad: mode === 'vad',
|
|
||||||
vadSensitivity: legacy('vadSensitivity', (v) => SENSITIVITIES.includes(v), 'normal'),
|
|
||||||
},
|
|
||||||
devices: {},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
if (!has(raw, 'outputDsp')) {
|
|
||||||
// Only echo cancellation existed before; playback controls new to TeamsPeach start at the official
|
|
||||||
// defaults (release notes say so) — no setting the user made is changed.
|
|
||||||
values.outputDsp = {
|
|
||||||
template: { ...OUT_DEFAULT, aec: legacy('echoCancellation', isBool, true) },
|
|
||||||
devices: {},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
if (!has(raw, 'outputLevelDb')) values.outputLevelDb = percentToDb(legacy('voiceVolume', intIn(0, 200), 100));
|
|
||||||
return values;
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = { VOICE_SCHEMA, migrateVoicePrefs, percentToDb, IN_DEFAULT, OUT_DEFAULT, MAX_DEVICE_PROFILES };
|
|
||||||
@@ -1,651 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Whisper lists, the incoming whisper mode and key binding profiles (local files only), plus the global
|
|
||||||
* shortcut helper (`teamspeach-core hotkeys`).
|
|
||||||
*
|
|
||||||
* The official TeamSpeak 6 client keeps whisper lists and hotkeys as myTeamSpeak "syncable items"
|
|
||||||
* (`ApplySyncableItemAction`) and the receive mode as a local JSON blob "whisper"; TeamsPeach has no account,
|
|
||||||
* so all three are local files in the profile directory and nothing is synchronised anywhere.
|
|
||||||
*
|
|
||||||
* List objects keep the official field names (main.js 6.0.0.5163 byte 2368379):
|
|
||||||
* { list_uuid, name, type: 1 List | 2 PredefinedGroup, whisper_entry_list: [{ name, uuid, type: 1 Client | 2 Channel }],
|
|
||||||
* group_type 0..3, group_target_mode 0..6, target_server_uuid, target_server_name, target_group_id, target_group_name }.
|
|
||||||
*
|
|
||||||
* Key bindings: see keybind-schema.js (profiles, actions, sources, version 1 → 2 migration).
|
|
||||||
*/
|
|
||||||
|
|
||||||
const fs = require('node:fs');
|
|
||||||
const path = require('node:path');
|
|
||||||
const { randomUUID } = require('node:crypto');
|
|
||||||
const schema = require('./keybind-schema');
|
|
||||||
const { spawn } = require('node:child_process');
|
|
||||||
|
|
||||||
const WHISPER_FILE = 'whisper.json';
|
|
||||||
const KEYBINDS_FILE = 'keybinds.json';
|
|
||||||
const WHISPER_VERSION = 1;
|
|
||||||
const MAX_LISTS = 200;
|
|
||||||
const MAX_ENTRIES = 1024;
|
|
||||||
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
||||||
const CONTROL = /[\u0000-\u001f\u007f]/;
|
|
||||||
const LIST_TYPE = { List: 1, PredefinedGroup: 2 };
|
|
||||||
const ENTRY_TYPE = { Client: 1, Channel: 2 };
|
|
||||||
const RECEIVE_MODES = ['allow_all', 'deny_all'];
|
|
||||||
|
|
||||||
const fail = (code, message) => ({ ok: false, error: { code, message } });
|
|
||||||
const isObject = (v) => v !== null && typeof v === 'object' && !Array.isArray(v);
|
|
||||||
const text = (v, min, max) => typeof v === 'string' && v.length >= min && v.length <= max && !CONTROL.test(v);
|
|
||||||
const onlyKeys = (v, keys) => Object.keys(v).every((k) => keys.includes(k));
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------- persistence
|
|
||||||
|
|
||||||
/** Writes JSON atomically: a crash leaves either the old or the new file, never a torn one. */
|
|
||||||
function writeJson(file, value) {
|
|
||||||
fs.mkdirSync(path.dirname(file), { recursive: true });
|
|
||||||
const tmp = `${file}.tmp`;
|
|
||||||
const fd = fs.openSync(tmp, 'w');
|
|
||||||
try {
|
|
||||||
fs.writeSync(fd, JSON.stringify(value, null, 2));
|
|
||||||
fs.fsyncSync(fd);
|
|
||||||
} finally {
|
|
||||||
fs.closeSync(fd);
|
|
||||||
}
|
|
||||||
fs.renameSync(tmp, file);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Reads a versioned store. A missing file is a first run; an unparsable or unknown-shape file is moved aside
|
|
||||||
* (`<file>.invalid-<time>`) so it is never silently overwritten; a newer version than this build understands
|
|
||||||
* keeps the file untouched and makes the store read-only.
|
|
||||||
*/
|
|
||||||
function readStore(file, version, now) {
|
|
||||||
let raw;
|
|
||||||
try {
|
|
||||||
raw = fs.readFileSync(file, 'utf8');
|
|
||||||
} catch (err) {
|
|
||||||
if (err.code === 'ENOENT') return { data: null, readOnly: false, recovered: null };
|
|
||||||
throw err;
|
|
||||||
}
|
|
||||||
let parsed;
|
|
||||||
try {
|
|
||||||
parsed = JSON.parse(raw);
|
|
||||||
} catch {
|
|
||||||
return { data: null, readOnly: false, recovered: quarantine(file, now) };
|
|
||||||
}
|
|
||||||
if (!isObject(parsed) || !Number.isInteger(parsed.version) || parsed.version < 1) {
|
|
||||||
return { data: null, readOnly: false, recovered: quarantine(file, now) };
|
|
||||||
}
|
|
||||||
if (parsed.version > version) return { data: null, readOnly: true, recovered: null };
|
|
||||||
return { data: parsed, readOnly: false, recovered: null };
|
|
||||||
}
|
|
||||||
|
|
||||||
function quarantine(file, now) {
|
|
||||||
const target = `${file}.invalid-${now()}`;
|
|
||||||
fs.renameSync(file, target);
|
|
||||||
return target;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------- validation
|
|
||||||
|
|
||||||
function validEntry(e) {
|
|
||||||
return isObject(e) && onlyKeys(e, ['name', 'uuid', 'type']) && (e.type === ENTRY_TYPE.Client || e.type === ENTRY_TYPE.Channel)
|
|
||||||
&& text(e.uuid, 1, 256) && typeof e.name === 'string' && e.name.length <= 8192 && !CONTROL.test(e.name)
|
|
||||||
// Official addFromSelection refuses channel paths whose names contain "/" (the path separator).
|
|
||||||
&& (e.type === ENTRY_TYPE.Client || e.name.length > 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Returns a normalized list or throws with a message naming the bad field. */
|
|
||||||
function normalizeList(list, { assignUuid = false } = {}) {
|
|
||||||
if (!isObject(list)) throw new Error('list: expected an object');
|
|
||||||
const keys = ['list_uuid', 'name', 'type', 'whisper_entry_list', 'group_type', 'group_target_mode', 'target_server_uuid',
|
|
||||||
'target_server_name', 'target_group_id', 'target_group_name'];
|
|
||||||
if (!onlyKeys(list, keys)) throw new Error('list: unknown field');
|
|
||||||
let uuid = list.list_uuid;
|
|
||||||
if (uuid === undefined || uuid === '') {
|
|
||||||
if (!assignUuid) throw new Error('list_uuid: required');
|
|
||||||
uuid = randomUUID();
|
|
||||||
}
|
|
||||||
if (typeof uuid !== 'string' || !UUID.test(uuid)) throw new Error('list_uuid: expected a UUID');
|
|
||||||
if (!text(list.name, 1, 128) || list.name.trim() !== list.name) throw new Error('name: 1-128 characters without surrounding spaces');
|
|
||||||
if (list.type !== LIST_TYPE.List && list.type !== LIST_TYPE.PredefinedGroup) throw new Error('type: unknown whisper list type');
|
|
||||||
const entries = list.whisper_entry_list ?? [];
|
|
||||||
if (!Array.isArray(entries) || entries.length > MAX_ENTRIES || !entries.every(validEntry)) throw new Error('whisper_entry_list: invalid entry');
|
|
||||||
const groupType = list.group_type ?? 0;
|
|
||||||
const mode = list.group_target_mode ?? 0;
|
|
||||||
if (!Number.isInteger(groupType) || groupType < 0 || groupType > 3) throw new Error('group_type: 0-3');
|
|
||||||
if (!Number.isInteger(mode) || mode < 0 || mode > 6) throw new Error('group_target_mode: 0-6');
|
|
||||||
const groupId = list.target_group_id ?? '0';
|
|
||||||
if (typeof groupId !== 'string' || !/^\d{1,20}$/.test(groupId)) throw new Error('target_group_id: decimal id');
|
|
||||||
for (const key of ['target_server_uuid', 'target_server_name', 'target_group_name']) {
|
|
||||||
if (list[key] !== undefined && !text(list[key], 0, 256)) throw new Error(`${key}: invalid`);
|
|
||||||
}
|
|
||||||
// Duplicates by identity (official isClientPresent/isChannelPresent) are collapsed.
|
|
||||||
const seen = new Set();
|
|
||||||
const unique = [];
|
|
||||||
for (const e of entries) {
|
|
||||||
const key = e.type === ENTRY_TYPE.Client ? `c:${e.uuid}` : `h:${e.uuid}:${e.name}`;
|
|
||||||
if (seen.has(key)) continue;
|
|
||||||
seen.add(key);
|
|
||||||
unique.push({ name: e.name, uuid: e.uuid, type: e.type });
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
list_uuid: uuid.toLowerCase(),
|
|
||||||
name: list.name,
|
|
||||||
type: list.type,
|
|
||||||
whisper_entry_list: unique,
|
|
||||||
group_type: groupType,
|
|
||||||
group_target_mode: mode,
|
|
||||||
target_server_uuid: list.target_server_uuid ?? '',
|
|
||||||
target_server_name: list.target_server_name ?? '',
|
|
||||||
target_group_id: groupId,
|
|
||||||
target_group_name: list.target_group_name ?? '',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
class WhisperStore {
|
|
||||||
constructor(dir, { now = Date.now } = {}) {
|
|
||||||
this.file = path.join(dir, WHISPER_FILE);
|
|
||||||
const { data, readOnly, recovered } = readStore(this.file, WHISPER_VERSION, now);
|
|
||||||
this.readOnly = readOnly;
|
|
||||||
this.recovered = recovered;
|
|
||||||
this.receiveMode = 'allow_all'; // official DEFAULT_SETTINGS { receiveMode: AllowAll }
|
|
||||||
this.lists = [];
|
|
||||||
if (data) this.load(data);
|
|
||||||
}
|
|
||||||
|
|
||||||
load(data) {
|
|
||||||
if (RECEIVE_MODES.includes(data.receiveMode)) this.receiveMode = data.receiveMode;
|
|
||||||
const lists = Array.isArray(data.lists) ? data.lists.slice(0, MAX_LISTS) : [];
|
|
||||||
const seen = new Set();
|
|
||||||
for (const raw of lists) {
|
|
||||||
try {
|
|
||||||
const list = normalizeList(raw);
|
|
||||||
if (!seen.has(list.list_uuid)) {
|
|
||||||
seen.add(list.list_uuid);
|
|
||||||
this.lists.push(list);
|
|
||||||
}
|
|
||||||
} catch {
|
|
||||||
// A single broken list is dropped (official type Invalid is never offered); the rest stay usable.
|
|
||||||
this.droppedOnLoad = (this.droppedOnLoad ?? 0) + 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
get() {
|
|
||||||
return { receiveMode: this.receiveMode, lists: this.lists.map((l) => ({ ...l, whisper_entry_list: l.whisper_entry_list.map((e) => ({ ...e })) })), readOnly: this.readOnly };
|
|
||||||
}
|
|
||||||
|
|
||||||
persist(next) {
|
|
||||||
if (this.readOnly) throw new Error('whisper.json was written by a newer TeamsPeach; not overwriting it');
|
|
||||||
writeJson(this.file, { version: WHISPER_VERSION, receiveMode: next.receiveMode, lists: next.lists });
|
|
||||||
this.receiveMode = next.receiveMode;
|
|
||||||
this.lists = next.lists;
|
|
||||||
}
|
|
||||||
|
|
||||||
saveList(raw) {
|
|
||||||
const list = normalizeList(raw, { assignUuid: true });
|
|
||||||
const lists = this.lists.slice();
|
|
||||||
const at = lists.findIndex((l) => l.list_uuid === list.list_uuid);
|
|
||||||
if (at >= 0) lists[at] = list;
|
|
||||||
else {
|
|
||||||
if (lists.length >= MAX_LISTS) throw new Error(`at most ${MAX_LISTS} whisper lists`);
|
|
||||||
lists.push(list);
|
|
||||||
}
|
|
||||||
this.persist({ receiveMode: this.receiveMode, lists });
|
|
||||||
return list;
|
|
||||||
}
|
|
||||||
|
|
||||||
deleteList(listUuid) {
|
|
||||||
const lists = this.lists.filter((l) => l.list_uuid !== listUuid);
|
|
||||||
if (lists.length === this.lists.length) return false;
|
|
||||||
this.persist({ receiveMode: this.receiveMode, lists });
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
setReceiveMode(mode) {
|
|
||||||
if (!RECEIVE_MODES.includes(mode)) throw new Error('receive mode: allow_all or deny_all');
|
|
||||||
this.persist({ receiveMode: mode, lists: this.lists });
|
|
||||||
}
|
|
||||||
|
|
||||||
listIds() {
|
|
||||||
return new Set(this.lists.map((l) => l.list_uuid));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* keybinds.json version 2: { version, requireExactMatch, activeProfile, profiles: [{ id, name, bindings }] }.
|
|
||||||
* A version 1 file is migrated on load (keybind-schema.loadStore); the original bytes are kept next to it as
|
|
||||||
* `keybinds.v1-<time>.json` before the v2 file replaces it, so nothing of the old file is ever lost.
|
|
||||||
*/
|
|
||||||
class KeybindStore {
|
|
||||||
constructor(dir, { now = Date.now, defaultProfileName = 'Default' } = {}) {
|
|
||||||
this.file = path.join(dir, KEYBINDS_FILE);
|
|
||||||
const { data, readOnly, recovered } = readStore(this.file, schema.KEYBINDS_VERSION, now);
|
|
||||||
this.readOnly = readOnly;
|
|
||||||
this.recovered = recovered;
|
|
||||||
const { state, dropped, migrated } = schema.loadStore(data, { defaultProfileName });
|
|
||||||
this.state = state;
|
|
||||||
this.droppedOnLoad = dropped;
|
|
||||||
this.migratedFrom = null;
|
|
||||||
if (migrated && !readOnly) {
|
|
||||||
const backup = path.join(dir, `keybinds.v1-${now()}.json`);
|
|
||||||
fs.copyFileSync(this.file, backup, fs.constants.COPYFILE_EXCL);
|
|
||||||
this.persist(state);
|
|
||||||
this.migratedFrom = backup;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
get() {
|
|
||||||
return {
|
|
||||||
requireExactMatch: this.state.requireExactMatch,
|
|
||||||
activeProfile: this.state.activeProfile,
|
|
||||||
profiles: this.state.profiles.map((p) => ({ id: p.id, name: p.name, bindings: p.bindings.map((b) => ({ ...b })) })),
|
|
||||||
readOnly: this.readOnly,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
profile(id) {
|
|
||||||
const p = typeof id === 'string' ? this.state.profiles.find((x) => x.id === id.toLowerCase()) : null;
|
|
||||||
if (!p) throw new Error('profile: not found');
|
|
||||||
return p;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Bindings of the active profile ("No Profile" → none). */
|
|
||||||
activeBindings() {
|
|
||||||
return this.state.profiles.find((p) => p.id === this.state.activeProfile)?.bindings ?? [];
|
|
||||||
}
|
|
||||||
|
|
||||||
setExact(value) {
|
|
||||||
if (typeof value !== 'boolean') throw new Error('requireExactMatch: expected true/false');
|
|
||||||
this.persist({ ...this.state, requireExactMatch: value });
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Official addHotkeyProfile; the first profile becomes the active one (there is no other). */
|
|
||||||
addProfile(name) {
|
|
||||||
if (this.state.profiles.length >= schema.MAX_PROFILES) throw new Error(`at most ${schema.MAX_PROFILES} profiles`);
|
|
||||||
const profile = { id: randomUUID(), name: schema.normalizeProfileName(name), bindings: [] };
|
|
||||||
this.persist({ ...this.state, activeProfile: this.state.activeProfile ?? profile.id, profiles: [...this.state.profiles, profile] });
|
|
||||||
return profile.id;
|
|
||||||
}
|
|
||||||
|
|
||||||
renameProfile(id, name) {
|
|
||||||
const target = this.profile(id);
|
|
||||||
const nextName = schema.normalizeProfileName(name);
|
|
||||||
this.persist({ ...this.state, profiles: this.state.profiles.map((p) => (p === target ? { ...p, name: nextName } : p)) });
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Official setDefault: the chosen profile becomes the one whose bindings are live. */
|
|
||||||
activateProfile(id) {
|
|
||||||
const target = this.profile(id);
|
|
||||||
if (target.id !== this.state.activeProfile) this.persist({ ...this.state, activeProfile: target.id });
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Official shows delete only for a non-active profile; the active one cannot be deleted. */
|
|
||||||
deleteProfile(id) {
|
|
||||||
const target = this.profile(id);
|
|
||||||
if (target.id === this.state.activeProfile) throw new Error('profile: activate another profile before deleting this one');
|
|
||||||
this.persist({ ...this.state, profiles: this.state.profiles.filter((p) => p !== target) });
|
|
||||||
}
|
|
||||||
|
|
||||||
setBindings(id, rawBindings) {
|
|
||||||
const target = this.profile(id);
|
|
||||||
const bindings = schema.normalizeBindings(rawBindings, target.bindings);
|
|
||||||
this.persist({ ...this.state, profiles: this.state.profiles.map((p) => (p === target ? { ...p, bindings } : p)) });
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Official: deleting a whisper list deletes its hotkeys ("…with all associated hotkeys"), in every profile. */
|
|
||||||
dropTarget(listUuid) {
|
|
||||||
let changed = false;
|
|
||||||
const profiles = this.state.profiles.map((p) => {
|
|
||||||
const bindings = p.bindings.filter((b) => !(b.action === 'whisper_list' && b.target === listUuid));
|
|
||||||
if (bindings.length === p.bindings.length) return p;
|
|
||||||
changed = true;
|
|
||||||
return { ...p, bindings };
|
|
||||||
});
|
|
||||||
if (changed) this.persist({ ...this.state, profiles });
|
|
||||||
}
|
|
||||||
|
|
||||||
persist(next) {
|
|
||||||
if (this.readOnly) throw new Error('keybinds.json was written by a newer TeamsPeach; not overwriting it');
|
|
||||||
writeJson(this.file, { version: schema.KEYBINDS_VERSION, requireExactMatch: next.requireExactMatch, activeProfile: next.activeProfile, profiles: next.profiles });
|
|
||||||
this.state = next;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------- helper
|
|
||||||
|
|
||||||
const HELPER_BACKENDS = ['windows_registerhotkey', 'xdg_portal_global_shortcuts', 'x11_xgrabkey', 'unavailable'];
|
|
||||||
const HELPER_ERRORS = ['in_use', 'unsupported_key', 'invalid', 'portal_denied', 'failed'];
|
|
||||||
const MAX_HELPER_LINE = 64 * 1024;
|
|
||||||
const MAX_RESTARTS = 3;
|
|
||||||
|
|
||||||
// Backends that fire only on the exact modifier set; "Require exact key match" off adds modifier variants.
|
|
||||||
const EXACT_MODIFIER_BACKENDS = new Set(['windows_registerhotkey', 'x11_xgrabkey']);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Owns the `teamspeach-core hotkeys` child. It registers only the bindings marked global and reports
|
|
||||||
* press/release for those ids; it never sees other keys (see core/src/hotkeys.rs). Disabled in offscreen
|
|
||||||
* tests so a test run never registers shortcuts on the user's desktop.
|
|
||||||
*
|
|
||||||
* With exact matching off, RegisterHotKey/XGrabKey bindings are also registered with extra modifiers
|
|
||||||
* (keybind-schema.expandRegistrations); a variant's press/release is reported as its binding. The desktop
|
|
||||||
* portal decides matching itself, so it always receives only the bindings' own chords.
|
|
||||||
*/
|
|
||||||
class HotkeyHelper {
|
|
||||||
constructor({ resolveBinary, onEvent, onStatus, enabled, spawnProcess = spawn }) {
|
|
||||||
this.resolveBinary = resolveBinary;
|
|
||||||
this.onEvent = onEvent;
|
|
||||||
this.onStatus = onStatus;
|
|
||||||
this.enabled = enabled;
|
|
||||||
this.spawnProcess = spawnProcess;
|
|
||||||
this.child = null;
|
|
||||||
this.seq = 0;
|
|
||||||
this.wanted = [];
|
|
||||||
this.exact = true;
|
|
||||||
this.variantOf = new Map();
|
|
||||||
this.heldVariants = new Map(); // binding id → registered ids currently down
|
|
||||||
this.restarts = 0;
|
|
||||||
const variants = { wanted: 0, registered: 0 };
|
|
||||||
this.status = enabled
|
|
||||||
? { state: 'idle', backend: null, global: false, release: false, detail: '', results: [], exact: true, variants }
|
|
||||||
: { state: 'disabled', backend: null, global: false, release: false, detail: 'test_offscreen', results: [], exact: true, variants };
|
|
||||||
}
|
|
||||||
|
|
||||||
setStatus(patch) {
|
|
||||||
this.status = { ...this.status, ...patch };
|
|
||||||
this.onStatus(this.status);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Replaces the registered set with the global physical `bindings`. Starts or stops the helper as needed.
|
|
||||||
* `exact` is the profile store's requireExactMatch.
|
|
||||||
*/
|
|
||||||
bind(bindings, { exact = true } = {}) {
|
|
||||||
this.wanted = bindings.filter((b) => b.global).map((b) => ({
|
|
||||||
id: b.id, code: b.code, ctrl: b.ctrl, alt: b.alt, shift: b.shift, meta: b.meta, description: b.description ?? b.action,
|
|
||||||
}));
|
|
||||||
this.exact = exact;
|
|
||||||
this.status = { ...this.status, exact };
|
|
||||||
if (!this.enabled) return;
|
|
||||||
if (this.wanted.length === 0) {
|
|
||||||
this.stop();
|
|
||||||
this.setStatus({ state: 'idle', results: [], variants: { wanted: 0, registered: 0 } });
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!this.child) this.start();
|
|
||||||
else this.sendBind();
|
|
||||||
}
|
|
||||||
|
|
||||||
start() {
|
|
||||||
const binary = this.resolveBinary();
|
|
||||||
if (!binary) {
|
|
||||||
this.setStatus({ state: 'unavailable', backend: 'unavailable', global: false, detail: 'core_binary_missing' });
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
let child;
|
|
||||||
try {
|
|
||||||
child = this.spawnProcess(binary, ['hotkeys'], { stdio: ['pipe', 'pipe', 'pipe'], windowsHide: true });
|
|
||||||
} catch (err) {
|
|
||||||
this.setStatus({ state: 'unavailable', backend: 'unavailable', global: false, detail: `spawn_failed: ${err.message}` });
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.child = child;
|
|
||||||
this.setStatus({ state: 'starting' });
|
|
||||||
child.stdin.on('error', () => {});
|
|
||||||
child.stderr.resume();
|
|
||||||
let pending = '';
|
|
||||||
child.stdout.setEncoding('utf8');
|
|
||||||
child.stdout.on('data', (chunk) => {
|
|
||||||
pending += chunk;
|
|
||||||
let end;
|
|
||||||
while ((end = pending.indexOf('\n')) >= 0) {
|
|
||||||
const line = pending.slice(0, end);
|
|
||||||
pending = pending.slice(end + 1);
|
|
||||||
if (line.trim()) this.onLine(child, line);
|
|
||||||
}
|
|
||||||
if (pending.length > MAX_HELPER_LINE) {
|
|
||||||
pending = '';
|
|
||||||
this.fault(child, 'helper line too long');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
child.on('error', (err) => this.exited(child, `helper error: ${err.message}`));
|
|
||||||
child.on('exit', (code) => this.exited(child, `helper exited (${code})`));
|
|
||||||
}
|
|
||||||
|
|
||||||
onLine(child, line) {
|
|
||||||
if (child !== this.child) return;
|
|
||||||
let msg;
|
|
||||||
try {
|
|
||||||
msg = JSON.parse(line);
|
|
||||||
} catch {
|
|
||||||
this.fault(child, 'helper sent invalid JSON');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!isObject(msg) || typeof msg.event !== 'string') return;
|
|
||||||
switch (msg.event) {
|
|
||||||
case 'ready':
|
|
||||||
if (!HELPER_BACKENDS.includes(msg.backend)) {
|
|
||||||
this.fault(child, 'unknown helper backend');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.setStatus({
|
|
||||||
state: msg.backend === 'unavailable' ? 'unavailable' : 'ready',
|
|
||||||
backend: msg.backend,
|
|
||||||
global: msg.global === true && msg.backend !== 'unavailable',
|
|
||||||
release: msg.release === true,
|
|
||||||
detail: typeof msg.detail === 'string' ? msg.detail.slice(0, 1024) : '',
|
|
||||||
});
|
|
||||||
if (this.status.global) this.sendBind();
|
|
||||||
break;
|
|
||||||
case 'bound':
|
|
||||||
case 'rebound': {
|
|
||||||
if (msg.event === 'bound' && msg.seq !== this.seq) return; // answer to a superseded bind
|
|
||||||
const all = Array.isArray(msg.results) ? msg.results.filter((r) => isObject(r) && typeof r.id === 'string' && this.variantOf.has(r.id)) : [];
|
|
||||||
const results = all.filter((r) => this.variantOf.get(r.id) === r.id).map((r) => ({
|
|
||||||
id: r.id,
|
|
||||||
ok: r.ok === true,
|
|
||||||
trigger: typeof r.trigger === 'string' ? r.trigger.slice(0, 128) : '',
|
|
||||||
error: r.ok === true ? undefined : (HELPER_ERRORS.includes(r.error) ? r.error : 'failed'),
|
|
||||||
detail: typeof r.detail === 'string' ? r.detail.slice(0, 512) : '',
|
|
||||||
}));
|
|
||||||
// Variants another program already owns (in_use) simply do not fire; the binding's own chord decides its status.
|
|
||||||
const registered = all.filter((r) => this.variantOf.get(r.id) !== r.id && r.ok === true).length;
|
|
||||||
this.restarts = 0;
|
|
||||||
this.setStatus({ state: 'ready', results, variants: { ...this.status.variants, registered } });
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 'press':
|
|
||||||
case 'release': {
|
|
||||||
const id = typeof msg.id === 'string' ? this.variantOf.get(msg.id) : undefined;
|
|
||||||
if (!id) return;
|
|
||||||
const down = this.heldVariants.get(id) ?? new Set();
|
|
||||||
if (msg.event === 'press') {
|
|
||||||
if (down.has(msg.id)) return;
|
|
||||||
down.add(msg.id);
|
|
||||||
this.heldVariants.set(id, down);
|
|
||||||
if (down.size === 1) this.onEvent({ id, state: 'press', source: 'global' });
|
|
||||||
} else {
|
|
||||||
if (!down.delete(msg.id)) return;
|
|
||||||
if (down.size === 0) {
|
|
||||||
this.heldVariants.delete(id);
|
|
||||||
this.onEvent({ id, state: 'release', source: 'global' });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 'error':
|
|
||||||
this.setStatus({ detail: typeof msg.detail === 'string' ? msg.detail.slice(0, 1024) : 'helper error' });
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
sendBind() {
|
|
||||||
if (!this.child || !this.status.global) return;
|
|
||||||
this.releaseAll();
|
|
||||||
const expand = !this.exact && EXACT_MODIFIER_BACKENDS.has(this.status.backend);
|
|
||||||
const { registrations, variantOf, variants } = schema.expandRegistrations(this.wanted, { exact: !expand });
|
|
||||||
this.variantOf = variantOf;
|
|
||||||
this.status = { ...this.status, variants: { wanted: variants.wanted, registered: 0 } };
|
|
||||||
this.seq = (this.seq + 1) >>> 0;
|
|
||||||
this.child.stdin.write(`${JSON.stringify({ cmd: 'bind', seq: this.seq, bindings: registrations })}\n`);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A held global key must never stay "held" after a rebind, crash or shutdown: whisper or PTT would stick.
|
|
||||||
* These releases are `synthetic`: they end held actions but never fire release-triggered actions.
|
|
||||||
*/
|
|
||||||
releaseAll() {
|
|
||||||
for (const id of this.heldVariants.keys()) this.onEvent({ id, state: 'release', source: 'global', synthetic: true });
|
|
||||||
this.heldVariants.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fault(child, detail) {
|
|
||||||
if (child !== this.child) return;
|
|
||||||
try { child.kill(); } catch { /* already gone */ }
|
|
||||||
this.exited(child, detail);
|
|
||||||
}
|
|
||||||
|
|
||||||
exited(child, detail) {
|
|
||||||
if (child !== this.child) return;
|
|
||||||
this.child = null;
|
|
||||||
this.releaseAll();
|
|
||||||
if (this.stopping) return;
|
|
||||||
if (this.wanted.length > 0 && this.restarts < MAX_RESTARTS) {
|
|
||||||
this.restarts += 1;
|
|
||||||
this.setStatus({ state: 'restarting', detail });
|
|
||||||
this.start();
|
|
||||||
} else {
|
|
||||||
this.setStatus({ state: 'unavailable', global: false, detail });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
const child = this.child;
|
|
||||||
if (!child) return;
|
|
||||||
this.stopping = true;
|
|
||||||
this.releaseAll();
|
|
||||||
this.child = null;
|
|
||||||
try {
|
|
||||||
child.stdin.write(`${JSON.stringify({ cmd: 'shutdown' })}\n`);
|
|
||||||
child.stdin.end();
|
|
||||||
} catch { /* pipe closed */ }
|
|
||||||
const timer = setTimeout(() => { try { child.kill(); } catch { /* gone */ } }, 500);
|
|
||||||
timer.unref?.();
|
|
||||||
child.once('exit', () => clearTimeout(timer));
|
|
||||||
this.stopping = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------- IPC
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Registers the renderer API. `getPttCode` supplies the Audio push-to-talk key for conflict checks;
|
|
||||||
* `testOffscreen` disables the global helper (bindings then work only while the window is focused, and the
|
|
||||||
* status says so). `defaultProfileName` names the profile a version 1 keybinds.json migrates into.
|
|
||||||
*/
|
|
||||||
function registerWhisperIpc({ ipcMain, trustedSender, getWindow, userDataDir, resolveBinary, testOffscreen, getPttCode, spawnProcess, defaultProfileName }) {
|
|
||||||
const whisper = new WhisperStore(userDataDir);
|
|
||||||
const keybinds = new KeybindStore(userDataDir, { defaultProfileName });
|
|
||||||
const send = (channel, payload) => {
|
|
||||||
const contents = getWindow()?.webContents;
|
|
||||||
if (contents && !contents.isDestroyed()) contents.send(channel, payload);
|
|
||||||
};
|
|
||||||
const helper = new HotkeyHelper({
|
|
||||||
resolveBinary,
|
|
||||||
enabled: !testOffscreen,
|
|
||||||
spawnProcess,
|
|
||||||
onEvent: (event) => send('keybinds:event', event),
|
|
||||||
onStatus: (status) => send('keybinds:status', status),
|
|
||||||
});
|
|
||||||
const conflictsOf = (bindings) => schema.conflicts(bindings, getPttCode(), whisper.listIds());
|
|
||||||
const keybindState = () => {
|
|
||||||
const state = keybinds.get();
|
|
||||||
return {
|
|
||||||
...state,
|
|
||||||
profiles: state.profiles.map((p) => ({ ...p, conflicts: conflictsOf(p.bindings) })),
|
|
||||||
status: helper.status,
|
|
||||||
recovered: keybinds.recovered,
|
|
||||||
migratedFrom: keybinds.migratedFrom,
|
|
||||||
droppedOnLoad: keybinds.droppedOnLoad,
|
|
||||||
};
|
|
||||||
};
|
|
||||||
/**
|
|
||||||
* Only the active profile is live; conflicting rows are never registered. While the renderer records a
|
|
||||||
* keyboard chord nothing is registered, so a key already bound globally reaches the recorder instead of
|
|
||||||
* firing (RegisterHotKey/XGrabKey would swallow it).
|
|
||||||
*/
|
|
||||||
let capturing = false;
|
|
||||||
const bindAvailable = () => {
|
|
||||||
const bindings = capturing ? [] : keybinds.activeBindings();
|
|
||||||
const blocked = new Set(conflictsOf(bindings).map((c) => c.id));
|
|
||||||
helper.bind(bindings.filter((b) => !blocked.has(b.id)), { exact: keybinds.state.requireExactMatch });
|
|
||||||
};
|
|
||||||
/** keybinds:capture(on) — the renderer's keyboard recorder started/ended (it also ends on window blur). */
|
|
||||||
const setCapturing = (on) => {
|
|
||||||
if (typeof on !== 'boolean') throw new Error('capture: expected true/false');
|
|
||||||
if (capturing === on) return;
|
|
||||||
capturing = on;
|
|
||||||
bindAvailable();
|
|
||||||
};
|
|
||||||
bindAvailable();
|
|
||||||
|
|
||||||
const guard = (handler) => (event, ...args) => {
|
|
||||||
if (!trustedSender(event)) return fail('forbidden', 'forbidden');
|
|
||||||
try {
|
|
||||||
return handler(...args);
|
|
||||||
} catch (err) {
|
|
||||||
return fail('bad_request', err.message);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
const keybindChange = (change) => guard((...args) => {
|
|
||||||
const extra = change(...args);
|
|
||||||
bindAvailable();
|
|
||||||
return { ok: true, ...extra, ...keybindState() };
|
|
||||||
});
|
|
||||||
|
|
||||||
ipcMain.handle('whisper:get', guard(() => ({ ok: true, ...whisper.get(), recovered: whisper.recovered })));
|
|
||||||
ipcMain.handle('whisper:save-list', guard((list) => {
|
|
||||||
const saved = whisper.saveList(list);
|
|
||||||
bindAvailable(); // a binding waiting for this list may become usable
|
|
||||||
return { ok: true, list: saved };
|
|
||||||
}));
|
|
||||||
ipcMain.handle('whisper:delete-list', guard((listUuid) => {
|
|
||||||
if (typeof listUuid !== 'string' || !UUID.test(listUuid)) throw new Error('list_uuid: expected a UUID');
|
|
||||||
const deleted = whisper.deleteList(listUuid.toLowerCase());
|
|
||||||
if (deleted) {
|
|
||||||
keybinds.dropTarget(listUuid.toLowerCase());
|
|
||||||
bindAvailable();
|
|
||||||
}
|
|
||||||
return { ok: true, deleted, keybinds: keybindState() };
|
|
||||||
}));
|
|
||||||
ipcMain.handle('whisper:set-receive-mode', guard((mode) => {
|
|
||||||
whisper.setReceiveMode(mode);
|
|
||||||
return { ok: true, receiveMode: whisper.receiveMode };
|
|
||||||
}));
|
|
||||||
ipcMain.handle('keybinds:get', guard(() => ({ ok: true, ...keybindState() })));
|
|
||||||
ipcMain.handle('keybinds:set', keybindChange((profileId, bindings) => { keybinds.setBindings(profileId, bindings); }));
|
|
||||||
ipcMain.handle('keybinds:set-exact', keybindChange((value) => { keybinds.setExact(value); }));
|
|
||||||
ipcMain.handle('keybinds:profile-add', keybindChange((name) => ({ profileId: keybinds.addProfile(name) })));
|
|
||||||
ipcMain.handle('keybinds:profile-rename', keybindChange((profileId, name) => { keybinds.renameProfile(profileId, name); }));
|
|
||||||
ipcMain.handle('keybinds:profile-activate', keybindChange((profileId) => { keybinds.activateProfile(profileId); }));
|
|
||||||
ipcMain.handle('keybinds:profile-delete', keybindChange((profileId) => { keybinds.deleteProfile(profileId); }));
|
|
||||||
ipcMain.handle('keybinds:capture', guard((on) => { setCapturing(on); return { ok: true }; }));
|
|
||||||
|
|
||||||
return {
|
|
||||||
whisper,
|
|
||||||
keybinds,
|
|
||||||
helper,
|
|
||||||
refreshBindings: bindAvailable,
|
|
||||||
dispose: () => helper.stop(),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
registerWhisperIpc,
|
|
||||||
WhisperStore,
|
|
||||||
KeybindStore,
|
|
||||||
HotkeyHelper,
|
|
||||||
normalizeList,
|
|
||||||
};
|
|
||||||
@@ -1,131 +0,0 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
// Sandboxed preload: the only surface the renderer gets. No paths, no commands, no generic IPC.
|
|
||||||
const { contextBridge, ipcRenderer } = require('electron');
|
|
||||||
|
|
||||||
function subscribe(channel, callback) {
|
|
||||||
if (typeof callback !== 'function') throw new TypeError('callback must be a function');
|
|
||||||
const handler = (_event, payload) => callback(payload);
|
|
||||||
ipcRenderer.on(channel, handler);
|
|
||||||
return () => ipcRenderer.removeListener(channel, handler);
|
|
||||||
}
|
|
||||||
|
|
||||||
contextBridge.exposeInMainWorld('teamspeach', {
|
|
||||||
// Every core request names its server connection (one core process per connection, see main/connections.js).
|
|
||||||
request: (connectionId, cmd, args) => ipcRenderer.invoke('core:request', connectionId, cmd, args),
|
|
||||||
// profile_get / profile_create / rename: shared by all connections, routed by main (profileRequest).
|
|
||||||
profileRequest: (cmd, args) => ipcRenderer.invoke('profile:request', cmd, args),
|
|
||||||
onProfileChanged: (callback) => subscribe('profile:changed', callback),
|
|
||||||
// Captured voice: main routes it to the selected input connection only (setInputConnection).
|
|
||||||
sendAudioFrame: (frame, whisper) => ipcRenderer.send('core:audio-frame', frame, whisper),
|
|
||||||
getWhisper: () => ipcRenderer.invoke('whisper:get'),
|
|
||||||
saveWhisperList: (list) => ipcRenderer.invoke('whisper:save-list', list),
|
|
||||||
deleteWhisperList: (listUuid) => ipcRenderer.invoke('whisper:delete-list', listUuid),
|
|
||||||
setWhisperReceiveMode: (mode) => ipcRenderer.invoke('whisper:set-receive-mode', mode),
|
|
||||||
getKeybinds: () => ipcRenderer.invoke('keybinds:get'),
|
|
||||||
setKeybinds: (profileId, bindings) => ipcRenderer.invoke('keybinds:set', profileId, bindings),
|
|
||||||
setKeybindExact: (value) => ipcRenderer.invoke('keybinds:set-exact', value),
|
|
||||||
addKeybindProfile: (name) => ipcRenderer.invoke('keybinds:profile-add', name),
|
|
||||||
renameKeybindProfile: (profileId, name) => ipcRenderer.invoke('keybinds:profile-rename', profileId, name),
|
|
||||||
activateKeybindProfile: (profileId) => ipcRenderer.invoke('keybinds:profile-activate', profileId),
|
|
||||||
deleteKeybindProfile: (profileId) => ipcRenderer.invoke('keybinds:profile-delete', profileId),
|
|
||||||
setKeybindCapture: (on) => ipcRenderer.invoke('keybinds:capture', on),
|
|
||||||
onKeybindEvent: (callback) => subscribe('keybinds:event', callback),
|
|
||||||
onKeybindStatus: (callback) => subscribe('keybinds:status', callback),
|
|
||||||
snapshotExport: (connectionId, options) => ipcRenderer.invoke('snapshots:export', connectionId, options),
|
|
||||||
snapshotOpen: (connectionId) => ipcRenderer.invoke('snapshots:open', connectionId),
|
|
||||||
snapshotApply: (connectionId, options) => ipcRenderer.invoke('snapshots:apply', connectionId, options),
|
|
||||||
snapshotCancel: (connectionId) => ipcRenderer.invoke('snapshots:cancel', connectionId),
|
|
||||||
onSnapshotProgress: (callback) => subscribe('snapshots:progress', callback),
|
|
||||||
endAudio: () => ipcRenderer.send('core:audio-end'),
|
|
||||||
onEvent: (callback) => subscribe('core:event', callback),
|
|
||||||
onAudio: (callback) => subscribe('core:audio', callback),
|
|
||||||
onCoreStatus: (callback) => subscribe('core:status', callback),
|
|
||||||
restartCore: (connectionId) => ipcRenderer.invoke('core:restart', connectionId),
|
|
||||||
listConnections: () => ipcRenderer.invoke('connections:list'),
|
|
||||||
createConnection: () => ipcRenderer.invoke('connections:create'),
|
|
||||||
closeConnection: (connectionId) => ipcRenderer.invoke('connections:close', connectionId),
|
|
||||||
setInputConnection: (connectionId) => ipcRenderer.invoke('connections:set-input', connectionId),
|
|
||||||
onConnections: (callback) => subscribe('connections:changed', callback),
|
|
||||||
listThemes: (force) => ipcRenderer.invoke('themes:list', force === true),
|
|
||||||
selectTheme: (selection) => ipcRenderer.invoke('themes:select', selection),
|
|
||||||
openThemeDirectory: (identifier) => ipcRenderer.invoke('themes:open-dir', typeof identifier === 'string' ? identifier : null),
|
|
||||||
openThemeLink: (identifier, kind) => ipcRenderer.invoke('themes:open-link', { identifier, kind }),
|
|
||||||
chatHistoryAppend: (scope, record, label) => ipcRenderer.invoke('chat-history:append', scope, record, label),
|
|
||||||
chatHistoryPage: (scope, before, count) => ipcRenderer.invoke('chat-history:page', scope, before, count),
|
|
||||||
chatHistoryList: (base) => ipcRenderer.invoke('chat-history:list', base),
|
|
||||||
chatHistorySetOpen: (scope, open, label) => ipcRenderer.invoke('chat-history:set-open', scope, open, label),
|
|
||||||
openExternalLink: (url) => ipcRenderer.invoke('link:open-external', url),
|
|
||||||
setUnreadBadge: (count, png) => ipcRenderer.invoke('app:unread-badge', count, png),
|
|
||||||
pickRecordingFolder: (title) => ipcRenderer.invoke('recording:pick-folder', title),
|
|
||||||
filesChooseDownloadDir: (connectionId) => ipcRenderer.invoke('files:choose-download-dir', connectionId),
|
|
||||||
filesChooseUpload: (connectionId) => ipcRenderer.invoke('files:choose-upload', connectionId),
|
|
||||||
filesDownload: (connectionId, options) => ipcRenderer.invoke('files:download', connectionId, options),
|
|
||||||
filesUpload: (connectionId, options) => ipcRenderer.invoke('files:upload', connectionId, options),
|
|
||||||
filesRelease: (token) => ipcRenderer.invoke('files:release', token),
|
|
||||||
filesOpenFolder: (token) => ipcRenderer.invoke('files:open-folder', token),
|
|
||||||
filesSettings: () => ipcRenderer.invoke('files:settings/get'),
|
|
||||||
filesSetSettings: (options) => ipcRenderer.invoke('files:settings/set', options),
|
|
||||||
filesChooseDefaultDir: () => ipcRenderer.invoke('files:settings/choose-default'),
|
|
||||||
filesCopyDefaultDir: () => ipcRenderer.invoke('files:settings/copy-default'),
|
|
||||||
prepareStreamPopout: (input) => ipcRenderer.invoke('stream-popout:prepare', input),
|
|
||||||
closeStreamPopout: (input) => ipcRenderer.invoke('stream-popout:close', input),
|
|
||||||
onStreamPopoutClosed: (callback) => subscribe('stream-popout:closed', callback),
|
|
||||||
onStreamPopoutReady: (callback) => subscribe('stream-popout:ready', callback),
|
|
||||||
presentStreamPopout: (input) => ipcRenderer.invoke('stream-popout:present', input),
|
|
||||||
osCapabilities: () => ipcRenderer.invoke('os:capabilities'),
|
|
||||||
getChangelog: () => ipcRenderer.invoke('about:changelog'),
|
|
||||||
getLicenses: () => ipcRenderer.invoke('about:licenses'),
|
|
||||||
getLicenseText: (id) => ipcRenderer.invoke('about:license-text', id),
|
|
||||||
badgeInfo: (uuids) => ipcRenderer.invoke('badges:info', uuids),
|
|
||||||
badgeArt: (uuid, detailed) => ipcRenderer.invoke('badges:art', uuid, detailed === true),
|
|
||||||
serverIconsList: (id) => ipcRenderer.invoke('server-icons:list', id),
|
|
||||||
serverIconsUpload: (id, authorization) => ipcRenderer.invoke('server-icons:upload', id, authorization),
|
|
||||||
serverIconsDelete: (id, authorization, ids) => ipcRenderer.invoke('server-icons:delete', id, authorization, ids),
|
|
||||||
osSetAutostart: (on) => ipcRenderer.invoke('os:set-autostart', on === true),
|
|
||||||
osApply: () => ipcRenderer.invoke('os:apply'),
|
|
||||||
osFlash: (kind) => ipcRenderer.invoke('os:flash', kind === 'poke' ? 'poke' : 'message'),
|
|
||||||
osNotify: (title, body, kind = 'private') => ipcRenderer.invoke('os:notify', String(title), String(body), kind),
|
|
||||||
privacyLinkThreat: (host) => ipcRenderer.invoke('privacy:link-threat', host),
|
|
||||||
privacyThreatStatus: () => ipcRenderer.invoke('privacy:threat-status'),
|
|
||||||
onOsLock: (callback) => subscribe('os:lock', (locked) => callback(locked === true)),
|
|
||||||
getAppInfo: () => ipcRenderer.invoke('app:info'),
|
|
||||||
getWindowState: () => ipcRenderer.invoke('window:get-state'),
|
|
||||||
onWindowState: (callback) => subscribe('window:state', callback),
|
|
||||||
getPrefs: () => ipcRenderer.invoke('prefs:get'),
|
|
||||||
setPrefs: (partial) => ipcRenderer.invoke('prefs:set', partial),
|
|
||||||
getBookmarkPasswordState: (id) => ipcRenderer.invoke('bookmarks:password-state', id),
|
|
||||||
setBookmarkPassword: (id, address, kind, value) => ipcRenderer.invoke('bookmarks:password-set', id, address, kind, value),
|
|
||||||
revealBookmarkPassword: (id, address, kind) => ipcRenderer.invoke('bookmarks:password-reveal', id, address, kind),
|
|
||||||
connectBookmark: (connectionId, id, startup = false) => ipcRenderer.invoke('bookmarks:connect', connectionId, id, startup),
|
|
||||||
getStartupBookmarks: () => ipcRenderer.invoke('bookmarks:startup'),
|
|
||||||
identityRequest: (action, args) => ipcRenderer.invoke('identity:request', action, args),
|
|
||||||
exportIdentity: (uid) => ipcRenderer.invoke('identity:export', uid),
|
|
||||||
onIdentityProgress: (callback) => subscribe('identity:progress', callback),
|
|
||||||
onIdentitiesChanged: (callback) => subscribe('identities:changed', callback),
|
|
||||||
setClientVolume: (uid, db) => ipcRenderer.invoke('client-volumes:set', uid, db),
|
|
||||||
importIdentity: () => ipcRenderer.invoke('identity:import'),
|
|
||||||
chooseAvatar: () => ipcRenderer.invoke('avatar:choose'),
|
|
||||||
getCaptureCapabilities: () => ipcRenderer.invoke('capture:capabilities'),
|
|
||||||
listCaptureSources: (options) => ipcRenderer.invoke('capture:sources', options),
|
|
||||||
selectCaptureSource: (options) => ipcRenderer.invoke('capture:select', options),
|
|
||||||
cancelCaptureSelection: () => ipcRenderer.invoke('capture:cancel'),
|
|
||||||
listAppAudio: () => ipcRenderer.invoke('appaudio:list'),
|
|
||||||
startAppAudio: (options) => ipcRenderer.invoke('appaudio:start', options),
|
|
||||||
stopAppAudio: (options) => ipcRenderer.invoke('appaudio:stop', options),
|
|
||||||
ackAppAudio: (options) => ipcRenderer.send('appaudio:ack', options),
|
|
||||||
onAppAudio: (callback) => subscribe('appaudio:event', callback),
|
|
||||||
copyText: (text) => ipcRenderer.invoke('clipboard:write', text),
|
|
||||||
openLogs: () => ipcRenderer.invoke('app:open-logs'),
|
|
||||||
fetchExternalMedia: (connectionId, url) => ipcRenderer.invoke('media:external', connectionId, url),
|
|
||||||
getVideoStatus: () => ipcRenderer.invoke('app:video-status'),
|
|
||||||
relaunch: () => ipcRenderer.invoke('app:relaunch'),
|
|
||||||
getUpdateState: () => ipcRenderer.invoke('update:get-state'),
|
|
||||||
checkForUpdates: () => ipcRenderer.invoke('update:check'),
|
|
||||||
downloadUpdate: () => ipcRenderer.invoke('update:download'),
|
|
||||||
installUpdate: (confirmInterrupt) => ipcRenderer.invoke('update:install', { confirmInterrupt: confirmInterrupt === true }),
|
|
||||||
openUpdateRelease: () => ipcRenderer.invoke('update:open-release'),
|
|
||||||
setUpdateChannel: (channel) => ipcRenderer.invoke('update:set-channel', channel),
|
|
||||||
onUpdateState: (callback) => subscribe('update:state', callback),
|
|
||||||
log: (level, message) => ipcRenderer.send('app:log', level, String(message)),
|
|
||||||
});
|
|
||||||
|
Before Width: | Height: | Size: 213 KiB |
@@ -1,285 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1000" height="700">
|
|
||||||
<rect width="1000" height="700" fill="#d0103a"/>
|
|
||||||
<rect width="680" height="700" fill="#fedf00"/>
|
|
||||||
<rect width="320" height="700" fill="#0018a8"/>
|
|
||||||
<g>
|
|
||||||
<path fill="#c7b37f" d="m469.37,188.48c12.051,0,16.979,10.338,29.029,10.338,7.4391,0,11.777-2.4293,18.261-6.087,4.5235-2.5618,7.4098-3.9272,12.605-3.9272,5.3188,0,8.5799,1.608,11.301,6.1669,1.5373,2.5796,2.814,7.6282,2.1378,10.525-1.2815,5.4935-2.0711,7.8814-4.2621,12.953-1.0426,2.4383-2.0278,3.8979-2.0278,6.5661,0,6.3963,8.704,8.5937,14.622,8.6852,1.2899,0.02,12.139,0.1981,18.815-6.5609-3.6222-0.1594-7.6754-2.9642-7.6754-6.5867,0-4.0992,2.8804-6.8735,6.7854-8.0573,0.74205-0.2119,2.0058,0.4432,2.6775,0.09,0.95395-0.4947,0.50765-1.5685,1.3558-2.24,1.9436-1.5547,3.2071-2.5253,5.6986-2.5253,1.6254,0,2.5779,0.2291,3.8853,1.1656,0.68913,0.4947,0.94268,1.107,1.7908,1.107,1.7846,0,2.6682-1.1309,4.4529-1.1309,1.4489,0,2.3325,0.1945,3.6044,0.8481,1.0603,0.5479,1.0367,2.3489,2.2382,2.3489,0.6008,0,3.7786-1.2953,5.4395-1.2953,3.4458,0,5.2852,1.2474,7.5117,3.8625,0.60107,0.7068,0.9852,2.1369,1.5961,2.1369,1.2303,0,4.0651,0.7924,5.832,2.5594,0.75978,0.7597,1.0966,1.1194,1.6797,2.0381,0.40663,0.654,1.0299,2.2493,1.7484,2.5256,0.84194,0.3239,1.548,0.2617,2.655,0.9714,2.5256,1.6189,4.4684,4.6622,4.3774,7.611-0.0304,0.9888-0.48176,2.3677-0.75105,3.3096-2.9409,10.284-9.9399,13.548-17.008,22.382-3.004,3.7637-5.3747,6.7673-5.3747,11.591,0,1.1664,1.436,3.3019,2.0722,4.2739-0.38862-2.2664,0.64749-5.0508,3.0433-5.1803,3.282-0.1776,5.8168,2.3176,6.2586,5.5689,0.0882,0.7598-0.19451,2.0723-0.51807,2.8492,1.7669-1.1661,4.0961-1.9543,6.2164-2.2017,1.1487-0.1238,1.813-0.1585,2.9789-0.1294,5.2453,0.1294,11.034,3.0802,14.547,6.0639,10.749,9.1305,12.049,22.492,11.462,26.203-1.3043,8.2462-0.4837,23.168-21.56,29.117,3.8977,1.6412,6.5493,4.5731,6.5493,8.1778,0,3.9227-3.0037,7.2798-6.9264,7.2798-2.2442,0-3.7992-0.5479-5.3717-2.1203-4.3822,4.3819-5.2304,8.8525-5.2304,15.054,0,3.7108,0.70688,5.9018,2.2619,9.2589,1.6431,3.5518,2.8269,5.6367,5.7957,8.1988,1.5725-2.3677,3.2336-4.0994,6.0782-4.0994,2.7566,0,5.0891,0.8836,6.2198,3.3926,0.33573,0.7598,0.0353,1.3783,0.42408,2.1203,0.49471,0.9542,1.3254,1.1664,1.8378,2.1206,0.79496,1.4664,0.018,2.7209,0.7066,4.2405,0.4418,0.9896,1.4138,1.1309,1.8378,2.1203,0.67142,1.5198,0.84815,2.5621,0.84815,4.2407,0,4.7002-4.2762,8.0576-8.9764,8.0576-1.4135,0-2.191-0.5656-3.6047-0.4241,2.686,2.6857,4.7357,3.8518,6.7854,7.0677,2.9685,4.6473,3.7105,7.9515,4.382,13.429,0.12381,1.0249,0.1416,1.6434,0.1416,2.686,0,7.0324-1.0955,11.238-4.2407,17.528-3.004,6.0253-5.5661,9.365-11.026,13.287-8.5168,6.1314-14.719,7.8986-25.02,9.8951-6.6087,1.2722-10.39,1.8378-17.105,2.2616-8.5875,0.5479-13.482,0.5657-22.052,1.131-11.238,0.7598-19.03,2.3499-26.999,10.319,3.7637,2.7563,6.361,5.4597,6.361,10.107,0,4.7706-2.9508,8.1809-7.492,9.683-1.06,0.3531-1.8375,0.035-2.8272,0.5653-1.1838,0.6185-1.1309,1.9788-2.2616,2.6857-1.9968,1.2722-3.5516,1.555-5.937,1.555-4.2055,0-7.0682-0.9894-10.037-3.9582-3.4455,2.8627-4.6118,5.4426-8.4814,7.6336-1.2725,0.7066-1.9262,1.6962-3.3926,1.6962-2.3148,0-3.3751-1.4666-5.2304-2.8272-2.9508-2.1558-4.5235-3.587-6.9267-6.361-3.5161,2.1026-5.6719,3.8166-9.7536,3.8166-2.5093,0-4.0994-0.3534-6.2198-1.6963-1.1132-0.6891-1.2899-1.714-2.4032-2.4031-1.1661-0.7243-2.1381-0.4593-3.3926-0.9894-4.718-2.032-7.7748-5.5307-7.7748-10.672,0-4.5058,2.845-7.3684,6.9266-9.2592-7.828-7.8274-15.532-9.188-26.576-9.8948-8.5343-0.5476-13.394-0.5653-21.911-1.131-6.7674-0.4592-10.531-1.1484-17.246-2.2616-5.0714-0.8304-8.075-1.0955-12.722-3.2513-15.991-7.4565-26.187-17.687-28.272-35.198-0.17671-1.5019-0.14114-2.3677-0.14114-3.8873,0-9.1176,3.5867-14.683,10.036-21.133-1.6611-0.3889-2.774,0.1589-4.3822-0.4241-4.0288-1.4666-6.9264-4.2584-6.9264-8.5523,0-1.5902,0.0707-2.6505,0.84814-4.0285,0.5476-0.9719,1.5902-1.1664,1.8375-2.2619,0.31798-1.4487-0.10603-2.4735,0.56562-3.8166,0.4415-0.9011,1.2722-1.0778,1.6963-1.9791,1.3957-2.8976,3.1452-5.2301,6.361-5.2301,2.7563,0,4.5235,1.4489,5.937,3.8166,2.686-1.2367,3.428-3.2513,4.9476-5.7954,2.5267-4.2232,3.6754-7.174,3.6754-12.086,0-3.428-0.33572-5.4423-1.4135-8.6936-0.7775-2.3322-1.0958-3.9224-2.8272-5.6541-1.5728,1.5724-3.1278,2.1203-5.3717,2.1203-4.4883,0-7.916-3.8521-7.916-8.3401,0-3.3397,1.6431-5.8132,4.6648-7.2092-2.4209-2.0849-4.5235-2.2619-7.2092-3.9579-4.082-2.5799-5.5129-5.301-8.1989-9.3298-1.7495-2.6328-2.2087-4.4703-3.11-7.4917-1.0778-3.6399-1.6963-5.8134-1.6963-9.6123,0-0.9894,0.018-1.5725,0.14115-2.5444,1.0074-7.6687,2.3857-12.475,7.2095-18.518,2.8624-3.587,4.8063-5.7957,9.047-7.6333,3.6044-1.555,5.7602-2.686,9.683-2.686,1.1838,0,1.873,0,3.0394,0.1416,1.8021,0.2297,2.9508,0.3887,4.5232,1.2723,0.6008,0.3357,1.6963,1.3428,1.6963,0.6359,0-0.8126-0.42405-1.2367-0.42405-2.0497,0-3.251,2.3325-6.2195,5.5838-6.2195,2.35,0,3.3042,2.0672,4.4529,4.0995,0.74206-1.2371,1.1307-2.0852,1.1307-3.5342,0-5.3716-2.8801-8.1102-6.2195-12.298-7.2801-9.0999-16.398-13.358-16.398-25.02,0-3.4809,1.6786-5.8488,4.6648-7.6332,0.86585-0.5127,2.0297,0,2.8779-0.5425,0.72432-0.4596,0.64133-1.395,1.1008-2.137,0.72433-1.1484,1.3656-1.6419,2.3731-2.5256,1.6608-1.4486,3.1193-1.0147,4.9568-2.2869,0.91878-0.6362,1.1357-1.4624,Line truncated
|
|
||||||
<g fill="none" stroke="#703d29">
|
|
||||||
<path stroke-width="1.041" stroke-linejoin="round" d="m425.59,223.46c0.43223,1.6315,1.7517,3.1604,3.8197,3.8068,1.2441,0.3886,4.1208,0.233,5.9868-2.177,1.5125-1.9537,1.3969-4.3735,0.83211-6.2968-0.36581-1.2447-1.3707-2.4457-2.6981-3.4683l-7.9374,8.0568-0.002,0.079z"/>
|
|
||||||
<path stroke-width="1.037" stroke-linecap="round" d="m626.61,343.94c-1.866-4.5092-6.6863-2.4879-6.9827,0-0.68323,5.7321,4.3395,7.4638,7.9158,6.5307,1.7714-0.4621,3.0673-1.5778,3.8957-3.0313,0.93454-1.64,1.2171-3.7797,0.61008-5.8235-0.27492-0.9269-0.66242-1.7073-1.3254-2.581-0.66579-0.878-1.3544-1.4791-1.9993-1.8905-1.3755-0.8779-2.8739-0.9646-5.2239-0.9646-8.7079,0-16.327,10.289-18.886,20.977-0.84278,3.52-2.0013,11.371-0.39592,18.815,1.7104,7.9301,5.1381,13.42,9.1598,17.585,2.1769,2.2546,5.1457,4.2618,8.9896,6.4351,1.1856,0.6705,4.3198,2.0609,6.4967,2.6831,2.2357,0.6388,4.3,0.5454,6.1582,0.1418,5.1598-1.1205,7.559-5.9189,4.9597-10.829-2.1279-4.0201-8.3967-6.2198-11.351-1.0885-0.25071,0.4353-0.64103,1.3836-0.62835,2.4107,0.0158,1.3682,0.58418,3.0172,1.5612,3.6391,2.2458,1.4292,5.8382,1.0251,5.6713-2.9401"/>
|
|
||||||
<path stroke-width="1.276" d="m599.69,403.07c1.7478-2.0561,5.7569-5.1403,10.343-5.7034,4.6541-0.5718,8.6986,0.7837,12.828,3.0048,8.0596,4.3347,12.554,8.9947,15.549,17.641,0.76063,2.1952,1.3915,5.5055,1.3037,9.0211-0.14025,5.604-1.5629,11.73-3.0917,14.692-1.3336,2.5835-4.8204,13.994-23.946,21.868-11.161,4.5949-28.3,5.6538-40.118,6.1204-16.256,0.6416-31.254,1.2438-39.962,11.973"/>
|
|
||||||
<g stroke-width="1.121">
|
|
||||||
<path d="m603.75,421.45c-0.46629-1.7104-0.0349-3.3501,1.3217-5.209,1.8139-2.4856,5.6756-3.3431,9.1745-1.3994,1.1703,0.6503,2.6378,1.5066,3.9649,3.2653,0.50202,0.6653,1.3504,1.7391,1.7883,2.4879,1.0586,1.8108,1.494,3.2927,1.703,3.8875,3.8453,10.928-2.2655,22.771-10.255,27.522-6.2062,3.6906-13.608,5.3357-22.469,6.3751-3.9826,0.4674-6.2569,0.4368-10.263,0.6222-3.2237,0.1493-6.0082,0.096-8.63,0.064-2.1575-0.027-4.2049-0.016-6.2969-0.064-3.4156-0.079-6.9497-0.1589-11.274,0.1556-4.5497,0.3309-7.9729,0.4477-11.818,1.0884-2.5118,0.4187-5.4558,0.8226-8.5422,1.5151-0.92609,0.2075-1.8651,0.3773-2.8092,0.6618-0.63398,0.1912-1.2604,0.3853-1.8811,0.5746-5.5717,1.6994-10.985,3.7697-15.257,6.5209-1.3198,0.8501-2.8106,1.7011-3.8771,2.7079-0.66466,0.627-1.472,1.2565-2.1237,1.8978-2.9899,2.9415-6.0473,6.1261-6.7623,10.438-0.13192,0.7955-0.13169,1.6293-0.13169,2.507,0,2.7988,2.2774,6.6084,8.4195,7.8524"/>
|
|
||||||
<path d="m516.37,229.11c1.2852,2.3241,1.992,3.7378,1.2441,6.1421-0.84731,2.7231-2.7783,4.3538-5.5202,4.3538-6.2198,0-9.8782-7.3642-7.075-12.051,4.976-8.3187,14.539-3.6466,23.402,0.4739-0.42746-2.1338-1.1734-2.8278-1.0958-5.4712,0.19315-6.5642,5.061-9.5412,7.0046-15.605,1.1577-3.6124,1.6183-6.7497-1.0251-9.3155-2.3078-2.2396-4.9819-2.2056-7.9937-1.0248-6.0174,2.3587-13.246,9.1373-25.97,9.3256-12.724-0.1883-20.012-6.9669-26.03-9.3256-3.0115-1.1808-5.686-1.2148-7.9934,1.0248-2.6435,2.5658-2.1831,5.7031-1.0252,9.3155,1.9436,6.0641,6.8116,9.0411,7.0043,15.605,0.0779,2.6434-0.66833,3.3374-1.0955,5.4712,8.8633-4.1205,18.798-9.2119,23.402-0.4739,2.5652,4.8688-0.85519,12.051-7.0752,12.051-2.7417,0-4.6673-1.7481-5.5199-4.3538-0.76005-2.3227,0-4.3538,1.2441-6.1421"/>
|
|
||||||
<path stroke-linecap="round" d="m491.5,224.79c2.4029,1.8378,4.0994,4.0994,3.8166,7.7748-0.30645,3.9863-1.2722,4.9476-4.382,7.0679"/>
|
|
||||||
<path stroke-linecap="round" d="m494.68,233.7c-0.14115,2.4029-1.1307,3.9579-3.5338,4.9473"/>
|
|
||||||
</g>
|
|
||||||
<path fill="#c7b37f" stroke="none" d="m432.4,214.49,1.0884,0.7775,1.1661,1.2441,0.7775,1.555,0.38862,1.3217,0.0779,1.7104-0.0779,1.1661-0.38862,1.3217-0.7775,0.9328-0.93312,1.0109-1.3214,0.6998-1.7106,0.3886-1.477,0.2333-1.555-0.6999-1.3994-1.0105-0.85517-1.244-0.62218-1.555,0-0.6219,7.6195-7.2306z"/>
|
|
||||||
<path stroke-width="1.041" stroke-linecap="round" d="m430.01,220.57c-0.47838-2.5813-3.4958-3.1109-4.6648-1.586-1.8001,2.3478-0.48513,6.2572,3.1759,7.4014,1.2438,0.3889,4.1205,0.2333,5.9865-2.1769,1.5125-1.9537,1.3969-4.3735,0.83208-6.2969-0.36552-1.2446-1.3642-2.3294-2.6981-3.3435-4.2511-3.2333-11.118-2.4879-13.373,2.9541-2.9086,7.0203,3.421,12.284,9.2522,16.249,7.3409,4.9918,15.705,5.8996,22.003,5.8312,14.306-0.1556,25.19-6.9973,32.265-10.884,1.6482-0.9056,3.3453-0.7207,4.1982,0.3109,0.96295,1.1644,0.94748,3.0428-0.38861,4.2759"/>
|
|
||||||
<path stroke-width="1.057" d="m387.6,414.35-3.1877,1.1663-3.2654,2.4879-1.3994,1.9436-1.7883,3.1098-0.7775,2.3325-0.6219,2.8768-0.31096,2.1766"/>
|
|
||||||
<path stroke-width="1.057" d="m405.95,414.66-0.23327,2.7991-0.46629,1.9436-1.3997,3.343-2.1769,2.8768-2.3325,1.8659-1.7104,0.8552-2.4102,0.5443"/>
|
|
||||||
<path stroke-width="1.197" d="m499.6,489.23c-0.57969,2.5878-3.0039,5.5484-8.279,6.6169,0,0-0.62556,0.1292-1.0254,0.2118"/>
|
|
||||||
<path stroke-width="1.356" d="m631.59,406.57c3.3394,3.114,5.6851,6.905,7.488,12.109,0.76064,2.1952,1.3912,5.5056,1.3034,9.0211-0.1398,5.6041-1.5626,11.73-3.0917,14.692-1.3333,2.5838-4.8201,13.994-23.946,21.868-11.161,4.5953-28.3,5.6539-40.118,6.1205-16.022,0.6326-30.822,1.2266-39.582,11.516"/>
|
|
||||||
<path stroke-width="0.929" d="m605.45,416.95c1.1881-1.6211,5.5174-3.6734,9.0163-1.7295,1.1515,0.6397,2.5163,1.4487,3.7136,3.2426"/>
|
|
||||||
<path stroke-width="1.356" d="m627.51,402.79c0.78229,0.3008,1.5604,0.5718,2.2436,0.7671,2.236,0.6387,4.3372,0.6883,6.1584,0.1418,4.4225-1.3265,7.2612-5.4589,4.9597-10.829-0.53383-1.2452-1.5556-2.4392-2.7164-3.3335"/>
|
|
||||||
<path stroke-width="1.041" stroke-linecap="round" d="m375.44,287.13c-2.9685,1.8378-5.1823,2.2728-7.492,4.9475-2.2994,4.5531-3.2034,6.9991-4.1002,10.65"/>
|
|
||||||
<path stroke-width="1.041" stroke-linecap="round" d="m435.88,221.96c0,2.6856-1.9791,4.3819-4.6648,4.9475"/>
|
|
||||||
<path stroke-width="0.997" d="m620.49,275.03c7.3898-0.1509,28.859,5.6392,29.012,30.876,0.15083,24.925-15.383,28.997-21.607,30.656"/>
|
|
||||||
<path stroke-width="1.037" d="m622.43,275.03c12.743-0.5541,25.892,8.8261,26.472,32.236,0.45249,18.289-12.517,26.584-18.742,28.243"/>
|
|
||||||
<g stroke-width="0.881">
|
|
||||||
<path d="m615.33,363.16,0.19608-2.5022,0.83407-3.9739,1.1774-3.0909,1.3245-2.5512,1.7171-2.0606"/>
|
|
||||||
<path d="m632.74,343.67-0.19451,2.449-0.69985,1.6718-1.0884,1.5939-1.2438,0.9328-1.9048,0.6996-1.6715,0.1168-1.2441-0.1945"/>
|
|
||||||
<path d="m602.33,268.42,0.54422-2.6435,1.1661-2.449,1.5162-2.4491,2.6046-3.343,2.0601-2.2937,3.343-3.3818,2.8767-2.9156,1.8271-2.0993,2.4102-2.9153,2.1381-3.2265,1.2829-2.6435,0.69955-3.4207,0.21252-4.2418-0.3886-1.2302"/>
|
|
||||||
<path d="m605.44,429.44,2.527-0.5054,1.9048-1.0108,1.0496-1.0496,0.73867-1.205,0.5054-1.9436,0.0388-1.3606"/>
|
|
||||||
<path d="m364.94,403.38,1.8662,0.1555,2.4099-0.1945,2.4102-0.8552"/>
|
|
||||||
<path d="m379.44,345.38-0.31093,2.1769-0.50539,0.9717-0.73869,0.9331-1.0108,0.7773-1.1273,0.5054-1.4773,0.2332-1.0108,0.078"/>
|
|
||||||
<path d="m388.73,326.65-0.54424,3.3819-0.66072,1.4774-1.3606,1.8659-1.8271,1.3994-1.866,0.9328-3.6154,0.8941"/>
|
|
||||||
<path d="m402.76,274.48-0.69956,2.0213-0.85516,1.4774-1.1664,1.6326-1.6327,1.4771-1.9436,0.9331-1.6327,0.3886-1.0108-0.078"/>
|
|
||||||
<path d="m394.41,272.65,0.0391,1.555"/>
|
|
||||||
</g>
|
|
||||||
<g stroke-width="0.987">
|
|
||||||
<path stroke-linecap="round" d="m397.32,325.09c-1.1273,1.0105-2.2503,1.6304-3.2654,2.0289"/>
|
|
||||||
<path stroke-linecap="round" d="m629.24,397.16c0.1335,0.1447,0.58137,0.2172,0.73866,0.3109,2.2157,1.3217,6.5774-0.3264,5.2945-3.7474"/>
|
|
||||||
<path d="m621.54,349.38c1.5725,2.0547,4.5384,2.588,6.8827,1.9765,1.7717-0.4621,3.0676-1.5781,3.8957-3.0312,0.93454-1.64,1.2173-3.7798,0.61038-5.8239-0.27522-0.9266-0.66242-1.7069-1.3254-2.581-0.66608-0.8777-1.492-1.8111-2.1322-2.2298-0.16974-0.111-0.33908-0.2614-0.51834-0.383"/>
|
|
||||||
<path d="m638.99,390.46c0.0678-0.365,0.10333-0.7409,0.10333-1.125,0-1.8105-0.75725-3.468-2.0092-4.5857-0.42746-0.3816-0.84138-0.9736-1.3594-1.2328"/>
|
|
||||||
<path d="m636.47,384.25c-0.0727-2.9123-2.456-4.9954-5.4099-5.5135"/>
|
|
||||||
<path d="m624.54,383.17c-0.67874-0.5544-1.4064-1.0246-2.0418-1.6895-3.8259-4.0044-6.7038-9.9242-6.7423-16.677-0.0369-6.4737,2.5658-13.062,5.5979-15.627"/>
|
|
||||||
<path d="m533.07,481.44,2.7988-2.5658,1.9439-1.4771,3.654-2.2546,3.421-1.6326,2.4102-0.6222,4.8204-1.0882,5.5979-0.8554"/>
|
|
||||||
<path d="m511.61,501.2c-2.0216,3.11-6.842,7.7747-11.896,9.6407-5.0536-1.866-9.8738-6.5307-11.895-9.6407"/>
|
|
||||||
<path stroke-linecap="round" d="m491.28,494.73c-0.63372,2.3489-1.7852,4.626-3.4677,6.4511"/>
|
|
||||||
<path d="m491.78,491.47-0.69983,3.4206"/>
|
|
||||||
<path d="m487.43,501.42-1.4771,1.4773-2.6435,1.4771-3.0321,0.9331"/>
|
|
||||||
<path d="m471.46,227.45c0.37933-1.1821,0.7671-2.0719,0.70996-4.0144-0.19315-6.5642-5.0607-9.5412-7.0046-15.606-1.1577-3.612-1.618-6.7494,1.0254-9.3152,2.3075-2.2396,4.9816-2.2058,7.9934-1.0251,6.0174,2.359,13.308,9.1376,26.032,9.3259-12.724-0.1882-20.015-6.9669-26.032-9.3259-3.0118-1.1807-5.9347-1.5255-8.2425,0.7142-2.6432,2.5658-1.9341,6.0141-0.77639,9.6261,1.9439,6.0644,6.5628,9.0414,6.7558,15.606,0.0572,1.9425-0.45501,2.8323-0.83406,4.0144"/>
|
|
||||||
<path d="m500.18,206.37c12.517-0.661,23.245-9.0712,26.706-9.7573,3.0856-0.612,4.8086-0.3354,7.0721,1.7213-2.2636-2.0567-4.8418-1.9931-7.7706-0.845-6.0175,2.359-13.246,9.1376-25.97,9.3259"/>
|
|
||||||
<path d="m624.59,383.2c-5.209-3.7319-9.672-10.856-9.7184-19.274-0.036-6.4739,2.5655-13.061,5.5976-15.627"/>
|
|
||||||
<path d="m511.17,500.76c-2.0213,3.1097-6.8416,7.7748-11.895,9.6404-5.0536-1.8656-9.874-6.5307-11.895-9.6404"/>
|
|
||||||
<path stroke-linecap="round" d="m479.17,230.74c1.3018-0.7209,2.5101-1.4064,3.6244-2.0184,1.6482-0.9056,3.6292-0.7157,4.4821,0.316,0.96266,1.1644,1.1104,3.1826-0.22542,4.416"/>
|
|
||||||
<path d="m460.48,239.49c8.5875-1.7922,15.585-5.6381,20.875-8.5967"/>
|
|
||||||
<path d="m531.78,487.43c0.70997,0.4843,1.1661,1.4926,1.1661,1.4926,0.19675,0.4685,0.45052,0.9114,0.52088,1.3268,0.40352,2.3784-1.156,3.8605-3.0828,4.0848-2.6477,0.3078-4.6352-1.2652-5.4825-3.17"/>
|
|
||||||
<path d="m460.04,239.05c8.5875-1.7925,15.585-5.6384,20.875-8.5968"/>
|
|
||||||
<path d="m633.38,397.49c-1.6327,0.6292-2.5258,0.544-4.557-0.3579-0.8338-0.3703-1.7883-0.9435-2.9066-1.5784-3.9807-2.2607-8.7079-5.8238-13.139-14.143-1.3105-2.4602-2.1246-4.7432-2.6728-6.9922-0.42266-1.7354-0.71587-3.4505-0.7792-5.2112-0.10783-3,0.21499-6.1323,0.96381-9.721,1.2365-5.9254,2.7251-9.1432,6.3754-14.15,1.7953-2.4622,3.3433-3.9649,6.6863-4.0425"/>
|
|
||||||
<path d="m398.83,279.88c2.7794,2.3623,4.1208,5.2866,4.1208,8.9409,0,4.8409-4.0502,12.75-14.002,15.549-3.8138,1.0724-7.5882,0.2073-9.8706-1.1807"/>
|
|
||||||
<path d="m400.46,296.28c1.7883,1.2438,2.4881,2.6406,2.4881,5.0697,0,1.6647-1.0763,3.8228-2.9074,5.8666-2.9977,3.3461-8.0821,6.1897-13.716,6.2603-3.0563,0.038-6.2294-0.6008-9.4218-2.7358-3.4131-2.2821-5.2093-5.3643-5.9868-8.3967"/>
|
|
||||||
<path d="m400.3,306.71c2.0258,1.8623,2.648,4.1932,2.648,7.129,0,4.2891-1.7424,7.5998-5.7493,11.107-0.89598,0.784-1.9048,1.5187-3.0329,2.1783"/>
|
|
||||||
<path d="m596.4,292.63,0,5.5188"/>
|
|
||||||
<path d="m595.96,291.27,0,7.774"/>
|
|
||||||
<path d="m596.4,274.44,0,10.185"/>
|
|
||||||
<path d="m595.96,272.19,0,13.918"/>
|
|
||||||
<path d="m592.99,414.17c-1.9304,3.8352-3.4727,5.8492-6.5307,8.8632-3.0855,3.0408-5.2239,4.4343-9.0965,6.3751-3.7719,1.8905-6.1477,2.4916-10.263,3.421-4.1124,0.9286-6.5175,1.131-10.729,1.3215-3.8619,0.1751-6.0529,0.014-9.9095-0.2544-4.1276-0.2856-6.4168-0.8608-10.538-1.2227-3.4038-0.2988-5.3263-0.5741-8.7434-0.5656-3.5122,0.01-5.5247,0.031-8.9831,0.6433-3.2234,0.5709-5.052,1.0257-8.0857,2.2548-4.1976,1.7005-8.9412,4.6648-9.9517,5.9865-1.0108-1.3217-5.7541-4.286-9.952-5.9865-3.0338-1.2291-4.8623-1.6839-8.0855-2.2548-3.459-0.6124-5.471-0.6346-8.9834-0.6433-3.417-0.01-5.3395,0.2668-8.7434,0.5656-4.1211,0.3619-6.4106,0.9371-10.538,1.2227-3.8566,0.2668-6.0473,0.4294-9.9092,0.2544-4.212-0.1905-6.6174-0.3903-10.729-1.3215-4.1149-0.9317-6.4888-1.5347-10.263-3.421-3.8752-1.9368-6.011-3.3343-9.0965-6.3751-0.33318-0.3286-0.64864-0.6452-0.94832-0.9536"/>
|
|
||||||
<path d="m478.8,505.47,2.7988-0.3497"/>
|
|
||||||
<path d="m528.9,501.44,2.825-0.269,2.6907-1.0763,1.8834-1.1437,2.5562-3.027,0.53774-1.1436,0.40382-2.6235,0.13462-1.2108"/>
|
|
||||||
<path d="m613.23,277.36c1.2131-4.1276-0.2676-8.4831-4.2663-8.3657"/>
|
|
||||||
<path d="m402.79,341.75c-1.0136,3.4281-3.1939,5.7702-5.6198,7.2934"/>
|
|
||||||
<path d="m402.86,276.05c-0.99953,2.8889-2.8289,4.953-5.7237,6.2604-2.8866,1.3037-6.2274,0.086-8.014-1.2922"/>
|
|
||||||
<path stroke-linecap="round" d="m380.95,291.2c2.3922,1.2526,4.8195-0.5836,4.3217-3.6959-0.23329-1.4576-1.8052-3.2988-3.9328-3.4333"/>
|
|
||||||
<path d="m390.87,422.86c0.51553,0.4852,0.62583,1.1149,1.3218,1.2438,1.0496,0.1945,1.866,0.5831,2.9156-0.8163,1.2939-1.725,0.59855-4.4082-0.7474-6.0974-1.4405-1.808-5.6134-3.4055-9.112-1.4616-1.1706,0.6503-2.6381,1.5063-3.9652,3.2654-0.50172,0.6649-1.3504,1.739-1.788,2.4878-1.0589,1.8108-1.494,3.2924-1.7033,3.8873-3.2012,9.0979,0.59995,18.664,6.4885,24.493"/>
|
|
||||||
<path stroke-linecap="round" d="m531.59,487.23c0.63794,0.6647,1.0105,1.2441,1.0105,1.2441,0.19675,0.4682,0.35708,0.9112,0.42773,1.3268,0.40323,2.3784-1.156,3.8605-3.083,4.0845-2.6477,0.3082-4.4197-1.2519-5.2672-3.1567"/>
|
|
||||||
<path d="m608.5,216.81c5.2278,0.6376,9.7837,5.6277,9.7837,10.992,0,6.9194-2.3311,9.4961-5.9741,14.446-3.8985,5.2973-16.638,15.005-16.638,26.045,0,6.6864,1.866,10.962,6.6863,13.139,3.1081,1.4036,6.7423-0.1157,8.3967-1.6107,4.0429-3.6543,2.4265-10.062-1.788-10.828-5.1316-0.9332-6.096,7.145-1.0885,6.6083"/>
|
|
||||||
<path d="m635.73,383.51c-0.45954-2.7701-2.8132-4.8795-5.648-4.8795-3.1638,0-5.7287,2.628-5.7287,5.87,0,1.5877,0.61514,3.0281,1.6147,4.0848"/>
|
|
||||||
<path d="m599.79,279.88c-2.7794,2.3623-4.1208,5.2866-4.1208,8.9409,0,4.8409,4.0502,12.75,14.002,15.549,3.8135,1.0724,7.4574,0.9714,9.7398-0.4168"/>
|
|
||||||
<path d="m375.61,287.8c-2.3784,0.7938-5.3486,2.2774-7.5497,5.3953-1.8561,2.6297-2.9384,6.2856-3.6087,9.4846-0.29321,1.3999-0.64301,5.832,0.2524,10.41,0.6613,3.3805,2.0573,6.5271,3.6016,8.8064,0.5535,0.8169,1.0558,1.3671,1.6206,1.9318,0.51778,0.5178,1.2528,0.9751,1.7737,1.3727"/>
|
|
||||||
<path d="m471.72,469.02c7.5764,3.3588,13.13,5.8745,17.839,13.31,1.4771,2.3325,1.866,5.6756,1.866,7.6192,0,4.1982-1.7106,8.9409-5.2093,11.895-3.2462,2.7414-6.4531,3.5763-10.418,3.1877-3.007-0.2949-5.8309-2.4878-6.2974-4.0428"/>
|
|
||||||
<path d="m396.88,325.2c4.2762,3.3431,6.0644,6.5862,6.0644,11.74,0,5.9085-2.8767,9.5627-6.2201,11.662"/>
|
|
||||||
<path stroke-linecap="round" d="m392.99,344.41c6.3751,7.9301,9.7578,12.637,9.9517,22.08,0.18146,8.8627-2.6435,14.927-7.9304,21.303"/>
|
|
||||||
<path d="m515.23,239.57c1.1591-0.7609,2.0098-1.9791,2.4974-3.4848,0.75302-2.3252,0.76908-4.3077-0.47471-6.0957,1.5345,2.0081,1.6757,3.7043,1.2438,6.1418-0.27465,1.5522-1.2644,2.3685-2.4974,3.4849"/>
|
|
||||||
<path d="m596.4,374.24,0,25.241,0.0668,0c0,0.018-0.009,2.3888-0.21183,3.8872-0.13305,0.9824-0.27155,1.8705-0.42857,2.7023"/>
|
|
||||||
<path d="m595.96,371.81,0,27.223,0.0673,0.0003c0,0.018-0.009,2.3885-0.21183,3.8872-0.21184,1.5624-0.43701,2.8869-0.72939,4.1245"/>
|
|
||||||
<path d="m595.96,339.94,0,22.702"/>
|
|
||||||
<path d="m596.4,341.73,0,18.463"/>
|
|
||||||
<path d="m596.4,318.25,0,13.841"/>
|
|
||||||
<path d="m595.96,316.62,0,17.064"/>
|
|
||||||
<path d="m596.4,304.1,0,5.3693"/>
|
|
||||||
<path d="m595.96,303.01,0,7.7762"/>
|
|
||||||
<path d="m593.08,412.65c-0.16546,0.3503-0.34189,0.7108-0.5296,1.0842-1.9304,3.8352-3.473,5.8492-6.531,8.863-3.0853,3.0411-5.2236,4.4343-9.0965,6.3754-3.7716,1.8901-6.1475,2.4915-10.263,3.421-4.1121,0.9286-6.5175,1.1309-10.729,1.3214-3.8617,0.1747-6.0529,0.011-9.9092-0.2547-4.1276-0.2853-6.4168-0.8605-10.538-1.2224-3.4038-0.2991-5.3263-0.5743-8.7431-0.5656-3.5124,0.01-5.5244,0.031-8.9831,0.6433-3.2234,0.5707-5.052,1.0254-8.086,2.2546-4.1976,1.7007-8.9409,4.6647-9.9517,5.9865-1.0108-1.3218-5.7538-4.2858-9.9517-5.9865-3.0338-1.2292-4.8623-1.6839-8.0857-2.2546-3.4587-0.6123-5.471-0.6345-8.9834-0.6433-3.4168-0.01-5.3393,0.2665-8.7431,0.5656-4.1214,0.3619-6.4108,0.9371-10.538,1.2224-3.8566,0.2668-6.0473,0.4294-9.9095,0.2547-4.212-0.1904-6.6171-0.39-10.729-1.3214-4.1146-0.9323-6.4891-1.534-10.263-3.421-3.8749-1.9378-6.0113-3.3343-9.0965-6.3754-1.6155-1.5922-2.8081-2.9055-3.8583-4.3555"/>
|
|
||||||
<path d="m406.42,413.26c0.66553,4.9422-1.4129,9.7995-3.5228,12.034-1.3217,1.3994-4.2005,4.0736-7.7748,4.1205-5.9088,0.078-7.6726-3.9863-8.0306-4.9757"/>
|
|
||||||
<path d="m399.4,410.7c1.0966,1.0829,2.07,2.4049,2.8934,3.965,1.4771,2.7988,1.022,7.4801-0.14834,9.6407-0.12856,0.2375-0.28789,0.4894-0.47474,0.7482"/>
|
|
||||||
<path d="m370.04,453.2c3.5136,3.6874,8.8275,7.692,16.99,11.052,11.161,4.5953,28.3,5.6539,40.118,6.1205,15.715,0.6204,30.193,1.266,39.01,10.998"/>
|
|
||||||
<path d="m493.29,475.01c2.5982,2.556,5.247,5.2954,6.3658,8.798"/>
|
|
||||||
<path d="m488.18,501.7c-0.33966,0.3625-0.70069,0.7066-1.0831,1.0297-3.2462,2.7411-6.4531,3.5763-10.418,3.1874-3.007-0.2947-5.9077-2.5478-6.6852-4.0252"/>
|
|
||||||
<path d="m461.63,497.35c0.14498,0.1981,0.29742,0.3906,0.45726,0.5766,1.8876,2.1983,4.8674,3.576,7.9777,3.8332"/>
|
|
||||||
<path d="m512.05,501.64c-2.0216,3.1098-6.842,7.7745-11.895,9.6405-5.0537-1.866-9.874-6.5307-11.896-9.6405-0.16344-0.2518-0.3208-0.4938-0.4719-0.7266"/>
|
|
||||||
<path d="m512.13,501.62c0.36074,0.3917,0.74626,0.7624,1.1562,1.1088,3.2462,2.7411,6.4531,3.5763,10.418,3.1874,3.007-0.2947,5.395-2.3036,6.3596-4.0429,0,0,0.54113-0.5816,0.69252-1.1366"/>
|
|
||||||
<path d="m529.75,500.99-1.1605,1.8666-1.7655,1.4633-2.6739,1.1098-2.4214,0.1011"/>
|
|
||||||
<path d="m536.03,483.22c1.4306,1.0969,2.8354,2.7594,3.5985,4.5342,0.49076,1.1411,0.71813,2.3956,0.78792,3.6976,0.13215,2.4682-0.73502,4.7413-2.2228,6.4739-1.9974,2.326-5.113,3.7336-8.4288,3.8664-0.24679,0.01-0.49188,0.011-0.73445,0"/>
|
|
||||||
<path d="m529.32,501.35,0,0c-3.1706,0.1271-6.0037-1.2312-8.0925-3.3754"/>
|
|
||||||
<path d="m620.72,391.93c-2.4738-2.2799-5.0362-5.4397-7.5069-10.077-1.3105-2.4603-2.1246-4.7433-2.6725-6.9925-0.42292-1.7354-0.71587-3.4505-0.77917-5.211-0.10784-3.0002,0.21498-6.1322,0.96378-9.7212,1.2362-5.9251,3.4426-10.509,6.3754-14.15,0.99982-1.2418,2.1544-2.7915,3.2507-3.4879"/>
|
|
||||||
<path d="m618.2,223.83c3.9652,0.3109,7.6386,4.5792,7.5902,8.7639-0.0703,6.0782-2.1082,8.5894-6.8906,14.545-4.1205,5.1313-16.482,14.15-16.171,22.78,0.0551,1.5316,0.88023,3.1154,1.8021,4.3895"/>
|
|
||||||
<path d="m599.59,279.72c0.87826,0.8672,1.9405,1.5839,3.2068,2.1558,2.2613,1.0212,4.8012,0.4952,6.6543-0.4432"/>
|
|
||||||
<path d="m576.37,213.9c1.3276,0.9044,2.6814,2.2909,3.4151,4.0614,2.9082,7.0204-3.421,12.284-9.2522,16.249-4.181,2.8429-8.6941,4.3614-12.968,5.1288"/>
|
|
||||||
<path d="m569.69,227.43c-1.4138-0.014-3.0945-0.417-4.9203-2.3393-0.42041-0.4426-0.91259-1.0276-1.1053-1.553"/>
|
|
||||||
<path d="m540.45,231.2c-0.73839-0.3703-1.5314-0.9092-2.0626-1.5038-1.3864-1.5505-2.3103-3.6498-1.2424-6.8532,0.98742-2.9626,5.7462-11.274,5.9794-17.027,0.35626-8.7895-3.0242-13.977-8.312-16"/>
|
|
||||||
<path stroke-linecap="round" d="m542.68,203.85-0.20644,3.3051-0.89485,3.374-1.7213,4.6129-1.3082,2.9606-1.3769,2.9609-0.68858,2.0658-0.2755,1.5148,0.20688,1.4458"/>
|
|
||||||
<path stroke-linecap="round" d="m595.81,423.4c0.27211,0.6607,0.93284,1.3059,0.93284,1.3059,1.0108,1.6873,4.9402,4.6547,8.5146,4.7016,5.9088,0.078,7.3119-4.0572,7.4638-4.9757,0.746-4.5088-0.79607-5.7425-3.11-7.0127,0,0-1.3617-0.7055-2.9944-0.4334"/>
|
|
||||||
<path d="m370.23,403.67c-2.086,0.5341-4.0454,0.547-5.7574,0.033-4.4228-1.3265-8.0067-5.5636-6.1795-10.829"/>
|
|
||||||
<path d="m379.21,343.15c0.44292,0.4446,0.58559,1.1076,0.65284,1.6701,0.68324,5.7318-4.3395,7.4016-7.9158,6.4685-1.7714-0.462-3.8824-2.1068-4.7106-3.56-0.59713-1.0473-0.95902-2.2987-0.9621-3.5988"/>
|
|
||||||
<path d="m400.74,307.15c0.89571,0.8234,1.517,1.7382,1.9315,2.7566"/>
|
|
||||||
<path d="m400.9,296.6c0.82957,0.5771,1.425,1.3116,1.8249,2.0424"/>
|
|
||||||
<path stroke-linecap="round" d="m402.91,303.94c-0.48316,1.1906-1.3172,2.4752-2.4304,3.7178-2.9978,3.3459-8.0821,6.1894-13.716,6.26-3.0563,0.038-6.2294-0.6007-9.4218-2.7354-3.4131-2.2825-5.6381-5.5281-6.3768-8.7158"/>
|
|
||||||
<path d="m399.11,280.13c1.7306,1.4711,3.0594,3.3467,3.6982,5.2945"/>
|
|
||||||
<path stroke-linecap="round" d="m402.86,292.56c-1.3842,4.5739-5.5104,10.231-13.473,12.248-3.8037,0.9638-8.702-0.2412-10.374-1.6639"/>
|
|
||||||
<path d="m375.06,291.49c0.41674,4.1205,3.1742,7.2089,8.4012,7.3077,7.3502,0.1386,11.818-10.574,5.2869-18.094"/>
|
|
||||||
<path stroke-linecap="round" d="m358.52,327.39c1.0738,1.3471,2.3373,2.561,3.6298,3.6365,2.6212,2.1814,5.7118,4.1014,9.2721,5.1528"/>
|
|
||||||
<path stroke-linecap="round" d="m379.67,336.95c6.569-0.789,10.272-5.6837,9.538-11.41-0.55941-4.3633-4.5629-7.7182-7.2849-7.9123"/>
|
|
||||||
<path d="m390.39,268.92c2.8494-0.1053,4.4703,2.4831,4.4444,4.6645"/>
|
|
||||||
<path stroke-linecap="round" d="m389.72,229.81c1.5609,4.0831,4.6034,7.2753,7.8606,9.099"/>
|
|
||||||
<path stroke-linecap="round" d="m622.86,287.29c2.6862,3.6785,0.92722,10.932-6.379,11.07-2.854,0.054-5.4291-1.5283-6.9385-3.9244"/>
|
|
||||||
<path d="m596.4,239.25,0,24.686"/>
|
|
||||||
<path stroke-linecap="round" d="m380.87,291.14c2.2548,1.6324,5.1502-1.1239,4.0296-4.0493-0.75614-1.9752-3.5631-4.1071-7.4504-1.4636-4.2933,2.9192-3.11,12.129,5.1313,12.284,7.3499,0.1387,11.818-10.574,5.2869-18.093-6.2828-7.2342-17.727-5.5419-25.19,0.3959-3.1762,2.5264-9.1745,9.1452-11.04,18.164-0.5811,2.8081-0.9562,5.1122-0.91203,7.9301,0.0292,1.8567,0.20058,3.9365,0.7564,6.5307,1.1231,5.2403,2.9679,9.0797,4.8055,11.745,0.70406,1.0218,1.347,1.871,2.0365,2.5605,1.279,1.2789,1.662,1.9565,2.9541,3.032,4.2235,3.5147,9.665,6.2699,16.327,5.9865,7.3082-0.3112,11.507-5.4422,10.729-11.507-0.75359-5.879-6.6903-8.8052-10.574-6.0641-2.6435,1.8659-3.5839,7.6445,1.0884,9.0185,2.6435,0.7776,4.9757-2.5655,3.1098-4.5091"/>
|
|
||||||
<path stroke-linecap="round" d="m584.4,210.68c4.2179-2.2909,7.4692-1.8668,9.874,1.47,2.6134,3.6262,2.9862,8.4525,2.4102,11.28-0.85519,4.1985-2.0686,5.942-5.4074,8.9876"/>
|
|
||||||
<path stroke-linecap="round" d="m594.58,212.55c4.8204-3.1874,10.041-1.8336,12.906,2.4102,2.0992,3.1097,2.6358,5.7121,2.4878,9.5627-0.25353,6.6003-4.3839,11.832-8.9409,14.383"/>
|
|
||||||
<path d="m617.28,223.67c3.9649,0.3109,7.1526,3.9007,7.1526,8.0857,0,5.9865-1.6707,8.5836-6.4531,14.539-4.1205,5.1313-16.482,14.15-16.171,22.78,0.11774,3.2634,2.8686,6.3383,5.2419,6.5094"/>
|
|
||||||
<path stroke-linecap="round" d="m617.75,291.14c-2.2546,1.6324-5.1313-1.0035-3.8873-3.8026,0.85884-1.9326,3.421-4.3538,7.3082-1.7103,4.2933,2.9192,3.11,12.129-5.1313,12.284-7.3502,0.1387-12.317-10.297-5.2869-18.093,6.4165-7.1158,18.315-5.7234,25.778,0.2141,3.1761,2.5267,9.5659,9.466,10.936,18.573,1.658,11.02,1.4455,24.575-9.9365,32.922-4.5767,3.356-10.918,4.8817-16.516,4.6364-7.308-0.3205-11.506-5.4423-10.729-11.507,0.75386-5.8791,6.4153-8.3675,10.574-6.0642,4.3192,2.3924,3.565,8.4659-1.0884,9.0186-2.7361,0.325-4.976-2.5655-3.11-4.5092"/>
|
|
||||||
<path d="m613.86,287.34c1.212-5.4543,5.8846-5.9623,9.6576-5.9068,10.296,0.1508,17.416,12.364,17.535,24.178,0.15083,14.923-6.334,23.711-17.241,24.178-2.8221,0.1211-7.6839-1.2213-7.7675-4.6648"/>
|
|
||||||
<path stroke-linecap="square" d="m620.2,284.9c10.858,2.413,14.67,12.196,14.67,21.532,0,7.6158-0.75416,18.022-15.575,21.682"/>
|
|
||||||
<path d="m638.11,389.58c0.0677-0.3647,0.10356-0.7406,0.10356-1.125,0-3.3706-2.7327-6.103-6.1033-6.103-3.3709,0-6.1033,2.7324-6.1033,6.103,0,1.9394,0.90469,3.6675,2.3151,4.7854"/>
|
|
||||||
<path stroke-linecap="round" d="m616.33,380.33c2.0432,3.0321,4.5165,6.4035,9.7401,9.2375"/>
|
|
||||||
<path stroke-linecap="round" d="m624.11,406.05c-5.1195-3.3587-14.838-7.7615-23.624-3.4277-3.2589,1.6077-5.4423,3.5963-6.6751,6.8397-2.2197,5.8393,0.26143,12.275,2.7878,14.949,1.3217,1.3994,4.2004,4.0735,7.7748,4.1208,5.9086,0.078,7.3133-4.0572,7.4636-4.976,0.69983-4.2759-1.788-5.9865-3.1098-6.453-1.0139-0.3577-4.3122-0.2662-5.012,2.0654-0.233,0.7773-0.27494,2.133,0.34725,3.1438"/>
|
|
||||||
<path stroke-linecap="round" d="m531.99,488.16c1.6327,3.343-0.22422,5.0235-2.4878,5.2866-3.343,0.3887-5.1313-2.2545-5.3646-4.6647-0.37819-3.9081,2.9159-7.4492,6.842-7.3859,3.5352,0.057,6.4145,2.3376,7.7644,5.4766,0.49047,1.1411,0.71783,2.3952,0.78763,3.6976,0.13259,2.4678-0.73473,4.7413-2.2228,6.4736-1.9974,2.326-5.1128,3.7336-8.4285,3.8664-6.6002,0.2648-11.74-5.9085-11.74-12.206,0-12.051,17.872-18.623,24.957-20.314,8.7076-2.0775,14.006-2.8553,27.989-3.6323,5.5979-0.3109,9.6973-0.1531,15.861-0.7921,5.5152-0.5715,8.3967-0.8405,14.072-2.1623,7.0828-1.6493,13.684-4.5871,19.592-9.9517,4.5502-4.1309,7.1529-7.0749,9.2592-12.75,1.8178-4.8975,2.653-14.596-1.9509-21.769-4.0688-6.3399-9.7184-9.6331-16.171-10.566-5.8292-0.8428-10.942,1.6726-13.995,7.4565-1.4771,2.7988-1.022,7.4799,0.14836,9.6404,1.0108,1.866,3.8968,4.6178,7.4712,4.6651,5.9086,0.078,7.3133-4.0572,7.4636-4.976,0.69983-4.2759-1.788-5.9865-3.1098-6.453-1.0139-0.3577-4.3122-0.2662-5.012,2.0654-0.233,0.7773-0.27494,2.133,0.34725,3.1438"/>
|
|
||||||
<path stroke-linecap="round" d="m526.9,469.02c-7.5764,3.3588-13.13,5.8745-17.839,13.31-1.4774,2.3325-1.866,5.6756-1.866,7.6192,0,4.1982,1.7103,8.9409,5.2093,11.895,3.2462,2.7414,6.4528,3.5763,10.418,3.1877,3.007-0.2949,5.8312-2.4878,6.2977-4.0428"/>
|
|
||||||
<path d="m601.73,325.2c-3.5448,1.1825-6.0644,6.5862-6.0644,11.74,0,5.9085,2.8767,9.5627,6.2198,11.662"/>
|
|
||||||
<path stroke-linecap="round" d="m605.62,344.41c-6.3754,7.9301-9.7578,12.637-9.9517,22.08-0.1819,8.8627,2.6435,14.927,7.9304,21.303"/>
|
|
||||||
<path d="m571.64,212.58c0.16411-0.2443,0.34557-0.513,0.54731-0.8096,2.6435-3.8873,7.3116-4.9116,10.729-2.3323,4.1206,3.1098,5.1612,8.4023,4.0429,13.994-0.69985,3.4987-3.0732,6.4128-6.325,8.5211"/>
|
|
||||||
<path stroke-linecap="round" d="m414.22,210.68c-4.0432-1.8657-7.371-1.5066-9.874,1.47-2.8768,3.421-2.9865,8.4525-2.4102,11.28,0.8552,4.1985,2.0683,5.942,5.4074,8.9876"/>
|
|
||||||
<path d="m404.03,212.55c-4.8201-3.1874-10.041-1.8336-12.906,2.4102-2.0992,3.1097-2.6358,5.7121-2.4881,9.5627,0.25382,6.6003,4.3842,11.832,8.9412,14.383"/>
|
|
||||||
<path d="m390.12,216.81c-5.2278,0.6376-9.4004,5.0688-9.4004,10.433,0,6.9196,1.7033,9.7184,5.5906,15.005,3.8965,5.299,16.638,15.005,16.638,26.045,0,6.6864-1.866,10.962-6.6863,13.139-3.1083,1.4036-6.7423-0.1157-8.3967-1.6107-4.0432-3.6543-2.4265-10.062,1.788-10.828,5.1313-0.9332,6.0957,7.145,1.0884,6.6083"/>
|
|
||||||
<path d="m381.33,223.67c-3.9652,0.3109-7.8665,3.7229-7.8665,7.9079,0,5.9865,2.3846,8.7614,7.1667,14.716,4.1208,5.1313,15.762,13.972,15.451,22.602-0.11729,3.2634-2.3111,7.2531-4.488,6.7865"/>
|
|
||||||
<path stroke-linecap="round" d="m372,343.94c1.866-4.5092,6.6864-2.4879,6.9829,0,0.68324,5.7321-4.3395,7.4638-7.9158,6.5307-1.7714-0.4621-3.0676-1.5778-3.8957-3.0313-0.93454-1.64-1.2171-3.7797-0.61037-5.8235,0.27521-0.9269,0.66271-1.7073,1.3257-2.581,0.6658-0.878,1.3541-1.4791,1.9991-1.8905,1.3755-0.8779,2.8742-0.9646,5.2242-0.9646,8.7076,0,16.327,10.289,18.886,20.977,0.84278,3.52,2.0013,11.371,0.39592,18.815-1.7106,7.9301-5.1384,13.42-9.1598,17.585-2.1769,2.2546-5.146,4.2618-8.9896,6.4351-1.1856,0.6705-4.3198,2.0609-6.4967,2.6831-2.236,0.6388-4.3369,0.688-6.1582,0.1418-4.4225-1.3268-7.2612-5.4591-4.9596-10.829,1.7916-4.1808,8.3967-6.2198,11.351-1.0885,0.25071,0.4353,0.64073,1.3836,0.62836,2.4107-0.0158,1.3682-0.58419,3.0172-1.5615,3.6391-2.2459,1.4292-5.8382,1.0251-5.6711-2.9401"/>
|
|
||||||
<path d="m365.24,397.49c1.6327,0.6292,2.5258,0.544,4.5573-0.3579,0.8335-0.3703,1.7883-0.9435,2.9066-1.5784,3.9804-2.2607,8.7076-5.8238,13.139-14.143,1.3105-2.4602,2.1246-4.7432,2.6725-6.9922,0.42293-1.7354,0.71588-3.4505,0.77919-5.2112,0.10805-3-0.215-6.1323-0.96378-9.721-1.2362-5.9254-2.7251-9.1432-6.3754-14.15-1.7951-2.4622-3.343-3.9649-6.6864-4.0425"/>
|
|
||||||
<path d="m360.51,389.58c-0.0678-0.3647-0.10332-0.7406-0.10332-1.125,0-3.3706,2.7324-6.103,6.1033-6.103,3.3706,0,6.103,2.7324,6.103,6.103,0,1.9394-0.90442,3.6675-2.3148,4.7854"/>
|
|
||||||
<path d="m362.88,383.51c0.45954-2.7701,2.8132-4.8795,5.6477-4.8795,3.1641,0,5.729,2.628,5.729,5.87,0,1.5877-0.61514,3.0281-1.6147,4.0848"/>
|
|
||||||
<path d="m374.02,383.2c5.209-3.7319,9.672-10.856,9.7184-19.274,0.0358-6.4739-2.5658-13.061-5.5976-15.627"/>
|
|
||||||
<path stroke-linecap="round" d="m382.29,380.33c-2.0432,3.0321-4.5165,6.4035-9.7404,9.2375"/>
|
|
||||||
<path d="m397.81,402.63c-1.4489-3.4089-4.3288-4.9853-9.0189-5.4856-4.6625-0.4978-8.6986,0.7837-12.828,3.0048-8.0598,4.3346-12.554,8.9946-15.55,17.641-0.76034,2.1952-1.3912,5.5056-1.3034,9.0211,0.14025,5.6041,1.5629,11.73,3.0917,14.692,1.3336,2.5835,4.8204,13.994,23.946,21.868,11.161,4.5949,28.3,5.6539,40.118,6.1201,16.256,0.6419,31.255,1.2441,39.962,11.973"/>
|
|
||||||
<path stroke-linecap="round" d="m374.5,406.05c5.1198-3.3587,14.838-7.7615,23.624-3.4277,3.2589,1.6077,5.4423,3.5963,6.6751,6.8397,2.2197,5.8393-0.2617,12.275-2.7878,14.949-1.3217,1.3994-4.2004,4.0735-7.7748,4.1208-5.9088,0.078-7.3133-4.0572-7.4636-4.976-0.69983-4.2759,1.788-5.9865,3.1098-6.453,1.0139-0.3577,4.3122-0.2662,5.0117,2.0654,0.23327,0.7773,0.27491,2.133-0.34698,3.1438"/>
|
|
||||||
<path d="m394.86,421.45c0.46656-1.7104,0.22651-3.5063-1.3215-5.209-1.555-1.7104-5.6756-3.3431-9.1745-1.3994-1.1703,0.6503-2.6381,1.5066-3.9649,3.2653-0.50202,0.6653-1.3504,1.7391-1.7883,2.4879-1.0589,1.8108-1.494,3.2927-1.7033,3.8875-3.845,10.928,2.413,22.532,10.256,27.522,6.8416,4.3538,13.839,5.5979,22.469,6.3751,3.9936,0.3599,6.2566,0.4368,10.263,0.6222,3.2237,0.1493,6.0082,0.096,8.63,0.064,2.1575-0.027,4.2049-0.016,6.2969-0.064,3.4156-0.079,6.9494-0.1589,11.274,0.1556,4.5497,0.3309,7.9729,0.4477,11.818,1.0884,2.5115,0.4187,5.4558,0.8226,8.5422,1.5151,0.92609,0.2075,1.8651,0.3773,2.8089,0.6618,0.63427,0.1912,1.2604,0.3853,1.8814,0.5746,5.5714,1.6994,10.985,3.7697,15.257,6.5209,1.3198,0.8501,2.8402,1.6707,3.8771,2.7079,0.7958,0.7956,1.472,1.2565,2.1234,1.8978,2.9902,2.9415,6.0476,6.1261,6.7626,10.438,0.13191,0.7955,0.1317,1.6293,0.1317,2.507,0,2.7988-2.2774,6.6084-8.4195,7.8524"/>
|
|
||||||
<path d="m466.62,488.16c-1.6327,3.343,0.22422,5.0235,2.4878,5.2866,3.343,0.3887,5.1313-2.2545,5.3646-4.6647,0.37821-3.9081-2.9159-7.4492-6.842-7.3859-3.5352,0.057-6.4145,2.3376-7.7644,5.4766-0.49075,1.1411-0.71784,2.3952-0.78791,3.6976-0.13237,2.4678,0.73501,4.7413,2.2228,6.4736,1.9974,2.326,5.113,3.7336,8.4288,3.8664,6.6002,0.2648,11.74-5.9085,11.74-12.206,0-12.051-17.873-18.623-24.957-20.314-8.7079-2.0775-14.006-2.8553-27.989-3.6323-5.5979-0.3109-9.6973-0.1531-15.861-0.7921-5.5152-0.5715-8.3967-0.8405-14.073-2.1623-7.0826-1.6493-13.684-4.5871-19.592-9.9517-4.55-4.1309-7.1526-7.0749-9.2592-12.75-1.8176-4.8975-2.6527-14.596,1.951-21.769,4.069-6.3399,9.7184-9.6331,16.172-10.566,5.8292-0.8428,10.942,1.6726,13.995,7.4565,1.4771,2.7988,1.0218,7.4799-0.14835,9.6404-1.0108,1.866-3.8968,4.6178-7.4712,4.6651-5.9088,0.078-7.3133-4.0572-7.4636-4.976-0.69983-4.2759,1.788-5.9865,3.1098-6.453,1.0139-0.3577,4.3122-0.2662,5.0117,2.0654,0.23327,0.7773,0.27491,2.133-0.34698,3.1438"/>
|
|
||||||
<path stroke-linecap="round" d="m426.97,212.58c-0.16411-0.2443-0.34583-0.513-0.54732-0.8096-2.6435-3.8873-7.3116-4.9116-10.729-2.3323-4.1206,3.1098-5.1612,8.4023-4.0429,13.994,0.69955,3.4987,3.0732,6.4128,6.3247,8.5211"/>
|
|
||||||
<path d="m573.04,224.37c-6.2975,6.8417-12.595,9.0262-22.003,9.3296-2.9376,0.095-8.5523-0.9329-11.818-3.2581-2.0976-1.4936-4.4315-4.0502-2.9544-8.4817,0.98746-2.9622,5.7462-11.273,5.9795-17.027,0.35626-8.7892-3.025-13.606-8.312-15.472-9.7739-3.4497-20.267,6.2113-26.589,8.319-3.3053,1.1017-4.9903,1.2319-8.0081,1.2429-3.0177-0.011-4.7627-0.1411-8.068-1.2429-6.3228-2.1077-16.816-11.769-26.59-8.319-5.2867,1.8659-8.668,6.6824-8.3117,15.472,0.2333,5.7532,4.9918,14.064,5.9792,17.027,1.4774,4.4315-0.85658,6.9881-2.9541,8.4817-3.2656,2.3252-8.8801,3.3529-11.818,3.2581-9.4072-0.3034-15.705-2.4879-22.003-9.3296"/>
|
|
||||||
<path stroke-linecap="round" d="m464.58,466.27c1.246,0.4868,0.30336-0.2952,8.1947,3.2032,7.5764,3.3585,12.954,6.2999,17.663,13.736,1.4774,2.3323,1.866,5.6756,1.866,7.6192,0,1.2528-0.15217,2.554-0.45867,3.8417"/>
|
|
||||||
<path d="m465.09,500.06c1.5362,0.7682,3.2792,1.2167,5.081,1.2891,6.6002,0.2648,11.74-5.9089,11.74-12.206,0-4.3662-2.377-8.0441-5.7062-11"/>
|
|
||||||
<path stroke-linecap="round" d="m466.52,488.15c-1.5938,3.5532,0.67678,5.4749,2.9401,5.738,3.3433,0.3889,5.2248-2.2546,5.458-4.6647,0.25355-2.6213-1.145-5.171-3.278-6.4852"/>
|
|
||||||
<path d="m609.53,216.87c5.0182,0,9.394,5.5855,9.394,11.317,0,6.605-3.5127,10.648-6.0869,13.705-2.0722,2.4608-4.3158,4.6625-6.9824,7.3482"/>
|
|
||||||
<path stroke-linecap="round" d="m603.58,211.58c1.7064,0.7901,3.2037,2.1276,4.3456,3.8188,2.099,3.1101,2.6331,5.7121,2.4879,9.5631-0.24905,6.6-4.998,11.17-9.2462,13.959"/>
|
|
||||||
<path stroke-linecap="round" d="m593.71,211.58c0.34695,0.2961,0.68042,0.6338,1.0004,1.0142,2.8768,3.421,3.0993,8.4775,2.4102,11.281-1.0353,4.2128-2.4276,6.0287-5.8464,8.5483"/>
|
|
||||||
<path stroke-linecap="round" d="m583.36,209.85c4.1206,3.1098,5.3458,8.4887,3.9807,14.026-0.9756,3.9567-3.4635,6.3281-6.5656,8.2174"/>
|
|
||||||
<path stroke-linecap="round" d="m598.16,296.28c0.49301,1.4472,1.3065,1.9486,2.3317,3.0225,2.229,2.335,5.4963,4.3434,9.623,5.5039,3.8138,1.0727,7.2494,0.2662,9.8706-1.3671"/>
|
|
||||||
<path stroke-linecap="round" d="m365.29,387.87c1.9372-0.035,3.869,1.273,5.1325,3.4677,0.25072,0.4356,0.64103,1.3836,0.62835,2.4107-0.0158,1.3682-0.6154,2.8309-1.5924,3.4525-2.2456,1.4292-6.2327,0.8149-6.0659-3.15"/>
|
|
||||||
<path d="m377.33,336.4c7.7033,1.4379,15.119,10.729,17.546,20.865,0.84279,3.5201,2.0016,11.371,0.39592,18.815-1.7103,7.9301-5.1381,13.42-9.1598,17.585-0.95338,0.9875-2.0587,1.9276-3.3231,2.8548l-1.6428,1.1135"/>
|
|
||||||
<path d="m368.76,378.67c3.1641,0,5.9336,3.0316,5.9336,6.2733,0,1.5876-0.61515,3.0281-1.6147,4.0848"/>
|
|
||||||
<path d="m366.62,382.35c3.2966,0,6.4325,3.1758,6.4325,6.5464,0,1.9397-0.90469,3.6678-2.3151,4.7855"/>
|
|
||||||
<path stroke-linecap="round" d="m396.84,349.2c3.0273,4.0629,5.0252,7.5612,5.9544,12.07"/>
|
|
||||||
<path stroke-linecap="round" d="m402.69,374.53c-0.4995,2.2459-1.2593,4.3246-2.2639,6.3222-1.2731,2.5304-3.4919,5.3478-5.5523,7.2525"/>
|
|
||||||
<path d="m397.32,325.52c2.9187,2.2816,4.678,4.6412,5.5011,7.4687"/>
|
|
||||||
<path stroke-linecap="round" d="m402.9,317.92c-0.76653,2.6592-2.5059,4.6738-5.2661,7.1926"/>
|
|
||||||
<path stroke-linecap="round" d="m383.33,298.27,3.3686-0.8865,1.9943-1.5071,1.2854-1.8176,1.1081-2.8368,0.4432-2.3049"/>
|
|
||||||
<path d="m376.51,286.41c-1.0634,0.26582-2.4109,0.65948-3.8239,1.3328-1.8928,0.90191-3.9033,2.3056-5.506,4.5758-1.8561,2.6296-2.9384,6.2859-3.6084,9.4848-0.29322,1.3997-0.64328,5.832,0.25214,10.41,0.66128,3.3801,2.0573,6.527,3.6016,8.8061,0.55379,0.8172,1.0561,1.5226,1.6206,2.0874,2.0216,2.0213,3.8875,3.2654,6.9973,2.6432"/>
|
|
||||||
<path stroke-linecap="round" d="m395.38,271.58c-0.54618,2.0066-1.6248,4.4933-4.7737,4.2213"/>
|
|
||||||
<path d="m383.87,285.2c-3.0236-2.9558-9.4292-3.7263-15.798,0.3022-0.81858,0.5181-1.6372,1.183-2.4479,1.8587-0.87628,0.7299-1.5753,1.5693-2.2506,2.4819-0.73419,0.9925-1.6361,2.6801-2.1811,3.8009-0.75022,1.5438-1.0609,2.5579-1.4742,4.1408-1.163,4.4554-1.158,8.5959-1.0209,9.7761,0.17626,1.5131,0.32023,2.9035,0.56757,4.1822,0.84505,4.3715,2.1381,7.439,3.4753,9.6565,1.4067,2.3325,4.9054,7.6898,12.058,8.3967,2.8112,0.278,7.6121-1.0106,7.7675-4.6648"/>
|
|
||||||
<path stroke-linecap="round" d="m568.38,220.42c0.47838-2.5813,3.5892-3.0796,4.7582-1.555,1.8001,2.348,0.60952,6.3818-3.0515,7.526-1.2441,0.3889-4.1205,0.2333-5.9865-2.1769-1.5125-1.9537-1.3969-4.3735-0.83208-6.2969,0.36553-1.2446,1.3642-2.3294,2.6981-3.3435,4.2511-3.2333,11.118-2.4879,13.372,2.9541,2.9086,7.0203-3.4207,12.284-9.2519,16.249-7.3409,4.9918-15.705,5.8996-22.003,5.8312-14.306-0.1556-25.19-6.9973-32.265-10.884-1.6482-0.9056-3.3456-0.7207-4.1982,0.3109-0.96295,1.1644-0.94749,3.0428,0.38861,4.2759"/>
|
|
||||||
<path stroke-linecap="round" d="m571.26,218c1.5162,0.07,1.922,0.6616,2.3868,1.2674,1.7998,2.348,0.48487,6.3821-3.1761,7.526"/>
|
|
||||||
<path stroke-linecap="round" d="m598.34,307.33c-5.4504,5.9325-0.43701,16.116,3.6365,18.418,1.4101,1.0966,2.0126,0.5153,3.1404,1.1749"/>
|
|
||||||
<path d="m598.63,295.99c-1.7883,1.2441-2.4184,2.6415-2.4879,5.0697-0.0583,2.032,0.29603,4.2883,2.2034,6.2727,2.9713,3.0917,8.7859,5.7836,14.42,5.8542,3.0563,0.038,6.2294-0.6007,9.4218-2.7354,3.4131-2.2825,5.2093-5.3646,5.9868-8.3967"/>
|
|
||||||
<path d="m595.58,398.6c0,0.018-0.009,2.3885-0.21183,3.8873-0.59151,4.3631-1.2857,6.8737-3.2654,10.807-1.9304,3.8354-3.4728,5.8491-6.5307,8.8632-3.0853,3.0411-5.2236,4.4343-9.0965,6.3754-3.7716,1.8902-6.1477,2.4912-10.263,3.4207-4.1121,0.9286-6.5175,1.1312-10.729,1.3217-3.8619,0.1747-6.0529,0.011-9.9095-0.2546-4.1273-0.2857-6.4167-0.8606-10.538-1.2224-3.4038-0.2992-5.3263-0.5744-8.7431-0.5659-3.5124,0.01-5.525,0.031-8.9834,0.6435-3.2232,0.5707-5.0517,1.0254-8.0857,2.2546-4.1979,1.7008-8.9409,4.6648-9.9517,5.9865-1.0108-1.3217-5.7541-4.286-9.9517-5.9865-3.034-1.2292-4.8626-1.6839-8.0857-2.2546-3.4584-0.6123-5.471-0.6345-8.9834-0.6435-3.417-0.01-5.3396,0.2667-8.7431,0.5659-4.1217,0.3618-6.4108,0.9367-10.538,1.2224-3.8568,0.2667-6.0475,0.4294-9.9095,0.2546-4.2117-0.1904-6.6171-0.3931-10.729-1.3217-4.1149-0.9295-6.4911-1.5305-10.263-3.4207-3.8729-1.9411-6.0112-3.3343-9.0965-6.3754-3.058-3.0141-4.6006-5.0278-6.5307-8.8632-1.9796-3.9329-2.6739-6.4435-3.2656-10.807-0.20329-1.4988-0.21162-3.8687-0.21162-3.8873v-0.0003-159.02h192.55v159.02l0.0668,0.0003z"/>
|
|
||||||
</g>
|
|
||||||
<g fill="#c7b37f" stroke="#c7b37f">
|
|
||||||
<path stroke-width="0.51271021" d="m387.41,421.32c0-2.1575,1.7492-3.9067,3.907-3.9067,2.1575,0,3.9067,1.7492,3.9067,3.9067,0,2.1578-1.7492,3.9067-3.9067,3.9067-2.1578,0-3.907-1.7489-3.907-3.9067z"/>
|
|
||||||
<path stroke-width="0.51271021" d="m363.42,393.71c0-1.9321,1.2356-3.4986,2.76-3.4986s2.7602,1.5665,2.7602,3.4986c0,1.9324-1.2359,3.4987-2.7602,3.4987s-2.76-1.5663-2.76-3.4987z"/>
|
|
||||||
<path stroke="none" d="m377.05,324.36c0-1.5871,1.1931-2.8734,2.6649-2.8734,1.4717,0,2.6648,1.2863,2.6648,2.8734,0,1.5868-1.1931,2.8733-2.6648,2.8733s-2.6649-1.2865-2.6649-2.8733z"/>
|
|
||||||
<path stroke="none" d="m424.91,221.81c-0.16816-1.5919,0.78762-2.9969,2.135-3.1379,1.3473-0.1409,2.5762,1.035,2.7445,2.6271,0.16839,1.5919-0.78765,2.9967-2.1353,3.1379-1.3473,0.141-2.5759-1.0349-2.7442-2.6271z"/>
|
|
||||||
</g>
|
|
||||||
<g stroke="#c7b37f" stroke-width="0.987" stroke-linecap="round">
|
|
||||||
<path d="m373.92,340.54c-0.57379,0.2499-0.89064,0.4561-1.3218,0.9098-0.41197,0.4333-0.49752,0.5906-0.81633,1.2983-0.23329,0.5178-0.29463,1.118-0.38102,1.8581"/>
|
|
||||||
<path d="m378.77,386.4c0.54255-0.6579,0.87039-1.0119,1.3915-1.687,0.43363-0.5616,0.69168-0.8709,1.073-1.4694,0.34361-0.5392,0.49752-0.8676,0.80087-1.4307,0.42746-0.7938,0.64019-1.2567,1.0496-2.0601"/>
|
|
||||||
<path d="m381.11,401.53c-0.92495,0.4246-1.4723,0.6123-2.3713,1.0884-0.68354,0.3622-1.0547,0.5935-1.7106,1.0029-0.77441,0.484-1.2069,0.7666-1.9436,1.3063-0.76739,0.5622-1.1619,0.9297-1.9048,1.5237"/>
|
|
||||||
<path d="m396.56,347.25c-0.50033-0.5152-0.77189-0.8169-1.2829-1.3214-0.53437-0.5274-0.82507-0.8386-1.3994-1.3218-0.55717-0.4685-0.9109-0.6829-1.4928-1.1197"/>
|
|
||||||
<path stroke-linecap="butt" d="m397.17,326.47c-0.7429,0.3306-1.1326,0.5932-1.9048,0.8476-0.885,0.2915-1.4849,0.4431-2.3401,0.482"/>
|
|
||||||
<path d="m371,300.68c0.25468,0.9067,0.3104,1.4478,0.65314,2.3246,0.43082,1.102,0.79101,1.6817,1.4461,2.6668,0.68296,1.0266,1.1096,1.5939,1.9904,2.4569,0.77356,0.7576,1.2638,1.14,2.1693,1.7337,0.8597,0.5637,1.418,0.7587,2.3247,1.2438"/>
|
|
||||||
<path d="m378.04,301.95c0.75809,0.4061,1.1495,0.7119,1.9439,1.0417,0.71899,0.2986,1.1456,0.4247,1.9045,0.5986,1.0268,0.2355,1.6293,0.2946,2.6826,0.3188,1.1402,0.027,1.477,0,2.9156-0.2333"/>
|
|
||||||
<path d="m398.69,240.15c-1.2463-0.7277-2.0081-1.046-3.1956-1.866-1.2078-0.8341-1.8733-1.3453-2.9232-2.3713-0.75725-0.7395-1.1816-1.1707-1.8116-2.0213-0.56224-0.7595-0.77779-1.257-1.275-2.0604"/>
|
|
||||||
<path d="m401.2,224.72c0.39114,1.0459,0.50285,1.6839,1.0029,2.6823,0.67873,1.3552,1.2027,2.0671,2.2236,3.1877,1.4149,1.5525,2.6131,1.9917,4.2837,3.2653"/>
|
|
||||||
<path d="m410.98,224.61c0.38806,0.9398,0.50651,1.5181,0.99532,2.4099,0.43193,0.7885,0.72965,1.2083,1.2984,1.9048,0.72516,0.8886,1.1968,1.3521,2.0992,2.0604,1.049,0.8236,1.7925,1.0671,2.9386,1.7492"/>
|
|
||||||
</g>
|
|
||||||
<path fill="#703d29" stroke-width="0.27661592" d="m520.78,211.91c-0.0802-2.6489-2.6896-2.9243-3.6894-2.9243-2.8855,0-3.6661,1.7998-7.2657,3.7327-4.512,2.4231-6.4553,2.9615-10.466,2.9975-4.0102-0.036-6.0048-0.5744-10.517-2.9975-3.5994-1.9329-4.2052-3.6748-7.091-3.6748-1.5663,0-3.5895,1.353-3.5127,3.8327,0,0-0.0301,0.8031,0.0932,1.3465,0.0463,0.2046,0.29518,0.1407,0.3734,0.3199-0.0371-1.2024,0.20757-1.8251,0.80003-2.6327,0.76061-1.0378,2.0244-1.3133,2.5396-1.3133,2.8855,0,3.9537,1.8516,7.5533,3.7845,4.512,2.4231,6.4534,2.9615,10.464,2.9975,4.0102-0.036,6.0068-0.5744,10.519-2.9975,3.5997-1.9329,4.6341-3.9379,7.5198-3.9379,0.99981,0,1.7053,0.6472,2.0328,1.6665,0.20171,0.6269,0.088,1.0451,0.14026,1.2932,0.0254,0.1212,0.17379,0.1088,0.20643,0.2398,0.10018-0.4665,0.33345-0.6331,0.29998-1.7328z"/>
|
|
||||||
</g>
|
|
||||||
<g fill="#703d29">
|
|
||||||
<path d="m413.12,434.42c0.81016-0.8724,1.4225-0.5439,1.5728-0.9458,0.11098-0.2971-0.129-0.327-0.45898-0.4505-0.44038-0.1646-0.90694-0.2592-1.3473-0.4241-0.45614-0.1704-0.87036-0.4049-1.3265-0.5754-0.18887-0.071-0.62527-0.2935-0.74964,0.039-0.2285,0.6114,1.6017,0.5588,0.9877,2.2016-0.10467,0.2794-0.36469,0.8794-1.2744,1.8738l-4.1411,4.5072c-0.0929,0.1047-0.24737,0.3259-0.34162,0.2904-0.0945-0.035-0.0817-0.3092-0.083-0.4494l0.0592-6.3917c0.005-1.2128,0.10807-2.1107,0.30421-2.635,0.27435-0.7339,1.12-0.1191,1.2964-0.5909,0.11121-0.2969,0.0259-0.309-0.47725-0.4973-0.25185-0.094-0.73389-0.1947-1.7404-0.5709-0.53495-0.2002-1.0434-0.47-1.5626-0.6638-0.23581-0.088-0.67113-0.4103-0.82787,0.01-0.0459,0.1224,0.11931,0.3036,0.16006,0.3388,0.57939,0.4159,0.7277,0.6902,0.74035,1.4719l0.11346,11.635c0.009,0.8397,0.10063,1.0732,0.25803,1.132,0.17312,0.065,0.29097-0.011,0.63371-0.4004l8.205-8.9035z"/>
|
|
||||||
<path d="m417.95,436.22c0.53324-1.6904,1.5322-0.6712,1.723-1.2762,0.0673-0.2136-0.00098-0.2744-0.48203-0.4258-0.91259-0.2878-1.5117-0.3984-2.0883-0.5802-0.56056-0.1767-1.1625-0.4449-1.7872-0.6416-0.14408-0.046-0.52764-0.2254-0.62303,0.077-0.19652,0.6228,1.7703,0.6951,1.2598,2.3142l-2.693,8.5411c-0.53298,1.6904-1.5401,0.8642-1.7365,1.4869-0.0282,0.089-0.0355,0.2238,0.10897,0.2693,0.4162,0.1313,1.1273,0.2772,1.8159,0.4941,1.2491,0.394,1.8192,0.652,2.4119,0.8389,0.36807,0.1161,0.53495,0.09,0.59657-0.1054,0.17942-0.5695-1.8721-0.3165-1.1821-2.5053l2.6761-8.4875z"/>
|
|
||||||
<path d="m423.73,437.93c0.31798-1.0733,0.81689-0.9256,1.4126-0.7491,1.6262,0.4817,2.1355,2.0725,1.6164,3.8256-0.31264,1.0555-0.70604,2.0289-3.1534,1.3037-0.48288-0.1429-1.0786-0.3194-0.94607-0.7665l1.0704-3.6137zm-4.4337,7.696c-0.66777,2.254-1.797,1.2775-1.9664,1.8499-0.10604,0.3577,0.2479,0.4044,0.42491,0.4567,0.80507,0.2383,1.6313,0.4055,2.5005,0.663,0.67619,0.2001,1.0898,0.4007,1.3637,0.4817,0.37003,0.1095,0.53072,0.04,0.57856-0.1206,0.19067-0.6439-1.6206-0.3827-1.0536-2.2968l0.91681-3.0948c0.1855-0.6261,0.12584-0.7801,0.97927-0.5271,0.80507,0.2383,1.0471,0.4851,1.1841,1.382l0.51524,3.227c0.19157,1.1856,0.37313,2.4651,1.6451,2.8419,0.64384,0.1907,1.8232,0.1119,1.9875-0.4426,0.0423-0.143-0.0225-0.2789-0.16749-0.322-0.16096-0.048-0.35371,0.011-0.51467-0.036-0.12899-0.038-0.43478-0.129-0.49499-0.4578-0.49133-2.5973-1.0915-5.5968-1.0598-5.7043,0.0529-0.1787,0.56759-0.2014,1.1563-0.4747,0.59402-0.291,1.257-0.8144,1.5961-1.9594,0.24396-0.8228,0.66917-3.4406-2.8568-4.4849-1.0789-0.3197-2.1949-0.5724-3.2735-0.892-1.0142-0.3003-1.1219-0.4101-1.8626-0.6296-0.19292-0.057-0.38075-0.016-0.43365,0.1635-0.19068,0.6438,1.7604,0.502,1.1667,2.5053l-2.3314,7.8713z"/>
|
|
||||||
<path d="m432.46,449.48c-0.51835,2.1589-2.1541,0.8453-2.3241,1.5524-0.0959,0.3994,0.18595,0.4478,0.48007,0.5184,0.65312,0.1567,1.2092,0.2136,2.3032,0.4764,1.0938,0.2625,1.6152,0.4646,2.2684,0.6213,0.47357,0.1137,0.78705,0.2465,0.89147-0.1888,0.12224-0.508-2.0942-0.4838-1.5584-2.7153l1.9687-8.2002c0.20914-0.8707,0.39422-0.9222,1.0637-0.7615l1.3876,0.3332c1.8952,0.3782,0.88922,2.2667,1.5424,2.4234,0.42463,0.102,0.41478-0.6486,0.43448-0.8743l0.22129-1.7123c0.027-0.1851,0.088-0.4393-0.15668-0.4978-1.5184-0.3647-2.63-0.5549-5.0137-1.1273-2.384-0.5724-3.4604-0.9075-4.9788-1.2719-0.24482-0.059-0.30587,0.1949-0.36582,0.3725l-0.83602,2.332c-0.0896,0.2279-0.28309,0.6036,0.0597,0.686,0.73473,0.1763,0.8155-2.3178,2.6606-1.8749l1.3715,0.3292c0.66917,0.161,0.81073,0.2907,0.60164,1.1616l-2.021,8.4178z"/>
|
|
||||||
<path d="m452.3,444.42c0.64638-0.9996,1.3062-0.7823,1.3848-1.2044,0.0576-0.3118-0.1837-0.2997-0.53045-0.3639-0.46233-0.086-0.93819-0.098-1.4005-0.1837-0.47868-0.089-0.9275-0.2479-1.4062-0.3366-0.19811-0.037-0.66692-0.1803-0.73135,0.168-0.11908,0.6421,1.6743,0.2724,1.3547,1.9968-0.0543,0.2938-0.20643,0.9297-0.92948,2.0669l-3.2958,5.1578c-0.0732,0.119-0.18685,0.3638-0.2859,0.3452-0.099-0.018-0.13395-0.2904-0.15984-0.428l-1.0516-6.3047c-0.20553-1.1957-0.26-2.0979-0.15803-2.648,0.14295-0.7705,1.0825-0.3118,1.1743-0.8073,0.0576-0.3118-0.0282-0.3087-0.55632-0.4067-0.26424-0.049-0.75669-0.064-1.8133-0.26-0.56139-0.104-1.1093-0.2814-1.6541-0.3824-0.24764-0.046-0.73221-0.2876-0.81381,0.1524-0.0239,0.1285,0.17041,0.2783,0.21656,0.3059,0.64272,0.309,0.8366,0.5535,0.98461,1.3209l2.1322,11.439c0.15443,0.8256,0.28561,1.0397,0.4508,1.0704,0.18145,0.034,0.28448-0.061,0.55463-0.5045l6.5341-10.193z"/>
|
|
||||||
<path d="m453.23,454.93c0.009,0.4556-0.0324,0.6,0.36301,0.7795,0.92073,0.4001,1.6915,0.9832,2.7017,1.152,2.1693,0.363,3.9672-1.0198,4.3704-3.4302,0.39114-2.3371-0.56957-3.3113-2.1969-4.4726-2.0373-1.4571-2.9083-1.8488-2.702-3.0816,0.20622-1.2328,1.0685-1.8074,2.1617-1.6245,2.8486,0.4767,2.5242,3.941,2.9049,4.0046,0.36443,0.061,0.4511-0.1515,0.4857-0.5617l0.23048-2.4966c0.0378-0.4285,0.13372-0.6964-0.11481-0.7378-0.21521-0.036-0.67874,0.1891-0.89373,0.1531-0.49694-0.083-1.0724-0.9174-2.4305-1.1445-1.9377-0.3244-3.5214,0.9996-3.8754,3.1159-0.32332,1.9321,0.53382,2.8132,1.8409,3.7508,2.4479,1.7529,3.4511,2.1665,3.1894,3.7308-0.24651,1.472-1.3879,2.189-2.6798,1.9729-1.8381-0.3078-2.5847-2.1541-2.8191-4.0094-0.0261-0.2501-0.0315-0.4212-0.29659-0.4657-0.41422-0.069-0.33768,0.4922-0.33122,0.7581l0.0919,2.6069z"/>
|
|
||||||
<path d="m477.95,447.96c0.53833-1.062,1.2173-0.9148,1.2511-1.3426,0.0247-0.3163-0.21386-0.2791-0.56561-0.3067-0.46852-0.037-0.94325,0.0009-1.4121-0.036-0.48539-0.038-0.94802-0.1497-1.4337-0.188-0.20081-0.016-0.68184-0.1096-0.70969,0.2437-0.0511,0.6509,1.6937,0.096,1.5561,1.8443-0.0235,0.2977-0.10806,0.9461-0.70857,2.1527l-2.7383,5.4738c-0.0605,0.1263-0.1479,0.3813-0.24847,0.3734-0.10039-0.01-0.16343-0.2749-0.2035-0.4088l-1.7047-6.1604c-0.32924-1.1678-0.47808-2.059-0.43419-2.6171,0.0612-0.7811,1.044-0.4232,1.0834-0.9255,0.0247-0.316-0.0602-0.3039-0.59599-0.3461-0.2679-0.02-0.75895,0.016-1.8305-0.069-0.56899-0.045-1.1324-0.1641-1.6847-0.2073-0.25101-0.02-0.75838-0.2096-0.79354,0.2367-0.0113,0.1303,0.19877,0.2591,0.24733,0.2816,0.67171,0.2401,0.88979,0.4632,1.1174,1.2109l3.3163,11.153c0.23975,0.8051,0.39256,1.004,0.55998,1.0172,0.18393,0.014,0.27663-0.091,0.49894-0.5597l5.433-10.82z"/>
|
|
||||||
<path d="m480.6,457c-0.0158,1.9028-1.6256,1.5531-1.6321,2.2993-0.002,0.3172,0.33373,0.2268,0.51863,0.2285,0.45332,0,0.90723-0.067,1.4444-0.062,0.58785,0.01,1.158,0.085,1.9808,0.092,0.21837,0,0.63793,0.024,0.64018-0.2369,0.007-0.8769-2.1527,0.3728-2.1215-3.2091l0.0553-6.3433c0.00098-0.1679,0.036-0.2983,0.13687-0.2975,0.0842,0.0009,0.18392,0.095,0.30026,0.2454l7.992,9.7719c0.11617,0.1504,0.19924,0.2628,0.43422,0.2651,0.20148,0,0.20283-0.1475,0.20643-0.558l0.0912-10.466c0.0158-1.9588,1.4402-1.4987,1.4453-2.0584,0.00056-0.056,0.002-0.2426-0.31685-0.2454-0.15105,0-0.73952,0.068-1.7973,0.059-1.1588-0.011-1.645-0.089-1.9138-0.091-0.21813,0-0.27014,0.1843-0.27126,0.3148-0.005,0.6157,2.046,0.2978,2.0311,1.9955l-0.0541,6.2127c-0.005,0.4663-0.0396,0.69-0.14047,0.6891-0.10063-0.0008-0.30024-0.2265-0.51635-0.4896l-6.6782-8.2866c-0.29914-0.3571-0.0966-0.486-0.63371-0.4905-0.89007-0.01-1.3274,0.063-1.7638,0.059-0.31911,0-0.62077-0.08-0.9396-0.083-0.20149,0-0.28674,0.1465-0.28816,0.3146-0.009,0.8954,1.8831-0.3008,1.8519,3.2814l-0.0617,7.0896z"/>
|
|
||||||
<path d="m496.86,448.6c0.0158-1.7725,1.2691-1.0898,1.2745-1.7241,0.002-0.224-0.0814-0.262-0.58531-0.2665-0.95706-0.01-1.5623,0.061-2.1665,0.056-0.58783,0-1.2421-0.086-1.8969-0.091-0.15105-0.001-0.57041-0.061-0.57322,0.2564-0.005,0.6528,1.8029,0.1472,1.788,1.8448l0.0158,8.9553c-0.0158,1.7722-1.2202,1.2767-1.2258,1.9298-0.00084,0.093,0.0315,0.224,0.18257,0.2254,0.43673,0.01,1.1594-0.064,1.8814-0.058,1.3096,0.011,1.9304,0.091,2.5514,0.097,0.38637,0,0.53804-0.07,0.53973-0.2752,0.005-0.5971-1.8828,0.2448-1.8629-2.05l0.0776-8.8992z"/>
|
|
||||||
<path d="m503.9,457.27c0.0202,2.2203-1.8859,1.3412-1.8794,2.0689,0.005,0.4106,0.28871,0.3894,0.59121,0.3866,0.67141-0.01,1.2249-0.085,2.35-0.095,1.125-0.01,1.6797,0.06,2.3514,0.054,0.48682,0,0.82338,0.049,0.81943-0.399-0.005-0.5226-2.149,0.037-2.1693-2.2574l-0.0734-8.433c-0.007-0.8954,0.1594-0.9902,0.84758-0.9961l1.4273-0.011c1.9304-0.091,1.4112,1.9841,2.0829,1.9782,0.43644,0,0.24539-0.7299,0.20981-0.9534l-0.19967-1.7148c-0.0181-0.1866-0.0202-0.4477-0.2724-0.4455-1.5618,0.014-2.686,0.098-5.1375,0.1195-2.4516,0.02-3.5772-0.044-5.1389-0.03-0.25184,0-0.24959,0.2634-0.26479,0.4503l-0.24706,2.465c-0.0315,0.2429-0.12854,0.654,0.22399,0.6512,0.75584-0.01,0.23075-2.4462,2.1279-2.4628l1.4104-0.014c0.68857-0.01,0.85714,0.086,0.86502,0.9812l0.0757,8.6567z"/>
|
|
||||||
<path d="m513.68,453.74c-0.30139,0.024-0.53439,0.061-0.54902-0.1252-0.0202-0.2603,0.0639-0.4728,0.12989-0.7027l1.0299-3.3933c0.0675-0.2114,0.13304-0.2353,0.16658-0.2378,0.0835-0.01,0.0336,0,0.14543,0.1382l1.6378,3.2586c0.1013,0.2165,0.21769,0.4133,0.23833,0.6737,0.0135,0.1859-0.22128,0.1857-0.52255,0.2095l-2.2765,0.179zm2.8745,0.7845c0.43534-0.034,0.53353,0.1452,1.2002,1.5525,0.22377,0.4877,0.36722,0.8132,0.3993,1.2224,0.0896,1.1346-1.1152,1.0234-1.0727,1.5629,0.0202,0.2606,0.23525,0.2062,0.53635,0.1823,0.48569-0.038,1.0992-0.1611,1.8356-0.2192,1.105-0.087,1.5626-0.048,2.1654-0.096,0.45193-0.035,0.60557-0.011,0.5808-0.3265-0.0484-0.6137-0.89512,0.1828-1.535-1.0954l-5.4156-11.028c-0.2617-0.5409-0.29798-0.5755-0.44882-0.5637-0.21746,0.018-0.27352,0.3771-0.36724,0.6841l-3.6509,11.61c-0.33625,1.0744-1.1988,1.0299-1.1652,1.4577,0.0202,0.242,0.28391,0.1834,0.51833,0.1652,0.4854-0.038,0.9652-0.1508,1.4672-0.1905,0.53578-0.042,1.0437-0.01,1.5795-0.049,0.35148-0.028,0.88079,0.062,0.85012-0.3289-0.0396-0.502-1.8243-0.062-1.9296-1.4014-0.0351-0.4466,0.14791-1.116,0.23581-1.497,0.28845-1.2582,0.63428-1.36,0.91879-1.3825l3.2977-0.2595z"/>
|
|
||||||
<path d="m529.53,446.79c-0.16838-1.2764-0.10422-1.3037,1.9104-1.5688,3.213-0.4232,2.1994,1.9121,2.982,1.8092,0.3827-0.05,0.21926-0.6498,0.17086-0.8882l-0.30756-1.8226c-0.0225-0.1666-0.16299-0.336-0.37933-0.3075-1.465,0.1927-2.6041,0.4181-3.786,0.5737-2.5472,0.3352-3.7556,0.419-4.438,0.5088-0.23326,0.031-0.34695,0.1963-0.32501,0.363,0.0974,0.7398,1.9008-0.1,2.1201,1.5649l1.1397,8.6572c0.29686,2.2566-1.0997,1.4245-0.98772,2.2751,0.0158,0.1113,0.12675,0.1905,0.34302,0.1621,0.91567-0.1206,1.6051-0.2867,2.1212-0.3545,0.73277-0.097,1.3583-0.1036,1.9909-0.1869,0.41618-0.055,0.77554-0.027,0.72684-0.397-0.0657-0.4992-1.8859,0.2107-2.1564-1.8424l-0.36048-2.7377c-0.14115-1.073-0.23694-1.286,0.52876-1.387l1.232-0.1621c1.7314-0.2279,1.5235,1.7942,2.0562,1.7241,0.39959-0.053,0.21184-0.7054,0.16389-0.9438l-0.55013-3.2771c-0.0824-0.4973-0.26057-0.4362-0.37707-0.421-0.33318,0.044-0.15894,1.7522-1.5908,1.9408l-1.0488,0.1382c-0.71588,0.094-0.73276-0.035-0.83774-0.8307l-0.34076-2.5897z"/>
|
|
||||||
<path d="m535.67,451.03c0.69026,3.724,3.3782,5.7875,6.6968,5.1724,5.2669-0.9759,5.4408-5.6573,4.965-8.2253-0.72095-3.8893-3.6197-5.8-6.8324-5.1665-3.939,0.7679-5.574,4.2018-4.8294,8.2194zm1.837-1.422c-0.49301-2.66-0.13688-5.3449,2.6435-5.917,2.1229-0.4313,4.5316,1.3235,5.283,5.3776,0.56449,3.0453,0.0957,5.675-2.7341,6.2564-2.9451,0.6027-4.696-3.0386-5.1924-5.717z"/>
|
|
||||||
<path d="m550.53,443.11c-0.26114-1.0887,0.24509-1.21,0.84897-1.3552,1.6493-0.3959,2.886,0.7272,3.3126,2.505,0.2572,1.0705,0.40297,2.11-2.0787,2.7057-0.48992,0.1177-1.0941,0.2625-1.203-0.1907l-0.87993-3.6646zm0.009,8.8818c0.54873,2.2859-0.91737,2.0045-0.77808,2.585,0.0869,0.363,0.41676,0.2262,0.59657,0.1832,0.81635-0.196,1.6152-0.4646,2.4971-0.6762,0.6855-0.1645,1.1439-0.1981,1.4214-0.2645,0.37566-0.09,0.48007-0.2305,0.44094-0.3937-0.15668-0.6531-1.5947,0.4787-2.0607-1.4624l-0.75358-3.1385c-0.15219-0.6351-0.28085-0.7386,0.58444-0.9463,0.81635-0.1959,1.1495-0.1033,1.7168,0.6047l2.0596,2.5374c0.75895,0.9306,1.5559,1.9481,2.8455,1.6386,0.65314-0.1567,1.6349-0.8147,1.5001-1.3772-0.0348-0.1449-0.15893-0.2304-0.30616-0.1949-0.16321,0.039-0.30026,0.1871-0.46374,0.2265-0.13058,0.031-0.44068,0.1056-0.65735-0.1495-1.7244-2.0035-3.7438-4.3009-3.7699-4.4098-0.0437-0.1814,0.39058-0.4584,0.76402-0.9894,0.36919-0.549,0.68155-1.3338,0.40267-2.4949-0.20036-0.8346-1.1411-3.3143-4.7168-2.4557-1.0941,0.2625-2.1867,0.6016-3.2808,0.8641-1.0285,0.2471-1.1766,0.2058-1.9279,0.3861-0.19586,0.047-0.33739,0.177-0.29378,0.3585,0.15668,0.6532,1.7754-0.4454,2.2633,1.5866l1.9163,7.9824z"/>
|
|
||||||
<path d="m564.01,448.98c0.55604,2.1496-1.5052,1.7576-1.3232,2.462,0.10265,0.3976,0.37456,0.3081,0.66721,0.2324,0.6503-0.1682,1.1681-0.3793,2.2574-0.661,1.089-0.2817,1.6442-0.3481,2.2945-0.5164,0.47133-0.1218,0.81043-0.1517,0.69844-0.5853-0.13079-0.5057-2.0762,0.5563-2.6508-1.6656l-2.1116-8.1645c-0.22422-0.867-0.0851-0.9993,0.58137-1.1718l1.3819-0.3573c1.8508-0.5558,1.8491,1.5837,2.4994,1.4157,0.42266-0.1094,0.0617-0.7677-0.027-0.9759l-0.60866-1.6155c-0.0628-0.1765-0.12831-0.4295-0.372-0.3664-1.512,0.3911-2.5824,0.7451-4.956,1.3589-2.3733,0.6137-3.4812,0.8231-4.9932,1.2142-0.2437,0.063-0.17852,0.316-0.14813,0.5006l0.35652,2.4518c0.0284,0.2432,0.0336,0.6658,0.37482,0.5775,0.73165-0.1891-0.36807-2.4293,1.4689-2.9043l1.3656-0.3532c0.66663-0.1724,0.85236-0.124,1.0766,0.7429l2.1676,8.3812z"/>
|
|
||||||
<path d="m572.6,437.52c-0.47387-1.7079,0.91935-1.3972,0.74995-2.0087-0.0599-0.2156-0.15083-0.229-0.63626-0.095-0.92242,0.2558-1.4849,0.4894-2.0674,0.6509-0.56618,0.1569-1.2173,0.26-1.8482,0.435-0.14588,0.04-0.56534,0.098-0.48063,0.4044,0.17469,0.6292,1.8634-0.3813,2.317,1.2548l2.3936,8.6299c0.47358,1.7079-0.82113,1.5635-0.64666,2.193,0.025,0.09,0.0923,0.2069,0.23806,0.1664,0.42042-0.1169,1.0963-0.3816,1.7922-0.5746,1.2621-0.3501,1.8806-0.4441,2.4794-0.6101,0.37228-0.1034,0.49779-0.2155,0.44293-0.4134-0.15961-0.5752-1.7424,0.7544-2.3556-1.4571l-2.3784-8.5759z"/>
|
|
||||||
<path d="m576.18,441.69c1.2018,3.5918,4.1509,5.2611,7.3516,4.1901,5.0796-1.6994,4.6006-6.3594,3.7716-8.8365-1.255-3.7508-4.3912-5.2394-7.4847-4.1651-3.7938,1.3088-4.9349,4.9366-3.6385,8.8115zm1.6214-1.6639c-0.85856-2.5652-0.87938-5.2734,1.7939-6.2271,2.0424-0.7226,4.6718,0.6799,5.9803,4.5899,0.98265,2.9373,0.88416,5.6064-1.837,6.5761-2.8326,1.0065-5.0731-2.3557-5.9372-4.9389z"/>
|
|
||||||
<path d="m589.72,431.56c-0.41027-1.0414,0.0741-1.2322,0.65229-1.4599,1.5781-0.6216,2.9589,0.3183,3.6289,2.0193,0.40353,1.0243,0.69254,2.0334-1.6819,2.9688-0.46881,0.1846-1.0468,0.4123-1.2179-0.023l-1.3814-3.5065zm1.2446,8.7943c0.86165,2.1871-0.62977,2.1128-0.41085,2.6683,0.13666,0.3472,0.44433,0.1661,0.61627,0.098,0.78117-0.3076,1.535-0.6847,2.3784-1.017,0.65622-0.2586,1.1056-0.3551,1.371-0.4601,0.35963-0.1412,0.44348-0.2946,0.38185-0.4511-0.24621-0.625-1.5125,0.6962-2.2442-1.1613l-1.183-3.0031c-0.23919-0.6076-0.38101-0.6923,0.44714-1.0184,0.78116-0.3076,1.1239-0.2623,1.7841,0.3599l2.3928,2.2259c0.88105,0.816,1.8117,1.7128,3.0459,1.2266,0.62497-0.2462,1.5058-1.0341,1.2936-1.5725-0.0545-0.1387-0.18933-0.206-0.3298-0.1506-0.15646,0.062-0.27154,0.2271-0.42773,0.2887-0.12494,0.049-0.42181,0.1662-0.67198-0.056-1.9864-1.7441-4.306-3.7381-4.3468-3.8422-0.0687-0.1736,0.32305-0.5082,0.61878-1.0859,0.28901-0.5952,0.48908-1.416,0.0515-2.527-0.31461-0.7986-1.5913-3.123-5.0129-1.7753-1.0468,0.4125-2.0818,0.9002-3.1286,1.3127-0.98406,0.3877-1.1363,0.3675-1.8553,0.6506-0.18752,0.074-0.30954,0.2219-0.24115,0.3956,0.24621,0.625,1.6963-0.688,2.4622,1.2562l3.0087,7.638z"/>
|
|
||||||
</g>
|
|
||||||
<g>
|
|
||||||
<g fill="#fedf00">
|
|
||||||
<path fill="#d52b1e" d="m412.66,249.25h82.179v82.023h-82.179z"/>
|
|
||||||
<path id="mits" fill="#fff" d="m451.2,313.83s-0.048,2.9314-0.85518,5.2867c-0.93313,2.7214-0.94016,2.7214-1.7956,4.0429-1.1524,1.7809-2.5571,3.0827-3.8096,3.8875-1.9583,1.2584-3.9483,1.8876-5.9482,1.7103-5.491-0.4865-8.0382-6.4401-9.2831-11.273-1.3217-5.131-5.0733-7.9231-7.4638-6.0642-1.3994,1.0885-1.4782,2.9142-0.31093,4.6651,1.2441,1.8657,4.0991,2.7988,4.0991,2.7988l-2.9328,3.7319s-6.3019-0.8205-7.5345-7.3932c-0.46629-2.4881,0.74177-7.1335,4.891-8.5222,5.2968-1.7731,8.686,2.0041,10.318,5.1916,2.2456,4.3836,3.2096,12.434,9.4294,11.19,3.3838-0.6768,4.976-5.5979,4.976-7.8525l2.467-2.6434,3.6542,1.1664,0.0986,0.078z"/>
|
|
||||||
<use xlink:href="#mits" transform="matrix(-1,0,0,1,907.5206,0)"/>
|
|
||||||
<path d="m461.12,278.95,10.76-11.643s1.624-1.3096,1.6096-3.4015l-2.2186,0.3452-0.49694-1.1416-0.11054-1.1473,2.9817-0.6292c0.0473-0.4843,0.007-0.8507,0.092-1.385,0.0795-0.4939,0.19-0.7587,0.31123-1.2441l-3.2656,0.2188c0.16592-0.5715,0.1281-0.8754,0.31094-1.4067,0.15399-0.4469,0.19675-0.6177,0.50287-1.1028,0.60641-0.091,1.158-0.2279,1.9073-0.3039,0.7277-0.073,1.1433-0.039,1.8733-0.085,1.781-3.3214,9.1894-6.3732,14.454-0.9042,3.8096,3.9582,2.9876,11.219-1.9509,13.139-2.7988,1.0885-5.0534,0.4449-6.8617-1.1101l1.9709-3.8656c2.7211,1.6254,4.9757-0.3959,4.8204-2.4952-0.19676-2.6535-1.9186-4.2966-4.3538-4.5094-2.2543-0.197-3.8726,1.093-4.8983,3.1101-0.62583,1.2305-0.33627,2.1332-0.54423,3.4986-0.22568,1.4833-0.0988,2.3109-0.53691,3.8096-0.31825,1.0882-1.1549,2.4341-2.3697,3.5926l-11.03,11.935-42.941,46.445-3.2268-2.9831,43.211-46.737z"/>
|
|
||||||
<path fill="#fff" d="m429.51,283.04s2.6994,13.372,11.874,33.431c4.665-1.7103,7.4191-2.7991,12.362-2.7991,4.9431,0,7.6971,0.9331,12.362,2.7991,9.1742-20.059,11.874-33.431,11.874-33.431l-24.236-31.177-24.236,31.177z"/>
|
|
||||||
<path d="m456.12,262.41,16.82,21.637s-2.2433,10.52-9.0782,26.354c-2.646-0.6025-4.9158-1.1276-7.7323-1.3195l-0.009-46.671z"/>
|
|
||||||
<path d="m451.38,262.41-16.82,21.637s2.2433,10.52,9.0782,26.354c2.646-0.6025,4.9158-1.1276,7.7323-1.3195l0.009-46.671z"/>
|
|
||||||
</g>
|
|
||||||
<g fill="#d52b1e">
|
|
||||||
<path fill="#fedf00" d="m503.6,249.25h82.179v82.023h-82.179z"/>
|
|
||||||
<path d="m515.11,249.25h12.253v82.023h-12.253z"/>
|
|
||||||
<path d="m538.59,249.25h12.253v82.023h-12.253z"/>
|
|
||||||
<path d="m562.07,249.25h12.253v82.023h-12.253z"/>
|
|
||||||
</g>
|
|
||||||
<g fill="#d52b1e" stroke="#d52b1e" stroke-width="0.513">
|
|
||||||
<path fill="#fedf00" stroke="none" d="m412.97,402.41c0.23327,1.4774,0.75922,4.0119,2.1625,6.6087,1.4771,2.3322,0.93285,2.2689,4.2762,6.0008,1.6456,1.837,4.2137,3.4109,6.2271,4.4948,2.0213,1.0885,3.5169,1.6229,6.8417,2.4952,6.5175,1.7104,11.091,1.817,16.574,1.5984,4.2781-0.1709,7.5443-0.6973,10.249-1.0615,3.8574-0.5189,6.7305-0.8278,11.118-1.0105,2.1333-0.089,4.149-0.1101,6.1421,0,2.4057,0.1326,4.7818,0.5054,7.3085,1.0105,5.442,1.0885,10.962,3.1877,10.962,3.1877l0.0135-85.655-82.193-0.023v58.543s0.16862,2.8599,0.31828,3.8096z"/>
|
|
||||||
<path d="m422.51,417.43,3.8518,2.2412,5.2782,1.8989-0.005-81.527h-9.1264z"/>
|
|
||||||
<path d="m468.17,421.14,0.0113-81.099h-9.1435v82.396s6.2572-0.80203,9.1312-0.98833z"/>
|
|
||||||
<path d="m486.41,340.05h-9.1134v81.381c2.9699,0.3213,6.0236,0.85177,9.1311,1.6825l-0.018-83.064z"/>
|
|
||||||
<path d="m449.92,340.05v83.331c-0.0903,0.01-6.1007,0.31515-9.1733-0.003l0.002-83.314z"/>
|
|
||||||
</g>
|
|
||||||
<g>
|
|
||||||
<path fill="#fedf00" d="m585.48,402.39c-0.23327,1.4771-0.75921,4.0116-2.1626,6.6084-1.4771,2.3325-0.93285,2.2692-4.2759,6.0009-1.6456,1.8369-4.214,3.4108-6.2271,4.495-2.0216,1.0885-3.5169,1.6226-6.8417,2.4952-6.5178,1.7103-11.091,1.817-16.574,1.5981-4.2778-0.1707-7.544-0.6973-10.249-1.0612-3.8574-0.5189-6.7305-0.8279-11.118-1.0108-2.133-0.089-4.149-0.1096-6.1421,0-2.4057,0.1326-4.7815,0.5054-7.3082,1.0108-5.4423,1.0885-11.033,3.1877-11.033,3.1877l0.0565-85.655,82.193-0.023v58.543s-0.16815,2.8596-0.31826,3.8096z"/>
|
|
||||||
<g id="cow">
|
|
||||||
<path fill="#d52b1e" d="m524.62,346.91s-0.36638,0.1753-0.59375,0.2813c-0.29828,0.3273-0.44752,0.519-0.78125,0.8125-0.44293,0.3892-0.76881,0.503-1.25,0.8437-0.23045,0.163-0.41928,0.2156-0.59375,0.4375-0.25219,0.3208-0.0791,0.6292-0.25,1-0.18658,0.405-0.36896,0.5965-0.65625,0.9375-0.36612,0.4348-0.64912,0.6098-1.0625,1-0.41817,0.3951-0.58752,0.7265-1.0938,1-0.1339,0.072-0.19832,0.1425-0.34375,0.1875-0.21554,0.067-0.34931-0.011-0.5625,0.062-0.38806,0.1343-0.51024,0.5626-0.78125,0.7188,0.11196,0.2178,0.10686,0.3725,0.21875,0.5937,0.15785,0.3234,0.70512,1.2154,0.8125,1.4375,0.20907,0.3051,0.27011,0.6996,0.53125,0.7813,0.53775,0.1681,0.8586,0.1532,1.3125,0.125,0.79213,0.1818,1.2805,0.1578,2.0312,0.4687,0.61288,0.2539,0.86262,0.575,1.4688,0.8438,0.47418,0.2102,0.77191,0.3394,1.2812,0.4375,0.38665,0.074,0.60802,0.132,1,0.094,0.24961-0.024,0.37681-0.1197,0.625-0.1562,0.0488-0.01,0.0809,0,0.125,0l-0.0312,0.375c-0.005,0,0.005,0.028,0,0.031v0.062h0.0625l2.0625,0.9063c-0.0738,0.1176-0.1515,0.2566-0.1875,0.375-0.0981,0.3205-0.114,0.6886-0.0625,0.8437,0.62922,1.8877,1.1592,3.0684,1.4688,3.1875,0.6154,0.2364,0.80591,0.8649,1.1562,1.5-0.12367,0.1321-0.22734,0.2008-0.34375,0.3125-0.61493,0.5902-1.152,1.0093-1.6562,1.8125-0.74541,1.1879-1.2487,1.2038-0.3125,2.7813,0.54902,0.9247,0.81425,1.0994,1.5312,2.4062,0.36161,0.6591,0.56221,1.1733,0.78125,1.9688,0.20712,0.7519,0.2779,1.1895,0.3125,1.9687l0.96875,0.375,0.65625-0.6562,0.625-1.1875,0.0312-0.9063c-0.23861-0.2026-0.3076-0.4733-0.25-0.7812,0.0695-0.3686,0.51434-0.2913,0.71875-0.625,0.28309-0.4615-0.33152-0.7344-0.65625-1.0938-0.60558-0.6697-1.4305-0.8329-1.625-1.8437-0.0523-0.2732,0.0776-0.4267,0.375-0.7188,0.85519-0.8399,1.1299-0.9736,1.9688-1.8125,0.242,0.142,0.61054,0.1932,0.96875,0.125,0.27914-0.053,0.52914,0.1252,1.4062,0.375,0.60951,0.1736,0.8732,0.086,1.2188,0.031l0.375-0.094c0.0504,0.2114,0.1115,0.4157,0.125,0.6875,0.0531,1.0604-0.15471,2.9947,0.15625,3.5,0.13118,0.2131,0.18605,0.3315,0.28125,0.5625,0.0986,0.2406,0.21375,0.3963,0.21875,0.6563,0.0112,0.6956,0.0471,1.1405,0,1.875-0.0441,0.6911-0.10304,1.042-0.21875,1.75-0.074,0.4511-0.16594,0.7136-0.4375,1.0625-0.28336,0.3639-0.59506,0.4174-0.96875,0.6875l-0.0937,1,1.125,0.4687,1.2812,0.3125,0.6875-0.2812c0-0.2544,0.0399-0.399,0.15625-0.625,0.12748-0.2465,0.23181-0.4386,0.46875-0.5313,0.36244-0.1423,0.75947,0.1292,0.90625-0.094,0.15946-0.242,0.0594-0.3375,0.0312-0.75-0.0453-0.6621-0.18355-0.9888-0.28125-1.6563-0.16416-1.1107-0.20985-1.6865-0.15625-2.75,0.0311-0.6165,0.0383-0.9563,0.15625-1.5625,0.17195-0.8824,0.48556-1.3112,0.6875-2.1875,0.22541-0.9775,0.2647-1.6062,0.375-2.4687,3.1694,0.4528,5.8074,0.3972,9.3438-0.375,0.16911-0.037,0.75-0.25,0.75-0.25,0.79947,0.6889,1.706,1.2642,2.7188,1.625-0.006,0.1016-0.0158,0.8456,0,0.9687,0.0365,0.2876-0.0414,0.4813,0.125,0.7188,0.10551,0.1506,0.19603,0.2396,0.375,0.2812,0.26255,0.061,0.45476,0.023,0.65625-0.1562,0.22633-0.2015,0.1843-0.4545,0.25-0.75,0.032-0.1407,0.007-0.5644,0-0.6875,0.36667,0.055,0.49117,0.062,0.875,0.062,0.35765,0,0.52944,0.014,0.875-0.031,0.005,0.081,0.0199,0.3689,0.0312,0.4688,0.0268,0.2443-0.0757,0.4347,0.0312,0.6562,0.11087,0.2296,0.24955,0.3592,0.5,0.4063,0.20599,0.039,0.35363,0.018,0.53125-0.094,0.29551-0.1851,0.2632-0.4984,0.3125-0.8437,0.0146-0.11,0.0113-0.6919,0-0.7813,0.21161-0.067,0.82729-0.2917,1.0312-0.375-0.005,0.2426-0.0388,0.5168-0.0937,0.8125-0.0699,0.376-0.11965,0.5785-0.25,0.9375-0.20598,0.5676-0.44159,0.8561-0.75,1.375-0.37681,0.6338-0.57286,0.9854-1.0312,1.5625-0.21105,0.266-0.35764,0.3856-0.5625,0.6563-0.25522,0.3374-0.34218,0.5663-0.59375,0.9062-0.32418,0.4382-0.51034,0.724-0.9375,1.0625-0.69364,0.5499-1.1499,0.1099-2.0938,0.8438l-0.21875,1.0312,1.4375,0.5313,1.2812,0.25,0.4375-0.25c-0.0118-0.3011,0.0319-0.5139,0.21875-0.75,0.21357-0.2698,0.44159-0.3511,0.78125-0.4063,0.36132-0.059,0.74677,0.034,1.0312-0.2187,0.35006-0.3109,0.34867-0.9141,0.625-1.4688,0.85827-1.7235,1.6208-2.5628,3-3.9062,0.6126-0.5966,1.1374-0.7579,1.6562-1.4375,0.24651-0.3225,0.51995-0.4692,0.53125-0.875,0.008-0.2828-0.14395-0.4151-0.21875-0.6875-0.10357-0.3771-0.1875-1-0.1875-1,1.5218,0.7446,0.97085,0.6462,1.25,1.4062,0.22555,0.6149-0.0325,1.0395,0.0625,1.6875,0.11114,0.7559,0.46615,1.1139,0.53125,1.875,0.0777,0.9048-0.14299,1.4205-0.3125,2.3125-0.14886,0.7846-0.12995,1.2768-0.46875,2-0.32248,0.6889-0.57094,1.0769-1.1562,1.5625-0.21105,0.175-0.36836,0.2503-0.59375,0.4063l-0.125,1.0312,1.125,0.375,1.625,0.4375,0.375-0.3437c0.16348-0.6545-0.0547-1.6165,0.40625-1.6875,0.40606-0.062,0.69275,0.0001,0.78125-0.3125,0.0367-0.1314,0.0589-0.3259,0.0937-0.625,0.22118-1.8859,0.42149-3.6454,0.625-4.5,0.23012-0.9677,0.21445-1.178,0.40625-1.9063,0.17532-0.6641-0.0853-0.2824,0.40625-1.6875,0.73418-2.0972-0.20816-2.375-1.0625-3.6562-0.46205-0.6931-0.6218-0.9442-0.6875-1.5-0.097-0.8169,0.1647-1.4947,0.125-2.75-0.041-1.3198-0.0225-2.1591,0-2.875,0.11538-0.053,0.22175-0.1207,0.34375-0.1875,1.1706-0.6427,1.6363-0.8361,2.375-2.4688,0.22389-0.4955,0.3195-0.9937,0.3125-1.4687-0.005-0.3321-0Line truncated
|
|
||||||
<g fill="none" stroke="#fedf00" stroke-width="0.987" stroke-linecap="round">
|
|
||||||
<path d="m568.77,359.52-0.76315,0.244c-0.86699,0.4021-1.5778,0.4178-2.6001,0.4961-2.6437,0.2021-4.2714-1.0572-6.9976-0.8476-1.4039,0.108-2.0252,1.1909-3.4598,1.5483-0.65256,0.1625-1.0313,0.2254-1.7016,0.2819l0.51272-1.0333s-1.284,0.2617-2.1153,0.2634c-0.59629,0.001-0.93595-0.028-1.5235-0.1301l1.0181-0.9506s-0.81351-0.1319-1.2936-0.3351c-0.44265-0.1871-0.68353-0.3301-1.06-0.6292,0.66327-0.1139,1.0358-0.1921,1.6893-0.3535,1.5561-0.3849,2.0398-1.147,3.8909-1.3254,1.149-0.1112,3.0321-0.046,7.6428,0.7168,3.0357,0.502,4.3822,0.267,5.5354-0.2572,0.7609-0.3459,1.0108-1.0108,1.1031-1.7883,0.0925-0.7764-0.40408-1.4045-0.87376-1.81-0.12268-0.106-0.44404-0.3351-1.1129-0.363"/>
|
|
||||||
<path fill="#fcd900" stroke-width="0.513" stroke-linecap="butt" d="m524.8,350.61c-0.53042-0.066-0.88442,0.011-1.3397,0.2915-0.48036,0.2958-0.5417,0.6965-0.88809,1.142,0.44517,0.099,0.69843,0.3607,1.1419,0.2538,0.34668-0.084,0.52677-0.2386,0.76117-0.5076,0.31546-0.3625,0.4314-0.6754,0.42746-1.156l-0.10266-0.024z"/>
|
|
||||||
<path d="m536.04,363.79s0.26396,0.4801,0.40661,0.7992c0.24793,0.5552,0.37624,0.8785,0.52426,1.468,0.20036,0.7987,0.11369,1.2838,0.24088,2.0973,0.0225,0.1432,0.0498,0.2634,0.0767,0.3768l-0.0511,1.1287"/>
|
|
||||||
<path d="m544.04,362.71s-0.21881,0.8122-0.354,1.3325c-0.35201,1.3538-0.67648,2.0871-0.94381,3.4601-0.0448,0.2302-0.0777,0.4429-0.10356,0.6444"/>
|
|
||||||
<path d="m531.78,364.17c0.79018,0.1756,0.54424,3.3602,1.7888,4.0904"/>
|
|
||||||
<path stroke-linecap="butt" d="m560.12,369.78,0.3844-0.249c1.0139-0.4146,1.9251-1.0271,2.6857-1.7897"/>
|
|
||||||
<path d="m552.38,368.02c0.002-0.0005,0.005-0.0009,0.007,0,3.533-0.883,5.8849-2.6476,7.5786-2.8688"/>
|
|
||||||
<path d="m555.97,363.61c0.29885-0.011,0.58475-0.033,0.82928-0.068,1.4681-0.2096,1.7042,0.6869,2.7262,1.2584,1.8564,1.0381,2.0973,2.307,4.299,3.3555,0.11638,0.055,0.22331,0.1069,0.32135,0.1551l0.84729,0.4288"/>
|
|
||||||
<path fill="#fcd900" stroke-width="0.513" stroke-linecap="butt" d="m517.7,354.53c0.26819,0.067,0.43196,0.08,0.70745,0.054,0.33148-0.031,0.48373-0.2378,0.81635-0.2488,0.27097-0.01,0.46261-0.032,0.68407,0.1245,0.14092,0.099,0.1999,0.1894,0.27999,0.3419,0.0871,0.1668,0.163,0.2823,0.1245,0.4666-0.0595,0.2842-0.32417,0.4173-0.61431,0.4198-0.23721,0-0.43391-0.062-0.54422-0.2721-0.0707-0.1348-0.0815-0.2425-0.0388-0.3886-0.28393,0.1067-0.48964,0.1108-0.7775,0.016-0.30308-0.1002-0.47473-0.2386-0.63738-0.513z"/>
|
|
||||||
</g>
|
|
||||||
<g fill="#0065bd">
|
|
||||||
<path d="m525.13,364.17c-0.79692-0.2375-1.9658-0.8259-1.9658-0.8259,0.32277-0.251,0.58672-0.2651,0.86276-0.5547,0.38919-0.4083,0.37287-0.7885,0.59264-1.3192,0.21566-0.52,0.18459-0.9545,0.67142-1.3428,0.28956-0.231,0.76232-0.269,1.1177-0.1652,0.35287,0.1127,0.75921,0.4012,0.84843,0.7662,0.13732,0.5611-0.15984,0.8853-0.24595,1.454-0.0858,0.5679-0.29295,0.894-0.19473,1.4599,0.0651,0.3743,0.22625,0.5186,0.35344,0.9072,0,0-1.2643-0.1488-2.0399-0.3796z"/>
|
|
||||||
<path d="m524.14,365.12c-0.007-0.3473,0.2707-0.634,0.61795-0.6399,0.34754-0.01,0.634,0.2707,0.64019,0.6179,0.007,0.3475-0.2707,0.634-0.61795,0.6399-0.34754,0.01-0.634-0.2704-0.64019-0.6179z"/>
|
|
||||||
<path d="m522.38,348.61s-0.0898-0.06-0.14362-0.1036c-0.38326-0.3098-0.41985-0.6531-0.60164-1.111-0.17221-0.4333-0.25692-0.6908-0.3146-1.1534-0.0506-0.4058,0-0.6396,0-1.0485,0-0.3681,0.0396-0.5777,0-0.9435-0.0405-0.3751-0.0306-0.6121-0.21003-0.9438-0.097-0.1801-0.39453-0.3374-0.31435-0.4196,0.0946-0.097,0.25694-0.02,0.4193,0,0.39987,0.048,0.63089,0.1657,0.94381,0.4196,0.37707,0.3058,0.52651,0.5709,0.67171,1.0485,0.16681,0.5481,0.24847,0.8982,0.40774,1.468,0.0826,0.2955,0.12877,0.4688,0.28365,0.7339,0.16096,0.2758,0.31967,0.3838,0.52425,0.6292l-0.0113,0.023c-0.29828,0.327-0.44378,0.5394-0.77666,0.8338-0.30504,0.2699-0.55998,0.4033-0.84674,0.5729l-0.0324-0.01z"/>
|
|
||||||
<path d="m525.98,359.25,2.2309,1.0311c1.1481-0.6348,2.4732-1.9239,3.4964-3.9191,0.88079-1.7176,1.0206-2.6505,1.3639-4.3127l-1.7891-0.5817-0.35709,0.073c-0.55239,1.7233-0.69253,2.704-1.6178,4.1926-0.80226,1.2911-1.7185,2.3049-2.6491,3.0338l-0.67817,0.4834z"/>
|
|
||||||
<path d="m530.92,377.37c0.35963-0.4928,0.51327-0.8107,0.92214-1.2635,0.45616-0.5051,0.80003-0.7021,1.3116-1.151,0.15556,0.016,0.33544-0.011,0.4812,0.072-0.0284,0.5448-0.0563,0.9487-0.1801,1.5407-0.10041,0.4804-0.1864,0.746-0.34698,1.2097-0.13462,0.3881-0.15848,0.6391-0.38973,0.979-0.1542,0.2266-0.29013,0.3158-0.47585,0.5178-0.51046-0.7418-1.3302-1.2967-1.3223-1.9053z"/>
|
|
||||||
<path d="m563.93,379.22c0.57264,0.2103,0.92075,0.2702,1.4686,0.5384,0.6112,0.2994,0.89541,0.5757,1.4678,0.9438,0.0268,0.154,0.10379,0.3188,0.063,0.4823-0.53155,0.1229-0.92749,0.2076-1.5308,0.2516-0.48935,0.036-0.76849,0.027-1.2584,0-0.41028-0.023-0.65818,0.024-1.0485-0.1047-0.26058-0.086-0.38383-0.192-0.62891-0.3146,0.57236-0.6954,0.87992-1.6364,1.4672-1.7968z"/>
|
|
||||||
<path d="m554.17,377.18c0.57265,0.21,0.92047,0.2699,1.4683,0.538,0.6112,0.2994,0.89571,0.5758,1.4681,0.9438,0.0263,0.154,0.10378,0.3189,0.063,0.4826-0.53157,0.1227-0.92749,0.2074-1.5311,0.2513-0.48934,0.036-0.76821,0.027-1.2581,0-0.41029-0.023-0.65821,0.024-1.0485-0.1046-0.26058-0.086-0.38383-0.1918-0.62921-0.3146,0.57263-0.6954,0.87992-1.6364,1.4675-1.7965z"/>
|
|
||||||
<path d="m536.83,379.31c0.57292,0.21,0.92073,0.2701,1.4686,0.5383,0.6112,0.2991,0.89571,0.5758,1.4681,0.9438,0.0266,0.154,0.10378,0.3189,0.063,0.4824-0.53157,0.1227-0.92749,0.2075-1.5311,0.2515-0.48934,0.036-0.76821,0.027-1.2581,0-0.41028-0.022-0.65821,0.024-1.0485-0.1049-0.26058-0.086-0.38383-0.1915-0.62922-0.3143,0.57237-0.6953,0.87993-1.6363,1.4672-1.7967z"/>
|
|
||||||
<path d="m527.85,349.51c-0.61259-0.2781-1.0493-1.0446-0.66072-1.5939,0.15555-0.2197,0.41309-0.1736,0.56617-0.3951,0.18866-0.2726,0.14161-0.5076,0.13597-0.8388-0.007-0.3771-0.14385-0.5727-0.20957-0.9438-0.072-0.4058-0.13913-0.6363-0.13598-1.0485,0.005-0.6281-0.0378-1.0756,0.34555-1.5728,0.24454-0.3171,0.66044-0.5923,0.82421-0.6123,0.14746,0.1364-0.0565,0.502-0.0322,0.822,0.0353,0.462,0.13056,0.7173,0.28758,1.1534,0.20239,0.5625,0.47867,0.8085,0.70267,1.3631,0.20847,0.5156,0.39986,0.8074,0.41956,1.3631,0.0158,0.4567-0.0241,0.7356-0.20959,1.1535-0.16434,0.3695-0.2997,0.5791-0.60951,0.8388-0.26931,0.2252-0.45841,0.3251-0.79637,0.4193-0.24735,0.02-0.40157-0.01-0.62781-0.108z"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
<use xlink:href="#cow" y="36.590756"/>
|
|
||||||
</g>
|
|
||||||
<g fill="none" stroke="#703d29" stroke-width="0.797">
|
|
||||||
<path d="m412.66,249.25h82.179v82.023h-82.179z"/>
|
|
||||||
<path d="m503.6,249.25h82.179v82.023h-82.179z"/>
|
|
||||||
<path d="m412.97,402.41c0.23327,1.4774,0.75922,4.0119,2.1625,6.6087,1.4771,2.3322,0.93285,2.2689,4.2762,6.0008,1.6456,1.837,4.2137,3.4109,6.2271,4.4948,2.0213,1.0885,3.5169,1.6229,6.8417,2.4952,6.5175,1.7104,11.091,1.817,16.574,1.5984,4.2781-0.1709,7.5443-0.6973,10.249-1.0615,3.8574-0.5189,6.7305-0.8278,11.118-1.0105,2.1333-0.089,4.149-0.1101,6.1421,0,2.4057,0.1326,4.7818,0.5054,7.3085,1.0105,5.442,1.0885,10.962,3.1877,10.962,3.1877l0.0135-85.655-82.193-0.023v58.543s0.16862,2.8599,0.31828,3.8096z"/>
|
|
||||||
<path d="m585.48,402.39c-0.23327,1.4771-0.75921,4.0116-2.1626,6.6084-1.4771,2.3325-0.93285,2.2692-4.2759,6.0009-1.6456,1.8369-4.214,3.4108-6.2271,4.495-2.0216,1.0885-3.5169,1.6226-6.8417,2.4952-6.5178,1.7103-11.091,1.817-16.574,1.5981-4.2778-0.1707-7.544-0.6973-10.249-1.0612-3.8574-0.5189-6.7305-0.8279-11.118-1.0108-2.133-0.089-4.149-0.1096-6.1421,0-2.4057,0.1326-4.7815,0.5054-7.3082,1.0108-5.4423,1.0885-11.033,3.1877-11.033,3.1877l0.0565-85.655,82.193-0.023v58.543s-0.16815,2.8596-0.31826,3.8096z"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 76 KiB |
@@ -1,5 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="1200" height="600" viewBox="0 0 12 6">
|
|
||||||
<rect width="12" height="2" fill="#00732f" id="green"/>
|
|
||||||
<rect width="12" height="2" y="2" fill="#fff"/>
|
|
||||||
<rect width="12" height="2" y="4"/>
|
|
||||||
<rect width="3" height="6" fill="#f00" id="red"/></svg>
|
|
||||||
|
Before Width: | Height: | Size: 321 B |
@@ -1,191 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<svg width="600" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="400">
|
|
||||||
<rect width="600" fill="#090" height="400"/>
|
|
||||||
<rect width="400" fill="#bf0000" height="400"/>
|
|
||||||
<rect width="200" height="400"/>
|
|
||||||
<g stroke-width=".5" stroke="#bd6b00" fill-rule="evenodd" fill="#fff">
|
|
||||||
<path d="m319.5 225.84 8.354 0.001c0.0311 3.1574 1.8815 6.5489 4.4798 8.4926h-16.008c2.5051-2.271 3.1897-4.9625 3.1741-8.4938z"/>
|
|
||||||
<path stroke="none" d="m266.71 178.53 4.5742 5.0402 56.934 0.0932 4.6674-5.0402-14.56-0.18636-7.0937-4.947-22.868-0.0932-6.6266 5.1333h-15.027z"/>
|
|
||||||
<path d="m290.02 172.74 19.66-0.0203c2.6616-1.4073 3.4919-5.9014 3.4788-8.4161-0.037-7.4282-5.2325-10.991-10.447-11.18-0.78128-0.0394-1.688-0.64749-1.8947-1.3595-0.51368-1.6128-0.38108-2.6411-0.94375-2.5838-0.50055-0.007-0.35361 0.93999-0.79921 2.4524-0.24489 0.75261-1.0907 1.4945-1.9341 1.5375-6.4904 0.32374-10.676 5.0616-10.513 11.134 0.1099 4.0151 0.577 6.4127 3.3927 8.4364z"/>
|
|
||||||
<path stroke="none" d="m257.66 242.83h84.469l-7.5608-6.1607h-69.348l-7.5596 6.1607z"/>
|
|
||||||
<path d="m296.39 219.69 1.5399 4.6196h3.4991l-2.799-4.6208-2.2399 0.001zm-1.9592 4.6196 0.88641 4.573 4.1059 0.0466-1.4933-4.6208-3.4991 0.001zm6.9527 0.0466 2.8468 4.5264h5.8334l-4.573-4.5742-4.1071 0.0478zm-34.441 10.36c3.0953-2.8778 5.0712-5.3352 5.0867-8.8665h7.5596c0.0155 1.9759 0.73111 3.1574 1.8206 3.0797l7.654-0.0466-0.0466-4.5264h-5.5538l-0.001-24.688c-0.2019-8.7267 10.609-13.813 15.028-13.767l-26.275-0.0466v-0.79324h55.255l0.0466 0.79324-26.647 0.0466c7.9025 0.0155 15.524 7.4987 15.587 13.815v6.9993h-1.0274l-0.0466-6.9061c0-6.9073-8.6993-13.363-15.681-13.161-6.0364 0.17322-15.4 5.9277-15.307 13.115v2.1467l14.327 0.0932-0.13978 2.4729 2.2495 1.4359 4.487 1.43-0.0657 3.7093 3.2136 0.94734 0.0275 3.7057 3.8551 1.6546v3.8359l2.4454 1.5064-0.1123 3.8957 3.3139 2.3331h-7.8403l4.9004 5.4606h-7.2335l-3.5946-5.4606h-4.7594l2.1467 5.4128-5.0855-0.0466-1.2149-5.3662h-6.2061l0.0466 5.7856-22.214 0.001zm22.168-14.981v4.573h5.3209l-1.0752-4.573h-4.2457z"/>
|
|
||||||
<rect y="211.66" x="289.39" height="7.6068" fill="none" width="3.3134"/>
|
|
||||||
<path d="m284.71 219.8h3.2339l-0.0203-5.5968c-0.0418-2.4329 2.142-4.8854 3.1873-4.967 1.1588-0.0439 2.8671 2.2965 2.9244 4.7757l0.0466 5.8064 3.431-0.007v-14.411l-12.803 0.0682v14.332z" fill="none"/>
|
|
||||||
<rect y="223.14" x="310.3" height="3.1268" fill="none" width="4.0135"/>
|
|
||||||
<rect y="217.77" x="307.92" height="3.1268" fill="none" width="4.0135"/>
|
|
||||||
<rect y="212.4" x="304.05" height="3.1268" fill="none" width="4.0135"/>
|
|
||||||
<rect y="207.88" x="300.74" height="3.1268" fill="none" width="4.0135"/>
|
|
||||||
<path d="m298.08 219.82 4.1059 0.13977 7.3266 6.4868v-3.8264l-2.4729-1.7728v-3.0344l-3.5934-2.0524v-3.2673l-3.5002-1.166v-4.4344l-1.774-1.4467-0.092 14.374z" fill="none"/>
|
|
||||||
<rect y="210.35" x="315.43" height="7.0468" width=".98004"/>
|
|
||||||
<g id="c">
|
|
||||||
<path d="m257.32 186.53c-1.234-1.9819-2.7118 2.7488-7.7878 6.2706-2.363 1.608-4.0092 5.8931-4.0247 8.7124-0.0777 1.9365 0.21503 3.8682-0.001 5.7414-0.13619 1.1851-1.3714 3.8156-0.52683 4.4882 2.234 1.6605 5.1261 5.4308 6.4677 6.7317 1.16 1.0166 2.1647-5.248 3.0355-8.0518 0.93301-3.0045 0.51489-6.5955 3.1024-9.3718 1.8338-1.8744 6.4594-3.7189 5.9397-4.5539l-6.2049-9.9668z"/>
|
|
||||||
<path d="m257.06 201.88c-0.38526-0.88581-0.95754-1.8017-1.6562-2.5938-0.69871-0.79204-1.5248-1.4569-2.4375-1.7812-0.88164-0.32494-1.7792-0.75131-2.4062-1.5312-0.31351-0.38997-0.58408-0.88198-0.71875-1.4688-0.12477-0.54363-0.12348-1.2104-0.0312-1.9688-0.10986 0.0798-0.16783 0.17131-0.28125 0.25-2.363 1.608-4.0157 5.8994-4.0312 8.7188-0.0312 0.77881-0.0314 1.5387 0 2.3125 0.17489 0.48532 0.34357 0.95597 0.59375 1.25 0.32596 0.3831 0.71323 0.63629 1.125 0.8125 0.82354 0.35241 1.7746 0.42507 2.6562 0.75 0.9127 0.32434 1.8518 1.058 2.6562 1.9375 0.76683 0.83843 1.3575 1.8005 1.75 2.6562 0.0663-0.2425 0.15395-0.60389 0.21875-0.8125 0.84505-2.7212 0.69713-5.8888 2.5625-8.5312z" fill="#bf0000"/>
|
|
||||||
<path d="m249.82 192.39c-0.48382 3.3557 1.3846 4.4727 3.1478 5.1226 1.8254 0.64868 3.3223 2.6067 4.0928 4.3783" fill="none"/>
|
|
||||||
<path d="m245.3 203.44c0.77054 2.8934 2.7978 2.5314 4.5611 3.1813 1.8254 0.64868 3.7452 2.9567 4.5157 4.7283" fill="none"/>
|
|
||||||
<path d="m255.61 184.48 0.92464-0.59373 17.752 29.898-0.92345 0.59373-17.753-29.898z"/>
|
|
||||||
<path d="m257.52 183.29a2.0459 2.0459 0 1 1 -4.0919 0 2.0459 2.0459 0 1 1 4.0919 0z"/>
|
|
||||||
<rect y="159.27" x="272.7" height="1.6499" width="7.1937"/>
|
|
||||||
<rect y="162.4" x="272.7" height="13.784" width="7.1937"/>
|
|
||||||
<path d="m272.26 157.39 7.9801 0.0466c0.3118-2.7058-2.3893-5.6291-3.9662-5.5992-1.559 0.0753-4.0761 2.9555-4.014 5.5526z"/>
|
|
||||||
<path stroke="none" d="m292.62 155.76c-1.5214 0.63988-2.6876 2.3773-3.4062 4.375-0.71863 1.9977-0.99146 4.2674-0.65625 6.0938v0.0312c0.12767 0.63033 0.30087 1.0828 0.5 1.4062s0.42233 0.51338 0.6875 0.5625c0.26517 0.0491 0.51389-0.0929 0.65625-0.3125 0.14236-0.21963 0.21213-0.50902 0.1875-0.84375-0.14424-1.8787-0.13498-3.7323 0.3125-5.4062 0.44748-1.674 1.3381-3.1644 2.9688-4.375 0.29479-0.21603 0.46415-0.46321 0.5-0.71875 0.0358-0.25554-0.0995-0.47402-0.28125-0.625-0.36346-0.30196-0.93739-0.40779-1.4688-0.1875zm0.15625 0.4375c0.37058-0.15363 0.84219-0.0633 1.0312 0.0937 0.0945 0.0785 0.10575 0.13319 0.0937 0.21875-0.012 0.0856-0.0775 0.23402-0.3125 0.40625-1.7131 1.2718-2.6562 2.8713-3.125 4.625s-0.45856 3.6602-0.3125 5.5625c0.019 0.2578-0.0553 0.45499-0.125 0.5625s-0.10683 0.13994-0.1875 0.125c-0.0807-0.0149-0.24759-0.11733-0.40625-0.375s-0.31728-0.65644-0.4375-1.25c-0.31467-1.7145-0.0372-3.9474 0.65625-5.875 0.69341-1.9276 1.8032-3.5378 3.125-4.0938z" fill="#bd6b00"/>
|
|
||||||
<path stroke="none" d="m295.19 157.73c-1.5192 0.63893-2.5013 2.292-3.0312 4.1875-0.52999 1.8955-0.61336 4.0655-0.28125 5.875 0.26002 1.2838 0.9344 1.9611 1.5938 2.0625 0.32968 0.0507 0.64783-0.0795 0.84375-0.34375 0.19592-0.26429 0.26001-0.61887 0.15625-1.0625-0.37233-1.4981-0.51562-3.366-0.25-5.0625s0.94019-3.2115 2.2188-4.125c0.29553-0.21508 0.46393-0.46314 0.5-0.71875 0.0361-0.25561-0.0995-0.50509-0.28125-0.65625-0.36357-0.30232-0.93709-0.37666-1.4688-0.15625zm0.1875 0.4375c0.37028-0.15351 0.81045-0.0639 1 0.0937 0.0948 0.0788 0.13702 0.13359 0.125 0.21875-0.012 0.0852-0.10826 0.23486-0.34375 0.40625-1.4117 1.0086-2.1286 2.6642-2.4062 4.4375-0.27764 1.7733-0.105 3.6646 0.28125 5.2188 0.0826 0.35318 0.00066 0.59139-0.0937 0.71875-0.0944 0.12736-0.21432 0.18576-0.40625 0.15625-0.38385-0.059-0.98301-0.5548-1.2188-1.7188-0.31777-1.7314-0.22749-3.868 0.28125-5.6875s1.4572-3.2869 2.7812-3.8438z" fill="#bd6b00"/>
|
|
||||||
<rect y="187.39" x="272.31" height="11.107" width="8.0268"/>
|
|
||||||
<rect y="204.85" x="272.78" height="2.3334" width="7.7468"/>
|
|
||||||
<rect y="208.95" x="272.59" height="8.6802" width="7.9335"/>
|
|
||||||
<rect y="219.41" x="272.03" height="4.8534" width="8.6802"/>
|
|
||||||
<path d="m273.1 202.76h6.9946l1.387-2.3092h-9.6359l1.2544 2.3092z"/>
|
|
||||||
<path d="m282.53 194.25 0.0657-6.0711h4.8179c-1.8923 1.5614-3.652 3.4537-4.8836 6.0711z"/>
|
|
||||||
<path d="m273.56 196.74c0.0478 1.2986 1.5184 0.71916 1.5184 0.0657 0-2.0034 0.0263-4.1693-0.0538-5.5873-0.01-1.0453 2.4908-0.78368 2.4765-0.13978 0.01 1.6916 0.0287 4.0116 0.0382 5.9911-0.0179 0.96407 1.6151 0.88045 1.5924 0-0.01-2.2113-0.0108-5.4248 0-7.0519 0.0143-2.0954-5.5013-2.05-5.5443-0.0466 0.002 1.645-0.0299 4.5898-0.0275 6.7688z" fill="none"/>
|
|
||||||
<rect y="209.98" x="273.57" height="7.0935" fill="none" width="5.6935"/>
|
|
||||||
<rect y="212.92" x="277.21" height="1.1667" width="2.0067"/>
|
|
||||||
<rect y="212.92" x="273.71" height="1.1667" width="1.96"/>
|
|
||||||
<rect y="210.07" x="275.67" height="2.8934" width="1.54"/>
|
|
||||||
<rect y="214.04" x="275.67" height="3.0801" width="1.54"/>
|
|
||||||
<path d="m243.99 138.97c0.356 5.567-1.3714 8.6228-4.3198 8.1581-0.81235-3.0881 1.0357-5.1596 4.3198-8.1581z"/>
|
|
||||||
<path d="m237.52 151.31c-2.621-1.3332-0.72992-11.513 0.27596-15.78 0.74425 5.4965 1.9891 13.309-0.27596 15.78z"/>
|
|
||||||
<path d="m238.45 151.79c4.4058 1.5327 7.8941-3.2124 9.0732-8.7077-3.6364 5.0186-9.5546 5.0246-9.0732 8.7077z"/>
|
|
||||||
<path d="m235.11 156.93c-3.4453-0.9103-1.3702-11.71-0.74425-16.03 0.75739 4.4619 3.1323 14.552 0.74425 16.03z"/>
|
|
||||||
<path d="m236.29 156.59c0.19233-3.7248 3.9052-2.6485 6.4677-4.6364-0.41812 1.8612-1.9938 5.1596-6.4677 4.6364z"/>
|
|
||||||
<path d="m232.07 161.58c-3.4142-0.92106-1.3619-12.544-1.5554-17.329 1.0011 4.1346 4.1705 16.209 1.5554 17.329z"/>
|
|
||||||
<path d="m233.66 161.08c2.7966 0.90911 6.5012-0.90792 6.7927-4.2386-2.4084 1.6343-6.2539 0.38467-6.7927 4.2386z"/>
|
|
||||||
<path d="m229.52 166.71c-3.2649 0.26043-1.8039-9.6383-1.8015-18.857 1.1994 8.6169 4.4667 16.505 1.8015 18.857z"/>
|
|
||||||
<path d="m230.65 166.26c2.2053 1.1062 6.1559-0.66182 7.2837-4.3867-3.9841 1.7322-6.6481 0.0394-7.2837 4.3867z"/>
|
|
||||||
<path d="m256.28 144.13c-0.58059 4.8287-2.5541 7.6385-5.5025 7.1738-0.81235-3.0881 1.5781-5.0616 5.5025-7.1738z"/>
|
|
||||||
<path d="m248.48 156.52c4.898 0.69527 6.6624-3.0642 9.9596-7.8702-4.6208 3.3438-10.146 4.039-9.9596 7.8702z"/>
|
|
||||||
<path d="m247.09 155.97c-2.67-3.204-0.0896-7.2275 1.9508-10.657-0.43842 5.1023 1.2998 7.9407-1.9508 10.657z"/>
|
|
||||||
<path d="m245.91 161.26c-0.30105-3.1335 5.0378-3.83 7.4521-5.5718-0.81235 1.811-2.0428 6.6863-7.4521 5.5718z"/>
|
|
||||||
<path d="m244.79 161.33c-3.6914-0.41812-2.1587-6.6863 0.4874-10.17-1.1146 4.8072 1.9496 8.1498-0.4874 10.17z"/>
|
|
||||||
<path d="m242.01 166.55c-4.2015-1.8576-1.5088-7.1272 0.0705-10.238-0.67377 4.0856 2.6927 7.1964-0.0705 10.238z"/>
|
|
||||||
<path d="m242.84 166.06c2.2053 2.879 6.5012-0.85894 7.3828-5.2241-3.738 3.112-6.5 2.6007-7.3828 5.2241z"/>
|
|
||||||
<path d="m233.24 186.32c-0.43166-4.2875 2.7929-12.084 0.50438-16.24-0.31201-0.57103 0.68503-2.087 1.329-1.1672 1.0064 1.4682 2.041 5.6518 2.4738 4.1071 0.45863-1.6796 0.52901-4.6507 2.0164-5.2277 0.94895-0.33808 2.2908-0.55909 1.9249 0.9342-0.36362 1.4359-1.1777 3.419-0.27565 3.5469 0.52315 0.0776 2.0304-1.9544 3.2996-2.8934 1.0228-0.83743 2.5489 0.47308 1.0533 1.7262-4.8608 4.0367-9.5704 5.8537-12.326 15.214z"/>
|
|
||||||
<path d="m224.51 250.85c-0.57042-0.10939-1.3518-0.30325-0.64081 0.58385 5.6789 6.9961 7.3221 8.924 15.603 7.9397 8.3647-1.1012 10.357-3.3637 16.214-6.6504 3.1284-1.8351 7.7026-2.2426 11.17-1.1055 1.6142 0.52834 2.5906 0.56022 1.4336-0.59826-1.1575-1.1569-2.5249-2.7312-3.9485-3.8153-3.1181-2.3942-8.4069-3.4322-12.723-2.6616-6.1044 0.95734-11.148 4.8442-17.176 6.3123-3.1669 0.72294-6.6407 0.61388-9.9317-0.005z"/>
|
|
||||||
<path d="m272.3 263.35c1.056 0.13141 1.725 2.1766 2.2447 0.79204 0.88164-2.2423 0.26401-4.0259-0.72633-3.8288-1.1696 0.3118-3.1478 2.934-1.5184 3.0368z"/>
|
|
||||||
<path stroke="none" d="m220.6 182.92c-1.2149-1.2687-0.86372-1.7537 0.933-1.774 1.4252-0.0896 4.2493 0.87328 5.3209 0.0932 0.98198-0.71319 0.59134-3.738 1.0274-5.1333 0.18994-0.77771 0.7347-1.9986 1.9592-0.0932 3.6221 5.8047 8.1462 12.773 10.08 19.6 1.0572 3.8264 0.0621 9.7996-3.4537 13.814 0.12425-3.4226-1.1516-5.7247-2.707-8.587-1.921-3.7619-9.0565-13.951-13.16-17.919z"/>
|
|
||||||
<path d="m235.53 213.44c3.9829 0.0191 4.6674-5.3197 4.6674-6.813-1.9604 0.37272-5.4141 3.64-4.6674 6.813z"/>
|
|
||||||
<path d="m269.95 265.26c2.8326 0.64461 2.7937-6.1781-0.0995-9.0701 1.274 4.3824-2.1286 8.3884 0.0995 9.0701z"/>
|
|
||||||
<path d="m268.85 265.2c0.18688 3.2427-7.9586-0.42377-10.052-2.9462 4.8125 2.0445 9.8145 0.35216 10.052 2.9462z"/>
|
|
||||||
<path d="m265.28 260.57c0.29129 3.1414-7.0638 0.37929-9.2378-2.074 4.83 1.5602 8.9164-0.51099 9.2378 2.074z"/>
|
|
||||||
<path d="m266.63 261.01c2.8326 0.64461 2.3737-6.412-0.37932-8.8369 1.3211 4.7091-1.8488 8.1552 0.37932 8.8369z"/>
|
|
||||||
<path d="m263.65 256.72c2.8326 0.64461 1.207-5.4312-0.89265-7.8575 0.34096 4.4298-1.055 7.5021 0.89265 7.8575z"/>
|
|
||||||
<path d="m262.15 256.7c0.29185 3.2349-5.4301 0.75147-7.6509-2.3088 4.783 1.561 7.3296-0.27617 7.6509 2.3088z"/>
|
|
||||||
<path d="m260.59 254.24c1.8558-1.3343-0.11294-4.8633-3.645-4.6447 0.34557 2.1312 1.5659 5.88 3.645 4.6447z"/>
|
|
||||||
<path d="m274.54 268.87c0.18688 3.2427-7.9595 1.6298-10.519-1.8255 5.1387 0.97109 10.281-0.76847 10.519 1.8255z"/>
|
|
||||||
<path d="m242.18 263.07c0.29185 3.2349-8.6024-0.32249-10.823-3.3827 4.783 1.561 10.502 0.79778 10.823 3.3827z"/>
|
|
||||||
<path d="m247.63 264.45c1.8558-1.3343-1.9327-4.7703-4.951-5.578 0.34558 2.1312 2.8719 6.8132 4.951 5.578z"/>
|
|
||||||
<path d="m248.2 266.69c0.1986 2.9084-9.5373 1.3132-12.084-1.3741 8.3771 1.5142 11.81-1.1172 12.084 1.3741z"/>
|
|
||||||
<path d="m252.76 268.63c1.0806 2.7015-8.2641 2.0422-11.545 0.4715 5.3012-0.0461 10.802-2.3534 11.545-0.4715z"/>
|
|
||||||
<path d="m257.13 270.6c1.0345 2.421-7.6104 2.3687-11.824 1.0303 5.5812-0.0458 10.801-3.4259 11.824-1.0303z"/>
|
|
||||||
<path d="m263.42 271.9c1.531 2.8646-7.5878 3.1435-10.547 1.7331 5.2725-0.72515 9.2422-3.9877 10.547-1.7331z"/>
|
|
||||||
<path d="m252.74 267c-2.9011 1.8295-2.7458-3.5643-5.0532-7.2996 3.6255 3.3017 7.0194 5.5553 5.0532 7.2996z"/>
|
|
||||||
<path d="m257.88 268.94c-2.4335 2.156-4.379-5.2459-6.594-9.399 3.5805 3.9539 8.8395 7.6085 6.594 9.399z"/>
|
|
||||||
<path d="m264.68 271c-2.0609 2.3888-8.0196-7.0181-10.187-11.919 3.2992 3.8152 11.826 9.895 10.187 11.919z"/>
|
|
||||||
<path d="m258.88 278.18c-1.028 3.6318-16.192-3.4234-17.885-7.0785 8.6768 4.5975 18.092 3.6359 17.885 7.0785z"/>
|
|
||||||
<path d="m210.15 204.38c-0.35481-0.45993-1.3738 0.012-1.1194 1.1206 0.23653 1.5004 2.449 9.2034 6.2515 11.853 2.7118 1.9544 16.965 5.1023 23.427 6.439 3.5564 0.71558 6.5346 2.4896 8.8677 5.3209-0.96526-3.7022-1.7406-6.445-2.9866-9.7996-1.2114-2.9483-4.4213-6.1738-7.746-6.3471-6.175-0.2222-14.167-0.74783-19.974-3.2673-2.9973-1.252-4.7917-2.9436-6.7198-5.3197z"/>
|
|
||||||
<path d="m245.54 234.87c1.9469 1.4336 4.0958-3.704 1.6225-8.588-0.0776 4.7012-3.8141 6.2791-1.6225 8.588z"/>
|
|
||||||
<path d="m247.41 239.58c2.6927 0.82665 3.536-3.937 1.7626-7.7474 0.2957 4.0938-4.2336 6.5596-1.7626 7.7474z"/>
|
|
||||||
<path d="m249.46 243.36c2.6006 1.2948 3.5848-3.5179 1.7159-7.0917 0.2039 4.5593-3.7203 5.9035-1.7159 7.0917z"/>
|
|
||||||
<path d="m248.39 243.65c-1.0304 3.0802-7.0069-2.6554-8.0141-5.7748 3.7094 3.6852 8.7568 3.278 8.0141 5.7748z"/>
|
|
||||||
<path d="m245.68 238.94c-1.171 3.0797-8.6865-4.8497-10.348-8.6679 3.7094 3.6852 11.184 6.4975 10.348 8.6679z"/>
|
|
||||||
<path d="m244.19 234.32c-1.1706 3.5001-9.3403-5.829-11.654-9.1352 3.8968 3.6388 12.537 6.5919 11.654 9.1352z"/>
|
|
||||||
<path d="m243.93 230.86c2.8765-0.55945-0.1633-2.9553-3.6892-6.849-0.16487 4.0999 0.50799 6.9664 3.6892 6.849z"/>
|
|
||||||
<path d="m239.08 228.53c1.2422-1.3529-1.1906-1.9289-4.203-5.3096-0.44441 2.2798 2.7942 6.4535 4.203 5.3096z"/>
|
|
||||||
<path d="m253 243.73c1.5742 0.92123 2.6516-2.3045 0.68982-5.225-0.44888 3.1594-2.1332 4.0368-0.68982 5.225z"/>
|
|
||||||
<path d="m218.81 223.38c-3.3424 2.004-8.6516-5.992-10.068-9.2817 2.9329 3.7754 10.699 7.2242 10.068 9.2817z"/>
|
|
||||||
<path d="m221.65 228.04c-1.8496 2.0506-7.6713-3.5187-9.6942-6.3413 3.1204 2.7022 10.512 3.0236 9.6942 6.3413z"/>
|
|
||||||
<path d="m224.82 232.22c-0.61034 2.801-9.1062-3.4952-11.092-6.4756 3.6626 3.4518 11.649 3.1398 11.092 6.4756z"/>
|
|
||||||
<path d="m223.52 235.25c-1.3106 2.5218-8.2206-3.7268-9.8794-6.9868 4.222 3.6843 10.949 4.4926 9.8794 6.9868z"/>
|
|
||||||
<path d="m219.97 222.97c2.1805-2.2988 1.2516-3.3763-0.338-6.9994-0.8689 3.7206-2.1793 5.2055 0.338 6.9994z"/>
|
|
||||||
<path d="m222.86 227.31c3.9544 0.17418 0.0381-4.6378-0.89693-8.6793 0.3439 4.6062-1.0136 8.2375 0.89693 8.6793z"/>
|
|
||||||
<path d="m225.38 231.13c2.7405-0.61933 1.95-4.4971-0.15066-9.1933 0.43644 5.0738-2.3203 8.0055 0.15066 9.1933z"/>
|
|
||||||
<path d="m224.45 238.8c-1.0304 3.0802-8.8265-4.0555-10.067-6.7554 3.9426 3.3119 10.763 4.4456 10.067 6.7554z"/>
|
|
||||||
<path d="m229.12 243.61c-1.1698 3.0817-9.3391-3.1669-11.839-6.5678 4.9223 3.8722 12.443 3.5126 11.839 6.5678z"/>
|
|
||||||
<path d="m233.88 248.46c-1.3096 4.2937-9.8528-2.5609-12.399-5.9148 5.4358 4.1511 13.096 2.859 12.399 5.9148z"/>
|
|
||||||
<path d="m225.85 237.43c2.3206 1.201 3.2577-5.3837 1.9487-10.033 0.0175 5.0736-4.6535 8.8452-1.9487 10.033z"/>
|
|
||||||
<path d="m229.81 242.66c2.7876 0.82809 1.904-6.2694-0.47802-10.873-0.30875 4.561-2.3662 8.8924 0.47802 10.873z"/>
|
|
||||||
<path d="m234.76 247.56c3.1142 0.17446 0.97142-6.084-1.5973-9.6132 0.4372 4.6069-1.0129 9.0788 1.5973 9.6132z"/>
|
|
||||||
<path d="m229.3 250.23c-0.93619 1.5864-3.226-1.3475-6.9861-3.4886 3.3817 0.88442 7.4021 2.0185 6.9861 3.4886z"/>
|
|
||||||
<path d="m227.52 197.49c2.9065-2.1503 0.6893-6.1726 0-9.9979-0.93539 3.6281-3.3975 8.3887 0 9.9979z"/>
|
|
||||||
<path d="m227.42 202.85c-4.3664-0.52444-3.7093-6.1715-3.8407-9.7506 1.3129 4.8586 4.892 5.6793 3.8407 9.7506z"/>
|
|
||||||
<path d="m228.11 202.12c3.6938-0.21384 3.4979-4.4166 3.695-8.6682-1.872 3.9076-4.0892 4.5145-3.695 8.6682z"/>
|
|
||||||
<path d="m227.96 207.34c-2.8731 0.22937-4.3664-2.5935-5.0234-6.9934 2.725 4.0546 5.2038 2.7907 5.0234 6.9934z"/>
|
|
||||||
<path d="m228.99 206.99c3.6938 0.47546 3.1036-3.8252 2.9555-6.9946-1.1325 3.0212-4.137 3.9733-2.9555 6.9946z"/>
|
|
||||||
<path d="m223.23 205.17c0.29507 2.8074 2.0691 7.6337 4.9255 6.5502 1.1815-3.4477-2.5123-4.137-4.9255-6.5502z"/>
|
|
||||||
<path d="m229.04 212.02c-1.2806-2.4621 2.9053-3.695 3.7918-6.8954 0.50891 4.5802 0.0824 7.5847-3.7918 6.8954z"/>
|
|
||||||
<path d="m217.13 182.84c2.2997-2.4765 0.26879-6.4056-0.42051-10.231-0.9354 3.6281-2.5565 8.4353 0.42051 10.231z"/>
|
|
||||||
<path d="m217.06 187.45c-4.039 0.40976-5.0162-7.8045-5.4272-11.337 1.3129 4.8586 5.9648 7.0794 5.4272 11.337z"/>
|
|
||||||
<path d="m217.89 187.37c2.854-1.4742 2.191-4.6495 3.0881-7.0352-1.9186 2.928-3.6687 3.3474-3.0881 7.0352z"/>
|
|
||||||
<path d="m217.09 192.75c-4.2254 0.36197-6.7425-8.7387-6.8739-12.318 1.3129 4.8586 7.3661 7.4999 6.8739 12.318z"/>
|
|
||||||
<path d="m217.9 192.61c3.9733-0.91389 3.4979-3.4835 2.9018-7.642-1.2651 4.1884-3.4824 3.3008-2.9018 7.642z"/>
|
|
||||||
<path d="m217.04 198c-4.6459 0.78845-4.3198-6.5609-8.0088-11.893 3.1909 3.9602 8.9358 8.9502 8.0088 11.893z"/>
|
|
||||||
<path d="m218.09 197.75c3.5074 0.10154 3.8503-5.1787 3.6556-7.3207-0.80638 2.1336-4.9302 4.1597-3.6556 7.3207z"/>
|
|
||||||
<path d="m209.78 192.34c1.7418 5.6542 4.2158 11.32 7.2586 10.89 1.461-3.2148-2.8862-3.6245-7.2586-10.89z"/>
|
|
||||||
<path d="m218.14 202.4c-1.2806-2.4621 2.9053-3.695 3.7918-6.8954 0.50891 4.5802 0.0824 7.5847-3.7918 6.8954z"/>
|
|
||||||
<path d="m210.98 198.8c2.4872 5.0939 3.609 10.948 7.0244 10.097 1.2747-3.9614-3.7714-4.7905-7.0244-10.097z"/>
|
|
||||||
<path d="m218.71 207.93c-1.467-2.6951 2.719-3.6484 3.7452-7.3625 0.5555 4.861 0.0358 8.3314-3.7452 7.3625z"/>
|
|
||||||
<path d="m225.87 173.45c2.4514 0.66302 5.0222-2.0894 4.131-6.2085-2.8014 0.69766-4.0868 3.241-4.131 6.2085z"/>
|
|
||||||
<path d="m218.03 171.39c0.21384 1.1588 1.6235 1.2639 1.2137-0.37272-0.34166-1.3284-0.4002-2.3271 0-3.4071 0.54834-1.3535 0.36556-3.658-0.0466-4.6196-0.41573-1.0154-1.7931-0.42051-1.2137 0.37392 0.63793 0.92106 0.67138 2.8372 0.23295 3.732-0.577 1.3212-0.4205 3.075-0.18636 4.2935z"/>
|
|
||||||
<path d="m240.9 187.31c-0.94705 1.3932-2.8812 0.54113-1.4078-1.3724 1.2073-1.5486 2.9282-2.8138 3.0552-4.4136 0.10028-2.0286 1.2909-5.1066 2.3726-6.1447 1.1177-1.106 2.4089 0.44989 1.2142 1.1874-1.3426 0.87203-2.2147 4.4568-2.1853 5.836-0.0453 2.0013-2.0413 3.447-3.0489 4.9072z"/>
|
|
||||||
<path d="m237.92 185.07c-0.94705 1.3932-2.4566 0.58456-1.6013-1.6522 0.72225-1.5486 0.79972-3.4676 1.6042-4.6 1.125-1.7165 3.0307-3.1471 4.1125-4.1853 1.1177-1.106 2.0456-0.0402 1.0207 0.90749-1.2445 1.2453-2.5947 2.7953-3.345 3.9693-1.3993 2.2808-0.78335 4.1004-1.7909 5.5607z"/>
|
|
||||||
<path d="m222.18 177.86c-0.11229 1.9667 1.4706 2.4433 1.4001-0.40889-0.0717-2.9777-2.179-5.702-0.88642-10.235 0.67975-2.2176 0.69169-6.2814 0.27955-8.4413-0.36198-2.1423-1.8863-0.74253-1.3069 0.92566 0.63793 1.9341-0.11946 5.6442-0.60687 7.5106-1.4634 5.4335 1.2066 8.0801 1.1206 10.649z"/>
|
|
||||||
<path d="m226.5 166.98c-0.23238 1.8098-1.7642 1.974-1.319-0.58213 0.37128-2.0748 0.43489-3.6346 0-5.3213-0.59586-2.114-0.39724-5.7131 0.0506-7.2151 0.45176-1.5859 1.9486-0.65676 1.319 0.584-0.69323 1.4385-0.72958 4.4313-0.25315 5.8288 0.62702 2.0636 0.45696 4.8026 0.20252 6.7057z"/>
|
|
||||||
<path d="m210.94 204c0.75806 0.90214 2.0358 0.29761 0.87149-0.92336-0.95298-0.98655-0.63931-1.2979-1.22-2.4999-0.57427-1.343-0.54434-2.084-1.2375-3.0436-0.61297-0.91033-1.535 0.0184-0.91733 0.78454 0.77539 0.90604 0.56133 1.5743 1.0356 2.4508 0.87626 1.4999 0.66261 2.2875 1.4678 3.2315z"/>
|
|
||||||
<path d="m231.34 228.61c2.4394 1.1994 4.2911 4.1955 4.413 6.6361 0.20667 2.8086 0.61165 5.1799 1.8732 7.1761-2.0082-0.55909-2.9698-3.7595-3.2554-6.8249-0.2891-3.1729-1.9986-4.5491-3.0308-6.9874z"/>
|
|
||||||
<path d="m236.42 234.49c1.688 3.1159 4.0486 4.3044 4.1692 6.6167 0.2045 2.661 0.40664 2.7968 1.1277 5.4136-1.9871-0.5297-2.4871-0.70287-3.0238-4.6847-0.33098-2.7979-2.571-4.7718-2.2732-7.3456z"/>
|
|
||||||
<path stroke="none" d="m288.97 263.32c0.94853 1.7884 2.038 4.5109 4.0128 4.0128 0.0311-1.369-2.1312-2.3176-4.0128-4.0128z"/>
|
|
||||||
<path stroke="none" d="m291.91 263.93c3.8353 1.5721 7.1472 1.1839 7.5598 3.5946-3.598 0.38826-4.9137-1.0895-7.5598-3.5946z"/>
|
|
||||||
<path stroke="none" d="m275.85 251.24c2.5828 2.1157 4.2588 4.5312 5.0401 7.6528 0.81474 2.9077 1.9604 5.2265 3.6412 7.8403-2.7381-1.8672-4.4596-4.407-5.3209-7.4676-0.7562-3.0081-1.6486-5.2564-3.3605-8.0255z"/>
|
|
||||||
<path stroke="none" d="m279.03 251.23c2.7692 2.2101 5.3794 4.7188 6.1607 7.8403 0.81474 2.9077 1.3069 5.1333 3.1741 8.0267-2.9244-1.8672-4.0856-4.6877-4.947-7.7483-0.7562-3.0069-2.4896-5.2552-4.3879-8.1187z"/>
|
|
||||||
<path stroke="none" d="m288.17 258.47c-0.0765-0.54594 0.29746-1.0226 0.74664-1.166 0.87446-0.32733 1.7454-0.59373 2.6126-0.83982 0.98556-0.23296 1.5375 0.47068 1.5411 0.933 0.005 0.76934 0.0406 1.4228 0 2.0058-0.0538 0.72634-0.19234 0.78009-0.65347 0.88761-0.73827 0.12424-1.6844 0.25087-2.4263 0.74664-0.58776 0.36078-1.1528 0.0753-1.4467-0.55908-0.18994-0.48502-0.29387-1.4336-0.37391-2.0082z"/>
|
|
||||||
<path stroke="none" d="m298.8 258.47c0.0683-0.54594-0.21986-1.0692-0.62115-1.2126-0.78124-0.32732-1.5593-0.40736-2.38-0.37391-0.91144-0.0143-1.1409 0.19114-1.1441 0.65346-0.004 0.76934-0.0363 1.516 0 2.099 0.048 0.72634 0.032 0.78009 0.44398 0.88761 0.65957 0.12424 1.7845 0.15769 2.4472 0.65346 0.5251 0.36078 1.1238 0.0753 1.1526-0.60568-0.0128-0.51368 0.0299-1.5267 0.10139-2.1013z"/>
|
|
||||||
</g>
|
|
||||||
<use x="-600" xlink:href="#c" transform="scale(-1,1)"/>
|
|
||||||
<g stroke="none">
|
|
||||||
<path d="m328.54 286.65c0.0466 1.1815 0.18756 2.1312 0.88761 3.0797-4.0761-1.633-9.8306-0.75859-13.767 1.074-1.7561 0.83863-3.8802-0.95809-1.8206-2.6604 2.9292-2.3737 9.7063-1.0274 14.7-1.4933zm-57.505-0.0621c0.0573 1.1134-0.0717 2.1336-0.48144 3.106 4.4309-1.8349 9.1879-0.3106 13.664 1.4945 3.0774 1.2723 3.3258-0.93061 2.7823-1.6928-0.9342-1.3523-2.7417-2.8372-5.0282-2.8695-1.522-0.0215-7.3816-0.0741-10.937-0.0382zm3.7404-21.642c-1.2364-0.5328-2.6724-0.0203-3.9602 1.3356-4.3269 4.2397-9.4041 8.3707-13.502 11.584-1.5291 1.3284-3.0917 3.7117 3.431 6.0938 0.23654 0.0896 4.9912 1.8517 8.004 1.964 1.2305-0.0346 1.2269 1.8027 0.99871 2.2925-0.51966 0.9784-0.14336 1.3523-1.1934 2.2937-1.0943 0.92345 0.11707 2.1193 0.9772 1.3069 3.6723-3.1884 9.6275-1.148 15.366 0.71797 1.3559 0.37511 3.8371 0.26999 3.8156-1.6008 0.0239-2.038 1.5004-3.4787 2.4036-3.5313 2.3427 0.40617 13.919 0.53519 17.485 0.10154 2.0786-0.26998 2.2041 2.848 3.3163 4.0773 0.76695 0.81473 3.7189 1.031 5.7426 0.13738 4.0008-1.8588 10.097-1.8588 12.582-0.0824 1.0214 0.7777 1.8278 0.14694 1.2472-0.64271-0.74784-1.0799-0.73112-1.5805-1.1026-2.4334-0.933-1.8983-0.18875-2.363 0.78965-2.5004 11.054-1.4252 14.582-5.1966 11.202-8.2716-4.364-3.8276-9.2225-7.6755-13.408-12.198-1.1349-1.1994-1.8851-1.6808-4.2469-0.69885-7.2215 3.2888-16.388 5.6864-25.358 5.862-8.3469 0.0717-19.824-3.7894-24.589-5.8071z"/>
|
|
||||||
<path d="m326.62 265.54c-0.58023 0.0578-1.1972 0.23826-1.6562 0.40625-8.921 3.1336-17.117 5.328-25.656 5.3125-8.3351-0.0155-17.066-2.3091-24.906-5.5312-0.44624-0.19053-0.95981-0.16084-1.4688-0.0312-0.50894 0.12959-1.0125 0.36576-1.3438 0.6875-3.6409 3.6266-7.5824 7.1483-11.812 10.344-0.63909 0.48801-0.53496 1.7307 0.5 2.1562h0.0312c8.3042 2.9793 16.412 8.5315 39.625 8.3125 23.433-0.22135 31.746-5.64 39.188-8.125 0.52464-0.19981 1.0644-0.4994 1.3125-0.96875 0.12404-0.23467 0.15766-0.52598 0.0625-0.8125-0.0952-0.28652-0.28357-0.55445-0.625-0.84375h-0.0312c-4.2235-3.4524-8.7488-6.2064-11.719-10.406-0.33382-0.47902-0.91977-0.55785-1.5-0.5zm0.0312 0.4375c0.50718-0.0506 0.89476 0.027 1.0938 0.3125 3.0414 4.3011 7.621 7.0738 11.812 10.5 0.30008 0.25426 0.44154 0.48023 0.5 0.65625 0.0585 0.17602 0.0438 0.29557-0.0312 0.4375-0.15003 0.28386-0.58962 0.56991-1.0625 0.75-7.534 2.5157-15.668 7.9043-39.031 8.125-23.115 0.21804-31.094-5.3023-39.469-8.3125-0.75458-0.31029-0.68706-1.1606-0.40625-1.375 4.2421-3.2062 8.227-6.7414 11.875-10.375 0.25052-0.24332 0.65266-0.45018 1.0938-0.5625 0.44109-0.11232 0.91238-0.13081 1.2188 0 7.8791 3.2384 16.613 5.5781 25.031 5.5938 8.6179 0.0156 16.903-2.2032 25.844-5.3438 0.44524-0.16293 1.0241-0.35569 1.5312-0.40625z" fill="#bd6b00"/>
|
|
||||||
<path d="m269.71 114.56c-0.0681-1.3788 2.0691-1.4841 1.8242 0.41202-0.313 2.3623 4.4583 8.342 4.8538 12.029 0.2652 2.4726-1.4527 4.6371-3.1538 5.9841-2.0858 1.6157-5.2934 1.3935-6.7938 0.46662-0.90792-0.73075-1.7358-3.2334-1.056-4.224 0.24012-0.33342 1.3272 3.673 3.7213 3.6574 3.2578-0.021 5.8967-2.4682 5.9934-4.6508 0.16725-3.8014-5.3292-9.8095-5.389-13.675z"/>
|
|
||||||
<path d="m279.24 123.95c0.53878-0.38503 1.3989 1.2959 0.79204 1.716-0.50533 0.33652-1.4921-1.2493-0.79204-1.716z"/>
|
|
||||||
<path d="m280.69 120.54c-0.27237 0.13212-0.81354-0.0555-0.65226-0.28671 0.76217-1.0889 2.3869-2.7279 3.5648-3.3 0.36198-0.17585 0.99513 0.46303 0.77651 0.77602-0.70483 1.0071-2.4203 2.1949-3.689 2.8107z"/>
|
|
||||||
<path d="m293.28 110.55c0.30224-0.63089 2.1169-1.3441 2.5792-1.7707 0.42767-0.43783 0.63195 0.37046 0.44917 0.75202-0.30224 0.63052-1.8684 1.6954-2.5553 1.724-0.36914 0.0154-0.65585-0.32422-0.47307-0.7053z"/>
|
|
||||||
<path d="m297.59 110.75c0.39304-1.1074 1.6605-2.7861 2.5326-3.3387 0.44799-0.28336 1.252-0.0605 1.1014 0.364-0.3333 0.93958-1.8839 2.5812-2.9268 3.3546-0.31657 0.28169-0.79801-0.12328-0.70722-0.37989z"/>
|
|
||||||
<path d="m293.9 113.52c-0.26282 0.13153-0.12066 0.69133 0.1326 0.77591 0.53878 0.17943 1.5196 0.21443 1.964-0.0307 0.6451-0.39757 0.35122-2.8442-0.5125-1.5372-0.57939 0.80625-1.0023 0.54726-1.5841 0.79204z"/>
|
|
||||||
<path d="m286.61 119.14c-1.3177-1.0262 0.3548-2.4639 1.7322-1.4601 2.6831 2.024-4.0032 9.7781-7.6408 13.403-0.66541 0.70984-1.2496-1.078-0.39662-1.848 2.6079-2.2121 5.0497-4.8551 6.7472-7.5854 0.32733-0.52563 0.64032-1.6587-0.44201-2.5092z"/>
|
|
||||||
<path d="m301.88 112.47c0.16366-0.9821-1.5889 0.0206-1.6211-1.2814-0.0167-0.68906 1.915-1.1725 2.7226-0.37989 1.3643 1.384 0.34406 3.7184-1.9245 3.8653-1.8911 0.0835-5.0461 2.685-4.5659 3.2319 0.54595 0.67532 5.4499 1.1213 8.3015 0.67472 1.7657-0.24776 1.3953 1.3314-0.41334 1.5452-1.7477 0.20142-3.1717 0.0147-4.8048 0.52803-1.9222 0.54917-2.7608 3.1292-3.8288 4.0921-0.23773 0.16737-0.87925-0.84591-0.63554-1.2268 0.76934-1.2032 1.9962-3.0449 3.3462-3.572 0.85176-0.34501-2.3486-0.45384-3.37-0.74533-0.80995-0.24418-0.57461-1.2735-0.26401-1.848 0.41215-0.89513 3.4286-3.916 4.6447-3.8666 1.1421 0.0483 2.2997-0.2842 2.4132-1.0173z"/>
|
|
||||||
<path d="m306.96 112.73c0.56745-0.50055 0.85775-1.3381 1.4527-1.848 0.32613-0.32661 0.84699 0.0647 0.75978 0.85332-0.0729 0.62084-0.90672 1.1559-1.467 1.6227-0.45635 0.34178-0.98676-0.39638-0.74545-0.62802z"/>
|
|
||||||
<path d="m313.43 110.43c0.8446-0.0933 1.0548 1.5372 0.13141 1.8012-0.56028 0.18672-1.0501-1.7051-0.13141-1.8012z"/>
|
|
||||||
<path d="m311.3 115.47c-0.0131 1.4037 0.67974 1.2746 2.0022 1.2266 1.283-0.0483 2.412 0.0331 2.4072-1.2346-0.006-1.3141-0.72753-2.4637-0.93898-1.5694-0.18636 0.84006-0.33449 2.2154-0.8231 1.6161-0.46112-0.515-0.27834-0.6279-1.0716 0.2173-0.43962 0.46579-0.48979-0.22578-0.75381-0.66003-0.18397-0.2572-0.8207 0.20775-0.8219 0.40402z"/>
|
|
||||||
<path d="m302.08 122.63c-0.31538 1.8576-0.0263 4.4587 0.92464 4.4881 1.1755 0.0382 3.6078-4.0615 4.7594-6.188 0.6905-1.1867 1.8768-1.3942 1.3822-0.15602-0.74903 1.9104-0.68213 5.9976-0.0239 7.1987 0.35361 0.64689 2.9639-0.59325 3.3856-1.5147 0.76695-1.6746 0.14335-4.7616 0.41214-6.6468 0.13022-1.2376 1.2627-1.4963 1.203-0.34919-0.11229 2.0524-0.30702 5.8151-0.16247 7.524 0.086 0.98234 2.8946 2.432 3.3462-0.54272 0.23774-1.8724 1.2018-3.7189-0.0466-5.7933-0.77411-1.297 1.1361-1.1345 2.1659 0.63733 0.72036 1.2058-0.60687 3.2015-0.56028 4.744 0.11947 2.3731-1.7262 3.7214-3.0654 3.7494-1.197 0.0241-1.9771-1.4462-2.9579-1.4668-1.0883-0.0694-2.2065 1.693-3.106 1.6307-3.4859-0.23821-1.6402-5.3335-2.7022-5.396-1.1815-0.0695-2.5744 4.994-4.0295 4.8134-1.4348-0.17227-2.9197-4.1268-2.3224-5.8 0.53998-1.5567 1.5578-1.9216 1.3977-0.93204z"/>
|
|
||||||
<path d="m318.96 114.6c-1.7012-1.0376 0.10752-3.7361 0.93898-2.788 1.6056 1.9229 3.2243 6.487 4.3556 6.8641 0.71678 0.23905 0.68333-3.3736 1.1886-5.016 0.32614-1.2133 1.7931-0.81724 1.5124 0.73733-0.0956 0.51906-1.9162 6.4213-1.7764 6.6546 1.2615 2.522 2.5099 5.0812 3.2996 7.788 0.32613 1.1667-1.0752 0.38097-1.2424 0.1387-0.89478-1.3375-2.4609-6.452-2.4609-6.2187-0.72036 3.598-0.89 4.6599-1.6546 7.7174-0.23295 0.97995-1.6749 0.80147-1.3499-0.92393 0.31299-1.4182 2.3749-8.3926 2.259-8.5947-1.6211-2.8616-3.1036-5.1252-5.07-6.3588z"/>
|
|
||||||
<path d="m322.03 131.2c-0.47427-0.0538-1.2102 1.055 1.1516 1.4906 3.1562 0.57127 6.6111-0.49171 7.6695-3.5866 1.2125-3.6865 2.0141-7.1765 2.6473-8.4934 0.79084-1.5347 1.8027-1.4107 1.056-3.6506-0.52683-1.6123-1.51-1.1258-1.7167-0.26402-0.55192 2.3498-2.6461 9.9521-3.2996 11.352-1.2328 2.5547-3.7177 3.5654-7.5082 3.152z"/>
|
|
||||||
<path d="m328.35 119.07c-0.33808-0.72537-1.1265-0.1639-0.98557 0.62933 0.0836 0.71702 0.66541 1.1068 1.2496 1.0866 0.69169-0.0239 2.1551 0.0232 2.1587-1.1253 0.002-0.80685-0.63196-1.481-1.1026-0.59063-0.45037 0.80614-1.0298 0.72168-1.3201 0z"/>
|
|
||||||
<path d="m329.14 116.03c-0.24251 0.16833-0.0251 1.0656 0.26401 1.0559 1.031-0.0344 2.492-0.36328 3.2745-0.90791 0.22937-0.15937 0.1338-0.70161-0.19233-0.69073-0.99393 0.0331-2.5756 0.007-3.3462 0.54271z"/>
|
|
||||||
<path d="m337.9 118.29c0.74664-1.1667 2.8062-1.2855 2.0655 0.38001-0.52444 1.1476-5.6518 11.055-6.3518 12.315-0.76337 1.4167-1.3882 0.71522-0.8458-0.38802 0.72992-1.4197 4.898-11.962 5.1321-12.307z"/>
|
|
||||||
<path d="m330.18 133.04c-0.21862-0.78845-1.4419-1.9543-1.3045 0.1547 0.2437 3.8285 5.5036 2.6184 7.0961 1.2577 1.4455-1.2811 0.19114 4.3222 2.1121 4.9218 1.0584 0.33927 3.0511-1.105 4.0307-2.3761 2.7166-3.5249 4.4452-8.5779 7.0579-12.058 0.98676-1.3608-0.53997-2.3322-1.1576-1.2493-2.2722 3.8098-5.0939 11.585-8.176 13.604-2.5123 1.608-1.768-2.0703-1.8553-3.1753-0.1099-0.81068-1.0979-2.0034-2.4155-0.9084-0.92106 0.71964-2.3522 1.305-3.6484 1.1879-0.75142-0.0418-1.3858-0.0287-1.7394-1.3586z"/>
|
|
||||||
<path d="m339.57 125.93c0.0275-0.21611-1.1122-0.31419-1.056 0.79204 0.0394 0.81891 1.019 1.0412 1.1875 0.92404 1.5411-1.1208-0.32733-0.56183-0.13141-1.7161z"/>
|
|
||||||
<path d="m337.33 130.42c-0.30343 0.071-0.58178 1.0397 0.13261 1.0946 0.65346 0.0466 3.2135-0.22817 3.9208-0.18672 0.45755-0.0172 0.63196-0.89191-0.34883-0.84531-1.1898 0.0596-2.7536-0.23857-3.7045-0.0626z"/>
|
|
||||||
<path d="m275.37 113.76c0.40617 0.0194 1.5196 1.4621 1.4467 1.9133-0.0502 0.21276-1.191-0.0317-1.5399-0.32661-0.25804-0.21838-0.15411-1.5984 0.0932-1.5867zm-5.3687 10.452c-1.0178 0.55514 0.16128 1.651 0.92345 1.1879 2.8611-1.8525 7.1546-3.7984 8.0518-7.4681 0.2879-1.2429 1.4431-3.1481 2.5398-3.5732 1.0596-0.41083 2.5983 1.9171 3.603 0.0853 0.58895-1.0471 2.6533 0.68715 3.1514-0.43329 0.60687-1.3533 0.31778-2.0984 0.34286-3.3946-0.0442-0.84914-0.69288-1.1028-1.1636 0.27202-0.2449 0.62252 0.043 1.251-0.1565 1.576-0.15172 0.24705-0.62479 0.48609-0.89955 0.28002-0.25327-0.18995-0.0777-0.72036-0.68453-0.95475-0.23534-0.1179-0.61284-0.21598-0.7765 0.0853-0.72036 1.2847-1.1194 2.4826-2.1276 1.1174-0.89836-1.176-1.3535-3.2088-2.0118-0.42672-0.23653 0.98187-1.7286 2.4067-2.6091 2.4067-1.0991 0-0.8231-2.8938-3.2374-2.4534-1.2412 0.26473-1.1552 2.6396-0.97004 3.5175 0.30463 1.22 3.9315 0.34369 3.7511 1.1412-0.62001 2.7712-4.4667 5.4053-7.7268 7.0348z"/>
|
|
||||||
<path d="m247.3 137.42c-0.15411 0.46352 0.46232 1.7227 1.1014 1.8158 0.62718 0.0466 0.94734-1.3595 0.74545-1.8158-0.14933-0.33569-1.737-0.32852-1.8469 0z"/>
|
|
||||||
<path d="m250.63 142.3c-0.40259-0.43365-1.5889 0.72992-0.62957 1.553 0.53877 0.43604 2.5123 1.0692 3.0523 0.14814 0.73111-1.1851-0.72037-5.4881-0.0777-6.0568 0.50175-0.4444 2.8277 2.8743 3.9757 3.1132 2.6975 0.37392 2.05-4.6184 4.9565-4.2792 1.9807 0.26402 2.1981-2.2113 1.9222-3.7568-0.221-1.483-2.6222-3.6238-3.726-4.5814-1.4527-1.2093-2.1002 0.89156-1.1886 1.5841 1.1731 0.93946 3.2362 2.8371 3.5648 4.0924 0.1553 0.59253-1.4336 1.7704-2.0189 1.4515-1.3511-0.73708-2.6079-3.898-3.7894-4.62-0.40259-0.24586-1.3929 0.30977-0.91628 1.296 0.53639 1.0566 2.9053 2.6932 3.0439 3.8209 0.12543 1.0286-1.0561 3.253-1.8314 3.253-0.85297 0-3.0272-2.6879-3.7057-3.953-0.33928-0.60567-1.5148-0.54714-1.6378 0.28911-0.19473 1.2556 0.18158 3.9124 0.48143 5.5586 0.23774 1.559-0.87805 1.6378-1.4754 1.0871z"/>
|
|
||||||
<path d="m246.56 133.73c-0.33927 0.38359 0.79204 1.1338 1.0166 0.9391 0.43604-0.37751 2.1288-2.3073 1.8027-2.9818-0.29029-0.6015-2.6186-1.9187-2.9973-1.2666-0.70244 1.1287 2.1945 1.6344 1.7406 1.9653-0.2234 0.12818-1.0202 0.67855-1.5626 1.344z"/>
|
|
||||||
<path d="m250.73 125.27s0.72752 2.4891 1.3201 1.4521c0.47905-0.71869-1.3201-1.4521-1.3201-1.4521z"/>
|
|
||||||
<path d="m251.92 129.23c-0.2664 0.14563-1.0166 0.73996-0.52802 1.0561 0.77292 0.45718 2.8755 0.81915 2.4215-0.67605-0.27596-0.88068 3.1706 0.0245 2.3307-2.36-0.21981-0.65991-1.2591-1.6123-1.7704-1.7468-0.32494-0.0855-1.4288 0.5199-0.73828 0.85344 0.50413 0.26103 2.0249 1.1546 1.4598 1.7399-0.64152 0.61225-1.0883-0.27477-1.8863-0.13189-0.4014 0.0763-0.13977 1.2186-0.36556 1.5294-0.12663 0.17334-0.70603-0.3824-0.92345-0.26402z"/>
|
|
||||||
<path d="m257.4 119.77c-0.43485 0.2173-1.2138 1.3963-1.2424 1.9414-0.0155 0.2909 0.30344 0.69074 0.55192 0.56662 0.45635-0.22794 1.1612-1.3438 1.1875-1.856 0.0167-0.32386-0.22698-0.78678-0.49696-0.65203z"/>
|
|
||||||
<path d="m260.24 119.46c-0.83982-1.0267 0.8912-2.5509 1.6701-0.49601 0.47069 1.2891 5.4881 7.8921 6.5143 10.132 0.72634 1.516-0.0263 2.1423-0.92464 1.056-2.541-3.242-4.6256-7.2831-7.2598-10.692z"/>
|
|
||||||
<path d="m265.39 119.6c0.89478-0.96932 2.7214-2.9492 2.2292-4.0533-0.3775-0.94961-1.4873-0.85524-1.6773-0.63614-1.0859 1.2962 0.77173 0.97087 0.50413 1.4135-0.55311 1.0384-1.1038 1.61-1.3894 2.608-0.0669 0.23403 0.17203 0.84257 0.3333 0.66792z"/>
|
|
||||||
<path d="m343.17 122.84c-0.6427-0.52062 0.63196-3.044 1.4945-2.0534 2.3678 2.74 3.468 11.636 4.1525 18.294 0 0-1.0644 0.8876-1.0728 0.74664 0-3.5468-1.4252-14.397-4.5742-16.987z"/>
|
|
||||||
<path d="m290.07 114.18c-0.76575-1.7604 1.1492-2.412 1.436-1.1572 1.3308 5.7827 4.5169 10.161 6.942 14.093 0.72992 1.2293 0.14455 1.9618-1.6307 0.83063-1.2293-0.84281-2.4777-3.9162-3.0821-4.0374-1.0943-0.20368-3.7129 4.9927-9.0696 3.5094-1.3858-0.38718-1.2938-4.5079-1.3201-6.328-0.0585-0.85332 0.88402-1.0787 0.91628 0.0853 0.049 1.6781-0.002 5.164 2.1444 5.2813 1.7501 0.0978 5.6267-2.3765 6.4438-4.3107 0.72753-1.9887-1.952-5.9413-2.7799-7.9667z"/>
|
|
||||||
<path d="m344.61 138.38c0.42767-1.191 6.1141-10.735 6.8607-12.835 0.38228-1.0126 2.0141 1.7366 0.42051 3.2201-1.4001 1.26-5.5311 8.0342-6.3017 10.408-0.3548 1.0716-1.4312 0.56148-0.97959-0.79323z"/>
|
|
||||||
<path d="m354.28 129.28c1.0501-3.9348 3.5934 0.60699 1.3535 2.8469-3.4584 3.3874-4.5002 9.8539-9.9871 10.827-1.479 0.31777-4.082-0.66541-4.8538-1.2137-0.30105-0.21384 0.19472-1.6187 1.1194-0.93301 1.3368 1.0441 4.0976 1.2794 5.555 0.0932 3.118-3.0606 5.6566-7.1136 6.813-11.621z"/>
|
|
||||||
<path d="m297.27 142.02c-0.24729 0.28432-1.0035 0.23773-1.0716 0.63674-0.29747 1.4801 0 2.2304-0.32614 3.6556-0.31179 1.3643-1.2591 1.4156-1.1946 0.30343 0.086-1.4419 1.2747-3.4776 0.43484-3.6173-0.55909-0.13141-0.99035-0.87925-0.41215-1.2484 1.0919-0.75739 1.6784-0.64151 2.4287-0.41334 0.26162 0.08 0.32852 0.46471 0.14097 0.68333z"/>
|
|
||||||
<path d="m296.5 140.09c-1.4479 1.2663-2.7906 1.7836-4.1227 3.3844-0.54475 0.65585-0.52922 1.5697-0.85416 2.406-0.32613 0.88761-1.375 1.062-1.7 0.87685-0.54356-0.35719-0.46471-2.0034-1.0716-1.117-0.51489 0.81593-0.84699 1.9401-1.608 1.9257-0.68811-0.0143-1.9867-1.4216-1.3284-1.4897 2.2519-0.23057 2.2244-2.0332 3.0678-2.1515 0.94615-0.12663 1.0083 1.4885 1.5924 1.1648 0.45874-0.23534 0.67497-2.1169 1.1731-2.6246 1.5267-1.5602 2.7345-2.3845 4.2923-3.5313 0.78845-0.62837 1.3511 0.50533 0.55909 1.1564z"/>
|
|
||||||
<path d="m301.78 144.94c-1.1588 0.23415-0.96168 1.7238-0.62121 1.909 0.56148 0.26163 1.43 0.37153 1.7549-1.3416 0.15172-0.70363 0.2891 3.4979 1.8314 1.8792 0.88761-0.98079 3.0869 0.17799 4.008-1.056 0.65943-0.82191 0.86252-1.3953 0.34883-2.6091-0.14933-0.36914-1.0525-0.18756-1.0011 0.70841 0.0454 0.755-0.53519 1.6868-1.2902 1.5279-0.36675-0.0669 0.20667-1.8469-0.16127-2.3295-0.20309-0.26521-0.5113-0.23654-0.71319 0.0382-0.28313 0.38467 0.28432 2.0906-0.6463 2.3152-1.1743 0.27118-0.55908-1.1409-1.056-1.3989-1.5984-0.80637-1.7525 0.20906-2.4538 0.35719z"/>
|
|
||||||
<path d="m310.83 142.08c0.84938-0.23892 0.58418-0.24012 1.921-1.3344 0.52086-0.39423 0.6236 0.75978 0.56865 1.2161-0.0968 0.77532-1.0178 0.22818-1.3033 0.91031-0.41812 0.88641-0.24848 2.9483-0.38826 3.7882-0.0956 0.43126-0.78726 0.39423-0.85296 0.0538-0.19831-1.0238 0.13977-2.0261 0.10752-3.3067-0.0108-0.43484-0.63316-1.117-0.0526-1.3272z"/>
|
|
||||||
<path d="m305.83 139.46c-0.20548 0.92655-0.18995 1.6899-0.18995 2.3255 0.0466 0.51369 0.98557 0.18278 0.98199 0.11707-0.0466-0.81354 0.13857-1.9389-0.10155-2.2526-0.13021-0.16928-0.64271-0.36484-0.69049-0.18995z"/>
|
|
||||||
<path d="m299.54 130.19-1.4584 5.5938-2.029-3.75v3.8438l-4.375-5.1875 1.5218 5.5625-3.9312-3.3438 2.0924 3.7812-6.9747-4.5 4.4385 5.1875-5.5798-2.75 3.9946 3.375-9.1305-3.4375 8.8135 4.3438c3.2225-1.5882 7.6406-2.5625 12.554-2.5625 4.8962 0 9.3348 0.98435 12.554 2.5625 0.0116 0.006 0.0518-0.006 0.0634 0l8.7501-4.3438-9.0037 3.4688 3.9312-3.4062-5.5164 2.7188 4.375-5.1562-6.9747 4.5 2.0924-3.7812-3.9312 3.3438 1.5218-5.5625-4.375 5.2188 0.0634-3.875-2.029 3.75-1.4584-5.5938z"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
<path d="m291.82 251.63c-0.00001 0.59294-0.0892 1.4489-0.26749 2.5679h-0.41461c-0.00001-0.76234-0.0357-1.3486-0.107-1.7588-0.0669-0.41014-0.20062-0.89831-0.40124-1.4645-0.16495-0.47701-0.34551-0.88271-0.54166-1.2171-0.19617-0.33881-0.51047-0.78909-0.94291-1.3508l0.82922-2.0463c0.3834 0.4904 0.65535 0.86712 0.81585 1.1301 0.18278 0.30317 0.35442 0.68434 0.51492 1.1435 0.16495 0.4592 0.292 0.94068 0.38117 1.4444 0.0892 0.50378 0.13374 1.0209 0.13375 1.5514" fill="#fff"/>
|
|
||||||
<path d="m298.32 247.67c-0.00001 0.62415-0.11815 1.0923-0.35443 1.4043-0.23628 0.31208-0.63975 0.53499-1.2104 0.66873 0.16495 0.57957 0.27417 1.0321 0.32768 1.3575 0.0579 0.32546 0.0869 0.6888 0.0869 1.09 0 0.25858-0.0156 0.53498-0.0468 0.82922-0.0268 0.29424-0.078 0.69102-0.15381 1.1903h-0.37448c-0.00001-0.44582-0.0245-0.82922-0.0736-1.1502-0.0446-0.32544-0.11369-0.63083-0.20731-0.91615-0.0223-0.0713-0.14044-0.38563-0.35442-0.94291-0.20954-0.56172-0.41908-1.0276-0.62861-1.3976-0.20507-0.37448-0.54167-0.8894-1.0098-1.5448l0.64197-1.9259c0.33882 0.48595 0.63529 0.82254 0.88941 1.0098 0.25411 0.1828 0.55504 0.27419 0.90278 0.27418 0.75788 0.00001 1.1368-0.41014 1.1368-1.2304h0.38786c0 0.2675 0.007 0.49041 0.0201 0.66872 0.0134 0.17388 0.0201 0.37896 0.0201 0.61523" fill="#fff"/>
|
|
||||||
<path d="m304.29 252.19-0.48148 2.0062c-0.30316-0.0847-0.55059-0.32321-0.74229-0.71553-0.1605-0.32545-0.27641-0.73783-0.34774-1.2372-0.0669-0.49931-0.10031-1.0165-0.1003-1.5514-0.4057 0.107-0.72669 0.1605-0.96297 0.16049-0.46811 0.00001-0.85597-0.12259-1.1636-0.3678-0.30316-0.24965-0.45474-0.56395-0.45474-0.9429 0-0.81584 0.20954-1.5492 0.62861-2.2001 0.42352-0.65534 0.90054-0.98301 1.4311-0.98302 0.41015 0.00001 0.69547 0.11592 0.85597 0.34773 0.17832 0.25413 0.28755 0.54391 0.32767 0.86935 0.0401 0.32545 0.0602 0.95405 0.0602 1.8858-0.00001 0.83369 0.0669 1.4222 0.20062 1.7654 0.10699 0.26749 0.35665 0.58848 0.74897 0.96297m-1.8056-3.3303c-0.0803-0.50822-0.34774-0.76234-0.80247-0.76235-0.19616 0.00001-0.37672 0.0535-0.54167 0.1605s-0.24743 0.20062-0.24743 0.28086c0 0.2675 0.32099 0.40124 0.96297 0.40124 0.20507 0 0.4146-0.0267 0.6286-0.0802" fill="#fff"/>
|
|
||||||
<path d="m310.61 251.69-0.24074 2.4342c-0.47703-0.33436-0.91839-0.93844-1.3241-1.8122-0.42353-0.91392-0.85151-2.209-1.284-3.8853-0.37003 1.6139-0.67542 2.7975-0.91615 3.5509-0.23629 0.74898-0.47034 1.2795-0.70217 1.5916-0.15603 0.20953-0.40569 0.4213-0.74897 0.63529l0.0535-2.3272c0.44136-0.60185 0.7512-1.061 0.92953-1.3776 0.26303-0.46811 0.47925-1.0142 0.64866-1.6384 0.17387-0.6286 0.3299-1.469 0.46811-2.5211h0.44136c0.27194 1.0566 0.53498 1.897 0.7891 2.5211 0.23627 0.58848 0.51268 1.1079 0.82922 1.5581 0.2229 0.31653 0.57509 0.74006 1.0566 1.2706" fill="#fff"/>
|
|
||||||
<path d="m328.98 274.65c0.32497 0.38098 0.55329 0.75473 0.68495 1.1212 0.12801 0.36224 0.22048 0.87984 0.27742 1.5528l-0.72521 0.0591c-0.30903-0.60477-0.60962-1.0784-0.90172-1.4208-0.22275-0.26111-0.58253-0.63238-1.0794-1.1138-0.49683-0.48142-1.0047-0.95049-1.5236-1.4072-0.52252-0.46101-1.188-0.99369-1.9966-1.598-0.28364-0.21128-0.4638-0.36187-0.54049-0.45177-0.11319-0.13269-0.20263-0.39415-0.26833-0.78437-0.0693-0.39448-0.1128-0.88494-0.13041-1.4714l2.5326 2.0598c0.95529 0.78652 1.746 1.4811 2.3722 2.0839 0.48224 0.46431 0.91504 0.92119 1.2984 1.3706m-8.9817-5.4124-0.15174 1.8623-2.9822-0.0806 0.22403-1.9006 2.9099 0.11878m7.8445 8.3364-7.1052 2.1647-1.3076-1.8069 6.1428-1.8715c-0.27881-0.38529-0.49459-0.65466-0.64729-0.80813-0.23728-0.23579-0.50854-0.4207-0.81378-0.55472-0.0197 0.34113-0.16097 0.6409-0.42377 0.89933-0.26282 0.25845-0.60239 0.45109-1.0187 0.57793-0.54602 0.16636-1.0917 0.18937-1.6369 0.069-0.54524-0.12034-0.94606-0.35767-1.2024-0.71196-0.37818-0.52257-0.58114-1.2174-0.60891-2.0846-0.0312-0.95257 0.22954-1.5131 0.78239-1.6815 0.71666-0.21834 1.6856-0.019 2.9069 0.59805 1.2212 0.61706 2.1588 1.3773 2.8126 2.2808l2.12 2.9295m-5.457-3.7938c-0.33492-0.15199-0.60288-0.24601-0.8039-0.28207-0.1974-0.0425-0.378-0.0389-0.54181 0.011-0.20476 0.0624-0.34578 0.17832-0.42306 0.34779-0.0773 0.16949-0.0582 0.33394 0.0571 0.49337 0.0737 0.10186 0.19763 0.16951 0.37177 0.20293 0.17775 0.0269 0.3656 0.0102 0.56352-0.0501 0.15699-0.0478 0.29314-0.12444 0.40847-0.22984 0.11893-0.1119 0.24156-0.27628 0.36786-0.49314m-7.612-1.4544-0.4351 1.8434-2.9552-0.2717 0.44889-1.8622 2.9415 0.29042m7.0047 7.1968-1.5782 0.36205c-0.56162 0.12885-1.0959 0.16839-1.6029 0.11863-0.50697-0.0497-0.98121-0.20821-1.4227-0.47537-0.26101 0.47503-0.71972 0.87346-1.3761 1.1953-0.43524 0.21401-0.94077 0.38707-1.5166 0.51917l-1.1197 0.25686-1.0255-1.882 1.1197-0.25687c0.59006-0.13536 0.99233-0.2484 1.2068-0.33912 0.21909-0.097 0.49354-0.26112 0.82335-0.49247-0.36157-0.22321-0.65323-0.37685-0.87497-0.46091-0.26987-0.099-0.50788-0.12479-0.71405-0.0775-0.0782 0.0179-0.14279 0.0535-0.19377 0.10673-0.0464 0.047-0.0858 0.12867-0.11836 0.24511l-0.49183 0.0661c-0.45495-0.8349-0.5588-1.4805-0.31158-1.9368 0.25182-0.46253 0.85759-0.80388 1.8173-1.0241 0.98816-0.22668 1.8322-0.2776 2.532-0.15275 0.70446 0.11863 1.1761 0.39704 1.4148 0.83524 0.1282 0.23525 0.17671 0.4784 0.14556 0.72944-0.0337 0.24645-0.15614 0.60147-0.36737 1.0651 0.14727 0.0648 0.32005 0.10302 0.51832 0.11461 0.19826 0.0116 0.37559-0.00054 0.53199-0.0364l1.5782-0.36206 1.0255 1.882m-7.5437 1.7549-1.5392 0.2414c-0.85751 0.13449-1.5619 0.003-2.1131-0.3934-0.61288-0.43741-1.1417-1.253-1.5864-2.4466l-0.75738-2.033c-0.17186-0.46128-0.40456-0.80481-0.69812-1.0306-0.14134-0.10869-0.42766-0.25254-0.85894-0.43154l0.52296-1.9696c0.56683 0.31379 1.0036 0.64292 1.3104 0.98741 0.3591 0.40173 0.66356 0.93786 0.91337 1.6084l0.52353 1.4053c0.37027 0.99393 0.72978 1.6674 1.0785 2.0204 0.2764 0.28383 0.5905 0.39815 0.94231 0.34297l1.5391-0.2414 0.72284 1.9403m-6.5774-7.0651-0.99392 1.7499-2.812-0.64929 1.002-1.7654 2.804 0.66485m1.6358 7.9213-7.0124 0.63521-0.42537-1.977 5.8922-0.53374c-0.15305-0.32205-0.36236-0.58714-0.62792-0.79527-0.13913-0.11583-0.44742-0.31021-0.92488-0.58312l0.52396-1.811c0.6487 0.36114 1.1224 0.7579 1.421 1.1903 0.30605 0.43171 0.55448 1.0909 0.74528 1.9776l0.40816 1.897m-5.6298 0.89755c-0.84343-0.028-1.5407-0.0904-2.0917-0.18713-0.55109-0.0967-1.091-0.23959-1.6196-0.42863-0.45261 0.18581-0.85462 0.30471-1.206 0.35671-0.34389 0.0523-0.85848 0.067-1.5437 0.0442l-1.8412-0.0612c-0.50454-0.0168-0.89691-0.11555-1.1771-0.29634-0.28019-0.18078-0.52137-0.47293-0.72355-0.87648-0.4466 0.39667-0.93288 0.67443-1.4588 0.83331-0.44873 0.13694-0.97807 0.19528-1.588 0.17499l-1.6153-0.0537 0.15746-1.9935 1.6153 0.0537c0.7907 0.0263 1.461-0.0959 2.0109-0.36668 0.71498-0.35345 1.1028-0.91373 1.1634-1.6809l0.73973 0.0981c-0.0274 0.15586-0.0566 0.33371-0.0874 0.53354-0.0309 0.19983-0.056 0.4219-0.0753 0.6662-0.0197 0.2492 0.0957 0.46124 0.34614 0.63613 0.25043 0.1749 0.5451 0.26798 0.88397 0.27924l1.3894 0.0462c0.91871 0.0306 1.5804-0.0307 1.9851-0.18384 0.49023-0.18455 0.75696-0.55046 0.80019-1.0977 0.009-0.11727 0.074-0.22044 0.19433-0.30953 0.072-0.0515 0.2177-0.12747 0.43705-0.22796l0.4466-0.2056c0.008 0.0933 0.009 0.22075 0.004 0.38224-0.005 0.15661-0.009 0.25935-0.013 0.3082-0.0212 0.26874-0.10966 0.62343-0.26524 1.0641 0.27166 0.0972 0.57819 0.18334 0.91959 0.25838 0.34136 0.075 0.70273 0.13605 1.0841 0.18302 0.0131-0.16613-0.064-0.38425-0.23145-0.65436-0.16743-0.27011-0.24748-0.45158-0.24013-0.54443 0.01-0.12703 0.0441-0.22387 0.10223-0.29053 0.017-0.0239 0.10579-0.0969 0.26644-0.21895l1.0267-0.81093c0.17899 0.3146 0.29988 0.60031 0.36266 0.85714 0.0707 0.2522 0.0911 0.56641 0.0614 0.94264l-0.21882 2.7704m-10.645-8.1911-1.7712 1.2539-1.3356-0.8244-1.3149 0.9805-1.7572-1.06 1.6777-1.1935 1.4181 0.79248 1.3698-1.0018 1.7134 1.0528m-2.785 7.6352-6.8649-1.1248 0.75327-1.9354 5.7682 0.94517cLine truncated
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 46 KiB |
@@ -1,17 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="690" height="460" viewBox="0 0 138 92">
|
|
||||||
<rect width="138" height="92" fill="#fff"/>
|
|
||||||
<rect width="138" height="36" fill="#000"/>
|
|
||||||
<g transform="translate(69,36)">
|
|
||||||
<g id="c3">
|
|
||||||
<!-- y3 = -y2 = 30*sin(11.25deg)/sqrt(5-4*cos(11.25deg)-sin^2(11.25deg)) -->
|
|
||||||
<path id="c" d="M-30,0 0,-5.7423716V5.7423716z" fill="#fcd116"/>
|
|
||||||
<use xlink:href="#c" transform="rotate(22.5)"/>
|
|
||||||
<use xlink:href="#c" transform="rotate(45)"/>
|
|
||||||
</g>
|
|
||||||
<use xlink:href="#c3" transform="rotate(67.5)"/>
|
|
||||||
<use xlink:href="#c3" transform="rotate(135)"/>
|
|
||||||
</g>
|
|
||||||
<rect y="36" width="138" height="20" fill="#0072c6"/>
|
|
||||||
<path d="M0,0V92H138V0L69,92z" fill="#ce1126"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 754 B |
@@ -1,23 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="600">
|
|
||||||
<clipPath id="c">
|
|
||||||
<path d="M0,0V150H700V300H600zM600,0H300V350H0V300z"/>
|
|
||||||
</clipPath>
|
|
||||||
<rect width="1200" height="600" fill="#00247d"/>
|
|
||||||
<path d="M0,0 600,300M600,0 0,300" stroke="#fff" stroke-width="60"/>
|
|
||||||
<path d="M0,0 600,300M600,0 0,300" stroke="#cf142b" stroke-width="40" clip-path="url(#c)"/>
|
|
||||||
<path d="M300,0V350M0,150H700" stroke="#fff" stroke-width="100"/>
|
|
||||||
<path d="M300,0V350M0,150H700" stroke="#cf142b" stroke-width="60"/>
|
|
||||||
<path d="M0,300H600V0H800V400H0z" fill="#00247d"/>
|
|
||||||
<g>
|
|
||||||
<path fill="#cc3" d="m780.583,154.039c0,148.827,11.8732,201.675,52.6064,242.479,40.7332,40.8042,56.1659,47.2313,67.5231,53.4827,13.1015-7.21148,28.1971-15.1341,65.1152-52.0521,36.513-36.515,54.173-89.15,54.173-246.452-26.559,11.3712-39.7859,15.1175-63.0119,15.0513-17.202,1.68548-43.7399-9.33789-59.6086-16.5484-10.371,6.60246-25.4152,14.4763-52.4514,15.3604-31.2252,1.30952-41.1191-3.73522-64.3451-11.3217z"/>
|
|
||||||
<path fill="#fff" d="m787.775,163.438c0,46.0434-2.72184,108.794,7.00639,145.1,9.77001,36.4622,12.0129,41.8034,19.3596,54.5282l171.206-1.27105c10.576-18.3181,11.1098-29.6647,18.9526-58.9348,7.8148-29.1649,9.7886-94.177,10.0167-142.6-17.216,8.72445-39.7613,14.9075-61.6436,12.1948-17.5423-1.2754-33.7513-5.09258-52.6268-15.2637-16.374,9.35261-22.0822,13.6217-49.1184,14.7138-21.0507,0.98975-38.1018,2.61503-63.1522-8.46789z"/>
|
|
||||||
<path fill="#9cf" d="m814.51,362.056c12.1849,24.4477,69.6325,71.3032,86.433,81.0029,19.168-11.0667,69.8476-57.368,83.9727-81.0029h-170.406z"/>
|
|
||||||
<path fill="#f90" d="m904.221,231.606c5.41355,12.1396,22.7699,25.5448,27.5414,32.1145-6.07314,6.56934-7.28706,5.85387-6.49064,18.0587,10.5604-10.534,10.7499-11.6322,17.5423-10.0346,14.8794,14.1555,2.66292,44.5571-9.63422,51.1666-12.2936,7.05101-10.0622-0.24417-28.4886,8.59299,8.44836,6.88711,18.237-1.01015,26.2362,1.10047,4.34697,4.91697-2.06648,13.8779,1.31216,22.317,7.06953-0.6489,6.22049-14.2559,7.86595-19.1896,5.16445-18.0757,36.2143-30.6826,37.7931-47.2631,6.54677-2.93012,13.09-0.9165,21.0507,3.34487-3.96455-15.5336-17.0792-15.3664-20.5946-20.2178-8.36767-12.1907-15.7845-26.0981-33.6566-29.7059-13.5672-2.73878-12.5532,0.82385-21.2472-4.83-5.41355-4.01853-21.8612-11.6181-19.2298-5.45416z"/>
|
|
||||||
<path fill="#f90" d="m860.839,283.106c8.72935-10.2344,13.0534-31.1272,16.9171-38.2184,8.92956,2.05041,8.83312,3.40792,19.7799-2.96497-14.7027-3.98084-15.8096-3.62755-17.5012-10.0994,6.17695-19.1553,40.0786-23.0599,51.953-15.7817,12.2822,7.06894,4.4742,8.596,21.2779,20.0001,2.44044-10.3389-9.45634-14.9009-11.2359-22.6298,2.52932-5.96126,13.8358-4.74122,20.084-11.5316-3.90439-5.6561-16.127,1.41619-21.4712,2.33396-19.1762,4.09085-45.373-16.1931-61.4875-9.77821-5.77578-4.14976-6.96507-10.606-6.73193-19.3072-12.5539,10.5985-6.27225,21.5753-9.12921,26.805-7.39678,12.7485-16.8297,25.4974-11.8265,42.248,3.79803,12.7158,6.62838,10.1968,5.44639,20.1666-1.19785,6.44061-0.56211,23.8553,3.92513,18.7577z"/>
|
|
||||||
<path fill="#f90" d="m931.763,290.302c-13.7027-1.82835-34.6943,5.45107-43.0585,5.96673-2.77851-8.34642-1.51002-8.96995-12.8934-14.605,4.03197,14.0554,4.9217,14.7758-0.0129,19.5038-20.3904,4.86884-41.4321-20.7724-41.0411-34.2257-0.008-13.6779,5.40195-8.09713,6.94685-27.7067-10.5433,3.35691-8.48447,15.4235-14.502,20.8735-6.65962,1.01994-11.4131-8.83635-20.7407-10.4218-3.05765,6.11145,9.61345,12.4257,13.2018,16.3114,13.5917,13.53,8.93457,45.397,23.0288,55.2268-0.7374,6.85915-5.91783,11.1692-13.8492,15.48,16.0079,4.76053,22.612-6.04289,28.7845-6.41709,15.2702-0.5594,31.594,0.5423,44.0424-12.2046,9.45-9.67656,5.72467-10.6828,15.2857-14.8756,6.40117-2.35427,21.7049-11.8813,14.8078-12.9056z"/>
|
|
||||||
<circle fill="#fff" cx="266.239" cy="122.104" r="0.806" transform="matrix(3.5084546,0,0,3.3448778,6.3307176,-163.01097)"/>
|
|
||||||
<circle fill="#fff" cx="266.239" cy="122.104" r="0.806" transform="matrix(-1.6389991,-2.9574373,3.1020668,-1.5625831,914.32327,1224.3275)"/>
|
|
||||||
<circle fill="#fff" cx="266.239" cy="122.104" r="0.806" transform="matrix(-1.8069804,2.8671155,-3.007328,-1.7227325,1749.0027,-240.21318)"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 4.0 KiB |
@@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="700" height="500">
|
|
||||||
<rect width="700" height="500" fill="#e41e20"/>
|
|
||||||
<path id="half" d="m300.094,97.2043c-4.8618-0.082-12.9308,1.54998-12.75,5.2812-13.5419-2.32092-14.952,3.27267-14.1562,8.25003,1.28844-1.97532,2.85723-3.04776,4.06251-3.24999,1.80576-0.2997,3.6954,0.2835,5.625,1.46871,1.92969,1.1853,4.05558,3.09798,5.00004,4.28121-4.77945,1.14264-8.4717,0.405-12.2188-0.2502-1.84716-0.3231-4.43205-1.36224-5.96871-2.43747-1.53666-1.07541-2.0205-2.08755-4.43754-4.56246-2.84967-2.91798-5.88258-2.09637-4.93749,2.43747,2.18556,4.21092,5.83659,6.08859,10.4375,6.84378,2.214,0.3636,5.51196,1.15263,9.25,1.15623,3.73806,0.004,7.93521-0.54,10.2188-0.0625-1.37187,0.8613-2.92428,2.34621-6.00003,2.93751-3.12777,0.6012-7.88301-1.85994-10.7812-2.53125,0.3681,2.43855,3.44403,4.71816,9.49999,5.90625,9.95152,2.16693,18.2208,3.81375,23.6875,6.78123,5.46669,2.96748,8.91342,6.68268,11.375,9.59375,4.89861,5.79312,5.15628,10.2402,5.46876,11.2187,1.00782,9.2557-2.21958,14.4622-8.21871,16.0625-2.99961,0.8001-8.32788-0.7065-10.2812-2.99997-1.95345-2.29293-3.85407-6.23421-3.31254-12.4062,0.5265-2.42127,3.29526-8.72811,0.93753-10.0312-10.8616-6.00326-24.0512-12.0744-33.5938-15.6873-2.60815-0.98745-4.75675,2.55735-5.59375,3.9375-16.2111-1.97418-30.827-12.9443-37.4062-24.625-4.48101-7.95555-11.8665,0.0164-10.625,7.5312,2.0043,8.38764,8.39502,14.4519,16.0625,18.75,7.86951,4.33314,17.7059,8.59698,27.6562,8.37504,5.36067,1.01412,5.30775,7.94943-1.125,9.24999-12.5809,0.0796-22.6175-0.234-32.0938-9.375-7.18776-6.5628-11.2342,1.25694-9.15624,5.68746,3.52134,13.6583,23.0063,17.483,42.7187,13.0625,7.63344-1.26414,3.06252,6.91542,0.90621,7.00002-8.23662,5.90562-22.9827,11.6841-35.9688-0.0625-5.94243-4.55022-9.96016-0.7254-7.74999,5.84379,5.76216,17.1274,27.8037,13.5302,42.9375,5.09373,3.89529-2.17143,7.43049,2.88045,2.68749,6.71877-18.8201,13.1503-28.2298,13.2999-36.7187,8.24998-10.6275-4.1913-11.5623,7.59637-5.25,11.4688,7.01595,4.30398,24.8701,1.07703,37.9688-7.15626,5.61537-4.17483,5.86944,2.35305,2.31246,4.93749-15.5442,13.4334-21.671,16.971-37.875,14.7812-8.03511-0.6264-7.91442,9.2799-1.59372,13.1562,8.62983,5.29245,25.4827-3.49245,38.5625-14.3438,5.50521-2.94165,6.40935,1.88271,3.68748,7.59375-7.99209,10.0832-15.4932,16.0281-22.7187,18.7812-7.22556,2.75319-14.1755,2.31453-19.0938,0.6246-6.00021-2.06145-6.75261,4.17429-3.43746,9.84375,1.99836,3.41748,10.2797,4.51332,19.2187,1.34379,8.93907-3.16908,18.5358-10.6026,25.125-19.3125,5.73291-5.01894,5.01993,1.72368,2.40624,6.46875-13.1944,20.8587-25.262,28.5963-41.1562,27.2812-7.04754-1.19673-8.6481,4.28364-4.1562,9.34375,7.88742,6.54111,17.7493,6.336,26.375-0.1251,7.66818-7.39323,22.3379-23.3134,30.0312-31.8438,5.42133-4.32189,7.1532-0.0612,5.56254,8.71875-1.44666,5.02803-5.06826,10.3234-14.9375,14.1875-6.74226,3.84804-1.67904,9.15142,3.375,9.25,2.78136,0.0542,8.42922-3.19716,12.75-8.06247,5.68422-6.40053,6.02226-10.6976,9.15625-20.6562,2.96091-4.85442,8.24949-2.58858,8.25003,2.50002-2.53647,9.97519-4.71582,11.7638-9.84375,15.8438-4.90482,4.60494,3.41523,6.13962,6.21873,4.24998,8.11044-5.46678,11.0713-12.5383,13.7812-18.9688,1.95606-4.64166,7.63038-2.39148,5.00004,5.18751-6.28605,18.1128-16.6152,25.2447-34.6875,28.9062-1.83159,0.3258-2.94876,1.40661-2.31246,3.53124,2.42559,2.51811,4.85559,4.80303,7.28127,7.3125-11.1751,3.25377-20.2541,5.08171-31.4377,8.34421-5.48685-3.59721-9.9194-6.64909-15.4062-10.25-1.44684-3.38229-2.12149-8.54505-10.2188-4.90626-5.48685-2.53413-8.01783-1.60488-11.0625,0.93753,4.39542,0.1638,6.30783,1.34091,8.03124,3.34377,2.25009,5.92614,7.43877,6.49863,12.75,4.81248,3.45528,2.91078,5.29542,5.1435,8.74998,8.06247-6.44922-0.2205-10.9422-0.3348-17.375-0.531-6.1407-6.5934-11.042-6.23223-15.4375-1.06245-3.35007,0.5148-4.77018,0.5868-7.06248,4.65624,3.60513-1.4796,5.87322-1.92312,7.43751-0.3123,6.52869,3.78495,10.7938,2.94012,14.0313,0,6.29874,0.3852,11.9746,0.711,18.2812,1.125-2.3166,1.96911-5.49585,3.01365-7.81254,5.00004-9.4603-2.70648-14.3979,0.93663-16.0625,8.65629-1.26783,3.11571-1.86147,6.32349-1.31247,9.65626,0.91566-3.04839,2.38788-5.66937,5.09373-7.3125,8.43201,2.14182,11.6026-1.3005,12.0625-6.34374,4.06449-3.31632,10.1935-4.04766,14.25-7.40628,4.743,1.51839,7.03575,2.45889,11.8125,3.96873,1.6983,5.16078,5.5413,7.20423,11.7812,5.87502,7.42797,0.2331,6.11667,3.28095,6.71877,5.71878,1.97406-3.50109,1.91907-6.90588-2.65626-10-1.66464-4.52241-5.35275-6.57918-10.1875-3.96873-4.55094-1.29204-5.7474-3.1491-10.2812-4.43754,11.4681-3.65526,19.603-4.47777,31.0625-8.12502,2.86848,2.70585,5.14188,4.64841,8.03124,7.06248,1.5228,0.90891,2.98053,1.13787,3.87504,0,7.18083-10.3932,10.3879-19.5528,17.0625-26.4062,2.54997-2.83554,5.77161-6.66135,9.34375-7.59375,1.78605-0.4662,3.97638-0.1818,5.37498,1.34379,1.3986,1.52541,2.49723,4.33683,2.0313,8.53128-0.6687,6.02082-2.12337,7.9218-3.81249,11.5312-1.68912,3.60954-3.75336,5.82975-5.87502,8.59374-4.24341,5.52789-9.8424,8.74539-13.1562,10.9062-6.62769,4.3218-9.43073,2.43027-14.5625,2.15622-6.63273,0.7443-8.39754,3.97467-2.96874,8.4375,5.07492,2.64051,9.63652,2.96649,13.3438,2.28123,3.18312-0.5886,6.90831-4.6971Line truncated
|
|
||||||
<use xlink:href="#half" transform="matrix(-1,0,0,1,700,0)"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 6.3 KiB |
@@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="600">
|
|
||||||
<rect fill="#F2A800" width="1200" height="600"/>
|
|
||||||
<rect fill="#0033A0" width="1200" height="400"/>
|
|
||||||
<rect fill="#D90012" width="1200" height="200"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 260 B |
@@ -1,23 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="450" height="300">
|
|
||||||
<rect width="450" height="300" fill="#000"/>
|
|
||||||
<rect width="450" height="150" fill="#ce1126"/>
|
|
||||||
<g fill="#f9d616">
|
|
||||||
<path d="M231.115,91.82A58.5,58.5 0 1,1 187.916,195.244L179.358,205.685A72,72 0 1,0 232.526,78.394z"/>
|
|
||||||
<g id="s3">
|
|
||||||
<path id="s" d="M302.62435,142.35494C303.12516,147.43953 303.12516,152.56101 302.62435,157.6456L287.69659,156.17534C288.10106,152.06855 288.10106,147.93196 287.69659,143.82518z"/>
|
|
||||||
<use xlink:href="#s" transform="rotate(22.5,225,150)"/>
|
|
||||||
<use xlink:href="#s" transform="rotate(45,225,150)"/>
|
|
||||||
</g>
|
|
||||||
<use xlink:href="#s3" transform="rotate(-67.5,225,150)"/>
|
|
||||||
<use xlink:href="#s3" transform="rotate(67.5,225,150)"/>
|
|
||||||
<path d="M199.32444,114.65618H250.67551L209.1325,144.84033 224.99998,96.000328 240.86746,144.84033z"/>
|
|
||||||
<path d="M287.87869,216.3146C291.71694,220.02891 296.88529,223.69038 300.6338,227.01716C304.38231,230.34392 307.25434,233.10958 309.57908,236.88884C312.98624,242.42773 309.16023,248.7008 303.85486,245.01872C300.98581,243.02751 299.18307,237.65214 294.78788,233.20395C291.53252,230.43267 288.96764,227.52745 280.78551,226.1257C280.39268,226.05841 280.27777,225.22842 280.58665,224.86618z"/>
|
|
||||||
<path fill="#000" d="M231.36058,197.84505 251.60791,209.8174 256.00949,226.89558 279.24991,225.13494 289.46162,213.16262 251.60791,186.9291 231.36058,197.84505z"/>
|
|
||||||
<path d="M279.66324,223.6894C253.62799,206.37539 237.07238,197.02622 212.12131,182.83938C202.31974,177.26634 187.0985,163.25747 199.1052,139.81914C199.86106,155.20638 260.67394,197.4423 286.3703,215.80679z"/>
|
|
||||||
<path fill="none" stroke="#000" stroke-width="1.5" stroke-linecap="round" d="M216.08561,167.51949C236.13137,186.41034 261.37565,201.82127 283.89761,218.85496"/>
|
|
||||||
<circle id="c" cx="290.4" cy="222.297" r="1.008" fill="#000"/>
|
|
||||||
<use xlink:href="#c" x="7.41957" y="6.4655991"/>
|
|
||||||
<use xlink:href="#c" x="13.93812" y="13.090317"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 1.9 KiB |
@@ -1,11 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="744" height="496">
|
|
||||||
<rect fill="#3a7dce" width="744" height="496"/>
|
|
||||||
<path fill="#fff" d="M 183.295 238.539 C 179.242 230.431 179.242 230.431 179.242 222.324 C 177.215 222.324 176.835 222.705 175.663 222.386 C 174.491 222.07 174.048 229.862 170.247 228.341 C 169.614 227.581 172.971 221.945 169.329 219.602 C 168.157 218.839 169.614 214.216 169.107 212.189 C 169.107 212.189 164.484 214.595 161 206.109 C 159.289 203.891 156.946 208.135 156.946 208.135 C 156.946 208.135 157.959 210.732 156.123 211.366 C 153.526 209.465 151.625 210.462 148.332 207.85 C 145.038 205.237 149.029 202.245 142.758 200.028 C 146.812 189.894 146.812 191.92 156.946 187.867 C 150.865 183.813 150.865 183.813 146.812 177.732 C 140.731 175.705 138.704 173.679 132.623 169.625 C 124.516 159.49 120.462 139.222 120.462 125.034 C 125.593 120.283 132.623 141.249 142.758 147.329 C 142.758 147.329 156.946 153.41 156.946 153.41 C 165.053 157.464 167.08 161.517 173.161 165.571 C 173.161 165.571 191.403 171.652 191.403 171.652 C 199.51 177.732 203.564 185.84 209.645 187.867 C 216.232 187.867 217.501 184.073 219.613 183.837 C 231.529 183.226 237.61 181.691 239.985 178.112 C 242.391 175.262 248.155 179.759 264.37 173.679 C 264.37 173.679 262.344 165.571 262.344 165.571 C 262.344 165.571 266.651 162.024 272.478 163.544 C 272.32 159.839 271.939 149.958 277.679 145.5 C 274.193 141.843 276.532 139.222 276.532 139.222 C 276.532 139.222 279.763 136.118 280.142 134.471 C 278.433 125.54 281.625 125.402 282.341 122.774 C 283.056 120.147 279.584 121.047 280.563 117.425 C 281.54 113.802 287.412 112.942 288.198 109.958 C 288.987 106.974 286.524 105.477 286.666 104.765 C 287.933 101.915 286.857 95.2005 286.666 92.6035 C 297.561 89.6898 301.108 80.8223 304.908 84.496 C 306.935 72.3347 308.962 68.2809 321.123 68.2809 C 322.834 64.544 316.688 61.3768 319.096 60.1734 C 323.15 59.6667 326.253 59.9201 331.006 66.0642 C 332.506 68.0112 332.778 63.2138 334.298 62.707 C 335.818 62.2003 339.456 62.1924 339.997 59.7934 C 340.569 57.323 341.392 54.0928 343.419 50.0391 C 345.129 46.7454 346.459 51.3059 347.979 57.7665 C 356.531 58.0831 375.849 59.9835 383.956 62.2003 C 390.037 63.7839 394.091 60.6167 399.918 59.9833 C 404.225 64.2904 408.279 61.0602 410.559 70.2444 C 413.778 75.2001 419.046 70.6879 420.187 72.1446 C 426.965 90.83 450.274 78.2252 452.047 78.542 C 455.023 78.542 458.659 86.8966 461.002 86.689 C 464.81 86.0477 463.732 83.4509 467.058 84.496 C 466.17 91.5266 473.583 99.6343 473.583 104.891 C 473.583 104.891 475.387 105.778 477.059 104.218 C 478.729 102.659 480.265 98.6525 481.753 98.7473 C 485.3 99.2541 486.737 99.7095 490.825 100.424 C 501.815 104.179 507.413 105.026 511.682 106.95 C 513.668 110.584 515.592 112.445 519.617 111.766 C 522.943 114 520.517 116.926 522.481 117.116 C 526.535 115.089 527.865 112.872 531.918 114.899 C 535.972 116.926 540.026 120.98 542.053 125.034 C 542.053 127.06 540.026 135.168 542.053 147.329 C 543.066 151.383 543.557 154.597 547.912 161.549 C 546.755 168.691 553.391 180.709 553.391 183.75 C 553.391 187.803 550.16 189.894 548.133 193.947 C 556.241 200.028 548.133 210.162 544.08 216.243 C 574.483 222.324 560.295 234.485 584.617 228.404 C 578.536 242.592 580.689 241.453 586.77 255.641 C 574.608 263.749 586.518 266.218 578.411 276.352 C 577.904 276.986 583.223 285.157 590.698 285.157 C 588.671 301.372 582.59 295.291 584.617 319.614 C 568.655 319.298 575.115 337.793 564.348 335.829 C 564.981 347.42 570.492 348.434 568.402 360.151 C 560.295 362.178 560.295 362.178 556.241 368.259 C 556.241 368.259 550.16 366.232 550.16 366.232 C 548.133 376.366 544.08 378.393 550.16 388.528 C 550.16 388.528 542.306 388.781 540.026 388.528 C 539.835 392.012 543.51 392.962 544.08 396.635 C 543.763 398.092 532.551 404.489 523.811 404.743 C 521.531 409.747 529.891 415.068 529.385 417.601 C 519.883 419.437 515.703 431.092 515.703 431.092 C 515.703 431.092 520.58 433.056 519.757 435.146 C 517.161 433.245 515.703 433.119 511.65 433.119 C 509.623 433.626 504.683 432.995 499.946 440.989 C 494.747 442.704 492.293 442.084 488.349 447.299 C 486.603 442.331 484.092 447.346 481.021 449.273 C 477.953 451.203 473.82 456 473.265 455.796 C 473.392 454.401 475.166 449.334 475.166 449.334 C 475.166 449.334 465.031 451.361 465.031 451.361 C 465.031 451.361 464.579 451.405 463.783 451.486 C 462.986 451.565 463.199 445.57 461.278 445.787 C 459.358 446.006 453.863 453.327 451.99 453.556 C 450.12 453.785 449.528 451.227 447.916 451.45 C 446.305 451.673 443.163 459.172 442.022 459.371 C 440.881 459.57 436.355 454.813 432.476 455.477 C 412.523 462.509 409.355 441.607 406.252 453.388 C 402.072 451.17 402.796 452.457 398.548 453.57 C 395.838 454.269 395.591 449.987 393.181 450.053 C 388.359 450.189 388.612 454.75 385.983 453.388 C 383.831 443.886 370.844 445.596 369.578 441.543 C 368.548 437.315 375.204 437.335 377.357 434.471 C 379.003 430.338 375.638 428.769 382.317 424.782 C 391.022 418.894 386.018 416.673 387.544 412.248 C 390.274 405.859 390.29 404.299 388.01 398.662 C 388.01 398.662 381.232 380.42 379.902 380.42 C 375.849 379.281 375.849 387.133 36Line truncated
|
|
||||||
<g style="fill:none;stroke:#fff;stroke-width:2.5;stroke-linejoin:round">
|
|
||||||
<path d="M 595.512 297.571 C 594.92 298.903 595.025 300.233 595.637 301.183 C 596.736 299.535 595.808 298.775 595.512 297.571 z"/>
|
|
||||||
<path d="M 119.512 148.153 C 119.512 148.153 116.408 147.773 117.105 150.497 C 118.119 148.406 119.449 148.28 119.512 148.153 z"/>
|
|
||||||
<path d="M 120.209 141.819 C 118.499 141.883 116.408 141.566 117.105 144.289 C 118.119 142.199 120.146 141.946 120.209 141.819 z"/>
|
|
||||||
<path d="M 131.888 178.113 C 131.888 178.113 134.549 177.923 133.852 180.647 C 132.838 178.556 131.952 178.24 131.888 178.113 z"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 6.7 KiB |
@@ -1,34 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<svg width="800" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" height="500">
|
|
||||||
<rect width="800" fill="#74acdf" height="500"/>
|
|
||||||
<rect y="166.67" width="800" fill="#fff" height="166.67"/>
|
|
||||||
<g id="rays">
|
|
||||||
<path id="ray1" stroke-width="1.1116" stroke="#85340a" fill="#f6b40e" d="m396.84 251.31l28.454 61.992s0.4896 1.185 1.28 0.8586c0.7902-0.3267 0.2988-1.5116 0.2988-1.5116l-23.715-63.956m-0.68 24.12c-0.3465 9.4278 5.4526 14.613 4.6943 23.032-0.7569 8.42 3.8673 13.18 4.9396 16.454 1.0733 3.2744-1.16 5.2323-0.198 5.6982 0.96336 0.4662 3.07-2.1207 2.3833-6.7756-0.68675-4.6549-4.2204-6.0368-3.3898-16.32 0.83-10.283-4.206-12.678-2.98-22.058"/>
|
|
||||||
<use xlink:href="#ray1" transform="rotate(22.5 400,250)"/>
|
|
||||||
<use xlink:href="#ray1" transform="rotate(45 400,250)"/>
|
|
||||||
<use xlink:href="#ray1" transform="rotate(67.5 400,250)"/>
|
|
||||||
<path id="ray2" fill="#85340a" d="m404.31 274.41c0.45334 9.0538 5.5867 13.063 4.5787 21.314 2.2133-6.5249-3.1233-11.583-2.82-21.22m-7.6487-23.757l19.487 42.577-16.329-43.887"/>
|
|
||||||
<use xlink:href="#ray2" transform="rotate(22.5 400,250)"/>
|
|
||||||
<use xlink:href="#ray2" transform="rotate(45 400,250)"/>
|
|
||||||
<use xlink:href="#ray2" transform="rotate(67.5 400,250)"/>
|
|
||||||
</g>
|
|
||||||
<use xlink:href="#rays" transform="rotate(90 400,250)"/>
|
|
||||||
<use xlink:href="#rays" transform="rotate(180 400,250)"/>
|
|
||||||
<use xlink:href="#rays" transform="rotate(270 400,250)"/>
|
|
||||||
<circle r="27.778" stroke="#85340a" cy="250" cx="400" stroke-width="1.5" fill="#f6b40e"/>
|
|
||||||
<path id="loweyecontour" fill="#843511" d="m409.47 244.06c-1.8967 0.00003-3.7131 0.82183-4.7812 2.5312 2.1367 1.9227 6.8565 2.1318 10.062-0.21875-1.3883-1.4954-3.3845-2.3125-5.2812-2.3125zm-0.0312 0.4375c1.8462-0.0335 3.5717 0.81446 3.8125 1.6562-2.1367 2.3504-5.5508 2.1463-7.6875 0.4375 0.9348-1.4957 2.4391-2.0677 3.875-2.0938z"/>
|
|
||||||
<use xlink:href="#uppalpebra" transform="matrix(-1 0 0 1 800.25 0)"/>
|
|
||||||
<use xlink:href="#eyebrow_nose" transform="matrix(-1 0 0 1 800.25 0)"/>
|
|
||||||
<use xlink:href="#pupil" transform="translate(18.862)"/>
|
|
||||||
<use xlink:href="#lowpalpebra" transform="matrix(-1 0 0 1 800.25 0)"/>
|
|
||||||
<path d="m395.75 253.84c-0.91341 0.16668-1.5625 0.97727-1.5625 1.9062 0 1.0614 0.87748 1.9062 1.9375 1.9062 0.62667 0 1.2025-0.2968 1.5625-0.8125 0.73952 0.55614 1.7646 0.61511 2.3125 0.625 0.0843 0.002 0.19312 0 0.25 0 0.54791-0.01 1.573-0.0689 2.3125-0.625 0.36 0.5157 0.93583 0.8125 1.5625 0.8125 1.06 0 1.9375-0.84488 1.9375-1.9062 0-0.92898-0.64918-1.7396-1.5625-1.9062 0.513 0.1809 0.84375 0.6765 0.84375 1.2188 0 0.7074-0.57124 1.2812-1.2812 1.2812-0.6804 0-1.2413-0.54015-1.2812-1.2188-0.20862 0.41637-1.0341 1.6551-2.6562 1.7188-1.6222-0.0636-2.4476-1.3024-2.6562-1.7188-0.04 0.6786-0.60085 1.2188-1.2812 1.2188-0.71001 0-1.2812-0.57385-1.2812-1.2812 0-0.54225 0.33075-1.0378 0.84375-1.2188z" fill="#85340a"/>
|
|
||||||
<path d="m397.84 259.53c-2.138 0-2.9829 1.9368-4.9062 3.2188 1.0687-0.42633 1.9096-1.2693 3.4062-2.125 1.496-0.85442 2.7717 0.1875 3.625 0.1875h0.0312c0.8532 0 2.129-1.0416 3.625-0.1875 1.4967 0.8559 2.3688 1.6987 3.4375 2.125-1.9233-1.282-2.7996-3.2188-4.9375-3.2188-0.4266 0-1.2716 0.23055-2.125 0.65625h-0.0312c-0.85334-0.42642-1.6983-0.65625-2.125-0.65625z" fill="#85340a"/>
|
|
||||||
<path d="m397.12 262.06c-0.8439 0.0374-1.9596 0.20675-3.5625 0.6875 3.8473-0.85434 4.6962 0.4375 6.4062 0.4375h0.0312c1.71 0 2.5588-1.292 6.4062-0.4375-4.2744-1.282-5.1242-0.4375-6.4062-0.4375h-0.0312c-0.80125 0-1.4372-0.3124-2.8438-0.25z" fill="#85340a"/>
|
|
||||||
<path d="m393.75 262.72c-0.24819 0.003-0.51871 0.005-0.8125 0.0312 4.488 0.42766 2.3306 3 7.0312 3h0.0312c4.7007 0 2.5745-2.5724 7.0625-3-4.7007-0.4266-3.2146 2.3438-7.0625 2.3438h-0.0312c-3.6075 0-2.4959-2.4215-6.2188-2.375z" fill="#85340a"/>
|
|
||||||
<path d="m403.85 269.66c0-2.1234-1.7233-3.8465-3.8463-3.8465-2.1233 0-3.8463 1.723-3.8463 3.8465 0.423-1.781 2.0166-3.0393 3.8463-3.0393 1.8333 0 3.424 1.2586 3.8463 3.0393v0 0z" fill="#85340a"/>
|
|
||||||
<path id="eyebrow_nose" fill="#85340a" d="m382.73 244.02c4.9146-4.2729 11.11-4.9147 14.53-1.7086 0.837 1.1207 1.3733 2.319 1.5934 3.5696 0.4302 2.433-0.3303 5.0617-2.2367 7.7559 0.2151-0.001 0.6435 0.2124 0.8568 0.4266 1.6967-3.244 2.2967-6.5761 1.74-9.7454-0.1458-0.828-0.3735-1.643-0.6696-2.4357-4.7007-3.8452-11.11-4.2729-15.811 2.1377z"/>
|
|
||||||
<path id="uppalpebra" fill="#85340a" d="m390.42 242.74c2.7767 0 3.4186 0.6417 4.7007 1.71 1.2833 1.0683 1.9233 0.8541 2.1367 1.0683 0.2124 0.2142 0 0.8541-0.4266 0.6399s-1.2833-0.6399-2.5633-1.7086c-1.2833-1.0696-2.5633-1.0683-3.8463-1.0683-3.8463 0-5.983 3.2046-6.4094 2.9907-0.4266-0.2142 2.1367-3.6325 6.4094-3.6325z"/>
|
|
||||||
<use xlink:href="#loweyecontour" transform="translate(-19.181)"/>
|
|
||||||
<circle id="pupil" cy="246.15" cx="390.54" r="1.923" fill="#85340a"/>
|
|
||||||
<path id="lowpalpebra" fill="#85340a" d="m385.29 247.44c3.6327 2.7783 7.265 2.5644 9.4017 1.282 2.1367-1.282 2.1367-1.7086 1.71-1.7086-0.4266 0-0.8532 0.4266-2.5633 1.281-1.71 0.8559-4.273 0.8559-8.546-0.8541z"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 4.9 KiB |
@@ -1,110 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="500">
|
|
||||||
<rect height="500" width="1000" fill="#006"/>
|
|
||||||
<path d="M0,250 1000,0V500z" fill="#bd1021"/>
|
|
||||||
<path d="M107.14,250 1000,26.79V473.21" fill="#fff"/>
|
|
||||||
<g stroke="#000" stroke-width="1.72">
|
|
||||||
<path d="m832.04,306.06s-6.2429-5.108,1.135-13.337c-3.973-3.4049-0.2834-9.9312-0.2834-9.9312s-6.8111-2.5547,0.2834-13.054c-5.108-3.4049-2.8381-11.068-2.8381-11.068s-16.742-6.2429-0.85018-12.201c-13.054,5.6748-25.257-7.6626-25.257-7.6626l-19.012,0.56816c-3.2161-15.797-28.283-2.0814-9.6482-47.39-4.8242-0.85142-10.216-2.27-15.607,1.7027-5.3916,3.9728-20.715,12.486-29.796,3.9728-9.0806-8.5131,5.9593-20.715,6.2431-20.999,0.28367-0.2838,20.148-10.5,22.986-17.31-0.28381-5.108-6.5269-9.0806-0.85142-20.148,6.5267-10.5,46.538-20.432,64.701-23.837,8.7962-3.9728,12.769-11.635,12.769-11.635l1.9865,7.378s40.296-11.918,42.282-17.594c1.9865-5.6755,0.85156,5.1078,0.85156,5.1078,15.891-1.4189,36.038-15.04,38.876-8.7969,13.337-2.5539,38.877-13.905,38.877-13.905s8.7962-0.28364,2.5533,9.3646c3.973,6.2429-1.135,11.635-1.4184,11.635-0.28477,0,1.7017,6.2429-3.4062,9.6482,1.7045,5.3916-3.1215,9.6482-3.1215,9.6482s2.2713,6.5267-6.8097,9.932c0.85157,5.6755-5.108,6.8106-5.108,6.8106s0.85156,5.9593-3.1215,8.5131c0,4.5404-4.5398,6.8106-4.5398,6.8106s2.8367,1.7026-1.1363,4.5404c-3.9716,2.8377-45.119,28.093-45.119,27.81,0-0.28366,30.08,5.3917,32.066,6.5268,1.9865,1.1351,24.688,16.175,24.688,16.175l-22.987,28.377s-25.539-2.8367-26.673-1.4184c-1.135,1.4184,5.3914,1.9865,6.8097,4.2564,1.4197,2.2699,3.6896,7.6627,8.2294,7.0945,4.5412-0.56816-8.5129,8.2295-17.026,9.081,0,3.1215,10.783,3.4049,13.621,0.85155,2.8381-2.5547-6.8111,7.3779-7.9461,8.7962s12.771-1.9865,12.771-1.9865-2.2713,9.3644-14.472,12.202c4.8232,7.946,2.8367,13.054,2.5533,13.054-0.28339,0-7.946-7.946-15.324-6.5277,1.9865,7.6627,7.9461,14.756,9.6492,15.892,1.7017,1.135-13.337,0.85018-15.324-3.4062-1.9865-4.2564-3.6896,10.216,1.7018,14.757-6.2416,0.2834-11.634-3.4062-11.634-3.4062s-3.6882,8.5128-1.135,12.771c2.5547,4.2564-8.7962-8.5142-8.7962-8.5142l-21.567,9.081-4.8246-8.2294z" fill="#9c3900" stroke-linejoin="round"/>
|
|
||||||
<g fill="#ffc221">
|
|
||||||
<path d="m665.36,289.17c0.50543,0,31.331-0.50627,45.48-8.5913,7.0747,11.117,16.676,18.697,16.676,18.697l4.5481-16.17s11.117,0.50489,12.128,3.032c-1.516,3.0307-2.0213,7.0739-2.0213,7.0739s7.58,0.50627,8.0853,1.516c0.5053,1.0111-2.0213,9.601-2.0213,9.601l32.342,7.5801s2.5266-12.633,5.0532-11.117c2.5268,1.516,13.644,17.181,29.31,18.192,15.665,1.0111,16.676-13.139,16.676-13.139l3.5369,2.0223s6.569-14.149,7.5801-14.149,2.5272,2.0209,11.117,2.0209c2.5272,3.032,3.5383,10.106,3.5383,10.106s-9.6024,9.6024-6.5704,17.183c3.032,7.5801,3.5383,5.5578,3.5383,5.5578l69.736,16.676s3.5383,5.5592-2.5258,8.5913c0,0.50489-70.242-16.171-70.242-16.171s-6.5704,7.5801-11.623,6.0641c-5.053-1.516-1.516,3.032-1.516,3.032l75.8,6.0641s5.5592,7.0752,1.516,9.0962c-5.053,0.50488-81.864-5.053-81.864-5.053s-4.5481,9.601-9.601,1.516c-3.5369,5.5578-7.5801-1.516-7.5801-1.516s-6.569,5.053-7.5801-0.50626c-5.5592,4.0432-9.0961-2.5258-9.0961-2.5258l-32.341-2.0223-2.0213,3.032s5.5587,1.516-3.032,5.0543c-8.5907,3.5369,51.544,2.0209,53.06,2.5258,1.516,0.50625-4.0418,5.0543-4.0418,5.0543s30.825,2.0209,36.383-4.5481c5.5592-6.5703-2.0209,8.5899-2.0209,8.5899s24.256-1.0098,24.256-2.0209-0.50626,7.5801-17.181,6.569c10.106,6.5704,22.739,10.612,22.739,10.612s-12.633,3.032-27.287-0.50488c2.5258,6.569,13.644,12.633,13.644,12.633s-8.0864,7.0752-26.279-10.107c5.0543,9.0962,1.0111,12.634,0.50625,11.623-0.50625-1.0111-9.0961-13.644-29.309-18.192,12.633,8.085,7.0739,11.623,7.0739,11.623s-6.569-11.623-17.181,0c-4.0432-10.612-19.708-16.676-38.911-17.687-6.064-7.0739-9.6014-5.0529-23.751-9.0961-8.0853-9.0948-19.708-19.202-19.708-19.202s0.5053-13.644,14.149-12.128c1.516,4.5481,1.516,3.032,1.516,3.032s15.16-5.5592,19.708,2.0209c6.5692-11.623,15.665-1.7375,17.181,2.3043,4.3537,0.63832,26.278,1.2326,26.278,1.2326s-2.5272-4.5481-1.0112-4.0418c1.516,0.50488,13.644-4.5481,13.139-6.0641-0.50625-1.516-1.0111-6.569,1.0098-6.0641,2.0223,0.50489-17.181-2.5272-27.793,5.5592-3.5373-3.5383-1.0106-13.139-1.0106-13.139l-31.331-6.569-1.516,8.085s-9.096,1.516-8.5907-0.50487c0.50529-2.0223-2.0213,7.0739-2.0213,7.0739s-12.128-3.0321-12.128-3.5369c0-0.50489,3.5374-18.192,3.5374-17.687,0,0.50626-10.107,1.0112-24.256,11.623-4.0426-12.633-35.879-29.309-35.879-29.814z"/>
|
|
||||||
<path d="m704.78,247.73s-21.224,18.191,0,28.803c1.0106-7.0752,2.5268-8.085,2.5268-8.085s17.687,6.569,28.299-9.0961c-4.5481-6.569-12.633-4.0418-12.633-4.0418s-16.676-0.001-18.192-7.5801z"/>
|
|
||||||
</g>
|
|
||||||
<path d="m722.47,255.82-14.655,12.633" fill="none"/>
|
|
||||||
<g fill="#fff">
|
|
||||||
<path d="m705.48,247.88,0,0s2.8377-2.8381,3.6891-6.2429c0.85129-3.4049-1.1351-7.0945,2.2702-10.216,3.4051-3.1215,48.241-22.134,51.93-25.823,3.6891-3.6888,10.499-11.634,11.351-13.337,0.85129-1.7027,3.4053,8.5131-4.2566,13.054,8.2293-2.2707,13.621-4.8243,17.026-3.6892-3.4058,4.8242-12.486,12.77-16.743,12.77,9.932-3.6896,19.012-6.8111,21.567-4.8246,2.5533,1.9865-12.202,11.919-18.162,12.486,9.932-2.5533,23.27-6.5263,24.971-2.2699-5.3914,1.7031-3.6896,3.1201-14.756,9.3644-1.4188,1.1363-8.5131,1.4184-8.5131,1.4184,8.5131-0.85156,20.147-4.2564,21.282,1.9865-6.8097,2.5533-9.3639,5.9595-15.039,7.3779-5.6755,1.4197-18.729,3.973-26.675,7.0945-7.9455,3.1215-19.58,12.202-19.58,12.202s-25.256,0.85155-25.256,0.56678c0-0.28339-4.824-11.634-5.1078-11.918z" stroke-linejoin="round"/>
|
|
||||||
<path d="m921.99,230.57,49.092,9.3644s5.3928-6.2429,2.5547-9.6478c7.3779-1.7017,5.3914-11.351,5.3914-11.351s8.5128-3.6883,1.4183-12.202c4.826-4.8239-1.135-8.5128-1.135-8.5128s1.9865-8.5131-4.2564-9.3644c1.7031-6.8104-10.783-9.0807-10.783-9.0807s-25.823,7.0944-43.985,7.6618c5.9595,5.9593-2.2699,9.6482-2.2699,9.6482s4.8246,3.4053,3.4049,6.2429c-1.4183,2.8382,0.85157,5.9597-5.3914,7.9462,8.2294,3.6896-0.85156,9.9312-0.85156,9.9312s9.081,6.2429,6.8111,9.3644z"/>
|
|
||||||
</g>
|
|
||||||
<g fill="none">
|
|
||||||
<path d="m742.17,293.72-6.5694,29.309"/>
|
|
||||||
<path d="m748.24,304.83-2.0213,9.601"/>
|
|
||||||
<path d="m780.58,312.41-3.032,9.0962"/>
|
|
||||||
<path d="m836.67,374.06c-0.50489,0-16.17,2.0209-18.192,1.516-2.0209-0.50489,24.761,8.085,24.761,11.622"/>
|
|
||||||
<path d="m808.37,377.6s-15.666-10.106-18.192-9.0961c-2.5269,1.0111,15.665-0.50489,17.181-2.0209"/>
|
|
||||||
<path d="m776.03,365.98s-16.171,0.50488-17.687-1.0111,15.665,11.117,18.697,10.107"/>
|
|
||||||
<path d="m744.7,358.9c-0.5053,0-11.117-4.0418-15.665-5.0543,4.0426,4.0432,7.0747,9.6024,17.181,11.623"/>
|
|
||||||
<path d="m748.74,352.34c-0.50529-1.0111-20.213-7.0752-20.213-10.107,4.5481,1.516,11.117,3.5369,17.181,2.0209"/>
|
|
||||||
<path d="m853.35,329.09-2.0209,9.0948"/>
|
|
||||||
<path d="m767.6,343.56s3.3779,3.724,0.34585,8.2721"/>
|
|
||||||
<path d="m838.69,347.28-5.5578,0.50625"/>
|
|
||||||
<path d="m793.21,344.25,10.106,1.516"/>
|
|
||||||
<path d="m820.4,318.26s0.2834,10.216-8.2294,9.9326c-8.5128-0.28477-5.6762,0.2834-5.6762,0.2834"/>
|
|
||||||
<path d="m826.93,316.55s3.4049,1.135,2.5547,3.6896c-0.85155,2.5533,0.85018,9.9312-9.081,17.026-10.501,2.2699-9.3644-8.7962-9.3644-8.7962"/>
|
|
||||||
<path d="m830.62,319.68s6.2429-3.6883,7.0945,2.2713c0.85018,5.9582-5.108,17.026-9.3644,18.729-4.2578,1.7018-9.081-0.28476-8.5142-3.1215"/>
|
|
||||||
<path d="m838.28,322.23s5.6762-4.5412,7.3779,1.4184c1.7031,5.9596-4.5398,19.297-7.0945,19.58"/>
|
|
||||||
<path d="m846.23,323.65s2.8381-1.4184,4.8232,0.28339"/>
|
|
||||||
<path d="m837.15,344.08c-1.135,0.28339-5.9595,0.56678-7.6613-3.1215"/>
|
|
||||||
<path d="m811.61,334.15c-0.28339,0-5.9582,0.28476-5.9582,0.28476"/>
|
|
||||||
<path d="m833.46,356.57-0.56679-9.3644-2.2699-3.1215-3.973,3.973s-0.56816,9.3644-2.2699,10.216"/>
|
|
||||||
<path d="m826.65,347.77c-0.28339-0.56678-3.1215-5.9582-3.1215-5.9582l-4.8246,5.9582s-0.5668,8.5142-2.2699,9.3658"/>
|
|
||||||
<path d="m818.7,347.49c0-0.28339-1.9865-5.6748-1.9865-5.6748s-5.6748,3.1215-6.2429,5.3914c-0.56679,2.2699-0.85156,8.5128-2.2699,9.081"/>
|
|
||||||
<path d="m810.47,346.07s0.56816-5.108-1.135-5.108c-1.7018,0-9.3644,7.0945-9.6478,13.337"/>
|
|
||||||
<path d="m717.39,245.9s0.28382-5.6748,2.8377-7.6613c2.554-1.9865,15.324-6.8111,18.161-11.068,2.8377-4.2564-4.2566,7.3779-3.1215,10.499"/>
|
|
||||||
<path d="m722.5,237.38s6.2431,2.2713,4.8242,7.0945"/>
|
|
||||||
<path d="m57.344,126.01a3.9192,3.9192,0,1,1,-7.8384,0,3.9192,3.9192,0,1,1,7.8384,0z" transform="matrix(1.1946929,0,0,1.1946929,661.37184,90.106184)" stroke-width="1pt"/>
|
|
||||||
<path d="m917.17,220.07,0,0s43.417,5.108,45.404,5.108c1.9865,0,9.6478,2.5547,11.068,5.108"/>
|
|
||||||
<path d="m919.44,217.52,60.443,1.4184"/>
|
|
||||||
<path d="m919.72,216.1s57.321-3.4049,61.294-9.3644"/>
|
|
||||||
<path d="m921.43,203.61s57.606-6.2429,58.174-5.3916"/>
|
|
||||||
<path d="m919.44,196.52s55.903-8.7969,56.47-7.378"/>
|
|
||||||
<path d="m759.96,160.48s17.594,19.296,15.891,32.35"/>
|
|
||||||
<path d="m774.72,182.61s5.6753,8.2293,7.9455,9.0806c2.2702,0.85128,22.134,1.9864,23.269,10.5,1.135,5.3916-4.2564,3.6885-3.4049,7.6616,1.4184,5.108,14.756,11.634,29.228,3.973"/>
|
|
||||||
<path d="m818.42,217.8s11.918,17.594,29.512-1.4183"/>
|
|
||||||
<path d="m838.85,224.05s14.472,7.6613,26.39-12.202"/>
|
|
||||||
<path d="m849.92,225.75s7.0945,5.9596,21.852-1.9851"/>
|
|
||||||
<path d="m892.2,215.82s21.85,4.5398,23.27,5.9596"/>
|
|
||||||
<path d="m900.43,210.99c0.28339,0,15.324,0.56817,15.324,0.56817"/>
|
|
||||||
<path d="m891.06,202.48s26.107-1.7026,29.513,3.6895"/>
|
|
||||||
<path d="m879.71,194.25s36.607,1.4188,38.309,3.4053"/>
|
|
||||||
<path d="m887.94,231.71s6.2429-1.7017,7.0945-0.85019"/>
|
|
||||||
<path d="m873.75,247.03s8.2294,7.0945,18.73,3.973"/>
|
|
||||||
<path d="m878.29,258.95s9.3644,4.2564,20.432,1.7018"/>
|
|
||||||
<path d="m881.41,266.04s9.3644,6.2429,15.607,5.1066"/>
|
|
||||||
<path d="m877.16,269.73s6.5263,4.8246,6.8097,7.3779"/>
|
|
||||||
<path d="m868.08,275.41s1.9865,10.215,9.081,13.904"/>
|
|
||||||
<path d="m863.25,279.95s-3.1215,13.337,4.8246,21.567"/>
|
|
||||||
<path d="m855.02,290.45c0,0.28339-0.56679,6.2429-0.2834,6.8111"/>
|
|
||||||
<path d="m803.94,238.8,15.324-0.85157s5.6748-2.2699,1.7017-5.9582"/>
|
|
||||||
<path d="m822.96,235.4c0.28477,0,14.472,1.135,18.162,5.3914,3.6882,4.2564,8.2294,12.769,10.783,14.189,2.5547,1.4184,3.1215-0.56816,3.1215-0.56816"/>
|
|
||||||
<path d="m848.78,252.14s-7.6613,13.054-1.7018,17.027"/>
|
|
||||||
<path d="m844.52,266.61s-6.8097,9.081-1.4184,13.621"/>
|
|
||||||
<path d="m841.69,279.1s-5.3914,8.7976,1.1363,14.756"/>
|
|
||||||
<path d="m839.3,255.76c-0.36594,0.36594-6.591,4.7599-8.788,3.6621"/>
|
|
||||||
<path d="m832.71,269.68s2.5629,2.5629,4.7599,2.197"/>
|
|
||||||
<path d="m833.01,282.98,4.09,2.805"/>
|
|
||||||
<path d="m833.56,293.17,3.5383,2.1351"/>
|
|
||||||
<path d="m769.47,154.01s7.4602,3.8794,13.428,0c5.9688-3.8792,34.615-18.501,42.075-20.888,7.4591-2.3873,11.637-16.114,13.13-22.082"/>
|
|
||||||
<path d="m832.44,127.15,41.777-12.235s6.8634-5.6697,7.1619-16.114"/>
|
|
||||||
<path d="m878.39,110.14s41.776-4.1776,41.776-19.695"/>
|
|
||||||
<path d="m913.6,101.19s43.866-11.936,48.044-16.412"/>
|
|
||||||
<path d="m791.26,163.55s26.558-13.727,30.736-15.219c4.1766-1.4921,13.725-13.428-0.59705-13.428"/>
|
|
||||||
<path d="m804.09,168.93c0.29852,0,21.783-14.025,28.945-15.815,3.8795-5.3712,1.7912-11.041-4.7737-9.8473"/>
|
|
||||||
<path d="m834.82,149.53c0.59705-0.29839,11.638-0.59678,7.759,8.0569-5.6679,4.1776-30.139,16.412-30.139,16.412"/>
|
|
||||||
<path d="m829.15,140.28,46.551-15.517s3.8795-8.0569-1.7898-9.2505"/>
|
|
||||||
<path d="m912.71,101.49c0,0.29839,5.9692,3.5808,2.3882,8.9521-6.5648,3.8793-37.599,11.339-37.599,11.339"/>
|
|
||||||
<path d="M959.85,96.712,915.99,108.95"/>
|
|
||||||
<path d="m956.57,106.56-38.195,11.638"/>
|
|
||||||
<path d="M953.29,116.11,919.57,126.25"/>
|
|
||||||
<path d="m947.02,125.66c-0.89558,0-25.065,7.4602-25.065,7.4602"/>
|
|
||||||
<path d="m941.65,133.12-15.518,6.2665"/>
|
|
||||||
<path d="m937.77,141.47c-0.59705,0-13.428,5.6697-13.428,5.6697"/>
|
|
||||||
<path d="m933.89,148.34-11.936,5.6695"/>
|
|
||||||
<path d="m913.3,161.17s1.4926,0.59678,1.1941,2.3873"/>
|
|
||||||
<path d="m883.16,177.58s5.0736,1.7903,0.29853,6.5649c-2.3868,3.2824-9.2502,2.3874-13.428,8.3553"/>
|
|
||||||
<path d="m915.69,110.74s6.2677,1.4919,1.4926,9.5489c-12.534,4.7745-37.898,12.533-37.898,12.533s-1.1927,2.0889-4.4752,3.8793c-3.2824,1.7904-39.389,11.936-39.389,11.936"/>
|
|
||||||
<path d="m917.78,119.99s6.8634,2.984,0,8.0569c-7.759,4.476-34.914,12.831-34.914,12.831s-0.29854,2.3871-1.4913,3.2824c-1.1941,0.89517-37.002,12.831-37.002,12.831"/>
|
|
||||||
<path d="m919.57,128.04s7.1619,2.0889,0.89558,8.0568c-7.4604,4.4761-31.333,12.533-31.333,12.533s-2.3868,2.9839-6.2663,4.1776c-3.8795,1.1936-28.646,11.339-28.646,11.339"/>
|
|
||||||
<path d="m921.36,136.1c2.0897,0.89517,7.759,1.7905,0.89559,7.1618-8.0561,3.5808-27.751,11.339-27.751,11.339l-1.7912,3.2824-31.332,13.428"/>
|
|
||||||
<path d="m923.15,144.16s2.9839,3.581-3.581,7.7586c-7.1619,3.8792-22.678,9.8473-22.678,9.8473"/>
|
|
||||||
<path d="m919.57,152.51s3.2824,2.0889-0.8942,5.0729c-4.7751,2.3873-23.574,12.235-23.574,12.235l-12.236,8.0569"/>
|
|
||||||
<path d="m876.6,125.06c0,0.29839,5.0736,4.4761,3.2824,9.2505,4.4765,3.2824,3.581,6.8634,3.581,6.8634s6.2663,3.5808,5.3721,8.6537c6.2663,1.4921,5.9678,5.0729,5.9678,5.0729l-2.0897,3.2824s6.2663-0.29839,0.89558,7.7586c3.2824,1.7905,1.7912,3.8792,1.7912,3.8792"/>
|
|
||||||
<path d="m893.61,166.24c-0.89558,0-21.783,7.7586-27.155,12.533"/>
|
|
||||||
<path d="m843.18,156.99s6.2663-0.29839,5.3721,6.5648c7.1619-2.3873,5.6693,4.476,5.6693,4.476s8.3546-3.2824,6.8634,7.1618c5.3707-1.1936,4.4752,4.1776,4.4752,4.1776s4.7751-0.29839,4.7751,2.3873c3.2824-2.984,6.8634-1.492,6.8634-1.492s2.3868-3.2826,5.6693-2.3872"/>
|
|
||||||
<path d="m848.85,163.26c0,0.59706-28.051,16.114-28.051,16.114"/>
|
|
||||||
<path d="m854.22,168.33-21.187,13.13"/>
|
|
||||||
<path d="m861.38,174.89c0,0.29839-18.502,11.041-18.502,11.041"/>
|
|
||||||
<path d="m865.56,179.07s-13.13,10.743-16.114,10.146"/>
|
|
||||||
<path d="m870.04,182.35s-7.4604,5.6698-13.727,8.3553"/>
|
|
||||||
<path d="m877.79,179.97s2.3868,2.984-12.533,10.742"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 13 KiB |
@@ -1,5 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="900" height="600">
|
|
||||||
<rect fill="#ed2939" width="900" height="600"/>
|
|
||||||
<rect fill="#fff" y="200" width="900" height="200"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 213 B |
@@ -1,27 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1280" height="640" viewBox="0 0 10080 5040">
|
|
||||||
<defs>
|
|
||||||
<clipPath id="c">
|
|
||||||
<path d="M0,0V1.5H7V3H6zM6,0H3V3.5H0V3z"/>
|
|
||||||
</clipPath>
|
|
||||||
<path id="Star7" d="M0,-360 69.421398,-144.155019 281.459334,-224.456329 155.988466,-35.603349 350.974048,80.107536 125.093037,99.758368 156.198146,324.348792 0,160 -156.198146,324.348792 -125.093037,99.758368 -350.974048,80.107536 -155.988466,-35.603349 -281.459334,-224.456329 -69.421398,-144.155019z"/>
|
|
||||||
<path id="Star5" d="M0,-210 54.859957,-75.508253 199.721868,-64.893569 88.765275,28.841586 123.434903,169.893569 0,93.333333 -123.434903,169.893569 -88.765275,28.841586 -199.721868,-64.893569 -54.859957,-75.508253z"/>
|
|
||||||
<use id="Cstar" xlink:href="#Star7" transform="scale(2.1)"/>
|
|
||||||
</defs>
|
|
||||||
<g transform="scale(840)">
|
|
||||||
<rect width="12" height="6" fill="#00008b"/>
|
|
||||||
<path d="M0,0 6,3M6,0 0,3" stroke="#fff" stroke-width="0.6"/>
|
|
||||||
<path d="M0,0 6,3M6,0 0,3" stroke="#f00" stroke-width="0.4" clip-path="url(#c)"/>
|
|
||||||
<path d="M3,0V3.5M0,1.5H7" stroke="#fff"/>
|
|
||||||
<path d="M3,0V3.5M0,1.5H7" stroke="#f00" stroke-width="0.6"/>
|
|
||||||
<path d="M0,3H6V0H8V4H0z" fill="#00008b"/>
|
|
||||||
</g>
|
|
||||||
<g fill="#fff">
|
|
||||||
<use id="Comwlth" xlink:href="#Cstar" x="2520" y="3780"/>
|
|
||||||
<use id="αCrucis" xlink:href="#Star7" x="7560" y="4200"/>
|
|
||||||
<use id="βCrucis" xlink:href="#Star7" x="6300" y="2205"/>
|
|
||||||
<use id="γCrucis" xlink:href="#Star7" x="7560" y="840"/>
|
|
||||||
<use id="δCrucis" xlink:href="#Star7" x="8680" y="1869"/>
|
|
||||||
<use id="εCrucis" xlink:href="#Star5" x="8064" y="2730"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 1.6 KiB |
@@ -1,9 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="900" height="600" viewBox="0 0 27 18">
|
|
||||||
<path d="M0,0H27V18H0z" fill="#4189dd"/>
|
|
||||||
<path d="M0,12H27v1H0v1H27v1H0z" fill="#f9d616"/>
|
|
||||||
<g fill="#fff" transform="translate(4,4)">
|
|
||||||
<path id="s" d="M0,-3 0.707107,-0.707107 3,0 0.707107,0.707107 0,3 -0.707107,0.707107 -3,0 -0.707107,-0.707107z"/>
|
|
||||||
<use xlink:href="#s" transform="scale(0.770376)" fill="#d21034"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 495 B |
@@ -1,13 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg height="850" width="1300" version="1.1" xmlns="http://www.w3.org/2000/svg" id="Flag of Åland">
|
|
||||||
<rect fill="#0053a5" height="850" width="1300" />
|
|
||||||
<g fill="#ffce00">
|
|
||||||
<rect height="850" width="250" x="400" />
|
|
||||||
<rect height="250" width="1300" y="300" />
|
|
||||||
</g>
|
|
||||||
<g fill="#d21034">
|
|
||||||
<rect height="850" width="100" x="475" />
|
|
||||||
<rect height="100" width="1300" y="375" />
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 534 B |
@@ -1,8 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="1200" height="600">
|
|
||||||
<rect width="1200" height="600" style="fill:#0098c3"/>
|
|
||||||
<rect width="1200" height="200" y="200" style="fill:#e00034"/>
|
|
||||||
<rect width="1200" height="200" y="400" style="fill:#00ae65"/>
|
|
||||||
<circle fill="#fff" cx="581" cy="300" r="90"/>
|
|
||||||
<circle fill="#e00034" cx="600" cy="300" r="75"/>
|
|
||||||
<path d="M 716.38014,335.33055 690.58329,323.09028 681.03508,350 671.44912,323.1037 645.66947,335.38014 657.90973,309.58329 631,300.03508 l 26.89631,-9.58596 -12.27645,-25.77965 25.79686,12.24026 9.54821,-26.90973 9.58596,26.8963 25.77965,-12.27644 -12.24026,25.79686 26.90973,9.5482 -26.8963,9.58596 z" style="fill:#fff"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 714 B |
@@ -1 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="800" height="400" viewBox="0 0 16 8"><rect width="16" height="8" fill="#002395"/><path d="m4.24,0h8v8z" fill="#fecb00"/><g id="g"><path d="M2.353283,0.5248529 2.8,-0.85 3.246717,0.524853 2.077197,-0.324853H3.522803z" fill="#fff" id="s"/><use xlink:href="#s" x="1" y="1"/><use xlink:href="#s" x="2" y="2"/></g><use xlink:href="#g" x="3" y="3"/><use xlink:href="#g" x="6" y="6"/></svg>
|
|
||||||
|
Before Width: | Height: | Size: 512 B |
@@ -1,10 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="1500" height="1000" viewBox="0 0 24000 16000">
|
|
||||||
<title>Flag of Barbados</title>
|
|
||||||
<rect width="24000" height="16000" fill="#00267f" />
|
|
||||||
<rect width="8000" height="16000" fill="#ffc726" x="8000" />
|
|
||||||
<path id="h" fill="#000"
|
|
||||||
d="M 12000,4124 C 11740,4833 11475,5571 10908,6136 C 11084,6078 11392,6026 11590,6031 L 11590,9013 L 10748,9138 C 10718,9135 10708,9088 10708,9024 C 10627,8098 10408,7320 10156,6515 C 10138,6405 9819,5985 10065,6059 C 10095,6063 10424,6197 10372,6133 C 9924,5669 9269,5335 8633,5236 C 8577,5222 8544,5250 8594,5315 C 9438,6614 10144,8147 10138,9966 C 10466,9966 11261,9772 11590,9772 C 11590,9772 11590,11876 11590,11876 L 12005,11876 12100, 6000 z"/>
|
|
||||||
<use xlink:href="#h" transform="translate(24000,0) scale(-1,1)"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 985 B |
@@ -1 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="500" height="300" viewBox="0 0 20 12"><rect width="20" height="12" fill="#006a4e"/><circle cx="9" cy="6" r="4" fill="#f42a41"/></svg>
|
|
||||||
|
Before Width: | Height: | Size: 219 B |
@@ -1,5 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" width="450" height="390">
|
|
||||||
<rect width="450" height="390" fill="#ED2939"/>
|
|
||||||
<rect width="300" height="390" fill="#FAE042"/>
|
|
||||||
<rect width="150" height="390"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 202 B |
@@ -1,15 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="900" height="600">
|
|
||||||
<rect width="900" height="600" fill="#009e49"/>
|
|
||||||
<rect width="900" height="300" fill="#ef2b2d"/>
|
|
||||||
<g transform="translate(450,300)" fill="#fcd116">
|
|
||||||
<g id="c">
|
|
||||||
<path id="t" d="M 0,-100 V 0 H 50" transform="rotate(18 0,-100)"/>
|
|
||||||
<use xlink:href="#t" transform="scale(-1,1)"/>
|
|
||||||
</g>
|
|
||||||
<use xlink:href="#c" transform="rotate(72)"/>
|
|
||||||
<use xlink:href="#c" transform="rotate(144)"/>
|
|
||||||
<use xlink:href="#c" transform="rotate(216)"/>
|
|
||||||
<use xlink:href="#c" transform="rotate(288)"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 659 B |
@@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="600" viewBox="0 0 5 3">
|
|
||||||
<rect width="5" height="3" fill="#fff"/>
|
|
||||||
<rect width="5" height="2" y="1" fill="#00966E"/>
|
|
||||||
<rect width="5" height="1" y="2" fill="#D62612"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 288 B |
@@ -1,5 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="1500" height="900" viewBox="0 0 150 90">
|
|
||||||
<path d="M0,0H150V90H0" fill="#fff"/>
|
|
||||||
<path fill="#ce1126" d="M150,0 37,0l23,9 -23,9 23,9 -23,9 23,9 -23,9 23,9 -23,9 23,9 -23,9H150"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 270 B |
@@ -1,27 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="500" height="300">
|
|
||||||
<defs>
|
|
||||||
<g id="b" fill="#1eb53a">
|
|
||||||
<g id="s">
|
|
||||||
<g id="t">
|
|
||||||
<g id="c">
|
|
||||||
<path id="h" d="M0,-20V0H20" transform="rotate(30,0,-20)"/>
|
|
||||||
<use xlink:href="#h" transform="scale(-1,1)"/>
|
|
||||||
</g>
|
|
||||||
<use xlink:href="#c" transform="rotate(120)"/>
|
|
||||||
<use xlink:href="#c" transform="rotate(240)"/>
|
|
||||||
</g>
|
|
||||||
<use xlink:href="#t" transform="rotate(180)"/>
|
|
||||||
</g>
|
|
||||||
<use xlink:href="#s" fill="#ce1126" transform="scale(0.82)"/>
|
|
||||||
</g>
|
|
||||||
<use id="star" xlink:href="#b" x="250" y="106"/>
|
|
||||||
</defs>
|
|
||||||
<path d="M0,0H500L0,300H500z" fill="#ce1126"/>
|
|
||||||
<path d="M0,0V300L500,0V300z" fill="#1eb53a"/>
|
|
||||||
<path d="M0,0 500,300M500,0 0,300" stroke="#fff" stroke-width="40"/>
|
|
||||||
<circle cx="250" cy="150" r="85" fill="#fff"/>
|
|
||||||
<use xlink:href="#star"/>
|
|
||||||
<use xlink:href="#star" transform="rotate(120,250,150)"/>
|
|
||||||
<use xlink:href="#star" transform="rotate(240,250,150)"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 960 B |
@@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="1500" height="1000" viewBox="0 0 15 10">
|
|
||||||
<rect width="15" height="10" fill="#fcd116" id="Yellow"/>
|
|
||||||
<rect width="15" height="5" y="5" fill="#e8112d" id="Red"/>
|
|
||||||
<rect width="6" height="10" fill="#008751" id="Green"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 324 B |
@@ -1,2 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="900" height="600"><rect width="900" height="600" fill="#ED2939"/><rect width="600" height="600" fill="#fff"/><rect width="300" height="600" fill="#002395"/></svg>
|
|
||||||
|
Before Width: | Height: | Size: 249 B |
@@ -1,245 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="600">
|
|
||||||
<clipPath id="c">
|
|
||||||
<path d="M0,0V150H700V300H600zM600,0H300V350H0V300z"/>
|
|
||||||
</clipPath>
|
|
||||||
<rect width="1200" height="600" fill="#00247d"/>
|
|
||||||
<path d="M0,0 600,300M600,0 0,300" stroke="#fff" stroke-width="60"/>
|
|
||||||
<path d="M0,0 600,300M600,0 0,300" stroke="#cf142b" stroke-width="40" clip-path="url(#c)"/>
|
|
||||||
<path d="M300,0V350M0,150H700" stroke="#fff" stroke-width="100"/>
|
|
||||||
<path d="M300,0V350M0,150H700" stroke="#cf142b" stroke-width="60"/>
|
|
||||||
<path d="M0,300H600V0H1200V600H0z" fill="#cf142b"/>
|
|
||||||
<g>
|
|
||||||
<path fill="#fff" d="m767.32,145.154v253.639c3.0024,36.3156,78.6864,59.178,131.454,97.7484,69.2124-46.422,136.34-55.812,139.039-107.858l0.8424-243.529h-271.33z"/>
|
|
||||||
<g fill="none">
|
|
||||||
<path fill="#2f8f22" stroke="#000" stroke-width="0.45648" d="m767.292,395.158,2.8344,14.4852,9.4464,11.3376,68.34,44.0856,50.0724,31.1796,97.626-53.2224,33.6972-25.8252,6.6144-33.696-4.0956-7.872,0.9456,8.1876-2.5212,6.6132-2.832-1.8912-1.8888-12.2808-0.3168,9.1308-4.7232,5.3568-0.9444-6.6168,1.26-4.722-1.89-5.3532-0.63,10.7064-2.5188,4.7256-2.2056-3.1512,0.9456-4.7256-0.3144-4.4064-1.5756-2.2068-0.3168,4.7256-0.9432,1.5732,0.3156,2.8332-1.89,1.8912-1.26-3.7776,0.6312-3.4668-0.6312-3.1464-1.26-3.4668,0.3168,5.67-3.15,6.9276-2.52,1.5744-1.5744-1.89,0.3168-6.6132-2.2056-3.7776,0.6288,8.1876-3.1476,7.2444-1.8888-2.2068-0.948-2.2032v-3.4668l3.4668-8.8164-3.4668,3.15-2.832,7.5564-1.26,2.2032-1.5744-3.7776,2.2056-8.5032-1.2612-1.572-2.8332,10.3908-2.5212,1.5744-1.8888-0.6312-1.2588,0.6312-152.425,8.5032-4.0944-5.9844-0.9432,5.9844-2.5212,2.2032-2.5176-11.0232-1.89,11.6544-2.5212-5.6688,1.2612-12.9144-1.2612-0.9432-1.8876,6.9276v9.7632l-0.9456,6.6132-1.89-1.26-2.5188-5.9832-0.3144-9.7644,0.9432-6.9276-2.5188,8.1876v10.0788l-0.3144,5.0364-3.1512-6.9276-1.5744-5.67-3.1488-6.612,1.89,8.5032v4.41l-5.3544-4.7256-2.8332-13.2252-0.63,9.7632,1.26,4.722-1.5744,1.8912-3.1488-5.67-1.8888-7.5564-2.2044-7.2444v11.6508l1.5744,6.3-1.26,1.5756-2.5188-1.26-0.9456-6.9312-0.6312-10.0752-2.5176,6.9276-0.6312,7.2408-0.9444,5.67-1.5744,3.7812-4.4088,0.3228z"/>
|
|
||||||
<path stroke="#4dcf4a" stroke-width="0.91284" d="m876.022,472.104c-0.8184-14.8848,12.6432-29.772-23.5932-44.6604"/>
|
|
||||||
<path stroke="#38bb26" stroke-width="1.14108" d="m910.572,463.678c0-19.662-11.2356-28.0872-33.7068-25.2792"/>
|
|
||||||
<path stroke="#51c757" stroke-width="0.91284" d="m922.368,472.104c-11.8752-14.298-27.7368-12.642-46.3464,0"/>
|
|
||||||
<path stroke="#51c757" stroke-width="0.91284" d="m951.86,453.566c-4.5108-8.406-20.9736-2.8692-38.7612,4.2168"/>
|
|
||||||
<path stroke="#7acb73" stroke-width="0.82164" d="m1011.69,426.602c-4.494-12.9204-12.3576-20.2248-23.5944-21.9096"/>
|
|
||||||
<path stroke="#4cb135" stroke-width="1.14108" d="m1026.86,406.376c-2.9808-6.6744-6.1008-13.0752-13.482-10.9548"/>
|
|
||||||
<path stroke="#60c85a" stroke-width="1.278" d="m845.686,459.466c3.9252-13.476-0.3324-18.7692-7.5828-21.0672"/>
|
|
||||||
<path stroke="#71ce5b" stroke-width="1.1868" d="m781.645,409.747c7.5-3.2556,13.4892-9.5316,24.4356-5.8956"/>
|
|
||||||
<path stroke="#71ce5b" stroke-width="1.1868" d="m772.375,401.323c6.1248,0.1284,10.4016,2.5188,11.796,8.4252"/>
|
|
||||||
</g>
|
|
||||||
<g stroke="#000" stroke-width="0.45648">
|
|
||||||
<path fill="#000" d="m905.36,150.642c-3.54226,3.25938-7.17643,6.25083-12.2809,4.95671-3.49269,1.43202-0.1051,9.6721-5.79256,7.97449-5.51847-4.36808-4.05772,5.21006-7.59441,7.21367-3.23212,1.03309-9.23263,2.62193-4.48171,6.4602,2.90371,2.83623,5.69451,7.76316,0.94071,10.2349-2.75484,5.18425-3.34176-4.77529-7.4259,1.07401-1.32405,5.91639,8.79055,4.62676,4.08827,9.21187-0.78856,2.74357-3.59803-6.76192-6.44736,0.79472-2.21447,3.12776-2.29966,7.74438,1.95225,9.14175,3.62127,2.07886,11.2149-1.08347,6.69187,5.02064,0.00071,3.60178-5.94797,9.58271-3.68958,2.80003,4.0639-4.71862-1.8354-6.02381-4.50767-2.80487-5.48606,3.74093-3.207,12.0658,2.15222,14.4675,1.58725,3.3247,3.19831,4.20255-0.81863,8.20386,0.54947,4.0071-0.28217,7.45192-5.56777,7.20054-2.95045,2.79703-4.93387,7.46347-10.5468,6.75851-5.38845,2.17173-6.74333-1.37286-7.75895-5.64889-1.74428-4.24891-8.86625-6.67841-11.4651-1.98322-3.11881-1.26246-7.17118-7.18853-10.3691-1.35643-2.84405,3.89495-7.34196-2.27757-10.3462,2.78933-3.49352,3.83808,2.17437,7.42167,2.99352,10.3485,4.67277,3.76705,2.15916,5.99326,1.16127,10.8641-1.69545,4.41349,6.18471,7.14548,3.74513,10.6827-3.50124,2.73566-9.13569,5.89127-7.78267,11.1306-4.96442,1.74934-4.29305,7.44363-2.75561,11.3861,2.50006,5.62804,13.0832,4.98976,12.577-1.90098,2.80156-0.3991,6.09545,5.68243,8.1378,8.63606-1.9793,2.07989-8.40314-0.42696-11.9477,1.37249-4.64835-0.47891-8.63578,4.57286-13.2739,5.25391-3.36265,1.9929-7.8415,4.58416-6.7234,9.42037,0.8343,4.06606,2.37229,8.11037,1.7734,12.29-2.22903,3.69492-4.13929,7.61192-3.95762,12.0699-1.96561,6.51342,2.42679,14.3677-3.14518,19.6989-1.57378,4.81798,2.70258,4.79602,4.60869,1.72367,2.58216,1.13252,4.21461-3.2789,3.97188-5.18394,2.26039,4.12424,3.04019-1.12915,5.08565,2.74261,4.13911-1.37458-0.94111-13.3054,1.65159-8.31367,1.97682,2.89796,3.02284,9.05703,5.87021,9.48817,3.1671-1.25364,1.55632-12.9016,3.84451-3.84111,2.47079,8.07865,3.75238,16.6026,7.83058,24.029,2.3965,6.98672,8.71819,13.5099,16.7166,12.1469,2.26668,2.14863-3.51443,6.58908-4.62453,9.62413-3.57381,2.7051-7.98711-0.78552-11.767-0.93801-3.78981,1.47298-8.14276,2.27747-10.8382,5.53593-1.72713,3.79253-3.04612,7.09939-3.4332,10.8552-0.88863,5.31036,0.13036,11.4231,5.4288,14.0472,1.32615-4.06475,0.32208-7.52903,5.988-7.1808,3.96282,2.27349-0.43644,8.10318,3.08723,11.6783,1.78178,3.71091,6.91704,8.34229,5.22056,1.031-2.01613-5.74223,3.3569-5.79493,6.61661-8.16246,4.29542-4.53022,4.97256-0.12594,4.39461,4.3024,2.40725,3.14858,7.21565-2.9313,8.38176-5.643,1.66418-3.14588,0.0985-9.92787,3.0556-8.5594,3.80813-0.98073,6.27449-4.46801,9.26253-6.94112,2.69313-5.24053,7.73558-0.0687,11.7046,0.68887,4.94459,2.13323,11.5753,1.37682,13.8037,7.37185-3.80873-1.882-8.25871,1.64004-6.864,6.3864,1.9254,4.86856,7.80907,3.45041,11.3493,2.75596,3.56187,1.46818,7.57486-3.00643,11.4073,0.29753,3.75006-0.8166,7.88442-0.30457,11.4062-2.17749,3.4679-2.8491,2.0463-9.28119-3.0312-8.2992,2.32392-3.43251,7.59164-4.39502,11.094-6.786,4.02682-0.36578,7.52934-4.83217,11.0583-4.16909,5.02567,3.47708,7.52356,9.09418,11.8431,13.1088,4.23568,0.49022,0.3119,6.3769,0.76513,9.97366-1.13344,4.34512,1.29721,10.359,4.92686,4.42063,2.18556-3.95092,8.19703-2.82151,8.52258-8.00637,1.67796-4.37996,2.81142,6.40087,7.104,5.8248,0.28878,3.34521-0.97692,11.5345,4.0692,6.1476,4.42932-4.06469,5.16729-10.2904,3.5904-15.8052,0.71023-4.51311,7.2393,2.71525,6.05479,5.95468,1.00747,4.16725,6.17809-3.60099,6.90937-5.97298,0.56765-6.08552,0.74611-13.2759-3.86336-17.9397-3.49944-1.73665-4.94891-7.1766-9.95409-6.97476-3.44514,1.89486-7.37505,5.50514-8.84411-0.82243-4.5437-4.03599,3.08055-4.31882,5.6258-6.17201,5.12321-3.23731,7.92808-8.79362,8.96725-14.5657,1.86359-5.29724,3.46296-10.6852,4.68515-16.1675,4.00765-1.44117,7.76437-4.3775,9.99505-6.80623,4.55375-8.55582,0.19862,6.4166-1.41842,9.93834,3.47934,1.53958,8.02677-1.24501,9.51677-4.9319,2.2413-2.48392,2.7348-12.2521,3.9023-4.42962,0.5192,2.70794-4.3038,10.7481-0.3951,9.32604,4.04-1.29321,7.2811-5.17916,9.1374-8.91988,1.6184-5.0203,3.2276-11.1261,1.1868-15.964,3.2478-2.22444-0.2354-11.5228-3.7512-6.4668-4.5133-0.851-3.2152-7.41982-4.0384-10.661,3.6967-5.2321,0.613-15.3666-6.5792-15.1198-3.63519-2.08391-6.535-3.01516-10.2622-4.42079-4.84246,1.51061-8.30162-3.06667-13.1193-2.27392-7.27824,0.36128,0.6124-7.96674,3.43543-5.09674,3.30081,4.25235,10.2938,6.27454,13.6909,1.07153-0.16107-3.9225-0.15243-9.32357-3.65476-12.394-0.69406-4.38556-1.86451-8.53282-4.88218-11.951-3.70561-5.44536,3.10924-6.71299,5.35331-10.1034,0.99678-4.38737-1.66522-9.19954-4.29157-12.7821,2.82357-2.82577,5.6705-8.06344,2.6352-11.652,1.12886-3.42185-6.57321-4.017-9.06677-3.68003-4.99081-0.33128-9.18147,4.22055-14.1507,4.56182-4.25118,3.46864-9.40421,5.39471-14.8732,4.01385-3.86818-0.96115-6.90044-5.20991-8.97502-7.73471-5.04291,2.76035-0.91474-5.44702-5.01013-7.84979-2.83276-3.88498-8.69936-3.05119-6.57192,2.6488-3.70572,4.52734-0.47388-6.08652-2.79033-8.26063-3.01597-7.27229-1.7811-2.05451,2.29253-0.0649,4.52782,3.1003,11.1217,1.2253,12.2539-4.Line truncated
|
|
||||||
<g fill="#d40000">
|
|
||||||
<path d="m904.106,194.538c-0.3108,6.8796-6.2196,5.4348-7.908,3.5532-1.6236-6.2904,7.8012-8.0148,7.908-3.5532z"/>
|
|
||||||
<path d="m907.309,194.143c0.6156,5.4336,6.8472,6.1884,8.0268,3.912,2.0592-5.1888-5.6772-8.4852-8.0268-3.912z"/>
|
|
||||||
<path stroke-linejoin="round" d="m903.481,188.9v1.1904l-0.6552,0.12-0.2376-0.2976-0.1776-1.8468-0.3576-0.1776v-0.834l0.8328-0.0588v-0.7752h-1.0116l-0.3588,0.7752-0.18,1.0716,0.42,0.894-0.42,0.7152-0.7728,0.4164-1.0728,1.014-0.7164,0.3564-1.668,0.1788-1.3692-0.6564-1.3728-1.3104s-0.5952-0.9528-0.6552-1.1916c-0.0588-0.2376-0.4176-1.0716-0.4176-1.0716l-0.3588-0.894-0.6552-0.7152-1.0128-0.12-0.2976,1.2516-0.3564,0.4764-0.8352,0.1188-0.8916-0.774-0.5964-1.0128-0.6564-1.3116-0.5364-0.894-0.774-1.1304-0.3588-0.6552-0.3564-1.5504-0.8952-1.1316-0.5952-0.9528-0.9516-0.774-1.014-0.7752h-1.1916l-0.7752-0.5952-1.1292-1.0728-0.8352-1.1316-0.534-0.6552,0.1188-0.5964,0.4164-0.5376,0.894-0.5352,0.8928-0.06,1.014-0.2376,1.0128-0.5364,0.1788-0.7152,0.1788-1.1916,1.0716-1.9068,0.4764-1.3704,0.06-1.0716,1.5492-0.2388,1.4904,0.1788,1.0716,0.2988,1.1316,0.3564,1.3104-0.6552,1.0728-1.3716,0.3564-2.382,0.4764-2.2044,0.5376-1.2504h2.742l0.9504,0.6552,0.7752-0.3564,0.714-0.3576,1.7292,0.1776h0.8928s0.7152-1.1316,1.014-1.3104c0.2964-0.1788,1.7268-2.0856,1.7268-2.0856l1.8468-0.4764,0.9528,0.12,1.3116,1.4904,1.0716,0.6552,0.954,0.06,2.2644,1.4892s0.7152,0.5952,0.954,0.4752c0.2376-0.1188,2.2656-1.0128,2.2656-1.0128l1.7844-0.1188,1.908-0.6552,0.6552,1.488s0.954,2.2644,1.2516,2.5032c0.2988,0.2376,1.4892,2.5008,1.4892,2.5008s0.5964-0.2976,0.8952-0.3576c0.2964-0.0588,1.6668,0.2988,1.6668,0.2988l3.9324,0.1788,0.5364-0.5964,0.4152,0.7152-0.534,2.7408,0.2376,2.0856,0.7152,2.8008,0.8928,1.3104,1.1928,0.0588,1.5492,1.3116,0.06,1.3104-1.1916,0.4176-1.0728-0.3576-1.3728,0.774-2.1432,1.2504-1.7892,1.788-1.5468,2.2032-1.014,2.2044-1.0116,0.7152-0.8952-0.3576-0.894,0.0588-0.4164,1.0728-0.894,1.0716-0.7752,2.7408-1.668,1.8468-1.728,0.834-1.2504,0.954h-0.8328l-1.4304-1.3716-0.6552-0.5952-0.1776-2.1444-1.3728-1.074h-1.014l1.4904,1.1928,0.06,1.608-0.8328,0.714-0.4188-0.1188-0.4152-0.834h-0.4788l-0.06,1.608-1.7868,2.0856-1.7868-1.4892-0.06-1.9068-0.8916-0.1752z"/>
|
|
||||||
<path d="m874.307,173.86,2.6616,0.0852,1.3752,2.0628,1.2024,1.2876,1.2012,0.9456,1.032,0.1704,1.9752,2.9208v0.3444l1.5444,1.374,0.4308,1.8024,0.1716,0.6012-0.0864,0.7728-0.8592,0.516-1.0308-0.1728-0.6012-0.4296-1.8876,1.632-1.2036,1.632-0.7728,0.1728-2.0628,2.232-1.0296,0.3444-1.632,1.2024-2.5764-0.0864-1.6308-1.9752-0.342-0.774-0.0864-1.5456,1.4604-1.0308,0.6864,0.7728-0.342,0.7728,0.084,0.9456,0.8604,0.3432,0.858-0.0864,3.0924-2.6628,0.7728-0.4296,1.8036-1.8024,1.1172-0.6012-0.0852-1.116-1.2888-1.9752-0.4284-1.374-0.3432-1.2888-0.342-0.9456-1.2036-1.3728-0.6876-0.774-0.258-0.7728-1.2012-0.9456-0.3432-0.1728v-0.5988h-0.005z"/>
|
|
||||||
<path fill="#a00" d="m926.009,183.908h1.3752l1.4604-0.6876,1.1172-0.9444h1.0296l0.6876,0.6864,1.1172-0.0852,0.6864-0.8592,0.258-1.0308,0.9444-1.2876,0.258-1.2888,0.8592-1.8036,0.258-1.2888-2.1468-0.0852-2.4912,2.148-1.89,0.0852-1.5456,1.632-1.2012,0.1704-1.2888,1.89-0.4284,1.1172,0.1716,1.1172,0.7692,0.5148z"/>
|
|
||||||
<path stroke-linejoin="round" d="m899.472,201.173-1.6332,1.632-0.4284,1.4592,0.6864,1.4592,1.5468,0.258,1.1172-0.6,1.0296,1.2012,0.1716,2.0616,2.0616,2.232,0.9444,0.258,0.774-0.8592,0.858-0.8592,0.0864-0.858,1.3752-0.6012,0.3432-2.5764,0.774,0.9432,1.2864-0.7728,1.6332-0.1704v-2.148l-0.6012-1.4592-1.29-0.9456-1.974-0.8592-2.1468-0.7728-1.0308,0.0864-1.8924,1.1184-2.0604,0.6852-1.6308,0.0876z"/>
|
|
||||||
<path stroke-linejoin="round" d="m912.4,200.641,3.1008-0.1416c2.1276-1.38,3.048-6.9996,4.512-10.7136,2.2716-2.9448,5.0604-3.8256,8.46-2.256l1.974,0.564,2.5368,1.9728h1.8312l1.2708,0.282,1.974,0.1416,3.5256-2.82-0.1404,2.9604-2.3976,2.1144-4.9344,1.8336-3.8076-2.2548-0.1404,0.564,8.178,9.0216h0.7044l1.41,1.41,0.7044-0.564,0.1416-2.3964,2.8212-2.5368,0.2808,3.6648,0.9864,1.8324v3.5244l-2.6784,3.384-4.2288,0.564-4.9344-3.1008-0.1404-1.41-4.5132-5.2164v2.256l2.6796,5.4984,0.4224,2.1144,0.9876,0.9876,0.7056,1.6932v2.1144l1.2672,2.9604,2.256,0.2808,0.5664-1.4088v-1.974l2.3964-2.3976,1.5516-0.1404,0.564,0.846-0.7056,0.7044-0.282,1.5516v0.9864l1.974,2.6784,0.5652,1.692-2.9616,4.5108-1.9752,0.5652-3.5232-0.5652-2.1156-1.4088h-1.128l-3.2436-4.9356-0.4212-2.3964-4.3716-6.9084-0.1428,1.41,1.6944,2.1156,0.8448,3.2424,0.8448,5.7804,2.538,4.9344,0.1404,9.1644,0.8472,0.9864h1.1256l1.4112-1.1268,1.1268-1.5504-0.282-5.358h1.5516l2.6784,1.5516,1.974,3.2424,0.7044,1.41v2.9604l-0.9852,0.1404-1.9752,2.1156-3.2436,1.4088h-5.6376l-1.2684-1.1268h-1.128l-0.8448-0.846h-1.5516l-4.3728-6.2028-0.1392-10.2924,0.564-2.2548v-3.102h-0.7044v3.102l-0.7068,1.9752-0.1404,2.8188,0.1404,7.7544,4.6524,7.4724,3.384,1.692,0.9876,1.128h-1.551l0.1416,1.128-1.2708-0.282-0.2808,0.564-0.7044-0.282-1.2708-0.8472-1.692,0.2832-1.1256,0.564h-2.9604l-1.2708-2.538-0.9852-1.974-3.384-3.102h-2.538l-0.564-1.8324,0.4236-3.2424,0.7068-2.9604v-7.896l-0.5664,9.024-1.5492,5.0748-0.5652,0.4236-0.1416,5.7792,0.9876,2.6796,3.9468,4.3704-2.6784,0.282-1.974-0.8448-2.1156,0.4212-3.2412-0.7044-3.6672-1.2684-2.3964-2.3964-1.128-2.6796-0.4236-2.6772-0.564-2.82,0.564-2.2548,0.282-2.256-1.1268,2.5368v6.0624l-1.5516-0.4224v-1.692l-1.2684-1.692-0.2808-2.256-0.4236-3.3828-0.1428-5.4984,0.1428-3.384,0.7044-3.8064-0.564-0.1416-0.4248,4.7952-0.2808,9.4452-0.9864,0.2832-2.2548,3.1008h-5.078l-1.974-1.6908,3.8076-4.0896-0.4224-3.2424-0.4248-3.8052-0.4224-6.486-4.3716,4.6524-4.9332,3.5256h-4.23l-2.3964-2.9616-0.4248-3.3828,0.2832-2.3976,2.5368-3.384,1.8312-0.2808,0.7068-0.7056,0.4224,0.564-0.9852,2.82-0.9876,2.1144,0.8448,1.974,2.3988,0.282,3.1008-4.7928,2.3964-5.64,1.8324-2.82v-1.5504l-1.6896,1.2684-1.9752,0.4236-5.7792,0.1416-3.3828-2.1156-0.5652-1.692,0.1404-1.5504,0.1428-2.1144,3.6648-2.3976,0.1404,5.0748,2.3988-1.974v-0.982l3.1008-4.0896,7.4724-6.6252h4.512l2.6772,1.974,1.1268,0.282,3.2436,3.102,0.1404,3.9468,3.8076,3.102-2.256,2.6784,0.138,1.4112,2.118,1.5504,1.9728-0.564,0.846,5.2164,2.3964,1.41,1.2684,0.1404,4.7952-5.64,2.1156-0.2808,1.2684-2.82-0.5664-2.256-0.5616-1.2768z"/>
|
|
||||||
<path d="m858.209,249.643v0.8268l1.6572,2.2476-0.1188,2.3664-8.4,4.2588-3.6648,0.2376-1.8948,1.7736-4.8504,1.5384-2.1276-0.474,0.354-1.182,0.2364-2.0112-0.2364-1.1832-1.5372-0.828v-1.8948l1.8924-0.5904-0.5928-0.8268-1.0644-0.12,0.2376-2.4828,0.4728-0.9456,0.1188-0.5928-0.1188-1.1832-0.4728-1.0644-1.302-0.3564-3.7848,1.5396-0.5916-0.5928-1.7748,1.8924-0.9468,0.1188-0.1176-1.5384-1.8924-2.4852v-0.474l-3.5484-0.5904-2.4852,3.1944h-1.7748l-1.2996-0.9456h-1.0668l-1.1808,0.708-0.7116-0.2352-1.0644,1.8936h-0.5904l-0.7116-1.5396-0.9456-1.5372-0.354-0.948,0.474-1.8912,1.5372-0.9468,1.89-0.948,1.4232-0.2352,1.6548,0.9468,0.7104,1.536,2.13-2.01,2.1276-2.3664,1.7736-0.7092,2.2488,0.354,2.4852,3.3132,2.364,0.2352,2.8404-2.0112,1.0644-0.5916,2.604,0.3552,2.6028,1.4196,2.7204,4.0212,0.474,3.9036,0.5904,1.0656,4.7316-0.3564,4.968-0.9456,2.838-0.1128z"/>
|
|
||||||
<path stroke="none" d="m861.049,244.319-1.302,5.7972,1.5372,1.656-0.1188,1.8924,0.8268,0.828,1.5384-0.828,1.5372-1.0644,1.5372-0.5928,1.7748-0.9456,0.2352-1.0656,1.8924-0.9456,2.0124-0.5928,2.6016-0.7092,2.604-0.3552-1.8924-1.302-5.442-3.5472-2.2488-0.2376-0.828,0.7092-3.192,0.1188-1.7736,0.4728-1.2996,0.7116z"/>
|
|
||||||
<path d="m887.192,238.523-3.7848-0.1188h-2.4864l-2.01-0.8268-1.656-1.656-0.2364-1.5384-1.182-1.8924-1.1832-1.1832h-1.7748l-2.4828,1.656-1.0656,2.1288-0.2352,3.4308,1.4184,2.9568,4.7316,3.5496,2.7216,0.5904,1.8948-0.8256,4.2564-1.8936,2.7216-1.7736,0.9492-1.5384-0.5964-1.0656z"/>
|
|
||||||
<path d="m878.083,233.08,2.1276-2.2464,0.1188-5.088-0.5916-0.4728,0.5916-2.0112,0.2364-1.656h-0.828l-4.614,4.3764-3.1944,0.4728-1.6536,0.948-0.12,1.182,1.302,0.828,2.3664-0.2364,1.2996,0.1188,2.9592,3.7848z"/>
|
|
||||||
<path d="m879.976,246.448,4.1388-0.3552,3.3132,0.2376,1.656,0.474,3.3132,1.7736,1.8936,0.948,3.6672-0.2376-1.4196-1.7736-1.4208-1.7748-0.948-1.7748-0.2352-1.7736-0.8256,0.2364-0.948-0.2364-1.182-1.5372-0.7092-2.2488-0.4752-2.9568-0.9444-0.12-0.7116,1.4196,0.7116,0.7092,0.708,1.4196-1.1832,1.5372-0.1176,1.1844-1.5372,1.1832-2.13,0.9468-2.0112,0.8268-2.2476,0.828-0.3552,1.0644,0,0z"/>
|
|
||||||
<path d="m910.26,241.006,0.1188,5.0868,1.7748,1.5384h1.6548l1.302-0.7092,0.3552-1.0644-1.1832-0.7092-0.474-1.4196-2.484-2.7216h-1.065v-0.001z"/>
|
|
||||||
<path d="m929.543,245.028,5.0856,3.4308,1.5384,0.474,1.4196-0.474,2.3652-1.8924,1.182-2.6028,0.12-1.8912-1.182-0.1188-1.8924,1.302-2.7216,0.2364-2.1288,0.354h-1.6572l-1.6572,0.3552-0.4716,0.8268z"/>
|
|
||||||
<path d="m944.21,241.126-0.9444,1.5384-0.9468,2.3652-2.13,2.2488,0.1188,1.6548h-0.948l0.1212,1.302,1.6536,1.2996,4.6152,0.7092,3.6684-4.7304v-1.302l-2.0124-2.3664-1.4208-0.354-1.7748-2.3652z"/>
|
|
||||||
<path d="m965.74,254.375,2.3676,1.1832v0.828l-0.9468,1.302-0.5904,2.4828-0.2376,1.5384-2.8392,0.1188-2.9568-1.0644-1.6572-1.0644h-1.5372l-0.828-0.7092-1.4184-0.9468-1.776-1.1844-1.8912-2.4828-1.3008-1.656v-1.1832l1.7748-2.2476,1.7748-0.5904h7.926l3.666-1.302,2.9568-2.484,3.5496-0.7092,0.828-0.9468,2.3664-0.474,5.9148-3.0756,3.312,0.5904,3.3132-0.1176,2.838,0.8268,1.0656,0.9468-0.5916,0.3552-1.5372-0.1188-1.7748,0.9468-0.2376,3.1944,1.4196,2.6016-0.354,0.7104-1.7748-0.1188-1.182-0.5928-0.5928-1.0644v-1.0644l-1.1808-1.656-0.9468-0.354h-2.1276l-0.7104,4.494h-1.0668l-2.0088-1.7736-2.9592-0.3564-2.0112,1.7748,0.7092,2.3664,2.9592,2.8392h1.5372l1.4196,1.6548-0.12,1.3008-2.1276-0.474-2.13-0.4716-1.7736-0.8304-1.4208,0.2376-1.656-0.948-1.656-0.708-1.0644-0.474-0.714,0.9504z"/>
|
|
||||||
<path d="m973.724,307.228-1.8816,1.7052-1.2552,2.4192-0.4476,2.508-0.8064,3.1368-0.3588,2.4192,0.3588,5.2872,0.18,2.8668,1.7016,2.6904,0.8952,0.2676,1.0752,2.1492,1.5228-4.2108,0.7188,0.5376,0.4476,3.1356,2.5092,2.1504s-2.3304-1.164-2.868-1.164-0.6264,0.6252-0.6264,0.6252l0.6264,1.344,1.4328,1.434,2.5104,0.984,4.6596,0.09-1.0752,1.0752h-3.2256l-0.8088,0.6264,1.1664,1.7028,1.4328,2.2392,2.6004,1.2552,2.6856-0.7164h0.8964l-0.4476,1.0752,1.344,0.984,1.164,1.0752,1.0764,1.1652,0.8952,0.1788v1.344l-1.6128,4.0332-0.36,1.8804-0.894,1.524-0.5376,2.328-1.6128,2.778-0.1788,0.9864h0.8064l1.164-1.5252,1.704-0.7164,2.0616-2.688s1.164,0.36,1.434-0.18c0.2676-0.5376,1.5228-4.3008,1.5228-4.3008l1.254-0.2688,0.6276-3.942,1.0752,3.6744,0.8976,4.6596-0.36,3.9432-2.3304,4.2996-0.6252,0.72,0.3576,1.4316h1.7028l1.9716-2.0628,3.4044-4.5696,1.3464-4.5696,0.7164-8.8716,1.5228,4.1232,1.434,4.0308,0.7188,3.1356-1.0764,4.122-1.344,4.8408,1.7928-1.2564,3.7644-4.212,2.9556-4.3884,0.8076-3.2256,0.7176-6.1836-0.4488-4.8384,0.1776-1.7928,0.6276-0.9852-0.09-3.2256-0.6264-1.344-2.1492,2.8668-0.8964,0.18-2.5104-1.7028-0.6252-0.18-1.434-2.0616-0.984-3.3156,0.088-3.7632h-0.5364s0.2688-3.1368,0.5364-3.9432c0.27-0.8064,0.6276-2.328,0.6276-2.328l-0.4488-3.3168-1.7016-3.1368-2.0616-1.7904-3.3144-0.9852-3.8556-1.0764-2.2392-1.7904-4.212-0.4476-2.1504,0.2688-4.032-1.8816-2.5992-0.9864-3.3144-0.0876-3.1368-0.36-1.6164,0.0936z"/>
|
|
||||||
<path d="m829.548,307.424-8.2644-0.1644-1.3224-0.6612-1.9824,1.6512h-3.8016l-4.1328,2.3148-2.8092,2.148-1.4868-0.1644-5.7864,5.2896,0.8268,4.296,0.66,1.158,0.3312,4.1328,0.1644,5.9484-1.3212,0.9936-1.9836,4.9596-1.158,4.296-0.9912,8.43,0.8268,6.2796-1.158,3.306-2.3136,3.6372-0.4956,1.818,1.9824-1.3236-0.3288-0.6612,0.9912,1.4868,2.4768-4.4628,0.9936,1.6536,0.99,0.1644v-5.6196l-1.1556-8.76,2.8092,9.0924,0.6624,3.3048,0.4956-0.1668,0.33-7.4376,1.8168,4.1328,0.1668,3.6348,0.8256,0.6624,0.498-0.9924v-5.454l-2.9772-8.76-1.4868-8.1012,3.9672,10.5792,2.3148,2.148,2.148,5.7864,1.8204,3.3048,0.3288,2.148,1.3224-0.8256,0.498-0.8256-1.158-0.8268,0.8256-0.66-0.1668-2.9748-0.99-6.9396h-0.9912l-3.4716-7.2732,3.1404,4.464h1.3224l0.1656-1.1592-1.4868-2.9748-0.33-3.4716,2.9748,4.2984,0.99-0.4956-1.6524-4.7952-0.3288-5.454,0.9912,2.3136-0.1656,2.6448,2.1492,2.646,2.148,1.1556,1.6524-1.9812-1.158-0.828-0.4944-2.3124-1.6548-1.9836v-2.646l2.3172,4.1328,2.1468,1.488,2.1492,0.4956,2.1492-1.4868,3.6348-4.1328-0.4932-0.4968-3.804,0.1668-2.9748-1.9836-2.6436-2.478v-2.1492l0.4956,0.3288,1.1556,2.316,2.1492,2.1492,2.4792,0.3288,3.1416,0.1668,3.4692-3.1404,1.8204-5.9508,0.4956-3.306-0.6612-4.1316-2.1504-4.794-1.3224-2.1492-1.1568-0.4968z"/>
|
|
||||||
<path d="m951.204,398.996-8.7624,9.0876-1.1568-0.3288-3.1404,2.6448-0.1644,2.8104,2.9748,2.316,1.158,2.148,0.8268-0.1668,2.9736,3.636,2.8116,3.9684,1.158,0.6624,0.8244,1.8168-1.4856,2.148,0.4956,1.3248,2.3136-0.3324,2.646,0.1668,1.6512,0.9912,0.6624,2.976v1.1544l1.818-0.99,1.488-2.1492,0.1656-5.2884-0.3288-1.4868,0.4932-3.9684,0.4956,5.2884,1.158,1.6536,0.8256-0.6624,0.9912,3.4728,2.1492,2.1492,1.158,1.9812,0.1668-1.32-0.1668-2.6448,1.158-2.976,1.3224-3.4704,1.3224-0.828,1.1556,0.4992,1.656,1.65-0.1668,0.6624,1.488-0.1668-0.3324-3.966-2.1468-2.976-3.3072-2.1456-1.6524-1.6524-1.4868-2.6448,2.3136,1.3212,2.4792,2.3148,2.3136,1.158,1.6536,0.3288,2.8116,5.4552,1.818,2.6448,0.33-3.636,1.3224-4.134,1.3236-1.8168,1.6524-0.1668,2.1492,0.6624-0.4968-2.4804-1.6524-3.1404-3.306-2.9736-3.4716-2.6448-2.9736-1.3248-2.6472,2.316-0.8256,0.3288-1.488,1.3248-1.1556-0.4956-3.8028-3.6396-0.9912-0.6588-1.6524-3.9684-2.4804-1.158-3.8016,0.3324-4.632-0.9936z"/>
|
|
||||||
<path d="m851.863,396.848,0,0,1.158,1.9812,0.9924,3.1404,1.6512,1.8204-0.1644,0.99,2.3136,1.9824,2.3136,3.636,3.8028,3.1392-2.8104,2.4816-6.612,4.9596-2.1492,0.6624-2.8092-1.6572,0.33,3.9684,1.1568,1.8204-2.9748-0.6624-3.4728,0.3288-2.148,1.8204-0.4968,1.8168-0.8256-1.3212-1.158-1.8204-0.33-0.3288-0.66,0.4956,0.4956,0.3288,0.1644,3.306-0.8256,0.6624-0.1668,0.9912-3.8004,2.478-0.9912-2.478-1.3248-2.8104-2.3136-1.158-2.478,0.3324-2.8104,1.6524,0.8256-2.3148,1.6536-2.6448,3.1392-2.6436,3.1404-1.9824,2.4792-0.9912,0.6624-0.3324-0.828-0.8256-4.626,1.3212-3.3072,2.1492-3.4716,2.4804-2.6436,3.7992-1.3224,0.9912v-2.808l-1.4892-3.8016-0.4956-2.4816-1.488-1.8168h-1.8168l-2.4792,0.4956,1.8192-3.1392,3.6348-1.9824,1.6536-2.8104,2.9748-2.4816,2.4792-0.4956,3.6372,0.4956,1.8156,0.9948,3.474,0.1632,2.1468-0.1632,2.646-1.3248,2.1492-3.9684,2.9736-4.2948,3.474-1.8192,4.1328-0.3264z"/>
|
|
||||||
</g>
|
|
||||||
<path fill="#000" d="m892.877,173.292v2.0844l-0.7752,1.2504h-1.3704l-0.8328,0.894-0.2388,0.7152,1.5492,1.4292,1.4292,1.0128,0.5952,0.7164,0.3588,0.1776,5.958-0.06,0.714,0.7152,1.3116-0.9528,1.6104-2.4432,5.064,0.06,2.6796,1.9656,0.1788,1.6092,0.5964,0.2388,1.428-1.2504,1.1916-0.0588,0.5952,0.774h1.074l3.5148-3.1584,0.5964-0.834,1.3104-0.06-0.1776-1.0128-1.4292-0.3576-1.2504-1.2504-0.3588-2.0856-1.1316-0.1776-1.9656,1.0128-3.396,1.668-1.1328,0.834-1.0128,0.0588s-0.4164-0.3564-0.6552-0.3564h-1.3104l-1.074,0.894h-0.834l-0.2976-0.2988-4.5876-0.3576-3.8124-0.9528-1.968-1.3104-1.2504-1.0128-0.3588-0.3564-0.5352,0.2364z"/>
|
|
||||||
<g fill="#fff">
|
|
||||||
<path d="m895.739,178.772h2.6208l0.6552,0.5364v0.714l-1.2504,0.5364-2.2056,0.1188-1.5492-0.2376-1.074-0.954-0.2364-1.9056,1.428-1.6092h1.3716l0.12,0.5364,0.12,2.2644z"/>
|
|
||||||
<path d="m913.254,178.654-0.4164,0.3564v0.7152l0.534,0.3576,2.6232,0.12,2.8596-2.2632,0.06-0.8952-1.7256-1.4892h-1.4904l-0.2388,0.4164,0.3588,0.7752,0.4752,0.7152-0.4752,0.9528-2.5644,0.2388z"/>
|
|
||||||
</g>
|
|
||||||
<g fill="#48489c">
|
|
||||||
<path fill="#5656a6" d="m819.408,249.526,1.5384,2.7192-0.1176,4.8504-0.5928,0.5928-2.2464-1.8936-1.1844-1.6548-1.1832-2.0112v-1.7736l1.1832-0.9468,1.5372-0.354,1.0656,0.4716z"/>
|
|
||||||
<path fill="#5656a6" d="m824.141,257.33,3.4296-7.0968v-1.8924l-1.302-1.8948h-1.7748l-1.8912,1.7748v6.27l1.5384,2.8392z"/>
|
|
||||||
<path fill="#5656a6" d="m830.054,257.33,1.8936-0.8268,4.614-4.3776,0.7092-1.3008-0.3564-1.0644-1.2996-0.9468-0.8268-0.2364-1.8936,0.828-1.0644,1.0644-2.13,3.7848,0.354,3.0756,0,0z"/>
|
|
||||||
<path fill="#5656a6" d="m838.219,260.406-1.6572,1.1844-1.8936-0.1188-3.4284-2.3664,0.1176-0.474,2.1288-0.3552,1.8924-0.828,1.8924,0.1176,1.0668,0.9468,0.3528,1.0656-0.4716,0.828,0,0z"/>
|
|
||||||
<path d="m970,256.975h2.7216l1.5372,0.828h3.0756v1.1844l-1.7748,1.2996-3.4308,0.9468-1.5384,0.7092-1.182-0.1188-0.828-1.0644v-1.656l0.7092-1.4196,0.7104-0.7092z"/>
|
|
||||||
<path d="m988.808,253.31,0,0s1.8936-1.0668,2.2464-1.8924c0.3564-0.828,1.1832-2.604,1.1832-2.604l0.7116-3.0756-0.9456-2.6016-1.7748-0.4728-1.5372,0.1176-0.828,0.8268-0.2352,2.2488,0.8268,1.8924,0.7104,1.0644-0.1188,2.0112-0.2388,2.4852z"/>
|
|
||||||
<path d="m981.71,254.255,0,0,1.8936-0.9456,1.1808-2.2476,0.1212-2.4852-0.9468-1.8936-1.302-1.4172h-1.7748l-0.474,3.3108,1.3008,1.302v4.3764h0.001z"/>
|
|
||||||
<path d="m979.463,256.385,0.7092-0.828,0.3576-1.7748-0.7104-2.6016-1.0668-1.1832-1.2996-1.1832-1.4208-0.9456h-2.0124l-1.2996,1.0644,0.3528,2.13,2.3688,1.7736,1.8924,0.3552,2.1288,3.1932z"/>
|
|
||||||
<path d="m988.106,250.757v2.1336l-2.1324,0.306-0.1524-2.8956,2.2848,0.456z"/>
|
|
||||||
<path fill="#4f4d9f" d="m971.699,428.416-1.818,2.4804v4.1316l0.8256,1.9848-0.8256,7.7676,4.1328-5.784,1.4856-2.9772-0.1644-3.9648-1.158-1.8204-1.3224-1.1568-1.1556-0.6612z"/>
|
|
||||||
<path fill="#4f4d9f" d="m985.418,419.824-1.3224,0.3288-1.488,3.1392-0.3288,4.1316,0.8256,2.148v2.9772l0.3312,1.8168,1.4856-2.1456,2.1492-3.6384,0.3288-2.6448v-3.6348l-0.9912-1.6536-0.99-0.8244z"/>
|
|
||||||
<path fill="#4f4d9f" d="m949.384,441.308,2.1492-1.4868,1.6536-1.158,2.1504-2.808-0.3324-2.148-1.3236-0.9912-1.6524-0.6624-1.4868,0.1668-1.6536,2.3124,0.1668,4.6296,0.3288,2.1456,0,0z"/>
|
|
||||||
<path fill="#4748a5" d="m848.724,426.766,1.6524,0.6588v4.464l-2.8092,3.1404-3.1392,2.3148,0.1632-2.976-0.8256-0.9876v-3.144l0.6624-0.8256v-1.4856l2.8092-1.4904,1.4868,0.3312z"/>
|
|
||||||
<path fill="#4748a5" d="m827.234,429.409,2.3136-0.1656,2.4792,1.4856,0.9912,2.8116-1.4868,1.3236-0.8256,1.3212-0.4956,2.1492,0.33,3.4728,0.1656,3.1404-2.8092-3.474-2.3136-3.6348-0.1668-3.6348,0.8256-3.1404,0.9924-1.6548z"/>
|
|
||||||
<path fill="#4748a5" d="m819.3,425.278-0.6612,2.3124-0.8256,0.4956-0.9912,1.3236v4.9572l-1.6536-0.9876-1.818-2.316-0.9912-2.4804,0.3312-6.2796,0.8256-2.6448,1.9836-0.6624,1.9836,0.6624,1.6512,3.8016,0.1656,1.818z"/>
|
|
||||||
<path fill="#4748a5" d="m819.468,409.246-0.9924,2.4768-2.6448,1.9824c-0.4044-2.64,0.9552-4.026,3.6372-4.4592z"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
<g stroke="#000" stroke-width="0.45648">
|
|
||||||
<g>
|
|
||||||
<path fill="#dfda4d" d="m825.559,261.236,3.1932,2.9568,2.3676,1.5372,1.8924,0.7092,2.3664,1.302h4.9692l4.494-0.474,2.2476-0.828,4.3764-0.1188,3.5496-1.656,2.6016-1.7736,2.6016-0.1176,1.4232-1.4208h1.8912l3.7836-2.8392,5.3256-2.364,5.5596-2.0112,6.0348-1.1832,2.4828,0.1176,0.9456,0.7092,1.1844,2.0112,0.4716,0.9468-0.5904,2.0112-2.2464,1.302-0.474-1.4208,1.4184-1.1832-0.354-0.7092-2.2488-0.3552h-1.5384l-1.4172,1.4196-0.2376,3.1944,1.8924,1.6548,2.0112,1.302,1.7748,0.1188,2.13-1.2996,2.8392-2.4852,1.6548-2.8392-0.474-4.14-0.9456-2.604-2.8392-2.1288-3.5484-1.4208-6.1512,0.12-3.6672,0.9456-1.4208,0.474-3.9024,2.6016-1.7748,0.1188-3.9036,2.6016-1.5396,0.5904-1.7748,0.7092-2.7204,1.1844-5.2068,2.364-3.5472,2.13-1.7748,0.2376-4.1388,2.6016-5.916,0.474-1.0644-0.5928-2.7216-0.354-1.7748-0.7116-1.7736-0.9456-2.4828-2.9568-0.7116-0.474h-2.2476l-0.7092,0.948,0.3552,2.0136z"/>
|
|
||||||
<path fill="#d9d24d" d="m894.408,251.299,0.7104,5.9148-1.3008,3.666,2.7216,0.1188h3.192l2.8392-0.5928,2.7216-0.2364,2.4852,0.1188,2.0112,0.2364,2.4828-0.9456,0.1188-1.8924-0.5916-1.656,1.182-3.6684-0.474-0.828-18.0984-0.2352z"/>
|
|
||||||
<path fill="#d9d34a" d="m922.444,257.804-0.7092,0.474-1.0644-0.474-0.5928-1.6548,1.1832-1.0656,2.6016,0.1188,2.3664,2.1288v3.0756l-3.1944,1.5396-3.3108,0.828-3.6684-1.0656-2.2476-3.0756-0.5916-2.1288,0.474-3.6684,0.5916-2.3664,3.1944-2.3664,3.4296-1.0644,4.0212-0.5928,4.6164,1.1832,9.3432,3.5496,6.27,2.8392,6.9792,3.6684,4.1412,1.8924,5.442,2.6016,3.3132,1.1832,3.7848-0.474,1.656,0.1188,3.312-1.0644,2.2476-0.2376,4.968-5.7972,2.0112-1.1832-0.2352,2.6016-3.3132,3.6684-2.838,3.1944-1.182,0.1188-1.5384,1.2996-2.9568-0.1188-6.8616,0.3564-3.312-1.0644-5.2056-1.0656-6.1512-2.7204-4.8516-2.4852-2.3664-0.3528-3.6684-1.8936-2.2464-0.2364-1.3008-0.9468-4.0236-1.182-3.3132-1.1844-3.192-0.3552-2.4852-0.354-1.182,0.7092-1.1832,1.656-0.5904,2.2476,0.828,2.7216,1.4196,0.2376,1.302-0.5904,0.4716-0.9468-0.5916-0.2364z"/>
|
|
||||||
<path fill="#ddd457" d="m852.564,388.192-1.5108,1.5072-2.3736-1.5072,1.0776-2.8044,3.8832-0.648,2.1576,3.2352-0.864,3.234-3.0204,3.018-3.6672,1.08-3.666,0.4296-4.3128-0.2136-5.8248-1.2972-4.5276-5.3904-3.4512-6.9012-2.586-5.8224-3.0204-11.862-1.5108-4.9608-0.6468-4.5288-3.234-6.2544,1.2924-1.0776,11.2152-9.9204h0.648l2.3736-2.1576,4.0956-7.764,0.432-0.4308,1.2936-4.7436-0.216-8.1948-1.0776-3.882-2.5872-4.314s-0.8628-1.5096,0-1.2936c0.8616,0.216-2.3724-3.6672-2.3724-3.6672l-3.884-4.1v-0.86l-2.802-2.8044-1.9416-1.0776h-1.5096l-0.648-0.864-2.8044-0.8616-1.2924,1.2936-0.8628,2.8044v1.0788l1.9392,0.8616,0.6468-0.4308-0.6468-1.08,0.216-1.2936,1.512-1.0776,1.7244,1.2912-0.216,3.2352-1.2936,1.5108-3.234,0.2172-2.5884-1.2948-1.0776-2.1576-0.8616-3.2328,0.8616-1.9416,1.2948-1.0776,2.1564,0.4308,3.45-0.864,1.0776-0.4308,2.8044,0.4308,1.9416,1.9416,2.1552,1.2936,5.3928,6.0396,1.5084,1.5084,2.8044,4.0992,3.4512,7.764,0.8616,5.3904-0.4296,5.3928-2.8044,7.764-3.2352,4.9596-4.5276,5.6076-7.764,6.4716-1.0776,0.2148-1.7256,2.1576,3.0204,6.4692,4.7436,19.842,3.882,8.1948,5.6076,5.8224,4.3128,2.3736,5.6088,0.648,4.9596-1.296,2.1576-1.938-0.864-1.2948z"/>
|
|
||||||
<path fill="#dbd45d" d="m861.622,392.72-0.6468,1.0764,0.8628,1.7268,2.1576,0.4308,1.5084-1.9416v-2.1588l-1.2948-2.37-1.7244-0.4344-1.9404,0.2172-2.8044,1.9416-1.5108,1.7256-0.8628,4.0968,2.1576,6.6876,3.4512,4.5276,8.6256,5.6076,9.2748,3.45,5.8212,0.8616,4.3152,4.3152,2.1564,5.1744-1.9404,3.2376-2.5884,0.2148v-1.2936l1.0776-0.2172,1.2948-1.2936-0.6468-1.2936-2.5872-1.5108-2.1564,1.7256-0.2172,3.8832,1.9392,1.9416,2.8044,0.6444,2.1576-0.8628,2.1552-2.3736,0.2184-2.8032-0.8628-4.098-3.6684-5.1732-3.8796-1.9416-9.7056-3.4524-6.2544-2.37-4.53-3.2388-4.0968-4.3116-2.3724-6.252,1.0776-4.098,2.3736-1.7268,1.2936,0.4308-0.432,1.2984z"/>
|
|
||||||
<path fill="#e5dc5e" d="m939.906,392.934,1.7256,1.0788,0.2172,1.7244-1.9416,0.8628-2.5872-0.4308v-2.586l1.5084-3.2352,4.3152-0.2172,1.9404,2.3736,1.2948,4.5276-1.2948,4.746-4.9608,4.0968-6.9012,4.746-7.548,3.234-11.214,5.3904-3.2352,2.37-2.8044,5.1768,1.7268,3.0216,2.1564,0.4308v-1.0788l-0.648-0.8628,0.4308-2.3736,1.2948-1.2924,2.586,1.5108,0.6492,3.234-2.3736,2.3736-2.5884,0.4308-4.0968-1.9416-1.2948-2.1552-0.2148-3.0228,1.7256-2.8032,3.45-3.4488,5.3928-3.0228,7.764-3.234,11.4288-5.6052,7.9788-8.628v-3.4488l-1.7256-2.1564-2.1564,0.2148z"/>
|
|
||||||
<path fill="#d7d643" d="m949.826,386.681v1.938h1.5096l1.5108-0.2148,0.6468-2.586-1.2936-1.7244-1.7256-0.2184-2.1576,0.4308-2.3712,1.7256-0.216,3.4524,1.0764,2.37,2.1576,3.234,3.882,1.9416,3.8808,1.0788,5.8248-0.4308,6.6852-3.234,6.2544-4.5288,2.5872-6.2556,3.234-11.43,4.0968-14.448,2.5884-5.3904,2.1564-1.9428-0.6468-0.8616h-1.9404l-4.9608-3.666-5.1744-3.2352-6.6864-7.9788-3.45-6.6864-1.0788-9.4884,1.9416-9.2748,4.0968-6.9012,6.6852-5.6076,6.0396-4.3128,6.0384-0.2136,0.8604,2.3712-0.8604,1.9416-1.2948-1.0788-1.9404-0.216-0.8616,3.2352,2.154,1.0776,3.882-0.4308,1.08-2.5872-0.4308-3.666-2.8044-2.5884-4.962,0.4308-3.666,0.4308-4.53,2.5884-4.7424,4.9596-3.234,4.7448-4.0992,6.6852-1.2936,6.0384,0.216,10.5684,5.3928,11.4288,4.7436,6.0396,9.2724,6.2532,1.5108,1.0788-2.8032,6.2544-4.098,13.1556-2.5872,10.5672-2.1564,4.5288-6.9012,6.0384-7.7652,3.018-6.684-0.2136-3.2352-2.3736-0.864-2.1564-0.216-3.234,1.7268-0.4308z"/>
|
|
||||||
</g>
|
|
||||||
<g fill="#5db7d2">
|
|
||||||
<path fill="#44b3cc" d="m890.873,284.615-0.33,3.3048,0.9912,7.2732,3.636,19.9992h1.8192l0.1644-3.1392-6.2808-27.438z"/>
|
|
||||||
<path fill="#50aece" d="m900.127,313.706-6.6108-28.926,4.9572,29.4216,1.6536-0.4956z"/>
|
|
||||||
<path fill="#50afce" d="m901.285,313.375,2.3136-0.8256-8.5956-27.7692,6.282,28.5948,0,0z"/>
|
|
||||||
<path fill="#50abce" d="m897.484,283.127,10.0824,28.926-1.9836,0.66-8.0988-29.586z"/>
|
|
||||||
<path fill="#50b0ce" d="m909.054,311.39-9.7524-29.2548,12.3972,28.926-2.6448,0.3288,0,0z"/>
|
|
||||||
<path fill="#50b3ce" d="m912.69,309.904-11.5704-27.9348,14.3796,28.266-2.8092-0.3312,0,0z"/>
|
|
||||||
<path fill="#64b4d1" d="m822.091,258.767-1.56,0.2388-1.9176,1.56-0.84,2.0388,0.1212,3.7176,1.3188,2.2776,2.2788,2.4,1.0788,1.7988-0.6,3.2364-3.2364,2.0388-3.4776,2.5188-1.32,2.0388-0.48,2.2776,0.1212,2.3988,0.4788,0.5988,2.6388-0.1212,1.5588-0.4776,2.3976-0.24,2.2776,0.36,3.4776,2.3988,4.9176,4.4376,2.1564,2.5188-1.5576-3.7188-0.8388-4.4376-0.6-4.4364,0.7212-2.6376,1.1988-1.68,1.3188,0.7212,1.0788-0.6,1.44,0.72,1.2-0.72,1.9176,0.6,2.3964-1.2,3.5988-2.7576h2.5176l0.7212,0.5988,1.4376-0.5988,0.84,1.2,2.9988-2.28,2.3976-1.1988,2.3976,0.9588,3.1188,0.72,1.2-1.0788,2.5176-0.1212,3.4764-0.4788,1.68,1.1988,1.6764,4.0764,1.2,1.3212,1.8,0.3576,0.9588,0.48,1.6776,4.1976,1.2,3.3576,0.6,4.0764-0.2412,1.0788,1.0788-0.1188,1.68,1.6764,1.4388,0.7212,1.1988,1.3188,0.3576,2.1576,0.9612-0.1188,0.84-1.0788,1.6788,0.36,1.4388,1.5576,1.4376,0.1212-2.52-16.6692-2.3976-1.3188-0.12-3.8364,5.6364-2.04,0.12-1.4376-0.8388-2.4-1.0788-2.1576-2.1588,0.2388,1.6776-5.3952,4.1976,4.3164-1.9188,0.2412,1.6764,6.594,7.1976-1.1988,1.3188,1.8-0.48,1.5576,0.6012,1.0788,0.3576,1.92,2.16,2.7564,5.6364,12.2304,5.3952,11.0328,2.3988-2.5176,2.5188-0.5988,2.7588-1.92,1.6776-0.6,1.1988-1.5576,3.1188-0.1212,4.6752,4.1976,0.7212-1.0788,4.4352-0.2412,1.4388,2.8776,0.2412,1.2,1.7988-0.72,4.9164,1.0776,2.9976,2.4,2.2764,0.9576,0.6012,1.2012,1.3188-1.56,0.96,0.1212,1.56,0.36,4.9152-0.36,2.52-5.0376s2.2764-4.6752,3.3588-5.8752c1.0776-1.1988,5.5152-5.9952,5.5152-5.9952l5.3952-3.5988,4.0764-2.2776,3.8376-0.48,3.5988-0.12-0.12-3.2376-1.4388-3.1176-3.5988-4.6752-0.72-3.7176v-2.28l3.1188-2.0388,3.7176-2.9976,0.1212-3.1188-1.0788-3.8376-2.16-3.2364-0.72-0.6-1.2-0.2388-1.6776,1.0776-3.3576,4.6764-3.7176,3.7188-4.5564,2.7588-5.2764,0.5988-8.3928-1.3188-5.8752-1.8-7.3164-2.7576-7.6752-3.5976-4.1964-0.8412-6.3564-3.1164-2.3976-0.1212-0.1212,1.08,1.9176,1.9176-0.4776,3.3588-1.6788,1.7976-3.1176,0.1212s0.36,0.2412-1.4388,0.72c-1.8,0.48-3.3576,0-3.3576,0l-2.9976-1.7988-2.8788-0.48h-5.7552l-6.3552,0.6012-7.1964,0.5988-3.5964,3.1188-3.1188,0.48-3.3576-0.84-3.4764-4.0764,0.12-2.2776,2.5176-3.1188-1.3188-0.12-7.9152,2.8788-4.9176,2.7564-2.6364,1.68-1.9188-0.1212-2.52,2.2788-3.1176,0.24-1.8,1.9176-0.5988-0.2388-5.0352,1.3188-4.5576,0.8388s-5.7564,0.84-6.3552,0.84c-0.6012,0-6.1152-0.72-6.1152-0.72l-4.0788-2.0388-1.9176-2.1576-1.8-1.2-2.3976-2.5164,0.1212-1.92-0.7188-0.4776z"/>
|
|
||||||
<path d="m893.774,318.595-0.1704,3.7428,2.7228-0.678-0.3408-3.5736-2.2116,0.5088,0,0z"/>
|
|
||||||
<path d="m897.348,317.575v3.0624h1.1916v-3.2328l-1.1916,0.1704z"/>
|
|
||||||
<path d="m900.071,316.895v3.4032l1.7004-0.5112-0.1704-3.0624-1.53,0.1704z"/>
|
|
||||||
<path d="m903.643,316.213,0.1716,2.5524h1.5288l0.1716-3.0624-1.872,0.51z"/>
|
|
||||||
<path d="m907.046,315.533v2.724h2.3808l-0.3396-3.0648-2.0412,0.3408z"/>
|
|
||||||
<path d="m910.788,314.683v2.5524l2.0424-0.5112-0.51-2.7228-1.5324,0.6816z"/>
|
|
||||||
</g>
|
|
||||||
<g fill="#ccc">
|
|
||||||
<path fill="#fffcfc" d="m973.633,345.67v2.6904l0.6276,0.3588,0.18,0.8952,2.7756,0.4488-0.27-0.8964-1.7928-1.7028-0.4476-1.2552-1.0728-0.5388z"/>
|
|
||||||
<path d="m916.933,309.892-0.4596-0.9156,1.5264-1.6764,2.8932-0.6072,2.286-1.83,2.8956-1.8288,3.048-0.762,3.9636,3.3516-1.3716,1.0704-1.374-0.1536-2.5896,1.6752-1.98,1.2204-1.6764-0.3048-1.5252-0.4572-0.9132,0.762h-1.374l-1.068,0.6096-2.2812-0.1536z"/>
|
|
||||||
<path d="m935.527,305.623,1.5228-0.6072h2.286l1.2204,3.3516v1.068l1.98-0.6096h3.6588l2.5896,1.2192,2.286,2.286,2.4384,1.3728h1.98v-1.068h1.9812l0.4584,0.6108,2.1324,0.3036,1.5252-0.456,0.4572,1.3716-0.3048,1.8276-0.4584,1.374,0.6096,5.7888,2.7444,9.9072,5.1816,8.3832-1.98-0.9156-4.4208-0.6096-1.3728,0.6096-1.8276-0.1524-2.1336,1.9812-1.068,0.1512-0.9132,0.7632-1.6764-2.286-6.4008-8.5344-1.6764-1.8288-3.6576-7.9236-5.0292-10.8228-0.306-4.4208-1.218-1.2192-0.6096-0.1524v-0.7632h0.001z"/>
|
|
||||||
<path d="m933.697,364.607,2.592,1.2192-0.1524-1.2192,1.8288,1.2192s1.6752,0.306,2.5896,0.1524c0.9132-0.1524,2.8956-2.1324,2.8956-2.1324l0.6096-4.1148,3.9636-6.8592,2.8932-1.6764,0.918-0.1524,2.7408-3.0492,5.1816-2.742,2.4384-0.9156,3.9636,0.762,2.8956,1.3728,0.6096,2.4384,0.4584,6.5532,1.8276,1.374,1.5252-0.7644,1.3716-1.6752,3.3516-1.2216,2.4396,0.3036-0.1536,3.0504-1.0656,5.6388-1.6764,5.9436-2.7432,9.4476-2.5896,6.708-6.402,4.878-5.0292,3.198h-8.0784l-2.4372-2.2848,3.048-0.7644,1.0668-1.8252,0.3048-3.2016-2.742-1.9812-2.7432,0.1524-3.6576,2.1348-1.374,1.8252-0.762,2.136h-1.3704l-3.0504-0.1536-2.286,1.5252-1.6752,2.1312-0.4584,3.2016,0.7644,2.2872,1.6752,1.0668,3.048-0.1536,0.7632-0.6072h0.6096l-2.7444,3.0444-3.504,3.66-4.5732,3.048-3.048,0.9132-5.0292,1.83-3.6576,1.6764-4.116,0.1524-4.2672,3.8088-2.8956,2.2884-1.9812,2.742-0.9144,4.7256v3.5028l2.2836,3.048-0.3036,0.9168-1.3716-0.156-0.7632-0.6072h-3.3516l-0.9156-1.3728-1.6764,0.306-2.4372,0.7608-1.068,1.0692-1.8288-0.9168,1.068-2.742,0.1524-2.5896-0.762-3.5076-2.286-4.5732-1.98-2.1312-3.5076-2.1348-6.7056-1.9824-7.314-2.7384-5.334-2.5944-1.9812-3.048-0.7632-3.8088,1.2204,1.2192-1.068-4.2672,1.524,1.9788,1.0692,0.1524,3.048,3.8124,2.4384,0.4584,0.6096,0.3024h0.7608l0.1524-0.3024,2.286,1.2192,2.592,0.7608h3.6564l-3.1992-0.7608-3.9636-1.8288-4.1148-2.2884-2.286-3.0444-0.306-1.3728-1.2192-0.1524,0.1536-0.9168,0.9144-1.0668,1.2192,0.1536,0.306,0.9132,1.2192-0.4584,1.98,1.5264,3.354,0.3024,2.4372,0.306-2.1312-1.2192-3.354-1.8288-3.3528-3.0492-1.068-0.1524-3.354-5.1792-1.8276-5.0304-1.524-5.3328v-6.2508l1.98-5.0268,2.8956-4.5732,1.6764-1.5252,1.3716,0.4572,3.5052-2.5896,2.4384-0.762,3.2016,0.15,2.4384,0.7632,3.5052,1.068,1.6752,2.1324,1.6764,0.1536,0.456,1.2192-0.9132,0.3048,1.2192,1.6764-0.4572,1.0668,1.068,1.3716-0.1524,1.98-1.98,2.2872,1.3704,2.2848-0.1536,0.7644,1.6764,1.8288,1.5252,2.2836,2.5908,0.4584,6.096,0.1536,4.4184-0.4584,2.592-0.1536-1.068-1.2192,1.8288-0.4584,2.286-0.4584,4.1148-3.1968s3.2016-5.4888,3.8112-6.2508c0.6096-0.7608,1.8276-3.3528,1.8276-3.3528l5.1816-5.334,1.98-0.762,4.5732-2.2848h4.7256l1.2216,1.3728,1.98,0.3048,1.8288,2.2848,0.9132,6.2496-2.8956,1.98h-2.436l-1.6764-1.0668-0.4584,0.9144-1.9812-0.456z"/>
|
|
||||||
<path d="m859.741,387.068s0.3588-0.7164,0.7188-0.7164c0.3588,0,1.1652-0.0876,1.1652-0.0876l0.0888-4.662s-0.6264-0.3564-0.7176-0.7164c-0.0888-0.3564-0.0888-2.0604-0.0888-2.0604l-0.6264-0.6276-0.09-18.8184-1.7928-4.8384-1.5228-2.598-1.254-0.9864-1.9728-0.1776-2.2404,1.434-1.344,0.7164-2.868-0.6252-1.074-0.7188-1.7052-0.0876-1.5228-2.778-3.1356-0.9864-1.4328-0.4476-4.3008-0.3588-1.254-0.09-1.6152,1.0764-1.8816,2.2404-1.3428,2.5968-0.1788,4.2132,0.9852,1.344v1.9704l0.4488,0.8064v1.7028l-1.434-1.7028-1.434-3.4944-0.7164-2.1504-0.6276,0.8964,0.1788,2.868,0.0888,2.328,0.8076,2.1528,0.8064,3.0444,1.344,3.8532,1.0752,4.1244,0.9864,3.9408,1.8816,3.5844,1.6128,2.2404,3.6744,3.6732,2.3292,1.6128,3.5844,1.2564,4.032-0.0876,1.2528-0.9-1.6128-1.5216s-0.2676-0.984-0.2676-1.344,0.5364-2.1516,0.5364-2.1516l1.7028-1.7928,4.9284-0.8952,1.7028,1.2552,2.2404,2.5092,1.8816,0.9816z"/>
|
|
||||||
<path d="m913.682,313.831v2.5524l1.53-0.3408-0.3384-2.2116h-1.1916z"/>
|
|
||||||
<path d="m916.234,313.151v2.0412h1.0224v-2.2116l-1.0224,0.1704z"/>
|
|
||||||
<path d="m918.448,312.98,0.1692,1.8708,1.7016-0.3384-0.1704-2.2128-1.7004,0.6804,0,0z"/>
|
|
||||||
<path d="m921.848,311.62v2.5536h1.0224l0.3396-2.5536h-1.362z"/>
|
|
||||||
<path d="m924.743,311.11v2.2128l1.3608,0.1704-0.3408-2.382h-1.02v-0.001z"/>
|
|
||||||
<path d="m927.466,310.429v2.5512l1.3608,0.1704v-2.2116l-1.3608-0.51z"/>
|
|
||||||
<path d="m930.187,309.577-0.5112,2.892h1.5324l-0.1716-2.2116-0.8496-0.6804z"/>
|
|
||||||
<path d="m932.228,309.577v2.3832l2.2128-1.0224-0.342-2.5536-1.8708,1.1928z"/>
|
|
||||||
</g>
|
|
||||||
<path fill="#76401b" stroke="none" d="m890.046,266.598-1.488,4.4628,5.1252-0.8268-3.6372-3.636,0,0z"/>
|
|
||||||
<g fill="#784421">
|
|
||||||
<path d="m932.194,351.556-4.7916,1.3248-3.306,2.6448-4.2984,4.4616-3.4716,6.282-3.966,4.794-7.2744,2.9736-6.612,0.1668-5.124-1.4856-1.818-2.8128-0.4956-3.6348-0.6612-4.464-1.488-2.8092-2.3136-2.8116-2.6448-1.818,2.8116-11.9016,0.8256-2.6448v-3.4716l0.4956-4.626,2.4792-4.1328,2.4792-2.3136,4.2972-1.9836,7.602-1.9824,7.6044-2.4792,7.9344-1.818,8.9256-2.1492,3.8016-0.33-0.33,4.9584,0.9924,1.8192-0.1668,12.8916-0.8256,11.406-0.6612,5.946z"/>
|
|
||||||
<path d="m934.014,351.391,4.6272,0.9924,3.636,2.1492,1.4868,2.148,1.9836-1.6524,0.8256-2.8116,3.4716-1.9812,5.2908-4.6284-4.4652-6.7776-2.3148-3.306-3.1404-3.6348-3.8016-6.942-4.2972-9.4224h-2.3148l-0.33,18.6768,0.1668,6.7764-0.8244,10.4136z"/>
|
|
||||||
<path fill="#a05a2c" d="m886.904,279.325,0.1668,3.4716,14.2152-4.4628v-1.3224l-14.382,2.3136z"/>
|
|
||||||
</g>
|
|
||||||
<g fill="none">
|
|
||||||
<path d="m846.526,359.353,0.6396,3.21,2.1408,3.852,4.0632,3.528-3.4224-2.46,2.5668,3.4236-4.3836-2.7804,4.2768,2.7804-4.4928-6.4188-1.3884-5.1348,0,0z"/>
|
|
||||||
<path d="m841.285,373.577-1.6044,1.7112-2.7816-0.4272,0.1068,3.5304,3.8496,5.67-3.8496-5.3472,0.108-3.6348,2.6748,0.21,1.4964-1.7124,0,0z"/>
|
|
||||||
<path d="M836.686,383.419,835.83,380.958v-2.7792l0.8556,5.2404z"/>
|
|
||||||
</g>
|
|
||||||
<g fill="#666">
|
|
||||||
<path d="m887.275,369.728-1.2828,1.2816-2.1384,0.5364s-2.1384-0.2136-2.5668-0.5364c-0.4272-0.3192-2.7816-1.71-2.7816-1.71l2.7816,1.4964h4.9188l1.0692-1.068z"/>
|
|
||||||
<path d="m890.698,374.756,0.534,3.102,2.1384,3.7404,1.3896,1.8204-4.062-8.6628,0,0z"/>
|
|
||||||
<path fill="#808080" d="m898.078,383.525-2.034-0.6384-1.818-1.7148-2.5668-4.596,2.6736,3.4224,3.7452,3.5268,0,0z"/>
|
|
||||||
<path stroke-width="0.13692" d="m880.217,371.011,0.3216,9.0912,0.8556,3.5304,1.2804,2.5668,1.7136,2.6748,0.4272-1.0692,1.818,1.2828,0.5364-0.5364-1.8204-1.8168-1.818-2.4612-1.0716-2.5668-1.1748-4.3848-0.4272-4.7052h1.4952l-0.4272-0.8556-1.7088-0.75z"/>
|
|
||||||
<path fill="#808080" stroke-width="0.13692" d="m920.644,385.344,3.4224-0.3204,3.21-2.6748,0.534-1.8204,1.4964-1.0704-0.2136,3.1032,0.7476,1.6056,2.0316,0.642,1.2828,1.1748,2.2476,0.2148,3.2076-2.0304,2.3532-2.4612,2.0328-1.8192,1.4964-0.642,0.5352-2.994h0.9624l0.2136-1.392-0.4272-2.6712-0.9624-2.568-1.2828-1.7112-2.1396-1.9248-0.9612,0.4284,2.352,2.2452,1.9248,2.46,0.1068,3.8496-0.534,1.4976-2.8884,3.3168-3.7428,4.0632-1.818,0.8556-3.8496-0.5328-1.392-1.8192-0.3204-1.2828-0.4284-1.2828v-1.4976l0.5352-1.0692-3.9564,4.4904-1.6044,0.1056-4.1712,3.5316z"/>
|
|
||||||
<path fill="#808080" stroke-width="0.22824" d="m972.088,357.323,0.8556-0.7488,0.9624,1.392,0.216,3.8484,0.1056,0.108v2.5668l-1.4952,2.7816-3.21,3.4224-3.7428,1.602-3.4236,0.4272-2.3532-0.5316-0.8556-1.392-0.534-1.3896v-3.2076l0.642-1.284,0.2136,0.6408-0.1068,3.5304,1.1748,1.3908,2.46,0.7464,2.2452-0.7464,2.6748-0.75,2.2452-1.2828,0.108-0.7488-0.8556-0.1068,0.2136-0.3204h1.2828l1.6044-3.21,0.534-2.6748v-2.1384l-0.6396-0.6408-0.3228-0.534v-0.75h0.001z"/>
|
|
||||||
<path d="m887.381,406.842-5.3484,2.5668-4.9188,1.4964-2.6748-0.4272,5.2392,1.9248,2.034-1.6032,3.2076-1.6056,2.4612-2.352,0,0z"/>
|
|
||||||
<path fill="#999" stroke-width="0.18252" d="m891.553,417.643,2.8872,0.8556,1.3896,0.5364,2.9952,0.4272-2.2464,1.3884,2.886,0.6408s-2.778,0.3228-3.2064,0.3228-1.926,0.9612-1.926,0.9612-0.3204,1.7148,0.642,1.6056c0.9648-0.108,2.352-0.3228,2.8872-0.3228s2.2464,0.3228,2.2464,0.3228l1.0704,0.8556-0.642,0.9648-4.4928,0.1056,0.6432,0.5364h3.636l-3.528,2.352,4.2756-0.1092,3.4224,1.392v0.8556l-3.3144,0.75-0.7488-1.2864-4.278,1.1772-0.8556,1.0704-1.6044-1.0704,1.2828-2.7792-0.1068-2.8884-0.642-2.2476-1.4964-3.3132-1.176-3.1032z"/>
|
|
||||||
</g>
|
|
||||||
<g fill="#e2d67e">
|
|
||||||
<path fill="#e4cb5e" stroke-width="0.22824" d="m868.889,274.852-3.4452,0.4164-2.436,0.2976-1.6044,0.9516-1.3068-0.774-0.7728,0.4752-2.9112-1.5444-3.3876,1.8432-1.6044,1.4244h-1.008l-0.774-1.0092-1.5444,1.0716-0.8916-0.8928-0.9504-0.534-6.4164,4.6344-2.3172-0.7728-1.0104,0.8916-0.4176,0.3564-0.2352,1.0092-0.9528-2.4972-0.8304,0.594-1.4256-0.4752-1.0104,1.4268-0.2376,3.7428,0.594,4.6932,1.5468,5.1696,1.4244,2.1384,1.188,0.2376,0.3576-1.4856,0.654,2.7924,0.9504,0.9492,0.2976,5.0508,3.8616,8.6748,0.3564,4.4556,0.1776,7.7232-1.4256,1.7256-1.8408,2.7924,0.0588,0.8292-1.9008,3.6252,0.1176,5.526,0.4176,0.4752,0.12,5.2872,1.4844,0.1188,1.188,1.3068,2.6148-0.2364v-1.6044l0.3564,1.8408,2.0784,2.7348,1.7832,1.4244,1.2456,0.06,0.654-0.9504-0.06-5.9412,0.4164,6.5352,1.3068-0.06,1.6656-1.4844,2.1984-0.2976,0.7128,0.06s0.594,0.3564,0.8916,0.8904c0.2964,0.534,1.3668,1.0116,1.3668,1.0116l0.7728,1.6044,0.9504,0.3564,0.4752-1.0116-0.6528-12.6552-0.654-10.3368-0.7128-13.1292-0.714-16.7568-0.1188-5.346-0.8316-0.7128,0.06-1.7232,2.0208-0.594,1.1868-0.3564-0.5352-1.6032-0.5928-5.3472v-2.0196l0.714-0.594,1.4256-0.0588,1.0104,1.188,1.9608,8.1384,1.0104,0.3564,3.564-0.06,8.0808,12.7752,2.8512,4.278,3.9216,7.3068,5.1108,7.308,1.6044,2.1384,1.0692,0.1212,0.3564-7.7844,2.2596-1.9608-1.902-13.4268-1.5444-0.2964-2.1384-1.9608-1.188,0.1776-1.188,1.9608-1.4844-1.6632-0.18-1.902-1.3668-0.8892h-1.008l-1.3092-1.782-0.7116-0.18-0.8316,0.7728-0.1788-6.0588-1.3068-2.8512-0.2376-1.7232-2.436-3.4464-2.5536-0.594s-1.128-2.556-1.128-2.9124-0.4776-1.6044-0.4776-1.6044l-1.7904-1.8456z"/>
|
|
||||||
<path fill="#dcc56a" d="m871.027,356.128-1.722-2.1972-0.594-2.3172-0.2376-4.9908-0.534-4.7544-0.9516-7.3668-1.5444-9.09-1.2468-7.3668-0.4764-4.3368-1.0092-5.1108-0.4164-3.5052-0.4164-2.9112-0.3564-4.158,1.188,3.7428,1.962,8.7336,2.196,6.06,0.8916,4.0992v2.3172l1.5456,3.3252,1.0104,4.2204,2.0784,8.9112,2.1984,7.3092,1.128,5.286,0.1776,2.0208-2.3172,0.774-1.128,0.5328-1.4256,0.7728z"/>
|
|
||||||
<path fill="#e2cc75" d="m882.613,354.348,1.2492-6.0012,1.4856-4.5744,0.6528-3.09,0.4752-2.4948-0.12-3.7428-1.0092-2.1984-4.6332-9.3276-2.7936-5.6436-1.1292-2.9124-2.0784-3.6252-2.7924-5.8224-2.496-4.3356-2.0784-3.5652-1.9608-2.616-0.5928,0.5364,1.7808,6.654,1.4844,5.7024,1.4268,6.2976,2.376,8.2584,1.3668,5.7048,1.3668,3.5052,1.3068,4.9308,3.624,11.7648,0.714,3.0888,1.7832,3.5664,0.5916-0.06,0,0z"/>
|
|
||||||
<path fill="#ddd690" d="m863.999,357.562-1.8732,1.8708,0.1704,0.6816h2.2116l0.6828-1.5324-1.1916-1.02z"/>
|
|
||||||
<path fill="#ddd690" d="m861.785,355.008,0.3408,2.0424,1.5312-0.1704,0.8496-1.53-0.1692-1.1916-1.5312,0.3408-1.0212,0.5088z"/>
|
|
||||||
<path fill="#ddd690" d="m865.528,354.158,0.5112,1.3608h2.8932v-1.02l-1.1904-0.5112-2.214,0.1704z"/>
|
|
||||||
<path fill="#ddd690" d="m865.19,351.607,0.168,1.53h2.0436l1.02-1.3632-1.1904-1.02-2.0412,0.8532z"/>
|
|
||||||
<path fill="#ddd690" d="m861.104,352.116-0.3408,1.0224,1.0224,0.51,2.214-0.51v-0.852l-2.8956-0.1704z"/>
|
|
||||||
<path fill="#ddd690" d="m861.104,349.564v1.1916l2.2128,0.1704,0.6816-1.0212-0.852-0.6804-2.0424,0.3396z"/>
|
|
||||||
<path fill="#ddd690" d="m865.528,348.544-0.3372,1.02,2.04,0.5112,1.02-0.8508-1.5288-1.0224-1.194,0.342,0,0z"/>
|
|
||||||
<path fill="#ddd690" d="m861.276,345.821-0.3408,1.5312,1.3608,0.1704,1.1916-0.8508,0.1704-1.1892-1.362-0.1728-1.02,0.5112,0,0z"/>
|
|
||||||
<path fill="#ddd690" d="m865.019,345.14v1.53l2.2128,0.5088v-2.2116l-1.0212-0.3384-1.1916,0.5112z"/>
|
|
||||||
<path fill="#ddd690" d="m862.976,342.587h-2.0412l-0.1728,2.3808,2.3832-1.02-0.1692-1.3608z"/>
|
|
||||||
<path fill="#ddd690" d="m864.677,341.906-0.8496,1.7016h2.382l1.0212-2.2104-1.362-0.3408-1.1916,0.8496z"/>
|
|
||||||
<path fill="#ddd690" d="m864.167,339.014,0.1728,1.362,2.2128-0.3408-0.8532-1.7004-1.5324,0.6792,0,0z"/>
|
|
||||||
<path fill="#ddd690" d="m861.955,339.526-1.53-0.3408,0.1716,1.8732,2.2116-0.3396-0.8532-1.1928,0,0z"/>
|
|
||||||
<path fill="#ddd690" d="m860.425,336.462-0.1704,1.7028h2.7228l-0.5112-1.7028h-2.0412z"/>
|
|
||||||
<path fill="#ddd690" d="m863.658,335.611v2.0424h2.5524l-0.5124-2.0424h-2.04z"/>
|
|
||||||
<path fill="#ddd690" d="m862.296,334.08-1.7004,2.04-0.6816-1.7004,1.1904-2.0424,1.1916,1.7028,0,0z"/>
|
|
||||||
<path fill="#ddd690" d="m863.827,332.548-0.3396,1.7028h2.2104v-1.7028l-0.8484-0.51-1.0224,0.51z"/>
|
|
||||||
<path fill="#ddd690" d="m861.104,330.508h-1.1904l-0.1704,1.362h2.0412l-0.6804-1.362z"/>
|
|
||||||
<path d="m863.488,329.996-0.3408,1.5312h1.7028v-1.5312h-1.362z"/>
|
|
||||||
<path d="m862.976,326.933-0.3396,1.53h2.3808l0.1728-1.3596-2.214-0.1704z"/>
|
|
||||||
<path d="m860.255,327.614-0.3408,2.2116,2.0412-0.8484v-1.1916l-1.7004-0.1716z"/>
|
|
||||||
<path d="m860.084,324.552-0.6804,1.3608,1.0212,0.5112,0.852-1.1916-0.3408-1.02-0.852,0.3396,0,0z"/>
|
|
||||||
<path d="m862.894,323.405-0.5376,1.128,0.882,1.5204,1.2264-0.2952,0.0516-1.7172-1.3764-0.6876-0.246,0.0516,0,0z"/>
|
|
||||||
<path d="m860,321.684-0.444,1.2276,0.8844,0.7848s0.7344-0.2928,0.7344-0.5412c0-0.2436,0.246-1.0296,0.246-1.0296l-0.9804-0.5892-0.4404,0.1476z"/>
|
|
||||||
<path d="m862.356,321.047-0.2952,1.3752,0.6876,0.4416,1.2264,0.0984s0.0492-0.9336,0.0492-1.2768c0-0.342-0.8844-0.7356-0.8844-0.7356l-0.7836,0.0972z"/>
|
|
||||||
<path d="m859.754,319.181-0.0996,1.374,1.032,0.246s0.54-0.5376,0.54-0.7344c0-0.1956-0.492-1.08-0.492-1.08l-0.9804,0.1944z"/>
|
|
||||||
<path d="m862.061,318.788-0.1968,1.1292s0.3936,0.5388,0.8844,0.5388c0.4896,0,0.6864-0.4896,0.6864-0.6852,0-0.198-0.1968-1.032-0.1968-1.032l-1.1772,0.0492z"/>
|
|
||||||
<path d="m859.655,317.267-0.342,1.1304,0.9804,0.4404,0.7368-0.9816-0.786-0.5376-0.5892-0.0516z"/>
|
|
||||||
<path d="m861.962,316.58-0.1464,1.0296s0.6852,0.4908,0.9324,0.3432c0.246-0.1464,0.5388-0.7836,0.5388-0.7836l-0.8844-0.5892h-0.4404z"/>
|
|
||||||
<path d="m858.968,314.371-0.2448,1.2756s0.7344,0.6876,0.9312,0.5904c0.198-0.0996,1.2276-0.3936,1.2276-0.3936l-0.54-1.2756s-0.6372-0.1476-0.8328-0.1476c-0.1968,0-0.5904,0-0.5412-0.0492z"/>
|
|
||||||
<path d="m861.521,313.733-0.2928,1.2264,1.6668,0.2952s0.246-1.3752-0.096-1.3752c-0.3468,0.001-1.1808-0.0972-1.278-0.1464z"/>
|
|
||||||
<path d="m859.116,312.065-0.294,0.7368,0.8328,0.6372,0.6876-0.3912-0.4428-0.9336-0.7836-0.0492z"/>
|
|
||||||
<path d="m861.618,311.574-0.636,0.9828,1.0296,0.4392,0.882-0.6852-1.2756-0.7368z"/>
|
|
||||||
<path d="m859.165,309.415-0.4416,0.7368,0.4908,0.7836,0.786-0.6384-0.8352-0.882z"/>
|
|
||||||
<path d="m860.932,308.924-0.3924,0.54,0.5892,0.7836,0.9804-0.5388,0.0984-0.4416-0.4416-0.54-0.834,0.1968z"/>
|
|
||||||
<path d="m858.919,307.402-0.4416,1.0296,0.9804,0.54,0.5424-0.6852-0.3456-0.786-0.7356-0.0984z"/>
|
|
||||||
<path d="m860.784,306.42-0.54,0.6888,0.7368,0.7356,0.9312-0.5412-0.636-0.7848-0.492-0.0984z"/>
|
|
||||||
<path d="m858.919,305.683h-0.3924v0.834l1.128-0.0984-0.1968-0.834-0.5388,0.0984z"/>
|
|
||||||
<path d="m860.441,304.702-0.0492,0.9324,1.0296-0.1476-0.0492-0.8328-0.9312,0.048z"/>
|
|
||||||
<path d="m858.674,303.967-0.342,0.4896,0.5868,0.786,0.5904-0.5412s0.1956-0.7344,0-0.7344h-0.8352z"/>
|
|
||||||
<path d="m858.772,302.347-0.4392,0.3924,0.5376,0.5388,0.6864-0.342-0.7848-0.5892,0,0z"/>
|
|
||||||
<path d="m858.919,301.121-0.54,0.7836h0.9336l-0.3936-0.7836z"/>
|
|
||||||
<path d="m860.146,301.561,0.0984,0.786h0.786l-0.8844-0.786z"/>
|
|
||||||
<path d="m860.195,302.838s-0.1944,1.0296,0,1.0296c0.1968,0,0.7368-0.1476,0.7368-0.1476l-0.7368-0.882z"/>
|
|
||||||
<path fill="#d3c55f" d="m886.307,326.544-1.0776,1.4724,0.0972,1.5228,1.4244,1.3248,1.3248-1.866-1.7688-2.454z"/>
|
|
||||||
<path fill="#d3c75f" d="m888.222,324.432-1.3248,1.9164,1.2756,2.0124,1.3248-0.8328s0.1968-1.6716-0.0492-1.9668c-0.246-0.2928-1.2756-1.1784-1.2264-1.1292z"/>
|
|
||||||
<path d="m885.767,321.733s-0.588,0.8832-0.588,1.0812c0,0.1956,0.3444,1.6176,0.3444,1.6176l0.834,1.0812s0.93-0.2952,1.0284-0.5904c0.0984-0.2916,0.4428-1.4232,0.4428-1.4232l-1.128-1.4736-0.9336-0.2928z"/>
|
|
||||||
<path fill="#d3c95f" d="m883.706,323.844-0.246,0.4896s-0.1452,1.1796,0.1476,1.3752c0.294,0.1968,1.1772,1.1304,1.1772,1.1304s0.7836-0.4908,0.7836-0.7368-0.588-1.7688-0.588-1.7688l-0.6852-0.6852-0.5892,0.1956z"/>
|
|
||||||
<path d="m881.693,320.458-0.3912,0.9312,0.4896,1.2768,0.9336,0.9324s1.0296-0.1944,1.0296-0.3936v-1.374l-0.6396-1.0788-1.0788-0.4896-0.3432,0.1956z"/>
|
|
||||||
<path d="m883.902,319.574-0.2448,0.7356s0.0984,1.032,0.294,1.128c0.1968,0.0984,0.9816,0.492,0.9816,0.492l0.6852-1.1292-0.6852-1.4232-1.0308,0.1968z"/>
|
|
||||||
<path d="m882.824,317.22-0.492,1.0788,0.2952,0.7836,0.6876,0.3444s0.7836-0.3924,0.7836-0.5892v-1.0296l-0.882-0.5412-0.3924-0.0468z"/>
|
|
||||||
<path d="m880.565,318.004-0.6372,0.834,0.246,1.032,1.0788,0.3432,0.7356-0.8844-0.5904-1.1772-0.8328-0.1476z"/>
|
|
||||||
<path d="m879.728,315.794-0.5376,0.4908v0.6384l0.834,0.6396,0.7836-0.3936-0.1956-0.8844-0.3912-0.5892-0.4932,0.0984z"/>
|
|
||||||
<path d="m881.89,315.157-0.3444,0.7848,0.4908,1.0308,0.7872-0.4416-0.15-0.8844-0.7836-0.4896,0,0z"/>
|
|
||||||
<path d="m880.417,313.048-0.1944,1.7664,1.2252-0.1968,0.2952-0.9312-0.4404-0.6888-0.8856,0.0504,0,0z"/>
|
|
||||||
<path d="m879.14,313.439c-0.1956,0.048-0.882,0.0984-0.882,0.0984l0.1968,1.7652,0.7836-0.096,0.2952-0.6384-0.0984-0.7848-0.2952-0.3444z"/>
|
|
||||||
<path d="m877.669,311.672-0.588,0.7368,0.588,0.9804,0.54-0.0984,0.342-0.7344-0.882-0.8844,0,0z"/>
|
|
||||||
<path d="m879.581,311.179-0.4896,0.5412,0.3936,0.5892,0.4908,0.0492,0.4896-0.5904-0.4404-0.5376-0.444-0.0516,0,0z"/>
|
|
||||||
<path d="m876.442,309.906-0.3444,0.9312,0.9336,0.246,0.2436-0.5892-0.2928-0.5412-0.54-0.0468,0,0z"/>
|
|
||||||
<path d="m878.062,309.415-0.0972,1.0788,1.0296-0.0984-0.0984-0.882-0.834-0.0984,0,0z"/>
|
|
||||||
<path d="m875.264,308.188,0.0492,0.9312h1.0296s0.3444-1.0788-0.0984-1.0296c-0.4416,0.0492-0.882,0.1452-0.9804,0.0984z"/>
|
|
||||||
<path d="m877.228,307.745v0.9324l1.0788-0.1476-0.2448-0.8328-0.834,0.048z"/>
|
|
||||||
<path d="m875.803,306.764h-1.0788l0.1476,0.9324,0.9804-0.0984-0.0492-0.834z"/>
|
|
||||||
<path d="m876.491,306.125-0.1476,0.8844,1.1304-0.0492v-0.8352h-0.9828z"/>
|
|
||||||
<path d="m875.412,304.702-0.0492,1.0308s1.2264,0.1956,1.2264,0c0-0.1968-0.246-0.8832-0.246-0.8832l-0.9312-0.1476z"/>
|
|
||||||
<path d="m874.724,304.8h-0.9816l0.0996,1.128h1.1772l0.1464-0.7836-0.4416-0.3444z"/>
|
|
||||||
<path d="m872.418,301.463-0.492,0.4908,1.5228,2.4048h0.9312l-0.882-1.2264s0.1464-0.588-0.0984-0.6852c-0.2436-0.0984-0.4404-0.0984-0.4404-0.0984l-0.5412-0.8856z"/>
|
|
||||||
<path d="m872.612,300.53-0.342,0.4416,1.8168,1.2264v1.0296l0.834,0.786,0.6852,0.1944-0.2436-0.8328-0.3432-0.9312-0.6888-0.5412-0.4884-0.882s-0.246-0.0492-0.4428-0.0984c-0.1944-0.0492-0.3912-0.3444-0.3912-0.3444l-0.396-0.048z"/>
|
|
||||||
</g>
|
|
||||||
<g fill="none">
|
|
||||||
<path fill="#000" d="m851.578,283.375-0.1728,7.9956,0.5112,2.5524v4.4256l0.1704,6.8064v4.5936l-3.9144-4.7664,4.0836,5.106,0.6804,4.9332,1.0224,1.8732-0.6804,2.5524,0.1704,4.2528v12.0804l-3.9144-9.528,0.3408,19.7376,0.3408-11.3988,1.362-2.0436,2.2116,5.6172,0.3396,2.5524-0.5112-9.5304"/>
|
|
||||||
<path d="m835.582,282.694-0.6804,5.106,1.362,3.5712,0.1716,4.9356-0.1716-5.4444-1.362-2.7228,0.6804-5.4456z"/>
|
|
||||||
<path d="m840.517,285.757v6.4656l1.1904,1.5312-0.3384,6.8064,1.02,2.0412v11.2296"/>
|
|
||||||
<path d="m847.492,278.101-1.3608,2.5512,0.5112,4.5948,0.3396,3.2328-0.51,5.1024"/>
|
|
||||||
<path d="m878.462,290.52-0.1728,7.8276,0.8508,4.2528,0.6816,4.5936"/>
|
|
||||||
<path d="m885.776,301.921,1.5312,17.016"/>
|
|
||||||
<path d="m842.047,327.275,0.3408,9.8688,0.6804,4.2552,0.1704,4.5924"/>
|
|
||||||
</g>
|
|
||||||
<g fill="#d38d5f">
|
|
||||||
<path d="m893.264,345.481v-1.7028l7.4868-1.7028-1.1916,0.852,0.1704,5.1048"/>
|
|
||||||
<path d="m913.682,341.226v-2.2128l7.4868-1.3608-1.7028,0.3408,0.3408,5.274"/>
|
|
||||||
<path d="m897.518,357.731v-1.7028l6.2964-1.1892-0.1716,6.2952"/>
|
|
||||||
<path d="m912.491,355.35v-2.724l6.8052-1.1904,0.3408,5.9532"/>
|
|
||||||
<path d="m890.372,333.059v4.254l-1.5312,0.3408v-2.0424l1.5312-2.5524z"/>
|
|
||||||
<path d="m893.946,332.377,0.1692,4.2552h-1.1916l-0.3396-3.744,1.362-0.5112z"/>
|
|
||||||
<path d="m896.665,331.528-1.1892,0.6792v3.4032l1.7028-0.3408-0.5136-3.7416z"/>
|
|
||||||
<path d="m899.9,330.337-1.1916,1.0212v3.0624l1.8708-0.1704-0.6792-3.9132z"/>
|
|
||||||
<path d="m903.643,329.485-1.7028,0.6804v3.4032l1.8744-0.3396-0.1716-3.744z"/>
|
|
||||||
<path d="m907.217,328.464-1.5312,0.1716v4.254l1.8732-0.3408-0.342-4.0848z"/>
|
|
||||||
<path d="m911.81,327.614-1.7004,0.6792,0.1704,2.892,1.7004-0.5088-0.1704-3.0624z"/>
|
|
||||||
<path d="m916.064,326.424-1.7004,0.8508v2.892h1.53l0.1704-3.7428z"/>
|
|
||||||
<path d="m919.468,325.402-1.362,0.6804v3.2328h1.7028l-0.3408-3.9132z"/>
|
|
||||||
<path d="m923.21,325.063-1.362,0.8496v2.5512h1.8744l-0.5124-3.4008z"/>
|
|
||||||
<path d="m927.295,323.7-1.5324,0.6816,0.1716,2.5512,1.5312-0.3396-0.1704-2.8932,0,0z"/>
|
|
||||||
<path d="m931.718,322.679-1.7016,0.8508v2.7228l2.0436-0.1704-0.342-3.4032z"/>
|
|
||||||
</g>
|
|
||||||
<g stroke-width="0.91284">
|
|
||||||
<path fill="#fffcfc" d="m891.564,368.79,26.3712-5.9544"/>
|
|
||||||
<path fill="#c87137" d="m885.096,352.285,2.7252,0.3408,44.9184-10.2096"/>
|
|
||||||
<path fill="#c87137" stroke-width="0.86724" d="m887.65,340.717,6.9756-1.0236,38.7948-10.2084"/>
|
|
||||||
<path fill="none" stroke-width="1.1868" d="m935.122,327.955,6.6348-1.1916"/>
|
|
||||||
<path fill="#fffcfc" stroke-width="1.32372" d="m935.122,341.906,14.6328-3.912"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
<path fill="none" stroke="#000" stroke-width="8.2159" d="m767.32,145.154v253.639c3.0024,36.3156,78.6864,59.178,131.454,97.7484,69.2124-46.422,136.34-55.812,139.039-107.858l0.8424-243.529h-271.33z"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 55 KiB |
@@ -1,59 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1440" height="720">
|
|
||||||
<rect width="1440" height="720" fill="#f7e017"/>
|
|
||||||
<path d="M0,50V370L1440,520V350z" fill="#fff"/>
|
|
||||||
<path d="M0,220V370L1440,670V520z" fill="#000"/>
|
|
||||||
<g fill="#cf1126">
|
|
||||||
<path d="M695.74,569.72c-19.36-2.57-37.11-8.73-49.44-17.17-2.39-1.64-4.64-2.98-4.99-2.98-0.36,0-0.65,1.82-0.65,4.07,0,6.37-2.56,9.58-9,11.25-6.16,1.6-15.56-1.63-23.18-7.95-7.89-6.55-17-11.55-24.71-13.55-6.35-1.66-14.78-1.39-20.87,0.65-2.83,0.95-6.05,2.29-7.17,2.98-1.11,0.69-2.36,1.25-2.76,1.25-1.08,0-0.93-6.85,0.2-9.04,1.49-2.87,5.16-5.7,9.44-7.26,2.16-0.79,3.93-1.8,3.93-2.25s-0.73-2.1-1.62-3.65c-2.9-5.08-1.71-10,3.35-13.87,5.18-3.96,13.95-4.64,21.7-1.69,1.95,0.74,3.77,1.35,4.04,1.35,1.02,0,0.4-1.43-2.41-5.52-3.24-4.74-3.88-7.08-3.48-12.72,0.52-7.14,6.34-12.98,13.47-13.5,5.82-0.42,9.44,1.54,18.03,9.72,25.65,24.46,53.54,37.94,86.07,41.59,8.21,0.92,24.73,0.43,34.42-1.03,29.27-4.41,58.76-19.13,81.79-40.82,6.38-6.01,9.45-7.6,14.68-7.62,4.55-0.02,7.74,1.45,11,5.05,2.97,3.3,3.98,6.43,3.66,11.44-0.21,3.21-0.73,4.79-2.64,7.9-2.82,4.59-2.34,5.01,3.24,2.85,7.54-2.94,16.83-1.58,21.84,3.18,4.41,4.19,4.83,8.38,1.4,14.06-1.25,2.08-2.27,4.03-2.27,4.34,0,0.57,0.95,0.84,5.53,1.58,5.99,0.96,9.42,5.41,9.42,12.21,0,2.04-0.25,3.7-0.56,3.7-0.3,0-2.57-0.83-5.04-1.85-6.98-2.88-10.95-3.62-19.11-3.57-6.21,0.04-8.35,0.33-12.68,1.74-6.63,2.17-13.72,6.35-19.5,11.5-6.37,5.68-10.38,7.47-16.58,7.42-5.76-0.06-9.7-1.73-11.78-5.02-1.11-1.76-1.27-2.83-1-6.81,0.18-2.59,0.14-4.71-0.07-4.71-0.22,0-2.46,1.42-4.99,3.17-6.64,4.56-10.87,6.82-18.47,9.83-23.18,9.17-56.63,13.14-82.24,9.75z"/>
|
|
||||||
<path d="m706.34,525.17c-38.58-3.7033-75.494-23.798-97.939-55.657-24.37-33.235-32.05-77.117-24.611-117.24,3.9535-18.267,11.929-36.546,25.544-49.554-10.85,23.003-14.516,49.369-8.7299,74.29,8.989,49.753,51.036,91.87,101.34,99.156,19.9,5.761,40.487-0.32356,59.496-6.4934,41.935-14.779,73.879-54.583,77.777-99.079,3.3363-24.078-0.36023-49.114-11.207-70.916,6.1825,3.2692,13.987,16.087,18.589,24.707,16.003,31.003,16.734,68.155,7.3126,101.24-12.78,42.097-44.965,78.978-87.511,92.382-19.308,6.3081-39.842,8.2315-60.058,7.1679z"/>
|
|
||||||
<g id="hand">
|
|
||||||
<path d="m512.02,469.9c-2.5284-0.39577-5.3161,2.092-4.3628,4.6971,1.823,2.633,4.9641,3.9201,7.798,5.1795,6.7915,2.7224,14.179,3.7823,21.471,3.6055-2.5133-0.006,0.86258,0.026,1.8015-0.00068,5.774,0.0171,11.516-1.0234,16.944-2.98,3.018-1.0614,6.8641-2.0244,8.1009-5.3629,1.2069-2.1744-0.98008-4.3462-3.1859-3.9108-3.0714,0.67078-5.9433,2.064-8.9896,2.8576-6.5725,1.8534-13.494,2.5704-20.303,2.0116-4.9792-0.60782-9.8039-2.2005-14.41-4.1433-1.5972-0.70457-3.0962-1.7322-4.8648-1.9536z"/>
|
|
||||||
<path d="m514.83,459.52c-2.5558-0.38057-4.7577,2.5607-3.6917,4.9076,1.965,2.8484,5.2671,4.3651,8.356,5.6992,5.3706,2.1486,11.204,3.0471,16.975,2.8752-2.1917-0.006,0.75258,0.026,1.5651-0.00068,4.9069,0.006,9.7882-0.96448,14.325-2.8311,2.7732-1.0787,6.1693-2.1246,7.3241-5.177,0.89621-1.6768,0.21293-4.1165-1.8997-4.2476-1.9288-0.0953-3.5928,1.1322-5.3782,1.6831-6.4849,2.6815-13.622,3.8183-20.614,3.2146-4.3567-0.56071-8.519-2.1681-12.47-4.0312-1.4847-0.71699-2.8205-1.8356-4.4909-2.092z"/>
|
|
||||||
<path d="m518.28,449.57c-2.1908-0.26295-3.6978,2.2088-3.3288,4.1816,0.32687,1.7334,1.8824,2.8984,3.1689,3.9607,5.3292,3.8973,12.083,5.5573,18.626,5.3398-2.5415-0.009,3.4093,0.0418,1.5947-0.007,4.1442-0.0169,8.2378-1.0309,11.966-2.825,2.4889-1.0824,5.4115-2.3356,6.2502-5.1771,0.40122-1.3236,0.65233-3.227-0.84101-3.97-1.5638-0.87412-3.1169,0.47031-4.5388,1.0156-4.7891,2.4374-10.125,3.7932-15.507,3.7682-4.6507,0.15705-9.0334-1.799-13.068-3.9072-1.464-0.74578-2.6708-2.0422-4.3214-2.3798z"/>
|
|
||||||
<path d="m481.53,302.7c-3.2575,3.2606-0.7701,9.2712-0.94626,13.543,1.6879,13.158,3.785,26.484,8.697,38.87,6.015,12.102,18.791,18.573,26.533,29.268,2.7675,5.155,1.7849,11.355,2.3681,16.994,0.45808,15.366,0.31593,30.743,0.047,46.111,6.9387,3.4817,14.474,6.9863,22.456,5.6471,4.7306-1.13,13.512-1.8326,14.496-6.5436-0.38235-26.5-0.6304-53.01-0.98289-79.506-2.6903-8.1185-10.951-12.32-17.129-17.514-5.0992-5.0259-9.844-10.435-14.188-16.099-2.6218-4.4175-12.868-6.0092-9.1612,1.6764,2.1735,6.6538,7.7204,11.61,9.1091,18.602,0.30342,3.8316,4.8776,10.879,0.97314,13.114-2.4837-4.2216-6.0823-7.815-10.682-9.9574-4.4324-3.3044-11.759-4.68-13.359-10.517-1.1745-8.2799-5.4152-15.782-10.887-21.986,1.4102-7.4368,0.005-16.737-6.4234-21.49l-0.92101-0.21254-0.00013-0.00002z"/>
|
|
||||||
<path d="m491.44,304.19c-2.9629,0.47847-2.8621,4.2538-1.491,6.239,1.4583,4.2881,1.8554,8.9449,1.0659,13.409,5.2675,6.1665,9.3467,13.543,10.576,21.64,0.0299,3.0437,3.2327,4.0512,5.309,5.5551,4.8712,3.1016,10.348,5.3512,14.686,9.2326,0.91286,0.97602,1.6017,2.0271,0.9566,0.035-0.67695-2.5463-1.0251-5.3576-3.0207-7.2849-2.7345-2.939-6.15-5.5628-10.133-6.4593-0.33199-4.114-2.2913-7.8931-4.1017-11.532-2.0066-3.4792-4.1026-7.2065-7.5407-9.4626,0.13834-6.098,0.0385-12.495-2.5857-18.122-0.7696-1.4455-1.9032-3.163-3.7197-3.2499z"/>
|
|
||||||
<path d="m499.73,306.62c-2.0642,0.61274-1.6695,3.1587-1.0158,4.7165,0.98881,4.3156,1.1436,8.7732,1.063,13.184,3.7911,3.0003,6.1624,7.3501,8.3216,11.586,1.3534,2.8304,2.6366,5.7518,3.1556,8.8651,3.0757,1.0188,5.7672,2.946,8.171,5.0773-0.95256-2.8824-3.0766-5.1129-4.5042-7.7441-1.5516-2.7372-3.0336-5.5913-3.6904-8.6923-2.9581-3.1576-4.5872-7.6305-3.9408-11.952,0.13267-4.7762-1.4093-9.7114-4.6059-13.311-0.8049-0.79276-1.7658-1.6692-2.954-1.7296z"/>
|
|
||||||
<path d="m509.16,307.97c-1.1224,0.1984-1.8054,1.2662-2.4064,2.1373-0.23225,0.87316,0.83776,1.8114,1.0081,2.7596,1.3127,3.2919,1.8084,6.903,1.4162,10.426-0.0864,2.5018,0.80881,4.9458,2.0839,7.0649,0.36793-1.5628,1.8164-2.6864,3.3865-2.8406,0.57114-0.10043,1.4107,0.18835,1.0779-0.68251-0.39881-4.7853-1.128-9.5978-2.8007-14.119-0.64833-1.615-1.3844-3.3147-2.7835-4.4203-0.28367-0.20186-0.62304-0.3745-0.98205-0.32512z"/>
|
|
||||||
</g>
|
|
||||||
<use xlink:href="#hand" transform="matrix(-1,0,0,1,1440,0)"/>
|
|
||||||
<path d="m715.67,475.98c-13.493-1.2846-25.667-11.12-29.829-24,0.22423-2.2187,2.9867,1.2413,4.2917,1.4741,2.4503,1.3606,5.0998,2.4802,7.9211,2.6539,3.5571,1.529,5.7565,5.0346,9.1516,6.8629,1.5764,1.2278,7.1544,3.641,6.1182-0.26421-1.307-2.04-2.2057-4.6242-1.0806-6.9613,1.8918-4.1503,4.8018-7.7638,7.7306-11.226,2.1527-0.71996,3.5939,3.5262,5.1338,4.9568,2.1308,3.2786,4.7004,7.2793,3.447,11.352-1.2198,1.5087-2.0216,6.0472,1.2409,4.5219,4.0213-1.7692,7.3158-4.7418,10.651-7.5175,2.9183-2.0384,6.6539-2.1824,9.7125-3.9699,1.4177-0.35921,4.3706-3.1946,4.9861-1.6225-1.6759,4.4876-4.4822,8.5068-7.4822,12.211-4.8588,5.5503-11.432,9.7247-18.786,10.902-4.3459,0.79562-8.806,0.96352-13.207,0.62747z"/>
|
|
||||||
<path d="m731.53,460.22c0.29719-2.7079-0.31965-5.4735-1.703-7.9349-2.123-4.3258-5.1213-8.1663-8.0456-11.961-2.7573-1.615-4.2871,3.6582-6.1205,5.1714-2.8566,4.2769-6.4434,8.6562-6.617,14.036-1.6071,2.5012-4.6044-2.0411-5.8962-3.5357-2.4673-3.4911-4.3356-7.6206-4.0297-11.987-0.29227-7.0356,1.0571-14.041,3.6204-20.581,1.9348-5.5826,5.0755-11.006,4.7564-17.105,0.22416-4.5905-0.70745-9.6582-4.4262-12.745-3.538-2.7758,2.2916-3.3674,4.1432-1.928,3.1686,0.21257,4.8825,5.4481,7.7771,4.152,1.1532-2.7346,1.3824-5.9968,3.7595-8.1295,2.3338-3.1959,4.773,1.3562,5.5715,3.488,1.6467,1.8723-0.0931,6.5066,2.5817,6.6282,3.2062-2.2473,5.4923-6.0227,9.5918-6.8447,1.6623-0.94835,4.5034-0.12664,2.3114,1.7848-3.0339,2.8443-5.6262,6.4002-6.1786,10.631-0.92788,5.3074,0.39912,10.69,2.7124,15.47,4.4468,9.3901,7.8854,19.996,5.6361,30.444-1.0432,4.644-4.1982,8.6454-8.0313,11.341-0.4847,0.29274-1.2499,0.27192-1.4134-0.39473z"/>
|
|
||||||
<path d="m726.73,389.63c-1.4562-2.6239-3.2238-5.2103-5.673-6.9945-2.3812-0.005-3.8508,2.9985-5.468,4.5721-1.134,2.11-2.5118,5.6386-5.3053,2.8796-4.4442-2.5928-5.2306-8.2748-5.202-12.958-0.27951-7.5908,2.777-14.674,5.4923-21.587,1.7275-4.3277,1.3019-9.1991,0.24806-13.634-1.3266-5.0918-5.4137-8.6231-8.5601-12.595,0.214-1.5365,4.235-0.69686,5.7483-0.40478,3.3588,0.85136,5.3664,3.8249,7.8703,5.9259,1.7818-0.53937,1.0545-4.1395,1.8839-5.833,0.0613-2.3821,3.233-5.5228,4.5407-2.1121,1.9588,2.1674-0.0626,6.4643,2.4686,7.8144,2.4113-0.89283,3.6009-3.5283,5.8666-4.72,2.2295-1.5204,5.3776-1.69,7.7781-0.49647,0.84484,2.2126-2.6402,4.0548-3.6496,5.9771-4.052,5.0056-5.4756,11.91-3.7401,18.112,1.3759,4.8649,3.8133,9.4058,4.6546,14.434,1.0126,5.6525,0.97903,11.589-0.48403,17.159-0.87455,3.3816-3.8021,5.6402-6.8258,7.0448-0.74602-0.69428-1.1395-1.7142-1.6436-2.583z"/>
|
|
||||||
<path d="M711.61,326.89c-3.36-2.46-4.47-4.81-4.47-9.46,0-2.38,0.44-3.67,2.01-5.83,2.31-3.2,1.89-4.21-1.38-3.27-5.26,1.51-7.77,0.13-7.95-4.35-0.08-2.19,0.38-3.12,3.33-6.66,2.36-2.84,3.22-4.33,2.75-4.8-0.46-0.46-3.25,1.96-8.98,7.79-4.57,4.65-9.71,9.4-11.42,10.56-9.84,6.64-19.24,7.67-23.53,2.56-2.2-2.61-2.08-4.08,0.46-5.66,1.17-0.72,3.14-2.38,4.39-3.69,2.95-3.07,11.74-9.41,16.1-11.61,3.54-1.79,4.38-3,2.08-3-2.98,0-12.54,6.22-19.79,12.88-2.13,1.97-5.2,4.16-6.81,4.87-3.62,1.6-10.73,2.19-13.89,1.15-2.23-0.74-6.3-4.58-6.3-5.95,0-0.36,0.93-1.16,2.06-1.77,1.13-0.6,3.16-2.07,4.5-3.24,5.8-5.09,16.79-10.33,25.51-12.16,2.77-0.58,1.75-1.98-1.34-1.84-5.99,0.26-17.88,5.83-24.98,11.69-8.32,6.86-20.87,6.21-24.91-1.29-0.7-1.29-1.11-2.5-0.91-2.69,0.19-0.19,2.66-0.93,5.49-1.65,3.06-0.77,9.12-3.28,14.91-6.17,9.11-4.54,11.81-5.51,18.08-6.52,2.82-0.45,2.97-1.83,0.23-2.15-3.53-0.42-8.94,1.35-18.5,6.05-12.28,6.04-15.72,7.08-22.19,6.7-5.9-0.36-9.23-1.87-14.02-6.4-3.13-2.97-7.57-10.51-6.7-11.38,0.21-0.21,1.65,0,3.2,0.45,1.72,0.51,6.65,0.85,12.59,0.86,8.31,0.02,10.52-0.2,14.95-1.48,7.41-2.14,17.26-7.15,24-12.18,12.89-9.64,23.4-13.51,36.8-13.57,12.37-0.05,20.24,2.81,27.21,9.88,2.36,2.39,4.37,3.94,4.7,3.61,0.31-0.31,0.65-4.49,0.75-9.29,0,0,3.64-0.35,4.41,0.67,0,7.79,0.09,8.4,1.22,8.4,0.74,0,1.53-0.76,2.02-1.94,1.06-2.55,4.98-6.04,9.17-8.16,9.05-4.59,24.71-4.73,37.29-0.34,5.3,1.86,11.18,5.18,16.78,9.5,5.62,4.32,17.11,10.1,23.9,12.03,6.87,1.95,18.98,2.44,25.19,1.03,2.56-0.58,4.96-1.06,5.34-1.06,2.29,0-1.61,7.63-6.19,12.1-8.37,8.18-19.26,8.14-34.58-0.12-9.55-5.14-20.97-7.95-20.97-5.15,0,0.58,0.6,0.97,1.49,0.97,3.32,0,9.73,2.23,18.67,6.47,9.67,4.6,15.1,6.54,18.32,6.54,2.34,0,2.41,1.45,0.23,4.65-2.31,3.41-6.23,5.1-11.77,5.09-5.29-0.02-8.23-1.18-12.96-5.11-7.91-6.58-27.62-13.92-26.86-10,0.15,0.78,1.1,1.26,3.13,1.57,6.86,1.05,14.91,4.89,23.15,11.06,2.54,1.91,5.18,3.79,5.85,4.19,1.13,0.66,1.15,0.86,0.26,2.53-1.48,2.76-5.21,4.9-9.25,5.32-5.23,0.54-9.78-1.02-14.49-4.96-9.94-8.32-19.31-14.34-22.31-14.34-2.45,0-1.35,1.35,2.97,3.64,5.68,3.01,11.52,7.08,15.82,11.03,2.03,1.88,4.32,3.74,5.08,4.15,1.8,0.96,1.73,2.37-0.25,4.96-2.02,2.64-5.36,3.8-9.69,3.34-8.64-0.91-15.38-5.08-25.97-16.07-4.14-4.29-7.83-7.8-8.21-7.8-1.41,0-0.58,1.91,2.15,4.97,3.38,3.78,4.03,5.91,2.75,8.98-1.13,2.72-3.01,3.35-6.87,2.31-3.95-1.07-4.57-0.1-1.98,3.12,3.86,4.81,3.29,10.7-1.44,14.75-1.47,1.25-3.01,2.28-3.43,2.28-0.41,0-1.45-1.07-2.32-2.38-3.04-4.62-5.71-4.59-8.67,0.08-1.03,1.63-1.9,2.95-1.93,2.94-0.04-0.01-1.43-1.01-3.08-2.23z"/>
|
|
||||||
<path d="M726.67,233.03,721.54,237.09,716.94,233.62,716.94,261.36,726.67,261.48z"/>
|
|
||||||
<path d="M694.89,204.25c-1.02,13.11-4.35,22.26-8.98,32.35l11.1-10.29,7.72,9.17,8.36-9.33,8.53,7.88,8.2-8.2,8.52,9.97,7.4-8.2,12.54,9c-4.55-10.09-10.71-18.64-9.94-32.84-12.15,9.03-41.02,10.66-53.45,0.49z"/>
|
|
||||||
<path d="M716.95,197.56c-4.46,0.08-9.16,0.14-13.39,0.97-2.93,0.58-5.59,1.53-7.81,3.1,0.36,8.53,41,12.09,51.9,0.16-2.29-1.67-5.09-2.66-8.17-3.26-4.07-0.79-8.57-0.87-12.84-0.94,0,2.34,0.02,4.69,0.02,7.04l-9.71-0.03v-7.04z"/>
|
|
||||||
<path d="M724.9,153.97,718.59,154.02,718.59,203.4,725.03,203.43z"/>
|
|
||||||
<path d="M724.89,155.24,722.48,178.88,746.8,190.76,734.49,174.3,751.3,168.85z"/>
|
|
||||||
<path d="M722.18,149.08c-3.69,0-6.42,1.38-6.42,3.02s2.73,3.03,6.42,3.03,6.4-1.39,6.4-3.03-2.71-3.02-6.4-3.02z"/>
|
|
||||||
</g>
|
|
||||||
<g fill="#f7e017">
|
|
||||||
<path d="M711.05,563.82c3.99-1.32,6.26-3.74,7.89-8.4,0.81-2.32,1.36-4.73,1.22-5.36-0.34-1.49-2.06-1.41-3.96,0.17-1.3,1.09-1.46,1.64-1.09,3.86,0.95,5.6-1.04,6.99-11.64,8.13-1.05,0.11-4.09-0.07-6.77-0.4-5.04-0.63-6.84-0.13-5.01,1.39,0.55,0.46,1.95,1.08,3.11,1.37,2.83,0.73,13.22,0.24,16.25-0.76z"/>
|
|
||||||
<path d="M733.02,562.89c0.6-0.55,2.66-1.5,4.58-2.12,2.56-0.82,3.88-1.7,4.96-3.31,3.11-4.63,2.53-8.62-2.04-14-2.48-2.92-3.58-2.84-5.56,0.4-1.71,2.8-1.67,2.98,0.79,3.62,1.29,0.33,2.53,1.28,3.21,2.45,2.68,4.64,1.89,7.51-2.08,7.54-3.6,0.03-4.59,0.54-5.56,2.87-0.51,1.21-0.92,2.5-0.92,2.87,0,0.98,1.36,0.81,2.62-0.32z"/>
|
|
||||||
<path d="M725.81,557.65c0.68-1.84,0.92-5.15,0.84-11.9-0.05-5.14-0.25-9.5-0.45-9.7-0.6-0.6-3.56,1.31-3.95,2.54-0.2,0.64,0.13,2.12,0.73,3.28,0.92,1.79,1.04,3.46,0.76,10.47-0.36,8.86,0.22,10.35,2.07,5.31z"/>
|
|
||||||
<path d="M708.89,553.43c0.36-1.65,0.82-5.03,1.03-7.5s0.72-5.59,1.12-6.94c1.02-3.46-0.01-4.37-2.74-2.43l-2.03,1.45,0.42,4.97c0.39,4.48-0.32,12.83-1.35,16.07-0.28,0.86,0.12,0.64,1.25-0.68,0.91-1.06,1.95-3.29,2.3-4.94z"/>
|
|
||||||
<path d="m693.88,555.84c3.6514-3.0546,3.2318-8.2704,4.04-12.52-0.0835-2.8248,1.8038-6.2116,0.58588-8.6828-3.4119,0.62408-5.5147,3.8554-3.7684,7.0746,0.14546,3.7382,0.0129,7.8076-1.9089,11.113-1.5698,2.1618-6.5419,1.6234-6.3131-1.4406,1.2477-4.6065-4.2718-2.3648-6.4264-1.1571-1.6657,1.1597-5.1825,1.2451-3.9601-1.6569-0.80663-3.8664-5.7798-1.4479-8.4816-1.4651-2.552-0.0466-0.21096-5.1708-3.8736-4.271-6.8058-0.53675-14.319,0.0602-20.21-4.0515-3.4486-1.6577-2.937-5.8052-1.1415-8.4888,2.1442-3.6651,2.7555-8.249,6.1588-11.093,3.369-3.231-3.1775-1.8666-4.6517-0.77788-3.2819,1.7962-0.23302,6.4226-2.9192,8.9886-1.5695,2.6611-3.6362,6.3361-7.2698,5.8296-5.2398-0.9908-8.2605-5.8651-12.017-9.1317-3.218-0.64222-1.4087,5.2218,0.25284,6.4543,3.2878,2.4618,7.1291,4.2558,11.092,5.3187,3.9439-0.63072,4.0717,4.5336,7.4444,5.3437,6.1873,2.883,13.083,3.7467,19.833,4.0986,2.6511,0.22107,1.16,4.9425,4.6458,4.0096,1.948,0.50493,6.3478-0.72487,6.5682,1.5381-2.9527,3.5059,2.8341,3.4276,4.9757,2.7999,2.742-0.41905,6.2461-1.4668,6.9708,2.2924,2.289,2.413,6.4921,2.057,9.2796,0.67619,0.39162-0.22691,0.75972-0.49483,1.0937-0.80043z"/>
|
|
||||||
<path d="M634.12,525.57c1.11-1.41,2.77-4.26,3.69-6.34,0.91-2.09,2.28-4.46,3.03-5.27,1.76-1.9,0.78-3.07-2.06-2.44-1.5,0.33-2.11,0.88-2.36,2.18-0.85,4.24-2.39,8.58-3.76,10.6-2.48,3.66-2.54,3.81-1.52,3.81,0.53,0,1.87-1.14,2.98-2.54z"/>
|
|
||||||
<path d="M596.66,502.09c-2.8,0-2.92,1.77-0.19,2.72,1.32,0.46,2.44,1.57,3.34,3.38,2.66,5.29,4.22,6.23,11.28,6.84l4.53,0.41,0.22,2.75c0.11,1.52,0.47,2.78,0.82,2.78s2.1-0.76,3.87-1.66c3.32-1.68,6.47-5.6,6.47-8.03,0-1.59-2.65-3.31-5.06-3.31-1.07,0-3.11,0.86-4.72,2.03-5.04,3.65-10.43,2.91-13.38-1.84-2.42-3.92-4.95-6.07-7.18-6.07zm24.46,9.75c1.34,0,1.67,0.99,0.94,2.88-0.5,1.3-2.13,1.34-2.62,0.06-0.58-1.51,0.23-2.94,1.68-2.94z"/>
|
|
||||||
<path d="M810.84,505.69c-1.83,0.07-2.37,0.47-3.53,2.19-1.9,2.82-2.09,8.93-0.34,11.09,1.09,1.34,1.25,1.37,3.56,0.41,3.22-1.35,3.76-1.3,3.75,0.43-0.02,4.42-6.36,12.94-13,17.47-1.79,1.22-3.39,2.58-3.56,3.03-0.48,1.26,1.98,0.98,5-0.56,4.12-2.1,9.53-7.62,11.75-11.97,1.76-3.47,2.01-4.65,2.22-10.72,0.19-5.59,0.04-7.23-0.91-9.09-1.06-2.09-1.4-2.28-4.06-2.28-0.32,0-0.61-0.01-0.88,0zm0.22,3.9c1.38,0,1.62,0.31,1.78,2.29,0.14,1.64-0.15,2.64-1.06,3.46-1.24,1.12-1.34,1.11-2.44-0.56-1.54-2.36-0.59-5.19,1.72-5.19z"/>
|
|
||||||
<path d="M780.7,552.27c5.85-2.88,9.3-6.12,11.52-10.81,1.05-2.23,1.91-4.33,1.91-4.69,0-0.81-2.88-2.15-4.61-2.15-1.72,0-2.07-1.19-1.33-4.48,0.72-3.21-0.15-7.23-1.56-7.23-0.51,0-1.41,0.75-2.01,1.66-0.92,1.41-0.97,2.01-0.29,4.06,1,3.04,0.21,5.31-2.51,7.25-1.29,0.92-2,1.98-2,3.01,0,0.87,0.11,1.58,0.24,1.58,0.14,0,1.56-0.74,3.16-1.63l2.92-1.63,1.72,1.35c0.94,0.74,1.72,1.95,1.72,2.69,0,3.56-10.15,9.54-17.12,10.1-3.71,0.3-4.34,0.17-5.63-1.11-1.05-1.05-1.35-1.93-1.09-3.17,0.2-0.95,0.56-2.68,0.8-3.84,0.64-3.1-0.69-2.68-2.99,0.94-1.89,2.99-2.45,6.18-1.39,7.86,0.87,1.37,6.65,2.68,10.74,2.43,2.57-0.15,5.11-0.87,7.8-2.19z"/>
|
|
||||||
<path d="M819.74,530.49c3.68-3.67,5.24-8.14,5.26-15.05l0.01-5.19,3.04-1.44c3.95-1.88,7.69-5.62,7.69-7.7,0-2.14-0.95-2.03-2.67,0.3-1.25,1.69-2.92,2.71-9.03,5.52-1.54,0.71-1.64,1.09-1.99,7.55-0.41,7.45-1.42,10.24-5.58,15.33-2.55,3.1-2.64,3.51-0.87,3.51,0.73,0,2.59-1.27,4.14-2.83z"/>
|
|
||||||
<path d="M779.66,526.33c0.35-1.07-1.68-1.83-2.56-0.96-0.37,0.37-0.47,1.01-0.22,1.42,0.58,0.93,2.42,0.62,2.78-0.46z"/>
|
|
||||||
<path d="M834.93,512.02c0.36-1.07-1.68-1.83-2.55-0.96-0.38,0.38-0.48,1.02-0.23,1.43,0.58,0.93,2.42,0.62,2.78-0.47z"/>
|
|
||||||
<path d="m768.41,473.28c-1.4296,0.68071-2.1713,2.2244-3.165,3.4028-0.71516,0.48622-0.14203,0.9405,0.26976,1.3988,2.5225,2.7171,3.5898,6.3866,4.7883,9.8088,1.177,4.0402,2.659,8.3784,1.4283,12.588-0.48423,1.6123-1.7525,3.2813-3.6466,2.746-3.0304-0.18916-6.0122-0.99351-9.0512-0.96152-2.705,0.14095-4.7956,2.6024-7.5614,2.3341-1.767,0.11638-1.6925-3.618-3.3341-2.6194-0.8128,1.9472-0.41254,4.1196-0.50932,6.1787,0.30628,0.29508,1.165,0.0377,1.6799,0.1242h5.4451c0.38492,1.8802,0.33677,4.0358,1.6875,5.5312,1.8899,0.67214,4.0159,0.0917,5.8116-0.64309,1.9256-0.89569,2.1834-3.2112,2.7274-5.0153,0.57858-1.9384,3.117-1.4302,4.6149-2.1913,3.6648-1.0697,6.0666-4.8789,5.852-8.6268-0.23686-5.722-2.4198-11.105-4.0759-16.521-0.83346-2.386-1.4104-4.875-2.377-7.2045-0.11331-0.20034-0.34573-0.36894-0.58432-0.32903zm-9.07,32.72c2.0364-0.13276,2.9212,2.3697,2.4899,4.0293-0.76215,2.2555-3.5349,0.80928-4.0958-0.81602-1.0301-1.4517-0.39353-3.4044,1.6058-3.2133z"/>
|
|
||||||
<path d="M683.94,487.22c-0.91-0.02-1.93,0.32-2.94,1.03-5.31,3.72-6.67,8.12-3.06,9.84,2.65,1.27,1.98,2.76-2.19,4.85-5.97,2.98-11.24,2.61-21.25-1.53-2.46-1.02-3.1-0.63-2.53,1.62,0.55,2.21,2.57,3.42,7.59,4.56,5.4,1.24,11.93,0.84,16.13-0.97,2.05-0.88,4.48-2.73,6.53-4.96l3.25-3.57,3.78,0.47c4.66,0.57,4.75,0.62,4.75,2.85,0,1.77,0.1,1.81,4.38,2.21,2.41,0.23,5.58,0.44,7.06,0.44,1.89,0.01,2.96,0.34,3.59,1.22,0.84,1.17,1.34,1.23,8.38,0.6,6.58-0.6,7.87-0.55,10.84,0.46,2.11,0.72,4.43,1.01,6.19,0.82,5.04-0.57,11.99-4.69,13-7.72,0.12-0.37,1.95-1.02,4.06-1.44,5.09-1.02,5.31-2.13,0.56-2.72-2.06-0.26-5.15-1.01-6.87-1.69-1.73-0.68-4.09-1.25-5.25-1.25-2.56,0-4.97,1.6-4.97,3.25,0,1.08,0.38,1.19,3.41,0.88,2.85-0.29,3.68-0.13,5.18,1.06,0.99,0.78,1.65,1.7,1.44,2.03-0.67,1.09-6.62,3.8-9.25,4.22-1.76,0.28-3.18,0.09-4.56-0.62-2.31-1.2-5.71-1.38-6.35-0.35-0.27,0.45-1,0.16-2-0.78l-1.56-1.47-3.53,1.47c-3.59,1.49-4.91,1.43-4.91-0.28,0-0.78-1.05-0.87-6.34-0.53-5.83,0.38-6.44,0.28-7.53-0.94-1.01-1.12-1.03-1.51-0.31-2.66,0.66-1.06,0.66-1.52,0.03-2.15s-1.45-0.62-3.75,0c-5.8,1.55-7.44,0.68-7.44-3.85,0-2.72-1.56-4.37-3.56-4.4zm-1.44,4.16c0.31,0,0.57,0.19,0.97,0.59,0.51,0.51,0.78,1.4,0.56,1.97-0.52,1.35-2.98,1.3-3.5-0.06-0.25-0.66,0.07-1.4,0.81-1.94,0.52-0.38,0.85-0.57,1.16-0.56z"/>
|
|
||||||
<path d="M672.1,495.6c3.53-2.24,3.45-2.07,3.96-8.29,0.35-4.39,0.29-4.72-0.9-4.72-1.73,0-2.63,1.9-2.63,5.52,0,2.32-0.36,3.36-1.6,4.59-2.94,2.94-10.24,1.6-11.16-2.05-0.31-1.25,0.09-2.38,1.62-4.55,3.19-4.53,2.47-5.64-1.44-2.2-2.69,2.35-3.17,2.42-2.66,0.39,0.47-1.87-0.51-2.61-2.7-2.06-1.12,0.28-1.73,0.98-2,2.34-0.26,1.33-0.87,2.07-1.93,2.33-1.77,0.45-4.79-1.23-4.79-2.66,0-1.06,4.52-6.58,10.32-12.6,2.19-2.28,3.98-4.4,3.98-4.72s-1.17-0.58-2.6-0.58c-2.09,0-2.6,0.23-2.6,1.2,0,0.66-2.92,4.49-6.5,8.52-7.46,8.4-8.08,10.15-4.39,12.39,2.97,1.82,6.78,1.68,9.77-0.35l2.42-1.65v2.99c0,3.82,0.76,5.19,3.76,6.78,3.77,1.99,8.33,1.75,12.07-0.62z"/>
|
|
||||||
<path d="m828.66,443.69c-2.7668,1.6519-0.60168,5.1236-0.18254,7.4288-1.1299,3.146-5.1718,3.9934-8.1183,4.5774-4.1736,0.69135-7.1308,4.1827-8.7186,7.8921-0.86037,2.4089-2.9366,6.1445-5.1993,2.4767-1.9667-1.9933-5.5819-3.5732-7.9078-1.2462-1.7668,1.6824-2.2148,4.1568-2.8735,6.4025-1.0427-1.7262-1.5104-4.2966-3.7201-4.8424-3.5276,0.49628-2.2527,4.9439-0.594,6.7779,1.5076,2.1378,2.9558,4.9578,1.4779,7.4969-1.303,3.0516-5.8095,5.11-8.4565,2.4995-2.4722-1.305-0.81896-5.9649-3.254-6.221-1.204,0.86977-1.3032,5.7458-3.2303,3.1024-1.3906-2.2586-0.65318-5.3523-2.3547-7.3843-2.0106,0.24966-3.6272,3.7115-2.9583,5.5709,2.6825,3.6176,3.7849,8.1558,4.8314,12.467,0.65196,1.7264-0.0951,5.2267,1.5199,5.9106,1.1196-2.7787,0.0791-5.9306,0.96044-8.7358,2.6182-0.32901,5.5303,0.86591,8.2761,0.23077,3.9286-0.50981,6.9646-3.825,8.3424-7.3555,0.41644-2.6542-0.079-5.3476-0.15274-8.0168,3.1034,0.48084,6.3281,0.47101,9.3135,1.4788,1.4804,2.2709-0.46974,5.4485-0.87913,7.9295-1.5586,5.0524-5.5163,8.7194-9.366,12.097-1.6101,0.95299-1.8264,3.4782,0.55162,2.118,5.1735-2.2122,9.0295-6.8975,11.248-11.969,1.619-3.9019,0.31744-8.2474,1.3744-12.238,1.5617-2.9959,5.3215-2.3646,8.1035-2.3553,2.879-0.10959,5.3363-3.464,4.3747-6.2619-0.91607-3.2468,2.519-4.8109,4.8661-5.9714,3.1119-1.5702,5.4981-4.7591,5.2571-8.3583-0.12787-1.8402-0.0371-5.3318-2.5312-5.5zm-11.031,18.75c3.3336,0.88568-0.60342,7.2524-2.375,3.2188-0.54528-1.539,0.75001-3.2741,2.375-3.2188zm-15.47,4.56c4.3385-0.25338,2.7806,6.0812-0.88479,3.2048-1.9006-0.95441-1.2718-3.3229,0.88479-3.2048z"/>
|
|
||||||
<path d="M645.1,491.48c0.12-0.63-0.2-1.08-0.77-1.08-1.21,0-1.94,1.06-1.37,1.98,0.59,0.95,1.89,0.41,2.14-0.9z"/>
|
|
||||||
<path d="M695.94,485.8c0-0.93-0.35-1.28-1.13-1.13-1.7,0.32-1.89,2.48-0.22,2.48,0.93,0,1.35-0.42,1.35-1.35z"/>
|
|
||||||
<path d="m633.03,455.28c-2.029-0.41667-3.3053,1.3004-4,2.9375-1.5174,2.5503-3.3705,5.1587-6.0931,6.5091-1.9578,0.54422-4.0937-0.20046-5.7819-1.2102-2.0147-1.0029-1.5567-3.4259-2.4202-5.1005-1.457-1.1443-4.0407,0.4921-3.9834,2.2714-0.16115,2.3862,2.0713,3.7641,3.9242,4.6869,1.5747,0.96445,3.8577,1.5009,4.4871,3.4529-0.0437,1.6587,0.6235,3.5571,2.6435,2.9166,2.2597-0.0372,2.8449,2.7155,1.9326,4.3671-0.92932,1.8613-1.5564,4.0416-1.1119,6.1154,1.08,0.90934,2.1827-1.5301,2.9652-2.2268,0.53138-0.70851,1.0628-1.417,1.5941-2.1255,3.9984,0.21679,7.9929,0.72673,12.001,0.5846,2.8505-0.0516,5.2778-1.8114,7.0906-3.875,2.5633-2.6802,4.6693-5.8294,7.597-8.142,2.0839-0.50859,0.96439-4.4336-1.2124-3.3001-1.9608,0.7355-2.578,2.9513-3.9368,4.3632-2.3146,2.8028-4.6762,5.6471-7.5941,7.8434-2.1245,0.8812-4.5705,0.49663-6.7532-0.00022-0.91062-0.79618,1.8087-1.445,2.188-2.33,1.252-1.2507,2.7385-2.438,3.4639-4.0814-0.69398-1.5148-2.8167-1.6373-4.3126-1.6678-3.6856,0.44249-6.5007,3.5363-10.223,3.8277-2.8253,0.099-1.355-2.9607-0.0813-4.0046,2.4916-2.9589,5.1844-5.7458,7.7858-8.6074,0.73816-0.88845,3.4086-1.732,1.7006-2.98-0.59723-0.21503-1.2431-0.21478-1.8694-0.22424zm1.8125,14.969c1.8586,1.0454-1.1858,2.7567-2.4681,2.5229-1.6823,0.50416-1.7125-1.2116-0.2183-1.5533,0.8401-0.43711,1.7274-0.89316,2.6864-0.96961zm-5.7188,3.9062c1.0579-0.0202,3.2748,0.99623,1.1931,1.6469-1.4494,1.1234-3.0867-1.1434-1.1931-1.6469z"/>
|
|
||||||
<path d="M674.15,476.74c0-1.41-2.53-1.21-2.81,0.22-0.18,0.92,0.11,1.14,1.29,0.97,0.84-0.12,1.52-0.65,1.52-1.19z"/>
|
|
||||||
<path d="M786.2,466.82c0.26-1.35-1.62-2.25-2.61-1.26s-0.08,2.87,1.26,2.61c0.62-0.12,1.23-0.73,1.35-1.35z"/>
|
|
||||||
<path d="M611.82,453.09c1.76-1.51,1.78-1.61,1.02-4.93-1.08-4.65-1.01-5.15,0.76-5.59,2.24-0.57,7.93,2.48,9.19,4.92,0.98,1.89,0.95,2.02-0.71,3.56-1.79,1.65-1.78,3.58,0.01,3.58,1.48,0,5.57-3.87,5.57-5.26,0-1.93-4.54-6.49-8.13-8.16-2.22-1.04-4.44-1.52-7.01-1.53-4.6,0-5.22,0.99-3.98,6.34,1.46,6.27-0.52,7.12-5.57,2.39-3.75-3.51-5.23-7.16-5.21-12.91,0.01-6.17,2.37-9.22,7.69-9.94,3.53-0.47,3.44-1.3-0.19-1.84-5.3-0.8-9.78,2.74-11.48,9.06-1.89,7.01,2.44,15.55,10.1,19.95,4.01,2.3,5.61,2.37,7.94,0.36z"/>
|
|
||||||
<path d="M820.66,445.4c0.43-0.43,0.78-1.4,0.78-2.15s0.73-2.36,1.62-3.57c0.9-1.21,1.63-2.45,1.63-2.75,0-1.23-2.03-1.19-3.63,0.08-1.64,1.28-2.87,1.31-2.87,0.06,0-0.31,0.78-0.95,1.74-1.42,2.38-1.16,2.58-2.31,0.57-3.23-2.58-1.17-5.17,0.97-5.44,4.5-0.17,2.36,0.02,2.77,1.84,3.84,1.66,0.98,1.97,1.5,1.69,2.9-0.48,2.43,0.53,3.28,2.07,1.74z"/>
|
|
||||||
<path d="M840.29,443.18c1.44-1.29,2.61-2.76,2.61-3.25s1.24-1.79,2.76-2.88c4.31-3.1,5.26-6.23,3.33-11.04-0.75-1.89-3.11-4.5-8.24-9.12-3.94-3.56-7.57-6.47-8.04-6.47-1.4,0-1.15,5.15,0.27,5.6,2.56,0.82,4.11,1.87,8.14,5.5,4.68,4.23,6.84,8.18,5.66,10.38-1.13,2.13-2.63,1.47-6.76-2.96-2.17-2.33-4.32-4.23-4.76-4.23-0.48,0.01-0.82,0.85-0.82,2.03,0,1.48,0.79,2.89,2.93,5.27,3.49,3.88,3.83,6.21,1.21,8.27-0.94,0.74-1.91,1.35-2.15,1.35-0.23,0-1-1.16-1.7-2.57-1.46-2.96-10.39-12.39-11.73-12.39-0.61,0-0.91,0.76-0.91,2.26,0,1.81,0.36,2.45,1.8,3.19,1.77,0.92,6.15,5.33,10.55,10.65,1.26,1.52,2.5,2.75,2.77,2.76,0.26,0,1.65-1.06,3.08-2.35z"/>
|
|
||||||
<path d="M849.05,418.11c-0.58-1.87-12.56-14.2-13.79-14.2-0.64,0-0.84,0.76-0.69,2.72,0.17,2.38,0.43,2.79,2.07,3.22,1.02,0.27,4.18,2.75,7.01,5.5,2.82,2.75,5.3,4.84,5.5,4.63,0.2-0.2,0.16-1.04-0.1-1.87z"/>
|
|
||||||
<path d="m777.5,556.89a1.7806,1.6322,0,1,1,-3.5612,0,1.7806,1.6322,0,1,1,3.5612,0z"/>
|
|
||||||
<path d="m783.79,554.79a1.7806,1.6322,0,1,1,-3.5612,0,1.7806,1.6322,0,1,1,3.5612,0z"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 24 KiB |
@@ -1,8 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="1100" height="750">
|
|
||||||
<rect fill="#007934" width="1100" height="750"/>
|
|
||||||
<rect fill="#F9E300" width="1100" height="500"/>
|
|
||||||
|
|
||||||
<rect fill="#D52B1E" width="1100" height="250"/>
|
|
||||||
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 262 B |
@@ -1,5 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" width="900" height="600" viewBox="0 0 9 6">
|
|
||||||
<rect fill="#21468B" width="9" height="6"/>
|
|
||||||
<rect fill="#FFF" width="9" height="4"/>
|
|
||||||
<rect fill="#AE1C28" width="9" height="2"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 220 B |
@@ -1,90 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" height="504" width="720" version="1.0" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-2100 -1470 4200 2940">
|
|
||||||
<defs>
|
|
||||||
<path id="D" fill-rule="evenodd" d="m-31.5 0h33a30 30 0 0 0 30 -30v-10a30 30 0 0 0 -30 -30h-33zm13-13h19a19 19 0 0 0 19 -19v-6a19 19 0 0 0 -19 -19h-19z"/>
|
|
||||||
<path id="E" transform="translate(-31.5)" d="m0 0h63v-13h-51v-18h40v-12h-40v-14h48v-13h-60z"/>
|
|
||||||
<path id="e" d="m-26.25 0h52.5v-12h-40.5v-16h33v-12h-33v-11h39.25v-12h-51.25z"/>
|
|
||||||
<g id="G">
|
|
||||||
<clipPath id="gcut">
|
|
||||||
<path d="m-31.5 0v-70h63v70zm31.5-47v12h31.5v-12z"/>
|
|
||||||
</clipPath>
|
|
||||||
<use xlink:href="#O" clip-path="url(#gcut)"/>
|
|
||||||
<rect y="-35" x="5" height="10" width="26.5"/>
|
|
||||||
<rect y="-35" x="21.5" height="35" width="10"/>
|
|
||||||
</g>
|
|
||||||
<path id="M" d="m-31.5 0h12v-48l14 48h11l14-48v48h12v-70h-17.5l-14 48-14-48h-17.5z"/>
|
|
||||||
<path id="O" fill-rule="evenodd" d="m0 0a31.5 35 0 0 0 0 -70 31.5 35 0 0 0 0 70m0-13a18.5 22 0 0 0 0 -44 18.5 22 0 0 0 0 44"/>
|
|
||||||
<path id="P" fill-rule="evenodd" d="m-31.5 0h13v-26h28a22 22 0 0 0 0 -44h-40zm13-39h27a9 9 0 0 0 0 -18h-27z"/>
|
|
||||||
<g id="R">
|
|
||||||
<use xlink:href="#P"/>
|
|
||||||
<path d="m28 0c0-10 0-32-15-32h-19c22 0 22 22 22 32"/>
|
|
||||||
</g>
|
|
||||||
<path id="S" d="m-15.75-22c0 7 6.75 10.5 16.75 10.5s14.74-3.25 14.75-7.75c0-14.25-46.75-5.25-46.5-30.25 0.25-21.5 24.75-20.5 33.75-20.5s26 4 25.75 21.25h-15.25c0-7.5-7-10.25-15-10.25-7.75 0-13.25 1.25-13.25 8.5-0.25 11.75 46.25 4 46.25 28.75 0 18.25-18 21.75-31.5 21.75-11.5 0-31.55-4.5-31.5-22z"/>
|
|
||||||
<g id="star" fill="#fff">
|
|
||||||
<g id="c">
|
|
||||||
<path id="t" transform="rotate(18 0,-1)" d="m0-1v1h0.5"/>
|
|
||||||
<use xlink:href="#t" transform="scale(-1,1)"/>
|
|
||||||
</g>
|
|
||||||
<use xlink:href="#c" transform="rotate(72)"/>
|
|
||||||
<use xlink:href="#c" transform="rotate(-72)"/>
|
|
||||||
<use xlink:href="#c" transform="rotate(144)"/>
|
|
||||||
<use xlink:href="#c" transform="rotate(216)"/>
|
|
||||||
</g>
|
|
||||||
<use id="star1" xlink:href="#star" transform="scale(31.5)"/>
|
|
||||||
<use id="star2" xlink:href="#star" transform="scale(26.25)"/>
|
|
||||||
<use id="star3" xlink:href="#star" transform="scale(21)"/>
|
|
||||||
<use id="star4" xlink:href="#star" transform="scale(15)"/>
|
|
||||||
<use id="star5" xlink:href="#star" transform="scale(10.5)"/>
|
|
||||||
</defs>
|
|
||||||
<rect y="-50%" x="-50%" height="100%" fill="#009b3a" width="100%"/>
|
|
||||||
<path d="m-1743 0 1743 1113 1743-1113-1743-1113z" fill="#fedf00"/>
|
|
||||||
<circle r="735" fill="#002776"/>
|
|
||||||
<clipPath id="band">
|
|
||||||
<circle r="735"/>
|
|
||||||
</clipPath>
|
|
||||||
<path fill="#fff" d="m-2205 1470a1785 1785 0 0 1 3570 0h-105a1680 1680 0 1 0 -3360 0z" clip-path="url(#band)"/>
|
|
||||||
<g transform="translate(-420,1470)" fill="#009b3a">
|
|
||||||
<use y="-1697.5" xlink:href="#O" transform="rotate(-7)"/>
|
|
||||||
<use y="-1697.5" xlink:href="#R" transform="rotate(-4)"/>
|
|
||||||
<use y="-1697.5" xlink:href="#D" transform="rotate(-1)"/>
|
|
||||||
<use y="-1697.5" xlink:href="#E" transform="rotate(2)"/>
|
|
||||||
<use y="-1697.5" xlink:href="#M" transform="rotate(5)"/>
|
|
||||||
<use y="-1697.5" xlink:href="#e" transform="rotate(9.75)"/>
|
|
||||||
<use y="-1697.5" xlink:href="#P" transform="rotate(14.5)"/>
|
|
||||||
<use y="-1697.5" xlink:href="#R" transform="rotate(17.5)"/>
|
|
||||||
<use y="-1697.5" xlink:href="#O" transform="rotate(20.5)"/>
|
|
||||||
<use y="-1697.5" xlink:href="#G" transform="rotate(23.5)"/>
|
|
||||||
<use y="-1697.5" xlink:href="#R" transform="rotate(26.5)"/>
|
|
||||||
<use y="-1697.5" xlink:href="#E" transform="rotate(29.5)"/>
|
|
||||||
<use y="-1697.5" xlink:href="#S" transform="rotate(32.5)"/>
|
|
||||||
<use y="-1697.5" xlink:href="#S" transform="rotate(35.5)"/>
|
|
||||||
<use y="-1697.5" xlink:href="#O" transform="rotate(38.5)"/>
|
|
||||||
</g>
|
|
||||||
<use id="αCMi" y="-132" x="-600" xlink:href="#star1"/>
|
|
||||||
<use id="αCMa" y="177" x="-535" xlink:href="#star1"/>
|
|
||||||
<use id="βCMa" y="243" x="-625" xlink:href="#star2"/>
|
|
||||||
<use id="γCMa" y="132" x="-463" xlink:href="#star4"/>
|
|
||||||
<use id="δCMa" y="250" x="-382" xlink:href="#star2"/>
|
|
||||||
<use id="εCMa" y="323" x="-404" xlink:href="#star3"/>
|
|
||||||
<use id="αVir" y="-228" x="228" xlink:href="#star1"/>
|
|
||||||
<use id="αSco" y="258" x="515" xlink:href="#star1"/>
|
|
||||||
<use id="βSco" y="265" x="617" xlink:href="#star3"/>
|
|
||||||
<use id="εSco" y="323" x="545" xlink:href="#star2"/>
|
|
||||||
<use id="θSco" y="477" x="368" xlink:href="#star2"/>
|
|
||||||
<use id="ιSco" y="551" x="367" xlink:href="#star3"/>
|
|
||||||
<use id="κSco" y="419" x="441" xlink:href="#star3"/>
|
|
||||||
<use id="λSco" y="382" x="500" xlink:href="#star2"/>
|
|
||||||
<use id="μSco" y="405" x="365" xlink:href="#star3"/>
|
|
||||||
<use id="αHya" y="30" x="-280" xlink:href="#star2"/>
|
|
||||||
<use id="γHya" y="-37" x="200" xlink:href="#star3"/>
|
|
||||||
<use id="αCru" y="330" xlink:href="#star1"/>
|
|
||||||
<use id="βCru" y="184" x="85" xlink:href="#star2"/>
|
|
||||||
<use id="γCru" y="118" xlink:href="#star2"/>
|
|
||||||
<use id="δCru" y="184" x="-74" xlink:href="#star3"/>
|
|
||||||
<use id="εCru" y="235" x="-37" xlink:href="#star4"/>
|
|
||||||
<use id="αTrA" y="495" x="220" xlink:href="#star2"/>
|
|
||||||
<use id="βTrA" y="430" x="283" xlink:href="#star3"/>
|
|
||||||
<use id="γTrA" y="412" x="162" xlink:href="#star3"/>
|
|
||||||
<use id="αCar" y="390" x="-295" xlink:href="#star1"/>
|
|
||||||
<use id="σOct" y="575" xlink:href="#star5"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 4.9 KiB |
@@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="600" height="300">
|
|
||||||
<rect width="600" height="300" fill="#00abc9"/>
|
|
||||||
<rect width="600" height="100" y="100" fill="#fae042"/>
|
|
||||||
<path d="M0,0V300L259.8076,150z" fill="#000"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 263 B |
@@ -1,467 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="900" height="600">
|
|
||||||
<rect width="900" height="600" fill="#ffd520"/>
|
|
||||||
<path d="M0,600H900V0z" fill="#ff4e12"/>
|
|
||||||
<g stroke="#000" stroke-width="0.5208">
|
|
||||||
<g fill="#fff">
|
|
||||||
<path d="m481.74,187.59c-4.9875-1.7708-8.2083,0.805-8.0458,7.2442,0.15833,6.4392,3.5417,10.142,8.5292,7.7271l-0.48334-14.971z"/>
|
|
||||||
<path d="m486.12,175.53c-4.1542-3.28-8.0292-1.8738-9.9458,4.2758-1.9167,6.1492,0.0958,10.742,5.5958,10.058l4.35-14.333z"/>
|
|
||||||
<path d="m493.04,163.86c-3.5792-3.9046-7.6292-3.1383-10.508,2.6246-2.875,5.7633-1.625,10.618,3.9167,10.825l6.5917-13.45z"/>
|
|
||||||
<path d="m488.5,220.59c-6.1167,2.2538-6.7625,10.625-2.8958,15.776,3.8625,5.1512,10.946,6.1171,14.808,0l-11.91-15.78z"/>
|
|
||||||
<path d="m481.42,202.88c-5.7958-1.9317-11.017,5.8525-11.913,12.878-1.125,8.8538-13.683,11.751-6.7583,25.113,1.4458-8.5317,7.0833-13.2,11.588-13.522,4.5083-0.32208,11.271-1.2879,14.167-6.7613l-7.0833-17.708z"/>
|
|
||||||
<path d="m499.77,237.33c-6.7625,1.6096-7.7292,10.625-2.9,17.064,4.1333,5.5129,17.063,4.1854,16.742-1.2879l-13.842-15.776z"/>
|
|
||||||
<path d="m518.93,291.58c0.32084-5.795-9.0125-8.0488-13.521-6.9221-4.5083,1.1271-13.121-0.16083-15.133-4.9904-1.6083,3.8638,0.72501,8.0492,7.2458,10.142,4.9333,1.5846,4.8292,5.1512,3.3792,6.7613,3.7042,0.64375,14.65,0.64375,18.029-4.9904z"/>
|
|
||||||
<path d="m513.62,254.56c-6.6-2.8975-10.513,1.5158-13.038,5.795-3.7042,6.2783-15.133-1.7704-18.996,6.6004,5.2333-2.2538,10.558,2.5525,13.038,4.1854,7.0833,4.6683,20.767,3.2196,22.7-7.7271l-3.7042-8.8538z"/>
|
|
||||||
<path d="m517.48,262.28c-6.6,4.99-9.175,10.946-9.0125,14.971,0.1625,4.0246,5.7958,12.878,11.913,13.361,3.5417-7.2442,5.3125-22.537-2.9-28.332z"/>
|
|
||||||
<path d="m490.12,293.35c0-2.4146,3.5417-3.3804,5.9542-2.5758,2.4167,0.805,6.1167,3.2196,4.8292,5.7954l-10.783-3.2196z"/>
|
|
||||||
<path d="m453.73,280.15c-0.64167-2.8975,4.025-7.8879,10.304-5.1513,6.275,2.7367,7.0833,8.0492,4.5042,10.142l-14.808-4.9904z"/>
|
|
||||||
<path d="m469.02,285.46c-0.48333-1.61,4.0375-4.8254,11.754-2.8979,7.725,1.9321,9.6208,6.9067,9.3375,10.786l-21.092-7.8879z"/>
|
|
||||||
<path d="m452.93,280.15c4.025-3.0583,2.5-8.855-1.1292-10.625-6.6-3.2196-4.1833-11.59-8.3708-13.2-4.1833-1.61-8.2083-4.5075-8.3708-7.405-2.0917,4.0242-0.80417,7.7271,2.0958,10.303,2.8958,2.5758-2.2542,13.039,1.4458,15.776l14.329,5.1513z"/>
|
|
||||||
<path d="m366.64,277.9c-3.3804-5.3121-11.43-4.3463-14.81-0.64375-3.3804,3.7025-2.8975,9.1758,0.32208,11.59l14.488-10.947z"/>
|
|
||||||
<path d="m385.96,270.01c-1.2879-7.0829-9.82-7.8879-14.488-6.1171-4.6683,1.7708-7.8879,8.8538-4.8292,14.005l19.318-7.8879z"/>
|
|
||||||
<path d="m398.84,269.04c3.0583-5.9563-2.8975-14.81-9.6588-16.098-5.6446-1.0738-12.315-1.0462-14.488-6.6-1.3683,4.8296,2.2542,7.8879,6.4396,10.625,4.185,2.7367-0.80542,9.82,5.9558,13.844l11.752-1.7708z"/>
|
|
||||||
<path d="m398.2,269.25c-1.4088-4.2667,1.4488-9.9434,7.2325-9.5454,5.7842,0.39792,9.08,4.6013,6.53,9.8558l-13.763-0.31041z"/>
|
|
||||||
<path d="m411.07,269.57c-0.79583-4.4221,2.83-9.6404,8.5008-8.435s8.3417,5.83,5.0833,10.675l-13.584-2.2396z"/>
|
|
||||||
<path d="m423.86,271.6c-0.575-4.4575,3.3083-9.4875,8.9125-8.0013,5.6042,1.4871,8.0417,6.2404,4.5417,10.915l-13.454-2.9142z"/>
|
|
||||||
<path d="m326.72,345.35c-10.786,0-13.42,2.5679-14.971,13.683-1.9317,13.844,16.903,15.454,14.971-13.683z"/>
|
|
||||||
<path d="m331.55,330.86c-16.581-6.2783-25.595,19.961-42.015,15.293,5.8754,9.3367,20.118,0.0167,25.434,0.96583,9.015,1.61,28.493-1.7708,16.581-16.259z"/>
|
|
||||||
<path d="m320.76,366.76c-8.21-3.7021-17.064,8.8542-15.454,14.327,2.0438,6.9521,20.766,1.2879,15.454-14.327z"/>
|
|
||||||
<path d="m282.45,420.85c4.5075,1.2833,9.9804,3.8625,9.0146,12.554-0.96583,8.6917-17.385,26.4-32.195,27.367-14.81,0.96667-20.123,18.833-32.84,13.842,11.912-2.25,11.912-15.775,21.249-19.958-6.7612-2.4167-10.303,12.879-18.995,12.879-8.6929,0-12.878,13.842-23.503,12.875-10.625-0.9625-11.743,16.854-33,17.067-16.259,0.15834-36.381,19.154-43.625,10.946,15.776-2.2542,22.142-10.996,31.552-20.608,15.132-15.45,32.196-8.5292,37.991-22.213-6.9225,4.6667-14.971,6.9208-22.859,6.7625-9.9017-0.20417-20.766,15.775-31.874,8.6917,6.4392-0.80416,10.625-3.5417,17.386-10.625,6.9238-7.2542,17.083-2.5667,25.113-9.9792,12.556-11.592,23.342-1.9333,35.415-16.421-3.3808-1.6083-10.625-0.48334-17.386,3.0583-6.7613,3.5417-15.454-2.4167-23.181,1.7708,0.96583-9.4958,18.995-4.0625,30.264-10.625,12.718-7.4042,23.262-5.2333,33.323-4.3458-14.005-0.0792-19.478-13.363-38.795-9.5-8.425,1.6875-15.132-11.588-23.503-4.8292,0.24125-4.9875,9.015-9.0134,18.03-4.1833,9.0146,4.8292,12.648-4.2258,30.586,7.0833,7.405,4.6667,20.122-2.9,28.171,2.0917-1.0462-3.0583-5.6346-4.9917-11.027-4.5875,3.3808-6.9208,25.193-6.0375,34.691,0.8875z"/>
|
|
||||||
<path d="m296.78,410.38c-7.0829-5.4733-16.903,1.1283-23.664-1.4488,0,4.5062,2.2538,11.269,9.6588,13.844,2.2538-1.6083,12.395-10.463,14.005-12.395z"/>
|
|
||||||
<path d="m307.89,394.77c-11.108-5.6342-13.039,8.3708-21.732,5.4733,0.32209,4.0246,3.5417,9.015,10.625,10.142l11.108-15.615z"/>
|
|
||||||
<path d="m314.49,382.05c-16.42-6.4392-18.513,9.3367-28.171,6.2779,2.2538,5.4733,16.098,8.3708,23.181,6.4392l4.9904-12.717z"/>
|
|
||||||
<path d="m337.02,312.99c-4.3467-6.1171-13.522-1.1267-14.971,6.1171-1.4488,7.2442,2.0925,17.386,8.21,15.132l6.7608-21.249z"/>
|
|
||||||
<path d="m348.13,293.67c-7.5658-1.7704-16.259-0.96584-15.293,6.4392-2.8979,1.2879-3.7025,10.786,4.1854,12.878l11.108-19.318z"/>
|
|
||||||
<path d="m353.12,288.68c-7.405-8.6929-15.663-8.4908-20.283-4.8296-8.5321,6.7613-16.823,2.8979-17.064,9.6588,5.1517-3.9438,9.6588,0.805,13.844-0.64375,4.1854-1.4488,7.2442,6.6,18.835,3.2196l4.6683-7.405z"/>
|
|
||||||
<path d="m335.25,418.6c1.1271,2.0917,8.0488,3.0583,11.43-0.48334,4.4804-4.6958-0.48291-17.709-7.5663-18.675-7.0829-0.96583-7.7267,14.65-3.8633,19.158z"/>
|
|
||||||
<path d="m327.2,418.92c10.141,3.7,14.488-4.6708,9.0146-9.9813-1.4488,1.7708-6.7613,8.2104-9.0146,9.9813z"/>
|
|
||||||
<path d="m289.21,432.76c-1.9321,5.7958-11.913,6.7625-23.181,24.792-11.269,18.029-22.054,10.463-24.791,22.858,13.522-10.946,24.142-3.675,32.195-14.488,12.235-16.421,22.309-14.063,27.045-25.113,6.7608-15.775,36.381-15.454,37.991-40.244-9.9808-1.9321-41.533,24.79-49.259,32.194z"/>
|
|
||||||
<path d="m543.24,189.36c12.879,4.1854,13.2,20.927,28.008,26.4,14.813,5.4733,16.263,18.673,28.333,15.454-11.267-3.0588-10.463-16.098-22.213-19.318-13.783-3.7758-18.996-24.791-29.946-28.01"/>
|
|
||||||
<path d="m602.32,276.77c2.2542,5.1512,1.9333,14.327-6.1167,16.742,4.3458,2.7367,10.783,0.16084,14.325-5.795-5.3125,11.751-1.7708,22.376,6.6,24.469-4.025-8.21,4.9917-12.074,2.0958-17.386,5.3125,2.2538,9.9792,9.4979,9.8167,14.005,6.925-7.7271-5.15-18.03-2.8958-25.273l-23.825-6.7613z"/>
|
|
||||||
<path d="m518.93,359.51c-7.8875-6.9221-11.254,1.8096-15.133-1.2075-3.6208-2.8171-8.45-3.2196-10.3-0.4025,6.7625,0.24167,3.4583,5.4733,16.579,6.7613-13.121,0.88541-10.704,15.535-19.479,14.81,9.3375,8.8538,14.167-7.8879,21.733-5.1512-2.2542,0.64375,3.5417,5.9562-0.48333,13.039,6.5208-0.16084,9.175-9.1758,9.9833-13.844l-2.9-14.005z"/>
|
|
||||||
<path d="m345.23,434.69c-2.8979-2.4125-11.269-3.5417-14.488-1.6083-3.2192,1.9292-2.0925,2.4125,1.7708,2.7375,3.8638,0.32084,8.8525,6.5708,0.48291,6.9208-3.8633,0.15834-2.5754,9.4958-10.625,10.142,3.3,4.025,12.718,1.3667,16.098-3.0583-0.64375,3.6208,4.1854,6.9208,2.2538,11.267,5.9562,0.64584,2.495-12.071,11.913-11.429-3.8638,0.48334-2.2538,9.175,4.5071,6.9208-4.0242,1.9333-1.9317,6.6,2.5758,5.475-2.8975,0.96667-3.8638,4.6667,0.16084,6.7625,3.8638-5.3125-0.48292-24.308-14.649-34.129z"/>
|
|
||||||
<path d="m695.85,257.07c12.321,0,22.308-9.9896,22.308-22.312,0-12.32-9.9875-22.31-22.308-22.31-12.325,0-22.313,9.99-22.313,22.31,0,12.322,9.9875,22.312,22.313,22.312z"/>
|
|
||||||
<path d="m579.3,284.02c6.7625-6.4392,17.067-9.6588,24.146-4.8296,7.0833,4.8296,30.588,10.625,42.179,2.5758,11.588-8.0492,17.063-12.235,22.213-11.269,3.8667,5.7954,8.5334,8.5321,14.329,9.015,1.7708,1.9317,8.05,3.5417,11.592,3.0583,5.15,1.2879,11.429-0.32166,16.417-5.795,7.7292,1.1267,14.971-4.6683,17.708-13.361,8.2083-0.96583,8.6917-10.142,3.5417-16.259-4.8292-0.96584-1.125-17.225-18.675-14.005,7.4083,4.5071,1.7708,13.522,7.8917,17.708-4.1875,0-9.5792,1.7708-10.867,8.0488,1.6083-4.3462-0.24167-7.2438-1.3708-8.2096,0.1625-3.7025-8.0458-12.798-15.775-9.4979,5.5542,1.2075,2.4167,10.142,6.4417,13.522-2.9,0.16125-5.9583,1.61-7.7292,4.1854-2.0917-3.7025-9.4958-7.5658-14.004-7.8879,0-1.2879-0.24166-3.8633-0.80416-5.1512-2.0125-3.8633-3.7042-8.4508-2.9-14.327-3.8625,4.1854-7.0833,9.9808-9.0125,14.166-6.1167-4.1854-21.25,1.9317-28.333,3.5412-7.0833,1.61-30.908-2.2533-36.383-8.0488-5.4708-5.795-16.096-9.3367-26.075-12.234-13.725-3.9833-13.846-18.995-28.979-29.298-0.32083,18.674,28.013,77.914,34.45,84.353z"/>
|
|
||||||
<path d="m421.54,426.32c11.913,0,21.571-9.6583,21.571-21.571s-9.6583-21.57-21.571-21.57-21.571,9.6575-21.571,21.57c0,11.913,9.6575,21.571,21.571,21.571z"/>
|
|
||||||
<path d="m370.02,409.74c4.3462,5.6346,11.751,5.3138,14.81,4.8304,2.5758,6.7583,10.785,6.6,14.327,10.3,3.5417,3.7042,15.613,3.3833,19.155,1.2875-3.2167-0.32083-7.4033-2.25-11.428-5.6333-4.8579-4.0792-2.5758-12.234-6.4392-15.131,2.8975-3.2196,3.3804-8.5317,2.7367-10.625,3.0588-1.7708,5.3121-4.6683,5.6342-6.1171,5.3129-0.32208,9.9796-3.0588,11.913-5.1512,2.7375,2.5754,9.6583-0.805,13.363,3.5412,0.80417-10.625-9.3375-16.259-16.1-12.717-2.7375-1.4488-9.9804-0.48292-11.268,1.4488-2.2538-0.96584-8.5321,2.2538-11.43,4.3462,3.2196-1.7704,3.7025-7.0829,2.4146-9.0146,2.7367-1.1267,5.7954-4.8292,6.1171-7.5658,3.8638,0.64375,9.6575-1.9321,12.233-1.2879-4.1833-5.4733-11.105-7.405-18.189-6.9221-7.325,0.40292-10.463,5.5542-11.429,11.108-4.3467,2.5754-5.7954,11.268-4.1854,14.327-2.4958-0.08-4.8296,2.3346-5.7954,3.7025-3.3804-1.4488-8.21-2.4946-11.671-2.4946"/>
|
|
||||||
<path d="m366.32,373.2c-1.4488-4.1854,0.47-7.9533,1.4488-11.268,2.495-8.4508,0.96584-10.625-6.6-9.4975-0.64375,4.0242,3.2196,17.225,5.1513,20.766z"/>
|
|
||||||
<path d="m360.77,352.91c1.9317,1.9317,8.7738,2.8175,9.4979-3.2996,0.83167-7.0225-2.0121-9.74-8.1292-7.0033-0.48292,1.61-1.0471,8.21-1.3688,10.303z"/>
|
|
||||||
<path d="m362.22,342.37c2.5758,1.0458,8.13,3.1388,11.188-2.8175,2.5658-4.9954-0.80458-8.8538-6.1167-8.5321-1.2883,1.4488-3.8638,6.6004-5.0717,11.35z"/>
|
|
||||||
<path d="m366.97,330.54c0.64375,1.9317,7.2442,8.3708,12.073,3.7025,4.8296-4.6683,4.8296-11.59-2.4146-14.166-1.9321,0.32166-7.7271,7.0829-9.6588,10.463z"/>
|
|
||||||
<path d="m376.62,320.08c1.4488,4.0242,5.9558,10.946,14.327,7.7267,8.3713-3.2196,4.8296-13.683,0.96625-15.776-2.2538,0.16125-11.43,4.3467-15.293,8.0492z"/>
|
|
||||||
<path d="m391.92,312.03c-0.64417,3.5417,0,13.2,11.429,13.039,11.428-0.16083,8.2113-13.522,5.3125-15.454-4.6683,0-12.556,0.16083-16.742,2.4146z"/>
|
|
||||||
<path d="m409.14,310.09c-1.2879,2.7367-4.1896,20.75,18.191,15.776,2.8958-0.64375,10.463-17.225-18.191-15.776z"/>
|
|
||||||
<path d="m421.37,311.7c-2.25,2.2533,3.5417,20.444,18.675,17.385,15.133-3.0588,2.4167-20.283-18.675-17.385z"/>
|
|
||||||
<path d="m434.25,314.44c-2.4125,4.9904,1.2125,19.8,19.883,19.8,16.921,0-0.8875-19.478-19.883-19.8z"/>
|
|
||||||
<path d="m448.9,318.79c-1.2125,2.7662-2.6958,18.468,19.317,19.8,15.938,0.96583,12.075-21.571-19.317-19.8z"/>
|
|
||||||
<path d="m472.57,325.39c-2.7333,4.8296-5.6333,16.903,18.513,17.869,15.471,0.61917,5.9583-17.547-18.513-17.869z"/>
|
|
||||||
<path d="m492.69,329.09c-3.5417,4.8296-0.93333,14.303,8.0458,16.098,11.271,2.2538,12.879-8.3708,5.1542-13.522-7.7292-5.1513-13.2-2.5758-13.2-2.5758z"/>
|
|
||||||
<path d="m503.64,331.34c-2.575,4.5075-0.97917,15.454,16.096,15.454,3.5417,0,17.067-13.844-16.096-15.454z"/>
|
|
||||||
<path d="m371.48,541.27c13.83,0,25.042-11.213,25.042-25.042,0-13.833-11.212-25.046-25.042-25.046-13.831,0-25.043,11.213-25.043,25.046,0,13.829,11.212,25.042,25.043,25.042z"/>
|
|
||||||
<path d="m555.15,177.13c-1.9333,1.9317-5.9542,7.7267-6.7625,9.9804-8.3708,25.113,13.975,43.871,27.046,70.83,10.304,21.249,9.0167,54.733-7.0833,75.982-5.5083,7.2683-3.8625,9.3367-10.946,16.742-2.7167,2.8408-5.7958,6.4392-4.8292,16.742,4.5083-1.61,10.946,2.5758,12.233,6.1171,3.2208-1.6096,7.7292-0.96584,9.3375,0.96583,5.4708-2.5754,9.9792-1.2879,14.808,3.8638,4.1875-0.64416,8.6958,0,12.879,4.5071,2.2542-4.5071,6.7625-6.1171,9.9792-5.1512-0.32083-5.795,5.475-9.9804,10.625-7.7267-1.6083-7.7271,5.475-13.523,12.238-11.269,5.7917-4.5075,17.383-4.8292,23.179,1.9317-10.304-2.8975-9.9792,8.0492-18.675,7.0833,2.2542,6.4392-3.5417,10.142-9.3334,12.234,3.7-1.7708,7.725-3.8633,9.0125-1.6096,3.2208-2.8167,9.6584-1.7708,11.271-0.32208,4.2625-1.3679,8.3708-0.32208,10.3,4.8292,5.7958,3.5417,9.6583,12.556,5.475,19.318-1.2875-7.0829-6.1167-6.7613-8.05-9.6588-4.5083,1.61-9.0167,1.61-10.304-1.2879-2.575,2.5758-11.267,4.8296-15.129,0.96584-1.45,5.7954-6.4417,10.625-12.238,10.625,1.6125,4.5071-2.8958,12.236-6.4375,16.098,5.475,2.8958,3.8625,9.3375,2.575,13.2,8.3708,1.2875,1.2875,8.6917,15.775,13.521-7.0792,2.2542-20.925,0-22.858-8.6917-7.0833-0.32083-11.913-7.4042-11.588-14.813-5.475-5.15-6.2792-12.554,1.2875-17.705-6.4417,1.9317-9.9834-8.3708-19.321-4.1854-4.6417,2.0825-16.9-1.4488-16.738-5.7954-1.9333,3.2196-13.683,1.9321-15.296-3.5412-3.8625,2.0925-12.879-1.4488-12.717-6.7613-4.9917,2.2538-11.75-1.7708-11.429-6.9221-4.6667-0.64375-5.15-4.8292-4.8292-8.3708-4.1875-1.9317-3.0583-5.9563-1.45-10.785-2.8958-3.2196-1.6083-7.7271,0.64583-11.913-3.2208-3.2196-2.575-7.0829-1.6125-11.59-15.454-1.2879-34.813-5.015-79.2-18.673-66.967-20.605-84.997,27.688-70.187,57.952,17.087,34.919-1.9317,42.5,3.8638,68.579,6.1171,1.2875,9.3367,6.4375,9.015,11.913,3.6208,0.15834,6.1967,3.5375,4.9088,9.9792,3.0588-0.5625,7.0034,0.32083,9.5788,2.8958,2.2538-4.1833,9.6588-5.15,13.523-0.32084,8.3688-0.64583,12.556,6.1167,12.235,14.488,4.5042,8.05,2.8958,17.871-1.9333,24.146,0.48334-3.3792,0-8.2084-0.15833-11.104-0.3-5.3292-7.7292-6.4417-6.9242-10.788-3.8633,0.32083-7.5663-1.7708-8.8538-4.6667-2.2538,1.9292-5.4733,2.575-8.21,1.6083,4.3462,1.9333,7.7271,9.6583,6.4392,14.808,2.2538,3.8667,1.7708,10.95-0.96583,14.008-1.2879,6.275-6.1171,8.5292-12.395,5.7917,3.5417-2.25,4.8292-6.275,4.6683-9.6583-2.2538-1.9292-3.3804-5.6333-3.5417-7.8875-6.2779,0.96667-14.971-4.3458-16.574-6.4458-13.831,0-25.043,11.213-25.043,25.046-0.64375-5.1542-7.1588-10.229-6.3542-14.575-3.8633-11.913,1.61-23.021,17.386-25.271-1.9317-4.5083,4.8292-9.1792,2.2538-14.329-3.2904-6.5792-9.3367-15.133-18.351-25.113,5.4733-9.3375,3.8633-21.892,0.64375-29.62-4.6233-11.096-9.015-8.3708-25.435,9.6579-26.76,29.383-62.46,21.25-94.012,40.567-8.3838,5.1333-16.741,7.0833-7.7267-1.9292,9.015-9.0167,32.84-18.029,48.293-25.758,28.94-14.471,53.445-38.635,63.104-85.64,22.697-110.46,106.24-74.05,159.04-53.445,49.571,19.346,40.567-24.469,15.454-50.869-30.183-31.732-24.146-56.664-9.9792-76.626,25.433-3.5412,74.213,5.3125,64.392,13.845z"/>
|
|
||||||
<path d="m644.82,448.48c15.217,0,27.554-12.333,27.554-27.55,0-15.218-12.338-27.554-27.554-27.554-15.217,0-27.554,12.336-27.554,27.554,0,15.217,12.338,27.55,27.554,27.55z"/>
|
|
||||||
</g>
|
|
||||||
<g fill="none">
|
|
||||||
<path d="m539.7,178.41c-6.1167,27.045-0.96667,39.279,8.05,51.191,18.629,24.621,33.483,80.811,12.233,117.51"/>
|
|
||||||
<g stroke-linecap="round">
|
|
||||||
<path d="m571.89,315.41c2.575-0.96583,7.4042-4.0242,8.5333-9.3367"/>
|
|
||||||
<path d="m573.82,303.66c0.80417-4.6683,8.0458-6.68,8.2083-11.67"/>
|
|
||||||
<path d="m573.98,285.46c-0.48334-4.8296,7.2458-9.1758,6.1167-14.005"/>
|
|
||||||
<path d="m569.8,268.08c-0.64584-2.7367,6.4375-7.8879,4.5083-12.234"/>
|
|
||||||
<path d="m564.49,251.18c-1.45-3.0588,3.3792-6.6004,1.2875-9.82"/>
|
|
||||||
<path d="m556.76,237.65c-0.48334-2.0925,2.4958-6.68,0.8875-9.4163"/>
|
|
||||||
<path d="m549.03,221.72c0.64167-0.805,3.2208-2.7367,2.1708-5.1513"/>
|
|
||||||
<path d="m543.72,210.05c1.0458-0.56375,4.1833-1.53,3.7833-3.8633"/>
|
|
||||||
<path stroke-linejoin="round" d="m382.58,513.57c-6.4392-2.2542-14.488,0.96667-16.098,6.4417"/>
|
|
||||||
<path stroke-linejoin="round" d="m371.31,525c0.805-5.4708,9.1758-7.8875,11.751-5.3125-5.3121-2.8958-7.8879,7.4042-3.2196,7.7292"/>
|
|
||||||
<path stroke-linejoin="round" d="m423.15,397.67c-3.8625,1.9321-4.9875,9.015,0,14.329"/>
|
|
||||||
<path stroke-linejoin="round" d="m428.94,399.28c-2.7333,2.2538-2.575,9.0146,1.45,10.625-3.3792-2.4146,0-6.6,2.4167-6.7612,2.4125-0.16084,4.0208,2.7367,1.125,5.6342"/>
|
|
||||||
<path stroke-linejoin="round" d="m655.12,415.21c-9.0125-2.4125-16.258,8.05-8.05,17.388-0.15833-9.0167,6.2792-14.971,14.167-13.363"/>
|
|
||||||
<path stroke-linejoin="round" d="m657.61,425.47c-2.2167,0-3.4625,1.7333-3.4625,3.4208,0,1.7708,1.5292,3.4625,4.025,3.4625,1.6125,0,2.9-1.85,2.9-3.3"/>
|
|
||||||
<path stroke-linejoin="round" d="m689.4,227.83c1.45,5.4733,9.0167,7.7271,14.971,6.4392"/>
|
|
||||||
<path stroke-linejoin="round" d="m704.37,230.73c-4.6667,0.16125-8.5292-4.1854-8.2083-7.8879,0,2.7367,6.2792,4.0246,8.2083,2.2538"/>
|
|
||||||
<path d="m384.83,414.57c-1.2875-3.2208,3.8638-6.4404,4.0246-9.4992,0.16125-3.0583,5.795-5.4729,11.59,0.32209"/>
|
|
||||||
<path d="m397.71,371.11c-1.1267,0.48292-2.0929,1.1267-3.0588,1.4488"/>
|
|
||||||
<path d="m408.82,388.65c-1.3688,0.0813-4.1854-0.08-5.715-1.1271"/>
|
|
||||||
<path d="m403.19,394.77c-1.1267,0.56417-3.6229,1.53-5.0717,1.8521"/>
|
|
||||||
<path d="m347.97,492c-0.16125,2.9,2.7367,7.0833,4.3462,8.3708"/>
|
|
||||||
<path d="m360.53,485.08c-1.61,2.4125-2.5754,6.6-1.61,9.4958"/>
|
|
||||||
<path d="m384.51,494.74c-2.8979-1.9333-0.96583-6.925-1.2879-10.142-0.32208-3.2208,3.3808-8.3708,10.625-4.025"/>
|
|
||||||
<path d="m357.47,476.39c2.8979-0.48333,5.9563-0.325,7.8879,0.47917"/>
|
|
||||||
<path d="m394.17,467.21c-1.2875,1.7708-1.6096,3.7042-1.7704,4.9917"/>
|
|
||||||
<path d="m407.69,466.89c-2.2538,0-4.1854,1.6083-5.1513,3.2208"/>
|
|
||||||
<path d="m376.46,384.47c2.5758,0.88584,9.2558,4.9904,9.4979,9.2567"/>
|
|
||||||
<path d="m403.83,363.54c-7.8875-0.16125-10.946-8.21-4.99-8.21"/>
|
|
||||||
<path d="m418,374.32c-3.0583,1.2879-1.6083,6.6,2.7375,9.1758"/>
|
|
||||||
<path d="m399.16,424.87c-1.5296-1.9292,0.48291-7.5625,5.4733-5.875"/>
|
|
||||||
<path d="m410.91,483.63c0.32-4.9083,6.52-7.8083,9.0158-2.2542"/>
|
|
||||||
<path d="m388.05,497.63c-0.40292-5.3917,2.3338-7.1625,4.7483-7.4833,2.4146-0.32084,5.8767,1.6875,7.4863,5.2292"/>
|
|
||||||
<path d="m340.08,501.66c0.32208-3.2208,3.0588-6.6,5.9562-6.1167"/>
|
|
||||||
<path d="m634.67,358.71c-2.0958,1.53-3.4625,8.3708,4.5042,9.015"/>
|
|
||||||
<path d="m622.44,369.98c0,0.80459,1.0458,1.9317,1.6917,2.4146"/>
|
|
||||||
<path d="m660.43,382.86c-2.0917-1.6096-7.4875,4.9104-2.575,9.6588"/>
|
|
||||||
<path d="m609.24,436.95c-1.2083-4.5875,3.0583-5.7958,7.0833-4.8292"/>
|
|
||||||
<path d="m598.94,404.43c2.4125-1.6096,4.8292-3.3804,7.8875-4.1854"/>
|
|
||||||
<path d="m597.65,422.13c0-3.8625,1.9292-7.0792,3.7-8.0458"/>
|
|
||||||
<path d="m611.81,377.71c-0.32083,4.6683,1.6125,9.1758,3.0625,11.59"/>
|
|
||||||
<path d="m650.13,378.03c-2.3375,0.725-4.4292,1.6096-5.3125,3.5417"/>
|
|
||||||
<path d="m647.55,391.23c1.1292-0.96583,2.4167-2.0925,2.9792-2.8975"/>
|
|
||||||
<path d="m708.4,250.69c0,4.5071-5.6333,6.9217-9.3333,4.0242"/>
|
|
||||||
<path d="m720.64,250.85c2.4917,1.9317,11.104,0.0812,9.0917-4.9092"/>
|
|
||||||
<path d="m710.17,276.77c-1.7708-0.32209-4.8292-2.2538-6.1167-3.8633"/>
|
|
||||||
<path d="m727.88,263.41c-2.8958,0.64375-4.8292,0-6.2792-0.64375"/>
|
|
||||||
<path d="m682.16,279.51c1.6083,0,5.4708-0.64417,8.1292-2.0117"/>
|
|
||||||
<path d="m677.33,251.02c-2.0917-0.24083-3.625,0.16125-4.8292,0.96584"/>
|
|
||||||
<path d="m709.77,258.9c-0.5625,2.0129-2.0125,5.1512-3.7833,6.5204"/>
|
|
||||||
<path stroke-linejoin="round" d="m671.86,265.99c4.025-1.7708,9.0167,11.912,18.675,7.0829"/>
|
|
||||||
<path stroke-linejoin="round" d="m691.34,258.9c-1.2875,1.7708-2.0917,4.5075-2.2542,6.9221"/>
|
|
||||||
</g>
|
|
||||||
<path d="m498.81,237.98c1.2875-0.16083,3.5417-0.64375,4.025-2.2538"/>
|
|
||||||
<path d="m333.16,387.85c4.8296,2.7367,8.2104,7.405,6.1175,14.327"/>
|
|
||||||
<path d="m554.5,223.17c1.45,0.96583,6.925,0.96583,9.9833-0.16083"/>
|
|
||||||
<path d="m568.35,226.39c-0.1625,2.2538,0.48333,10.785-3.8625,12.556"/>
|
|
||||||
<path d="m566.1,237.82c4.025,1.2879,12.075,0.80459,14.65-6.6"/>
|
|
||||||
<path d="m575.11,237.49c2.0917,3.2196,2.7333,9.4979-3.5417,12.878"/>
|
|
||||||
<path d="m576.72,242.81c4.6667,1.6096,15.454,1.7704,14.325-7.405"/>
|
|
||||||
<path d="m587.35,242.81c3.2208,4.5071,17.388,9.8196,15.133,0.48292"/>
|
|
||||||
<path d="m574.31,255.84c5.4708,1.2879,13.2-2.415,9.9792-12.073"/>
|
|
||||||
<path d="m599.74,248.6c0.80416,3.7025,18.833,7.5658,16.421-0.805"/>
|
|
||||||
<path d="m612.78,252.63c3.3833,7.7267,21.25,7.0829,15.617-3.2196"/>
|
|
||||||
<path d="m625.5,257.45c3.5417,4.3467,19.321,1.7708,13.042-8.6929"/>
|
|
||||||
<path d="m638.37,257.29c9.8208,7.405,21.25-3.2196,8.8542-10.947"/>
|
|
||||||
<path d="m652.86,254.88c8.6958,6.9221,19.321-5.6346,11.754-9.1758"/>
|
|
||||||
<path d="m584.12,251.98c2.7375,0.805,8.5333,0.48292,9.8208-4.5071"/>
|
|
||||||
<path d="m591.77,250.85c-0.32083,7.325,11.996,10.142,15.133,1.6908"/>
|
|
||||||
<path d="m602.8,257.13c2.2542,4.8292,13.038,6.7608,14.808-0.16125"/>
|
|
||||||
<path d="m615.84,260.19c1.7708,4.8296,11.108,4.3467,13.683-0.64375"/>
|
|
||||||
<path d="m626.14,262.77c2.8958,6.2779,14.808,6.2779,17.546-2.8979"/>
|
|
||||||
<path d="m641.6,263.89c4.6667,2.8979,14.65,1.7708,13.842-7.2438"/>
|
|
||||||
<path d="m653.51,263.09c6.9208,5.6346,16.742,0.16125,11.913-9.3367"/>
|
|
||||||
<path d="m664.94,270.49c3.7042-0.64375,5.6333-8.0488,1.7708-9.9804"/>
|
|
||||||
<path d="m579.14,271.78c7.725-4.1854,9.175-11.268,3.8625-18.19"/>
|
|
||||||
<path d="m585.74,264.7c4.8292,2.8975,14.004-0.16083,15.613-7.2442"/>
|
|
||||||
<path d="m592.34,265.5c2.7333,3.5413,3.2167,7.8879-0.325,11.912"/>
|
|
||||||
<path d="m594.59,270.01c8.5292-5.3121,19.154,4.5075,11.267,10.464"/>
|
|
||||||
<path d="m604.41,269.53c1.9333-0.48291,5.3125-4.0242,5.6333-8.0488"/>
|
|
||||||
<path d="m608.27,273.23c3.5417-3.7025,27.692,3.8638,12.396,11.59"/>
|
|
||||||
<path d="m619.54,263.09c4.6667,1.7708,7.0833,8.3713,0,10.625"/>
|
|
||||||
<path d="m625.66,279.19c5.15-5.3121,21.25-1.9317,15.454,4.8296"/>
|
|
||||||
<path d="m637.25,277.09c2.8958-9.82,20.121-3.7025,14.488,0.32167"/>
|
|
||||||
<path d="m633.71,267.27c0.48333,1.9321,0.64166,6.7613-2.575,9.3371"/>
|
|
||||||
<path d="m648.2,265.34c0.64167,1.61,0.48334,4.6683-0.96667,6.6004"/>
|
|
||||||
<path d="m659.14,265.5c0.96666,1.7704,2.575,5.1513-0.96667,7.8879"/>
|
|
||||||
<path d="m521.35,191.45c0.15833,9.1754,3.3792,15.293,15.775,9.4975"/>
|
|
||||||
<path d="m525.21,202.4c-6.1167,8.21,0.80417,17.064,12.879,8.21"/>
|
|
||||||
<path d="m506.37,206.42c8.3708,9.0146,23.342,2.4146,13.683-11.269"/>
|
|
||||||
<path d="m530.2,214.15c-1.6125,8.8538,5.6333,10.625,11.588,6.6"/>
|
|
||||||
<path d="m498.97,207.87c1.525,8.9013,10.625,15.937,19.479,10.464"/>
|
|
||||||
<path d="m509.92,220.11c0,12.718,17.546,14.166,21.571,0.96625"/>
|
|
||||||
<path d="m525.21,229.12c5.6333,11.59,17.867,6.9221,21.892-0.16084"/>
|
|
||||||
<path d="m512.81,210.61c2.2542,5.6342,6.7625,11.913,17.225,7.2442"/>
|
|
||||||
<path d="m480.62,207.87c1.45,4.6683,9.8208,10.303,19.479,3.8633"/>
|
|
||||||
<path d="m486.57,213.83c-5.1542,7.5658,5.15,14.649,17.546,3.3804"/>
|
|
||||||
<path d="m492.69,223.17c2.0917,10.625,6.275,19.157,21.408,5.4733"/>
|
|
||||||
<path d="m506.53,234.11c5.475,6.7608,13.846,10.946,21.733-0.48292"/>
|
|
||||||
<path d="m534.06,236.04c-0.48333,8.0488,1.125,12.073,7.4042,11.751,4.95-0.25334,9.6584-4.1854,12.396-8.3708"/>
|
|
||||||
<path d="m540.34,247.8c-0.1625,9.1758,7.0792,16.42,20.604,7.0833"/>
|
|
||||||
<path d="m545.97,258.58c-2.575,6.9221,5.15,18.19,20.283,12.395"/>
|
|
||||||
<path d="m513.94,240.23c-0.9625,8.8538,7.2458,14.81,20.446,3.3804"/>
|
|
||||||
<path d="m520.38,250.05c0.48334,7.2442,8.6917,15.937,20.767,3.3804"/>
|
|
||||||
<path d="m526.17,259.23c-0.96667,12.395,10.463,15.937,20.121,6.4392"/>
|
|
||||||
<path d="m508.95,250.05c2.575,0.16125,4.6667-2.0925,5.9542-3.7025"/>
|
|
||||||
<path d="m514.42,259.06c2.2542,0.48292,6.1208-1.61,7.4083-4.1854"/>
|
|
||||||
<path d="m520.06,273.71c2.575,2.7367,11.267,0.805,12.392-2.8975"/>
|
|
||||||
<path d="m529.72,273.55c4.8292,11.268,17.704,10.785,23.017-1.9317"/>
|
|
||||||
<path d="m550.32,276.13c2.4125,6.6,8.5333,10.785,18.513,8.5317"/>
|
|
||||||
<path d="m555.15,282.89c-5.6333,9.1758,1.7708,19.961,14.325,9.3367"/>
|
|
||||||
<path d="m558.21,296.57c-0.64167,5.795,4.6708,12.395,11.913,13.2"/>
|
|
||||||
<path d="m534.38,279.67c-1.9333,13.039,7.4042,19.318,19.158,12.395"/>
|
|
||||||
<path d="m520.7,285.95c3.0583,2.4146,8.5333,2.7367,13.683,0.805"/>
|
|
||||||
<path d="m540.66,294.32c-2.9,10.947,8.3708,18.835,18.029,6.6"/>
|
|
||||||
<path d="m525.05,287.72c0.1625,5.6342,5.6375,11.751,15.133,9.9804"/>
|
|
||||||
<path d="m566.74,308.97c-6.4417,4.3462-7.7292,12.073,1.2875,17.063"/>
|
|
||||||
<path d="m550.96,306.71c0.325,6.6,3.3833,10.303,10.625,10.946"/>
|
|
||||||
<path d="m541.47,303.33c-9.6583,8.8542-0.1625,19.157,11.267,10.464"/>
|
|
||||||
<path d="m548.23,316.53c-3.2208,10.142,8.8542,16.259,15.292,5.9562"/>
|
|
||||||
<path d="m528.27,294.96c-3.5417,9.9808,0.96667,16.581,9.175,15.937"/>
|
|
||||||
<path d="m515.55,293.03c0.48334,5.9562,5.6333,8.0488,11.429,6.7612"/>
|
|
||||||
<path d="m519.25,299.31c-4.3458,8.3708,2.2542,12.878,10.95,9.6588"/>
|
|
||||||
<path d="m556.6,327.64c-1.45,5.3121-0.64583,9.1758,7.2417,10.947"/>
|
|
||||||
<path d="m557.08,335.21c-9.5,4.3467-10.304,13.523-2.9,19.478"/>
|
|
||||||
<path d="m549.43,324.99c-4.9875,4.5075-4.025,12.314,1.45,15.373"/>
|
|
||||||
<path d="m507.18,295.61c-5.475,5.3933-0.24167,20.283,11.829,12.155"/>
|
|
||||||
<path d="m538.57,314.44c-7.4083,6.1175-4.025,17.225,8.2083,14.166"/>
|
|
||||||
<path d="m526.33,309.77c-3.8625,10.947-0.15834,14.81,8.5333,14.971"/>
|
|
||||||
<path d="m499.13,295.12c-6.6,4.99-4.8292,12.073-1.9292,15.293,2.8958,3.2196,8.3667,1.7708,10.138-2.4146"/>
|
|
||||||
<path d="m485.28,290.78c-7.4042,9.4979,0,20.766,10.467,17.386"/>
|
|
||||||
<path d="m524.89,318.95c-7.5667,2.7367-13.338,9.6071-8.6958,15.615,2.7375,3.5417,14.65,4.0246,18.029-9.6588"/>
|
|
||||||
<path d="m511.2,310.09c-4.3458,6.2783-2.9,12.235,5.15,15.293"/>
|
|
||||||
<path d="m510.72,321.85c-4.6708,2.5758-7.7292,5.6346-6.6,11.269"/>
|
|
||||||
<path d="m500.26,312.03c-1.7708,7.5663,0.32083,12.235,4.9875,14.488"/>
|
|
||||||
<path d="m500.1,321.04c-7.2458-0.48292-10.946,2.5754-8.5333,9.6588"/>
|
|
||||||
<path d="m492.21,322.81c-7.0833-2.5758-8.2125-8.6929-5.1542-15.132"/>
|
|
||||||
<path d="m486.09,317.18c-7.7292,0.32208-11.108,4.1854-11.108,9.4979"/>
|
|
||||||
<path d="m475.62,287.07c-5.6333,2.4146-7.4042,9.9808-5.3125,14.166,2.0958,4.1854,8.6958,4.5075,12.721,1.7708"/>
|
|
||||||
<path d="m459.85,281.12c-5.15,5.7954,0.80417,17.064,9.9834,14.327"/>
|
|
||||||
<path d="m446.65,276.61c-4.8292,6.7608,0.48333,18.03,12.879,14.81"/>
|
|
||||||
<path d="m460.17,322.81c-1.2875-8.0492,7.0833-13.361,17.388-2.8979"/>
|
|
||||||
<path d="m472.57,303.66c-3.0583,2.7367-4.5042,7.0829-4.025,10.625"/>
|
|
||||||
<path d="m433.45,272.75c-5.3125,9.015,1.1292,17.225,12.558,14.005"/>
|
|
||||||
<path d="m463.23,295.12c-7.5667,7.5658-4.9917,15.132,0.64167,19.478"/>
|
|
||||||
<path d="m458.4,303.98c-11.429,0.16084-12.071,13.361-2.7333,17.547"/>
|
|
||||||
<path d="m449.71,290.78c-4.6667,3.2196-6.1167,12.073,1.9333,15.615"/>
|
|
||||||
<path d="m449.39,310.58c-4.8292-2.2538-10.625,0.48292-10.142,6.1171"/>
|
|
||||||
<path d="m442.14,310.74c-4.3458-10.303-17.063-8.5317-15.933,2.0929"/>
|
|
||||||
<path d="m445.68,298.02c-2.7333,0.48291-8.2083,2.0925-10.3,6.2783"/>
|
|
||||||
<path d="m436.19,286.43c-5.15,5.795-1.1292,12.717,3.0583,14.166"/>
|
|
||||||
<path d="m420.9,270.17c-0.96667,6.9221,1.7708,10.303,10.463,9.6588"/>
|
|
||||||
<path d="m423.95,279.03c-3.3833,8.3708,1.125,12.073,9.8167,11.59"/>
|
|
||||||
<path d="m425.88,289.33c-5.15,6.1171-1.6083,12.718,3.3792,15.454"/>
|
|
||||||
<path d="m423.47,297.06c-9.175-1.1271-10.625,9.4975-7.5667,14.488"/>
|
|
||||||
<path d="m416.06,269.37c-5.6321,2.4146-8.8517,9.4975-5.7933,13.844,3.06,4.3463,9.1767,2.8975,12.556,0.64375"/>
|
|
||||||
<path d="m412.2,285.14c-4.6675,7.0829-0.48333,12.395,4.5083,14.488"/>
|
|
||||||
<path d="m394.17,268.56c-3.7021,3.8633-1.4488,11.752,7.5663,11.913,7.2579,0.13,10.946-6.7612,8.6929-11.59"/>
|
|
||||||
<path d="m400.45,280.47c-2.8975,6.4392-1.1267,13.361,9.8196,12.234"/>
|
|
||||||
<path d="m414.94,302.85c-6.7608-3.0583-15.776,0-11.912,8.0492"/>
|
|
||||||
<path d="m402.06,291.42c-2.7367,3.8633-1.7708,9.3367,1.2875,12.717"/>
|
|
||||||
<path d="m401.58,301.72c-4.5075,0.805-8.8542,3.2196-6.1175,10.303"/>
|
|
||||||
<path d="m394.81,306.23c-5.795-1.7708-13.2,2.4146-8.6929,8.3708"/>
|
|
||||||
<path d="m385.16,308.97c-4.9904-0.80501-10.946,4.5071-6.1171,9.8196"/>
|
|
||||||
<path d="m377.11,314.44c-4.5075,1.1271-9.8196,6.2783-5.1517,10.303"/>
|
|
||||||
<path d="m399.81,289.17c-6.4392,2.8975-7.0833,10.142-4.0246,15.454"/>
|
|
||||||
<path d="m393.04,275.81c-9.6588,3.7025-9.4975,16.581,1.1267,20.605"/>
|
|
||||||
<path d="m389.66,293.51c-5.795,3.3804-6.9221,9.8196-3.0583,14.005"/>
|
|
||||||
<path d="m379.52,270.98c-3.8638,1.2879-3.5417,13.2,6.7613,12.878"/>
|
|
||||||
<path d="m368.9,275c-7.7271,5.1513,1.6096,18.19,14.166,8.8538"/>
|
|
||||||
<path d="m376.14,287.07c-1.1267,5.3125,0.32209,11.108,8.8542,11.752"/>
|
|
||||||
<path d="m376.62,294.16c-6.1175,2.2533-7.2442,14.81,3.8633,15.776"/>
|
|
||||||
<path d="m357.15,282.73c-7.8879,7.2442,6.4392,13.522,11.752,3.0588"/>
|
|
||||||
<path d="m346.2,294.8c-3.8638,4.6683,9.6583,16.903,15.615-3.5417"/>
|
|
||||||
<path d="m363.26,290.94c0.32167,4.8292,3.2196,7.7267,9.1754,8.0488"/>
|
|
||||||
<path d="m372.28,303.66c-9.4975,1.4488-12.556,13.361-1.9317,15.937"/>
|
|
||||||
<path d="m354.73,302.05c-0.32208,4.5071,4.3463,8.2096,9.6588,7.405"/>
|
|
||||||
<path d="m369.22,319.27c-8.6925,1.9317-9.8196,13.2-2.0925,12.556"/>
|
|
||||||
<path d="m363.1,342.29c-7.2446-2.1729-7.4054-10.786-0.96625-14.005"/>
|
|
||||||
<path d="m357.15,334.72c-6.1167,3.7025-3.7021,12.556-0.48292,13.844,3.2196,1.2879,5.7954-0.32166,6.1175-3.0583"/>
|
|
||||||
<path d="m362.3,357.9c0.64417,4.1854-14.891,2.5758-6.9217-10.463"/>
|
|
||||||
<path d="m355.29,358.63c-5.2313,8.21,3.3008,14.89,8.6929,7.8883"/>
|
|
||||||
<path d="m356.02,368.53c-2.0929,6.6004,5.875,11.35,11.026,6.1983"/>
|
|
||||||
<path d="m338.63,306.71c-2.8979,5.9563,11.59,8.2096,12.556-4.0246"/>
|
|
||||||
<path d="m334.61,315.57c-2.8975,11.59,18.995,9.1758,13.361-5.7954"/>
|
|
||||||
<path d="m348.45,317.5c3.0583,1.7708,12.235,1.9317,14.488-7.8879"/>
|
|
||||||
<path d="m356.34,317.82c0.64375,3.0583,3.3804,6.7608,5.9558,7.8879"/>
|
|
||||||
<path d="m345.88,320.88c-0.96583,6.2783,5.3121,11.43,12.556,10.947"/>
|
|
||||||
<path d="m347,327c-3.5412,4.8296-4.6683,14.166,6.4396,14.81"/>
|
|
||||||
<path d="m330.1,328.61c-1.7708,4.9904,8.6929,10.142,14.81,1.9317"/>
|
|
||||||
<path d="m326.88,341.32c-0.88625,3.7838,8.5317,8.8542,13.844-7.2438"/>
|
|
||||||
<path d="m336.54,342.29c2.2538,4.0242,9.8196,7.2438,14.488-0.64417"/>
|
|
||||||
<path d="m343.46,346.48c-1.9317,5.6342,3.3808,10.946,9.8196,9.3367"/>
|
|
||||||
<path d="m331.39,345.19c-1.2879,8.0488,8.0488,12.717,13.844,8.5317"/>
|
|
||||||
<path d="m325.27,348.73c-2.7362,10.303,10.464,14.166,15.454,6.4388"/>
|
|
||||||
<path d="m337.35,358.23c0.48333,5.7954,9.4983,10.785,16.581,5.9563"/>
|
|
||||||
<path d="m321.25,363.06c-0.64375,2.5754,10.142,5.1513,11.751-3.8638"/>
|
|
||||||
<path d="m327.53,365.31c2.5754,6.6004,11.268,8.21,16.259,0.16125"/>
|
|
||||||
<path d="m340.89,368.69c1.1271,6.1171,9.015,9.4975,15.937,5.3121"/>
|
|
||||||
<path d="m359.72,376.42c-1.7704,8.21,6.7613,14.81,12.073,10.303"/>
|
|
||||||
<path d="m346.04,374.97c-2.5754,9.015,8.6929,14.166,14.971,9.1758"/>
|
|
||||||
<path d="m332.52,370.46c-0.64375,8.3708,5.9562,13.361,13.522,9.6583"/>
|
|
||||||
<path d="m318.19,371.27c-2.2542,5.4733,9.6588,9.9808,15.293,5.3125"/>
|
|
||||||
<path d="m310.78,386.24c3.0588,3.5412,13.683,0,14.649-7.8879"/>
|
|
||||||
<path d="m322.54,384.14c3.8633,4.5075,13.039,6.9221,16.742-2.7367"/>
|
|
||||||
<path d="m336.06,386.4c-0.16125,6.9221,12.235,11.913,16.259-0.805"/>
|
|
||||||
<path d="m366.88,388.09c-1.1271,3.3808,1.53,8.7729,7.0829,9.4167"/>
|
|
||||||
<path d="m356.66,386c-0.805,3.8633,4.8296,9.2554,10.786,7.0829"/>
|
|
||||||
<path d="m368.58,394.69c-1.6096,4.1854-0.24208,10.221,5.3921,10.141"/>
|
|
||||||
<path d="m369.14,402.5c-4.1854,3.5412-2.415,9.8204,3.6229,10.062"/>
|
|
||||||
<path d="m366.97,408.45c-5.9563,4.0225-3.8633,12.877,4.0242,12.398"/>
|
|
||||||
<path d="m348.94,391.39c0,8.6929,10.785,9.9804,12.878,1.9317"/>
|
|
||||||
<path d="m357.63,398.47c-1.61,5.1512,2.5754,10.142,9.1754,8.6929"/>
|
|
||||||
<path d="m358.92,460.61c1.4492,2.0958,7.405-1.4458,5.7954-4.9875s-7.9192-1.6167-7.2442,2.0917"/>
|
|
||||||
<path d="m363.26,454.17c0.80459-7.0833-7.5663-8.2083-9.6588-2.0917"/>
|
|
||||||
<path d="m356.66,448.54c2.0929-3.5417-4.99-8.3708-7.8879-3.2208"/>
|
|
||||||
<path d="m351.35,443.22c1.9317-5.1542-6.1171-7.4042-6.7613-2.7375"/>
|
|
||||||
<path d="m342.82,433.72c0.96625-2.575,9.9808-0.96667,6.1175,4.3458"/>
|
|
||||||
<path d="m355.86,444.51c3.5417-3.2208-2.4142-9.8208-6.1171-7.4042"/>
|
|
||||||
<path d="m379.68,454.33c-2.8179,0.32084-5.7158,2.1708-3.6229,8.1292,1.4512,4.1333,7.6471,4.3458,8.5317,1.85"/>
|
|
||||||
<path d="m375.58,457.31c-2.7367-1.7708-8.6929,1.2083-5.9562,7.0042,2.0604,4.3625,7.2442,2.575,8.0488,0.32083"/>
|
|
||||||
<path d="m360.2,465.6c1.3675,2.4125,8.2088,1.3708,9.4167-1.2875"/>
|
|
||||||
<path d="m364.87,457.63c1.4488-0.96667,4.1042,0.2375,4.6683,1.4458"/>
|
|
||||||
<path d="m364.39,417.95c-4.6683,3.0583-1.7708,12.396,5.4733,9.9792"/>
|
|
||||||
<path d="m362.94,425.52c-3.7025,2.8958-0.32208,11.913,6.6,8.5333"/>
|
|
||||||
<path d="m364.07,434.05c-2.5754,2.575-0.0808,9.7375,6.6004,8.3708"/>
|
|
||||||
<path d="m363.1,437.59c-1.4492-0.64584-5.2325-0.1625-6.8425,2.25"/>
|
|
||||||
<path d="m358.92,404.99c-3.5412,3.3804-1.8517,10.304,4.7483,10.866"/>
|
|
||||||
<path d="m357.63,412.07c-5.0717,2.4958-5.0717,12.554,5.07,12.958"/>
|
|
||||||
<path d="m357.23,423.42c-2.8167,2.2542-1.4488,10.946,5.7954,9.8167"/>
|
|
||||||
<path d="m359.56,432.92c-1.0471,1.0458-1.2083,3.7042-0.32208,4.8292"/>
|
|
||||||
<path d="m356.34,429.62c-2.5754,0.0792-5.9562,1.9333-6.8425,4.5875"/>
|
|
||||||
<path d="m344.83,424.87c0.96583-2.575,8.9354-2.4125,9.4979,5.1542"/>
|
|
||||||
<path d="m355.13,421.01c-1.1271,0.24167-3.2996,1.2875-3.8633,3.4625"/>
|
|
||||||
<path d="m351.67,397.43c-3.4617,3.1388-5.1512,13.04,5.3921,14.97"/>
|
|
||||||
<path d="m344.67,417.87c0-2.6583,7.1642-4.9125,9.6588-0.96666"/>
|
|
||||||
<path d="m340.08,403.46c1.0458,2.0129,6.0362,4.7496,9.095,2.4958"/>
|
|
||||||
<path d="m314.16,387.69c-0.16042,4.6683,3.7029,8.8538,9.015,8.21,5.3121-0.64417,6.4392-5.3125,4.8292-8.3713"/>
|
|
||||||
<path d="m323.98,396.06c-3.5417,4.3463,0.805,10.464,4.8292,8.6929"/>
|
|
||||||
<path d="m328.01,393c2.0929-0.805,9.015-1.7708,11.108,1.4488"/>
|
|
||||||
<path d="m305.63,394.29c-1.61,2.4146,8.3712,4.8296,11.751,0.16083"/>
|
|
||||||
<path d="m314,396.86c-0.3225,3.2196,1.2875,8.6925,9.4975,6.4392"/>
|
|
||||||
<path d="m324.79,408.29c1.2875-2.7367-4.8296-7.2438-9.4979-2.2538-4.6683,4.9904,0.64375,10.625,3.5417,8.6917"/>
|
|
||||||
<path d="m303.38,397.51c-2.4146,4.1854,6.9221,11.833,12.235,4.7496"/>
|
|
||||||
<path d="m297.18,404.75c-3.3804,3.4617,0.805,9.8208,5.8763,7.8875,5.0704-1.9313,4.5875-7.2438,3.3808-8.6113"/>
|
|
||||||
<path d="m290.66,411.19c-2.7367,2.4942-0.0813,8.3692,3.7025,8.3692,3.7821,0,6.1171-2.975,5.3921-6.7583"/>
|
|
||||||
<path d="m306.03,410.71c-0.48333,3.7021,4.99,6.2771,8.5317,2.8188"/>
|
|
||||||
<path d="m314.73,406.76c0.48292-0.805,0.0813-2.1742-0.72334-2.8179"/>
|
|
||||||
<path d="m284.79,416.18c-3.1383,2.4958,3.6229,9.4167,7.8879,3.0583"/>
|
|
||||||
<path d="m309.01,414.81c-2.0129,1.9292,1.2067,7,4.4262,5.4708"/>
|
|
||||||
<path d="m297.99,418.35c0.48292,3.4583,7.2442,6.0333,11.51,0.725"/>
|
|
||||||
<path d="m301.69,421.81c-1.0458,2.175,1.0471,5.6375,3.6225,5.1542"/>
|
|
||||||
<path d="m365.76,441.7c-2.4942,4.9083,5.4733,10.625,11.269,4.6667"/>
|
|
||||||
<path d="m371.55,449.02c-1.2067,2.6542,0.24209,6.3583,2.4146,7.725"/>
|
|
||||||
<path d="m363.99,454.57c0.56417-2.4167,4.0242-4.6708,7.1642-3.5417"/>
|
|
||||||
<path d="m359.8,448.21c0.48292-2.1708,3.3804-4.3458,5.5542-3.7792"/>
|
|
||||||
<path d="m549.35,347.76c-11.429,0.16125-6.6,18.513,3.2208,14.81"/>
|
|
||||||
<path d="m545.65,361.29c-2.2542,3.7025,2.0917,9.5788,6.9208,6.1171"/>
|
|
||||||
<path d="m551.29,368.13c-3.3833,5.6342,8.6917,14.246,13.521,5.3921"/>
|
|
||||||
<path d="m560.95,376.9c0.15834,5.3125,15.613,8.6929,13.363-1.9317"/>
|
|
||||||
<path d="m572.86,380.76c3.7,6.2779,17.546,6.9221,16.096-2.4146"/>
|
|
||||||
<path d="m585.9,384.79c2.9,4.1854,16.421,6.7608,15.938-1.9321"/>
|
|
||||||
<path d="m531,331.83c1.9292,4.9904,8.5292,6.7613,15.775,3.8633"/>
|
|
||||||
<path d="m526.82,335.37c4.5083,2.8975-2.0917,16.098-9.0125,10.785"/>
|
|
||||||
<path d="m526.82,343.58c4.9917,2.415,11.108,0.64417,12.879-6.4392"/>
|
|
||||||
<path d="m536.64,342.61c0.48334,3.7025,5.7958,6.6004,12.717,5.1512"/>
|
|
||||||
<path d="m524.24,346.48c6.4417,5.4733-2.8958,16.742-7.0833,11.59"/>
|
|
||||||
<path d="m526.66,350.66c3.0583,2.2538,10.946,0.96584,11.75-4.9904"/>
|
|
||||||
<path d="m534.87,350.66c0.64583,3.8633,3.7042,5.3121,8.05,5.4733"/>
|
|
||||||
<path d="m524.89,355.97c3.2167,4.5075,11.267,5.7954,14.808-0.16083"/>
|
|
||||||
<path d="m536.15,359.19c-0.32083,4.3467,4.5083,7.8879,9.5,6.9221"/>
|
|
||||||
<path d="m518.61,368.85c4.1833,2.0925,8.6917-5.795,5.15-11.268"/>
|
|
||||||
<path d="m523.44,377.22c4.9917,0.32208,5.6333-7.2438,0.96667-11.43"/>
|
|
||||||
<path d="m534.87,384.14c4.1875-0.96583,2.8958-10.142-7.2458-10.947"/>
|
|
||||||
<path d="m547.58,390.91c4.025-1.1271,0.80417-11.269-10.3-10.625"/>
|
|
||||||
<path d="m562.88,394.45c2.7333-4.1854-6.2792-11.268-13.683-7.5658"/>
|
|
||||||
<path d="m570.44,400.24c4.9917,1.4488,8.3708-11.751-7.4042-9.6588"/>
|
|
||||||
<path d="m579.62,400.24c4.35-1.1267,7.4084-9.015-5.3083-6.4392"/>
|
|
||||||
<path d="m589.28,400.89c3.8625,1.9321,5.6333-9.3367-6.1208-6.2779"/>
|
|
||||||
<path d="m524.4,365.79c4.8292,2.7367,12.396-0.48291,11.75-6.6"/>
|
|
||||||
<path d="m534.22,364.51c1.6125,2.8975,0.96667,8.5317-2.0917,9.9804"/>
|
|
||||||
<path d="m534.7,371.27c3.2208,1.2879,7.5667,0.16125,10.142-4.99"/>
|
|
||||||
<path d="m540.34,371.27c0.9625,2.2538,1.2875,6.7613-0.80833,9.015"/>
|
|
||||||
<path d="m541.15,375.13c3.5417,1.9317,7.725-0.64417,9.4958-4.3467"/>
|
|
||||||
<path d="m548.39,374c2.575,1.61,4.8292,9.1758,0.48333,12.235"/>
|
|
||||||
<path d="m551.29,382.7c3.0583,0.16083,7.5667,0.16083,10.463-3.7025"/>
|
|
||||||
<path d="m559.66,381.09c2.7375,0.805,5.9542,5.3125,4.8292,9.3371"/>
|
|
||||||
<path d="m564.65,388.97c3.0625-0.32209,8.3708-2.415,9.8208-6.1175"/>
|
|
||||||
<path d="m573.02,385.27c2.5792,1.4488,4.35,4.5071,4.025,8.0488"/>
|
|
||||||
<path d="m577.04,390.74c3.0583-0.16084,5.7958-1.7704,6.6-5.1513"/>
|
|
||||||
<path d="m582.84,387.85c2.2542,0.805,4.9917,3.3804,5.1542,6.4392"/>
|
|
||||||
<path d="m587.67,392.35c2.2542-0.32209,3.8625-1.7708,5.3125-4.0246"/>
|
|
||||||
<path d="m599.1,388.01c2.9,2.8979-0.9625,12.557-6.9208,10.786"/>
|
|
||||||
<path d="m537.28,192.9c-5.9583,3.5412-22.863,2.4146-14.492-11.59"/>
|
|
||||||
<path d="m538.89,183.4c-11.75,4.6683-26.242-4.3462-11.108-14.166"/>
|
|
||||||
<path d="m523.76,166.02c-9.8208,0-16.421,15.776-3.2167,21.249"/>
|
|
||||||
<path d="m485.61,172.62c-2.575,4.99,6.6,10.463,12.879,5.4733,4.8625-3.8662,4.5042-14.327,1.6083-18.352"/>
|
|
||||||
<path d="m480.62,184.53c-3.2208,10.624,20.446,11.268,16.742-5.6346"/>
|
|
||||||
<path d="m479.33,200.31c0.80417,8.0488,22.7,5.4733,15.613-10.786"/>
|
|
||||||
<path d="m497.52,185.01c1.7708,2.4146,6.6,6.6,14.808,5.795"/>
|
|
||||||
<path d="m501.38,173.58c0.725,2.8975,5.6333,5.1512,11.913,2.9788"/>
|
|
||||||
<path d="m281.73,418.51c-5.5533,3.9458,2.9788,10.142,6.1171,3.3"/>
|
|
||||||
<path d="m277.38,421.57c-5.5529,3.9417,2.9788,10.138,6.1175,3.2958"/>
|
|
||||||
<path d="m272.79,424.55c-5.5546,3.9458,2.9775,10.142,6.1171,3.3"/>
|
|
||||||
<path d="m267.96,427.29c-5.3125,2.8167,0.88458,9.7375,6.2779,3.6208"/>
|
|
||||||
<path d="m262.73,429.95c-5.3125,2.8125,0.88584,9.7375,6.2783,3.6208"/>
|
|
||||||
<path d="m289.7,421.65c-0.0813,4.1042,7.7271,5.7958,10.543-0.325"/>
|
|
||||||
<path d="m294.61,425.44c-2.4146,3.0583,2.0129,6.8417,4.4275,5.4708"/>
|
|
||||||
<path d="m284.22,424.87c-0.24208,3.4625,6.5188,5.475,9.8196,1.6917"/>
|
|
||||||
<path d="m287.93,428.5c-2.1738,2.8167,2.0925,6.6,4.8292,5.4708"/>
|
|
||||||
<path d="m279.72,428.01c0.24083,2.7375,4.1042,5.875,8.29,4.1042"/>
|
|
||||||
<path d="m282.21,431.71c-1.61,1.45-0.80459,4.8333,1.4488,5.8792"/>
|
|
||||||
<path d="m273.84,431.47c-0.64375,2.4958,3.6225,6.925,7.9688,4.025"/>
|
|
||||||
<path d="m274.72,434.37c-2.5754,2.0125-2.2538,5.0708,1.0458,5.4708"/>
|
|
||||||
<path d="m268.53,434.05c-0.32167,1.6875,1.8521,4.425,4.5888,4.1042"/>
|
|
||||||
<path d="m254.76,433.89c-2.5754,1.3667,4.0246,8.3708,8.1288,1.85"/>
|
|
||||||
<path d="m248.4,436.78c-3.2196,1.5333,4.7492,9.2584,8.2913,1.3708"/>
|
|
||||||
<path d="m269.25,436.46c-2.4958,0.5625-4.1054,4.1875-2.0129,5.6333"/>
|
|
||||||
<path d="m261.12,437.75c-0.32208,1.45,2.7367,3.8625,5.2329,2.9792"/>
|
|
||||||
<path d="m259.03,438.4c-2.4146,1.5292-1.1271,5.7917,1.6908,5.15"/>
|
|
||||||
<path d="m250.42,441.21c-2.2538,1.6875-0.725,5.0708,2.4146,4.2667"/>
|
|
||||||
<path d="m254.52,440.97c0.0813,0.88333,2.0929,2.2542,3.7838,1.6917"/>
|
|
||||||
<path d="m242.61,439.52c-2.8162,1.2083-2.6554,8.2917,6.8425,4.4292"/>
|
|
||||||
<path d="m236.25,442.34c-3.9446,1.9333-2.6567,7.2458,5.9562,2.175"/>
|
|
||||||
<path d="m242.93,444.92c-1.0458,0.80416-2.1725,4.3458,1.7708,2.975"/>
|
|
||||||
<path d="m235.69,446.6c-1.6096,1.45-0.5625,4.4292,2.9792,3.3"/>
|
|
||||||
<path d="m227.4,447.09c-2.8975,1.6917,3.4604,3.9458,7.7271-0.5625"/>
|
|
||||||
<path d="m229.33,449.18c-1.2883,1.2875-1.2883,5.0708,2.0925,3.7042"/>
|
|
||||||
<path d="m221.12,450.71c-1.9317,1.45,1.3679,3.3833,7.405,0.725"/>
|
|
||||||
<path d="m223.53,452.8c-2.2538,1.85-2.0129,4.1833,1.2875,3.4583"/>
|
|
||||||
<path d="m216.85,453.85c-2.4946,2.2542,1.1267,3.7833,5.4733,1.9292"/>
|
|
||||||
<path d="m216.93,456.35c-4.2667,1.9292-2.415,5.4708,0.24084,4.1042"/>
|
|
||||||
<path d="m359.4,468.66c-0.98917,2.1292,2.2538,3.8625,5.3125,3.3792,2.9379-0.4625,5.7483-2.8833,3.5413-6.275"/>
|
|
||||||
<path d="m368.41,469.95c2.8975,2.2542,8.0488-0.32083,8.0488-3.7042"/>
|
|
||||||
</g>
|
|
||||||
<g fill="#fff">
|
|
||||||
<path d="m545.97,128.83c-12.879-6.4392-39.6-18.352-47.167-8.6929,6.9208-2.8975,27.204,0.16125,43.946,15.615l3.2208-6.9221z"/>
|
|
||||||
<path d="m553.78,128.15c-14.892-17.347-23.663-13.464-34.371-19.439-10.058-5.6142-26.079-6.7612-29.183,2.1671,14.696-7.1575,28.188,3.8488,36.475,5.1804,11.383,1.8279,17.808,10.628,21.138,14.675l5.9417-2.5833z"/>
|
|
||||||
<path d="m609.88,125.93c-7.7292-17.708-24.254-13.083-31.554-20.605-10.621-10.946-37.504-21.088-48.613-13.522,24.467-1.2879,34.888,16.865,47.971,23.181,9.3375,4.5075,19.317,14.166,32.196,10.947z"/>
|
|
||||||
<path d="m580.91,124c-13.2-16.42-33.488-30.908-42.821-25.435,12.233,0.64375,16.096,9.1758,24.792,14.649,8.6917,5.4733,4.8292,13.361,18.029,10.786z"/>
|
|
||||||
<path d="m518.12,152.98c-13.846-5.1513-40.888-7.7267-53.446,8.0492,20.929,3.5413,52.479,1.6096,53.446-8.0492z"/>
|
|
||||||
<path d="m515.55,159.1c-13.846-6.4392-24.658,2.555-37.671,1.2875-24.788-2.4146-42.496-0.96584-44.75,10.947,14.167-12.717,37.992-2.2538,47.65-4.8292,9.6584-2.5758,45.396-0.32208,56.663,4.5071-5.7958-7.0829-14.808-9.0146-21.892-11.912z"/>
|
|
||||||
<path d="m559.01,122.23c-3.2167-10.625-3.0583-21.893,12.879-21.088-4.025-4.9904-18.833-7.5658-21.25,11.108-17.546-12.878-36.704-15.132-40.242-4.0242,9.0125-7.7271,23.017-2.0929,39.758,16.903,1.45-0.805,5.3125-2.4146,8.8542-2.8975z"/>
|
|
||||||
<path d="m534.87,136.88c-9.9792-6.4388-23.504-16.903,0.1625-21.088-10.142-5.4733-24.954-3.0588-23.342,15.615-27.046-10.947-46.467-7.2521-50.55,3.5413-4.5083,11.913,12.238,18.513,15.133,10.947-3.0583,1.2879-13.521-2.2538-8.05-9.015,5.475-6.7608,33.525-1.6854,60.208,12.235,7.4042,3.8633,32.838,3.2196,6.4375-12.235z"/>
|
|
||||||
<path d="m527.78,154.59c-7.7-15.722-32.679-1.4488-37.713-16.678-6.8792,22.312,35.521,9.9658,37.713,16.678z"/>
|
|
||||||
<path d="m686.67,171.65c5.2375,2.6025,9.7667-1.4888,1.7542-4.6979,5.2417,2.6012,9.8125-1.3925,1.8-4.6029,5.2417,2.6012,9.8125-1.3921,1.8-4.6025-2.1375,2.1517-5.1958,10.04-5.3542,13.903z"/>
|
|
||||||
<path d="m689.4,141.39c11.592-12.234-0.9625-16.42,13.2-28.976,11.592-10.273,2.2125-17.12,13.204-25.113,3.5417-2.5754,11.267-7.7267,11.913-12.878,4.6667,11.59-14.492,13.2-13.204,31.874,0.82084,11.89-7.2167,10.851-10.3,30.908-0.64583,4.1854-3.5417,13.522-14.813,4.1854z"/>
|
|
||||||
<path d="m694.56,146.86c6.4375-13.844,13.829-13.578,17.383-18.995,6.7625-10.303,21.088,1.7708,33.163-7.405-2.0917,13.039-18.35,8.3708-25.433,16.742-7.0833,8.3708-12.879,12.235-25.113,9.6588z"/>
|
|
||||||
<path d="m696.17,151.37c11.271-9.015,19.575-3.0008,27.367-7.7271,19.638-11.913,27.529,2.4146,45.075-3.2196-4.6708,11.268-30.588,1.61-41.854,9.9808-11.271,8.3708-50.871,16.42-30.588,0.96583z"/>
|
|
||||||
<path d="m663.33,215.6c-0.1625-5.1513-4.9917-11.752-11.754-12.556-6.7583-0.805-9.6583-7.8883-14.808-8.21-5.15-0.32209-8.5333-10.625-15.617-10.464-7.0833,0.16125-9.9792,9.3367,6.6,17.708,16.583,8.3713,34.933,18.03,35.579,13.523z"/>
|
|
||||||
<path d="m642.4,219.95c-7.0833,0.32209-8.05,10.625-14.808,10.947,9.3334,4.9904,16.096-2.2538,20.925-8.6929l-6.1167-2.2538z"/>
|
|
||||||
<path d="m648.2,221.23c-6.1167,5.1513-7.8875,15.937,0.96667,18.995-5.3125-7.3246,9.3375-10.625,4.8292-17.386l-5.7958-1.6096z"/>
|
|
||||||
<path d="m654.31,221.56c-4.8292,9.3367,7.5667,10.463,4.3458,17.547,7.0833-1.61,8.2125-14.971,1.7708-18.513l-6.1167,0.96625z"/>
|
|
||||||
<path d="m606.98,201.59c11.592-0.64375,22.192,5.6267,29.3,15.776,4.5083,6.4388,19.638,9.0146,24.792,3.8633,5.15-5.1512,2.2542-16.098-10.625-12.556-3.2208-5.4733-12.558-3.5417-17.063-8.0492-4.5083-4.5071-21.896-17.385-26.404,0.96584z"/>
|
|
||||||
<path stroke-linecap="round" d="m650.45,208.68c-3.0583,0.64375-4.025,5.9562-2.0958,8.6929"/>
|
|
||||||
<path stroke-linecap="round" d="m657.05,211.9c0.96667,1.6096,0.32083,3.8633-0.1625,4.9904"/>
|
|
||||||
<path stroke-linecap="round" d="m625.34,202.08c5.9542,0.32209,7.0833,4.6688,13.521,6.2783"/>
|
|
||||||
<path d="m621.4,187.43c20.571,5.1512,36.892,9.6588,47.013,15.454,10.121,5.7954,25.792,7.405,39.504,3.5417,13.713-3.8633,40.154-7.405,38.85,9.6588,7.1875-8.5321-1.9583-17.708-20.242-19.318,0.32916-8.3708-8.6292-15.937-15.071-10.947,5.9583-0.80459,11.1,10.303-0.65,14.81,2.2833-8.3708-6.0417-15.937-14.692-12.234,5.55,1.6096,11.163,10.917-1.2542,14.488-7.8375,2.2538-19.263-0.64375-27.75-5.795-8.4875-5.1517-56.154-23.825-45.708-9.6588z"/>
|
|
||||||
<path d="m673.31,179.06c-6.4375,2.8975-2.2542,9.6588-12.233,13.522-9.9833,3.8633-16.904,12.717-14.65,20.283,6.7625-14.81,18.675-14.166,22.858-19.961,4.1875-5.7954,10.304-14.327,4.025-13.844z"/>
|
|
||||||
<path d="m675.08,180.02c-0.32083,11.751-9.5708,7.4704-5.9583,23.986,1.1292,5.1512,3.2208,13.522-0.32083,21.893,10.383-7.5658,3.7042-23.46,8.3708-29.459,2.2542-2.8975,5.15-7.405,6.2792-11.268-2.4167,6.7608-2.2542,19.318,4.3458,22.537-5.3125-12.557,14.329-22.859,0.80417-37.347-1.9292,3.5417-8.05,9.8196-13.521,9.6588z"/>
|
|
||||||
<path d="m642.24,168.27c1.6125,2.4146,3.2208,8.5321,1.7708,11.913,3.2208-1.9317,7.8917-6.9221,9.3375-10.303,6.6,0.96584,9.175,9.1758,2.9,12.717,3.8625,0,10.463,0,14.163-4.3462-4.5042-4.9904-18.508-12.718-28.171-9.9808z"/>
|
|
||||||
<path d="m542.11,145.18c-1.0417-0.94916-2.8-1.8517-5.9542-2.4996-9.7458-1.9988-4.7125-10.784,3.5833-10.706,17.704-19.317,27.646-4.4262,49.217-10.543,7.55-2.1404,12.733-1.5079,16.846,0.27167,9.6583-6.4392,20.988-4.64,29.2,2.9262,0.9125-1.4517,2.1375-2.5592,3.8583-3.0371,7.5625-2.1004,13.679,4.3479,15.771,12.719,5.8958-1.0921,12.629,1.8262,17.058,5.8504,6.1333-3.15,10.358-3.29,11.913-0.0512,5.475-2.5758,12.567-4.1908,16.108,4.5021,3.5417,8.6929-8.3708,6.1171-10.304,24.469-1.1917,11.321-13.842,15.776-23.825,9.015-15.967-10.817-31.55-12.557-39.279,3.8633-7.725,16.42-13.779,25.96-32.517,20.605-6.7583-1.9321-15.454,0.64375-20.925,8.0488-5.475,7.405-13.846,0.48291-23.825,1.2879,12.554-1.9317,7.7458-5.0896,18.675-5.7954,9.9792-0.64375,7.4042-9.9804,13.842-11.268-25.113,6.4392-24.146-2.8979-44.75,3.5412,9.0125-11.59,23.179-5.1513,30.263-11.912-18.675-0.32208-27.025-12.522-35.417-7.405-13.2,8.0488-7.4083,30.965-41.854,28.976-16.742-0.96583-27.367,1.2879-37.346,11.269,17.388-36.059,41.038-16.249,52.479-27.688,6.7625-6.7613,11.913-11.913,15.454-18.352,1.2458-2.2667,2.9333-3.5621,5.0417-4.0629-28.654-9.015-11.325-23.058,16.688-24.023z"/>
|
|
||||||
<path stroke-linecap="round" d="m683.59,140.11c0.4375,0.90542,0.6625,2.08,0.6625,3.5325,0,7.0829-10.625,7.405-11.267,17.869-0.3375,5.4733-0.96666,8.5317-4.6708,7.8879-3.7-0.64417-6.9208-6.4392-3.3792-13.2"/>
|
|
||||||
<path d="m547.42,134.63c-2.6667-1.8738-5.3333-2.635-7.725-2.6571"/>
|
|
||||||
<path d="m605.74,121.65c8.525,3.6908,12.683,12.546,25.067,12.98,11.921,0.41833,19.321,17.708,39.279,6.4388,0.54167-0.305,1.0708-0.58959,1.5833-0.85375"/>
|
|
||||||
<path d="m635,124.63c-1.7792,2.8292-2.1833,6.7783-1.6958,10.244"/>
|
|
||||||
<path d="m596.04,161.03c-15.129,0-18.996,7.7267-18.996,15.132,0,7.405,7.0833,17.064,19.642,17.064,12.554,0,19.317-7.7267,19.317-16.098s-7.7292-16.098-19.963-16.098z"/>
|
|
||||||
<path d="m598.77,192.9c-0.32084-4.1854-7.8875-3.5417-7.5667-6.7613,0.32084-3.2196,4.1875-4.5075,4.1875-9.0146,0-4.5075,6.7583-4.8296,9.0125-1.2879,2.2542,3.5412,9.0167,10.463,10.467,6.9221"/>
|
|
||||||
<path d="m604.41,175.84c-3.5417,3.5412-5.15,10.785-0.48334,16.42"/>
|
|
||||||
<path d="m609.24,181.31c-1.125,2.4146-1.4458,6.1171-0.15833,8.3708"/>
|
|
||||||
<path fill="none" d="m669.36,169.48c11.833,0.96583,13.846-12.074,4.9917-12.878"/>
|
|
||||||
<path fill="none" d="m654.8,134.31c-4.1042-5.2313-13.521-7.0021-13.683,4.1054"/>
|
|
||||||
<path d="m639.99,151.05c-4.025-9.9808-14.329-11.43-19.804-6.4392-4.5542,4.1533-4.6667,14.971,5.1542,17.225,3.3792-4.0242,9.9792-9.3367,14.65-10.785z"/>
|
|
||||||
<path d="m635.56,144.77c-5.7958-5.1517-14.329,4.5883-6.6,13.522"/>
|
|
||||||
<path d="m525.31,169.16c3.8792-0.92083,9.55,0.9775,18.246,5.0675,5.475,2.5758,21.896,8.0492,32.196,2.5758-10.625,3.8633-18.671-12.235-26.721-10.303-8.05,1.9317-22.779,4.9096-28.975-0.96625,15.129,0.96625,23.267-11.021,40.563-0.64375,4.8333,2.8975,10.95,4.8296,16.421,4.5075-14.163-17.064-32.838-6.1175-34.771-19.961,8.5333,9.1758,29.379-2.0929,40.004,15.132"/>
|
|
||||||
<path d="m545.33,152.01c-1.9917-2.4792-1.0917-4.9504-3.2292-6.9054"/>
|
|
||||||
</g>
|
|
||||||
<path fill="#000" stroke="none" d="m654.8,134.31c-3.5417-3.7829-11.267-0.805-9.0958,6.8421,1.6917-3.5413,5.3125-6.52,9.0958-6.8421z"/>
|
|
||||||
<path fill="#000" stroke="none" d="m632.91,154.93c2.4375-1.7696,4.9542-3.2233,7.075-3.8817-1.1583-2.8642-2.8292-5.0262-4.7583-6.5346-1.8417-1.2721-7.1333,5.8442-2.3167,10.416z"/>
|
|
||||||
<g fill="none" stroke-linecap="round">
|
|
||||||
<path d="m623.4,141.87c-5.7958-3.8633-11.108-3.5413-12.879-0.32167-4.1833-0.16125-7.6458,2.8975-7.8083,9.0146"/>
|
|
||||||
<path d="m611.65,153.14c-6.9208-4.7483-16.421-2.9775-15.775,7.6471"/>
|
|
||||||
<path d="m591.69,166.82c3.3792-2.7367,8.2083-4.6683,11.913,0.16125"/>
|
|
||||||
<path d="m643.37,156.36c-1.2875,1.7704-2.2542,4.5071-0.1625,8.6929-2.575-3.3808-9.0125-3.3808-15.938,5.6338"/>
|
|
||||||
<path d="m658.66,155.88c-8.3708,0.96583-8.2083,6.4388-1.45,8.8538"/>
|
|
||||||
<path d="m599.1,135.43c-7.0833-1.4488-12.233,2.7367-2.4125,6.2783"/>
|
|
||||||
<path d="m612.62,130.6c-9.9834-2.4146-14.008,0.16084-9.5,2.4146"/>
|
|
||||||
<path d="m583.8,170.69c-0.32083,3.5417,1.6083,8.21,7.4042,2.8979"/>
|
|
||||||
<path d="m585.74,181.31c0,0.96583-0.1625,2.0925-0.80833,2.8975"/>
|
|
||||||
<path d="m562.55,134.14c-6.1167-1.7708-7.2417-7.405-0.15834-6.9221"/>
|
|
||||||
<path d="m560.46,147.18c-6.7625-2.2538-6.7625-8.8538-1.1292-8.21"/>
|
|
||||||
<path d="m573.02,143.8c-7.8875-1.9321-8.2083-7.4054-2.25-6.6004"/>
|
|
||||||
<path d="m573.98,127.06c-4.1833-0.32166-10.625,4.3467,0.1625,7.0833"/>
|
|
||||||
<path d="m585.74,136.4c-9.8208-1.4488-9.6583,2.5758-3.8667,5.1517"/>
|
|
||||||
<path d="m593.14,127.06c-7.5667-1.4488-10.142,3.0588-4.9917,4.9904"/>
|
|
||||||
<path d="m569.32,154.91c-1.8542-1.5288-3.3792-8.8542,5.4708-6.68"/>
|
|
||||||
<path d="m587.67,152.66c-5.9542-1.61-11.588,4.1854-6.1167,7.5658"/>
|
|
||||||
<path d="m595.55,145.74c-6.275-1.1271-11.588,0.64375-8.2083,2.8975"/>
|
|
||||||
</g>
|
|
||||||
<path fill="#fff" d="m654.46,134.31c-3.5375,0.65541-6.7083,2.7342-8.7625,6.8396"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 47 KiB |
@@ -1,9 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="1100" height="800">
|
|
||||||
<rect width="1100" height="800" fill="#ef2b2d"/>
|
|
||||||
<rect width="200" height="800" x="300" fill="#fff"/>
|
|
||||||
<rect width="1100" height="200" y="300" fill="#fff"/>
|
|
||||||
<rect width="100" height="800" x="350" fill="#002868"/>
|
|
||||||
<rect width="1100" height="100" y="350" fill="#002868"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 517 B |
@@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="800" viewBox="0 0 36 24">
|
|
||||||
<rect width="36" height="24" fill="#75aadb"/>
|
|
||||||
<rect y="9" width="36" height="6" fill="#fff"/>
|
|
||||||
<rect y="10" width="36" height="4"/>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 264 B |