diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 0000000..76ab153 --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,13 @@ +{ + "permissions": { + "allow": [ + "Bash(PATH=\"$HOME/.cargo/bin:$PATH\" wasm-pack build --target web)", + "Read(//Users/ferencsagi/.nvm/versions/node/v18.17.0/bin/**)", + "Read(//Users/ferencsagi/**)", + "Bash(/opt/homebrew/bin/npm create:*)", + "Bash(/opt/homebrew/bin/node --version)", + "Bash(PATH=\"/opt/homebrew/bin:$PATH\" npm create vite@latest frontend -- --template react)", + "Bash(wasm-pack build:*)" + ] + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6e7e1c2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,56 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.build/ +.buildlog/ +.history +.svn/ +.swiftpm/ +migrate_working_dir/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ +**/ios/Flutter/.last_build_id +.dart_tool/ +.flutter-plugins-dependencies +.pub-cache/ +.pub/ +/build/ +/coverage/ + +# Symbolication related +app.*.symbols + +# Obfuscation related +app.*.map.json + +# Android Studio will place build artifacts here +/android/app/debug +/android/app/profile +/android/app/release + +# Rust / WASM build artifacts +wasm/target/ +wasm/pkg/ +wasm/cert.pem +wasm/key.pem +wasm/frontend/node_modules/ +wasm/frontend/dist/ + +# Rust +/core/target/ diff --git a/.metadata b/.metadata new file mode 100644 index 0000000..89db5de --- /dev/null +++ b/.metadata @@ -0,0 +1,45 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled and should not be manually edited. + +version: + revision: "ff37bef603469fb030f2b72995ab929ccfc227f0" + channel: "stable" + +project_type: app + +# Tracks metadata for the flutter migrate command +migration: + platforms: + - platform: root + create_revision: ff37bef603469fb030f2b72995ab929ccfc227f0 + base_revision: ff37bef603469fb030f2b72995ab929ccfc227f0 + - platform: android + create_revision: ff37bef603469fb030f2b72995ab929ccfc227f0 + base_revision: ff37bef603469fb030f2b72995ab929ccfc227f0 + - platform: ios + create_revision: ff37bef603469fb030f2b72995ab929ccfc227f0 + base_revision: ff37bef603469fb030f2b72995ab929ccfc227f0 + - platform: linux + create_revision: ff37bef603469fb030f2b72995ab929ccfc227f0 + base_revision: ff37bef603469fb030f2b72995ab929ccfc227f0 + - platform: macos + create_revision: ff37bef603469fb030f2b72995ab929ccfc227f0 + base_revision: ff37bef603469fb030f2b72995ab929ccfc227f0 + - platform: web + create_revision: ff37bef603469fb030f2b72995ab929ccfc227f0 + base_revision: ff37bef603469fb030f2b72995ab929ccfc227f0 + - platform: windows + create_revision: ff37bef603469fb030f2b72995ab929ccfc227f0 + base_revision: ff37bef603469fb030f2b72995ab929ccfc227f0 + + # User provided section + + # List of Local paths (relative to this file) that should be + # ignored by the migrate tool. + # + # Files that are not part of the templates will be ignored by default. + unmanaged_files: + - 'lib/main.dart' + - 'ios/Runner.xcodeproj/project.pbxproj' diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..ca9abf7 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,49 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## Project Overview + +This is "SkyContour" (project/code name: sfzenith), a Flutter application targeting iOS, Android, macOS, Linux, Windows, and web platforms. It is a horizon-profiling tool for astrophotography: the user pans the phone camera around the horizon to record azimuth→altitude points and exports them for N.I.N.A. (.hrz) and Stellarium (360° panorama landscape). The authoritative spec is the designer handoff in **docs/** — read docs/README.md first (then SPEC.md, ARCHITECTURE.md, FORMATS.md, design/tokens.json). **docs/SPECIFICATION.md** tracks project-level decisions, current status and the roadmap. The functional prototype is the pure Rust core (`core/`), the wasm-bindgen adapter (`wasm/src/lib.rs`) and the React frontend (`wasm/frontend/`); the Flutter app is a thin native shell that runs the web build in a WebView. App ID on both platforms: `com.sagifer.skycontour` (never change it once published); the visible name comes from `wasm/frontend/src/lib/app.js` (APP_NAME), iOS Info.plist CFBundleDisplayName and Android android:label. + +## Common Commands + +```bash +# Run the app +flutter run + +# Run tests +flutter test + +# Run a single test file +flutter test test/widget_test.dart + +# Analyze code (lint) +flutter analyze + +# Get dependencies +flutter pub get + +# Build the Rust WASM engine (from wasm/) +wasm-pack build --target web + +# Run Rust core tests incl. golden tests against docs/examples (from core/) +cargo test + +# Build web bundle into assets/web/ for the Flutter shell +./scripts/build_web.sh + +# Run the web prototype (from wasm/frontend/) +npm run dev +``` + +## Architecture + +- **core/** (`sfzenith-core`): pure Rust, no I/O, no web-sys — profile, projection, fov, hrz, stellarium, zip, session. All math and file generation belongs here. +- **wasm/**: thin wasm-bindgen adapter (camera, canvas, orientation glue) + JS-facing wrappers of the core exporters. Profiles cross the boundary as a 360-value Float64Array (index = azimuth degree, measured frame); exporters apply the north offset. +- **wasm/frontend/**: Vite + React UI — `src/screens/` (Sites, Setup, Capture, Review, Export, Settings, Calibrate), `src/lib/` (wasm loader, store = localStorage + IndexedDB strips, camera/sensors, survey = capture session + cached wasm `HorizonSurvey`, files = save/share incl. Flutter handlers). Desktop testing: open with `?sim` for a keyboard-driven fake compass (arrow keys), `?skipWelcome` to skip the first-run screen. +- **i18n** (`wasm/frontend/src/i18n/`): every UI string goes through `t('key', params)`; English (`locales/en.js`) is the source and fallback; es, ar (RTL), de, hu, pl, fr, it, sk follow the system language, overridable in Settings. Plurals are objects keyed by Intl.PluralRules category. Add a key to **all** locale files and run `npm run i18n:check` (from wasm/frontend/). Native shell strings: tab labels come from the web app; iOS permission prompts live in `ios/Runner/.lproj/InfoPlist.strings`. Exported files (.hrz, landscape.ini) stay English. +- **lib/main.dart**: Flutter Android shell — serves `assets/web/` on localhost:8080 in an InAppWebView, grants camera, saves PNGs to the gallery +- **test/**: Widget tests using `flutter_test` package +- Uses `flutter_lints` for static analysis (configured in `analysis_options.yaml`) +- SDK requirement: Dart ^3.11.1 diff --git a/README.md b/README.md index d87e5ee..d1973c6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# sfzenith +# SkyContour + +*(projekt- és kódnév: sfzenith)* Horizont-felmérő alkalmazás asztrofotósoknak: a telefon kamerájával körbeforogva azimut → altitude pontokból kirajzolja a megfigyelőhely helyi horizontját, és exportot készít távcsővezérlő szoftverek számára — **N.I.N.A.** horizont-fájlt (`.hrz`) és **Stellarium** landscape-et (360°-os panoráma PNG + `landscape.ini`). @@ -43,10 +45,10 @@ A natív app a webes buildet futtatja WebView-ban; előtte mindig: `./scripts/bu ./scripts/install_ios.sh # web build + iOS build + telepítés a csatlakoztatott iPhone-ra ``` -- Aláírás: Personal Team (`FT7JEH2UPE`), bundle ID `com.ferencsagi.sfzenith`. Más fióknál: Xcode › Runner › Signing & Capabilities › Team. +- Aláírás: Personal Team (`FT7JEH2UPE`), app-azonosító mindkét platformon `com.sagifer.skycontour`. Más fióknál: Xcode › Runner › Signing & Capabilities › Team. - Első indítás előtt a telefonon: Beállítások › Általános › VPN és eszközkezelés › a fejlesztői profil › Megbízom. iOS 16-tól a Developer Mode is kell (Beállítások › Adatvédelem és biztonság). - Ingyenes fióknál az app 7 nap után lejár: futtasd újra a szkriptet. -- Mentett exportok: Fájlok app › Az iPhone-on › sfzenith. +- Mentett exportok: Fájlok app › Az iPhone-on › SkyContour. ### Fejlesztői kapcsolók diff --git a/analysis_options.yaml b/analysis_options.yaml new file mode 100644 index 0000000..0d29021 --- /dev/null +++ b/analysis_options.yaml @@ -0,0 +1,28 @@ +# This file configures the analyzer, which statically analyzes Dart code to +# check for errors, warnings, and lints. +# +# The issues identified by the analyzer are surfaced in the UI of Dart-enabled +# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be +# invoked from the command line by running `flutter analyze`. + +# The following line activates a set of recommended lints for Flutter apps, +# packages, and plugins designed to encourage good coding practices. +include: package:flutter_lints/flutter.yaml + +linter: + # The lint rules applied to this project can be customized in the + # section below to disable rules from the `package:flutter_lints/flutter.yaml` + # included above or to enable additional rules. A list of all available lints + # and their documentation is published at https://dart.dev/lints. + # + # Instead of disabling a lint rule for the entire project in the + # section below, it can also be suppressed for a single line of code + # or a specific dart file by using the `// ignore: name_of_lint` and + # `// ignore_for_file: name_of_lint` syntax on the line or in the file + # producing the lint. + rules: + # avoid_print: false # Uncomment to disable the `avoid_print` rule + # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule + +# Additional information about this file can be found at +# https://dart.dev/guides/language/analysis-options diff --git a/android/.gitignore b/android/.gitignore new file mode 100644 index 0000000..be3943c --- /dev/null +++ b/android/.gitignore @@ -0,0 +1,14 @@ +gradle-wrapper.jar +/.gradle +/captures/ +/gradlew +/gradlew.bat +/local.properties +GeneratedPluginRegistrant.java +.cxx/ + +# Remember to never publicly share your keystore. +# See https://flutter.dev/to/reference-keystore +key.properties +**/*.keystore +**/*.jks diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts new file mode 100644 index 0000000..1cb3d8f --- /dev/null +++ b/android/app/build.gradle.kts @@ -0,0 +1,43 @@ +plugins { + id("com.android.application") + id("kotlin-android") + // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. + id("dev.flutter.flutter-gradle-plugin") +} + +android { + namespace = "com.example.sfzenith" + compileSdk = flutter.compileSdkVersion + ndkVersion = flutter.ndkVersion + + compileOptions { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 + } + + kotlinOptions { + jvmTarget = JavaVersion.VERSION_17.toString() + } + + defaultConfig { + applicationId = "com.sagifer.skycontour" + // You can update the following values to match your application needs. + // For more information, see: https://flutter.dev/to/review-gradle-config. + minSdk = flutter.minSdkVersion + targetSdk = flutter.targetSdkVersion + versionCode = flutter.versionCode + versionName = flutter.versionName + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig = signingConfigs.getByName("debug") + } + } +} + +flutter { + source = "../.." +} diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 0000000..399f698 --- /dev/null +++ b/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..04a17b6 --- /dev/null +++ b/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/android/app/src/main/kotlin/com/example/sfzenith/MainActivity.kt b/android/app/src/main/kotlin/com/example/sfzenith/MainActivity.kt new file mode 100644 index 0000000..0fceead --- /dev/null +++ b/android/app/src/main/kotlin/com/example/sfzenith/MainActivity.kt @@ -0,0 +1,59 @@ +package com.example.sfzenith + +import android.content.ContentValues +import android.os.Build +import android.os.Environment +import android.provider.MediaStore +import android.webkit.MimeTypeMap +import io.flutter.embedding.android.FlutterActivity +import io.flutter.embedding.engine.FlutterEngine +import io.flutter.plugin.common.MethodChannel +import java.io.File + +class MainActivity : FlutterActivity() { + override fun configureFlutterEngine(flutterEngine: FlutterEngine) { + super.configureFlutterEngine(flutterEngine) + MethodChannel(flutterEngine.dartExecutor.binaryMessenger, "sfzenith/files") + .setMethodCallHandler { call, result -> + if (call.method != "saveToDownloads") { + result.notImplemented() + return@setMethodCallHandler + } + try { + val name = call.argument("name") ?: "horizon.bin" + val mime = call.argument("mime") ?: "application/octet-stream" + val bytes = call.argument("bytes") ?: ByteArray(0) + result.success(saveToDownloads(name, mime, bytes)) + } catch (e: Exception) { + result.error("save_failed", e.message, null) + } + } + } + + /** Writes into the public Downloads folder; returns the shown location. */ + private fun saveToDownloads(name: String, mime: String, bytes: ByteArray): String { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { + // MediaStore appends an extension that matches the MIME type ("x.hrz" with + // text/plain becomes "x.hrz.txt"), so derive the type from the file name. + val ext = name.substringAfterLast('.', "").lowercase() + val storeMime = MimeTypeMap.getSingleton().getMimeTypeFromExtension(ext) + ?: "application/octet-stream" + val values = ContentValues().apply { + put(MediaStore.MediaColumns.DISPLAY_NAME, name) + put(MediaStore.MediaColumns.MIME_TYPE, storeMime) + put(MediaStore.MediaColumns.RELATIVE_PATH, Environment.DIRECTORY_DOWNLOADS) + } + val uri = contentResolver.insert(MediaStore.Downloads.EXTERNAL_CONTENT_URI, values) + ?: throw IllegalStateException("Downloads is not available") + contentResolver.openOutputStream(uri)?.use { it.write(bytes) } + ?: throw IllegalStateException("Cannot write $name") + return "Downloads/$name" + } + @Suppress("DEPRECATION") + val dir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS) + dir.mkdirs() + val file = File(dir, name) + file.writeBytes(bytes) + return file.absolutePath + } +} diff --git a/android/app/src/main/res/drawable-hdpi/android12splash.png b/android/app/src/main/res/drawable-hdpi/android12splash.png new file mode 100644 index 0000000..3791798 Binary files /dev/null and b/android/app/src/main/res/drawable-hdpi/android12splash.png differ diff --git a/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..71fb9dc Binary files /dev/null and b/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png differ diff --git a/android/app/src/main/res/drawable-hdpi/splash.png b/android/app/src/main/res/drawable-hdpi/splash.png new file mode 100644 index 0000000..26ef3be Binary files /dev/null and b/android/app/src/main/res/drawable-hdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-mdpi/android12splash.png b/android/app/src/main/res/drawable-mdpi/android12splash.png new file mode 100644 index 0000000..5b48184 Binary files /dev/null and b/android/app/src/main/res/drawable-mdpi/android12splash.png differ diff --git a/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..0c455c2 Binary files /dev/null and b/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png differ diff --git a/android/app/src/main/res/drawable-mdpi/splash.png b/android/app/src/main/res/drawable-mdpi/splash.png new file mode 100644 index 0000000..633b44d Binary files /dev/null and b/android/app/src/main/res/drawable-mdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-night-hdpi/android12splash.png b/android/app/src/main/res/drawable-night-hdpi/android12splash.png new file mode 100644 index 0000000..3791798 Binary files /dev/null and b/android/app/src/main/res/drawable-night-hdpi/android12splash.png differ diff --git a/android/app/src/main/res/drawable-night-mdpi/android12splash.png b/android/app/src/main/res/drawable-night-mdpi/android12splash.png new file mode 100644 index 0000000..5b48184 Binary files /dev/null and b/android/app/src/main/res/drawable-night-mdpi/android12splash.png differ diff --git a/android/app/src/main/res/drawable-night-xhdpi/android12splash.png b/android/app/src/main/res/drawable-night-xhdpi/android12splash.png new file mode 100644 index 0000000..eedbc90 Binary files /dev/null and b/android/app/src/main/res/drawable-night-xhdpi/android12splash.png differ diff --git a/android/app/src/main/res/drawable-night-xxhdpi/android12splash.png b/android/app/src/main/res/drawable-night-xxhdpi/android12splash.png new file mode 100644 index 0000000..26227ad Binary files /dev/null and b/android/app/src/main/res/drawable-night-xxhdpi/android12splash.png differ diff --git a/android/app/src/main/res/drawable-night-xxxhdpi/android12splash.png b/android/app/src/main/res/drawable-night-xxxhdpi/android12splash.png new file mode 100644 index 0000000..5c5a408 Binary files /dev/null and b/android/app/src/main/res/drawable-night-xxxhdpi/android12splash.png differ diff --git a/android/app/src/main/res/drawable-v21/background.png b/android/app/src/main/res/drawable-v21/background.png new file mode 100644 index 0000000..fa356fa Binary files /dev/null and b/android/app/src/main/res/drawable-v21/background.png differ diff --git a/android/app/src/main/res/drawable-v21/launch_background.xml b/android/app/src/main/res/drawable-v21/launch_background.xml new file mode 100644 index 0000000..3cc4948 --- /dev/null +++ b/android/app/src/main/res/drawable-v21/launch_background.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/android/app/src/main/res/drawable-xhdpi/android12splash.png b/android/app/src/main/res/drawable-xhdpi/android12splash.png new file mode 100644 index 0000000..eedbc90 Binary files /dev/null and b/android/app/src/main/res/drawable-xhdpi/android12splash.png differ diff --git a/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..8a49f89 Binary files /dev/null and b/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png differ diff --git a/android/app/src/main/res/drawable-xhdpi/splash.png b/android/app/src/main/res/drawable-xhdpi/splash.png new file mode 100644 index 0000000..cef8afb Binary files /dev/null and b/android/app/src/main/res/drawable-xhdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-xxhdpi/android12splash.png b/android/app/src/main/res/drawable-xxhdpi/android12splash.png new file mode 100644 index 0000000..26227ad Binary files /dev/null and b/android/app/src/main/res/drawable-xxhdpi/android12splash.png differ diff --git a/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..1e5d1a1 Binary files /dev/null and b/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png differ diff --git a/android/app/src/main/res/drawable-xxhdpi/splash.png b/android/app/src/main/res/drawable-xxhdpi/splash.png new file mode 100644 index 0000000..772c6ba Binary files /dev/null and b/android/app/src/main/res/drawable-xxhdpi/splash.png differ diff --git a/android/app/src/main/res/drawable-xxxhdpi/android12splash.png b/android/app/src/main/res/drawable-xxxhdpi/android12splash.png new file mode 100644 index 0000000..5c5a408 Binary files /dev/null and b/android/app/src/main/res/drawable-xxxhdpi/android12splash.png differ diff --git a/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..b446344 Binary files /dev/null and b/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png differ diff --git a/android/app/src/main/res/drawable-xxxhdpi/splash.png b/android/app/src/main/res/drawable-xxxhdpi/splash.png new file mode 100644 index 0000000..2bacc41 Binary files /dev/null and b/android/app/src/main/res/drawable-xxxhdpi/splash.png differ diff --git a/android/app/src/main/res/drawable/background.png b/android/app/src/main/res/drawable/background.png new file mode 100644 index 0000000..fa356fa Binary files /dev/null and b/android/app/src/main/res/drawable/background.png differ diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 0000000..3cc4948 --- /dev/null +++ b/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..c79c58a --- /dev/null +++ b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,9 @@ + + + + + + + diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..6bc0b54 Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..2439f24 Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..beef395 Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..7119e87 Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..4c16275 Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/values-night-v31/styles.xml b/android/app/src/main/res/values-night-v31/styles.xml new file mode 100644 index 0000000..3e0106a --- /dev/null +++ b/android/app/src/main/res/values-night-v31/styles.xml @@ -0,0 +1,21 @@ + + + + + + + diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml new file mode 100644 index 0000000..dbc9ea9 --- /dev/null +++ b/android/app/src/main/res/values-night/styles.xml @@ -0,0 +1,22 @@ + + + + + + + diff --git a/android/app/src/main/res/values-v31/styles.xml b/android/app/src/main/res/values-v31/styles.xml new file mode 100644 index 0000000..73d90ba --- /dev/null +++ b/android/app/src/main/res/values-v31/styles.xml @@ -0,0 +1,21 @@ + + + + + + + diff --git a/android/app/src/main/res/values/colors.xml b/android/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..7536922 --- /dev/null +++ b/android/app/src/main/res/values/colors.xml @@ -0,0 +1,4 @@ + + + #0E1424 + \ No newline at end of file diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..0d1fa8f --- /dev/null +++ b/android/app/src/main/res/values/styles.xml @@ -0,0 +1,22 @@ + + + + + + + diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 0000000..399f698 --- /dev/null +++ b/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/android/build.gradle.kts b/android/build.gradle.kts new file mode 100644 index 0000000..dbee657 --- /dev/null +++ b/android/build.gradle.kts @@ -0,0 +1,24 @@ +allprojects { + repositories { + google() + mavenCentral() + } +} + +val newBuildDir: Directory = + rootProject.layout.buildDirectory + .dir("../../build") + .get() +rootProject.layout.buildDirectory.value(newBuildDir) + +subprojects { + val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name) + project.layout.buildDirectory.value(newSubprojectBuildDir) +} +subprojects { + project.evaluationDependsOn(":app") +} + +tasks.register("clean") { + delete(rootProject.layout.buildDirectory) +} diff --git a/android/gradle.properties b/android/gradle.properties new file mode 100644 index 0000000..fbee1d8 --- /dev/null +++ b/android/gradle.properties @@ -0,0 +1,2 @@ +org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError +android.useAndroidX=true diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..e4ef43f --- /dev/null +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-all.zip diff --git a/android/settings.gradle.kts b/android/settings.gradle.kts new file mode 100644 index 0000000..ca7fe06 --- /dev/null +++ b/android/settings.gradle.kts @@ -0,0 +1,26 @@ +pluginManagement { + val flutterSdkPath = + run { + val properties = java.util.Properties() + file("local.properties").inputStream().use { properties.load(it) } + val flutterSdkPath = properties.getProperty("flutter.sdk") + require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" } + flutterSdkPath + } + + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") + + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} + +plugins { + id("dev.flutter.flutter-plugin-loader") version "1.0.0" + id("com.android.application") version "8.11.1" apply false + id("org.jetbrains.kotlin.android") version "2.2.20" apply false +} + +include(":app") diff --git a/assets/branding/icon-1024.png b/assets/branding/icon-1024.png new file mode 100644 index 0000000..daf2b03 Binary files /dev/null and b/assets/branding/icon-1024.png differ diff --git a/assets/branding/icon-foreground-1024.png b/assets/branding/icon-foreground-1024.png new file mode 100644 index 0000000..a87a009 Binary files /dev/null and b/assets/branding/icon-foreground-1024.png differ diff --git a/assets/branding/icon-foreground.svg b/assets/branding/icon-foreground.svg new file mode 100644 index 0000000..f1c154a --- /dev/null +++ b/assets/branding/icon-foreground.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/assets/branding/icon-square.svg b/assets/branding/icon-square.svg new file mode 100644 index 0000000..9350056 --- /dev/null +++ b/assets/branding/icon-square.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/assets/branding/icon.svg b/assets/branding/icon.svg new file mode 100644 index 0000000..e4ba767 --- /dev/null +++ b/assets/branding/icon.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/assets/branding/make_icons.py b/assets/branding/make_icons.py new file mode 100644 index 0000000..540bffc --- /dev/null +++ b/assets/branding/make_icons.py @@ -0,0 +1,91 @@ +"""Regenerate every app icon / splash asset from one definition. + +Source: the "A · Skyline" concept on the claude.ai design canvas (Icons.dc.html). +After changing the shapes below, run (from the repo root): + + python3 assets/branding/make_icons.py + dart run flutter_launcher_icons + dart run flutter_native_splash:create + +The web UI draws the same icon in wasm/frontend/src/components/AppIcon.jsx; +keep EDGE / WINDOW there in sync. +""" +import os +import re +import subprocess + +HERE = os.path.dirname(os.path.abspath(__file__)) +ROOT = os.path.dirname(os.path.dirname(HERE)) +CHROME = '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' + +# Horizon line between the left run-in (y = 70) and the right run-out (y = 63): +# house roof with chimney, then a tall and a small fir tree. +EDGE = ('L8 70 L8 56 L21 44 L27 49.5 L27 43 L30.5 43 L30.5 52.8 L34 56 L34 70 L46 70 ' + 'L50 66 L59 56 L54 56 L62 44 L58 44 L66 28 L74 44 L70 44 L78 56 L73 56 L82 66 ' + 'L85 66 L89 58 L87 58 L92 48 L97 58 L95 58') +LEFT_Y, RIGHT_Y = 70, 63 +STARS = ('' + '') +WINDOW = '' +LINE = 'fill="none" stroke="#F5B544" stroke-width="4" stroke-linejoin="round" stroke-linecap="round"' + + +def rounded(): + """Rounded tile: web favicon, splash, in-app icon.""" + return (f'\n' + f' \n {STARS}\n' + f' \n {WINDOW}\n' + f' \n\n') + + +def square(): + """Full-bleed square for iOS / store icons (the OS applies the corner mask).""" + return (f'\n' + f' \n {STARS}\n' + f' \n {WINDOW}\n' + f' \n\n') + + +def foreground(): + """Android adaptive foreground (background #0E1424): artwork in the middle 2/3 so + round launcher masks keep the house; ground and line run out to the border.""" + return (f'\n {STARS}\n' + f' \n' + f' {WINDOW}\n \n\n') + + +def splash12(size=1152, icon=520): + """Android 12+ splash: the rounded icon inside the 768 px safe circle.""" + inner = re.search(r']*>(.*)', rounded(), re.S).group(1) + off = (size - icon) / 2 + return (f'\n' + f' {inner}\n\n') + + +def write(name, text): + with open(os.path.join(HERE, name), 'w') as f: + f.write(text) + + +def render(svg, px, png): + subprocess.run([CHROME, '--headless=new', '--disable-gpu', '--hide-scrollbars', + '--default-background-color=00000000', f'--window-size={px},{px}', + f'--screenshot={os.path.join(HERE, png)}', 'file://' + os.path.join(HERE, svg)], + check=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + + +write('icon.svg', rounded()) +write('icon-square.svg', square()) +write('icon-foreground.svg', foreground()) +write('splash-android12.svg', splash12()) +render('icon-square.svg', 1024, 'icon-1024.png') +render('icon-foreground.svg', 1024, 'icon-foreground-1024.png') +render('icon.svg', 384, 'splash-logo.png') +render('splash-android12.svg', 1152, 'splash-android12.png') + +public = os.path.join(ROOT, 'wasm', 'frontend', 'public') +write(os.path.join(public, 'favicon.svg'), rounded()) +subprocess.run(['sips', '-Z', '180', os.path.join(HERE, 'icon-1024.png'), + '--out', os.path.join(public, 'apple-touch-icon.png')], check=True, stdout=subprocess.DEVNULL) +print('icons written to', HERE, 'and', public) diff --git a/assets/branding/splash-android12.png b/assets/branding/splash-android12.png new file mode 100644 index 0000000..eca7090 Binary files /dev/null and b/assets/branding/splash-android12.png differ diff --git a/assets/branding/splash-android12.svg b/assets/branding/splash-android12.svg new file mode 100644 index 0000000..181544f --- /dev/null +++ b/assets/branding/splash-android12.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/assets/branding/splash-logo.png b/assets/branding/splash-logo.png new file mode 100644 index 0000000..f055e7d Binary files /dev/null and b/assets/branding/splash-logo.png differ diff --git a/assets/web/apple-touch-icon.png b/assets/web/apple-touch-icon.png new file mode 100644 index 0000000..44facd1 Binary files /dev/null and b/assets/web/apple-touch-icon.png differ diff --git a/assets/web/assets/barlow-latin-400-normal-fsAxiSwU.woff b/assets/web/assets/barlow-latin-400-normal-fsAxiSwU.woff new file mode 100644 index 0000000..23eb32e Binary files /dev/null and b/assets/web/assets/barlow-latin-400-normal-fsAxiSwU.woff differ diff --git a/assets/web/assets/barlow-latin-400-normal-qiz4-Cze.woff2 b/assets/web/assets/barlow-latin-400-normal-qiz4-Cze.woff2 new file mode 100644 index 0000000..3914af4 Binary files /dev/null and b/assets/web/assets/barlow-latin-400-normal-qiz4-Cze.woff2 differ diff --git a/assets/web/assets/barlow-latin-500-normal-BPAOfeC8.woff2 b/assets/web/assets/barlow-latin-500-normal-BPAOfeC8.woff2 new file mode 100644 index 0000000..b1d06c6 Binary files /dev/null and b/assets/web/assets/barlow-latin-500-normal-BPAOfeC8.woff2 differ diff --git a/assets/web/assets/barlow-latin-500-normal-C1h8hMer.woff b/assets/web/assets/barlow-latin-500-normal-C1h8hMer.woff new file mode 100644 index 0000000..c42648f Binary files /dev/null and b/assets/web/assets/barlow-latin-500-normal-C1h8hMer.woff differ diff --git a/assets/web/assets/barlow-latin-600-normal-CNwfPWQD.woff b/assets/web/assets/barlow-latin-600-normal-CNwfPWQD.woff new file mode 100644 index 0000000..9d839eb Binary files /dev/null and b/assets/web/assets/barlow-latin-600-normal-CNwfPWQD.woff differ diff --git a/assets/web/assets/barlow-latin-600-normal-DILqtrty.woff2 b/assets/web/assets/barlow-latin-600-normal-DILqtrty.woff2 new file mode 100644 index 0000000..b1a019f Binary files /dev/null and b/assets/web/assets/barlow-latin-600-normal-DILqtrty.woff2 differ diff --git a/assets/web/assets/barlow-latin-700-normal-A9pxMQ4z.woff2 b/assets/web/assets/barlow-latin-700-normal-A9pxMQ4z.woff2 new file mode 100644 index 0000000..4ee6cd8 Binary files /dev/null and b/assets/web/assets/barlow-latin-700-normal-A9pxMQ4z.woff2 differ diff --git a/assets/web/assets/barlow-latin-700-normal-__SGTsZ1.woff b/assets/web/assets/barlow-latin-700-normal-__SGTsZ1.woff new file mode 100644 index 0000000..8551e35 Binary files /dev/null and b/assets/web/assets/barlow-latin-700-normal-__SGTsZ1.woff differ diff --git a/assets/web/assets/barlow-latin-ext-400-normal-CvBsJvxq.woff b/assets/web/assets/barlow-latin-ext-400-normal-CvBsJvxq.woff new file mode 100644 index 0000000..0a1a825 Binary files /dev/null and b/assets/web/assets/barlow-latin-ext-400-normal-CvBsJvxq.woff differ diff --git a/assets/web/assets/barlow-latin-ext-400-normal-HxX4XjxC.woff2 b/assets/web/assets/barlow-latin-ext-400-normal-HxX4XjxC.woff2 new file mode 100644 index 0000000..5c6eb7a Binary files /dev/null and b/assets/web/assets/barlow-latin-ext-400-normal-HxX4XjxC.woff2 differ diff --git a/assets/web/assets/barlow-latin-ext-500-normal-CJPcKP2Q.woff b/assets/web/assets/barlow-latin-ext-500-normal-CJPcKP2Q.woff new file mode 100644 index 0000000..60c7acb Binary files /dev/null and b/assets/web/assets/barlow-latin-ext-500-normal-CJPcKP2Q.woff differ diff --git a/assets/web/assets/barlow-latin-ext-500-normal-DOaysfXq.woff2 b/assets/web/assets/barlow-latin-ext-500-normal-DOaysfXq.woff2 new file mode 100644 index 0000000..4966af7 Binary files /dev/null and b/assets/web/assets/barlow-latin-ext-500-normal-DOaysfXq.woff2 differ diff --git a/assets/web/assets/barlow-latin-ext-600-normal-B8NK_A3D.woff2 b/assets/web/assets/barlow-latin-ext-600-normal-B8NK_A3D.woff2 new file mode 100644 index 0000000..3d7c7a2 Binary files /dev/null and b/assets/web/assets/barlow-latin-ext-600-normal-B8NK_A3D.woff2 differ diff --git a/assets/web/assets/barlow-latin-ext-600-normal-DMVRjfRT.woff b/assets/web/assets/barlow-latin-ext-600-normal-DMVRjfRT.woff new file mode 100644 index 0000000..1e9f605 Binary files /dev/null and b/assets/web/assets/barlow-latin-ext-600-normal-DMVRjfRT.woff differ diff --git a/assets/web/assets/barlow-latin-ext-700-normal-BLuWmldJ.woff2 b/assets/web/assets/barlow-latin-ext-700-normal-BLuWmldJ.woff2 new file mode 100644 index 0000000..09f6871 Binary files /dev/null and b/assets/web/assets/barlow-latin-ext-700-normal-BLuWmldJ.woff2 differ diff --git a/assets/web/assets/barlow-latin-ext-700-normal-CctuGmmz.woff b/assets/web/assets/barlow-latin-ext-700-normal-CctuGmmz.woff new file mode 100644 index 0000000..d9d5b96 Binary files /dev/null and b/assets/web/assets/barlow-latin-ext-700-normal-CctuGmmz.woff differ diff --git a/assets/web/assets/barlow-vietnamese-400-normal-BFeobeCK.woff b/assets/web/assets/barlow-vietnamese-400-normal-BFeobeCK.woff new file mode 100644 index 0000000..51ea245 Binary files /dev/null and b/assets/web/assets/barlow-vietnamese-400-normal-BFeobeCK.woff differ diff --git a/assets/web/assets/barlow-vietnamese-400-normal-Dpl4UHAZ.woff2 b/assets/web/assets/barlow-vietnamese-400-normal-Dpl4UHAZ.woff2 new file mode 100644 index 0000000..f3c1547 Binary files /dev/null and b/assets/web/assets/barlow-vietnamese-400-normal-Dpl4UHAZ.woff2 differ diff --git a/assets/web/assets/barlow-vietnamese-500-normal-GNfB7rCE.woff b/assets/web/assets/barlow-vietnamese-500-normal-GNfB7rCE.woff new file mode 100644 index 0000000..84a9c7e Binary files /dev/null and b/assets/web/assets/barlow-vietnamese-500-normal-GNfB7rCE.woff differ diff --git a/assets/web/assets/barlow-vietnamese-500-normal-zTViEIzf.woff2 b/assets/web/assets/barlow-vietnamese-500-normal-zTViEIzf.woff2 new file mode 100644 index 0000000..437819f Binary files /dev/null and b/assets/web/assets/barlow-vietnamese-500-normal-zTViEIzf.woff2 differ diff --git a/assets/web/assets/barlow-vietnamese-600-normal-CA_GiK2e.woff b/assets/web/assets/barlow-vietnamese-600-normal-CA_GiK2e.woff new file mode 100644 index 0000000..6805da4 Binary files /dev/null and b/assets/web/assets/barlow-vietnamese-600-normal-CA_GiK2e.woff differ diff --git a/assets/web/assets/barlow-vietnamese-600-normal-DcjprdFV.woff2 b/assets/web/assets/barlow-vietnamese-600-normal-DcjprdFV.woff2 new file mode 100644 index 0000000..e37b886 Binary files /dev/null and b/assets/web/assets/barlow-vietnamese-600-normal-DcjprdFV.woff2 differ diff --git a/assets/web/assets/barlow-vietnamese-700-normal-4Jt4k04K.woff b/assets/web/assets/barlow-vietnamese-700-normal-4Jt4k04K.woff new file mode 100644 index 0000000..a454a0e Binary files /dev/null and b/assets/web/assets/barlow-vietnamese-700-normal-4Jt4k04K.woff differ diff --git a/assets/web/assets/barlow-vietnamese-700-normal-D6euyNzi.woff2 b/assets/web/assets/barlow-vietnamese-700-normal-D6euyNzi.woff2 new file mode 100644 index 0000000..9f5f39b Binary files /dev/null and b/assets/web/assets/barlow-vietnamese-700-normal-D6euyNzi.woff2 differ diff --git a/assets/web/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 b/assets/web/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 new file mode 100644 index 0000000..20e72b0 Binary files /dev/null and b/assets/web/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 differ diff --git a/assets/web/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff b/assets/web/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff new file mode 100644 index 0000000..1487d93 Binary files /dev/null and b/assets/web/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff differ diff --git a/assets/web/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff b/assets/web/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff new file mode 100644 index 0000000..7e53f59 Binary files /dev/null and b/assets/web/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff differ diff --git a/assets/web/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 b/assets/web/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 new file mode 100644 index 0000000..328efe3 Binary files /dev/null and b/assets/web/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 differ diff --git a/assets/web/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff b/assets/web/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff new file mode 100644 index 0000000..eff6edd Binary files /dev/null and b/assets/web/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff differ diff --git a/assets/web/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 b/assets/web/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 new file mode 100644 index 0000000..b54e556 Binary files /dev/null and b/assets/web/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 differ diff --git a/assets/web/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff b/assets/web/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff new file mode 100644 index 0000000..626c775 Binary files /dev/null and b/assets/web/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff differ diff --git a/assets/web/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 b/assets/web/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 new file mode 100644 index 0000000..7d066e9 Binary files /dev/null and b/assets/web/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 differ diff --git a/assets/web/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff b/assets/web/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff new file mode 100644 index 0000000..8c83fdc Binary files /dev/null and b/assets/web/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff differ diff --git a/assets/web/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 b/assets/web/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 new file mode 100644 index 0000000..0804aaf Binary files /dev/null and b/assets/web/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 differ diff --git a/assets/web/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff b/assets/web/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff new file mode 100644 index 0000000..780de71 Binary files /dev/null and b/assets/web/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff differ diff --git a/assets/web/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 b/assets/web/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 new file mode 100644 index 0000000..090f82f Binary files /dev/null and b/assets/web/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 differ diff --git a/assets/web/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 b/assets/web/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 new file mode 100644 index 0000000..732c64d Binary files /dev/null and b/assets/web/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 differ diff --git a/assets/web/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff b/assets/web/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff new file mode 100644 index 0000000..338fc76 Binary files /dev/null and b/assets/web/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff differ diff --git a/assets/web/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 b/assets/web/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 new file mode 100644 index 0000000..6f33f8c Binary files /dev/null and b/assets/web/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 differ diff --git a/assets/web/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff b/assets/web/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff new file mode 100644 index 0000000..370da9c Binary files /dev/null and b/assets/web/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff differ diff --git a/assets/web/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 b/assets/web/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 new file mode 100644 index 0000000..21612f4 Binary files /dev/null and b/assets/web/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 differ diff --git a/assets/web/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff b/assets/web/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff new file mode 100644 index 0000000..dfa68b0 Binary files /dev/null and b/assets/web/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff differ diff --git a/assets/web/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff b/assets/web/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff new file mode 100644 index 0000000..b1a1d12 Binary files /dev/null and b/assets/web/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff differ diff --git a/assets/web/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 b/assets/web/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 new file mode 100644 index 0000000..3920890 Binary files /dev/null and b/assets/web/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 differ diff --git a/assets/web/assets/index-BkmYwRWO.css b/assets/web/assets/index-BkmYwRWO.css new file mode 100644 index 0000000..2bb7b62 --- /dev/null +++ b/assets/web/assets/index-BkmYwRWO.css @@ -0,0 +1 @@ +@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/barlow-vietnamese-400-normal-Dpl4UHAZ.woff2)format("woff2"),url(/assets/barlow-vietnamese-400-normal-BFeobeCK.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/barlow-latin-ext-400-normal-HxX4XjxC.woff2)format("woff2"),url(/assets/barlow-latin-ext-400-normal-CvBsJvxq.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/barlow-latin-400-normal-qiz4-Cze.woff2)format("woff2"),url(/assets/barlow-latin-400-normal-fsAxiSwU.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-vietnamese-500-normal-zTViEIzf.woff2)format("woff2"),url(/assets/barlow-vietnamese-500-normal-GNfB7rCE.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-latin-ext-500-normal-DOaysfXq.woff2)format("woff2"),url(/assets/barlow-latin-ext-500-normal-CJPcKP2Q.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-latin-500-normal-BPAOfeC8.woff2)format("woff2"),url(/assets/barlow-latin-500-normal-C1h8hMer.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-vietnamese-600-normal-DcjprdFV.woff2)format("woff2"),url(/assets/barlow-vietnamese-600-normal-CA_GiK2e.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-latin-ext-600-normal-B8NK_A3D.woff2)format("woff2"),url(/assets/barlow-latin-ext-600-normal-DMVRjfRT.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-latin-600-normal-DILqtrty.woff2)format("woff2"),url(/assets/barlow-latin-600-normal-CNwfPWQD.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/barlow-vietnamese-700-normal-D6euyNzi.woff2)format("woff2"),url(/assets/barlow-vietnamese-700-normal-4Jt4k04K.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/barlow-latin-ext-700-normal-BLuWmldJ.woff2)format("woff2"),url(/assets/barlow-latin-ext-700-normal-CctuGmmz.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/barlow-latin-700-normal-A9pxMQ4z.woff2)format("woff2"),url(/assets/barlow-latin-700-normal-__SGTsZ1.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2)format("woff2"),url(/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2)format("woff2"),url(/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2)format("woff2"),url(/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2)format("woff2"),url(/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2)format("woff2"),url(/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2)format("woff2"),url(/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2)format("woff2"),url(/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2)format("woff2"),url(/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2)format("woff2"),url(/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2)format("woff2"),url(/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--bg:#0a0d13;--surface:#121722;--surface2:#1a2130;--border:#232c3b;--border-strong:#263042;--grid:#1e2634;--text:#e8ecf2;--text2:#c9d2de;--muted:#93a0b4;--faint:#7f8ca1;--accent:#f5b544;--accent-hover:#ffd07a;--on-accent:#1a1204;--info:#6cc3e6;--info-bg:#12303c;--warn-bg:#1e1a10;--warn-border:#4a3a16;--badge-amber-bg:#2a2312;--danger:#f27a54;--scrim:#0a0d13b8;--checker-a:#1a2130;--checker-b:#273042;--font-ui:"Barlow", system-ui, sans-serif;--font-num:"IBM Plex Mono", ui-monospace, monospace;--screen-x:20px;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body,#root{background:var(--bg);height:100%;color:var(--text);font-family:var(--font-ui);-webkit-tap-highlight-color:transparent;overscroll-behavior:none;margin:0;font-size:15px;line-height:1.4}button,input{color:inherit;font-family:inherit}body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}button,a,label,canvas{touch-action:manipulation}input,textarea,.code-box{-webkit-user-select:text;user-select:text}[dir=rtl] .flip-rtl{transform:scaleX(-1)}svg,canvas,.compass-labels,.cap-strip,.pano-zoom,.pano-overview,.code-box{direction:ltr}.code-box{text-align:left}.mono,.readouts .v,.north-row .val,.ext,.segmented.small button{direction:ltr;unicode-bidi:isolate}select.text-input{appearance:none;cursor:pointer;background-image:linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);background-position:calc(100% - 22px),calc(100% - 16px);background-repeat:no-repeat;background-size:6px 6px;padding-inline-end:40px}[dir=rtl] select.text-input{background-position:16px,22px}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}.mono{font-family:var(--font-num)}.muted{color:var(--muted)}.overline{font-family:var(--font-num);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-size:12px}.screen{flex-direction:column;max-width:480px;height:100dvh;margin:0 auto;display:flex;position:relative;overflow:hidden}.screen-body{padding:calc(var(--safe-top) + 24px) var(--screen-x) 16px;flex:1;overflow-y:auto}.screen-actions{padding:10px var(--screen-x) calc(var(--safe-bottom) + 24px);flex-direction:column;gap:10px;display:flex}.screen-actions.two{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.title-row{align-items:center;gap:8px;display:flex}.title-row h1{margin:0;font-size:22px;font-weight:700;line-height:1.2}.title-row .sub{color:var(--muted);font-size:13px}.title-stack{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.icon-btn{width:44px;height:44px;color:var(--text);background:0 0;border:none;flex:none;justify-content:center;align-items:center;padding:0;display:flex}.icon-btn.back{margin-inline-start:-10px}.icon-btn.round{border:1px solid var(--border-strong);background:var(--surface);border-radius:22px}.icon-btn.danger{color:var(--danger)}.icon-btn.confirm{width:auto;color:var(--danger);background:#3a1a12;border-radius:10px;padding:0 12px;font-size:14px;font-weight:600}.btn{border:none;border-radius:16px;justify-content:center;align-items:center;gap:10px;font-size:17px;font-weight:700;text-decoration:none;display:flex}.btn-primary{background:var(--accent);height:56px;color:var(--on-accent)}.btn-primary:not(:disabled):active{background:var(--accent-hover)}.btn-secondary{border:1px solid var(--border-strong);height:48px;color:var(--text);background:0 0;border-radius:14px;font-size:15px;font-weight:600}.btn-surface{border:1px solid var(--border-strong);background:var(--surface);height:56px;color:var(--text);font-size:16px;font-weight:600}.btn-small{border:1px solid var(--border-strong);background:var(--surface2);border-radius:10px;height:44px;padding:0 12px;font-size:14px;font-weight:600}.link-btn{color:var(--accent);background:0 0;border:none;padding:0;font-size:14px;font-weight:600}.segmented{background:var(--surface);border:1px solid var(--border);border-radius:14px;gap:4px;padding:4px;display:grid}.segmented button{min-width:0;height:40px;color:var(--text);background:0 0;border:none;border-radius:10px;font-size:14px;font-weight:600}.segmented button.on{background:var(--text);color:var(--bg)}.segmented.small{border-radius:10px;padding:3px;display:flex}.segmented.small button{height:32px;font-family:var(--font-num);color:var(--text2);border-radius:8px;padding:0 10px;font-size:12px;font-weight:400}.segmented.small button.on{color:var(--bg)}.card{background:var(--surface);border:1px solid var(--border);border-radius:14px}.row-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;align-items:center;gap:10px;min-height:64px;padding:10px 10px 10px 14px;display:flex}.row-card .grow{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.row-card .strong{font-size:15px;font-weight:600}.row-card .small{color:var(--muted);font-size:13px}.text-input{border:1px solid var(--border-strong);background:var(--surface);border-radius:12px;width:100%;height:48px;padding:0 14px;font-size:17px}.text-input:focus{outline:2px solid var(--accent);outline-offset:-1px}.notice{background:var(--warn-bg);border:1px solid var(--warn-border);color:var(--text);border-radius:12px;padding:10px 12px;font-size:13px;line-height:1.35}.notice.error{background:#2a1410;border-color:#5a2a1e}.chip{background:var(--surface2);color:var(--text2);border-radius:8px;align-items:center;gap:4px;padding:4px 8px;font-size:12px;font-weight:600;display:inline-flex}.badge-amber{background:var(--badge-amber-bg);color:var(--accent);white-space:nowrap;border-radius:8px;padding:4px 8px;font-size:12px;font-weight:600}.night-backdrop{z-index:0;pointer-events:none;background:#04060b;position:absolute;inset:0}.night-backdrop svg{opacity:.75}.night-backdrop-dim{background:linear-gradient(#04060bb3 0%,#04060b59 30%,#04060b40 60%,#04060b1a 100%);position:absolute;inset:0}.screen.with-backdrop .screen-body,.screen.with-backdrop .screen-actions{z-index:1;position:relative}.screen.with-backdrop .screen-body{text-shadow:0 1px 3px #04060be6}.screen.with-backdrop .btn-secondary{background:#121722e0}.home-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.home-header h1{letter-spacing:-.01em;margin:0;font-size:30px;font-weight:700;line-height:1.15}.home-header p{color:var(--muted);margin:4px 0 0}.site-list{flex-direction:column;gap:14px;margin-top:12px;display:flex}.site-card{text-align:left;background:var(--surface);border:1px solid var(--border);width:100%;color:var(--text);border-radius:18px;flex-direction:column;gap:12px;padding:16px;display:flex}.site-card .head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.site-card .name{font-size:19px;font-weight:600;line-height:1.25}.site-card .coords{font-family:var(--font-num);color:var(--muted);font-size:12px}.site-card .footer{color:var(--muted);flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;display:flex}.compass-labels{font-family:var(--font-num);color:var(--faint);justify-content:space-between;font-size:11px;display:flex}.progress{background:var(--surface2);border-radius:3px;height:6px;overflow:hidden}.progress>div{background:var(--accent);height:100%}.empty{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:6px;margin-top:40px;display:flex}.how-list{flex-direction:column;gap:8px;margin:0;padding:0 0 0 20px;line-height:1.35;display:flex}.capture{background:var(--bg);flex-direction:column;max-width:480px;height:100dvh;margin:0 auto;display:flex}.cap-view{background:#000;flex:1;position:relative;overflow:hidden}.cap-preview{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.cap-overlay{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.cap-top{left:12px;right:12px;top:calc(var(--safe-top) + 12px);justify-content:space-between;align-items:center;gap:8px;display:flex;position:absolute}.cap-top .icon-btn{background:var(--scrim);border-radius:22px}.cap-title{background:var(--scrim);border-radius:14px;flex-direction:column;align-items:center;gap:2px;min-width:0;padding:6px 14px;display:flex}.cap-title .n{text-overflow:ellipsis;white-space:nowrap;max-width:200px;font-size:15px;font-weight:600;overflow:hidden}.cap-title .f{font-family:var(--font-num);color:var(--text2);font-size:11px}.cap-strip{left:20px;right:20px;top:calc(var(--safe-top) + 68px);background:var(--scrim);border-radius:12px;flex-direction:column;gap:4px;padding:8px;display:flex;position:absolute}.cap-strip canvas{border-radius:4px;width:100%;height:40px;display:block}.cap-strip .compass-labels{color:var(--text2);font-size:10px}.cap-hint{left:0;right:0;top:calc(var(--safe-top) + 156px);pointer-events:none;justify-content:center;display:flex;position:absolute}.cap-hint span{background:var(--scrim);border-radius:10px;padding:7px 12px;font-size:14px}.cap-warn{border:1px solid var(--warn-border);background:#1e1a10eb;border-radius:12px;align-items:center;gap:10px;padding:8px 8px 8px 12px;display:flex;position:absolute;bottom:16px;left:20px;right:20px}.cap-warn span{flex:1;font-size:13px;line-height:1.3}.cap-warn button{background:var(--accent);height:44px;color:var(--on-accent);border:none;border-radius:10px;padding:0 12px;font-size:14px;font-weight:700}.cap-start{text-align:center;background:#0a0d13d9;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:24px;display:flex;position:absolute;inset:0}.cap-panel{padding:14px 20px calc(var(--safe-bottom) + 24px);border-top:1px solid var(--surface2);flex-direction:column;flex:none;gap:14px;display:flex}.readouts{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.readouts>div{flex-direction:column;gap:2px;display:flex}.readouts .k{font-family:var(--font-num);letter-spacing:.08em;color:var(--muted);font-size:11px}.readouts .v{font-family:var(--font-num);font-size:20px;font-weight:500;line-height:26px}.readouts .v.small{font-size:15px}.readouts .v.ok{color:var(--info)}.controls{grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:8px;display:grid}.auto-btn{border:1px solid var(--border-strong);background:var(--surface);height:48px;color:var(--text);border-radius:14px;padding:0 14px;font-size:15px;font-weight:600}.auto-btn.on{border-color:var(--info);background:var(--info-bg);color:var(--info)}.shutter{border:4px solid var(--accent);background:0 0;border-radius:40px;justify-self:center;width:80px;height:80px;padding:5px;display:flex}.shutter span{background:var(--accent);border-radius:34px;flex:1}.shutter:not(:disabled):active span{background:var(--accent-hover)}.shutter.flash span{background:#fff}.finish-btn{border:1px solid var(--border-strong);background:var(--surface);border-radius:14px;justify-self:end;align-items:center;gap:6px;height:48px;padding:0 16px;font-size:15px;font-weight:600;display:flex}.legend{color:var(--muted);flex-wrap:wrap;gap:6px 16px;font-size:13px;display:flex}.legend>span{align-items:center;gap:6px;display:flex}.slider{width:100%;height:28px;accent-color:var(--info);margin:0}.pano-zoom{border:1px solid var(--border);touch-action:none;border-radius:14px;margin-top:12px;position:relative;overflow:hidden}.pano-zoom canvas{aspect-ratio:350/210;width:100%;display:block}.pano-overview{touch-action:none}.pano-overview canvas{border-radius:6px;width:100%;height:40px;display:block}.north-row{background:var(--surface);border:1px solid var(--border);border-radius:14px;align-items:center;gap:10px;padding:10px 10px 10px 14px;display:flex}.north-row .val{font-family:var(--font-num);text-align:right;min-width:56px;font-size:16px}.step-btn{border:1px solid var(--border-strong);background:var(--surface2);border-radius:12px;width:44px;height:44px;padding:0;font-size:20px}.busy{min-height:160px;color:var(--muted);justify-content:center;align-items:center;display:flex}.format-card{background:var(--surface);border:1px solid var(--border);cursor:pointer;border-radius:14px;align-items:flex-start;gap:12px;padding:12px 14px;display:flex}.format-card.on{background:var(--surface2);border-color:var(--accent)}.format-card.disabled{opacity:.5;cursor:default}.format-card input{width:22px;height:22px;accent-color:var(--accent);flex:none;margin:2px 0 0}.format-card .t{font-size:16px;font-weight:600}.format-card .ext{font-family:var(--font-num);background:var(--surface2);color:var(--text2);border-radius:6px;padding:2px 6px;font-size:11px}.format-card.on .ext{background:var(--bg)}.format-card .d{color:var(--muted);font-size:13px;line-height:1.35}.code-box{border:1px solid var(--surface2);height:196px;font-family:var(--font-num);color:var(--text2);white-space:pre;background:#06080c;border-radius:14px;margin-top:8px;padding:12px 14px;font-size:12px;line-height:1.55;overflow:auto}.code-box .foot{color:var(--faint);margin-top:4px}.calib-panel{padding:16px 20px calc(var(--safe-bottom) + 24px);flex-direction:column;flex:none;gap:12px;display:flex}.calib-bar{background:var(--surface2);border-radius:3px;height:6px;overflow:hidden}.calib-bar>div{background:var(--info);height:100%;transition:width .3s}.fatal{left:12px;right:12px;top:calc(var(--safe-top) + 8px);z-index:100;color:var(--text);background:#2a1410;border:1px solid #5a2a1e;border-radius:12px;padding:10px 12px;font-size:13px;position:fixed} diff --git a/assets/web/assets/index-tqL3FGAB.js b/assets/web/assets/index-tqL3FGAB.js new file mode 100644 index 0000000..b5ced0a --- /dev/null +++ b/assets/web/assets/index-tqL3FGAB.js @@ -0,0 +1,11 @@ +var e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var t=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function te(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ne(e,t){return te(e.type,t,e.props)}function T(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function re(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ie=/\/+/g;function ae(e,t){return typeof e==`object`&&e&&e.key!=null?re(``+e.key):t.toString(36)}function oe(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function se(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,se(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ae(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(ie,`$&/`)+`/`),se(o,r,i,``,function(e){return e})):o!=null&&(T(o)&&(o=ne(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ie,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u{n.exports=t()})),r=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,T());else{var t=n(l);t!==null&&ae(x,t.startTime-e)}}var S=!1,C=-1,w=5,ee=-1;function te(){return g?!0:!(e.unstable_now()-eet&&te());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ae(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?T():S=!1}}}var T;if(typeof y==`function`)T=function(){y(ne)};else if(typeof MessageChannel<`u`){var re=new MessageChannel,ie=re.port2;re.port1.onmessage=ne,T=function(){ie.postMessage(null)}}else T=function(){_(ne,0)};function ae(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ae(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,T()))),r},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),i=e(((e,t)=>{t.exports=r()})),a=e((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=a()})),s=e((e=>{var t=i(),r=n(),a=o();function s(e){var t=`https://react.dev/errors/`+e;if(1fe||(e.current=de[fe],de[fe]=null,fe--)}function k(e,t){fe++,de[fe]=e.current,e.current=t}var me=pe(null),he=pe(null),ge=pe(null),_e=pe(null);function ve(e,t){switch(k(ge,t),k(he,e),k(me,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}O(me),k(me,e)}function A(){O(me),O(he),O(ge)}function ye(e){e.memoizedState!==null&&k(_e,e);var t=me.current,n=Hd(t,e.type);t!==n&&(k(he,e),k(me,n))}function be(e){he.current===e&&(O(me),O(he)),_e.current===e&&(O(_e),Qf._currentValue=ue)}var xe,Se;function Ce(e){if(xe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);xe=t&&t[1]||``,Se=-1)`:-1i||c[r]!==l[i]){var u=` +`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{we=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ce(n):``}function Ee(e,t){switch(e.tag){case 26:case 27:case 5:return Ce(e.type);case 16:return Ce(`Lazy`);case 13:return e.child!==t&&t!==null?Ce(`Suspense Fallback`):Ce(`Suspense`);case 19:return Ce(`SuspenseList`);case 0:case 15:return Te(e.type,!1);case 11:return Te(e.type.render,!1);case 1:return Te(e.type,!0);case 31:return Ce(`Activity`);default:return``}}function De(e){try{var t=``,n=null;do t+=Ee(e,n),n=e,e=e.return;while(e);return t}catch(e){return` +Error generating stack: `+e.message+` +`+e.stack}}var Oe=Object.prototype.hasOwnProperty,ke=t.unstable_scheduleCallback,Ae=t.unstable_cancelCallback,je=t.unstable_shouldYield,Me=t.unstable_requestPaint,Ne=t.unstable_now,Pe=t.unstable_getCurrentPriorityLevel,Fe=t.unstable_ImmediatePriority,Ie=t.unstable_UserBlockingPriority,Le=t.unstable_NormalPriority,Re=t.unstable_LowPriority,ze=t.unstable_IdlePriority,Be=t.log,Ve=t.unstable_setDisableYieldValue,He=null,Ue=null;function We(e){if(typeof Be==`function`&&Ve(e),Ue&&typeof Ue.setStrictMode==`function`)try{Ue.setStrictMode(He,e)}catch{}}var Ge=Math.clz32?Math.clz32:Je,Ke=Math.log,qe=Math.LN2;function Je(e){return e>>>=0,e===0?32:31-(Ke(e)/qe|0)|0}var Ye=256,Xe=262144,Ze=4194304;function Qe(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $e(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Qe(n))):i=Qe(o):i=Qe(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Qe(n))):i=Qe(o)):i=Qe(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function et(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function tt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function nt(){var e=Ze;return Ze<<=1,!(Ze&62914560)&&(Ze=4194304),e}function rt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function it(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function at(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),gn=!1;if(hn)try{var _n={};Object.defineProperty(_n,`passive`,{get:function(){gn=!0}}),window.addEventListener(`test`,_n,_n),window.removeEventListener(`test`,_n,_n)}catch{gn=!1}var vn=null,yn=null,bn=null;function xn(){if(bn)return bn;var e,t=yn,n=t.length,r,i=`value`in vn?vn.value:vn.textContent,a=i.length;for(e=0;e=Qn),tr=` `,nr=!1;function rr(e,t){switch(e){case`keyup`:return Xn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function ir(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var ar=!1;function or(e,t){switch(e){case`compositionend`:return ir(t);case`keypress`:return t.which===32?(nr=!0,tr):null;case`textInput`:return e=t.data,e===tr&&nr?null:e;default:return null}}function sr(e,t){if(ar)return e===`compositionend`||!Zn&&rr(e,t)?(e=xn(),bn=yn=vn=null,ar=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=kr(n)}}function jr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ut(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ut(e.document)}return t}function Nr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Pr=hn&&`documentMode`in document&&11>=document.documentMode,Fr=null,Ir=null,Lr=null,Rr=!1;function zr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rr||Fr==null||Fr!==Ut(r)||(r=Fr,`selectionStart`in r&&Nr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Lr&&Or(Lr,r)||(Lr=r,r=Ed(Ir,`onSelect`),0>=o,i-=o,ji=1<<32-Ge(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),F&&Ni(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),o=a(y,o,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),F&&Ni(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return F&&Ni(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),F&&Ni(i,g),u}function b(e,r,a,c){if(typeof a==`object`&&a&&a.type===y&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case _:a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===y){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&Ma(l)===r.type){n(e,r.sibling),c=i(r,a.props),za(c,a),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===y?(c=vi(a.props.children,e.mode,c,a.key),c.return=e,e=c):(c=_i(a.type,a.key,a.props,null,e.mode,c),za(c,a),c.return=e,e=c)}return o(e);case v:a:{for(l=a.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=xi(a,e.mode,c),c.return=e,e=c}return o(e);case T:return a=Ma(a),b(e,r,a,c)}if(le(a))return h(e,r,a,c);if(oe(a)){if(l=oe(a),typeof l!=`function`)throw Error(s(150));return a=l.call(a),g(e,r,a,c)}if(typeof a.then==`function`)return b(e,r,Ra(a),c);if(a.$$typeof===C)return b(e,r,oa(e,a),c);Ba(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=yi(a,e.mode,c),c.return=e,e=c),o(e)):n(e,r)}return function(e,t,n,r){try{La=0;var i=b(e,t,n,r);return Ia=null,i}catch(t){if(t===Ea||t===Oa)throw t;var a=pi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ha=Va(!0),Ua=Va(!1),Wa=!1;function Ga(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ka(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function qa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ja(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ui(e),li(e,null,n),t}return oi(e,r,t,n),ui(e)}function Ya(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,st(e,n)}}function Xa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Za=!1;function Qa(){if(Za){var e=_a;if(e!==null)throw e}}function $a(e,t,n,r){Za=!1;var i=e.updateQueue;Wa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(J&f)===f:(r&f)===f){f!==0&&f===ga&&(Za=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Wa=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Gl|=o,e.lanes=o,e.memoizedState=d}}function eo(e,t){if(typeof e!=`function`)throw Error(s(191,e));e.call(t)}function to(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=E.T,s={};E.T=s,Is(e,!1,t,n);try{var c=i(),l=E.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Fs(e,t,ba(c,r),pu(e)):Fs(e,t,r,pu(e))}catch(n){Fs(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{D.p=a,o!==null&&s.types!==null&&(o.types=s.types),E.T=o}}function Ts(){}function Es(e,t,n,r){if(e.tag!==5)throw Error(s(476));var i=Ds(e).queue;ws(e,i,t,ue,n===null?Ts:function(){return Os(e),n(r)})}function Ds(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:ue},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Os(e){var t=Ds(e);t.next===null&&(t=e.alternate.memoizedState),Fs(e,t.next.queue,{},pu())}function ks(){return aa(Qf)}function As(){return V().memoizedState}function js(){return V().memoizedState}function Ms(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=qa(n);var r=Ja(t,e,n);r!==null&&(hu(r,t,n),Ya(r,t,n)),t={cache:fa()},e.payload=t;return}t=t.return}}function Ns(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ls(e)?Rs(t,n):(n=si(e,t,n,r),n!==null&&(hu(n,e,r),zs(n,t,r)))}function Ps(e,t,n){Fs(e,t,n,pu())}function Fs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ls(e))Rs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Dr(s,o))return oi(e,t,i,0),K===null&&ai(),!1}catch{}if(n=si(e,t,i,r),n!==null)return hu(n,e,r),zs(n,t,r),!0}return!1}function Is(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ls(e)){if(t)throw Error(s(479))}else t=si(e,n,r,2),t!==null&&hu(t,e,2)}function Ls(e){var t=e.alternate;return e===L||t!==null&&t===L}function Rs(e,t){vo=_o=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,st(e,n)}}var Bs={readContext:aa,use:Fo,useCallback:B,useContext:B,useEffect:B,useImperativeHandle:B,useLayoutEffect:B,useInsertionEffect:B,useMemo:B,useReducer:B,useRef:B,useState:B,useDebugValue:B,useDeferredValue:B,useTransition:B,useSyncExternalStore:B,useId:B,useHostTransitionStatus:B,useFormState:B,useActionState:B,useOptimistic:B,useMemoCache:B,useCacheRefresh:B};Bs.useEffectEvent=B;var Vs={readContext:aa,use:Fo,useCallback:function(e,t){return Mo().memoizedState=[e,t===void 0?null:t],e},useContext:aa,useEffect:ds,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ls(4194308,4,_s.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ls(4194308,4,e,t)},useInsertionEffect:function(e,t){ls(4,2,e,t)},useMemo:function(e,t){var n=Mo();t=t===void 0?null:t;var r=e();if(yo){We(!0);try{e()}finally{We(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Mo();if(n!==void 0){var i=n(t);if(yo){We(!0);try{n(t)}finally{We(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ns.bind(null,L,e),[r.memoizedState,e]},useRef:function(e){var t=Mo();return e={current:e},t.memoizedState=e},useState:function(e){e=qo(e);var t=e.queue,n=Ps.bind(null,L,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ys,useDeferredValue:function(e,t){return Ss(Mo(),e,t)},useTransition:function(){var e=qo(!1);return e=ws.bind(null,L,e.queue,!0,!1),Mo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=L,i=Mo();if(F){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),K===null)throw Error(s(349));J&127||Ho(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,ds(Wo.bind(null,r,a,e),[e]),r.flags|=2048,ss(9,{destroy:void 0},Uo.bind(null,r,a,n,t),null),n},useId:function(){var e=Mo(),t=K.identifierPrefix;if(F){var n=Mi,r=ji;n=(r&~(1<<32-Ge(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=bo++,0<\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?o.createElement(`select`,{is:r.is}):o.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?o.createElement(i,{is:r.is}):o.createElement(i)}}a[mt]=t,a[ht]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(Pd(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Pc(t)}}return U(t),Fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(s(166));if(e=ge.current,Gi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Ri,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[mt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||Hi(t,!0)}else e=Bd(e).createTextNode(r),e[mt]=t,t.stateNode=e}return U(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Gi(t),n!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(557));e[mt]=t}else Ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;U(t),e=!1}else n=qi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(mo(t),t):(mo(t),null);if(t.flags&128)throw Error(s(558))}return U(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Gi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(s(317));i[mt]=t}else Ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;U(t),i=!1}else i=qi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(mo(t),t):(mo(t),null)}return mo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Lc(t,t.updateQueue),U(t),null);case 4:return A(),e===null&&Sd(t.stateNode.containerInfo),U(t),null;case 10:return $i(t.type),U(t),null;case 19:if(O(I),r=t.memoizedState,r===null)return U(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)Rc(r,!1);else{if(X!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=ho(e),a!==null){for(t.flags|=128,Rc(r,!1),e=a.updateQueue,t.updateQueue=e,Lc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)gi(n,e),n=n.sibling;return k(I,I.current&1|2),F&&Ni(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ne()>tu&&(t.flags|=128,i=!0,Rc(r,!1),t.lanes=4194304)}else{if(!i)if(e=ho(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Lc(t,e),Rc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!F)return U(t),null}else 2*Ne()-r.renderingStartTime>tu&&n!==536870912&&(t.flags|=128,i=!0,Rc(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(U(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ne(),e.sibling=null,n=I.current,k(I,i?n&1|2:n&1),F&&Ni(t,r.treeForkCount),e);case 22:case 23:return mo(t),oo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(U(t),t.subtreeFlags&6&&(t.flags|=8192)):U(t),n=t.updateQueue,n!==null&&Lc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&O(Sa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),$i(da),U(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Bc(e,t){switch(Ii(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $i(da),A(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return be(t),null;case 31:if(t.memoizedState!==null){if(mo(t),t.alternate===null)throw Error(s(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(mo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return O(I),null;case 4:return A(),null;case 10:return $i(t.type),null;case 22:case 23:return mo(t),oo(),e!==null&&O(Sa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return $i(da),null;case 25:return null;default:return null}}function Vc(e,t){switch(Ii(t),t.tag){case 3:$i(da),A();break;case 26:case 27:case 5:be(t);break;case 4:A();break;case 31:t.memoizedState!==null&&mo(t);break;case 13:mo(t);break;case 19:O(I);break;case 10:$i(t.type);break;case 22:case 23:mo(t),oo(),e!==null&&O(Sa);break;case 24:$i(da)}}function Hc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function Uc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function Wc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{to(t,n)}catch(t){Z(e,e.return,t)}}}function Gc(e,t,n){n.props=Js(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Kc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function qc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}function Jc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Z(e,e.return,t)}}function Yc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[ht]=t}catch(t){Z(e,e.return,t)}}function Xc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Zc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Xc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=on));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[mt]=e,t[ht]=n}catch(t){Z(e,e.return,t)}}var tl=!1,nl=!1,rl=!1,il=typeof WeakSet==`function`?WeakSet:Set,al=null;function ol(e,t){if(e=e.containerInfo,Rd=sp,e=Mr(e),Nr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var o=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=o+i),f!==a||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=o),p===a&&++d===r&&(l=o),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,al=t;al!==null;)if(t=al,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,al=e;else for(;al!==null;){switch(t=al,a=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Pd(a,r,n),a[mt]=e,j(a),r=a;break a;case`link`:var o=Vf(`link`,`href`,i).get(r+(n.href||``));if(o){for(var c=0;cg&&(o=g,g=h,h=o);var _=Ar(s,h),v=Ar(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,E.T=null,n=lu,lu=null;var a=au,o=su;if(iu=0,ou=au=null,su=0,G&6)throw Error(s(331));var c=G;if(G|=4,Fl(a.current),Dl(a,a.current,o,n),G=c,id(0,!1),Ue&&typeof Ue.onPostCommitFiberRoot==`function`)try{Ue.onPostCommitFiberRoot(He,a)}catch{}return!0}finally{D.p=i,E.T=r,Vu(e,t)}}function Wu(e,t,n){t=Ci(n,t),t=ec(e.stateNode,t,2),e=Ja(e,t,2),e!==null&&(it(e,2),rd(e))}function Z(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ru===null||!ru.has(r))){e=Ci(n,e),n=tc(2),r=Ja(t,n,2),r!==null&&(nc(n,r,t,e),it(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,K===e&&(J&n)===n&&(X===4||X===3&&(J&62914560)===J&&300>Ne()-$l?!(G&2)&&Su(e,0):ql|=n,Yl===J&&(Yl=0)),rd(e)}function qu(e,t){t===0&&(t=nt()),e=ci(e,t),e!==null&&(it(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return ke(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ge(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=J,a=$e(r,r===K?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||et(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&Gd()&&(e=nd);for(var t=Ne(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}iu!==0&&iu!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=M(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),j(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+M(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+M(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+M(n.imageSizes)+`"]`)):i+=`[href="`+M(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),j(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+M(r)+`"][href="`+M(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),j(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=Et(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);j(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=Et(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),j(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=Et(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),j(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var i=(i=ge.current)?gf(i):null;if(!i)throw Error(s(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=Et(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var a=Et(i).hoistableStyles,o=a.get(e);if(o||(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=i.querySelector(jf(e)))&&!a._p&&(o.instance=a,o.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),a||Nf(i,e,n,o.state))),t&&r===null)throw Error(s(528,``));return o}if(t&&r!==null)throw Error(s(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=Et(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Af(e){return`href="`+M(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),j(t),e.head.appendChild(t))}function Pf(e){return`[src="`+M(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+M(n.href)+`"]`);if(r)return t.instance=r,j(r),r;var i=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),j(r),Pd(r,`style`,i),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Af(n.href);var a=e.querySelector(jf(i));if(a)return t.state.loading|=4,t.instance=a,j(a),a;r=Mf(n),(i=mf.get(i))&&Rf(r,i),a=(e.ownerDocument||e).createElement(`link`),j(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),t.state.loading|=4,Lf(a,n.precedence,e),t.instance=a;case`script`:return a=Pf(n.src),(i=e.querySelector(Ff(a)))?(t.instance=i,j(i),i):(r=n,(i=mf.get(a))&&(r=h({},n),zf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),j(i),Pd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(s(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,j(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),j(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=s()}))(),l=n(),u=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),d=e(((e,t)=>{t.exports=u()}))(),f=`L8 70 L8 56 L21 44 L27 49.5 L27 43 L30.5 43 L30.5 52.8 L34 56 L34 70 L46 70 L50 66 L59 56 L54 56 L62 44 L58 44 L66 28 L74 44 L70 44 L78 56 L73 56 L82 66 L85 66 L89 58 L87 58 L92 48 L97 58 L95 58`;function p({size:e=64,border:t=!1}){return(0,d.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 100 100`,"aria-hidden":`true`,children:[(0,d.jsx)(`rect`,{width:`100`,height:`100`,rx:`22.5`,fill:`#0E1424`,stroke:t?`#263042`:`none`,strokeWidth:`1.5`}),(0,d.jsx)(`circle`,{cx:`48`,cy:`30`,r:`2.6`,fill:`#E8ECF2`}),(0,d.jsx)(`circle`,{cx:`24`,cy:`22`,r:`1.5`,fill:`#C9D2DE`}),(0,d.jsx)(`circle`,{cx:`74`,cy:`20`,r:`1.3`,fill:`#C9D2DE`}),(0,d.jsx)(`circle`,{cx:`88`,cy:`30`,r:`1.1`,fill:`#93A0B4`}),(0,d.jsx)(`path`,{d:`M0 77.5 L0 70 ${f} L100 63 L100 77.5 A22.5 22.5 0 0 1 77.5 100 L22.5 100 A22.5 22.5 0 0 1 0 77.5 Z`,fill:`#070A12`}),(0,d.jsx)(`rect`,{x:`16`,y:`58`,width:`6`,height:`6`,fill:`#F5B544`,fillOpacity:`0.9`}),(0,d.jsx)(`path`,{d:`M2 70 ${f} L98 63`,fill:`none`,stroke:`#F5B544`,strokeWidth:`4`,strokeLinejoin:`round`,strokeLinecap:`round`})]})}var m={fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0},h=(e,t=20,n=2)=>function({size:r=t,width:i=n,...a}){return(0,d.jsx)(`svg`,{width:r,height:r,viewBox:`0 0 24 24`,strokeWidth:i,...m,...a,children:e})},g=h((0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`path`,{d:`M4 6h9M17 6h3M4 12h3M11 12h9M4 18h11M19 18h1`}),(0,d.jsx)(`circle`,{cx:`15`,cy:`6`,r:`2`}),(0,d.jsx)(`circle`,{cx:`9`,cy:`12`,r:`2`}),(0,d.jsx)(`circle`,{cx:`17`,cy:`18`,r:`2`})]}),20,1.8),_=h((0,d.jsx)(`path`,{d:`M9 5l7 7-7 7`}),20,2.2),v=h((0,d.jsx)(`path`,{d:`M15 5l-7 7 7 7`}),22,2),y=h((0,d.jsx)(`path`,{d:`M12 5v14M5 12h14`}),20,2.2),b=h((0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`path`,{d:`M14 3H6v18h12V7z`}),(0,d.jsx)(`path`,{d:`M14 3v4h4`}),(0,d.jsx)(`path`,{d:`M12 11v6M9 14l3 3 3-3`})]}),18,1.8),x=h((0,d.jsx)(`path`,{d:`M5 12.5l4.5 4.5L19 7`}),12,2.4),S=h((0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`path`,{d:`M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z`}),(0,d.jsx)(`circle`,{cx:`12`,cy:`9.5`,r:`2.5`})]}),20,1.8),C=h((0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,d.jsx)(`path`,{d:`M15.5 8.5l-2 5-5 2 2-5z`})]}),20,1.8),w=h((0,d.jsx)(`path`,{d:`M6 6l12 12M18 6L6 18`}),20,2),ee=h((0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`path`,{d:`M9 14L4 9l5-5`}),(0,d.jsx)(`path`,{d:`M4 9h10a6 6 0 0 1 0 12h-3`})]}),20,2),te=h((0,d.jsx)(`path`,{d:`M12 4v12M7 11l5 5 5-5M5 20h14`}),18,2),ne=h((0,d.jsx)(`path`,{d:`M12 3v12M7 8l5-5 5 5M5 14v5a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-5`}),18,2),T=h((0,d.jsx)(`path`,{d:`M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3`}),20,1.8),re=h((0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`path`,{d:`M4 8h3l2-3h6l2 3h3v11H4z`}),(0,d.jsx)(`circle`,{cx:`12`,cy:`13`,r:`3.5`})]}),22,1.8),ie={"tab.sites":`Sites`,"tab.new":`New survey`,"tab.settings":`Settings`,"compass.n":`N`,"compass.e":`E`,"compass.s":`S`,"compass.w":`W`,"common.back":`Back`,"common.startCamera":`Start camera`,"common.startingCamera":`Starting camera…`,"common.noLocation":`No location`,"app.engineError":`Could not load the engine: {error}`,"welcome.tagline":`Trace the trees and rooftops around your telescope`,"welcome.formats":`NINA .HRZ · STELLARIUM LANDSCAPE`,"welcome.start":`Get started`,"welcome.sceneLabel":`Night garden with a house, trees and a telescope under a starry sky; a dashed amber line traces the horizon over the rooftops and treetops`,"sites.subtitle":`Artificial horizons for NINA & Stellarium`,"sites.settings":`Settings`,"sites.count":`Sites · {count}`,"sites.emptyTitle":`No sites yet`,"sites.emptyHint":`Stand where your telescope stands and start a survey.`,"sites.emptyHintApp":`Tap “{tab}” below, or import a NINA .hrz with the button above.`,"sites.newSurvey":`New horizon survey`,"sites.import":`Import existing .hrz`,"sites.importError":`Could not read {file}: {error}`,"sites.inProgress":`In progress`,"sites.noHorizon":`No horizon yet`,"sites.covered":`{deg}° of 360° covered`,"sites.continue":`Continue survey`,"sites.imported":`Imported .hrz`,"sites.framesFull":{one:`{count} frame · full 360°`,other:`{count} frames · full 360°`},"sites.framesPartial":{one:`{count} frame · {deg}° covered`,other:`{count} frames · {deg}° covered`},"sites.defaultName":`Site {n}`,"sites.importedName":`Imported horizon`,"setup.title":`New survey`,"setup.siteName":`Site name`,"setup.locating":`Finding location…`,"setup.locationHint":`Written into the Stellarium landscape`,"setup.altitudeUnknown":`Altitude unknown`,"setup.elevation":`{m} m`,"setup.gps":`GPS ±{m} m`,"setup.refresh":`Refresh`,"setup.noGeo":`No location service in this browser`,"setup.geoUnavailable":`Location unavailable`,"setup.northTitle":`North from compass`,"setup.northHint":`Declination is not applied yet: correct north with the offset in Review`,"setup.howTo":`How to capture`,"setup.skyNotNeeded":`sky not needed`,"setup.illustration":`Turn once around in place, holding the phone upright; only a band around the horizon is photographed`,"setup.step1":`Stand where the telescope stands.`,"setup.step2":`Hold the phone upright, tilted slightly above the horizon.`,"setup.step3":`Turn once around slowly. Frames are taken automatically.`,"setup.start":`Start capture`,"setup.sensorsError":`Motion sensors are not available: {error}`,"setup.cameraError":`Camera: {error}`,"capture.openError":`Could not open the survey: {error}`,"capture.saveError":`Could not save: {error}`,"capture.close":`Close survey`,"capture.undo":`Retake last frame`,"capture.frameOf":`frame {n} of {total}`,"capture.allFrames":`all {count} frames`,"capture.progress":`Panorama progress around 360 degrees`,"capture.heading":`HEADING`,"capture.tilt":`TILT`,"capture.covers":`COVERS`,"capture.autoOn":`Auto on`,"capture.autoOff":`Auto off`,"capture.shutter":`Take frame`,"capture.finish":`Finish`,"capture.topTouch":`Obstruction reaches the frame top at {az}°`,"capture.addHigher":`Add higher shot`,"capture.hint.compass":`Waiting for the compass…`,"capture.hint.done":`All frames taken. Tap Finish.`,"capture.hint.higher":`Higher shot: line up the dot`,"capture.hint.turnRight":`Turn right until the dot is in the circle`,"capture.hint.turnLeft":`Turn left until the dot is in the circle`,"capture.hint.manual":`Line up the dot, then tap the shutter`,"capture.hint.tiltUp":`Tilt the phone up a little`,"capture.hint.tiltDown":`Tilt the phone down a little`,"capture.hint.hold":`Hold still…`,"capture.hint.tap":`Tap the shutter`,"capture.err.noHeading":`No compass heading yet`,"capture.err.cameraNotReady":`Camera not ready`,"capture.err.encode":`Could not encode the panorama`,"camera.err.https":`The camera needs HTTPS (or localhost).`,"camera.err.noApi":`This browser has no camera access.`,"camera.err.noPicture":`The camera started but sends no picture.`,"review.title":`Review horizon`,"review.imported":`Imported from .hrz`,"review.stitchedFull":{one:`{count} frame stitched · full 360°`,other:`{count} frames stitched · full 360°`},"review.stitchedPartial":{one:`{count} frame stitched · {deg}° of 360°`,other:`{count} frames stitched · {deg}° of 360°`},"review.delete":`Delete site`,"review.deleteConfirm":`Delete site?`,"review.tabNina":`NINA horizon`,"review.tabPano":`Panorama`,"review.detecting":`Detecting the sky edge…`,"review.noHorizon":`No horizon yet: capture some frames first.`,"review.legendEdge":`Detected sky edge`,"review.legendHrz":`Written to .hrz`,"review.chartLabel":`Horizon profile: obstruction altitude by azimuth, with the safety margin dashed`,"review.margin":`Safety margin`,"review.marginHint":`Keeps NINA targets clear of tree tips and compass error`,"review.toolAuto":`Auto edge`,"review.toolSky":`Paint sky`,"review.toolGround":`Paint ground`,"review.edits":{one:`{count} edit`,other:`{count} edits`},"review.undoEdit":`Undo last`,"review.clearEdits":`Back to auto edge`,"review.transparentSky":`Transparent sky in Stellarium`,"review.dragHint":`Drag to look around`,"review.paintHint":`Paint with your finger`,"review.zoomLabel":`Zoomed panorama: checkered area is transparent sky, the line is the detected edge`,"review.overviewLabel":`Whole 360 degree panorama with the zoomed part outlined`,"review.north":`North offset`,"review.northHint":`Applies to .hrz and panorama`,"review.rotateLeft":`Rotate 0.5 degrees left`,"review.rotateRight":`Rotate 0.5 degrees right`,"review.export":`Export`,"export.title":`Export`,"export.back":`Back to review`,"export.summary":`{name} · margin {margin}° · north offset {north}°`,"export.ninaTitle":`NINA custom horizon`,"export.ninaSub":`Sky edge + safety margin as azimuth / altitude pairs, for target altitude limits`,"export.panoTitle":`Stellarium panorama`,"export.panoSub":`Spherical landscape: 360° photo band with transparent sky, 8192 × 2048 PNG`,"export.polyTitle":`Stellarium outline only`,"export.polySub":`Polygonal landscape: just the horizon line, no photo`,"export.panoUnavailable":`Needs a photo survey (not available for imported horizons)`,"export.panoGaps":`Not all 360° is photographed: gaps are filled dark`,"export.preview":`Preview`,"export.loading":`Loading…`,"export.lines":{one:`{count} line · azimuth altitude, {margin}° margin`,other:`{count} lines · azimuth altitude, {margin}° margin`},"export.help":`NINA: Options › General › Astrometry › Custom Horizon. Stellarium: install the .zip under Sky and viewing options › Landscape › Add/remove landscapes.`,"export.rendering":`Rendering panorama…`,"export.preparing":`Preparing…`,"export.sharing":`Sharing…`,"export.saving":`Saving…`,"export.save":`Save`,"export.share":{one:`Share {count} file`,other:`Share {count} files`},"files.downloaded":{one:`Downloaded {name}`,other:`Downloaded {count} files`},"files.savedAndroid":{one:`Saved to Downloads: {name}`,other:`Saved {count} files to Downloads`},"files.savedIos":{one:`Saved to Files › SkyContour: {name}`,other:`Saved {count} files to Files › SkyContour`},"files.shared":`Shared`,"files.shareCancelled":`Share cancelled`,"files.shareUnsupported":`This browser cannot share files, so they were downloaded instead.`,"settings.title":`Settings`,"settings.camera":`Camera`,"settings.fov":`Field of view`,"settings.fovValue":`{fov}° across the frame`,"settings.fovAssumed":`Not calibrated: about {fov}° is assumed`,"settings.narrower":`Narrower`,"settings.wider":`Wider`,"settings.calibrate":`Calibrate with the camera`,"settings.reset":`Reset`,"settings.fovHint":`The field of view places each photo in the panorama. Calibrate once per phone: turn slowly while the app compares two overlapping views.`,"settings.author":`Author for Stellarium files`,"settings.authorPlaceholder":`Your name`,"settings.language":`Language`,"settings.systemLanguage":`System default ({name})`,"settings.about":`{app} · horizons for NINA and Stellarium`,"calib.title":`Field of view`,"calib.intro":`Point at distant detail (trees, roofs), then tap Start and turn slowly sideways.`,"calib.turn":`Turn the phone slowly to the side ⟷`,"calib.turnAuto":`Turn the phone slowly to the side ⟷ (finishes by itself)`,"calib.newRef":`New reference taken: keep turning slowly ⟷`,"calib.noMatch":`No match: turn slower and aim at distant detail`,"calib.almost":`Almost there: values still vary, keep turning slowly`,"calib.measuring":`Measuring… keep turning slowly`,"calib.waiting":`Waiting for camera and compass…`,"calib.done":`Done: field of view {fov}° saved.`,"calib.doneButton":`Done`,"calib.restart":`Restart measurement`,"calib.start":`Start`},ae={"tab.sites":`Lugares`,"tab.new":`Nuevo estudio`,"tab.settings":`Ajustes`,"compass.n":`N`,"compass.e":`E`,"compass.s":`S`,"compass.w":`O`,"common.back":`Atrás`,"common.startCamera":`Iniciar cámara`,"common.startingCamera":`Iniciando cámara…`,"common.noLocation":`Sin ubicación`,"app.engineError":`No se pudo cargar el motor: {error}`,"welcome.tagline":`Traza los árboles y tejados alrededor de tu telescopio`,"welcome.formats":`NINA .HRZ · PAISAJE DE STELLARIUM`,"welcome.start":`Empezar`,"welcome.sceneLabel":`Jardín nocturno con una casa, árboles y un telescopio bajo un cielo estrellado; una línea ámbar discontinua sigue el horizonte sobre los tejados y las copas de los árboles`,"sites.subtitle":`Horizontes artificiales para NINA y Stellarium`,"sites.settings":`Ajustes`,"sites.count":`Lugares · {count}`,"sites.emptyTitle":`Aún no hay lugares`,"sites.emptyHint":`Colócate donde está tu telescopio e inicia un estudio.`,"sites.emptyHintApp":`Toca «{tab}» abajo o importa un .hrz de NINA con el botón de arriba.`,"sites.newSurvey":`Nuevo estudio del horizonte`,"sites.import":`Importar un .hrz existente`,"sites.importError":`No se pudo leer {file}: {error}`,"sites.inProgress":`En curso`,"sites.noHorizon":`Aún sin horizonte`,"sites.covered":`{deg}° de 360° cubiertos`,"sites.continue":`Continuar estudio`,"sites.imported":`.hrz importado`,"sites.framesFull":{one:`{count} foto · 360° completos`,other:`{count} fotos · 360° completos`},"sites.framesPartial":{one:`{count} foto · {deg}° cubiertos`,other:`{count} fotos · {deg}° cubiertos`},"sites.defaultName":`Lugar {n}`,"sites.importedName":`Horizonte importado`,"setup.title":`Nuevo estudio`,"setup.siteName":`Nombre del lugar`,"setup.locating":`Buscando ubicación…`,"setup.locationHint":`Se guarda en el paisaje de Stellarium`,"setup.altitudeUnknown":`Altitud desconocida`,"setup.elevation":`{m} m`,"setup.gps":`GPS ±{m} m`,"setup.refresh":`Actualizar`,"setup.noGeo":`Este navegador no tiene servicio de ubicación`,"setup.geoUnavailable":`Ubicación no disponible`,"setup.northTitle":`Norte de la brújula`,"setup.northHint":`La declinación aún no se aplica: corrige el norte con el desfase en la revisión`,"setup.howTo":`Cómo capturar`,"setup.skyNotNeeded":`el cielo no hace falta`,"setup.illustration":`Gira una vez sobre ti mismo con el teléfono vertical; solo se fotografía una franja alrededor del horizonte`,"setup.step1":`Colócate donde está el telescopio.`,"setup.step2":`Sujeta el teléfono en vertical, un poco inclinado por encima del horizonte.`,"setup.step3":`Gira despacio una vuelta completa. Las fotos se toman solas.`,"setup.start":`Iniciar captura`,"setup.sensorsError":`Los sensores de movimiento no están disponibles: {error}`,"setup.cameraError":`Cámara: {error}`,"capture.openError":`No se pudo abrir el estudio: {error}`,"capture.saveError":`No se pudo guardar: {error}`,"capture.close":`Cerrar estudio`,"capture.undo":`Repetir la última foto`,"capture.frameOf":`foto {n} de {total}`,"capture.allFrames":`las {count} fotos`,"capture.progress":`Progreso del panorama en 360 grados`,"capture.heading":`RUMBO`,"capture.tilt":`INCLINACIÓN`,"capture.covers":`CUBRE`,"capture.autoOn":`Auto sí`,"capture.autoOff":`Auto no`,"capture.shutter":`Tomar foto`,"capture.finish":`Terminar`,"capture.topTouch":`Un obstáculo llega al borde superior en {az}°`,"capture.addHigher":`Foto más alta`,"capture.hint.compass":`Esperando la brújula…`,"capture.hint.done":`Todas las fotos tomadas. Toca Terminar.`,"capture.hint.higher":`Foto más alta: alinea el punto`,"capture.hint.turnRight":`Gira a la derecha hasta que el punto entre en el círculo`,"capture.hint.turnLeft":`Gira a la izquierda hasta que el punto entre en el círculo`,"capture.hint.manual":`Alinea el punto y toca el disparador`,"capture.hint.tiltUp":`Inclina el teléfono un poco hacia arriba`,"capture.hint.tiltDown":`Inclina el teléfono un poco hacia abajo`,"capture.hint.hold":`Quieto…`,"capture.hint.tap":`Toca el disparador`,"capture.err.noHeading":`Aún no hay rumbo de la brújula`,"capture.err.cameraNotReady":`La cámara no está lista`,"capture.err.encode":`No se pudo generar el panorama`,"camera.err.https":`La cámara necesita HTTPS (o localhost).`,"camera.err.noApi":`Este navegador no tiene acceso a la cámara.`,"camera.err.noPicture":`La cámara se inició pero no envía imagen.`,"review.title":`Revisar horizonte`,"review.imported":`Importado de .hrz`,"review.stitchedFull":{one:`{count} foto unida · 360° completos`,other:`{count} fotos unidas · 360° completos`},"review.stitchedPartial":{one:`{count} foto unida · {deg}° de 360°`,other:`{count} fotos unidas · {deg}° de 360°`},"review.delete":`Eliminar lugar`,"review.deleteConfirm":`¿Eliminar?`,"review.tabNina":`Horizonte NINA`,"review.tabPano":`Panorama`,"review.detecting":`Detectando el borde del cielo…`,"review.noHorizon":`Aún sin horizonte: primero toma algunas fotos.`,"review.legendEdge":`Borde del cielo detectado`,"review.legendHrz":`Se escribe en el .hrz`,"review.chartLabel":`Perfil del horizonte: altura de los obstáculos por azimut, con el margen de seguridad discontinuo`,"review.margin":`Margen de seguridad`,"review.marginHint":`Mantiene los objetivos de NINA lejos de las copas de los árboles y del error de la brújula`,"review.toolAuto":`Automático`,"review.toolSky":`Pintar cielo`,"review.toolGround":`Pintar suelo`,"review.edits":{one:`{count} corrección`,other:`{count} correcciones`},"review.undoEdit":`Deshacer última`,"review.clearEdits":`Volver a automático`,"review.transparentSky":`Cielo transparente en Stellarium`,"review.dragHint":`Arrastra para mirar alrededor`,"review.paintHint":`Pinta con el dedo`,"review.zoomLabel":`Panorama ampliado: la zona a cuadros es cielo transparente, la línea es el borde detectado`,"review.overviewLabel":`Panorama completo de 360 grados con la parte ampliada marcada`,"review.north":`Desfase del norte`,"review.northHint":`Se aplica al .hrz y al panorama`,"review.rotateLeft":`Girar 0,5 grados a la izquierda`,"review.rotateRight":`Girar 0,5 grados a la derecha`,"review.export":`Exportar`,"export.title":`Exportar`,"export.back":`Volver a la revisión`,"export.summary":`{name} · margen {margin}° · desfase del norte {north}°`,"export.ninaTitle":`Horizonte personalizado NINA`,"export.ninaSub":`Borde del cielo + margen de seguridad como pares azimut/altura, para límites de altura de los objetivos`,"export.panoTitle":`Panorama de Stellarium`,"export.panoSub":`Paisaje esférico: franja fotográfica de 360° con cielo transparente, PNG de 8192 × 2048`,"export.polyTitle":`Stellarium, solo contorno`,"export.polySub":`Paisaje poligonal: solo la línea del horizonte, sin foto`,"export.panoUnavailable":`Requiere un estudio con fotos (no disponible para horizontes importados)`,"export.panoGaps":`No se han fotografiado los 360°: los huecos se rellenan en oscuro`,"export.preview":`Vista previa`,"export.loading":`Cargando…`,"export.lines":{one:`{count} línea · azimut altura, margen {margin}°`,other:`{count} líneas · azimut altura, margen {margin}°`},"export.help":`NINA: Options › General › Astrometry › Custom Horizon. Stellarium: instala el .zip en Opciones de cielo y visualización › Paisaje › Añadir/eliminar paisajes.`,"export.rendering":`Generando panorama…`,"export.preparing":`Preparando…`,"export.sharing":`Compartiendo…`,"export.saving":`Guardando…`,"export.save":`Guardar`,"export.share":{one:`Compartir {count} archivo`,other:`Compartir {count} archivos`},"files.downloaded":{one:`Descargado: {name}`,other:`{count} archivos descargados`},"files.savedAndroid":{one:`Guardado en Descargas: {name}`,other:`{count} archivos guardados en Descargas`},"files.savedIos":{one:`Guardado en Archivos › SkyContour: {name}`,other:`{count} archivos guardados en Archivos › SkyContour`},"files.shared":`Compartido`,"files.shareCancelled":`Se canceló el envío`,"files.shareUnsupported":`Este navegador no puede compartir archivos, así que se han descargado.`,"settings.title":`Ajustes`,"settings.camera":`Cámara`,"settings.fov":`Campo de visión`,"settings.fovValue":`{fov}° a lo ancho de la imagen`,"settings.fovAssumed":`Sin calibrar: se suponen unos {fov}°`,"settings.narrower":`Más estrecho`,"settings.wider":`Más amplio`,"settings.calibrate":`Calibrar con la cámara`,"settings.reset":`Restablecer`,"settings.fovHint":`El campo de visión sitúa cada foto en el panorama. Calibra una vez por teléfono: gira despacio mientras la app compara dos vistas superpuestas.`,"settings.author":`Autor en los archivos de Stellarium`,"settings.authorPlaceholder":`Tu nombre`,"settings.language":`Idioma`,"settings.systemLanguage":`Idioma del sistema ({name})`,"settings.about":`{app} · horizontes para NINA y Stellarium`,"calib.title":`Campo de visión`,"calib.intro":`Apunta a detalles lejanos (árboles, tejados), toca Iniciar y gira despacio hacia un lado.`,"calib.turn":`Gira el teléfono despacio hacia un lado ⟷`,"calib.turnAuto":`Gira el teléfono despacio hacia un lado ⟷ (termina solo)`,"calib.newRef":`Nueva referencia tomada: sigue girando despacio ⟷`,"calib.noMatch":`Sin coincidencia: gira más despacio y apunta a detalles lejanos`,"calib.almost":`Casi listo: los valores aún varían, sigue girando despacio`,"calib.measuring":`Midiendo… sigue girando despacio`,"calib.waiting":`Esperando la cámara y la brújula…`,"calib.done":`Listo: campo de visión de {fov}° guardado.`,"calib.doneButton":`Listo`,"calib.restart":`Repetir medición`,"calib.start":`Iniciar`},oe={"tab.sites":`المواقع`,"tab.new":`مسح جديد`,"tab.settings":`الإعدادات`,"compass.n":`ش`,"compass.e":`ق`,"compass.s":`ج`,"compass.w":`غ`,"common.back":`رجوع`,"common.startCamera":`تشغيل الكاميرا`,"common.startingCamera":`جارٍ تشغيل الكاميرا…`,"common.noLocation":`لا يوجد موقع`,"app.engineError":`تعذّر تحميل المحرّك: {error}`,"welcome.tagline":`تتبّع الأشجار وأسطح المنازل حول تلسكوبك`,"welcome.formats":`NINA .HRZ · مشهد Stellarium`,"welcome.start":`ابدأ`,"welcome.sceneLabel":`حديقة ليلية فيها منزل وأشجار وتلسكوب تحت سماء مرصّعة بالنجوم؛ خطّ كهرماني متقطّع يتتبّع الأفق فوق الأسطح وقمم الأشجار`,"sites.subtitle":`آفاق اصطناعية لـ NINA و Stellarium`,"sites.settings":`الإعدادات`,"sites.count":`المواقع · {count}`,"sites.emptyTitle":`لا توجد مواقع بعد`,"sites.emptyHint":`قف حيث يقف تلسكوبك وابدأ مسحًا.`,"sites.emptyHintApp":`اضغط «{tab}» في الأسفل، أو استورد ملف ‎.hrz من NINA بالزر في الأعلى.`,"sites.newSurvey":`مسح جديد للأفق`,"sites.import":`استيراد ملف ‎.hrz موجود`,"sites.importError":`تعذّرت قراءة {file}: {error}`,"sites.inProgress":`قيد التنفيذ`,"sites.noHorizon":`لا يوجد أفق بعد`,"sites.covered":`تمت تغطية {deg}° من 360°`,"sites.continue":`متابعة المسح`,"sites.imported":`ملف ‎.hrz مستورد`,"sites.framesFull":{zero:`{count} صورة · 360° كاملة`,one:`صورة واحدة · 360° كاملة`,two:`صورتان · 360° كاملة`,few:`{count} صور · 360° كاملة`,many:`{count} صورة · 360° كاملة`,other:`{count} صورة · 360° كاملة`},"sites.framesPartial":{zero:`{count} صورة · تغطية {deg}°`,one:`صورة واحدة · تغطية {deg}°`,two:`صورتان · تغطية {deg}°`,few:`{count} صور · تغطية {deg}°`,many:`{count} صورة · تغطية {deg}°`,other:`{count} صورة · تغطية {deg}°`},"sites.defaultName":`الموقع {n}`,"sites.importedName":`أفق مستورد`,"setup.title":`مسح جديد`,"setup.siteName":`اسم الموقع`,"setup.locating":`جارٍ تحديد الموقع…`,"setup.locationHint":`يُكتب في مشهد Stellarium`,"setup.altitudeUnknown":`الارتفاع غير معروف`,"setup.elevation":`{m} م`,"setup.gps":`GPS ±{m} م`,"setup.refresh":`تحديث`,"setup.noGeo":`لا تتوفر خدمة الموقع في هذا المتصفح`,"setup.geoUnavailable":`الموقع غير متاح`,"setup.northTitle":`الشمال من البوصلة`,"setup.northHint":`لم يُطبَّق الانحراف المغناطيسي بعد: صحّح الشمال بالإزاحة في شاشة المراجعة`,"setup.howTo":`طريقة التصوير`,"setup.skyNotNeeded":`لا حاجة للسماء`,"setup.illustration":`استدر دورة كاملة في مكانك والهاتف قائم؛ يُصوَّر فقط شريط حول الأفق`,"setup.step1":`قف حيث يقف التلسكوب.`,"setup.step2":`أمسك الهاتف قائمًا ومائلًا قليلًا فوق الأفق.`,"setup.step3":`استدر ببطء دورة كاملة. تُلتقط الصور تلقائيًا.`,"setup.start":`بدء التصوير`,"setup.sensorsError":`مستشعرات الحركة غير متاحة: {error}`,"setup.cameraError":`الكاميرا: {error}`,"capture.openError":`تعذّر فتح المسح: {error}`,"capture.saveError":`تعذّر الحفظ: {error}`,"capture.close":`إغلاق المسح`,"capture.undo":`إعادة التقاط آخر صورة`,"capture.frameOf":`الصورة {n} من {total}`,"capture.allFrames":`كل الصور ({count})`,"capture.progress":`تقدّم البانوراما على 360 درجة`,"capture.heading":`الاتجاه`,"capture.tilt":`الميل`,"capture.covers":`التغطية`,"capture.autoOn":`تلقائي: تشغيل`,"capture.autoOff":`تلقائي: إيقاف`,"capture.shutter":`التقاط صورة`,"capture.finish":`إنهاء`,"capture.topTouch":`عائق يصل إلى أعلى الصورة عند {az}°`,"capture.addHigher":`صورة أعلى`,"capture.hint.compass":`بانتظار البوصلة…`,"capture.hint.done":`التُقطت كل الصور. اضغط إنهاء.`,"capture.hint.higher":`صورة أعلى: وجّه الهاتف نحو النقطة`,"capture.hint.turnRight":`استدر يمينًا حتى تدخل النقطة في الدائرة`,"capture.hint.turnLeft":`استدر يسارًا حتى تدخل النقطة في الدائرة`,"capture.hint.manual":`وجّه الهاتف نحو النقطة ثم اضغط زر الالتقاط`,"capture.hint.tiltUp":`أمِل الهاتف قليلًا إلى الأعلى`,"capture.hint.tiltDown":`أمِل الهاتف قليلًا إلى الأسفل`,"capture.hint.hold":`اثبت…`,"capture.hint.tap":`اضغط زر الالتقاط`,"capture.err.noHeading":`لا يوجد اتجاه من البوصلة بعد`,"capture.err.cameraNotReady":`الكاميرا غير جاهزة`,"capture.err.encode":`تعذّر إنشاء البانوراما`,"camera.err.https":`تحتاج الكاميرا إلى HTTPS (أو localhost).`,"camera.err.noApi":`لا يمكن لهذا المتصفح الوصول إلى الكاميرا.`,"camera.err.noPicture":`بدأت الكاميرا لكنها لا ترسل صورة.`,"review.title":`مراجعة الأفق`,"review.imported":`مستورد من ملف ‎.hrz`,"review.stitchedFull":{zero:`{count} صورة مدمجة · 360° كاملة`,one:`صورة واحدة مدمجة · 360° كاملة`,two:`صورتان مدمجتان · 360° كاملة`,few:`{count} صور مدمجة · 360° كاملة`,many:`{count} صورة مدمجة · 360° كاملة`,other:`{count} صورة مدمجة · 360° كاملة`},"review.stitchedPartial":{zero:`{count} صورة مدمجة · {deg}° من 360°`,one:`صورة واحدة مدمجة · {deg}° من 360°`,two:`صورتان مدمجتان · {deg}° من 360°`,few:`{count} صور مدمجة · {deg}° من 360°`,many:`{count} صورة مدمجة · {deg}° من 360°`,other:`{count} صورة مدمجة · {deg}° من 360°`},"review.delete":`حذف الموقع`,"review.deleteConfirm":`حذف؟`,"review.tabNina":`أفق NINA`,"review.tabPano":`بانوراما`,"review.detecting":`جارٍ اكتشاف حافة السماء…`,"review.noHorizon":`لا يوجد أفق بعد: التقط بعض الصور أولًا.`,"review.legendEdge":`حافة السماء المكتشفة`,"review.legendHrz":`يُكتب في ملف ‎.hrz`,"review.chartLabel":`مقطع الأفق: ارتفاع العوائق حسب السمت، مع هامش الأمان بخط متقطّع`,"review.margin":`هامش الأمان`,"review.marginHint":`يُبعد أهداف NINA عن قمم الأشجار وعن خطأ البوصلة`,"review.toolAuto":`تلقائي`,"review.toolSky":`تلوين السماء`,"review.toolGround":`تلوين الأرض`,"review.edits":{zero:`لا تعديلات`,one:`تعديل واحد`,two:`تعديلان`,few:`{count} تعديلات`,many:`{count} تعديلًا`,other:`{count} تعديل`},"review.undoEdit":`تراجع عن الأخير`,"review.clearEdits":`العودة إلى التلقائي`,"review.transparentSky":`سماء شفافة في Stellarium`,"review.dragHint":`اسحب للنظر حولك`,"review.paintHint":`لوّن بإصبعك`,"review.zoomLabel":`بانوراما مكبّرة: المنطقة المربّعة سماء شفافة، والخط هو الحافة المكتشفة`,"review.overviewLabel":`البانوراما الكاملة بزاوية 360 درجة مع تحديد الجزء المكبّر`,"review.north":`إزاحة الشمال`,"review.northHint":`تنطبق على ملف ‎.hrz والبانوراما`,"review.rotateLeft":`تدوير 0.5 درجة إلى اليسار`,"review.rotateRight":`تدوير 0.5 درجة إلى اليمين`,"review.export":`تصدير`,"export.title":`تصدير`,"export.back":`العودة إلى المراجعة`,"export.summary":`{name} · الهامش {margin}° · إزاحة الشمال {north}°`,"export.ninaTitle":`أفق مخصّص لـ NINA`,"export.ninaSub":`حافة السماء + هامش الأمان كأزواج سمت/ارتفاع، لحدود ارتفاع الأهداف`,"export.panoTitle":`بانوراما Stellarium`,"export.panoSub":`مشهد كروي: شريط صور بزاوية 360° مع سماء شفافة، PNG بحجم 8192 × 2048`,"export.polyTitle":`Stellarium، المخطط فقط`,"export.polySub":`مشهد مضلّع: خط الأفق فقط، بلا صورة`,"export.panoUnavailable":`يتطلب مسحًا بالصور (غير متاح للآفاق المستوردة)`,"export.panoGaps":`لم تُصوَّر الـ 360° كاملة: تُملأ الفجوات بلون داكن`,"export.preview":`معاينة`,"export.loading":`جارٍ التحميل…`,"export.lines":{zero:`{count} سطر · السمت الارتفاع، هامش {margin}°`,one:`سطر واحد · السمت الارتفاع، هامش {margin}°`,two:`سطران · السمت الارتفاع، هامش {margin}°`,few:`{count} أسطر · السمت الارتفاع، هامش {margin}°`,many:`{count} سطرًا · السمت الارتفاع، هامش {margin}°`,other:`{count} سطر · السمت الارتفاع، هامش {margin}°`},"export.help":`NINA: Options › General › Astrometry › Custom Horizon. Stellarium: ثبّت ملف ‎.zip من خيارات السماء والعرض › المشهد › إضافة/إزالة المشاهد.`,"export.rendering":`جارٍ إنشاء البانوراما…`,"export.preparing":`جارٍ التحضير…`,"export.sharing":`جارٍ المشاركة…`,"export.saving":`جارٍ الحفظ…`,"export.save":`حفظ`,"export.share":{zero:`مشاركة`,one:`مشاركة ملف واحد`,two:`مشاركة ملفين`,few:`مشاركة {count} ملفات`,many:`مشاركة {count} ملفًا`,other:`مشاركة {count} ملف`},"files.downloaded":{zero:`لم يُنزَّل أي ملف`,one:`تم تنزيل {name}`,two:`تم تنزيل ملفين`,few:`تم تنزيل {count} ملفات`,many:`تم تنزيل {count} ملفًا`,other:`تم تنزيل {count} ملف`},"files.savedAndroid":{zero:`لم يُحفظ أي ملف`,one:`حُفظ في التنزيلات: {name}`,two:`حُفظ ملفان في التنزيلات`,few:`حُفظت {count} ملفات في التنزيلات`,many:`حُفظ {count} ملفًا في التنزيلات`,other:`حُفظ {count} ملف في التنزيلات`},"files.savedIos":{zero:`لم يُحفظ أي ملف`,one:`حُفظ في الملفات › SkyContour: {name}`,two:`حُفظ ملفان في الملفات › SkyContour`,few:`حُفظت {count} ملفات في الملفات › SkyContour`,many:`حُفظ {count} ملفًا في الملفات › SkyContour`,other:`حُفظ {count} ملف في الملفات › SkyContour`},"files.shared":`تمت المشاركة`,"files.shareCancelled":`أُلغيت المشاركة`,"files.shareUnsupported":`لا يستطيع هذا المتصفح مشاركة الملفات، لذا تم تنزيلها.`,"settings.title":`الإعدادات`,"settings.camera":`الكاميرا`,"settings.fov":`مجال الرؤية`,"settings.fovValue":`{fov}° على عرض الصورة`,"settings.fovAssumed":`غير معايَر: يُفترض نحو {fov}°`,"settings.narrower":`أضيق`,"settings.wider":`أوسع`,"settings.calibrate":`المعايرة بالكاميرا`,"settings.reset":`إعادة الضبط`,"settings.fovHint":`يحدّد مجال الرؤية موضع كل صورة في البانوراما. عايِر مرة واحدة لكل هاتف: استدر ببطء بينما يقارن التطبيق بين منظرين متداخلين.`,"settings.author":`المؤلّف في ملفات Stellarium`,"settings.authorPlaceholder":`اسمك`,"settings.language":`اللغة`,"settings.systemLanguage":`لغة النظام ({name})`,"settings.about":`{app} · آفاق لـ NINA و Stellarium`,"calib.title":`مجال الرؤية`,"calib.intro":`وجّه الكاميرا نحو تفاصيل بعيدة (أشجار، أسطح)، ثم اضغط بدء واستدر ببطء إلى الجانب.`,"calib.turn":`أدِر الهاتف ببطء إلى الجانب ⟷`,"calib.turnAuto":`أدِر الهاتف ببطء إلى الجانب ⟷ (ينتهي تلقائيًا)`,"calib.newRef":`التُقطت صورة مرجعية جديدة: تابع الاستدارة ببطء ⟷`,"calib.noMatch":`لا يوجد تطابق: استدر أبطأ ووجّه نحو تفاصيل بعيدة`,"calib.almost":`اقتربنا: القيم ما زالت تتغيّر، تابع الاستدارة ببطء`,"calib.measuring":`جارٍ القياس… تابع الاستدارة ببطء`,"calib.waiting":`بانتظار الكاميرا والبوصلة…`,"calib.done":`تم: حُفظ مجال رؤية {fov}°.`,"calib.doneButton":`تم`,"calib.restart":`إعادة القياس`,"calib.start":`بدء`},se={"tab.sites":`Standorte`,"tab.new":`Neue Messung`,"tab.settings":`Einstellungen`,"compass.n":`N`,"compass.e":`O`,"compass.s":`S`,"compass.w":`W`,"common.back":`Zurück`,"common.startCamera":`Kamera starten`,"common.startingCamera":`Kamera wird gestartet…`,"common.noLocation":`Kein Standort`,"app.engineError":`Die Rechen-Engine konnte nicht geladen werden: {error}`,"welcome.tagline":`Erfasse die Bäume und Dächer rund um dein Teleskop`,"welcome.formats":`NINA .HRZ · STELLARIUM-LANDSCHAFT`,"welcome.start":`Los geht’s`,"welcome.sceneLabel":`Nächtlicher Garten mit Haus, Bäumen und Teleskop unter Sternenhimmel; eine gestrichelte bernsteinfarbene Linie folgt dem Horizont über Dächern und Baumkronen`,"sites.subtitle":`Künstliche Horizonte für NINA & Stellarium`,"sites.settings":`Einstellungen`,"sites.count":`Standorte · {count}`,"sites.emptyTitle":`Noch keine Standorte`,"sites.emptyHint":`Stell dich dorthin, wo dein Teleskop steht, und starte eine Messung.`,"sites.emptyHintApp":`Tippe unten auf „{tab}“ oder importiere eine NINA-.hrz mit der Schaltfläche oben.`,"sites.newSurvey":`Neue Horizontmessung`,"sites.import":`Vorhandene .hrz importieren`,"sites.importError":`{file} konnte nicht gelesen werden: {error}`,"sites.inProgress":`In Arbeit`,"sites.noHorizon":`Noch kein Horizont`,"sites.covered":`{deg}° von 360° erfasst`,"sites.continue":`Messung fortsetzen`,"sites.imported":`Importierte .hrz`,"sites.framesFull":{one:`{count} Bild · volle 360°`,other:`{count} Bilder · volle 360°`},"sites.framesPartial":{one:`{count} Bild · {deg}° erfasst`,other:`{count} Bilder · {deg}° erfasst`},"sites.defaultName":`Standort {n}`,"sites.importedName":`Importierter Horizont`,"setup.title":`Neue Messung`,"setup.siteName":`Name des Standorts`,"setup.locating":`Standort wird ermittelt…`,"setup.locationHint":`Wird in die Stellarium-Landschaft geschrieben`,"setup.altitudeUnknown":`Höhe unbekannt`,"setup.elevation":`{m} m`,"setup.gps":`GPS ±{m} m`,"setup.refresh":`Aktualisieren`,"setup.noGeo":`Dieser Browser hat keine Ortungsdienste`,"setup.geoUnavailable":`Standort nicht verfügbar`,"setup.northTitle":`Norden vom Kompass`,"setup.northHint":`Die Deklination wird noch nicht berücksichtigt: korrigiere Norden mit dem Versatz in der Prüfung`,"setup.howTo":`So wird aufgenommen`,"setup.skyNotNeeded":`Himmel nicht nötig`,"setup.illustration":`Dreh dich einmal auf der Stelle und halte das Telefon aufrecht; fotografiert wird nur ein Band um den Horizont`,"setup.step1":`Stell dich dorthin, wo das Teleskop steht.`,"setup.step2":`Halte das Telefon aufrecht, leicht über den Horizont geneigt.`,"setup.step3":`Dreh dich langsam einmal im Kreis. Die Bilder entstehen automatisch.`,"setup.start":`Aufnahme starten`,"setup.sensorsError":`Bewegungssensoren nicht verfügbar: {error}`,"setup.cameraError":`Kamera: {error}`,"capture.openError":`Die Messung konnte nicht geöffnet werden: {error}`,"capture.saveError":`Speichern fehlgeschlagen: {error}`,"capture.close":`Messung schließen`,"capture.undo":`Letztes Bild wiederholen`,"capture.frameOf":`Bild {n} von {total}`,"capture.allFrames":`alle {count} Bilder`,"capture.progress":`Panorama-Fortschritt über 360 Grad`,"capture.heading":`RICHTUNG`,"capture.tilt":`NEIGUNG`,"capture.covers":`BEREICH`,"capture.autoOn":`Auto an`,"capture.autoOff":`Auto aus`,"capture.shutter":`Bild aufnehmen`,"capture.finish":`Fertig`,"capture.topTouch":`Hindernis reicht bei {az}° bis an den Bildrand`,"capture.addHigher":`Höheres Bild`,"capture.hint.compass":`Warte auf den Kompass…`,"capture.hint.done":`Alle Bilder aufgenommen. Tippe auf Fertig.`,"capture.hint.higher":`Höheres Bild: richte den Punkt aus`,"capture.hint.turnRight":`Nach rechts drehen, bis der Punkt im Kreis ist`,"capture.hint.turnLeft":`Nach links drehen, bis der Punkt im Kreis ist`,"capture.hint.manual":`Richte den Punkt aus und tippe dann auf den Auslöser`,"capture.hint.tiltUp":`Telefon etwas nach oben neigen`,"capture.hint.tiltDown":`Telefon etwas nach unten neigen`,"capture.hint.hold":`Ruhig halten…`,"capture.hint.tap":`Tippe auf den Auslöser`,"capture.err.noHeading":`Noch keine Kompassrichtung`,"capture.err.cameraNotReady":`Kamera nicht bereit`,"capture.err.encode":`Das Panorama konnte nicht erstellt werden`,"camera.err.https":`Die Kamera braucht HTTPS (oder localhost).`,"camera.err.noApi":`Dieser Browser hat keinen Kamerazugriff.`,"camera.err.noPicture":`Die Kamera läuft, liefert aber kein Bild.`,"review.title":`Horizont prüfen`,"review.imported":`Aus .hrz importiert`,"review.stitchedFull":{one:`{count} Bild zusammengefügt · volle 360°`,other:`{count} Bilder zusammengefügt · volle 360°`},"review.stitchedPartial":{one:`{count} Bild zusammengefügt · {deg}° von 360°`,other:`{count} Bilder zusammengefügt · {deg}° von 360°`},"review.delete":`Standort löschen`,"review.deleteConfirm":`Löschen?`,"review.tabNina":`NINA-Horizont`,"review.tabPano":`Panorama`,"review.detecting":`Himmelskante wird erkannt…`,"review.noHorizon":`Noch kein Horizont: nimm zuerst ein paar Bilder auf.`,"review.legendEdge":`Erkannte Himmelskante`,"review.legendHrz":`In die .hrz geschrieben`,"review.chartLabel":`Horizontprofil: Höhe der Hindernisse nach Azimut, gestrichelt mit Sicherheitsabstand`,"review.margin":`Sicherheitsabstand`,"review.marginHint":`Hält NINA-Ziele von Baumspitzen und Kompassfehlern fern`,"review.toolAuto":`Automatisch`,"review.toolSky":`Himmel malen`,"review.toolGround":`Boden malen`,"review.edits":{one:`{count} Korrektur`,other:`{count} Korrekturen`},"review.undoEdit":`Letzte rückgängig`,"review.clearEdits":`Zurück zur Automatik`,"review.transparentSky":`Transparenter Himmel in Stellarium`,"review.dragHint":`Ziehen zum Umsehen`,"review.paintHint":`Mit dem Finger malen`,"review.zoomLabel":`Vergrößertes Panorama: kariert ist transparenter Himmel, die Linie ist die erkannte Kante`,"review.overviewLabel":`Gesamtes 360-Grad-Panorama, der vergrößerte Teil ist markiert`,"review.north":`Nordversatz`,"review.northHint":`Gilt für .hrz und Panorama`,"review.rotateLeft":`Um 0,5 Grad nach links drehen`,"review.rotateRight":`Um 0,5 Grad nach rechts drehen`,"review.export":`Exportieren`,"export.title":`Exportieren`,"export.back":`Zurück zur Prüfung`,"export.summary":`{name} · Abstand {margin}° · Nordversatz {north}°`,"export.ninaTitle":`NINA Custom Horizon`,"export.ninaSub":`Himmelskante + Sicherheitsabstand als Azimut/Höhe-Paare, für Höhengrenzen der Ziele`,"export.panoTitle":`Stellarium-Panorama`,"export.panoSub":`Sphärische Landschaft: 360°-Fotoband mit transparentem Himmel, 8192 × 2048 PNG`,"export.polyTitle":`Stellarium, nur Umriss`,"export.polySub":`Polygonale Landschaft: nur die Horizontlinie, ohne Foto`,"export.panoUnavailable":`Braucht eine Fotomessung (für importierte Horizonte nicht verfügbar)`,"export.panoGaps":`Nicht alle 360° fotografiert: Lücken werden dunkel gefüllt`,"export.preview":`Vorschau`,"export.loading":`Wird geladen…`,"export.lines":{one:`{count} Zeile · Azimut Höhe, {margin}° Abstand`,other:`{count} Zeilen · Azimut Höhe, {margin}° Abstand`},"export.help":`NINA: Options › General › Astrometry › Custom Horizon. Stellarium: die .zip unter Himmels- und Ansichtsoptionen › Landschaft › Landschaften hinzufügen/entfernen installieren.`,"export.rendering":`Panorama wird erstellt…`,"export.preparing":`Wird vorbereitet…`,"export.sharing":`Wird geteilt…`,"export.saving":`Wird gespeichert…`,"export.save":`Speichern`,"export.share":{one:`{count} Datei teilen`,other:`{count} Dateien teilen`},"files.downloaded":{one:`Heruntergeladen: {name}`,other:`{count} Dateien heruntergeladen`},"files.savedAndroid":{one:`In Downloads gespeichert: {name}`,other:`{count} Dateien in Downloads gespeichert`},"files.savedIos":{one:`Gespeichert in Dateien › SkyContour: {name}`,other:`{count} Dateien gespeichert in Dateien › SkyContour`},"files.shared":`Geteilt`,"files.shareCancelled":`Teilen abgebrochen`,"files.shareUnsupported":`Dieser Browser kann keine Dateien teilen, deshalb wurden sie heruntergeladen.`,"settings.title":`Einstellungen`,"settings.camera":`Kamera`,"settings.fov":`Bildwinkel`,"settings.fovValue":`{fov}° über die Bildbreite`,"settings.fovAssumed":`Nicht kalibriert: etwa {fov}° angenommen`,"settings.narrower":`Enger`,"settings.wider":`Weiter`,"settings.calibrate":`Mit der Kamera kalibrieren`,"settings.reset":`Zurücksetzen`,"settings.fovHint":`Der Bildwinkel bestimmt, wo jedes Foto im Panorama landet. Einmal pro Telefon kalibrieren: langsam drehen, während die App zwei überlappende Ansichten vergleicht.`,"settings.author":`Autor in Stellarium-Dateien`,"settings.authorPlaceholder":`Dein Name`,"settings.language":`Sprache`,"settings.systemLanguage":`Systemsprache ({name})`,"settings.about":`{app} · Horizonte für NINA und Stellarium`,"calib.title":`Bildwinkel`,"calib.intro":`Richte die Kamera auf entfernte Details (Bäume, Dächer), tippe auf Start und dreh dich langsam zur Seite.`,"calib.turn":`Telefon langsam zur Seite drehen ⟷`,"calib.turnAuto":`Telefon langsam zur Seite drehen ⟷ (endet von selbst)`,"calib.newRef":`Neue Referenz aufgenommen: weiter langsam drehen ⟷`,"calib.noMatch":`Keine Übereinstimmung: langsamer drehen und auf entfernte Details zielen`,"calib.almost":`Fast fertig: die Werte schwanken noch, weiter langsam drehen`,"calib.measuring":`Messung… weiter langsam drehen`,"calib.waiting":`Warte auf Kamera und Kompass…`,"calib.done":`Fertig: Bildwinkel {fov}° gespeichert.`,"calib.doneButton":`Fertig`,"calib.restart":`Messung neu starten`,"calib.start":`Start`},ce={"tab.sites":`Helyszínek`,"tab.new":`Új felmérés`,"tab.settings":`Beállítások`,"compass.n":`É`,"compass.e":`K`,"compass.s":`D`,"compass.w":`Ny`,"common.back":`Vissza`,"common.startCamera":`Kamera indítása`,"common.startingCamera":`Kamera indítása…`,"common.noLocation":`Nincs helyadat`,"app.engineError":`Nem sikerült betölteni a motort: {error}`,"welcome.tagline":`Rajzold körbe a fákat és háztetőket a távcsöved körül`,"welcome.formats":`NINA .HRZ · STELLARIUM TÁJKÉP`,"welcome.start":`Kezdjük`,"welcome.sceneLabel":`Éjszakai kert házzal, fákkal és távcsővel a csillagos ég alatt; szaggatott borostyánszínű vonal követi a horizontot a háztetők és fák fölött`,"sites.subtitle":`Mesterséges horizontok a NINA-hoz és a Stellariumhoz`,"sites.settings":`Beállítások`,"sites.count":`Helyszínek · {count}`,"sites.emptyTitle":`Még nincs helyszín`,"sites.emptyHint":`Állj oda, ahol a távcsöved áll, és indíts egy felmérést.`,"sites.emptyHintApp":`Koppints lent az „{tab}” fülre, vagy importálj egy NINA .hrz fájlt a fenti gombbal.`,"sites.newSurvey":`Új horizontfelmérés`,"sites.import":`Meglévő .hrz importálása`,"sites.importError":`Nem sikerült beolvasni: {file}: {error}`,"sites.inProgress":`Folyamatban`,"sites.noHorizon":`Még nincs horizont`,"sites.covered":`360°-ból {deg}° felvéve`,"sites.continue":`Felmérés folytatása`,"sites.imported":`Importált .hrz`,"sites.framesFull":{one:`{count} kép · teljes 360°`,other:`{count} kép · teljes 360°`},"sites.framesPartial":{one:`{count} kép · {deg}° felvéve`,other:`{count} kép · {deg}° felvéve`},"sites.defaultName":`{n}. helyszín`,"sites.importedName":`Importált horizont`,"setup.title":`Új felmérés`,"setup.siteName":`Helyszín neve`,"setup.locating":`Hely meghatározása…`,"setup.locationHint":`Bekerül a Stellarium tájképbe`,"setup.altitudeUnknown":`Ismeretlen magasság`,"setup.elevation":`{m} m`,"setup.gps":`GPS ±{m} m`,"setup.refresh":`Frissítés`,"setup.noGeo":`Ebben a böngészőben nincs helymeghatározás`,"setup.geoUnavailable":`A hely nem érhető el`,"setup.northTitle":`Észak az iránytűből`,"setup.northHint":`A deklinációt még nem számolja az app: az északot a Review képernyőn az eltolással igazítsd`,"setup.howTo":`Így készül a felvétel`,"setup.skyNotNeeded":`az ég nem kell`,"setup.illustration":`Fordulj körbe egy helyben, a telefont függőlegesen tartva; csak a horizont körüli sáv kerül a képekre`,"setup.step1":`Állj oda, ahol a távcső áll.`,"setup.step2":`Tartsd a telefont függőlegesen, kicsit a horizont fölé döntve.`,"setup.step3":`Fordulj körbe lassan egyszer. A képek maguktól készülnek.`,"setup.start":`Felvétel indítása`,"setup.sensorsError":`A mozgásérzékelők nem érhetők el: {error}`,"setup.cameraError":`Kamera: {error}`,"capture.openError":`Nem sikerült megnyitni a felmérést: {error}`,"capture.saveError":`Nem sikerült menteni: {error}`,"capture.close":`Felmérés bezárása`,"capture.undo":`Utolsó kép újra`,"capture.frameOf":`{n}. kép / {total}`,"capture.allFrames":`mind a {count} kép kész`,"capture.progress":`A panoráma haladása 360 fokban`,"capture.heading":`IRÁNY`,"capture.tilt":`DŐLÉS`,"capture.covers":`LEFEDÉS`,"capture.autoOn":`Auto be`,"capture.autoOff":`Auto ki`,"capture.shutter":`Kép készítése`,"capture.finish":`Kész`,"capture.topTouch":`Az akadály eléri a kép tetejét itt: {az}°`,"capture.addHigher":`Magasabb kép`,"capture.hint.compass":`Várakozás az iránytűre…`,"capture.hint.done":`Minden kép kész. Koppints a Kész gombra.`,"capture.hint.higher":`Magasabb kép: célozd be a pontot`,"capture.hint.turnRight":`Fordulj jobbra, amíg a pont a körbe nem ér`,"capture.hint.turnLeft":`Fordulj balra, amíg a pont a körbe nem ér`,"capture.hint.manual":`Célozd be a pontot, majd nyomd meg az exponálógombot`,"capture.hint.tiltUp":`Döntsd kicsit feljebb a telefont`,"capture.hint.tiltDown":`Döntsd kicsit lejjebb a telefont`,"capture.hint.hold":`Tartsd mozdulatlanul…`,"capture.hint.tap":`Nyomd meg az exponálógombot`,"capture.err.noHeading":`Még nincs iránytűadat`,"capture.err.cameraNotReady":`A kamera még nem kész`,"capture.err.encode":`Nem sikerült elkészíteni a panorámát`,"camera.err.https":`A kamerához HTTPS kell (vagy localhost).`,"camera.err.noApi":`Ez a böngésző nem fér hozzá a kamerához.`,"camera.err.noPicture":`A kamera elindult, de nem küld képet.`,"review.title":`Horizont áttekintése`,"review.imported":`.hrz fájlból importálva`,"review.stitchedFull":{one:`{count} kép összefűzve · teljes 360°`,other:`{count} kép összefűzve · teljes 360°`},"review.stitchedPartial":{one:`{count} kép összefűzve · 360°-ból {deg}°`,other:`{count} kép összefűzve · 360°-ból {deg}°`},"review.delete":`Helyszín törlése`,"review.deleteConfirm":`Törlöd?`,"review.tabNina":`NINA horizont`,"review.tabPano":`Panoráma`,"review.detecting":`Az ég határának felismerése…`,"review.noHorizon":`Még nincs horizont: előbb készíts néhány képet.`,"review.legendEdge":`Felismert éghatár`,"review.legendHrz":`A .hrz-be kerül`,"review.chartLabel":`Horizontprofil: az akadályok magassága azimut szerint, szaggatottan a biztonsági ráhagyással`,"review.margin":`Biztonsági ráhagyás`,"review.marginHint":`A NINA célpontjait távol tartja a fák csúcsától és az iránytű hibájától`,"review.toolAuto":`Automatikus`,"review.toolSky":`Ég festése`,"review.toolGround":`Talaj festése`,"review.edits":{one:`{count} javítás`,other:`{count} javítás`},"review.undoEdit":`Utolsó visszavonása`,"review.clearEdits":`Vissza az automatikushoz`,"review.transparentSky":`Átlátszó ég a Stellariumban`,"review.dragHint":`Húzd a körbenézéshez`,"review.paintHint":`Fess az ujjaddal`,"review.zoomLabel":`Nagyított panoráma: a kockás rész az átlátszó ég, a vonal a felismert határ`,"review.overviewLabel":`A teljes 360 fokos panoráma, a nagyított rész kijelölve`,"review.north":`Észak-eltolás`,"review.northHint":`A .hrz-re és a panorámára is vonatkozik`,"review.rotateLeft":`Forgatás 0,5 fokkal balra`,"review.rotateRight":`Forgatás 0,5 fokkal jobbra`,"review.export":`Exportálás`,"export.title":`Exportálás`,"export.back":`Vissza az áttekintéshez`,"export.summary":`{name} · ráhagyás {margin}° · észak-eltolás {north}°`,"export.ninaTitle":`NINA egyéni horizont`,"export.ninaSub":`Éghatár + biztonsági ráhagyás azimut/magasság párokként, a célpontok magassági korlátjához`,"export.panoTitle":`Stellarium panoráma`,"export.panoSub":`Gömbi tájkép: 360°-os fotósáv átlátszó éggel, 8192 × 2048 PNG`,"export.polyTitle":`Stellarium, csak körvonal`,"export.polySub":`Poligon tájkép: csak a horizontvonal, fotó nélkül`,"export.panoUnavailable":`Fotós felmérés kell hozzá (importált horizontnál nem érhető el)`,"export.panoGaps":`Nincs mind a 360° lefényképezve: a hiányok sötét kitöltést kapnak`,"export.preview":`Előnézet`,"export.loading":`Betöltés…`,"export.lines":{one:`{count} sor · azimut magasság, {margin}° ráhagyás`,other:`{count} sor · azimut magasság, {margin}° ráhagyás`},"export.help":`NINA: Options › General › Astrometry › Custom Horizon. Stellarium: a .zip telepítése: Égbolt és nézet beállításai › Tájkép › Tájképek hozzáadása/eltávolítása.`,"export.rendering":`Panoráma készítése…`,"export.preparing":`Előkészítés…`,"export.sharing":`Megosztás…`,"export.saving":`Mentés…`,"export.save":`Mentés`,"export.share":{one:`{count} fájl megosztása`,other:`{count} fájl megosztása`},"files.downloaded":{one:`Letöltve: {name}`,other:`{count} fájl letöltve`},"files.savedAndroid":{one:`Mentve a Letöltésekbe: {name}`,other:`{count} fájl mentve a Letöltésekbe`},"files.savedIos":{one:`Mentve: Fájlok › SkyContour: {name}`,other:`{count} fájl mentve: Fájlok › SkyContour`},"files.shared":`Megosztva`,"files.shareCancelled":`Megosztás megszakítva`,"files.shareUnsupported":`Ez a böngésző nem tud fájlt megosztani, ezért letöltöttük őket.`,"settings.title":`Beállítások`,"settings.camera":`Kamera`,"settings.fov":`Látószög`,"settings.fovValue":`{fov}° a kép szélességében`,"settings.fovAssumed":`Nincs kalibrálva: kb. {fov}° a feltételezett érték`,"settings.narrower":`Szűkebb`,"settings.wider":`Szélesebb`,"settings.calibrate":`Kalibrálás a kamerával`,"settings.reset":`Alaphelyzet`,"settings.fovHint":`A látószög alapján kerül minden fotó a helyére a panorámán. Telefononként egyszer kalibráld: fordulj lassan, közben az app összehasonlít két átfedő képet.`,"settings.author":`Szerző a Stellarium-fájlokban`,"settings.authorPlaceholder":`A neved`,"settings.language":`Nyelv`,"settings.systemLanguage":`Rendszer nyelve ({name})`,"settings.about":`{app} · horizontok a NINA-hoz és a Stellariumhoz`,"calib.title":`Látószög`,"calib.intro":`Célozz meg távoli részleteket (fák, tetők), koppints az Indítás gombra, és fordulj lassan oldalra.`,"calib.turn":`Fordítsd lassan oldalra a telefont ⟷`,"calib.turnAuto":`Fordítsd lassan oldalra a telefont ⟷ (magától befejeződik)`,"calib.newRef":`Új referenciakép: fordulj tovább lassan ⟷`,"calib.noMatch":`Nincs egyezés: fordulj lassabban, és célozz távoli részletekre`,"calib.almost":`Mindjárt kész: az értékek még ingadoznak, fordulj tovább lassan`,"calib.measuring":`Mérés… fordulj tovább lassan`,"calib.waiting":`Várakozás a kamerára és az iránytűre…`,"calib.done":`Kész: {fov}° látószög elmentve.`,"calib.doneButton":`Kész`,"calib.restart":`Mérés újrakezdése`,"calib.start":`Indítás`},le={"tab.sites":`Miejsca`,"tab.new":`Nowy pomiar`,"tab.settings":`Ustawienia`,"compass.n":`Pn`,"compass.e":`Wsch`,"compass.s":`Pd`,"compass.w":`Zach`,"common.back":`Wstecz`,"common.startCamera":`Uruchom aparat`,"common.startingCamera":`Uruchamianie aparatu…`,"common.noLocation":`Brak lokalizacji`,"app.engineError":`Nie udało się wczytać silnika: {error}`,"welcome.tagline":`Obrysuj drzewa i dachy wokół swojego teleskopu`,"welcome.formats":`NINA .HRZ · KRAJOBRAZ STELLARIUM`,"welcome.start":`Zaczynamy`,"welcome.sceneLabel":`Nocny ogród z domem, drzewami i teleskopem pod rozgwieżdżonym niebem; przerywana bursztynowa linia biegnie wzdłuż horyzontu nad dachami i koronami drzew`,"sites.subtitle":`Sztuczne horyzonty dla NINA i Stellarium`,"sites.settings":`Ustawienia`,"sites.count":`Miejsca · {count}`,"sites.emptyTitle":`Brak miejsc`,"sites.emptyHint":`Stań tam, gdzie stoi twój teleskop, i rozpocznij pomiar.`,"sites.emptyHintApp":`Dotknij „{tab}” na dole albo zaimportuj plik .hrz z NINA przyciskiem u góry.`,"sites.newSurvey":`Nowy pomiar horyzontu`,"sites.import":`Importuj istniejący .hrz`,"sites.importError":`Nie udało się odczytać {file}: {error}`,"sites.inProgress":`W toku`,"sites.noHorizon":`Brak horyzontu`,"sites.covered":`Pokryto {deg}° z 360°`,"sites.continue":`Kontynuuj pomiar`,"sites.imported":`Zaimportowany .hrz`,"sites.framesFull":{one:`{count} zdjęcie · pełne 360°`,few:`{count} zdjęcia · pełne 360°`,many:`{count} zdjęć · pełne 360°`,other:`{count} zdjęcia · pełne 360°`},"sites.framesPartial":{one:`{count} zdjęcie · pokryto {deg}°`,few:`{count} zdjęcia · pokryto {deg}°`,many:`{count} zdjęć · pokryto {deg}°`,other:`{count} zdjęcia · pokryto {deg}°`},"sites.defaultName":`Miejsce {n}`,"sites.importedName":`Zaimportowany horyzont`,"setup.title":`Nowy pomiar`,"setup.siteName":`Nazwa miejsca`,"setup.locating":`Ustalanie lokalizacji…`,"setup.locationHint":`Zapisywana w krajobrazie Stellarium`,"setup.altitudeUnknown":`Nieznana wysokość`,"setup.elevation":`{m} m`,"setup.gps":`GPS ±{m} m`,"setup.refresh":`Odśwież`,"setup.noGeo":`Ta przeglądarka nie ma usługi lokalizacji`,"setup.geoUnavailable":`Lokalizacja niedostępna`,"setup.northTitle":`Północ z kompasu`,"setup.northHint":`Deklinacja nie jest jeszcze uwzględniana: popraw północ przesunięciem w przeglądzie`,"setup.howTo":`Jak wykonać pomiar`,"setup.skyNotNeeded":`niebo zbędne`,"setup.illustration":`Obróć się raz w miejscu, trzymając telefon pionowo; fotografowany jest tylko pas wokół horyzontu`,"setup.step1":`Stań tam, gdzie stoi teleskop.`,"setup.step2":`Trzymaj telefon pionowo, lekko pochylony nad horyzont.`,"setup.step3":`Powoli obróć się raz dookoła. Zdjęcia wykonują się same.`,"setup.start":`Rozpocznij nagrywanie`,"setup.sensorsError":`Czujniki ruchu są niedostępne: {error}`,"setup.cameraError":`Aparat: {error}`,"capture.openError":`Nie udało się otworzyć pomiaru: {error}`,"capture.saveError":`Nie udało się zapisać: {error}`,"capture.close":`Zamknij pomiar`,"capture.undo":`Powtórz ostatnie zdjęcie`,"capture.frameOf":`zdjęcie {n} z {total}`,"capture.allFrames":`wszystkie zdjęcia ({count})`,"capture.progress":`Postęp panoramy na 360 stopniach`,"capture.heading":`KIERUNEK`,"capture.tilt":`POCHYLENIE`,"capture.covers":`ZAKRES`,"capture.autoOn":`Auto wł.`,"capture.autoOff":`Auto wył.`,"capture.shutter":`Zrób zdjęcie`,"capture.finish":`Gotowe`,"capture.topTouch":`Przeszkoda sięga górnej krawędzi kadru przy {az}°`,"capture.addHigher":`Wyższe zdjęcie`,"capture.hint.compass":`Czekam na kompas…`,"capture.hint.done":`Wszystkie zdjęcia gotowe. Dotknij Gotowe.`,"capture.hint.higher":`Wyższe zdjęcie: wyceluj w punkt`,"capture.hint.turnRight":`Obracaj się w prawo, aż punkt znajdzie się w okręgu`,"capture.hint.turnLeft":`Obracaj się w lewo, aż punkt znajdzie się w okręgu`,"capture.hint.manual":`Wyceluj w punkt, a potem dotknij migawki`,"capture.hint.tiltUp":`Pochyl telefon trochę w górę`,"capture.hint.tiltDown":`Pochyl telefon trochę w dół`,"capture.hint.hold":`Nie ruszaj się…`,"capture.hint.tap":`Dotknij migawki`,"capture.err.noHeading":`Brak jeszcze kierunku z kompasu`,"capture.err.cameraNotReady":`Aparat nie jest gotowy`,"capture.err.encode":`Nie udało się utworzyć panoramy`,"camera.err.https":`Aparat wymaga HTTPS (lub localhost).`,"camera.err.noApi":`Ta przeglądarka nie ma dostępu do aparatu.`,"camera.err.noPicture":`Aparat działa, ale nie przesyła obrazu.`,"review.title":`Przegląd horyzontu`,"review.imported":`Zaimportowano z .hrz`,"review.stitchedFull":{one:`{count} zdjęcie połączone · pełne 360°`,few:`{count} zdjęcia połączone · pełne 360°`,many:`{count} zdjęć połączonych · pełne 360°`,other:`{count} zdjęcia połączone · pełne 360°`},"review.stitchedPartial":{one:`{count} zdjęcie połączone · {deg}° z 360°`,few:`{count} zdjęcia połączone · {deg}° z 360°`,many:`{count} zdjęć połączonych · {deg}° z 360°`,other:`{count} zdjęcia połączone · {deg}° z 360°`},"review.delete":`Usuń miejsce`,"review.deleteConfirm":`Usunąć?`,"review.tabNina":`Horyzont NINA`,"review.tabPano":`Panorama`,"review.detecting":`Wykrywanie granicy nieba…`,"review.noHorizon":`Brak horyzontu: najpierw zrób kilka zdjęć.`,"review.legendEdge":`Wykryta granica nieba`,"review.legendHrz":`Zapisywane w .hrz`,"review.chartLabel":`Profil horyzontu: wysokość przeszkód według azymutu, margines bezpieczeństwa przerywaną linią`,"review.margin":`Margines bezpieczeństwa`,"review.marginHint":`Trzyma cele NINA z dala od wierzchołków drzew i błędów kompasu`,"review.toolAuto":`Automatycznie`,"review.toolSky":`Maluj niebo`,"review.toolGround":`Maluj grunt`,"review.edits":{one:`{count} poprawka`,few:`{count} poprawki`,many:`{count} poprawek`,other:`{count} poprawki`},"review.undoEdit":`Cofnij ostatnią`,"review.clearEdits":`Wróć do automatycznego`,"review.transparentSky":`Przezroczyste niebo w Stellarium`,"review.dragHint":`Przeciągnij, aby się rozejrzeć`,"review.paintHint":`Maluj palcem`,"review.zoomLabel":`Powiększona panorama: obszar w kratkę to przezroczyste niebo, linia to wykryta granica`,"review.overviewLabel":`Cała panorama 360 stopni z zaznaczoną powiększoną częścią`,"review.north":`Przesunięcie północy`,"review.northHint":`Dotyczy .hrz i panoramy`,"review.rotateLeft":`Obróć o 0,5 stopnia w lewo`,"review.rotateRight":`Obróć o 0,5 stopnia w prawo`,"review.export":`Eksportuj`,"export.title":`Eksport`,"export.back":`Wróć do przeglądu`,"export.summary":`{name} · margines {margin}° · przesunięcie północy {north}°`,"export.ninaTitle":`Własny horyzont NINA`,"export.ninaSub":`Granica nieba + margines bezpieczeństwa jako pary azymut/wysokość, do limitów wysokości celów`,"export.panoTitle":`Panorama Stellarium`,"export.panoSub":`Krajobraz sferyczny: pas zdjęć 360° z przezroczystym niebem, PNG 8192 × 2048`,"export.polyTitle":`Stellarium, tylko kontur`,"export.polySub":`Krajobraz wielokątny: tylko linia horyzontu, bez zdjęcia`,"export.panoUnavailable":`Wymaga pomiaru ze zdjęciami (niedostępne dla zaimportowanych horyzontów)`,"export.panoGaps":`Nie sfotografowano pełnych 360°: luki są wypełniane ciemnym kolorem`,"export.preview":`Podgląd`,"export.loading":`Wczytywanie…`,"export.lines":{one:`{count} wiersz · azymut wysokość, margines {margin}°`,few:`{count} wiersze · azymut wysokość, margines {margin}°`,many:`{count} wierszy · azymut wysokość, margines {margin}°`,other:`{count} wiersza · azymut wysokość, margines {margin}°`},"export.help":`NINA: Options › General › Astrometry › Custom Horizon. Stellarium: zainstaluj .zip w Opcje nieba i widoku › Krajobraz › Dodaj/usuń krajobrazy.`,"export.rendering":`Tworzenie panoramy…`,"export.preparing":`Przygotowywanie…`,"export.sharing":`Udostępnianie…`,"export.saving":`Zapisywanie…`,"export.save":`Zapisz`,"export.share":{one:`Udostępnij {count} plik`,few:`Udostępnij {count} pliki`,many:`Udostępnij {count} plików`,other:`Udostępnij {count} pliku`},"files.downloaded":{one:`Pobrano: {name}`,few:`Pobrano {count} pliki`,many:`Pobrano {count} plików`,other:`Pobrano {count} pliku`},"files.savedAndroid":{one:`Zapisano w Pobranych: {name}`,few:`Zapisano {count} pliki w Pobranych`,many:`Zapisano {count} plików w Pobranych`,other:`Zapisano {count} pliku w Pobranych`},"files.savedIos":{one:`Zapisano w Pliki › SkyContour: {name}`,few:`Zapisano {count} pliki w Pliki › SkyContour`,many:`Zapisano {count} plików w Pliki › SkyContour`,other:`Zapisano {count} pliku w Pliki › SkyContour`},"files.shared":`Udostępniono`,"files.shareCancelled":`Anulowano udostępnianie`,"files.shareUnsupported":`Ta przeglądarka nie potrafi udostępniać plików, więc zostały pobrane.`,"settings.title":`Ustawienia`,"settings.camera":`Aparat`,"settings.fov":`Pole widzenia`,"settings.fovValue":`{fov}° na szerokość kadru`,"settings.fovAssumed":`Nie skalibrowano: przyjęto około {fov}°`,"settings.narrower":`Węższe`,"settings.wider":`Szersze`,"settings.calibrate":`Kalibruj aparatem`,"settings.reset":`Resetuj`,"settings.fovHint":`Pole widzenia ustala położenie każdego zdjęcia w panoramie. Skalibruj raz dla każdego telefonu: obracaj się powoli, a aplikacja porówna dwa nakładające się widoki.`,"settings.author":`Autor w plikach Stellarium`,"settings.authorPlaceholder":`Twoje imię`,"settings.language":`Język`,"settings.systemLanguage":`Język systemu ({name})`,"settings.about":`{app} · horyzonty dla NINA i Stellarium`,"calib.title":`Pole widzenia`,"calib.intro":`Wyceluj w odległe szczegóły (drzewa, dachy), dotknij Start i powoli obracaj się w bok.`,"calib.turn":`Powoli obracaj telefon w bok ⟷`,"calib.turnAuto":`Powoli obracaj telefon w bok ⟷ (zakończy się samo)`,"calib.newRef":`Nowy punkt odniesienia: obracaj się dalej powoli ⟷`,"calib.noMatch":`Brak dopasowania: obracaj się wolniej i celuj w odległe szczegóły`,"calib.almost":`Prawie gotowe: wartości jeszcze się wahają, obracaj się dalej powoli`,"calib.measuring":`Pomiar… obracaj się dalej powoli`,"calib.waiting":`Czekam na aparat i kompas…`,"calib.done":`Gotowe: zapisano pole widzenia {fov}°.`,"calib.doneButton":`Gotowe`,"calib.restart":`Powtórz pomiar`,"calib.start":`Start`},E={"tab.sites":`Sites`,"tab.new":`Nouveau relevé`,"tab.settings":`Réglages`,"compass.n":`N`,"compass.e":`E`,"compass.s":`S`,"compass.w":`O`,"common.back":`Retour`,"common.startCamera":`Démarrer la caméra`,"common.startingCamera":`Démarrage de la caméra…`,"common.noLocation":`Pas de position`,"app.engineError":`Impossible de charger le moteur : {error}`,"welcome.tagline":`Tracez les arbres et les toits autour de votre télescope`,"welcome.formats":`NINA .HRZ · PAYSAGE STELLARIUM`,"welcome.start":`Commencer`,"welcome.sceneLabel":`Jardin de nuit avec une maison, des arbres et un télescope sous un ciel étoilé ; une ligne ambre en pointillés suit l’horizon au-dessus des toits et des arbres`,"sites.subtitle":`Horizons artificiels pour NINA et Stellarium`,"sites.settings":`Réglages`,"sites.count":`Sites · {count}`,"sites.emptyTitle":`Aucun site pour l’instant`,"sites.emptyHint":`Placez-vous à l’emplacement de votre télescope et lancez un relevé.`,"sites.emptyHintApp":`Touchez « {tab} » en bas, ou importez un .hrz NINA avec le bouton en haut.`,"sites.newSurvey":`Nouveau relevé d’horizon`,"sites.import":`Importer un .hrz existant`,"sites.importError":`Impossible de lire {file} : {error}`,"sites.inProgress":`En cours`,"sites.noHorizon":`Pas encore d’horizon`,"sites.covered":`{deg}° sur 360° couverts`,"sites.continue":`Continuer le relevé`,"sites.imported":`.hrz importé`,"sites.framesFull":{one:`{count} photo · 360° complets`,other:`{count} photos · 360° complets`},"sites.framesPartial":{one:`{count} photo · {deg}° couverts`,other:`{count} photos · {deg}° couverts`},"sites.defaultName":`Site {n}`,"sites.importedName":`Horizon importé`,"setup.title":`Nouveau relevé`,"setup.siteName":`Nom du site`,"setup.locating":`Recherche de la position…`,"setup.locationHint":`Inscrite dans le paysage Stellarium`,"setup.altitudeUnknown":`Altitude inconnue`,"setup.elevation":`{m} m`,"setup.gps":`GPS ±{m} m`,"setup.refresh":`Actualiser`,"setup.noGeo":`Ce navigateur n’a pas de service de localisation`,"setup.geoUnavailable":`Position indisponible`,"setup.northTitle":`Nord donné par la boussole`,"setup.northHint":`La déclinaison n’est pas encore appliquée : corrigez le nord avec le décalage dans la vérification`,"setup.howTo":`Comment capturer`,"setup.skyNotNeeded":`ciel inutile`,"setup.illustration":`Faites un tour sur vous-même en tenant le téléphone droit ; seule une bande autour de l’horizon est photographiée`,"setup.step1":`Placez-vous à l’emplacement du télescope.`,"setup.step2":`Tenez le téléphone droit, légèrement incliné au-dessus de l’horizon.`,"setup.step3":`Faites lentement un tour complet. Les photos se prennent toutes seules.`,"setup.start":`Lancer la capture`,"setup.sensorsError":`Capteurs de mouvement indisponibles : {error}`,"setup.cameraError":`Caméra : {error}`,"capture.openError":`Impossible d’ouvrir le relevé : {error}`,"capture.saveError":`Échec de l’enregistrement : {error}`,"capture.close":`Fermer le relevé`,"capture.undo":`Reprendre la dernière photo`,"capture.frameOf":`photo {n} sur {total}`,"capture.allFrames":`les {count} photos`,"capture.progress":`Progression du panorama sur 360 degrés`,"capture.heading":`CAP`,"capture.tilt":`INCLINAISON`,"capture.covers":`COUVRE`,"capture.autoOn":`Auto oui`,"capture.autoOff":`Auto non`,"capture.shutter":`Prendre la photo`,"capture.finish":`Terminer`,"capture.topTouch":`Un obstacle touche le haut de l’image à {az}°`,"capture.addHigher":`Photo plus haute`,"capture.hint.compass":`En attente de la boussole…`,"capture.hint.done":`Toutes les photos sont prises. Touchez Terminer.`,"capture.hint.higher":`Photo plus haute : alignez le point`,"capture.hint.turnRight":`Tournez à droite jusqu’à ce que le point soit dans le cercle`,"capture.hint.turnLeft":`Tournez à gauche jusqu’à ce que le point soit dans le cercle`,"capture.hint.manual":`Alignez le point, puis touchez le déclencheur`,"capture.hint.tiltUp":`Inclinez un peu le téléphone vers le haut`,"capture.hint.tiltDown":`Inclinez un peu le téléphone vers le bas`,"capture.hint.hold":`Ne bougez plus…`,"capture.hint.tap":`Touchez le déclencheur`,"capture.err.noHeading":`Pas encore de cap de la boussole`,"capture.err.cameraNotReady":`Caméra pas prête`,"capture.err.encode":`Impossible de créer le panorama`,"camera.err.https":`La caméra nécessite HTTPS (ou localhost).`,"camera.err.noApi":`Ce navigateur n’a pas accès à la caméra.`,"camera.err.noPicture":`La caméra a démarré mais n’envoie pas d’image.`,"review.title":`Vérifier l’horizon`,"review.imported":`Importé depuis un .hrz`,"review.stitchedFull":{one:`{count} photo assemblée · 360° complets`,other:`{count} photos assemblées · 360° complets`},"review.stitchedPartial":{one:`{count} photo assemblée · {deg}° sur 360°`,other:`{count} photos assemblées · {deg}° sur 360°`},"review.delete":`Supprimer le site`,"review.deleteConfirm":`Supprimer ?`,"review.tabNina":`Horizon NINA`,"review.tabPano":`Panorama`,"review.detecting":`Détection de la limite du ciel…`,"review.noHorizon":`Pas encore d’horizon : prenez d’abord quelques photos.`,"review.legendEdge":`Limite du ciel détectée`,"review.legendHrz":`Écrit dans le .hrz`,"review.chartLabel":`Profil d’horizon : hauteur des obstacles selon l’azimut, marge de sécurité en pointillés`,"review.margin":`Marge de sécurité`,"review.marginHint":`Tient les cibles NINA à l’écart des cimes des arbres et des erreurs de boussole`,"review.toolAuto":`Automatique`,"review.toolSky":`Peindre le ciel`,"review.toolGround":`Peindre le sol`,"review.edits":{one:`{count} retouche`,other:`{count} retouches`},"review.undoEdit":`Annuler la dernière`,"review.clearEdits":`Revenir à l’automatique`,"review.transparentSky":`Ciel transparent dans Stellarium`,"review.dragHint":`Faites glisser pour regarder autour`,"review.paintHint":`Peignez avec le doigt`,"review.zoomLabel":`Panorama agrandi : la zone en damier est le ciel transparent, la ligne est la limite détectée`,"review.overviewLabel":`Panorama complet à 360 degrés, partie agrandie encadrée`,"review.north":`Décalage du nord`,"review.northHint":`S’applique au .hrz et au panorama`,"review.rotateLeft":`Tourner de 0,5 degré vers la gauche`,"review.rotateRight":`Tourner de 0,5 degré vers la droite`,"review.export":`Exporter`,"export.title":`Exporter`,"export.back":`Retour à la vérification`,"export.summary":`{name} · marge {margin}° · décalage du nord {north}°`,"export.ninaTitle":`Horizon personnalisé NINA`,"export.ninaSub":`Limite du ciel + marge de sécurité en paires azimut/hauteur, pour les limites de hauteur des cibles`,"export.panoTitle":`Panorama Stellarium`,"export.panoSub":`Paysage sphérique : bande photo à 360° avec ciel transparent, PNG 8192 × 2048`,"export.polyTitle":`Stellarium, contour seul`,"export.polySub":`Paysage polygonal : seulement la ligne d’horizon, sans photo`,"export.panoUnavailable":`Nécessite un relevé photo (indisponible pour les horizons importés)`,"export.panoGaps":`Les 360° ne sont pas tous photographiés : les trous sont remplis en sombre`,"export.preview":`Aperçu`,"export.loading":`Chargement…`,"export.lines":{one:`{count} ligne · azimut hauteur, marge {margin}°`,other:`{count} lignes · azimut hauteur, marge {margin}°`},"export.help":`NINA : Options › General › Astrometry › Custom Horizon. Stellarium : installez le .zip dans Options du ciel et de la vue › Paysage › Ajouter/supprimer des paysages.`,"export.rendering":`Création du panorama…`,"export.preparing":`Préparation…`,"export.sharing":`Partage…`,"export.saving":`Enregistrement…`,"export.save":`Enregistrer`,"export.share":{one:`Partager {count} fichier`,other:`Partager {count} fichiers`},"files.downloaded":{one:`Téléchargé : {name}`,other:`{count} fichiers téléchargés`},"files.savedAndroid":{one:`Enregistré dans Téléchargements : {name}`,other:`{count} fichiers enregistrés dans Téléchargements`},"files.savedIos":{one:`Enregistré dans Fichiers › SkyContour : {name}`,other:`{count} fichiers enregistrés dans Fichiers › SkyContour`},"files.shared":`Partagé`,"files.shareCancelled":`Partage annulé`,"files.shareUnsupported":`Ce navigateur ne peut pas partager de fichiers, ils ont donc été téléchargés.`,"settings.title":`Réglages`,"settings.camera":`Caméra`,"settings.fov":`Champ de vision`,"settings.fovValue":`{fov}° sur la largeur de l’image`,"settings.fovAssumed":`Non calibré : environ {fov}° supposés`,"settings.narrower":`Plus étroit`,"settings.wider":`Plus large`,"settings.calibrate":`Calibrer avec la caméra`,"settings.reset":`Réinitialiser`,"settings.fovHint":`Le champ de vision place chaque photo dans le panorama. Calibrez une fois par téléphone : tournez lentement pendant que l’app compare deux vues qui se chevauchent.`,"settings.author":`Auteur dans les fichiers Stellarium`,"settings.authorPlaceholder":`Votre nom`,"settings.language":`Langue`,"settings.systemLanguage":`Langue du système ({name})`,"settings.about":`{app} · horizons pour NINA et Stellarium`,"calib.title":`Champ de vision`,"calib.intro":`Visez des détails lointains (arbres, toits), touchez Démarrer et tournez lentement sur le côté.`,"calib.turn":`Tournez lentement le téléphone sur le côté ⟷`,"calib.turnAuto":`Tournez lentement le téléphone sur le côté ⟷ (s’arrête tout seul)`,"calib.newRef":`Nouvelle référence prise : continuez à tourner lentement ⟷`,"calib.noMatch":`Pas de correspondance : tournez plus lentement et visez des détails lointains`,"calib.almost":`Presque fini : les valeurs varient encore, continuez à tourner lentement`,"calib.measuring":`Mesure… continuez à tourner lentement`,"calib.waiting":`En attente de la caméra et de la boussole…`,"calib.done":`Terminé : champ de vision de {fov}° enregistré.`,"calib.doneButton":`Terminé`,"calib.restart":`Recommencer la mesure`,"calib.start":`Démarrer`},D={"tab.sites":`Luoghi`,"tab.new":`Nuovo rilievo`,"tab.settings":`Impostazioni`,"compass.n":`N`,"compass.e":`E`,"compass.s":`S`,"compass.w":`O`,"common.back":`Indietro`,"common.startCamera":`Avvia fotocamera`,"common.startingCamera":`Avvio della fotocamera…`,"common.noLocation":`Nessuna posizione`,"app.engineError":`Impossibile caricare il motore: {error}`,"welcome.tagline":`Traccia gli alberi e i tetti intorno al tuo telescopio`,"welcome.formats":`NINA .HRZ · PAESAGGIO STELLARIUM`,"welcome.start":`Inizia`,"welcome.sceneLabel":`Giardino notturno con una casa, alberi e un telescopio sotto un cielo stellato; una linea ambra tratteggiata segue l’orizzonte sopra i tetti e le chiome degli alberi`,"sites.subtitle":`Orizzonti artificiali per NINA e Stellarium`,"sites.settings":`Impostazioni`,"sites.count":`Luoghi · {count}`,"sites.emptyTitle":`Ancora nessun luogo`,"sites.emptyHint":`Mettiti dove si trova il tuo telescopio e avvia un rilievo.`,"sites.emptyHintApp":`Tocca «{tab}» in basso oppure importa un .hrz di NINA con il pulsante in alto.`,"sites.newSurvey":`Nuovo rilievo dell’orizzonte`,"sites.import":`Importa un .hrz esistente`,"sites.importError":`Impossibile leggere {file}: {error}`,"sites.inProgress":`In corso`,"sites.noHorizon":`Ancora nessun orizzonte`,"sites.covered":`{deg}° di 360° coperti`,"sites.continue":`Continua il rilievo`,"sites.imported":`.hrz importato`,"sites.framesFull":{one:`{count} foto · 360° completi`,other:`{count} foto · 360° completi`},"sites.framesPartial":{one:`{count} foto · {deg}° coperti`,other:`{count} foto · {deg}° coperti`},"sites.defaultName":`Luogo {n}`,"sites.importedName":`Orizzonte importato`,"setup.title":`Nuovo rilievo`,"setup.siteName":`Nome del luogo`,"setup.locating":`Ricerca della posizione…`,"setup.locationHint":`Viene scritta nel paesaggio di Stellarium`,"setup.altitudeUnknown":`Altitudine sconosciuta`,"setup.elevation":`{m} m`,"setup.gps":`GPS ±{m} m`,"setup.refresh":`Aggiorna`,"setup.noGeo":`Questo browser non ha il servizio di localizzazione`,"setup.geoUnavailable":`Posizione non disponibile`,"setup.northTitle":`Nord dalla bussola`,"setup.northHint":`La declinazione non è ancora applicata: correggi il nord con lo scostamento nella revisione`,"setup.howTo":`Come riprendere`,"setup.skyNotNeeded":`il cielo non serve`,"setup.illustration":`Fai un giro su te stesso tenendo il telefono in verticale; viene fotografata solo una fascia intorno all’orizzonte`,"setup.step1":`Mettiti dove si trova il telescopio.`,"setup.step2":`Tieni il telefono in verticale, leggermente inclinato sopra l’orizzonte.`,"setup.step3":`Fai lentamente un giro completo. Le foto vengono scattate da sole.`,"setup.start":`Avvia la ripresa`,"setup.sensorsError":`Sensori di movimento non disponibili: {error}`,"setup.cameraError":`Fotocamera: {error}`,"capture.openError":`Impossibile aprire il rilievo: {error}`,"capture.saveError":`Salvataggio non riuscito: {error}`,"capture.close":`Chiudi il rilievo`,"capture.undo":`Ripeti l’ultima foto`,"capture.frameOf":`foto {n} di {total}`,"capture.allFrames":`tutte le {count} foto`,"capture.progress":`Avanzamento del panorama su 360 gradi`,"capture.heading":`DIREZIONE`,"capture.tilt":`INCLINAZIONE`,"capture.covers":`COPRE`,"capture.autoOn":`Auto sì`,"capture.autoOff":`Auto no`,"capture.shutter":`Scatta`,"capture.finish":`Fine`,"capture.topTouch":`Un ostacolo tocca il bordo superiore a {az}°`,"capture.addHigher":`Foto più alta`,"capture.hint.compass":`In attesa della bussola…`,"capture.hint.done":`Tutte le foto scattate. Tocca Fine.`,"capture.hint.higher":`Foto più alta: allinea il punto`,"capture.hint.turnRight":`Girati a destra finché il punto è nel cerchio`,"capture.hint.turnLeft":`Girati a sinistra finché il punto è nel cerchio`,"capture.hint.manual":`Allinea il punto, poi tocca il pulsante di scatto`,"capture.hint.tiltUp":`Inclina il telefono un po’ verso l’alto`,"capture.hint.tiltDown":`Inclina il telefono un po’ verso il basso`,"capture.hint.hold":`Tieni fermo…`,"capture.hint.tap":`Tocca il pulsante di scatto`,"capture.err.noHeading":`Ancora nessuna direzione dalla bussola`,"capture.err.cameraNotReady":`Fotocamera non pronta`,"capture.err.encode":`Impossibile creare il panorama`,"camera.err.https":`La fotocamera richiede HTTPS (o localhost).`,"camera.err.noApi":`Questo browser non ha accesso alla fotocamera.`,"camera.err.noPicture":`La fotocamera è avviata ma non invia immagini.`,"review.title":`Rivedi l’orizzonte`,"review.imported":`Importato da .hrz`,"review.stitchedFull":{one:`{count} foto unita · 360° completi`,other:`{count} foto unite · 360° completi`},"review.stitchedPartial":{one:`{count} foto unita · {deg}° di 360°`,other:`{count} foto unite · {deg}° di 360°`},"review.delete":`Elimina il luogo`,"review.deleteConfirm":`Eliminare?`,"review.tabNina":`Orizzonte NINA`,"review.tabPano":`Panorama`,"review.detecting":`Rilevamento del bordo del cielo…`,"review.noHorizon":`Ancora nessun orizzonte: scatta prima qualche foto.`,"review.legendEdge":`Bordo del cielo rilevato`,"review.legendHrz":`Scritto nel .hrz`,"review.chartLabel":`Profilo dell’orizzonte: altezza degli ostacoli per azimut, con il margine di sicurezza tratteggiato`,"review.margin":`Margine di sicurezza`,"review.marginHint":`Tiene i bersagli di NINA lontani dalle cime degli alberi e dagli errori della bussola`,"review.toolAuto":`Automatico`,"review.toolSky":`Dipingi cielo`,"review.toolGround":`Dipingi suolo`,"review.edits":{one:`{count} correzione`,other:`{count} correzioni`},"review.undoEdit":`Annulla l’ultima`,"review.clearEdits":`Torna all’automatico`,"review.transparentSky":`Cielo trasparente in Stellarium`,"review.dragHint":`Trascina per guardarti intorno`,"review.paintHint":`Dipingi con il dito`,"review.zoomLabel":`Panorama ingrandito: l’area a scacchi è cielo trasparente, la linea è il bordo rilevato`,"review.overviewLabel":`Panorama completo a 360 gradi con la parte ingrandita evidenziata`,"review.north":`Scostamento del nord`,"review.northHint":`Vale per il .hrz e il panorama`,"review.rotateLeft":`Ruota di 0,5 gradi a sinistra`,"review.rotateRight":`Ruota di 0,5 gradi a destra`,"review.export":`Esporta`,"export.title":`Esporta`,"export.back":`Torna alla revisione`,"export.summary":`{name} · margine {margin}° · scostamento del nord {north}°`,"export.ninaTitle":`Orizzonte personalizzato NINA`,"export.ninaSub":`Bordo del cielo + margine di sicurezza come coppie azimut/altezza, per i limiti di altezza dei bersagli`,"export.panoTitle":`Panorama Stellarium`,"export.panoSub":`Paesaggio sferico: fascia fotografica a 360° con cielo trasparente, PNG 8192 × 2048`,"export.polyTitle":`Stellarium, solo contorno`,"export.polySub":`Paesaggio poligonale: solo la linea dell’orizzonte, senza foto`,"export.panoUnavailable":`Richiede un rilievo fotografico (non disponibile per gli orizzonti importati)`,"export.panoGaps":`Non tutti i 360° sono fotografati: i vuoti vengono riempiti di scuro`,"export.preview":`Anteprima`,"export.loading":`Caricamento…`,"export.lines":{one:`{count} riga · azimut altezza, margine {margin}°`,other:`{count} righe · azimut altezza, margine {margin}°`},"export.help":`NINA: Options › General › Astrometry › Custom Horizon. Stellarium: installa lo .zip in Opzioni cielo e visualizzazione › Paesaggio › Aggiungi/rimuovi paesaggi.`,"export.rendering":`Creazione del panorama…`,"export.preparing":`Preparazione…`,"export.sharing":`Condivisione…`,"export.saving":`Salvataggio…`,"export.save":`Salva`,"export.share":{one:`Condividi {count} file`,other:`Condividi {count} file`},"files.downloaded":{one:`Scaricato: {name}`,other:`{count} file scaricati`},"files.savedAndroid":{one:`Salvato in Download: {name}`,other:`{count} file salvati in Download`},"files.savedIos":{one:`Salvato in File › SkyContour: {name}`,other:`{count} file salvati in File › SkyContour`},"files.shared":`Condiviso`,"files.shareCancelled":`Condivisione annullata`,"files.shareUnsupported":`Questo browser non può condividere file, quindi sono stati scaricati.`,"settings.title":`Impostazioni`,"settings.camera":`Fotocamera`,"settings.fov":`Campo visivo`,"settings.fovValue":`{fov}° sulla larghezza dell’immagine`,"settings.fovAssumed":`Non calibrato: si assumono circa {fov}°`,"settings.narrower":`Più stretto`,"settings.wider":`Più ampio`,"settings.calibrate":`Calibra con la fotocamera`,"settings.reset":`Ripristina`,"settings.fovHint":`Il campo visivo colloca ogni foto nel panorama. Calibra una volta per telefono: girati lentamente mentre l’app confronta due viste sovrapposte.`,"settings.author":`Autore nei file di Stellarium`,"settings.authorPlaceholder":`Il tuo nome`,"settings.language":`Lingua`,"settings.systemLanguage":`Lingua di sistema ({name})`,"settings.about":`{app} · orizzonti per NINA e Stellarium`,"calib.title":`Campo visivo`,"calib.intro":`Inquadra dettagli lontani (alberi, tetti), tocca Avvia e girati lentamente di lato.`,"calib.turn":`Gira lentamente il telefono di lato ⟷`,"calib.turnAuto":`Gira lentamente il telefono di lato ⟷ (termina da solo)`,"calib.newRef":`Nuovo riferimento acquisito: continua a girare lentamente ⟷`,"calib.noMatch":`Nessuna corrispondenza: gira più lentamente e inquadra dettagli lontani`,"calib.almost":`Quasi fatto: i valori variano ancora, continua a girare lentamente`,"calib.measuring":`Misurazione… continua a girare lentamente`,"calib.waiting":`In attesa di fotocamera e bussola…`,"calib.done":`Fatto: campo visivo di {fov}° salvato.`,"calib.doneButton":`Fatto`,"calib.restart":`Ripeti la misurazione`,"calib.start":`Avvia`},ue={"tab.sites":`Miesta`,"tab.new":`Nové meranie`,"tab.settings":`Nastavenia`,"compass.n":`S`,"compass.e":`V`,"compass.s":`J`,"compass.w":`Z`,"common.back":`Späť`,"common.startCamera":`Spustiť kameru`,"common.startingCamera":`Spúšťa sa kamera…`,"common.noLocation":`Bez polohy`,"app.engineError":`Nepodarilo sa načítať výpočtové jadro: {error}`,"welcome.tagline":`Obkresli stromy a strechy okolo svojho ďalekohľadu`,"welcome.formats":`NINA .HRZ · KRAJINA STELLARIUM`,"welcome.start":`Začať`,"welcome.sceneLabel":`Nočná záhrada s domom, stromami a ďalekohľadom pod hviezdnou oblohou; prerušovaná jantárová čiara sleduje horizont nad strechami a korunami stromov`,"sites.subtitle":`Umelé horizonty pre NINA a Stellarium`,"sites.settings":`Nastavenia`,"sites.count":`Miesta · {count}`,"sites.emptyTitle":`Zatiaľ žiadne miesta`,"sites.emptyHint":`Postav sa tam, kde stojí tvoj ďalekohľad, a začni meranie.`,"sites.emptyHintApp":`Ťukni dole na „{tab}“ alebo importuj súbor .hrz z NINA tlačidlom hore.`,"sites.newSurvey":`Nové meranie horizontu`,"sites.import":`Importovať existujúci .hrz`,"sites.importError":`Súbor {file} sa nepodarilo načítať: {error}`,"sites.inProgress":`Prebieha`,"sites.noHorizon":`Zatiaľ bez horizontu`,"sites.covered":`Pokrytých {deg}° z 360°`,"sites.continue":`Pokračovať v meraní`,"sites.imported":`Importovaný .hrz`,"sites.framesFull":{one:`{count} snímka · celých 360°`,few:`{count} snímky · celých 360°`,many:`{count} snímky · celých 360°`,other:`{count} snímok · celých 360°`},"sites.framesPartial":{one:`{count} snímka · pokrytých {deg}°`,few:`{count} snímky · pokrytých {deg}°`,many:`{count} snímky · pokrytých {deg}°`,other:`{count} snímok · pokrytých {deg}°`},"sites.defaultName":`Miesto {n}`,"sites.importedName":`Importovaný horizont`,"setup.title":`Nové meranie`,"setup.siteName":`Názov miesta`,"setup.locating":`Zisťuje sa poloha…`,"setup.locationHint":`Zapíše sa do krajiny Stellarium`,"setup.altitudeUnknown":`Neznáma nadmorská výška`,"setup.elevation":`{m} m`,"setup.gps":`GPS ±{m} m`,"setup.refresh":`Obnoviť`,"setup.noGeo":`Tento prehliadač nemá lokalizačnú službu`,"setup.geoUnavailable":`Poloha nie je dostupná`,"setup.northTitle":`Sever z kompasu`,"setup.northHint":`Deklinácia sa zatiaľ neuplatňuje: sever oprav posunom pri kontrole`,"setup.howTo":`Ako snímať`,"setup.skyNotNeeded":`obloha nie je potrebná`,"setup.illustration":`Raz sa otoč na mieste a drž telefón zvisle; fotí sa len pás okolo horizontu`,"setup.step1":`Postav sa tam, kde stojí ďalekohľad.`,"setup.step2":`Drž telefón zvisle, mierne naklonený nad horizont.`,"setup.step3":`Pomaly sa raz otoč dokola. Snímky sa robia samé.`,"setup.start":`Spustiť snímanie`,"setup.sensorsError":`Snímače pohybu nie sú dostupné: {error}`,"setup.cameraError":`Kamera: {error}`,"capture.openError":`Meranie sa nepodarilo otvoriť: {error}`,"capture.saveError":`Nepodarilo sa uložiť: {error}`,"capture.close":`Zavrieť meranie`,"capture.undo":`Zopakovať poslednú snímku`,"capture.frameOf":`snímka {n} z {total}`,"capture.allFrames":`všetky snímky ({count})`,"capture.progress":`Priebeh panorámy v 360 stupňoch`,"capture.heading":`SMER`,"capture.tilt":`NÁKLON`,"capture.covers":`ROZSAH`,"capture.autoOn":`Auto zap.`,"capture.autoOff":`Auto vyp.`,"capture.shutter":`Odfotiť`,"capture.finish":`Hotovo`,"capture.topTouch":`Prekážka siaha po horný okraj snímky pri {az}°`,"capture.addHigher":`Vyššia snímka`,"capture.hint.compass":`Čaká sa na kompas…`,"capture.hint.done":`Všetky snímky sú hotové. Ťukni na Hotovo.`,"capture.hint.higher":`Vyššia snímka: zamier na bod`,"capture.hint.turnRight":`Otáčaj sa doprava, kým bod nebude v kruhu`,"capture.hint.turnLeft":`Otáčaj sa doľava, kým bod nebude v kruhu`,"capture.hint.manual":`Zamier na bod a potom ťukni na spúšť`,"capture.hint.tiltUp":`Nakloň telefón trochu nahor`,"capture.hint.tiltDown":`Nakloň telefón trochu nadol`,"capture.hint.hold":`Drž bez pohybu…`,"capture.hint.tap":`Ťukni na spúšť`,"capture.err.noHeading":`Kompas zatiaľ neudáva smer`,"capture.err.cameraNotReady":`Kamera nie je pripravená`,"capture.err.encode":`Panorámu sa nepodarilo vytvoriť`,"camera.err.https":`Kamera potrebuje HTTPS (alebo localhost).`,"camera.err.noApi":`Tento prehliadač nemá prístup ku kamere.`,"camera.err.noPicture":`Kamera sa spustila, ale neposiela obraz.`,"review.title":`Kontrola horizontu`,"review.imported":`Importované z .hrz`,"review.stitchedFull":{one:`{count} spojená snímka · celých 360°`,few:`{count} spojené snímky · celých 360°`,many:`{count} spojenej snímky · celých 360°`,other:`{count} spojených snímok · celých 360°`},"review.stitchedPartial":{one:`{count} spojená snímka · {deg}° z 360°`,few:`{count} spojené snímky · {deg}° z 360°`,many:`{count} spojenej snímky · {deg}° z 360°`,other:`{count} spojených snímok · {deg}° z 360°`},"review.delete":`Odstrániť miesto`,"review.deleteConfirm":`Odstrániť?`,"review.tabNina":`Horizont NINA`,"review.tabPano":`Panoráma`,"review.detecting":`Rozpoznáva sa okraj oblohy…`,"review.noHorizon":`Zatiaľ bez horizontu: najprv urob niekoľko snímok.`,"review.legendEdge":`Rozpoznaný okraj oblohy`,"review.legendHrz":`Zapisuje sa do .hrz`,"review.chartLabel":`Profil horizontu: výška prekážok podľa azimutu, bezpečnostná rezerva prerušovane`,"review.margin":`Bezpečnostná rezerva`,"review.marginHint":`Drží ciele NINA mimo vrcholov stromov a chýb kompasu`,"review.toolAuto":`Automaticky`,"review.toolSky":`Maľovať oblohu`,"review.toolGround":`Maľovať terén`,"review.edits":{one:`{count} úprava`,few:`{count} úpravy`,many:`{count} úpravy`,other:`{count} úprav`},"review.undoEdit":`Vrátiť poslednú`,"review.clearEdits":`Späť na automatiku`,"review.transparentSky":`Priehľadná obloha v Stellariu`,"review.dragHint":`Ťahaním sa rozhliadneš`,"review.paintHint":`Maľuj prstom`,"review.zoomLabel":`Zväčšená panoráma: kockovaná plocha je priehľadná obloha, čiara je rozpoznaný okraj`,"review.overviewLabel":`Celá 360-stupňová panoráma so zvýraznenou zväčšenou časťou`,"review.north":`Posun severu`,"review.northHint":`Platí pre .hrz aj panorámu`,"review.rotateLeft":`Otočiť o 0,5 stupňa doľava`,"review.rotateRight":`Otočiť o 0,5 stupňa doprava`,"review.export":`Exportovať`,"export.title":`Export`,"export.back":`Späť na kontrolu`,"export.summary":`{name} · rezerva {margin}° · posun severu {north}°`,"export.ninaTitle":`Vlastný horizont NINA`,"export.ninaSub":`Okraj oblohy + bezpečnostná rezerva ako dvojice azimut/výška, pre výškové limity cieľov`,"export.panoTitle":`Panoráma Stellarium`,"export.panoSub":`Sférická krajina: 360° pás fotiek s priehľadnou oblohou, PNG 8192 × 2048`,"export.polyTitle":`Stellarium, len obrys`,"export.polySub":`Polygónová krajina: len čiara horizontu, bez fotky`,"export.panoUnavailable":`Vyžaduje meranie s fotkami (pre importované horizonty nie je dostupné)`,"export.panoGaps":`Nie je nafotených všetkých 360°: medzery sa vyplnia tmavou`,"export.preview":`Náhľad`,"export.loading":`Načítava sa…`,"export.lines":{one:`{count} riadok · azimut výška, rezerva {margin}°`,few:`{count} riadky · azimut výška, rezerva {margin}°`,many:`{count} riadka · azimut výška, rezerva {margin}°`,other:`{count} riadkov · azimut výška, rezerva {margin}°`},"export.help":`NINA: Options › General › Astrometry › Custom Horizon. Stellarium: .zip nainštaluj v Možnosti oblohy a zobrazenia › Krajina › Pridať/odstrániť krajiny.`,"export.rendering":`Vytvára sa panoráma…`,"export.preparing":`Pripravuje sa…`,"export.sharing":`Zdieľa sa…`,"export.saving":`Ukladá sa…`,"export.save":`Uložiť`,"export.share":{one:`Zdieľať {count} súbor`,few:`Zdieľať {count} súbory`,many:`Zdieľať {count} súboru`,other:`Zdieľať {count} súborov`},"files.downloaded":{one:`Stiahnuté: {name}`,few:`Stiahnuté {count} súbory`,many:`Stiahnuté {count} súboru`,other:`Stiahnutých {count} súborov`},"files.savedAndroid":{one:`Uložené do Stiahnutých: {name}`,few:`{count} súbory uložené do Stiahnutých`,many:`{count} súboru uloženého do Stiahnutých`,other:`{count} súborov uložených do Stiahnutých`},"files.savedIos":{one:`Uložené do Súbory › SkyContour: {name}`,few:`{count} súbory uložené do Súbory › SkyContour`,many:`{count} súboru uloženého do Súbory › SkyContour`,other:`{count} súborov uložených do Súbory › SkyContour`},"files.shared":`Zdieľané`,"files.shareCancelled":`Zdieľanie zrušené`,"files.shareUnsupported":`Tento prehliadač nevie zdieľať súbory, preto sa stiahli.`,"settings.title":`Nastavenia`,"settings.camera":`Kamera`,"settings.fov":`Zorné pole`,"settings.fovValue":`{fov}° na šírku snímky`,"settings.fovAssumed":`Nekalibrované: predpokladá sa asi {fov}°`,"settings.narrower":`Užšie`,"settings.wider":`Širšie`,"settings.calibrate":`Kalibrovať kamerou`,"settings.reset":`Obnoviť predvolené`,"settings.fovHint":`Zorné pole určuje, kam sa každá fotka umiestni v panoráme. Kalibruj raz pre každý telefón: pomaly sa otáčaj, kým aplikácia porovná dva prekrývajúce sa pohľady.`,"settings.author":`Autor v súboroch Stellarium`,"settings.authorPlaceholder":`Tvoje meno`,"settings.language":`Jazyk`,"settings.systemLanguage":`Jazyk systému ({name})`,"settings.about":`{app} · horizonty pre NINA a Stellarium`,"calib.title":`Zorné pole`,"calib.intro":`Zamier na vzdialené detaily (stromy, strechy), ťukni na Spustiť a pomaly sa otáčaj do strany.`,"calib.turn":`Pomaly otáčaj telefón do strany ⟷`,"calib.turnAuto":`Pomaly otáčaj telefón do strany ⟷ (skončí samo)`,"calib.newRef":`Nová referencia: otáčaj sa ďalej pomaly ⟷`,"calib.noMatch":`Bez zhody: otáčaj sa pomalšie a mier na vzdialené detaily`,"calib.almost":`Takmer hotovo: hodnoty ešte kolíšu, otáčaj sa ďalej pomaly`,"calib.measuring":`Meria sa… otáčaj sa ďalej pomaly`,"calib.waiting":`Čaká sa na kameru a kompas…`,"calib.done":`Hotovo: zorné pole {fov}° uložené.`,"calib.doneButton":`Hotovo`,"calib.restart":`Zopakovať meranie`,"calib.start":`Spustiť`},de=[{code:`en`,name:`English`},{code:`es`,name:`Español`},{code:`ar`,name:`العربية`,dir:`rtl`},{code:`de`,name:`Deutsch`},{code:`hu`,name:`Magyar`},{code:`pl`,name:`Polski`},{code:`fr`,name:`Français`},{code:`it`,name:`Italiano`},{code:`sk`,name:`Slovenčina`}],fe={en:ie,es:ae,ar:oe,de:se,hu:ce,pl:le,fr:E,it:D,sk:ue},pe=`en`,O=ie,k=new Intl.PluralRules(`en`);function me(){let e=typeof navigator<`u`&&(navigator.languages||[navigator.language])||[];for(let t of e){let e=String(t||``).toLowerCase().split(/[-_]/)[0];if(fe[e])return e}return`en`}function he(e){return e&&fe[e]?e:me()}function ge(e){pe=fe[e]?e:`en`,O=fe[pe],k=new Intl.PluralRules(pe),ye.clear(),typeof document<`u`&&(document.documentElement.lang=pe,document.documentElement.dir=_e()?`rtl`:`ltr`)}function _e(){return de.find(e=>e.code===pe)?.dir===`rtl`}function ve(e){return de.find(t=>t.code===e)?.name||e}function A(e,t){let n=O[e]??ie[e]??e;if(n&&typeof n==`object`){let e=t&&typeof t.count==`number`?t.count:0;n=n[k.select(e)]??n.other??Object.values(n)[0]}return t?n.replace(/\{(\w+)\}/g,(e,n)=>t[n]===void 0?e:String(t[n])):n}var ye=new Map;function be(e,t){let n=t,r=ye.get(n);return r||(r=new Intl.NumberFormat(`${pe}-u-nu-latn`,{minimumFractionDigits:t,maximumFractionDigits:t,useGrouping:!1}),ye.set(n,r)),r.format(e)}ge(me());var xe=`SkyContour`,Se=[`#FFFFFF`,`#DCE4F0`,`#E8ECF2`,`#FFE9C7`,`#CFE0FF`],Ce=[[58,330,`#FFFFFF`],[322,86,`#CFE0FF`],[262,300,`#FFE9C7`],[36,66,`#FFFFFF`],[356,348,`#DCE4F0`]],we=.12;function Te(e=150){let t=20261023,n=()=>(t=t*16807%2147483647,t/2147483647),r=[],i=0;for(;r.length(e<155?500:e<240?440:e<330?520:460)||e>95&&e<295&&t>96&&t<280&&a>.5)continue;let o=a>.93;r.push({x:e,y:t,r:o?1.3+n()*.6:.35+a*.8,o:.35+a*.6,c:Se[Math.floor(n()*Se.length)]})}return r}function Ee(){let e=(0,l.useMemo)(()=>Te(),[]);return(0,d.jsxs)(`svg`,{viewBox:`0 0 390 844`,preserveAspectRatio:`xMidYMax slice`,role:`img`,"aria-label":A(`welcome.sceneLabel`),style:{position:`absolute`,inset:0,width:`100%`,height:`100%`,display:`block`},children:[(0,d.jsxs)(`defs`,{children:[(0,d.jsxs)(`linearGradient`,{id:`wl-night`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,d.jsx)(`stop`,{offset:`0`,stopColor:`#03050A`}),(0,d.jsx)(`stop`,{offset:`0.55`,stopColor:`#0A1222`}),(0,d.jsx)(`stop`,{offset:`0.75`,stopColor:`#16233A`})]}),(0,d.jsx)(`filter`,{id:`wl-soft`,x:`-50%`,y:`-50%`,width:`200%`,height:`200%`,children:(0,d.jsx)(`feGaussianBlur`,{stdDeviation:`22`})}),(0,d.jsx)(`filter`,{id:`wl-glow`,x:`-200%`,y:`-200%`,width:`500%`,height:`500%`,children:(0,d.jsx)(`feGaussianBlur`,{stdDeviation:`2.2`})})]}),(0,d.jsx)(`rect`,{x:`0`,y:`-400`,width:`390`,height:`1244`,fill:`url(#wl-night)`}),(0,d.jsx)(`rect`,{x:`0`,y:`-400`,width:`390`,height:`400`,fill:`#03050A`}),(0,d.jsx)(`ellipse`,{cx:`210`,cy:`300`,rx:`70`,ry:`330`,transform:`rotate(32 210 300)`,fill:`#A9BCE0`,fillOpacity:we,filter:`url(#wl-soft)`}),(0,d.jsx)(`ellipse`,{cx:`230`,cy:`320`,rx:`30`,ry:`260`,transform:`rotate(32 230 320)`,fill:`#C9D6EE`,fillOpacity:we*.6,filter:`url(#wl-soft)`}),e.map((e,t)=>(0,d.jsx)(`circle`,{cx:e.x.toFixed(1),cy:e.y.toFixed(1),r:e.r.toFixed(2),fill:e.c,fillOpacity:e.o.toFixed(2)},t)),Ce.map(([e,t,n])=>(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`circle`,{cx:e,cy:t,r:`4.5`,fill:n,fillOpacity:`0.55`,filter:`url(#wl-glow)`}),(0,d.jsx)(`line`,{x1:e-8,y1:t,x2:e+8,y2:t,stroke:n,strokeOpacity:`0.55`,strokeWidth:`0.8`}),(0,d.jsx)(`line`,{x1:e,y1:t-8,x2:e,y2:t+8,stroke:n,strokeOpacity:`0.55`,strokeWidth:`0.8`}),(0,d.jsx)(`circle`,{cx:e,cy:t,r:`1.6`,fill:`#FFFFFF`})]},`${e}-${t}`)),(0,d.jsx)(`path`,{d:`M0 600 C25 586 45 594 70 582 C95 570 120 590 150 584 C180 578 200 596 230 592 C260 588 285 600 315 596 C345 592 370 604 390 598 L390 844 L0 844 Z`,fill:`#0C1320`}),(0,d.jsxs)(`g`,{fill:`#080C15`,children:[(0,d.jsx)(`path`,{d:`M300 528 L314 560 L307 560 L321 594 L279 594 L293 560 L286 560 Z`}),(0,d.jsx)(`path`,{d:`M345 470 L365 520 L355 520 L376 566 L363 566 L386 618 L304 618 L327 566 L314 566 L335 520 L325 520 Z`}),(0,d.jsx)(`rect`,{x:`341`,y:`612`,width:`8`,height:`30`}),(0,d.jsx)(`circle`,{cx:`180`,cy:`500`,r:`38`}),(0,d.jsx)(`circle`,{cx:`155`,cy:`527`,r:`28`}),(0,d.jsx)(`circle`,{cx:`207`,cy:`524`,r:`30`}),(0,d.jsx)(`circle`,{cx:`182`,cy:`468`,r:`25`}),(0,d.jsx)(`circle`,{cx:`160`,cy:`490`,r:`20`}),(0,d.jsx)(`circle`,{cx:`202`,cy:`488`,r:`20`}),(0,d.jsx)(`rect`,{x:`176`,y:`540`,width:`9`,height:`110`}),(0,d.jsx)(`rect`,{x:`20`,y:`560`,width:`122`,height:`100`}),(0,d.jsx)(`path`,{d:`M8 564 L80 505 L152 564 Z`}),(0,d.jsx)(`rect`,{x:`110`,y:`514`,width:`14`,height:`34`})]}),(0,d.jsx)(`rect`,{x:`40`,y:`590`,width:`22`,height:`22`,fill:`#F5B544`,fillOpacity:`0.85`}),(0,d.jsx)(`line`,{x1:`51`,y1:`590`,x2:`51`,y2:`612`,stroke:`#080C15`,strokeWidth:`2`}),(0,d.jsx)(`line`,{x1:`40`,y1:`601`,x2:`62`,y2:`601`,stroke:`#080C15`,strokeWidth:`2`}),(0,d.jsx)(`rect`,{x:`100`,y:`590`,width:`22`,height:`22`,fill:`#F5B544`,fillOpacity:`0.18`}),(0,d.jsx)(`path`,{d:`M0 652 C100 640 250 646 390 636 L390 844 L0 844 Z`,fill:`#05070C`}),(0,d.jsx)(`polyline`,{points:`0,598 8,564 80,505 152,564 154,536 158,510 166,478 176,446 192,444 204,466 222,496 236,520 242,560 262,590 286,560 300,528 314,560 322,594 330,560 345,470 365,520 386,606 390,600`,fill:`none`,stroke:`#F5B544`,strokeWidth:`1.6`,strokeDasharray:`5 4`,strokeLinejoin:`round`,strokeOpacity:`0.9`}),(0,d.jsx)(`g`,{fill:`#F5B544`,children:[[80,505],[152,564],[184,443],[242,560],[300,528],[345,470]].map(([e,t])=>(0,d.jsx)(`circle`,{cx:e,cy:t,r:`2.6`},e))}),(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`line`,{x1:`252`,y1:`662`,x2:`222`,y2:`772`,stroke:`#1A2436`,strokeWidth:`5`,strokeLinecap:`round`}),(0,d.jsx)(`line`,{x1:`255`,y1:`662`,x2:`258`,y2:`782`,stroke:`#1A2436`,strokeWidth:`5`,strokeLinecap:`round`}),(0,d.jsx)(`line`,{x1:`258`,y1:`662`,x2:`292`,y2:`770`,stroke:`#1A2436`,strokeWidth:`5`,strokeLinecap:`round`}),(0,d.jsx)(`line`,{x1:`252`,y1:`652`,x2:`230`,y2:`684`,stroke:`#1A2436`,strokeWidth:`3`,strokeLinecap:`round`}),(0,d.jsxs)(`g`,{stroke:`#3A4A66`,strokeWidth:`1`,strokeLinejoin:`round`,fill:`#121A28`,children:[(0,d.jsx)(`circle`,{cx:`228`,cy:`688`,r:`7`}),(0,d.jsx)(`rect`,{x:`245`,y:`646`,width:`20`,height:`18`,rx:`3`}),(0,d.jsxs)(`g`,{transform:`rotate(-50 262 640)`,children:[(0,d.jsx)(`rect`,{x:`207`,y:`630`,width:`104`,height:`20`,rx:`3`}),(0,d.jsx)(`rect`,{x:`296`,y:`627`,width:`26`,height:`26`,rx:`2`}),(0,d.jsx)(`rect`,{x:`196`,y:`634`,width:`14`,height:`12`,rx:`2`})]})]})]})]})}function De(){return(0,d.jsxs)(`div`,{className:`night-backdrop`,"aria-hidden":`true`,children:[(0,d.jsx)(Ee,{}),(0,d.jsx)(`div`,{className:`night-backdrop-dim`})]})}function Oe({onStart:e}){return(0,d.jsxs)(`div`,{className:`screen`,style:{background:`#04060B`},children:[(0,d.jsx)(Ee,{}),(0,d.jsxs)(`div`,{style:{position:`absolute`,left:0,right:0,top:`calc(var(--safe-top) + 64px)`,display:`flex`,flexDirection:`column`,alignItems:`center`,gap:14,textAlign:`center`,padding:`0 20px`},children:[(0,d.jsx)(p,{size:64,border:!0}),(0,d.jsx)(`h1`,{style:{margin:0,fontSize:44,fontWeight:700,letterSpacing:`-0.01em`,lineHeight:1.1},children:xe}),(0,d.jsx)(`p`,{style:{margin:0,maxWidth:280,fontSize:17,lineHeight:1.4,color:`var(--text2)`},children:A(`welcome.tagline`)})]}),(0,d.jsxs)(`div`,{style:{position:`absolute`,left:20,right:20,bottom:`calc(var(--safe-bottom) + 24px)`,display:`flex`,flexDirection:`column`,alignItems:`center`,gap:14},children:[(0,d.jsx)(`span`,{className:`overline`,style:{textTransform:`none`},children:A(`welcome.formats`)}),(0,d.jsxs)(`button`,{className:`btn btn-primary`,style:{alignSelf:`stretch`},onClick:e,children:[A(`welcome.start`),` `,(0,d.jsx)(_,{className:`flip-rtl`})]})]})]})}function ke(e,t){let n=(t%360+360)%360,r=Math.floor(n),i=n-r,a=e[r%360];return a+(e[(r+1)%360]-a)*i}function Ae(e,t){return t?Array.from({length:360},(n,r)=>ke(e,r-t)):e}function je(e){let t=-1/0;for(let n of e)t=Math.max(t,n);return t}function Me(e){let t=[],n=-1;for(let r=0;r<=360;r++){let i=r<360&&(!e||e[r]);i&&n<0&&(n=r),!i&&n>=0&&(t.push([n,r]),n=-1)}return t}function Ne(e){if(!e)return 360;let t=0;for(let n of e)n&&t++;return t}var Pe=()=>[A(`compass.n`),A(`compass.e`),A(`compass.s`),A(`compass.w`),A(`compass.n`)],Fe=e=>e.toFixed(1);function Ie({profile:e,coverage:t,width:n=318,height:r=64,max:i=40}){let a=e=>e/360*n,o=e=>r-Math.max(0,Math.min(e,i))/i*r,s=e?Me(t):[],c=[],l=0;for(let[e,t]of s)e>l&&c.push([l,e]),l=t;l<360&&c.push([l,360]);let u=s.map(([t,n])=>{let i=n===360?360:n-1,s=[];for(let n=t;n<=i;n++)s.push([n,e[n%360]]);return s.length===1&&s.push([s[0][0]+1,s[0][1]]),{line:s.map((e,t)=>`${t?`L`:`M`}${Fe(a(e[0]))} ${Fe(o(e[1]))}`).join(` `),area:`M${Fe(a(s[0][0]))} ${r} `+s.map(e=>`L${Fe(a(e[0]))} ${Fe(o(e[1]))}`).join(` `)+` L${Fe(a(s[s.length-1][0]))} ${r} Z`}});return(0,d.jsxs)(`svg`,{viewBox:`0 0 ${n} ${r}`,width:`100%`,height:r,preserveAspectRatio:`none`,"aria-hidden":`true`,style:{display:`block`},children:[(0,d.jsx)(`line`,{x1:`0`,y1:r,x2:n,y2:r,stroke:`#263042`,strokeWidth:`1`}),c.map(([e,t])=>(0,d.jsx)(`rect`,{x:a(e),y:`0.5`,width:a(t)-a(e),height:r-1,fill:`#121722`,stroke:`#263042`,strokeDasharray:`3 4`,vectorEffect:`non-scaling-stroke`},e)),u.map((e,t)=>(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`path`,{d:e.area,fill:`#F5B544`,fillOpacity:`0.16`}),(0,d.jsx)(`path`,{d:e.line,fill:`none`,stroke:`#F5B544`,strokeWidth:`1.6`,strokeLinejoin:`round`,vectorEffect:`non-scaling-stroke`})]},t))]})}function Le({profile:e,marginDeg:t}){let n=40;for(let r of e)n=Math.max(n,Math.ceil((r+t)/10)*10);n=Math.min(n,90);let r=n/4,i=e=>30+e/360*316,a=e=>210-Math.max(0,Math.min(e,n))/n*200,o=Array.from({length:361},(t,n)=>[n,e[n%360]]),s=o.map((e,t)=>`${t?`L`:`M`}${Fe(i(e[0]))} ${Fe(a(e[1]))}`).join(` `),c=o.map((e,n)=>`${n?`L`:`M`}${Fe(i(e[0]))} ${Fe(a(Math.min(90,e[1]+t)))}`).join(` `),l=`M30 210 `+o.map(e=>`L${Fe(i(e[0]))} ${Fe(a(e[1]))}`).join(` `)+` L346 210 Z`,u=[0,1,2,3,4].map(e=>n-e*r);return(0,d.jsxs)(`svg`,{viewBox:`0 0 350 250`,width:`100%`,role:`img`,style:{display:`block`},"aria-label":A(`review.chartLabel`),children:[(0,d.jsx)(`g`,{stroke:`#1E2634`,strokeWidth:`1`,children:u.slice(0,4).map(e=>(0,d.jsx)(`line`,{x1:30,y1:a(e),x2:346,y2:a(e)},e))}),(0,d.jsx)(`line`,{x1:30,y1:210,x2:346,y2:210,stroke:`#3A4558`,strokeWidth:`1`}),(0,d.jsx)(`g`,{fontFamily:`IBM Plex Mono, ui-monospace, monospace`,fontSize:`10`,fill:`#93A0B4`,textAnchor:`end`,children:u.map(e=>(0,d.jsxs)(`text`,{x:`24`,y:a(e)+4,children:[Math.round(e),`°`]},e))}),(0,d.jsx)(`g`,{fontFamily:`IBM Plex Mono, ui-monospace, monospace`,fontSize:`11`,fill:`#93A0B4`,textAnchor:`middle`,children:Pe().map((e,t)=>(0,d.jsx)(`text`,{x:i(t*90),y:`232`,children:e},t))}),(0,d.jsx)(`path`,{d:l,fill:`#F5B544`,fillOpacity:`0.16`}),(0,d.jsx)(`path`,{d:s,fill:`none`,stroke:`#F5B544`,strokeWidth:`1.6`,strokeLinejoin:`round`}),(0,d.jsx)(`path`,{d:c,fill:`none`,stroke:`#6CC3E6`,strokeWidth:`2`,strokeDasharray:`5 4`,strokeLinejoin:`round`})]})}function Re({style:e}){return(0,d.jsx)(`div`,{className:`compass-labels`,style:e,children:Pe().map((e,t)=>(0,d.jsx)(`span`,{children:e},t))})}var ze=`−`;function Be(e,t){return be(Math.abs(e),t)}function Ve(e,t=1){let n=Be(e,t);return Number(Math.abs(e).toFixed(t))===0?n:(e>0?`+`:ze)+n}function He(e,t=0){let n=Be(e,t);return(e<0&&Number(Math.abs(e).toFixed(t))!==0?ze:``)+n}var Ue=`‎`;function We(e){return`${Math.abs(e).toFixed(4)}° ${A(e>=0?`compass.n`:`compass.s`)}${Ue}`}function Ge(e){return`${Math.abs(e).toFixed(4)}° ${A(e>=0?`compass.e`:`compass.w`)}${Ue}`}function Ke(e){if(!e)return A(`common.noLocation`);let t=[We(e.latDeg),Ge(e.lonDeg)];return e.elevM!=null&&t.push(A(`setup.elevation`,{m:Math.round(e.elevM)})),t.join(` · `)}function qe(e){return(e||``).normalize(`NFD`).replace(/[̀-ͯ]/g,``).toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)||`horizon`}var Je=typeof window<`u`&&!!window.flutter_inappwebview;function Ye(e,...t){return!Je||!window.flutter_inappwebview.callHandler?Promise.resolve(void 0):window.flutter_inappwebview.callHandler(e,...t).catch(()=>void 0)}function Xe(e){return e.data instanceof Blob?e.data:new Blob([e.data],{type:e.mime})}function Ze(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(String(r.result).split(`,`)[1]||``),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}async function Qe(e,t){let n=await Promise.all(t.map(async e=>({name:e.name,mime:e.mime,base64:await Ze(Xe(e))})));return window.flutter_inappwebview.callHandler(e,n)}function $e(e){let t=URL.createObjectURL(Xe(e)),n=document.createElement(`a`);n.href=t,n.download=e.name,document.body.appendChild(n),n.click(),n.remove(),setTimeout(()=>URL.revokeObjectURL(t),15e3)}async function et(e){if(Je){let t=await Qe(`saveFiles`,e),n=t&&Array.isArray(t.saved)&&t.saved.length?t.saved:e.map(e=>e.name);return{ok:!0,text:A(t&&t.platform===`ios`?`files.savedIos`:`files.savedAndroid`,{count:n.length,name:n[0]})}}for(let t=0;tsetTimeout(e,400));return{ok:!0,text:A(`files.downloaded`,{count:e.length,name:e[0].name})}}async function tt(e,t){if(Je){let t=await Qe(`shareFiles`,e),n=t&&t.status===`cancelled`;return{ok:!n,text:A(n?`files.shareCancelled`:`files.shared`)}}let n=e.map(e=>new File([Xe(e)],e.name,{type:e.mime}));if(navigator.canShare&&navigator.canShare({files:n}))try{return await navigator.share({files:n,title:t}),{ok:!0,text:A(`files.shared`)}}catch(e){if(e&&e.name===`AbortError`)return{ok:!1,text:A(`files.shareCancelled`)};throw e}return{ok:!0,text:`${(await et(e)).text} ${A(`files.shareUnsupported`)}`}}function nt(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(String(r.result)),r.onerror=()=>n(r.error),r.readAsText(e)})}var rt=`modulepreload`,it=function(e){return`/`+e},at={},ot=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=it(t,n),t in at)return;at[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:rt,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},st=null,ct=null;function lt(){return st?Promise.resolve(st):(ct||=ot(()=>import(`./rust_panorama_wasm-BSG2BSMu.js`).then(async e=>(await e.default(),st=e,e)),[]),ct)}function ut(){if(!st)throw Error(`WASM module not loaded yet`);return st}function dt(){return!!st}function ft(e){if(e==null)return`unknown error`;if(typeof e==`string`)return e;if(e.message)return e.message;try{let t=String(e);return t===`[object Object]`?JSON.stringify(e):t}catch{return`unknown error`}}function pt({site:e,onOpen:t}){let n=e.status!==`complete`,r=e.coverage?Ne(e.coverage):e.source===`import`?360:0,i=Math.round((e.cells||[]).filter(Boolean).length*15),a=e.coverage?r:i;return(0,d.jsxs)(`button`,{className:`site-card`,onClick:()=>t(e),children:[(0,d.jsxs)(`div`,{className:`head`,children:[(0,d.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:4,minWidth:0},children:[(0,d.jsx)(`span`,{className:`name`,children:e.name}),(0,d.jsx)(`span`,{className:`coords`,children:Ke(e.location)})]}),n?(0,d.jsx)(`span`,{className:`badge-amber`,children:A(`sites.inProgress`)}):(0,d.jsx)(_,{size:20,width:1.8,style:{color:`var(--muted)`,marginTop:4,flex:`none`}})]}),e.profile?(0,d.jsx)(Ie,{profile:e.profile,coverage:e.coverage}):(0,d.jsx)(`div`,{style:{height:64,borderRadius:8,border:`1px dashed #263042`,display:`flex`,alignItems:`center`,justifyContent:`center`,fontSize:13,color:`var(--faint)`},children:A(`sites.noHorizon`)}),n?(0,d.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:8,width:`100%`},children:[(0,d.jsx)(`div`,{className:`progress`,children:(0,d.jsx)(`div`,{style:{width:`${a/360*100}%`}})}),(0,d.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,fontSize:14,color:`var(--muted)`},children:[(0,d.jsx)(`span`,{children:A(`sites.covered`,{deg:a})}),(0,d.jsx)(`span`,{style:{color:`var(--accent)`,fontWeight:600},children:A(`sites.continue`)})]})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Re,{style:{marginTop:-6,width:`100%`}}),(0,d.jsxs)(`div`,{className:`footer`,style:{width:`100%`},children:[(0,d.jsx)(`span`,{children:e.source===`import`?A(`sites.imported`):r>=360?A(`sites.framesFull`,{count:e.frames}):A(`sites.framesPartial`,{count:e.frames,deg:r})}),(0,d.jsx)(`span`,{style:{flex:1}}),e.exported?.nina&&(0,d.jsxs)(`span`,{className:`chip`,children:[(0,d.jsx)(x,{style:{color:`var(--info)`}}),`NINA`]}),e.exported?.stellarium&&(0,d.jsxs)(`span`,{className:`chip`,children:[(0,d.jsx)(x,{style:{color:`var(--info)`}}),`Stellarium`]})]})]})]})}function mt({sites:e,onNew:t,onOpen:n,onSettings:r,onImport:i}){let a=(0,l.useRef)(null),[o,s]=(0,l.useState)(``),c=async e=>{let t=e.target.files&&e.target.files[0];if(e.target.value=``,t){s(``);try{let e=await lt(),n=await nt(t),r=Array.from(e.parse_hrz(n));i(t.name.replace(/\.(hrz|txt)$/i,``),r)}catch(e){s(A(`sites.importError`,{file:t.name,error:ft(e)}))}}},u=[...e].sort((e,t)=>(t.updatedAt||``).localeCompare(e.updatedAt||``));return(0,d.jsxs)(`div`,{className:`screen with-backdrop`,children:[(0,d.jsx)(De,{}),(0,d.jsxs)(`div`,{className:`screen-body`,style:{paddingTop:`calc(var(--safe-top) + 32px)`},children:[(0,d.jsxs)(`div`,{className:`home-header`,children:[(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`h1`,{children:xe}),(0,d.jsx)(`p`,{children:A(`sites.subtitle`)})]}),Je?(0,d.jsx)(`button`,{className:`icon-btn round`,"aria-label":A(`sites.import`),title:A(`sites.import`),onClick:()=>a.current&&a.current.click(),children:(0,d.jsx)(b,{size:20})}):(0,d.jsx)(`button`,{className:`icon-btn round`,"aria-label":A(`sites.settings`),onClick:r,children:(0,d.jsx)(g,{})})]}),(0,d.jsx)(`div`,{className:`overline`,style:{marginTop:28},children:A(`sites.count`,{count:e.length})}),o&&(0,d.jsx)(`div`,{className:`notice error`,style:{marginTop:12},children:o}),u.length===0?(0,d.jsxs)(`div`,{className:`empty`,children:[(0,d.jsx)(`span`,{style:{fontSize:17,color:`var(--text)`,fontWeight:600},children:A(`sites.emptyTitle`)}),(0,d.jsx)(`span`,{children:A(`sites.emptyHint`)}),Je&&(0,d.jsx)(`span`,{children:A(`sites.emptyHintApp`,{tab:A(`tab.new`)})})]}):(0,d.jsx)(`div`,{className:`site-list`,children:u.map(e=>(0,d.jsx)(pt,{site:e,onOpen:n},e.id))})]}),!Je&&(0,d.jsxs)(`div`,{className:`screen-actions`,children:[(0,d.jsxs)(`button`,{className:`btn btn-primary`,onClick:t,children:[(0,d.jsx)(y,{}),A(`sites.newSurvey`)]}),(0,d.jsxs)(`button`,{className:`btn btn-secondary`,onClick:()=>a.current&&a.current.click(),children:[(0,d.jsx)(b,{}),A(`sites.import`)]})]}),(0,d.jsx)(`input`,{ref:a,type:`file`,accept:`.hrz,.txt,text/plain`,hidden:!0,onChange:c})]})}var ht=`sfz-video`,gt=null;function _t(){return gt||(gt=document.createElement(`video`),gt.id=ht,gt.autoplay=!0,gt.muted=!0,gt.playsInline=!0,gt.setAttribute(`playsinline`,``),Object.assign(gt.style,{position:`fixed`,left:`0`,top:`0`,width:`2px`,height:`2px`,opacity:`0`,pointerEvents:`none`}),document.body.appendChild(gt)),gt}function vt(){let e=_t().srcObject;return!!(e&&e.getVideoTracks&&e.getVideoTracks().some(e=>e.readyState===`live`))}async function yt(){if(!window.isSecureContext)throw Error(A(`camera.err.https`));if(!(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia))throw Error(A(`camera.err.noApi`));await lt();let e=_t();vt()||await ut().init_camera(ht),await e.play().catch(()=>{});let t=performance.now();for(;e.videoWidth===0&&performance.now()-t<5e3;)await new Promise(e=>setTimeout(e,50));if(e.videoWidth===0)throw Error(A(`camera.err.noPicture`))}function bt(){!gt||!gt.srcObject||(gt.srcObject.getTracks().forEach(e=>e.stop()),gt.srcObject=null)}var xt=typeof location<`u`&&new URLSearchParams(location.search).has(`sim`),St=null;function Ct(){if(!St){let e=e=>e.start_orientation(`sfz-none-heading`,`sfz-none-tilt`),t;try{t=e(ut())}catch{t=lt().then(e)}St=t.then(()=>{xt&&Ot()}).catch(e=>{throw St=null,e})}return St}function wt(){return!!St}function Tt(){let e=ut(),t=e.get_orientation();return{heading:e.get_heading(),tilt:e.get_tilt(),ori:t.length===3?{alpha:t[0],beta:t[1],gamma:t[2]}:null}}function Et(){return window.screen&&window.screen.orientation&&window.screen.orientation.angle||0}function j(e,t){if(e>=t)return 65;let n=65/2*Math.PI/180;return 2*Math.atan(e/t*Math.tan(n))*180/Math.PI}function Dt(e,t,n){let r=e??j(t||9,n||16);return{hfov:r,vfov:2*Math.atan(Math.tan(r/2*Math.PI/180)*((n||16)/(t||9)))*180/Math.PI}}function Ot(){let e=new URLSearchParams(location.search).get(`sim`)===`sweep`,t={heading:0,tilt:10};window.addEventListener(`keydown`,e=>{e.key===`ArrowLeft`&&(t.heading-=3),e.key===`ArrowRight`&&(t.heading+=3),e.key===`ArrowUp`&&(t.tilt+=1),e.key===`ArrowDown`&&--t.tilt});let n=performance.now();setInterval(()=>{let r=performance.now();e&&(t.heading+=4*(r-n)/1e3),n=r;let i=(t.heading%360+360)%360,a=new DeviceOrientationEvent(`deviceorientationabsolute`,{alpha:(360-i)%360,beta:90+t.tilt,gamma:0,absolute:!0});window.dispatchEvent(a)},50)}function kt(){let[e,t]=(0,l.useState)(()=>navigator.geolocation?{status:`locating`,loc:null,error:``}:{status:`error`,loc:null,error:A(`setup.noGeo`)}),n=(0,l.useCallback)(()=>{navigator.geolocation&&navigator.geolocation.getCurrentPosition(e=>t({status:`ok`,error:``,loc:{latDeg:e.coords.latitude,lonDeg:e.coords.longitude,elevM:e.coords.altitude,accuracyM:e.coords.accuracy}}),()=>t({status:`error`,loc:null,error:A(`setup.geoUnavailable`)}),{enableHighAccuracy:!0,timeout:2e4,maximumAge:6e4})},[]);return(0,l.useEffect)(()=>{n()},[n]),[e,()=>{navigator.geolocation&&(t(e=>({...e,status:`locating`,error:``})),n())}]}function At({suggestedName:e,onBack:t,onStart:n}){let[r,i]=(0,l.useState)(e),[a,o]=kt(),[s,c]=(0,l.useState)(!1),[u,f]=(0,l.useState)(``),p=async()=>{f(``),c(!0);let t=Ct();try{await t}catch(e){c(!1),f(A(`setup.sensorsError`,{error:ft(e)}));return}try{await yt()}catch(e){c(!1),f(A(`setup.cameraError`,{error:ft(e)}));return}n({name:r.trim()||e,location:a.loc})},m=a.loc;return(0,d.jsxs)(`div`,{className:`screen`,children:[(0,d.jsxs)(`div`,{className:`screen-body`,children:[(0,d.jsxs)(`div`,{className:`title-row`,children:[(0,d.jsx)(`button`,{className:`icon-btn back`,"aria-label":A(`common.back`),onClick:t,children:(0,d.jsx)(v,{className:`flip-rtl`})}),(0,d.jsx)(`h1`,{children:A(`setup.title`)})]}),(0,d.jsxs)(`div`,{style:{marginTop:16,display:`flex`,flexDirection:`column`,gap:22},children:[(0,d.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:8},children:[(0,d.jsx)(`label`,{htmlFor:`site-name`,className:`overline`,children:A(`setup.siteName`)}),(0,d.jsx)(`input`,{id:`site-name`,className:`text-input`,value:r,maxLength:60,onChange:e=>i(e.target.value),autoComplete:`off`,dir:`auto`}),(0,d.jsxs)(`div`,{className:`row-card`,children:[(0,d.jsx)(S,{style:{color:`var(--info)`,flex:`none`}}),(0,d.jsx)(`div`,{className:`grow`,children:m?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`span`,{className:`mono`,dir:`ltr`,style:{fontSize:13},children:[We(m.latDeg),` · `,Ge(m.lonDeg)]}),(0,d.jsxs)(`span`,{className:`small`,children:[m.elevM==null?A(`setup.altitudeUnknown`):A(`setup.elevation`,{m:Math.round(m.elevM)}),` · `,A(`setup.gps`,{m:Math.round(m.accuracyM)})]})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`span`,{className:`strong`,children:a.status===`locating`?A(`setup.locating`):A(`common.noLocation`)}),(0,d.jsx)(`span`,{className:`small`,children:a.error||A(`setup.locationHint`)})]})}),(0,d.jsx)(`button`,{className:`btn-small`,onClick:o,disabled:a.status===`locating`,children:A(`setup.refresh`)})]}),(0,d.jsxs)(`div`,{className:`row-card`,children:[(0,d.jsx)(C,{style:{color:`var(--info)`,flex:`none`}}),(0,d.jsxs)(`div`,{className:`grow`,children:[(0,d.jsx)(`span`,{className:`strong`,children:A(`setup.northTitle`)}),(0,d.jsx)(`span`,{className:`small`,children:A(`setup.northHint`)})]})]})]}),(0,d.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:12},children:[(0,d.jsx)(`span`,{className:`overline`,children:A(`setup.howTo`)}),(0,d.jsxs)(`svg`,{viewBox:`0 0 350 120`,width:`100%`,role:`img`,style:{display:`block`},"aria-label":A(`setup.illustration`),children:[(0,d.jsx)(`ellipse`,{cx:`175`,cy:`66`,rx:`150`,ry:`34`,fill:`none`,stroke:`#263042`,strokeWidth:`22`}),(0,d.jsx)(`path`,{d:`M25 66 A150 34 0 0 0 325 66`,fill:`none`,stroke:`#F5B544`,strokeOpacity:`0.35`,strokeWidth:`22`}),(0,d.jsx)(`path`,{d:`M296 44 l14 8 -16 4`,fill:`none`,stroke:`#F5B544`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,d.jsx)(`rect`,{x:`163`,y:`40`,width:`24`,height:`44`,rx:`5`,fill:`#0A0D13`,stroke:`#E8ECF2`,strokeWidth:`2`}),(0,d.jsx)(`text`,{x:`338`,y:`20`,textAnchor:`end`,fontFamily:`IBM Plex Mono, ui-monospace, monospace`,fontSize:`10`,fill:`#93A0B4`,children:A(`setup.skyNotNeeded`)})]}),(0,d.jsxs)(`ol`,{className:`how-list`,children:[(0,d.jsx)(`li`,{children:A(`setup.step1`)}),(0,d.jsx)(`li`,{children:A(`setup.step2`)}),(0,d.jsx)(`li`,{children:A(`setup.step3`)})]})]}),u&&(0,d.jsx)(`div`,{className:`notice error`,children:u})]})]}),(0,d.jsx)(`div`,{className:`screen-actions`,children:(0,d.jsxs)(`button`,{className:`btn btn-primary`,onClick:p,disabled:s,children:[A(s?`common.startingCamera`:`setup.start`),!s&&(0,d.jsx)(_,{className:`flip-rtl`})]})})]})}var jt=`sfz.sites.v1`,Mt=`sfz.settings.v1`,Nt=`sfzenith_fov`;function Pt(e){let t=new Date().toISOString();return{id:`s`+Date.now().toString(36)+Math.random().toString(36).slice(2,7),name:e,createdAt:t,updatedAt:t,source:`survey`,location:null,status:`in-progress`,frames:0,cells:Array(24).fill(!1),profile:null,coverage:null,marginDeg:2,northOffsetDeg:0,edits:[],exported:{nina:!1,stellarium:!1},hasStrip:!1}}function Ft(){try{let e=JSON.parse(localStorage.getItem(jt)||`[]`);return Array.isArray(e)?e:[]}catch{return[]}}function It(e){try{localStorage.setItem(jt,JSON.stringify(e))}catch(e){console.warn(`Could not save sites`,e)}}function Lt(){let e={};try{e=JSON.parse(localStorage.getItem(Mt)||`{}`)||{}}catch{e={}}if(e.fovDeg===void 0){let t=parseFloat(localStorage.getItem(Nt));e.fovDeg=t>=20&&t<=120?t:null}return{fovDeg:null,autoCapture:!0,author:``,welcomed:!1,...e}}function Rt(e){try{localStorage.setItem(Mt,JSON.stringify(e))}catch(e){console.warn(`Could not save settings`,e)}}var zt=null;function Bt(){return zt||=new Promise((e,t)=>{let n=indexedDB.open(`sfzenith`,1);n.onupgradeneeded=()=>n.result.createObjectStore(`strips`),n.onsuccess=()=>e(n.result),n.onerror=()=>t(n.error)}),zt}function Vt(e,t){return Bt().then(n=>new Promise((r,i)=>{let a=n.transaction(`strips`,e),o=t(a.objectStore(`strips`));a.oncomplete=()=>r(o&&o.result),a.onerror=()=>i(a.error)}))}var Ht=(e,t)=>Vt(`readwrite`,n=>n.put(t,e)),Ut=e=>Vt(`readonly`,t=>t.get(e)),Wt=e=>Vt(`readwrite`,t=>t.delete(e)),M=3072,Gt=1024,Kt=360/24,qt=800,Jt=null,Yt=null;function Xt(e,t){let n=document.createElement(`canvas`);return n.width=e,n.height=t,n}function Zt(e,t){let n=Math.abs(e-t)%360;return Math.min(n,360-n)}function Qt(e){let t=(e%360+360)%360;return t>180?t-360:t}function $t(e){return Math.floor((e%360+360)%360/Kt)%24}async function en(e){if(Jt&&Jt.siteId===e.id)return Jt;let t=Xt(M,Gt);t.getContext(`2d`,{willReadFrequently:!0});let n=null;if(e.hasStrip){let t=await Ut(e.id).catch(()=>null);if(t){let e=await createImageBitmap(t);n=Xt(M,Gt),n.getContext(`2d`).drawImage(e,0,0,M,Gt),e.close&&e.close()}}return Jt={siteId:e.id,canvas:t,base:n,baseCells:[...e.cells||Array(24).fill(!1)],baseFrames:e.frames||0,captures:[],version:1,dirty:!1},an(Jt),Jt}function tn(e){Jt&&(!e||Jt.siteId===e)&&(Jt=null),Yt&&(!e||Yt.siteId===e)&&(Yt.survey.free(),Yt=null)}function nn(e){let t=[...e.baseCells];for(let n of e.captures)t[n.cell]=!0;return t}function rn(e){return e.baseFrames+e.captures.length}function an(e){let t=e.canvas.getContext(`2d`);t.clearRect(0,0,M,Gt),e.base&&t.drawImage(e.base,0,0);for(let n of e.captures)n.patch&&on(t,n.patch)}function on(e,t){e.drawImage(t.canvas,t.x,t.y),t.x+t.w>3072&&e.drawImage(t.canvas,t.x-M,t.y)}function sn(e){let t=Math.min(1,qt/Math.max(e.videoWidth,e.videoHeight)),n=Xt(Math.round(e.videoWidth*t),Math.round(e.videoHeight*t));return n.getContext(`2d`,{willReadFrequently:!0}).drawImage(e,0,0,n.width,n.height),n}function cn(e,t,n){let r=t.getContext(`2d`,{willReadFrequently:!0}).getImageData(0,0,t.width,t.height),i=new Uint8Array(r.data.buffer,r.data.byteOffset,r.data.byteLength),a=ut().project_frame(i,t.width,t.height,e.ori.alpha,e.ori.beta,e.ori.gamma,e.screenAngle,n,M,Gt,-30,90);if(!a)return null;let o={x:a.x,y:a.y,w:a.w,h:a.h},s=a.take_data();a.free();let c=Xt(o.w,o.h);return c.getContext(`2d`).putImageData(new ImageData(new Uint8ClampedArray(s.buffer,s.byteOffset,s.byteLength),o.w,o.h),0,0),{canvas:c,...o}}function ln(e,t,n,{high:r=!1}={}){let{heading:i,tilt:a,ori:o}=Tt();if(i<0)throw Error(A(`capture.err.noHeading`));if(!t.videoWidth)throw Error(A(`capture.err.cameraNotReady`));let s=Et(),c=o;if(c){let e=ut().orientation_az_el(c.alpha,c.beta,c.gamma,s);(Zt(e[0],i)>15||Math.abs(e[1]-a)>15)&&(c=null)}let l=s;c||(c={alpha:(360-i)%360,beta:90+a,gamma:0},l=0);let u=sn(t),d={heading:i,tilt:a,ori:c,screenAngle:l,cell:$t(i),high:r,hfov:n};return d.patch=cn(d,u,n),e.captures.push(d),d.patch&&on(e.canvas.getContext(`2d`),d.patch),e.version++,e.dirty=!0,d}function un(e){return e.captures.length?(e.captures.pop(),an(e),e.version++,e.dirty=!0,!0):!1}function dn(e){let t=(e.saving||Promise.resolve()).catch(()=>{}).then(async()=>{if(!e.dirty)return!1;e.dirty=!1;let t=await new Promise(t=>e.canvas.toBlob(t,`image/png`));if(!t)throw e.dirty=!0,Error(A(`capture.err.encode`));return await Ht(e.siteId,t),!0});return e.saving=t,t}function fn(e){if(Yt&&Yt.siteId===e.siteId&&Yt.version===e.version)return Yt.survey;Yt&&Yt.survey.free();let t=e.canvas.getContext(`2d`,{willReadFrequently:!0}).getImageData(0,0,M,Gt),n=new Uint8Array(t.data.buffer,t.data.byteOffset,t.data.byteLength),r=new(ut()).HorizonSurvey(n,M,Gt,90,-30);return Yt={siteId:e.siteId,version:e.version,survey:r},r}function pn(e){let t=[];for(let n of e||[])for(let[e,r]of n.points)t.push({mode:n.mode,azDeg:e,altDeg:r,radiusDeg:n.radiusDeg});return t}function mn(e,t,n,r,i=0,a=360){let o=t.getContext(`2d`),s=Gt/120,c=(90-n)*s,l=(n-r)*s,u=(i%360+360)%360/360*M,d=a/360*M,f=t.width/d,p=Math.min(d,M-u);o.drawImage(e.canvas,u,c,p,l,0,0,p*f,t.height),pA(`common.startingCamera`)),[,T]=(0,l.useState)(0),[ie,ae]=(0,l.useState)(null),[oe,se]=(0,l.useState)(null),[ce,le]=(0,l.useState)(!1),[E,D]=(0,l.useState)(!1),ue=(0,l.useRef)(null),de=(0,l.useRef)(t),fe=(0,l.useRef)(null),pe=(0,l.useRef)(-1),O=(0,l.useRef)(0),k=(0,l.useRef)(()=>{}),me=(0,l.useRef)(r);(0,l.useEffect)(()=>{de.current=t,fe.current=oe,me.current=r}),(0,l.useEffect)(()=>{let t=!0;return en(e).then(e=>{t&&(ue.current=e,x(e))}).catch(e=>C({state:`error`,error:A(`capture.openError`,{error:ft(e)})})),()=>{t=!1}},[e.id]);let he=(0,l.useCallback)(async()=>{try{wt()||await Ct(),await yt(),C({state:`live`,error:``})}catch(e){C({state:`error`,error:ft(e)})}},[]);(0,l.useEffect)(()=>(he(),()=>bt()),[he]),(0,l.useEffect)(()=>{if(Je)return Ye(`keepAwake`,!0),()=>{Ye(`keepAwake`,!1)};let e=null,t=async()=>{try{navigator.wakeLock&&(e=await navigator.wakeLock.request(`screen`))}catch{}};t();let n=()=>{document.visibilityState===`visible`&&t()};return document.addEventListener(`visibilitychange`,n),()=>{document.removeEventListener(`visibilitychange`,n),e&&e.release().catch(()=>{})}},[]);let ge=(0,l.useCallback)(()=>{let e=ue.current,t=u.current;if(!e||!t||!t.clientWidth)return;let n=window.devicePixelRatio||1,r=Math.round(t.clientWidth*n),i=Math.round(40*n);(t.width!==r||t.height!==i)&&(t.width=r,t.height=i);let a=t.getContext(`2d`);a.fillStyle=`#1A2130`,a.fillRect(0,0,r,i),mn(e,t,bn,xn),a.strokeStyle=`rgba(10, 13, 19, 0.6)`,a.lineWidth=n;for(let e=1;e<24;e++){let t=Math.round(e/24*r)+.5;a.beginPath(),a.moveTo(t,0),a.lineTo(t,i),a.stroke()}let o=pe.current;o>=0&&(a.strokeStyle=`#F5B544`,a.lineWidth=2*n,a.strokeRect(o/24*r+n,n,r/24-2*n,i-2*n))},[]);(0,l.useEffect)(()=>{ge()},[b,ge]);let _e=(0,l.useCallback)(e=>{T(e=>e+1),ge(),me.current({frames:rn(e),cells:nn(e)}),dn(e).then(e=>{e&&me.current({hasStrip:!0})}).catch(e=>ne(A(`capture.saveError`,{error:ft(e)})))},[ge]),ve=(0,l.useCallback)((e,t)=>{if(!t.high)try{let n=fn(e).top_touch(),r=Math.floor(t.hfov/2),i=Math.round(t.heading),a=null,o=0,s=0;for(let e=-r;e<=r;e++)n[(i+e+720)%360]?(o||(s=e),o++,o>=2&&(!a||o>a.len)&&(a={len:o,az:i+s+(o-1)/2})):o=0;a&&ue.current===e&&ae({az:(Math.round(a.az)%360+360)%360})}catch(e){console.warn(`top-touch check failed`,e)}},[]),ye=(0,l.useCallback)(()=>{let e=ue.current,t=_t();if(!(!e||!t.videoWidth))try{let{hfov:n}=Dt(de.current.fovDeg,t.videoWidth,t.videoHeight),r=!!fe.current,i=ln(e,t,n,{high:r});O.current=performance.now(),r&&se(null),ae(null),Je?Ye(`haptic`):navigator.vibrate&&navigator.vibrate(15),le(!0),setTimeout(()=>le(!1),150),_e(e),setTimeout(()=>ve(e,i),80)}catch(e){ne(ft(e))}},[_e,ve]);(0,l.useEffect)(()=>{k.current=ye},[ye]);let be=()=>{let e=ue.current;!e||!un(e)||(ae(null),se(null),_e(e))},xe=async e=>{let t=ue.current;D(!0);try{if(t){let e=await dn(t),n={frames:rn(t),cells:nn(t)};if((e||t.base)&&(n.hasStrip=!0),t.base||t.captures.length){let e=fn(t),r=e.profile();r&&(n.profile=Array.from(r,e=>Math.round(e*100)/100),n.coverage=Array.from(e.coverage()))}r(n)}}catch(e){D(!1),ne(A(`capture.saveError`,{error:ft(e)}));return}bt(),e()},Se=(0,l.useRef)(null);(0,l.useEffect)(()=>{Se.current=()=>xe(i)}),(0,l.useEffect)(()=>{if(o)return o(()=>(Se.current&&Se.current(),!0)),()=>o(null)},[o]),(0,l.useEffect)(()=>{if(S.state!==`live`||!b)return;let e=_t(),t=[],n=0,r=``,i=0,a=e=>{e!==r&&(r=e,ne(e))},o=(e,t)=>{e&&(e.style.display=t?``:`none`)},l=()=>{n=requestAnimationFrame(l);let r=s.current,u=c.current;if(!r||!u||!e.videoWidth||((u.width!==e.videoWidth||u.height!==e.videoHeight)&&(u.width=e.videoWidth,u.height=e.videoHeight),u.getContext(`2d`).drawImage(e,0,0),!dt()))return;let{heading:d,tilt:_}=Tt(),b=r.clientWidth,x=r.clientHeight,{hfov:S,vfov:C}=Dt(de.current.fovDeg,e.videoWidth,e.videoHeight),w=Math.max(b/e.videoWidth,x/e.videoHeight),ee=e.videoWidth*w/S,te=b/2,ne=x/2;if(d<0){g.current.textContent=`--`,o(f.current,!1),o(p.current,!1),a(A(`capture.hint.compass`));return}g.current.textContent=`${Math.round(d)%360}°`,v.current.textContent=`${Ve(_,1)}°`,y.current.textContent=`${He(_-C/2)}…${Ve(_+C/2,0)}°`;let T=ne+_*ee,re=m.current;re.setAttribute(`y1`,T),re.setAttribute(`y2`,T),re.setAttribute(`x2`,b),h.current.setAttribute(`x`,b-8),h.current.setAttribute(`y`,T-6),o(re,T>0&&T20&&T=0;e--)if(!ie.captures[e].high){oe=ie.captures[e].cell;break}let se=Cn(ae,oe,d,fe.current),ce=se?se.cell:-1;ce!==pe.current&&(pe.current=ce,ge());let le=performance.now();for(t.push({t:le,heading:d,tilt:_});t.length&&le-t[0].t>350;)t.shift();let E=t[0],D=(le-E.t)/1e3,me=D>.1?Math.max(Zt(d,E.heading),Math.abs(_-E.tilt))/D:0;if(!se){o(f.current,!1),o(p.current,!1),v.current.className=`v`,a(A(`capture.hint.done`));return}let he=Qt(se.az-d),_e=se.tilt-_,ve=Math.min(b-16,Math.max(16,te+he*ee)),ye=Math.min(x-16,Math.max(16,ne-_e*ee)),be=f.current;be.setAttribute(`cx`,ve),be.setAttribute(`cy`,ye),o(be,!0);let xe=Math.hypot(ve-te,ye-ne),Se=p.current;xe>42?(Se.setAttribute(`x1`,te+(ve-te)/xe*31),Se.setAttribute(`y1`,ne+(ye-ne)/xe*31),Se.setAttribute(`x2`,ve-(ve-te)/xe*12),Se.setAttribute(`y2`,ye-(ye-ne)/xe*12),o(Se,!0)):o(Se,!1);let Ce=Math.abs(he)0?`capture.hint.tiltUp`:`capture.hint.tiltDown`):se.high?A(`capture.hint.higher`):A(Ee?he>0?`capture.hint.turnRight`:`capture.hint.turnLeft`:`capture.hint.manual`));let De=Ce&&we&&Te;De?i||=le:i=0,De&&Ee&&le-i>=vn&&le-O.current>yn&&(i=0,k.current())};return n=requestAnimationFrame(l),()=>cancelAnimationFrame(n)},[S.state,b,ge]);let Ce=(b?nn(b):e.cells||[]).filter(Boolean).length,we=!!(b&&b.captures.length),Te=S.state===`live`&&!!b;return(0,d.jsxs)(`div`,{className:`capture`,children:[(0,d.jsxs)(`div`,{className:`cap-view`,ref:s,children:[(0,d.jsx)(`canvas`,{ref:c,className:`cap-preview`}),(0,d.jsxs)(`svg`,{className:`cap-overlay`,"aria-hidden":`true`,children:[(0,d.jsx)(`line`,{ref:m,x1:`0`,y1:`-10`,x2:`0`,y2:`-10`,stroke:`#FFFFFF`,strokeOpacity:`0.3`,strokeDasharray:`2 6`}),(0,d.jsx)(`text`,{ref:h,textAnchor:`end`,fontFamily:`IBM Plex Mono, ui-monospace, monospace`,fontSize:`11`,fill:`#FFFFFF`,fillOpacity:`0.75`,children:`0°`}),(0,d.jsx)(`circle`,{cx:`50%`,cy:`50%`,r:`30`,fill:`none`,stroke:`#FFFFFF`,strokeWidth:`2.5`}),(0,d.jsx)(`line`,{ref:p,stroke:`#FFFFFF`,strokeOpacity:`0.7`,strokeWidth:`1.5`,strokeDasharray:`3 4`,style:{display:`none`}}),(0,d.jsx)(`circle`,{ref:f,r:`11`,fill:`#F5B544`,stroke:`#07090D`,strokeWidth:`2`,style:{display:`none`}})]}),(0,d.jsxs)(`div`,{className:`cap-top`,children:[(0,d.jsx)(`button`,{className:`icon-btn`,"aria-label":A(`capture.close`),onClick:()=>xe(i),disabled:E,children:(0,d.jsx)(w,{})}),(0,d.jsxs)(`div`,{className:`cap-title`,children:[(0,d.jsx)(`span`,{className:`n`,children:e.name}),(0,d.jsx)(`span`,{className:`f`,children:Ce>=24?A(`capture.allFrames`,{count:24}):A(`capture.frameOf`,{n:Ce+1,total:24})})]}),(0,d.jsx)(`button`,{className:`icon-btn`,"aria-label":A(`capture.undo`),onClick:be,disabled:!we,children:(0,d.jsx)(ee,{})})]}),(0,d.jsxs)(`div`,{className:`cap-strip`,children:[(0,d.jsx)(`canvas`,{ref:u,role:`img`,"aria-label":A(`capture.progress`)}),(0,d.jsx)(Re,{})]}),Te&&(0,d.jsx)(`div`,{className:`cap-hint`,children:(0,d.jsx)(`span`,{children:te})}),ie&&Te&&(0,d.jsxs)(`div`,{className:`cap-warn`,children:[(0,d.jsx)(`span`,{children:A(`capture.topTouch`,{az:ie.az})}),(0,d.jsx)(`button`,{onClick:()=>{se({az:ie.az}),ae(null)},children:A(`capture.addHigher`)})]}),!Te&&(0,d.jsx)(`div`,{className:`cap-start`,children:S.state===`error`?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`span`,{style:{fontSize:15},children:S.error}),(0,d.jsxs)(`button`,{className:`btn btn-primary`,style:{padding:`0 24px`},onClick:()=>{C({state:`starting`,error:``}),he()},children:[(0,d.jsx)(re,{}),` `,A(`common.startCamera`)]})]}):(0,d.jsx)(`span`,{className:`muted`,children:A(`common.startingCamera`)})})]}),(0,d.jsxs)(`div`,{className:`cap-panel`,children:[(0,d.jsxs)(`div`,{className:`readouts`,children:[(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`span`,{className:`k`,children:A(`capture.heading`)}),(0,d.jsx)(`span`,{className:`v`,ref:g,children:`--`})]}),(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`span`,{className:`k`,children:A(`capture.tilt`)}),(0,d.jsx)(`span`,{className:`v`,ref:v,children:`--`})]}),(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`span`,{className:`k`,children:A(`capture.covers`)}),(0,d.jsx)(`span`,{className:`v small`,ref:y,children:`--`})]})]}),(0,d.jsxs)(`div`,{className:`controls`,children:[(0,d.jsx)(`div`,{style:{display:`flex`},children:(0,d.jsx)(`button`,{className:t.autoCapture?`auto-btn on`:`auto-btn`,"aria-pressed":t.autoCapture,onClick:()=>n({autoCapture:!t.autoCapture}),children:t.autoCapture?A(`capture.autoOn`):A(`capture.autoOff`)})}),(0,d.jsx)(`button`,{className:ce?`shutter flash`:`shutter`,"aria-label":A(`capture.shutter`),onClick:()=>k.current(),disabled:!Te,children:(0,d.jsx)(`span`,{})}),(0,d.jsxs)(`button`,{className:`finish-btn`,onClick:()=>xe(a),disabled:E||!we&&!e.hasStrip,children:[A(`capture.finish`),` `,(0,d.jsx)(_,{size:16,className:`flip-rtl`})]})]})]})]})}var N=90,Tn=54,En=2.5,Dn=45,On=-20,kn=1,An=2;function jn(e,t){let n=e.getContext(`2d`,{willReadFrequently:!0}).getImageData(0,0,M,Gt),r=new ImageData(M,Gt),i=n.data,a=r.data;for(let e=0;e>4&1;for(let r=0;r>4&1^n;a[s]=e?39:26,a[s+1]=e?48:33,a[s+2]=e?66:48}else a[s]=10,a[s+1]=13,a[s+2]=19;a[s+3]=255}}let o=document.createElement(`canvas`);return o.width=M,o.height=Gt,o.getContext(`2d`).putImageData(r,0,0),o}var Mn=Gt/120;function Nn(e,t,n,r,i,a,o,s){let c=(i%360+360)%360/360*M,l=a/360*M,u=(90-o)*Mn,d=s*Mn,f=Math.min(l,M-c),p=n/l;e.drawImage(t,c,u,f,d,0,0,f*p,r),f{let t=0,n=-1/0;for(let r=0;r<360;r++)e[r]>n&&(n=e[r],t=r);let r=Math.min(90,Math.max(40,Math.ceil(je(e)+10)));return{az0:t-N/2,top:r}}),p=(0,l.useCallback)(()=>{let r=i.current;if(!r||!t)return;let a=window.devicePixelRatio||1,s=Math.round(r.clientWidth*a),l=Math.round(r.clientHeight*a);(r.width!==s||r.height!==l)&&(r.width=s,r.height=l);let d=r.getContext(`2d`);d.imageSmoothingEnabled=!0,Nn(d,t,s,l,u.az0,N,u.top,Tn),d.strokeStyle=`#F5B544`,d.lineWidth=2*a,d.lineJoin=`round`,d.beginPath();for(let t=0;t<=s;t+=2){let n=ke(e,u.az0+t/s*N),r=(u.top-n)/Tn*l;t===0?d.moveTo(t,r):d.lineTo(t,r)}d.stroke();let f=o.current;if(f){d.fillStyle=f.mode===`sky`?`rgba(108,195,230,0.35)`:`rgba(58,68,54,0.75)`;let e=f.radiusDeg/N*s;for(let[t,n]of f.points){let r=((t-u.az0)%360+360)%360/N*s,i=(u.top-n)/Tn*l;d.beginPath(),d.ellipse(r,i,e,f.radiusDeg/Tn*l,0,0,Math.PI*2),d.fill()}}let p=c.current;p&&n!==`auto`&&(d.strokeStyle=`#FFFFFF`,d.lineWidth=1.5*a,d.setLineDash([3*a,3*a]),d.beginPath(),d.ellipse(p.x*a,p.y*a,En/N*s,En/Tn*l,0,0,Math.PI*2),d.stroke(),d.setLineDash([]))},[t,e,u,n]),m=(0,l.useCallback)(()=>{let n=a.current;if(!n||!t)return;let r=window.devicePixelRatio||1,i=Math.round(n.clientWidth*r),o=Math.round(40*r);(n.width!==i||n.height!==o)&&(n.width=i,n.height=o);let s=n.getContext(`2d`);s.fillStyle=`#1A2130`,s.fillRect(0,0,i,o),Nn(s,t,i,o,0,360,Dn,Dn-On),s.strokeStyle=`#F5B544`,s.lineWidth=1.2*r,s.beginPath();for(let t=0;t<=360;t++){let n=t/360*i,r=(Dn-e[t%360])/(Dn-On)*o;t===0?s.moveTo(n,r):s.lineTo(n,r)}s.stroke(),s.strokeStyle=`#E8ECF2`,s.lineWidth=2*r;let c=(u.az0%360+360)%360,l=N/360*i;for(let e of[0,-i]){let t=c/360*i+e;t+l>0&&t{p()},[p]),(0,l.useEffect)(()=>{m()},[m]),(0,l.useEffect)(()=>{let e=()=>{p(),m()};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[p,m]);let h=e=>{let t=i.current.getBoundingClientRect(),n=(e.clientX-t.left)/t.width,r=(e.clientY-t.top)/t.height;return{az:((u.az0+n*N)%360+360)%360,alt:u.top-r*Tn,x:e.clientX-t.left,y:e.clientY-t.top}},g=e=>{e.currentTarget.setPointerCapture(e.pointerId);let t=h(e);c.current=t,n===`auto`?s.current={x:e.clientX,y:e.clientY,az0:u.az0,top:u.top}:(o.current={mode:n,radiusDeg:En,points:[[t.az,t.alt]]},p())},_=e=>{let t=h(e);c.current=t;let n=s.current;if(n){let t=i.current.getBoundingClientRect(),r=(e.clientX-n.x)/t.width*N,a=(e.clientY-n.y)/t.height*Tn;f({az0:n.az0-r,top:Math.min(90,Math.max(-30+Tn,n.top+a))});return}let r=o.current;if(r){let[e,n]=r.points[r.points.length-1],i=Math.abs(t.az-e);i>180&&(i=360-i),Math.hypot(i,t.alt-n)>=En/2&&r.points.push([t.az,t.alt])}p()},v=()=>{s.current=null;let e=o.current;o.current=null,e?r(e):p()},y=()=>{c.current=null,p()},b=e=>{if(e.type===`pointermove`&&!e.buttons)return;let t=a.current.getBoundingClientRect(),n=(e.clientX-t.left)/t.width*360;f(e=>({...e,az0:n-N/2}))},x=Pn(u.az0),S=Pn(u.az0+N/2),C=Pn(u.az0+N);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`pano-zoom`,children:[(0,d.jsx)(`canvas`,{ref:i,role:`img`,"aria-label":A(`review.zoomLabel`),onPointerDown:g,onPointerMove:_,onPointerUp:v,onPointerCancel:v,onPointerLeave:y,style:{cursor:n===`auto`?`grab`:`none`}}),(0,d.jsxs)(`div`,{style:{position:`absolute`,left:6,right:6,bottom:4,display:`flex`,justifyContent:`space-between`,fontFamily:`var(--font-num)`,fontSize:10,color:`var(--text2)`,pointerEvents:`none`,textShadow:`0 0 3px #000`},children:[(0,d.jsx)(`span`,{children:x}),(0,d.jsx)(`span`,{children:S}),(0,d.jsx)(`span`,{children:C})]})]}),(0,d.jsxs)(`div`,{style:{marginTop:8,display:`flex`,flexDirection:`column`,gap:8},children:[(0,d.jsx)(`div`,{className:`pano-overview`,onPointerDown:b,onPointerMove:b,children:(0,d.jsx)(`canvas`,{ref:a,role:`img`,"aria-label":A(`review.overviewLabel`)})}),(0,d.jsxs)(`span`,{style:{display:`flex`,alignItems:`center`,gap:8,fontSize:13,color:`var(--muted)`},children:[(0,d.jsxs)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,"aria-hidden":`true`,children:[(0,d.jsx)(`rect`,{width:`14`,height:`14`,fill:`#1A2130`}),(0,d.jsx)(`rect`,{width:`7`,height:`7`,fill:`#3A4558`}),(0,d.jsx)(`rect`,{x:`7`,y:`7`,width:`7`,height:`7`,fill:`#3A4558`})]}),A(`review.transparentSky`),(0,d.jsx)(`span`,{style:{flex:1}}),(0,d.jsx)(`span`,{children:A(n===`auto`?`review.dragHint`:`review.paintHint`)})]})]})]})}function In({site:e,onSiteChange:t,onBack:n,onExport:r,onDelete:i}){let a=e.source===`import`,[o,s]=(0,l.useState)(`profile`),[c,u]=(0,l.useState)(`auto`),[f,p]=(0,l.useState)(()=>({loading:!a&&e.hasStrip,error:``,profile:e.profile,coverage:e.coverage,comp:null})),[m,h]=(0,l.useState)(!1),g=(0,l.useRef)(null),y=(0,l.useRef)(e);(0,l.useEffect)(()=>{y.current=e});let b=(0,l.useCallback)((e,{save:n=!0}={})=>{let r=g.current,i=fn(r);i.set_edits(JSON.stringify(pn(e)));let a=i.profile(),o=a?Array.from(a,e=>Math.round(e*100)/100):null,s=Array.from(i.coverage());p({loading:!1,error:``,profile:o,coverage:s,comp:jn(r.canvas,i.mask())}),n&&t({profile:o,coverage:s,edits:e})},[t]);(0,l.useEffect)(()=>{if(a||!e.hasStrip)return;let t=!0;return en(e).then(e=>new Promise(t=>setTimeout(()=>t(e),30))).then(e=>{t&&(g.current=e,b(y.current.edits||[],{save:!0}))}).catch(e=>t&&p(t=>({...t,loading:!1,error:ft(e)}))),()=>{t=!1}},[e.id]);let x=e.edits||[],S=e=>b([...x,e]),C=()=>b(x.slice(0,-1)),w=()=>b([]),ee=e.northOffsetDeg||0,te=e.marginDeg??2,ne=(0,l.useMemo)(()=>f.profile?Ae(f.profile,ee):null,[f.profile,ee]),re=f.coverage?Ne(f.coverage):a?360:0,ie=a?A(`review.imported`):re>=360?A(`review.stitchedFull`,{count:e.frames}):A(`review.stitchedPartial`,{count:e.frames,deg:re}),ae=e=>t({northOffsetDeg:Math.round(e*2)/2});return(0,d.jsxs)(`div`,{className:`screen`,children:[(0,d.jsxs)(`div`,{className:`screen-body`,children:[(0,d.jsxs)(`div`,{className:`title-row`,children:[(0,d.jsx)(`button`,{className:`icon-btn back`,"aria-label":A(`common.back`),onClick:n,children:(0,d.jsx)(v,{className:`flip-rtl`})}),(0,d.jsxs)(`div`,{className:`title-stack`,children:[(0,d.jsx)(`h1`,{children:A(`review.title`)}),(0,d.jsx)(`span`,{className:`sub`,children:ie})]}),m?(0,d.jsx)(`button`,{className:`icon-btn confirm`,onClick:i,children:A(`review.deleteConfirm`)}):(0,d.jsx)(`button`,{className:`icon-btn danger`,"aria-label":A(`review.delete`),onClick:()=>h(!0),children:(0,d.jsx)(T,{})})]}),(0,d.jsxs)(`div`,{className:`segmented`,style:{marginTop:12,gridTemplateColumns:`repeat(2, minmax(0, 1fr))`},children:[(0,d.jsx)(`button`,{className:o===`profile`?`on`:``,onClick:()=>s(`profile`),children:A(`review.tabNina`)}),(0,d.jsx)(`button`,{className:o===`pano`?`on`:``,onClick:()=>s(`pano`),disabled:a,children:A(`review.tabPano`)})]}),f.error&&(0,d.jsx)(`div`,{className:`notice error`,style:{marginTop:12},children:f.error}),f.loading?(0,d.jsx)(`div`,{className:`busy`,children:A(`review.detecting`)}):ne?o===`profile`?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{style:{marginTop:12,display:`flex`,flexDirection:`column`,gap:8},children:[(0,d.jsx)(Le,{profile:ne,marginDeg:te}),(0,d.jsxs)(`div`,{className:`legend`,children:[(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{style:{width:16,height:0,borderTop:`2px solid var(--accent)`}}),A(`review.legendEdge`)]}),(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`span`,{style:{width:16,height:0,borderTop:`2px dashed var(--info)`}}),A(`review.legendHrz`)]})]})]}),(0,d.jsxs)(`div`,{style:{marginTop:16,display:`flex`,flexDirection:`column`,gap:8},children:[(0,d.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`baseline`},children:[(0,d.jsx)(`label`,{htmlFor:`margin`,style:{fontSize:15,fontWeight:600},children:A(`review.margin`)}),(0,d.jsxs)(`span`,{className:`mono`,style:{fontSize:15,color:`var(--info)`},children:[Ve(te),`°`]})]}),(0,d.jsx)(`input`,{id:`margin`,className:`slider`,type:`range`,min:`0`,max:`5`,step:`0.5`,value:te,onChange:e=>t({marginDeg:Number(e.target.value)})}),(0,d.jsx)(`span`,{style:{fontSize:13,color:`var(--muted)`},children:A(`review.marginHint`)})]})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Fn,{profile:f.profile,comp:f.comp,tool:c,onStroke:S}),(0,d.jsxs)(`div`,{className:`segmented`,style:{marginTop:14,gridTemplateColumns:`repeat(3, minmax(0, 1fr))`},children:[(0,d.jsx)(`button`,{className:c===`auto`?`on`:``,onClick:()=>u(`auto`),children:A(`review.toolAuto`)}),(0,d.jsx)(`button`,{className:c===`sky`?`on`:``,onClick:()=>u(`sky`),children:A(`review.toolSky`)}),(0,d.jsx)(`button`,{className:c===`ground`?`on`:``,onClick:()=>u(`ground`),children:A(`review.toolGround`)})]}),x.length>0&&(0,d.jsxs)(`div`,{style:{marginTop:10,display:`flex`,gap:20,fontSize:14},children:[(0,d.jsx)(`span`,{className:`muted`,children:A(`review.edits`,{count:x.length})}),(0,d.jsx)(`button`,{className:`link-btn`,onClick:C,children:A(`review.undoEdit`)}),(0,d.jsx)(`button`,{className:`link-btn`,onClick:w,children:A(`review.clearEdits`)})]})]}):(0,d.jsx)(`div`,{className:`busy`,children:A(`review.noHorizon`)})]}),(0,d.jsxs)(`div`,{className:`screen-actions`,children:[(0,d.jsxs)(`div`,{className:`north-row`,children:[(0,d.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:2,flex:1},children:[(0,d.jsx)(`span`,{style:{fontSize:15,fontWeight:600},children:A(`review.north`)}),(0,d.jsx)(`span`,{style:{fontSize:13,color:`var(--muted)`},children:A(`review.northHint`)})]}),(0,d.jsxs)(`span`,{className:`val`,children:[Ve(ee),`°`]}),(0,d.jsx)(`button`,{className:`step-btn`,"aria-label":A(`review.rotateLeft`),onClick:()=>ae(ee-.5),children:`−`}),(0,d.jsx)(`button`,{className:`step-btn`,"aria-label":A(`review.rotateRight`),onClick:()=>ae(ee+.5),children:`+`})]}),(0,d.jsxs)(`button`,{className:`btn btn-primary`,onClick:r,disabled:!f.profile||f.loading,children:[A(`review.export`),` `,(0,d.jsx)(_,{className:`flip-rtl`})]})]})]})}var Ln=[{id:`nina`,ext:`.hrz`},{id:`pano`,ext:`.zip`},{id:`poly`,ext:`.zip`}];function Rn({site:e,settings:t,onSiteChange:n,onBack:r}){let i=e.source!==`import`&&e.hasStrip,a=e.coverage?Ne(e.coverage)>=360:!1,[o,s]=(0,l.useState)({nina:!0,pano:i&&a,poly:!1}),[c,u]=(0,l.useState)(`hrz`),[f,p]=(0,l.useState)(null),[m,h]=(0,l.useState)(``),[g,_]=(0,l.useState)({text:``,error:!1});(0,l.useEffect)(()=>{lt().then(p).catch(e=>_({text:ft(e),error:!0}))},[]);let y=e.marginDeg??2,b=e.northOffsetDeg||0,x=(0,l.useMemo)(()=>Float64Array.from(e.profile||[]),[e.profile]),S=(0,l.useMemo)(()=>{let n={name:e.name,author:t.author.trim()||`Unknown`,appName:xe};return e.location&&(n.location={latDeg:e.location.latDeg,lonDeg:e.location.lonDeg},e.location.elevM!=null&&(n.location.elevM=e.location.elevM)),JSON.stringify(n)},[e.name,e.location,t.author]),C=(0,l.useMemo)(()=>{if(!f||x.length!==360)return null;try{let e=f.export_hrz(x,y,b),t=JSON.parse(f.stellarium_fitted_options(x,-30));return t.northOffsetDeg=b,{hrz:e,ini:o.pano||!o.poly?f.landscape_ini(S,`spherical`,t.topDeg,t.bottomDeg):f.landscape_ini(S,`polygonal`,0,0),opts:t}}catch(e){return{error:ft(e)}}},[f,x,y,b,S,o.pano,o.poly]),w=Ln.filter(e=>o[e.id]).length,ee=async()=>{let t=qe(e.name),n=[];if(o.nina&&n.push({name:`${t}.hrz`,mime:`text/plain`,data:C.hrz}),o.pano){let r=fn(await en(e));r.set_edits(JSON.stringify(pn(e.edits)));let i=r.export_spherical(S,JSON.stringify(C.opts));n.push({name:`${t}-stellarium.zip`,mime:`application/zip`,data:i})}return o.poly&&n.push({name:`${t}-outline.zip`,mime:`application/zip`,data:f.export_stellarium_polygonal(x,S,b)}),n},T=async t=>{if(!(!C||C.error||!w)){_({text:``,error:!1}),h(o.pano?A(`export.rendering`):A(`export.preparing`)),await new Promise(e=>setTimeout(e,30));try{let r=await ee();h(A(t===`share`?`export.sharing`:`export.saving`));let i=t===`share`?await tt(r,e.name):await et(r);i.ok&&n({exported:{nina:e.exported&&e.exported.nina||o.nina,stellarium:e.exported&&e.exported.stellarium||o.pano||o.poly}}),_({text:i.text,error:!1})}catch(e){_({text:ft(e),error:!0})}finally{h(``)}}},re=C&&C.hrz?C.hrz.trimEnd().split(` +`):[];return(0,d.jsxs)(`div`,{className:`screen`,children:[(0,d.jsxs)(`div`,{className:`screen-body`,children:[(0,d.jsxs)(`div`,{className:`title-row`,children:[(0,d.jsx)(`button`,{className:`icon-btn back`,"aria-label":A(`export.back`),onClick:r,children:(0,d.jsx)(v,{className:`flip-rtl`})}),(0,d.jsxs)(`div`,{className:`title-stack`,children:[(0,d.jsx)(`h1`,{children:A(`export.title`)}),(0,d.jsx)(`span`,{className:`sub`,children:A(`export.summary`,{name:e.name,margin:Ve(y),north:Ve(b)})})]})]}),(0,d.jsx)(`div`,{style:{marginTop:16,display:`flex`,flexDirection:`column`,gap:8},children:Ln.map(e=>{let t=e.id===`pano`&&!i,n=!!o[e.id]&&!t;return(0,d.jsxs)(`label`,{className:`format-card${n?` on`:``}${t?` disabled`:``}`,children:[(0,d.jsx)(`input`,{type:`checkbox`,checked:n,disabled:t,onChange:()=>s(t=>({...t,[e.id]:!t[e.id]}))}),(0,d.jsxs)(`span`,{style:{display:`flex`,flexDirection:`column`,gap:3,minWidth:0},children:[(0,d.jsxs)(`span`,{style:{display:`flex`,alignItems:`center`,gap:8,flexWrap:`wrap`},children:[(0,d.jsx)(`span`,{className:`t`,children:A(`export.${e.id}Title`)}),(0,d.jsx)(`span`,{className:`ext`,children:e.ext})]}),(0,d.jsxs)(`span`,{className:`d`,children:[A(t?`export.panoUnavailable`:`export.${e.id}Sub`),e.id===`pano`&&n&&!a?` · ${A(`export.panoGaps`)}`:``]})]})]},e.id)})}),(0,d.jsxs)(`div`,{style:{marginTop:18,display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:8},children:[(0,d.jsx)(`span`,{className:`overline`,children:A(`export.preview`)}),(0,d.jsxs)(`div`,{className:`segmented small`,children:[(0,d.jsx)(`button`,{className:c===`hrz`?`on`:``,onClick:()=>u(`hrz`),children:`.hrz`}),(0,d.jsx)(`button`,{className:c===`ini`?`on`:``,onClick:()=>u(`ini`),children:`landscape.ini`})]})]}),(0,d.jsx)(`div`,{className:`code-box`,children:C?C.error?C.error:c===`ini`?C.ini.trimEnd():(0,d.jsxs)(d.Fragment,{children:[[...re.slice(0,5),`⋮`,...re.slice(-2)].join(` +`),(0,d.jsx)(`div`,{className:`foot`,dir:`auto`,children:A(`export.lines`,{count:re.length-1,margin:Ve(y,0)})})]}):A(`export.loading`)}),(0,d.jsx)(`p`,{style:{margin:`12px 0 0`,fontSize:13,lineHeight:1.4,color:`var(--muted)`},children:A(`export.help`)}),(m||g.text)&&(0,d.jsx)(`div`,{className:g.error?`notice error`:`notice`,style:{marginTop:12},children:m||g.text})]}),(0,d.jsxs)(`div`,{className:`screen-actions two`,children:[(0,d.jsxs)(`button`,{className:`btn btn-surface`,onClick:()=>T(`save`),disabled:!!m||!w||!C||!!C.error,children:[(0,d.jsx)(te,{}),` `,A(`export.save`)]}),(0,d.jsxs)(`button`,{className:`btn btn-primary`,style:{fontSize:16},onClick:()=>T(`share`),disabled:!!m||!w||!C||!!C.error,children:[(0,d.jsx)(ne,{}),` `,A(`export.share`,{count:w})]})]})]})}var zn=j(9,16);function Bn({settings:e,onSettingsChange:t,onBack:n,onCalibrate:r}){let i=e.fovDeg,a=e=>{let n=i??zn;t({fovDeg:Math.round(Math.min(120,Math.max(20,n+e))*10)/10})};return(0,d.jsxs)(`div`,{className:`screen with-backdrop`,children:[(0,d.jsx)(De,{}),(0,d.jsxs)(`div`,{className:`screen-body`,children:[(0,d.jsxs)(`div`,{className:`title-row`,children:[n&&(0,d.jsx)(`button`,{className:`icon-btn back`,"aria-label":A(`common.back`),onClick:n,children:(0,d.jsx)(v,{className:`flip-rtl`})}),(0,d.jsx)(`h1`,{children:A(`settings.title`)})]}),(0,d.jsxs)(`div`,{style:{marginTop:20,display:`flex`,flexDirection:`column`,gap:8},children:[(0,d.jsx)(`span`,{className:`overline`,children:A(`settings.camera`)}),(0,d.jsxs)(`div`,{className:`row-card`,children:[(0,d.jsxs)(`div`,{className:`grow`,children:[(0,d.jsx)(`span`,{className:`strong`,children:A(`settings.fov`)}),(0,d.jsx)(`span`,{className:`small`,children:i==null?A(`settings.fovAssumed`,{fov:He(zn,0)}):A(`settings.fovValue`,{fov:He(i,1)})})]}),(0,d.jsx)(`button`,{className:`step-btn`,"aria-label":A(`settings.narrower`),onClick:()=>a(-1),children:`−`}),(0,d.jsx)(`button`,{className:`step-btn`,"aria-label":A(`settings.wider`),onClick:()=>a(1),children:`+`})]}),(0,d.jsxs)(`div`,{style:{display:`flex`,gap:10},children:[(0,d.jsx)(`button`,{className:`btn btn-secondary`,style:{flex:1},onClick:r,children:A(`settings.calibrate`)}),i!=null&&(0,d.jsx)(`button`,{className:`btn btn-secondary`,style:{padding:`0 16px`},onClick:()=>t({fovDeg:null}),children:A(`settings.reset`)})]}),(0,d.jsx)(`span`,{style:{fontSize:13,color:`var(--muted)`},children:A(`settings.fovHint`)})]}),(0,d.jsxs)(`div`,{style:{marginTop:28,display:`flex`,flexDirection:`column`,gap:8},children:[(0,d.jsx)(`label`,{className:`overline`,htmlFor:`language`,children:A(`settings.language`)}),(0,d.jsxs)(`select`,{id:`language`,className:`text-input select`,value:e.language||``,onChange:e=>t({language:e.target.value}),children:[(0,d.jsx)(`option`,{value:``,children:A(`settings.systemLanguage`,{name:ve(me())})}),de.map(e=>(0,d.jsx)(`option`,{value:e.code,children:e.name},e.code))]})]}),(0,d.jsxs)(`div`,{style:{marginTop:28,display:`flex`,flexDirection:`column`,gap:8},children:[(0,d.jsx)(`label`,{className:`overline`,htmlFor:`author`,children:A(`settings.author`)}),(0,d.jsx)(`input`,{id:`author`,className:`text-input`,value:e.author,placeholder:A(`settings.authorPlaceholder`),onChange:e=>t({author:e.target.value}),autoComplete:`name`,dir:`auto`})]}),(0,d.jsx)(`div`,{style:{marginTop:28,fontSize:13,color:`var(--faint)`},children:A(`settings.about`,{app:xe})})]})]})}var Vn=400,Hn=2,Un=30,Wn=12,Gn=10,Kn=4;function qn(e,t=640){let n=Math.min(1,t/e.videoWidth),r=Math.round(e.videoWidth*n),i=Math.round(e.videoHeight*n),a=document.createElement(`canvas`);a.width=r,a.height=i;let o=a.getContext(`2d`,{willReadFrequently:!0});o.drawImage(e,0,0,r,i);let s=o.getImageData(0,0,r,i).data;return{data:new Uint8Array(s.buffer,s.byteOffset,s.byteLength),w:r,h:i}}function Jn({onSettingsChange:e,onBack:t}){let n=(0,l.useRef)(null),r=(0,l.useRef)(null),i=(0,l.useRef)([]),a=(0,l.useRef)(null),[o,s]=(0,l.useState)({state:`starting`,error:``}),[c,u]=(0,l.useState)(`ready`),[f,p]=(0,l.useState)(null),[m,h]=(0,l.useState)(0),[g,_]=(0,l.useState)(()=>A(`calib.intro`)),y=(0,l.useCallback)(async()=>{try{wt()||await Ct(),await yt(),s({state:`live`,error:``})}catch(e){s({state:`error`,error:ft(e)})}},[]);(0,l.useEffect)(()=>(y(),()=>{a.current&&clearInterval(a.current),bt()}),[y]),(0,l.useEffect)(()=>{if(o.state!==`live`)return;let e=_t(),t=0,r=()=>{t=requestAnimationFrame(r);let i=n.current;!i||!e.videoWidth||(i.width!==e.videoWidth&&(i.width=e.videoWidth,i.height=e.videoHeight),i.getContext(`2d`).drawImage(e,0,0))};return t=requestAnimationFrame(r),()=>cancelAnimationFrame(t)},[o.state]);let b=(0,l.useCallback)(()=>{let t=_t(),n=r.current;if(!n||!t.videoWidth)return;let{heading:o}=Tt();if(o<0)return;let s=Zt(n.heading,o);if(sUn){r.current={heading:o,...qn(t)},_(A(`calib.newRef`));return}let c=qn(t),l=ut().calculate_fov(n.data,n.w,n.h,c.data,c.w,c.h,o-n.heading);if(l<=0){_(A(`calib.noMatch`));return}let d=i.current;d.push(l),d.length>Wn&&d.shift();let f=[...d].sort((e,t)=>e-t),m=f[Math.floor(f.length/2)];if(p(m),h(Math.min(1,d.length/Gn)),d.length>=Gn){let t=f[Math.floor(f.length*.25)];if(f[Math.floor(f.length*.75)]-t<=Kn){clearInterval(a.current),a.current=null;let t=Math.round(m*10)/10;e({fovDeg:t}),u(`done`),_(A(`calib.done`,{fov:He(t,1)}));return}_(A(`calib.almost`));return}_(A(`calib.measuring`))},[e]),x=()=>{let e=_t(),{heading:t}=Tt();if(!e.videoWidth||t<0){_(A(`calib.waiting`));return}r.current={heading:t,...qn(e)},i.current=[],p(null),h(0),u(`measuring`),_(A(`calib.turnAuto`)),a.current&&clearInterval(a.current),a.current=setInterval(b,Vn)};return(0,d.jsxs)(`div`,{className:`capture`,children:[(0,d.jsxs)(`div`,{className:`cap-view`,children:[(0,d.jsx)(`canvas`,{ref:n,className:`cap-preview`}),(0,d.jsx)(`div`,{className:`cap-top`,children:(0,d.jsx)(`button`,{className:`icon-btn`,"aria-label":A(`common.back`),onClick:t,children:(0,d.jsx)(v,{className:`flip-rtl`})})}),o.state!==`live`&&(0,d.jsx)(`div`,{className:`cap-start`,children:o.state===`error`?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`span`,{children:o.error}),(0,d.jsxs)(`button`,{className:`btn btn-primary`,style:{padding:`0 24px`},onClick:()=>{s({state:`starting`,error:``}),y()},children:[(0,d.jsx)(re,{}),` `,A(`common.startCamera`)]})]}):(0,d.jsx)(`span`,{className:`muted`,children:A(`common.startingCamera`)})})]}),(0,d.jsxs)(`div`,{className:`calib-panel`,children:[(0,d.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`baseline`},children:[(0,d.jsx)(`span`,{style:{fontSize:17,fontWeight:700},children:A(`calib.title`)}),(0,d.jsx)(`span`,{className:`mono`,style:{fontSize:20,color:`var(--info)`},children:f==null?`—`:`≈ ${He(f,1)}°`})]}),(0,d.jsx)(`div`,{className:`calib-bar`,children:(0,d.jsx)(`div`,{style:{width:`${Math.round(m*100)}%`}})}),(0,d.jsx)(`span`,{style:{fontSize:14,color:`var(--text2)`,minHeight:40},children:g}),c===`done`?(0,d.jsx)(`button`,{className:`btn btn-primary`,onClick:t,children:A(`calib.doneButton`)}):(0,d.jsx)(`button`,{className:`btn btn-primary`,onClick:x,disabled:o.state!==`live`,children:A(c===`measuring`?`calib.restart`:`calib.start`)})]})]})}var Yn=typeof location<`u`&&new URLSearchParams(location.search).has(`skipWelcome`);function Xn(e){if(e.source===`import`)return{...e,status:`complete`};let t=(e.cells||[]).filter(Boolean).length>=24;return{...e,status:t?`complete`:`in-progress`}}function Zn(){let[e,t]=(0,l.useState)(Ft),[n,r]=(0,l.useState)(()=>{let e=Lt();return ge(he(e.language)),e}),[i,a]=(0,l.useState)({name:`sites`}),[o,s]=(0,l.useState)(``);(0,l.useEffect)(()=>{lt().catch(e=>s(A(`app.engineError`,{error:ft(e)})))},[]),(0,l.useEffect)(()=>{let e=e=>s(ft(e.error||e.message)),t=e=>s(ft(e.reason));return window.addEventListener(`error`,e),window.addEventListener(`unhandledrejection`,t),()=>{window.removeEventListener(`error`,e),window.removeEventListener(`unhandledrejection`,t)}},[]);let c=(0,l.useCallback)(e=>{t(t=>{let n=e(t);return It(n),n})},[]),u=i.siteId,f=(0,l.useCallback)(e=>{c(t=>t.map(t=>t.id===u?Xn({...t,...e,updatedAt:new Date().toISOString()}):t))},[c,u]),p=(0,l.useCallback)(e=>{`language`in e&&ge(he(e.language)),r(t=>{let n={...t,...e};return Rt(n),n})},[]),m=(e,t)=>a({name:e,siteId:t}),h=e.find(e=>e.id===u),g=(0,l.useRef)(null),_=(0,l.useCallback)(e=>{g.current=e},[]);(0,l.useEffect)(()=>(window.__sfzBack=()=>{if(g.current)return g.current();switch(i.name){case`setup`:case`settings`:case`review`:return a({name:`sites`}),!0;case`export`:return a({name:`review`,siteId:i.siteId}),!0;case`calibrate`:return a({name:`settings`}),!0;default:return!1}},()=>{delete window.__sfzBack}),[i]);let v=n.welcomed||Yn,y=i.name===`sites`&&!v?`welcome`:i.name;(0,l.useEffect)(()=>{Je&&Ye(`route`,{name:y,tab:y===`sites`||y===`settings`?y:null,labels:{sites:A(`tab.sites`),new:A(`tab.new`),settings:A(`tab.settings`)},rtl:_e()})},[y,n.language]),(0,l.useEffect)(()=>(window.__sfzNav=e=>{a(e===`new`?{name:`setup`}:e===`settings`?{name:`settings`}:{name:`sites`})},()=>{delete window.__sfzNav}),[]);let b;switch(i.name){case`setup`:b=(0,d.jsx)(At,{suggestedName:A(`sites.defaultName`,{n:e.length+1}),onBack:()=>m(`sites`),onStart:({name:e,location:t})=>{let n={...Pt(e),location:t};c(e=>[...e,n]),m(`capture`,n.id)}});break;case`capture`:b=h&&(0,d.jsx)(wn,{site:h,settings:n,onSettingsChange:p,onSiteChange:f,onClose:()=>m(`sites`),onFinish:()=>m(`review`,h.id),onRegisterBack:_},h.id);break;case`review`:b=h&&(0,d.jsx)(In,{site:h,onSiteChange:f,onBack:()=>m(`sites`),onExport:()=>m(`export`,h.id),onDelete:()=>{tn(h.id),Wt(h.id).catch(()=>{}),c(e=>e.filter(e=>e.id!==h.id)),m(`sites`)}},h.id);break;case`export`:b=h&&(0,d.jsx)(Rn,{site:h,settings:n,onSiteChange:f,onBack:()=>m(`review`,h.id)});break;case`settings`:b=(0,d.jsx)(Bn,{settings:n,onSettingsChange:p,onBack:Je?null:()=>m(`sites`),onCalibrate:()=>m(`calibrate`)});break;case`calibrate`:b=(0,d.jsx)(Jn,{onSettingsChange:p,onBack:()=>m(`settings`)});break;default:b=null}return!b&&!v&&(b=(0,d.jsx)(Oe,{onStart:()=>p({welcomed:!0})})),b||=(0,d.jsx)(mt,{sites:e,onNew:()=>m(`setup`),onSettings:()=>m(`settings`),onOpen:e=>m(e.status===`complete`?`review`:`capture`,e.id),onImport:(e,t)=>{let n=Xn({...Pt(e||A(`sites.importedName`)),source:`import`,marginDeg:0,profile:t,coverage:Array(360).fill(1)});c(e=>[...e,n]),m(`review`,n.id)}}),(0,d.jsxs)(d.Fragment,{children:[b,o&&(0,d.jsxs)(`div`,{className:`fatal`,onClick:()=>s(``),children:[`⚠ `,o]})]})}(0,c.createRoot)(document.getElementById(`root`)).render((0,d.jsx)(l.StrictMode,{children:(0,d.jsx)(Zn,{})})); \ No newline at end of file diff --git a/assets/web/assets/rust_panorama_wasm-BSG2BSMu.js b/assets/web/assets/rust_panorama_wasm-BSG2BSMu.js new file mode 100644 index 0000000..b4dc97f --- /dev/null +++ b/assets/web/assets/rust_panorama_wasm-BSG2BSMu.js @@ -0,0 +1 @@ +var e=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){let e=this.__destroy_into_raw();Q.__wbg_horizonsurvey_free(e,0)}coverage(){let e=Q.horizonsurvey_coverage(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return Q.__wbindgen_free(e[0],e[1]*1,1),t}export_spherical(e,t){let n=W(e,Q.__wbindgen_malloc,Q.__wbindgen_realloc),r=Z,i=W(t,Q.__wbindgen_malloc,Q.__wbindgen_realloc),a=Z,o=Q.horizonsurvey_export_spherical(this.__wbg_ptr,n,r,i,a);if(o[3])throw G(o[2]);var s=j(o[0],o[1]).slice();return Q.__wbindgen_free(o[0],o[1]*1,1),s}mask(){let e=Q.horizonsurvey_mask(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return Q.__wbindgen_free(e[0],e[1]*1,1),t}constructor(e,t,n,r,i){let a=H(e,Q.__wbindgen_malloc),o=Z,s=Q.horizonsurvey_new(a,o,t,n,r,i);if(s[2])throw G(s[1]);return this.__wbg_ptr=s[0]>>>0,E.register(this,this.__wbg_ptr,this),this}profile(){let e=Q.horizonsurvey_profile(this.__wbg_ptr),t;return e[0]!==0&&(t=A(e[0],e[1]).slice(),Q.__wbindgen_free(e[0],e[1]*8,8)),t}set_edits(e){let t=W(e,Q.__wbindgen_malloc,Q.__wbindgen_realloc),n=Z,r=Q.horizonsurvey_set_edits(this.__wbg_ptr,t,n);if(r[1])throw G(r[0])}top_touch(){let e=Q.horizonsurvey_top_touch(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return Q.__wbindgen_free(e[0],e[1]*1,1),t}};Symbol.dispose&&(e.prototype[Symbol.dispose]=e.prototype.free);var t=class e{static __wrap(t){t>>>=0;let n=Object.create(e.prototype);return n.__wbg_ptr=t,D.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){let e=this.__destroy_into_raw();Q.__wbg_projectedpatch_free(e,0)}get h(){return Q.projectedpatch_h(this.__wbg_ptr)>>>0}take_data(){let e=Q.projectedpatch_take_data(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return Q.__wbindgen_free(e[0],e[1]*1,1),t}get w(){return Q.projectedpatch_w(this.__wbg_ptr)>>>0}get x(){return Q.projectedpatch_x(this.__wbg_ptr)}get y(){return Q.projectedpatch_y(this.__wbg_ptr)}};Symbol.dispose&&(t.prototype[Symbol.dispose]=t.prototype.free);function n(e,t,n,r,i,a,o){let s=H(e,Q.__wbindgen_malloc),c=Z,l=H(r,Q.__wbindgen_malloc),u=Z;return Q.calculate_fov(s,c,t,n,l,u,i,a,o)}function r(e,t,n,r){let i=W(e,Q.__wbindgen_malloc,Q.__wbindgen_realloc),a=Z,o=W(t,Q.__wbindgen_malloc,Q.__wbindgen_realloc),s=Z,c=Q.capture_frame(i,a,o,s,n,r);if(c[1])throw G(c[0])}function i(e,t,n){let r,i;try{let s=U(e,Q.__wbindgen_malloc),c=Z,l=Q.export_hrz(s,c,t,n);var a=l[0],o=l[1];if(l[3])throw a=0,o=0,G(l[2]);return r=a,i=o,I(a,o)}finally{Q.__wbindgen_free(r,i,1)}}function a(e,t,n){let r=U(e,Q.__wbindgen_malloc),i=Z,a=W(t,Q.__wbindgen_malloc,Q.__wbindgen_realloc),o=Z,s=Q.export_stellarium_polygonal(r,i,a,o,n);if(s[3])throw G(s[2]);var c=j(s[0],s[1]).slice();return Q.__wbindgen_free(s[0],s[1]*1,1),c}function o(e,t,n,r,i,a,o,s){let c=H(e,Q.__wbindgen_malloc),l=Z,u=U(a,Q.__wbindgen_malloc),d=Z,f=W(o,Q.__wbindgen_malloc,Q.__wbindgen_realloc),p=Z,m=W(s,Q.__wbindgen_malloc,Q.__wbindgen_realloc),h=Z,g=Q.export_stellarium_spherical(c,l,t,n,r,i,u,d,f,p,m,h);if(g[3])throw G(g[2]);var _=j(g[0],g[1]).slice();return Q.__wbindgen_free(g[0],g[1]*1,1),_}function s(e){let t=W(e,Q.__wbindgen_malloc,Q.__wbindgen_realloc),n=Z,r=Q.get_frame_data(t,n);if(r[3])throw G(r[2]);var i=j(r[0],r[1]).slice();return Q.__wbindgen_free(r[0],r[1]*1,1),i}function c(){return Q.get_heading()}function l(){let e=Q.get_orientation();var t=A(e[0],e[1]).slice();return Q.__wbindgen_free(e[0],e[1]*8,8),t}function u(){return Q.get_tilt()}function d(e){let t=W(e,Q.__wbindgen_malloc,Q.__wbindgen_realloc),n=Z;return Q.init_camera(t,n)}function f(e,t,n,r){let i,a;try{let c=W(e,Q.__wbindgen_malloc,Q.__wbindgen_realloc),l=Z,u=W(t,Q.__wbindgen_malloc,Q.__wbindgen_realloc),d=Z,f=Q.landscape_ini(c,l,u,d,n,r);var o=f[0],s=f[1];if(f[3])throw o=0,s=0,G(f[2]);return i=o,a=s,I(o,s)}finally{Q.__wbindgen_free(i,a,1)}}function p(){Q.main()}function m(e,t,n,r){let i=Q.orientation_az_el(e,t,n,r);var a=A(i[0],i[1]).slice();return Q.__wbindgen_free(i[0],i[1]*8,8),a}function h(e){let t=W(e,Q.__wbindgen_malloc,Q.__wbindgen_realloc),n=Z,r=Q.parse_hrz(t,n);if(r[3])throw G(r[2]);var i=A(r[0],r[1]).slice();return Q.__wbindgen_free(r[0],r[1]*8,8),i}function g(e,t){let n=U(e,Q.__wbindgen_malloc),r=Z,i=U(t,Q.__wbindgen_malloc),a=Z,o=Q.profile_from_points(n,r,i,a);if(o[3])throw G(o[2]);var s=A(o[0],o[1]).slice();return Q.__wbindgen_free(o[0],o[1]*8,8),s}function _(e,t){let n=U(e,Q.__wbindgen_malloc),r=Z,i=Q.profile_smoothed(n,r,t);if(i[3])throw G(i[2]);var a=A(i[0],i[1]).slice();return Q.__wbindgen_free(i[0],i[1]*8,8),a}function v(e,n,r,i,a,o,s,c,l,u,d,f){let p=H(e,Q.__wbindgen_malloc),m=Z,h=Q.project_frame(p,m,n,r,i,a,o,s,c,l,u,d,f);return h===0?void 0:t.__wrap(h)}function y(e,t){let n=W(e,Q.__wbindgen_malloc,Q.__wbindgen_realloc),r=Z,i=W(t,Q.__wbindgen_malloc,Q.__wbindgen_realloc),a=Z,o=Q.save_png(n,r,i,a);if(o[1])throw G(o[0])}function b(e,t){let n=W(e,Q.__wbindgen_malloc,Q.__wbindgen_realloc),r=Z,i=W(t,Q.__wbindgen_malloc,Q.__wbindgen_realloc),a=Z;return Q.start_orientation(n,r,i,a)}function x(e,t){let n,r;try{let o=U(e,Q.__wbindgen_malloc),s=Z,c=Q.stellarium_fitted_options(o,s,t);var i=c[0],a=c[1];if(c[3])throw i=0,a=0,G(c[2]);return n=i,r=a,I(i,a)}finally{Q.__wbindgen_free(n,r,1)}}function S(){let e={__proto__:null,__wbg___wbindgen_is_function_3c846841762788c1:function(e){return typeof e==`function`},__wbg___wbindgen_is_undefined_52709e72fb9f179c:function(e){return e===void 0},__wbg___wbindgen_number_get_34bb9d9dcfa21373:function(e,t){let n=t,r=typeof n==`number`?n:void 0;N().setFloat64(e+8,B(r)?0:r,!0),N().setInt32(e+0,!B(r),!0)},__wbg___wbindgen_string_get_395e606bd0ee4427:function(e,t){let n=t,r=typeof n==`string`?n:void 0;var i=B(r)?0:W(r,Q.__wbindgen_malloc,Q.__wbindgen_realloc),a=Z;N().setInt32(e+4,a,!0),N().setInt32(e+0,i,!0)},__wbg___wbindgen_throw_6ddd609b62940d55:function(e,t){throw Error(I(e,t))},__wbg__wbg_cb_unref_6b5b6b8576d35cb1:function(e){e._wbg_cb_unref()},__wbg_absolute_831bb8c81cc691d9:function(e){return e.absolute},__wbg_addEventListener_2d985aa8a656f6dc:function(){return z(function(e,t,n,r){e.addEventListener(I(t,n),r)},arguments)},__wbg_alpha_73d7352cd687120a:function(e,t){let n=t.alpha;N().setFloat64(e+8,B(n)?0:n,!0),N().setInt32(e+0,!B(n),!0)},__wbg_beta_743365f89116a400:function(e,t){let n=t.beta;N().setFloat64(e+8,B(n)?0:n,!0),N().setInt32(e+0,!B(n),!0)},__wbg_call_2d781c1f4d5c0ef8:function(){return z(function(e,t,n){return e.call(t,n)},arguments)},__wbg_call_e133b57c9155d22c:function(){return z(function(e,t){return e.call(t)},arguments)},__wbg_click_14a2543ed4ab7b86:function(e){e.click()},__wbg_createElement_9b0aab265c549ded:function(){return z(function(e,t,n){return e.createElement(I(t,n))},arguments)},__wbg_data_40ab3982572daa21:function(e,t){let n=t.data,r=H(n,Q.__wbindgen_malloc),i=Z;N().setInt32(e+4,i,!0),N().setInt32(e+0,r,!0)},__wbg_document_c0320cd4183c6d9b:function(e){let t=e.document;return B(t)?0:O(t)},__wbg_drawImage_9e0a423872a7bb8c:function(){return z(function(e,t,n,r,i,a){e.drawImage(t,n,r,i,a)},arguments)},__wbg_error_a6fa202b58aa1cd3:function(e,t){let n,r;try{n=e,r=t,console.error(I(e,t))}finally{Q.__wbindgen_free(n,r,1)}},__wbg_gamma_7465c9b9ea77f0bc:function(e,t){let n=t.gamma;N().setFloat64(e+8,B(n)?0:n,!0),N().setInt32(e+0,!B(n),!0)},__wbg_getContext_f04bf8f22dcb2d53:function(){return z(function(e,t,n){let r=e.getContext(I(t,n));return B(r)?0:O(r)},arguments)},__wbg_getElementById_d1f25d287b19a833:function(e,t,n){let r=e.getElementById(I(t,n));return B(r)?0:O(r)},__wbg_getImageData_88e532fe2924188e:function(){return z(function(e,t,n,r,i){return e.getImageData(t,n,r,i)},arguments)},__wbg_getUserMedia_3c429b74c1afa2c0:function(){return z(function(e,t){return e.getUserMedia(t)},arguments)},__wbg_get_3ef1eba1850ade27:function(){return z(function(e,t){return Reflect.get(e,t)},arguments)},__wbg_height_6568c4427c3b889d:function(e){return e.height},__wbg_instanceof_Window_23e677d2c6843922:function(e){let t;try{t=e instanceof Window}catch{t=!1}return t},__wbg_mediaDevices_aaefe1de72ee0411:function(){return z(function(e){return e.mediaDevices},arguments)},__wbg_navigator_9cebf56f28aa719b:function(e){return e.navigator},__wbg_new_227d7c05414eb861:function(){return Error()},__wbg_new_ab79df5bd7c26067:function(){return{}},__wbg_new_typed_aaaeaf29cf802876:function(e,t){try{var n={a:e,b:t};return new Promise((e,t)=>{let r=n.a;n.a=0;try{return T(r,n.b,e,t)}finally{n.a=r}})}finally{n.a=n.b=0}},__wbg_queueMicrotask_0c399741342fb10f:function(e){return e.queueMicrotask},__wbg_queueMicrotask_a082d78ce798393e:function(e){queueMicrotask(e)},__wbg_resolve_ae8d83246e5bcc12:function(e){return Promise.resolve(e)},__wbg_set_7eaa4f96924fd6b3:function(){return z(function(e,t,n){return Reflect.set(e,t,n)},arguments)},__wbg_set_audio_d55dfa4d70f98e62:function(e,t){e.audio=t},__wbg_set_download_c59352398d4fe8c5:function(e,t,n){e.download=I(t,n)},__wbg_set_height_b6548a01bdcb689a:function(e,t){e.height=t>>>0},__wbg_set_href_de1379dfb6df96a6:function(e,t,n){e.href=I(t,n)},__wbg_set_textContent_1e964492a2410e92:function(e,t,n){e.textContent=t===0?void 0:I(t,n)},__wbg_set_video_f55662dd904d9989:function(e,t){e.video=t},__wbg_set_width_c0fcaa2da53cd540:function(e,t){e.width=t>>>0},__wbg_stack_3b0d974bbf31e44f:function(e,t){let n=t.stack,r=W(n,Q.__wbindgen_malloc,Q.__wbindgen_realloc),i=Z;N().setInt32(e+4,i,!0),N().setInt32(e+0,r,!0)},__wbg_static_accessor_GLOBAL_8adb955bd33fac2f:function(){let e=typeof global>`u`?null:global;return B(e)?0:O(e)},__wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913:function(){let e=typeof globalThis>`u`?null:globalThis;return B(e)?0:O(e)},__wbg_static_accessor_SELF_f207c857566db248:function(){let e=typeof self>`u`?null:self;return B(e)?0:O(e)},__wbg_static_accessor_WINDOW_bb9f1ba69d61b386:function(){let e=typeof window>`u`?null:window;return B(e)?0:O(e)},__wbg_then_098abe61755d12f6:function(e,t){return e.then(t)},__wbg_then_9e335f6dd892bc11:function(e,t,n){return e.then(t,n)},__wbg_toDataURL_6d61088d3af8abe6:function(){return z(function(e,t,n,r){let i=W(t.toDataURL(I(n,r)),Q.__wbindgen_malloc,Q.__wbindgen_realloc),a=Z;N().setInt32(e+4,a,!0),N().setInt32(e+0,i,!0)},arguments)},__wbg_videoHeight_6dac1fd954779498:function(e){return e.videoHeight},__wbg_videoWidth_48f094fdc1b5ba64:function(e){return e.videoWidth},__wbg_width_4d6fc7fecd877217:function(e){return e.width},__wbindgen_cast_0000000000000001:function(e,t){return V(e,t,Q.wasm_bindgen__closure__destroy__h1b419f664e904963,C)},__wbindgen_cast_0000000000000002:function(e,t){return V(e,t,Q.wasm_bindgen__closure__destroy__hdee285f0b335e3f2,w)},__wbindgen_cast_0000000000000003:function(e,t){return I(e,t)},__wbindgen_init_externref_table:function(){let e=Q.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}};return{__proto__:null,"./rust_panorama_wasm_bg.js":e}}function C(e,t,n){Q.wasm_bindgen__convert__closures_____invoke__h0ad8234add92becd(e,t,n)}function w(e,t,n){let r=Q.wasm_bindgen__convert__closures_____invoke__hed9e7d47a0d05851(e,t,n);if(r[1])throw G(r[0])}function T(e,t,n,r){Q.wasm_bindgen__convert__closures_____invoke__h592b3fd39384f38f(e,t,n,r)}var E=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Q.__wbg_horizonsurvey_free(e>>>0,1)),D=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Q.__wbg_projectedpatch_free(e>>>0,1));function O(e){let t=Q.__externref_table_alloc();return Q.__wbindgen_externrefs.set(t,e),t}var k=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>e.dtor(e.a,e.b));function A(e,t){return e>>>=0,F().subarray(e/8,e/8+t)}function j(e,t){return e>>>=0,R().subarray(e/1,e/1+t)}var M=null;function N(){return(M===null||M.buffer.detached===!0||M.buffer.detached===void 0&&M.buffer!==Q.memory.buffer)&&(M=new DataView(Q.memory.buffer)),M}var P=null;function F(){return(P===null||P.byteLength===0)&&(P=new Float64Array(Q.memory.buffer)),P}function I(e,t){return e>>>=0,Y(e,t)}var L=null;function R(){return(L===null||L.byteLength===0)&&(L=new Uint8Array(Q.memory.buffer)),L}function z(e,t){try{return e.apply(this,t)}catch(e){let t=O(e);Q.__wbindgen_exn_store(t)}}function B(e){return e==null}function V(e,t,n,r){let i={a:e,b:t,cnt:1,dtor:n},a=(...e)=>{i.cnt++;let t=i.a;i.a=0;try{return r(t,i.b,...e)}finally{i.a=t,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--i.cnt===0&&(i.dtor(i.a,i.b),i.a=0,k.unregister(i))},k.register(a,i,i),a}function H(e,t){let n=t(e.length*1,1)>>>0;return R().set(e,n/1),Z=e.length,n}function U(e,t){let n=t(e.length*8,8)>>>0;return F().set(e,n/8),Z=e.length,n}function W(e,t,n){if(n===void 0){let n=X.encode(e),r=t(n.length,1)>>>0;return R().subarray(r,r+n.length).set(n),Z=n.length,r}let r=e.length,i=t(r,1)>>>0,a=R(),o=0;for(;o127)break;a[i+o]=t}if(o!==r){o!==0&&(e=e.slice(o)),i=n(i,r,r=o+e.length*3,1)>>>0;let t=R().subarray(i+o,i+r),a=X.encodeInto(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return Z=o,i}function G(e){let t=Q.__wbindgen_externrefs.get(e);return Q.__externref_table_dealloc(e),t}var K=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0});K.decode();var q=2146435072,J=0;function Y(e,t){return J+=t,J>=q&&(K=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}),K.decode(),J=t),K.decode(R().subarray(e,e+t))}var X=new TextEncoder;`encodeInto`in X||(X.encodeInto=function(e,t){let n=X.encode(e);return t.set(n),{read:e.length,written:n.length}});var Z=0,Q;function $(e,t){return Q=e.exports,M=null,P=null,L=null,Q.__wbindgen_start(),Q}async function ee(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.ok&&n(e.type)&&e.headers.get(`Content-Type`)!==`application/wasm`)console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let r=await e.arrayBuffer();return await WebAssembly.instantiate(r,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}function n(e){switch(e){case`basic`:case`cors`:case`default`:return!0}return!1}}function te(e){if(Q!==void 0)return Q;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module:e}=e:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=S();return e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e)),$(new WebAssembly.Instance(e,t),e)}async function ne(e){if(Q!==void 0)return Q;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0&&(e=new URL(`/assets/rust_panorama_wasm_bg-C2cGI8rb.wasm`,``+import.meta.url));let t=S();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await ee(await e,t);return $(n,r)}export{e as HorizonSurvey,t as ProjectedPatch,n as calculate_fov,r as capture_frame,ne as default,i as export_hrz,a as export_stellarium_polygonal,o as export_stellarium_spherical,s as get_frame_data,c as get_heading,l as get_orientation,u as get_tilt,te as initSync,d as init_camera,f as landscape_ini,p as main,m as orientation_az_el,h as parse_hrz,g as profile_from_points,_ as profile_smoothed,v as project_frame,y as save_png,b as start_orientation,x as stellarium_fitted_options}; \ No newline at end of file diff --git a/assets/web/assets/rust_panorama_wasm_bg-C2cGI8rb.wasm b/assets/web/assets/rust_panorama_wasm_bg-C2cGI8rb.wasm new file mode 100644 index 0000000..2542efa Binary files /dev/null and b/assets/web/assets/rust_panorama_wasm_bg-C2cGI8rb.wasm differ diff --git a/assets/web/favicon.svg b/assets/web/favicon.svg new file mode 100644 index 0000000..e4ba767 --- /dev/null +++ b/assets/web/favicon.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/assets/web/index.html b/assets/web/index.html new file mode 100644 index 0000000..1a5ee16 --- /dev/null +++ b/assets/web/index.html @@ -0,0 +1,17 @@ + + + + + + + + + + SkyContour + + + + +
+ + diff --git a/core/Cargo.lock b/core/Cargo.lock new file mode 100644 index 0000000..df7d9fe --- /dev/null +++ b/core/Cargo.lock @@ -0,0 +1,201 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "cfg-if" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" + +[[package]] +name = "crc32fast" +version = "1.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ba106e844045ddc02c20768ac4b0b7cb45f2cc2ecbd833ac9f5dacb183c2055" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "flate2" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb" +dependencies = [ + "crc32fast", + "miniz_oxide 0.9.1", + "zlib-rs", +] + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "memchr" +version = "2.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "miniz_oxide" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "png" +version = "0.17.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526" +dependencies = [ + "bitflags", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide 0.8.9", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "serde" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_json" +version = "1.0.154" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "sfzenith-core" +version = "0.1.0" +dependencies = [ + "crc32fast", + "png", + "serde", + "serde_json", +] + +[[package]] +name = "simd-adler32" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" + +[[package]] +name = "syn" +version = "3.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "unicode-ident" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" + +[[package]] +name = "zlib-rs" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112" + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" diff --git a/core/Cargo.toml b/core/Cargo.toml new file mode 100644 index 0000000..a7fb480 --- /dev/null +++ b/core/Cargo.toml @@ -0,0 +1,11 @@ +[package] +name = "sfzenith-core" +version = "0.1.0" +edition = "2021" +description = "Pure horizon-survey core: projection, FOV, horizon profile, NINA/Stellarium exporters. No I/O, no web-sys." + +[dependencies] +serde = { version = "1", features = ["derive"] } +serde_json = "1" +png = "0.17" +crc32fast = "1" diff --git a/core/src/fov.rs b/core/src/fov.rs new file mode 100644 index 0000000..5087f5b --- /dev/null +++ b/core/src/fov.rs @@ -0,0 +1,228 @@ +//! Horizontal FOV estimate from two overlapping frames (NCC on a middle strip). + +/// Average the middle 10% horizontal strip of an RGBA image into a 1D grayscale signal. +fn middle_strip_signal(rgba: &[u8], w: usize, h: usize) -> Vec { + let strip_start = h * 45 / 100; + let strip_end = (h * 55 / 100).max(strip_start + 1); + let strip_h = (strip_end - strip_start) as f64; + + let mut row = vec![0.0f64; w]; + for y in strip_start..strip_end { + for x in 0..w { + let idx = (y * w + x) * 4; + row[x] += 0.299 * rgba[idx] as f64 + + 0.587 * rgba[idx + 1] as f64 + + 0.114 * rgba[idx + 2] as f64; + } + } + for v in row.iter_mut() { + *v /= strip_h; + } + row +} + +/// NCC: slide `b` over `a` to find the best positive offset where +/// a[offset..] correlates with b[..w-offset]. Returns (offset, ncc) or None. +fn best_shift(a: &[f64], b: &[f64]) -> Option<(usize, f64)> { + let w = a.len(); + let min_overlap = w / 4; + let max_offset = w * 3 / 4; + + let mut best_ncc = 0.3_f64; // minimum threshold + let mut best_offset = 0_usize; + + for offset in 1..=max_offset { + let len = w - offset; + if len < min_overlap { + break; + } + + let mean_a: f64 = a[offset..].iter().sum::() / len as f64; + let mean_b: f64 = b[..len].iter().sum::() / len as f64; + + let mut num = 0.0_f64; + let mut den_a = 0.0_f64; + let mut den_b = 0.0_f64; + + for i in 0..len { + let da = a[offset + i] - mean_a; + let db = b[i] - mean_b; + num += da * db; + den_a += da * da; + den_b += db * db; + } + + let den = (den_a * den_b).sqrt(); + if den > 1e-10 { + let ncc = num / den; + if ncc > best_ncc { + best_ncc = ncc; + best_offset = offset; + } + } + } + + if best_offset == 0 { + None + } else { + Some((best_offset, best_ncc)) + } +} + +/// Calculate camera FOV from two overlapping frames and their heading difference. +/// Uses normalized cross-correlation on a horizontal strip from the middle of each image. +/// `heading_diff` may be given in either sign and across the 0/360 seam (e.g. 355°→5°); +/// frame order does not matter — both shift directions are searched. +/// Returns the estimated horizontal FOV in degrees (valid range 20–120), or -1.0 on failure. +pub fn calculate_fov( + rgba1: &[u8], w1: u32, h1: u32, + rgba2: &[u8], w2: u32, h2: u32, + heading_diff: f64, +) -> f64 { + if w1 != w2 || h1 != h2 || w1 == 0 || h1 == 0 { + return -1.0; + } + + // Circular heading difference: 350°→10° is 20°, not −340° + let delta = { + let d = heading_diff.rem_euclid(360.0); + if d > 180.0 { 360.0 - d } else { d } + }; + if delta < 1.0 { + return -1.0; + } + + let w = w1 as usize; + let h = h1 as usize; + if rgba1.len() < w * h * 4 || rgba2.len() < w * h * 4 { + return -1.0; + } + + let row1 = middle_strip_signal(rgba1, w, h); + let row2 = middle_strip_signal(rgba2, w, h); + + // Rotation direction is unknown after circular normalization: try both orders + let fwd = best_shift(&row1, &row2); + let rev = best_shift(&row2, &row1); + let best = match (fwd, rev) { + (Some(f), Some(r)) => Some(if f.1 >= r.1 { f } else { r }), + (f, r) => f.or(r), + }; + let Some((offset, _)) = best else { + return -1.0; + }; + + // Pure rotation by Δ shifts the image center by ≈ 2·f·tan(Δ/2) pixels, + // so focal length f = offset / (2·tan(Δ/2)) and FOV = 2·atan(w / 2f). + let focal_px = offset as f64 / (2.0 * (delta / 2.0).to_radians().tan()); + let fov = 2.0 * ((w as f64) / (2.0 * focal_px)).atan().to_degrees(); + + if !(20.0..=120.0).contains(&fov) { + return -1.0; + } + fov +} + +#[cfg(test)] +mod tests { + use super::calculate_fov; + + const W: usize = 400; + const H: usize = 100; + + /// Deterministic pseudo-random column brightness (LCG), same for every row. + fn column_value(x: i64) -> u8 { + let mut s = (x as u64).wrapping_mul(6364136223846793005).wrapping_add(1442695040888963407); + s ^= s >> 33; + (s % 256) as u8 + } + + /// Build an RGBA image whose columns show the world pattern shifted by `shift` pixels + /// (positive shift = camera rotated right, scene moved left). + fn synthetic_frame(shift: i64) -> Vec { + let mut img = vec![0u8; W * H * 4]; + for y in 0..H { + for x in 0..W { + let v = column_value(x as i64 + shift); + let idx = (y * W + x) * 4; + img[idx] = v; + img[idx + 1] = v; + img[idx + 2] = v; + img[idx + 3] = 255; + } + } + img + } + + /// Pixel shift produced by rotating a camera of the given FOV by `delta` degrees. + fn shift_for(fov_deg: f64, delta_deg: f64) -> i64 { + let focal = W as f64 / (2.0 * (fov_deg / 2.0).to_radians().tan()); + (2.0 * focal * (delta_deg / 2.0).to_radians().tan()).round() as i64 + } + + fn expected_fov_from_shift(shift: i64, delta_deg: f64) -> f64 { + let focal = shift as f64 / (2.0 * (delta_deg / 2.0).to_radians().tan()); + 2.0 * ((W as f64) / (2.0 * focal)).atan().to_degrees() + } + + #[test] + fn recovers_known_fov() { + let delta = 10.0; + let shift = shift_for(60.0, delta); + let a = synthetic_frame(0); + let b = synthetic_frame(shift); + let fov = calculate_fov(&a, W as u32, H as u32, &b, W as u32, H as u32, delta); + let expected = expected_fov_from_shift(shift, delta); + assert!((fov - expected).abs() < 1.0, "fov={fov}, expected≈{expected}"); + } + + #[test] + fn handles_circular_heading_difference() { + // 355° → 5° is a 10° rotation, naive diff is −350° + let delta = 10.0; + let shift = shift_for(60.0, delta); + let a = synthetic_frame(0); + let b = synthetic_frame(shift); + let fov = calculate_fov(&a, W as u32, H as u32, &b, W as u32, H as u32, -350.0); + let expected = expected_fov_from_shift(shift, delta); + assert!((fov - expected).abs() < 1.0, "fov={fov}, expected≈{expected}"); + } + + #[test] + fn frame_order_does_not_matter() { + let delta = 10.0; + let shift = shift_for(60.0, delta); + let a = synthetic_frame(0); + let b = synthetic_frame(shift); + let fov = calculate_fov(&b, W as u32, H as u32, &a, W as u32, H as u32, delta); + let expected = expected_fov_from_shift(shift, delta); + assert!((fov - expected).abs() < 1.0, "fov={fov}, expected≈{expected}"); + } + + #[test] + fn rejects_mismatched_sizes_and_tiny_rotation() { + let a = synthetic_frame(0); + let b = synthetic_frame(10); + assert_eq!(calculate_fov(&a, W as u32, H as u32, &b, W as u32, (H - 1) as u32, 10.0), -1.0); + assert_eq!(calculate_fov(&a, W as u32, H as u32, &b, W as u32, H as u32, 0.5), -1.0); + assert_eq!(calculate_fov(&a, W as u32, H as u32, &b, W as u32, H as u32, 360.0), -1.0); + } + + #[test] + fn rejects_textureless_frames() { + let flat = vec![128u8; W * H * 4]; + assert_eq!( + calculate_fov(&flat, W as u32, H as u32, &flat, W as u32, H as u32, 10.0), + -1.0 + ); + } + + #[test] + fn rejects_implausible_fov() { + // A 1-pixel shift for a 30° rotation implies an absurdly wide FOV + let a = synthetic_frame(0); + let b = synthetic_frame(1); + let fov = calculate_fov(&a, W as u32, H as u32, &b, W as u32, H as u32, 30.0); + assert_eq!(fov, -1.0, "fov={fov}"); + } +} diff --git a/core/src/hrz.rs b/core/src/hrz.rs new file mode 100644 index 0000000..1d38ea3 --- /dev/null +++ b/core/src/hrz.rs @@ -0,0 +1,141 @@ +//! N.I.N.A. custom horizon (`.hrz`) export and import. Format: docs/FORMATS.md. + +use crate::profile::{HorizonProfile, ProfileError}; +use std::fmt::Write as _; + +#[derive(Debug, Clone, Copy, PartialEq)] +pub struct HrzOptions { + /// Added to the detected edge (default +2°): keeps targets clear of tree + /// tips and absorbs compass error. + pub margin_deg: f64, + /// User north offset, applied before writing (see `HorizonProfile::rotated`). + pub north_offset_deg: f64, +} + +impl Default for HrzOptions { + fn default() -> Self { + Self { margin_deg: 2.0, north_offset_deg: 0.0 } + } +} + +/// Format an altitude with one decimal and a `.` separator, never "-0.0". +pub(crate) fn fmt_alt(v: f64) -> String { + let s = format!("{v:.1}"); + if s == "-0.0" { "0.0".to_string() } else { s } +} + +/// Write a `.hrz`: header `# Az Alt`, then 0..=360 in 1° steps (360 repeats 0 +/// to close the loop), altitude = edge + margin clamped to [0, 90]. +pub fn export_hrz(profile: &HorizonProfile, opts: HrzOptions) -> String { + let p = profile.rotated(opts.north_offset_deg); + let mut out = String::with_capacity(361 * 8); + out.push_str("# Az Alt\n"); + for az in 0..=360i64 { + let alt = (p.at(az) + opts.margin_deg).clamp(0.0, 90.0); + let _ = writeln!(out, "{az} {}", fmt_alt(alt)); + } + out +} + +#[derive(Debug, Clone, PartialEq)] +pub enum HrzError { + /// Line number (1-based) and its content. + BadLine(usize, String), + /// Fewer than two azimuth/altitude pairs. + TooFewPoints, + Profile(ProfileError), +} + +impl std::fmt::Display for HrzError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + HrzError::BadLine(n, l) => write!(f, "line {n}: cannot read \"{l}\""), + HrzError::TooFewPoints => write!(f, "a horizon file needs at least 2 points"), + HrzError::Profile(e) => write!(f, "{e}"), + } + } +} + +impl std::error::Error for HrzError {} + +fn parse_num(tok: &str) -> Option { + // Tolerate comma decimals from non-English Windows locales. + tok.replace(',', ".").parse::().ok().filter(|v| v.is_finite()) +} + +/// Read a `.hrz` (or Stellarium `azDeg_altDeg` horizon list) into a 1° profile. +/// `#` comments and blank lines are skipped; extra columns are ignored. +/// The values are taken as-is (an imported NINA file usually already includes +/// its author's safety margin). +pub fn parse_hrz(text: &str) -> Result { + let mut points = Vec::new(); + for (i, raw) in text.lines().enumerate() { + let line = raw.trim(); + if line.is_empty() || line.starts_with('#') { + continue; + } + let mut toks = line.split_whitespace(); + let pair = (toks.next().and_then(parse_num), toks.next().and_then(parse_num)); + match pair { + (Some(az), Some(alt)) => points.push((az, alt)), + _ => return Err(HrzError::BadLine(i + 1, raw.to_string())), + } + } + if points.len() < 2 { + return Err(HrzError::TooFewPoints); + } + HorizonProfile::from_points(&points).map_err(HrzError::Profile) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn writes_361_lines_with_margin_and_clamp() { + let mut alt = vec![10.0; 360]; + alt[0] = -3.0; + alt[1] = 89.5; + let p = HorizonProfile::from_altitudes(alt).unwrap(); + let s = export_hrz(&p, HrzOptions::default()); + let lines: Vec<&str> = s.lines().collect(); + assert_eq!(lines.len(), 362); + assert_eq!(lines[0], "# Az Alt"); + assert_eq!(lines[1], "0 0.0"); + assert_eq!(lines[2], "1 90.0"); + assert_eq!(lines[3], "2 12.0"); + assert_eq!(lines[361], "360 0.0"); + assert!(s.ends_with('\n')); + } + + #[test] + fn north_offset_is_applied() { + let mut alt = vec![0.0; 360]; + alt[10] = 20.0; + let p = HorizonProfile::from_altitudes(alt).unwrap(); + let s = export_hrz(&p, HrzOptions { margin_deg: 0.0, north_offset_deg: 5.0 }); + assert!(s.contains("\n15 20.0\n")); + } + + #[test] + fn parses_comments_commas_and_sparse_points() { + let p = parse_hrz("# Az Alt\n\n0 10\n180\t30,5 extra\n").unwrap(); + assert_eq!(p.at(0), 10.0); + assert_eq!(p.at(180), 30.5); + assert!((p.at(90) - 20.25).abs() < 1e-9); + } + + #[test] + fn rejects_garbage() { + assert_eq!(parse_hrz("0 10\nfoo bar\n"), Err(HrzError::BadLine(2, "foo bar".into()))); + assert_eq!(parse_hrz("# only\n0 10\n"), Err(HrzError::TooFewPoints)); + } + + #[test] + fn roundtrip_without_margin() { + let p = HorizonProfile::from_altitudes((0..360).map(|i| (i % 37) as f64 * 0.5).collect()) + .unwrap(); + let s = export_hrz(&p, HrzOptions { margin_deg: 0.0, north_offset_deg: 0.0 }); + assert_eq!(parse_hrz(&s).unwrap(), p); + } +} diff --git a/core/src/lib.rs b/core/src/lib.rs new file mode 100644 index 0000000..debc37c --- /dev/null +++ b/core/src/lib.rs @@ -0,0 +1,21 @@ +//! sfzenith core: pure, deterministic horizon-survey logic. +//! +//! No I/O, no clocks, no randomness, no web-sys. The same code is compiled to +//! wasm (via the `wasm/` adapter crate) and tested natively with `cargo test`. +//! +//! Conventions (see docs/FORMATS.md): +//! * Azimuth: degrees, 0 = true north, clockwise (90 = east). +//! * Altitude: degrees above the mathematical horizon. +//! * Profiles are stored in the *measured* frame; exporters apply the user's +//! north offset, so the offset can change without re-running detection. + +pub mod fov; +pub mod hrz; +pub mod profile; +pub mod projection; +pub mod session; +pub mod skymask; +pub mod stellarium; +pub mod zip; + +pub use profile::HorizonProfile; diff --git a/core/src/profile.rs b/core/src/profile.rs new file mode 100644 index 0000000..c301a81 --- /dev/null +++ b/core/src/profile.rs @@ -0,0 +1,217 @@ +//! Horizon profile: altitude of the sky edge for every whole degree of azimuth. + +use std::fmt; + +/// Number of samples in a profile: one per degree, azimuth 0..=359. +pub const STEPS: usize = 360; + +#[derive(Debug, Clone, PartialEq)] +pub enum ProfileError { + /// No usable points were given. + Empty, + /// A value was NaN or infinite. + NotFinite, + /// A dense profile did not have exactly 360 values. + WrongLength(usize), +} + +impl fmt::Display for ProfileError { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + match self { + ProfileError::Empty => write!(f, "no horizon points"), + ProfileError::NotFinite => write!(f, "horizon contains a non-finite value"), + ProfileError::WrongLength(n) => write!(f, "expected {STEPS} altitudes, got {n}"), + } + } +} + +impl std::error::Error for ProfileError {} + +/// Altitude (deg) of the sky edge at azimuth 0°, 1°, … 359°. +#[derive(Debug, Clone, PartialEq)] +pub struct HorizonProfile { + alt: Vec, +} + +impl HorizonProfile { + /// A flat profile at `alt_deg`. + pub fn flat(alt_deg: f64) -> Self { + Self { alt: vec![alt_deg; STEPS] } + } + + /// Wrap an existing 1°-step profile (index = azimuth). + pub fn from_altitudes(alt: Vec) -> Result { + if alt.len() != STEPS { + return Err(ProfileError::WrongLength(alt.len())); + } + if alt.iter().any(|v| !v.is_finite()) { + return Err(ProfileError::NotFinite); + } + Ok(Self { alt }) + } + + /// Build a profile from sparse (azimuth, altitude) points by linear + /// interpolation around the circle (the 360°/0° seam is handled). + /// Points at the same azimuth (a vertical edge) resolve to the higher one, + /// so the result never cuts into an obstruction. + pub fn from_points(points: &[(f64, f64)]) -> Result { + if points.is_empty() { + return Err(ProfileError::Empty); + } + if points.iter().any(|(a, b)| !a.is_finite() || !b.is_finite()) { + return Err(ProfileError::NotFinite); + } + let mut pts: Vec<(f64, f64)> = + points.iter().map(|&(az, alt)| (az.rem_euclid(360.0), alt)).collect(); + pts.sort_by(|a, b| a.0.total_cmp(&b.0).then(a.1.total_cmp(&b.1))); + + let alt = (0..STEPS).map(|i| interp_circular(&pts, i as f64)).collect(); + Ok(Self { alt }) + } + + /// Altitudes indexed by whole azimuth degree. + pub fn altitudes(&self) -> &[f64] { + &self.alt + } + + /// Altitude at a whole azimuth degree (any integer, wrapped). + pub fn at(&self, az_deg: i64) -> f64 { + self.alt[az_deg.rem_euclid(STEPS as i64) as usize] + } + + /// Linearly interpolated altitude at any azimuth. + pub fn sample(&self, az_deg: f64) -> f64 { + let a = az_deg.rem_euclid(360.0); + let i0 = a.floor(); + let t = a - i0; + let v0 = self.at(i0 as i64); + let v1 = self.at(i0 as i64 + 1); + v0 + (v1 - v0) * t + } + + /// Highest altitude in the profile. + pub fn max_alt(&self) -> f64 { + self.alt.iter().copied().fold(f64::NEG_INFINITY, f64::max) + } + + /// Rotate the profile by a north offset: a feature measured at azimuth A + /// ends up at A + `offset_deg`. + pub fn rotated(&self, offset_deg: f64) -> Self { + if offset_deg == 0.0 { + return self.clone(); + } + let alt = (0..STEPS).map(|i| self.sample(i as f64 - offset_deg)).collect(); + Self { alt } + } + + /// Circular median filter over ±`radius_deg` whole degrees + /// (0 = unchanged; 1 or 2 is the "light"/"strong" smoothing in the spec). + pub fn smoothed(&self, radius_deg: usize) -> Self { + if radius_deg == 0 { + return self.clone(); + } + let r = radius_deg as i64; + let alt = (0..STEPS as i64) + .map(|i| { + let mut w: Vec = (-r..=r).map(|d| self.at(i + d)).collect(); + w.sort_by(f64::total_cmp); + w[w.len() / 2] + }) + .collect(); + Self { alt } + } +} + +/// Interpolate sorted, wrapped points at azimuth `az` in [0, 360). +fn interp_circular(pts: &[(f64, f64)], az: f64) -> f64 { + let n = pts.len(); + if n == 1 { + return pts[0].1; + } + // Exact hits: take the highest point at this azimuth (vertical edges). + let exact = pts + .iter() + .filter(|p| (p.0 - az).abs() < 1e-9) + .map(|p| p.1) + .fold(f64::NEG_INFINITY, f64::max); + if exact.is_finite() { + return exact; + } + // Segment (prev, next) around `az`, wrapping across the seam. + let next_idx = pts.iter().position(|p| p.0 > az).unwrap_or(0); + let prev_idx = if next_idx == 0 { n - 1 } else { next_idx - 1 }; + let (a0, v0) = pts[prev_idx]; + let (a1, v1) = pts[next_idx]; + let span = (a1 - a0).rem_euclid(360.0); + if span < 1e-9 { + return v0.max(v1); + } + let t = (az - a0).rem_euclid(360.0) / span; + v0 + (v1 - v0) * t +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn interpolates_across_the_seam() { + let p = HorizonProfile::from_points(&[(350.0, 10.0), (10.0, 30.0)]).unwrap(); + assert!((p.at(0) - 20.0).abs() < 1e-9); + assert!((p.at(355) - 15.0).abs() < 1e-9); + assert!((p.at(5) - 25.0).abs() < 1e-9); + // The long way round (10 → 350) is interpolated too. + assert!((p.at(180) - 20.0).abs() < 1e-9); + } + + #[test] + fn single_point_is_flat() { + let p = HorizonProfile::from_points(&[(123.0, 7.5)]).unwrap(); + assert!(p.altitudes().iter().all(|&v| v == 7.5)); + } + + #[test] + fn duplicate_azimuth_takes_the_higher_point() { + let p = HorizonProfile::from_points(&[(0.0, 0.0), (90.0, 5.0), (90.0, 40.0), (180.0, 0.0)]) + .unwrap(); + assert_eq!(p.at(90), 40.0); + } + + #[test] + fn rejects_bad_input() { + assert_eq!(HorizonProfile::from_points(&[]), Err(ProfileError::Empty)); + assert_eq!( + HorizonProfile::from_points(&[(0.0, f64::NAN)]), + Err(ProfileError::NotFinite) + ); + assert_eq!( + HorizonProfile::from_altitudes(vec![0.0; 10]), + Err(ProfileError::WrongLength(10)) + ); + } + + #[test] + fn rotation_moves_features_clockwise() { + let mut alt = vec![0.0; STEPS]; + alt[100] = 30.0; + let p = HorizonProfile::from_altitudes(alt).unwrap(); + let r = p.rotated(2.0); + assert_eq!(r.at(102), 30.0); + assert_eq!(r.at(100), 0.0); + let half = p.rotated(0.5); + assert!((half.at(100) - 15.0).abs() < 1e-9); + assert!((half.at(101) - 15.0).abs() < 1e-9); + // Wraps across north. + let w = p.rotated(-101.0); + assert_eq!(w.at(359), 30.0); + } + + #[test] + fn median_removes_single_spikes() { + let mut alt = vec![10.0; STEPS]; + alt[0] = 80.0; + let p = HorizonProfile::from_altitudes(alt).unwrap(); + assert_eq!(p.smoothed(1).at(0), 10.0); + assert_eq!(p.smoothed(0).at(0), 80.0); + } +} diff --git a/core/src/projection.rs b/core/src/projection.rs new file mode 100644 index 0000000..c02da57 --- /dev/null +++ b/core/src/projection.rs @@ -0,0 +1,423 @@ +//! Gnomonic (pinhole camera) → equirectangular reprojection. +//! +//! Pure Rust, no web-sys: unit-tested natively with `cargo test`, compiled to +//! wasm for the browser. Conventions (W3C DeviceOrientation): +//! * Earth frame: X = east, Y = north, Z = up. +//! * Device frame: x = right of screen, y = top of screen, z = out of screen; +//! the rear camera looks along −z. +//! * v_earth = R · v_device with R = Rz(alpha)·Rx(beta)·Ry(gamma). +//! Composing R from the raw angles is exact even at beta≈90 (gimbal lock +//! only makes the *decomposition* ambiguous), which is why the full matrix +//! — not scalar heading/tilt — must drive the projection (roll included). +//! * Azimuth: 0° = north, clockwise (east = 90°). Elevation: 0° = horizon. + +pub type Mat3 = [[f64; 3]; 3]; + +fn mat_mul(a: &Mat3, b: &Mat3) -> Mat3 { + let mut m = [[0.0; 3]; 3]; + for (i, row) in m.iter_mut().enumerate() { + for (j, cell) in row.iter_mut().enumerate() { + *cell = (0..3).map(|k| a[i][k] * b[k][j]).sum(); + } + } + m +} + +fn mat_vec(m: &Mat3, v: [f64; 3]) -> [f64; 3] { + [ + m[0][0] * v[0] + m[0][1] * v[1] + m[0][2] * v[2], + m[1][0] * v[0] + m[1][1] * v[1] + m[1][2] * v[2], + m[2][0] * v[0] + m[2][1] * v[1] + m[2][2] * v[2], + ] +} + +/// v · Rᵀ, i.e. transform an earth vector into the device frame. +fn mat_t_vec(m: &Mat3, v: [f64; 3]) -> [f64; 3] { + [ + m[0][0] * v[0] + m[1][0] * v[1] + m[2][0] * v[2], + m[0][1] * v[0] + m[1][1] * v[1] + m[2][1] * v[2], + m[0][2] * v[0] + m[1][2] * v[1] + m[2][2] * v[2], + ] +} + +fn rz(deg: f64) -> Mat3 { + let (s, c) = deg.to_radians().sin_cos(); + [[c, -s, 0.0], [s, c, 0.0], [0.0, 0.0, 1.0]] +} + +fn rx(deg: f64) -> Mat3 { + let (s, c) = deg.to_radians().sin_cos(); + [[1.0, 0.0, 0.0], [0.0, c, -s], [0.0, s, c]] +} + +fn ry(deg: f64) -> Mat3 { + let (s, c) = deg.to_radians().sin_cos(); + [[c, 0.0, s], [0.0, 1.0, 0.0], [-s, 0.0, c]] +} + +/// Device→earth rotation from W3C angles, with screen-orientation correction: +/// R_total = Rz(alpha)·Rx(beta)·Ry(gamma)·Rz(−screen_angle). +/// `screen_angle` is `screen.orientation.angle` (0 in portrait). +pub fn rotation_matrix(alpha_deg: f64, beta_deg: f64, gamma_deg: f64, screen_angle_deg: f64) -> Mat3 { + let r = mat_mul(&mat_mul(&rz(alpha_deg), &rx(beta_deg)), &ry(gamma_deg)); + if screen_angle_deg == 0.0 { + r + } else { + mat_mul(&r, &rz(-screen_angle_deg)) + } +} + +/// Camera boresight azimuth (0°=N, clockwise, 0..360) and elevation in degrees. +pub fn camera_az_el(r: &Mat3) -> (f64, f64) { + let d = mat_vec(r, [0.0, 0.0, -1.0]); // camera looks along −z_device + let az = d[0].atan2(d[1]).to_degrees().rem_euclid(360.0); // atan2(east, north) + let el = d[2].asin().to_degrees(); + (az, el) +} + +/// iOS: derive an absolute-equivalent alpha from `webkitCompassHeading` so the +/// camera boresight azimuth equals the compass value while keeping measured +/// beta/gamma. Exact inversion of the boresight azimuth formula; falls back to +/// `360 − H` when the boresight is near-vertical (azimuth ill-defined there). +pub fn derive_ios_alpha(compass_heading_deg: f64, beta_deg: f64, gamma_deg: f64) -> f64 { + let (sb, _) = beta_deg.to_radians().sin_cos(); + let (sg, cg) = gamma_deg.to_radians().sin_cos(); + let num = -sg; + let den = sb * cg; + if num.abs() < 1e-9 && den.abs() < 1e-9 { + return (360.0 - compass_heading_deg).rem_euclid(360.0); + } + (num.atan2(den).to_degrees() - compass_heading_deg).rem_euclid(360.0) +} + +pub struct PatchGeom { + pub x: i32, + pub y: i32, + pub w: u32, + pub h: u32, +} + +/// Wrap an angle difference into (−180, 180]. +fn wrap180(deg: f64) -> f64 { + let d = deg.rem_euclid(360.0); + if d > 180.0 { d - 360.0 } else { d } +} + +/// Project the source pixel (u,v) as a ray in device space. +fn border_ray(u: f64, v: f64, cx: f64, cy: f64, f: f64) -> [f64; 3] { + [(u - cx) / f, -(v - cy) / f, -1.0] +} + +fn normalize(v: [f64; 3]) -> [f64; 3] { + let n = (v[0] * v[0] + v[1] * v[1] + v[2] * v[2]).sqrt(); + [v[0] / n, v[1] / n, v[2] / n] +} + +/// Does earth-direction `dir` land inside the source frame? +fn earth_dir_in_frame(r: &Mat3, dir: [f64; 3], cx: f64, cy: f64, f: f64, src_w: f64, src_h: f64) -> bool { + let d = mat_t_vec(r, dir); + if d[2] >= -1e-9 { + return false; + } + let u = cx + f * (d[0] / -d[2]); + let v = cy - f * (d[1] / -d[2]); + u >= 0.0 && u <= src_w - 1.0 && v >= 0.0 && v <= src_h - 1.0 +} + +/// Reproject a pinhole-camera RGBA frame into an equirectangular patch. +/// +/// The strip maps azimuth 0..360 to x=0..strip_w and elevation +/// elev_max..elev_min to y=0..strip_h (equal deg/px on both axes assumed by +/// the caller, but not required). Returns the patch geometry (x normalized to +/// [0, strip_w); x+w may exceed strip_w — the caller composites the overflow +/// at x−strip_w) and its RGBA data (alpha 0 outside the source frame). +pub fn project_frame_core( + rgba: &[u8], + src_w: u32, + src_h: u32, + r: &Mat3, + h_fov_deg: f64, + strip_w: u32, + strip_h: u32, + elev_min_deg: f64, + elev_max_deg: f64, +) -> Option<(PatchGeom, Vec)> { + if src_w == 0 || src_h == 0 || strip_w == 0 || strip_h == 0 { + return None; + } + if !(1.0..=179.0).contains(&h_fov_deg) || elev_max_deg <= elev_min_deg { + return None; + } + if rgba.len() < (src_w * src_h * 4) as usize { + return None; + } + + let sw = src_w as f64; + let sh = src_h as f64; + let f = (sw / 2.0) / (h_fov_deg.to_radians() / 2.0).tan(); + let cx = (sw - 1.0) / 2.0; + let cy = (sh - 1.0) / 2.0; + + let px_per_deg_x = strip_w as f64 / 360.0; + let elev_range = elev_max_deg - elev_min_deg; + let px_per_deg_y = strip_h as f64 / elev_range; + + // --- Bounding box: project the source border into (az, el) --- + let (az_c, _) = camera_az_el(r); + let mut min_daz = f64::MAX; + let mut max_daz = f64::MIN; + let mut min_el = f64::MAX; + let mut max_el = f64::MIN; + + const EDGE_SAMPLES: usize = 17; + let mut consider = |u: f64, v: f64| { + let d = normalize(mat_vec(r, border_ray(u, v, cx, cy, f))); + let az = d[0].atan2(d[1]).to_degrees().rem_euclid(360.0); + let el = d[2].asin().to_degrees(); + let daz = wrap180(az - az_c); + if daz < min_daz { min_daz = daz; } + if daz > max_daz { max_daz = daz; } + if el < min_el { min_el = el; } + if el > max_el { max_el = el; } + }; + for i in 0..EDGE_SAMPLES { + let t = i as f64 / (EDGE_SAMPLES - 1) as f64; + consider(t * (sw - 1.0), 0.0); + consider(t * (sw - 1.0), sh - 1.0); + consider(0.0, t * (sh - 1.0)); + consider(sw - 1.0, t * (sh - 1.0)); + } + + // Zenith/nadir inside the frame → full azimuth span + let zenith_in = earth_dir_in_frame(r, [0.0, 0.0, 1.0], cx, cy, f, sw, sh); + let nadir_in = earth_dir_in_frame(r, [0.0, 0.0, -1.0], cx, cy, f, sw, sh); + if zenith_in { + max_el = 90.0; + } + if nadir_in { + min_el = -90.0; + } + + // Clamp elevation to the strip's range + let el_lo = min_el.max(elev_min_deg); + let el_hi = max_el.min(elev_max_deg); + if el_lo >= el_hi { + return None; + } + + const MARGIN_PX: f64 = 2.0; + let (px0, pw) = if zenith_in || nadir_in { + (0i32, strip_w) + } else { + let x_lo = (az_c + min_daz) * px_per_deg_x - MARGIN_PX; + let x_hi = (az_c + max_daz) * px_per_deg_x + MARGIN_PX; + let w = ((x_hi - x_lo).ceil() as u32).min(strip_w); + let x0 = (x_lo.floor() as i64).rem_euclid(strip_w as i64) as i32; + (x0, w) + }; + let y0 = (((elev_max_deg - el_hi) * px_per_deg_y - MARGIN_PX).floor() as i64).max(0) as i32; + let y1 = (((elev_max_deg - el_lo) * px_per_deg_y + MARGIN_PX).ceil() as i64).min(strip_h as i64) as i32; + if y1 <= y0 { + return None; + } + let ph = (y1 - y0) as u32; + + // --- Inverse-map every patch pixel --- + let mut out = vec![0u8; (pw * ph * 4) as usize]; + + // Precompute per-column azimuth trig and per-row elevation trig + let mut col_trig = Vec::with_capacity(pw as usize); + for i in 0..pw { + let az = ((px0 as f64 + i as f64 + 0.5) / px_per_deg_x).to_radians(); + col_trig.push(az.sin_cos()); + } + let mut row_trig = Vec::with_capacity(ph as usize); + for j in 0..ph { + let el = (elev_max_deg - (y0 as f64 + j as f64 + 0.5) / px_per_deg_y).to_radians(); + row_trig.push(el.sin_cos()); + } + + for j in 0..ph as usize { + let (sel, cel) = row_trig[j]; + for i in 0..pw as usize { + let (saz, caz) = col_trig[i]; + let v_earth = [cel * saz, cel * caz, sel]; + let d = mat_t_vec(r, v_earth); + if d[2] >= -1e-9 { + continue; // behind the camera → transparent + } + let u = cx + f * (d[0] / -d[2]); + let v = cy - f * (d[1] / -d[2]); + if u < 0.0 || u > sw - 1.0 || v < 0.0 || v > sh - 1.0 { + continue; + } + + // Bilinear sample + let u0 = u.floor(); + let v0 = v.floor(); + let fu = u - u0; + let fv = v - v0; + let u0 = u0 as usize; + let v0 = v0 as usize; + let u1 = (u0 + 1).min(src_w as usize - 1); + let v1 = (v0 + 1).min(src_h as usize - 1); + + let idx = |x: usize, y: usize| (y * src_w as usize + x) * 4; + let (i00, i10, i01, i11) = (idx(u0, v0), idx(u1, v0), idx(u0, v1), idx(u1, v1)); + let o = (j * pw as usize + i) * 4; + for c in 0..3 { + let top = rgba[i00 + c] as f64 * (1.0 - fu) + rgba[i10 + c] as f64 * fu; + let bot = rgba[i01 + c] as f64 * (1.0 - fu) + rgba[i11 + c] as f64 * fu; + out[o + c] = (top * (1.0 - fv) + bot * fv).round() as u8; + } + out[o + 3] = 255; + } + } + + Some((PatchGeom { x: px0, y: y0, w: pw, h: ph }, out)) +} + +#[cfg(test)] +mod tests { + use super::*; + + const STRIP_W: u32 = 3072; + const STRIP_H: u32 = 1024; + const ELEV_MIN: f64 = -30.0; + const ELEV_MAX: f64 = 90.0; + const PX_PER_DEG: f64 = STRIP_W as f64 / 360.0; // 8.533… + + fn solid_frame(w: u32, h: u32, rgb: [u8; 3]) -> Vec { + let mut v = vec![0u8; (w * h * 4) as usize]; + for px in v.chunks_exact_mut(4) { + px[0] = rgb[0]; + px[1] = rgb[1]; + px[2] = rgb[2]; + px[3] = 255; + } + v + } + + fn assert_close(a: f64, b: f64, tol: f64, msg: &str) { + assert!((a - b).abs() < tol, "{msg}: {a} vs {b}"); + } + + #[test] + fn conventions_locked() { + // alpha=30, beta=90 (upright): heading should be 360-30=330 + let (az, el) = camera_az_el(&rotation_matrix(30.0, 90.0, 0.0, 0.0)); + assert_close(az, 330.0, 1e-9, "azimuth"); + assert_close(el, 0.0, 1e-9, "elevation"); + // beta=110: camera tilted 20° above horizon + let (_, el) = camera_az_el(&rotation_matrix(0.0, 110.0, 0.0, 0.0)); + assert_close(el, 20.0, 1e-9, "tilt-up elevation"); + } + + #[test] + fn ios_alpha_roundtrip() { + // gamma=0, beta=90: exact naive form + assert_close(derive_ios_alpha(70.0, 90.0, 0.0), 290.0, 1e-9, "naive"); + // rolled orientation: boresight azimuth must equal the compass value + let h = 123.0; + let alpha = derive_ios_alpha(h, 75.0, 20.0); + let (az, _) = camera_az_el(&rotation_matrix(alpha, 75.0, 20.0, 0.0)); + assert_close(az, h, 1e-6, "roundtrip azimuth"); + } + + #[test] + fn center_pixel_lands_at_boresight() { + let (w, h) = (64u32, 48u32); + let rgba = solid_frame(w, h, [10, 200, 30]); + // alpha=270, beta=90 → azimuth 90, elevation 0 + let r = rotation_matrix(270.0, 90.0, 0.0, 0.0); + let (geom, data) = + project_frame_core(&rgba, w, h, &r, 60.0, STRIP_W, STRIP_H, ELEV_MIN, ELEV_MAX).unwrap(); + // strip position of (az 90, el 0) + let tx = (90.0 * PX_PER_DEG) as i32; + let ty = ((ELEV_MAX - 0.0) / (ELEV_MAX - ELEV_MIN) * STRIP_H as f64) as i32; + let lx = tx - geom.x; + let ly = ty - geom.y; + assert!(lx >= 0 && (lx as u32) < geom.w && ly >= 0 && (ly as u32) < geom.h, "center in patch"); + let o = ((ly as u32 * geom.w + lx as u32) * 4) as usize; + assert_eq!(&data[o..o + 4], &[10, 200, 30, 255], "boresight pixel color"); + } + + #[test] + fn horizon_width_matches_fov() { + let (w, h) = (128u32, 96u32); + let rgba = solid_frame(w, h, [255, 0, 0]); + let fov = 50.0; + let r = rotation_matrix(180.0, 90.0, 0.0, 0.0); // az 180, el 0 + let (geom, data) = + project_frame_core(&rgba, w, h, &r, fov, STRIP_W, STRIP_H, ELEV_MIN, ELEV_MAX).unwrap(); + // measure opaque width along the horizon row + let horizon_y = ((ELEV_MAX / (ELEV_MAX - ELEV_MIN)) * STRIP_H as f64) as i32 - geom.y; + assert!(horizon_y >= 0 && (horizon_y as u32) < geom.h); + let mut opaque = 0; + for i in 0..geom.w { + if data[((horizon_y as u32 * geom.w + i) * 4 + 3) as usize] == 255 { + opaque += 1; + } + } + let expected = fov * PX_PER_DEG; + assert_close(opaque as f64, expected, 4.0, "horizon opaque width"); + } + + #[test] + fn roll_inverts_patch_aspect() { + let (w, h) = (120u32, 60u32); // wide frame + let rgba = solid_frame(w, h, [0, 0, 255]); + let fov = 40.0; + let upright = rotation_matrix(0.0, 90.0, 0.0, 0.0); + // (alpha=90, beta=0, gamma=-90): upright facing north, rolled 90° + let rolled = rotation_matrix(90.0, 0.0, -90.0, 0.0); + let (g1, _) = + project_frame_core(&rgba, w, h, &upright, fov, STRIP_W, STRIP_H, ELEV_MIN, ELEV_MAX).unwrap(); + let (g2, _) = + project_frame_core(&rgba, w, h, &rolled, fov, STRIP_W, STRIP_H, ELEV_MIN, ELEV_MAX).unwrap(); + assert!(g1.w > g1.h, "upright wide frame: patch wider than tall"); + assert!(g2.h > g2.w, "rolled 90°: patch taller than wide"); + let (az, el) = camera_az_el(&rolled); + assert_close(az, 0.0, 1e-6, "rolled boresight az"); + assert_close(el, 0.0, 1e-6, "rolled boresight el"); + } + + #[test] + fn outside_frame_is_transparent() { + let (w, h) = (64u32, 48u32); + let rgba = solid_frame(w, h, [9, 9, 9]); + let r = rotation_matrix(0.0, 90.0, 0.0, 0.0); + let (geom, data) = + project_frame_core(&rgba, w, h, &r, 45.0, STRIP_W, STRIP_H, ELEV_MIN, ELEV_MAX).unwrap(); + // corners of the (margin-padded) patch bbox lie outside the projected frame + assert_eq!(data[3], 0, "top-left corner transparent"); + let last = ((geom.h - 1) * geom.w + (geom.w - 1)) as usize * 4 + 3; + assert_eq!(data[last], 0, "bottom-right corner transparent"); + // interior (patch center) opaque + let mid = ((geom.h / 2) * geom.w + geom.w / 2) as usize * 4 + 3; + assert_eq!(data[mid], 255, "center opaque"); + } + + #[test] + fn wraparound_near_north() { + let (w, h) = (64u32, 48u32); + let rgba = solid_frame(w, h, [1, 2, 3]); + let r = rotation_matrix(5.0, 90.0, 0.0, 0.0); // azimuth 355 + let (geom, _) = + project_frame_core(&rgba, w, h, &r, 40.0, STRIP_W, STRIP_H, ELEV_MIN, ELEV_MAX).unwrap(); + assert!(geom.x >= 0 && (geom.x as u32) < STRIP_W, "x normalized"); + assert!(geom.x as u32 + geom.w > STRIP_W, "patch crosses the 0/360 seam"); + } + + #[test] + fn zenith_frame_spans_full_width() { + let (w, h) = (64u32, 64u32); + let rgba = solid_frame(w, h, [7, 7, 7]); + // beta=180: camera points straight up + let r = rotation_matrix(0.0, 180.0, 0.0, 0.0); + let (geom, _) = + project_frame_core(&rgba, w, h, &r, 60.0, STRIP_W, STRIP_H, ELEV_MIN, ELEV_MAX).unwrap(); + assert_eq!(geom.w, STRIP_W, "full azimuth span"); + assert_eq!(geom.y, 0, "starts at the zenith edge"); + } +} diff --git a/core/src/session.rs b/core/src/session.rs new file mode 100644 index 0000000..aa7aee6 --- /dev/null +++ b/core/src/session.rs @@ -0,0 +1,159 @@ +//! Recorded session bundle (`session.json` + `sensors.jsonl` + frames/). +//! The phone records it; the desktop replays it through the same core. +//! Shape: docs/ARCHITECTURE.md and docs/examples/session/. + +use serde::{Deserialize, Serialize}; + +pub const SESSION_VERSION: u32 = 1; + +/// Rotation quaternion device→world, world = ENU (x East, y North, z Up). +pub type Quat = [f64; 4]; + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct Session { + pub version: u32, + pub created_at: String, + pub app: AppInfo, + pub device: Device, + pub site: Site, + pub north: North, + pub capture: CapturePlan, + #[serde(default)] + pub frames: Vec, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub sensor_stream: Option, + /// Brush strokes; the format is not fixed yet, so it is kept verbatim. + #[serde(default)] + pub mask_edits: Vec, + #[serde(default)] + pub result: Option, +} + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct AppInfo { + pub name: String, + pub build: String, +} + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct Device { + pub platform: String, + pub model: String, + pub camera: Camera, +} + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct Camera { + pub width_px: u32, + pub height_px: u32, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub hfov_deg: Option, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub vfov_deg: Option, + /// Where the FOV came from: "assumed", "table", "calibrated", "manual", … + pub fov_source: String, +} + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct Site { + pub name: String, + pub lat_deg: f64, + pub lon_deg: f64, + pub elev_m: f64, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub gps_accuracy_m: Option, +} + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct North { + /// "magnetic" or "true". + pub source: String, + pub declination_deg: f64, + pub user_offset_deg: f64, +} + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct CapturePlan { + pub planned_frames: u32, + pub target_tilt_deg: f64, +} + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct FrameRecord { + pub id: String, + pub file: String, + pub t: f64, + pub q: Quat, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub heading_accuracy_deg: Option, +} + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct SensorStream { + pub file: String, + pub rate_hz: f64, +} + +/// One line of `sensors.jsonl`. +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct SensorSample { + pub t: f64, + pub q: Quat, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub mag_heading_deg: Option, + #[serde(default, skip_serializing_if = "Option::is_none")] + pub heading_accuracy_deg: Option, +} + +#[derive(Debug)] +pub enum SessionError { + Json(serde_json::Error), + /// Line number (1-based) in sensors.jsonl. + SensorLine(usize, serde_json::Error), + UnsupportedVersion(u32), +} + +impl std::fmt::Display for SessionError { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + SessionError::Json(e) => write!(f, "session.json: {e}"), + SessionError::SensorLine(n, e) => write!(f, "sensors.jsonl line {n}: {e}"), + SessionError::UnsupportedVersion(v) => write!(f, "unsupported session version {v}"), + } + } +} + +impl std::error::Error for SessionError {} + +impl Session { + pub fn from_json(text: &str) -> Result { + let s: Session = serde_json::from_str(text).map_err(SessionError::Json)?; + if s.version != SESSION_VERSION { + return Err(SessionError::UnsupportedVersion(s.version)); + } + Ok(s) + } + + pub fn to_json(&self) -> String { + serde_json::to_string_pretty(self).expect("session is always serializable") + } +} + +/// Parse `sensors.jsonl`; blank lines are skipped. +pub fn parse_sensors(text: &str) -> Result, SessionError> { + text.lines() + .enumerate() + .filter(|(_, l)| !l.trim().is_empty()) + .map(|(i, l)| serde_json::from_str(l).map_err(|e| SessionError::SensorLine(i + 1, e))) + .collect() +} diff --git a/core/src/skymask.rs b/core/src/skymask.rs new file mode 100644 index 0000000..94c0d8c --- /dev/null +++ b/core/src/skymask.rs @@ -0,0 +1,485 @@ +//! Sky / obstruction mask on the stitched equirectangular band, and the +//! horizon profile derived from it. +//! +//! First, classic version (docs/ARCHITECTURE.md "Sky mask"): sky is grown +//! from the top of the photographed area through smooth, bright, similar- +//! coloured pixels; thin vertical artefacts (frame seams, wires) are opened +//! away; obstruction blobs not connected to the ground (clouds, birds) become +//! sky. The edge is the **highest** obstruction pixel per column, so sky seen +//! through branches stays conservative. User brush edits override the result. + +use crate::profile::HorizonProfile; +use serde::{Deserialize, Serialize}; +use std::collections::VecDeque; + +pub const NO_DATA: u8 = 0; +pub const SKY: u8 = 1; +pub const GROUND: u8 = 2; + +/// Geometry of an equirectangular band: column 0 = azimuth 0, full 360° +/// across the width; row 0 = `top_deg`, last row = `bottom_deg`. +#[derive(Debug, Clone, Copy, PartialEq)] +pub struct BandGeom { + pub width: u32, + pub height: u32, + pub top_deg: f64, + pub bottom_deg: f64, +} + +impl BandGeom { + pub fn len(&self) -> usize { + self.width as usize * self.height as usize + } + pub fn is_empty(&self) -> bool { + self.len() == 0 + } + /// Altitude at the centre of row `y`. + pub fn alt_of_row(&self, y: usize) -> f64 { + self.top_deg - (y as f64 + 0.5) / self.height as f64 * (self.top_deg - self.bottom_deg) + } + /// Azimuth at the centre of column `x`. + pub fn az_of_col(&self, x: usize) -> f64 { + (x as f64 + 0.5) / self.width as f64 * 360.0 + } + fn deg_per_px_y(&self) -> f64 { + (self.top_deg - self.bottom_deg) / self.height as f64 + } + fn deg_per_px_x(&self) -> f64 { + 360.0 / self.width as f64 + } +} + +#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)] +#[serde(rename_all = "lowercase")] +pub enum EditMode { + Sky, + Ground, +} + +/// One brush dab, in band coordinates (degrees). A stroke is a list of dabs. +#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct MaskEdit { + pub mode: EditMode, + pub az_deg: f64, + pub alt_deg: f64, + pub radius_deg: f64, +} + +// Tuning (8-bit channels). Sky is smooth: neighbour gradients of a clear or +// overcast sky stay well below these, foliage and edges far above. +const SEED_MAX_GRAD: f32 = 6.0; +const GROW_MAX_GRAD: f32 = 14.0; +const GROW_MAX_STEP: i32 = 30; // sum of |ΔR|+|ΔG|+|ΔB| between neighbours +const SEED_MIN_REL_BRIGHTNESS: f32 = 0.55; // × bright-sky reference +const GROW_MIN_REL_BRIGHTNESS: f32 = 0.40; +const OPEN_RADIUS_PX: usize = 2; // removes non-sky features ≤ 3 px wide + +/// Classify every pixel of `rgba` (alpha < 128 = not photographed). +pub fn detect_sky(rgba: &[u8], g: BandGeom) -> Vec { + let (w, h) = (g.width as usize, g.height as usize); + let n = w * h; + if n == 0 || rgba.len() < n * 4 { + return vec![NO_DATA; n]; + } + let covered: Vec = (0..n).map(|i| rgba[i * 4 + 3] >= 128).collect(); + let gray: Vec = (0..n) + .map(|i| 0.299 * rgba[i * 4] as f32 + 0.587 * rgba[i * 4 + 1] as f32 + 0.114 * rgba[i * 4 + 2] as f32) + .collect(); + let bright = |i: usize| rgba[i * 4].max(rgba[i * 4 + 1]).max(rgba[i * 4 + 2]) as f32; + let left = |i: usize| if i % w == 0 { i + w - 1 } else { i - 1 }; + let right = |i: usize| if i % w == w - 1 { i + 1 - w } else { i + 1 }; + + // Central-difference gradient; uncovered neighbours contribute nothing. + let grad: Vec = (0..n) + .map(|i| { + if !covered[i] { + return f32::MAX; + } + let pair = |a: Option, b: Option| match (a, b) { + (Some(a), Some(b)) if covered[a] && covered[b] => (gray[a] - gray[b]).abs() / 2.0, + (Some(a), _) if covered[a] => (gray[a] - gray[i]).abs(), + (_, Some(b)) if covered[b] => (gray[b] - gray[i]).abs(), + _ => 0.0, + }; + let y = i / w; + let up = (y > 0).then(|| i - w); + let down = (y + 1 < h).then(|| i + w); + pair(Some(left(i)), Some(right(i))) + pair(up, down) + }) + .collect(); + + // Seeds: the top photographed pixel of each column, if it looks like sky. + let tops: Vec> = + (0..w).map(|x| (0..h).map(|y| y * w + x).find(|&i| covered[i])).collect(); + let mut top_bright: Vec = tops + .iter() + .flatten() + .filter(|&&i| grad[i] < SEED_MAX_GRAD) + .map(|&i| bright(i)) + .collect(); + let mut mask: Vec = covered.iter().map(|&c| if c { GROUND } else { NO_DATA }).collect(); + if top_bright.is_empty() { + return mask; + } + top_bright.sort_by(f32::total_cmp); + let reference = top_bright[top_bright.len() * 3 / 4]; + + let mut queue = VecDeque::new(); + for &i in tops.iter().flatten() { + if grad[i] < SEED_MAX_GRAD && bright(i) >= SEED_MIN_REL_BRIGHTNESS * reference { + mask[i] = SKY; + queue.push_back(i); + } + } + + // Grow sky through smooth, similar, bright-enough neighbours. + let step = |a: usize, b: usize| { + (0..3).map(|c| (rgba[a * 4 + c] as i32 - rgba[b * 4 + c] as i32).abs()).sum::() + }; + while let Some(i) = queue.pop_front() { + let y = i / w; + let mut nb = [Some(left(i)), Some(right(i)), None, None]; + if y > 0 { + nb[2] = Some(i - w); + } + if y + 1 < h { + nb[3] = Some(i + w); + } + for j in nb.into_iter().flatten() { + if mask[j] == GROUND + && grad[j] < GROW_MAX_GRAD + && step(i, j) <= GROW_MAX_STEP + && bright(j) >= GROW_MIN_REL_BRIGHTNESS * reference + { + mask[j] = SKY; + queue.push_back(j); + } + } + } + + open_thin_columns(&mut mask, w, h); + drop_floating_ground(&mut mask, w, h); + mask +} + +/// Non-sky pixels with sky within `OPEN_RADIUS_PX` on both the left and the +/// right of the same row are frame seams or wires: make them sky. +fn open_thin_columns(mask: &mut [u8], w: usize, h: usize) { + let r = OPEN_RADIUS_PX; + let orig = mask.to_vec(); + for y in 0..h { + let row = &orig[y * w..(y + 1) * w]; + for x in 0..w { + if row[x] != GROUND { + continue; + } + let sky_left = (1..=r).any(|d| row[(x + w - d) % w] == SKY); + let sky_right = (1..=r).any(|d| row[(x + d) % w] == SKY); + if sky_left && sky_right { + mask[y * w + x] = SKY; + } + } + } +} + +/// Obstruction blobs that do not reach the bottom of the photographed area +/// (clouds, birds, lens flare) are sky. 8-connected flood from the bottom. +fn drop_floating_ground(mask: &mut [u8], w: usize, h: usize) { + let mut keep = vec![false; w * h]; + let mut queue = VecDeque::new(); + for x in 0..w { + if let Some(y) = (0..h).rev().find(|&y| mask[y * w + x] != NO_DATA) { + let i = y * w + x; + if mask[i] == GROUND { + keep[i] = true; + queue.push_back(i); + } + } + } + while let Some(i) = queue.pop_front() { + let (x, y) = ((i % w) as i64, (i / w) as i64); + for dy in -1..=1i64 { + for dx in -1..=1i64 { + let ny = y + dy; + if (dx == 0 && dy == 0) || ny < 0 || ny >= h as i64 { + continue; + } + let nx = (x + dx).rem_euclid(w as i64); + let j = (ny as usize) * w + nx as usize; + if !keep[j] && mask[j] == GROUND { + keep[j] = true; + queue.push_back(j); + } + } + } + } + for i in 0..w * h { + if mask[i] == GROUND && !keep[i] { + mask[i] = SKY; + } + } +} + +/// Paint brush dabs onto the mask (they win over detection, also where no +/// photo exists). Distance is measured in degrees, azimuth wraps. +pub fn apply_edits(mask: &mut [u8], g: BandGeom, edits: &[MaskEdit]) { + let (w, h) = (g.width as usize, g.height as usize); + if mask.len() < w * h { + return; + } + let (dpx, dpy) = (g.deg_per_px_x(), g.deg_per_px_y()); + for e in edits { + if !(e.radius_deg > 0.0 && e.az_deg.is_finite() && e.alt_deg.is_finite()) { + continue; + } + let value = match e.mode { + EditMode::Sky => SKY, + EditMode::Ground => GROUND, + }; + let y0 = ((g.top_deg - (e.alt_deg + e.radius_deg)) / dpy).floor().max(0.0) as usize; + let y1 = (((g.top_deg - (e.alt_deg - e.radius_deg)) / dpy).ceil().max(0.0) as usize).min(h); + let cx = e.az_deg / dpx; + let rx = (e.radius_deg / dpx).ceil() as i64 + 1; + for y in y0..y1 { + let dalt = g.alt_of_row(y) - e.alt_deg; + for xi in (cx.floor() as i64 - rx)..=(cx.floor() as i64 + rx) { + let x = xi.rem_euclid(w as i64) as usize; + let mut daz = (g.az_of_col(x) - e.az_deg).rem_euclid(360.0); + if daz > 180.0 { + daz -= 360.0; + } + if daz * daz + dalt * dalt <= e.radius_deg * e.radius_deg { + mask[y * w + x] = value; + } + } + } + } +} + +/// Altitude of the highest obstruction pixel per column (`None` = no data). +/// A photographed column with no obstruction at all reports the bottom of its +/// photo: the true edge is somewhere below, so this stays conservative. +pub fn column_edges(mask: &[u8], g: BandGeom) -> Vec> { + let (w, h) = (g.width as usize, g.height as usize); + (0..w) + .map(|x| { + let mut lowest_data = None; + for y in 0..h { + match mask[y * w + x] { + GROUND => return Some(g.alt_of_row(y) + g.deg_per_px_y() / 2.0), + SKY => lowest_data = Some(y), + _ => {} + } + } + lowest_data.map(|y| g.alt_of_row(y)) + }) + .collect() +} + +/// Which whole degrees of azimuth have photo data (index = azimuth). +pub fn coverage_degrees(mask: &[u8], g: BandGeom) -> Vec { + let mut cov = vec![false; 360]; + for (x, e) in column_edges(mask, g).iter().enumerate() { + if e.is_some() { + cov[(g.az_of_col(x).floor() as usize) % 360] = true; + } + } + cov +} + +/// Sky-edge profile: per whole degree the highest edge of the columns within +/// ±0.5°; degrees without photos are interpolated from their neighbours. +/// `None` when nothing is photographed. +pub fn edge_profile(mask: &[u8], g: BandGeom) -> Option { + let mut best: Vec> = vec![None; 360]; + for (x, e) in column_edges(mask, g).into_iter().enumerate() { + if let Some(alt) = e { + let d = (g.az_of_col(x).round() as usize) % 360; + best[d] = Some(best[d].map_or(alt, |b: f64| b.max(alt))); + } + } + let pts: Vec<(f64, f64)> = + best.iter().enumerate().filter_map(|(d, v)| v.map(|a| (d as f64, a))).collect(); + HorizonProfile::from_points(&pts).ok() +} + +/// Whole degrees where obstruction reaches the top of the photographed area: +/// the frame was too low there and a higher shot is needed. +pub fn top_touch_degrees(mask: &[u8], g: BandGeom) -> Vec { + let (w, h) = (g.width as usize, g.height as usize); + let mut hits = vec![0u32; 360]; + let mut cols = vec![0u32; 360]; + for x in 0..w { + let d = (g.az_of_col(x).floor() as usize) % 360; + if let Some(y) = (0..h).find(|&y| mask[y * w + x] != NO_DATA) { + cols[d] += 1; + if mask[y * w + x] == GROUND { + hits[d] += 1; + } + } + } + (0..360).map(|d| cols[d] > 0 && hits[d] * 2 > cols[d]).collect() +} + +#[cfg(test)] +mod tests { + use super::*; + + const W: u32 = 720; // 2 px per degree + const H: u32 = 240; // +90 … −30, 2 px per degree + + fn geom() -> BandGeom { + BandGeom { width: W, height: H, top_deg: 90.0, bottom_deg: -30.0 } + } + + /// Smooth blue sky above `edge(az)`, textured dark ground below, photos + /// only between `lo` and `hi` altitude. + fn scene(edge: impl Fn(f64) -> f64, lo: f64, hi: f64) -> Vec { + let g = geom(); + let mut v = vec![0u8; g.len() * 4]; + for y in 0..H as usize { + let alt = g.alt_of_row(y); + for x in 0..W as usize { + let i = (y * W as usize + x) * 4; + if alt < lo || alt > hi { + continue; + } + if alt > edge(g.az_of_col(x)) { + let t = (alt / 90.0).clamp(0.0, 1.0); + v[i] = (150.0 - 60.0 * t) as u8; + v[i + 1] = (185.0 - 50.0 * t) as u8; + v[i + 2] = (225.0 - 20.0 * t) as u8; + } else { + let noise = ((x * 7919 + y * 104729) % 41) as u8; + v[i] = 20 + noise; + v[i + 1] = 40 + noise; + v[i + 2] = 15 + noise / 2; + } + v[i + 3] = 255; + } + } + v + } + + fn tree(az: f64) -> f64 { + // 5° hills, a 25° tree around 120°. + let t = 25.0 * (-((az - 120.0) / 8.0).powi(2)).exp(); + 5.0 + 3.0 * (az.to_radians() * 3.0).sin() + t + } + + #[test] + fn recovers_the_edge_within_a_degree() { + let g = geom(); + let px = scene(tree, -22.0, 42.0); + let mask = detect_sky(&px, g); + let p = edge_profile(&mask, g).unwrap(); + for az in (0..360).step_by(5) { + // Each degree keeps the highest edge within ±0.5° (conservative). + let want = (-5..=5).map(|k| tree(az as f64 + k as f64 * 0.1)).fold(f64::MIN, f64::max); + let got = p.at(az); + assert!((got - want).abs() <= 1.0, "az {az}: got {got:.2}, want {want:.2}"); + assert!(got >= tree(az as f64) - 0.5, "az {az}: edge cut into the obstruction"); + } + assert!(coverage_degrees(&mask, g).iter().all(|&c| c)); + assert!(top_touch_degrees(&mask, g).iter().all(|&t| !t)); + } + + #[test] + fn exposure_seams_do_not_become_obstructions() { + let g = geom(); + let mut px = scene(|_| 5.0, -22.0, 42.0); + // Every 15° a frame is 18 levels darker. + for y in 0..H as usize { + for x in 0..W as usize { + if (x / 30) % 2 == 1 { + let i = (y * W as usize + x) * 4; + for c in 0..3 { + px[i + c] = px[i + c].saturating_sub(18); + } + } + } + } + let p = edge_profile(&detect_sky(&px, g), g).unwrap(); + assert!(p.max_alt() <= 6.0, "max edge {}", p.max_alt()); + } + + #[test] + fn floating_clouds_are_sky() { + let g = geom(); + let mut px = scene(|_| 4.0, -22.0, 42.0); + // A textured grey cloud blob at 30° altitude, azimuth 200–210°. + for y in 0..H as usize { + let alt = g.alt_of_row(y); + for x in 0..W as usize { + let az = g.az_of_col(x); + if (28.0..32.0).contains(&alt) && (200.0..210.0).contains(&az) { + let i = (y * W as usize + x) * 4; + let n = ((x * 31 + y * 17) % 60) as u8; + px[i] = 120 + n; + px[i + 1] = 120 + n; + px[i + 2] = 125 + n; + } + } + } + let p = edge_profile(&detect_sky(&px, g), g).unwrap(); + assert!(p.at(205) < 6.0, "cloud leaked into the edge: {}", p.at(205)); + } + + #[test] + fn tree_touching_the_top_is_reported() { + let g = geom(); + let px = scene(|az| if (100.0..110.0).contains(&az) { 60.0 } else { 5.0 }, -22.0, 42.0); + let mask = detect_sky(&px, g); + let touch = top_touch_degrees(&mask, g); + assert!(touch[105]); + assert!(!touch[200]); + let p = edge_profile(&mask, g).unwrap(); + assert!(p.at(105) >= 41.0); + } + + #[test] + fn gaps_are_interpolated_and_reported() { + let g = geom(); + let mut px = scene(|_| 10.0, -22.0, 42.0); + // Only 0–180° photographed. + for y in 0..H as usize { + for x in W as usize / 2..W as usize { + px[(y * W as usize + x) * 4 + 3] = 0; + } + } + let mask = detect_sky(&px, g); + let cov = coverage_degrees(&mask, g); + assert!(cov[90] && !cov[270]); + let p = edge_profile(&mask, g).unwrap(); + assert!((p.at(270) - 10.0).abs() <= 1.0); + } + + #[test] + fn brush_edits_override_detection() { + let g = geom(); + let px = scene(|_| 5.0, -22.0, 42.0); + let mut mask = detect_sky(&px, g); + apply_edits( + &mut mask, + g, + &[MaskEdit { mode: EditMode::Ground, az_deg: 359.0, alt_deg: 20.0, radius_deg: 3.0 }], + ); + let p = edge_profile(&mask, g).unwrap(); + assert!(p.at(359) >= 22.0, "ground paint raises the edge: {}", p.at(359)); + assert!(p.at(1) >= 21.0, "the dab wraps across north: {}", p.at(1)); + apply_edits( + &mut mask, + g, + &[MaskEdit { mode: EditMode::Sky, az_deg: 359.0, alt_deg: 20.0, radius_deg: 4.0 }], + ); + assert!(edge_profile(&mask, g).unwrap().at(359) < 6.0); + } + + #[test] + fn nothing_photographed_gives_no_profile() { + let g = geom(); + let px = vec![0u8; g.len() * 4]; + assert!(edge_profile(&detect_sky(&px, g), g).is_none()); + } +} diff --git a/core/src/stellarium.rs b/core/src/stellarium.rs new file mode 100644 index 0000000..61a6f91 --- /dev/null +++ b/core/src/stellarium.rs @@ -0,0 +1,496 @@ +//! Stellarium landscape export: spherical (photo panorama) and polygonal +//! (outline only). Format and texture mapping: docs/FORMATS.md. + +use crate::hrz::fmt_alt; +use crate::profile::HorizonProfile; +use serde::Deserialize; +use std::fmt::Write as _; + +/// Observer location written to `[location]`. +#[derive(Debug, Clone, Copy, PartialEq, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct Location { + pub lat_deg: f64, + pub lon_deg: f64, + /// Metres above sea level; omitted from the ini when unknown. + #[serde(default)] + pub elev_m: Option, +} + +/// Text that goes into `landscape.ini`. +#[derive(Debug, Clone, PartialEq, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct LandscapeMeta { + /// Site name, e.g. "Backyard pier". + pub name: String, + pub author: String, + /// Used in the description ("... made with "). + pub app_name: String, + #[serde(default)] + pub location: Option, +} + +/// One file of an export: path inside the zip and its bytes. +pub type ExportFile = (String, Vec); + +/// Degrees as Stellarium DMS, e.g. 47.4979 → `+47d29'52"`. +pub fn dms(deg: f64) -> String { + let sign = if deg < 0.0 { '-' } else { '+' }; + let total = (deg.abs() * 3600.0).round() as i64; + format!("{sign}{}d{}'{}\"", total / 3600, (total / 60) % 60, total % 60) +} + +/// Whole numbers without decimals, otherwise one decimal (ini angles). +fn fmt_deg(v: f64) -> String { + if v.fract() == 0.0 { format!("{}", v as i64) } else { fmt_alt(v) } +} + +/// Keep ini values on one line. +fn ini_value(s: &str) -> String { + s.replace(['\r', '\n'], " ").trim().to_string() +} + +/// Folder name inside the zip (Stellarium installs the landscape from it). +pub fn landscape_id(name: &str) -> String { + let mut id = String::new(); + for c in name.to_lowercase().chars() { + let c = match c { + 'á' | 'à' | 'â' | 'ä' => 'a', + 'é' | 'è' | 'ê' | 'ë' => 'e', + 'í' | 'ì' | 'î' | 'ï' => 'i', + 'ó' | 'ò' | 'ô' | 'ö' | 'ő' => 'o', + 'ú' | 'ù' | 'û' | 'ü' | 'ű' => 'u', + c => c, + }; + if c.is_ascii_alphanumeric() { + id.push(c); + } else if !id.ends_with('_') && !id.is_empty() { + id.push('_'); + } + } + let id = id.trim_end_matches('_').to_string(); + if id.is_empty() { "horizon".to_string() } else { id } +} + +fn push_location(out: &mut String, loc: &Option) { + if let Some(l) = loc { + out.push_str("\n[location]\nplanet = Earth\n"); + let _ = writeln!(out, "latitude = {}", dms(l.lat_deg)); + let _ = writeln!(out, "longitude = {}", dms(l.lon_deg)); + if let Some(elev) = l.elev_m.filter(|e| e.is_finite()) { + let _ = writeln!(out, "altitude = {}", elev.round() as i64); + } + } +} + +/// `horizon.txt` (azDeg_altDeg): the plain detected edge, no safety margin. +pub fn horizon_txt(profile: &HorizonProfile, site_name: &str) -> String { + let mut out = String::with_capacity(360 * 8 + 100); + let _ = writeln!(out, "# {} - sky edge, no safety margin", ini_value(site_name)); + out.push_str("# azimuth (deg, N=0, E=90) altitude (deg)\n"); + for az in 0..360i64 { + let _ = writeln!(out, "{az} {}", fmt_alt(profile.at(az).clamp(-90.0, 90.0))); + } + out +} + +/// `landscape.ini` for the outline-only (polygonal) landscape. +pub fn polygonal_ini(meta: &LandscapeMeta) -> String { + let mut out = String::new(); + out.push_str("[landscape]\n"); + let _ = writeln!(out, "name = {} (outline)", ini_value(&meta.name)); + let _ = writeln!(out, "author = {}", ini_value(&meta.author)); + let _ = writeln!(out, "description = Horizon outline made with {}", ini_value(&meta.app_name)); + out.push_str("type = polygonal\n"); + out.push_str("polygonal_horizon_list = horizon.txt\n"); + out.push_str("polygonal_horizon_list_mode = azDeg_altDeg\n"); + out.push_str("polygonal_angle_rotatez = 0\n"); + out.push_str("ground_color = .12,.12,.14\n"); + push_location(&mut out, &meta.location); + out +} + +/// `landscape.ini` for the photo panorama (spherical) landscape. +pub fn spherical_ini(meta: &LandscapeMeta, top_deg: f64, bottom_deg: f64) -> String { + let mut out = String::new(); + out.push_str("[landscape]\n"); + let _ = writeln!(out, "name = {}", ini_value(&meta.name)); + let _ = writeln!(out, "author = {}", ini_value(&meta.author)); + let _ = writeln!( + out, + "description = 360 degree horizon panorama made with {}", + ini_value(&meta.app_name) + ); + out.push_str("type = spherical\n"); + out.push_str("maptex = panorama.png\n"); + let _ = writeln!(out, "maptex_top = {}", fmt_deg(top_deg)); + let _ = writeln!(out, "maptex_bottom = {}", fmt_deg(bottom_deg)); + out.push_str("angle_rotatez = 0\n"); + out.push_str("bottom_cap_color = .05,.05,.05\n"); + out.push_str("polygonal_horizon_list = horizon.txt\n"); + out.push_str("polygonal_angle_rotatez = 0\n"); + push_location(&mut out, &meta.location); + out +} + +/// Outline-only landscape: `_outline/landscape.ini` + `horizon.txt`. +pub fn export_polygonal( + profile: &HorizonProfile, + meta: &LandscapeMeta, + north_offset_deg: f64, +) -> Vec { + let p = profile.rotated(north_offset_deg); + let dir = format!("{}_outline", landscape_id(&meta.name)); + vec![ + (format!("{dir}/landscape.ini"), polygonal_ini(meta).into_bytes()), + (format!("{dir}/horizon.txt"), horizon_txt(&p, &meta.name).into_bytes()), + ] +} + +// --------------------------------------------------------------------------- +// Spherical panorama +// --------------------------------------------------------------------------- + +/// Source equirectangular band in the app's own layout: column 0 = measured +/// azimuth 0°, azimuth grows to the right over the full width (360°); row 0 = +/// `top_deg`, last row = `bottom_deg`, linear in altitude. RGBA, alpha 0 = +/// no photo. `sky_mask` (same size, `skymask::SKY` = sky) makes sky seen +/// below the edge (between branches) transparent too. +#[derive(Debug, Clone, Copy)] +pub struct PanoramaBand<'a> { + pub rgba: &'a [u8], + pub width: u32, + pub height: u32, + pub top_deg: f64, + pub bottom_deg: f64, + pub sky_mask: Option<&'a [u8]>, +} + +#[derive(Debug, Clone, Copy, PartialEq, Deserialize)] +#[serde(rename_all = "camelCase", default)] +pub struct SphericalOptions { + pub width_px: u32, + pub height_px: u32, + /// Altitude of the output's top / bottom row (`maptex_top/bottom`). + pub top_deg: f64, + pub bottom_deg: f64, + pub north_offset_deg: f64, +} + +impl Default for SphericalOptions { + fn default() -> Self { + Self { width_px: 8192, height_px: 2048, top_deg: 42.0, bottom_deg: -22.0, north_offset_deg: 0.0 } + } +} + +impl SphericalOptions { + /// Default size with a band that fits this profile: top a few degrees + /// above the highest obstruction, bottom at the source's bottom (≥ −90). + pub fn fitted(profile: &HorizonProfile, src_bottom_deg: f64) -> Self { + let top = (profile.max_alt() + 5.0).ceil().clamp(10.0, 90.0); + let bottom = src_bottom_deg.floor().clamp(-90.0, top - 1.0); + Self { top_deg: top, bottom_deg: bottom, ..Self::default() } + } +} + +/// Gray used below the edge where no photo covers the ground (≈ `.05`). +const GROUND_FILL: [u8; 4] = [13, 13, 13, 255]; + +/// Bilinear sample at fractional source position, skipping pixels without a +/// photo (alpha 0). `None` when no covered pixel contributes. +fn sample_rgb(src: &PanoramaBand, sx: f64, sy: f64) -> Option<[u8; 3]> { + let w = src.width as i64; + let h = src.height as i64; + let x0 = sx.floor(); + let y0 = sy.floor(); + let fx = sx - x0; + let fy = sy - y0; + let (x0, y0) = (x0 as i64, y0 as i64); + let mut acc = [0.0f64; 3]; + let mut wsum = 0.0; + for (dx, dy, wt) in [ + (0, 0, (1.0 - fx) * (1.0 - fy)), + (1, 0, fx * (1.0 - fy)), + (0, 1, (1.0 - fx) * fy), + (1, 1, fx * fy), + ] { + let x = (x0 + dx).rem_euclid(w); + let y = (y0 + dy).clamp(0, h - 1); + let i = ((y * w + x) * 4) as usize; + if src.rgba[i + 3] == 0 || wt <= 0.0 { + continue; + } + for c in 0..3 { + acc[c] += src.rgba[i + c] as f64 * wt; + } + wsum += wt; + } + if wsum < 1e-6 { + return None; + } + Some([ + (acc[0] / wsum).round() as u8, + (acc[1] / wsum).round() as u8, + (acc[2] / wsum).round() as u8, + ]) +} + +/// Render Stellarium's texture: left edge = true azimuth 90° (East), growing +/// to the right; the north offset is baked in by shifting columns. Pixels +/// above the profile edge get alpha 0 (sky); below it the photo, or a dark +/// fill where no photo exists. +pub fn render_panorama( + src: &PanoramaBand, + profile: &HorizonProfile, + opts: &SphericalOptions, +) -> Result, String> { + validate(src, opts)?; + let (w, h) = (opts.width_px as usize, opts.height_px as usize); + let src_range = src.top_deg - src.bottom_deg; + + // Per column: measured azimuth → source x and sky edge. + let cols: Vec<(f64, f64)> = (0..w) + .map(|x| { + let az_true = 90.0 + (x as f64 + 0.5) / w as f64 * 360.0; + let az = (az_true - opts.north_offset_deg).rem_euclid(360.0); + (az / 360.0 * src.width as f64 - 0.5, profile.sample(az)) + }) + .collect(); + + let mut out = vec![0u8; w * h * 4]; + for y in 0..h { + let alt = opts.top_deg - (y as f64 + 0.5) / h as f64 * (opts.top_deg - opts.bottom_deg); + let sy = (src.top_deg - alt) / src_range * src.height as f64 - 0.5; + let in_src = sy >= -0.5 && sy <= src.height as f64 - 0.5; + let mask_row = match src.sky_mask { + Some(m) if in_src => { + let my = (sy.round().max(0.0) as usize).min(src.height as usize - 1); + Some(&m[my * src.width as usize..(my + 1) * src.width as usize]) + } + _ => None, + }; + let row = &mut out[y * w * 4..(y + 1) * w * 4]; + for (x, &(sx, edge)) in cols.iter().enumerate() { + if alt > edge { + continue; // sky: stays transparent + } + if let Some(mr) = mask_row { + let mx = (sx.round() as i64).rem_euclid(src.width as i64) as usize; + if mr[mx] == crate::skymask::SKY { + continue; + } + } + let px = if in_src { sample_rgb(src, sx, sy) } else { None }; + let rgba = match px { + Some([r, g, b]) => [r, g, b, 255], + None => GROUND_FILL, + }; + row[x * 4..x * 4 + 4].copy_from_slice(&rgba); + } + } + Ok(out) +} + +fn validate(src: &PanoramaBand, opts: &SphericalOptions) -> Result<(), String> { + if src.width == 0 || src.height == 0 { + return Err("panorama source is empty".into()); + } + if src.rgba.len() < src.width as usize * src.height as usize * 4 { + return Err("panorama source buffer is smaller than width × height × 4".into()); + } + if let Some(m) = src.sky_mask { + if m.len() < src.width as usize * src.height as usize { + return Err("sky mask is smaller than the panorama source".into()); + } + } + if src.top_deg <= src.bottom_deg { + return Err("panorama source top must be above its bottom".into()); + } + if opts.width_px == 0 || opts.height_px == 0 { + return Err("output size must be positive".into()); + } + if !(opts.top_deg <= 90.0 && opts.bottom_deg >= -90.0 && opts.top_deg > opts.bottom_deg) { + return Err("output band must satisfy −90 ≤ bottom < top ≤ 90".into()); + } + Ok(()) +} + +/// Encode RGBA8 pixels as PNG. +pub fn encode_png(rgba: &[u8], width: u32, height: u32) -> Result, String> { + let mut buf = Vec::new(); + { + let mut enc = png::Encoder::new(&mut buf, width, height); + enc.set_color(png::ColorType::Rgba); + enc.set_depth(png::BitDepth::Eight); + let mut writer = enc.write_header().map_err(|e| e.to_string())?; + writer.write_image_data(rgba).map_err(|e| e.to_string())?; + } + Ok(buf) +} + +/// Photo landscape: `/landscape.ini`, `panorama.png`, `horizon.txt`. +pub fn export_spherical( + src: &PanoramaBand, + profile: &HorizonProfile, + meta: &LandscapeMeta, + opts: &SphericalOptions, +) -> Result, String> { + let pixels = render_panorama(src, profile, opts)?; + let png = encode_png(&pixels, opts.width_px, opts.height_px)?; + let rotated = profile.rotated(opts.north_offset_deg); + let dir = landscape_id(&meta.name); + Ok(vec![ + (format!("{dir}/landscape.ini"), spherical_ini(meta, opts.top_deg, opts.bottom_deg).into_bytes()), + (format!("{dir}/panorama.png"), png), + (format!("{dir}/horizon.txt"), horizon_txt(&rotated, &meta.name).into_bytes()), + ]) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn dms_matches_stellarium_examples() { + assert_eq!(dms(47.4979), "+47d29'52\""); + assert_eq!(dms(19.0402), "+19d2'25\""); + assert_eq!(dms(-33.8568), "-33d51'24\""); + assert_eq!(dms(10.99999), "+11d0'0\""); + } + + #[test] + fn ids_are_folder_safe() { + assert_eq!(landscape_id("Backyard pier"), "backyard_pier"); + assert_eq!(landscape_id(" Kiskőrös / dűlő #2 "), "kiskoros_dulo_2"); + assert_eq!(landscape_id("***"), "horizon"); + } + + #[test] + fn ini_without_location_has_no_location_section() { + let meta = LandscapeMeta { + name: "X".into(), + author: "A".into(), + app_name: "App".into(), + location: None, + }; + let ini = polygonal_ini(&meta); + assert!(!ini.contains("[location]")); + assert!(ini.ends_with("ground_color = .12,.12,.14\n")); + assert!(spherical_ini(&meta, 37.5, -20.0).contains("maptex_top = 37.5\nmaptex_bottom = -20\n")); + } + + #[test] + fn unknown_elevation_is_left_out() { + let meta = LandscapeMeta { + name: "X".into(), + author: "A".into(), + app_name: "App".into(), + location: Some(Location { lat_deg: 47.5, lon_deg: 19.0, elev_m: None }), + }; + let ini = polygonal_ini(&meta); + assert!(ini.contains("latitude = +47d30'0\"")); + assert!(!ini.contains("altitude")); + } + + /// Source band where every column's red channel encodes its azimuth. + fn az_coded_band(w: u32, h: u32) -> Vec { + let mut v = vec![0u8; (w * h * 4) as usize]; + for y in 0..h { + for x in 0..w { + let i = ((y * w + x) * 4) as usize; + v[i] = ((x as f64 + 0.5) / w as f64 * 360.0 / 2.0) as u8; // az/2 + v[i + 1] = 100; + v[i + 3] = 255; + } + } + v + } + + #[test] + fn east_is_the_left_edge_and_sky_is_transparent() { + let (sw, sh) = (720, 120); + let src_px = az_coded_band(sw, sh); + let src = PanoramaBand { rgba: &src_px, width: sw, height: sh, top_deg: 90.0, bottom_deg: -30.0, sky_mask: None }; + let profile = HorizonProfile::flat(10.0); + let opts = SphericalOptions { width_px: 360, height_px: 64, top_deg: 42.0, bottom_deg: -22.0, north_offset_deg: 0.0 }; + let out = render_panorama(&src, &profile, &opts).unwrap(); + let px = |x: usize, y: usize| &out[(y * 360 + x) * 4..(y * 360 + x) * 4 + 4]; + + // Row 0 (42°) is above the 10° edge → transparent. + assert_eq!(px(0, 0)[3], 0); + // Bottom row is ground: photo, opaque. + let bottom = 63; + assert_eq!(px(0, bottom)[3], 255); + // Column 0 ≈ azimuth 90 (red = 45), 25 % ≈ 180 (S), 75 % ≈ 0/360 (N). + assert!((px(0, bottom)[0] as i32 - 45).abs() <= 1); + assert!((px(90, bottom)[0] as i32 - 90).abs() <= 1); + assert!((px(180, bottom)[0] as i32 - 135).abs() <= 1); + let n = px(271, bottom)[0] as i32; // just right of north + assert!(n <= 2, "north column red = {n}"); + } + + #[test] + fn north_offset_shifts_the_texture() { + let (sw, sh) = (720, 120); + let src_px = az_coded_band(sw, sh); + let src = PanoramaBand { rgba: &src_px, width: sw, height: sh, top_deg: 90.0, bottom_deg: -30.0, sky_mask: None }; + let profile = HorizonProfile::flat(10.0); + let base = SphericalOptions { width_px: 360, height_px: 64, ..SphericalOptions::default() }; + let shifted = SphericalOptions { north_offset_deg: 20.0, ..base }; + let a = render_panorama(&src, &profile, &base).unwrap(); + let b = render_panorama(&src, &profile, &shifted).unwrap(); + let red = |v: &[u8], x: usize| v[(63 * 360 + x) * 4] as i32; + // Measured azimuth 110 (red 55) sits at column 20 before, column 40 after. + assert!((red(&a, 20) - 55).abs() <= 1); + assert!((red(&b, 40) - 55).abs() <= 1); + } + + #[test] + fn sky_mask_holes_below_the_edge_are_transparent() { + let (sw, sh) = (360u32, 120u32); + let src_px = vec![90u8; (sw * sh * 4) as usize]; + let mut mask = vec![crate::skymask::GROUND; (sw * sh) as usize]; + // Sky hole at azimuth 180–190°, altitude 0–10° (rows 80–90 of +90…−30). + for y in 80..90 { + for x in 180..190 { + mask[y * sw as usize + x] = crate::skymask::SKY; + } + } + let src = PanoramaBand { rgba: &src_px, width: sw, height: sh, top_deg: 90.0, bottom_deg: -30.0, sky_mask: Some(&mask) }; + let opts = SphericalOptions { width_px: 360, height_px: 120, top_deg: 90.0, bottom_deg: -30.0, north_offset_deg: 0.0 }; + let out = render_panorama(&src, &HorizonProfile::flat(30.0), &opts).unwrap(); + // Output column for azimuth 185 = (185 − 90) = 95; row for 5° = 85. + assert_eq!(out[(85 * 360 + 95) * 4 + 3], 0); + assert_eq!(out[(85 * 360 + 120) * 4 + 3], 255); + } + + #[test] + fn ground_without_photo_is_filled_not_transparent() { + let (sw, sh) = (36, 12); + let src_px = vec![0u8; (sw * sh * 4) as usize]; // no photo anywhere + let src = PanoramaBand { rgba: &src_px, width: sw, height: sh, top_deg: 30.0, bottom_deg: -10.0, sky_mask: None }; + let profile = HorizonProfile::flat(5.0); + let opts = SphericalOptions { width_px: 64, height_px: 32, top_deg: 40.0, bottom_deg: -40.0, north_offset_deg: 0.0 }; + let out = render_panorama(&src, &profile, &opts).unwrap(); + let last = &out[(31 * 64) * 4..(31 * 64) * 4 + 4]; + assert_eq!(last, &GROUND_FILL); + } + + #[test] + fn rejects_bad_bands() { + let px = vec![0u8; 16]; + let src = PanoramaBand { rgba: &px, width: 2, height: 2, top_deg: 10.0, bottom_deg: 0.0, sky_mask: None }; + let p = HorizonProfile::flat(0.0); + let bad = SphericalOptions { top_deg: 0.0, bottom_deg: 10.0, ..SphericalOptions::default() }; + assert!(render_panorama(&src, &p, &bad).is_err()); + let short = PanoramaBand { rgba: &px[..8], ..src }; + assert!(render_panorama(&short, &p, &SphericalOptions::default()).is_err()); + } + + #[test] + fn png_has_signature_and_size() { + let png = encode_png(&[255, 0, 0, 255, 0, 0, 0, 0], 2, 1).unwrap(); + assert_eq!(&png[..8], &[0x89, b'P', b'N', b'G', 0x0d, 0x0a, 0x1a, 0x0a]); + assert_eq!(u32::from_be_bytes([png[16], png[17], png[18], png[19]]), 2); + } +} diff --git a/core/src/zip.rs b/core/src/zip.rs new file mode 100644 index 0000000..10627c0 --- /dev/null +++ b/core/src/zip.rs @@ -0,0 +1,96 @@ +//! Minimal, deterministic zip writer (STORE, no compression). +//! +//! Exports are a few text files plus an already-deflated PNG, so compression +//! would gain nothing. Timestamps are fixed (1980-01-01) so output is +//! byte-stable for golden tests. + +/// Build a zip archive from (path, contents) entries, in the given order. +/// Paths use `/` separators and are stored as UTF-8. +pub fn zip(files: &[(String, Vec)]) -> Vec { + const DOS_TIME: u16 = 0; + const DOS_DATE: u16 = (1 << 5) | 1; // 1980-01-01 + const FLAG_UTF8: u16 = 1 << 11; + + let mut out = Vec::new(); + let mut central = Vec::new(); + + for (name, data) in files { + let offset = out.len() as u32; + let crc = crc32fast::hash(data); + let size = data.len() as u32; + let name_b = name.as_bytes(); + + // Local file header + out.extend_from_slice(&0x0403_4b50u32.to_le_bytes()); + out.extend_from_slice(&20u16.to_le_bytes()); // version needed + out.extend_from_slice(&FLAG_UTF8.to_le_bytes()); + out.extend_from_slice(&0u16.to_le_bytes()); // method: store + out.extend_from_slice(&DOS_TIME.to_le_bytes()); + out.extend_from_slice(&DOS_DATE.to_le_bytes()); + out.extend_from_slice(&crc.to_le_bytes()); + out.extend_from_slice(&size.to_le_bytes()); + out.extend_from_slice(&size.to_le_bytes()); + out.extend_from_slice(&(name_b.len() as u16).to_le_bytes()); + out.extend_from_slice(&0u16.to_le_bytes()); // extra len + out.extend_from_slice(name_b); + out.extend_from_slice(data); + + // Central directory entry + central.extend_from_slice(&0x0201_4b50u32.to_le_bytes()); + central.extend_from_slice(&20u16.to_le_bytes()); // version made by + central.extend_from_slice(&20u16.to_le_bytes()); // version needed + central.extend_from_slice(&FLAG_UTF8.to_le_bytes()); + central.extend_from_slice(&0u16.to_le_bytes()); + central.extend_from_slice(&DOS_TIME.to_le_bytes()); + central.extend_from_slice(&DOS_DATE.to_le_bytes()); + central.extend_from_slice(&crc.to_le_bytes()); + central.extend_from_slice(&size.to_le_bytes()); + central.extend_from_slice(&size.to_le_bytes()); + central.extend_from_slice(&(name_b.len() as u16).to_le_bytes()); + central.extend_from_slice(&0u16.to_le_bytes()); // extra + central.extend_from_slice(&0u16.to_le_bytes()); // comment + central.extend_from_slice(&0u16.to_le_bytes()); // disk start + central.extend_from_slice(&0u16.to_le_bytes()); // internal attrs + central.extend_from_slice(&0u32.to_le_bytes()); // external attrs + central.extend_from_slice(&offset.to_le_bytes()); + central.extend_from_slice(name_b); + } + + let cd_offset = out.len() as u32; + let cd_size = central.len() as u32; + let n = files.len() as u16; + out.extend_from_slice(¢ral); + // End of central directory + out.extend_from_slice(&0x0605_4b50u32.to_le_bytes()); + out.extend_from_slice(&0u16.to_le_bytes()); + out.extend_from_slice(&0u16.to_le_bytes()); + out.extend_from_slice(&n.to_le_bytes()); + out.extend_from_slice(&n.to_le_bytes()); + out.extend_from_slice(&cd_size.to_le_bytes()); + out.extend_from_slice(&cd_offset.to_le_bytes()); + out.extend_from_slice(&0u16.to_le_bytes()); + out +} + +#[cfg(test)] +mod tests { + use super::zip; + + #[test] + fn layout_is_valid_and_deterministic() { + let files = vec![ + ("a/landscape.ini".to_string(), b"[landscape]\n".to_vec()), + ("a/horizon.txt".to_string(), b"0 1.0\n".to_vec()), + ]; + let z = zip(&files); + assert_eq!(z, zip(&files)); + assert_eq!(&z[..4], &[0x50, 0x4b, 0x03, 0x04]); + let eocd = &z[z.len() - 22..]; + assert_eq!(&eocd[..4], &[0x50, 0x4b, 0x05, 0x06]); + assert_eq!(u16::from_le_bytes([eocd[10], eocd[11]]), 2); + // Stored data is readable at the local header's payload offset. + let name_len = u16::from_le_bytes([z[26], z[27]]) as usize; + let start = 30 + name_len; + assert_eq!(&z[start..start + 12], b"[landscape]\n"); + } +} diff --git a/core/tests/golden.rs b/core/tests/golden.rs new file mode 100644 index 0000000..349e834 --- /dev/null +++ b/core/tests/golden.rs @@ -0,0 +1,101 @@ +//! Golden tests against the designer's sample outputs in docs/examples/. + +use sfzenith_core::hrz::{export_hrz, parse_hrz, HrzOptions}; +use sfzenith_core::session::{parse_sensors, Session}; +use sfzenith_core::stellarium::{ + export_polygonal, export_spherical, horizon_txt, polygonal_ini, spherical_ini, LandscapeMeta, + Location, PanoramaBand, SphericalOptions, +}; +use sfzenith_core::zip::zip; +use std::path::PathBuf; + +fn example(rel: &str) -> String { + let p = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../docs/examples").join(rel); + std::fs::read_to_string(&p).unwrap_or_else(|e| panic!("{}: {e}", p.display())) +} + +fn meta() -> LandscapeMeta { + LandscapeMeta { + name: "Backyard pier".into(), + author: "[AUTHOR]".into(), + app_name: "[APP NAME]".into(), + location: Some(Location { lat_deg: 47.4979, lon_deg: 19.0402, elev_m: Some(112.0) }), + } +} + +#[test] +fn hrz_matches_example() { + // horizon.txt is the plain edge; the NINA file is the same edge + 2°. + let edge = parse_hrz(&example("stellarium-spherical/horizon.txt")).unwrap(); + let hrz = export_hrz(&edge, HrzOptions::default()); + assert_eq!(hrz, example("nina/backyard-pier.hrz")); +} + +#[test] +fn horizon_txt_matches_example() { + let text = example("stellarium-spherical/horizon.txt"); + let edge = parse_hrz(&text).unwrap(); + assert_eq!(horizon_txt(&edge, "Backyard pier"), text); + assert_eq!(example("stellarium-polygonal/horizon.txt"), text); +} + +#[test] +fn landscape_inis_match_examples() { + assert_eq!(spherical_ini(&meta(), 42.0, -22.0), example("stellarium-spherical/landscape.ini")); + assert_eq!(polygonal_ini(&meta()), example("stellarium-polygonal/landscape.ini")); +} + +#[test] +fn polygonal_export_layout() { + let edge = parse_hrz(&example("stellarium-polygonal/horizon.txt")).unwrap(); + let files = export_polygonal(&edge, &meta(), 0.0); + let names: Vec<&str> = files.iter().map(|f| f.0.as_str()).collect(); + assert_eq!(names, ["backyard_pier_outline/landscape.ini", "backyard_pier_outline/horizon.txt"]); + assert_eq!(files[1].1, example("stellarium-polygonal/horizon.txt").into_bytes()); + let z = zip(&files); + assert_eq!(z, zip(&export_polygonal(&edge, &meta(), 0.0)), "zip must be byte-stable"); +} + +#[test] +fn spherical_export_layout() { + let edge = parse_hrz(&example("stellarium-spherical/horizon.txt")).unwrap(); + let (w, h) = (360u32, 120u32); + let px = vec![128u8; (w * h * 4) as usize]; + let band = PanoramaBand { rgba: &px, width: w, height: h, top_deg: 90.0, bottom_deg: -30.0, sky_mask: None }; + let opts = SphericalOptions { width_px: 512, height_px: 128, ..SphericalOptions::default() }; + let files = export_spherical(&band, &edge, &meta(), &opts).unwrap(); + let names: Vec<&str> = files.iter().map(|f| f.0.as_str()).collect(); + assert_eq!( + names, + ["backyard_pier/landscape.ini", "backyard_pier/panorama.png", "backyard_pier/horizon.txt"] + ); + assert_eq!(files[0].1, example("stellarium-spherical/landscape.ini").into_bytes()); + assert_eq!(&files[1].1[1..4], b"PNG"); +} + +#[test] +fn fitted_band_tracks_the_profile() { + let edge = parse_hrz(&example("stellarium-spherical/horizon.txt")).unwrap(); + let o = SphericalOptions::fitted(&edge, -30.0); + assert_eq!((o.top_deg, o.bottom_deg), (31.0, -30.0)); // max edge 26.0 + 5 + assert_eq!((o.width_px, o.height_px), (8192, 2048)); +} + +#[test] +fn session_example_roundtrips() { + let text = example("session/session.json"); + let s = Session::from_json(&text).unwrap(); + assert_eq!(s.site.name, "Backyard pier"); + assert_eq!(s.frames.len(), 2); + assert_eq!(s.device.camera.fov_source, "assumed"); + assert_eq!(Session::from_json(&s.to_json()).unwrap(), s); + // Every top-level key of the example survives a save. + let a: serde_json::Value = serde_json::from_str(&text).unwrap(); + let b: serde_json::Value = serde_json::from_str(&s.to_json()).unwrap(); + let keys = |v: &serde_json::Value| v.as_object().unwrap().keys().cloned().collect::>(); + assert_eq!(keys(&a), keys(&b)); + + let sensors = parse_sensors(&example("session/sensors.jsonl")).unwrap(); + assert_eq!(sensors.len(), 2); + assert_eq!(sensors[1].mag_heading_deg, Some(354.5)); +} diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md new file mode 100644 index 0000000..e89ad17 --- /dev/null +++ b/docs/ARCHITECTURE.md @@ -0,0 +1,87 @@ +# Architecture + +Goal: develop and tune almost everything in a desktop browser without redeploying to the phone. + +``` +┌────────────── UI (web stack, same in browser and in the app's webview) ──────────────┐ +│ Sites · Setup · Capture · Review · Export │ +└───────────────▲───────────────────────────────────────────────▲──────────────────────┘ + │ frames + orientation samples │ results, previews, files +┌───────────────┴──────────────┐ ┌───────────────┴──────────────────────┐ +│ Platform adapter (thin) │ │ WebAssembly core (pure, no I/O) │ +│ web: getUserMedia, │ ───────────▶ │ orientation + north, targeting, │ +│ DeviceOrientation │ │ sky mask, edge/profile, stitching, │ +│ native (later, optional): │ │ exporters (.hrz, landscape.ini, │ +│ AVFoundation/CoreMotion│ │ horizon.txt, PNG, zip) │ +│ CameraX/rotation vector│ │ │ +│ replay: recorded session │ │ │ +└──────────────────────────────┘ └──────────────────────────────────────┘ +``` + +## Why this split + +- Wasm cannot reach hardware by itself. The host always supplies camera frames and sensor data. Keep that layer as thin as possible. +- **Replay adapter**: a recorded session (see below) is fed into the same core API. Record one or two sweeps on the phone, then iterate on detection, stitching and export entirely in a desktop browser and in unit tests. +- Start with the **web adapter only** (PWA or webview). Add native camera adapters only if needed. + +### Known web limitations + +- **No reliable exposure or white-balance lock** across frames, so seams in the Stellarium panorama are possible. Mitigate with per-frame gain compensation in the stitcher. The NINA horizon is barely affected. +- **No camera intrinsics or FOV** from the browser. Use a per-model FOV table, a one-time calibration, or let the stitcher refine FOV from frame overlaps. Store the source in `device.camera.fovSource`. +- **Heading on iOS web**: `webkitCompassHeading` (magnetic, with `webkitCompassAccuracy`) after `DeviceOrientationEvent.requestPermission()`. **Chromium/Android**: `deviceorientationabsolute`, or `AbsoluteOrientationSensor` where available. Accuracy of a few degrees is acceptable because of the safety margin. +- Wasm threads need cross-origin isolation (COOP/COEP headers). Keep a single-threaded path that works without them. + +## Core API (language-neutral sketch; e.g. Rust + wasm-bindgen, exposed to JS) + +```ts +type Quat = [w: number, x: number, y: number, z: number]; // device→world, world = ENU (x East, y North, z Up) + +interface SessionMeta { site: {name; latDeg; lonDeg; elevM}; camera: {widthPx; heightPx; hfovDeg?; vfovDeg?}; + plannedFrames: number; targetTiltDeg: number; dateIso: string } + +createSession(meta: SessionMeta): Session +session.declinationDeg(): number // WMM at site + date +session.pushSensor(t: number, q: Quat, magHeadingDeg?: number, accDeg?: number): void +session.target(now: {t; q}): { dAzDeg; dTiltDeg; steady: boolean; ready: boolean; frameIndex: number } +session.addFrame(t: number, rgba: Uint8Array, w: number, h: number): FrameResult + // FrameResult { index; coverage: {azFrom; azTo; altBottom; altTop}; + // edgePreview: Float32Array /* alt per screen column for the live line */; + // touchesTop: {azDeg} | null } +session.removeLastFrame(): void +session.coverage(): { coveredDeg: number; cells: boolean[] } + +session.applyMaskEdits(edits: MaskEdit[]): void // brush strokes in (az, alt) space, sky|ground, radiusDeg +session.horizon(opts?: { stepDeg?: 1; smooth?: 'off'|'light'|'strong' }): Float32Array // alt per az +session.setNorthOffset(deg: number): void + +exportHrz(profile, { marginDeg: 2, stepDeg: 1 }): string +exportStellariumSpherical(session, { widthPx: 8192, heightPx: 2048, topDeg, bottomDeg }): Map // landscape.ini, panorama.png, horizon.txt +exportStellariumPolygonal(profile, meta): Map +zip(files): Uint8Array +``` + +Rules: deterministic, no clocks, no randomness, no I/O. All times are passed in. Large buffers cross the boundary as typed arrays. + +## Algorithms (first versions; keep them simple) + +**North.** heading_true = heading_magnetic + declination + userOffset. If the platform gives a full rotation quaternion, use it for pitch and roll. Optionally (setting) lock heading to the gyro after the first second (game rotation vector) to avoid drift from nearby steel, with a loop-closure check when the sweep returns to the first frame. Spread the residual linearly over the frames. + +**Auto-shutter.** Target azimuths every 360/N (N = 24, i.e. 15° steps; large overlap because stitching relies on sensor orientation, not feature matching). Capture when |dAz| < 2°, |tilt − target| < 5°, roll < 5° and angular speed < 5°/s for 300 ms. Target tilt +10° in portrait. With a vertical FOV of about 64°, that covers about −22…+42°. + +**Sky mask (per frame).** Classic first: a per-pixel sky score from brightness, blueness (b − r) and low local gradient. Seed from the top rows, flood-fill or connected component from the top, then morphological cleanup. Treat sky seen through branches conservatively (the edge is the **highest** non-sky pixel per column). An ML segmenter (e.g. ONNX Runtime Web) only if this proves insufficient. + +**Edge → profile.** For each output azimuth column, take the highest altitude of non-sky across all frames covering it (after projection). Resample to 1° steps, then apply optional smoothing (median over ±1–2°). The margin is added only at NINA export. + +**Top-touch detection.** If non-sky reaches a frame's top row over more than ~1° of azimuth, report `touchesTop` with that azimuth and propose the extra higher frame. + +**Stitching (Stellarium only).** Output an equirectangular band, 8192 px over 360° horizontally, `heightPx` over [bottomDeg, topDeg]. For each output pixel: compute the world direction, choose the frame(s) whose centre is closest, project with the frame quaternion and pinhole intrinsics, sample bilinearly, and feather-blend in overlaps. Compensate per-frame gain from overlap means. Alpha = 0 where the final mask says sky. Column 0 = azimuth 90° (East); see FORMATS.md. + +## Recorded session bundle (`examples/session/`) + +A folder (or zip) the phone can export and the desktop can replay: + +- `session.json`: meta, device and camera (with `fovSource`), site, north settings, capture plan, frame list (`id`, `file`, `t`, `q`, heading accuracy), mask edits, optional result. +- `frames/fNNN.jpg`: the captured frames. +- `sensors.jsonl`: the continuous orientation stream (`t`, `q`, `magHeadingDeg`, `headingAccuracyDeg`), around 60 Hz. + +Use the same bundle as unit-test fixtures (expected profile within ±0.5°, exported files byte-stable). diff --git a/docs/FORMATS.md b/docs/FORMATS.md new file mode 100644 index 0000000..bbc0dbc --- /dev/null +++ b/docs/FORMATS.md @@ -0,0 +1,79 @@ +# Output formats + +Azimuth everywhere in the app: degrees, 0 = true north, 90 = east, clockwise. Altitude: degrees above the mathematical horizon. + +## NINA custom horizon (`.hrz`) + +Source: N.I.N.A. docs, Options › General, "Custom Horizon" (https://nighttime-imaging.eu/docs/master/site/tabs/options/general/), plus community guides. + +- Plain text. One `azimuth altitude` pair per line, separated by a space. +- Optional comment header line, as in the official example: `# Az Alt`. +- At least 2 pairs. Gaps between azimuths are interpolated by NINA. +- Azimuths ascending, unique, starting at 0. For a vertical edge use two consecutive azimuths (e.g. `45 47` then `46 33`). +- Loaded in NINA under Options › General › Astrometry Settings › Custom Horizon. It affects altitude charts (Sky Atlas, Framing) and the advanced sequencer's horizon conditions. + +Export rules for this app: +- 1° steps from 0 to 360 inclusive (`360` repeats the `0` value, closing the loop; harmless and avoids relying on wrap-around interpolation). +- Altitude = detected edge + safety margin, one decimal, **`.` decimal separator** (invariant culture), clamped to [0, 90]. +- `\n` line endings are fine; `\r\n` is acceptable too. +- Example: `examples/nina/backyard-pier.hrz`. +- Not verified: whether NINA accepts more comment lines than the header, or comma decimals on non-English Windows locales. Test once in NINA before release. + +## Stellarium landscapes + +Verified against `src/core/modules/Landscape.cpp` (Stellarium master, GitHub) and the `LandscapeSpherical` class docs (https://stellarium.org/doc/head/classLandscapeSpherical.html). + +A landscape is a folder (installed from a .zip via Sky and viewing options › Landscape › Add/remove landscapes) containing `landscape.ini` plus its files. + +### Spherical (photo panorama), the main Stellarium output + +```ini +[landscape] +name = Backyard pier +author = ... +description = ... +type = spherical +maptex = panorama.png +maptex_top = 42 ; altitude (deg) of the image's top row, default 90 +maptex_bottom = -22 ; altitude (deg) of the image's bottom row, default -90 +angle_rotatez = 0 ; deg; keep 0 and bake north into the image instead (see below) +bottom_cap_color = .05,.05,.05 ; fills below maptex_bottom; without it that area is not drawn +polygonal_horizon_list = horizon.txt ; optional but recommended (exact horizon for Stellarium's logic) +polygonal_angle_rotatez = 0 + +[location] +planet = Earth +latitude = +47d29'52" +longitude = +19d2'25" +altitude = 112 +``` + +Texture mapping, derived from the spherical fragment shader: +- Horizontal: `s = atan2(x, y) / 2π` in Stellarium's alt-az frame. **Left edge (s = 0) = azimuth 90° (East)**; azimuth increases to the right: South at 25 %, West at 50 %, North at 75 % of the width. +- Vertical: top row = `maptex_top`, bottom row = `maptex_bottom`, linear in altitude, so a cropped band is fine and the sky above it does not need to be photographed. +- Pixels outside [bottom, top] are discarded. Transparent pixels (alpha = 0) show the sky. +- Texture sizes should be powers of two; stretching is allowed because the top and bottom keys define the geometry. Use **8192 × 2048 RGBA PNG**. +- Bake the north offset into the image by shifting columns (offset × 8192/360 px) instead of using `angle_rotatez`. That avoids sign-convention ambiguity. If `angle_rotatez` is used later, verify its sign empirically. + +### Polygonal (outline only) + +```ini +[landscape] +name = Backyard pier (outline) +type = polygonal +polygonal_horizon_list = horizon.txt +polygonal_horizon_list_mode = azDeg_altDeg ; default +polygonal_angle_rotatez = 0 +ground_color = .12,.12,.14 +``` + +`horizon.txt`: +- One `azimuth altitude` pair per line, whitespace-separated. Lines starting with `#` are comments; empty lines are ignored. +- In `azDeg_altDeg` mode the azimuth is **compass azimuth** (N = 0, E = 90). Stellarium converts it internally (`180 − rotate − az`). +- Write the plain detected edge here (no NINA safety margin). + +Other modes exist (`azDeg_zdDeg`, `azRad_altRad`, `azRad_zdRad`, `azGrad_zdGrad`) but are not needed. + +### Location section + +Optional. `latitude` and `longitude` accept Stellarium's DMS strings (`+47d29'52"`) or decimal degrees. `altitude` is in metres. If present, Stellarium can switch the observer location when the landscape is selected. diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..7c49f54 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,44 @@ +# Horizon survey app — design handoff + +A cross-platform phone app that makes **artificial horizon files** for astrophotography software: + +- **NINA custom horizon (`.hrz`)**: the primary output. Most users (and the author) image with NINA. +- **Stellarium landscape**: a 360° panorama with transparent sky (spherical), or a horizon outline only (polygonal), for other users. + +The user stands where the telescope stands and turns once around with the phone. The app shoots a band of photos around the horizon automatically, detects sky vs. obstruction, lets the user fix the mask, then exports. + +Design canvas (interactive, same account): https://claude.ai/code/artifact/b39ed0ec-bcdd-4582-9cf6-2d98f4ec0d56 + +## Read in this order + +1. `SPEC.md`: screens, behaviour, states and copy, screen by screen (with PNGs). +2. `ARCHITECTURE.md`: WebAssembly core, platform adapters, core API, recorded session format, algorithms. +3. `FORMATS.md`: exact output formats, checked against the Stellarium source and NINA docs. +4. `design/tokens.json`: colors, type, radii, spacing. +5. `examples/`: generated sample outputs and a sample recorded session. + +## Contents + +``` +README.md +SPEC.md +ARCHITECTURE.md +FORMATS.md +design/ + tokens.json + screens/*.png rendered screens, 390x844 @2x + source/*.dc.html design source per screen (see design/source/README.md) + source/README.md +examples/ + nina/backyard-pier.hrz + stellarium-spherical/ landscape.ini, horizon.txt, panorama placeholder note + stellarium-polygonal/ landscape.ini, horizon.txt + session/ session.json + sensors.jsonl (recorded capture bundle format) +``` + +## Notes for the implementing agent + +- The design files are **reference, not production code**. Rebuild the UI in the project's own UI stack and match the PNGs and tokens. +- All sample data is illustrative: coordinates, the horizon profile and frame counts. `[APP NAME]`, `[AUTHOR]`, `[LAT]`, `[LON]` and `[ELEV]` are placeholders. +- Accuracy goal: about ±2–3° in azimuth, absorbed by a user-set safety margin (default +2°). Star or landmark alignment was explored and **dropped as unnecessary**. North comes from compass + declination, plus a manual north offset in Review. +- Keep the core free of I/O so it runs identically in a desktop browser (development, replaying recorded sessions) and on the phone. diff --git a/docs/SPEC.md b/docs/SPEC.md new file mode 100644 index 0000000..dd60d28 --- /dev/null +++ b/docs/SPEC.md @@ -0,0 +1,92 @@ +# Product and screen spec + +UI language: English (prepare for localisation; Hungarian likely next). Dark UI everywhere: capture happens in daylight but the app is also used next to the telescope at dusk. Phone portrait only. No fake status bar: respect safe areas. + +## Flow + +``` +Sites ──New survey──▶ Setup ──Start capture──▶ Capture ──Finish──▶ Review ──Export──▶ Export + ▲ └─tap finished site──────────────────────────────────────────▶ Review + │ └─tap in-progress site──────────────▶ Capture (resume) + └──────────────── close (X) from Capture / back from Setup +``` + +Data model (per site): name, location (lat, lon, elevation, GPS accuracy), north settings (declination, user offset), recorded session (frames + sensor stream), sky mask edits, derived horizon profile (alt per 1° az), export settings (margin, chosen formats). + +--- + +## 1 · Sites (`design/screens/01-sites.png`) + +Home screen listing surveyed sites. + +- Header: title "Horizons", subtitle "Artificial horizons for NINA & Stellarium", settings icon button (44 px). +- Overline "SITES · n". +- **Site card** (tap opens Review for complete sites, Capture to resume in-progress ones): + - Name (19/600), coordinates in mono (12), chevron. + - Horizon sparkline: area + line of the profile, 0–40° altitude, x = azimuth 0–360 with N E S W N labels under it. + - Footer: "24 frames · full 360°" and chips for formats already exported (NINA, Stellarium) with a check icon. + - In-progress variant: "In progress" amber badge, sparkline only up to the covered azimuth with the remainder dashed, progress bar, "210° of 360° covered", "Continue survey" link. +- Bottom, fixed: primary "New horizon survey" (56 px, amber) and secondary "Import existing .hrz" (48 px, outline). Import parses a NINA file into a profile-only site (no panorama). + +## 2 · Setup (`02-setup.png`) + +- Back, title "New survey". +- Site name text input (prefilled with a suggestion). +- Location row: pin icon, lat/lon in mono, "112 m · GPS ±4 m", Refresh button. Allow manual edit on long-press (not drawn). +- North row: compass icon, "North from compass", "Declination +5.6° applied automatically". Declination comes from a magnetic model (WMM) evaluated at the GPS position and date, inside the core. +- "How to capture" illustration (ring around the phone, highlighted band, "sky not needed") and three numbered steps: + 1. Stand where the telescope stands. + 2. Hold the phone upright, tilted slightly above the horizon. + 3. Turn once around slowly. Frames are taken automatically. +- Bottom primary: "Start capture". Request camera, motion/orientation and location permissions here (iOS web requires a user gesture for `DeviceOrientationEvent.requestPermission()`). + +## 3 · Capture (`03-capture.png`) + +Full-bleed camera preview (top 610 px), control panel below. + +- Top bar over the camera: close (X → back to Sites, keeps progress), title chip "Backyard pier / frame 10 of 24", undo button (retake last frame). +- **Panorama progress strip** under the top bar: 24 cells over 0–360° with N E S W N labels. Captured part shows a mini preview of the detected silhouette; the next cell is outlined in the accent colour. +- Hint chip: "Turn right until the dot is in the circle" (auto mode) or "Line up the dot, then tap the shutter" (manual mode). +- **Live sky edge**: the detected sky/obstruction boundary is drawn as an accent line on the preview, so the user sees what will become transparent. +- **Targeting**: fixed white circle in the centre. The accent dot shows where the next frame's target is, relative to the current orientation, with a dashed leader. When the dot is inside the circle, the tilt is within tolerance and the phone is steady, the frame is taken automatically (see ARCHITECTURE: auto-shutter). +- 0° horizon reference line with label (dashed). +- **"Tree reaches the frame top at 125°"** warning bar with "Add higher shot": shown when obstruction touches the top edge of a frame. It asks for one extra frame at that azimuth tilted higher (about +35°). Coverage then extends upward locally. +- Readouts: HEADING (true, degrees), TILT (target +10°, blue when within tolerance), COVERS (vertical coverage of the current frame, e.g. "−22…+42°"). +- Controls: "Auto on/off" toggle (left), shutter (80 px ring, always usable manually), "Finish" (right, goes to Review; allowed with partial coverage, which is then shown as in-progress). +- Haptic tick on each auto capture. Keep the screen awake. + +## 4 · Review (`04a-review-nina-horizon.png`, `04b-review-panorama-mask.png`) + +Two tabs. "NINA horizon" is the default. + +**NINA horizon tab** +- Profile chart: x = azimuth 0–360 (N E S W N), y = altitude 0–40°. Filled area + solid accent line = detected sky edge. Dashed blue line = what is written to `.hrz` (edge + margin). +- Legend under the chart. +- **Safety margin** slider 0–5° in 0.5° steps (default +2.0°). Caption: "Keeps NINA targets clear of tree tips and compass error". Updates the dashed line live. + +**Panorama tab** +- Zoomed panorama (pan and pinch): checkered = transparent sky, photo = obstruction, accent line = edge. +- Overview strip of the whole 360° with the viewport outlined (drag it to navigate). +- Legend: "Transparent sky in Stellarium". +- Mask tools: "Auto edge" (default; tap re-runs detection locally), "Paint sky", "Paint ground". Brush shows as a dashed circle; brush size by pinch or a later setting. Strokes are stored as edits, not baked pixels, so detection can be re-run. + +**Both tabs** +- **North offset** row: −/+ in 0.5° steps, "Applies to .hrz and panorama". Rotates the whole result if a known object sits off. +- Primary "Export". + +## 5 · Export (`05a-export-hrz.png`, `05b-export-landscape-ini.png`) + +- Subtitle summarises settings: "Backyard pier · margin +2.0° · north offset 0.0°". +- Format cards (checkbox + title + extension badge + description), selected card has an accent border: + 1. **NINA custom horizon** `.hrz`, on by default. + 2. **Stellarium panorama** `.zip`, on by default if the panorama is complete: spherical landscape, 8192 × 2048 PNG with transparent sky. + 3. **Stellarium outline only** `.zip`, off by default: polygonal landscape. +- Preview with tabs `.hrz` / `landscape.ini` (mono, scrollable). +- Help text: "NINA: Options › General › Astrometry › Custom Horizon. Stellarium: install the .zip under Sky and viewing options › Landscape › Add/remove landscapes." +- Buttons: "Save" (to device files) and primary "Share n files" (system share sheet). + +## Copy and units + +- Degrees with one decimal in readouts and files (`137.4°`), azimuth 0–360 clockwise from true north. +- Use the minus sign `−` in UI, ASCII `-` in files. +- Numbers in IBM Plex Mono, everything else in Barlow. diff --git a/docs/SPECIFICATION.md b/docs/SPECIFICATION.md new file mode 100644 index 0000000..51dea6c --- /dev/null +++ b/docs/SPECIFICATION.md @@ -0,0 +1,85 @@ +# SkyContour (sfzenith) — projektállapot és döntések + +*Frissítve: 2026-10-23. Ez a fájl a v1.0-s (2026-07-16) specifikációt váltja.* + +## Irányadó dokumentumok + +A 2026-10-23-as designer-átadás az irányadó. Ha ez a fájl és az alábbiak ellentmondanak, az alábbiak nyernek: + +| Fájl | Tartalom | +|---|---| +| [README.md](README.md) | Az átadás áttekintése, olvasási sorrend | +| [SPEC.md](SPEC.md) | Képernyők (Sites → Setup → Capture → Review → Export), viselkedés, szövegek | +| [ARCHITECTURE.md](ARCHITECTURE.md) | WASM mag + vékony platform-adapterek, core API, algoritmusok, felvett session formátuma | +| [FORMATS.md](FORMATS.md) | `.hrz`, Stellarium spherical/polygonal pontos formátuma | +| [design/](design/) | Tokenek, képernyő-PNG-k (390×844 @2x), HTML forrás | +| [examples/](examples/) | Minta kimenetek és minta session; a core golden tesztjei ezekhez mérnek | + +Ez a fájl csak a projekt-szintű döntéseket, az aktuális állapotot és a nyitott kérdéseket tartja nyilván. + +## Döntések (változások a v1.0 spechez képest) + +1. **Felvétel módja.** A célkeresztes kézi pontfelvétel helyett automatikus exponálás: 24 kép, 15°-onként, +10°-os dőlésnél, stabil tartásnál. Képenként ég/akadály-felismerés, a horizont az oszloponkénti legmagasabb nem-ég pixel. A kézi exponálás tartalékként megmarad. +2. **Észak.** Iránytű + deklináció (WMM, a magban) + a felhasználó kézi észak-eltolása a Review képernyőn. A Nap- vagy csillag-alapú igazítás **elvetve**; a pontatlanságot a biztonsági ráhagyás nyeli el (alapból +2°, 0–5°). +3. **Stellarium export.** `type = spherical`, 8192×2048-as sáv `maptex_top`/`maptex_bottom` értékekkel (nem teljes gömb). A kép bal széle Kelet (90°). Az észak-eltolás a képbe van beégetve, `angle_rotatez = 0`. Mellé jön a csak körvonalas `polygonal` változat is. +4. **Orientáció.** Hosszabb távon kvaternió (ENU). A jelenlegi kód alpha/beta/gamma forgatásmátrixa (`core/src/projection.rs`) már teljes 3D-s, a régi `beta − 90` képlet nincs használatban. +5. **Platform.** A webes UI fut böngészőben és az app WebView-jában is. A Flutter csak vékony natív héj (Android kész). Natív kamera-adapter csak akkor lesz, ha a webes korlátok (pl. expozíció-zár) miatt muszáj. A v1.0 flutter_rust_bridge-terve ezzel **kikerült**. +6. **Fejlesztési mód.** A telefonon felvett session (`session.json` + `sensors.jsonl` + képkockák) asztali böngészőben és unit tesztekben visszajátszható. A felismerés és a varrás finomhangolása így telepítés nélkül megy. +7. **Név és azonosító** (2026-10-24): az app neve **SkyContour** (a „Horizon(s)” név mindkét áruházban túlzsúfolt, és két közvetlen iOS-versenytárs is használja). App-azonosító iOS-en és Androidon: `com.sagifer.skycontour`. A kódnév (sfzenith) belül marad: Dart-csomag, Rust crate, tárolókulcsok. + +## A v1.0-ból érvényben marad + +- **FOV-források sorrendje**: mért (élő kalibráció két átfedő képből, már működik) → eszköztábla → kézi → alapérték. A forrás a sessionben `device.camera.fovSource` néven tárolódik. +- **Secure origin**: kamera és szenzor csak HTTPS vagy `localhost` alól érhető el. Fejlesztéshez marad a `wasm/serve.py` / Vite basic-ssl; az Android-héj `http://localhost:8080`-at szolgál ki. +- **iOS 13+**: a `DeviceOrientationEvent.requestPermission()` csak felhasználói gesztusból hívható (a Setup „Start capture” gombján). +- **Offline működés**: a WMM-együtthatók és a betűtípusok (Barlow, IBM Plex Mono) a buildbe ágyazva, CDN nélkül. +- **Csak álló tájolás**, a képernyő ébren tartása felvétel közben. + +## Jelenlegi állapot + +**Kész** +- `core/` (`sfzenith-core`): tiszta Rust, web-sys nélkül, `cargo test`-tel natívan tesztelve. + - `profile`: 360 értékes horizontprofil, pontokból interpolálás (0/360 átfordulással), észak-eltolás, medián simítás. + - `hrz`: NINA export (ráhagyással) és import. + - `stellarium`: `landscape.ini` (spherical/polygonal), `horizon.txt`, panoráma-renderelés Stellarium-elrendezésbe (Kelet balra, ég átlátszó), PNG. + - `zip`: determinisztikus zip-író. + - `session`: a felvett session-csomag formátuma. + - `skymask`: ég/akadály-maszk a varrt sávon (ég-növesztés a fotók tetejéről, illesztési varratok és lebegő „felhők” kiszűrése), ecsetes javítások, ebből a horizontprofil, a lefedettség és a top-touch jelzés. + - `projection`, `fov`: a korábbi wasm crate-ből átköltöztetve. + - Golden tesztek: a kimenet bájtra egyezik a `docs/examples/` fájljaival. +- `wasm/`: vékony wasm-bindgen adapter (kamera, canvas, szenzorok) és a core exportjainak JS-felülete (`export_hrz`, `parse_hrz`, `export_stellarium_spherical`, `export_stellarium_polygonal`, `landscape_ini`, `profile_from_points`, …). +- `wasm/frontend/`: az új UI mind az 5 képernyővel a design tokenekkel, plusz Settings (FOV, szerző) és FOV-kalibráló képernyő. + - Capture: célzópont, automatikus exponálás, 24 cellás haladásjelző a varrt sávból, visszavonás, „Add higher shot”, ébren tartott képernyő. + - Review: profil + ráhagyás, panoráma ecsettel, észak-eltolás. + - Export: `.hrz`, Stellarium spherical/polygonal zip, előnézet, mentés/megosztás. + - Sites: lista, folytatás, `.hrz` import. + - Tárolás: a helyszínek localStorage-ban, a varrt sáv PNG-ként IndexedDB-ben. + - Asztali teszt: `?sim` (nyilakkal forgatható szimulált iránytű). +- Flutter iOS-héj: engedély-szövegek, álló tájolás, iOS 15+, mentés a Fájlok appba (natív csatorna), telepítés: `scripts/install_ios.sh`. +- Flutter Android-héj (`lib/main.dart`): WebView, kamera- és helyengedély, GPS a WebView-nak, mentés a Letöltések mappába (natív csatorna), megosztás (share_plus), álló tájolás, a rendszersávok mellett marad (SafeArea), a Vissza gomb a webes navigációt lépteti. Emulátoron (Pixel 9a, Android 16) végigpróbálva. +- Többnyelvűség: a felület a rendszer nyelvét követi (angol, spanyol, arab – jobbról balra –, német, magyar, lengyel, francia, olasz, szlovák), a Settingsben kézzel is választható; a natív tab bar és az iOS-engedélyszövegek is fordítva. Az exportált fájlok angolok maradnak. +- Közös natív szolgáltatások mindkét héjban: képernyő ébren tartása felvétel közben (wakelock_plus), rezgés exponáláskor, app-ikon (A · Skyline) és natív nyitókép. + +**Még nincs** +- Képenkénti ég-felismerés és élő égvonal a kameraképen: most a felismerés a kész, varrt sávon fut. +- Varrás erősítés-kiegyenlítéssel (a mostani sáv vetítés alapú, „utolsó nyer”). +- Dőlés (roll) ellenőrzése az automatikus exponálásnál. +- WMM deklináció. +- Session felvétele, mentése és visszajátszása. + +## Ütemterv + +| # | Tartalom | Állapot | +|---|---|---| +| 1 | Core: profil, `.hrz`, Stellarium exportok, session-formátum, golden tesztek | ✅ kész | +| 2 | Új React UI az 5 képernyővel, tokenekkel, a core exportokra kötve. A 4. pontból előrehozva: automatikus exponálás, ég-maszk a varrt sávon, ecsetes javítás, top-touch | ✅ kész (telefonon még tesztelendő) | +| 3 | Session felvétele a telefonon, visszajátszó adapter asztali böngészőben | következő | +| 4 | Ég-felismerés képenként, élő égvonal a kameraképen, finomhangolás valódi felvételeken | | +| 5 | WMM deklináció, varrás erősítés-kiegyenlítéssel | | +| 6 | Fordítások (en, es, ar, de, hu, pl, fr, it, sk – kész), polírozás (az iOS-héj előrehozva, kész) | | + +## Nyitott kérdések + +- **Stellarium zip telepítés**: a zip egy almappában (`/landscape.ini`) tartalmazza a fájlokat. Egyszer ki kell próbálni a Stellarium „Add/remove landscapes” telepítőjével. +- **NINA**: el kell fogadnia a `# Az Alt` fejlécet és a `.` tizedesjelet nem angol nyelvű Windowson is. Kiadás előtt egyszer tesztelni kell. +- **Panoráma memória**: a 8192×2048-as RGBA kép ~64 MB a wasm memóriában. Gyenge telefonon kellhet egy 4096×1024-es opció (az exporter már paraméterezhető). diff --git a/docs/design/screens/01-sites.png b/docs/design/screens/01-sites.png new file mode 100644 index 0000000..4414a5d Binary files /dev/null and b/docs/design/screens/01-sites.png differ diff --git a/docs/design/screens/02-setup.png b/docs/design/screens/02-setup.png new file mode 100644 index 0000000..a687dd8 Binary files /dev/null and b/docs/design/screens/02-setup.png differ diff --git a/docs/design/screens/03-capture.png b/docs/design/screens/03-capture.png new file mode 100644 index 0000000..8f450cf Binary files /dev/null and b/docs/design/screens/03-capture.png differ diff --git a/docs/design/screens/04a-review-nina-horizon.png b/docs/design/screens/04a-review-nina-horizon.png new file mode 100644 index 0000000..f2ffac7 Binary files /dev/null and b/docs/design/screens/04a-review-nina-horizon.png differ diff --git a/docs/design/screens/04b-review-panorama-mask.png b/docs/design/screens/04b-review-panorama-mask.png new file mode 100644 index 0000000..669d70c Binary files /dev/null and b/docs/design/screens/04b-review-panorama-mask.png differ diff --git a/docs/design/screens/05a-export-hrz.png b/docs/design/screens/05a-export-hrz.png new file mode 100644 index 0000000..3a6c646 Binary files /dev/null and b/docs/design/screens/05a-export-hrz.png differ diff --git a/docs/design/screens/05b-export-landscape-ini.png b/docs/design/screens/05b-export-landscape-ini.png new file mode 100644 index 0000000..2ed0a9f Binary files /dev/null and b/docs/design/screens/05b-export-landscape-ini.png differ diff --git a/docs/design/source/Capture.dc.html b/docs/design/source/Capture.dc.html new file mode 100644 index 0000000..8eaaccf --- /dev/null +++ b/docs/design/source/Capture.dc.html @@ -0,0 +1,146 @@ + + + + +Capture sweep + + + + + + + + +
+ + + + + + + + + + + + + 0° + + + + + +
+ + + +
+ Backyard pier + frame {{frames}} of 24 +
+ +
+ +
+ + + + + + + + + +
+ NESWN +
+
+ +
+ {{hint}} +
+ +
+ Tree reaches the frame top at 125° + +
+ +
+
+
+ HEADING + {{heading}} +
+
+ TILT + +9.6° +
+
+ COVERS + −22…+42° +
+
+ +
+
+ +
+
+ +
+ +
+
+
+
+ + + diff --git a/docs/design/source/Export.dc.html b/docs/design/source/Export.dc.html new file mode 100644 index 0000000..32790a3 --- /dev/null +++ b/docs/design/source/Export.dc.html @@ -0,0 +1,131 @@ + + + + +Export + + + + + + + + +
+
+ + + +
+

Export

+ Backyard pier · margin +2.0° · north offset 0.0° +
+
+ +
+ + + +
+ +
+ Preview +
+ + +
+
+ +
+ +
[landscape] +name = Backyard pier +type = spherical +maptex = panorama.png +maptex_top = 42 +maptex_bottom = -22 +angle_rotatez = 0 +bottom_cap_color = .05,.05,.05 + +[location] +latitude = +47d29'52" +longitude = +19d2'25"
+
+ +
0 14.0 +1 14.2 +2 14.4 +3 14.6 +4 14.8 +5 15.0 +⋮ +359 14.1
+
360 lines · azimuth altitude, +2° margin
+
+
+ +

NINA: Options › General › Astrometry › Custom Horizon. Stellarium: install the .zip under Sky and viewing options › Landscape › Add/remove landscapes.

+ +
+ + +
+
+
+ + + diff --git a/docs/design/source/Main.dc.html b/docs/design/source/Main.dc.html new file mode 100644 index 0000000..ae822f2 --- /dev/null +++ b/docs/design/source/Main.dc.html @@ -0,0 +1,115 @@ + + + + +Sites + + + + + + + + + + + + + diff --git a/docs/design/source/README.md b/docs/design/source/README.md new file mode 100644 index 0000000..c0375a2 --- /dev/null +++ b/docs/design/source/README.md @@ -0,0 +1,10 @@ +# Design source files + +One file per screen, exported from the design canvas. They are HTML with a small template layer, **not** runnable app code: + +- `{{ path }}`: value from the `renderVals()` method of the `Component` class at the bottom of each file. +- ``: repeat. ``: conditional. +- `onClick="{{handler}}"`: event binding. `data-props` on the script tag: design-time tweak defaults (e.g. accent colour). +- ``: navigation between screens in the prototype. + +Use them for exact sizes, spacing, colours and copy. The PNGs in `../screens` show the rendered result. `renderVals()` contains the sample data and the small chart geometry (profile and panorama paths) that the real app computes in the core. diff --git a/docs/design/source/Review.dc.html b/docs/design/source/Review.dc.html new file mode 100644 index 0000000..f92b095 --- /dev/null +++ b/docs/design/source/Review.dc.html @@ -0,0 +1,207 @@ + + + + +Review horizon + + + + + + + + +
+
+ + + +
+

Review horizon

+ 24 frames stitched · full 360° +
+
+ +
+ + +
+ + +
+ + + + + + + + + + 40° + 30° + 20° + 10° + 0° + + + N + E + S + W + N + + + + + +
+ Detected sky edge + Written to .hrz +
+
+
+
+ + +{{marginTxt}}° +
+ + Keeps NINA targets clear of tree tips and compass error +
+
+ + +
+ + + + + + + + + + + + + + + + + E 90° + 135° + S 180° + + +
+
+ + + + + + + + + Transparent sky in Stellarium + +
+
+ + + +
+
+ +
+
+ North offset + Applies to .hrz and panorama +
+ {{northTxt}} + + +
+ + +
+ + + + diff --git a/docs/design/source/Setup.dc.html b/docs/design/source/Setup.dc.html new file mode 100644 index 0000000..295b54e --- /dev/null +++ b/docs/design/source/Setup.dc.html @@ -0,0 +1,79 @@ + + + + +Survey setup + + + + + + + + +
+
+ + + +

New survey

+
+ +
+
+ + +
+ +
+ 47.4979° N · 19.0402° E + 112 m · GPS ±4 m +
+ +
+
+ +
+ North from compass + Declination +5.6° applied automatically +
+
+
+ +
+ How to capture + + + + + + sky not needed + +
    +
  1. Stand where the telescope stands.
  2. +
  3. Hold the phone upright, tilted slightly above the horizon.
  4. +
  5. Turn once around slowly. Frames are taken automatically.
  6. +
+
+
+ + +
+
+ + + diff --git a/docs/design/tokens.json b/docs/design/tokens.json new file mode 100644 index 0000000..d2f6b52 --- /dev/null +++ b/docs/design/tokens.json @@ -0,0 +1,47 @@ +{ + "color": { + "bg": "#0A0D13", + "surface": "#121722", + "surface2": "#1A2130", + "border": "#232C3B", + "borderStrong": "#263042", + "gridLine": "#1E2634", + "text": "#E8ECF2", + "text2": "#C9D2DE", + "muted": "#93A0B4", + "faint": "#7F8CA1", + "accent": "#F5B544", + "accentHover": "#FFD07A", + "onAccent": "#1A1204", + "info": "#6CC3E6", + "infoBg": "#12303C", + "warnBg": "#1E1A10", + "warnBorder": "#4A3A16", + "badgeAmberBg": "#2A2312", + "overlayScrim": "rgba(10,13,19,0.72)", + "transparentChecker": ["#1A2130", "#273042"], + "usage": { + "accent": "sky edge / horizon line, primary buttons, selection borders, targets", + "info": "safety-margin line (dashed), OK states, tilt in tolerance, coverage ring" + } + }, + "font": { + "ui": { "family": "Barlow", "fallback": "system-ui, sans-serif", "weights": [400, 500, 600, 700] }, + "numeric": { "family": "IBM Plex Mono", "fallback": "ui-monospace, monospace", "weights": [400, 500] } + }, + "type": { + "display": { "font": "ui", "size": 30, "weight": 700 }, + "title": { "font": "ui", "size": 22, "weight": 700 }, + "cardTitle": { "font": "ui", "size": 19, "weight": 600 }, + "body": { "font": "ui", "size": 15, "lineHeight": 1.4 }, + "bodyLarge": { "font": "ui", "size": 17 }, + "caption": { "font": "ui", "size": 13 }, + "overline": { "font": "numeric", "size": 12, "letterSpacing": "0.08em", "transform": "uppercase" }, + "readout": { "font": "numeric", "size": 20, "weight": 500 }, + "readoutLarge": { "font": "numeric", "size": 22, "weight": 500 }, + "code": { "font": "numeric", "size": 12, "lineHeight": 1.55 } + }, + "radius": { "chip": 8, "control": 10, "input": 12, "card": 14, "button": 16, "siteCard": 18, "pill": 9999 }, + "space": { "screenX": 20, "screenTop": 56, "screenBottom": 34, "gapXs": 4, "gapS": 8, "gapM": 12, "gapL": 16, "gapXl": 22 }, + "size": { "touchMin": 44, "buttonPrimary": 56, "buttonSecondary": 48, "segmented": 40, "shutter": 80, "artboard": [390, 844] } +} diff --git a/docs/examples/nina/backyard-pier.hrz b/docs/examples/nina/backyard-pier.hrz new file mode 100644 index 0000000..5f70b53 --- /dev/null +++ b/docs/examples/nina/backyard-pier.hrz @@ -0,0 +1,362 @@ +# Az Alt +0 14.0 +1 14.2 +2 14.4 +3 14.6 +4 14.8 +5 15.0 +6 15.2 +7 15.4 +8 15.6 +9 15.8 +10 16.0 +11 16.1 +12 16.2 +13 16.3 +14 16.4 +15 16.5 +16 16.6 +17 16.7 +18 16.8 +19 16.9 +20 17.0 +21 16.8 +22 16.6 +23 16.4 +24 16.2 +25 16.0 +26 15.8 +27 15.6 +28 15.4 +29 15.2 +30 15.0 +31 14.6 +32 14.2 +33 13.8 +34 13.4 +35 13.0 +36 12.6 +37 12.2 +38 11.8 +39 11.4 +40 11.0 +41 10.7 +42 10.4 +43 10.1 +44 9.8 +45 9.5 +46 9.2 +47 8.9 +48 8.6 +49 8.3 +50 8.0 +51 7.8 +52 7.6 +53 7.4 +54 7.2 +55 7.0 +56 6.8 +57 6.6 +58 6.4 +59 6.2 +60 6.0 +61 5.9 +62 5.8 +63 5.7 +64 5.6 +65 5.5 +66 5.4 +67 5.3 +68 5.2 +69 5.1 +70 5.0 +71 5.0 +72 5.0 +73 5.0 +74 5.0 +75 5.0 +76 5.0 +77 5.0 +78 5.0 +79 5.0 +80 5.0 +81 5.1 +82 5.2 +83 5.3 +84 5.4 +85 5.5 +86 5.6 +87 5.7 +88 5.8 +89 5.9 +90 6.0 +91 6.4 +92 6.8 +93 7.2 +94 7.6 +95 8.0 +96 8.4 +97 8.8 +98 9.2 +99 9.6 +100 10.0 +101 11.4 +102 12.8 +103 14.2 +104 15.6 +105 17.0 +106 18.4 +107 19.8 +108 21.2 +109 22.6 +110 24.0 +111 24.4 +112 24.8 +113 25.2 +114 25.6 +115 26.0 +116 26.4 +117 26.8 +118 27.2 +119 27.6 +120 28.0 +121 27.8 +122 27.6 +123 27.4 +124 27.2 +125 27.0 +126 26.8 +127 26.6 +128 26.4 +129 26.2 +130 26.0 +131 25.7 +132 25.4 +133 25.1 +134 24.8 +135 24.5 +136 24.2 +137 23.9 +138 23.6 +139 23.3 +140 23.0 +141 21.8 +142 20.6 +143 19.4 +144 18.2 +145 17.0 +146 15.8 +147 14.6 +148 13.4 +149 12.2 +150 11.0 +151 10.6 +152 10.2 +153 9.8 +154 9.4 +155 9.0 +156 8.6 +157 8.2 +158 7.8 +159 7.4 +160 7.0 +161 6.9 +162 6.8 +163 6.7 +164 6.6 +165 6.5 +166 6.4 +167 6.3 +168 6.2 +169 6.1 +170 6.0 +171 6.1 +172 6.2 +173 6.3 +174 6.4 +175 6.5 +176 6.6 +177 6.7 +178 6.8 +179 6.9 +180 7.0 +181 7.2 +182 7.4 +183 7.6 +184 7.8 +185 8.0 +186 8.2 +187 8.4 +188 8.6 +189 8.8 +190 9.0 +191 9.5 +192 10.0 +193 10.5 +194 11.0 +195 11.5 +196 12.0 +197 12.5 +198 13.0 +199 13.5 +200 14.0 +201 14.5 +202 15.0 +203 15.5 +204 16.0 +205 16.5 +206 17.0 +207 17.5 +208 18.0 +209 18.5 +210 19.0 +211 19.2 +212 19.4 +213 19.6 +214 19.8 +215 20.0 +216 20.2 +217 20.4 +218 20.6 +219 20.8 +220 21.0 +221 20.9 +222 20.8 +223 20.7 +224 20.6 +225 20.5 +226 20.4 +227 20.3 +228 20.2 +229 20.1 +230 20.0 +231 19.8 +232 19.6 +233 19.4 +234 19.2 +235 19.0 +236 18.8 +237 18.6 +238 18.4 +239 18.2 +240 18.0 +241 17.6 +242 17.2 +243 16.8 +244 16.4 +245 16.0 +246 15.6 +247 15.2 +248 14.8 +249 14.4 +250 14.0 +251 13.6 +252 13.2 +253 12.8 +254 12.4 +255 12.0 +256 11.6 +257 11.2 +258 10.8 +259 10.4 +260 10.0 +261 9.8 +262 9.6 +263 9.4 +264 9.2 +265 9.0 +266 8.8 +267 8.6 +268 8.4 +269 8.2 +270 8.0 +271 7.9 +272 7.8 +273 7.7 +274 7.6 +275 7.5 +276 7.4 +277 7.3 +278 7.2 +279 7.1 +280 7.0 +281 7.0 +282 7.0 +283 7.0 +284 7.0 +285 7.0 +286 7.0 +287 7.0 +288 7.0 +289 7.0 +290 7.0 +291 7.2 +292 7.4 +293 7.6 +294 7.8 +295 8.0 +296 8.2 +297 8.4 +298 8.6 +299 8.8 +300 9.0 +301 9.3 +302 9.6 +303 9.9 +304 10.2 +305 10.5 +306 10.8 +307 11.1 +308 11.4 +309 11.7 +310 12.0 +311 12.1 +312 12.2 +313 12.3 +314 12.4 +315 12.5 +316 12.6 +317 12.7 +318 12.8 +319 12.9 +320 13.0 +321 13.2 +322 13.4 +323 13.6 +324 13.8 +325 14.0 +326 14.2 +327 14.4 +328 14.6 +329 14.8 +330 15.0 +331 15.1 +332 15.2 +333 15.3 +334 15.4 +335 15.5 +336 15.6 +337 15.7 +338 15.8 +339 15.9 +340 16.0 +341 15.9 +342 15.8 +343 15.7 +344 15.6 +345 15.5 +346 15.4 +347 15.3 +348 15.2 +349 15.1 +350 15.0 +351 14.9 +352 14.8 +353 14.7 +354 14.6 +355 14.5 +356 14.4 +357 14.3 +358 14.2 +359 14.1 +360 14.0 diff --git a/docs/examples/session/sensors.jsonl b/docs/examples/session/sensors.jsonl new file mode 100644 index 0000000..2ee9d3b --- /dev/null +++ b/docs/examples/session/sensors.jsonl @@ -0,0 +1,2 @@ +{"t":12.000,"q":[0.70711,0.70711,0.0,0.0],"magHeadingDeg":354.4,"headingAccuracyDeg":3.0} +{"t":12.017,"q":[0.70710,0.70712,0.00010,0.00010],"magHeadingDeg":354.5,"headingAccuracyDeg":3.0} diff --git a/docs/examples/session/session.json b/docs/examples/session/session.json new file mode 100644 index 0000000..435d317 --- /dev/null +++ b/docs/examples/session/session.json @@ -0,0 +1,67 @@ +{ + "version": 1, + "createdAt": "2026-10-23T08:00:00Z", + "app": { + "name": "[APP NAME]", + "build": "dev" + }, + "device": { + "platform": "web", + "model": "unknown", + "camera": { + "widthPx": 1440, + "heightPx": 1920, + "hfovDeg": 50.0, + "vfovDeg": 64.0, + "fovSource": "assumed" + } + }, + "site": { + "name": "Backyard pier", + "latDeg": 47.4979, + "lonDeg": 19.0402, + "elevM": 112, + "gpsAccuracyM": 4 + }, + "north": { + "source": "magnetic", + "declinationDeg": 5.6, + "userOffsetDeg": 0.0 + }, + "capture": { + "plannedFrames": 24, + "targetTiltDeg": 10.0 + }, + "frames": [ + { + "id": "f000", + "file": "frames/f000.jpg", + "t": 12.031, + "q": [ + 0.70711, + 0.70711, + 0.0, + 0.0 + ], + "headingAccuracyDeg": 3.0 + }, + { + "id": "f001", + "file": "frames/f001.jpg", + "t": 14.512, + "q": [ + 0.68301, + 0.68301, + 0.18301, + 0.18301 + ], + "headingAccuracyDeg": 3.0 + } + ], + "sensorStream": { + "file": "sensors.jsonl", + "rateHz": 60 + }, + "maskEdits": [], + "result": null +} diff --git a/docs/examples/stellarium-polygonal/horizon.txt b/docs/examples/stellarium-polygonal/horizon.txt new file mode 100644 index 0000000..619792a --- /dev/null +++ b/docs/examples/stellarium-polygonal/horizon.txt @@ -0,0 +1,362 @@ +# Backyard pier - sky edge, no safety margin +# azimuth (deg, N=0, E=90) altitude (deg) +0 12.0 +1 12.2 +2 12.4 +3 12.6 +4 12.8 +5 13.0 +6 13.2 +7 13.4 +8 13.6 +9 13.8 +10 14.0 +11 14.1 +12 14.2 +13 14.3 +14 14.4 +15 14.5 +16 14.6 +17 14.7 +18 14.8 +19 14.9 +20 15.0 +21 14.8 +22 14.6 +23 14.4 +24 14.2 +25 14.0 +26 13.8 +27 13.6 +28 13.4 +29 13.2 +30 13.0 +31 12.6 +32 12.2 +33 11.8 +34 11.4 +35 11.0 +36 10.6 +37 10.2 +38 9.8 +39 9.4 +40 9.0 +41 8.7 +42 8.4 +43 8.1 +44 7.8 +45 7.5 +46 7.2 +47 6.9 +48 6.6 +49 6.3 +50 6.0 +51 5.8 +52 5.6 +53 5.4 +54 5.2 +55 5.0 +56 4.8 +57 4.6 +58 4.4 +59 4.2 +60 4.0 +61 3.9 +62 3.8 +63 3.7 +64 3.6 +65 3.5 +66 3.4 +67 3.3 +68 3.2 +69 3.1 +70 3.0 +71 3.0 +72 3.0 +73 3.0 +74 3.0 +75 3.0 +76 3.0 +77 3.0 +78 3.0 +79 3.0 +80 3.0 +81 3.1 +82 3.2 +83 3.3 +84 3.4 +85 3.5 +86 3.6 +87 3.7 +88 3.8 +89 3.9 +90 4.0 +91 4.4 +92 4.8 +93 5.2 +94 5.6 +95 6.0 +96 6.4 +97 6.8 +98 7.2 +99 7.6 +100 8.0 +101 9.4 +102 10.8 +103 12.2 +104 13.6 +105 15.0 +106 16.4 +107 17.8 +108 19.2 +109 20.6 +110 22.0 +111 22.4 +112 22.8 +113 23.2 +114 23.6 +115 24.0 +116 24.4 +117 24.8 +118 25.2 +119 25.6 +120 26.0 +121 25.8 +122 25.6 +123 25.4 +124 25.2 +125 25.0 +126 24.8 +127 24.6 +128 24.4 +129 24.2 +130 24.0 +131 23.7 +132 23.4 +133 23.1 +134 22.8 +135 22.5 +136 22.2 +137 21.9 +138 21.6 +139 21.3 +140 21.0 +141 19.8 +142 18.6 +143 17.4 +144 16.2 +145 15.0 +146 13.8 +147 12.6 +148 11.4 +149 10.2 +150 9.0 +151 8.6 +152 8.2 +153 7.8 +154 7.4 +155 7.0 +156 6.6 +157 6.2 +158 5.8 +159 5.4 +160 5.0 +161 4.9 +162 4.8 +163 4.7 +164 4.6 +165 4.5 +166 4.4 +167 4.3 +168 4.2 +169 4.1 +170 4.0 +171 4.1 +172 4.2 +173 4.3 +174 4.4 +175 4.5 +176 4.6 +177 4.7 +178 4.8 +179 4.9 +180 5.0 +181 5.2 +182 5.4 +183 5.6 +184 5.8 +185 6.0 +186 6.2 +187 6.4 +188 6.6 +189 6.8 +190 7.0 +191 7.5 +192 8.0 +193 8.5 +194 9.0 +195 9.5 +196 10.0 +197 10.5 +198 11.0 +199 11.5 +200 12.0 +201 12.5 +202 13.0 +203 13.5 +204 14.0 +205 14.5 +206 15.0 +207 15.5 +208 16.0 +209 16.5 +210 17.0 +211 17.2 +212 17.4 +213 17.6 +214 17.8 +215 18.0 +216 18.2 +217 18.4 +218 18.6 +219 18.8 +220 19.0 +221 18.9 +222 18.8 +223 18.7 +224 18.6 +225 18.5 +226 18.4 +227 18.3 +228 18.2 +229 18.1 +230 18.0 +231 17.8 +232 17.6 +233 17.4 +234 17.2 +235 17.0 +236 16.8 +237 16.6 +238 16.4 +239 16.2 +240 16.0 +241 15.6 +242 15.2 +243 14.8 +244 14.4 +245 14.0 +246 13.6 +247 13.2 +248 12.8 +249 12.4 +250 12.0 +251 11.6 +252 11.2 +253 10.8 +254 10.4 +255 10.0 +256 9.6 +257 9.2 +258 8.8 +259 8.4 +260 8.0 +261 7.8 +262 7.6 +263 7.4 +264 7.2 +265 7.0 +266 6.8 +267 6.6 +268 6.4 +269 6.2 +270 6.0 +271 5.9 +272 5.8 +273 5.7 +274 5.6 +275 5.5 +276 5.4 +277 5.3 +278 5.2 +279 5.1 +280 5.0 +281 5.0 +282 5.0 +283 5.0 +284 5.0 +285 5.0 +286 5.0 +287 5.0 +288 5.0 +289 5.0 +290 5.0 +291 5.2 +292 5.4 +293 5.6 +294 5.8 +295 6.0 +296 6.2 +297 6.4 +298 6.6 +299 6.8 +300 7.0 +301 7.3 +302 7.6 +303 7.9 +304 8.2 +305 8.5 +306 8.8 +307 9.1 +308 9.4 +309 9.7 +310 10.0 +311 10.1 +312 10.2 +313 10.3 +314 10.4 +315 10.5 +316 10.6 +317 10.7 +318 10.8 +319 10.9 +320 11.0 +321 11.2 +322 11.4 +323 11.6 +324 11.8 +325 12.0 +326 12.2 +327 12.4 +328 12.6 +329 12.8 +330 13.0 +331 13.1 +332 13.2 +333 13.3 +334 13.4 +335 13.5 +336 13.6 +337 13.7 +338 13.8 +339 13.9 +340 14.0 +341 13.9 +342 13.8 +343 13.7 +344 13.6 +345 13.5 +346 13.4 +347 13.3 +348 13.2 +349 13.1 +350 13.0 +351 12.9 +352 12.8 +353 12.7 +354 12.6 +355 12.5 +356 12.4 +357 12.3 +358 12.2 +359 12.1 diff --git a/docs/examples/stellarium-polygonal/landscape.ini b/docs/examples/stellarium-polygonal/landscape.ini new file mode 100644 index 0000000..245ead9 --- /dev/null +++ b/docs/examples/stellarium-polygonal/landscape.ini @@ -0,0 +1,15 @@ +[landscape] +name = Backyard pier (outline) +author = [AUTHOR] +description = Horizon outline made with [APP NAME] +type = polygonal +polygonal_horizon_list = horizon.txt +polygonal_horizon_list_mode = azDeg_altDeg +polygonal_angle_rotatez = 0 +ground_color = .12,.12,.14 + +[location] +planet = Earth +latitude = +47d29'52" +longitude = +19d2'25" +altitude = 112 diff --git a/docs/examples/stellarium-spherical/horizon.txt b/docs/examples/stellarium-spherical/horizon.txt new file mode 100644 index 0000000..619792a --- /dev/null +++ b/docs/examples/stellarium-spherical/horizon.txt @@ -0,0 +1,362 @@ +# Backyard pier - sky edge, no safety margin +# azimuth (deg, N=0, E=90) altitude (deg) +0 12.0 +1 12.2 +2 12.4 +3 12.6 +4 12.8 +5 13.0 +6 13.2 +7 13.4 +8 13.6 +9 13.8 +10 14.0 +11 14.1 +12 14.2 +13 14.3 +14 14.4 +15 14.5 +16 14.6 +17 14.7 +18 14.8 +19 14.9 +20 15.0 +21 14.8 +22 14.6 +23 14.4 +24 14.2 +25 14.0 +26 13.8 +27 13.6 +28 13.4 +29 13.2 +30 13.0 +31 12.6 +32 12.2 +33 11.8 +34 11.4 +35 11.0 +36 10.6 +37 10.2 +38 9.8 +39 9.4 +40 9.0 +41 8.7 +42 8.4 +43 8.1 +44 7.8 +45 7.5 +46 7.2 +47 6.9 +48 6.6 +49 6.3 +50 6.0 +51 5.8 +52 5.6 +53 5.4 +54 5.2 +55 5.0 +56 4.8 +57 4.6 +58 4.4 +59 4.2 +60 4.0 +61 3.9 +62 3.8 +63 3.7 +64 3.6 +65 3.5 +66 3.4 +67 3.3 +68 3.2 +69 3.1 +70 3.0 +71 3.0 +72 3.0 +73 3.0 +74 3.0 +75 3.0 +76 3.0 +77 3.0 +78 3.0 +79 3.0 +80 3.0 +81 3.1 +82 3.2 +83 3.3 +84 3.4 +85 3.5 +86 3.6 +87 3.7 +88 3.8 +89 3.9 +90 4.0 +91 4.4 +92 4.8 +93 5.2 +94 5.6 +95 6.0 +96 6.4 +97 6.8 +98 7.2 +99 7.6 +100 8.0 +101 9.4 +102 10.8 +103 12.2 +104 13.6 +105 15.0 +106 16.4 +107 17.8 +108 19.2 +109 20.6 +110 22.0 +111 22.4 +112 22.8 +113 23.2 +114 23.6 +115 24.0 +116 24.4 +117 24.8 +118 25.2 +119 25.6 +120 26.0 +121 25.8 +122 25.6 +123 25.4 +124 25.2 +125 25.0 +126 24.8 +127 24.6 +128 24.4 +129 24.2 +130 24.0 +131 23.7 +132 23.4 +133 23.1 +134 22.8 +135 22.5 +136 22.2 +137 21.9 +138 21.6 +139 21.3 +140 21.0 +141 19.8 +142 18.6 +143 17.4 +144 16.2 +145 15.0 +146 13.8 +147 12.6 +148 11.4 +149 10.2 +150 9.0 +151 8.6 +152 8.2 +153 7.8 +154 7.4 +155 7.0 +156 6.6 +157 6.2 +158 5.8 +159 5.4 +160 5.0 +161 4.9 +162 4.8 +163 4.7 +164 4.6 +165 4.5 +166 4.4 +167 4.3 +168 4.2 +169 4.1 +170 4.0 +171 4.1 +172 4.2 +173 4.3 +174 4.4 +175 4.5 +176 4.6 +177 4.7 +178 4.8 +179 4.9 +180 5.0 +181 5.2 +182 5.4 +183 5.6 +184 5.8 +185 6.0 +186 6.2 +187 6.4 +188 6.6 +189 6.8 +190 7.0 +191 7.5 +192 8.0 +193 8.5 +194 9.0 +195 9.5 +196 10.0 +197 10.5 +198 11.0 +199 11.5 +200 12.0 +201 12.5 +202 13.0 +203 13.5 +204 14.0 +205 14.5 +206 15.0 +207 15.5 +208 16.0 +209 16.5 +210 17.0 +211 17.2 +212 17.4 +213 17.6 +214 17.8 +215 18.0 +216 18.2 +217 18.4 +218 18.6 +219 18.8 +220 19.0 +221 18.9 +222 18.8 +223 18.7 +224 18.6 +225 18.5 +226 18.4 +227 18.3 +228 18.2 +229 18.1 +230 18.0 +231 17.8 +232 17.6 +233 17.4 +234 17.2 +235 17.0 +236 16.8 +237 16.6 +238 16.4 +239 16.2 +240 16.0 +241 15.6 +242 15.2 +243 14.8 +244 14.4 +245 14.0 +246 13.6 +247 13.2 +248 12.8 +249 12.4 +250 12.0 +251 11.6 +252 11.2 +253 10.8 +254 10.4 +255 10.0 +256 9.6 +257 9.2 +258 8.8 +259 8.4 +260 8.0 +261 7.8 +262 7.6 +263 7.4 +264 7.2 +265 7.0 +266 6.8 +267 6.6 +268 6.4 +269 6.2 +270 6.0 +271 5.9 +272 5.8 +273 5.7 +274 5.6 +275 5.5 +276 5.4 +277 5.3 +278 5.2 +279 5.1 +280 5.0 +281 5.0 +282 5.0 +283 5.0 +284 5.0 +285 5.0 +286 5.0 +287 5.0 +288 5.0 +289 5.0 +290 5.0 +291 5.2 +292 5.4 +293 5.6 +294 5.8 +295 6.0 +296 6.2 +297 6.4 +298 6.6 +299 6.8 +300 7.0 +301 7.3 +302 7.6 +303 7.9 +304 8.2 +305 8.5 +306 8.8 +307 9.1 +308 9.4 +309 9.7 +310 10.0 +311 10.1 +312 10.2 +313 10.3 +314 10.4 +315 10.5 +316 10.6 +317 10.7 +318 10.8 +319 10.9 +320 11.0 +321 11.2 +322 11.4 +323 11.6 +324 11.8 +325 12.0 +326 12.2 +327 12.4 +328 12.6 +329 12.8 +330 13.0 +331 13.1 +332 13.2 +333 13.3 +334 13.4 +335 13.5 +336 13.6 +337 13.7 +338 13.8 +339 13.9 +340 14.0 +341 13.9 +342 13.8 +343 13.7 +344 13.6 +345 13.5 +346 13.4 +347 13.3 +348 13.2 +349 13.1 +350 13.0 +351 12.9 +352 12.8 +353 12.7 +354 12.6 +355 12.5 +356 12.4 +357 12.3 +358 12.2 +359 12.1 diff --git a/docs/examples/stellarium-spherical/landscape.ini b/docs/examples/stellarium-spherical/landscape.ini new file mode 100644 index 0000000..8db366a --- /dev/null +++ b/docs/examples/stellarium-spherical/landscape.ini @@ -0,0 +1,18 @@ +[landscape] +name = Backyard pier +author = [AUTHOR] +description = 360 degree horizon panorama made with [APP NAME] +type = spherical +maptex = panorama.png +maptex_top = 42 +maptex_bottom = -22 +angle_rotatez = 0 +bottom_cap_color = .05,.05,.05 +polygonal_horizon_list = horizon.txt +polygonal_angle_rotatez = 0 + +[location] +planet = Earth +latitude = +47d29'52" +longitude = +19d2'25" +altitude = 112 diff --git a/docs/examples/stellarium-spherical/panorama.png.README.txt b/docs/examples/stellarium-spherical/panorama.png.README.txt new file mode 100644 index 0000000..fb4ce0f --- /dev/null +++ b/docs/examples/stellarium-spherical/panorama.png.README.txt @@ -0,0 +1,3 @@ +Placeholder: the real export puts an 8192x2048 RGBA PNG here. +Left edge = azimuth 90 (East), azimuth increases to the right (S at 25%, W at 50%, N at 75%). +Top row = maptex_top altitude, bottom row = maptex_bottom altitude. Sky pixels alpha = 0. diff --git a/ios/.gitignore b/ios/.gitignore new file mode 100644 index 0000000..7a7f987 --- /dev/null +++ b/ios/.gitignore @@ -0,0 +1,34 @@ +**/dgph +*.mode1v3 +*.mode2v3 +*.moved-aside +*.pbxuser +*.perspectivev3 +**/*sync/ +.sconsign.dblite +.tags* +**/.vagrant/ +**/DerivedData/ +Icon? +**/Pods/ +**/.symlinks/ +profile +xcuserdata +**/.generated/ +Flutter/App.framework +Flutter/Flutter.framework +Flutter/Flutter.podspec +Flutter/Generated.xcconfig +Flutter/ephemeral/ +Flutter/app.flx +Flutter/app.zip +Flutter/flutter_assets/ +Flutter/flutter_export_environment.sh +ServiceDefinitions.json +Runner/GeneratedPluginRegistrant.* + +# Exceptions to above rules. +!default.mode1v3 +!default.mode2v3 +!default.pbxuser +!default.perspectivev3 diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000..391a902 --- /dev/null +++ b/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + + diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000..ec97fc6 --- /dev/null +++ b/ios/Flutter/Debug.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "Generated.xcconfig" diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000..c4855bf --- /dev/null +++ b/ios/Flutter/Release.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "Generated.xcconfig" diff --git a/ios/Podfile b/ios/Podfile new file mode 100644 index 0000000..d678c15 --- /dev/null +++ b/ios/Podfile @@ -0,0 +1,55 @@ +# Uncomment this line to define a global platform for your project +platform :ios, '15.0' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_ios_podfile_setup + +target 'Runner' do + use_frameworks! + + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) + target 'RunnerTests' do + inherit! :search_paths + end +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_ios_build_settings(target) + target.build_configurations.each do |config| + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0' + # permission_handler compiles each permission in only when enabled here. + config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)'] + config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] += [ + 'PERMISSION_CAMERA=1', + 'PERMISSION_LOCATION=1', + 'PERMISSION_LOCATION_WHENINUSE=1', + 'PERMISSION_SENSORS=1', + 'PERMISSION_PHOTOS_ADD_ONLY=1', + ] + end + end +end diff --git a/ios/Podfile.lock b/ios/Podfile.lock new file mode 100644 index 0000000..71f610b --- /dev/null +++ b/ios/Podfile.lock @@ -0,0 +1,70 @@ +PODS: + - Flutter (1.0.0) + - flutter_inappwebview_ios (0.0.1): + - Flutter + - flutter_inappwebview_ios/Core (= 0.0.1) + - OrderedSet (~> 6.0.3) + - flutter_inappwebview_ios/Core (0.0.1): + - Flutter + - OrderedSet (~> 6.0.3) + - flutter_native_splash (2.4.3): + - Flutter + - gal (1.0.0): + - Flutter + - FlutterMacOS + - OrderedSet (6.0.3) + - package_info_plus (0.4.5): + - Flutter + - permission_handler_apple (9.4.8): + - Flutter + - share_plus (0.0.1): + - Flutter + - wakelock_plus (0.0.1): + - Flutter + +DEPENDENCIES: + - Flutter (from `Flutter`) + - flutter_inappwebview_ios (from `.symlinks/plugins/flutter_inappwebview_ios/ios`) + - flutter_native_splash (from `.symlinks/plugins/flutter_native_splash/ios`) + - gal (from `.symlinks/plugins/gal/darwin`) + - package_info_plus (from `.symlinks/plugins/package_info_plus/ios`) + - permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`) + - share_plus (from `.symlinks/plugins/share_plus/ios`) + - wakelock_plus (from `.symlinks/plugins/wakelock_plus/ios`) + +SPEC REPOS: + trunk: + - OrderedSet + +EXTERNAL SOURCES: + Flutter: + :path: Flutter + flutter_inappwebview_ios: + :path: ".symlinks/plugins/flutter_inappwebview_ios/ios" + flutter_native_splash: + :path: ".symlinks/plugins/flutter_native_splash/ios" + gal: + :path: ".symlinks/plugins/gal/darwin" + package_info_plus: + :path: ".symlinks/plugins/package_info_plus/ios" + permission_handler_apple: + :path: ".symlinks/plugins/permission_handler_apple/ios" + share_plus: + :path: ".symlinks/plugins/share_plus/ios" + wakelock_plus: + :path: ".symlinks/plugins/wakelock_plus/ios" + +SPEC CHECKSUMS: + Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467 + flutter_inappwebview_ios: b89ba3482b96fb25e00c967aae065701b66e9b99 + flutter_native_splash: c32d145d68aeda5502d5f543ee38c192065986cf + gal: baecd024ebfd13c441269ca7404792a7152fde89 + OrderedSet: e539b66b644ff081c73a262d24ad552a69be3a94 + package_info_plus: af8e2ca6888548050f16fa2f1938db7b5a5df499 + permission_handler_apple: 92d754bbaa7361d436db2d6c3c1c2a0fdcec462e + share_plus: eccd7beb7cea61271aeed1800e8ccb2b952c0c7f + wakelock_plus: e29112ab3ef0b318e58cfa5c32326458be66b556 + +PODFILE CHECKSUM: 1b16605139afd04e89e0ef255dccb0721ee7ba35 + +COCOAPODS: 1.16.2 diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000..ce5eb6f --- /dev/null +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,788 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 54A4A093D1FC1D5368076416 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D2B72FC643E6FE67E129097 /* Pods_RunnerTests.framework */; }; + 66B9ACB148229E2B5EB01DCD /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 42DF9E5223F6939D9685F01B /* Pods_Runner.framework */; }; + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 7884E8682EC3CC0700C636F2 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7884E8672EC3CC0400C636F2 /* SceneDelegate.swift */; }; + 85AF84366375B5E2D1073860 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 0B0688BA02D00E2208BF5B53 /* InfoPlist.strings */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 97C146E61CF9000F007C117D /* Project object */; + proxyType = 1; + remoteGlobalIDString = 97C146ED1CF9000F007C117D; + remoteInfo = Runner; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 077AADC1DAE536E7094D803F /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; }; + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 250602130E1F93813AAFCFCC /* pl */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = pl; path = pl.lproj/InfoPlist.strings; sourceTree = ""; }; + 296B2E0B0F4780FFA6AC8D37 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + 32ECD92FCE4F03D555138E0B /* fr */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/InfoPlist.strings; sourceTree = ""; }; + 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; + 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 419B856BCD95DD1D8AEA127C /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; }; + 42DF9E5223F6939D9685F01B /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 4D2B72FC643E6FE67E129097 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 5AE3EB046D60ED516C475A20 /* hu */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = hu; path = hu.lproj/InfoPlist.strings; sourceTree = ""; }; + 65081DE2C576CA600313A055 /* de */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/InfoPlist.strings; sourceTree = ""; }; + 690F57F228C8154427B4327E /* sk */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = sk; path = sk.lproj/InfoPlist.strings; sourceTree = ""; }; + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7884E8672EC3CC0400C636F2 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 7E85C18B7B5E1F28DEC5FF1B /* es */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/InfoPlist.strings; sourceTree = ""; }; + 8A8B6D249D613F90FA56E5F3 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; + 8DE2A3731D6548E691811D8E /* en */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + B5D58D51F581089FD6477BB8 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; + B928160D2A65D702E593D80A /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; + D4471AFC3B4C9A89F32F0DBB /* it */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/InfoPlist.strings; sourceTree = ""; }; + DB9E8CF403D53ECB621CCF4F /* ar */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = ar; path = ar.lproj/InfoPlist.strings; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 66B9ACB148229E2B5EB01DCD /* Pods_Runner.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + A550F3E78E309D05E2A5D421 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 54A4A093D1FC1D5368076416 /* Pods_RunnerTests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 331C8082294A63A400263BE5 /* RunnerTests */ = { + isa = PBXGroup; + children = ( + 331C807B294A618700263BE5 /* RunnerTests.swift */, + ); + path = RunnerTests; + sourceTree = ""; + }; + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + 331C8082294A63A400263BE5 /* RunnerTests */, + D76A8D3EAF6D5C487CD04008 /* Pods */, + D6A765D67C197D38A85B1E9F /* Frameworks */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + 331C8081294A63A400263BE5 /* RunnerTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, + 7884E8672EC3CC0400C636F2 /* SceneDelegate.swift */, + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, + 0B0688BA02D00E2208BF5B53 /* InfoPlist.strings */, + ); + path = Runner; + sourceTree = ""; + }; + D6A765D67C197D38A85B1E9F /* Frameworks */ = { + isa = PBXGroup; + children = ( + 42DF9E5223F6939D9685F01B /* Pods_Runner.framework */, + 4D2B72FC643E6FE67E129097 /* Pods_RunnerTests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + D76A8D3EAF6D5C487CD04008 /* Pods */ = { + isa = PBXGroup; + children = ( + 8A8B6D249D613F90FA56E5F3 /* Pods-Runner.debug.xcconfig */, + B928160D2A65D702E593D80A /* Pods-Runner.release.xcconfig */, + 296B2E0B0F4780FFA6AC8D37 /* Pods-Runner.profile.xcconfig */, + 077AADC1DAE536E7094D803F /* Pods-RunnerTests.debug.xcconfig */, + B5D58D51F581089FD6477BB8 /* Pods-RunnerTests.release.xcconfig */, + 419B856BCD95DD1D8AEA127C /* Pods-RunnerTests.profile.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 331C8080294A63A400263BE5 /* RunnerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; + buildPhases = ( + C13EDFB3DEAD41CF487AAC95 /* [CP] Check Pods Manifest.lock */, + 331C807D294A63A400263BE5 /* Sources */, + 331C807F294A63A400263BE5 /* Resources */, + A550F3E78E309D05E2A5D421 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 331C8086294A63A400263BE5 /* PBXTargetDependency */, + ); + name = RunnerTests; + productName = RunnerTests; + productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + C600C44C7410AC896D7B0C72 /* [CP] Check Pods Manifest.lock */, + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + D52BE66D49146A12FAE4DAE8 /* [CP] Embed Pods Frameworks */, + E740408661676B623E0829EB /* [CP] Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 331C8080294A63A400263BE5 = { + CreatedOnToolsVersion = 14.0; + TestTargetID = 97C146ED1CF9000F007C117D; + }; + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + LastSwiftMigration = 1100; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + Base, + ar, + de, + en, + es, + fr, + hu, + it, + pl, + sk, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + 331C8080294A63A400263BE5 /* RunnerTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 331C807F294A63A400263BE5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + 85AF84366375B5E2D1073860 /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; + C13EDFB3DEAD41CF487AAC95 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + C600C44C7410AC896D7B0C72 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + D52BE66D49146A12FAE4DAE8 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + E740408661676B623E0829EB /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Copy Pods Resources"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 331C807D294A63A400263BE5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + 7884E8682EC3CC0700C636F2 /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 331C8086294A63A400263BE5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 97C146ED1CF9000F007C117D /* Runner */; + targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 0B0688BA02D00E2208BF5B53 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 8DE2A3731D6548E691811D8E /* en */, + 7E85C18B7B5E1F28DEC5FF1B /* es */, + DB9E8CF403D53ECB621CCF4F /* ar */, + 65081DE2C576CA600313A055 /* de */, + 5AE3EB046D60ED516C475A20 /* hu */, + 250602130E1F93813AAFCFCC /* pl */, + 32ECD92FCE4F03D555138E0B /* fr */, + D4471AFC3B4C9A89F32F0DBB /* it */, + 690F57F228C8154427B4327E /* sk */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = FT7JEH2UPE; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.sagifer.skycontour; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 331C8088294A63A400263BE5 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 077AADC1DAE536E7094D803F /* Pods-RunnerTests.debug.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.sagifer.skycontour.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Debug; + }; + 331C8089294A63A400263BE5 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = B5D58D51F581089FD6477BB8 /* Pods-RunnerTests.release.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.sagifer.skycontour.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Release; + }; + 331C808A294A63A400263BE5 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 419B856BCD95DD1D8AEA127C /* Pods-RunnerTests.profile.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.sagifer.skycontour.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = AppIcon; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = FT7JEH2UPE; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.sagifer.skycontour; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = FT7JEH2UPE; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.sagifer.skycontour; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 331C8088294A63A400263BE5 /* Debug */, + 331C8089294A63A400263BE5 /* Release */, + 331C808A294A63A400263BE5 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 249021D3217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 249021D4217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000..e3773d4 --- /dev/null +++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..21a3cc1 --- /dev/null +++ b/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift new file mode 100644 index 0000000..d365e92 --- /dev/null +++ b/ios/Runner/AppDelegate.swift @@ -0,0 +1,52 @@ +import Flutter +import UIKit + +@main +@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate { + override func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + return super.application(application, didFinishLaunchingWithOptions: launchOptions) + } + + func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) { + GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry) + if let registrar = engineBridge.pluginRegistry.registrar(forPlugin: "SfzenithFiles") { + let channel = FlutterMethodChannel(name: "sfzenith/files", binaryMessenger: registrar.messenger()) + channel.setMethodCallHandler { call, result in + guard call.method == "saveToDownloads" else { + result(FlutterMethodNotImplemented) + return + } + let args = call.arguments as? [String: Any] ?? [:] + let name = (args["name"] as? String) ?? "horizon.bin" + let bytes = (args["bytes"] as? FlutterStandardTypedData)?.data ?? Data() + do { + result(try AppDelegate.saveToDocuments(name: name, data: bytes)) + } catch { + result(FlutterError(code: "save_failed", message: error.localizedDescription, details: nil)) + } + } + } + } + + /// Saves into the app's Documents folder, which the Files app shows under + /// On My iPhone › SkyContour (UIFileSharingEnabled). Never overwrites. + static func saveToDocuments(name: String, data: Data) throws -> String { + let fm = FileManager.default + let dir = try fm.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: true) + let safe = (name as NSString).lastPathComponent + let base = (safe as NSString).deletingPathExtension + let ext = (safe as NSString).pathExtension + var target = dir.appendingPathComponent(safe) + var n = 1 + while fm.fileExists(atPath: target.path) { + let candidate = ext.isEmpty ? "\(base) (\(n))" : "\(base) (\(n)).\(ext)" + target = dir.appendingPathComponent(candidate) + n += 1 + } + try data.write(to: target, options: .atomic) + return "Files › SkyContour › \(target.lastPathComponent)" + } +} diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d0d98aa --- /dev/null +++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1 @@ +{"images":[{"size":"20x20","idiom":"iphone","filename":"Icon-App-20x20@2x.png","scale":"2x"},{"size":"20x20","idiom":"iphone","filename":"Icon-App-20x20@3x.png","scale":"3x"},{"size":"29x29","idiom":"iphone","filename":"Icon-App-29x29@1x.png","scale":"1x"},{"size":"29x29","idiom":"iphone","filename":"Icon-App-29x29@2x.png","scale":"2x"},{"size":"29x29","idiom":"iphone","filename":"Icon-App-29x29@3x.png","scale":"3x"},{"size":"40x40","idiom":"iphone","filename":"Icon-App-40x40@2x.png","scale":"2x"},{"size":"40x40","idiom":"iphone","filename":"Icon-App-40x40@3x.png","scale":"3x"},{"size":"57x57","idiom":"iphone","filename":"Icon-App-57x57@1x.png","scale":"1x"},{"size":"57x57","idiom":"iphone","filename":"Icon-App-57x57@2x.png","scale":"2x"},{"size":"60x60","idiom":"iphone","filename":"Icon-App-60x60@2x.png","scale":"2x"},{"size":"60x60","idiom":"iphone","filename":"Icon-App-60x60@3x.png","scale":"3x"},{"size":"20x20","idiom":"ipad","filename":"Icon-App-20x20@1x.png","scale":"1x"},{"size":"20x20","idiom":"ipad","filename":"Icon-App-20x20@2x.png","scale":"2x"},{"size":"29x29","idiom":"ipad","filename":"Icon-App-29x29@1x.png","scale":"1x"},{"size":"29x29","idiom":"ipad","filename":"Icon-App-29x29@2x.png","scale":"2x"},{"size":"40x40","idiom":"ipad","filename":"Icon-App-40x40@1x.png","scale":"1x"},{"size":"40x40","idiom":"ipad","filename":"Icon-App-40x40@2x.png","scale":"2x"},{"size":"50x50","idiom":"ipad","filename":"Icon-App-50x50@1x.png","scale":"1x"},{"size":"50x50","idiom":"ipad","filename":"Icon-App-50x50@2x.png","scale":"2x"},{"size":"72x72","idiom":"ipad","filename":"Icon-App-72x72@1x.png","scale":"1x"},{"size":"72x72","idiom":"ipad","filename":"Icon-App-72x72@2x.png","scale":"2x"},{"size":"76x76","idiom":"ipad","filename":"Icon-App-76x76@1x.png","scale":"1x"},{"size":"76x76","idiom":"ipad","filename":"Icon-App-76x76@2x.png","scale":"2x"},{"size":"83.5x83.5","idiom":"ipad","filename":"Icon-App-83.5x83.5@2x.png","scale":"2x"},{"size":"1024x1024","idiom":"ios-marketing","filename":"Icon-App-1024x1024@1x.png","scale":"1x"}],"info":{"version":1,"author":"xcode"}} \ No newline at end of file diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 0000000..ffdcab0 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 0000000..48f793b Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 0000000..56ebdd4 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000..371b21a Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000..a48b4a0 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000..12bfbfe Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 0000000..aaf13b1 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 0000000..56ebdd4 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000..bbe1d33 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 0000000..43a347f Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png new file mode 100644 index 0000000..7114cb9 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png new file mode 100644 index 0000000..de4b9b4 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png new file mode 100644 index 0000000..85e9a6b Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png new file mode 100644 index 0000000..a4c3d52 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000..43a347f Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000..0755c6a Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png new file mode 100644 index 0000000..6bc0b54 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png new file mode 100644 index 0000000..7119e87 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 0000000..a31726c Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 0000000..b01e907 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 0000000..d047399 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json b/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json new file mode 100644 index 0000000..9f447e1 --- /dev/null +++ b/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "background.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png b/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png new file mode 100644 index 0000000..fa356fa Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000..00cabce --- /dev/null +++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "LaunchImage.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "LaunchImage@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "LaunchImage@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 0000000..633b44d Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000..cef8afb Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000..772c6ba Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 0000000..89c2725 --- /dev/null +++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -0,0 +1,5 @@ +# Launch Screen Assets + +You can customize the launch screen with your own desired assets by replacing the image files in this directory. + +You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/ios/Runner/Base.lproj/LaunchScreen.storyboard b/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..3ebf8fd --- /dev/null +++ b/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner/Base.lproj/Main.storyboard b/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000..f3c2851 --- /dev/null +++ b/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist new file mode 100644 index 0000000..caf12ea --- /dev/null +++ b/ios/Runner/Info.plist @@ -0,0 +1,100 @@ + + + + + CADisableMinimumFrameDurationOnPhone + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + SkyContour + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleLocalizations + + en + es + ar + de + hu + pl + fr + it + sk + + CFBundleName + SkyContour + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + LSSupportsOpeningDocumentsInPlace + + NSAppTransportSecurity + + NSAllowsLocalNetworking + + + NSCameraUsageDescription + The camera photographs the horizon around you to build your horizon profile and panorama. + NSLocationWhenInUseUsageDescription + Your location is written into the Stellarium landscape so the sky matches your site. + NSMotionUsageDescription + Compass and tilt tell the app where each photo points. + NSPhotoLibraryAddUsageDescription + Lets you save panorama images to your photo library. + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneClassName + UIWindowScene + UISceneConfigurationName + flutter + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneStoryboardFile + Main + + + + + UIApplicationSupportsIndirectInputEvents + + UIFileSharingEnabled + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiresFullScreen + + UIStatusBarHidden + + UIStatusBarStyle + UIStatusBarStyleLightContent + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + + + diff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.h new file mode 100644 index 0000000..308a2a5 --- /dev/null +++ b/ios/Runner/Runner-Bridging-Header.h @@ -0,0 +1 @@ +#import "GeneratedPluginRegistrant.h" diff --git a/ios/Runner/SceneDelegate.swift b/ios/Runner/SceneDelegate.swift new file mode 100644 index 0000000..b9ce8ea --- /dev/null +++ b/ios/Runner/SceneDelegate.swift @@ -0,0 +1,6 @@ +import Flutter +import UIKit + +class SceneDelegate: FlutterSceneDelegate { + +} diff --git a/ios/Runner/ar.lproj/InfoPlist.strings b/ios/Runner/ar.lproj/InfoPlist.strings new file mode 100644 index 0000000..2137f9e --- /dev/null +++ b/ios/Runner/ar.lproj/InfoPlist.strings @@ -0,0 +1,5 @@ +/* Permission prompts. Keep in sync with Info.plist (English) and wasm/frontend/src/i18n. */ +"NSCameraUsageDescription" = "تلتقط الكاميرا صورًا للأفق من حولك لإنشاء مقطع الأفق والبانوراما."; +"NSLocationWhenInUseUsageDescription" = "يُكتب موقعك في مشهد Stellarium لتتطابق السماء مع موقعك."; +"NSMotionUsageDescription" = "تحدّد البوصلة والميل اتجاه كل صورة."; +"NSPhotoLibraryAddUsageDescription" = "يتيح لك حفظ صور البانوراما في مكتبة الصور."; diff --git a/ios/Runner/de.lproj/InfoPlist.strings b/ios/Runner/de.lproj/InfoPlist.strings new file mode 100644 index 0000000..3c2a32c --- /dev/null +++ b/ios/Runner/de.lproj/InfoPlist.strings @@ -0,0 +1,5 @@ +/* Permission prompts. Keep in sync with Info.plist (English) and wasm/frontend/src/i18n. */ +"NSCameraUsageDescription" = "Die Kamera fotografiert den Horizont rund um dich, daraus entstehen Horizontprofil und Panorama."; +"NSLocationWhenInUseUsageDescription" = "Dein Standort wird in die Stellarium-Landschaft geschrieben, damit der Himmel zu deinem Ort passt."; +"NSMotionUsageDescription" = "Kompass und Neigung zeigen, wohin jedes Foto gerichtet ist."; +"NSPhotoLibraryAddUsageDescription" = "Damit kannst du Panoramabilder in deiner Fotomediathek speichern."; diff --git a/ios/Runner/en.lproj/InfoPlist.strings b/ios/Runner/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..68b0bd0 --- /dev/null +++ b/ios/Runner/en.lproj/InfoPlist.strings @@ -0,0 +1,5 @@ +/* Permission prompts. Keep in sync with Info.plist (English) and wasm/frontend/src/i18n. */ +"NSCameraUsageDescription" = "The camera photographs the horizon around you to build your horizon profile and panorama."; +"NSLocationWhenInUseUsageDescription" = "Your location is written into the Stellarium landscape so the sky matches your site."; +"NSMotionUsageDescription" = "Compass and tilt tell the app where each photo points."; +"NSPhotoLibraryAddUsageDescription" = "Lets you save panorama images to your photo library."; diff --git a/ios/Runner/es.lproj/InfoPlist.strings b/ios/Runner/es.lproj/InfoPlist.strings new file mode 100644 index 0000000..e83b70c --- /dev/null +++ b/ios/Runner/es.lproj/InfoPlist.strings @@ -0,0 +1,5 @@ +/* Permission prompts. Keep in sync with Info.plist (English) and wasm/frontend/src/i18n. */ +"NSCameraUsageDescription" = "La cámara fotografía el horizonte a tu alrededor para crear el perfil del horizonte y el panorama."; +"NSLocationWhenInUseUsageDescription" = "Tu ubicación se guarda en el paisaje de Stellarium para que el cielo coincida con tu lugar."; +"NSMotionUsageDescription" = "La brújula y la inclinación indican hacia dónde apunta cada foto."; +"NSPhotoLibraryAddUsageDescription" = "Te permite guardar imágenes panorámicas en tu fototeca."; diff --git a/ios/Runner/fr.lproj/InfoPlist.strings b/ios/Runner/fr.lproj/InfoPlist.strings new file mode 100644 index 0000000..70d4d70 --- /dev/null +++ b/ios/Runner/fr.lproj/InfoPlist.strings @@ -0,0 +1,5 @@ +/* Permission prompts. Keep in sync with Info.plist (English) and wasm/frontend/src/i18n. */ +"NSCameraUsageDescription" = "La caméra photographie l’horizon autour de vous pour créer le profil d’horizon et le panorama."; +"NSLocationWhenInUseUsageDescription" = "Votre position est inscrite dans le paysage Stellarium pour que le ciel corresponde à votre site."; +"NSMotionUsageDescription" = "La boussole et l’inclinaison indiquent la direction de chaque photo."; +"NSPhotoLibraryAddUsageDescription" = "Permet d’enregistrer des images panoramiques dans votre photothèque."; diff --git a/ios/Runner/hu.lproj/InfoPlist.strings b/ios/Runner/hu.lproj/InfoPlist.strings new file mode 100644 index 0000000..445234e --- /dev/null +++ b/ios/Runner/hu.lproj/InfoPlist.strings @@ -0,0 +1,5 @@ +/* Permission prompts. Keep in sync with Info.plist (English) and wasm/frontend/src/i18n. */ +"NSCameraUsageDescription" = "A kamera lefényképezi a körülötted lévő horizontot, ebből készül a horizontprofil és a panoráma."; +"NSLocationWhenInUseUsageDescription" = "A helyed bekerül a Stellarium tájképbe, hogy az égbolt a helyszínedhez illeszkedjen."; +"NSMotionUsageDescription" = "Az iránytű és a dőlés mutatja meg, merre néz az egyes fotó."; +"NSPhotoLibraryAddUsageDescription" = "Panorámaképeket menthetsz a fotótáradba."; diff --git a/ios/Runner/it.lproj/InfoPlist.strings b/ios/Runner/it.lproj/InfoPlist.strings new file mode 100644 index 0000000..78d71d1 --- /dev/null +++ b/ios/Runner/it.lproj/InfoPlist.strings @@ -0,0 +1,5 @@ +/* Permission prompts. Keep in sync with Info.plist (English) and wasm/frontend/src/i18n. */ +"NSCameraUsageDescription" = "La fotocamera fotografa l’orizzonte intorno a te per creare il profilo dell’orizzonte e il panorama."; +"NSLocationWhenInUseUsageDescription" = "La tua posizione viene scritta nel paesaggio di Stellarium, così il cielo corrisponde al tuo luogo."; +"NSMotionUsageDescription" = "Bussola e inclinazione indicano dove punta ogni foto."; +"NSPhotoLibraryAddUsageDescription" = "Ti permette di salvare immagini panoramiche nella tua libreria foto."; diff --git a/ios/Runner/pl.lproj/InfoPlist.strings b/ios/Runner/pl.lproj/InfoPlist.strings new file mode 100644 index 0000000..a8290ad --- /dev/null +++ b/ios/Runner/pl.lproj/InfoPlist.strings @@ -0,0 +1,5 @@ +/* Permission prompts. Keep in sync with Info.plist (English) and wasm/frontend/src/i18n. */ +"NSCameraUsageDescription" = "Aparat fotografuje horyzont wokół ciebie, aby utworzyć profil horyzontu i panoramę."; +"NSLocationWhenInUseUsageDescription" = "Twoja lokalizacja jest zapisywana w krajobrazie Stellarium, aby niebo pasowało do twojego miejsca."; +"NSMotionUsageDescription" = "Kompas i pochylenie pokazują, w którą stronę skierowane jest każde zdjęcie."; +"NSPhotoLibraryAddUsageDescription" = "Pozwala zapisywać zdjęcia panoramiczne w bibliotece zdjęć."; diff --git a/ios/Runner/sk.lproj/InfoPlist.strings b/ios/Runner/sk.lproj/InfoPlist.strings new file mode 100644 index 0000000..525d304 --- /dev/null +++ b/ios/Runner/sk.lproj/InfoPlist.strings @@ -0,0 +1,5 @@ +/* Permission prompts. Keep in sync with Info.plist (English) and wasm/frontend/src/i18n. */ +"NSCameraUsageDescription" = "Kamera fotí horizont okolo teba, aby vznikol profil horizontu a panoráma."; +"NSLocationWhenInUseUsageDescription" = "Tvoja poloha sa zapíše do krajiny Stellarium, aby obloha zodpovedala tvojmu miestu."; +"NSMotionUsageDescription" = "Kompas a náklon určujú, kam smeruje každá fotka."; +"NSPhotoLibraryAddUsageDescription" = "Umožní ukladať panoramatické obrázky do knižnice fotiek."; diff --git a/ios/RunnerTests/RunnerTests.swift b/ios/RunnerTests/RunnerTests.swift new file mode 100644 index 0000000..86a7c3b --- /dev/null +++ b/ios/RunnerTests/RunnerTests.swift @@ -0,0 +1,12 @@ +import Flutter +import UIKit +import XCTest + +class RunnerTests: XCTestCase { + + func testExample() { + // If you add code to the Runner application, consider adding tests here. + // See https://developer.apple.com/documentation/xctest for more information about using XCTest. + } + +} diff --git a/lib/main.dart b/lib/main.dart new file mode 100644 index 0000000..e482832 --- /dev/null +++ b/lib/main.dart @@ -0,0 +1,462 @@ +import 'dart:collection'; +import 'dart:convert'; +import 'dart:io' show Platform; + +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_inappwebview/flutter_inappwebview.dart'; +import 'package:gal/gal.dart'; +import 'package:permission_handler/permission_handler.dart'; +import 'package:share_plus/share_plus.dart'; +import 'package:wakelock_plus/wakelock_plus.dart'; + +/// SkyContour native shell. +/// +/// The whole app is the React + WASM web build bundled under assets/web/ +/// (see scripts/build_web.sh). This shell: +/// * serves that build over http://localhost:8080 (a secure context, so the +/// WebView's camera, motion sensors and geolocation work), +/// * asks for the OS camera and location permissions and grants them to the +/// WebView, +/// * saves export files (Android: Downloads, iOS: Files › SkyContour) and +/// opens the system share sheet (a WebView can do neither by itself), +/// * keeps the screen awake during capture and gives haptic ticks, +/// * routes the Android back button into the web app's navigation, +/// * shows a native tab bar (iOS) / navigation bar (Android) on the main +/// screens; the web app reports its screen via the `route` handler. +void main() { + WidgetsFlutterBinding.ensureInitialized(); + // Capture only works upright (docs/SPEC.md). + SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]); + // Light icons on the dark UI; bars drawn over the app's own background. + SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle( + statusBarColor: Colors.transparent, + statusBarIconBrightness: Brightness.light, + statusBarBrightness: Brightness.dark, + systemNavigationBarColor: Color(0xFF04060B), + systemNavigationBarIconBrightness: Brightness.light, + )); + runApp(const SfzenithApp()); +} + +class SfzenithApp extends StatelessWidget { + const SfzenithApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'SkyContour', + debugShowCheckedModeBanner: false, + theme: ThemeData.dark(useMaterial3: true).copyWith( + scaffoldBackgroundColor: const Color(0xFF04060B), + ), + home: const WebShell(), + ); + } +} + +/// A file handed over from the web app: {name, mime, base64}. +class _WebFile { + _WebFile(this.name, this.mime, this.bytes); + + final String name; + final String mime; + final Uint8List bytes; + + static List<_WebFile> parse(List args) { + final list = args.isNotEmpty && args[0] is List ? args[0] as List : const []; + return list.whereType().map((m) { + final name = (m['name'] ?? 'file').toString(); + final mime = (m['mime'] ?? 'application/octet-stream').toString(); + return _WebFile(name, mime, base64Decode((m['base64'] ?? '').toString())); + }).toList(); + } +} + +class WebShell extends StatefulWidget { + const WebShell({super.key}); + + @override + State createState() => _WebShellState(); +} + +class _WebShellState extends State { + static const _files = MethodChannel('sfzenith/files'); + + final InAppLocalhostServer _server = InAppLocalhostServer( + documentRoot: 'assets/web', + port: 8080, + ); + + InAppWebViewController? _controller; + bool _ready = false; + String? _error; + + /// Selected tab while the bar is shown; null = hidden (survey flow, welcome). + int? _tab; + + /// Tab labels and writing direction in the web app's language. + Map _tabLabels = const {}; + bool _rtl = false; + + @override + void initState() { + super.initState(); + _boot(); + } + + Future _boot() async { + try { + // Ask up front: getUserMedia/geolocation inside the WebView only work + // once the app itself holds the OS permissions. + await [Permission.camera, Permission.locationWhenInUse].request(); + if (!_server.isRunning()) await _server.start(); + if (mounted) setState(() => _ready = true); + } catch (e) { + if (mounted) setState(() => _error = 'Could not start: $e'); + } + } + + @override + void dispose() { + _server.close(); + super.dispose(); + } + + Future _saveOne(_WebFile f) async { + final args = {'name': f.name, 'mime': f.mime, 'bytes': f.bytes}; + try { + return await _files.invokeMethod('saveToDownloads', args) ?? f.name; + } on PlatformException { + // Android 9 and older need the storage permission for Downloads. + if (Platform.isAndroid && await Permission.storage.request().isGranted) { + return await _files.invokeMethod('saveToDownloads', args) ?? f.name; + } + rethrow; + } + } + + Future _handleSaveFiles(List args) async { + // Plain data back to the page; it shows the message in the user's language. + final files = _WebFile.parse(args); + final saved = []; + for (final f in files) { + final where = await _saveOne(f); + saved.add(where.split(RegExp(r'[/›]')).last.trim()); // file name as stored + } + return {'saved': saved, 'platform': Platform.isIOS ? 'ios' : 'android'}; + } + + Future _handleShareFiles(List args) async { + final files = _WebFile.parse(args); + if (files.isEmpty) return {'status': 'cancelled'}; + // iPad needs an anchor for the share popover: bottom centre of the screen. + final size = mounted ? MediaQuery.sizeOf(context) : const Size(390, 844); + final result = await SharePlus.instance.share(ShareParams( + files: [for (final f in files) XFile.fromData(f.bytes, name: f.name, mimeType: f.mime)], + fileNameOverrides: [for (final f in files) f.name], + sharePositionOrigin: Rect.fromLTWH(size.width / 2, size.height - 90, 1, 1), + )); + return {'status': result.status == ShareResultStatus.dismissed ? 'cancelled' : 'shared'}; + } + + /// Screen stays on while the web app captures (WebView has no Wake Lock API). + Future _handleKeepAwake(List args) async { + final on = args.isNotEmpty && args[0] == true; + await WakelockPlus.toggle(enable: on); + return on; + } + + Future _handleHaptic(List args) async { + await HapticFeedback.mediumImpact(); + return true; + } + + /// Android back: let the web app go one screen back; leave the app on the start screen. + Future _onBack() async { + final handled = await _controller?.evaluateJavascript( + source: 'window.__sfzBack ? window.__sfzBack() : false', + ); + if (handled != true) await SystemNavigator.pop(); + } + + /// The web app reports its screen: {name, tab: 'sites'|'settings'|null}. + Future _handleRoute(List args) async { + final info = args.isNotEmpty && args[0] is Map ? args[0] as Map : const {}; + final index = _tabs.indexWhere((t) => t.id == info['tab']); + final labels = info['labels'] is Map + ? (info['labels'] as Map).map((k, v) => MapEntry(k.toString(), v.toString())) + : _tabLabels; + if (mounted) { + setState(() { + _tab = index >= 0 ? index : null; + _tabLabels = labels; + _rtl = info['rtl'] == true; + }); + } + _pushInsets(); + return true; + } + + /// The WebView sits inside a Flutter platform view and gets no safe-area + /// insets of its own (CSS env() is 0 on both platforms), so hand the system + /// bar sizes to the page as --safe-top / --safe-bottom. With the tab bar + /// shown, the bar itself covers the bottom inset. + String _insetsScript() { + final pad = MediaQuery.paddingOf(context); + final bottom = _tab == null ? pad.bottom : 0.0; + return "document.documentElement.style.setProperty('--safe-top','${pad.top}px');" + "document.documentElement.style.setProperty('--safe-bottom','${bottom}px');"; + } + + void _pushInsets() { + if (!mounted) return; + WidgetsBinding.instance.addPostFrameCallback((_) { + if (mounted) _controller?.evaluateJavascript(source: _insetsScript()); + }); + } + + @override + void didChangeDependencies() { + super.didChangeDependencies(); + _pushInsets(); // rotation, notch / system bar changes + } + + void _selectTab(int index) { + HapticFeedback.selectionClick(); + final id = _tabs[index].id; + _controller?.evaluateJavascript(source: "window.__sfzNav && window.__sfzNav('$id')"); + } + + /// Kept for older web builds that saved the raw panorama PNG to the gallery. + Future _handleSavePng(List args) async { + final base64Str = args.isNotEmpty ? args[0] as String : ''; + final name = args.length > 1 ? args[1] as String : 'panorama.png'; + if (base64Str.isEmpty) return 'no data'; + if (!await Gal.hasAccess()) await Gal.requestAccess(); + await Gal.putImageBytes(base64Decode(base64Str), name: name.replaceAll('.png', '')); + return 'gallery'; + } + + @override + Widget build(BuildContext context) { + final Widget body; + if (_error != null) { + body = Center( + child: Padding( + padding: const EdgeInsets.all(24), + child: Text(_error!, textAlign: TextAlign.center), + ), + ); + } else if (!_ready) { + // Same colour as the native splash, so the hand-over does not flash. + body = const SizedBox.expand(); + } else { + body = InAppWebView( + initialUrlRequest: URLRequest(url: WebUri('http://localhost:8080/index.html$_devQuery')), + initialUserScripts: UnmodifiableListView([ + UserScript(source: _insetsScript(), injectionTime: UserScriptInjectionTime.AT_DOCUMENT_START), + ]), + onLoadStop: (controller, url) => _pushInsets(), + initialSettings: InAppWebViewSettings( + mediaPlaybackRequiresUserGesture: false, + allowsInlineMediaPlayback: true, + geolocationEnabled: true, + transparentBackground: true, + useHybridComposition: true, + // iOS: edge to edge (the page handles safe areas), no rubber-band scroll. + contentInsetAdjustmentBehavior: ScrollViewContentInsetAdjustmentBehavior.NEVER, + disallowOverScroll: true, + allowsBackForwardNavigationGestures: false, + // Sites, settings and strips live in localStorage / IndexedDB. + domStorageEnabled: true, + databaseEnabled: true, + incognito: false, + // Feels like an app, not a page: no pinch zoom. + supportZoom: false, + builtInZoomControls: false, + ), + onWebViewCreated: (controller) { + _controller = controller; + controller.addJavaScriptHandler(handlerName: 'route', callback: _handleRoute); + controller.addJavaScriptHandler(handlerName: 'keepAwake', callback: _handleKeepAwake); + controller.addJavaScriptHandler(handlerName: 'haptic', callback: _handleHaptic); + controller.addJavaScriptHandler(handlerName: 'saveFiles', callback: _handleSaveFiles); + controller.addJavaScriptHandler(handlerName: 'shareFiles', callback: _handleShareFiles); + controller.addJavaScriptHandler(handlerName: 'savePng', callback: _handleSavePng); + }, + onPermissionRequest: (controller, request) async { + // The OS-level permissions were requested at start. + return PermissionResponse( + resources: request.resources, + action: PermissionResponseAction.GRANT, + ); + }, + onGeolocationPermissionsShowPrompt: (controller, origin) async { + return GeolocationPermissionShowPromptResponse(origin: origin, allow: true, retain: true); + }, + onConsoleMessage: (controller, msg) => debugPrint('[web] ${msg.message}'), + ); + } + return PopScope( + canPop: false, + onPopInvokedWithResult: (didPop, _) { + if (!didPop) _onBack(); + }, + child: Scaffold( + backgroundColor: const Color(0xFF04060B), + body: Column( + children: [ + // Edge to edge; the page keeps clear of the system bars via --safe-top/--safe-bottom. + Expanded(child: body), + if (_tab != null) + Directionality( + textDirection: _rtl ? TextDirection.rtl : TextDirection.ltr, + child: _TabBar(selected: _tab!, labels: _tabLabels, onSelect: _selectTab), + ), + ], + ), + ), + ); + } +} + +class _TabSpec { + const _TabSpec(this.id, this.label, this.cupertino, this.material, this.materialSelected); + + final String id; + final String label; + final IconData cupertino; + final IconData material; + final IconData materialSelected; +} + +/// "New survey" is an action tab: it opens the survey flow, where the bar hides. +/// The labels here are English fallbacks; the web app sends translated ones. +const _tabs = [ + _TabSpec('sites', 'Sites', CupertinoIcons.square_stack_3d_up, Icons.landscape_outlined, Icons.landscape), + _TabSpec('new', 'New survey', CupertinoIcons.plus_circle, Icons.add_circle_outline, Icons.add_circle), + _TabSpec('settings', 'Settings', CupertinoIcons.slider_horizontal_3, Icons.tune, Icons.tune), +]; + +/// Development only: extra query for the web app, set at build time, e.g. +/// `flutter build ios --simulator --dart-define=SFZ_QUERY=skipWelcome`. +const String _devQueryRaw = String.fromEnvironment('SFZ_QUERY'); +const String _devQuery = _devQueryRaw == '' ? '' : '?$_devQueryRaw'; + +const _accent = Color(0xFFF5B544); +const _muted = Color(0xFF93A0B4); +const _barBg = Color(0xFF0A0D13); +const _barBorder = Color(0xFF1E2634); + +/// iOS: own tab bar (below). Android: Material 3 navigation bar. Both in the +/// app's dark palette with the amber accent; both pad for the home indicator. +class _TabBar extends StatelessWidget { + const _TabBar({required this.selected, required this.labels, required this.onSelect}); + + final int selected; + final Map labels; + final ValueChanged onSelect; + + @override + Widget build(BuildContext context) { + if (Platform.isIOS) return _IosTabBar(selected: selected, labels: labels, onSelect: onSelect); + return NavigationBarTheme( + data: NavigationBarThemeData( + backgroundColor: _barBg, + indicatorColor: const Color(0xFF2A2312), + surfaceTintColor: Colors.transparent, + labelTextStyle: WidgetStateProperty.resolveWith((states) => TextStyle( + fontSize: 12, + fontWeight: FontWeight.w600, + color: states.contains(WidgetState.selected) ? _accent : _muted, + )), + iconTheme: WidgetStateProperty.resolveWith((states) => IconThemeData( + color: states.contains(WidgetState.selected) ? _accent : _muted, + )), + ), + child: DecoratedBox( + decoration: const BoxDecoration(border: Border(top: BorderSide(color: _barBorder))), + child: NavigationBar( + selectedIndex: selected, + onDestinationSelected: onSelect, + height: 68, + destinations: [ + for (final t in _tabs) + NavigationDestination( + icon: Icon(t.material), + selectedIcon: Icon(t.materialSelected), + label: labels[t.id] ?? t.label, + ), + ], + ), + ), + ); + } +} + +/// iOS tab bar: icons centred in the bar with the selected one on an amber-tinted +/// capsule (as on Android), and only part of the home-indicator inset kept free — +/// CupertinoTabBar pins the icons to the top edge and leaves a tall empty strip. +class _IosTabBar extends StatelessWidget { + const _IosTabBar({required this.selected, required this.labels, required this.onSelect}); + + final int selected; + final Map labels; + final ValueChanged onSelect; + + @override + Widget build(BuildContext context) { + final inset = MediaQuery.paddingOf(context).bottom; + return Container( + decoration: const BoxDecoration( + color: _barBg, + border: Border(top: BorderSide(color: _barBorder, width: 0.5)), + ), + padding: EdgeInsets.only(top: 8, bottom: inset > 0 ? inset - 14 : 8), + child: Row( + children: [ + for (var i = 0; i < _tabs.length; i++) + Expanded( + child: Semantics( + button: true, + selected: i == selected, + label: labels[_tabs[i].id] ?? _tabs[i].label, + child: GestureDetector( + behavior: HitTestBehavior.opaque, + onTap: () => onSelect(i), + child: ExcludeSemantics( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + AnimatedContainer( + duration: const Duration(milliseconds: 180), + width: 58, + height: 30, + decoration: BoxDecoration( + color: i == selected ? const Color(0xFF2A2312) : Colors.transparent, + borderRadius: BorderRadius.circular(15), + ), + child: Icon(_tabs[i].cupertino, size: 22, color: i == selected ? _accent : _muted), + ), + const SizedBox(height: 3), + Text( + labels[_tabs[i].id] ?? _tabs[i].label, + style: TextStyle( + fontSize: 11, + fontWeight: FontWeight.w600, + color: i == selected ? _accent : _muted, + ), + ), + ], + ), + ), + ), + ), + ), + ], + ), + ); + } +} diff --git a/linux/.gitignore b/linux/.gitignore new file mode 100644 index 0000000..d3896c9 --- /dev/null +++ b/linux/.gitignore @@ -0,0 +1 @@ +flutter/ephemeral diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt new file mode 100644 index 0000000..55c7e47 --- /dev/null +++ b/linux/CMakeLists.txt @@ -0,0 +1,128 @@ +# Project-level configuration. +cmake_minimum_required(VERSION 3.13) +project(runner LANGUAGES CXX) + +# The name of the executable created for the application. Change this to change +# the on-disk name of your application. +set(BINARY_NAME "sfzenith") +# The unique GTK application identifier for this application. See: +# https://wiki.gnome.org/HowDoI/ChooseApplicationID +set(APPLICATION_ID "com.example.sfzenith") + +# Explicitly opt in to modern CMake behaviors to avoid warnings with recent +# versions of CMake. +cmake_policy(SET CMP0063 NEW) + +# Load bundled libraries from the lib/ directory relative to the binary. +set(CMAKE_INSTALL_RPATH "$ORIGIN/lib") + +# Root filesystem for cross-building. +if(FLUTTER_TARGET_PLATFORM_SYSROOT) + set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT}) + set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT}) + set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) + set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) + set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +endif() + +# Define build configuration options. +if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + set(CMAKE_BUILD_TYPE "Debug" CACHE + STRING "Flutter build mode" FORCE) + set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS + "Debug" "Profile" "Release") +endif() + +# Compilation settings that should be applied to most targets. +# +# Be cautious about adding new options here, as plugins use this function by +# default. In most cases, you should add new options to specific targets instead +# of modifying this function. +function(APPLY_STANDARD_SETTINGS TARGET) + target_compile_features(${TARGET} PUBLIC cxx_std_14) + target_compile_options(${TARGET} PRIVATE -Wall -Werror) + target_compile_options(${TARGET} PRIVATE "$<$>:-O3>") + target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>") +endfunction() + +# Flutter library and tool build rules. +set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") +add_subdirectory(${FLUTTER_MANAGED_DIR}) + +# System-level dependencies. +find_package(PkgConfig REQUIRED) +pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) + +# Application build; see runner/CMakeLists.txt. +add_subdirectory("runner") + +# Run the Flutter tool portions of the build. This must not be removed. +add_dependencies(${BINARY_NAME} flutter_assemble) + +# Only the install-generated bundle's copy of the executable will launch +# correctly, since the resources must in the right relative locations. To avoid +# people trying to run the unbundled copy, put it in a subdirectory instead of +# the default top-level location. +set_target_properties(${BINARY_NAME} + PROPERTIES + RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run" +) + + +# Generated plugin build rules, which manage building the plugins and adding +# them to the application. +include(flutter/generated_plugins.cmake) + + +# === Installation === +# By default, "installing" just makes a relocatable bundle in the build +# directory. +set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle") +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) +endif() + +# Start with a clean build bundle directory every time. +install(CODE " + file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\") + " COMPONENT Runtime) + +set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") +set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib") + +install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES}) + install(FILES "${bundled_library}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endforeach(bundled_library) + +# Copy the native assets provided by the build.dart from all packages. +set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/linux/") +install(DIRECTORY "${NATIVE_ASSETS_DIR}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +# Fully re-copy the assets directory on each build to avoid having stale files +# from a previous install. +set(FLUTTER_ASSET_DIR_NAME "flutter_assets") +install(CODE " + file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") + " COMPONENT Runtime) +install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" + DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) + +# Install the AOT library on non-Debug builds only. +if(NOT CMAKE_BUILD_TYPE MATCHES "Debug") + install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endif() diff --git a/linux/flutter/CMakeLists.txt b/linux/flutter/CMakeLists.txt new file mode 100644 index 0000000..d5bd016 --- /dev/null +++ b/linux/flutter/CMakeLists.txt @@ -0,0 +1,88 @@ +# This file controls Flutter-level build steps. It should not be edited. +cmake_minimum_required(VERSION 3.10) + +set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") + +# Configuration provided via flutter tool. +include(${EPHEMERAL_DIR}/generated_config.cmake) + +# TODO: Move the rest of this into files in ephemeral. See +# https://github.com/flutter/flutter/issues/57146. + +# Serves the same purpose as list(TRANSFORM ... PREPEND ...), +# which isn't available in 3.10. +function(list_prepend LIST_NAME PREFIX) + set(NEW_LIST "") + foreach(element ${${LIST_NAME}}) + list(APPEND NEW_LIST "${PREFIX}${element}") + endforeach(element) + set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE) +endfunction() + +# === Flutter Library === +# System-level dependencies. +find_package(PkgConfig REQUIRED) +pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) +pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0) +pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0) + +set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so") + +# Published to parent scope for install step. +set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) +set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) +set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) +set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE) + +list(APPEND FLUTTER_LIBRARY_HEADERS + "fl_basic_message_channel.h" + "fl_binary_codec.h" + "fl_binary_messenger.h" + "fl_dart_project.h" + "fl_engine.h" + "fl_json_message_codec.h" + "fl_json_method_codec.h" + "fl_message_codec.h" + "fl_method_call.h" + "fl_method_channel.h" + "fl_method_codec.h" + "fl_method_response.h" + "fl_plugin_registrar.h" + "fl_plugin_registry.h" + "fl_standard_message_codec.h" + "fl_standard_method_codec.h" + "fl_string_codec.h" + "fl_value.h" + "fl_view.h" + "flutter_linux.h" +) +list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/") +add_library(flutter INTERFACE) +target_include_directories(flutter INTERFACE + "${EPHEMERAL_DIR}" +) +target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}") +target_link_libraries(flutter INTERFACE + PkgConfig::GTK + PkgConfig::GLIB + PkgConfig::GIO +) +add_dependencies(flutter flutter_assemble) + +# === Flutter tool backend === +# _phony_ is a non-existent file to force this command to run every time, +# since currently there's no way to get a full input/output list from the +# flutter tool. +add_custom_command( + OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} + ${CMAKE_CURRENT_BINARY_DIR}/_phony_ + COMMAND ${CMAKE_COMMAND} -E env + ${FLUTTER_TOOL_ENVIRONMENT} + "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh" + ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE} + VERBATIM +) +add_custom_target(flutter_assemble DEPENDS + "${FLUTTER_LIBRARY}" + ${FLUTTER_LIBRARY_HEADERS} +) diff --git a/linux/flutter/generated_plugin_registrant.cc b/linux/flutter/generated_plugin_registrant.cc new file mode 100644 index 0000000..f6f23bf --- /dev/null +++ b/linux/flutter/generated_plugin_registrant.cc @@ -0,0 +1,15 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#include "generated_plugin_registrant.h" + +#include + +void fl_register_plugins(FlPluginRegistry* registry) { + g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar = + fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin"); + url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar); +} diff --git a/linux/flutter/generated_plugin_registrant.h b/linux/flutter/generated_plugin_registrant.h new file mode 100644 index 0000000..e0f0a47 --- /dev/null +++ b/linux/flutter/generated_plugin_registrant.h @@ -0,0 +1,15 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#ifndef GENERATED_PLUGIN_REGISTRANT_ +#define GENERATED_PLUGIN_REGISTRANT_ + +#include + +// Registers Flutter plugins. +void fl_register_plugins(FlPluginRegistry* registry); + +#endif // GENERATED_PLUGIN_REGISTRANT_ diff --git a/linux/flutter/generated_plugins.cmake b/linux/flutter/generated_plugins.cmake new file mode 100644 index 0000000..df8d2f7 --- /dev/null +++ b/linux/flutter/generated_plugins.cmake @@ -0,0 +1,25 @@ +# +# Generated file, do not edit. +# + +list(APPEND FLUTTER_PLUGIN_LIST + url_launcher_linux +) + +list(APPEND FLUTTER_FFI_PLUGIN_LIST + jni +) + +set(PLUGIN_BUNDLED_LIBRARIES) + +foreach(plugin ${FLUTTER_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin}) + target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) + list(APPEND PLUGIN_BUNDLED_LIBRARIES $) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) +endforeach(plugin) + +foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin}) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) +endforeach(ffi_plugin) diff --git a/linux/runner/CMakeLists.txt b/linux/runner/CMakeLists.txt new file mode 100644 index 0000000..e97dabc --- /dev/null +++ b/linux/runner/CMakeLists.txt @@ -0,0 +1,26 @@ +cmake_minimum_required(VERSION 3.13) +project(runner LANGUAGES CXX) + +# Define the application target. To change its name, change BINARY_NAME in the +# top-level CMakeLists.txt, not the value here, or `flutter run` will no longer +# work. +# +# Any new source files that you add to the application should be added here. +add_executable(${BINARY_NAME} + "main.cc" + "my_application.cc" + "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" +) + +# Apply the standard set of build settings. This can be removed for applications +# that need different build settings. +apply_standard_settings(${BINARY_NAME}) + +# Add preprocessor definitions for the application ID. +add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}") + +# Add dependency libraries. Add any application-specific dependencies here. +target_link_libraries(${BINARY_NAME} PRIVATE flutter) +target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK) + +target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") diff --git a/linux/runner/main.cc b/linux/runner/main.cc new file mode 100644 index 0000000..e7c5c54 --- /dev/null +++ b/linux/runner/main.cc @@ -0,0 +1,6 @@ +#include "my_application.h" + +int main(int argc, char** argv) { + g_autoptr(MyApplication) app = my_application_new(); + return g_application_run(G_APPLICATION(app), argc, argv); +} diff --git a/linux/runner/my_application.cc b/linux/runner/my_application.cc new file mode 100644 index 0000000..d01125d --- /dev/null +++ b/linux/runner/my_application.cc @@ -0,0 +1,148 @@ +#include "my_application.h" + +#include +#ifdef GDK_WINDOWING_X11 +#include +#endif + +#include "flutter/generated_plugin_registrant.h" + +struct _MyApplication { + GtkApplication parent_instance; + char** dart_entrypoint_arguments; +}; + +G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION) + +// Called when first Flutter frame received. +static void first_frame_cb(MyApplication* self, FlView* view) { + gtk_widget_show(gtk_widget_get_toplevel(GTK_WIDGET(view))); +} + +// Implements GApplication::activate. +static void my_application_activate(GApplication* application) { + MyApplication* self = MY_APPLICATION(application); + GtkWindow* window = + GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application))); + + // Use a header bar when running in GNOME as this is the common style used + // by applications and is the setup most users will be using (e.g. Ubuntu + // desktop). + // If running on X and not using GNOME then just use a traditional title bar + // in case the window manager does more exotic layout, e.g. tiling. + // If running on Wayland assume the header bar will work (may need changing + // if future cases occur). + gboolean use_header_bar = TRUE; +#ifdef GDK_WINDOWING_X11 + GdkScreen* screen = gtk_window_get_screen(window); + if (GDK_IS_X11_SCREEN(screen)) { + const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen); + if (g_strcmp0(wm_name, "GNOME Shell") != 0) { + use_header_bar = FALSE; + } + } +#endif + if (use_header_bar) { + GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new()); + gtk_widget_show(GTK_WIDGET(header_bar)); + gtk_header_bar_set_title(header_bar, "sfzenith"); + gtk_header_bar_set_show_close_button(header_bar, TRUE); + gtk_window_set_titlebar(window, GTK_WIDGET(header_bar)); + } else { + gtk_window_set_title(window, "sfzenith"); + } + + gtk_window_set_default_size(window, 1280, 720); + + g_autoptr(FlDartProject) project = fl_dart_project_new(); + fl_dart_project_set_dart_entrypoint_arguments( + project, self->dart_entrypoint_arguments); + + FlView* view = fl_view_new(project); + GdkRGBA background_color; + // Background defaults to black, override it here if necessary, e.g. #00000000 + // for transparent. + gdk_rgba_parse(&background_color, "#000000"); + fl_view_set_background_color(view, &background_color); + gtk_widget_show(GTK_WIDGET(view)); + gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view)); + + // Show the window when Flutter renders. + // Requires the view to be realized so we can start rendering. + g_signal_connect_swapped(view, "first-frame", G_CALLBACK(first_frame_cb), + self); + gtk_widget_realize(GTK_WIDGET(view)); + + fl_register_plugins(FL_PLUGIN_REGISTRY(view)); + + gtk_widget_grab_focus(GTK_WIDGET(view)); +} + +// Implements GApplication::local_command_line. +static gboolean my_application_local_command_line(GApplication* application, + gchar*** arguments, + int* exit_status) { + MyApplication* self = MY_APPLICATION(application); + // Strip out the first argument as it is the binary name. + self->dart_entrypoint_arguments = g_strdupv(*arguments + 1); + + g_autoptr(GError) error = nullptr; + if (!g_application_register(application, nullptr, &error)) { + g_warning("Failed to register: %s", error->message); + *exit_status = 1; + return TRUE; + } + + g_application_activate(application); + *exit_status = 0; + + return TRUE; +} + +// Implements GApplication::startup. +static void my_application_startup(GApplication* application) { + // MyApplication* self = MY_APPLICATION(object); + + // Perform any actions required at application startup. + + G_APPLICATION_CLASS(my_application_parent_class)->startup(application); +} + +// Implements GApplication::shutdown. +static void my_application_shutdown(GApplication* application) { + // MyApplication* self = MY_APPLICATION(object); + + // Perform any actions required at application shutdown. + + G_APPLICATION_CLASS(my_application_parent_class)->shutdown(application); +} + +// Implements GObject::dispose. +static void my_application_dispose(GObject* object) { + MyApplication* self = MY_APPLICATION(object); + g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev); + G_OBJECT_CLASS(my_application_parent_class)->dispose(object); +} + +static void my_application_class_init(MyApplicationClass* klass) { + G_APPLICATION_CLASS(klass)->activate = my_application_activate; + G_APPLICATION_CLASS(klass)->local_command_line = + my_application_local_command_line; + G_APPLICATION_CLASS(klass)->startup = my_application_startup; + G_APPLICATION_CLASS(klass)->shutdown = my_application_shutdown; + G_OBJECT_CLASS(klass)->dispose = my_application_dispose; +} + +static void my_application_init(MyApplication* self) {} + +MyApplication* my_application_new() { + // Set the program name to the application ID, which helps various systems + // like GTK and desktop environments map this running application to its + // corresponding .desktop file. This ensures better integration by allowing + // the application to be recognized beyond its binary name. + g_set_prgname(APPLICATION_ID); + + return MY_APPLICATION(g_object_new(my_application_get_type(), + "application-id", APPLICATION_ID, "flags", + G_APPLICATION_NON_UNIQUE, nullptr)); +} diff --git a/linux/runner/my_application.h b/linux/runner/my_application.h new file mode 100644 index 0000000..db16367 --- /dev/null +++ b/linux/runner/my_application.h @@ -0,0 +1,21 @@ +#ifndef FLUTTER_MY_APPLICATION_H_ +#define FLUTTER_MY_APPLICATION_H_ + +#include + +G_DECLARE_FINAL_TYPE(MyApplication, + my_application, + MY, + APPLICATION, + GtkApplication) + +/** + * my_application_new: + * + * Creates a new Flutter-based application. + * + * Returns: a new #MyApplication. + */ +MyApplication* my_application_new(); + +#endif // FLUTTER_MY_APPLICATION_H_ diff --git a/macos/.gitignore b/macos/.gitignore new file mode 100644 index 0000000..746adbb --- /dev/null +++ b/macos/.gitignore @@ -0,0 +1,7 @@ +# Flutter-related +**/Flutter/ephemeral/ +**/Pods/ + +# Xcode-related +**/dgph +**/xcuserdata/ diff --git a/macos/Flutter/Flutter-Debug.xcconfig b/macos/Flutter/Flutter-Debug.xcconfig new file mode 100644 index 0000000..4b81f9b --- /dev/null +++ b/macos/Flutter/Flutter-Debug.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/macos/Flutter/Flutter-Release.xcconfig b/macos/Flutter/Flutter-Release.xcconfig new file mode 100644 index 0000000..5caa9d1 --- /dev/null +++ b/macos/Flutter/Flutter-Release.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift new file mode 100644 index 0000000..b220942 --- /dev/null +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -0,0 +1,20 @@ +// +// Generated file. Do not edit. +// + +import FlutterMacOS +import Foundation + +import flutter_inappwebview_macos +import gal +import package_info_plus +import share_plus +import wakelock_plus + +func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { + InAppWebViewFlutterPlugin.register(with: registry.registrar(forPlugin: "InAppWebViewFlutterPlugin")) + GalPlugin.register(with: registry.registrar(forPlugin: "GalPlugin")) + FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin")) + SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin")) + WakelockPlusMacosPlugin.register(with: registry.registrar(forPlugin: "WakelockPlusMacosPlugin")) +} diff --git a/macos/Podfile b/macos/Podfile new file mode 100644 index 0000000..ff5ddb3 --- /dev/null +++ b/macos/Podfile @@ -0,0 +1,42 @@ +platform :osx, '10.15' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_macos_podfile_setup + +target 'Runner' do + use_frameworks! + + flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) + target 'RunnerTests' do + inherit! :search_paths + end +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_macos_build_settings(target) + end +end diff --git a/macos/Runner.xcodeproj/project.pbxproj b/macos/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000..f1fe015 --- /dev/null +++ b/macos/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,705 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXAggregateTarget section */ + 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = { + isa = PBXAggregateTarget; + buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */; + buildPhases = ( + 33CC111E2044C6BF0003C045 /* ShellScript */, + ); + dependencies = ( + ); + name = "Flutter Assemble"; + productName = FLX; + }; +/* End PBXAggregateTarget section */ + +/* Begin PBXBuildFile section */ + 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C80D7294CF71000263BE5 /* RunnerTests.swift */; }; + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; }; + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; }; + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC10EC2044A3C60003C045; + remoteInfo = Runner; + }; + 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC111A2044C6BA0003C045; + remoteInfo = FLX; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 33CC110E2044A8840003C045 /* Bundle Framework */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Bundle Framework"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; + 33CC10ED2044A3C60003C045 /* sfzenith.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "sfzenith.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; + 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; + 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; }; + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; }; + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; }; + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; }; + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; }; + 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; + 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; + 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 331C80D2294CF70F00263BE5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10EA2044A3C60003C045 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 331C80D6294CF71000263BE5 /* RunnerTests */ = { + isa = PBXGroup; + children = ( + 331C80D7294CF71000263BE5 /* RunnerTests.swift */, + ); + path = RunnerTests; + sourceTree = ""; + }; + 33BA886A226E78AF003329D5 /* Configs */ = { + isa = PBXGroup; + children = ( + 33E5194F232828860026EE4D /* AppInfo.xcconfig */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */, + ); + path = Configs; + sourceTree = ""; + }; + 33CC10E42044A3C60003C045 = { + isa = PBXGroup; + children = ( + 33FAB671232836740065AC1E /* Runner */, + 33CEB47122A05771004F2AC0 /* Flutter */, + 331C80D6294CF71000263BE5 /* RunnerTests */, + 33CC10EE2044A3C60003C045 /* Products */, + D73912EC22F37F3D000D13A0 /* Frameworks */, + ); + sourceTree = ""; + }; + 33CC10EE2044A3C60003C045 /* Products */ = { + isa = PBXGroup; + children = ( + 33CC10ED2044A3C60003C045 /* sfzenith.app */, + 331C80D5294CF71000263BE5 /* RunnerTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 33CC11242044D66E0003C045 /* Resources */ = { + isa = PBXGroup; + children = ( + 33CC10F22044A3C60003C045 /* Assets.xcassets */, + 33CC10F42044A3C60003C045 /* MainMenu.xib */, + 33CC10F72044A3C60003C045 /* Info.plist */, + ); + name = Resources; + path = ..; + sourceTree = ""; + }; + 33CEB47122A05771004F2AC0 /* Flutter */ = { + isa = PBXGroup; + children = ( + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */, + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */, + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */, + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */, + ); + path = Flutter; + sourceTree = ""; + }; + 33FAB671232836740065AC1E /* Runner */ = { + isa = PBXGroup; + children = ( + 33CC10F02044A3C60003C045 /* AppDelegate.swift */, + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */, + 33E51913231747F40026EE4D /* DebugProfile.entitlements */, + 33E51914231749380026EE4D /* Release.entitlements */, + 33CC11242044D66E0003C045 /* Resources */, + 33BA886A226E78AF003329D5 /* Configs */, + ); + path = Runner; + sourceTree = ""; + }; + D73912EC22F37F3D000D13A0 /* Frameworks */ = { + isa = PBXGroup; + children = ( + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 331C80D4294CF70F00263BE5 /* RunnerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; + buildPhases = ( + 331C80D1294CF70F00263BE5 /* Sources */, + 331C80D2294CF70F00263BE5 /* Frameworks */, + 331C80D3294CF70F00263BE5 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 331C80DA294CF71000263BE5 /* PBXTargetDependency */, + ); + name = RunnerTests; + productName = RunnerTests; + productReference = 331C80D5294CF71000263BE5 /* RunnerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 33CC10EC2044A3C60003C045 /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 33CC10E92044A3C60003C045 /* Sources */, + 33CC10EA2044A3C60003C045 /* Frameworks */, + 33CC10EB2044A3C60003C045 /* Resources */, + 33CC110E2044A8840003C045 /* Bundle Framework */, + 3399D490228B24CF009A79C7 /* ShellScript */, + ); + buildRules = ( + ); + dependencies = ( + 33CC11202044C79F0003C045 /* PBXTargetDependency */, + ); + name = Runner; + productName = Runner; + productReference = 33CC10ED2044A3C60003C045 /* sfzenith.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 33CC10E52044A3C60003C045 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 331C80D4294CF70F00263BE5 = { + CreatedOnToolsVersion = 14.0; + TestTargetID = 33CC10EC2044A3C60003C045; + }; + 33CC10EC2044A3C60003C045 = { + CreatedOnToolsVersion = 9.2; + LastSwiftMigration = 1100; + ProvisioningStyle = Automatic; + SystemCapabilities = { + com.apple.Sandbox = { + enabled = 1; + }; + }; + }; + 33CC111A2044C6BA0003C045 = { + CreatedOnToolsVersion = 9.2; + ProvisioningStyle = Manual; + }; + }; + }; + buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 33CC10E42044A3C60003C045; + productRefGroup = 33CC10EE2044A3C60003C045 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 33CC10EC2044A3C60003C045 /* Runner */, + 331C80D4294CF70F00263BE5 /* RunnerTests */, + 33CC111A2044C6BA0003C045 /* Flutter Assemble */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 331C80D3294CF70F00263BE5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10EB2044A3C60003C045 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */, + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3399D490228B24CF009A79C7 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n"; + }; + 33CC111E2044C6BF0003C045 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + Flutter/ephemeral/FlutterInputs.xcfilelist, + ); + inputPaths = ( + Flutter/ephemeral/tripwire, + ); + outputFileListPaths = ( + Flutter/ephemeral/FlutterOutputs.xcfilelist, + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 331C80D1294CF70F00263BE5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10E92044A3C60003C045 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */, + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */, + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 331C80DA294CF71000263BE5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC10EC2044A3C60003C045 /* Runner */; + targetProxy = 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */; + }; + 33CC11202044C79F0003C045 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; + targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 33CC10F42044A3C60003C045 /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + 33CC10F52044A3C60003C045 /* Base */, + ); + name = MainMenu.xib; + path = Runner; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 331C80DB294CF71000263BE5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.sfzenith.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/sfzenith.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/sfzenith"; + }; + name = Debug; + }; + 331C80DC294CF71000263BE5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.sfzenith.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/sfzenith.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/sfzenith"; + }; + name = Release; + }; + 331C80DD294CF71000263BE5 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.sfzenith.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/sfzenith.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/sfzenith"; + }; + name = Profile; + }; + 338D0CE9231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.15; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Profile; + }; + 338D0CEA231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = Profile; + }; + 338D0CEB231458BD00FA5F75 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Profile; + }; + 33CC10F92044A3C60003C045 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.15; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 33CC10FA2044A3C60003C045 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.15; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Release; + }; + 33CC10FC2044A3C60003C045 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 33CC10FD2044A3C60003C045 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; + 33CC111C2044C6BA0003C045 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 33CC111D2044C6BA0003C045 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 331C80DB294CF71000263BE5 /* Debug */, + 331C80DC294CF71000263BE5 /* Release */, + 331C80DD294CF71000263BE5 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10F92044A3C60003C045 /* Debug */, + 33CC10FA2044A3C60003C045 /* Release */, + 338D0CE9231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10FC2044A3C60003C045 /* Debug */, + 33CC10FD2044A3C60003C045 /* Release */, + 338D0CEA231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC111C2044C6BA0003C045 /* Debug */, + 33CC111D2044C6BA0003C045 /* Release */, + 338D0CEB231458BD00FA5F75 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 33CC10E52044A3C60003C045 /* Project object */; +} diff --git a/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000..d577546 --- /dev/null +++ b/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/macos/Runner.xcworkspace/contents.xcworkspacedata b/macos/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..1d526a1 --- /dev/null +++ b/macos/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/macos/Runner/AppDelegate.swift b/macos/Runner/AppDelegate.swift new file mode 100644 index 0000000..b3c1761 --- /dev/null +++ b/macos/Runner/AppDelegate.swift @@ -0,0 +1,13 @@ +import Cocoa +import FlutterMacOS + +@main +class AppDelegate: FlutterAppDelegate { + override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { + return true + } + + override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool { + return true + } +} diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..a2ec33f --- /dev/null +++ b/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_16.png", + "scale" : "1x" + }, + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "2x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_32.png", + "scale" : "1x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "app_icon_64.png", + "scale" : "2x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_128.png", + "scale" : "1x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "2x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_256.png", + "scale" : "1x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "2x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_512.png", + "scale" : "1x" + }, + { + "size" : "512x512", + "idiom" : "mac", + "filename" : "app_icon_1024.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png new file mode 100644 index 0000000..82b6f9d Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png new file mode 100644 index 0000000..13b35eb Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png new file mode 100644 index 0000000..0a3f5fa Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png new file mode 100644 index 0000000..bdb5722 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png new file mode 100644 index 0000000..f083318 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png new file mode 100644 index 0000000..326c0e7 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png new file mode 100644 index 0000000..2f1632c Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png differ diff --git a/macos/Runner/Base.lproj/MainMenu.xib b/macos/Runner/Base.lproj/MainMenu.xib new file mode 100644 index 0000000..80e867a --- /dev/null +++ b/macos/Runner/Base.lproj/MainMenu.xib @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/macos/Runner/Configs/AppInfo.xcconfig b/macos/Runner/Configs/AppInfo.xcconfig new file mode 100644 index 0000000..7d0c735 --- /dev/null +++ b/macos/Runner/Configs/AppInfo.xcconfig @@ -0,0 +1,14 @@ +// Application-level settings for the Runner target. +// +// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the +// future. If not, the values below would default to using the project name when this becomes a +// 'flutter create' template. + +// The application's name. By default this is also the title of the Flutter window. +PRODUCT_NAME = sfzenith + +// The application's bundle identifier +PRODUCT_BUNDLE_IDENTIFIER = com.example.sfzenith + +// The copyright displayed in application information +PRODUCT_COPYRIGHT = Copyright © 2026 com.example. All rights reserved. diff --git a/macos/Runner/Configs/Debug.xcconfig b/macos/Runner/Configs/Debug.xcconfig new file mode 100644 index 0000000..36b0fd9 --- /dev/null +++ b/macos/Runner/Configs/Debug.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Debug.xcconfig" +#include "Warnings.xcconfig" diff --git a/macos/Runner/Configs/Release.xcconfig b/macos/Runner/Configs/Release.xcconfig new file mode 100644 index 0000000..dff4f49 --- /dev/null +++ b/macos/Runner/Configs/Release.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Release.xcconfig" +#include "Warnings.xcconfig" diff --git a/macos/Runner/Configs/Warnings.xcconfig b/macos/Runner/Configs/Warnings.xcconfig new file mode 100644 index 0000000..42bcbf4 --- /dev/null +++ b/macos/Runner/Configs/Warnings.xcconfig @@ -0,0 +1,13 @@ +WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings +GCC_WARN_UNDECLARED_SELECTOR = YES +CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES +CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE +CLANG_WARN__DUPLICATE_METHOD_MATCH = YES +CLANG_WARN_PRAGMA_PACK = YES +CLANG_WARN_STRICT_PROTOTYPES = YES +CLANG_WARN_COMMA = YES +GCC_WARN_STRICT_SELECTOR_MATCH = YES +CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES +CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES +GCC_WARN_SHADOW = YES +CLANG_WARN_UNREACHABLE_CODE = YES diff --git a/macos/Runner/DebugProfile.entitlements b/macos/Runner/DebugProfile.entitlements new file mode 100644 index 0000000..dddb8a3 --- /dev/null +++ b/macos/Runner/DebugProfile.entitlements @@ -0,0 +1,12 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.cs.allow-jit + + com.apple.security.network.server + + + diff --git a/macos/Runner/Info.plist b/macos/Runner/Info.plist new file mode 100644 index 0000000..4789daa --- /dev/null +++ b/macos/Runner/Info.plist @@ -0,0 +1,32 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + NSHumanReadableCopyright + $(PRODUCT_COPYRIGHT) + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/macos/Runner/MainFlutterWindow.swift b/macos/Runner/MainFlutterWindow.swift new file mode 100644 index 0000000..3cc05eb --- /dev/null +++ b/macos/Runner/MainFlutterWindow.swift @@ -0,0 +1,15 @@ +import Cocoa +import FlutterMacOS + +class MainFlutterWindow: NSWindow { + override func awakeFromNib() { + let flutterViewController = FlutterViewController() + let windowFrame = self.frame + self.contentViewController = flutterViewController + self.setFrame(windowFrame, display: true) + + RegisterGeneratedPlugins(registry: flutterViewController) + + super.awakeFromNib() + } +} diff --git a/macos/Runner/Release.entitlements b/macos/Runner/Release.entitlements new file mode 100644 index 0000000..852fa1a --- /dev/null +++ b/macos/Runner/Release.entitlements @@ -0,0 +1,8 @@ + + + + + com.apple.security.app-sandbox + + + diff --git a/macos/RunnerTests/RunnerTests.swift b/macos/RunnerTests/RunnerTests.swift new file mode 100644 index 0000000..61f3bd1 --- /dev/null +++ b/macos/RunnerTests/RunnerTests.swift @@ -0,0 +1,12 @@ +import Cocoa +import FlutterMacOS +import XCTest + +class RunnerTests: XCTestCase { + + func testExample() { + // If you add code to the Runner application, consider adding tests here. + // See https://developer.apple.com/documentation/xctest for more information about using XCTest. + } + +} diff --git a/pubspec.lock b/pubspec.lock new file mode 100644 index 0000000..01f46ca --- /dev/null +++ b/pubspec.lock @@ -0,0 +1,810 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + ansicolor: + dependency: transitive + description: + name: ansicolor + sha256: "50e982d500bc863e1d703448afdbf9e5a72eb48840a4f766fa361ffd6877055f" + url: "https://pub.dev" + source: hosted + version: "2.0.3" + archive: + dependency: transitive + description: + name: archive + sha256: "0d58d1fa1fddf6588251ccf2819f3fb3b6d0452c1b2813ac7413a05592bfbefe" + url: "https://pub.dev" + source: hosted + version: "4.5.2" + args: + dependency: transitive + description: + name: args + sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04 + url: "https://pub.dev" + source: hosted + version: "2.7.0" + async: + dependency: transitive + description: + name: async + sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb" + url: "https://pub.dev" + source: hosted + version: "2.13.0" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + characters: + dependency: transitive + description: + name: characters + sha256: faf38497bda5ead2a8c7615f4f7939df04333478bf32e4173fcb06d428b5716b + url: "https://pub.dev" + source: hosted + version: "1.4.1" + checked_yaml: + dependency: transitive + description: + name: checked_yaml + sha256: "959525d3162f249993882720d52b7e0c833978df229be20702b33d48d91de70f" + url: "https://pub.dev" + source: hosted + version: "2.0.4" + cli_util: + dependency: transitive + description: + name: cli_util + sha256: ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c + url: "https://pub.dev" + source: hosted + version: "0.4.2" + clock: + dependency: transitive + description: + name: clock + sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b + url: "https://pub.dev" + source: hosted + version: "1.1.2" + code_assets: + dependency: transitive + description: + name: code_assets + sha256: bf394f466ba9205f1812a0433b392d6af280f155f56651eda7c18cc32ed493b8 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + collection: + dependency: transitive + description: + name: collection + sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" + url: "https://pub.dev" + source: hosted + version: "1.19.1" + cross_file: + dependency: transitive + description: + name: cross_file + sha256: f141ea4f277af142a0356955707f6556f37b03947d39d55585981a06ca437bd6 + url: "https://pub.dev" + source: hosted + version: "0.3.5+5" + crypto: + dependency: transitive + description: + name: crypto + sha256: c8ea0233063ba03258fbcf2ca4d6dadfefe14f02fab57702265467a19f27fadf + url: "https://pub.dev" + source: hosted + version: "3.0.7" + csslib: + dependency: transitive + description: + name: csslib + sha256: "09bad715f418841f976c77db72d5398dc1253c21fb9c0c7f0b0b985860b2d58e" + url: "https://pub.dev" + source: hosted + version: "1.0.2" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 + url: "https://pub.dev" + source: hosted + version: "1.0.8" + dbus: + dependency: transitive + description: + name: dbus + sha256: a48d5da28e89bd02196e80d81ed8d7954923d00a0f4a68cc20b575038f023383 + url: "https://pub.dev" + source: hosted + version: "0.7.15" + fake_async: + dependency: transitive + description: + name: fake_async + sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" + url: "https://pub.dev" + source: hosted + version: "1.3.3" + ffi: + dependency: transitive + description: + name: ffi + sha256: "6d7fd89431262d8f3125e81b50d3847a091d846eafcd4fdb88dd06f36d705a45" + url: "https://pub.dev" + source: hosted + version: "2.2.0" + ffi_leak_tracker: + dependency: transitive + description: + name: ffi_leak_tracker + sha256: "4093d4ef9ca06ffe2786e73bfb25e22aa92112b9bb4ec941f11e3e6b61489a97" + url: "https://pub.dev" + source: hosted + version: "0.1.2" + file: + dependency: transitive + description: + name: file + sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4 + url: "https://pub.dev" + source: hosted + version: "7.0.1" + fixnum: + dependency: transitive + description: + name: fixnum + sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be + url: "https://pub.dev" + source: hosted + version: "1.1.1" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_inappwebview: + dependency: "direct main" + description: + name: flutter_inappwebview + sha256: "80092d13d3e29b6227e25b67973c67c7210bd5e35c4b747ca908e31eb71a46d5" + url: "https://pub.dev" + source: hosted + version: "6.1.5" + flutter_inappwebview_android: + dependency: transitive + description: + name: flutter_inappwebview_android + sha256: "62557c15a5c2db5d195cb3892aab74fcaec266d7b86d59a6f0027abd672cddba" + url: "https://pub.dev" + source: hosted + version: "1.1.3" + flutter_inappwebview_internal_annotations: + dependency: transitive + description: + name: flutter_inappwebview_internal_annotations + sha256: e30fba942e3debea7b7e6cdd4f0f59ce89dd403a9865193e3221293b6d1544c6 + url: "https://pub.dev" + source: hosted + version: "1.3.0" + flutter_inappwebview_ios: + dependency: transitive + description: + name: flutter_inappwebview_ios + sha256: "5818cf9b26cf0cbb0f62ff50772217d41ea8d3d9cc00279c45f8aabaa1b4025d" + url: "https://pub.dev" + source: hosted + version: "1.1.2" + flutter_inappwebview_macos: + dependency: transitive + description: + name: flutter_inappwebview_macos + sha256: c1fbb86af1a3738e3541364d7d1866315ffb0468a1a77e34198c9be571287da1 + url: "https://pub.dev" + source: hosted + version: "1.1.2" + flutter_inappwebview_platform_interface: + dependency: transitive + description: + name: flutter_inappwebview_platform_interface + sha256: cf5323e194096b6ede7a1ca808c3e0a078e4b33cc3f6338977d75b4024ba2500 + url: "https://pub.dev" + source: hosted + version: "1.3.0+1" + flutter_inappwebview_web: + dependency: transitive + description: + name: flutter_inappwebview_web + sha256: "55f89c83b0a0d3b7893306b3bb545ba4770a4df018204917148ebb42dc14a598" + url: "https://pub.dev" + source: hosted + version: "1.1.2" + flutter_inappwebview_windows: + dependency: transitive + description: + name: flutter_inappwebview_windows + sha256: "8b4d3a46078a2cdc636c4a3d10d10f2a16882f6be607962dbfff8874d1642055" + url: "https://pub.dev" + source: hosted + version: "0.6.0" + flutter_launcher_icons: + dependency: "direct dev" + description: + name: flutter_launcher_icons + sha256: "10f13781741a2e3972126fae08393d3c4e01fa4cd7473326b94b72cf594195e7" + url: "https://pub.dev" + source: hosted + version: "0.14.4" + flutter_lints: + dependency: "direct dev" + description: + name: flutter_lints + sha256: "3105dc8492f6183fb076ccf1f351ac3d60564bff92e20bfc4af9cc1651f4e7e1" + url: "https://pub.dev" + source: hosted + version: "6.0.0" + flutter_native_splash: + dependency: "direct dev" + description: + name: flutter_native_splash + sha256: "4fb9f4113350d3a80841ce05ebf1976a36de622af7d19aca0ca9a9911c7ff002" + url: "https://pub.dev" + source: hosted + version: "2.4.7" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + flutter_web_plugins: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + gal: + dependency: "direct main" + description: + name: gal + sha256: "969598f986789127fd407a750413249e1352116d4c2be66e81837ffeeaafdfee" + url: "https://pub.dev" + source: hosted + version: "2.3.2" + hooks: + dependency: transitive + description: + name: hooks + sha256: "9a62a50b50b769a737bc0a8ff381f333529df3ab746b2f6b02e83760231455ba" + url: "https://pub.dev" + source: hosted + version: "2.0.2" + html: + dependency: transitive + description: + name: html + sha256: "43b67b8f43321ab066817dfac5619596c98bb1b61624e77203bb4351785f9699" + url: "https://pub.dev" + source: hosted + version: "0.15.7" + http: + dependency: transitive + description: + name: http + sha256: "87721a4a50b19c7f1d49001e51409bddc46303966ce89a65af4f4e6004896412" + url: "https://pub.dev" + source: hosted + version: "1.6.0" + http_parser: + dependency: transitive + description: + name: http_parser + sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571" + url: "https://pub.dev" + source: hosted + version: "4.1.2" + image: + dependency: transitive + description: + name: image + sha256: "89ed75b2f8231fe676808c5564f9590d728024ded7ac782a7ed8474f1c95b72a" + url: "https://pub.dev" + source: hosted + version: "4.12.0" + jni: + dependency: transitive + description: + name: jni + sha256: "6b9ca0602fef0230e83149afbe3f9f8227e94f2bbe84a1da4f14d699742f402d" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + jni_flutter: + dependency: transitive + description: + name: jni_flutter + sha256: "0dd33d67797560f66e961a6053882d4df54bd345bf063b8fe7ea133f7ad8b191" + url: "https://pub.dev" + source: hosted + version: "1.0.4+1" + jni_util: + dependency: transitive + description: + name: jni_util + sha256: "1ba86da04a5f2bf18fde2edb235587e70c5b0fc5bd4ba955f46b00942c3fc35f" + url: "https://pub.dev" + source: hosted + version: "1.0.0" + json_annotation: + dependency: transitive + description: + name: json_annotation + sha256: "2a743920d81b7910627f68ee2c9ac1fc0bfee32b9fc3403587d7c6791ca12f80" + url: "https://pub.dev" + source: hosted + version: "4.12.0" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de" + url: "https://pub.dev" + source: hosted + version: "11.0.2" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1" + url: "https://pub.dev" + source: hosted + version: "3.0.10" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + lints: + dependency: transitive + description: + name: lints + sha256: "12f842a479589fea194fe5c5a3095abc7be0c1f2ddfa9a0e76aed1dbd26a87df" + url: "https://pub.dev" + source: hosted + version: "6.1.0" + logging: + dependency: transitive + description: + name: logging + sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61 + url: "https://pub.dev" + source: hosted + version: "1.3.0" + matcher: + dependency: transitive + description: + name: matcher + sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861 + url: "https://pub.dev" + source: hosted + version: "0.12.19" + material_color_utilities: + dependency: transitive + description: + name: material_color_utilities + sha256: "9c337007e82b1889149c82ed242ed1cb24a66044e30979c44912381e9be4c48b" + url: "https://pub.dev" + source: hosted + version: "0.13.0" + meta: + dependency: transitive + description: + name: meta + sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394" + url: "https://pub.dev" + source: hosted + version: "1.17.0" + mime: + dependency: transitive + description: + name: mime + sha256: bd47de35f07e27267e69c8c8b22edf9473bfee170a60d60fcc93730c5144b7f6 + url: "https://pub.dev" + source: hosted + version: "2.1.0" + objective_c: + dependency: transitive + description: + name: objective_c + sha256: b7fb95a6d9a4f009edd63dc5ac69f07420b23a16161c6dd8660290b59c602e8e + url: "https://pub.dev" + source: hosted + version: "9.5.0" + package_config: + dependency: transitive + description: + name: package_config + sha256: ffcf4cf3d6c0b74ac43708d9f56625506e8a68aa935abe9d267a7330f320eb5d + url: "https://pub.dev" + source: hosted + version: "3.0.0" + package_info_plus: + dependency: transitive + description: + name: package_info_plus + sha256: "73ef2cd5c11a7548f9b7f6fc2a4f6113de2e64aa2a70de63feede95548822908" + url: "https://pub.dev" + source: hosted + version: "10.2.2" + package_info_plus_platform_interface: + dependency: transitive + description: + name: package_info_plus_platform_interface + sha256: db762cb2f4f25ee60fb6359773861b0f199e00b90d237bd85a76a1e806b46ef4 + url: "https://pub.dev" + source: hosted + version: "4.1.0" + path: + dependency: transitive + description: + name: path + sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" + url: "https://pub.dev" + source: hosted + version: "1.9.1" + path_provider: + dependency: transitive + description: + name: path_provider + sha256: a7f4874f987173da295a61c181b8ee71dab59b332a486b391babf26a1b884825 + url: "https://pub.dev" + source: hosted + version: "2.1.6" + path_provider_android: + dependency: transitive + description: + name: path_provider_android + sha256: "69cbd515a62b94d32a7944f086b2f82b4ac40a1d45bebfc00813a430ab2dabcd" + url: "https://pub.dev" + source: hosted + version: "2.3.1" + path_provider_foundation: + dependency: transitive + description: + name: path_provider_foundation + sha256: "2a376b7d6392d80cd3705782d2caa734ca4727776db0b6ec36ef3f1855197699" + url: "https://pub.dev" + source: hosted + version: "2.6.0" + path_provider_linux: + dependency: transitive + description: + name: path_provider_linux + sha256: "58c2005f147315b11e9b4a7bc889cd5203e250cba8e3f012dae259b4972b5c16" + url: "https://pub.dev" + source: hosted + version: "2.2.2" + path_provider_platform_interface: + dependency: transitive + description: + name: path_provider_platform_interface + sha256: "484838772624c3a4b94f1e44a3e19897fee738f2d5c4ce448443b0417f7c9dda" + url: "https://pub.dev" + source: hosted + version: "2.1.3" + path_provider_windows: + dependency: transitive + description: + name: path_provider_windows + sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 + url: "https://pub.dev" + source: hosted + version: "2.3.0" + permission_handler: + dependency: "direct main" + description: + name: permission_handler + sha256: fe54465bcc62a4564c6e4db337bbaded6c0c0fa6e10487414436d163114784f6 + url: "https://pub.dev" + source: hosted + version: "12.0.3" + permission_handler_android: + dependency: transitive + description: + name: permission_handler_android + sha256: "1e3bc410ca1bf84662104b100eb126e066cb55791b7451307f9708d4007350e6" + url: "https://pub.dev" + source: hosted + version: "13.0.1" + permission_handler_apple: + dependency: transitive + description: + name: permission_handler_apple + sha256: "79dfa1df734798aa3cfdad166d3a3698c206d8813de13516ea1071b5d7e2f420" + url: "https://pub.dev" + source: hosted + version: "9.4.10" + permission_handler_html: + dependency: transitive + description: + name: permission_handler_html + sha256: "38f000e83355abb3392140f6bc3030660cfaef189e1f87824facb76300b4ff24" + url: "https://pub.dev" + source: hosted + version: "0.1.3+5" + permission_handler_platform_interface: + dependency: transitive + description: + name: permission_handler_platform_interface + sha256: eb99b295153abce5d683cac8c02e22faab63e50679b937fa1bf67d58bb282878 + url: "https://pub.dev" + source: hosted + version: "4.3.0" + permission_handler_windows: + dependency: transitive + description: + name: permission_handler_windows + sha256: "1a790728016f79a41216d88672dbc5df30e686e811ad4e698bfc51f76ad91f1e" + url: "https://pub.dev" + source: hosted + version: "0.2.1" + petitparser: + dependency: transitive + description: + name: petitparser + sha256: "91bd59303e9f769f108f8df05e371341b15d59e995e6806aefab827b58336675" + url: "https://pub.dev" + source: hosted + version: "7.0.2" + platform: + dependency: transitive + description: + name: platform + sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984" + url: "https://pub.dev" + source: hosted + version: "3.1.6" + plugin_platform_interface: + dependency: transitive + description: + name: plugin_platform_interface + sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" + url: "https://pub.dev" + source: hosted + version: "2.1.8" + posix: + dependency: transitive + description: + name: posix + sha256: bc1bad54ad2b735816e31f8d4600cfde6c7839975085ddfbca48b6c9f7c4044e + url: "https://pub.dev" + source: hosted + version: "6.5.2" + pub_semver: + dependency: transitive + description: + name: pub_semver + sha256: "261236774e8b1d69cfc6b9eabbc96c40f25e7a2d6b171f3385d4f65d5734fb24" + url: "https://pub.dev" + source: hosted + version: "2.2.1" + record_use: + dependency: transitive + description: + name: record_use + sha256: "2551bd8eecfe95d14ae75f6021ad0248be5c27f138c2ec12fcb52b500b3ba1ed" + url: "https://pub.dev" + source: hosted + version: "0.6.0" + share_plus: + dependency: "direct main" + description: + name: share_plus + sha256: db40767f130189d53f3ae8a6393c217ff4a492da1baff718a9873679c0c00224 + url: "https://pub.dev" + source: hosted + version: "13.3.1" + share_plus_platform_interface: + dependency: transitive + description: + name: share_plus_platform_interface + sha256: "365ef7379fc22507256adda3385152942ffce08935452bc972c2e52a0bebae41" + url: "https://pub.dev" + source: hosted + version: "7.2.0" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + source_span: + dependency: transitive + description: + name: source_span + sha256: "56a02f1f4cd1a2d96303c0144c93bd6d909eea6bee6bf5a0e0b685edbd4c47ab" + url: "https://pub.dev" + source: hosted + version: "1.10.2" + stack_trace: + dependency: transitive + description: + name: stack_trace + sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1" + url: "https://pub.dev" + source: hosted + version: "1.12.1" + stream_channel: + dependency: transitive + description: + name: stream_channel + sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + string_scanner: + dependency: transitive + description: + name: string_scanner + sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43" + url: "https://pub.dev" + source: hosted + version: "1.4.1" + term_glyph: + dependency: transitive + description: + name: term_glyph + sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e" + url: "https://pub.dev" + source: hosted + version: "1.2.2" + test_api: + dependency: transitive + description: + name: test_api + sha256: "8161c84903fd860b26bfdefb7963b3f0b68fee7adea0f59ef805ecca346f0c7a" + url: "https://pub.dev" + source: hosted + version: "0.7.10" + typed_data: + dependency: transitive + description: + name: typed_data + sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 + url: "https://pub.dev" + source: hosted + version: "1.4.0" + universal_io: + dependency: transitive + description: + name: universal_io + sha256: f63cbc48103236abf48e345e07a03ce5757ea86285ed313a6a032596ed9301e2 + url: "https://pub.dev" + source: hosted + version: "2.3.1" + url_launcher_linux: + dependency: transitive + description: + name: url_launcher_linux + sha256: "10f86fef4c2c43563fa6c211ff9cf757adf4d3ab762c56bd430664a947d70cd0" + url: "https://pub.dev" + source: hosted + version: "3.2.3" + url_launcher_platform_interface: + dependency: transitive + description: + name: url_launcher_platform_interface + sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029" + url: "https://pub.dev" + source: hosted + version: "2.3.2" + url_launcher_web: + dependency: transitive + description: + name: url_launcher_web + sha256: "85c81589622fbc87c1c683aaea164d3604a7777495a79d91e39ffcdec39ddb34" + url: "https://pub.dev" + source: hosted + version: "2.4.3" + url_launcher_windows: + dependency: transitive + description: + name: url_launcher_windows + sha256: "6c5ad3f22cd4c38e089b81963b3cd7bb83b111b2df5dce008bb066162f42e429" + url: "https://pub.dev" + source: hosted + version: "3.1.6" + uuid: + dependency: transitive + description: + name: uuid + sha256: "9b129329f58692f6e6578329498a8fe9fbe98f090beb764ffbb8ee2eadd01dcd" + url: "https://pub.dev" + source: hosted + version: "4.6.0" + vector_math: + dependency: transitive + description: + name: vector_math + sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b + url: "https://pub.dev" + source: hosted + version: "2.2.0" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: "45caa6c5917fa127b5dbcfbd1fa60b14e583afdc08bfc96dda38886ca252eb60" + url: "https://pub.dev" + source: hosted + version: "15.0.2" + wakelock_plus: + dependency: "direct main" + description: + name: wakelock_plus + sha256: "7253bca0fcf40d8413ddfcf4d2a1fa0a82475e79be25a4f2c564b695c9351486" + url: "https://pub.dev" + source: hosted + version: "1.7.0" + wakelock_plus_platform_interface: + dependency: transitive + description: + name: wakelock_plus_platform_interface + sha256: "0618d1799f0b28bcf98255b4ee8313e6fc4d38589dc4ee5fe5840d57d1aff6da" + url: "https://pub.dev" + source: hosted + version: "1.6.0" + web: + dependency: transitive + description: + name: web + sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a" + url: "https://pub.dev" + source: hosted + version: "1.1.1" + win32: + dependency: transitive + description: + name: win32 + sha256: a0b93865d5644f11cf6a8c3f6db909f1ec168958b5805f6cc684adea957cd63d + url: "https://pub.dev" + source: hosted + version: "6.4.0" + xdg_directories: + dependency: transitive + description: + name: xdg_directories + sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + xml: + dependency: transitive + description: + name: xml + sha256: "971043b3a0d3da28727e40ed3e0b5d18b742fa5a68665cca88e74b7876d5e025" + url: "https://pub.dev" + source: hosted + version: "6.6.1" + yaml: + dependency: transitive + description: + name: yaml + sha256: f67cdd8e07d3c6329146aaef1ba043542b3134c12489f553ca9a7435d1068aea + url: "https://pub.dev" + source: hosted + version: "3.1.4" +sdks: + dart: ">=3.11.1 <4.0.0" + flutter: ">=3.41.0" diff --git a/pubspec.yaml b/pubspec.yaml new file mode 100644 index 0000000..775664c --- /dev/null +++ b/pubspec.yaml @@ -0,0 +1,120 @@ +name: sfzenith +description: "A new Flutter project." +# The following line prevents the package from being accidentally published to +# pub.dev using `flutter pub publish`. This is preferred for private packages. +publish_to: 'none' # Remove this line if you wish to publish to pub.dev + +# The following defines the version and build number for your application. +# A version number is three numbers separated by dots, like 1.2.43 +# followed by an optional build number separated by a +. +# Both the version and the builder number may be overridden in flutter +# build by specifying --build-name and --build-number, respectively. +# In Android, build-name is used as versionName while build-number used as versionCode. +# Read more about Android versioning at https://developer.android.com/studio/publish/versioning +# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion. +# Read more about iOS versioning at +# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html +# In Windows, build-name is used as the major, minor, and patch parts +# of the product and file versions while build-number is used as the build suffix. +version: 1.0.0+1 + +environment: + sdk: ^3.11.1 + +# Dependencies specify other packages that your package needs in order to work. +# To automatically upgrade your package dependencies to the latest versions +# consider running `flutter pub upgrade --major-versions`. Alternatively, +# dependencies can be manually updated by changing the version numbers below to +# the latest version available on pub.dev. To see which dependencies have newer +# versions available, run `flutter pub outdated`. +dependencies: + flutter: + sdk: flutter + + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: ^1.0.8 + flutter_inappwebview: ^6.1.5 + permission_handler: ^12.0.3 + gal: ^2.3.2 + share_plus: ^13.3.1 + wakelock_plus: ^1.7.0 + +dev_dependencies: + flutter_test: + sdk: flutter + + # The "flutter_lints" package below contains a set of recommended lints to + # encourage good coding practices. The lint set provided by the package is + # activated in the `analysis_options.yaml` file located at the root of your + # package. See that file for information about deactivating specific lint + # rules and activating additional ones. + flutter_lints: ^6.0.0 + flutter_launcher_icons: ^0.14.4 + flutter_native_splash: ^2.4.7 + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter packages. +flutter: + + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true + + # Bundled production build of the React+WASM web app (see scripts/build_web.sh). + # Served inside the app over http://localhost by InAppLocalhostServer. + assets: + - assets/web/ + - assets/web/assets/ + + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/to/resolution-aware-images + + # For details regarding adding assets from package dependencies, see + # https://flutter.dev/to/asset-from-package + + # To add custom fonts to your application, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts from package dependencies, + # see https://flutter.dev/to/font-from-package + +# App icon (concept A "Skyline", sources in assets/branding/*.svg). +# Regenerate: dart run flutter_launcher_icons +flutter_launcher_icons: + android: true + ios: true + image_path: "assets/branding/icon-1024.png" + remove_alpha_ios: true + adaptive_icon_background: "#0E1424" + adaptive_icon_foreground: "assets/branding/icon-foreground-1024.png" + min_sdk_android: 21 + +# Native launch screen in the Welcome screen's night colour. +# Regenerate: dart run flutter_native_splash:create +flutter_native_splash: + color: "#04060B" + image: "assets/branding/splash-logo.png" + android_12: + color: "#04060B" + image: "assets/branding/splash-android12.png" + ios: true + android: true + web: false diff --git a/scripts/build_web.sh b/scripts/build_web.sh new file mode 100755 index 0000000..cdb1058 --- /dev/null +++ b/scripts/build_web.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash +# Build the Rust WASM engine + React frontend, then bundle the production build +# into assets/web/ so the Flutter InAppLocalhostServer can serve it inside the app. +# +# Run from anywhere: ./scripts/build_web.sh +set -euo pipefail + +ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +cd "$ROOT" + +echo "==> Building Rust WASM (wasm-pack, target web)" +( cd wasm && wasm-pack build --target web ) + +echo "==> Building React frontend (vite)" +( cd wasm/frontend && npm run build ) + +echo "==> Bundling dist/ -> assets/web/" +rm -rf assets/web +mkdir -p assets/web +cp -R wasm/frontend/dist/. assets/web/ + +echo "==> Done. assets/web/ contents:" +ls -la assets/web + +echo +echo "Flutter will serve this at http://localhost:8080 via InAppLocalhostServer." +echo "Remember to run 'flutter pub get' if pubspec assets changed." diff --git a/scripts/install_ios.sh b/scripts/install_ios.sh new file mode 100755 index 0000000..c6a5713 --- /dev/null +++ b/scripts/install_ios.sh @@ -0,0 +1,54 @@ +#!/usr/bin/env bash +# Build the web bundle + iOS app and install it on a connected iPhone. +# +# Works with the free Personal Team: on first use the app is built through +# Xcode for this device, which registers it in the provisioning profile +# (`flutter install` fails there with "This provisioning profile cannot be +# installed on this device"). +# Personal Team builds expire after 7 days: just run this again. +# +# Usage: ./scripts/install_ios.sh [device-id] (default: first iPhone found) +set -euo pipefail + +ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +cd "$ROOT" + +DEVICE="${1:-}" +if [ -z "$DEVICE" ]; then + DEVICE="$(flutter devices --machine 2>/dev/null | python3 -c ' +import json, sys +devs = [d for d in json.load(sys.stdin) if d.get("targetPlatform") == "ios" and not d.get("emulator")] +print(devs[0]["id"] if devs else "")')" +fi +if [ -z "$DEVICE" ]; then + echo "No iPhone found. Connect it (cable or same Wi-Fi) and unlock it." >&2 + exit 1 +fi +echo "==> Device: $DEVICE" + +./scripts/build_web.sh + +# Native-asset frameworks (e.g. objective_c) live in build/native_assets/ios and +# Flutter's cache does not tell simulator and device builds apart: after a +# simulator build the iPhone would get a simulator binary and reject the app. +rm -rf .dart_tool/flutter_build build/native_assets/ios + +echo "==> Flutter iOS build (device)" +flutter build ios --release +APP=build/ios/iphoneos/Runner.app + +# The free Personal Team profile must list this iPhone. If it does not yet, +# build once through Xcode so it registers the device in the profile. +if ! security cms -D -i "$APP/embedded.mobileprovision" 2>/dev/null | grep -q "$DEVICE"; then + echo "==> Registering the device in the provisioning profile (Xcode build)" + xcodebuild -workspace ios/Runner.xcworkspace -scheme Runner -configuration Release \ + -destination "id=$DEVICE" -allowProvisioningUpdates -allowProvisioningDeviceRegistration \ + -derivedDataPath build/ios-device -quiet build + APP=build/ios-device/Build/Products/Release-iphoneos/Runner.app +fi + +echo "==> Installing" +xcrun devicectl device install app --device "$DEVICE" "$APP" + +echo "==> Launching (first time: trust the developer on the phone, see README)" +xcrun devicectl device process launch --device "$DEVICE" com.sagifer.skycontour || true diff --git a/test/widget_test.dart b/test/widget_test.dart new file mode 100644 index 0000000..eca1ada --- /dev/null +++ b/test/widget_test.dart @@ -0,0 +1,18 @@ +// Smoke test for the sfzenith Android shell. +// +// The capture screen embeds a platform WebView + a localhost server, which are +// not available in the widget-test host, so we don't pump the full tree here. +// On-device verification (camera, capture, gallery save) is the real coverage; +// this just asserts the root widget constructs and is wired to MaterialApp. + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'package:sfzenith/main.dart'; + +void main() { + test('SfzenithApp root widget constructs', () { + const app = SfzenithApp(); + expect(app, isA()); + }); +} diff --git a/wasm/Cargo.lock b/wasm/Cargo.lock new file mode 100644 index 0000000..a97c043 --- /dev/null +++ b/wasm/Cargo.lock @@ -0,0 +1,371 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bumpalo" +version = "3.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb" + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "console_error_panic_hook" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a06aeb73f470f66dcdbf7223caeebb85984942f22f1adb2a088cf9668146bbbc" +dependencies = [ + "cfg-if", + "wasm-bindgen", +] + +[[package]] +name = "crc32fast" +version = "1.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ba106e844045ddc02c20768ac4b0b7cb45f2cc2ecbd833ac9f5dacb183c2055" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "flate2" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb" +dependencies = [ + "crc32fast", + "miniz_oxide 0.9.1", + "zlib-rs", +] + +[[package]] +name = "futures-core" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" + +[[package]] +name = "futures-task" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393" + +[[package]] +name = "futures-util" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6" +dependencies = [ + "futures-core", + "futures-task", + "pin-project-lite", + "slab", +] + +[[package]] +name = "gloo-utils" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b5555354113b18c547c1d3a98fbf7fb32a9ff4f6fa112ce823a21641a0ba3aa" +dependencies = [ + "js-sys", + "serde", + "serde_json", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "itoa" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2" + +[[package]] +name = "js-sys" +version = "0.3.91" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b49715b7073f385ba4bc528e5747d02e66cb39c6146efb66b781f131f0fb399c" +dependencies = [ + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "memchr" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "miniz_oxide" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "png" +version = "0.17.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526" +dependencies = [ + "bitflags", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide 0.8.9", +] + +[[package]] +name = "proc-macro2" +version = "1.0.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "rust-panorama-wasm" +version = "0.1.0" +dependencies = [ + "console_error_panic_hook", + "gloo-utils", + "js-sys", + "serde_json", + "sfzenith-core", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + +[[package]] +name = "serde" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_json" +version = "1.0.149" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "sfzenith-core" +version = "0.1.0" +dependencies = [ + "crc32fast", + "png", + "serde", + "serde_json", +] + +[[package]] +name = "simd-adler32" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "syn" +version = "2.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + +[[package]] +name = "wasm-bindgen" +version = "0.2.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6532f9a5c1ece3798cb1c2cfdba640b9b3ba884f5db45973a6f442510a87d38e" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.64" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9c5522b3a28661442748e09d40924dfb9ca614b21c00d3fd135720e48b67db8" +dependencies = [ + "cfg-if", + "futures-util", + "js-sys", + "once_cell", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18a2d50fcf105fb33bb15f00e7a77b772945a2ee45dcf454961fd843e74c18e6" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03ce4caeaac547cdf713d280eda22a730824dd11e6b8c3ca9e42247b25c631e3" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75a326b8c223ee17883a4251907455a2431acc2791c98c26279376490c378c16" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "web-sys" +version = "0.3.91" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "854ba17bb104abfb26ba36da9729addc7ce7f06f5c0f90f3c391f8461cca21f9" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "zlib-rs" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112" + +[[package]] +name = "zmij" +version = "1.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" diff --git a/wasm/Cargo.toml b/wasm/Cargo.toml new file mode 100644 index 0000000..c5f2498 --- /dev/null +++ b/wasm/Cargo.toml @@ -0,0 +1,41 @@ +[package] +name = "rust-panorama-wasm" +version = "0.1.0" +edition = "2021" + +[lib] +crate-type = ["cdylib", "rlib"] + +[dependencies] +sfzenith-core = { path = "../core" } +serde_json = "1" +wasm-bindgen = "0.2" +wasm-bindgen-futures = "0.4" +js-sys = "0.3" +gloo-utils = "0.2" +console_error_panic_hook = "0.1" + +[dependencies.web-sys] +version = "0.3" +features = [ + "console", + "Document", + "Element", + "HtmlElement", + "HtmlVideoElement", + "HtmlCanvasElement", + "CanvasRenderingContext2d", + "ImageData", + "MediaDevices", + "MediaStream", + "MediaStreamConstraints", + "Navigator", + "Window", + "HtmlAnchorElement", + "DeviceOrientationEvent", + "EventTarget", +] + +[profile.release] +opt-level = "s" +lto = true diff --git a/wasm/frontend/.gitignore b/wasm/frontend/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/wasm/frontend/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/wasm/frontend/README.md b/wasm/frontend/README.md new file mode 100644 index 0000000..a36934d --- /dev/null +++ b/wasm/frontend/README.md @@ -0,0 +1,16 @@ +# React + Vite + +This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. + +Currently, two official plugins are available: + +- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs) +- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) + +## React Compiler + +The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation). + +## Expanding the ESLint configuration + +If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project. diff --git a/wasm/frontend/eslint.config.js b/wasm/frontend/eslint.config.js new file mode 100644 index 0000000..4fa125d --- /dev/null +++ b/wasm/frontend/eslint.config.js @@ -0,0 +1,29 @@ +import js from '@eslint/js' +import globals from 'globals' +import reactHooks from 'eslint-plugin-react-hooks' +import reactRefresh from 'eslint-plugin-react-refresh' +import { defineConfig, globalIgnores } from 'eslint/config' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{js,jsx}'], + extends: [ + js.configs.recommended, + reactHooks.configs.flat.recommended, + reactRefresh.configs.vite, + ], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + parserOptions: { + ecmaVersion: 'latest', + ecmaFeatures: { jsx: true }, + sourceType: 'module', + }, + }, + rules: { + 'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }], + }, + }, +]) diff --git a/wasm/frontend/index.html b/wasm/frontend/index.html new file mode 100644 index 0000000..9c0a9de --- /dev/null +++ b/wasm/frontend/index.html @@ -0,0 +1,16 @@ + + + + + + + + + + SkyContour + + +
+ + + diff --git a/wasm/frontend/package-lock.json b/wasm/frontend/package-lock.json new file mode 100644 index 0000000..d266835 --- /dev/null +++ b/wasm/frontend/package-lock.json @@ -0,0 +1,2644 @@ +{ + "name": "frontend", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "frontend", + "version": "0.0.0", + "dependencies": { + "@fontsource/barlow": "^5.3.0", + "@fontsource/ibm-plex-mono": "^5.3.0", + "react": "^19.2.4", + "react-dom": "^19.2.4" + }, + "devDependencies": { + "@eslint/js": "^9.39.4", + "@types/react": "^19.2.14", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-basic-ssl": "^2.2.0", + "@vitejs/plugin-react": "^6.0.0", + "eslint": "^9.39.4", + "eslint-plugin-react-hooks": "^7.0.1", + "eslint-plugin-react-refresh": "^0.5.2", + "globals": "^17.4.0", + "vite": "^8.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz", + "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.28.5", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.0.tgz", + "integrity": "sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz", + "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-module-transforms": "^7.28.6", + "@babel/helpers": "^7.28.6", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/traverse": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.29.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz", + "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz", + "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.28.6", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz", + "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz", + "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.28.6", + "@babel/helper-validator-identifier": "^7.28.5", + "@babel/traverse": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.29.2", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.2.tgz", + "integrity": "sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.28.6", + "@babel/types": "^7.29.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.2.tgz", + "integrity": "sha512-4GgRzy/+fsBa72/RZVJmGKPmZu9Byn8o4MoLpmNe1m8ZfYnz5emHLQz3U4gLud6Zwl0RZIcgiLD7Uq7ySFuDLA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.0" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/template": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz", + "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.28.6", + "@babel/parser": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz", + "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/types": "^7.29.0", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", + "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@emnapi/core": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.9.0.tgz", + "integrity": "sha512-0DQ98G9ZQZOxfUcQn1waV2yS8aWdZ6kJMbYCJB3oUBecjWYO1fqJ+a1DRfPF3O5JEkwqwP1A9QEN/9mYm2Yd0w==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.2.0", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.0.tgz", + "integrity": "sha512-QN75eB0IH2ywSpRpNddCRfQIhmJYBCJ1x5Lb3IscKAL8bMnVAKnRg8dCoXbHzVLLH7P38N2Z3mtulB7W0J0FKw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.0.tgz", + "integrity": "sha512-N10dEJNSsUx41Z6pZsXU8FjPjpBEplgH24sfkmITrBED1/U2Esum9F3lfLrMjKHHjmi557zQn7kR9R+XWXu5Rg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", + "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.21.2", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.2.tgz", + "integrity": "sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.7", + "debug": "^4.3.1", + "minimatch": "^3.1.5" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", + "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.17.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", + "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.5.tgz", + "integrity": "sha512-4IlJx0X0qftVsN5E+/vGujTRIFtwuLbNsVUe7TO6zYPDR1O6nFwvwhIKEKSrl6dZchmYBITazxKoUYOjdtjlRg==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.14.0", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.1", + "minimatch": "^3.1.5", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "9.39.4", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.4.tgz", + "integrity": "sha512-nE7DEIchvtiFTwBw4Lfbu59PG+kCofhjsKaCWzxTpt4lfRjRMqG6uMBzKXuEcyXhOHoUp9riAm7/aWYGhXZ9cw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", + "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", + "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.17.0", + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@fontsource/barlow": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@fontsource/barlow/-/barlow-5.3.0.tgz", + "integrity": "sha512-tGR0y6QObRtKv71MOth44222+mdNFM/ZWFWDV1VLzNbG4oK9PNRlyJzmkck4vHAi9ibHBXgt4SlY51amFP55CA==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, + "node_modules/@fontsource/ibm-plex-mono": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@fontsource/ibm-plex-mono/-/ibm-plex-mono-5.3.0.tgz", + "integrity": "sha512-eTgnZjZEGk1QtD3ZstF+Vclo2HLAni8YMy34/DxllwZvyz1lR/1RF/xTiAquOBO7MvqBx8D2Ig2WCPMVfdZu7Q==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz", + "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.4.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.1.tgz", + "integrity": "sha512-p64ah1M1ld8xjWv3qbvFwHiFVWrq1yFvV4f7w+mzaqiR4IlSgkqhcRdHwsGgomwzBH51sRY4NEowLxnaBjcW/A==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.7.1", + "@emnapi/runtime": "^1.7.1", + "@tybys/wasm-util": "^0.10.1" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + } + }, + "node_modules/@oxc-project/runtime": { + "version": "0.115.0", + "resolved": "https://registry.npmjs.org/@oxc-project/runtime/-/runtime-0.115.0.tgz", + "integrity": "sha512-Rg8Wlt5dCbXhQnsXPrkOjL1DTSvXLgb2R/KYfnf1/K+R0k6UMLEmbQXPM+kwrWqSmWA2t0B1EtHy2/3zikQpvQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.115.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.115.0.tgz", + "integrity": "sha512-4n91DKnebUS4yjUHl2g3/b2T+IUdCfmoZGhmwsovZCDaJSs+QkVAM+0AqqTxHSsHfeiMuueT75cZaZcT/m0pSw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/Boshen" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.0.0-rc.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.0-rc.9.tgz", + "integrity": "sha512-lcJL0bN5hpgJfSIz/8PIf02irmyL43P+j1pTCfbD1DbLkmGRuFIA4DD3B3ZOvGqG0XiVvRznbKtN0COQVaKUTg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.0.0-rc.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.0-rc.9.tgz", + "integrity": "sha512-J7Zk3kLYFsLtuH6U+F4pS2sYVzac0qkjcO5QxHS7OS7yZu2LRs+IXo+uvJ/mvpyUljDJ3LROZPoQfgBIpCMhdQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.0.0-rc.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.0-rc.9.tgz", + "integrity": "sha512-iwtmmghy8nhfRGeNAIltcNXzD0QMNaaA5U/NyZc1Ia4bxrzFByNMDoppoC+hl7cDiUq5/1CnFthpT9n+UtfFyg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.0.0-rc.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.0-rc.9.tgz", + "integrity": "sha512-DLFYI78SCiZr5VvdEplsVC2Vx53lnA4/Ga5C65iyldMVaErr86aiqCoNBLl92PXPfDtUYjUh+xFFor40ueNs4Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.0.0-rc.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.0-rc.9.tgz", + "integrity": "sha512-CsjTmTwd0Hri6iTw/DRMK7kOZ7FwAkrO4h8YWKoX/kcj833e4coqo2wzIFywtch/8Eb5enQ/lwLM7w6JX1W5RQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.0.0-rc.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.0-rc.9.tgz", + "integrity": "sha512-2x9O2JbSPxpxMDhP9Z74mahAStibTlrBMW0520+epJH5sac7/LwZW5Bmg/E6CXuEF53JJFW509uP+lSedaUNxg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.0.0-rc.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.0-rc.9.tgz", + "integrity": "sha512-JA1QRW31ogheAIRhIg9tjMfsYbglXXYGNPLdPEYrwFxdbkQCAzvpSCSHCDWNl4hTtrol8WeboCSEpjdZK8qrCg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.0.0-rc.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.0-rc.9.tgz", + "integrity": "sha512-aOKU9dJheda8Kj8Y3w9gnt9QFOO+qKPAl8SWd7JPHP+Cu0EuDAE5wokQubLzIDQWg2myXq2XhTpOVS07qqvT+w==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.0.0-rc.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.0-rc.9.tgz", + "integrity": "sha512-OalO94fqj7IWRn3VdXWty75jC5dk4C197AWEuMhIpvVv2lw9fiPhud0+bW2ctCxb3YoBZor71QHbY+9/WToadA==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.0.0-rc.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-rc.9.tgz", + "integrity": "sha512-cVEl1vZtBsBZna3YMjGXNvnYYrOJ7RzuWvZU0ffvJUexWkukMaDuGhUXn0rjnV0ptzGVkvc+vW9Yqy6h8YX4pg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.0.0-rc.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-rc.9.tgz", + "integrity": "sha512-UzYnKCIIc4heAKgI4PZ3dfBGUZefGCJ1TPDuLHoCzgrMYPb5Rv6TLFuYtyM4rWyHM7hymNdsg5ik2C+UD9VDbA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.0.0-rc.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.0-rc.9.tgz", + "integrity": "sha512-+6zoiF+RRyf5cdlFQP7nm58mq7+/2PFaY2DNQeD4B87N36JzfF/l9mdBkkmTvSYcYPE8tMh/o3cRlsx1ldLfog==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-wasm32-wasi": { + "version": "1.0.0-rc.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.0-rc.9.tgz", + "integrity": "sha512-rgFN6sA/dyebil3YTlL2evvi/M+ivhfnyxec7AccTpRPccno/rPoNlqybEZQBkcbZu8Hy+eqNJCqfBR8P7Pg8g==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@napi-rs/wasm-runtime": "^1.1.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.0.0-rc.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.0-rc.9.tgz", + "integrity": "sha512-lHVNUG/8nlF1IQk1C0Ci574qKYyty2goMiPlRqkC5R+3LkXDkL5Dhx8ytbxq35m+pkHVIvIxviD+TWLdfeuadA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.0.0-rc.9", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.0-rc.9.tgz", + "integrity": "sha512-G0oA4+w1iY5AGi5HcDTxWsoxF509hrFIPB2rduV5aDqS9FtDg1CAfa7V34qImbjfhIcA8C+RekocJZA96EarwQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-rc.7", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.7.tgz", + "integrity": "sha512-qujRfC8sFVInYSPPMLQByRh7zhwkGFS4+tyMQ83srV1qrxL4g8E2tyxVVyxd0+8QeBM1mIk9KbWxkegRr76XzA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz", + "integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/react": { + "version": "19.2.14", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz", + "integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==", + "dev": true, + "license": "MIT", + "dependencies": { + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz", + "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^19.2.0" + } + }, + "node_modules/@vitejs/plugin-basic-ssl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-basic-ssl/-/plugin-basic-ssl-2.2.0.tgz", + "integrity": "sha512-nmyQ1HGRkfUxjsv3jw0+hMhEdZdrtkvMTdkzRUaRWfiO6PCWw2V2Pz3gldCq96Tn9S8htcgdTxw/gmbLLEbfYw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + }, + "peerDependencies": { + "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.0.1.tgz", + "integrity": "sha512-l9X/E3cDb+xY3SWzlG1MOGt2usfEHGMNIaegaUGFsLkb3RCn/k8/TOXBcab+OndDI4TBtktT8/9BwwW8Vi9KUQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "1.0.0-rc.7" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0", + "babel-plugin-react-compiler": "^1.0.0", + "vite": "^8.0.0" + }, + "peerDependenciesMeta": { + "@rolldown/plugin-babel": { + "optional": true + }, + "babel-plugin-react-compiler": { + "optional": true + } + } + }, + "node_modules/acorn": { + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", + "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.14.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz", + "integrity": "sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/baseline-browser-mapping": { + "version": "2.10.8", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.8.tgz", + "integrity": "sha512-PCLz/LXGBsNTErbtB6i5u4eLpHeMfi93aUv5duMmj6caNu6IphS4q6UevDnL36sZQv9lrP11dbPKGMaXPwMKfQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/browserslist": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", + "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.9.0", + "caniuse-lite": "^1.0.30001759", + "electron-to-chromium": "^1.5.263", + "node-releases": "^2.0.27", + "update-browserslist-db": "^1.2.0" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001780", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001780.tgz", + "integrity": "sha512-llngX0E7nQci5BPJDqoZSbuZ5Bcs9F5db7EtgfwBerX9XGtkkiO4NwfDDIRzHTTwcYC8vC7bmeUEPGrKlR/TkQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.313", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.313.tgz", + "integrity": "sha512-QBMrTWEf00GXZmJyx2lbYD45jpI3TUFnNIzJ5BBc8piGUDwMPa1GV6HJWTZVvY/eiN3fSopl7NRbgGp9sZ9LTA==", + "dev": true, + "license": "ISC" + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "9.39.4", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.4.tgz", + "integrity": "sha512-XoMjdBOwe/esVgEvLmNsD3IRHkm7fbKIUGvrleloJXUZgDHig2IPWNniv+GwjyJXzuNqVjlr5+4yVUZjycJwfQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.21.2", + "@eslint/config-helpers": "^0.4.2", + "@eslint/core": "^0.17.0", + "@eslint/eslintrc": "^3.3.5", + "@eslint/js": "9.39.4", + "@eslint/plugin-kit": "^0.4.1", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.14.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.4.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.5", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.0.1.tgz", + "integrity": "sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.24.4", + "@babel/parser": "^7.24.4", + "hermes-parser": "^0.25.1", + "zod": "^3.25.0 || ^4.0.0", + "zod-validation-error": "^3.5.0 || ^4.0.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0" + } + }, + "node_modules/eslint-plugin-react-refresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.5.2.tgz", + "integrity": "sha512-hmgTH57GfzoTFjVN0yBwTggnsVUF2tcqi7RJZHqi9lIezSs4eFyAMktA68YD4r5kNw1mxyY4dmkyoFDb3FIqrA==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "eslint": "^9 || ^10" + } + }, + "node_modules/eslint-scope": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", + "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.15.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", + "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz", + "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==", + "dev": true, + "license": "ISC" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "17.4.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-17.4.0.tgz", + "integrity": "sha512-hjrNztw/VajQwOLsMNT1cbJiH2muO3OROCHnbehc8eY5JyD2gqz4AcMHPqgaOR59DjgUjYAYLeH699g/eWi2jw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/hermes-estree": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz", + "integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==", + "dev": true, + "license": "MIT" + }, + "node_modules/hermes-parser": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz", + "integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hermes-estree": "0.25.1" + } + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lightningcss": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz", + "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.32.0", + "lightningcss-darwin-arm64": "1.32.0", + "lightningcss-darwin-x64": "1.32.0", + "lightningcss-freebsd-x64": "1.32.0", + "lightningcss-linux-arm-gnueabihf": "1.32.0", + "lightningcss-linux-arm64-gnu": "1.32.0", + "lightningcss-linux-arm64-musl": "1.32.0", + "lightningcss-linux-x64-gnu": "1.32.0", + "lightningcss-linux-x64-musl": "1.32.0", + "lightningcss-win32-arm64-msvc": "1.32.0", + "lightningcss-win32-x64-msvc": "1.32.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz", + "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz", + "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz", + "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz", + "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz", + "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz", + "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz", + "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz", + "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz", + "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz", + "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz", + "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/minimatch": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", + "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-releases": { + "version": "2.0.36", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.36.tgz", + "integrity": "sha512-TdC8FSgHz8Mwtw9g5L4gR/Sh9XhSP/0DEkQxfEFXOpiul5IiHgHan2VhYYb6agDSfp4KuvltmGApc8HMgUrIkA==", + "dev": true, + "license": "MIT" + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.8", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.8.tgz", + "integrity": "sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/react": { + "version": "19.2.4", + "resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz", + "integrity": "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.2.4", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.4.tgz", + "integrity": "sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ==", + "license": "MIT", + "dependencies": { + "scheduler": "^0.27.0" + }, + "peerDependencies": { + "react": "^19.2.4" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/rolldown": { + "version": "1.0.0-rc.9", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.0-rc.9.tgz", + "integrity": "sha512-9EbgWge7ZH+yqb4d2EnELAntgPTWbfL8ajiTW+SyhJEC4qhBbkCKbqFV4Ge4zmu5ziQuVbWxb/XwLZ+RIO7E8Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.115.0", + "@rolldown/pluginutils": "1.0.0-rc.9" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm64": "1.0.0-rc.9", + "@rolldown/binding-darwin-arm64": "1.0.0-rc.9", + "@rolldown/binding-darwin-x64": "1.0.0-rc.9", + "@rolldown/binding-freebsd-x64": "1.0.0-rc.9", + "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-rc.9", + "@rolldown/binding-linux-arm64-gnu": "1.0.0-rc.9", + "@rolldown/binding-linux-arm64-musl": "1.0.0-rc.9", + "@rolldown/binding-linux-ppc64-gnu": "1.0.0-rc.9", + "@rolldown/binding-linux-s390x-gnu": "1.0.0-rc.9", + "@rolldown/binding-linux-x64-gnu": "1.0.0-rc.9", + "@rolldown/binding-linux-x64-musl": "1.0.0-rc.9", + "@rolldown/binding-openharmony-arm64": "1.0.0-rc.9", + "@rolldown/binding-wasm32-wasi": "1.0.0-rc.9", + "@rolldown/binding-win32-arm64-msvc": "1.0.0-rc.9", + "@rolldown/binding-win32-x64-msvc": "1.0.0-rc.9" + } + }, + "node_modules/rolldown/node_modules/@rolldown/pluginutils": { + "version": "1.0.0-rc.9", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.9.tgz", + "integrity": "sha512-w6oiRWgEBl04QkFZgmW+jnU1EC9b57Oihi2ot3HNWIQRqgHp5PnYDia5iZ5FF7rpa4EQdiqMDXjlqKGXBhsoXw==", + "dev": true, + "license": "MIT" + }, + "node_modules/scheduler": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", + "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "dev": true, + "license": "0BSD", + "optional": true + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/vite": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.0.tgz", + "integrity": "sha512-fPGaRNj9Zytaf8LEiBhY7Z6ijnFKdzU/+mL8EFBaKr7Vw1/FWcTBAMW0wLPJAGMPX38ZPVCVgLceWiEqeoqL2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/runtime": "0.115.0", + "lightningcss": "^1.32.0", + "picomatch": "^4.0.3", + "postcss": "^8.5.8", + "rolldown": "1.0.0-rc.9", + "tinyglobby": "^0.2.15" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.0.0-alpha.31", + "esbuild": "^0.27.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@vitejs/devtools": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zod": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz", + "integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zod-validation-error": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz", + "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "zod": "^3.25.0 || ^4.0.0" + } + } + } +} diff --git a/wasm/frontend/package.json b/wasm/frontend/package.json new file mode 100644 index 0000000..63b3627 --- /dev/null +++ b/wasm/frontend/package.json @@ -0,0 +1,31 @@ +{ + "name": "frontend", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "lint": "eslint .", + "preview": "vite preview", + "i18n:check": "node scripts/check-i18n.mjs" + }, + "dependencies": { + "@fontsource/barlow": "^5.3.0", + "@fontsource/ibm-plex-mono": "^5.3.0", + "react": "^19.2.4", + "react-dom": "^19.2.4" + }, + "devDependencies": { + "@eslint/js": "^9.39.4", + "@types/react": "^19.2.14", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-basic-ssl": "^2.2.0", + "@vitejs/plugin-react": "^6.0.0", + "eslint": "^9.39.4", + "eslint-plugin-react-hooks": "^7.0.1", + "eslint-plugin-react-refresh": "^0.5.2", + "globals": "^17.4.0", + "vite": "^8.0.0" + } +} diff --git a/wasm/frontend/public/apple-touch-icon.png b/wasm/frontend/public/apple-touch-icon.png new file mode 100644 index 0000000..44facd1 Binary files /dev/null and b/wasm/frontend/public/apple-touch-icon.png differ diff --git a/wasm/frontend/public/favicon.svg b/wasm/frontend/public/favicon.svg new file mode 100644 index 0000000..e4ba767 --- /dev/null +++ b/wasm/frontend/public/favicon.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/wasm/frontend/scripts/check-i18n.mjs b/wasm/frontend/scripts/check-i18n.mjs new file mode 100644 index 0000000..3d8d152 --- /dev/null +++ b/wasm/frontend/scripts/check-i18n.mjs @@ -0,0 +1,53 @@ +// Checks the translations against English: same keys, every plural category +// the language needs, and no placeholder lost or invented. +// Run: npm run i18n:check +import { readdirSync } from 'node:fs' +import { fileURLToPath, pathToFileURL } from 'node:url' +import { dirname, join } from 'node:path' + +const dir = join(dirname(fileURLToPath(import.meta.url)), '../src/i18n/locales') +const load = async (f) => (await import(pathToFileURL(join(dir, f)).href)).default +const en = await load('en.js') +const params = (s) => new Set([...String(s).matchAll(/\{(\w+)\}/g)].map((m) => m[1])) +const variants = (m) => (m && typeof m === 'object' ? Object.entries(m) : [['', m]]) + +let problems = 0 +const report = (msg) => { problems++; console.log(' ✗ ' + msg) } + +for (const file of readdirSync(dir).filter((f) => f.endsWith('.js') && f !== 'en.js').sort()) { + const code = file.replace('.js', '') + const loc = await load(file) + const before = problems + console.log(code) + // Categories that occur for 0…1000 (Romance "many" only applies to millions + // and falls back to "other", which t() does anyway). + const rules = new Intl.PluralRules(code) + const needed = [...new Set(Array.from({ length: 1001 }, (_, n) => rules.select(n)))] + + for (const key of Object.keys(en)) if (!(key in loc)) report(`missing key ${key}`) + for (const key of Object.keys(loc)) if (!(key in en)) report(`unknown key ${key}`) + + for (const [key, msg] of Object.entries(loc)) { + if (!(key in en)) continue + const enMsg = en[key] + const enParams = new Set(variants(enMsg).flatMap(([, s]) => [...params(s)])) + if (typeof enMsg === 'object') { + if (typeof msg !== 'object') { report(`${key}: should have plural forms`); continue } + for (const cat of needed) if (!(cat in msg) && !('other' in msg && cat === 'other')) report(`${key}: missing plural "${cat}"`) + } + for (const [cat, s] of variants(msg)) { + for (const p of params(s)) if (!enParams.has(p)) report(`${key}${cat && '.' + cat}: unknown {${p}}`) + // Plural forms may spell out small counts ("one file", Arabic "two"), so {count} may be absent there. + for (const p of enParams) if (!params(s).has(p) && !(p === 'count' && typeof msg === 'object') && !(p === 'name' && cat && cat !== 'one')) { + report(`${key}${cat && '.' + cat}: lost {${p}}`) + } + } + } + if (problems === before) console.log(` ✓ ${Object.keys(loc).length} keys, plural categories: ${needed.join(' ')}`) +} + +if (problems) { + console.log(`\n${problems} problem(s)`) + process.exit(1) +} +console.log('\nall translations complete') diff --git a/wasm/frontend/src/App.jsx b/wasm/frontend/src/App.jsx new file mode 100644 index 0000000..3ab8f0e --- /dev/null +++ b/wasm/frontend/src/App.jsx @@ -0,0 +1,226 @@ +import { useCallback, useEffect, useRef, useState } from 'react' +import Sites from './screens/Sites' +import Setup from './screens/Setup' +import Capture from './screens/Capture' +import Review from './screens/Review' +import Export from './screens/Export' +import Settings from './screens/Settings' +import Calibrate from './screens/Calibrate' +import Welcome from './screens/Welcome' +import { loadSites, saveSites, loadSettings, saveSettings, newSite, deleteStrip, CELLS } from './lib/store' +import { closeSession } from './lib/survey' +import { loadWasm, errText } from './lib/wasm' +import { EMBEDDED, nativeCall } from './lib/files' +import { t, setLocale, resolveLocale, isRtl } from './i18n' + +// Flow (docs/SPEC.md): Sites → Setup → Capture → Review → Export. + +// Development: ?skipWelcome opens straight on the site list (not saved). +const SKIP_WELCOME = typeof location !== 'undefined' && new URLSearchParams(location.search).has('skipWelcome') + +function withStatus(site) { + if (site.source === 'import') return { ...site, status: 'complete' } + const done = (site.cells || []).filter(Boolean).length >= CELLS + return { ...site, status: done ? 'complete' : 'in-progress' } +} + +export default function App() { + const [sites, setSites] = useState(loadSites) + const [settings, setSettings] = useState(() => { + const s = loadSettings() + setLocale(resolveLocale(s.language)) // before the first render + return s + }) + const [route, setRoute] = useState({ name: 'sites' }) + const [fatal, setFatal] = useState('') + + // Load wasm up front: the capture start must call into it synchronously + // from the tap (iOS motion permission). + useEffect(() => { + loadWasm().catch((e) => setFatal(t('app.engineError', { error: errText(e) }))) + }, []) + + // On a phone there is no console: show uncaught errors. + useEffect(() => { + const onError = (e) => setFatal(errText(e.error || e.message)) + const onRejection = (e) => setFatal(errText(e.reason)) + window.addEventListener('error', onError) + window.addEventListener('unhandledrejection', onRejection) + return () => { + window.removeEventListener('error', onError) + window.removeEventListener('unhandledrejection', onRejection) + } + }, []) + + const commit = useCallback((fn) => { + setSites((list) => { + const next = fn(list) + saveSites(next) + return next + }) + }, []) + + const siteId = route.siteId + const changeSite = useCallback((patch) => { + commit((list) => list.map((s) => ( + s.id === siteId ? withStatus({ ...s, ...patch, updatedAt: new Date().toISOString() }) : s + ))) + }, [commit, siteId]) + + const changeSettings = useCallback((patch) => { + // Switch the language before the state update re-renders every screen. + if ('language' in patch) setLocale(resolveLocale(patch.language)) + setSettings((s) => { + const next = { ...s, ...patch } + saveSettings(next) + return next + }) + }, []) + + const go = (name, id) => setRoute({ name, siteId: id }) + const site = sites.find((s) => s.id === siteId) + + // Android back button (called by the app shell): one screen back, false on the start screen. + const backOverride = useRef(null) + const registerBack = useCallback((fn) => { backOverride.current = fn }, []) + useEffect(() => { + window.__sfzBack = () => { + if (backOverride.current) return backOverride.current() + switch (route.name) { + case 'setup': + case 'settings': + case 'review': + setRoute({ name: 'sites' }) + return true + case 'export': + setRoute({ name: 'review', siteId: route.siteId }) + return true + case 'calibrate': + setRoute({ name: 'settings' }) + return true + default: + return false + } + } + return () => { delete window.__sfzBack } + }, [route]) + + // Native tab bar (app shell only): tell it where we are, follow its taps. + const welcomed = settings.welcomed || SKIP_WELCOME + const shownRoute = route.name === 'sites' && !welcomed ? 'welcome' : route.name + useEffect(() => { + if (!EMBEDDED) return + const tab = shownRoute === 'sites' || shownRoute === 'settings' ? shownRoute : null + nativeCall('route', { + name: shownRoute, + tab, + labels: { sites: t('tab.sites'), new: t('tab.new'), settings: t('tab.settings') }, + rtl: isRtl(), + }) + }, [shownRoute, settings.language]) + useEffect(() => { + window.__sfzNav = (tab) => { + if (tab === 'new') setRoute({ name: 'setup' }) + else if (tab === 'settings') setRoute({ name: 'settings' }) + else setRoute({ name: 'sites' }) + } + return () => { delete window.__sfzNav } + }, []) + + let screen + switch (route.name) { + case 'setup': + screen = ( + go('sites')} + onStart={({ name, location }) => { + const s = { ...newSite(name), location } + commit((list) => [...list, s]) + go('capture', s.id) + }} + /> + ) + break + case 'capture': + screen = site && ( + go('sites')} + onFinish={() => go('review', site.id)} + onRegisterBack={registerBack} + /> + ) + break + case 'review': + screen = site && ( + go('sites')} + onExport={() => go('export', site.id)} + onDelete={() => { + closeSession(site.id) + deleteStrip(site.id).catch(() => {}) + commit((list) => list.filter((s) => s.id !== site.id)) + go('sites') + }} + /> + ) + break + case 'export': + screen = site && ( + go('review', site.id)} /> + ) + break + case 'settings': + screen = ( + go('sites')} onCalibrate={() => go('calibrate')} /> + ) + break + case 'calibrate': + screen = go('settings')} /> + break + default: + screen = null + } + + if (!screen && !welcomed) { + screen = changeSettings({ welcomed: true })} /> + } + + if (!screen) { + screen = ( + go('setup')} + onSettings={() => go('settings')} + onOpen={(s) => go(s.status === 'complete' ? 'review' : 'capture', s.id)} + onImport={(name, profile) => { + const s = withStatus({ + ...newSite(name || t('sites.importedName')), + source: 'import', + // A NINA file already contains its author's safety margin. + marginDeg: 0, + profile, + coverage: Array(360).fill(1), + }) + commit((list) => [...list, s]) + go('review', s.id) + }} + /> + ) + } + + return ( + <> + {screen} + {fatal &&
setFatal('')}>⚠ {fatal}
} + + ) +} diff --git a/wasm/frontend/src/components/AppIcon.jsx b/wasm/frontend/src/components/AppIcon.jsx new file mode 100644 index 0000000..78c54ed --- /dev/null +++ b/wasm/frontend/src/components/AppIcon.jsx @@ -0,0 +1,20 @@ +// App icon, concept A "Skyline" (assets/branding/make_icons.py — keep in sync). + +const EDGE = 'L8 70 L8 56 L21 44 L27 49.5 L27 43 L30.5 43 L30.5 52.8 L34 56 L34 70 L46 70 ' + + 'L50 66 L59 56 L54 56 L62 44 L58 44 L66 28 L74 44 L70 44 L78 56 L73 56 L82 66 ' + + 'L85 66 L89 58 L87 58 L92 48 L97 58 L95 58' + +export default function AppIcon({ size = 64, border = false }) { + return ( + + ) +} diff --git a/wasm/frontend/src/components/Charts.jsx b/wasm/frontend/src/components/Charts.jsx new file mode 100644 index 0000000..0ae02bf --- /dev/null +++ b/wasm/frontend/src/components/Charts.jsx @@ -0,0 +1,93 @@ +// Horizon charts: the small sparkline on site cards and the Review profile. + +import { coveredRuns } from '../lib/profile' +import { t } from '../i18n' + +const compass = () => [t('compass.n'), t('compass.e'), t('compass.s'), t('compass.w'), t('compass.n')] + +const f = (n) => n.toFixed(1) + +/** Site-card sparkline: area + line, 0–40°, dashed box over uncovered azimuths. */ +export function Sparkline({ profile, coverage, width = 318, height = 64, max = 40 }) { + const px = (az) => (az / 360) * width + const py = (alt) => height - (Math.max(0, Math.min(alt, max)) / max) * height + const runs = profile ? coveredRuns(coverage) : [] + const gaps = [] + let prev = 0 + for (const [a, b] of runs) { + if (a > prev) gaps.push([prev, a]) + prev = b + } + if (prev < 360) gaps.push([prev, 360]) + + const paths = runs.map(([a, b]) => { + const end = b === 360 ? 360 : b - 1 + const pts = [] + for (let d = a; d <= end; d++) pts.push([d, profile[d % 360]]) + if (pts.length === 1) pts.push([pts[0][0] + 1, pts[0][1]]) + const line = pts.map((p, i) => `${i ? 'L' : 'M'}${f(px(p[0]))} ${f(py(p[1]))}`).join(' ') + const area = `M${f(px(pts[0][0]))} ${height} ` + + pts.map((p) => `L${f(px(p[0]))} ${f(py(p[1]))}`).join(' ') + + ` L${f(px(pts[pts.length - 1][0]))} ${height} Z` + return { line, area } + }) + + return ( + + ) +} + +/** Review chart: edge (accent, filled) and what goes into the .hrz (dashed blue). */ +export function ProfileChart({ profile, marginDeg }) { + const W = 350, H = 250, X0 = 30, X1 = 346, Y0 = 10, Y1 = 210 + let top = 40 + for (const v of profile) top = Math.max(top, Math.ceil((v + marginDeg) / 10) * 10) + top = Math.min(top, 90) + const step = top / 4 + const px = (az) => X0 + (az / 360) * (X1 - X0) + const py = (alt) => Y1 - (Math.max(0, Math.min(alt, top)) / top) * (Y1 - Y0) + const pts = Array.from({ length: 361 }, (_, d) => [d, profile[d % 360]]) + const line = pts.map((p, i) => `${i ? 'L' : 'M'}${f(px(p[0]))} ${f(py(p[1]))}`).join(' ') + const margin = pts.map((p, i) => `${i ? 'L' : 'M'}${f(px(p[0]))} ${f(py(Math.min(90, p[1] + marginDeg)))}`).join(' ') + const area = `M${X0} ${Y1} ` + pts.map((p) => `L${f(px(p[0]))} ${f(py(p[1]))}`).join(' ') + ` L${X1} ${Y1} Z` + const grid = [0, 1, 2, 3, 4].map((k) => top - k * step) + + return ( + + + {grid.slice(0, 4).map((v) => )} + + + + {grid.map((v) => {Math.round(v)}°)} + + + {compass().map((l, i) => {l})} + + + + + + ) +} + +export function CompassLabels({ style }) { + return ( +
+ {compass().map((l, i) => {l})} +
+ ) +} diff --git a/wasm/frontend/src/components/Icons.jsx b/wasm/frontend/src/components/Icons.jsx new file mode 100644 index 0000000..ef4eaed --- /dev/null +++ b/wasm/frontend/src/components/Icons.jsx @@ -0,0 +1,86 @@ +// Stroke icons from the design source (docs/design/source/*.dc.html). + +const base = { + fill: 'none', + stroke: 'currentColor', + strokeLinecap: 'round', + strokeLinejoin: 'round', + 'aria-hidden': true, +} + +const icon = (paths, defaultSize = 20, defaultWidth = 2) => + function Icon({ size = defaultSize, width = defaultWidth, ...rest }) { + return ( + + {paths} + + ) + } + +export const IconSettings = icon( + <> + + + + + , + 20, + 1.8, +) +export const IconChevronRight = icon(, 20, 2.2) +export const IconBack = icon(, 22, 2) +export const IconPlus = icon(, 20, 2.2) +export const IconImport = icon( + <> + + + + , + 18, + 1.8, +) +export const IconCheck = icon(, 12, 2.4) +export const IconPin = icon( + <> + + + , + 20, + 1.8, +) +export const IconCompass = icon( + <> + + + , + 20, + 1.8, +) +export const IconClose = icon(, 20, 2) +export const IconUndo = icon( + <> + + + , + 20, + 2, +) +export const IconDownload = icon(, 18, 2) +export const IconShare = icon( + , + 18, + 2, +) +export const IconTrash = icon( + , + 20, + 1.8, +) +export const IconCamera = icon( + <> + + + , + 22, + 1.8, +) diff --git a/wasm/frontend/src/i18n/index.js b/wasm/frontend/src/i18n/index.js new file mode 100644 index 0000000..65dbf8d --- /dev/null +++ b/wasm/frontend/src/i18n/index.js @@ -0,0 +1,104 @@ +// Tiny i18n layer: flat message keys, {param} interpolation, plurals via +// Intl.PluralRules. English is the source and the fallback for missing keys. +// +// Messages are plain strings, or for counts an object keyed by plural +// category ({ one, few, many, other, … }) selected with params.count. + +import en from './locales/en' +import es from './locales/es' +import ar from './locales/ar' +import de from './locales/de' +import hu from './locales/hu' +import pl from './locales/pl' +import fr from './locales/fr' +import it from './locales/it' +import sk from './locales/sk' + +/** Supported languages, endonyms for the language picker. */ +export const LOCALES = [ + { code: 'en', name: 'English' }, + { code: 'es', name: 'Español' }, + { code: 'ar', name: 'العربية', dir: 'rtl' }, + { code: 'de', name: 'Deutsch' }, + { code: 'hu', name: 'Magyar' }, + { code: 'pl', name: 'Polski' }, + { code: 'fr', name: 'Français' }, + { code: 'it', name: 'Italiano' }, + { code: 'sk', name: 'Slovenčina' }, +] + +const MESSAGES = { en, es, ar, de, hu, pl, fr, it, sk } + +let locale = 'en' +let messages = en +let plural = new Intl.PluralRules('en') + +/** First supported language from the system preferences, else English. */ +export function systemLocale() { + const prefs = (typeof navigator !== 'undefined' && (navigator.languages || [navigator.language])) || [] + for (const tag of prefs) { + const base = String(tag || '').toLowerCase().split(/[-_]/)[0] + if (MESSAGES[base]) return base + } + return 'en' +} + +/** Resolve a stored preference ('' or null = follow the system). */ +export function resolveLocale(pref) { + return pref && MESSAGES[pref] ? pref : systemLocale() +} + +export function setLocale(code) { + locale = MESSAGES[code] ? code : 'en' + messages = MESSAGES[locale] + plural = new Intl.PluralRules(locale) + numberFormats.clear() + if (typeof document !== 'undefined') { + document.documentElement.lang = locale + document.documentElement.dir = isRtl() ? 'rtl' : 'ltr' + } +} + +export function getLocale() { + return locale +} + +export function isRtl() { + return LOCALES.find((l) => l.code === locale)?.dir === 'rtl' +} + +export function localeName(code) { + return LOCALES.find((l) => l.code === code)?.name || code +} + +/** Translate a key. Missing keys fall back to English, then to the key itself. */ +export function t(key, params) { + let m = messages[key] ?? en[key] ?? key + if (m && typeof m === 'object') { + const n = params && typeof params.count === 'number' ? params.count : 0 + m = m[plural.select(n)] ?? m.other ?? Object.values(m)[0] + } + if (!params) return m + return m.replace(/\{(\w+)\}/g, (all, k) => (params[k] !== undefined ? String(params[k]) : all)) +} + +// ---------- numbers ---------- + +const numberFormats = new Map() + +/** Locale-aware fixed-decimals number; Latin digits everywhere (also in Arabic). */ +export function formatNumber(v, digits) { + const key = digits + let f = numberFormats.get(key) + if (!f) { + f = new Intl.NumberFormat(`${locale}-u-nu-latn`, { + minimumFractionDigits: digits, + maximumFractionDigits: digits, + useGrouping: false, + }) + numberFormats.set(key, f) + } + return f.format(v) +} + +setLocale(systemLocale()) diff --git a/wasm/frontend/src/i18n/locales/ar.js b/wasm/frontend/src/i18n/locales/ar.js new file mode 100644 index 0000000..df29b65 --- /dev/null +++ b/wasm/frontend/src/i18n/locales/ar.js @@ -0,0 +1,220 @@ +// العربية (\u200E before .hrz/.zip keeps the extension readable in RTL text; right to left; plural categories: zero, one, two, few = 3–10, many = 11–99, other = 100+) +export default { + 'tab.sites': 'المواقع', + 'tab.new': 'مسح جديد', + 'tab.settings': 'الإعدادات', + + 'compass.n': 'ش', + 'compass.e': 'ق', + 'compass.s': 'ج', + 'compass.w': 'غ', + + 'common.back': 'رجوع', + 'common.startCamera': 'تشغيل الكاميرا', + 'common.startingCamera': 'جارٍ تشغيل الكاميرا…', + 'common.noLocation': 'لا يوجد موقع', + + 'app.engineError': 'تعذّر تحميل المحرّك: {error}', + + 'welcome.tagline': 'تتبّع الأشجار وأسطح المنازل حول تلسكوبك', + 'welcome.formats': 'NINA .HRZ · مشهد Stellarium', + 'welcome.start': 'ابدأ', + 'welcome.sceneLabel': 'حديقة ليلية فيها منزل وأشجار وتلسكوب تحت سماء مرصّعة بالنجوم؛ خطّ كهرماني متقطّع يتتبّع الأفق فوق الأسطح وقمم الأشجار', + + 'sites.subtitle': 'آفاق اصطناعية لـ NINA و Stellarium', + 'sites.settings': 'الإعدادات', + 'sites.count': 'المواقع · {count}', + 'sites.emptyTitle': 'لا توجد مواقع بعد', + 'sites.emptyHint': 'قف حيث يقف تلسكوبك وابدأ مسحًا.', + 'sites.emptyHintApp': 'اضغط «{tab}» في الأسفل، أو استورد ملف \u200E.hrz من NINA بالزر في الأعلى.', + 'sites.newSurvey': 'مسح جديد للأفق', + 'sites.import': 'استيراد ملف \u200E.hrz موجود', + 'sites.importError': 'تعذّرت قراءة {file}: {error}', + 'sites.inProgress': 'قيد التنفيذ', + 'sites.noHorizon': 'لا يوجد أفق بعد', + 'sites.covered': 'تمت تغطية {deg}° من 360°', + 'sites.continue': 'متابعة المسح', + 'sites.imported': 'ملف \u200E.hrz مستورد', + 'sites.framesFull': { + zero: '{count} صورة · 360° كاملة', one: 'صورة واحدة · 360° كاملة', two: 'صورتان · 360° كاملة', + few: '{count} صور · 360° كاملة', many: '{count} صورة · 360° كاملة', other: '{count} صورة · 360° كاملة', + }, + 'sites.framesPartial': { + zero: '{count} صورة · تغطية {deg}°', one: 'صورة واحدة · تغطية {deg}°', two: 'صورتان · تغطية {deg}°', + few: '{count} صور · تغطية {deg}°', many: '{count} صورة · تغطية {deg}°', other: '{count} صورة · تغطية {deg}°', + }, + 'sites.defaultName': 'الموقع {n}', + 'sites.importedName': 'أفق مستورد', + + 'setup.title': 'مسح جديد', + 'setup.siteName': 'اسم الموقع', + 'setup.locating': 'جارٍ تحديد الموقع…', + 'setup.locationHint': 'يُكتب في مشهد Stellarium', + 'setup.altitudeUnknown': 'الارتفاع غير معروف', + 'setup.elevation': '{m} م', + 'setup.gps': 'GPS ±{m} م', + 'setup.refresh': 'تحديث', + 'setup.noGeo': 'لا تتوفر خدمة الموقع في هذا المتصفح', + 'setup.geoUnavailable': 'الموقع غير متاح', + 'setup.northTitle': 'الشمال من البوصلة', + 'setup.northHint': 'لم يُطبَّق الانحراف المغناطيسي بعد: صحّح الشمال بالإزاحة في شاشة المراجعة', + 'setup.howTo': 'طريقة التصوير', + 'setup.skyNotNeeded': 'لا حاجة للسماء', + 'setup.illustration': 'استدر دورة كاملة في مكانك والهاتف قائم؛ يُصوَّر فقط شريط حول الأفق', + 'setup.step1': 'قف حيث يقف التلسكوب.', + 'setup.step2': 'أمسك الهاتف قائمًا ومائلًا قليلًا فوق الأفق.', + 'setup.step3': 'استدر ببطء دورة كاملة. تُلتقط الصور تلقائيًا.', + 'setup.start': 'بدء التصوير', + 'setup.sensorsError': 'مستشعرات الحركة غير متاحة: {error}', + 'setup.cameraError': 'الكاميرا: {error}', + + 'capture.openError': 'تعذّر فتح المسح: {error}', + 'capture.saveError': 'تعذّر الحفظ: {error}', + 'capture.close': 'إغلاق المسح', + 'capture.undo': 'إعادة التقاط آخر صورة', + 'capture.frameOf': 'الصورة {n} من {total}', + 'capture.allFrames': 'كل الصور ({count})', + 'capture.progress': 'تقدّم البانوراما على 360 درجة', + 'capture.heading': 'الاتجاه', + 'capture.tilt': 'الميل', + 'capture.covers': 'التغطية', + 'capture.autoOn': 'تلقائي: تشغيل', + 'capture.autoOff': 'تلقائي: إيقاف', + 'capture.shutter': 'التقاط صورة', + 'capture.finish': 'إنهاء', + 'capture.topTouch': 'عائق يصل إلى أعلى الصورة عند {az}°', + 'capture.addHigher': 'صورة أعلى', + 'capture.hint.compass': 'بانتظار البوصلة…', + 'capture.hint.done': 'التُقطت كل الصور. اضغط إنهاء.', + 'capture.hint.higher': 'صورة أعلى: وجّه الهاتف نحو النقطة', + 'capture.hint.turnRight': 'استدر يمينًا حتى تدخل النقطة في الدائرة', + 'capture.hint.turnLeft': 'استدر يسارًا حتى تدخل النقطة في الدائرة', + 'capture.hint.manual': 'وجّه الهاتف نحو النقطة ثم اضغط زر الالتقاط', + 'capture.hint.tiltUp': 'أمِل الهاتف قليلًا إلى الأعلى', + 'capture.hint.tiltDown': 'أمِل الهاتف قليلًا إلى الأسفل', + 'capture.hint.hold': 'اثبت…', + 'capture.hint.tap': 'اضغط زر الالتقاط', + 'capture.err.noHeading': 'لا يوجد اتجاه من البوصلة بعد', + 'capture.err.cameraNotReady': 'الكاميرا غير جاهزة', + 'capture.err.encode': 'تعذّر إنشاء البانوراما', + + 'camera.err.https': 'تحتاج الكاميرا إلى HTTPS (أو localhost).', + 'camera.err.noApi': 'لا يمكن لهذا المتصفح الوصول إلى الكاميرا.', + 'camera.err.noPicture': 'بدأت الكاميرا لكنها لا ترسل صورة.', + + 'review.title': 'مراجعة الأفق', + 'review.imported': 'مستورد من ملف \u200E.hrz', + 'review.stitchedFull': { + zero: '{count} صورة مدمجة · 360° كاملة', one: 'صورة واحدة مدمجة · 360° كاملة', two: 'صورتان مدمجتان · 360° كاملة', + few: '{count} صور مدمجة · 360° كاملة', many: '{count} صورة مدمجة · 360° كاملة', other: '{count} صورة مدمجة · 360° كاملة', + }, + 'review.stitchedPartial': { + zero: '{count} صورة مدمجة · {deg}° من 360°', one: 'صورة واحدة مدمجة · {deg}° من 360°', two: 'صورتان مدمجتان · {deg}° من 360°', + few: '{count} صور مدمجة · {deg}° من 360°', many: '{count} صورة مدمجة · {deg}° من 360°', other: '{count} صورة مدمجة · {deg}° من 360°', + }, + 'review.delete': 'حذف الموقع', + 'review.deleteConfirm': 'حذف؟', + 'review.tabNina': 'أفق NINA', + 'review.tabPano': 'بانوراما', + 'review.detecting': 'جارٍ اكتشاف حافة السماء…', + 'review.noHorizon': 'لا يوجد أفق بعد: التقط بعض الصور أولًا.', + 'review.legendEdge': 'حافة السماء المكتشفة', + 'review.legendHrz': 'يُكتب في ملف \u200E.hrz', + 'review.chartLabel': 'مقطع الأفق: ارتفاع العوائق حسب السمت، مع هامش الأمان بخط متقطّع', + 'review.margin': 'هامش الأمان', + 'review.marginHint': 'يُبعد أهداف NINA عن قمم الأشجار وعن خطأ البوصلة', + 'review.toolAuto': 'تلقائي', + 'review.toolSky': 'تلوين السماء', + 'review.toolGround': 'تلوين الأرض', + 'review.edits': { + zero: 'لا تعديلات', one: 'تعديل واحد', two: 'تعديلان', + few: '{count} تعديلات', many: '{count} تعديلًا', other: '{count} تعديل', + }, + 'review.undoEdit': 'تراجع عن الأخير', + 'review.clearEdits': 'العودة إلى التلقائي', + 'review.transparentSky': 'سماء شفافة في Stellarium', + 'review.dragHint': 'اسحب للنظر حولك', + 'review.paintHint': 'لوّن بإصبعك', + 'review.zoomLabel': 'بانوراما مكبّرة: المنطقة المربّعة سماء شفافة، والخط هو الحافة المكتشفة', + 'review.overviewLabel': 'البانوراما الكاملة بزاوية 360 درجة مع تحديد الجزء المكبّر', + 'review.north': 'إزاحة الشمال', + 'review.northHint': 'تنطبق على ملف \u200E.hrz والبانوراما', + 'review.rotateLeft': 'تدوير 0.5 درجة إلى اليسار', + 'review.rotateRight': 'تدوير 0.5 درجة إلى اليمين', + 'review.export': 'تصدير', + + 'export.title': 'تصدير', + 'export.back': 'العودة إلى المراجعة', + 'export.summary': '{name} · الهامش {margin}° · إزاحة الشمال {north}°', + 'export.ninaTitle': 'أفق مخصّص لـ NINA', + 'export.ninaSub': 'حافة السماء + هامش الأمان كأزواج سمت/ارتفاع، لحدود ارتفاع الأهداف', + 'export.panoTitle': 'بانوراما Stellarium', + 'export.panoSub': 'مشهد كروي: شريط صور بزاوية 360° مع سماء شفافة، PNG بحجم 8192 × 2048', + 'export.polyTitle': 'Stellarium، المخطط فقط', + 'export.polySub': 'مشهد مضلّع: خط الأفق فقط، بلا صورة', + 'export.panoUnavailable': 'يتطلب مسحًا بالصور (غير متاح للآفاق المستوردة)', + 'export.panoGaps': 'لم تُصوَّر الـ 360° كاملة: تُملأ الفجوات بلون داكن', + 'export.preview': 'معاينة', + 'export.loading': 'جارٍ التحميل…', + 'export.lines': { + zero: '{count} سطر · السمت الارتفاع، هامش {margin}°', one: 'سطر واحد · السمت الارتفاع، هامش {margin}°', + two: 'سطران · السمت الارتفاع، هامش {margin}°', few: '{count} أسطر · السمت الارتفاع، هامش {margin}°', + many: '{count} سطرًا · السمت الارتفاع، هامش {margin}°', other: '{count} سطر · السمت الارتفاع، هامش {margin}°', + }, + 'export.help': 'NINA: Options › General › Astrometry › Custom Horizon. Stellarium: ثبّت ملف \u200E.zip من خيارات السماء والعرض › المشهد › إضافة/إزالة المشاهد.', + 'export.rendering': 'جارٍ إنشاء البانوراما…', + 'export.preparing': 'جارٍ التحضير…', + 'export.sharing': 'جارٍ المشاركة…', + 'export.saving': 'جارٍ الحفظ…', + 'export.save': 'حفظ', + 'export.share': { + zero: 'مشاركة', one: 'مشاركة ملف واحد', two: 'مشاركة ملفين', + few: 'مشاركة {count} ملفات', many: 'مشاركة {count} ملفًا', other: 'مشاركة {count} ملف', + }, + + 'files.downloaded': { + zero: 'لم يُنزَّل أي ملف', one: 'تم تنزيل {name}', two: 'تم تنزيل ملفين', + few: 'تم تنزيل {count} ملفات', many: 'تم تنزيل {count} ملفًا', other: 'تم تنزيل {count} ملف', + }, + 'files.savedAndroid': { + zero: 'لم يُحفظ أي ملف', one: 'حُفظ في التنزيلات: {name}', two: 'حُفظ ملفان في التنزيلات', + few: 'حُفظت {count} ملفات في التنزيلات', many: 'حُفظ {count} ملفًا في التنزيلات', other: 'حُفظ {count} ملف في التنزيلات', + }, + 'files.savedIos': { + zero: 'لم يُحفظ أي ملف', one: 'حُفظ في الملفات › SkyContour: {name}', two: 'حُفظ ملفان في الملفات › SkyContour', + few: 'حُفظت {count} ملفات في الملفات › SkyContour', many: 'حُفظ {count} ملفًا في الملفات › SkyContour', other: 'حُفظ {count} ملف في الملفات › SkyContour', + }, + 'files.shared': 'تمت المشاركة', + 'files.shareCancelled': 'أُلغيت المشاركة', + 'files.shareUnsupported': 'لا يستطيع هذا المتصفح مشاركة الملفات، لذا تم تنزيلها.', + + 'settings.title': 'الإعدادات', + 'settings.camera': 'الكاميرا', + 'settings.fov': 'مجال الرؤية', + 'settings.fovValue': '{fov}° على عرض الصورة', + 'settings.fovAssumed': 'غير معايَر: يُفترض نحو {fov}°', + 'settings.narrower': 'أضيق', + 'settings.wider': 'أوسع', + 'settings.calibrate': 'المعايرة بالكاميرا', + 'settings.reset': 'إعادة الضبط', + 'settings.fovHint': 'يحدّد مجال الرؤية موضع كل صورة في البانوراما. عايِر مرة واحدة لكل هاتف: استدر ببطء بينما يقارن التطبيق بين منظرين متداخلين.', + 'settings.author': 'المؤلّف في ملفات Stellarium', + 'settings.authorPlaceholder': 'اسمك', + 'settings.language': 'اللغة', + 'settings.systemLanguage': 'لغة النظام ({name})', + 'settings.about': '{app} · آفاق لـ NINA و Stellarium', + + 'calib.title': 'مجال الرؤية', + 'calib.intro': 'وجّه الكاميرا نحو تفاصيل بعيدة (أشجار، أسطح)، ثم اضغط بدء واستدر ببطء إلى الجانب.', + 'calib.turn': 'أدِر الهاتف ببطء إلى الجانب ⟷', + 'calib.turnAuto': 'أدِر الهاتف ببطء إلى الجانب ⟷ (ينتهي تلقائيًا)', + 'calib.newRef': 'التُقطت صورة مرجعية جديدة: تابع الاستدارة ببطء ⟷', + 'calib.noMatch': 'لا يوجد تطابق: استدر أبطأ ووجّه نحو تفاصيل بعيدة', + 'calib.almost': 'اقتربنا: القيم ما زالت تتغيّر، تابع الاستدارة ببطء', + 'calib.measuring': 'جارٍ القياس… تابع الاستدارة ببطء', + 'calib.waiting': 'بانتظار الكاميرا والبوصلة…', + 'calib.done': 'تم: حُفظ مجال رؤية {fov}°.', + 'calib.doneButton': 'تم', + 'calib.restart': 'إعادة القياس', + 'calib.start': 'بدء', +} diff --git a/wasm/frontend/src/i18n/locales/de.js b/wasm/frontend/src/i18n/locales/de.js new file mode 100644 index 0000000..18d1bb6 --- /dev/null +++ b/wasm/frontend/src/i18n/locales/de.js @@ -0,0 +1,189 @@ +// Deutsch +export default { + 'tab.sites': 'Standorte', + 'tab.new': 'Neue Messung', + 'tab.settings': 'Einstellungen', + + 'compass.n': 'N', + 'compass.e': 'O', + 'compass.s': 'S', + 'compass.w': 'W', + + 'common.back': 'Zurück', + 'common.startCamera': 'Kamera starten', + 'common.startingCamera': 'Kamera wird gestartet…', + 'common.noLocation': 'Kein Standort', + + 'app.engineError': 'Die Rechen-Engine konnte nicht geladen werden: {error}', + + 'welcome.tagline': 'Erfasse die Bäume und Dächer rund um dein Teleskop', + 'welcome.formats': 'NINA .HRZ · STELLARIUM-LANDSCHAFT', + 'welcome.start': 'Los geht’s', + 'welcome.sceneLabel': 'Nächtlicher Garten mit Haus, Bäumen und Teleskop unter Sternenhimmel; eine gestrichelte bernsteinfarbene Linie folgt dem Horizont über Dächern und Baumkronen', + + 'sites.subtitle': 'Künstliche Horizonte für NINA & Stellarium', + 'sites.settings': 'Einstellungen', + 'sites.count': 'Standorte · {count}', + 'sites.emptyTitle': 'Noch keine Standorte', + 'sites.emptyHint': 'Stell dich dorthin, wo dein Teleskop steht, und starte eine Messung.', + 'sites.emptyHintApp': 'Tippe unten auf „{tab}“ oder importiere eine NINA-.hrz mit der Schaltfläche oben.', + 'sites.newSurvey': 'Neue Horizontmessung', + 'sites.import': 'Vorhandene .hrz importieren', + 'sites.importError': '{file} konnte nicht gelesen werden: {error}', + 'sites.inProgress': 'In Arbeit', + 'sites.noHorizon': 'Noch kein Horizont', + 'sites.covered': '{deg}° von 360° erfasst', + 'sites.continue': 'Messung fortsetzen', + 'sites.imported': 'Importierte .hrz', + 'sites.framesFull': { one: '{count} Bild · volle 360°', other: '{count} Bilder · volle 360°' }, + 'sites.framesPartial': { one: '{count} Bild · {deg}° erfasst', other: '{count} Bilder · {deg}° erfasst' }, + 'sites.defaultName': 'Standort {n}', + 'sites.importedName': 'Importierter Horizont', + + 'setup.title': 'Neue Messung', + 'setup.siteName': 'Name des Standorts', + 'setup.locating': 'Standort wird ermittelt…', + 'setup.locationHint': 'Wird in die Stellarium-Landschaft geschrieben', + 'setup.altitudeUnknown': 'Höhe unbekannt', + 'setup.elevation': '{m} m', + 'setup.gps': 'GPS ±{m} m', + 'setup.refresh': 'Aktualisieren', + 'setup.noGeo': 'Dieser Browser hat keine Ortungsdienste', + 'setup.geoUnavailable': 'Standort nicht verfügbar', + 'setup.northTitle': 'Norden vom Kompass', + 'setup.northHint': 'Die Deklination wird noch nicht berücksichtigt: korrigiere Norden mit dem Versatz in der Prüfung', + 'setup.howTo': 'So wird aufgenommen', + 'setup.skyNotNeeded': 'Himmel nicht nötig', + 'setup.illustration': 'Dreh dich einmal auf der Stelle und halte das Telefon aufrecht; fotografiert wird nur ein Band um den Horizont', + 'setup.step1': 'Stell dich dorthin, wo das Teleskop steht.', + 'setup.step2': 'Halte das Telefon aufrecht, leicht über den Horizont geneigt.', + 'setup.step3': 'Dreh dich langsam einmal im Kreis. Die Bilder entstehen automatisch.', + 'setup.start': 'Aufnahme starten', + 'setup.sensorsError': 'Bewegungssensoren nicht verfügbar: {error}', + 'setup.cameraError': 'Kamera: {error}', + + 'capture.openError': 'Die Messung konnte nicht geöffnet werden: {error}', + 'capture.saveError': 'Speichern fehlgeschlagen: {error}', + 'capture.close': 'Messung schließen', + 'capture.undo': 'Letztes Bild wiederholen', + 'capture.frameOf': 'Bild {n} von {total}', + 'capture.allFrames': 'alle {count} Bilder', + 'capture.progress': 'Panorama-Fortschritt über 360 Grad', + 'capture.heading': 'RICHTUNG', + 'capture.tilt': 'NEIGUNG', + 'capture.covers': 'BEREICH', + 'capture.autoOn': 'Auto an', + 'capture.autoOff': 'Auto aus', + 'capture.shutter': 'Bild aufnehmen', + 'capture.finish': 'Fertig', + 'capture.topTouch': 'Hindernis reicht bei {az}° bis an den Bildrand', + 'capture.addHigher': 'Höheres Bild', + 'capture.hint.compass': 'Warte auf den Kompass…', + 'capture.hint.done': 'Alle Bilder aufgenommen. Tippe auf Fertig.', + 'capture.hint.higher': 'Höheres Bild: richte den Punkt aus', + 'capture.hint.turnRight': 'Nach rechts drehen, bis der Punkt im Kreis ist', + 'capture.hint.turnLeft': 'Nach links drehen, bis der Punkt im Kreis ist', + 'capture.hint.manual': 'Richte den Punkt aus und tippe dann auf den Auslöser', + 'capture.hint.tiltUp': 'Telefon etwas nach oben neigen', + 'capture.hint.tiltDown': 'Telefon etwas nach unten neigen', + 'capture.hint.hold': 'Ruhig halten…', + 'capture.hint.tap': 'Tippe auf den Auslöser', + 'capture.err.noHeading': 'Noch keine Kompassrichtung', + 'capture.err.cameraNotReady': 'Kamera nicht bereit', + 'capture.err.encode': 'Das Panorama konnte nicht erstellt werden', + + 'camera.err.https': 'Die Kamera braucht HTTPS (oder localhost).', + 'camera.err.noApi': 'Dieser Browser hat keinen Kamerazugriff.', + 'camera.err.noPicture': 'Die Kamera läuft, liefert aber kein Bild.', + + 'review.title': 'Horizont prüfen', + 'review.imported': 'Aus .hrz importiert', + 'review.stitchedFull': { one: '{count} Bild zusammengefügt · volle 360°', other: '{count} Bilder zusammengefügt · volle 360°' }, + 'review.stitchedPartial': { one: '{count} Bild zusammengefügt · {deg}° von 360°', other: '{count} Bilder zusammengefügt · {deg}° von 360°' }, + 'review.delete': 'Standort löschen', + 'review.deleteConfirm': 'Löschen?', + 'review.tabNina': 'NINA-Horizont', + 'review.tabPano': 'Panorama', + 'review.detecting': 'Himmelskante wird erkannt…', + 'review.noHorizon': 'Noch kein Horizont: nimm zuerst ein paar Bilder auf.', + 'review.legendEdge': 'Erkannte Himmelskante', + 'review.legendHrz': 'In die .hrz geschrieben', + 'review.chartLabel': 'Horizontprofil: Höhe der Hindernisse nach Azimut, gestrichelt mit Sicherheitsabstand', + 'review.margin': 'Sicherheitsabstand', + 'review.marginHint': 'Hält NINA-Ziele von Baumspitzen und Kompassfehlern fern', + 'review.toolAuto': 'Automatisch', + 'review.toolSky': 'Himmel malen', + 'review.toolGround': 'Boden malen', + 'review.edits': { one: '{count} Korrektur', other: '{count} Korrekturen' }, + 'review.undoEdit': 'Letzte rückgängig', + 'review.clearEdits': 'Zurück zur Automatik', + 'review.transparentSky': 'Transparenter Himmel in Stellarium', + 'review.dragHint': 'Ziehen zum Umsehen', + 'review.paintHint': 'Mit dem Finger malen', + 'review.zoomLabel': 'Vergrößertes Panorama: kariert ist transparenter Himmel, die Linie ist die erkannte Kante', + 'review.overviewLabel': 'Gesamtes 360-Grad-Panorama, der vergrößerte Teil ist markiert', + 'review.north': 'Nordversatz', + 'review.northHint': 'Gilt für .hrz und Panorama', + 'review.rotateLeft': 'Um 0,5 Grad nach links drehen', + 'review.rotateRight': 'Um 0,5 Grad nach rechts drehen', + 'review.export': 'Exportieren', + + 'export.title': 'Exportieren', + 'export.back': 'Zurück zur Prüfung', + 'export.summary': '{name} · Abstand {margin}° · Nordversatz {north}°', + 'export.ninaTitle': 'NINA Custom Horizon', + 'export.ninaSub': 'Himmelskante + Sicherheitsabstand als Azimut/Höhe-Paare, für Höhengrenzen der Ziele', + 'export.panoTitle': 'Stellarium-Panorama', + 'export.panoSub': 'Sphärische Landschaft: 360°-Fotoband mit transparentem Himmel, 8192 × 2048 PNG', + 'export.polyTitle': 'Stellarium, nur Umriss', + 'export.polySub': 'Polygonale Landschaft: nur die Horizontlinie, ohne Foto', + 'export.panoUnavailable': 'Braucht eine Fotomessung (für importierte Horizonte nicht verfügbar)', + 'export.panoGaps': 'Nicht alle 360° fotografiert: Lücken werden dunkel gefüllt', + 'export.preview': 'Vorschau', + 'export.loading': 'Wird geladen…', + 'export.lines': { one: '{count} Zeile · Azimut Höhe, {margin}° Abstand', other: '{count} Zeilen · Azimut Höhe, {margin}° Abstand' }, + 'export.help': 'NINA: Options › General › Astrometry › Custom Horizon. Stellarium: die .zip unter Himmels- und Ansichtsoptionen › Landschaft › Landschaften hinzufügen/entfernen installieren.', + 'export.rendering': 'Panorama wird erstellt…', + 'export.preparing': 'Wird vorbereitet…', + 'export.sharing': 'Wird geteilt…', + 'export.saving': 'Wird gespeichert…', + 'export.save': 'Speichern', + 'export.share': { one: '{count} Datei teilen', other: '{count} Dateien teilen' }, + + 'files.downloaded': { one: 'Heruntergeladen: {name}', other: '{count} Dateien heruntergeladen' }, + 'files.savedAndroid': { one: 'In Downloads gespeichert: {name}', other: '{count} Dateien in Downloads gespeichert' }, + 'files.savedIos': { one: 'Gespeichert in Dateien › SkyContour: {name}', other: '{count} Dateien gespeichert in Dateien › SkyContour' }, + 'files.shared': 'Geteilt', + 'files.shareCancelled': 'Teilen abgebrochen', + 'files.shareUnsupported': 'Dieser Browser kann keine Dateien teilen, deshalb wurden sie heruntergeladen.', + + 'settings.title': 'Einstellungen', + 'settings.camera': 'Kamera', + 'settings.fov': 'Bildwinkel', + 'settings.fovValue': '{fov}° über die Bildbreite', + 'settings.fovAssumed': 'Nicht kalibriert: etwa {fov}° angenommen', + 'settings.narrower': 'Enger', + 'settings.wider': 'Weiter', + 'settings.calibrate': 'Mit der Kamera kalibrieren', + 'settings.reset': 'Zurücksetzen', + 'settings.fovHint': 'Der Bildwinkel bestimmt, wo jedes Foto im Panorama landet. Einmal pro Telefon kalibrieren: langsam drehen, während die App zwei überlappende Ansichten vergleicht.', + 'settings.author': 'Autor in Stellarium-Dateien', + 'settings.authorPlaceholder': 'Dein Name', + 'settings.language': 'Sprache', + 'settings.systemLanguage': 'Systemsprache ({name})', + 'settings.about': '{app} · Horizonte für NINA und Stellarium', + + 'calib.title': 'Bildwinkel', + 'calib.intro': 'Richte die Kamera auf entfernte Details (Bäume, Dächer), tippe auf Start und dreh dich langsam zur Seite.', + 'calib.turn': 'Telefon langsam zur Seite drehen ⟷', + 'calib.turnAuto': 'Telefon langsam zur Seite drehen ⟷ (endet von selbst)', + 'calib.newRef': 'Neue Referenz aufgenommen: weiter langsam drehen ⟷', + 'calib.noMatch': 'Keine Übereinstimmung: langsamer drehen und auf entfernte Details zielen', + 'calib.almost': 'Fast fertig: die Werte schwanken noch, weiter langsam drehen', + 'calib.measuring': 'Messung… weiter langsam drehen', + 'calib.waiting': 'Warte auf Kamera und Kompass…', + 'calib.done': 'Fertig: Bildwinkel {fov}° gespeichert.', + 'calib.doneButton': 'Fertig', + 'calib.restart': 'Messung neu starten', + 'calib.start': 'Start', +} diff --git a/wasm/frontend/src/i18n/locales/en.js b/wasm/frontend/src/i18n/locales/en.js new file mode 100644 index 0000000..27ce957 --- /dev/null +++ b/wasm/frontend/src/i18n/locales/en.js @@ -0,0 +1,201 @@ +// English: the source language and the fallback for every other locale. +// Plural messages are objects keyed by Intl.PluralRules category. +export default { + // Native tab bar (sent to the app shell) + 'tab.sites': 'Sites', + 'tab.new': 'New survey', + 'tab.settings': 'Settings', + + // Compass points: axis labels and coordinate hemispheres + 'compass.n': 'N', + 'compass.e': 'E', + 'compass.s': 'S', + 'compass.w': 'W', + + 'common.back': 'Back', + 'common.startCamera': 'Start camera', + 'common.startingCamera': 'Starting camera…', + 'common.noLocation': 'No location', + + 'app.engineError': 'Could not load the engine: {error}', + + // Welcome + 'welcome.tagline': 'Trace the trees and rooftops around your telescope', + 'welcome.formats': 'NINA .HRZ · STELLARIUM LANDSCAPE', + 'welcome.start': 'Get started', + 'welcome.sceneLabel': 'Night garden with a house, trees and a telescope under a starry sky; a dashed amber line traces the horizon over the rooftops and treetops', + + // Sites + 'sites.subtitle': 'Artificial horizons for NINA & Stellarium', + 'sites.settings': 'Settings', + 'sites.count': 'Sites · {count}', + 'sites.emptyTitle': 'No sites yet', + 'sites.emptyHint': 'Stand where your telescope stands and start a survey.', + 'sites.emptyHintApp': 'Tap “{tab}” below, or import a NINA .hrz with the button above.', + 'sites.newSurvey': 'New horizon survey', + 'sites.import': 'Import existing .hrz', + 'sites.importError': 'Could not read {file}: {error}', + 'sites.inProgress': 'In progress', + 'sites.noHorizon': 'No horizon yet', + 'sites.covered': '{deg}° of 360° covered', + 'sites.continue': 'Continue survey', + 'sites.imported': 'Imported .hrz', + 'sites.framesFull': { one: '{count} frame · full 360°', other: '{count} frames · full 360°' }, + 'sites.framesPartial': { one: '{count} frame · {deg}° covered', other: '{count} frames · {deg}° covered' }, + 'sites.defaultName': 'Site {n}', + 'sites.importedName': 'Imported horizon', + + // Setup + 'setup.title': 'New survey', + 'setup.siteName': 'Site name', + 'setup.locating': 'Finding location…', + 'setup.locationHint': 'Written into the Stellarium landscape', + 'setup.altitudeUnknown': 'Altitude unknown', + 'setup.elevation': '{m} m', + 'setup.gps': 'GPS ±{m} m', + 'setup.refresh': 'Refresh', + 'setup.noGeo': 'No location service in this browser', + 'setup.geoUnavailable': 'Location unavailable', + 'setup.northTitle': 'North from compass', + 'setup.northHint': 'Declination is not applied yet: correct north with the offset in Review', + 'setup.howTo': 'How to capture', + 'setup.skyNotNeeded': 'sky not needed', + 'setup.illustration': 'Turn once around in place, holding the phone upright; only a band around the horizon is photographed', + 'setup.step1': 'Stand where the telescope stands.', + 'setup.step2': 'Hold the phone upright, tilted slightly above the horizon.', + 'setup.step3': 'Turn once around slowly. Frames are taken automatically.', + 'setup.start': 'Start capture', + 'setup.sensorsError': 'Motion sensors are not available: {error}', + 'setup.cameraError': 'Camera: {error}', + + // Capture + 'capture.openError': 'Could not open the survey: {error}', + 'capture.saveError': 'Could not save: {error}', + 'capture.close': 'Close survey', + 'capture.undo': 'Retake last frame', + 'capture.frameOf': 'frame {n} of {total}', + 'capture.allFrames': 'all {count} frames', + 'capture.progress': 'Panorama progress around 360 degrees', + 'capture.heading': 'HEADING', + 'capture.tilt': 'TILT', + 'capture.covers': 'COVERS', + 'capture.autoOn': 'Auto on', + 'capture.autoOff': 'Auto off', + 'capture.shutter': 'Take frame', + 'capture.finish': 'Finish', + 'capture.topTouch': 'Obstruction reaches the frame top at {az}°', + 'capture.addHigher': 'Add higher shot', + 'capture.hint.compass': 'Waiting for the compass…', + 'capture.hint.done': 'All frames taken. Tap Finish.', + 'capture.hint.higher': 'Higher shot: line up the dot', + 'capture.hint.turnRight': 'Turn right until the dot is in the circle', + 'capture.hint.turnLeft': 'Turn left until the dot is in the circle', + 'capture.hint.manual': 'Line up the dot, then tap the shutter', + 'capture.hint.tiltUp': 'Tilt the phone up a little', + 'capture.hint.tiltDown': 'Tilt the phone down a little', + 'capture.hint.hold': 'Hold still…', + 'capture.hint.tap': 'Tap the shutter', + 'capture.err.noHeading': 'No compass heading yet', + 'capture.err.cameraNotReady': 'Camera not ready', + 'capture.err.encode': 'Could not encode the panorama', + + 'camera.err.https': 'The camera needs HTTPS (or localhost).', + 'camera.err.noApi': 'This browser has no camera access.', + 'camera.err.noPicture': 'The camera started but sends no picture.', + + // Review + 'review.title': 'Review horizon', + 'review.imported': 'Imported from .hrz', + 'review.stitchedFull': { one: '{count} frame stitched · full 360°', other: '{count} frames stitched · full 360°' }, + 'review.stitchedPartial': { one: '{count} frame stitched · {deg}° of 360°', other: '{count} frames stitched · {deg}° of 360°' }, + 'review.delete': 'Delete site', + 'review.deleteConfirm': 'Delete site?', + 'review.tabNina': 'NINA horizon', + 'review.tabPano': 'Panorama', + 'review.detecting': 'Detecting the sky edge…', + 'review.noHorizon': 'No horizon yet: capture some frames first.', + 'review.legendEdge': 'Detected sky edge', + 'review.legendHrz': 'Written to .hrz', + 'review.chartLabel': 'Horizon profile: obstruction altitude by azimuth, with the safety margin dashed', + 'review.margin': 'Safety margin', + 'review.marginHint': 'Keeps NINA targets clear of tree tips and compass error', + 'review.toolAuto': 'Auto edge', + 'review.toolSky': 'Paint sky', + 'review.toolGround': 'Paint ground', + 'review.edits': { one: '{count} edit', other: '{count} edits' }, + 'review.undoEdit': 'Undo last', + 'review.clearEdits': 'Back to auto edge', + 'review.transparentSky': 'Transparent sky in Stellarium', + 'review.dragHint': 'Drag to look around', + 'review.paintHint': 'Paint with your finger', + 'review.zoomLabel': 'Zoomed panorama: checkered area is transparent sky, the line is the detected edge', + 'review.overviewLabel': 'Whole 360 degree panorama with the zoomed part outlined', + 'review.north': 'North offset', + 'review.northHint': 'Applies to .hrz and panorama', + 'review.rotateLeft': 'Rotate 0.5 degrees left', + 'review.rotateRight': 'Rotate 0.5 degrees right', + 'review.export': 'Export', + + // Export + 'export.title': 'Export', + 'export.back': 'Back to review', + 'export.summary': '{name} · margin {margin}° · north offset {north}°', + 'export.ninaTitle': 'NINA custom horizon', + 'export.ninaSub': 'Sky edge + safety margin as azimuth / altitude pairs, for target altitude limits', + 'export.panoTitle': 'Stellarium panorama', + 'export.panoSub': 'Spherical landscape: 360° photo band with transparent sky, 8192 × 2048 PNG', + 'export.polyTitle': 'Stellarium outline only', + 'export.polySub': 'Polygonal landscape: just the horizon line, no photo', + 'export.panoUnavailable': 'Needs a photo survey (not available for imported horizons)', + 'export.panoGaps': 'Not all 360° is photographed: gaps are filled dark', + 'export.preview': 'Preview', + 'export.loading': 'Loading…', + 'export.lines': { one: '{count} line · azimuth altitude, {margin}° margin', other: '{count} lines · azimuth altitude, {margin}° margin' }, + 'export.help': 'NINA: Options › General › Astrometry › Custom Horizon. Stellarium: install the .zip under Sky and viewing options › Landscape › Add/remove landscapes.', + 'export.rendering': 'Rendering panorama…', + 'export.preparing': 'Preparing…', + 'export.sharing': 'Sharing…', + 'export.saving': 'Saving…', + 'export.save': 'Save', + 'export.share': { one: 'Share {count} file', other: 'Share {count} files' }, + + // Save / share results + 'files.downloaded': { one: 'Downloaded {name}', other: 'Downloaded {count} files' }, + 'files.savedAndroid': { one: 'Saved to Downloads: {name}', other: 'Saved {count} files to Downloads' }, + 'files.savedIos': { one: 'Saved to Files › SkyContour: {name}', other: 'Saved {count} files to Files › SkyContour' }, + 'files.shared': 'Shared', + 'files.shareCancelled': 'Share cancelled', + 'files.shareUnsupported': 'This browser cannot share files, so they were downloaded instead.', + + // Settings + 'settings.title': 'Settings', + 'settings.camera': 'Camera', + 'settings.fov': 'Field of view', + 'settings.fovValue': '{fov}° across the frame', + 'settings.fovAssumed': 'Not calibrated: about {fov}° is assumed', + 'settings.narrower': 'Narrower', + 'settings.wider': 'Wider', + 'settings.calibrate': 'Calibrate with the camera', + 'settings.reset': 'Reset', + 'settings.fovHint': 'The field of view places each photo in the panorama. Calibrate once per phone: turn slowly while the app compares two overlapping views.', + 'settings.author': 'Author for Stellarium files', + 'settings.authorPlaceholder': 'Your name', + 'settings.language': 'Language', + 'settings.systemLanguage': 'System default ({name})', + 'settings.about': '{app} · horizons for NINA and Stellarium', + + // FOV calibration + 'calib.title': 'Field of view', + 'calib.intro': 'Point at distant detail (trees, roofs), then tap Start and turn slowly sideways.', + 'calib.turn': 'Turn the phone slowly to the side ⟷', + 'calib.turnAuto': 'Turn the phone slowly to the side ⟷ (finishes by itself)', + 'calib.newRef': 'New reference taken: keep turning slowly ⟷', + 'calib.noMatch': 'No match: turn slower and aim at distant detail', + 'calib.almost': 'Almost there: values still vary, keep turning slowly', + 'calib.measuring': 'Measuring… keep turning slowly', + 'calib.waiting': 'Waiting for camera and compass…', + 'calib.done': 'Done: field of view {fov}° saved.', + 'calib.doneButton': 'Done', + 'calib.restart': 'Restart measurement', + 'calib.start': 'Start', +} diff --git a/wasm/frontend/src/i18n/locales/es.js b/wasm/frontend/src/i18n/locales/es.js new file mode 100644 index 0000000..5b31666 --- /dev/null +++ b/wasm/frontend/src/i18n/locales/es.js @@ -0,0 +1,189 @@ +// Español +export default { + 'tab.sites': 'Lugares', + 'tab.new': 'Nuevo estudio', + 'tab.settings': 'Ajustes', + + 'compass.n': 'N', + 'compass.e': 'E', + 'compass.s': 'S', + 'compass.w': 'O', + + 'common.back': 'Atrás', + 'common.startCamera': 'Iniciar cámara', + 'common.startingCamera': 'Iniciando cámara…', + 'common.noLocation': 'Sin ubicación', + + 'app.engineError': 'No se pudo cargar el motor: {error}', + + 'welcome.tagline': 'Traza los árboles y tejados alrededor de tu telescopio', + 'welcome.formats': 'NINA .HRZ · PAISAJE DE STELLARIUM', + 'welcome.start': 'Empezar', + 'welcome.sceneLabel': 'Jardín nocturno con una casa, árboles y un telescopio bajo un cielo estrellado; una línea ámbar discontinua sigue el horizonte sobre los tejados y las copas de los árboles', + + 'sites.subtitle': 'Horizontes artificiales para NINA y Stellarium', + 'sites.settings': 'Ajustes', + 'sites.count': 'Lugares · {count}', + 'sites.emptyTitle': 'Aún no hay lugares', + 'sites.emptyHint': 'Colócate donde está tu telescopio e inicia un estudio.', + 'sites.emptyHintApp': 'Toca «{tab}» abajo o importa un .hrz de NINA con el botón de arriba.', + 'sites.newSurvey': 'Nuevo estudio del horizonte', + 'sites.import': 'Importar un .hrz existente', + 'sites.importError': 'No se pudo leer {file}: {error}', + 'sites.inProgress': 'En curso', + 'sites.noHorizon': 'Aún sin horizonte', + 'sites.covered': '{deg}° de 360° cubiertos', + 'sites.continue': 'Continuar estudio', + 'sites.imported': '.hrz importado', + 'sites.framesFull': { one: '{count} foto · 360° completos', other: '{count} fotos · 360° completos' }, + 'sites.framesPartial': { one: '{count} foto · {deg}° cubiertos', other: '{count} fotos · {deg}° cubiertos' }, + 'sites.defaultName': 'Lugar {n}', + 'sites.importedName': 'Horizonte importado', + + 'setup.title': 'Nuevo estudio', + 'setup.siteName': 'Nombre del lugar', + 'setup.locating': 'Buscando ubicación…', + 'setup.locationHint': 'Se guarda en el paisaje de Stellarium', + 'setup.altitudeUnknown': 'Altitud desconocida', + 'setup.elevation': '{m} m', + 'setup.gps': 'GPS ±{m} m', + 'setup.refresh': 'Actualizar', + 'setup.noGeo': 'Este navegador no tiene servicio de ubicación', + 'setup.geoUnavailable': 'Ubicación no disponible', + 'setup.northTitle': 'Norte de la brújula', + 'setup.northHint': 'La declinación aún no se aplica: corrige el norte con el desfase en la revisión', + 'setup.howTo': 'Cómo capturar', + 'setup.skyNotNeeded': 'el cielo no hace falta', + 'setup.illustration': 'Gira una vez sobre ti mismo con el teléfono vertical; solo se fotografía una franja alrededor del horizonte', + 'setup.step1': 'Colócate donde está el telescopio.', + 'setup.step2': 'Sujeta el teléfono en vertical, un poco inclinado por encima del horizonte.', + 'setup.step3': 'Gira despacio una vuelta completa. Las fotos se toman solas.', + 'setup.start': 'Iniciar captura', + 'setup.sensorsError': 'Los sensores de movimiento no están disponibles: {error}', + 'setup.cameraError': 'Cámara: {error}', + + 'capture.openError': 'No se pudo abrir el estudio: {error}', + 'capture.saveError': 'No se pudo guardar: {error}', + 'capture.close': 'Cerrar estudio', + 'capture.undo': 'Repetir la última foto', + 'capture.frameOf': 'foto {n} de {total}', + 'capture.allFrames': 'las {count} fotos', + 'capture.progress': 'Progreso del panorama en 360 grados', + 'capture.heading': 'RUMBO', + 'capture.tilt': 'INCLINACIÓN', + 'capture.covers': 'CUBRE', + 'capture.autoOn': 'Auto sí', + 'capture.autoOff': 'Auto no', + 'capture.shutter': 'Tomar foto', + 'capture.finish': 'Terminar', + 'capture.topTouch': 'Un obstáculo llega al borde superior en {az}°', + 'capture.addHigher': 'Foto más alta', + 'capture.hint.compass': 'Esperando la brújula…', + 'capture.hint.done': 'Todas las fotos tomadas. Toca Terminar.', + 'capture.hint.higher': 'Foto más alta: alinea el punto', + 'capture.hint.turnRight': 'Gira a la derecha hasta que el punto entre en el círculo', + 'capture.hint.turnLeft': 'Gira a la izquierda hasta que el punto entre en el círculo', + 'capture.hint.manual': 'Alinea el punto y toca el disparador', + 'capture.hint.tiltUp': 'Inclina el teléfono un poco hacia arriba', + 'capture.hint.tiltDown': 'Inclina el teléfono un poco hacia abajo', + 'capture.hint.hold': 'Quieto…', + 'capture.hint.tap': 'Toca el disparador', + 'capture.err.noHeading': 'Aún no hay rumbo de la brújula', + 'capture.err.cameraNotReady': 'La cámara no está lista', + 'capture.err.encode': 'No se pudo generar el panorama', + + 'camera.err.https': 'La cámara necesita HTTPS (o localhost).', + 'camera.err.noApi': 'Este navegador no tiene acceso a la cámara.', + 'camera.err.noPicture': 'La cámara se inició pero no envía imagen.', + + 'review.title': 'Revisar horizonte', + 'review.imported': 'Importado de .hrz', + 'review.stitchedFull': { one: '{count} foto unida · 360° completos', other: '{count} fotos unidas · 360° completos' }, + 'review.stitchedPartial': { one: '{count} foto unida · {deg}° de 360°', other: '{count} fotos unidas · {deg}° de 360°' }, + 'review.delete': 'Eliminar lugar', + 'review.deleteConfirm': '¿Eliminar?', + 'review.tabNina': 'Horizonte NINA', + 'review.tabPano': 'Panorama', + 'review.detecting': 'Detectando el borde del cielo…', + 'review.noHorizon': 'Aún sin horizonte: primero toma algunas fotos.', + 'review.legendEdge': 'Borde del cielo detectado', + 'review.legendHrz': 'Se escribe en el .hrz', + 'review.chartLabel': 'Perfil del horizonte: altura de los obstáculos por azimut, con el margen de seguridad discontinuo', + 'review.margin': 'Margen de seguridad', + 'review.marginHint': 'Mantiene los objetivos de NINA lejos de las copas de los árboles y del error de la brújula', + 'review.toolAuto': 'Automático', + 'review.toolSky': 'Pintar cielo', + 'review.toolGround': 'Pintar suelo', + 'review.edits': { one: '{count} corrección', other: '{count} correcciones' }, + 'review.undoEdit': 'Deshacer última', + 'review.clearEdits': 'Volver a automático', + 'review.transparentSky': 'Cielo transparente en Stellarium', + 'review.dragHint': 'Arrastra para mirar alrededor', + 'review.paintHint': 'Pinta con el dedo', + 'review.zoomLabel': 'Panorama ampliado: la zona a cuadros es cielo transparente, la línea es el borde detectado', + 'review.overviewLabel': 'Panorama completo de 360 grados con la parte ampliada marcada', + 'review.north': 'Desfase del norte', + 'review.northHint': 'Se aplica al .hrz y al panorama', + 'review.rotateLeft': 'Girar 0,5 grados a la izquierda', + 'review.rotateRight': 'Girar 0,5 grados a la derecha', + 'review.export': 'Exportar', + + 'export.title': 'Exportar', + 'export.back': 'Volver a la revisión', + 'export.summary': '{name} · margen {margin}° · desfase del norte {north}°', + 'export.ninaTitle': 'Horizonte personalizado NINA', + 'export.ninaSub': 'Borde del cielo + margen de seguridad como pares azimut/altura, para límites de altura de los objetivos', + 'export.panoTitle': 'Panorama de Stellarium', + 'export.panoSub': 'Paisaje esférico: franja fotográfica de 360° con cielo transparente, PNG de 8192 × 2048', + 'export.polyTitle': 'Stellarium, solo contorno', + 'export.polySub': 'Paisaje poligonal: solo la línea del horizonte, sin foto', + 'export.panoUnavailable': 'Requiere un estudio con fotos (no disponible para horizontes importados)', + 'export.panoGaps': 'No se han fotografiado los 360°: los huecos se rellenan en oscuro', + 'export.preview': 'Vista previa', + 'export.loading': 'Cargando…', + 'export.lines': { one: '{count} línea · azimut altura, margen {margin}°', other: '{count} líneas · azimut altura, margen {margin}°' }, + 'export.help': 'NINA: Options › General › Astrometry › Custom Horizon. Stellarium: instala el .zip en Opciones de cielo y visualización › Paisaje › Añadir/eliminar paisajes.', + 'export.rendering': 'Generando panorama…', + 'export.preparing': 'Preparando…', + 'export.sharing': 'Compartiendo…', + 'export.saving': 'Guardando…', + 'export.save': 'Guardar', + 'export.share': { one: 'Compartir {count} archivo', other: 'Compartir {count} archivos' }, + + 'files.downloaded': { one: 'Descargado: {name}', other: '{count} archivos descargados' }, + 'files.savedAndroid': { one: 'Guardado en Descargas: {name}', other: '{count} archivos guardados en Descargas' }, + 'files.savedIos': { one: 'Guardado en Archivos › SkyContour: {name}', other: '{count} archivos guardados en Archivos › SkyContour' }, + 'files.shared': 'Compartido', + 'files.shareCancelled': 'Se canceló el envío', + 'files.shareUnsupported': 'Este navegador no puede compartir archivos, así que se han descargado.', + + 'settings.title': 'Ajustes', + 'settings.camera': 'Cámara', + 'settings.fov': 'Campo de visión', + 'settings.fovValue': '{fov}° a lo ancho de la imagen', + 'settings.fovAssumed': 'Sin calibrar: se suponen unos {fov}°', + 'settings.narrower': 'Más estrecho', + 'settings.wider': 'Más amplio', + 'settings.calibrate': 'Calibrar con la cámara', + 'settings.reset': 'Restablecer', + 'settings.fovHint': 'El campo de visión sitúa cada foto en el panorama. Calibra una vez por teléfono: gira despacio mientras la app compara dos vistas superpuestas.', + 'settings.author': 'Autor en los archivos de Stellarium', + 'settings.authorPlaceholder': 'Tu nombre', + 'settings.language': 'Idioma', + 'settings.systemLanguage': 'Idioma del sistema ({name})', + 'settings.about': '{app} · horizontes para NINA y Stellarium', + + 'calib.title': 'Campo de visión', + 'calib.intro': 'Apunta a detalles lejanos (árboles, tejados), toca Iniciar y gira despacio hacia un lado.', + 'calib.turn': 'Gira el teléfono despacio hacia un lado ⟷', + 'calib.turnAuto': 'Gira el teléfono despacio hacia un lado ⟷ (termina solo)', + 'calib.newRef': 'Nueva referencia tomada: sigue girando despacio ⟷', + 'calib.noMatch': 'Sin coincidencia: gira más despacio y apunta a detalles lejanos', + 'calib.almost': 'Casi listo: los valores aún varían, sigue girando despacio', + 'calib.measuring': 'Midiendo… sigue girando despacio', + 'calib.waiting': 'Esperando la cámara y la brújula…', + 'calib.done': 'Listo: campo de visión de {fov}° guardado.', + 'calib.doneButton': 'Listo', + 'calib.restart': 'Repetir medición', + 'calib.start': 'Iniciar', +} diff --git a/wasm/frontend/src/i18n/locales/fr.js b/wasm/frontend/src/i18n/locales/fr.js new file mode 100644 index 0000000..d4217b3 --- /dev/null +++ b/wasm/frontend/src/i18n/locales/fr.js @@ -0,0 +1,189 @@ +// Français +export default { + 'tab.sites': 'Sites', + 'tab.new': 'Nouveau relevé', + 'tab.settings': 'Réglages', + + 'compass.n': 'N', + 'compass.e': 'E', + 'compass.s': 'S', + 'compass.w': 'O', + + 'common.back': 'Retour', + 'common.startCamera': 'Démarrer la caméra', + 'common.startingCamera': 'Démarrage de la caméra…', + 'common.noLocation': 'Pas de position', + + 'app.engineError': 'Impossible de charger le moteur : {error}', + + 'welcome.tagline': 'Tracez les arbres et les toits autour de votre télescope', + 'welcome.formats': 'NINA .HRZ · PAYSAGE STELLARIUM', + 'welcome.start': 'Commencer', + 'welcome.sceneLabel': 'Jardin de nuit avec une maison, des arbres et un télescope sous un ciel étoilé ; une ligne ambre en pointillés suit l’horizon au-dessus des toits et des arbres', + + 'sites.subtitle': 'Horizons artificiels pour NINA et Stellarium', + 'sites.settings': 'Réglages', + 'sites.count': 'Sites · {count}', + 'sites.emptyTitle': 'Aucun site pour l’instant', + 'sites.emptyHint': 'Placez-vous à l’emplacement de votre télescope et lancez un relevé.', + 'sites.emptyHintApp': 'Touchez « {tab} » en bas, ou importez un .hrz NINA avec le bouton en haut.', + 'sites.newSurvey': 'Nouveau relevé d’horizon', + 'sites.import': 'Importer un .hrz existant', + 'sites.importError': 'Impossible de lire {file} : {error}', + 'sites.inProgress': 'En cours', + 'sites.noHorizon': 'Pas encore d’horizon', + 'sites.covered': '{deg}° sur 360° couverts', + 'sites.continue': 'Continuer le relevé', + 'sites.imported': '.hrz importé', + 'sites.framesFull': { one: '{count} photo · 360° complets', other: '{count} photos · 360° complets' }, + 'sites.framesPartial': { one: '{count} photo · {deg}° couverts', other: '{count} photos · {deg}° couverts' }, + 'sites.defaultName': 'Site {n}', + 'sites.importedName': 'Horizon importé', + + 'setup.title': 'Nouveau relevé', + 'setup.siteName': 'Nom du site', + 'setup.locating': 'Recherche de la position…', + 'setup.locationHint': 'Inscrite dans le paysage Stellarium', + 'setup.altitudeUnknown': 'Altitude inconnue', + 'setup.elevation': '{m} m', + 'setup.gps': 'GPS ±{m} m', + 'setup.refresh': 'Actualiser', + 'setup.noGeo': 'Ce navigateur n’a pas de service de localisation', + 'setup.geoUnavailable': 'Position indisponible', + 'setup.northTitle': 'Nord donné par la boussole', + 'setup.northHint': 'La déclinaison n’est pas encore appliquée : corrigez le nord avec le décalage dans la vérification', + 'setup.howTo': 'Comment capturer', + 'setup.skyNotNeeded': 'ciel inutile', + 'setup.illustration': 'Faites un tour sur vous-même en tenant le téléphone droit ; seule une bande autour de l’horizon est photographiée', + 'setup.step1': 'Placez-vous à l’emplacement du télescope.', + 'setup.step2': 'Tenez le téléphone droit, légèrement incliné au-dessus de l’horizon.', + 'setup.step3': 'Faites lentement un tour complet. Les photos se prennent toutes seules.', + 'setup.start': 'Lancer la capture', + 'setup.sensorsError': 'Capteurs de mouvement indisponibles : {error}', + 'setup.cameraError': 'Caméra : {error}', + + 'capture.openError': 'Impossible d’ouvrir le relevé : {error}', + 'capture.saveError': 'Échec de l’enregistrement : {error}', + 'capture.close': 'Fermer le relevé', + 'capture.undo': 'Reprendre la dernière photo', + 'capture.frameOf': 'photo {n} sur {total}', + 'capture.allFrames': 'les {count} photos', + 'capture.progress': 'Progression du panorama sur 360 degrés', + 'capture.heading': 'CAP', + 'capture.tilt': 'INCLINAISON', + 'capture.covers': 'COUVRE', + 'capture.autoOn': 'Auto oui', + 'capture.autoOff': 'Auto non', + 'capture.shutter': 'Prendre la photo', + 'capture.finish': 'Terminer', + 'capture.topTouch': 'Un obstacle touche le haut de l’image à {az}°', + 'capture.addHigher': 'Photo plus haute', + 'capture.hint.compass': 'En attente de la boussole…', + 'capture.hint.done': 'Toutes les photos sont prises. Touchez Terminer.', + 'capture.hint.higher': 'Photo plus haute : alignez le point', + 'capture.hint.turnRight': 'Tournez à droite jusqu’à ce que le point soit dans le cercle', + 'capture.hint.turnLeft': 'Tournez à gauche jusqu’à ce que le point soit dans le cercle', + 'capture.hint.manual': 'Alignez le point, puis touchez le déclencheur', + 'capture.hint.tiltUp': 'Inclinez un peu le téléphone vers le haut', + 'capture.hint.tiltDown': 'Inclinez un peu le téléphone vers le bas', + 'capture.hint.hold': 'Ne bougez plus…', + 'capture.hint.tap': 'Touchez le déclencheur', + 'capture.err.noHeading': 'Pas encore de cap de la boussole', + 'capture.err.cameraNotReady': 'Caméra pas prête', + 'capture.err.encode': 'Impossible de créer le panorama', + + 'camera.err.https': 'La caméra nécessite HTTPS (ou localhost).', + 'camera.err.noApi': 'Ce navigateur n’a pas accès à la caméra.', + 'camera.err.noPicture': 'La caméra a démarré mais n’envoie pas d’image.', + + 'review.title': 'Vérifier l’horizon', + 'review.imported': 'Importé depuis un .hrz', + 'review.stitchedFull': { one: '{count} photo assemblée · 360° complets', other: '{count} photos assemblées · 360° complets' }, + 'review.stitchedPartial': { one: '{count} photo assemblée · {deg}° sur 360°', other: '{count} photos assemblées · {deg}° sur 360°' }, + 'review.delete': 'Supprimer le site', + 'review.deleteConfirm': 'Supprimer ?', + 'review.tabNina': 'Horizon NINA', + 'review.tabPano': 'Panorama', + 'review.detecting': 'Détection de la limite du ciel…', + 'review.noHorizon': 'Pas encore d’horizon : prenez d’abord quelques photos.', + 'review.legendEdge': 'Limite du ciel détectée', + 'review.legendHrz': 'Écrit dans le .hrz', + 'review.chartLabel': 'Profil d’horizon : hauteur des obstacles selon l’azimut, marge de sécurité en pointillés', + 'review.margin': 'Marge de sécurité', + 'review.marginHint': 'Tient les cibles NINA à l’écart des cimes des arbres et des erreurs de boussole', + 'review.toolAuto': 'Automatique', + 'review.toolSky': 'Peindre le ciel', + 'review.toolGround': 'Peindre le sol', + 'review.edits': { one: '{count} retouche', other: '{count} retouches' }, + 'review.undoEdit': 'Annuler la dernière', + 'review.clearEdits': 'Revenir à l’automatique', + 'review.transparentSky': 'Ciel transparent dans Stellarium', + 'review.dragHint': 'Faites glisser pour regarder autour', + 'review.paintHint': 'Peignez avec le doigt', + 'review.zoomLabel': 'Panorama agrandi : la zone en damier est le ciel transparent, la ligne est la limite détectée', + 'review.overviewLabel': 'Panorama complet à 360 degrés, partie agrandie encadrée', + 'review.north': 'Décalage du nord', + 'review.northHint': 'S’applique au .hrz et au panorama', + 'review.rotateLeft': 'Tourner de 0,5 degré vers la gauche', + 'review.rotateRight': 'Tourner de 0,5 degré vers la droite', + 'review.export': 'Exporter', + + 'export.title': 'Exporter', + 'export.back': 'Retour à la vérification', + 'export.summary': '{name} · marge {margin}° · décalage du nord {north}°', + 'export.ninaTitle': 'Horizon personnalisé NINA', + 'export.ninaSub': 'Limite du ciel + marge de sécurité en paires azimut/hauteur, pour les limites de hauteur des cibles', + 'export.panoTitle': 'Panorama Stellarium', + 'export.panoSub': 'Paysage sphérique : bande photo à 360° avec ciel transparent, PNG 8192 × 2048', + 'export.polyTitle': 'Stellarium, contour seul', + 'export.polySub': 'Paysage polygonal : seulement la ligne d’horizon, sans photo', + 'export.panoUnavailable': 'Nécessite un relevé photo (indisponible pour les horizons importés)', + 'export.panoGaps': 'Les 360° ne sont pas tous photographiés : les trous sont remplis en sombre', + 'export.preview': 'Aperçu', + 'export.loading': 'Chargement…', + 'export.lines': { one: '{count} ligne · azimut hauteur, marge {margin}°', other: '{count} lignes · azimut hauteur, marge {margin}°' }, + 'export.help': 'NINA : Options › General › Astrometry › Custom Horizon. Stellarium : installez le .zip dans Options du ciel et de la vue › Paysage › Ajouter/supprimer des paysages.', + 'export.rendering': 'Création du panorama…', + 'export.preparing': 'Préparation…', + 'export.sharing': 'Partage…', + 'export.saving': 'Enregistrement…', + 'export.save': 'Enregistrer', + 'export.share': { one: 'Partager {count} fichier', other: 'Partager {count} fichiers' }, + + 'files.downloaded': { one: 'Téléchargé : {name}', other: '{count} fichiers téléchargés' }, + 'files.savedAndroid': { one: 'Enregistré dans Téléchargements : {name}', other: '{count} fichiers enregistrés dans Téléchargements' }, + 'files.savedIos': { one: 'Enregistré dans Fichiers › SkyContour : {name}', other: '{count} fichiers enregistrés dans Fichiers › SkyContour' }, + 'files.shared': 'Partagé', + 'files.shareCancelled': 'Partage annulé', + 'files.shareUnsupported': 'Ce navigateur ne peut pas partager de fichiers, ils ont donc été téléchargés.', + + 'settings.title': 'Réglages', + 'settings.camera': 'Caméra', + 'settings.fov': 'Champ de vision', + 'settings.fovValue': '{fov}° sur la largeur de l’image', + 'settings.fovAssumed': 'Non calibré : environ {fov}° supposés', + 'settings.narrower': 'Plus étroit', + 'settings.wider': 'Plus large', + 'settings.calibrate': 'Calibrer avec la caméra', + 'settings.reset': 'Réinitialiser', + 'settings.fovHint': 'Le champ de vision place chaque photo dans le panorama. Calibrez une fois par téléphone : tournez lentement pendant que l’app compare deux vues qui se chevauchent.', + 'settings.author': 'Auteur dans les fichiers Stellarium', + 'settings.authorPlaceholder': 'Votre nom', + 'settings.language': 'Langue', + 'settings.systemLanguage': 'Langue du système ({name})', + 'settings.about': '{app} · horizons pour NINA et Stellarium', + + 'calib.title': 'Champ de vision', + 'calib.intro': 'Visez des détails lointains (arbres, toits), touchez Démarrer et tournez lentement sur le côté.', + 'calib.turn': 'Tournez lentement le téléphone sur le côté ⟷', + 'calib.turnAuto': 'Tournez lentement le téléphone sur le côté ⟷ (s’arrête tout seul)', + 'calib.newRef': 'Nouvelle référence prise : continuez à tourner lentement ⟷', + 'calib.noMatch': 'Pas de correspondance : tournez plus lentement et visez des détails lointains', + 'calib.almost': 'Presque fini : les valeurs varient encore, continuez à tourner lentement', + 'calib.measuring': 'Mesure… continuez à tourner lentement', + 'calib.waiting': 'En attente de la caméra et de la boussole…', + 'calib.done': 'Terminé : champ de vision de {fov}° enregistré.', + 'calib.doneButton': 'Terminé', + 'calib.restart': 'Recommencer la mesure', + 'calib.start': 'Démarrer', +} diff --git a/wasm/frontend/src/i18n/locales/hu.js b/wasm/frontend/src/i18n/locales/hu.js new file mode 100644 index 0000000..d48abd6 --- /dev/null +++ b/wasm/frontend/src/i18n/locales/hu.js @@ -0,0 +1,189 @@ +// Magyar +export default { + 'tab.sites': 'Helyszínek', + 'tab.new': 'Új felmérés', + 'tab.settings': 'Beállítások', + + 'compass.n': 'É', + 'compass.e': 'K', + 'compass.s': 'D', + 'compass.w': 'Ny', + + 'common.back': 'Vissza', + 'common.startCamera': 'Kamera indítása', + 'common.startingCamera': 'Kamera indítása…', + 'common.noLocation': 'Nincs helyadat', + + 'app.engineError': 'Nem sikerült betölteni a motort: {error}', + + 'welcome.tagline': 'Rajzold körbe a fákat és háztetőket a távcsöved körül', + 'welcome.formats': 'NINA .HRZ · STELLARIUM TÁJKÉP', + 'welcome.start': 'Kezdjük', + 'welcome.sceneLabel': 'Éjszakai kert házzal, fákkal és távcsővel a csillagos ég alatt; szaggatott borostyánszínű vonal követi a horizontot a háztetők és fák fölött', + + 'sites.subtitle': 'Mesterséges horizontok a NINA-hoz és a Stellariumhoz', + 'sites.settings': 'Beállítások', + 'sites.count': 'Helyszínek · {count}', + 'sites.emptyTitle': 'Még nincs helyszín', + 'sites.emptyHint': 'Állj oda, ahol a távcsöved áll, és indíts egy felmérést.', + 'sites.emptyHintApp': 'Koppints lent az „{tab}” fülre, vagy importálj egy NINA .hrz fájlt a fenti gombbal.', + 'sites.newSurvey': 'Új horizontfelmérés', + 'sites.import': 'Meglévő .hrz importálása', + 'sites.importError': 'Nem sikerült beolvasni: {file}: {error}', + 'sites.inProgress': 'Folyamatban', + 'sites.noHorizon': 'Még nincs horizont', + 'sites.covered': '360°-ból {deg}° felvéve', + 'sites.continue': 'Felmérés folytatása', + 'sites.imported': 'Importált .hrz', + 'sites.framesFull': { one: '{count} kép · teljes 360°', other: '{count} kép · teljes 360°' }, + 'sites.framesPartial': { one: '{count} kép · {deg}° felvéve', other: '{count} kép · {deg}° felvéve' }, + 'sites.defaultName': '{n}. helyszín', + 'sites.importedName': 'Importált horizont', + + 'setup.title': 'Új felmérés', + 'setup.siteName': 'Helyszín neve', + 'setup.locating': 'Hely meghatározása…', + 'setup.locationHint': 'Bekerül a Stellarium tájképbe', + 'setup.altitudeUnknown': 'Ismeretlen magasság', + 'setup.elevation': '{m} m', + 'setup.gps': 'GPS ±{m} m', + 'setup.refresh': 'Frissítés', + 'setup.noGeo': 'Ebben a böngészőben nincs helymeghatározás', + 'setup.geoUnavailable': 'A hely nem érhető el', + 'setup.northTitle': 'Észak az iránytűből', + 'setup.northHint': 'A deklinációt még nem számolja az app: az északot a Review képernyőn az eltolással igazítsd', + 'setup.howTo': 'Így készül a felvétel', + 'setup.skyNotNeeded': 'az ég nem kell', + 'setup.illustration': 'Fordulj körbe egy helyben, a telefont függőlegesen tartva; csak a horizont körüli sáv kerül a képekre', + 'setup.step1': 'Állj oda, ahol a távcső áll.', + 'setup.step2': 'Tartsd a telefont függőlegesen, kicsit a horizont fölé döntve.', + 'setup.step3': 'Fordulj körbe lassan egyszer. A képek maguktól készülnek.', + 'setup.start': 'Felvétel indítása', + 'setup.sensorsError': 'A mozgásérzékelők nem érhetők el: {error}', + 'setup.cameraError': 'Kamera: {error}', + + 'capture.openError': 'Nem sikerült megnyitni a felmérést: {error}', + 'capture.saveError': 'Nem sikerült menteni: {error}', + 'capture.close': 'Felmérés bezárása', + 'capture.undo': 'Utolsó kép újra', + 'capture.frameOf': '{n}. kép / {total}', + 'capture.allFrames': 'mind a {count} kép kész', + 'capture.progress': 'A panoráma haladása 360 fokban', + 'capture.heading': 'IRÁNY', + 'capture.tilt': 'DŐLÉS', + 'capture.covers': 'LEFEDÉS', + 'capture.autoOn': 'Auto be', + 'capture.autoOff': 'Auto ki', + 'capture.shutter': 'Kép készítése', + 'capture.finish': 'Kész', + 'capture.topTouch': 'Az akadály eléri a kép tetejét itt: {az}°', + 'capture.addHigher': 'Magasabb kép', + 'capture.hint.compass': 'Várakozás az iránytűre…', + 'capture.hint.done': 'Minden kép kész. Koppints a Kész gombra.', + 'capture.hint.higher': 'Magasabb kép: célozd be a pontot', + 'capture.hint.turnRight': 'Fordulj jobbra, amíg a pont a körbe nem ér', + 'capture.hint.turnLeft': 'Fordulj balra, amíg a pont a körbe nem ér', + 'capture.hint.manual': 'Célozd be a pontot, majd nyomd meg az exponálógombot', + 'capture.hint.tiltUp': 'Döntsd kicsit feljebb a telefont', + 'capture.hint.tiltDown': 'Döntsd kicsit lejjebb a telefont', + 'capture.hint.hold': 'Tartsd mozdulatlanul…', + 'capture.hint.tap': 'Nyomd meg az exponálógombot', + 'capture.err.noHeading': 'Még nincs iránytűadat', + 'capture.err.cameraNotReady': 'A kamera még nem kész', + 'capture.err.encode': 'Nem sikerült elkészíteni a panorámát', + + 'camera.err.https': 'A kamerához HTTPS kell (vagy localhost).', + 'camera.err.noApi': 'Ez a böngésző nem fér hozzá a kamerához.', + 'camera.err.noPicture': 'A kamera elindult, de nem küld képet.', + + 'review.title': 'Horizont áttekintése', + 'review.imported': '.hrz fájlból importálva', + 'review.stitchedFull': { one: '{count} kép összefűzve · teljes 360°', other: '{count} kép összefűzve · teljes 360°' }, + 'review.stitchedPartial': { one: '{count} kép összefűzve · 360°-ból {deg}°', other: '{count} kép összefűzve · 360°-ból {deg}°' }, + 'review.delete': 'Helyszín törlése', + 'review.deleteConfirm': 'Törlöd?', + 'review.tabNina': 'NINA horizont', + 'review.tabPano': 'Panoráma', + 'review.detecting': 'Az ég határának felismerése…', + 'review.noHorizon': 'Még nincs horizont: előbb készíts néhány képet.', + 'review.legendEdge': 'Felismert éghatár', + 'review.legendHrz': 'A .hrz-be kerül', + 'review.chartLabel': 'Horizontprofil: az akadályok magassága azimut szerint, szaggatottan a biztonsági ráhagyással', + 'review.margin': 'Biztonsági ráhagyás', + 'review.marginHint': 'A NINA célpontjait távol tartja a fák csúcsától és az iránytű hibájától', + 'review.toolAuto': 'Automatikus', + 'review.toolSky': 'Ég festése', + 'review.toolGround': 'Talaj festése', + 'review.edits': { one: '{count} javítás', other: '{count} javítás' }, + 'review.undoEdit': 'Utolsó visszavonása', + 'review.clearEdits': 'Vissza az automatikushoz', + 'review.transparentSky': 'Átlátszó ég a Stellariumban', + 'review.dragHint': 'Húzd a körbenézéshez', + 'review.paintHint': 'Fess az ujjaddal', + 'review.zoomLabel': 'Nagyított panoráma: a kockás rész az átlátszó ég, a vonal a felismert határ', + 'review.overviewLabel': 'A teljes 360 fokos panoráma, a nagyított rész kijelölve', + 'review.north': 'Észak-eltolás', + 'review.northHint': 'A .hrz-re és a panorámára is vonatkozik', + 'review.rotateLeft': 'Forgatás 0,5 fokkal balra', + 'review.rotateRight': 'Forgatás 0,5 fokkal jobbra', + 'review.export': 'Exportálás', + + 'export.title': 'Exportálás', + 'export.back': 'Vissza az áttekintéshez', + 'export.summary': '{name} · ráhagyás {margin}° · észak-eltolás {north}°', + 'export.ninaTitle': 'NINA egyéni horizont', + 'export.ninaSub': 'Éghatár + biztonsági ráhagyás azimut/magasság párokként, a célpontok magassági korlátjához', + 'export.panoTitle': 'Stellarium panoráma', + 'export.panoSub': 'Gömbi tájkép: 360°-os fotósáv átlátszó éggel, 8192 × 2048 PNG', + 'export.polyTitle': 'Stellarium, csak körvonal', + 'export.polySub': 'Poligon tájkép: csak a horizontvonal, fotó nélkül', + 'export.panoUnavailable': 'Fotós felmérés kell hozzá (importált horizontnál nem érhető el)', + 'export.panoGaps': 'Nincs mind a 360° lefényképezve: a hiányok sötét kitöltést kapnak', + 'export.preview': 'Előnézet', + 'export.loading': 'Betöltés…', + 'export.lines': { one: '{count} sor · azimut magasság, {margin}° ráhagyás', other: '{count} sor · azimut magasság, {margin}° ráhagyás' }, + 'export.help': 'NINA: Options › General › Astrometry › Custom Horizon. Stellarium: a .zip telepítése: Égbolt és nézet beállításai › Tájkép › Tájképek hozzáadása/eltávolítása.', + 'export.rendering': 'Panoráma készítése…', + 'export.preparing': 'Előkészítés…', + 'export.sharing': 'Megosztás…', + 'export.saving': 'Mentés…', + 'export.save': 'Mentés', + 'export.share': { one: '{count} fájl megosztása', other: '{count} fájl megosztása' }, + + 'files.downloaded': { one: 'Letöltve: {name}', other: '{count} fájl letöltve' }, + 'files.savedAndroid': { one: 'Mentve a Letöltésekbe: {name}', other: '{count} fájl mentve a Letöltésekbe' }, + 'files.savedIos': { one: 'Mentve: Fájlok › SkyContour: {name}', other: '{count} fájl mentve: Fájlok › SkyContour' }, + 'files.shared': 'Megosztva', + 'files.shareCancelled': 'Megosztás megszakítva', + 'files.shareUnsupported': 'Ez a böngésző nem tud fájlt megosztani, ezért letöltöttük őket.', + + 'settings.title': 'Beállítások', + 'settings.camera': 'Kamera', + 'settings.fov': 'Látószög', + 'settings.fovValue': '{fov}° a kép szélességében', + 'settings.fovAssumed': 'Nincs kalibrálva: kb. {fov}° a feltételezett érték', + 'settings.narrower': 'Szűkebb', + 'settings.wider': 'Szélesebb', + 'settings.calibrate': 'Kalibrálás a kamerával', + 'settings.reset': 'Alaphelyzet', + 'settings.fovHint': 'A látószög alapján kerül minden fotó a helyére a panorámán. Telefononként egyszer kalibráld: fordulj lassan, közben az app összehasonlít két átfedő képet.', + 'settings.author': 'Szerző a Stellarium-fájlokban', + 'settings.authorPlaceholder': 'A neved', + 'settings.language': 'Nyelv', + 'settings.systemLanguage': 'Rendszer nyelve ({name})', + 'settings.about': '{app} · horizontok a NINA-hoz és a Stellariumhoz', + + 'calib.title': 'Látószög', + 'calib.intro': 'Célozz meg távoli részleteket (fák, tetők), koppints az Indítás gombra, és fordulj lassan oldalra.', + 'calib.turn': 'Fordítsd lassan oldalra a telefont ⟷', + 'calib.turnAuto': 'Fordítsd lassan oldalra a telefont ⟷ (magától befejeződik)', + 'calib.newRef': 'Új referenciakép: fordulj tovább lassan ⟷', + 'calib.noMatch': 'Nincs egyezés: fordulj lassabban, és célozz távoli részletekre', + 'calib.almost': 'Mindjárt kész: az értékek még ingadoznak, fordulj tovább lassan', + 'calib.measuring': 'Mérés… fordulj tovább lassan', + 'calib.waiting': 'Várakozás a kamerára és az iránytűre…', + 'calib.done': 'Kész: {fov}° látószög elmentve.', + 'calib.doneButton': 'Kész', + 'calib.restart': 'Mérés újrakezdése', + 'calib.start': 'Indítás', +} diff --git a/wasm/frontend/src/i18n/locales/it.js b/wasm/frontend/src/i18n/locales/it.js new file mode 100644 index 0000000..892ea10 --- /dev/null +++ b/wasm/frontend/src/i18n/locales/it.js @@ -0,0 +1,189 @@ +// Italiano +export default { + 'tab.sites': 'Luoghi', + 'tab.new': 'Nuovo rilievo', + 'tab.settings': 'Impostazioni', + + 'compass.n': 'N', + 'compass.e': 'E', + 'compass.s': 'S', + 'compass.w': 'O', + + 'common.back': 'Indietro', + 'common.startCamera': 'Avvia fotocamera', + 'common.startingCamera': 'Avvio della fotocamera…', + 'common.noLocation': 'Nessuna posizione', + + 'app.engineError': 'Impossibile caricare il motore: {error}', + + 'welcome.tagline': 'Traccia gli alberi e i tetti intorno al tuo telescopio', + 'welcome.formats': 'NINA .HRZ · PAESAGGIO STELLARIUM', + 'welcome.start': 'Inizia', + 'welcome.sceneLabel': 'Giardino notturno con una casa, alberi e un telescopio sotto un cielo stellato; una linea ambra tratteggiata segue l’orizzonte sopra i tetti e le chiome degli alberi', + + 'sites.subtitle': 'Orizzonti artificiali per NINA e Stellarium', + 'sites.settings': 'Impostazioni', + 'sites.count': 'Luoghi · {count}', + 'sites.emptyTitle': 'Ancora nessun luogo', + 'sites.emptyHint': 'Mettiti dove si trova il tuo telescopio e avvia un rilievo.', + 'sites.emptyHintApp': 'Tocca «{tab}» in basso oppure importa un .hrz di NINA con il pulsante in alto.', + 'sites.newSurvey': 'Nuovo rilievo dell’orizzonte', + 'sites.import': 'Importa un .hrz esistente', + 'sites.importError': 'Impossibile leggere {file}: {error}', + 'sites.inProgress': 'In corso', + 'sites.noHorizon': 'Ancora nessun orizzonte', + 'sites.covered': '{deg}° di 360° coperti', + 'sites.continue': 'Continua il rilievo', + 'sites.imported': '.hrz importato', + 'sites.framesFull': { one: '{count} foto · 360° completi', other: '{count} foto · 360° completi' }, + 'sites.framesPartial': { one: '{count} foto · {deg}° coperti', other: '{count} foto · {deg}° coperti' }, + 'sites.defaultName': 'Luogo {n}', + 'sites.importedName': 'Orizzonte importato', + + 'setup.title': 'Nuovo rilievo', + 'setup.siteName': 'Nome del luogo', + 'setup.locating': 'Ricerca della posizione…', + 'setup.locationHint': 'Viene scritta nel paesaggio di Stellarium', + 'setup.altitudeUnknown': 'Altitudine sconosciuta', + 'setup.elevation': '{m} m', + 'setup.gps': 'GPS ±{m} m', + 'setup.refresh': 'Aggiorna', + 'setup.noGeo': 'Questo browser non ha il servizio di localizzazione', + 'setup.geoUnavailable': 'Posizione non disponibile', + 'setup.northTitle': 'Nord dalla bussola', + 'setup.northHint': 'La declinazione non è ancora applicata: correggi il nord con lo scostamento nella revisione', + 'setup.howTo': 'Come riprendere', + 'setup.skyNotNeeded': 'il cielo non serve', + 'setup.illustration': 'Fai un giro su te stesso tenendo il telefono in verticale; viene fotografata solo una fascia intorno all’orizzonte', + 'setup.step1': 'Mettiti dove si trova il telescopio.', + 'setup.step2': 'Tieni il telefono in verticale, leggermente inclinato sopra l’orizzonte.', + 'setup.step3': 'Fai lentamente un giro completo. Le foto vengono scattate da sole.', + 'setup.start': 'Avvia la ripresa', + 'setup.sensorsError': 'Sensori di movimento non disponibili: {error}', + 'setup.cameraError': 'Fotocamera: {error}', + + 'capture.openError': 'Impossibile aprire il rilievo: {error}', + 'capture.saveError': 'Salvataggio non riuscito: {error}', + 'capture.close': 'Chiudi il rilievo', + 'capture.undo': 'Ripeti l’ultima foto', + 'capture.frameOf': 'foto {n} di {total}', + 'capture.allFrames': 'tutte le {count} foto', + 'capture.progress': 'Avanzamento del panorama su 360 gradi', + 'capture.heading': 'DIREZIONE', + 'capture.tilt': 'INCLINAZIONE', + 'capture.covers': 'COPRE', + 'capture.autoOn': 'Auto sì', + 'capture.autoOff': 'Auto no', + 'capture.shutter': 'Scatta', + 'capture.finish': 'Fine', + 'capture.topTouch': 'Un ostacolo tocca il bordo superiore a {az}°', + 'capture.addHigher': 'Foto più alta', + 'capture.hint.compass': 'In attesa della bussola…', + 'capture.hint.done': 'Tutte le foto scattate. Tocca Fine.', + 'capture.hint.higher': 'Foto più alta: allinea il punto', + 'capture.hint.turnRight': 'Girati a destra finché il punto è nel cerchio', + 'capture.hint.turnLeft': 'Girati a sinistra finché il punto è nel cerchio', + 'capture.hint.manual': 'Allinea il punto, poi tocca il pulsante di scatto', + 'capture.hint.tiltUp': 'Inclina il telefono un po’ verso l’alto', + 'capture.hint.tiltDown': 'Inclina il telefono un po’ verso il basso', + 'capture.hint.hold': 'Tieni fermo…', + 'capture.hint.tap': 'Tocca il pulsante di scatto', + 'capture.err.noHeading': 'Ancora nessuna direzione dalla bussola', + 'capture.err.cameraNotReady': 'Fotocamera non pronta', + 'capture.err.encode': 'Impossibile creare il panorama', + + 'camera.err.https': 'La fotocamera richiede HTTPS (o localhost).', + 'camera.err.noApi': 'Questo browser non ha accesso alla fotocamera.', + 'camera.err.noPicture': 'La fotocamera è avviata ma non invia immagini.', + + 'review.title': 'Rivedi l’orizzonte', + 'review.imported': 'Importato da .hrz', + 'review.stitchedFull': { one: '{count} foto unita · 360° completi', other: '{count} foto unite · 360° completi' }, + 'review.stitchedPartial': { one: '{count} foto unita · {deg}° di 360°', other: '{count} foto unite · {deg}° di 360°' }, + 'review.delete': 'Elimina il luogo', + 'review.deleteConfirm': 'Eliminare?', + 'review.tabNina': 'Orizzonte NINA', + 'review.tabPano': 'Panorama', + 'review.detecting': 'Rilevamento del bordo del cielo…', + 'review.noHorizon': 'Ancora nessun orizzonte: scatta prima qualche foto.', + 'review.legendEdge': 'Bordo del cielo rilevato', + 'review.legendHrz': 'Scritto nel .hrz', + 'review.chartLabel': 'Profilo dell’orizzonte: altezza degli ostacoli per azimut, con il margine di sicurezza tratteggiato', + 'review.margin': 'Margine di sicurezza', + 'review.marginHint': 'Tiene i bersagli di NINA lontani dalle cime degli alberi e dagli errori della bussola', + 'review.toolAuto': 'Automatico', + 'review.toolSky': 'Dipingi cielo', + 'review.toolGround': 'Dipingi suolo', + 'review.edits': { one: '{count} correzione', other: '{count} correzioni' }, + 'review.undoEdit': 'Annulla l’ultima', + 'review.clearEdits': 'Torna all’automatico', + 'review.transparentSky': 'Cielo trasparente in Stellarium', + 'review.dragHint': 'Trascina per guardarti intorno', + 'review.paintHint': 'Dipingi con il dito', + 'review.zoomLabel': 'Panorama ingrandito: l’area a scacchi è cielo trasparente, la linea è il bordo rilevato', + 'review.overviewLabel': 'Panorama completo a 360 gradi con la parte ingrandita evidenziata', + 'review.north': 'Scostamento del nord', + 'review.northHint': 'Vale per il .hrz e il panorama', + 'review.rotateLeft': 'Ruota di 0,5 gradi a sinistra', + 'review.rotateRight': 'Ruota di 0,5 gradi a destra', + 'review.export': 'Esporta', + + 'export.title': 'Esporta', + 'export.back': 'Torna alla revisione', + 'export.summary': '{name} · margine {margin}° · scostamento del nord {north}°', + 'export.ninaTitle': 'Orizzonte personalizzato NINA', + 'export.ninaSub': 'Bordo del cielo + margine di sicurezza come coppie azimut/altezza, per i limiti di altezza dei bersagli', + 'export.panoTitle': 'Panorama Stellarium', + 'export.panoSub': 'Paesaggio sferico: fascia fotografica a 360° con cielo trasparente, PNG 8192 × 2048', + 'export.polyTitle': 'Stellarium, solo contorno', + 'export.polySub': 'Paesaggio poligonale: solo la linea dell’orizzonte, senza foto', + 'export.panoUnavailable': 'Richiede un rilievo fotografico (non disponibile per gli orizzonti importati)', + 'export.panoGaps': 'Non tutti i 360° sono fotografati: i vuoti vengono riempiti di scuro', + 'export.preview': 'Anteprima', + 'export.loading': 'Caricamento…', + 'export.lines': { one: '{count} riga · azimut altezza, margine {margin}°', other: '{count} righe · azimut altezza, margine {margin}°' }, + 'export.help': 'NINA: Options › General › Astrometry › Custom Horizon. Stellarium: installa lo .zip in Opzioni cielo e visualizzazione › Paesaggio › Aggiungi/rimuovi paesaggi.', + 'export.rendering': 'Creazione del panorama…', + 'export.preparing': 'Preparazione…', + 'export.sharing': 'Condivisione…', + 'export.saving': 'Salvataggio…', + 'export.save': 'Salva', + 'export.share': { one: 'Condividi {count} file', other: 'Condividi {count} file' }, + + 'files.downloaded': { one: 'Scaricato: {name}', other: '{count} file scaricati' }, + 'files.savedAndroid': { one: 'Salvato in Download: {name}', other: '{count} file salvati in Download' }, + 'files.savedIos': { one: 'Salvato in File › SkyContour: {name}', other: '{count} file salvati in File › SkyContour' }, + 'files.shared': 'Condiviso', + 'files.shareCancelled': 'Condivisione annullata', + 'files.shareUnsupported': 'Questo browser non può condividere file, quindi sono stati scaricati.', + + 'settings.title': 'Impostazioni', + 'settings.camera': 'Fotocamera', + 'settings.fov': 'Campo visivo', + 'settings.fovValue': '{fov}° sulla larghezza dell’immagine', + 'settings.fovAssumed': 'Non calibrato: si assumono circa {fov}°', + 'settings.narrower': 'Più stretto', + 'settings.wider': 'Più ampio', + 'settings.calibrate': 'Calibra con la fotocamera', + 'settings.reset': 'Ripristina', + 'settings.fovHint': 'Il campo visivo colloca ogni foto nel panorama. Calibra una volta per telefono: girati lentamente mentre l’app confronta due viste sovrapposte.', + 'settings.author': 'Autore nei file di Stellarium', + 'settings.authorPlaceholder': 'Il tuo nome', + 'settings.language': 'Lingua', + 'settings.systemLanguage': 'Lingua di sistema ({name})', + 'settings.about': '{app} · orizzonti per NINA e Stellarium', + + 'calib.title': 'Campo visivo', + 'calib.intro': 'Inquadra dettagli lontani (alberi, tetti), tocca Avvia e girati lentamente di lato.', + 'calib.turn': 'Gira lentamente il telefono di lato ⟷', + 'calib.turnAuto': 'Gira lentamente il telefono di lato ⟷ (termina da solo)', + 'calib.newRef': 'Nuovo riferimento acquisito: continua a girare lentamente ⟷', + 'calib.noMatch': 'Nessuna corrispondenza: gira più lentamente e inquadra dettagli lontani', + 'calib.almost': 'Quasi fatto: i valori variano ancora, continua a girare lentamente', + 'calib.measuring': 'Misurazione… continua a girare lentamente', + 'calib.waiting': 'In attesa di fotocamera e bussola…', + 'calib.done': 'Fatto: campo visivo di {fov}° salvato.', + 'calib.doneButton': 'Fatto', + 'calib.restart': 'Ripeti la misurazione', + 'calib.start': 'Avvia', +} diff --git a/wasm/frontend/src/i18n/locales/pl.js b/wasm/frontend/src/i18n/locales/pl.js new file mode 100644 index 0000000..0f79fc6 --- /dev/null +++ b/wasm/frontend/src/i18n/locales/pl.js @@ -0,0 +1,210 @@ +// Polski (plural categories: one = 1, few = 2–4, 22–24…, many = 0, 5–21…, other = fractions) +export default { + 'tab.sites': 'Miejsca', + 'tab.new': 'Nowy pomiar', + 'tab.settings': 'Ustawienia', + + 'compass.n': 'Pn', + 'compass.e': 'Wsch', + 'compass.s': 'Pd', + 'compass.w': 'Zach', + + 'common.back': 'Wstecz', + 'common.startCamera': 'Uruchom aparat', + 'common.startingCamera': 'Uruchamianie aparatu…', + 'common.noLocation': 'Brak lokalizacji', + + 'app.engineError': 'Nie udało się wczytać silnika: {error}', + + 'welcome.tagline': 'Obrysuj drzewa i dachy wokół swojego teleskopu', + 'welcome.formats': 'NINA .HRZ · KRAJOBRAZ STELLARIUM', + 'welcome.start': 'Zaczynamy', + 'welcome.sceneLabel': 'Nocny ogród z domem, drzewami i teleskopem pod rozgwieżdżonym niebem; przerywana bursztynowa linia biegnie wzdłuż horyzontu nad dachami i koronami drzew', + + 'sites.subtitle': 'Sztuczne horyzonty dla NINA i Stellarium', + 'sites.settings': 'Ustawienia', + 'sites.count': 'Miejsca · {count}', + 'sites.emptyTitle': 'Brak miejsc', + 'sites.emptyHint': 'Stań tam, gdzie stoi twój teleskop, i rozpocznij pomiar.', + 'sites.emptyHintApp': 'Dotknij „{tab}” na dole albo zaimportuj plik .hrz z NINA przyciskiem u góry.', + 'sites.newSurvey': 'Nowy pomiar horyzontu', + 'sites.import': 'Importuj istniejący .hrz', + 'sites.importError': 'Nie udało się odczytać {file}: {error}', + 'sites.inProgress': 'W toku', + 'sites.noHorizon': 'Brak horyzontu', + 'sites.covered': 'Pokryto {deg}° z 360°', + 'sites.continue': 'Kontynuuj pomiar', + 'sites.imported': 'Zaimportowany .hrz', + 'sites.framesFull': { + one: '{count} zdjęcie · pełne 360°', few: '{count} zdjęcia · pełne 360°', + many: '{count} zdjęć · pełne 360°', other: '{count} zdjęcia · pełne 360°', + }, + 'sites.framesPartial': { + one: '{count} zdjęcie · pokryto {deg}°', few: '{count} zdjęcia · pokryto {deg}°', + many: '{count} zdjęć · pokryto {deg}°', other: '{count} zdjęcia · pokryto {deg}°', + }, + 'sites.defaultName': 'Miejsce {n}', + 'sites.importedName': 'Zaimportowany horyzont', + + 'setup.title': 'Nowy pomiar', + 'setup.siteName': 'Nazwa miejsca', + 'setup.locating': 'Ustalanie lokalizacji…', + 'setup.locationHint': 'Zapisywana w krajobrazie Stellarium', + 'setup.altitudeUnknown': 'Nieznana wysokość', + 'setup.elevation': '{m} m', + 'setup.gps': 'GPS ±{m} m', + 'setup.refresh': 'Odśwież', + 'setup.noGeo': 'Ta przeglądarka nie ma usługi lokalizacji', + 'setup.geoUnavailable': 'Lokalizacja niedostępna', + 'setup.northTitle': 'Północ z kompasu', + 'setup.northHint': 'Deklinacja nie jest jeszcze uwzględniana: popraw północ przesunięciem w przeglądzie', + 'setup.howTo': 'Jak wykonać pomiar', + 'setup.skyNotNeeded': 'niebo zbędne', + 'setup.illustration': 'Obróć się raz w miejscu, trzymając telefon pionowo; fotografowany jest tylko pas wokół horyzontu', + 'setup.step1': 'Stań tam, gdzie stoi teleskop.', + 'setup.step2': 'Trzymaj telefon pionowo, lekko pochylony nad horyzont.', + 'setup.step3': 'Powoli obróć się raz dookoła. Zdjęcia wykonują się same.', + 'setup.start': 'Rozpocznij nagrywanie', + 'setup.sensorsError': 'Czujniki ruchu są niedostępne: {error}', + 'setup.cameraError': 'Aparat: {error}', + + 'capture.openError': 'Nie udało się otworzyć pomiaru: {error}', + 'capture.saveError': 'Nie udało się zapisać: {error}', + 'capture.close': 'Zamknij pomiar', + 'capture.undo': 'Powtórz ostatnie zdjęcie', + 'capture.frameOf': 'zdjęcie {n} z {total}', + 'capture.allFrames': 'wszystkie zdjęcia ({count})', + 'capture.progress': 'Postęp panoramy na 360 stopniach', + 'capture.heading': 'KIERUNEK', + 'capture.tilt': 'POCHYLENIE', + 'capture.covers': 'ZAKRES', + 'capture.autoOn': 'Auto wł.', + 'capture.autoOff': 'Auto wył.', + 'capture.shutter': 'Zrób zdjęcie', + 'capture.finish': 'Gotowe', + 'capture.topTouch': 'Przeszkoda sięga górnej krawędzi kadru przy {az}°', + 'capture.addHigher': 'Wyższe zdjęcie', + 'capture.hint.compass': 'Czekam na kompas…', + 'capture.hint.done': 'Wszystkie zdjęcia gotowe. Dotknij Gotowe.', + 'capture.hint.higher': 'Wyższe zdjęcie: wyceluj w punkt', + 'capture.hint.turnRight': 'Obracaj się w prawo, aż punkt znajdzie się w okręgu', + 'capture.hint.turnLeft': 'Obracaj się w lewo, aż punkt znajdzie się w okręgu', + 'capture.hint.manual': 'Wyceluj w punkt, a potem dotknij migawki', + 'capture.hint.tiltUp': 'Pochyl telefon trochę w górę', + 'capture.hint.tiltDown': 'Pochyl telefon trochę w dół', + 'capture.hint.hold': 'Nie ruszaj się…', + 'capture.hint.tap': 'Dotknij migawki', + 'capture.err.noHeading': 'Brak jeszcze kierunku z kompasu', + 'capture.err.cameraNotReady': 'Aparat nie jest gotowy', + 'capture.err.encode': 'Nie udało się utworzyć panoramy', + + 'camera.err.https': 'Aparat wymaga HTTPS (lub localhost).', + 'camera.err.noApi': 'Ta przeglądarka nie ma dostępu do aparatu.', + 'camera.err.noPicture': 'Aparat działa, ale nie przesyła obrazu.', + + 'review.title': 'Przegląd horyzontu', + 'review.imported': 'Zaimportowano z .hrz', + 'review.stitchedFull': { + one: '{count} zdjęcie połączone · pełne 360°', few: '{count} zdjęcia połączone · pełne 360°', + many: '{count} zdjęć połączonych · pełne 360°', other: '{count} zdjęcia połączone · pełne 360°', + }, + 'review.stitchedPartial': { + one: '{count} zdjęcie połączone · {deg}° z 360°', few: '{count} zdjęcia połączone · {deg}° z 360°', + many: '{count} zdjęć połączonych · {deg}° z 360°', other: '{count} zdjęcia połączone · {deg}° z 360°', + }, + 'review.delete': 'Usuń miejsce', + 'review.deleteConfirm': 'Usunąć?', + 'review.tabNina': 'Horyzont NINA', + 'review.tabPano': 'Panorama', + 'review.detecting': 'Wykrywanie granicy nieba…', + 'review.noHorizon': 'Brak horyzontu: najpierw zrób kilka zdjęć.', + 'review.legendEdge': 'Wykryta granica nieba', + 'review.legendHrz': 'Zapisywane w .hrz', + 'review.chartLabel': 'Profil horyzontu: wysokość przeszkód według azymutu, margines bezpieczeństwa przerywaną linią', + 'review.margin': 'Margines bezpieczeństwa', + 'review.marginHint': 'Trzyma cele NINA z dala od wierzchołków drzew i błędów kompasu', + 'review.toolAuto': 'Automatycznie', + 'review.toolSky': 'Maluj niebo', + 'review.toolGround': 'Maluj grunt', + 'review.edits': { one: '{count} poprawka', few: '{count} poprawki', many: '{count} poprawek', other: '{count} poprawki' }, + 'review.undoEdit': 'Cofnij ostatnią', + 'review.clearEdits': 'Wróć do automatycznego', + 'review.transparentSky': 'Przezroczyste niebo w Stellarium', + 'review.dragHint': 'Przeciągnij, aby się rozejrzeć', + 'review.paintHint': 'Maluj palcem', + 'review.zoomLabel': 'Powiększona panorama: obszar w kratkę to przezroczyste niebo, linia to wykryta granica', + 'review.overviewLabel': 'Cała panorama 360 stopni z zaznaczoną powiększoną częścią', + 'review.north': 'Przesunięcie północy', + 'review.northHint': 'Dotyczy .hrz i panoramy', + 'review.rotateLeft': 'Obróć o 0,5 stopnia w lewo', + 'review.rotateRight': 'Obróć o 0,5 stopnia w prawo', + 'review.export': 'Eksportuj', + + 'export.title': 'Eksport', + 'export.back': 'Wróć do przeglądu', + 'export.summary': '{name} · margines {margin}° · przesunięcie północy {north}°', + 'export.ninaTitle': 'Własny horyzont NINA', + 'export.ninaSub': 'Granica nieba + margines bezpieczeństwa jako pary azymut/wysokość, do limitów wysokości celów', + 'export.panoTitle': 'Panorama Stellarium', + 'export.panoSub': 'Krajobraz sferyczny: pas zdjęć 360° z przezroczystym niebem, PNG 8192 × 2048', + 'export.polyTitle': 'Stellarium, tylko kontur', + 'export.polySub': 'Krajobraz wielokątny: tylko linia horyzontu, bez zdjęcia', + 'export.panoUnavailable': 'Wymaga pomiaru ze zdjęciami (niedostępne dla zaimportowanych horyzontów)', + 'export.panoGaps': 'Nie sfotografowano pełnych 360°: luki są wypełniane ciemnym kolorem', + 'export.preview': 'Podgląd', + 'export.loading': 'Wczytywanie…', + 'export.lines': { + one: '{count} wiersz · azymut wysokość, margines {margin}°', few: '{count} wiersze · azymut wysokość, margines {margin}°', + many: '{count} wierszy · azymut wysokość, margines {margin}°', other: '{count} wiersza · azymut wysokość, margines {margin}°', + }, + 'export.help': 'NINA: Options › General › Astrometry › Custom Horizon. Stellarium: zainstaluj .zip w Opcje nieba i widoku › Krajobraz › Dodaj/usuń krajobrazy.', + 'export.rendering': 'Tworzenie panoramy…', + 'export.preparing': 'Przygotowywanie…', + 'export.sharing': 'Udostępnianie…', + 'export.saving': 'Zapisywanie…', + 'export.save': 'Zapisz', + 'export.share': { one: 'Udostępnij {count} plik', few: 'Udostępnij {count} pliki', many: 'Udostępnij {count} plików', other: 'Udostępnij {count} pliku' }, + + 'files.downloaded': { one: 'Pobrano: {name}', few: 'Pobrano {count} pliki', many: 'Pobrano {count} plików', other: 'Pobrano {count} pliku' }, + 'files.savedAndroid': { + one: 'Zapisano w Pobranych: {name}', few: 'Zapisano {count} pliki w Pobranych', + many: 'Zapisano {count} plików w Pobranych', other: 'Zapisano {count} pliku w Pobranych', + }, + 'files.savedIos': { + one: 'Zapisano w Pliki › SkyContour: {name}', few: 'Zapisano {count} pliki w Pliki › SkyContour', + many: 'Zapisano {count} plików w Pliki › SkyContour', other: 'Zapisano {count} pliku w Pliki › SkyContour', + }, + 'files.shared': 'Udostępniono', + 'files.shareCancelled': 'Anulowano udostępnianie', + 'files.shareUnsupported': 'Ta przeglądarka nie potrafi udostępniać plików, więc zostały pobrane.', + + 'settings.title': 'Ustawienia', + 'settings.camera': 'Aparat', + 'settings.fov': 'Pole widzenia', + 'settings.fovValue': '{fov}° na szerokość kadru', + 'settings.fovAssumed': 'Nie skalibrowano: przyjęto około {fov}°', + 'settings.narrower': 'Węższe', + 'settings.wider': 'Szersze', + 'settings.calibrate': 'Kalibruj aparatem', + 'settings.reset': 'Resetuj', + 'settings.fovHint': 'Pole widzenia ustala położenie każdego zdjęcia w panoramie. Skalibruj raz dla każdego telefonu: obracaj się powoli, a aplikacja porówna dwa nakładające się widoki.', + 'settings.author': 'Autor w plikach Stellarium', + 'settings.authorPlaceholder': 'Twoje imię', + 'settings.language': 'Język', + 'settings.systemLanguage': 'Język systemu ({name})', + 'settings.about': '{app} · horyzonty dla NINA i Stellarium', + + 'calib.title': 'Pole widzenia', + 'calib.intro': 'Wyceluj w odległe szczegóły (drzewa, dachy), dotknij Start i powoli obracaj się w bok.', + 'calib.turn': 'Powoli obracaj telefon w bok ⟷', + 'calib.turnAuto': 'Powoli obracaj telefon w bok ⟷ (zakończy się samo)', + 'calib.newRef': 'Nowy punkt odniesienia: obracaj się dalej powoli ⟷', + 'calib.noMatch': 'Brak dopasowania: obracaj się wolniej i celuj w odległe szczegóły', + 'calib.almost': 'Prawie gotowe: wartości jeszcze się wahają, obracaj się dalej powoli', + 'calib.measuring': 'Pomiar… obracaj się dalej powoli', + 'calib.waiting': 'Czekam na aparat i kompas…', + 'calib.done': 'Gotowe: zapisano pole widzenia {fov}°.', + 'calib.doneButton': 'Gotowe', + 'calib.restart': 'Powtórz pomiar', + 'calib.start': 'Start', +} diff --git a/wasm/frontend/src/i18n/locales/sk.js b/wasm/frontend/src/i18n/locales/sk.js new file mode 100644 index 0000000..55a7561 --- /dev/null +++ b/wasm/frontend/src/i18n/locales/sk.js @@ -0,0 +1,210 @@ +// Slovenčina (plural categories: one = 1, few = 2–4, many = fractions, other = 0, 5+) +export default { + 'tab.sites': 'Miesta', + 'tab.new': 'Nové meranie', + 'tab.settings': 'Nastavenia', + + 'compass.n': 'S', + 'compass.e': 'V', + 'compass.s': 'J', + 'compass.w': 'Z', + + 'common.back': 'Späť', + 'common.startCamera': 'Spustiť kameru', + 'common.startingCamera': 'Spúšťa sa kamera…', + 'common.noLocation': 'Bez polohy', + + 'app.engineError': 'Nepodarilo sa načítať výpočtové jadro: {error}', + + 'welcome.tagline': 'Obkresli stromy a strechy okolo svojho ďalekohľadu', + 'welcome.formats': 'NINA .HRZ · KRAJINA STELLARIUM', + 'welcome.start': 'Začať', + 'welcome.sceneLabel': 'Nočná záhrada s domom, stromami a ďalekohľadom pod hviezdnou oblohou; prerušovaná jantárová čiara sleduje horizont nad strechami a korunami stromov', + + 'sites.subtitle': 'Umelé horizonty pre NINA a Stellarium', + 'sites.settings': 'Nastavenia', + 'sites.count': 'Miesta · {count}', + 'sites.emptyTitle': 'Zatiaľ žiadne miesta', + 'sites.emptyHint': 'Postav sa tam, kde stojí tvoj ďalekohľad, a začni meranie.', + 'sites.emptyHintApp': 'Ťukni dole na „{tab}“ alebo importuj súbor .hrz z NINA tlačidlom hore.', + 'sites.newSurvey': 'Nové meranie horizontu', + 'sites.import': 'Importovať existujúci .hrz', + 'sites.importError': 'Súbor {file} sa nepodarilo načítať: {error}', + 'sites.inProgress': 'Prebieha', + 'sites.noHorizon': 'Zatiaľ bez horizontu', + 'sites.covered': 'Pokrytých {deg}° z 360°', + 'sites.continue': 'Pokračovať v meraní', + 'sites.imported': 'Importovaný .hrz', + 'sites.framesFull': { + one: '{count} snímka · celých 360°', few: '{count} snímky · celých 360°', + many: '{count} snímky · celých 360°', other: '{count} snímok · celých 360°', + }, + 'sites.framesPartial': { + one: '{count} snímka · pokrytých {deg}°', few: '{count} snímky · pokrytých {deg}°', + many: '{count} snímky · pokrytých {deg}°', other: '{count} snímok · pokrytých {deg}°', + }, + 'sites.defaultName': 'Miesto {n}', + 'sites.importedName': 'Importovaný horizont', + + 'setup.title': 'Nové meranie', + 'setup.siteName': 'Názov miesta', + 'setup.locating': 'Zisťuje sa poloha…', + 'setup.locationHint': 'Zapíše sa do krajiny Stellarium', + 'setup.altitudeUnknown': 'Neznáma nadmorská výška', + 'setup.elevation': '{m} m', + 'setup.gps': 'GPS ±{m} m', + 'setup.refresh': 'Obnoviť', + 'setup.noGeo': 'Tento prehliadač nemá lokalizačnú službu', + 'setup.geoUnavailable': 'Poloha nie je dostupná', + 'setup.northTitle': 'Sever z kompasu', + 'setup.northHint': 'Deklinácia sa zatiaľ neuplatňuje: sever oprav posunom pri kontrole', + 'setup.howTo': 'Ako snímať', + 'setup.skyNotNeeded': 'obloha nie je potrebná', + 'setup.illustration': 'Raz sa otoč na mieste a drž telefón zvisle; fotí sa len pás okolo horizontu', + 'setup.step1': 'Postav sa tam, kde stojí ďalekohľad.', + 'setup.step2': 'Drž telefón zvisle, mierne naklonený nad horizont.', + 'setup.step3': 'Pomaly sa raz otoč dokola. Snímky sa robia samé.', + 'setup.start': 'Spustiť snímanie', + 'setup.sensorsError': 'Snímače pohybu nie sú dostupné: {error}', + 'setup.cameraError': 'Kamera: {error}', + + 'capture.openError': 'Meranie sa nepodarilo otvoriť: {error}', + 'capture.saveError': 'Nepodarilo sa uložiť: {error}', + 'capture.close': 'Zavrieť meranie', + 'capture.undo': 'Zopakovať poslednú snímku', + 'capture.frameOf': 'snímka {n} z {total}', + 'capture.allFrames': 'všetky snímky ({count})', + 'capture.progress': 'Priebeh panorámy v 360 stupňoch', + 'capture.heading': 'SMER', + 'capture.tilt': 'NÁKLON', + 'capture.covers': 'ROZSAH', + 'capture.autoOn': 'Auto zap.', + 'capture.autoOff': 'Auto vyp.', + 'capture.shutter': 'Odfotiť', + 'capture.finish': 'Hotovo', + 'capture.topTouch': 'Prekážka siaha po horný okraj snímky pri {az}°', + 'capture.addHigher': 'Vyššia snímka', + 'capture.hint.compass': 'Čaká sa na kompas…', + 'capture.hint.done': 'Všetky snímky sú hotové. Ťukni na Hotovo.', + 'capture.hint.higher': 'Vyššia snímka: zamier na bod', + 'capture.hint.turnRight': 'Otáčaj sa doprava, kým bod nebude v kruhu', + 'capture.hint.turnLeft': 'Otáčaj sa doľava, kým bod nebude v kruhu', + 'capture.hint.manual': 'Zamier na bod a potom ťukni na spúšť', + 'capture.hint.tiltUp': 'Nakloň telefón trochu nahor', + 'capture.hint.tiltDown': 'Nakloň telefón trochu nadol', + 'capture.hint.hold': 'Drž bez pohybu…', + 'capture.hint.tap': 'Ťukni na spúšť', + 'capture.err.noHeading': 'Kompas zatiaľ neudáva smer', + 'capture.err.cameraNotReady': 'Kamera nie je pripravená', + 'capture.err.encode': 'Panorámu sa nepodarilo vytvoriť', + + 'camera.err.https': 'Kamera potrebuje HTTPS (alebo localhost).', + 'camera.err.noApi': 'Tento prehliadač nemá prístup ku kamere.', + 'camera.err.noPicture': 'Kamera sa spustila, ale neposiela obraz.', + + 'review.title': 'Kontrola horizontu', + 'review.imported': 'Importované z .hrz', + 'review.stitchedFull': { + one: '{count} spojená snímka · celých 360°', few: '{count} spojené snímky · celých 360°', + many: '{count} spojenej snímky · celých 360°', other: '{count} spojených snímok · celých 360°', + }, + 'review.stitchedPartial': { + one: '{count} spojená snímka · {deg}° z 360°', few: '{count} spojené snímky · {deg}° z 360°', + many: '{count} spojenej snímky · {deg}° z 360°', other: '{count} spojených snímok · {deg}° z 360°', + }, + 'review.delete': 'Odstrániť miesto', + 'review.deleteConfirm': 'Odstrániť?', + 'review.tabNina': 'Horizont NINA', + 'review.tabPano': 'Panoráma', + 'review.detecting': 'Rozpoznáva sa okraj oblohy…', + 'review.noHorizon': 'Zatiaľ bez horizontu: najprv urob niekoľko snímok.', + 'review.legendEdge': 'Rozpoznaný okraj oblohy', + 'review.legendHrz': 'Zapisuje sa do .hrz', + 'review.chartLabel': 'Profil horizontu: výška prekážok podľa azimutu, bezpečnostná rezerva prerušovane', + 'review.margin': 'Bezpečnostná rezerva', + 'review.marginHint': 'Drží ciele NINA mimo vrcholov stromov a chýb kompasu', + 'review.toolAuto': 'Automaticky', + 'review.toolSky': 'Maľovať oblohu', + 'review.toolGround': 'Maľovať terén', + 'review.edits': { one: '{count} úprava', few: '{count} úpravy', many: '{count} úpravy', other: '{count} úprav' }, + 'review.undoEdit': 'Vrátiť poslednú', + 'review.clearEdits': 'Späť na automatiku', + 'review.transparentSky': 'Priehľadná obloha v Stellariu', + 'review.dragHint': 'Ťahaním sa rozhliadneš', + 'review.paintHint': 'Maľuj prstom', + 'review.zoomLabel': 'Zväčšená panoráma: kockovaná plocha je priehľadná obloha, čiara je rozpoznaný okraj', + 'review.overviewLabel': 'Celá 360-stupňová panoráma so zvýraznenou zväčšenou časťou', + 'review.north': 'Posun severu', + 'review.northHint': 'Platí pre .hrz aj panorámu', + 'review.rotateLeft': 'Otočiť o 0,5 stupňa doľava', + 'review.rotateRight': 'Otočiť o 0,5 stupňa doprava', + 'review.export': 'Exportovať', + + 'export.title': 'Export', + 'export.back': 'Späť na kontrolu', + 'export.summary': '{name} · rezerva {margin}° · posun severu {north}°', + 'export.ninaTitle': 'Vlastný horizont NINA', + 'export.ninaSub': 'Okraj oblohy + bezpečnostná rezerva ako dvojice azimut/výška, pre výškové limity cieľov', + 'export.panoTitle': 'Panoráma Stellarium', + 'export.panoSub': 'Sférická krajina: 360° pás fotiek s priehľadnou oblohou, PNG 8192 × 2048', + 'export.polyTitle': 'Stellarium, len obrys', + 'export.polySub': 'Polygónová krajina: len čiara horizontu, bez fotky', + 'export.panoUnavailable': 'Vyžaduje meranie s fotkami (pre importované horizonty nie je dostupné)', + 'export.panoGaps': 'Nie je nafotených všetkých 360°: medzery sa vyplnia tmavou', + 'export.preview': 'Náhľad', + 'export.loading': 'Načítava sa…', + 'export.lines': { + one: '{count} riadok · azimut výška, rezerva {margin}°', few: '{count} riadky · azimut výška, rezerva {margin}°', + many: '{count} riadka · azimut výška, rezerva {margin}°', other: '{count} riadkov · azimut výška, rezerva {margin}°', + }, + 'export.help': 'NINA: Options › General › Astrometry › Custom Horizon. Stellarium: .zip nainštaluj v Možnosti oblohy a zobrazenia › Krajina › Pridať/odstrániť krajiny.', + 'export.rendering': 'Vytvára sa panoráma…', + 'export.preparing': 'Pripravuje sa…', + 'export.sharing': 'Zdieľa sa…', + 'export.saving': 'Ukladá sa…', + 'export.save': 'Uložiť', + 'export.share': { one: 'Zdieľať {count} súbor', few: 'Zdieľať {count} súbory', many: 'Zdieľať {count} súboru', other: 'Zdieľať {count} súborov' }, + + 'files.downloaded': { one: 'Stiahnuté: {name}', few: 'Stiahnuté {count} súbory', many: 'Stiahnuté {count} súboru', other: 'Stiahnutých {count} súborov' }, + 'files.savedAndroid': { + one: 'Uložené do Stiahnutých: {name}', few: '{count} súbory uložené do Stiahnutých', + many: '{count} súboru uloženého do Stiahnutých', other: '{count} súborov uložených do Stiahnutých', + }, + 'files.savedIos': { + one: 'Uložené do Súbory › SkyContour: {name}', few: '{count} súbory uložené do Súbory › SkyContour', + many: '{count} súboru uloženého do Súbory › SkyContour', other: '{count} súborov uložených do Súbory › SkyContour', + }, + 'files.shared': 'Zdieľané', + 'files.shareCancelled': 'Zdieľanie zrušené', + 'files.shareUnsupported': 'Tento prehliadač nevie zdieľať súbory, preto sa stiahli.', + + 'settings.title': 'Nastavenia', + 'settings.camera': 'Kamera', + 'settings.fov': 'Zorné pole', + 'settings.fovValue': '{fov}° na šírku snímky', + 'settings.fovAssumed': 'Nekalibrované: predpokladá sa asi {fov}°', + 'settings.narrower': 'Užšie', + 'settings.wider': 'Širšie', + 'settings.calibrate': 'Kalibrovať kamerou', + 'settings.reset': 'Obnoviť predvolené', + 'settings.fovHint': 'Zorné pole určuje, kam sa každá fotka umiestni v panoráme. Kalibruj raz pre každý telefón: pomaly sa otáčaj, kým aplikácia porovná dva prekrývajúce sa pohľady.', + 'settings.author': 'Autor v súboroch Stellarium', + 'settings.authorPlaceholder': 'Tvoje meno', + 'settings.language': 'Jazyk', + 'settings.systemLanguage': 'Jazyk systému ({name})', + 'settings.about': '{app} · horizonty pre NINA a Stellarium', + + 'calib.title': 'Zorné pole', + 'calib.intro': 'Zamier na vzdialené detaily (stromy, strechy), ťukni na Spustiť a pomaly sa otáčaj do strany.', + 'calib.turn': 'Pomaly otáčaj telefón do strany ⟷', + 'calib.turnAuto': 'Pomaly otáčaj telefón do strany ⟷ (skončí samo)', + 'calib.newRef': 'Nová referencia: otáčaj sa ďalej pomaly ⟷', + 'calib.noMatch': 'Bez zhody: otáčaj sa pomalšie a mier na vzdialené detaily', + 'calib.almost': 'Takmer hotovo: hodnoty ešte kolíšu, otáčaj sa ďalej pomaly', + 'calib.measuring': 'Meria sa… otáčaj sa ďalej pomaly', + 'calib.waiting': 'Čaká sa na kameru a kompas…', + 'calib.done': 'Hotovo: zorné pole {fov}° uložené.', + 'calib.doneButton': 'Hotovo', + 'calib.restart': 'Zopakovať meranie', + 'calib.start': 'Spustiť', +} diff --git a/wasm/frontend/src/lib/app.js b/wasm/frontend/src/lib/app.js new file mode 100644 index 0000000..f617cf5 --- /dev/null +++ b/wasm/frontend/src/lib/app.js @@ -0,0 +1,2 @@ +// App name: shown in the UI and written into exported files. +export const APP_NAME = 'SkyContour' diff --git a/wasm/frontend/src/lib/camera.js b/wasm/frontend/src/lib/camera.js new file mode 100644 index 0000000..e378a9d --- /dev/null +++ b/wasm/frontend/src/lib/camera.js @@ -0,0 +1,140 @@ +// Camera stream + orientation sensors (both via the wasm glue), FOV helpers, +// and a desktop simulator (?sim) that feeds synthetic orientation events. + +import { loadWasm, wasm } from './wasm' +import { t } from '../i18n' + +const VIDEO_ID = 'sfz-video' +export const DEFAULT_FOV = 65 // landscape-frame horizontal FOV fallback + +let video = null + +/** Hidden