Turn any document into clean, AI-ready Markdown. Local-first desktop app: reads scanned PDFs, batches folders, runs offline, and uses far fewer tokens than vision models.
Python desktop-appdocument-conversionllmlocal-firstmarkdownmarkitdownocrofflinepdf-to-markdownragrustsveltetauri
MDFlux v0.1.0 — convert any document to clean, AI-ready Markdown (Windows · portable · MIT)
ibrahimqureshae680e43a7833c
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERSnew file mode 100644index 0000000..5875a25--- /dev/null+++ b/.github/CODEOWNERS@@ -0,0 +1,5 @@+# Default owner for everything in the repo.+* @ibrahimqureshae++# Core conversion sidecar (Python).+/app/src-tauri/resources/sidecar/ @ibrahimqureshaediff --git a/.github/FUNDING.yml b/.github/FUNDING.ymlnew file mode 100644index 0000000..258603d--- /dev/null+++ b/.github/FUNDING.yml@@ -0,0 +1,3 @@+github: [ibrahimqureshae]+buy_me_a_coffee: mibrahim99+custom: ["https://www.paypal.me/mibrahimqr"]diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.mdnew file mode 100644index 0000000..a037a4f--- /dev/null+++ b/.github/ISSUE_TEMPLATE/bug_report.md@@ -0,0 +1,27 @@+---+name: Bug report+about: Something isn't working+title: "[Bug] "+labels: bug+---++**What happened**+A clear description of the bug.++**Steps to reproduce**+1.+2.+3.++**Expected behavior**+What you expected instead.++**File / format involved**+e.g. a scanned PDF, a DOCX, audio — and the cleanup mode (Off / Rule-based / AI).++**Environment**+- MDFlux version:+- Windows version:++**Logs / screenshots**+Anything from the Diagnostics panel that helps. Do not paste API keys.diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.ymlnew file mode 100644index 0000000..7eb3da1--- /dev/null+++ b/.github/ISSUE_TEMPLATE/config.yml@@ -0,0 +1,8 @@+blank_issues_enabled: false+contact_links:+ - name: Security report+ url: mailto:[email protected]+ about: Please report security vulnerabilities privately by email, not as a public issue. See SECURITY.md.+ - name: Question or idea+ url: https://github.com/ibrahimqureshae/mdflux/issues/new/choose+ about: For usage questions and feature ideas, open a bug report or feature request.diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.mdnew file mode 100644index 0000000..f90d20f--- /dev/null+++ b/.github/ISSUE_TEMPLATE/feature_request.md@@ -0,0 +1,18 @@+---+name: Feature request+about: Suggest an idea+title: "[Feature] "+labels: enhancement+---++**The problem**+What are you trying to do that's hard or impossible today?++**Proposed solution**+What you'd like to happen.++**Alternatives considered**+Any workarounds or other approaches.++**Additional context**+Anything else (formats, scale, workflow).diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.mdnew file mode 100644index 0000000..f64de8a--- /dev/null+++ b/.github/PULL_REQUEST_TEMPLATE.md@@ -0,0 +1,14 @@+## What & why++<!-- What does this change, and why? Link any related issue (e.g. Closes #123). -->++## How was it tested?++<!-- Commands run / manual steps. e.g. `npm run check`, `cargo check`, converted X. -->++## Checklist++- [ ] Focused change; matches the surrounding code style+- [ ] `cd app && npm run check` passes (0 errors)+- [ ] `cd app/src-tauri && cargo check` passes+- [ ] No secrets, keys, or personal paths addeddiff --git a/.github/dependabot.yml b/.github/dependabot.ymlnew file mode 100644index 0000000..7d5b639--- /dev/null+++ b/.github/dependabot.yml@@ -0,0 +1,21 @@+version: 2+updates:+ # Frontend (SvelteKit / Tauri JS deps)+ - package-ecosystem: npm+ directory: /app+ schedule:+ interval: weekly+ open-pull-requests-limit: 5++ # Rust shell (Tauri)+ - package-ecosystem: cargo+ directory: /app/src-tauri+ schedule:+ interval: weekly+ open-pull-requests-limit: 5++ # GitHub Actions used in CI / release workflows+ - package-ecosystem: github-actions+ directory: /+ schedule:+ interval: weeklydiff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlnew file mode 100644index 0000000..502db46--- /dev/null+++ b/.github/workflows/ci.yml@@ -0,0 +1,42 @@+name: CI++on:+ push:+ branches: [main]+ pull_request:+ branches: [main]+ workflow_dispatch:++permissions:+ contents: read++jobs:+ frontend:+ name: Frontend check (svelte-check)+ runs-on: ubuntu-latest+ defaults:+ run:+ working-directory: app+ steps:+ - uses: actions/checkout@v4+ - uses: actions/setup-node@v4+ with:+ node-version: 20+ cache: npm+ cache-dependency-path: app/package-lock.json+ - run: npm ci+ - run: npm run check++ rust:+ name: Rust check (cargo)+ runs-on: windows-latest+ defaults:+ run:+ working-directory: app/src-tauri+ steps:+ - uses: actions/checkout@v4+ - uses: dtolnay/rust-toolchain@stable+ - uses: Swatinem/rust-cache@v2+ with:+ workspaces: app/src-tauri+ - run: cargo check --lockeddiff --git a/.gitignore b/.gitignorenew file mode 100644index 0000000..0fe4d56--- /dev/null+++ b/.gitignore@@ -0,0 +1,41 @@+# ── Dependencies & build output ──────────────────────────────────────────+node_modules/+target/+.svelte-kit/+build/+dist/+*.log++# ── Python bytecode ───────────────────────────────────────────────────────+__pycache__/+*.pyc++# ── Editor / OS ───────────────────────────────────────────────────────────+.vscode/+.idea/+.DS_Store+Thumbs.db++# ── Internal working dirs (not part of the public repo) ───────────────────+.claude/+Marketing/+benchmarks/+_tests/+fixtures/++# ── Tauri generated ───────────────────────────────────────────────────────+app/src-tauri/gen/++# ── App-internal design note ──────────────────────────────────────────────+app/ipc-contract-v1.md++# ── Internal docs: ignore every root-level *.md EXCEPT the standard repo+# files. This is a whitelist, so future internal notes never leak in. ────+/*.md+!/README.md+!/SECURITY.md+!/THIRD-PARTY-LICENSES.md+!/CONTRIBUTING.md+!/CODE_OF_CONDUCT.md+!/CHANGELOG.md+!/ROADMAP.mddiff --git a/CHANGELOG.md b/CHANGELOG.mdnew file mode 100644index 0000000..ebe0144--- /dev/null+++ b/CHANGELOG.md@@ -0,0 +1,29 @@+# Changelog++All notable changes to this project are documented here. The format is based on+[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to+[Semantic Versioning](https://semver.org/spec/v2.0.0.html).++## [0.1.0] — 2026-06-19++First public release. Windows, portable (extract-and-run; no installer).++### Added++- Convert PDF, DOCX, PPTX, XLSX, EPUB, HTML, CSV, JSON, and XML to clean Markdown, built on+ Microsoft's MarkItDown.+- **Cleanup modes:** Off, deterministic rule-based, and an optional AI pass (local Ollama or+ bring-your-own-key OpenAI-compatible / Anthropic).+- **OCR** for scanned PDFs and images (RapidOCR) and **audio transcription** (faster-whisper),+ installed on demand as optional engines.+- **Batch conversion** with adaptive concurrency, cancel, timeouts, and per-file progress.+- **Output control:** folder rules, naming templates, before/after preview.+- Self-provisioning Python 3.12 runtime on first launch; fully offline thereafter.+- First-run setup shown as a multi-step stepper with live download size/speed.++### Security++- Dependencies are integrity-verified during the one-time setup, so first run is trustworthy. See+ [`SECURITY.md`](SECURITY.md).++[0.1.0]: https://github.com/ibrahimqureshae/mdflux/releases/tag/v0.1.0diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.mdnew file mode 100644index 0000000..a868b96--- /dev/null+++ b/CODE_OF_CONDUCT.md@@ -0,0 +1,34 @@+# Code of Conduct++## Our pledge++We as members, contributors, and maintainers pledge to make participation in the MDFlux community a+harassment-free experience for everyone, regardless of age, body size, visible or invisible+disability, ethnicity, sex characteristics, gender identity and expression, level of experience,+education, socio-economic status, nationality, personal appearance, race, religion, or sexual+identity and orientation.++## Our standards++Examples of behavior that contributes to a positive environment:++- Being respectful of differing opinions, viewpoints, and experiences+- Giving and gracefully accepting constructive feedback+- Focusing on what is best for the community++Examples of unacceptable behavior:++- Harassment, insults, or derogatory comments, and personal or political attacks+- Publishing others' private information without explicit permission+- Other conduct which could reasonably be considered inappropriate in a professional setting++## Enforcement++Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the project+maintainer at **[email protected]**. All complaints will be reviewed and investigated+promptly and fairly.++## Attribution++This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org),+version 2.1.diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdnew file mode 100644index 0000000..c981648--- /dev/null+++ b/CONTRIBUTING.md@@ -0,0 +1,60 @@+# Contributing to MDFlux++Thanks for your interest — contributions are very welcome.++## Project layout++- `app/` — the Tauri 2 desktop app: a Svelte 5 (SvelteKit) front end (`app/src`) and a Rust+ shell (`app/src-tauri/src`).+- `app/src-tauri/resources/sidecar/` — the Python conversion sidecar (wraps Microsoft's+ MarkItDown, plus cleanup / OCR / audio). Dependencies are hash-pinned in `requirements*.lock`.+- `scripts/make-portable.ps1` — builds the portable, extract-and-run distributable.++The shell never contains conversion logic; the sidecar never contains UI. The IPC contract is the+only coupling.++## Prerequisites++- [Node.js](https://nodejs.org/) 18++- [Rust](https://www.rust-lang.org/tools/install) (stable) + the Tauri prerequisites for your OS+- Windows + WebView2 runtime (present on current Windows 10/11)++The app downloads its own Python 3.12 environment on first launch — you don't need Python installed+to run it.++## Run it locally++```bash+cd app+npm install+npm run tauri dev+```++## Build the distributable++```powershell+pwsh -File scripts/make-portable.ps1+# -> dist/MDFlux_<version>_portable.zip (portable, no installer)+```++MDFlux ships as a portable zip, not an installer (`bundle.active: false` in `tauri.conf.json`).++## Checks before a PR++```bash+cd app && npm run check # svelte-check (0 errors expected)+cd app/src-tauri && cargo check # Rust+```++## Pull requests++- Branch from `main`, keep PRs focused, and describe what changed and why.+- Match the surrounding code's style.+- By submitting a PR you certify you wrote the change (or have the right to contribute it) under+ the project's **MIT** license. No CLA — a [DCO](https://developercertificate.org/) sign-off+ (`git commit -s`) is appreciated for provenance.++## Reporting issues++Use the issue templates. For security issues, **do not** open a public issue — see+[`SECURITY.md`](SECURITY.md).diff --git a/LICENSE b/LICENSEnew file mode 100644index 0000000..40e30ed--- /dev/null+++ b/LICENSE@@ -0,0 +1,21 @@+MIT License++Copyright (c) 2026 ibrahimqureshae++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.diff --git a/NOTICE b/NOTICEnew file mode 100644index 0000000..3f63b27--- /dev/null+++ b/NOTICE@@ -0,0 +1,30 @@+MDFlux+Copyright (c) 2026 ibrahimqureshae++This software is released under the MIT License. See the LICENSE file for the+full terms.++--------------------------------------------------------------------------------++This product bundles and/or provisions third-party software. A full inventory+with versions and licenses is in THIRD-PARTY-LICENSES.md. Notable points:++- The dependency tree is free of strong copyleft (no AGPL / GPL / LGPL). Every+ dependency is permissively licensed, except certifi and tqdm, which are under+ MPL-2.0 (file-level weak copyleft that imposes no obligation on the larger+ work and is freely combinable with MIT).++- EPUB support uses MarkItDown's built-in converter (stdlib zipfile + defusedxml,+ both permissively licensed). An earlier build used ebooklib (AGPL-3.0-or-later);+ it was deliberately removed to keep the dependency tree free of strong copyleft.++- PDF page rasterization for OCR uses pypdfium2 (BSD-3-Clause / Apache-2.0).+ An earlier build used PyMuPDF (AGPL-3.0 / commercial); it was deliberately+ replaced with pypdfium2 to keep that path permissively licensed.++- The Python runtime, OCR/audio engines, model weights, and the uv bootstrap+ binary are downloaded on first use from their upstream sources and are not+ redistributed as part of this repository.++- The Windows build relies on the Microsoft WebView2 runtime, which is+ distributed with Windows and is not bundled here.diff --git a/README.md b/README.mdnew file mode 100644index 0000000..183ca76--- /dev/null+++ b/README.md@@ -0,0 +1,290 @@+<div align="center">++<img src="docs/media/logo/logo-256.png" width="120" alt="MDFlux"/>++# MDFlux++**Turn any document into clean, AI-ready Markdown.**+Local-first · reads scanned PDFs · up to 6× fewer tokens than vision models++**Works with** PDF · DOCX · PPTX · XLSX · EPUB · HTML · CSV · JSON · XML · images · audio++[](LICENSE)+[](https://github.com/ibrahimqureshae/mdflux/releases/latest)+[](#the-proof-fewer-tokens-lower-cost)+[](https://github.com/ibrahimqureshae/mdflux/releases)+[](#)+[](https://github.com/ibrahimqureshae/mdflux/stargazers)++[**⬇️ Download for Windows**](https://github.com/ibrahimqureshae/mdflux/releases/latest)+ · +[Website](https://ibrahimqureshae.github.io/mdflux/)+ · +[The proof](#the-proof-fewer-tokens-lower-cost)+ · +[How it compares](#how-it-compares-to-microsoft-markitdown)+ · +[Report a bug](https://github.com/ibrahimqureshae/mdflux/issues)+ · +[❤️ Sponsor](https://github.com/sponsors/ibrahimqureshae)++<img src="docs/media/demo-hero.gif" width="780" alt="Drop a document, get clean Markdown in seconds"/>++</div>++---++## Why MDFlux?++Getting a document into a shape an LLM can use is more annoying than it should be. You either dump the raw text and lose every heading, table, and list, or you ship your pages to a cloud vision model as images, which means your documents leave your machine and you pay by the page to read your own files. And scanned PDFs? Plain text extractors just hand you back nothing. The text is right there, and the tool acts like the page is blank.++MDFlux is what I wanted instead. Drop in a file or a folder and get back clean, structured Markdown, with OCR for those "blank" scanned pages, batch processing for a whole directory, and an optional cleanup pass to tidy up messy extraction. It runs entirely on your machine. It's built on Microsoft's [MarkItDown](https://github.com/microsoft/markitdown), with everything around it that makes the engine actually usable day to day.++---++## The proof: fewer tokens, lower cost++Every time a document gets read by an LLM, you pay for it in tokens. The common way to feed a document to a model is to send its pages as images to a vision model, and images are an expensive way to spend tokens. MDFlux hands the model clean Markdown instead, which is far cheaper to read and reuse.++**Why clean Markdown costs fewer tokens than feeding documents to AI:**++- **You pay for pixels, not words.** A page sent to a vision model as an image costs a fixed chunk of tokens (often well over a thousand) no matter how little text is on it. The same page as Markdown is usually a few hundred.+- **Plain text tokenizes efficiently.** Markdown is just text, with no image data, no markup bloat, no base64 blobs.+- **Clean beats raw.** MDFlux strips the broken layout, repeated whitespace, and junk characters that pad out messy extractions, so you don't spend tokens on noise.+- **Structure stays compact.** Headings, tables, and lists carry the document's meaning in very few tokens, so the model understands more for less.+- **It compounds.** The saving lands on every single call that reads the document, so it multiplies across a pipeline or a batch instead of happening once.++**About 2 to 6 times fewer tokens than vision.** For ordinary documents, MDFlux Markdown runs around 4 times lighter than sending the pages as images, and up to 5.7 times lighter on scanned pages. That saving lands on every single call that reads the document, so it compounds quickly across a pipeline or a large batch.++<div align="center">+<img src="docs/media/poster-2-vs-vision-1080x1350.png" width="380" alt="Two to six times fewer tokens than a vision model"/>+</div>++**And it reads what other tools return empty.** Point a plain extractor at a scanned, image-only PDF and you get zero usable text. MDFlux's OCR recovers it, and even then it stays lighter than the vision route:++| Scanned, image-only PDF | Usable tokens of text |+|---|---:|+| Plain text extractor | 0 |+| Vision model (page as an image) | 10,731 |+| MDFlux (OCR to Markdown) | 1,893 |++That's the full text recovered in about 5.7 times fewer tokens than the vision model, which still has to OCR the image on its end anyway.++<div align="center">++[**⬇️ Download for Windows**](https://github.com/ibrahimqureshae/mdflux/releases/latest)+ · Free & MIT-licensed · No account, no cloud++</div>++---++## Key features++| | |+|---|---|+| 💸 **Fewer tokens, lower cost** | Clean Markdown costs about 2 to 6 times fewer tokens than sending pages to a vision model, so every LLM call that reads the document is cheaper. |+| 🔒 **Local and private** | Your documents never leave your machine. No cloud, no API key, no account. |+| 🔍 **Reads scanned PDFs** | Built-in OCR recovers text that plain extractors return as zero characters. |+| 🧱 **Real structure** | Proper Markdown with headings, tables, and lists intact. Readable, greppable, diff-able. |+| 🖥️ **No terminal needed** | Portable app. Unzip, run, click through a one-time setup. Done. |+| 📦 **Many formats** | PDF, DOCX, PPTX, XLSX, EPUB, HTML, CSV, JSON, XML, images, and audio. |+| 🔁 **Batch a whole folder** | Convert everything at once, with progress, cancellation, and per-file diagnostics. |+| 🧹 **Optional cleanup** | Off, rule-based, or an AI pass (local or API) to tidy up messy extractions. |++---++## Who it's for++🤖 **AI and RAG builders**: feed clean, structured source documents to any model instead of raw text or pricey vision tokens++🔬 **Researchers**: batch-convert papers, reports, and scanned archives into searchable Markdown++🧑💻 **Developers**: get diff-able, version-controllable text out of binary document formats++📝 **Writers and analysts**: pull clean copy out of PDFs and Office files without the formatting mess++🔒 **Privacy-conscious users**: convert sensitive contracts, records, and decks with nothing ever uploaded++---++## How it works++```+1. Drop a file or folder → PDF, Office, EPUB, scans, audio, and more+2. Pick a cleanup mode → Off, rule-based, or AI (local or API)+3. Get clean Markdown → Preview, copy, or save as .md. 100% offline.+```++The first launch sets up a private, self-contained Python environment (one time, needs internet). Every conversion after that runs fully offline.++<div align="center">+<img src="docs/media/screenshot-cleanup-modes.png" width="560" alt="MDFlux cleanup mode selector: Off, Rule-based, Local AI, and API"/>+</div>++---++## See it in action++**01 · Select.** Grab a folder of mixed files: Word, PowerPoint, Excel, PDFs, scans, web pages, anything. No conversion settings to pick.++<div align="center">+<img src="docs/media/fetching-files.gif" width="300" alt="Selecting a folder of mixed files"/>+</div>++**02 · Convert.** One drop turns the whole batch into AI-ready Markdown, locally. OCR recovers text from scans that other tools read as empty.++<div align="center">+<img src="docs/media/converting-to-markdown.gif" width="720" alt="Converting documents to clean Markdown"/>+</div>++**03 · Stays healthy.** Dependency health and diagnostics run on-device, so you can see exactly what's installed and working.++<div align="center">+<img src="docs/media/diagnostics.gif" width="720" alt="Dependency health and diagnostics"/>+</div>++---++## How it compares to Microsoft MarkItDown++MDFlux is built on Microsoft's [MarkItDown](https://github.com/microsoft/markitdown), which is a genuinely great conversion library. What MDFlux adds is everything around it: the OCR for scans, the desktop app, the batching, the reliability, and the privacy-by-default packaging that lets anyone run it against a folder of files without touching a command line.++<div align="center">+<img src="docs/media/poster-3-vs-markitdown-1080x1350.png" width="380" alt="MDFlux next to MarkItDown"/>+</div>++| | Microsoft MarkItDown | MDFlux |+|---|:---:|:---:|+| Core conversion engine | yes | yes (uses MarkItDown) |+| Scanned / image-only PDFs | returns roughly 0 characters | built-in OCR recovers the text |+| Install and run | `pip install` plus a terminal | portable app, no terminal |+| Dependency setup | manual (pip, ffmpeg, OCR extras) | sets itself up on first launch |+| Batch a whole folder | write your own script | built in, runs concurrently with progress |+| Timeouts and cancel | can hang with no feedback | every job streams progress and can be cancelled |+| Cleanup modes | raw output | Off, rule-based, or AI cleanup (local or API) |+| Preview and diagnostics | none | rendered preview plus a health panel |+| Audio transcription | plugin or Azure | local, built in |+| Privacy | local if you wire it up | local by default |++On already-clean files the output is close to identical, because under the hood it is MarkItDown. The point isn't to beat the engine. It's to make that engine genuinely usable.++<div align="center">+<sub>If MDFlux sounds useful, consider ⭐ starring the repo. It helps others find it.</sub>+</div>++---++## Getting started++**Requirements:** Windows 10 or 11 (x64) with the WebView2 runtime, which ships with current Windows. The first launch needs internet to set up a local Python environment; everything after runs offline. macOS is on the [roadmap](#roadmap).++**1. Download and run.** Get the portable zip from [Releases](https://github.com/ibrahimqureshae/mdflux/releases/latest), extract it anywhere, and double-click `MDFlux.exe`. No installer, no admin rights.++> **SmartScreen warning?** The build is open source and unsigned. Click "More info" then "Run anyway". You'll need the WebView2 runtime, already on current Windows 10/11.++**2. First launch (one-time, internet required).** MDFlux sets up a private, self-contained Python environment. This happens once. After that, it runs fully offline.++<div align="center">+<img src="docs/media/screenshot-setup.png" width="560" alt="MDFlux first-run setup screen">+</div>++**3. Convert.** Drop a document onto the window, pick a cleanup mode, and click "Convert to AI-Ready Markdown". Preview it, then copy straight from the preview or save as `.md`. For a whole folder, you pick an output folder up front and every converted file lands there.++<div align="center">+<img src="docs/media/converting-to-markdown.gif" width="720" alt="Converting a document to clean Markdown"/>+</div>++To verify your download, check the SHA-256 posted on the [release page](https://github.com/ibrahimqureshae/mdflux/releases/latest).++---++## Supported formats++| Documents | Office | Web and data | Other |+|---|---|---|---|+| PDF (including scanned, via OCR) | DOCX | HTML | Audio to transcript (MP3, WAV, M4A, OGG, FLAC, AAC) |+| EPUB | PPTX | CSV, JSON, XML | Images via OCR (PNG, JPG, GIF, WEBP, TIFF, BMP) |+| TXT, Markdown | XLSX, XLS | | OCR on images embedded in documents |++---++## Troubleshooting++**"Windows protected your PC"**: That's SmartScreen reacting to an unsigned build. Click "More info" then "Run anyway". The build is open source; code signing is on the roadmap.++**The first launch is downloading for a while**: That's the one-time setup of the local Python environment. It only happens once, and every launch after is instant and offline.++**A conversion finished with a warning or looks empty**: Open the diagnostics panel. It tells you what's installed and healthy and what went wrong, so you get a clear next step instead of a silent empty file.++<div align="center">+<img src="docs/media/screenshot-diagnostics.png" width="560" alt="MDFlux diagnostics panel: dependency health and per-file status"/>+</div>++**Where are my converted files?** In the output folder shown in the app. For batch jobs you pick the folder up front.++**Anything else**: [Open an issue](https://github.com/ibrahimqureshae/mdflux/issues). Bug reports genuinely help.++---++## Roadmap++- [ ] MCP server, so Claude Code and other agents can convert documents through MDFlux directly+- [ ] CLI for scripted, headless conversion in pipelines and CI+- [ ] macOS build (arm64 and Intel)+- [ ] Code signing, to remove the SmartScreen warning+- [ ] More OCR languages and tuning presets++The full list lives in [ROADMAP.md](ROADMAP.md). Open an issue if you want to shape it.++---++## For developers++MDFlux is a Tauri 2 (Rust) shell around a Python sidecar (MarkItDown + OCR + audio), with a Svelte 5 front end. You'll need Node, Rust (stable), and the Tauri prerequisites for your OS; then clone it, run `npm install`, and `npm run tauri dev`. See [CONTRIBUTING.md](CONTRIBUTING.md) for the full build, run, and test steps, the project layout, and the tech stack.++---++## Contributing++Contributions are genuinely welcome. Honestly, it's the main reason I'm open-sourcing this. Bug reports, ideas, code, and testing on different hardware all help.++Start with a [good first issue](https://github.com/ibrahimqureshae/mdflux/labels/good%20first%20issue), and see [CONTRIBUTING.md](CONTRIBUTING.md) to get a dev build running. Commits use a [DCO](CONTRIBUTING.md) sign-off (`git commit -s`). Be kind; we follow a [Code of Conduct](CODE_OF_CONDUCT.md).++---++## Support the project++MDFlux is free and MIT-licensed. If it saves you time, supporting it goes straight into the roadmap above: the macOS build, code signing, and the MCP server and CLI.++<p align="center">+ <a href="https://github.com/sponsors/ibrahimqureshae">+ <img src="https://img.shields.io/badge/Sponsor%20on%20GitHub-%E2%99%A5-ea4aaa?style=for-the-badge&logo=githubsponsors&logoColor=white" alt="Sponsor on GitHub"/>+ </a>+ + <a href="https://buymeacoffee.com/mibrahim99">+ <img src="https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?style=for-the-badge&logo=buymeacoffee&logoColor=black" alt="Buy Me a Coffee"/>+ </a>+ + <a href="https://www.paypal.me/mibrahimqr">+ <img src="https://img.shields.io/badge/Donate%20via%20PayPal-0070ba?style=for-the-badge&logo=paypal&logoColor=white" alt="Donate via PayPal"/>+ </a>+</p>++And starring the repo is free, which helps more than you'd think.++---++## License++MIT, copyright 2026 ibrahimqureshae. Free to use, modify, and distribute. See [LICENSE](LICENSE).++---++<div align="center">+Built on open-source foundations: <a href="https://github.com/microsoft/markitdown">MarkItDown</a> · <a href="https://tauri.app/">Tauri</a> · <a href="https://github.com/RapidAI/RapidOCR">RapidOCR</a> · <a href="https://github.com/pypdfium2-team/pypdfium2">pypdfium2</a>++<br/>++<a href="https://claude.com/claude-code"><img src="https://img.shields.io/badge/Built%20with-Claude%20Code-D97757?logo=claude&logoColor=white" height="20" alt="Built with Claude Code"/></a>+</div>diff --git a/ROADMAP.md b/ROADMAP.mdnew file mode 100644index 0000000..362a97f--- /dev/null+++ b/ROADMAP.md@@ -0,0 +1,34 @@+# MDFlux Roadmap++This is a living document — directional, not a promise of dates. Issues and PRs are+welcome on any of these; open one to shape the priority.++## Now (v0.1.x)++- Windows portable build, hardened across 8 engineering stages. ✅ shipped in v0.1.0.+- Stability + diagnostics polish based on early-user reports.++## Next++- **🔌 MCP server** — expose MDFlux conversion as an MCP tool so Claude Code and other+ agents can turn documents into Markdown without leaving the chat.+- **⌨️ CLI** — a scriptable, headless `mdflux convert` for pipelines and CI.+- **🍎 macOS build** — separate arm64 and Intel sidecar builds.+- **🔏 Code signing** — sign the Windows build to remove the SmartScreen warning+ (and notarize the macOS build once it exists).++## Later / exploring++- More OCR languages and tuning presets.+- Optional structured outputs (front-matter, JSON sidecars) for downstream pipelines.+- Pluggable cleanup profiles.++## Out of scope (by design)++- Cloud-hosted conversion. MDFlux is local-first; cloud features will only ever be+ clearly-marked, opt-in seams — never a hardcoded dependency.++---++Have an idea? [Open an issue](https://github.com/ibrahimqureshae/mdflux/issues) or start a+discussion. See [CONTRIBUTING.md](CONTRIBUTING.md) to get a dev build running.diff --git a/SECURITY.md b/SECURITY.mdnew file mode 100644index 0000000..d76d9dd--- /dev/null+++ b/SECURITY.md@@ -0,0 +1,37 @@+# Security Policy++MDFlux is a local-first desktop app: the user owns the machine, the files, the API key, and the+clicks. The webview renders only the app's own UI and Markdown the user converted from their own+documents (sanitised through `marked` + DOMPurify). Our threat model therefore focuses on+**upstream/integrity** issues a user cannot protect themselves against, not on local-access+scenarios that are inherent to any desktop tool.++## Reporting a vulnerability++Please report suspected vulnerabilities privately to **[email protected]** rather than+opening a public issue. Include steps to reproduce and the affected version. We aim to acknowledge+within a few days.++## Supply-chain integrity++Python dependencies are **version-pinned and integrity-verified** during the one-time setup on first+launch. If a downloaded package doesn't match its expected hash, setup stops rather than running+unverified code.++## Model weights (OCR / audio)++- **OCR:** models ship inside the pinned, integrity-verified OCR package — no separate download.+- **Audio (faster-whisper):** model weights download from the official Systran HuggingFace+ repositories on first use of the opt-in audio engine. These are trusted at download time and not+ yet revision-pinned; pinned verification is planned. If you require a fully verified supply chain,+ avoid the audio engine for now.++## What is intentionally out of scope (local-desktop threat model)++These are standard for a local app where the user controls the environment, and are **not** treated+as vulnerabilities (they would be reopened for any hosted/cloud variant):++- The user's own API key stored in the app's `config.json` on the user's own disk.+- The app reading/writing files the user themselves selected or that the app wrote.+- Document content reaching the optional, opt-in AI cleanup (no tool/function calling, so no+ exfiltration channel; a data-loss guardrail flags content mangling).diff --git a/THIRD-PARTY-LICENSES.md b/THIRD-PARTY-LICENSES.mdnew file mode 100644index 0000000..e75cd55--- /dev/null+++ b/THIRD-PARTY-LICENSES.md@@ -0,0 +1,131 @@+# Third-Party Licenses++MDFlux itself is licensed under the **MIT License** (see [`LICENSE`](LICENSE)). It builds on the+open-source components listed below. This is a curated inventory of the direct and+otherwise-notable dependencies; each pulls in its own transitive tree under compatible terms.++To regenerate the full transitive list:++- **Rust:** `cargo tree` (or `cargo about generate` for a license report) in `app/src-tauri`+- **npm:** `npm ls --all` in `app`+- **Python:** the runtime venv is provisioned on first launch; inspect with+ `uv pip list` against `%APPDATA%\com.projektvisyo.mdflux\venv`++All components listed below are under licenses compatible with the MIT License under which MDFlux+is distributed.++---++## License compatibility summary++**The dependency tree is free of strong copyleft** — no AGPL, no GPL, no LGPL. Every dependency is+permissive (MIT / BSD / Apache-2.0 / MIT-CMU / PSF / OFL / 0BSD / Zlib), with two MPL-2.0+components (`certifi`, `tqdm`).++MPL-2.0 is file-level weak copyleft: it covers only the MPL-licensed files themselves and imposes+no obligation on the larger work. Both are used unmodified and combine freely with MDFlux's MIT+license.++---++## Python sidecar (provisioned at runtime, not bundled in the repo)++Declared in `app/src-tauri/resources/sidecar/requirements.txt`+(`markitdown[pdf,docx,pptx,xlsx,xls]`, `openai`) plus the install-on-choice OCR/audio+engines. Key packages:++| Package | Version | License |+|---------|---------|---------|+| markitdown | 0.1.6 | MIT |+| openai | 2.43.0 | Apache-2.0 |+| pdfminer.six | 20260107 | MIT |+| pdfplumber | 0.11.10 | MIT |+| mammoth | 1.11.0 | BSD-2-Clause |+| python-pptx | 1.0.2 | MIT |+| openpyxl | 3.1.5 | MIT |+| xlrd | 2.0.2 | BSD-3-Clause |+| lxml | 6.1.1 | BSD-3-Clause |+| defusedxml | 0.7.1 | PSF |+| beautifulsoup4 | 4.15.0 | MIT |+| markdownify | 1.2.2 | MIT |+| charset-normalizer | 3.4.7 | MIT |+| magika | 0.6.3 | Apache-2.0 |+| httpx | 0.28.1 | BSD-3-Clause |+| pydantic | 2.13.4 | MIT |+| requests | 2.34.2 | Apache-2.0 |+| certifi | 2026.6.17 | **MPL-2.0** (file-level; no effect on larger work) |++### Install-on-choice engines (OCR / audio — only installed if the user enables them)++| Package | Version | License |+|---------|---------|---------|+| pypdfium2 | 5.9.0 | BSD-3-Clause / Apache-2.0 |+| rapidocr-onnxruntime | 1.4.4 | Apache-2.0 |+| onnxruntime | 1.20.1 | MIT |+| faster-whisper | 1.2.1 | MIT |+| ctranslate2 | 4.8.0 | MIT |+| tokenizers | 0.23.1 | Apache-2.0 |+| huggingface-hub | 1.20.0 | Apache-2.0 |+| pillow | 12.2.0 | MIT-CMU (HPND) |+| numpy | 2.4.6 | BSD-3-Clause (+ 0BSD / MIT / Zlib components) |+| tqdm | 4.68.3 | **MPL-2.0** AND MIT (file-level; no effect on larger work) |++The OCR/audio model weights are downloaded from their respective upstreams on first use and are+not redistributed by this project.++---++## Rust shell (Tauri)++Declared in `app/src-tauri/Cargo.toml`:++| Crate | Version (req) | License |+|-------|---------------|---------|+| tauri | 2.x | MIT OR Apache-2.0 |+| tauri-plugin-opener | 2.x | MIT OR Apache-2.0 |+| tauri-plugin-dialog | 2.x | MIT OR Apache-2.0 |+| tauri-plugin-fs | 2.x | MIT OR Apache-2.0 |+| serde / serde_json | 1.x | MIT OR Apache-2.0 |+| tokio | 1.x | MIT |+| reqwest | 0.12 | MIT OR Apache-2.0 |+| zip | 2.x | MIT |+| flate2 | 1.x | MIT OR Apache-2.0 |+| tar | 0.4 | MIT OR Apache-2.0 |+| sha2 | 0.10 | MIT OR Apache-2.0 |++The Windows build also relies on the system **WebView2** runtime (Microsoft, distributed with+Windows) — it is not bundled.++---++## Frontend (SvelteKit)++Declared in `app/package.json`:++| Package | Version | License |+|---------|---------|---------|+| svelte | 5.56.3 | MIT |+| @sveltejs/kit | 2.64.0 | MIT |+| @sveltejs/adapter-static | 3.0.10 | MIT |+| @sveltejs/vite-plugin-svelte | 5.1.1 | MIT |+| vite | 6.4.3 | MIT |+| typescript | 5.6.3 | Apache-2.0 |+| svelte-check | 4.6.0 | MIT |+| @tauri-apps/api | 2.11.0 | MIT OR Apache-2.0 |+| @tauri-apps/cli | 2.11.2 | MIT OR Apache-2.0 |+| @tauri-apps/plugin-dialog | 2.7.1 | MIT OR Apache-2.0 |+| @tauri-apps/plugin-fs | 2.5.1 | MIT OR Apache-2.0 |+| @tauri-apps/plugin-opener | 2.5.4 | MIT OR Apache-2.0 |+| marked | 18.0.5 | MIT |+| dompurify | 3.4.10 | Apache-2.0 OR MPL-2.0 |+| @fontsource-variable/inter | 5.2.8 | OFL-1.1 (Inter font) |+| @fontsource/jetbrains-mono | 5.2.8 | OFL-1.1 (JetBrains Mono font) |++Bundled fonts (Inter, JetBrains Mono) are under the SIL Open Font License 1.1.++---++## uv (provisioning bootstrap)++The first-launch setup uses the **uv** binary (Astral), licensed **MIT OR Apache-2.0**. It is+fetched at runtime, not bundled.diff --git a/app/.gitignore b/app/.gitignorenew file mode 100644index 0000000..6635cf5--- /dev/null+++ b/app/.gitignore@@ -0,0 +1,10 @@+.DS_Store+node_modules+/build+/.svelte-kit+/package+.env+.env.*+!.env.example+vite.config.js.timestamp-*+vite.config.ts.timestamp-*diff --git a/app/package-lock.json b/app/package-lock.jsonnew file mode 100644index 0000000..f01cbb7--- /dev/null+++ b/app/package-lock.json@@ -0,0 +1,2005 @@+{+ "name": "app",+ "version": "0.1.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "app",+ "version": "0.1.0",+ "license": "MIT",+ "dependencies": {+ "@fontsource-variable/inter": "^5.2.8",+ "@fontsource/jetbrains-mono": "^5.2.8",+ "@tauri-apps/api": "^2",+ "@tauri-apps/plugin-dialog": "^2.7.1",+ "@tauri-apps/plugin-fs": "^2.5.1",+ "@tauri-apps/plugin-opener": "^2",+ "dompurify": "^3.4.10",+ "marked": "^18.0.5"+ },+ "devDependencies": {+ "@sveltejs/adapter-static": "^3.0.6",+ "@sveltejs/kit": "^2.9.0",+ "@sveltejs/vite-plugin-svelte": "^5.0.0",+ "@tauri-apps/cli": "^2",+ "svelte": "^5.0.0",+ "svelte-check": "^4.0.0",+ "typescript": "~5.6.2",+ "vite": "^6.0.3"+ }+ },+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz",+ "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz",+ "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz",+ "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz",+ "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz",+ "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz",+ "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz",+ "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz",+ "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz",+ "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz",+ "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz",+ "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz",+ "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz",+ "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz",+ "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz",+ "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz",+ "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz",+ "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz",+ "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz",+ "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz",+ "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz",+ "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openharmony-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz",+ "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz",+ "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz",+ "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz",+ "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz",+ "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@fontsource-variable/inter": {+ "version": "5.2.8",+ "resolved": "https://registry.npmjs.org/@fontsource-variable/inter/-/inter-5.2.8.tgz",+ "integrity": "sha512-kOfP2D+ykbcX/P3IFnokOhVRNoTozo5/JxhAIVYLpea/UBmCQ/YWPBfWIDuBImXX/15KH+eKh4xpEUyS2sQQGQ==",+ "license": "OFL-1.1",+ "funding": {+ "url": "https://github.com/sponsors/ayuhito"+ }+ },+ "node_modules/@fontsource/jetbrains-mono": {+ "version": "5.2.8",+ "resolved": "https://registry.npmjs.org/@fontsource/jetbrains-mono/-/jetbrains-mono-5.2.8.tgz",+ "integrity": "sha512-6w8/SG4kqvIMu7xd7wt6x3idn1Qux3p9N62s6G3rfldOUYHpWcc2FKrqf+Vo44jRvqWj2oAtTHrZXEP23oSKwQ==",+ "license": "OFL-1.1",+ "funding": {+ "url": "https://github.com/sponsors/ayuhito"+ }+ },+ "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/@polka/url": {+ "version": "1.0.0-next.29",+ "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.29.tgz",+ "integrity": "sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@rollup/rollup-android-arm-eabi": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.61.1.tgz",+ "integrity": "sha512-JnBB8MdXj45cajvTuO5FmPlvFVJRQgvrz1uSEl3NwqFnReAPGwb8EanbGi4z2nRaqLzjJSv5/JmycoTKlRZxHA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-android-arm64": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.61.1.tgz",+ "integrity": "sha512-Jx2g7iSjw4AOT0HDPHM9RV3GNjRXwybWtSFZiZAYUTjUwjVrYIwq3kBf+LnhqJlzXFAqTAh2F7IGI+O568exPw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-darwin-arm64": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.61.1.tgz",+ "integrity": "sha512-0F1L/Z3Eqv8mT2n3dCpeO8GcTvHvVqkP5/t6DMsn0KzhYVcg+s7Ncl5DS8qjKYEeio6Az0Gt6nyBORay5qIlCA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-darwin-x64": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.61.1.tgz",+ "integrity": "sha512-qLttcH871ujY4YcVfUSShhOw+CsoTatYz8gRbHO7Bb92QH059/P0y5do1KMs41fY0BpD2x4AJH/gID0zFiqVKQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-arm64": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.61.1.tgz",+ "integrity": "sha512-fUI4RapGE0Oh3mb8mgfvC1O2nU1RpDZUKnDQm3xB1Ipg7C2wTs5Kstz7G2uWK99a8S2yTMq8/P4uycwNa0nJyw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-x64": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.61.1.tgz",+ "integrity": "sha512-H5YrdvJaDtI/U9/emrD4b++xkvp3y/JvOe4rizHbxvkyMfRS/CiRYdji+Pl8D0brEaNFWUh1drQxgAGIl6Xudw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.61.1.tgz",+ "integrity": "sha512-Q8CBCCQtDFrYtXoeUXSrnFXKOnyUhx6bz+SkL6A0E7V8kAiCJ5pamq1WtbfpVGhR5TSpXY6ak3avmDc5fHTyJA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.61.1.tgz",+ "integrity": "sha512-nwnhk1581l0FBVellGcVCAT0Oi06onEA3WB53sf01VO3I0UPBkMH9sXONYME2K0ovXcNayJfNtHfm6mpJElatQ==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-gnu": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.61.1.tgz",+ "integrity": "sha512-x5Xr49hwt3hdW75UOZm3395YwwzPyauktslv29KpWL/T+vVAzoT3azLcTWv0eMciBNrx+DYjH4paehHoLpPvpg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-musl": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.61.1.tgz",+ "integrity": "sha512-unMS3H73DpaoPyyEVPjGKleM/s0mkmsauTENpw4INQY8y4+IuLNjkueQ5QCtC0D3N38Y38yhAU8OoZ20S2Tm6w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-gnu": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.61.1.tgz",+ "integrity": "sha512-zNZzGRnAhwjFEYmvphJRV5XaQGjs62cCmeYYHUT//NbvEnHauw+I85nGG+SiVg5ld4GX8D1IbKIX+ozITQnhMQ==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-musl": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.61.1.tgz",+ "integrity": "sha512-LdpWGL8X209B2SIvWjqlc8VZgM6PKfontSerGepuldQmHYrAOtnMCXeJkxXGbC+PPZVOuu5czJo7fNV6aeW8rQ==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.61.1.tgz",+ "integrity": "sha512-EC5kTtNaNGOmbMGqar8dvJy6y/hg99GAwjfBz++pxZhQATXGcRjd6c5en5wcbru0vkRmiMGsQKdMJOOf6sza4g==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-musl": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.61.1.tgz",+ "integrity": "sha512-8hiwp6D4acEcNK78I4rP0/XtS1sknWIAMJBPdR4l6zUtyTm5KiTDr5bXmWt4foY7nAN7AThDHgkLIEZOWKbzWw==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.61.1.tgz",+ "integrity": "sha512-10dh/h/BqA7DuMPWSxkR8uks18FRwnwOEqr5zOTEl+NOwP/OMzKX8OFR/Of9xxDA7D5qef1Nzar5WDD2kCCr1g==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-musl": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.61.1.tgz",+ "integrity": "sha512-YKJ5lg35DP17gcAOggnihe+APw9HLyj1Xn7gsmGumBJAUDa6NGXNixJzmkWLhcK9TOuuyQjdamzvJefkO7qHZQ==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-s390x-gnu": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.61.1.tgz",+ "integrity": "sha512-Mlil5G2Jj6a7B3LWGctg+XPL9vdXYuzCtNXfxOQ0nPjc2m6ueUktocPGH9bnAM0bNRKb/bAWTujUU7IJQdQA+g==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-gnu": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.61.1.tgz",+ "integrity": "sha512-bVWIOIk6pV01p4CdUbPP7CJ/434z+OooYjDuFcR+44N35YvKUC66G8MGnvcWx5mWKW3g61J+t74l3Kj15Kwn2Q==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-musl": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.61.1.tgz",+ "integrity": "sha512-qy5pBvZbqNFheBz61R1rzsezjm0J7O2oNGoWtGoY89SZYLUfxAJTBAqDChqAIdB4rCiIbi9nF7yZ83GnNiLwSw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-openbsd-x64": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.61.1.tgz",+ "integrity": "sha512-E83TXjI4zm0+5f2qO+UOudaCYIhYwpJ5jq6YCZNIZ+6CbfhKrkAGezeiASBL9ElxAxFsRS9ZhESv8mfnj6TKeg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ]+ },+ "node_modules/@rollup/rollup-openharmony-arm64": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.61.1.tgz",+ "integrity": "sha512-fbWnKqVkjrJN38vNe3ahkbk6iejS/3b0Nt7EEtPpE6RBacZcGXNKbzfHN3GUUlXOPghUg0j6XUGrtjX9z1sIvA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ]+ },+ "node_modules/@rollup/rollup-win32-arm64-msvc": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.61.1.tgz",+ "integrity": "sha512-ArMl38iVAbk0New1ogihQNY6iphLi4ZaRsa037gUzv5yeKPY8TD3Dmy4x2RNC1VztU/uqm+G+/RwFrSka3Oy2g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-ia32-msvc": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.61.1.tgz",+ "integrity": "sha512-0mYtjHS9ucAbcATycCNK9IGBk/cCe/ma7EmSLGZdsxnOA8cjRIyU04wDpVAD9NiOfLUR9KTxdiO53uOkherqjQ==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-gnu": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.61.1.tgz",+ "integrity": "sha512-gK1iCEPfpoSG9wfBihXxvBMi8ZfcWffYkEsC/Eih+iFENTaewvNcrEQ69lIOWYO5pePHKLHHO7nq5AILGO/HQQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-msvc": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.61.1.tgz",+ "integrity": "sha512-X+zaP2x+j4RXGfbp/seSoRHWnPxzApilDszisZxbYH5C/jTxFhCtDNdPGZb9lJyYPs24wGxruPF7Y+sIXt9Gzw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@standard-schema/spec": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz",+ "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@sveltejs/acorn-typescript": {+ "version": "1.0.10",+ "resolved": "https://registry.npmjs.org/@sveltejs/acorn-typescript/-/acorn-typescript-1.0.10.tgz",+ "integrity": "sha512-4WfKk68eTih+MiJD4fSbxN7E8kVBmTMPWHUPYjvl2N0rMs53YLTT8/YjKU5Dtnz5LqDjl7LEw4U7lXR2W3J5WA==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "acorn": "^8.9.0"+ }+ },+ "node_modules/@sveltejs/adapter-static": {+ "version": "3.0.10",+ "resolved": "https://registry.npmjs.org/@sveltejs/adapter-static/-/adapter-static-3.0.10.tgz",+ "integrity": "sha512-7D9lYFWJmB7zxZyTE/qxjksvMqzMuYrrsyh1f4AlZqeZeACPRySjbC3aFiY55wb1tWUaKOQG9PVbm74JcN2Iew==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "@sveltejs/kit": "^2.0.0"+ }+ },+ "node_modules/@sveltejs/kit": {+ "version": "2.64.0",+ "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-2.64.0.tgz",+ "integrity": "sha512-24MXA/xyugUqJd09DD4v4bLd4k7FaYhdBck/pTXiu3XFtDBcwXYpJc1SO1+lqdjkNBUo1r4eek5FS7cfzBQUmA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@standard-schema/spec": "^1.0.0",+ "@sveltejs/acorn-typescript": "^1.0.9",+ "@types/cookie": "^0.6.0",+ "acorn": "^8.16.0",+ "cookie": "^0.6.0",+ "devalue": "^5.8.1",+ "esm-env": "^1.2.2",+ "kleur": "^4.1.5",+ "magic-string": "^0.30.5",+ "mrmime": "^2.0.0",+ "set-cookie-parser": "^3.0.0",+ "sirv": "^3.0.0"+ },+ "bin": {+ "svelte-kit": "svelte-kit.js"+ },+ "engines": {+ "node": ">=18.13"+ },+ "peerDependencies": {+ "@opentelemetry/api": "^1.0.0",+ "@sveltejs/vite-plugin-svelte": "^3.0.0 || ^4.0.0-next.1 || ^5.0.0 || ^6.0.0-next.0 || ^7.0.0",+ "svelte": "^4.0.0 || ^5.0.0-next.0",+ "typescript": "^5.3.3 || ^6.0.0",+ "vite": "^5.0.3 || ^6.0.0 || ^7.0.0-beta.0 || ^8.0.0"+ },+ "peerDependenciesMeta": {+ "@opentelemetry/api": {+ "optional": true+ },+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/@sveltejs/load-config": {+ "version": "0.1.1",+ "resolved": "https://registry.npmjs.org/@sveltejs/load-config/-/load-config-0.1.1.tgz",+ "integrity": "sha512-BXXm+VOH/9X4N7Dd1iZ2MqA1h7M+9i2noI8QYuLDY8QcN2WHYn7D/VK/+IJNfcAmRw7ACNJ538UT9GXIhnBTiA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 18.0.0"+ }+ },+ "node_modules/@sveltejs/vite-plugin-svelte": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-5.1.1.tgz",+ "integrity": "sha512-Y1Cs7hhTc+a5E9Va/xwKlAJoariQyHY+5zBgCZg4PFWNYQ1nMN9sjK1zhw1gK69DuqVP++sht/1GZg1aRwmAXQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@sveltejs/vite-plugin-svelte-inspector": "^4.0.1",+ "debug": "^4.4.1",+ "deepmerge": "^4.3.1",+ "kleur": "^4.1.5",+ "magic-string": "^0.30.17",+ "vitefu": "^1.0.6"+ },+ "engines": {+ "node": "^18.0.0 || ^20.0.0 || >=22"+ },+ "peerDependencies": {+ "svelte": "^5.0.0",+ "vite": "^6.0.0"+ }+ },+ "node_modules/@sveltejs/vite-plugin-svelte-inspector": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte-inspector/-/vite-plugin-svelte-inspector-4.0.1.tgz",+ "integrity": "sha512-J/Nmb2Q2y7mck2hyCX4ckVHcR5tu2J+MtBEQqpDrrgELZ2uvraQcK/ioCV61AqkdXFgriksOKIceDcQmqnGhVw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "debug": "^4.3.7"+ },+ "engines": {+ "node": "^18.0.0 || ^20.0.0 || >=22"+ },+ "peerDependencies": {+ "@sveltejs/vite-plugin-svelte": "^5.0.0",+ "svelte": "^5.0.0",+ "vite": "^6.0.0"+ }+ },+ "node_modules/@tauri-apps/api": {+ "version": "2.11.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/api/-/api-2.11.0.tgz",+ "integrity": "sha512-7CinYODhky9lmO23xHnUFv0Xt43fbtWMyxZcLcRBlFkcgXKuEirBvHpmtJ89YMhyeGcq20Wuc47Fa4XjyniywA==",+ "license": "Apache-2.0 OR MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/tauri"+ }+ },+ "node_modules/@tauri-apps/cli": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-2.11.2.tgz",+ "integrity": "sha512-bk3HemqvGRoy+5D/dVMUQHKMYLglD0jVnMm/0iGMH6ufZ+p8r14m6BpIixwij3PBvZdvORUp1YifTD8QxVZ1Nw==",+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "bin": {+ "tauri": "tauri.js"+ },+ "engines": {+ "node": ">= 10"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/tauri"+ },+ "optionalDependencies": {+ "@tauri-apps/cli-darwin-arm64": "2.11.2",+ "@tauri-apps/cli-darwin-x64": "2.11.2",+ "@tauri-apps/cli-linux-arm-gnueabihf": "2.11.2",+ "@tauri-apps/cli-linux-arm64-gnu": "2.11.2",+ "@tauri-apps/cli-linux-arm64-musl": "2.11.2",+ "@tauri-apps/cli-linux-riscv64-gnu": "2.11.2",+ "@tauri-apps/cli-linux-x64-gnu": "2.11.2",+ "@tauri-apps/cli-linux-x64-musl": "2.11.2",+ "@tauri-apps/cli-win32-arm64-msvc": "2.11.2",+ "@tauri-apps/cli-win32-ia32-msvc": "2.11.2",+ "@tauri-apps/cli-win32-x64-msvc": "2.11.2"+ }+ },+ "node_modules/@tauri-apps/cli-darwin-arm64": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-2.11.2.tgz",+ "integrity": "sha512-+4UZzLt+eOAEQCwgd+TqKgyUJMrvx+BgdXLLaqJYmPqzP+nE6YZr/hY6CWLYGQb8jFn99jEkmC6uA3tNvamA1w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-darwin-x64": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-2.11.2.tgz",+ "integrity": "sha512-VjYYtZUPqDMLutSfJEyxFE3Bz+DPi7c8wC3imckgvciLDZLq4qwKJxBicg0BXGhXjJsl8vKWgWRFNMPELQ+Xyg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-arm-gnueabihf": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-2.11.2.tgz",+ "integrity": "sha512-yMemD6f4i95AQriS8EazyOFzbE34yjnP16i3IOzpHGQvBoy2DjypFMFBq0NtPuITURv/cOGguRtHR5d79/9CSA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-arm64-gnu": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-2.11.2.tgz",+ "integrity": "sha512-cgI91D2wL8GSgoWwZXDqt+DwnuZCP2/bz03QAE4TrhgAKIsrB4hX26W/H1EONPUUNkqrsgeCD0wU6pcNjV/5kw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-arm64-musl": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.11.2.tgz",+ "integrity": "sha512-X1rm0BERqAAggtYTESSgXrS3sz4Sb/OiPiz54UqISlXW+GkR3vNIGnsy/lejNmoXGVqri3Q53BCfQiclOIyRPw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-riscv64-gnu": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-riscv64-gnu/-/cli-linux-riscv64-gnu-2.11.2.tgz",+ "integrity": "sha512-usbMLJbT3KtkOrBMDVeGYNM35aTHXx38SJSzTMSqqjeUIOQ+iVPjb2yAGNAE+KqmBbAx4FOFIyMeKXx2M/JKGQ==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-x64-gnu": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-2.11.2.tgz",+ "integrity": "sha512-Ru4gwJKPG0ctVGchRGpRup4Y4lW2SSfFnrbQcyHhCliKy4g8Qz97TrUgCur4CbWyAgKxvGh3SjrkA0LDYzDGiw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-x64-musl": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-2.11.2.tgz",+ "integrity": "sha512-eUm7T6clN1MMmNSRQ9gaWsQdyehQx2Gmn5hht/QUlqZQI/qcP2OJK5dnaxqwFzCr2HdsEo9ydxaqcS1oJzMvUw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-win32-arm64-msvc": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-arm64-msvc/-/cli-win32-arm64-msvc-2.11.2.tgz",+ "integrity": "sha512-HeeZW80jU+gVTOEX4X/hC6NVSAdDVXajwP5fxIZ/3z9WvUC7qrudX2GMTilYq6Dg0e0sk0XgsAJD1hZ5wPBXUA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-win32-ia32-msvc": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-2.11.2.tgz",+ "integrity": "sha512-YhjQNZcXfbkCLyazSv1nPnJ9iRFE1wm6kc51FDbU10/Dk09io+6PAGMLjkxnX2GdM0qMnDmTjstY8mTDVvtKeA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-win32-x64-msvc": {+ "version": "2.11.2",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-2.11.2.tgz",+ "integrity": "sha512-d2JchlFIpZevZVReyqhQOekJmb1UH3rhZ5VX6sH3ty9ETE0TKQavpihvoScUXfKKpW6HZC0MrFGRU0ZtD+w3gA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "Apache-2.0 OR MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/plugin-dialog": {+ "version": "2.7.1",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-dialog/-/plugin-dialog-2.7.1.tgz",+ "integrity": "sha512-OK1UBXYt+ojcmxMktzzuyonYIFta8CmAASpX+CA+DTGK24KlHjhYI6x2iOJ/TjZF4N7/ACK1oFmEOjIY9IhzOQ==",+ "license": "MIT OR Apache-2.0",+ "dependencies": {+ "@tauri-apps/api": "^2.11.0"+ }+ },+ "node_modules/@tauri-apps/plugin-fs": {+ "version": "2.5.1",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-fs/-/plugin-fs-2.5.1.tgz",+ "integrity": "sha512-9Lz+Jopp6QyeEWhlpkMx4R/+P9HgR+AVAI4vOZhlT8Xaymtz8iVI/Ov984/XTqgJz/5gz5NretqPB/XEMS3NhQ==",+ "license": "MIT OR Apache-2.0",+ "dependencies": {+ "@tauri-apps/api": "^2.11.0"+ }+ },+ "node_modules/@tauri-apps/plugin-opener": {+ "version": "2.5.4",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-opener/-/plugin-opener-2.5.4.tgz",+ "integrity": "sha512-1HnPkb+AmgO29HBazm4uPLKB+r7zzcTBW1d0fyYp1uP+jwtpoiNDGKMMzz58SFp49nOIrxdE3aUJtT57lfO9CQ==",+ "license": "MIT OR Apache-2.0",+ "dependencies": {+ "@tauri-apps/api": "^2.11.0"+ }+ },+ "node_modules/@types/cookie": {+ "version": "0.6.0",+ "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.6.0.tgz",+ "integrity": "sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/estree": {+ "version": "1.0.9",+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",+ "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/trusted-types": {+ "version": "2.0.7",+ "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz",+ "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==",+ "devOptional": true,+ "license": "MIT"+ },+ "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/aria-query": {+ "version": "5.3.1",+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.1.tgz",+ "integrity": "sha512-Z/ZeOgVl7bcSYZ/u/rh0fOpvEpq//LZmdbkXyc7syVzjPAhfOa9ebsdTSjEBDU4vs5nC98Kfduj1uFo0qyET3g==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/axobject-query": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz",+ "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/chokidar": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz",+ "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "readdirp": "^4.0.1"+ },+ "engines": {+ "node": ">= 14.16.0"+ },+ "funding": {+ "url": "https://paulmillr.com/funding/"+ }+ },+ "node_modules/clsx": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/cookie": {+ "version": "0.6.0",+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz",+ "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "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/deepmerge": {+ "version": "4.3.1",+ "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",+ "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/devalue": {+ "version": "5.8.1",+ "resolved": "https://registry.npmjs.org/devalue/-/devalue-5.8.1.tgz",+ "integrity": "sha512-4CXDYRBGqN+57wVJkuXBYmpAVUSg3L6JAQa/DFqm238G73E1wuyc/JhGQJzN7vUf/CMphYau2zXbfWzDR5aTEw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/dompurify": {+ "version": "3.4.10",+ "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.10.tgz",+ "integrity": "sha512-0xzNv0e7oYC6yyuOGZIABPM4qtg3QxLFniDNPP4ZP90wR8Yq3zgwpRbrNiT4N3IKqDbbYFEJLV+JWEs19aZ//w==",+ "license": "(MPL-2.0 OR Apache-2.0)",+ "optionalDependencies": {+ "@types/trusted-types": "^2.0.7"+ }+ },+ "node_modules/esbuild": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz",+ "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.25.12",+ "@esbuild/android-arm": "0.25.12",+ "@esbuild/android-arm64": "0.25.12",+ "@esbuild/android-x64": "0.25.12",+ "@esbuild/darwin-arm64": "0.25.12",+ "@esbuild/darwin-x64": "0.25.12",+ "@esbuild/freebsd-arm64": "0.25.12",+ "@esbuild/freebsd-x64": "0.25.12",+ "@esbuild/linux-arm": "0.25.12",+ "@esbuild/linux-arm64": "0.25.12",+ "@esbuild/linux-ia32": "0.25.12",+ "@esbuild/linux-loong64": "0.25.12",+ "@esbuild/linux-mips64el": "0.25.12",+ "@esbuild/linux-ppc64": "0.25.12",+ "@esbuild/linux-riscv64": "0.25.12",+ "@esbuild/linux-s390x": "0.25.12",+ "@esbuild/linux-x64": "0.25.12",+ "@esbuild/netbsd-arm64": "0.25.12",+ "@esbuild/netbsd-x64": "0.25.12",+ "@esbuild/openbsd-arm64": "0.25.12",+ "@esbuild/openbsd-x64": "0.25.12",+ "@esbuild/openharmony-arm64": "0.25.12",+ "@esbuild/sunos-x64": "0.25.12",+ "@esbuild/win32-arm64": "0.25.12",+ "@esbuild/win32-ia32": "0.25.12",+ "@esbuild/win32-x64": "0.25.12"+ }+ },+ "node_modules/esm-env": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/esm-env/-/esm-env-1.2.2.tgz",+ "integrity": "sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/esrap": {+ "version": "2.2.11",+ "resolved": "https://registry.npmjs.org/esrap/-/esrap-2.2.11.tgz",+ "integrity": "sha512-gPdx+I+BjYEinNMQaBXFjbaJVyoPMU4ZODg5mE+M4DqVG9VusAVHHjcBX+zqyITlI0DIARwDMMzZwAWj36dRoQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.4.15"+ },+ "peerDependencies": {+ "@typescript-eslint/types": "^8.2.0"+ },+ "peerDependenciesMeta": {+ "@typescript-eslint/types": {+ "optional": true+ }+ }+ },+ "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/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/is-reference": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.3.tgz",+ "integrity": "sha512-ixkJoqQvAP88E6wLydLGGqCJsrFUnqoH6HnaczB8XmDH1oaWU+xxdptvikTgaEhtZ53Ky6YXiBuUI2WXLMCwjw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "^1.0.6"+ }+ },+ "node_modules/kleur": {+ "version": "4.1.5",+ "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz",+ "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/locate-character": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/locate-character/-/locate-character-3.0.0.tgz",+ "integrity": "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/magic-string": {+ "version": "0.30.21",+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",+ "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.5"+ }+ },+ "node_modules/marked": {+ "version": "18.0.5",+ "resolved": "https://registry.npmjs.org/marked/-/marked-18.0.5.tgz",+ "integrity": "sha512-S6GcvALHg6K4ohtu4E7x0a1AqhAjp6cV8KhLSyN9qVapnzJkusVBxZRcIU9AeYsbe6P1hKDusSbEOzGyyuce6w==",+ "license": "MIT",+ "bin": {+ "marked": "bin/marked.js"+ },+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/mri": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz",+ "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/mrmime": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-2.0.1.tgz",+ "integrity": "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ }+ },+ "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.12",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz",+ "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==",+ "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/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.4",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",+ "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/postcss": {+ "version": "8.5.15",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz",+ "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==",+ "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.12",+ "picocolors": "^1.1.1",+ "source-map-js": "^1.2.1"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/readdirp": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz",+ "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 14.18.0"+ },+ "funding": {+ "type": "individual",+ "url": "https://paulmillr.com/funding/"+ }+ },+ "node_modules/rollup": {+ "version": "4.61.1",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.61.1.tgz",+ "integrity": "sha512-I4KW6iuRpuu2uHBLraZ1wNZe0DP7lnRha+VJ9tNaYVaVgKhW0aI3h4RYnoRPeql0flHm/Co55b7snEDcOfOJrA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "1.0.9"+ },+ "bin": {+ "rollup": "dist/bin/rollup"+ },+ "engines": {+ "node": ">=18.0.0",+ "npm": ">=8.0.0"+ },+ "optionalDependencies": {+ "@rollup/rollup-android-arm-eabi": "4.61.1",+ "@rollup/rollup-android-arm64": "4.61.1",+ "@rollup/rollup-darwin-arm64": "4.61.1",+ "@rollup/rollup-darwin-x64": "4.61.1",+ "@rollup/rollup-freebsd-arm64": "4.61.1",+ "@rollup/rollup-freebsd-x64": "4.61.1",+ "@rollup/rollup-linux-arm-gnueabihf": "4.61.1",+ "@rollup/rollup-linux-arm-musleabihf": "4.61.1",+ "@rollup/rollup-linux-arm64-gnu": "4.61.1",+ "@rollup/rollup-linux-arm64-musl": "4.61.1",+ "@rollup/rollup-linux-loong64-gnu": "4.61.1",+ "@rollup/rollup-linux-loong64-musl": "4.61.1",+ "@rollup/rollup-linux-ppc64-gnu": "4.61.1",+ "@rollup/rollup-linux-ppc64-musl": "4.61.1",+ "@rollup/rollup-linux-riscv64-gnu": "4.61.1",+ "@rollup/rollup-linux-riscv64-musl": "4.61.1",+ "@rollup/rollup-linux-s390x-gnu": "4.61.1",+ "@rollup/rollup-linux-x64-gnu": "4.61.1",+ "@rollup/rollup-linux-x64-musl": "4.61.1",+ "@rollup/rollup-openbsd-x64": "4.61.1",+ "@rollup/rollup-openharmony-arm64": "4.61.1",+ "@rollup/rollup-win32-arm64-msvc": "4.61.1",+ "@rollup/rollup-win32-ia32-msvc": "4.61.1",+ "@rollup/rollup-win32-x64-gnu": "4.61.1",+ "@rollup/rollup-win32-x64-msvc": "4.61.1",+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/sade": {+ "version": "1.8.1",+ "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz",+ "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "mri": "^1.1.0"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/set-cookie-parser": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-3.1.0.tgz",+ "integrity": "sha512-kjnC1DXBHcxaOaOXBHBeRtltsDG2nUiUni+jP92M9gYdW12rsmx92UsfpH7o5tDRs7I1ZZPSQJQGv3UaRfCiuw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/sirv": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/sirv/-/sirv-3.0.2.tgz",+ "integrity": "sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@polka/url": "^1.0.0-next.24",+ "mrmime": "^2.0.0",+ "totalist": "^3.0.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "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/svelte": {+ "version": "5.56.3",+ "resolved": "https://registry.npmjs.org/svelte/-/svelte-5.56.3.tgz",+ "integrity": "sha512-w7JvrM5IFl5cmfbY0TLik9o7mjRUJmRMhOR51tBPu708Gr/MjbGs7VnJnr/B0CaXeI4vtnOh7RKxDr0cwhMdDA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/remapping": "^2.3.4",+ "@jridgewell/sourcemap-codec": "^1.5.0",+ "@sveltejs/acorn-typescript": "^1.0.10",+ "@types/estree": "^1.0.5",+ "@types/trusted-types": "^2.0.7",+ "acorn": "^8.12.1",+ "aria-query": "5.3.1",+ "axobject-query": "^4.1.0",+ "clsx": "^2.1.1",+ "devalue": "^5.8.1",+ "esm-env": "^1.2.1",+ "esrap": "^2.2.11",+ "is-reference": "^3.0.3",+ "locate-character": "^3.0.0",+ "magic-string": "^0.30.11",+ "zimmerframe": "^1.1.2"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/svelte-check": {+ "version": "4.6.0",+ "resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-4.6.0.tgz",+ "integrity": "sha512-KhVnDFDSid57mmZtHz8gfW8AAGylOZ0vPnOIzVmAL+urzwK8sBYXRss953gD8T0OdgAQ11mdWhE6uadmtOz8TQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/trace-mapping": "^0.3.25",+ "@sveltejs/load-config": "0.1.1",+ "chokidar": "^4.0.1",+ "fdir": "^6.2.0",+ "picocolors": "^1.0.0",+ "sade": "^1.7.4"+ },+ "bin": {+ "svelte-check": "bin/svelte-check"+ },+ "engines": {+ "node": ">= 18.0.0"+ },+ "peerDependencies": {+ "svelte": "^4.0.0 || ^5.0.0-next.0",+ "typescript": ">=5.0.0"+ }+ },+ "node_modules/tinyglobby": {+ "version": "0.2.17",+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",+ "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fdir": "^6.5.0",+ "picomatch": "^4.0.4"+ },+ "engines": {+ "node": ">=12.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/SuperchupuDev"+ }+ },+ "node_modules/totalist": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/totalist/-/totalist-3.0.1.tgz",+ "integrity": "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/typescript": {+ "version": "5.6.3",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz",+ "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "node_modules/vite": {+ "version": "6.4.3",+ "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.3.tgz",+ "integrity": "sha512-NTKlcQjlAK7MlQoyb6LgaqHc8sso/pVyUJYWMws3jg21uTJw/LddqIFPcPqP6PzpgbIcZyKI85sFE4HBrQDA8A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "esbuild": "^0.25.0",+ "fdir": "^6.4.4",+ "picomatch": "^4.0.2",+ "postcss": "^8.5.3",+ "rollup": "^4.34.9",+ "tinyglobby": "^0.2.13"+ },+ "bin": {+ "vite": "bin/vite.js"+ },+ "engines": {+ "node": "^18.0.0 || ^20.0.0 || >=22.0.0"+ },+ "funding": {+ "url": "https://github.com/vitejs/vite?sponsor=1"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ },+ "peerDependencies": {+ "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",+ "jiti": ">=1.21.0",+ "less": "*",+ "lightningcss": "^1.21.0",+ "sass": "*",+ "sass-embedded": "*",+ "stylus": "*",+ "sugarss": "*",+ "terser": "^5.16.0",+ "tsx": "^4.8.1",+ "yaml": "^2.4.2"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ },+ "jiti": {+ "optional": true+ },+ "less": {+ "optional": true+ },+ "lightningcss": {+ "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/vitefu": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/vitefu/-/vitefu-1.1.3.tgz",+ "integrity": "sha512-ub4okH7Z5KLjb6hDyjqrGXqWtWvoYdU3IGm/NorpgHncKoLTCfRIbvlhBm7r0YstIaQRYlp4yEbFqDcKSzXSSg==",+ "dev": true,+ "license": "MIT",+ "workspaces": [+ "tests/deps/*",+ "tests/projects/*",+ "tests/projects/workspace/packages/*"+ ],+ "peerDependencies": {+ "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"+ },+ "peerDependenciesMeta": {+ "vite": {+ "optional": true+ }+ }+ },+ "node_modules/zimmerframe": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/zimmerframe/-/zimmerframe-1.1.4.tgz",+ "integrity": "sha512-B58NGBEoc8Y9MWWCQGl/gq9xBCe4IiKM0a2x7GZdQKOW5Exr8S1W24J6OgM1njK8xCRGvAJIL/MxXHf6SkmQKQ==",+ "dev": true,+ "license": "MIT"+ }+ }+}diff --git a/app/package.json b/app/package.jsonnew file mode 100644index 0000000..fc7524f--- /dev/null+++ b/app/package.json@@ -0,0 +1,35 @@+{+ "name": "app",+ "version": "0.1.0",+ "description": "",+ "type": "module",+ "scripts": {+ "dev": "vite dev",+ "build": "vite build",+ "preview": "vite preview",+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",+ "tauri": "tauri"+ },+ "license": "MIT",+ "dependencies": {+ "@fontsource-variable/inter": "^5.2.8",+ "@fontsource/jetbrains-mono": "^5.2.8",+ "@tauri-apps/api": "^2",+ "@tauri-apps/plugin-dialog": "^2.7.1",+ "@tauri-apps/plugin-fs": "^2.5.1",+ "@tauri-apps/plugin-opener": "^2",+ "dompurify": "^3.4.10",+ "marked": "^18.0.5"+ },+ "devDependencies": {+ "@sveltejs/adapter-static": "^3.0.6",+ "@sveltejs/kit": "^2.9.0",+ "@sveltejs/vite-plugin-svelte": "^5.0.0",+ "@tauri-apps/cli": "^2",+ "svelte": "^5.0.0",+ "svelte-check": "^4.0.0",+ "typescript": "~5.6.2",+ "vite": "^6.0.3"+ }+}diff --git a/app/src-tauri/.gitignore b/app/src-tauri/.gitignorenew file mode 100644index 0000000..b21bd68--- /dev/null+++ b/app/src-tauri/.gitignore@@ -0,0 +1,7 @@+# Generated by Cargo+# will have compiled files and executables+/target/++# Generated by Tauri+# will have schema files for capabilities auto-completion+/gen/schemasdiff --git a/app/src-tauri/Cargo.lock b/app/src-tauri/Cargo.locknew file mode 100644index 0000000..a4968d9--- /dev/null+++ b/app/src-tauri/Cargo.lock@@ -0,0 +1,5744 @@+# 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 = "aes"+version = "0.8.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0"+dependencies = [+ "cfg-if",+ "cipher",+ "cpufeatures",+]++[[package]]+name = "aho-corasick"+version = "1.1.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"+dependencies = [+ "memchr",+]++[[package]]+name = "alloc-no-stdlib"+version = "2.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3"++[[package]]+name = "alloc-stdlib"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece"+dependencies = [+ "alloc-no-stdlib",+]++[[package]]+name = "android_system_properties"+version = "0.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"+dependencies = [+ "libc",+]++[[package]]+name = "anyhow"+version = "1.0.102"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"++[[package]]+name = "app"+version = "0.1.0"+dependencies = [+ "flate2",+ "reqwest 0.12.28",+ "serde",+ "serde_json",+ "sha2",+ "tar",+ "tauri",+ "tauri-build",+ "tauri-plugin-dialog",+ "tauri-plugin-fs",+ "tauri-plugin-opener",+ "tokio",+ "zip",+]++[[package]]+name = "arbitrary"+version = "1.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"+dependencies = [+ "derive_arbitrary",+]++[[package]]+name = "async-broadcast"+version = "0.7.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532"+dependencies = [+ "event-listener",+ "event-listener-strategy",+ "futures-core",+ "pin-project-lite",+]++[[package]]+name = "async-channel"+version = "2.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2"+dependencies = [+ "concurrent-queue",+ "event-listener-strategy",+ "futures-core",+ "pin-project-lite",+]++[[package]]+name = "async-executor"+version = "1.14.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a"+dependencies = [+ "async-task",+ "concurrent-queue",+ "fastrand",+ "futures-lite",+ "pin-project-lite",+ "slab",+]++[[package]]+name = "async-io"+version = "2.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc"+dependencies = [+ "autocfg",+ "cfg-if",+ "concurrent-queue",+ "futures-io",+ "futures-lite",+ "parking",+ "polling",+ "rustix",+ "slab",+ "windows-sys 0.61.2",+]++[[package]]+name = "async-lock"+version = "3.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311"+dependencies = [+ "event-listener",+ "event-listener-strategy",+ "pin-project-lite",+]++[[package]]+name = "async-process"+version = "2.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75"+dependencies = [+ "async-channel",+ "async-io",+ "async-lock",+ "async-signal",+ "async-task",+ "blocking",+ "cfg-if",+ "event-listener",+ "futures-lite",+ "rustix",+]++[[package]]+name = "async-recursion"+version = "1.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "async-signal"+version = "0.2.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485"+dependencies = [+ "async-io",+ "async-lock",+ "atomic-waker",+ "cfg-if",+ "futures-core",+ "futures-io",+ "rustix",+ "signal-hook-registry",+ "slab",+ "windows-sys 0.61.2",+]++[[package]]+name = "async-task"+version = "4.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de"++[[package]]+name = "async-trait"+version = "0.1.89"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "atk"+version = "0.18.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "241b621213072e993be4f6f3a9e4b45f65b7e6faad43001be957184b7bb1824b"+dependencies = [+ "atk-sys",+ "glib",+ "libc",+]++[[package]]+name = "atk-sys"+version = "0.18.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c5e48b684b0ca77d2bbadeef17424c2ea3c897d44d566a1617e7e8f30614d086"+dependencies = [+ "glib-sys",+ "gobject-sys",+ "libc",+ "system-deps",+]++[[package]]+name = "atomic-waker"+version = "1.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"++[[package]]+name = "autocfg"+version = "1.5.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"++[[package]]+name = "base64"+version = "0.21.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"++[[package]]+name = "base64"+version = "0.22.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"++[[package]]+name = "bit-set"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"+dependencies = [+ "bit-vec",+]++[[package]]+name = "bit-vec"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"++[[package]]+name = "bitflags"+version = "1.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"++[[package]]+name = "bitflags"+version = "2.13.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8"+dependencies = [+ "serde_core",+]++[[package]]+name = "block-buffer"+version = "0.10.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"+dependencies = [+ "generic-array",+]++[[package]]+name = "block2"+version = "0.6.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5"+dependencies = [+ "objc2",+]++[[package]]+name = "blocking"+version = "1.6.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e83f8d02be6967315521be875afa792a316e28d57b5a2d401897e2a7921b7f21"+dependencies = [+ "async-channel",+ "async-task",+ "futures-io",+ "futures-lite",+ "piper",+]++[[package]]+name = "brotli"+version = "8.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8119e4516436f5708bbc474a9d395bf12f1b5395e93a92a56e647ac3388c8610"+dependencies = [+ "alloc-no-stdlib",+ "alloc-stdlib",+ "brotli-decompressor",+]++[[package]]+name = "brotli-decompressor"+version = "5.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5962523e1b92ce1b5e793d9169b9943eece10d39f62550bc04bb605d75b94924"+dependencies = [+ "alloc-no-stdlib",+ "alloc-stdlib",+]++[[package]]+name = "bs58"+version = "0.5.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4"+dependencies = [+ "tinyvec",+]++[[package]]+name = "bumpalo"+version = "3.20.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"++[[package]]+name = "bytemuck"+version = "1.25.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec"++[[package]]+name = "byteorder"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"++[[package]]+name = "bytes"+version = "1.11.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"+dependencies = [+ "serde",+]++[[package]]+name = "bzip2"+version = "0.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "49ecfb22d906f800d4fe833b6282cf4dc1c298f5057ca0b5445e5c209735ca47"+dependencies = [+ "bzip2-sys",+]++[[package]]+name = "bzip2-sys"+version = "0.1.13+1.0.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "225bff33b2141874fe80d71e07d6eec4f85c5c216453dd96388240f96e1acc14"+dependencies = [+ "cc",+ "pkg-config",+]++[[package]]+name = "cairo-rs"+version = "0.18.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8ca26ef0159422fb77631dc9d17b102f253b876fe1586b03b803e63a309b4ee2"+dependencies = [+ "bitflags 2.13.0",+ "cairo-sys-rs",+ "glib",+ "libc",+ "once_cell",+ "thiserror 1.0.69",+]++[[package]]+name = "cairo-sys-rs"+version = "0.18.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "685c9fa8e590b8b3d678873528d83411db17242a73fccaed827770ea0fedda51"+dependencies = [+ "glib-sys",+ "libc",+ "system-deps",+]++[[package]]+name = "camino"+version = "1.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e629a66d692cb9ff1a1c664e41771b3dcaf961985a9774c0eb0bd1b51cf60a48"+dependencies = [+ "serde_core",+]++[[package]]+name = "cargo-platform"+version = "0.1.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea"+dependencies = [+ "serde",+]++[[package]]+name = "cargo_metadata"+version = "0.19.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba"+dependencies = [+ "camino",+ "cargo-platform",+ "semver",+ "serde",+ "serde_json",+ "thiserror 2.0.18",+]++[[package]]+name = "cargo_toml"+version = "0.22.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "374b7c592d9c00c1f4972ea58390ac6b18cbb6ab79011f3bdc90a0b82ca06b77"+dependencies = [+ "serde",+ "toml 0.9.12+spec-1.1.0",+]++[[package]]+name = "cc"+version = "1.2.63"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "556e016178bb5662a08681bbe0f00f8e17631781a4dfc8c45e466e4b185ec27f"+dependencies = [+ "find-msvc-tools",+ "jobserver",+ "libc",+ "shlex",+]++[[package]]+name = "cesu8"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"++[[package]]+name = "cfb"+version = "0.7.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d38f2da7a0a2c4ccf0065be06397cc26a81f4e528be095826eee9d4adbb8c60f"+dependencies = [+ "byteorder",+ "fnv",+ "uuid",+]++[[package]]+name = "cfg-expr"+version = "0.15.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02"+dependencies = [+ "smallvec",+ "target-lexicon",+]++[[package]]+name = "cfg-if"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"++[[package]]+name = "chrono"+version = "0.4.45"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327"+dependencies = [+ "iana-time-zone",+ "num-traits",+ "serde",+ "windows-link 0.2.1",+]++[[package]]+name = "cipher"+version = "0.4.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad"+dependencies = [+ "crypto-common",+ "inout",+]++[[package]]+name = "combine"+version = "4.6.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd"+dependencies = [+ "bytes",+ "memchr",+]++[[package]]+name = "concurrent-queue"+version = "2.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973"+dependencies = [+ "crossbeam-utils",+]++[[package]]+name = "constant_time_eq"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6"++[[package]]+name = "cookie"+version = "0.18.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747"+dependencies = [+ "time",+ "version_check",+]++[[package]]+name = "core-foundation"+version = "0.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"+dependencies = [+ "core-foundation-sys",+ "libc",+]++[[package]]+name = "core-foundation-sys"+version = "0.8.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"++[[package]]+name = "core-graphics"+version = "0.25.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "064badf302c3194842cf2c5d61f56cc88e54a759313879cdf03abdd27d0c3b97"+dependencies = [+ "bitflags 2.13.0",+ "core-foundation",+ "core-graphics-types",+ "foreign-types 0.5.0",+ "libc",+]++[[package]]+name = "core-graphics-types"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb"+dependencies = [+ "bitflags 2.13.0",+ "core-foundation",+ "libc",+]++[[package]]+name = "cpufeatures"+version = "0.2.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"+dependencies = [+ "libc",+]++[[package]]+name = "crc"+version = "3.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5eb8a2a1cd12ab0d987a5d5e825195d372001a4094a0376319d5a0ad71c1ba0d"+dependencies = [+ "crc-catalog",+]++[[package]]+name = "crc-catalog"+version = "2.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "217698eaf96b4a3f0bc4f3662aaa55bdf913cd54d7204591faa790070c6d0853"++[[package]]+name = "crc32fast"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"+dependencies = [+ "cfg-if",+]++[[package]]+name = "crossbeam-channel"+version = "0.5.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2"+dependencies = [+ "crossbeam-utils",+]++[[package]]+name = "crossbeam-utils"+version = "0.8.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"++[[package]]+name = "crypto-common"+version = "0.1.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"+dependencies = [+ "generic-array",+ "typenum",+]++[[package]]+name = "cssparser"+version = "0.36.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dae61cf9c0abb83bd659dab65b7e4e38d8236824c85f0f804f173567bda257d2"+dependencies = [+ "cssparser-macros",+ "dtoa-short",+ "itoa",+ "phf",+ "smallvec",+]++[[package]]+name = "cssparser-macros"+version = "0.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331"+dependencies = [+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "ctor"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "352d39c2f7bef1d6ad73db6f5160efcaed66d94ef8c6c573a8410c00bf909a98"+dependencies = [+ "ctor-proc-macro",+ "dtor",+]++[[package]]+name = "ctor-proc-macro"+version = "0.0.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "52560adf09603e58c9a7ee1fe1dcb95a16927b17c127f0ac02d6e768a0e25bc1"++[[package]]+name = "darling"+version = "0.23.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d"+dependencies = [+ "darling_core",+ "darling_macro",+]++[[package]]+name = "darling_core"+version = "0.23.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0"+dependencies = [+ "ident_case",+ "proc-macro2",+ "quote",+ "strsim",+ "syn 2.0.117",+]++[[package]]+name = "darling_macro"+version = "0.23.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d"+dependencies = [+ "darling_core",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "dbus"+version = "0.9.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b942602992bb7acfd1f51c49811c58a610ef9181b6e66f3e519d79b540a3bf73"+dependencies = [+ "libc",+ "libdbus-sys",+ "windows-sys 0.61.2",+]++[[package]]+name = "deflate64"+version = "0.1.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ac6b926516df9c60bfa16e107b21086399f8285a44ca9711344b9e553c5146e2"++[[package]]+name = "deranged"+version = "0.5.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c"+dependencies = [+ "powerfmt",+ "serde_core",+]++[[package]]+name = "derive_arbitrary"+version = "1.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1e567bd82dcff979e4b03460c307b3cdc9e96fde3d73bed1496d2bc75d9dd62a"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "derive_more"+version = "2.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134"+dependencies = [+ "derive_more-impl",+]++[[package]]+name = "derive_more-impl"+version = "2.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb"+dependencies = [+ "proc-macro2",+ "quote",+ "rustc_version",+ "syn 2.0.117",+]++[[package]]+name = "digest"+version = "0.10.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"+dependencies = [+ "block-buffer",+ "crypto-common",+ "subtle",+]++[[package]]+name = "dirs"+version = "6.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e"+dependencies = [+ "dirs-sys",+]++[[package]]+name = "dirs-sys"+version = "0.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab"+dependencies = [+ "libc",+ "option-ext",+ "redox_users",+ "windows-sys 0.61.2",+]++[[package]]+name = "dispatch2"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38"+dependencies = [+ "bitflags 2.13.0",+ "block2",+ "libc",+ "objc2",+]++[[package]]+name = "displaydoc"+version = "0.2.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1ac70aa55017e108007fbaf5aa0f54b021c98f92ff8af59d42eda9da96e3dd4f"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "dlopen2"+version = "0.8.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5e2c5bd4158e66d1e215c49b837e11d62f3267b30c92f1d171c4d3105e3dc4d4"+dependencies = [+ "dlopen2_derive",+ "libc",+ "once_cell",+ "winapi",+]++[[package]]+name = "dlopen2_derive"+version = "0.4.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0fbbb781877580993a8707ec48672673ec7b81eeba04cfd2310bd28c08e47c8f"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "dom_query"+version = "0.27.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "521e380c0c8afb8d9a1e83a1822ee03556fc3e3e7dbc1fd30be14e37f9cb3f89"+dependencies = [+ "bit-set",+ "cssparser",+ "foldhash 0.2.0",+ "html5ever",+ "precomputed-hash",+ "selectors",+ "tendril",+]++[[package]]+name = "dpi"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76"+dependencies = [+ "serde",+]++[[package]]+name = "dtoa"+version = "1.0.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4c3cf4824e2d5f025c7b531afcb2325364084a16806f6d47fbc1f5fbd9960590"++[[package]]+name = "dtoa-short"+version = "0.3.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cd1511a7b6a56299bd043a9c167a6d2bfb37bf84a6dfceaba651168adfb43c87"+dependencies = [+ "dtoa",+]++[[package]]+name = "dtor"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f1057d6c64987086ff8ed0fd3fbf377a6b7d205cc7715868cd401705f715cbe4"+dependencies = [+ "dtor-proc-macro",+]++[[package]]+name = "dtor-proc-macro"+version = "0.0.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f678cf4a922c215c63e0de95eb1ff08a958a81d47e485cf9da1e27bf6305cfa5"++[[package]]+name = "dunce"+version = "1.0.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"++[[package]]+name = "dyn-clone"+version = "1.0.20"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"++[[package]]+name = "embed-resource"+version = "3.0.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c31a88c8d26de40ed18fe748c547845aa39de1db3afd958f8cb91579f3644bcb"+dependencies = [+ "cc",+ "memchr",+ "rustc_version",+ "toml 1.1.2+spec-1.1.0",+ "vswhom",+ "winreg",+]++[[package]]+name = "embed_plist"+version = "1.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7"++[[package]]+name = "endi"+version = "1.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099"++[[package]]+name = "enumflags2"+version = "0.7.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef"+dependencies = [+ "enumflags2_derive",+ "serde",+]++[[package]]+name = "enumflags2_derive"+version = "0.7.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "equivalent"+version = "1.0.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"++[[package]]+name = "erased-serde"+version = "0.4.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d2add8a07dd6a8d93ff627029c51de145e12686fbc36ecb298ac22e74cf02dec"+dependencies = [+ "serde",+ "serde_core",+ "typeid",+]++[[package]]+name = "errno"+version = "0.3.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"+dependencies = [+ "libc",+ "windows-sys 0.61.2",+]++[[package]]+name = "event-listener"+version = "5.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e13b66accf52311f30a0db42147dadea9850cb48cd070028831ae5f5d4b856ab"+dependencies = [+ "concurrent-queue",+ "parking",+ "pin-project-lite",+]++[[package]]+name = "event-listener-strategy"+version = "0.5.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93"+dependencies = [+ "event-listener",+ "pin-project-lite",+]++[[package]]+name = "fastrand"+version = "2.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6"++[[package]]+name = "fdeflate"+version = "0.3.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c"+dependencies = [+ "simd-adler32",+]++[[package]]+name = "field-offset"+version = "0.3.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f"+dependencies = [+ "memoffset",+ "rustc_version",+]++[[package]]+name = "filetime"+version = "0.2.29"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5c287a33c7f0a620c38e641e7f60827713987b3c0f26e8ddc9462cc69cf75759"+dependencies = [+ "cfg-if",+ "libc",+]++[[package]]+name = "find-msvc-tools"+version = "0.1.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"++[[package]]+name = "flate2"+version = "1.1.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"+dependencies = [+ "crc32fast",+ "miniz_oxide",+]++[[package]]+name = "fnv"+version = "1.0.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"++[[package]]+name = "foldhash"+version = "0.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"++[[package]]+name = "foldhash"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"++[[package]]+name = "foreign-types"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"+dependencies = [+ "foreign-types-shared 0.1.1",+]++[[package]]+name = "foreign-types"+version = "0.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965"+dependencies = [+ "foreign-types-macros",+ "foreign-types-shared 0.3.1",+]++[[package]]+name = "foreign-types-macros"+version = "0.2.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "foreign-types-shared"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"++[[package]]+name = "foreign-types-shared"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"++[[package]]+name = "form_urlencoded"+version = "1.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"+dependencies = [+ "percent-encoding",+]++[[package]]+name = "futures-channel"+version = "0.3.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d"+dependencies = [+ "futures-core",+]++[[package]]+name = "futures-core"+version = "0.3.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d"++[[package]]+name = "futures-executor"+version = "0.3.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d"+dependencies = [+ "futures-core",+ "futures-task",+ "futures-util",+]++[[package]]+name = "futures-io"+version = "0.3.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718"++[[package]]+name = "futures-lite"+version = "2.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad"+dependencies = [+ "fastrand",+ "futures-core",+ "futures-io",+ "parking",+ "pin-project-lite",+]++[[package]]+name = "futures-macro"+version = "0.3.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "futures-sink"+version = "0.3.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893"++[[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-io",+ "futures-macro",+ "futures-sink",+ "futures-task",+ "memchr",+ "pin-project-lite",+ "slab",+]++[[package]]+name = "gdk"+version = "0.18.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d9f245958c627ac99d8e529166f9823fb3b838d1d41fd2b297af3075093c2691"+dependencies = [+ "cairo-rs",+ "gdk-pixbuf",+ "gdk-sys",+ "gio",+ "glib",+ "libc",+ "pango",+]++[[package]]+name = "gdk-pixbuf"+version = "0.18.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "50e1f5f1b0bfb830d6ccc8066d18db35c487b1b2b1e8589b5dfe9f07e8defaec"+dependencies = [+ "gdk-pixbuf-sys",+ "gio",+ "glib",+ "libc",+ "once_cell",+]++[[package]]+name = "gdk-pixbuf-sys"+version = "0.18.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3f9839ea644ed9c97a34d129ad56d38a25e6756f99f3a88e15cd39c20629caf7"+dependencies = [+ "gio-sys",+ "glib-sys",+ "gobject-sys",+ "libc",+ "system-deps",+]++[[package]]+name = "gdk-sys"+version = "0.18.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5c2d13f38594ac1e66619e188c6d5a1adb98d11b2fcf7894fc416ad76aa2f3f7"+dependencies = [+ "cairo-sys-rs",+ "gdk-pixbuf-sys",+ "gio-sys",+ "glib-sys",+ "gobject-sys",+ "libc",+ "pango-sys",+ "pkg-config",+ "system-deps",+]++[[package]]+name = "gdkwayland-sys"+version = "0.18.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "140071d506d223f7572b9f09b5e155afbd77428cd5cc7af8f2694c41d98dfe69"+dependencies = [+ "gdk-sys",+ "glib-sys",+ "gobject-sys",+ "libc",+ "pkg-config",+ "system-deps",+]++[[package]]+name = "gdkx11"+version = "0.18.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3caa00e14351bebbc8183b3c36690327eb77c49abc2268dd4bd36b856db3fbfe"+dependencies = [+ "gdk",+ "gdkx11-sys",+ "gio",+ "glib",+ "libc",+ "x11",+]++[[package]]+name = "gdkx11-sys"+version = "0.18.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6e2e7445fe01ac26f11601db260dd8608fe172514eb63b3b5e261ea6b0f4428d"+dependencies = [+ "gdk-sys",+ "glib-sys",+ "libc",+ "system-deps",+ "x11",+]++[[package]]+name = "generic-array"+version = "0.14.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"+dependencies = [+ "typenum",+ "version_check",+]++[[package]]+name = "getrandom"+version = "0.2.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"+dependencies = [+ "cfg-if",+ "libc",+ "wasi",+]++[[package]]+name = "getrandom"+version = "0.3.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"+dependencies = [+ "cfg-if",+ "js-sys",+ "libc",+ "r-efi 5.3.0",+ "wasip2",+ "wasm-bindgen",+]++[[package]]+name = "getrandom"+version = "0.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555"+dependencies = [+ "cfg-if",+ "libc",+ "r-efi 6.0.0",+ "wasip2",+ "wasip3",+]++[[package]]+name = "gio"+version = "0.18.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d4fc8f532f87b79cbc51a79748f16a6828fb784be93145a322fa14d06d354c73"+dependencies = [+ "futures-channel",+ "futures-core",+ "futures-io",+ "futures-util",+ "gio-sys",+ "glib",+ "libc",+ "once_cell",+ "pin-project-lite",+ "smallvec",+ "thiserror 1.0.69",+]++[[package]]+name = "gio-sys"+version = "0.18.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "37566df850baf5e4cb0dfb78af2e4b9898d817ed9263d1090a2df958c64737d2"+dependencies = [+ "glib-sys",+ "gobject-sys",+ "libc",+ "system-deps",+ "winapi",+]++[[package]]+name = "glib"+version = "0.18.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "233daaf6e83ae6a12a52055f568f9d7cf4671dabb78ff9560ab6da230ce00ee5"+dependencies = [+ "bitflags 2.13.0",+ "futures-channel",+ "futures-core",+ "futures-executor",+ "futures-task",+ "futures-util",+ "gio-sys",+ "glib-macros",+ "glib-sys",+ "gobject-sys",+ "libc",+ "memchr",+ "once_cell",+ "smallvec",+ "thiserror 1.0.69",+]++[[package]]+name = "glib-macros"+version = "0.18.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0bb0228f477c0900c880fd78c8759b95c7636dbd7842707f49e132378aa2acdc"+dependencies = [+ "heck 0.4.1",+ "proc-macro-crate 2.0.2",+ "proc-macro-error",+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "glib-sys"+version = "0.18.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "063ce2eb6a8d0ea93d2bf8ba1957e78dbab6be1c2220dd3daca57d5a9d869898"+dependencies = [+ "libc",+ "system-deps",+]++[[package]]+name = "glob"+version = "0.3.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"++[[package]]+name = "gobject-sys"+version = "0.18.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0850127b514d1c4a4654ead6dedadb18198999985908e6ffe4436f53c785ce44"+dependencies = [+ "glib-sys",+ "libc",+ "system-deps",+]++[[package]]+name = "gtk"+version = "0.18.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fd56fb197bfc42bd5d2751f4f017d44ff59fbb58140c6b49f9b3b2bdab08506a"+dependencies = [+ "atk",+ "cairo-rs",+ "field-offset",+ "futures-channel",+ "gdk",+ "gdk-pixbuf",+ "gio",+ "glib",+ "gtk-sys",+ "gtk3-macros",+ "libc",+ "pango",+ "pkg-config",+]++[[package]]+name = "gtk-sys"+version = "0.18.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8f29a1c21c59553eb7dd40e918be54dccd60c52b049b75119d5d96ce6b624414"+dependencies = [+ "atk-sys",+ "cairo-sys-rs",+ "gdk-pixbuf-sys",+ "gdk-sys",+ "gio-sys",+ "glib-sys",+ "gobject-sys",+ "libc",+ "pango-sys",+ "system-deps",+]++[[package]]+name = "gtk3-macros"+version = "0.18.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "52ff3c5b21f14f0736fed6dcfc0bfb4225ebf5725f3c0209edeec181e4d73e9d"+dependencies = [+ "proc-macro-crate 1.3.1",+ "proc-macro-error",+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "hashbrown"+version = "0.12.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"++[[package]]+name = "hashbrown"+version = "0.15.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"+dependencies = [+ "foldhash 0.1.5",+]++[[package]]+name = "hashbrown"+version = "0.17.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"++[[package]]+name = "heck"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"++[[package]]+name = "heck"+version = "0.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"++[[package]]+name = "hermit-abi"+version = "0.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"++[[package]]+name = "hex"+version = "0.4.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"++[[package]]+name = "hmac"+version = "0.12.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"+dependencies = [+ "digest",+]++[[package]]+name = "html5ever"+version = "0.38.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1054432bae2f14e0061e33d23402fbaa67a921d319d56adc6bcf887ddad1cbc2"+dependencies = [+ "log",+ "markup5ever",+]++[[package]]+name = "http"+version = "1.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6970f50e31d6fc17d3fa27329444bfa74e196cf62e95052a3f6fee181dba6425"+dependencies = [+ "bytes",+ "itoa",+]++[[package]]+name = "http-body"+version = "1.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184"+dependencies = [+ "bytes",+ "http",+]++[[package]]+name = "http-body-util"+version = "0.1.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a"+dependencies = [+ "bytes",+ "futures-core",+ "http",+ "http-body",+ "pin-project-lite",+]++[[package]]+name = "httparse"+version = "1.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"++[[package]]+name = "hyper"+version = "1.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "55281c53a1894c864990125767da440a4e630446785086f52523b20033b74498"+dependencies = [+ "atomic-waker",+ "bytes",+ "futures-channel",+ "futures-core",+ "http",+ "http-body",+ "httparse",+ "itoa",+ "pin-project-lite",+ "smallvec",+ "tokio",+ "want",+]++[[package]]+name = "hyper-tls"+version = "0.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0"+dependencies = [+ "bytes",+ "http-body-util",+ "hyper",+ "hyper-util",+ "native-tls",+ "tokio",+ "tokio-native-tls",+ "tower-service",+]++[[package]]+name = "hyper-util"+version = "0.1.20"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0"+dependencies = [+ "base64 0.22.1",+ "bytes",+ "futures-channel",+ "futures-util",+ "http",+ "http-body",+ "hyper",+ "ipnet",+ "libc",+ "percent-encoding",+ "pin-project-lite",+ "socket2",+ "tokio",+ "tower-service",+ "tracing",+]++[[package]]+name = "iana-time-zone"+version = "0.1.65"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470"+dependencies = [+ "android_system_properties",+ "core-foundation-sys",+ "iana-time-zone-haiku",+ "js-sys",+ "log",+ "wasm-bindgen",+ "windows-core 0.62.2",+]++[[package]]+name = "iana-time-zone-haiku"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"+dependencies = [+ "cc",+]++[[package]]+name = "ico"+version = "0.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3e795dff5605e0f04bff85ca41b51a96b83e80b281e96231bcaaf1ac35103371"+dependencies = [+ "byteorder",+ "png 0.17.16",+]++[[package]]+name = "icu_collections"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c"+dependencies = [+ "displaydoc",+ "potential_utf",+ "utf8_iter",+ "yoke",+ "zerofrom",+ "zerovec",+]++[[package]]+name = "icu_locale_core"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29"+dependencies = [+ "displaydoc",+ "litemap",+ "tinystr",+ "writeable",+ "zerovec",+]++[[package]]+name = "icu_normalizer"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4"+dependencies = [+ "icu_collections",+ "icu_normalizer_data",+ "icu_properties",+ "icu_provider",+ "smallvec",+ "zerovec",+]++[[package]]+name = "icu_normalizer_data"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38"++[[package]]+name = "icu_properties"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de"+dependencies = [+ "icu_collections",+ "icu_locale_core",+ "icu_properties_data",+ "icu_provider",+ "zerotrie",+ "zerovec",+]++[[package]]+name = "icu_properties_data"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14"++[[package]]+name = "icu_provider"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421"+dependencies = [+ "displaydoc",+ "icu_locale_core",+ "writeable",+ "yoke",+ "zerofrom",+ "zerotrie",+ "zerovec",+]++[[package]]+name = "id-arena"+version = "2.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954"++[[package]]+name = "ident_case"+version = "1.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"++[[package]]+name = "idna"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"+dependencies = [+ "idna_adapter",+ "smallvec",+ "utf8_iter",+]++[[package]]+name = "idna_adapter"+version = "1.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"+dependencies = [+ "icu_normalizer",+ "icu_properties",+]++[[package]]+name = "indexmap"+version = "1.9.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"+dependencies = [+ "autocfg",+ "hashbrown 0.12.3",+ "serde",+]++[[package]]+name = "indexmap"+version = "2.14.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"+dependencies = [+ "equivalent",+ "hashbrown 0.17.1",+ "serde",+ "serde_core",+]++[[package]]+name = "infer"+version = "0.19.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a588916bfdfd92e71cacef98a63d9b1f0d74d6599980d11894290e7ddefffcf7"+dependencies = [+ "cfb",+]++[[package]]+name = "inout"+version = "0.1.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01"+dependencies = [+ "generic-array",+]++[[package]]+name = "ipnet"+version = "2.12.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2"++[[package]]+name = "is-docker"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "928bae27f42bc99b60d9ac7334e3a21d10ad8f1835a4e12ec3ec0464765ed1b3"+dependencies = [+ "once_cell",+]++[[package]]+name = "is-wsl"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "173609498df190136aa7dea1a91db051746d339e18476eed5ca40521f02d7aa5"+dependencies = [+ "is-docker",+ "once_cell",+]++[[package]]+name = "itoa"+version = "1.0.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"++[[package]]+name = "javascriptcore-rs"+version = "1.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ca5671e9ffce8ffba57afc24070e906da7fc4b1ba66f2cabebf61bf2ea257fcc"+dependencies = [+ "bitflags 1.3.2",+ "glib",+ "javascriptcore-rs-sys",+]++[[package]]+name = "javascriptcore-rs-sys"+version = "1.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "af1be78d14ffa4b75b66df31840478fef72b51f8c2465d4ca7c194da9f7a5124"+dependencies = [+ "glib-sys",+ "gobject-sys",+ "libc",+ "system-deps",+]++[[package]]+name = "jni"+version = "0.21.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97"+dependencies = [+ "cesu8",+ "cfg-if",+ "combine",+ "jni-sys 0.3.1",+ "log",+ "thiserror 1.0.69",+ "walkdir",+ "windows-sys 0.45.0",+]++[[package]]+name = "jni-sys"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258"+dependencies = [+ "jni-sys 0.4.1",+]++[[package]]+name = "jni-sys"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2"+dependencies = [+ "jni-sys-macros",+]++[[package]]+name = "jni-sys-macros"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264"+dependencies = [+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "jobserver"+version = "0.1.34"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33"+dependencies = [+ "getrandom 0.3.4",+ "libc",+]++[[package]]+name = "js-sys"+version = "0.3.100"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f2025f20d7a4fa7785846e7b63d10a76d3f1cee98ee5cb79ea59703f95e42162"+dependencies = [+ "cfg-if",+ "futures-util",+ "wasm-bindgen",+]++[[package]]+name = "json-patch"+version = "3.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "863726d7afb6bc2590eeff7135d923545e5e964f004c2ccf8716c25e70a86f08"+dependencies = [+ "jsonptr",+ "serde",+ "serde_json",+ "thiserror 1.0.69",+]++[[package]]+name = "jsonptr"+version = "0.6.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5dea2b27dd239b2556ed7a25ba842fe47fd602e7fc7433c2a8d6106d4d9edd70"+dependencies = [+ "serde",+ "serde_json",+]++[[package]]+name = "keyboard-types"+version = "0.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b750dcadc39a09dbadd74e118f6dd6598df77fa01df0cfcdc52c28dece74528a"+dependencies = [+ "bitflags 2.13.0",+ "serde",+ "unicode-segmentation",+]++[[package]]+name = "leb128fmt"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"++[[package]]+name = "libappindicator"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "03589b9607c868cc7ae54c0b2a22c8dc03dd41692d48f2d7df73615c6a95dc0a"+dependencies = [+ "glib",+ "gtk",+ "gtk-sys",+ "libappindicator-sys",+ "log",+]++[[package]]+name = "libappindicator-sys"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6e9ec52138abedcc58dc17a7c6c0c00a2bdb4f3427c7f63fa97fd0d859155caf"+dependencies = [+ "gtk-sys",+ "libloading",+ "once_cell",+]++[[package]]+name = "libc"+version = "0.2.186"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"++[[package]]+name = "libdbus-sys"+version = "0.2.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "328c4789d42200f1eeec05bd86c9c13c7f091d2ba9a6ea35acdf51f31bc0f043"+dependencies = [+ "pkg-config",+]++[[package]]+name = "libloading"+version = "0.7.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f"+dependencies = [+ "cfg-if",+ "winapi",+]++[[package]]+name = "libredox"+version = "0.1.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f02ab6bace2054fb888a3c16f990117b579d14a3088e472d63c6011fa185c9d3"+dependencies = [+ "libc",+]++[[package]]+name = "linux-raw-sys"+version = "0.12.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"++[[package]]+name = "litemap"+version = "0.8.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0"++[[package]]+name = "lock_api"+version = "0.4.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"+dependencies = [+ "scopeguard",+]++[[package]]+name = "log"+version = "0.4.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "953f07c43838f8e6f9758cab68bf5bed85465e7587ebe0b823f1bcd81978ad3a"++[[package]]+name = "lzma-rs"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "297e814c836ae64db86b36cf2a557ba54368d03f6afcd7d947c266692f71115e"+dependencies = [+ "byteorder",+ "crc",+]++[[package]]+name = "lzma-sys"+version = "0.1.20"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5fda04ab3764e6cde78b9974eec4f779acaba7c4e84b36eca3cf77c581b85d27"+dependencies = [+ "cc",+ "libc",+ "pkg-config",+]++[[package]]+name = "markup5ever"+version = "0.38.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8983d30f2915feeaaab2d6babdd6bc7e9ed1a00b66b5e6d74df19aa9c0e91862"+dependencies = [+ "log",+ "tendril",+ "web_atoms",+]++[[package]]+name = "memchr"+version = "2.8.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6b947ae49db0d222b1dbc6b113ce7248a3fc3a6ca21b696717bfc000ba4484d8"++[[package]]+name = "memoffset"+version = "0.9.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"+dependencies = [+ "autocfg",+]++[[package]]+name = "mime"+version = "0.3.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"++[[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 = "mio"+version = "1.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "02bd0af71c67b473010cbbc60715ee815645a4dc942899111f494b4b737d6fda"+dependencies = [+ "libc",+ "wasi",+ "windows-sys 0.61.2",+]++[[package]]+name = "muda"+version = "0.19.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "47a2e3dff89cd322c66647942668faee0a2b1f88ea6cbb4d374b4a8d7e92528c"+dependencies = [+ "crossbeam-channel",+ "dpi",+ "gtk",+ "keyboard-types",+ "objc2",+ "objc2-app-kit",+ "objc2-core-foundation",+ "objc2-foundation",+ "once_cell",+ "png 0.18.1",+ "serde",+ "thiserror 2.0.18",+ "windows-sys 0.61.2",+]++[[package]]+name = "native-tls"+version = "0.2.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "465500e14ea162429d264d44189adc38b199b62b1c21eea9f69e4b73cb03bbf2"+dependencies = [+ "libc",+ "log",+ "openssl",+ "openssl-probe",+ "openssl-sys",+ "schannel",+ "security-framework",+ "security-framework-sys",+ "tempfile",+]++[[package]]+name = "ndk"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4"+dependencies = [+ "bitflags 2.13.0",+ "jni-sys 0.3.1",+ "log",+ "ndk-sys",+ "num_enum",+ "raw-window-handle",+ "thiserror 1.0.69",+]++[[package]]+name = "ndk-sys"+version = "0.6.0+11769913"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873"+dependencies = [+ "jni-sys 0.3.1",+]++[[package]]+name = "new_debug_unreachable"+version = "1.0.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"++[[package]]+name = "num-conv"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441"++[[package]]+name = "num-traits"+version = "0.2.19"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"+dependencies = [+ "autocfg",+]++[[package]]+name = "num_enum"+version = "0.7.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26"+dependencies = [+ "num_enum_derive",+ "rustversion",+]++[[package]]+name = "num_enum_derive"+version = "0.7.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8"+dependencies = [+ "proc-macro-crate 3.5.0",+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "objc2"+version = "0.6.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f"+dependencies = [+ "objc2-encode",+ "objc2-exception-helper",+]++[[package]]+name = "objc2-app-kit"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c"+dependencies = [+ "bitflags 2.13.0",+ "block2",+ "objc2",+ "objc2-core-foundation",+ "objc2-foundation",+]++[[package]]+name = "objc2-cloud-kit"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c"+dependencies = [+ "bitflags 2.13.0",+ "objc2",+ "objc2-foundation",+]++[[package]]+name = "objc2-core-data"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa"+dependencies = [+ "objc2",+ "objc2-foundation",+]++[[package]]+name = "objc2-core-foundation"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"+dependencies = [+ "bitflags 2.13.0",+ "dispatch2",+ "objc2",+]++[[package]]+name = "objc2-core-graphics"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"+dependencies = [+ "bitflags 2.13.0",+ "dispatch2",+ "objc2",+ "objc2-core-foundation",+ "objc2-io-surface",+]++[[package]]+name = "objc2-core-image"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006"+dependencies = [+ "objc2",+ "objc2-foundation",+]++[[package]]+name = "objc2-core-location"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009"+dependencies = [+ "objc2",+ "objc2-foundation",+]++[[package]]+name = "objc2-core-text"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d"+dependencies = [+ "bitflags 2.13.0",+ "objc2",+ "objc2-core-foundation",+ "objc2-core-graphics",+]++[[package]]+name = "objc2-encode"+version = "4.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33"++[[package]]+name = "objc2-exception-helper"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c7a1c5fbb72d7735b076bb47b578523aedc40f3c439bea6dfd595c089d79d98a"+dependencies = [+ "cc",+]++[[package]]+name = "objc2-foundation"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"+dependencies = [+ "bitflags 2.13.0",+ "block2",+ "libc",+ "objc2",+ "objc2-core-foundation",+]++[[package]]+name = "objc2-io-surface"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"+dependencies = [+ "bitflags 2.13.0",+ "objc2",+ "objc2-core-foundation",+]++[[package]]+name = "objc2-quartz-core"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f"+dependencies = [+ "bitflags 2.13.0",+ "objc2",+ "objc2-core-foundation",+ "objc2-foundation",+]++[[package]]+name = "objc2-ui-kit"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22"+dependencies = [+ "bitflags 2.13.0",+ "block2",+ "objc2",+ "objc2-cloud-kit",+ "objc2-core-data",+ "objc2-core-foundation",+ "objc2-core-graphics",+ "objc2-core-image",+ "objc2-core-location",+ "objc2-core-text",+ "objc2-foundation",+ "objc2-quartz-core",+ "objc2-user-notifications",+]++[[package]]+name = "objc2-user-notifications"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e"+dependencies = [+ "objc2",+ "objc2-foundation",+]++[[package]]+name = "objc2-web-kit"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f"+dependencies = [+ "bitflags 2.13.0",+ "block2",+ "objc2",+ "objc2-app-kit",+ "objc2-core-foundation",+ "objc2-foundation",+]++[[package]]+name = "once_cell"+version = "1.21.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"++[[package]]+name = "open"+version = "5.3.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2fbaa89d2ddc8473c78a3adf69eea8cffa28c483b8e02a971ef31527cd0fc92c"+dependencies = [+ "dunce",+ "is-wsl",+ "libc",+ "pathdiff",+]++[[package]]+name = "openssl"+version = "0.10.80"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a45fa2aa886c42762255da344f0a0d313e254066c46aad76f300c3d3da62d967"+dependencies = [+ "bitflags 2.13.0",+ "cfg-if",+ "foreign-types 0.3.2",+ "libc",+ "openssl-macros",+ "openssl-sys",+]++[[package]]+name = "openssl-macros"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "openssl-probe"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"++[[package]]+name = "openssl-sys"+version = "0.9.116"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f28a22dc7140cda5f096e5e7724a6962ca81a7f8bfd2979f9b18c11af56318c4"+dependencies = [+ "cc",+ "libc",+ "pkg-config",+ "vcpkg",+]++[[package]]+name = "option-ext"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"++[[package]]+name = "ordered-stream"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50"+dependencies = [+ "futures-core",+ "pin-project-lite",+]++[[package]]+name = "pango"+version = "0.18.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7ca27ec1eb0457ab26f3036ea52229edbdb74dee1edd29063f5b9b010e7ebee4"+dependencies = [+ "gio",+ "glib",+ "libc",+ "once_cell",+ "pango-sys",+]++[[package]]+name = "pango-sys"+version = "0.18.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "436737e391a843e5933d6d9aa102cb126d501e815b83601365a948a518555dc5"+dependencies = [+ "glib-sys",+ "gobject-sys",+ "libc",+ "system-deps",+]++[[package]]+name = "parking"+version = "2.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"++[[package]]+name = "parking_lot"+version = "0.12.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"+dependencies = [+ "lock_api",+ "parking_lot_core",+]++[[package]]+name = "parking_lot_core"+version = "0.9.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"+dependencies = [+ "cfg-if",+ "libc",+ "redox_syscall",+ "smallvec",+ "windows-link 0.2.1",+]++[[package]]+name = "pathdiff"+version = "0.2.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3"++[[package]]+name = "pbkdf2"+version = "0.12.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2"+dependencies = [+ "digest",+ "hmac",+]++[[package]]+name = "percent-encoding"+version = "2.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"++[[package]]+name = "phf"+version = "0.13.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"+dependencies = [+ "phf_macros",+ "phf_shared",+ "serde",+]++[[package]]+name = "phf_codegen"+version = "0.13.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1"+dependencies = [+ "phf_generator",+ "phf_shared",+]++[[package]]+name = "phf_generator"+version = "0.13.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737"+dependencies = [+ "fastrand",+ "phf_shared",+]++[[package]]+name = "phf_macros"+version = "0.13.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef"+dependencies = [+ "phf_generator",+ "phf_shared",+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "phf_shared"+version = "0.13.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266"+dependencies = [+ "siphasher",+]++[[package]]+name = "pin-project-lite"+version = "0.2.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"++[[package]]+name = "piper"+version = "0.2.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1"+dependencies = [+ "atomic-waker",+ "fastrand",+ "futures-io",+]++[[package]]+name = "pkg-config"+version = "0.3.33"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e"++[[package]]+name = "plist"+version = "1.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "092791278e026273c1b65bbdcfbba3a300f2994c896bd01ab01da613c29c46f1"+dependencies = [+ "base64 0.22.1",+ "indexmap 2.14.0",+ "quick-xml",+ "serde",+ "time",+]++[[package]]+name = "png"+version = "0.17.16"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526"+dependencies = [+ "bitflags 1.3.2",+ "crc32fast",+ "fdeflate",+ "flate2",+ "miniz_oxide",+]++[[package]]+name = "png"+version = "0.18.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61"+dependencies = [+ "bitflags 2.13.0",+ "crc32fast",+ "fdeflate",+ "flate2",+ "miniz_oxide",+]++[[package]]+name = "polling"+version = "3.11.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218"+dependencies = [+ "cfg-if",+ "concurrent-queue",+ "hermit-abi",+ "pin-project-lite",+ "rustix",+ "windows-sys 0.61.2",+]++[[package]]+name = "potential_utf"+version = "0.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564"+dependencies = [+ "zerovec",+]++[[package]]+name = "powerfmt"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"++[[package]]+name = "precomputed-hash"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"++[[package]]+name = "prettyplease"+version = "0.2.37"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"+dependencies = [+ "proc-macro2",+ "syn 2.0.117",+]++[[package]]+name = "proc-macro-crate"+version = "1.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919"+dependencies = [+ "once_cell",+ "toml_edit 0.19.15",+]++[[package]]+name = "proc-macro-crate"+version = "2.0.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b00f26d3400549137f92511a46ac1cd8ce37cb5598a96d382381458b992a5d24"+dependencies = [+ "toml_datetime 0.6.3",+ "toml_edit 0.20.2",+]++[[package]]+name = "proc-macro-crate"+version = "3.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f"+dependencies = [+ "toml_edit 0.25.12+spec-1.1.0",+]++[[package]]+name = "proc-macro-error"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"+dependencies = [+ "proc-macro-error-attr",+ "proc-macro2",+ "quote",+ "syn 1.0.109",+ "version_check",+]++[[package]]+name = "proc-macro-error-attr"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"+dependencies = [+ "proc-macro2",+ "quote",+ "version_check",+]++[[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 = "quick-xml"+version = "0.39.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cdcc8dd4e2f670d309a5f0e83fe36dfdc05af317008fea29144da1a2ac858e5e"+dependencies = [+ "memchr",+]++[[package]]+name = "quote"+version = "1.0.45"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"+dependencies = [+ "proc-macro2",+]++[[package]]+name = "r-efi"+version = "5.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"++[[package]]+name = "r-efi"+version = "6.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"++[[package]]+name = "raw-window-handle"+version = "0.6.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539"++[[package]]+name = "redox_syscall"+version = "0.5.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"+dependencies = [+ "bitflags 2.13.0",+]++[[package]]+name = "redox_users"+version = "0.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac"+dependencies = [+ "getrandom 0.2.17",+ "libredox",+ "thiserror 2.0.18",+]++[[package]]+name = "ref-cast"+version = "1.0.25"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f354300ae66f76f1c85c5f84693f0ce81d747e2c3f21a45fef496d89c960bf7d"+dependencies = [+ "ref-cast-impl",+]++[[package]]+name = "ref-cast-impl"+version = "1.0.25"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "regex"+version = "1.12.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f1292b7759ae1cb9ec195452d1390a074f0cd8541ab7a5a8c31cd6db45d4a6ba"+dependencies = [+ "aho-corasick",+ "memchr",+ "regex-automata",+ "regex-syntax",+]++[[package]]+name = "regex-automata"+version = "0.4.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"+dependencies = [+ "aho-corasick",+ "memchr",+ "regex-syntax",+]++[[package]]+name = "regex-syntax"+version = "0.8.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"++[[package]]+name = "reqwest"+version = "0.12.28"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147"+dependencies = [+ "base64 0.22.1",+ "bytes",+ "futures-core",+ "http",+ "http-body",+ "http-body-util",+ "hyper",+ "hyper-tls",+ "hyper-util",+ "js-sys",+ "log",+ "native-tls",+ "percent-encoding",+ "pin-project-lite",+ "rustls-pki-types",+ "serde",+ "serde_json",+ "serde_urlencoded",+ "sync_wrapper",+ "tokio",+ "tokio-native-tls",+ "tower",+ "tower-http",+ "tower-service",+ "url",+ "wasm-bindgen",+ "wasm-bindgen-futures",+ "web-sys",+]++[[package]]+name = "reqwest"+version = "0.13.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "219c5811de6525e5416c7d5d53bb656d3afdbc6c5af816e0802bcfa42dbdc1c3"+dependencies = [+ "base64 0.22.1",+ "bytes",+ "futures-core",+ "futures-util",+ "http",+ "http-body",+ "http-body-util",+ "hyper",+ "hyper-util",+ "js-sys",+ "log",+ "percent-encoding",+ "pin-project-lite",+ "serde",+ "serde_json",+ "sync_wrapper",+ "tokio",+ "tokio-util",+ "tower",+ "tower-http",+ "tower-service",+ "url",+ "wasm-bindgen",+ "wasm-bindgen-futures",+ "wasm-streams",+ "web-sys",+]++[[package]]+name = "rfd"+version = "0.16.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a15ad77d9e70a92437d8f74c35d99b4e4691128df018833e99f90bcd36152672"+dependencies = [+ "block2",+ "dispatch2",+ "glib-sys",+ "gobject-sys",+ "gtk-sys",+ "js-sys",+ "log",+ "objc2",+ "objc2-app-kit",+ "objc2-core-foundation",+ "objc2-foundation",+ "raw-window-handle",+ "wasm-bindgen",+ "wasm-bindgen-futures",+ "web-sys",+ "windows-sys 0.60.2",+]++[[package]]+name = "rustc-hash"+version = "2.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe"++[[package]]+name = "rustc_version"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"+dependencies = [+ "semver",+]++[[package]]+name = "rustix"+version = "1.1.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"+dependencies = [+ "bitflags 2.13.0",+ "errno",+ "libc",+ "linux-raw-sys",+ "windows-sys 0.61.2",+]++[[package]]+name = "rustls-pki-types"+version = "1.14.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "30a7197ae7eb376e574fe940d068c30fe0462554a3ddbe4eca7838e049c937a9"+dependencies = [+ "zeroize",+]++[[package]]+name = "rustversion"+version = "1.0.22"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"++[[package]]+name = "ryu"+version = "1.0.23"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"++[[package]]+name = "same-file"+version = "1.0.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"+dependencies = [+ "winapi-util",+]++[[package]]+name = "schannel"+version = "0.1.29"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939"+dependencies = [+ "windows-sys 0.61.2",+]++[[package]]+name = "schemars"+version = "0.8.22"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3fbf2ae1b8bc8e02df939598064d22402220cd5bbcca1c76f7d6a310974d5615"+dependencies = [+ "dyn-clone",+ "indexmap 1.9.3",+ "schemars_derive",+ "serde",+ "serde_json",+ "url",+ "uuid",+]++[[package]]+name = "schemars"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f"+dependencies = [+ "dyn-clone",+ "ref-cast",+ "serde",+ "serde_json",+]++[[package]]+name = "schemars"+version = "1.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a2b42f36aa1cd011945615b92222f6bf73c599a102a300334cd7f8dbeec726cc"+dependencies = [+ "dyn-clone",+ "ref-cast",+ "serde",+ "serde_json",+]++[[package]]+name = "schemars_derive"+version = "0.8.22"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "32e265784ad618884abaea0600a9adf15393368d840e0222d101a072f3f7534d"+dependencies = [+ "proc-macro2",+ "quote",+ "serde_derive_internals",+ "syn 2.0.117",+]++[[package]]+name = "scopeguard"+version = "1.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"++[[package]]+name = "security-framework"+version = "3.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"+dependencies = [+ "bitflags 2.13.0",+ "core-foundation",+ "core-foundation-sys",+ "libc",+ "security-framework-sys",+]++[[package]]+name = "security-framework-sys"+version = "2.17.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"+dependencies = [+ "core-foundation-sys",+ "libc",+]++[[package]]+name = "selectors"+version = "0.36.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c5d9c0c92a92d33f08817311cf3f2c29a3538a8240e94a6a3c622ce652d7e00c"+dependencies = [+ "bitflags 2.13.0",+ "cssparser",+ "derive_more",+ "log",+ "new_debug_unreachable",+ "phf",+ "phf_codegen",+ "precomputed-hash",+ "rustc-hash",+ "servo_arc",+ "smallvec",+]++[[package]]+name = "semver"+version = "1.0.28"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"+dependencies = [+ "serde",+ "serde_core",+]++[[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-untagged"+version = "0.1.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f9faf48a4a2d2693be24c6289dbe26552776eb7737074e6722891fadbe6c5058"+dependencies = [+ "erased-serde",+ "serde",+ "serde_core",+ "typeid",+]++[[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 2.0.117",+]++[[package]]+name = "serde_derive_internals"+version = "0.29.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "serde_json"+version = "1.0.150"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9"+dependencies = [+ "itoa",+ "memchr",+ "serde",+ "serde_core",+ "zmij",+]++[[package]]+name = "serde_repr"+version = "0.1.20"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "serde_spanned"+version = "0.6.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3"+dependencies = [+ "serde",+]++[[package]]+name = "serde_spanned"+version = "1.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26"+dependencies = [+ "serde_core",+]++[[package]]+name = "serde_urlencoded"+version = "0.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"+dependencies = [+ "form_urlencoded",+ "itoa",+ "ryu",+ "serde",+]++[[package]]+name = "serde_with"+version = "3.21.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "76a5c54c7310e7b8b9577c286d7e399ddd876c3e12b3ed917a8aabc4b96e9e8c"+dependencies = [+ "base64 0.22.1",+ "bs58",+ "chrono",+ "hex",+ "indexmap 1.9.3",+ "indexmap 2.14.0",+ "schemars 0.9.0",+ "schemars 1.2.1",+ "serde_core",+ "serde_json",+ "serde_with_macros",+ "time",+]++[[package]]+name = "serde_with_macros"+version = "3.21.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "84d57bc0c8b9a17920c178daa6bb924850d54a9c97ab45194bb8c17ad66bb660"+dependencies = [+ "darling",+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "serialize-to-javascript"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "04f3666a07a197cdb77cdf306c32be9b7f598d7060d50cfd4d5aa04bfd92f6c5"+dependencies = [+ "serde",+ "serde_json",+ "serialize-to-javascript-impl",+]++[[package]]+name = "serialize-to-javascript-impl"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "772ee033c0916d670af7860b6e1ef7d658a4629a6d0b4c8c3e67f09b3765b75d"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "servo_arc"+version = "0.4.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "170fb83ab34de17dc69aa7c67482b22218ddb85da56546f9bd6b929e32a05930"+dependencies = [+ "stable_deref_trait",+]++[[package]]+name = "sha1"+version = "0.10.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba"+dependencies = [+ "cfg-if",+ "cpufeatures",+ "digest",+]++[[package]]+name = "sha2"+version = "0.10.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"+dependencies = [+ "cfg-if",+ "cpufeatures",+ "digest",+]++[[package]]+name = "shlex"+version = "2.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"++[[package]]+name = "signal-hook-registry"+version = "1.4.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"+dependencies = [+ "errno",+ "libc",+]++[[package]]+name = "simd-adler32"+version = "0.3.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214"++[[package]]+name = "siphasher"+version = "1.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649"++[[package]]+name = "slab"+version = "0.4.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"++[[package]]+name = "smallvec"+version = "1.15.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"++[[package]]+name = "socket2"+version = "0.6.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "52d1cfed4120b4d927bf7c0f86d2087a4a7d6027c906d9f9d525a80573b9be51"+dependencies = [+ "libc",+ "windows-sys 0.61.2",+]++[[package]]+name = "softbuffer"+version = "0.4.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3"+dependencies = [+ "bytemuck",+ "js-sys",+ "ndk",+ "objc2",+ "objc2-core-foundation",+ "objc2-core-graphics",+ "objc2-foundation",+ "objc2-quartz-core",+ "raw-window-handle",+ "redox_syscall",+ "tracing",+ "wasm-bindgen",+ "web-sys",+ "windows-sys 0.61.2",+]++[[package]]+name = "soup3"+version = "0.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "471f924a40f31251afc77450e781cb26d55c0b650842efafc9c6cbd2f7cc4f9f"+dependencies = [+ "futures-channel",+ "gio",+ "glib",+ "libc",+ "soup3-sys",+]++[[package]]+name = "soup3-sys"+version = "0.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7ebe8950a680a12f24f15ebe1bf70db7af98ad242d9db43596ad3108aab86c27"+dependencies = [+ "gio-sys",+ "glib-sys",+ "gobject-sys",+ "libc",+ "system-deps",+]++[[package]]+name = "stable_deref_trait"+version = "1.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"++[[package]]+name = "string_cache"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901"+dependencies = [+ "new_debug_unreachable",+ "parking_lot",+ "phf_shared",+ "precomputed-hash",+]++[[package]]+name = "string_cache_codegen"+version = "0.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69"+dependencies = [+ "phf_generator",+ "phf_shared",+ "proc-macro2",+ "quote",+]++[[package]]+name = "strsim"+version = "0.11.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"++[[package]]+name = "subtle"+version = "2.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"++[[package]]+name = "swift-rs"+version = "1.0.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4057c98e2e852d51fdcfca832aac7b571f6b351ad159f9eda5db1655f8d0c4d7"+dependencies = [+ "base64 0.21.7",+ "serde",+ "serde_json",+]++[[package]]+name = "syn"+version = "1.0.109"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"+dependencies = [+ "proc-macro2",+ "unicode-ident",+]++[[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 = "sync_wrapper"+version = "1.0.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"+dependencies = [+ "futures-core",+]++[[package]]+name = "synstructure"+version = "0.13.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "system-deps"+version = "6.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349"+dependencies = [+ "cfg-expr",+ "heck 0.5.0",+ "pkg-config",+ "toml 0.8.2",+ "version-compare",+]++[[package]]+name = "tao"+version = "0.35.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d1c93047acf68669466a34690ac58cca7010bd1b201e1ec86f1fd0a75d3dd4a9"+dependencies = [+ "bitflags 2.13.0",+ "block2",+ "core-foundation",+ "core-graphics",+ "crossbeam-channel",+ "dbus",+ "dispatch2",+ "dlopen2",+ "dpi",+ "gdkwayland-sys",+ "gdkx11-sys",+ "gtk",+ "jni",+ "libc",+ "log",+ "ndk",+ "ndk-sys",+ "objc2",+ "objc2-app-kit",+ "objc2-foundation",+ "objc2-ui-kit",+ "once_cell",+ "parking_lot",+ "percent-encoding",+ "raw-window-handle",+ "tao-macros",+ "unicode-segmentation",+ "url",+ "windows",+ "windows-core 0.61.2",+ "windows-version",+ "x11-dl",+]++[[package]]+name = "tao-macros"+version = "0.1.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f4e16beb8b2ac17db28eab8bca40e62dbfbb34c0fcdc6d9826b11b7b5d047dfd"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "tar"+version = "0.4.46"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3f6221d9a6003c78398e3b239969f352578258df48c8eb051caadae0015bc840"+dependencies = [+ "filetime",+ "libc",+ "xattr",+]++[[package]]+name = "target-lexicon"+version = "0.12.16"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"++[[package]]+name = "tauri"+version = "2.11.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "437404997acf375d85f1177afa7e11bb971f274ed6a7b83a2a3e339015f4cc28"+dependencies = [+ "anyhow",+ "bytes",+ "cookie",+ "dirs",+ "dunce",+ "embed_plist",+ "getrandom 0.3.4",+ "glob",+ "gtk",+ "heck 0.5.0",+ "http",+ "jni",+ "libc",+ "log",+ "mime",+ "muda",+ "objc2",+ "objc2-app-kit",+ "objc2-foundation",+ "objc2-ui-kit",+ "objc2-web-kit",+ "percent-encoding",+ "plist",+ "raw-window-handle",+ "reqwest 0.13.4",+ "serde",+ "serde_json",+ "serde_repr",+ "serialize-to-javascript",+ "swift-rs",+ "tauri-build",+ "tauri-macros",+ "tauri-runtime",+ "tauri-runtime-wry",+ "tauri-utils",+ "thiserror 2.0.18",+ "tokio",+ "tray-icon",+ "url",+ "webkit2gtk",+ "webview2-com",+ "window-vibrancy",+ "windows",+]++[[package]]+name = "tauri-build"+version = "2.6.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4aa1f9055fc23919a54e4e125052bed16ed04aef0487086e758fe01a67b451c7"+dependencies = [+ "anyhow",+ "cargo_toml",+ "dirs",+ "glob",+ "heck 0.5.0",+ "json-patch",+ "schemars 0.8.22",+ "semver",+ "serde",+ "serde_json",+ "tauri-utils",+ "tauri-winres",+ "walkdir",+]++[[package]]+name = "tauri-codegen"+version = "2.6.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e4a0319528a025a38c4078e7dae2c446f4e63620ddb0659a643ede1cb38f90e9"+dependencies = [+ "base64 0.22.1",+ "brotli",+ "ico",+ "json-patch",+ "plist",+ "png 0.17.16",+ "proc-macro2",+ "quote",+ "semver",+ "serde",+ "serde_json",+ "sha2",+ "syn 2.0.117",+ "tauri-utils",+ "thiserror 2.0.18",+ "time",+ "url",+ "uuid",+ "walkdir",+]++[[package]]+name = "tauri-macros"+version = "2.6.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ae6cb4e3896c21d2f6da5b31251d2faea0153bba56ed0e970f918115dbee4924"+dependencies = [+ "heck 0.5.0",+ "proc-macro2",+ "quote",+ "syn 2.0.117",+ "tauri-codegen",+ "tauri-utils",+]++[[package]]+name = "tauri-plugin"+version = "2.6.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e126abc9e84e35cdfd01596140a73a1850cdb0df0a23acf0185776c30b469a6e"+dependencies = [+ "anyhow",+ "glob",+ "plist",+ "schemars 0.8.22",+ "serde",+ "serde_json",+ "tauri-utils",+ "walkdir",+]++[[package]]+name = "tauri-plugin-dialog"+version = "2.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "65981abb771e74e571a38196c3baa11c459379164791eba0e67abc1a5fac9884"+dependencies = [+ "log",+ "raw-window-handle",+ "rfd",+ "serde",+ "serde_json",+ "tauri",+ "tauri-plugin",+ "tauri-plugin-fs",+ "thiserror 2.0.18",+ "url",+]++[[package]]+name = "tauri-plugin-fs"+version = "2.5.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b7ecc274121aca0c036a2b42d1cbe83d368d348f54e0bb8a735c2b1548e8f371"+dependencies = [+ "anyhow",+ "dunce",+ "glob",+ "log",+ "objc2-foundation",+ "percent-encoding",+ "schemars 0.8.22",+ "serde",+ "serde_json",+ "serde_repr",+ "tauri",+ "tauri-plugin",+ "tauri-utils",+ "thiserror 2.0.18",+ "toml 1.1.2+spec-1.1.0",+ "url",+]++[[package]]+name = "tauri-plugin-opener"+version = "2.5.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "17e1bea14edce6b793a04e2417e3fd924b9bc4faae83cdee7d714156cceeed29"+dependencies = [+ "dunce",+ "glob",+ "objc2-app-kit",+ "objc2-foundation",+ "open",+ "schemars 0.8.22",+ "serde",+ "serde_json",+ "tauri",+ "tauri-plugin",+ "thiserror 2.0.18",+ "url",+ "windows",+ "zbus",+]++[[package]]+name = "tauri-runtime"+version = "2.11.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "48222d7116c8807eaa6fe2f372e023fae125084e61e6eca6d70b7961cdf129ef"+dependencies = [+ "cookie",+ "dpi",+ "gtk",+ "http",+ "jni",+ "objc2",+ "objc2-ui-kit",+ "objc2-web-kit",+ "raw-window-handle",+ "serde",+ "serde_json",+ "tauri-utils",+ "thiserror 2.0.18",+ "url",+ "webkit2gtk",+ "webview2-com",+ "windows",+]++[[package]]+name = "tauri-runtime-wry"+version = "2.11.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b83849ee63ecb27a8e8d0fe51915ca215076914aca43f96db1179f0f415f6cd9"+dependencies = [+ "gtk",+ "http",+ "jni",+ "log",+ "objc2",+ "objc2-app-kit",+ "once_cell",+ "percent-encoding",+ "raw-window-handle",+ "softbuffer",+ "tao",+ "tauri-runtime",+ "tauri-utils",+ "url",+ "webkit2gtk",+ "webview2-com",+ "windows",+ "wry",+]++[[package]]+name = "tauri-utils"+version = "2.9.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "092379df9a707631978e6c56b1bc2401d387f01e2d4a3c123360d167bbb9aa95"+dependencies = [+ "anyhow",+ "brotli",+ "cargo_metadata",+ "ctor",+ "dom_query",+ "dunce",+ "glob",+ "http",+ "infer",+ "json-patch",+ "log",+ "memchr",+ "phf",+ "plist",+ "proc-macro2",+ "quote",+ "regex",+ "schemars 0.8.22",+ "semver",+ "serde",+ "serde-untagged",+ "serde_json",+ "serde_with",+ "swift-rs",+ "thiserror 2.0.18",+ "toml 1.1.2+spec-1.1.0",+ "url",+ "urlpattern",+ "uuid",+ "walkdir",+]++[[package]]+name = "tauri-winres"+version = "0.3.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cc65d45c68858bfe420dd29e834b5d15dbecf8a07a8a16cf4d532c7b1f69d4b6"+dependencies = [+ "dunce",+ "embed-resource",+ "toml 1.1.2+spec-1.1.0",+]++[[package]]+name = "tempfile"+version = "3.27.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"+dependencies = [+ "fastrand",+ "getrandom 0.4.2",+ "once_cell",+ "rustix",+ "windows-sys 0.61.2",+]++[[package]]+name = "tendril"+version = "0.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c4790fc369d5a530f4b544b094e31388b9b3a37c0f4652ade4505945f5660d24"+dependencies = [+ "new_debug_unreachable",+ "utf-8",+]++[[package]]+name = "thiserror"+version = "1.0.69"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"+dependencies = [+ "thiserror-impl 1.0.69",+]++[[package]]+name = "thiserror"+version = "2.0.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"+dependencies = [+ "thiserror-impl 2.0.18",+]++[[package]]+name = "thiserror-impl"+version = "1.0.69"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "thiserror-impl"+version = "2.0.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "time"+version = "0.3.47"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c"+dependencies = [+ "deranged",+ "itoa",+ "num-conv",+ "powerfmt",+ "serde_core",+ "time-core",+ "time-macros",+]++[[package]]+name = "time-core"+version = "0.1.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca"++[[package]]+name = "time-macros"+version = "0.2.27"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215"+dependencies = [+ "num-conv",+ "time-core",+]++[[package]]+name = "tinystr"+version = "0.8.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d"+dependencies = [+ "displaydoc",+ "zerovec",+]++[[package]]+name = "tinyvec"+version = "1.11.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3"+dependencies = [+ "tinyvec_macros",+]++[[package]]+name = "tinyvec_macros"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"++[[package]]+name = "tokio"+version = "1.52.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8fc7f01b389ac15039e4dc9531aa973a135d7a4135281b12d7c1bc79fd57fffe"+dependencies = [+ "bytes",+ "libc",+ "mio",+ "parking_lot",+ "pin-project-lite",+ "signal-hook-registry",+ "socket2",+ "tokio-macros",+ "windows-sys 0.61.2",+]++[[package]]+name = "tokio-macros"+version = "2.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "tokio-native-tls"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2"+dependencies = [+ "native-tls",+ "tokio",+]++[[package]]+name = "tokio-util"+version = "0.7.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098"+dependencies = [+ "bytes",+ "futures-core",+ "futures-sink",+ "pin-project-lite",+ "tokio",+]++[[package]]+name = "toml"+version = "0.8.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d"+dependencies = [+ "serde",+ "serde_spanned 0.6.9",+ "toml_datetime 0.6.3",+ "toml_edit 0.20.2",+]++[[package]]+name = "toml"+version = "0.9.12+spec-1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cf92845e79fc2e2def6a5d828f0801e29a2f8acc037becc5ab08595c7d5e9863"+dependencies = [+ "indexmap 2.14.0",+ "serde_core",+ "serde_spanned 1.1.1",+ "toml_datetime 0.7.5+spec-1.1.0",+ "toml_parser",+ "toml_writer",+ "winnow 0.7.15",+]++[[package]]+name = "toml"+version = "1.1.2+spec-1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "81f3d15e84cbcd896376e6730314d59fb5a87f31e4b038454184435cd57defee"+dependencies = [+ "indexmap 2.14.0",+ "serde_core",+ "serde_spanned 1.1.1",+ "toml_datetime 1.1.1+spec-1.1.0",+ "toml_parser",+ "toml_writer",+ "winnow 1.0.3",+]++[[package]]+name = "toml_datetime"+version = "0.6.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b"+dependencies = [+ "serde",+]++[[package]]+name = "toml_datetime"+version = "0.7.5+spec-1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347"+dependencies = [+ "serde_core",+]++[[package]]+name = "toml_datetime"+version = "1.1.1+spec-1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7"+dependencies = [+ "serde_core",+]++[[package]]+name = "toml_edit"+version = "0.19.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"+dependencies = [+ "indexmap 2.14.0",+ "toml_datetime 0.6.3",+ "winnow 0.5.40",+]++[[package]]+name = "toml_edit"+version = "0.20.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338"+dependencies = [+ "indexmap 2.14.0",+ "serde",+ "serde_spanned 0.6.9",+ "toml_datetime 0.6.3",+ "winnow 0.5.40",+]++[[package]]+name = "toml_edit"+version = "0.25.12+spec-1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d2153edc6955a6c354fad8f5efd38b6a8769bdccf9fe50f8e1329f81b0baa5d7"+dependencies = [+ "indexmap 2.14.0",+ "toml_datetime 1.1.1+spec-1.1.0",+ "toml_parser",+ "winnow 1.0.3",+]++[[package]]+name = "toml_parser"+version = "1.1.2+spec-1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a2abe9b86193656635d2411dc43050282ca48aa31c2451210f4202550afb7526"+dependencies = [+ "winnow 1.0.3",+]++[[package]]+name = "toml_writer"+version = "1.1.1+spec-1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "756daf9b1013ebe47a8776667b466417e2d4c5679d441c26230efd9ef78692db"++[[package]]+name = "tower"+version = "0.5.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4"+dependencies = [+ "futures-core",+ "futures-util",+ "pin-project-lite",+ "sync_wrapper",+ "tokio",+ "tower-layer",+ "tower-service",+]++[[package]]+name = "tower-http"+version = "0.6.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840"+dependencies = [+ "bitflags 2.13.0",+ "bytes",+ "futures-util",+ "http",+ "http-body",+ "pin-project-lite",+ "tower",+ "tower-layer",+ "tower-service",+ "url",+]++[[package]]+name = "tower-layer"+version = "0.3.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"++[[package]]+name = "tower-service"+version = "0.3.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"++[[package]]+name = "tracing"+version = "0.1.44"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"+dependencies = [+ "pin-project-lite",+ "tracing-attributes",+ "tracing-core",+]++[[package]]+name = "tracing-attributes"+version = "0.1.31"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "tracing-core"+version = "0.1.36"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"+dependencies = [+ "once_cell",+]++[[package]]+name = "tray-icon"+version = "0.23.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "15edbb0d80583e85ee8df283410038e17314df5cba30da2087a54a85216c0773"+dependencies = [+ "crossbeam-channel",+ "dirs",+ "libappindicator",+ "muda",+ "objc2",+ "objc2-app-kit",+ "objc2-core-foundation",+ "objc2-core-graphics",+ "objc2-foundation",+ "once_cell",+ "png 0.18.1",+ "serde",+ "thiserror 2.0.18",+ "windows-sys 0.61.2",+]++[[package]]+name = "try-lock"+version = "0.2.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"++[[package]]+name = "typeid"+version = "1.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c"++[[package]]+name = "typenum"+version = "1.20.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"++[[package]]+name = "uds_windows"+version = "1.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"+dependencies = [+ "memoffset",+ "tempfile",+ "windows-sys 0.61.2",+]++[[package]]+name = "unic-char-property"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a8c57a407d9b6fa02b4795eb81c5b6652060a15a7903ea981f3d723e6c0be221"+dependencies = [+ "unic-char-range",+]++[[package]]+name = "unic-char-range"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0398022d5f700414f6b899e10b8348231abf9173fa93144cbc1a43b9793c1fbc"++[[package]]+name = "unic-common"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "80d7ff825a6a654ee85a63e80f92f054f904f21e7d12da4e22f9834a4aaa35bc"++[[package]]+name = "unic-ucd-ident"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e230a37c0381caa9219d67cf063aa3a375ffed5bf541a452db16e744bdab6987"+dependencies = [+ "unic-char-property",+ "unic-char-range",+ "unic-ucd-version",+]++[[package]]+name = "unic-ucd-version"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "96bd2f2237fe450fcd0a1d2f5f4e91711124f7857ba2e964247776ebeeb7b0c4"+dependencies = [+ "unic-common",+]++[[package]]+name = "unicode-ident"+version = "1.0.24"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"++[[package]]+name = "unicode-segmentation"+version = "1.13.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"++[[package]]+name = "unicode-xid"+version = "0.2.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"++[[package]]+name = "url"+version = "2.5.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"+dependencies = [+ "form_urlencoded",+ "idna",+ "percent-encoding",+ "serde",+ "serde_derive",+]++[[package]]+name = "urlpattern"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "70acd30e3aa1450bc2eece896ce2ad0d178e9c079493819301573dae3c37ba6d"+dependencies = [+ "regex",+ "serde",+ "unic-ucd-ident",+ "url",+]++[[package]]+name = "utf-8"+version = "0.7.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"++[[package]]+name = "utf8_iter"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"++[[package]]+name = "uuid"+version = "1.23.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "144d6b123cef80b301b8f72a9e2ca4370ddec21950d0a103dd22c437006d2db7"+dependencies = [+ "getrandom 0.4.2",+ "js-sys",+ "serde_core",+ "wasm-bindgen",+]++[[package]]+name = "vcpkg"+version = "0.2.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"++[[package]]+name = "version-compare"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "03c2856837ef78f57382f06b2b8563a2f512f7185d732608fd9176cb3b8edf0e"++[[package]]+name = "version_check"+version = "0.9.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"++[[package]]+name = "vswhom"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b"+dependencies = [+ "libc",+ "vswhom-sys",+]++[[package]]+name = "vswhom-sys"+version = "0.1.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fb067e4cbd1ff067d1df46c9194b5de0e98efd2810bbc95c5d5e5f25a3231150"+dependencies = [+ "cc",+ "libc",+]++[[package]]+name = "walkdir"+version = "2.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"+dependencies = [+ "same-file",+ "winapi-util",+]++[[package]]+name = "want"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"+dependencies = [+ "try-lock",+]++[[package]]+name = "wasi"+version = "0.11.1+wasi-snapshot-preview1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"++[[package]]+name = "wasip2"+version = "1.0.3+wasi-0.2.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "20064672db26d7cdc89c7798c48a0fdfac8213434a1186e5ef29fd560ae223d6"+dependencies = [+ "wit-bindgen 0.57.1",+]++[[package]]+name = "wasip3"+version = "0.4.0+wasi-0.3.0-rc-2026-01-06"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5"+dependencies = [+ "wit-bindgen 0.51.0",+]++[[package]]+name = "wasm-bindgen"+version = "0.2.123"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a254a4b10c19a76f09a27640e7ffbf9bc30bf67e16a3bf28aaefa4920fe81563"+dependencies = [+ "cfg-if",+ "once_cell",+ "rustversion",+ "wasm-bindgen-macro",+ "wasm-bindgen-shared",+]++[[package]]+name = "wasm-bindgen-futures"+version = "0.4.73"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "54568702fabf5d4849ce2b90fadfa64168a097eaf4b351ce9df8b687a0086aaf"+dependencies = [+ "js-sys",+ "wasm-bindgen",+]++[[package]]+name = "wasm-bindgen-macro"+version = "0.2.123"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "24a40fc75b0ec6f3746ceb10d36f53a93dcd68a93b11b6445983945d79eba0dc"+dependencies = [+ "quote",+ "wasm-bindgen-macro-support",+]++[[package]]+name = "wasm-bindgen-macro-support"+version = "0.2.123"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "908f34bd9b9ce3d4caf07b72dfab63d61504d156856c6bd3cd87fa350cf3985b"+dependencies = [+ "bumpalo",+ "proc-macro2",+ "quote",+ "syn 2.0.117",+ "wasm-bindgen-shared",+]++[[package]]+name = "wasm-bindgen-shared"+version = "0.2.123"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7acbf7616c27b194bbb550bf77ed0c2c3e5b7fd1260a93082b95fb7f47959b92"+dependencies = [+ "unicode-ident",+]++[[package]]+name = "wasm-encoder"+version = "0.244.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319"+dependencies = [+ "leb128fmt",+ "wasmparser",+]++[[package]]+name = "wasm-metadata"+version = "0.244.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909"+dependencies = [+ "anyhow",+ "indexmap 2.14.0",+ "wasm-encoder",+ "wasmparser",+]++[[package]]+name = "wasm-streams"+version = "0.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9d1ec4f6517c9e11ae630e200b2b65d193279042e28edd4a2cda233e46670bbb"+dependencies = [+ "futures-util",+ "js-sys",+ "wasm-bindgen",+ "wasm-bindgen-futures",+ "web-sys",+]++[[package]]+name = "wasmparser"+version = "0.244.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe"+dependencies = [+ "bitflags 2.13.0",+ "hashbrown 0.15.5",+ "indexmap 2.14.0",+ "semver",+]++[[package]]+name = "web-sys"+version = "0.3.100"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6e0871acf327f283dc6da28a1696cdc64fb355ba9f935d052021fa77f35cce69"+dependencies = [+ "js-sys",+ "wasm-bindgen",+]++[[package]]+name = "web_atoms"+version = "0.2.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d7cff6eef815df1834fd250e3a2ff436044d82a9f1bc1980ca1dbdf07effc538"+dependencies = [+ "phf",+ "phf_codegen",+ "string_cache",+ "string_cache_codegen",+]++[[package]]+name = "webkit2gtk"+version = "2.0.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a1027150013530fb2eaf806408df88461ae4815a45c541c8975e61d6f2fc4793"+dependencies = [+ "bitflags 1.3.2",+ "cairo-rs",+ "gdk",+ "gdk-sys",+ "gio",+ "gio-sys",+ "glib",+ "glib-sys",+ "gobject-sys",+ "gtk",+ "gtk-sys",+ "javascriptcore-rs",+ "libc",+ "once_cell",+ "soup3",+ "webkit2gtk-sys",+]++[[package]]+name = "webkit2gtk-sys"+version = "2.0.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "916a5f65c2ef0dfe12fff695960a2ec3d4565359fdbb2e9943c974e06c734ea5"+dependencies = [+ "bitflags 1.3.2",+ "cairo-sys-rs",+ "gdk-sys",+ "gio-sys",+ "glib-sys",+ "gobject-sys",+ "gtk-sys",+ "javascriptcore-rs-sys",+ "libc",+ "pkg-config",+ "soup3-sys",+ "system-deps",+]++[[package]]+name = "webview2-com"+version = "0.38.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7130243a7a5b33c54a444e54842e6a9e133de08b5ad7b5861cd8ed9a6a5bc96a"+dependencies = [+ "webview2-com-macros",+ "webview2-com-sys",+ "windows",+ "windows-core 0.61.2",+ "windows-implement",+ "windows-interface",+]++[[package]]+name = "webview2-com-macros"+version = "0.8.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "67a921c1b6914c367b2b823cd4cde6f96beec77d30a939c8199bb377cf9b9b54"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "webview2-com-sys"+version = "0.38.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "381336cfffd772377d291702245447a5251a2ffa5bad679c99e61bc48bacbf9c"+dependencies = [+ "thiserror 2.0.18",+ "windows",+ "windows-core 0.61.2",+]++[[package]]+name = "winapi"+version = "0.3.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"+dependencies = [+ "winapi-i686-pc-windows-gnu",+ "winapi-x86_64-pc-windows-gnu",+]++[[package]]+name = "winapi-i686-pc-windows-gnu"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"++[[package]]+name = "winapi-util"+version = "0.1.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"+dependencies = [+ "windows-sys 0.61.2",+]++[[package]]+name = "winapi-x86_64-pc-windows-gnu"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"++[[package]]+name = "window-vibrancy"+version = "0.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d9bec5a31f3f9362f2258fd0e9c9dd61a9ca432e7306cc78c444258f0dce9a9c"+dependencies = [+ "objc2",+ "objc2-app-kit",+ "objc2-core-foundation",+ "objc2-foundation",+ "raw-window-handle",+ "windows-sys 0.59.0",+ "windows-version",+]++[[package]]+name = "windows"+version = "0.61.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893"+dependencies = [+ "windows-collections",+ "windows-core 0.61.2",+ "windows-future",+ "windows-link 0.1.3",+ "windows-numerics",+]++[[package]]+name = "windows-collections"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8"+dependencies = [+ "windows-core 0.61.2",+]++[[package]]+name = "windows-core"+version = "0.61.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3"+dependencies = [+ "windows-implement",+ "windows-interface",+ "windows-link 0.1.3",+ "windows-result 0.3.4",+ "windows-strings 0.4.2",+]++[[package]]+name = "windows-core"+version = "0.62.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"+dependencies = [+ "windows-implement",+ "windows-interface",+ "windows-link 0.2.1",+ "windows-result 0.4.1",+ "windows-strings 0.5.1",+]++[[package]]+name = "windows-future"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e"+dependencies = [+ "windows-core 0.61.2",+ "windows-link 0.1.3",+ "windows-threading",+]++[[package]]+name = "windows-implement"+version = "0.60.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "windows-interface"+version = "0.59.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "windows-link"+version = "0.1.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a"++[[package]]+name = "windows-link"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"++[[package]]+name = "windows-numerics"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1"+dependencies = [+ "windows-core 0.61.2",+ "windows-link 0.1.3",+]++[[package]]+name = "windows-result"+version = "0.3.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6"+dependencies = [+ "windows-link 0.1.3",+]++[[package]]+name = "windows-result"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"+dependencies = [+ "windows-link 0.2.1",+]++[[package]]+name = "windows-strings"+version = "0.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57"+dependencies = [+ "windows-link 0.1.3",+]++[[package]]+name = "windows-strings"+version = "0.5.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"+dependencies = [+ "windows-link 0.2.1",+]++[[package]]+name = "windows-sys"+version = "0.45.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"+dependencies = [+ "windows-targets 0.42.2",+]++[[package]]+name = "windows-sys"+version = "0.59.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"+dependencies = [+ "windows-targets 0.52.6",+]++[[package]]+name = "windows-sys"+version = "0.60.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"+dependencies = [+ "windows-targets 0.53.5",+]++[[package]]+name = "windows-sys"+version = "0.61.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"+dependencies = [+ "windows-link 0.2.1",+]++[[package]]+name = "windows-targets"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071"+dependencies = [+ "windows_aarch64_gnullvm 0.42.2",+ "windows_aarch64_msvc 0.42.2",+ "windows_i686_gnu 0.42.2",+ "windows_i686_msvc 0.42.2",+ "windows_x86_64_gnu 0.42.2",+ "windows_x86_64_gnullvm 0.42.2",+ "windows_x86_64_msvc 0.42.2",+]++[[package]]+name = "windows-targets"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"+dependencies = [+ "windows_aarch64_gnullvm 0.52.6",+ "windows_aarch64_msvc 0.52.6",+ "windows_i686_gnu 0.52.6",+ "windows_i686_gnullvm 0.52.6",+ "windows_i686_msvc 0.52.6",+ "windows_x86_64_gnu 0.52.6",+ "windows_x86_64_gnullvm 0.52.6",+ "windows_x86_64_msvc 0.52.6",+]++[[package]]+name = "windows-targets"+version = "0.53.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3"+dependencies = [+ "windows-link 0.2.1",+ "windows_aarch64_gnullvm 0.53.1",+ "windows_aarch64_msvc 0.53.1",+ "windows_i686_gnu 0.53.1",+ "windows_i686_gnullvm 0.53.1",+ "windows_i686_msvc 0.53.1",+ "windows_x86_64_gnu 0.53.1",+ "windows_x86_64_gnullvm 0.53.1",+ "windows_x86_64_msvc 0.53.1",+]++[[package]]+name = "windows-threading"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6"+dependencies = [+ "windows-link 0.1.3",+]++[[package]]+name = "windows-version"+version = "0.1.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e4060a1da109b9d0326b7262c8e12c84df67cc0dbc9e33cf49e01ccc2eb63631"+dependencies = [+ "windows-link 0.2.1",+]++[[package]]+name = "windows_aarch64_gnullvm"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8"++[[package]]+name = "windows_aarch64_gnullvm"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"++[[package]]+name = "windows_aarch64_gnullvm"+version = "0.53.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53"++[[package]]+name = "windows_aarch64_msvc"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43"++[[package]]+name = "windows_aarch64_msvc"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"++[[package]]+name = "windows_aarch64_msvc"+version = "0.53.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006"++[[package]]+name = "windows_i686_gnu"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f"++[[package]]+name = "windows_i686_gnu"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"++[[package]]+name = "windows_i686_gnu"+version = "0.53.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3"++[[package]]+name = "windows_i686_gnullvm"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"++[[package]]+name = "windows_i686_gnullvm"+version = "0.53.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c"++[[package]]+name = "windows_i686_msvc"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060"++[[package]]+name = "windows_i686_msvc"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"++[[package]]+name = "windows_i686_msvc"+version = "0.53.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2"++[[package]]+name = "windows_x86_64_gnu"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36"++[[package]]+name = "windows_x86_64_gnu"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"++[[package]]+name = "windows_x86_64_gnu"+version = "0.53.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499"++[[package]]+name = "windows_x86_64_gnullvm"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3"++[[package]]+name = "windows_x86_64_gnullvm"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"++[[package]]+name = "windows_x86_64_gnullvm"+version = "0.53.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1"++[[package]]+name = "windows_x86_64_msvc"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0"++[[package]]+name = "windows_x86_64_msvc"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"++[[package]]+name = "windows_x86_64_msvc"+version = "0.53.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"++[[package]]+name = "winnow"+version = "0.5.40"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876"+dependencies = [+ "memchr",+]++[[package]]+name = "winnow"+version = "0.7.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945"++[[package]]+name = "winnow"+version = "1.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0592e1c9d151f854e6fd382574c3a0855250e1d9b2f99d9281c6e6391af352f1"+dependencies = [+ "memchr",+]++[[package]]+name = "winreg"+version = "0.55.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cb5a765337c50e9ec252c2069be9bf91c7df47afb103b642ba3a53bf8101be97"+dependencies = [+ "cfg-if",+ "windows-sys 0.59.0",+]++[[package]]+name = "wit-bindgen"+version = "0.51.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5"+dependencies = [+ "wit-bindgen-rust-macro",+]++[[package]]+name = "wit-bindgen"+version = "0.57.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"++[[package]]+name = "wit-bindgen-core"+version = "0.51.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc"+dependencies = [+ "anyhow",+ "heck 0.5.0",+ "wit-parser",+]++[[package]]+name = "wit-bindgen-rust"+version = "0.51.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21"+dependencies = [+ "anyhow",+ "heck 0.5.0",+ "indexmap 2.14.0",+ "prettyplease",+ "syn 2.0.117",+ "wasm-metadata",+ "wit-bindgen-core",+ "wit-component",+]++[[package]]+name = "wit-bindgen-rust-macro"+version = "0.51.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a"+dependencies = [+ "anyhow",+ "prettyplease",+ "proc-macro2",+ "quote",+ "syn 2.0.117",+ "wit-bindgen-core",+ "wit-bindgen-rust",+]++[[package]]+name = "wit-component"+version = "0.244.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2"+dependencies = [+ "anyhow",+ "bitflags 2.13.0",+ "indexmap 2.14.0",+ "log",+ "serde",+ "serde_derive",+ "serde_json",+ "wasm-encoder",+ "wasm-metadata",+ "wasmparser",+ "wit-parser",+]++[[package]]+name = "wit-parser"+version = "0.244.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736"+dependencies = [+ "anyhow",+ "id-arena",+ "indexmap 2.14.0",+ "log",+ "semver",+ "serde",+ "serde_derive",+ "serde_json",+ "unicode-xid",+ "wasmparser",+]++[[package]]+name = "writeable"+version = "0.6.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4"++[[package]]+name = "wry"+version = "0.55.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "186f9871daa55fd9c016578b810d149de58367113db7fb72b462d2323ce19514"+dependencies = [+ "base64 0.22.1",+ "block2",+ "cookie",+ "crossbeam-channel",+ "dirs",+ "dom_query",+ "dpi",+ "dunce",+ "gdkx11",+ "gtk",+ "http",+ "javascriptcore-rs",+ "jni",+ "libc",+ "ndk",+ "objc2",+ "objc2-app-kit",+ "objc2-core-foundation",+ "objc2-foundation",+ "objc2-ui-kit",+ "objc2-web-kit",+ "once_cell",+ "percent-encoding",+ "raw-window-handle",+ "sha2",+ "soup3",+ "tao-macros",+ "thiserror 2.0.18",+ "url",+ "webkit2gtk",+ "webkit2gtk-sys",+ "webview2-com",+ "windows",+ "windows-core 0.61.2",+ "windows-version",+ "x11-dl",+]++[[package]]+name = "x11"+version = "2.21.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e"+dependencies = [+ "libc",+ "pkg-config",+]++[[package]]+name = "x11-dl"+version = "2.21.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f"+dependencies = [+ "libc",+ "once_cell",+ "pkg-config",+]++[[package]]+name = "xattr"+version = "1.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156"+dependencies = [+ "libc",+ "rustix",+]++[[package]]+name = "xz2"+version = "0.1.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "388c44dc09d76f1536602ead6d325eb532f5c122f17782bd57fb47baeeb767e2"+dependencies = [+ "lzma-sys",+]++[[package]]+name = "yoke"+version = "0.8.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5"+dependencies = [+ "stable_deref_trait",+ "yoke-derive",+ "zerofrom",+]++[[package]]+name = "yoke-derive"+version = "0.8.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+ "synstructure",+]++[[package]]+name = "zbus"+version = "5.16.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eee682d202a77e4a9f3b2c2bdf48a7b28af5c08c34ddf66f98c93e5e39464285"+dependencies = [+ "async-broadcast",+ "async-executor",+ "async-io",+ "async-lock",+ "async-process",+ "async-recursion",+ "async-task",+ "async-trait",+ "blocking",+ "enumflags2",+ "event-listener",+ "futures-core",+ "futures-lite",+ "hex",+ "libc",+ "ordered-stream",+ "rustix",+ "serde",+ "serde_repr",+ "tracing",+ "uds_windows",+ "uuid",+ "windows-sys 0.61.2",+ "winnow 1.0.3",+ "zbus_macros",+ "zbus_names",+ "zvariant",+]++[[package]]+name = "zbus_macros"+version = "5.16.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "adf1bd45a81a103745b1757754762a26e8cd01e4532e4d6c8ec431624b80d1d6"+dependencies = [+ "proc-macro-crate 3.5.0",+ "proc-macro2",+ "quote",+ "syn 2.0.117",+ "zbus_names",+ "zvariant",+ "zvariant_utils",+]++[[package]]+name = "zbus_names"+version = "4.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7074f3e50b894eac91750142016d30d0a89be8e67dbfd9704fb875825760e52d"+dependencies = [+ "serde",+ "winnow 1.0.3",+ "zvariant",+]++[[package]]+name = "zerofrom"+version = "0.1.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"+dependencies = [+ "zerofrom-derive",+]++[[package]]+name = "zerofrom-derive"+version = "0.1.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+ "synstructure",+]++[[package]]+name = "zeroize"+version = "1.8.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0"+dependencies = [+ "zeroize_derive",+]++[[package]]+name = "zeroize_derive"+version = "1.4.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "85a5b4158499876c763cb03bc4e49185d3cccbabb15b33c627f7884f43db852e"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "zerotrie"+version = "0.2.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf"+dependencies = [+ "displaydoc",+ "yoke",+ "zerofrom",+]++[[package]]+name = "zerovec"+version = "0.11.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239"+dependencies = [+ "yoke",+ "zerofrom",+ "zerovec-derive",+]++[[package]]+name = "zerovec-derive"+version = "0.11.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.117",+]++[[package]]+name = "zip"+version = "2.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fabe6324e908f85a1c52063ce7aa26b68dcb7eb6dbc83a2d148403c9bc3eba50"+dependencies = [+ "aes",+ "arbitrary",+ "bzip2",+ "constant_time_eq",+ "crc32fast",+ "crossbeam-utils",+ "deflate64",+ "displaydoc",+ "flate2",+ "getrandom 0.3.4",+ "hmac",+ "indexmap 2.14.0",+ "lzma-rs",+ "memchr",+ "pbkdf2",+ "sha1",+ "thiserror 2.0.18",+ "time",+ "xz2",+ "zeroize",+ "zopfli",+ "zstd",+]++[[package]]+name = "zmij"+version = "1.0.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"++[[package]]+name = "zopfli"+version = "0.8.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f05cd8797d63865425ff89b5c4a48804f35ba0ce8d125800027ad6017d2b5249"+dependencies = [+ "bumpalo",+ "crc32fast",+ "log",+ "simd-adler32",+]++[[package]]+name = "zstd"+version = "0.13.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a"+dependencies = [+ "zstd-safe",+]++[[package]]+name = "zstd-safe"+version = "7.2.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8f49c4d5f0abb602a93fb8736af2a4f4dd9512e36f7f570d66e65ff867ed3b9d"+dependencies = [+ "zstd-sys",+]++[[package]]+name = "zstd-sys"+version = "2.0.16+zstd.1.5.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "91e19ebc2adc8f83e43039e79776e3fda8ca919132d68a1fed6a5faca2683748"+dependencies = [+ "cc",+ "pkg-config",+]++[[package]]+name = "zvariant"+version = "5.12.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a192a0bde63360d77a7523c833d4b4ce6070a927e2c53246e4c540b1a3e27be0"+dependencies = [+ "endi",+ "enumflags2",+ "serde",+ "winnow 1.0.3",+ "zvariant_derive",+ "zvariant_utils",+]++[[package]]+name = "zvariant_derive"+version = "5.12.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "90bc6cde9c01c511074be97f7ccb6c19d0da89e3f8662e812e999dcfd4638737"+dependencies = [+ "proc-macro-crate 3.5.0",+ "proc-macro2",+ "quote",+ "syn 2.0.117",+ "zvariant_utils",+]++[[package]]+name = "zvariant_utils"+version = "3.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1e8535915cfa75547e559d8c68e8139909a4aeee076831e4ef7fc59d8172c4d6"+dependencies = [+ "proc-macro2",+ "quote",+ "serde",+ "syn 2.0.117",+ "winnow 1.0.3",+]diff --git a/app/src-tauri/Cargo.toml b/app/src-tauri/Cargo.tomlnew file mode 100644index 0000000..2b8149d--- /dev/null+++ b/app/src-tauri/Cargo.toml@@ -0,0 +1,28 @@+[package]+name = "app"+version = "0.1.0"+description = "MDFlux"+authors = []+edition = "2021"+license = "MIT"++[lib]+name = "app_lib"+crate-type = ["staticlib", "cdylib", "rlib"]++[build-dependencies]+tauri-build = { version = "2", features = [] }++[dependencies]+tauri = { version = "2", features = [] }+tauri-plugin-opener = "2"+tauri-plugin-dialog = "2"+tauri-plugin-fs = "2"+serde = { version = "1", features = ["derive"] }+serde_json = "1"+tokio = { version = "1", features = ["full"] }+reqwest = { version = "0.12", default-features = false, features = ["native-tls"] }+zip = "2"+flate2 = "1"+tar = "0.4"+sha2 = "0.10"diff --git a/app/src-tauri/build.rs b/app/src-tauri/build.rsnew file mode 100644index 0000000..d860e1e--- /dev/null+++ b/app/src-tauri/build.rs@@ -0,0 +1,3 @@+fn main() {+ tauri_build::build()+}diff --git a/app/src-tauri/capabilities/default.json b/app/src-tauri/capabilities/default.jsonnew file mode 100644index 0000000..f746407--- /dev/null+++ b/app/src-tauri/capabilities/default.json@@ -0,0 +1,15 @@+{+ "$schema": "../gen/schemas/desktop-schema.json",+ "identifier": "default",+ "description": "Capability for the main window",+ "windows": ["main"],+ "permissions": [+ "core:default",+ "core:window:allow-set-title",+ "opener:default",+ "dialog:default",+ "dialog:allow-save",+ "fs:default",+ "fs:allow-write-text-file"+ ]+}diff --git a/app/src-tauri/icons/128x128.png b/app/src-tauri/icons/128x128.pngnew file mode 100644index 0000000..5806124Binary files /dev/null and b/app/src-tauri/icons/128x128.png differdiff --git a/app/src-tauri/icons/[email protected] b/app/src-tauri/icons/[email protected]new file mode 100644index 0000000..35b0dc0Binary files /dev/null and b/app/src-tauri/icons/[email protected] differdiff --git a/app/src-tauri/icons/32x32.png b/app/src-tauri/icons/32x32.pngnew file mode 100644index 0000000..35fe517Binary files /dev/null and b/app/src-tauri/icons/32x32.png differdiff --git a/app/src-tauri/icons/64x64.png b/app/src-tauri/icons/64x64.pngnew file mode 100644index 0000000..6036808Binary files /dev/null and b/app/src-tauri/icons/64x64.png differdiff --git a/app/src-tauri/icons/Square107x107Logo.png b/app/src-tauri/icons/Square107x107Logo.pngnew file mode 100644index 0000000..d2541e3Binary files /dev/null and b/app/src-tauri/icons/Square107x107Logo.png differdiff --git a/app/src-tauri/icons/Square142x142Logo.png b/app/src-tauri/icons/Square142x142Logo.pngnew file mode 100644index 0000000..28dd622Binary files /dev/null and b/app/src-tauri/icons/Square142x142Logo.png differdiff --git a/app/src-tauri/icons/Square150x150Logo.png b/app/src-tauri/icons/Square150x150Logo.pngnew file mode 100644index 0000000..488cc20Binary files /dev/null and b/app/src-tauri/icons/Square150x150Logo.png differdiff --git a/app/src-tauri/icons/Square284x284Logo.png b/app/src-tauri/icons/Square284x284Logo.pngnew file mode 100644index 0000000..52992f5Binary files /dev/null and b/app/src-tauri/icons/Square284x284Logo.png differdiff --git a/app/src-tauri/icons/Square30x30Logo.png b/app/src-tauri/icons/Square30x30Logo.pngnew file mode 100644index 0000000..2ffe858Binary files /dev/null and b/app/src-tauri/icons/Square30x30Logo.png differdiff --git a/app/src-tauri/icons/Square310x310Logo.png b/app/src-tauri/icons/Square310x310Logo.pngnew file mode 100644index 0000000..649f5caBinary files /dev/null and b/app/src-tauri/icons/Square310x310Logo.png differdiff --git a/app/src-tauri/icons/Square44x44Logo.png b/app/src-tauri/icons/Square44x44Logo.pngnew file mode 100644index 0000000..f5adf0fBinary files /dev/null and b/app/src-tauri/icons/Square44x44Logo.png differdiff --git a/app/src-tauri/icons/Square71x71Logo.png b/app/src-tauri/icons/Square71x71Logo.pngnew file mode 100644index 0000000..87eba1dBinary files /dev/null and b/app/src-tauri/icons/Square71x71Logo.png differdiff --git a/app/src-tauri/icons/Square89x89Logo.png b/app/src-tauri/icons/Square89x89Logo.pngnew file mode 100644index 0000000..8e6bfa5Binary files /dev/null and b/app/src-tauri/icons/Square89x89Logo.png differdiff --git a/app/src-tauri/icons/StoreLogo.png b/app/src-tauri/icons/StoreLogo.pngnew file mode 100644index 0000000..6091e60Binary files /dev/null and b/app/src-tauri/icons/StoreLogo.png differdiff --git a/app/src-tauri/icons/android/mipmap-anydpi-v26/ic_launcher.xml b/app/src-tauri/icons/android/mipmap-anydpi-v26/ic_launcher.xmlnew file mode 100644index 0000000..2ffbf24--- /dev/null+++ b/app/src-tauri/icons/android/mipmap-anydpi-v26/ic_launcher.xml@@ -0,0 +1,5 @@+<?xml version="1.0" encoding="utf-8"?>+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">+ <foreground android:drawable="@mipmap/ic_launcher_foreground"/>+ <background android:drawable="@color/ic_launcher_background"/>+</adaptive-icon>\ No newline at end of filediff --git a/app/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png b/app/src-tauri/icons/android/mipmap-hdpi/ic_launcher.pngnew file mode 100644index 0000000..c3b8845Binary files /dev/null and b/app/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png differdiff --git a/app/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png b/app/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.pngnew file mode 100644index 0000000..a738cb2Binary files /dev/null and b/app/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png differdiff --git a/app/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png b/app/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.pngnew file mode 100644index 0000000..6dfd5efBinary files /dev/null and b/app/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png differdiff --git a/app/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png b/app/src-tauri/icons/android/mipmap-mdpi/ic_launcher.pngnew file mode 100644index 0000000..c1ac607Binary files /dev/null and b/app/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png differdiff --git a/app/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png b/app/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.pngnew file mode 100644index 0000000..fe807a5Binary files /dev/null and b/app/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png differdiff --git a/app/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png b/app/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.pngnew file mode 100644index 0000000..958251aBinary files /dev/null and b/app/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png differdiff --git a/app/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png b/app/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.pngnew file mode 100644index 0000000..51f317fBinary files /dev/null and b/app/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png differdiff --git a/app/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png b/app/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.pngnew file mode 100644index 0000000..17e8bf2Binary files /dev/null and b/app/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png differdiff --git a/app/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png b/app/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.pngnew file mode 100644index 0000000..27eabecBinary files /dev/null and b/app/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png differdiff --git a/app/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png b/app/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.pngnew file mode 100644index 0000000..400400bBinary files /dev/null and b/app/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png differdiff --git a/app/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png b/app/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.pngnew file mode 100644index 0000000..58b76e1Binary files /dev/null and b/app/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png differdiff --git a/app/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png b/app/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.pngnew file mode 100644index 0000000..f5b5b19Binary files /dev/null and b/app/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png differdiff --git a/app/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png b/app/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.pngnew file mode 100644index 0000000..1d84d22Binary files /dev/null and b/app/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png differdiff --git a/app/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png b/app/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.pngnew file mode 100644index 0000000..3e1d856Binary files /dev/null and b/app/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png differdiff --git a/app/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png b/app/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.pngnew file mode 100644index 0000000..afe5fdeBinary files /dev/null and b/app/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png differdiff --git a/app/src-tauri/icons/android/values/ic_launcher_background.xml b/app/src-tauri/icons/android/values/ic_launcher_background.xmlnew file mode 100644index 0000000..ea9c223--- /dev/null+++ b/app/src-tauri/icons/android/values/ic_launcher_background.xml@@ -0,0 +1,4 @@+<?xml version="1.0" encoding="utf-8"?>+<resources>+ <color name="ic_launcher_background">#fff</color>+</resources>\ No newline at end of filediff --git a/app/src-tauri/icons/icon.icns b/app/src-tauri/icons/icon.icnsnew file mode 100644index 0000000..3f64be7Binary files /dev/null and b/app/src-tauri/icons/icon.icns differdiff --git a/app/src-tauri/icons/icon.ico b/app/src-tauri/icons/icon.iconew file mode 100644index 0000000..49d6b44Binary files /dev/null and b/app/src-tauri/icons/icon.ico differdiff --git a/app/src-tauri/icons/icon.png b/app/src-tauri/icons/icon.pngnew file mode 100644index 0000000..68b71fdBinary files /dev/null and b/app/src-tauri/icons/icon.png differdiff --git a/app/src-tauri/icons/ios/[email protected] b/app/src-tauri/icons/ios/[email protected]new file mode 100644index 0000000..f6c1d25Binary files /dev/null and b/app/src-tauri/icons/ios/[email protected] differdiff --git a/app/src-tauri/icons/ios/[email protected] b/app/src-tauri/icons/ios/[email protected]new file mode 100644index 0000000..e003eafBinary files /dev/null and b/app/src-tauri/icons/ios/[email protected] differdiff --git a/app/src-tauri/icons/ios/[email protected] b/app/src-tauri/icons/ios/[email protected]new file mode 100644index 0000000..e003eafBinary files /dev/null and b/app/src-tauri/icons/ios/[email protected] differdiff --git a/app/src-tauri/icons/ios/[email protected] b/app/src-tauri/icons/ios/[email protected]new file mode 100644index 0000000..58b469dBinary files /dev/null and b/app/src-tauri/icons/ios/[email protected] differdiff --git a/app/src-tauri/icons/ios/[email protected] b/app/src-tauri/icons/ios/[email protected]new file mode 100644index 0000000..7cddf17Binary files /dev/null and b/app/src-tauri/icons/ios/[email protected] differdiff --git a/app/src-tauri/icons/ios/[email protected] b/app/src-tauri/icons/ios/[email protected]new file mode 100644index 0000000..9432e9aBinary files /dev/null and b/app/src-tauri/icons/ios/[email protected] differdiff --git a/app/src-tauri/icons/ios/[email protected] b/app/src-tauri/icons/ios/[email protected]new file mode 100644index 0000000..9432e9aBinary files /dev/null and b/app/src-tauri/icons/ios/[email protected] differdiff --git a/app/src-tauri/icons/ios/[email protected] b/app/src-tauri/icons/ios/[email protected]new file mode 100644index 0000000..45ff73bBinary files /dev/null and b/app/src-tauri/icons/ios/[email protected] differdiff --git a/app/src-tauri/icons/ios/[email protected] b/app/src-tauri/icons/ios/[email protected]new file mode 100644index 0000000..e003eafBinary files /dev/null and b/app/src-tauri/icons/ios/[email protected] differdiff --git a/app/src-tauri/icons/ios/[email protected] b/app/src-tauri/icons/ios/[email protected]new file mode 100644index 0000000..db6bb07Binary files /dev/null and b/app/src-tauri/icons/ios/[email protected] differdiff --git a/app/src-tauri/icons/ios/[email protected] b/app/src-tauri/icons/ios/[email protected]new file mode 100644index 0000000..db6bb07Binary files /dev/null and b/app/src-tauri/icons/ios/[email protected] differdiff --git a/app/src-tauri/icons/ios/[email protected] b/app/src-tauri/icons/ios/[email protected]new file mode 100644index 0000000..1790648Binary files /dev/null and b/app/src-tauri/icons/ios/[email protected] differdiff --git a/app/src-tauri/icons/ios/[email protected] b/app/src-tauri/icons/ios/[email protected]new file mode 100644index 0000000..3423ff1Binary files /dev/null and b/app/src-tauri/icons/ios/[email protected] differdiff --git a/app/src-tauri/icons/ios/[email protected] b/app/src-tauri/icons/ios/[email protected]new file mode 100644index 0000000..1790648Binary files /dev/null and b/app/src-tauri/icons/ios/[email protected] differdiff --git a/app/src-tauri/icons/ios/[email protected] b/app/src-tauri/icons/ios/[email protected]new file mode 100644index 0000000..2c51e47Binary files /dev/null and b/app/src-tauri/icons/ios/[email protected] differdiff --git a/app/src-tauri/icons/ios/[email protected] b/app/src-tauri/icons/ios/[email protected]new file mode 100644index 0000000..e54529aBinary files /dev/null and b/app/src-tauri/icons/ios/[email protected] differdiff --git a/app/src-tauri/icons/ios/[email protected] b/app/src-tauri/icons/ios/[email protected]new file mode 100644index 0000000..8dbb432Binary files /dev/null and b/app/src-tauri/icons/ios/[email protected] differdiff --git a/app/src-tauri/icons/ios/[email protected] b/app/src-tauri/icons/ios/[email protected]new file mode 100644index 0000000..6d27e25Binary files /dev/null and b/app/src-tauri/icons/ios/[email protected] differdiff --git a/app/src-tauri/icons/source.svg b/app/src-tauri/icons/source.svgnew file mode 100644index 0000000..912c8be--- /dev/null+++ b/app/src-tauri/icons/source.svg@@ -0,0 +1,24 @@+<svg width="1024" height="1024" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">+ <defs>+ <linearGradient id="bg" x1="96" y1="96" x2="928" y2="928" gradientUnits="userSpaceOnUse">+ <stop offset="0" stop-color="#8b78ff"/>+ <stop offset="1" stop-color="#4b39bf"/>+ </linearGradient>+ <linearGradient id="sheen" x1="512" y1="64" x2="512" y2="620" gradientUnits="userSpaceOnUse">+ <stop offset="0" stop-color="#ffffff" stop-opacity="0.20"/>+ <stop offset="1" stop-color="#ffffff" stop-opacity="0"/>+ </linearGradient>+ </defs>++ <!-- Brand tile -->+ <rect x="64" y="64" width="896" height="896" rx="208" fill="url(#bg)"/>+ <rect x="64" y="64" width="896" height="896" rx="208" fill="url(#sheen)"/>++ <!-- Markdown-style "M" + downward flux arrow -->+ <g transform="translate(0,-26)" fill="none" stroke="#ffffff"+ stroke-width="66" stroke-linecap="round" stroke-linejoin="round">+ <path d="M250 692 V412 L420 600 L590 412 V692"/>+ <path d="M726 406 V648"/>+ <path d="M672 590 L726 650 L780 590"/>+ </g>+</svg>diff --git a/app/src-tauri/resources/sidecar/audio.py b/app/src-tauri/resources/sidecar/audio.pynew file mode 100644index 0000000..1545019--- /dev/null+++ b/app/src-tauri/resources/sidecar/audio.py@@ -0,0 +1,67 @@+"""+Audio transcription — faster-whisper (CTranslate2-based, no PyTorch dependency).++Model weights (~74 MB for base) download from HuggingFace on first use and are+cached in the platform's default model cache directory.+"""++import importlib.util++AUDIO_EXTENSIONS: frozenset[str] = frozenset({+ ".mp3", ".wav", ".m4a", ".ogg", ".flac", ".mp4", ".webm", ".aac",+})+AUDIO_TIMEOUT_SECS: int = 600+++def is_available() -> bool:+ """+ True when faster-whisper is installed.++ Uses find_spec rather than importing — the heavy CTranslate2 import only ever+ happens inside the audio worker subprocess, never in the main sidecar process+ (see the rationale in ocr.is_available).+ """+ return importlib.util.find_spec("faster_whisper") is not None+++def transcribe(path: str, model_size: str = "base", cpu_threads: int = 0, progress_cb=None) -> str:+ """+ Transcribe an audio file to timestamped Markdown.++ progress_cb(frac_or_None, stage_str) called per segment.+ cpu_threads: CTranslate2 thread count (0 = all cores). Limited during batch runs+ so concurrent workers don't oversubscribe the CPU.+ Model weights are downloaded on first use — the download is implicit in+ WhisperModel() construction and may take a moment. We emit a loading-model+ progress event before construction starts so the UI shows activity.+ """+ from faster_whisper import WhisperModel++ if progress_cb:+ progress_cb(None, "loading-model")++ model = WhisperModel(model_size, device="cpu", compute_type="int8",+ cpu_threads=int(cpu_threads or 0))++ if progress_cb:+ progress_cb(0.0, "transcribing")++ segments, info = model.transcribe(path, beam_size=5)+ duration = max(info.duration or 1.0, 1.0)++ lines: list[str] = []+ for seg in segments:+ if progress_cb:+ frac = min(seg.start / duration, 0.99)+ progress_cb(frac, "transcribing")+ start = _fmt_ts(seg.start)+ end = _fmt_ts(seg.end)+ lines.append(f"**[{start} → {end}]** {seg.text.strip()}")++ return "\n\n".join(lines)+++def _fmt_ts(secs: float) -> str:+ m = int(secs // 60)+ s = secs - m * 60+ return f"{m:02d}:{s:05.2f}"diff --git a/app/src-tauri/resources/sidecar/audio_worker.py b/app/src-tauri/resources/sidecar/audio_worker.pynew file mode 100644index 0000000..e70e403--- /dev/null+++ b/app/src-tauri/resources/sidecar/audio_worker.py@@ -0,0 +1,103 @@+"""+Audio transcription worker subprocess — spawned once per transcription request.++Reads one JSON params line from stdin:+ { "path": "...", "model_size": "base" }++Writes JSON lines to stdout:+ progress: {"type":"progress","stage":"<str>","frac":<float|null>,"heartbeat":<ts>}+ result: {"type":"result","ok":<bool>,...}++The faster-whisper model downloads its weights on first use (~74 MB for "base").+That download happens inside WhisperModel() construction and is surfaced as a+"loading-model" progress event so the UI shows activity rather than freezing.+"""+import json+import os+import sys+import threading+import time+++def _write(obj: dict) -> None:+ sys.stdout.write(json.dumps(obj) + "\n")+ sys.stdout.flush()+++def _progress(stage: str, frac: float | None = None) -> None:+ _write({+ "type": "progress",+ "stage": stage,+ "frac": frac,+ "heartbeat": int(time.time()),+ })+++def main() -> None:+ raw = sys.stdin.readline()+ try:+ params = json.loads(raw)+ except (json.JSONDecodeError, ValueError):+ _write({"type": "result", "ok": False, "error": {+ "code": "INTERNAL_ERROR",+ "title": "Audio worker received bad params",+ "detail": "Could not parse params.",+ "suggested_action": "Restart the app.",+ }})+ return++ path: str = params.get("path", "")+ model_size: str = params.get("model_size", "base")+ cpu_threads: int = int(params.get("cpu_threads", 0) or 0) # 0 = use all cores++ # Signal that we're about to load the model (may download on first run).+ _progress("loading-model", 0.0)++ result_holder: dict = {}++ def progress_cb(frac, stage):+ _progress(stage, frac)++ def run() -> None:+ try:+ import audio as _audio+ text = _audio.transcribe(path, model_size=model_size,+ cpu_threads=cpu_threads, progress_cb=progress_cb)+ result_holder["markdown"] = text or ""+ except Exception as exc: # noqa: BLE001+ result_holder["error"] = str(exc)++ t = threading.Thread(target=run, daemon=True)+ t.start()++ while t.is_alive():+ t.join(timeout=10.0)+ if t.is_alive():+ # Keep the sidecar's idle timeout alive; the actual progress tracking+ # happens inside the run() thread via progress_cb.+ _progress("transcribing")++ if "error" in result_holder:+ _write({"type": "result", "ok": False, "error": {+ "code": "CONVERSION_FAILED",+ "title": "Transcription failed",+ "detail": result_holder["error"],+ "suggested_action": (+ "The file may be in an unsupported format. "+ "Try WAV or MP3, or check that the file is not corrupted."+ ),+ }})+ else:+ md = result_holder.get("markdown", "")+ _write({"type": "result", "ok": True, "result": {+ "markdown": md,+ "meta": {+ "detected_format": "audio",+ "converter_path": "audio.faster_whisper",+ "warnings": [] if md.strip() else ["Transcription produced no text."],+ },+ }})+++if __name__ == "__main__":+ main()diff --git a/app/src-tauri/resources/sidecar/capabilities.py b/app/src-tauri/resources/sidecar/capabilities.pynew file mode 100644index 0000000..d031e95--- /dev/null+++ b/app/src-tauri/resources/sidecar/capabilities.py@@ -0,0 +1,299 @@+"""+Single source of truth for format capabilities.++Both the diagnostics report and convert.py routing read from this module so the+panel and error messages can never disagree about what is available.+"""+import importlib+import importlib.util+import sys+import os+from pathlib import Path++SIDECAR_VERSION = "0.6.0"++# Core formats — provisioned at Stage 0 and always available.+# module: None means no extra needed beyond markitdown core.+_CORE_FORMATS: list[dict] = [+ {+ "key": "pdf",+ "label": "PDF",+ "extensions": [".pdf"],+ "module": "pdfminer",+ "converter": "markitdown.converters.pdf.PdfConverter",+ "mode": "markitdown",+ },+ {+ "key": "docx",+ "label": "Word (DOCX)",+ "extensions": [".docx"],+ "module": "mammoth",+ "converter": "markitdown.converters.docx.DocxConverter",+ "mode": "markitdown",+ },+ {+ "key": "pptx",+ "label": "PowerPoint (PPTX)",+ "extensions": [".pptx"],+ "module": "pptx",+ "converter": "markitdown.converters.pptx.PptxConverter",+ "mode": "markitdown",+ },+ {+ "key": "xlsx",+ "label": "Excel (XLSX)",+ "extensions": [".xlsx"],+ "module": "openpyxl",+ "converter": "markitdown.converters.xlsx.XlsxConverter",+ "mode": "markitdown",+ },+ {+ "key": "xls",+ "label": "Excel (XLS)",+ "extensions": [".xls"],+ "module": "xlrd",+ "converter": "markitdown.converters.xlsx.XlsxConverter",+ "mode": "markitdown",+ },+ {+ "key": "epub",+ "label": "EPUB",+ "extensions": [".epub"],+ # MarkItDown's EPUB converter uses only stdlib zipfile + defusedxml (PSF) + its+ # own HtmlConverter — NOT ebooklib (AGPL). Probe defusedxml so the health check+ # reflects the real dependency and the codebase stays copyleft-free.+ "module": "defusedxml",+ "converter": "markitdown.converters.epub.EpubConverter",+ "mode": "markitdown",+ "note": "Best-effort — complex layouts may not fully convert",+ },+ {+ "key": "html",+ "label": "HTML",+ "extensions": [".html", ".htm"],+ "module": "bs4",+ "converter": "markitdown.converters.html.HtmlConverter",+ "mode": "markitdown",+ },+ {+ "key": "csv",+ "label": "CSV",+ "extensions": [".csv"],+ "module": None,+ "converter": "markitdown.converters.csv.CsvConverter",+ "mode": "markitdown",+ },+ {+ "key": "json",+ "label": "JSON",+ "extensions": [".json"],+ "module": None,+ "converter": "markitdown.converters.plain_text.PlainTextConverter",+ "mode": "markitdown",+ },+ {+ "key": "xml",+ "label": "XML",+ "extensions": [".xml"],+ "module": None,+ "converter": "markitdown.converters.html.HtmlConverter",+ "mode": "markitdown",+ },+]++# OCR-based image formats — activated when RapidOCR is installed.+_OCR_FORMATS: list[dict] = [+ {+ "key": "image",+ "label": "Images (JPG, PNG, TIFF, WebP…)",+ "extensions": [".jpg", ".jpeg", ".png", ".gif", ".webp", ".tiff", ".tif", ".bmp"],+ "module": "rapidocr_onnxruntime",+ "converter": "ocr.RapidOCR",+ "mode": "ocr",+ "note": None,+ },+]++# Audio formats — activated when faster-whisper is installed.+_AUDIO_FORMATS: list[dict] = [+ {+ "key": "audio",+ "label": "Audio (MP3, WAV, M4A, OGG, FLAC…)",+ "extensions": [".mp3", ".wav", ".m4a", ".ogg", ".flac", ".aac"],+ "module": "faster_whisper",+ "converter": "audio.faster_whisper",+ "mode": "audio",+ "note": None,+ },+]+++# ── Extension → format lookup (used by convert.py and main.py) ───────────────++def ext_to_format(ext: str) -> dict | None:+ """+ Return the format entry for a file extension, or None if the extension is not+ a recognised format at all.++ Note: this always recognises image/audio extensions even when the optional+ engine isn't installed — the routing layer (main.py) is responsible for+ emitting a MISSING_EXTRA error that points the user to the install button.+ Returning None here would mislabel a known format as "unsupported".+ """+ all_formats = _CORE_FORMATS + _OCR_FORMATS + _AUDIO_FORMATS+ for fmt in all_formats:+ if ext in fmt["extensions"]:+ return fmt+ return None+++SUPPORTED_LIST = "PDF, DOCX, PPTX, XLSX, HTML, CSV, JSON, XML, EPUB, images, or audio"+++# ── Diagnostics report ────────────────────────────────────────────────────────++def _probe(fmt: dict) -> dict:+ """Probe one format entry and return a capability row."""+ module = fmt["module"]+ status = "available"+ error_msg = None+ module_version = None++ if module is not None:+ try:+ mod = importlib.import_module(module)+ for attr in ("__version__", "VERSION", "version"):+ v = getattr(mod, attr, None)+ if v and isinstance(v, (str, int, float)):+ module_version = str(v)+ break+ except ImportError:+ status = "missing"+ error_msg = f"'{module}' is not installed."+ except Exception as exc:+ status = "broken"+ error_msg = str(exc)++ return {+ "key": fmt["key"],+ "label": fmt["label"],+ "extensions": fmt["extensions"],+ "module": module,+ "module_version": module_version,+ "converter": fmt.get("converter"),+ "status": status,+ "error": error_msg,+ "note": fmt.get("note"),+ }+++# Module → distribution name, for version lookup without importing the module.+_DIST_NAMES = {+ "rapidocr_onnxruntime": "rapidocr-onnxruntime",+ "faster_whisper": "faster-whisper",+}+++def _dist_version(module: str) -> str | None:+ """Get a package version via metadata without importing the (heavy) module."""+ import importlib.metadata as md+ try:+ return md.version(_DIST_NAMES.get(module, module))+ except Exception:+ return None+++def _probe_optional(fmt: dict) -> dict:+ """+ Probe an optional-engine format (OCR/audio) WITHOUT importing the engine.++ Importing rapidocr_onnxruntime / faster_whisper loads native runtimes+ (onnxruntime, CTranslate2) into the main sidecar process, which stalls the+ asyncio Proactor event loop's subprocess pipe handling on Windows. We only+ check presence via find_spec and read the version from package metadata.+ """+ module = fmt["module"]+ installed = importlib.util.find_spec(module) is not None+ return {+ "key": fmt["key"],+ "label": fmt["label"],+ "extensions": fmt["extensions"],+ "module": module,+ "module_version": _dist_version(module) if installed else None,+ "converter": fmt.get("converter"),+ "status": "available" if installed else "missing",+ "error": None if installed else f"'{module}' is not installed.",+ "note": fmt.get("note"),+ }+++def _ocr_optional_status() -> dict:+ """Return the optional.ocr block for the capabilities report (no heavy import)."""+ if importlib.util.find_spec("rapidocr_onnxruntime") is not None:+ return {+ "status": "installed",+ "engine": "rapidocr-onnxruntime",+ "size_hint": "~200 MB",+ "note": "RapidOCR — scanned PDFs and image files",+ }+ return {+ "status": "not_installed",+ "engine": "rapidocr-onnxruntime",+ "size_hint": "~200 MB (ONNX Runtime + model)",+ "note": "Install to convert scanned PDFs and image files",+ }+++def _audio_optional_status() -> dict:+ """Return the optional.audio block for the capabilities report (no heavy import)."""+ if importlib.util.find_spec("faster_whisper") is not None:+ return {+ "status": "installed",+ "engine": "faster-whisper",+ "size_hint": "~100 MB + model weights on first use",+ "note": "Faster-Whisper — local audio transcription",+ }+ return {+ "status": "not_installed",+ "engine": "faster-whisper",+ "size_hint": "~100 MB (CTranslate2) + model weights on first use",+ "note": "Install to transcribe audio files locally",+ }+++def report() -> dict:+ """Full capability report. Safe to call at any time; never raises."""+ try:+ import markitdown as _md+ markitdown_version = getattr(_md, "__version__", "installed")+ except ImportError:+ markitdown_version = "not installed"++ venv = os.environ.get("VIRTUAL_ENV") or str(Path(sys.executable).parent.parent)++ # Core formats always probed.+ formats: list[dict] = [_probe(f) for f in _CORE_FORMATS]++ # Optional-engine formats: probe them too but as separate rows so Diagnostics+ # can show "install OCR to enable" for missing ones.+ for f in _OCR_FORMATS:+ row = _probe_optional(f)+ formats.append(row)++ for f in _AUDIO_FORMATS:+ row = _probe_optional(f)+ formats.append(row)++ return {+ "runtime": {+ "python_version": sys.version.split()[0],+ "sidecar_version": SIDECAR_VERSION,+ "markitdown_version": markitdown_version,+ "venv_path": venv,+ },+ "formats": formats,+ "optional": {+ "ocr": _ocr_optional_status(),+ "audio": _audio_optional_status(),+ },+ }diff --git a/app/src-tauri/resources/sidecar/cleanup.py b/app/src-tauri/resources/sidecar/cleanup.pynew file mode 100644index 0000000..5b21a6a--- /dev/null+++ b/app/src-tauri/resources/sidecar/cleanup.py@@ -0,0 +1,464 @@+"""+Markdown cleanup — pure deterministic post-process, plus an optional LLM pass.++Design (Stage 5):+- `clean(markdown, source_format, rules)` is a PURE function: raw Markdown in,+ cleaned Markdown out, plus a structured per-rule change summary. No model, no+ network, deterministic, fast, fully unit-testable against fixtures.+- Each rule is independently toggleable via the `rules` dict. The ORDER in which+ rules run is fixed (RULE_ORDER) regardless of which are enabled.+- The function never mutates anything on disk; the caller retains the raw text, so+ cleanup is always reversible.+- `llm_clean(text, provider_cfg)` runs AFTER the deterministic pass when the user+ opts in. It reuses provider.py's chat plumbing and FAILS SOFT — on any error it+ raises, and the caller falls back to the deterministic output with a notice.++The rules target documented MarkItDown PDF pain points:+ strip_cid — remove (cid:N) glyph markers+ dedup_lines — drop repeated header/footer / duplicated lines+ repair_lines — rejoin sentences split across lines by column/page breaks+ collapse_blanks — normalise runs of blank lines+ detect_headings — conservatively promote heading-like lines to Markdown headings+"""+import re++import provider as _provider++# Fixed deterministic order. Each rule applies only if enabled in `rules`.+RULE_ORDER: list[str] = [+ "strip_cid",+ "dedup_lines",+ "repair_lines",+ "collapse_blanks",+ "detect_headings",+]++RULE_LABELS: dict[str, str] = {+ "strip_cid": "Removed (cid:N) markers",+ "dedup_lines": "Removed duplicate lines",+ "repair_lines": "Rejoined broken lines",+ "collapse_blanks": "Collapsed blank runs",+ "detect_headings": "Detected headings",+}++# The LLM cleans the document in CHUNKS so the prompt never overflows the model's+# context window. Overflow is the #1 cause of "the AI truncated my document": a local+# server (Ollama) silently drops the FRONT of an over-long prompt — at its 2048-token+# default — so the model only sees a fragment and returns something far shorter (often+# a summary). Each chunk is sized to fit comfortably, and for local models we ALSO set+# the context window explicitly per request (see provider.chat_local / chat_ollama).+_CHUNK_TARGET_CHARS: int = 8_000 # ~2,000 tokens of input per request+_NUM_CTX_MAX: int = 16_384 # cap on the local context window we request+_NUM_CTX_FLOOR: int = 2_048+_CHARS_PER_TOKEN: int = 4 # rough English estimate for sizing only++# Data-loss guardrail. The LLM is asked only to fix formatting, never to summarise+# or drop content — but small models routinely ignore that. After the LLM responds+# we verify it preserved the input's content; if not, we warn the user (advisory).+LLM_MIN_WORD_RECALL: float = 0.85 # below this, warn the user (advisory, not enforced)+LLM_MIN_LENGTH_RATIO: float = 0.6 # below this fraction of input length, warn the user++# System instruction — framed as a formatter, applied per chunk.+_SYSTEM_PROMPT: str = (+ "You are a text-formatting tool, not an assistant. You receive Markdown that "+ "was extracted from a document and you return a corrected copy of it.\n"+ "Make ONLY these changes:\n"+ "- repair Markdown structure: headings, lists, tables, paragraph spacing\n"+ "- remove obvious extraction artifacts and stray characters\n"+ "Hard rules you must obey:\n"+ "- Output ONLY the corrected Markdown. No preamble, no explanation, no "+ "commentary, no quoting, no surrounding code fences.\n"+ "- NEVER summarise, shorten, reword, translate, reorder, or omit any content.\n"+ "- Preserve every sentence, number, heading, and line of content.\n"+ "- If nothing needs fixing, return the input unchanged."+)+++class CleanupCancelled(Exception):+ """Raised inside the worker thread when the caller cancels mid-document."""++_CID_RE = re.compile(r"\(cid:\d+\)")+_STRUCTURAL_RE = re.compile(r"^\s*(#{1,6}\s|[-*+]\s|\d+[.)]\s|>|\||```|~~~)")+_NUMBERED_HEADING_RE = re.compile(r"^(\d+(?:\.\d+)*)\.?\s+\S")+_TERMINAL_PUNCT = (".", ",", ";", ":", "!", "?")+++# ── Public API ─────────────────────────────────────────────────────────────────++def clean(markdown: str, source_format: str, rules: dict) -> tuple[str, dict]:+ """Apply the enabled deterministic rules in fixed order.++ Returns (cleaned_markdown, summary). `summary` has the shape:+ {+ "rules": [{"key","label","applied","changes"}, ...], # one per RULE_ORDER+ "char_delta": int, # cleaned_len - raw_len (negative = shrank)+ "line_delta": int,+ }+ """+ raw_chars = len(markdown)+ raw_lines = markdown.count("\n") + 1+ text = markdown+ rule_summaries: list[dict] = []++ for key in RULE_ORDER:+ enabled = bool(rules.get(key, False))+ changes = 0+ if enabled:+ text, changes = _RULES[key](text)+ rule_summaries.append({+ "key": key,+ "label": RULE_LABELS[key],+ "applied": enabled,+ "changes": changes,+ })++ summary = {+ "rules": rule_summaries,+ "char_delta": len(text) - raw_chars,+ "line_delta": (text.count("\n") + 1) - raw_lines,+ }+ return text, summary+++def llm_clean(+ text: str,+ provider_cfg: dict,+ timeout: float = 120.0,+ progress_cb=None,+ should_cancel=None,+) -> str:+ """Run an LLM cleanup pass, CHUNKED so no single request overflows the model's+ context window. Reuses provider.py plumbing; raises on failure (caller fails soft).++ `provider_cfg`: {mode, api_type, base_url, key, model}.+ `progress_cb(done, total)`: optional, called as each chunk completes (thread-safe+ ints only — it's invoked from the executor thread).+ `should_cancel()`: optional predicate; checked between chunks. Returns truthy to+ stop early (raises CleanupCancelled).+ """+ mode = provider_cfg.get("mode", "off")+ model = (provider_cfg.get("model") or "").strip()+ base_url = provider_cfg.get("base_url", "")+ key = provider_cfg.get("key", "")+ api_type = provider_cfg.get("api_type", "openai_compat")++ # Short-circuit: an empty document would still trigger model resolution ++ # one LLM chunk call with an empty user message — wasteful. Fire BEFORE+ # _resolve_model so no network call is made for empty input.+ if not text.strip():+ return text++ # Resolve the model once, not per chunk.+ if not model:+ model = _resolve_model(mode, api_type, base_url, key)++ chunks = _split_into_chunks(text, _CHUNK_TARGET_CHARS)+ total = len(chunks)+ if progress_cb:+ progress_cb(0, total)++ cleaned_parts: list[str] = []+ for i, chunk in enumerate(chunks):+ if should_cancel and should_cancel():+ raise CleanupCancelled()+ out = _clean_one_chunk(chunk, mode, api_type, base_url, key, model, timeout)+ cleaned_parts.append(out.strip("\n"))+ if progress_cb:+ progress_cb(i + 1, total)++ return "\n\n".join(p for p in cleaned_parts if p)+++def data_loss_warning(original: str, candidate: str) -> str | None:+ """Advisory check (NOT enforced): if the AI output looks like it dropped or+ rewrote content, return a warning string for the UI to show. The AI result is+ still presented — the user decides whether to keep it. Returns None if it looks+ faithful."""+ if not candidate or not candidate.strip():+ return None # emptiness is handled by the caller as a hard failure++ olen, clen = len(original), len(candidate)+ if olen > 0 and clen < LLM_MIN_LENGTH_RATIO * olen:+ pct = round((1 - clen / olen) * 100)+ return (+ f"The AI result is about {pct}% shorter than the original — it may have "+ "dropped content (common with large files on local models). Compare with "+ "Original / Changes before saving, or try a larger model or API mode."+ )++ orig_words = _content_words(original)+ if orig_words:+ kept = orig_words & _content_words(candidate)+ recall = len(kept) / len(orig_words)+ if recall < LLM_MIN_WORD_RECALL:+ return (+ "The AI may have changed or dropped some content. Compare with "+ "Original / Changes before saving."+ )+ return None+++def _resolve_model(mode, api_type, base_url, key) -> str:+ if mode == "api" and api_type == "anthropic":+ return _provider.first_model_anthropic(key)+ if mode == "local":+ return _provider.first_model_local(base_url)+ return _provider.first_model_openai_compat(base_url, key)+++def _est_tokens(s: str) -> int:+ return max(1, len(s) // _CHARS_PER_TOKEN)+++def _round_up(n: int, step: int) -> int:+ return ((n + step - 1) // step) * step+++def _clean_one_chunk(chunk, mode, api_type, base_url, key, model, timeout) -> str:+ """Send one chunk to the model with a context window / output cap sized to fit it,+ so the prompt is never silently truncated."""+ system = _SYSTEM_PROMPT+ # A faithful copy is roughly the same length as the input, plus headroom for any+ # added structure. Budget output ~1.5x the chunk's tokens.+ out_budget = int(_est_tokens(chunk) * 1.5) + 256++ if mode == "api" and api_type == "anthropic":+ return _provider.chat_anthropic(key, model, system, chunk, timeout,+ max_tokens=min(8192, out_budget))++ if mode == "local":+ in_tok = _est_tokens(system) + _est_tokens(chunk)+ num_ctx = _round_up(in_tok + out_budget + 256, 2048)+ num_ctx = max(_NUM_CTX_FLOOR, min(num_ctx, _NUM_CTX_MAX))+ return _provider.chat_local(base_url, model, system, chunk, timeout,+ num_ctx=num_ctx, num_predict=out_budget)++ # api, openai-compatible (OpenAI, Groq, …) — large fixed context; cap the output.+ return _provider.chat_openai_compat(base_url, key, model, system, chunk, timeout,+ max_tokens=out_budget)+++def _split_into_chunks(text: str, target_chars: int) -> list[str]:+ """Split Markdown into chunks of <= ~target_chars on block boundaries (blank lines),+ keeping fenced code blocks and tables intact. A single block larger than the target+ becomes its own chunk rather than being split mid-structure."""+ lines = text.split("\n")+ blocks: list[str] = []+ cur: list[str] = []+ in_fence = False+ fence: str | None = None++ for line in lines:+ stripped = line.lstrip()+ is_fence = stripped.startswith("```") or stripped.startswith("~~~")+ if is_fence:+ marker = stripped[:3]+ if not in_fence:+ in_fence, fence = True, marker+ elif fence and stripped.startswith(fence):+ in_fence, fence = False, None+ cur.append(line)+ continue+ if line.strip() == "" and not in_fence:+ if cur:+ blocks.append("\n".join(cur))+ cur = []+ else:+ cur.append(line)+ if cur:+ blocks.append("\n".join(cur))++ chunks: list[str] = []+ buf: list[str] = []+ size = 0+ for b in blocks:+ blen = len(b) + 2+ if buf and size + blen > target_chars:+ chunks.append("\n\n".join(buf))+ buf, size = [], 0+ buf.append(b)+ size += blen+ if buf:+ chunks.append("\n\n".join(buf))++ return chunks if chunks else [text]+++def _content_words(text: str) -> set[str]:+ return set(re.findall(r"[a-z0-9]{4,}", text.lower()))+++# ── Rule implementations ────────────────────────────────────────────────────────+# Each returns (new_text, change_count).++def _rule_strip_cid(text: str) -> tuple[str, int]:+ count = len(_CID_RE.findall(text))+ if not count:+ return text, 0+ out = _CID_RE.sub("", text)+ # Tidy doubled spaces left behind, line by line (don't touch leading indent).+ lines = []+ for line in out.split("\n"):+ stripped = re.sub(r"[ \t]{2,}", " ", line)+ lines.append(stripped.rstrip() if stripped.strip() else line)+ return "\n".join(lines), count+++def _rule_dedup_lines(text: str) -> tuple[str, int]:+ lines = text.split("\n")++ # Pass A: collapse immediate consecutive duplicate non-empty lines.+ deduped: list[str] = []+ removed = 0+ for line in lines:+ if line.strip() and deduped and deduped[-1] == line:+ removed += 1+ continue+ deduped.append(line)++ # Pass B: drop repeated short running heads / footers / page numbers — lines that+ # recur >= 3 times across the doc and are short. Keep the first occurrence.+ counts: dict[str, int] = {}+ for line in deduped:+ s = line.strip()+ if s and len(s) <= 80:+ counts[s] = counts.get(s, 0) + 1+ frequent = {s for s, c in counts.items() if c >= 3}++ result: list[str] = []+ seen: set[str] = set()+ for line in deduped:+ s = line.strip()+ if s in frequent:+ if s in seen:+ removed += 1+ continue+ seen.add(s)+ result.append(line)++ return "\n".join(result), removed+++def _rule_repair_lines(text: str) -> tuple[str, int]:+ lines = text.split("\n")+ out: list[str] = []+ joins = 0++ for line in lines:+ if not out:+ out.append(line)+ continue++ prev = out[-1]+ if _can_join(prev, line):+ if prev.rstrip().endswith("-") and not prev.rstrip().endswith("--"):+ # De-hyphenate: "exam-" + "ple" -> "example"+ out[-1] = prev.rstrip()[:-1] + line.lstrip()+ else:+ out[-1] = prev.rstrip() + " " + line.lstrip()+ joins += 1+ else:+ out.append(line)++ return "\n".join(out), joins+++def _can_join(prev: str, cur: str) -> bool:+ p, c = prev.strip(), cur.strip()+ if not p or not c:+ return False+ if _STRUCTURAL_RE.match(prev) or _STRUCTURAL_RE.match(cur):+ return False+ # Previous line already ends a sentence/block → leave the break.+ if p.endswith(_TERMINAL_PUNCT):+ # Exception: a trailing hyphen means a split word.+ if not p.endswith("-"):+ return False+ # Continuation looks like a new sentence/proper start → don't merge.+ first = c[0]+ if first.isupper() or first.isdigit():+ return False+ return True+++def _rule_collapse_blanks(text: str) -> tuple[str, int]:+ lines = text.split("\n")+ out: list[str] = []+ blanks = 0+ removed = 0+ for line in lines:+ if line.strip() == "":+ blanks += 1+ if blanks <= 1:+ out.append(line)+ else:+ removed += 1+ else:+ blanks = 0+ out.append(line)+ return "\n".join(out), removed+++def _rule_detect_headings(text: str) -> tuple[str, int]:+ lines = text.split("\n")+ n = len(lines)+ promoted = 0++ def blank_or_edge(i: int) -> bool:+ return i < 0 or i >= n or lines[i].strip() == ""++ for i, line in enumerate(lines):+ s = line.strip()+ if not s:+ continue+ # Must be visually isolated (blank or document edge on both sides).+ if not (blank_or_edge(i - 1) and blank_or_edge(i + 1)):+ continue+ if _STRUCTURAL_RE.match(line):+ continue+ if len(s) > 60 or len(s.split()) > 10:+ continue+ if s.endswith((".", ",", ";", ":")):+ continue++ m = _NUMBERED_HEADING_RE.match(s)+ if m:+ depth = m.group(1).count(".") + 1+ level = "###" if depth >= 2 else "##"+ lines[i] = f"{level} {s}"+ promoted += 1+ continue++ if _is_titleish(s):+ lines[i] = f"## {s}"+ promoted += 1++ return "\n".join(lines), promoted+++def _is_titleish(s: str) -> bool:+ letters = [ch for ch in s if ch.isalpha()]+ if not letters:+ return False+ # ALL CAPS (short heading shout) — strong signal.+ if s.upper() == s and any(ch.isalpha() for ch in s):+ return True+ # Title Case: most significant words start uppercase.+ words = [w for w in re.split(r"\s+", s) if any(ch.isalpha() for ch in w)]+ if len(words) < 2:+ return False+ minor = {"a", "an", "the", "of", "and", "or", "to", "in", "on", "for", "with"}+ significant = [w for w in words if w.lower() not in minor]+ if not significant:+ return False+ capped = sum(1 for w in significant if w[0].isupper())+ return capped / len(significant) >= 0.8+++_RULES = {+ "strip_cid": _rule_strip_cid,+ "dedup_lines": _rule_dedup_lines,+ "repair_lines": _rule_repair_lines,+ "collapse_blanks": _rule_collapse_blanks,+ "detect_headings": _rule_detect_headings,+}diff --git a/app/src-tauri/resources/sidecar/errors.py b/app/src-tauri/resources/sidecar/errors.pynew file mode 100644index 0000000..3361aeb--- /dev/null+++ b/app/src-tauri/resources/sidecar/errors.py@@ -0,0 +1,25 @@+"""Typed error codes and envelope builder for IPC v1."""+++UNSUPPORTED_FORMAT = "UNSUPPORTED_FORMAT"+MISSING_EXTRA = "MISSING_EXTRA"+FILE_NOT_FOUND = "FILE_NOT_FOUND"+FILE_UNREADABLE = "FILE_UNREADABLE"+CONVERSION_FAILED = "CONVERSION_FAILED"+INTERNAL_ERROR = "INTERNAL_ERROR"+TIMEOUT = "TIMEOUT"+CANCELLED = "CANCELLED"+ENCRYPTED_INPUT = "ENCRYPTED_INPUT"+FILE_TOO_LARGE = "FILE_TOO_LARGE"+++def err(code: str, title: str, detail: str, suggested_action: str) -> dict:+ return {+ "ok": False,+ "error": {+ "code": code,+ "title": title,+ "detail": detail,+ "suggested_action": suggested_action,+ },+ }diff --git a/app/src-tauri/resources/sidecar/health.py b/app/src-tauri/resources/sidecar/health.pynew file mode 100644index 0000000..6823c5d--- /dev/null+++ b/app/src-tauri/resources/sidecar/health.py@@ -0,0 +1,40 @@+"""Health-check: probes Python version, markitdown core, and each format extra.++The EXTRAS map is derived from capabilities._CORE_FORMATS so the two cannot drift+(see the Stage 3 review: health had an 'outlook' entry that capabilities didn't).+"""+import sys+import importlib++import capabilities as _caps+++def _extras_map() -> dict[str, str]:+ return {+ f["key"]: f["module"]+ for f in _caps._CORE_FORMATS+ if f.get("module")+ }+++def check() -> dict:+ result = {+ "python_version": sys.version.split()[0],+ "markitdown_version": None,+ "extras": {},+ }++ try:+ import markitdown+ result["markitdown_version"] = getattr(markitdown, "__version__", "installed")+ except ImportError:+ pass++ for name, module in _extras_map().items():+ try:+ importlib.import_module(module)+ result["extras"][name] = True+ except ImportError:+ result["extras"][name] = False++ return resultdiff --git a/app/src-tauri/resources/sidecar/main.py b/app/src-tauri/resources/sidecar/main.pynew file mode 100644index 0000000..5ed66bb--- /dev/null+++ b/app/src-tauri/resources/sidecar/main.py@@ -0,0 +1,790 @@+"""+Sidecar entry point — asyncio NDJSON IPC v1.++Three concurrent concerns on the same event loop:+ 1. Stdin reader — reads requests from Rust via run_in_executor (non-blocking).+ 2. Conversion tasks — one asyncio.Task per convert-one request; keyed by request id.+ 3. Provider checks — background tasks, separate from conversion.++IPC v1 protocol:+ Request: {"v":1, "id":"<str>", "method":"<str>", "params":{}}+ Success: {"v":1, "id":"<str>", "ok":true, "result":<value>}+ Failure: {"v":1, "id":"<str>", "ok":false, "error":{"code","title","detail","suggested_action"}}+ Progress: {"v":1, "id":"<conv-id>", "type":"progress", "stage":"<str>", "frac":<float|null>, "heartbeat":<int>}++Stage 4 change: concurrent convert-one is now supported. Each request gets its+own asyncio.Event for cancellation, keyed by request id. "cancel" with no id+cancels all; with an "id" param it cancels one specific conversion.+"""+import asyncio+import functools+import importlib+import json+import os+import sys+import time+from pathlib import Path++import capabilities as _caps+import cleanup as _cleanup_mod+import health+import preflight+import provider as _provider+from errors import (+ CANCELLED,+ FILE_NOT_FOUND,+ INTERNAL_ERROR,+ MISSING_EXTRA,+ TIMEOUT,+ UNSUPPORTED_FORMAT,+ err,+)++TIMEOUT_SECS: int = 120+# AI cleanup per-chunk timeout. Lowered from 600 to 120 so Cancel doesn't wait up+# to 10 minutes for an in-flight LLM chunk to finish. The overall deadline still+# extends on each chunk completion, so a multi-chunk document is fine.+CLEANUP_LLM_TIMEOUT_SECS: int = 120+OCR_TIMEOUT_SECS: int = 600+AUDIO_TIMEOUT_SECS: int = 600+# Online-only cloud files (OneDrive Files On-Demand) must be downloaded on first read;+# a large one on a slow link can take a while, so a cloud file gets the long budget.+CLOUD_TIMEOUT_SECS: int = 600+# The worker returns the whole conversion result as one NDJSON line. asyncio's+# StreamReader defaults to a 64 KiB line limit, which a large document blows past+# ("Separator is not found, and chunk exceed the limit"). Raise it generously —+# input is already capped at 100 MB by preflight, so extracted text stays bounded.+WORKER_STREAM_LIMIT: int = 256 * 1024 * 1024+_SIDECAR_DIR: Path = Path(__file__).parent+++class Sidecar:+ def __init__(self) -> None:+ self._write_lock: asyncio.Lock = asyncio.Lock()+ # Per-conversion cancel events keyed by request id.+ # Populated on convert-one, removed in _convert_safe's finally block.+ self._cancel_events: dict[str, asyncio.Event] = {}+ # Cap concurrent worker subprocesses so a 50-item batch doesn't spawn 50+ # MarkItDown/OCR/Whisper processes at once (multi-GB RAM, thrash). Defense-in-depth+ # even though Rust also serializes via its batch semaphore.+ cpu = os.cpu_count() or 4+ self._worker_sem = asyncio.Semaphore(max(2, min(8, cpu // 2)))+ # Track active worker subprocesses so we can kill them on shutdown (M11).+ self._active_procs: set[asyncio.subprocess.Process] = set()++ # ── Output ──────────────────────────────────────────────────────────────++ async def write(self, obj: dict) -> None:+ async with self._write_lock:+ sys.stdout.write(json.dumps(obj) + "\n")+ sys.stdout.flush()++ # ── Dispatch ────────────────────────────────────────────────────────────++ async def dispatch(self, req: dict) -> None:+ method = req.get("method") or req.get("cmd", "")+ req_id = req.get("id", "")+ params = req.get("params") or {}++ if method == "health":+ # Run in executor so importing 7 format modules doesn't block the event+ # loop (matters if health is called while conversions are in flight).+ loop = asyncio.get_running_loop()+ result = await loop.run_in_executor(None, health.check)+ await self.write({"v": 1, "id": req_id, "ok": True, "result": result})++ elif method == "capabilities":+ loop = asyncio.get_running_loop()+ result = await loop.run_in_executor(None, _caps.report)+ await self.write({"v": 1, "id": req_id, "ok": True, "result": result})++ elif method == "check-provider":+ asyncio.create_task(self._check_provider_safe(req_id, params))++ elif method == "convert-one":+ # Concurrent conversions are supported — no BUSY check.+ cancel_event = asyncio.Event()+ self._cancel_events[req_id] = cancel_event+ asyncio.create_task(self._convert_safe(req_id, params, cancel_event))++ elif method == "cleanup":+ # Deterministic + optional LLM cleanup. Cancellable via the same+ # per-id event dict so batch cancel (cancel-all) stops the LLM pass.+ cancel_event = asyncio.Event()+ self._cancel_events[req_id] = cancel_event+ asyncio.create_task(self._cleanup_safe(req_id, params, cancel_event))++ elif method == "cancel":+ target_id = params.get("id")+ cancelled_ids: list[str] = []+ if target_id:+ # Cancel one specific conversion.+ if target_id in self._cancel_events:+ self._cancel_events[target_id].set()+ cancelled_ids.append(target_id)+ else:+ # No id → cancel all active conversions (backwards-compat ++ # batch cancel path).+ for eid, event in self._cancel_events.items():+ event.set()+ cancelled_ids.append(eid)+ # Ack so the caller doesn't hang waiting for a response.+ await self.write({"v": 1, "id": req_id, "ok": True, "result": {"cancelled": cancelled_ids}})++ else:+ await self.write({"v": 1, "id": req_id, **err(+ "UNKNOWN_METHOD",+ "Unknown method",+ f"Unrecognised method: {method!r}",+ "Update the app.",+ )})++ # ── Conversion ──────────────────────────────────────────────────────────++ async def _convert_safe(+ self, conv_id: str, params: dict, cancel_event: asyncio.Event+ ) -> None:+ try:+ await self._convert(conv_id, params, cancel_event)+ except Exception as exc: # noqa: BLE001+ await self.write({"v": 1, "id": conv_id, **err(+ INTERNAL_ERROR,+ "Internal error",+ str(exc),+ "Restart the app. If this keeps happening, re-install.",+ )})+ finally:+ self._cancel_events.pop(conv_id, None)++ async def _convert(+ self, conv_id: str, params: dict, cancel_event: asyncio.Event+ ) -> None:+ path: str = params.get("path", "")+ llm_cfg: dict | None = params.get("llm")++ if not path:+ await self.write({"v": 1, "id": conv_id, **err(+ FILE_NOT_FOUND, "No file path provided",+ "The request did not include a file path.",+ "Select a file and try again.",+ )})+ return++ if not os.path.exists(path):+ await self.write({"v": 1, "id": conv_id, **err(+ FILE_NOT_FOUND, "File not found",+ f"'{os.path.basename(path)}' does not exist at the given path.",+ "Check that the file hasn't been moved or deleted, then try again.",+ )})+ return++ ext = os.path.splitext(path)[1].lower()+ fmt_entry = _caps.ext_to_format(ext)++ if fmt_entry is None:+ await self.write({"v": 1, "id": conv_id, **err(+ UNSUPPORTED_FORMAT, "Format not supported",+ f"'{ext or '(no extension)'}' files can't be converted.",+ f"Use {_caps.SUPPORTED_LIST}.",+ )})+ return++ mode = fmt_entry.get("mode", "markitdown")++ # Online-only cloud file (OneDrive): reading it downloads it first, which counts+ # against the time budget. Acknowledge it in the UI; the standard path also gets a+ # longer timeout below (OCR/audio already have the long budget).+ cloud = preflight._is_cloud_placeholder(path)+ if cloud:+ await self._emit_progress(conv_id, "downloading")++ # ── OCR routing ────────────────────────────────────────────────────────+ if mode == "ocr":+ import ocr as _ocr+ if not _ocr.is_available():+ await self.write({"v": 1, "id": conv_id,+ **_missing_engine_err("ocr", fmt_entry["key"])})+ return+ await self._convert_ocr(conv_id, path, fmt_entry, cancel_event)+ return++ # ── Audio routing ──────────────────────────────────────────────────────+ if mode == "audio":+ import audio as _audio+ if not _audio.is_available():+ await self.write({"v": 1, "id": conv_id,+ **_missing_engine_err("audio", fmt_entry["key"])})+ return+ await self._convert_audio(conv_id, path, params, cancel_event)+ return++ # ── Standard MarkItDown routing ────────────────────────────────────────+ fmt = fmt_entry["key"]+ required_module = fmt_entry.get("module")+ converter_path = fmt_entry.get("converter", "")++ if cancel_event.is_set():+ await self.write({"v": 1, "id": conv_id, **_cancelled_err()})+ return++ await self._emit_progress(conv_id, "preflight")++ flight_err = preflight.check(path, ext)+ if flight_err:+ await self.write({"v": 1, "id": conv_id, **flight_err})+ return++ # Special case: PDF that appears to be scanned — route to OCR if available.+ # The detection parses the PDF with pdfminer, which is a multi-second+ # blocking call — run it in an executor so the event loop stays responsive+ # to cancel requests and other concurrent conversions. Race it against the+ # cancel event so Cancel is honoured immediately, not after the parse ends.+ if ext == ".pdf" and required_module:+ import ocr as _ocr+ if _ocr.is_available():+ loop = asyncio.get_running_loop()+ detect = asyncio.ensure_future(+ loop.run_in_executor(None, _ocr.is_scanned_pdf, path)+ )+ cancel_wait = asyncio.ensure_future(cancel_event.wait())+ await asyncio.wait(+ {detect, cancel_wait}, return_when=asyncio.FIRST_COMPLETED+ )+ cancel_wait.cancel()+ if cancel_event.is_set():+ # The detached executor finishes pdfminer in the background; we+ # don't wait on it — the user already asked to stop.+ await self.write({"v": 1, "id": conv_id, **_cancelled_err()})+ return+ if detect.result():+ scanned_entry = {"key": "pdf-ocr", "converter": "ocr.RapidOCR"}+ await self._convert_ocr(conv_id, path, scanned_entry, cancel_event, is_pdf=True)+ return++ if required_module:+ try:+ importlib.import_module(required_module)+ except ImportError:+ e = err(+ MISSING_EXTRA, "Required package missing",+ f"The '{required_module}' package is not installed.",+ "Open Diagnostics and click Repair to reinstall packages.",+ )+ e["error"]["diagnostics_key"] = fmt+ await self.write({"v": 1, "id": conv_id, **e})+ return++ worker_params: dict = {"path": path, "fmt": fmt, "converter_path": converter_path}+ if llm_cfg and llm_cfg.get("mode", "off") != "off":+ worker_params["llm"] = llm_cfg++ await self._run_worker_subprocess(+ conv_id=conv_id,+ worker_path=_SIDECAR_DIR / "worker.py",+ worker_params=worker_params,+ cancel_event=cancel_event,+ timeout_secs=CLOUD_TIMEOUT_SECS if cloud else TIMEOUT_SECS,+ timeout_msg=(+ "The file may still be downloading from the cloud. Make it available "+ "offline (right-click → Always keep on this device), then try again."+ if cloud else+ f"The conversion took longer than {TIMEOUT_SECS} seconds and was stopped."+ ),+ )++ # ── OCR conversion ──────────────────────────────────────────────────────────++ async def _convert_ocr(+ self,+ conv_id: str,+ path: str,+ fmt_entry: dict,+ cancel_event: asyncio.Event,+ is_pdf: bool = False,+ ) -> None:+ """Spawn ocr_worker.py for image files and scanned PDFs."""+ fmt = fmt_entry["key"]+ converter_path = fmt_entry.get("converter", "ocr.RapidOCR")+ worker_path = _SIDECAR_DIR / "ocr_worker.py"++ await self._run_worker_subprocess(+ conv_id=conv_id,+ worker_path=worker_path,+ worker_params={"path": path, "fmt": fmt, "is_pdf": is_pdf, "converter_path": converter_path},+ cancel_event=cancel_event,+ timeout_secs=OCR_TIMEOUT_SECS,+ timeout_msg=f"OCR took longer than {OCR_TIMEOUT_SECS} seconds and was stopped.",+ )++ # ── Audio transcription ────────────────────────────────────────────────────++ async def _convert_audio(+ self,+ conv_id: str,+ path: str,+ params: dict,+ cancel_event: asyncio.Event,+ ) -> None:+ """Spawn audio_worker.py for audio files."""+ model_size = params.get("audio_model", "base")+ worker_path = _SIDECAR_DIR / "audio_worker.py"++ await self._run_worker_subprocess(+ conv_id=conv_id,+ worker_path=worker_path,+ worker_params={"path": path, "model_size": model_size},+ cancel_event=cancel_event,+ timeout_secs=AUDIO_TIMEOUT_SECS,+ timeout_msg=f"Transcription took longer than {AUDIO_TIMEOUT_SECS} seconds and was stopped.",+ )++ # ── Generic worker subprocess runner ──────────────────────────────────────++ async def _run_worker_subprocess(+ self,+ conv_id: str,+ worker_path: Path,+ worker_params: dict,+ cancel_event: asyncio.Event,+ timeout_secs: int,+ timeout_msg: str,+ ) -> None:+ """+ Spawn a worker script as a subprocess, stream its progress/heartbeat events,+ and write the final result or error to the IPC channel.+ Cancellable; emits heartbeats every 5 s to keep Rust's idle timeout alive.+ """+ if cancel_event.is_set():+ await self.write({"v": 1, "id": conv_id, **_cancelled_err()})+ return++ # CPU-thread budget. Batch items (conv_id "batch-…") get a limited thread count+ # so N concurrent heavy workers (OCR/audio) don't oversubscribe the machine;+ # single-file conversions use all cores. The budget is set by Rust per machine.+ is_batch = conv_id.startswith("batch-")+ cpu_threads = 0+ sub_env = os.environ+ if is_batch:+ try:+ cpu_threads = int(os.environ.get("MDFLUX_BATCH_THREADS", "0") or "0")+ except ValueError:+ cpu_threads = 0+ if cpu_threads > 0:+ sub_env = {**os.environ}+ for _v in ("OMP_NUM_THREADS", "OPENBLAS_NUM_THREADS",+ "MKL_NUM_THREADS", "NUMEXPR_NUM_THREADS"):+ sub_env[_v] = str(cpu_threads)+ params = {**worker_params, "cpu_threads": cpu_threads}++ # Windows: CREATE_NO_WINDOW (0x08000000) so the worker (a console app) never+ # flashes a command window. 0 elsewhere (ignored on POSIX).+ no_window = 0x0800_0000 if sys.platform == "win32" else 0++ # Acquire the semaphore so concurrent worker subprocesses are capped —+ # without this a 50-item batch spawns 50 heavy processes (OOM risk).+ async with self._worker_sem:+ if cancel_event.is_set():+ await self.write({"v": 1, "id": conv_id, **_cancelled_err()})+ return++ try:+ proc = await asyncio.create_subprocess_exec(+ sys.executable,+ str(worker_path),+ stdin=asyncio.subprocess.PIPE,+ stdout=asyncio.subprocess.PIPE,+ stderr=asyncio.subprocess.DEVNULL,+ limit=WORKER_STREAM_LIMIT,+ env=sub_env,+ creationflags=no_window,+ )+ except Exception as exc: # noqa: BLE001+ await self.write({"v": 1, "id": conv_id, **err(+ INTERNAL_ERROR, "Could not start worker process",+ str(exc), "Restart the app.",+ )})+ return++ self._active_procs.add(proc)+ try:+ proc.stdin.write((json.dumps(params) + "\n").encode())+ await proc.stdin.drain()+ proc.stdin.close()++ final_msg: dict | None = None+ loop = asyncio.get_running_loop()+ deadline = loop.time() + timeout_secs+ last_hb = loop.time()++ try:+ while True:+ remaining = deadline - loop.time()+ if remaining <= 0:+ raise asyncio.TimeoutError()++ if cancel_event.is_set():+ await _kill(proc)+ await self.write({"v": 1, "id": conv_id, **_cancelled_err()})+ return++ # Emit a heartbeat every 5 s to keep the Rust idle timeout alive.+ if loop.time() - last_hb >= 5.0:+ await self._emit_progress(conv_id, "processing")+ last_hb = loop.time()++ try:+ raw = await asyncio.wait_for(+ proc.stdout.readline(),+ timeout=min(1.0, remaining),+ )+ except asyncio.TimeoutError:+ if loop.time() >= deadline:+ raise asyncio.TimeoutError()+ continue++ if not raw:+ break++ try:+ msg = json.loads(raw)+ except json.JSONDecodeError:+ continue++ if msg.get("type") == "progress":+ last_hb = loop.time()+ await self._emit_progress(+ conv_id,+ msg.get("stage", "processing"),+ msg.get("frac"),+ msg.get("heartbeat"),+ )+ elif msg.get("type") == "result":+ final_msg = msg+ break++ except asyncio.TimeoutError:+ await _kill(proc)+ await self.write({"v": 1, "id": conv_id, **err(+ TIMEOUT, "Timed out", timeout_msg,+ "Try a smaller file, or split it into sections.",+ )})+ return++ if cancel_event.is_set():+ await self.write({"v": 1, "id": conv_id, **_cancelled_err()})+ return++ if final_msg is None:+ await self.write({"v": 1, "id": conv_id, **err(+ INTERNAL_ERROR,+ "Worker stopped unexpectedly",+ "The worker exited without producing a result.",+ "Try the file again. If this keeps happening, restart the app.",+ )})+ else:+ response: dict = {"v": 1, "id": conv_id, "ok": final_msg.get("ok", False)}+ if "result" in final_msg:+ response["result"] = final_msg["result"]+ if "error" in final_msg:+ response["error"] = final_msg["error"]+ elif not response["ok"]:+ # Malformed worker result: ok=false but no error envelope.+ # Synthesize one so Rust doesn't NPE indexing error.code.+ response["error"] = err(+ INTERNAL_ERROR,+ "Worker error",+ "The worker returned an invalid response (no error detail).",+ "Try the file again. If this keeps happening, restart the app.",+ )["error"]+ await self.write(response)+ finally:+ self._active_procs.discard(proc)++ # ── Cleanup (Stage 5) ────────────────────────────────────────────────────++ async def _cleanup_safe(+ self, req_id: str, params: dict, cancel_event: asyncio.Event+ ) -> None:+ try:+ await self._cleanup(req_id, params, cancel_event)+ except Exception as exc: # noqa: BLE001+ await self.write({"v": 1, "id": req_id, **err(+ INTERNAL_ERROR, "Cleanup failed",+ str(exc), "Try again, or turn cleanup off to keep the raw result.",+ )})+ finally:+ self._cancel_events.pop(req_id, None)++ async def _cleanup(+ self, req_id: str, params: dict, cancel_event: asyncio.Event+ ) -> None:+ markdown: str = params.get("markdown", "")+ source_format: str = params.get("source_format", "")+ rules: dict = params.get("rules", {})+ method: str = params.get("method", "rules")+ provider_cfg: dict = params.get("provider", {})++ if method == "ai":+ # AI cleans the RAW extraction directly — no deterministic pass.+ await self._cleanup_ai(req_id, markdown, provider_cfg, cancel_event)+ return++ # Rule-based: deterministic only.+ cleaned, summary = _cleanup_mod.clean(markdown, source_format, rules)+ await self.write({"v": 1, "id": req_id, "ok": True, "result": {+ "markdown": cleaned,+ "summary": summary,+ "llm_applied": False,+ "llm_notice": None,+ }})++ async def _cleanup_ai(+ self, req_id: str, markdown: str, provider_cfg: dict, cancel_event: asyncio.Event+ ) -> None:+ cleaned = markdown # fail-soft default: the raw text, never lost+ llm_applied = False+ llm_notice: str | None = None++ if cancel_event.is_set():+ await self.write({"v": 1, "id": req_id, **_cancelled_err()})+ return++ loop = asyncio.get_running_loop()+ # The cleanup runs CHUNKED (see cleanup.llm_clean). progress is a shared dict the+ # worker thread updates as each chunk finishes; should_cancel lets it stop early.+ progress = {"done": 0, "total": 0}+ work = asyncio.ensure_future(loop.run_in_executor(+ None,+ functools.partial(+ _cleanup_mod.llm_clean, markdown, provider_cfg, CLEANUP_LLM_TIMEOUT_SECS,+ progress_cb=lambda d, t: progress.update(done=d, total=t),+ should_cancel=cancel_event.is_set,+ ),+ ))+ # Liveness: allow up to CLEANUP_LLM_TIMEOUT_SECS PER CHUNK. The deadline is pushed+ # forward whenever a chunk completes, so a long multi-chunk document is fine, but a+ # genuinely stuck chunk still trips it.+ deadline = loop.time() + CLEANUP_LLM_TIMEOUT_SECS + 30+ last_done = 0++ try:+ # Poll the worker: check for cancel every 2 s (snappy Cancel button),+ # emit a heartbeat every ~5 s so Rust's idle timeout never trips.+ last_hb = loop.time()+ while True:+ if cancel_event.is_set():+ work.cancel()+ await self.write({"v": 1, "id": req_id, **_cancelled_err()})+ return+ done, _ = await asyncio.wait({work}, timeout=2.0)+ if work in done:+ break+ if progress["done"] != last_done: # a chunk landed → extend the deadline+ last_done = progress["done"]+ deadline = loop.time() + CLEANUP_LLM_TIMEOUT_SECS + 30+ if loop.time() >= deadline:+ work.cancel()+ raise asyncio.TimeoutError()+ if loop.time() - last_hb >= 5.0:+ frac = (progress["done"] / progress["total"]) if progress["total"] else None+ await self._emit_progress(req_id, "ai-cleanup", frac)+ last_hb = loop.time()++ if cancel_event.is_set(): # cancel raced with the final chunk completing+ await self.write({"v": 1, "id": req_id, **_cancelled_err()})+ return++ llm_text = work.result()+ if isinstance(llm_text, str) and llm_text.strip():+ # Always present the AI result — the user decides whether to keep it.+ # The guardrail is advisory: it may attach a warning, never discards.+ cleaned = llm_text+ llm_applied = True+ llm_notice = _cleanup_mod.data_loss_warning(markdown, llm_text)+ elif not markdown.strip():+ pass # empty input → empty output; no notice needed+ else:+ llm_notice = "AI cleanup returned nothing — kept the original text."+ except _cleanup_mod.CleanupCancelled:+ await self.write({"v": 1, "id": req_id, **_cancelled_err()})+ return+ except asyncio.TimeoutError:+ llm_notice = "AI cleanup timed out — kept the original text."+ except Exception as exc: # noqa: BLE001 — fail soft, never lose the result+ _key = provider_cfg.get("key", "")+ safe_exc = str(exc).replace(_key, "[key]") if _key else str(exc)+ llm_notice = f"AI cleanup unavailable: {safe_exc} — kept the original text."++ summary = {+ "rules": [],+ "char_delta": len(cleaned) - len(markdown),+ "line_delta": (cleaned.count("\n") + 1) - (markdown.count("\n") + 1),+ }+ await self.write({"v": 1, "id": req_id, "ok": True, "result": {+ "markdown": cleaned,+ "summary": summary,+ "llm_applied": llm_applied,+ "llm_notice": llm_notice,+ }})++ async def _emit_progress(+ self,+ conv_id: str,+ stage: str,+ frac: float | None = None,+ heartbeat: int | None = None,+ ) -> None:+ await self.write({+ "v": 1,+ "id": conv_id,+ "type": "progress",+ "stage": stage,+ "frac": frac,+ "heartbeat": heartbeat or int(time.time()),+ })++ # ── Provider health check ────────────────────────────────────────────────++ async def _check_provider_safe(self, req_id: str, params: dict) -> None:+ try:+ await self._check_provider(req_id, params)+ except Exception as exc: # noqa: BLE001+ await self.write({"v": 1, "id": req_id, "ok": True, "result": {+ "reachable": False,+ "detail": f"Check failed: {exc}",+ "usable": False,+ }})++ async def _check_provider(self, req_id: str, params: dict) -> None:+ ptype = params.get("provider", "local")+ base_url = params.get("base_url", "http://localhost:11434")+ key = params.get("key", "")+ loop = asyncio.get_running_loop()++ if ptype == "local":+ result = await loop.run_in_executor(None, _provider.check_local, base_url)+ elif ptype == "api_openai_compat":+ result = await loop.run_in_executor(None, _provider.check_openai_compat, base_url, key)+ elif ptype == "api_anthropic":+ result = await loop.run_in_executor(None, _provider.check_anthropic, key)+ else:+ result = {+ "reachable": False,+ "detail": f"Unknown provider type: {ptype!r}",+ "usable": False,+ }++ await self.write({"v": 1, "id": req_id, "ok": True, "result": result})+++# ── Helpers ──────────────────────────────────────────────────────────────────++def _cancelled_err() -> dict:+ return err(CANCELLED, "Conversion cancelled", "The conversion was stopped by the user.", "")+++def _missing_engine_err(engine: str, diag_key: str) -> dict:+ """Optional engine (OCR/audio) needed but not installed — point at the installer."""+ if engine == "ocr":+ title = "OCR engine not installed"+ detail = ("This image needs the OCR engine (RapidOCR), which isn't installed yet. "+ "Scanned PDFs and image files require it.")+ else:+ title = "Audio engine not installed"+ detail = ("This audio file needs the transcription engine (faster-whisper), "+ "which isn't installed yet.")+ e = err(MISSING_EXTRA, title, detail,+ "Open Diagnostics → Optional capabilities and click Install.")+ e["error"]["diagnostics_key"] = diag_key+ return e+++async def _kill(proc: asyncio.subprocess.Process) -> None:+ try:+ proc.terminate()+ try:+ await asyncio.wait_for(proc.wait(), timeout=2.0)+ except asyncio.TimeoutError:+ proc.kill()+ await proc.wait()+ except ProcessLookupError:+ pass+++# ── Entry ─────────────────────────────────────────────────────────────────────++async def async_main() -> None:+ sidecar = Sidecar()+ loop = asyncio.get_running_loop()++ try:+ while True:+ try:+ raw = await loop.run_in_executor(None, sys.stdin.readline)+ except Exception:+ break++ if not raw:+ break++ raw = raw.strip()+ if not raw:+ continue++ try:+ req = json.loads(raw)+ except json.JSONDecodeError as exc:+ await sidecar.write({"v": 1, "id": "", "ok": False, "error": {+ "code": "INVALID_JSON",+ "title": "Invalid request",+ "detail": f"Could not parse request: {exc}",+ "suggested_action": "Re-install the app.",+ }})+ continue++ # Guard against parseable-but-not-an-object JSON (e.g. "123", null, [],+ # true) — these have no .get method and would crash the sidecar.+ if not isinstance(req, dict):+ await sidecar.write({"v": 1, "id": "", "ok": False, "error": {+ "code": "INVALID_JSON",+ "title": "Invalid request",+ "detail": "Request must be a JSON object.",+ "suggested_action": "Re-install the app.",+ }})+ continue++ # Validate protocol version — a future v2 client must not be silently+ # misinterpreted as v1.+ req_v = req.get("v")+ if req_v != 1:+ req_id = req.get("id", "")+ await sidecar.write({"v": 1, "id": req_id, "ok": False, "error": {+ "code": "BAD_VERSION",+ "title": "Unsupported protocol version",+ "detail": f"Expected v:1, got v:{req_v!r}.",+ "suggested_action": "Update the app.",+ }})+ continue++ req_id = req.get("id", "")+ try:+ await sidecar.dispatch(req)+ except Exception as exc: # noqa: BLE001+ await sidecar.write({"v": 1, "id": req_id, **err(+ INTERNAL_ERROR, "Internal error",+ str(exc), "Restart the app. If this keeps happening, re-install.",+ )})+ finally:+ # Kill any still-running worker subprocesses on shutdown so they don't+ # orphan and consume CPU/RAM for up to 600s after the app closes.+ for proc in list(sidecar._active_procs):+ await _kill(proc)+ sidecar._active_procs.clear()+++def main() -> None:+ asyncio.run(async_main())+++if __name__ == "__main__":+ main()diff --git a/app/src-tauri/resources/sidecar/ocr.py b/app/src-tauri/resources/sidecar/ocr.pynew file mode 100644index 0000000..a2ac819--- /dev/null+++ b/app/src-tauri/resources/sidecar/ocr.py@@ -0,0 +1,138 @@+"""+OCR engine — RapidOCR + pypdfium2 (both pip-installable, no system binary required).++RapidOCR uses ONNX Runtime; pypdfium2 rasterises PDF pages for OCR.+Both are installed together via install_engine("ocr").+"""+import importlib.util+import os+import tempfile++IMAGE_EXTENSIONS: frozenset[str] = frozenset({+ ".jpg", ".jpeg", ".png", ".gif", ".webp",+ ".tiff", ".tif", ".bmp",+})+OCR_TIMEOUT_SECS: int = 600+++def is_available() -> bool:+ """+ True when RapidOCR is installed.++ Uses find_spec rather than importing — importing rapidocr_onnxruntime pulls in+ onnxruntime, whose native thread pools interfere with the sidecar's asyncio+ Proactor event loop on Windows (it stalls subprocess pipe pumping, hanging the+ first OCR request). The heavy import only ever happens inside the short-lived+ OCR worker subprocess, never in the main sidecar process.+ """+ return importlib.util.find_spec("rapidocr_onnxruntime") is not None+++def has_pdf_renderer() -> bool:+ """True when pypdfium2 is available for rasterising PDF pages."""+ return importlib.util.find_spec("pypdfium2") is not None+++def _make_engine(intra_op_threads: int = 0):+ """Build a RapidOCR engine, optionally limiting its onnxruntime thread count so+ concurrent batch workers don't oversubscribe the CPU. The kwarg is best-effort:+ if a RapidOCR version rejects it, fall back to the default engine."""+ from rapidocr_onnxruntime import RapidOCR+ n = int(intra_op_threads or 0)+ if n > 0:+ try:+ return RapidOCR(intra_op_num_threads=n, inter_op_num_threads=n)+ except Exception: # noqa: BLE001 — older/newer API; use the default+ pass+ return RapidOCR()+++def ocr_image(path: str, intra_op_threads: int = 0) -> str:+ """Run OCR on a single image file; return extracted text as plain text."""+ engine = _make_engine(intra_op_threads)+ result, _ = engine(path)+ if not result:+ return ""+ return "\n".join(item[1] for item in result if len(item) > 1 and item[1])+++def is_scanned_pdf(path: str) -> bool:+ """+ Heuristic: fewer than ~30 characters of extractable text per page → probably a+ scanned or image-only PDF.++ Uses pypdfium2 page-by-page with an EARLY EXIT: a normal text PDF crosses the text+ threshold within the first page or two and returns immediately, instead of parsing+ up to 10 pages every time (this check runs for every PDF when OCR is installed).+ Falls back to pdfminer only if pypdfium2 isn't present.+ """+ if has_pdf_renderer():+ try:+ import pypdfium2 as pdfium+ doc = pdfium.PdfDocument(path)+ try:+ sample = min(len(doc), 10) or 1+ threshold = sample * 30+ total = 0+ for i in range(sample):+ textpage = doc[i].get_textpage()+ total += len(textpage.get_text_range().strip())+ if total >= threshold:+ return False # clearly has text — bail without reading the rest+ return total < threshold+ finally:+ doc.close()+ except Exception:+ return False++ try:+ import pdfminer.high_level as pm+ text = pm.extract_text(path, maxpages=10)+ return len(text.strip()) < 10 * 30+ except Exception:+ return False+++def ocr_pdf(path: str, progress_cb=None, intra_op_threads: int = 0) -> str:+ """+ Rasterise each PDF page at 150 DPI and OCR it with RapidOCR.+ Renders each page to a temp PNG via pypdfium2 + Pillow (Pillow is a transitive+ dep of rapidocr-onnxruntime, so it is always present when this function runs).+ progress_cb(frac, stage_str) called per page.+ """+ import pypdfium2 as pdfium++ engine = _make_engine(intra_op_threads)+ doc = pdfium.PdfDocument(path)+ n = len(doc)+ pages: list[str] = []++ try:+ for i in range(n):+ page = doc[i]+ if progress_cb:+ progress_cb(i / n, f"OCR page {i + 1}/{n}")++ bitmap = page.render(scale=150 / 72) # 150 DPI++ with tempfile.NamedTemporaryFile(suffix=".png", delete=False) as tmp:+ tmp_path = tmp.name++ try:+ bitmap.to_pil().save(tmp_path)+ result, _ = engine(tmp_path)+ finally:+ try:+ os.unlink(tmp_path)+ except OSError:+ pass++ if result:+ page_text = "\n".join(+ item[1] for item in result if len(item) > 1 and item[1]+ )+ if page_text.strip():+ pages.append(f"## Page {i + 1}\n\n{page_text}")+ finally:+ doc.close()+ return "\n\n".join(pages) if pages else ""diff --git a/app/src-tauri/resources/sidecar/ocr_worker.py b/app/src-tauri/resources/sidecar/ocr_worker.pynew file mode 100644index 0000000..ba54c56--- /dev/null+++ b/app/src-tauri/resources/sidecar/ocr_worker.py@@ -0,0 +1,106 @@+"""+OCR worker subprocess — spawned once per OCR request.++Reads one JSON params line from stdin:+ { "path": "...", "fmt": "...", "is_pdf": bool }++Writes JSON lines to stdout:+ progress: {"type":"progress","stage":"<str>","frac":<float|null>,"heartbeat":<ts>}+ result: {"type":"result","ok":<bool>,...}+"""+import json+import os+import sys+import threading+import time+++def _write(obj: dict) -> None:+ sys.stdout.write(json.dumps(obj) + "\n")+ sys.stdout.flush()+++def _progress(stage: str, frac: float | None = None) -> None:+ _write({+ "type": "progress",+ "stage": stage,+ "frac": frac,+ "heartbeat": int(time.time()),+ })+++def main() -> None:+ raw = sys.stdin.readline()+ try:+ params = json.loads(raw)+ except (json.JSONDecodeError, ValueError):+ _write({"type": "result", "ok": False, "error": {+ "code": "INTERNAL_ERROR",+ "title": "OCR worker received bad params",+ "detail": "Could not parse params.",+ "suggested_action": "Restart the app.",+ }})+ return++ path: str = params.get("path", "")+ fmt: str = params.get("fmt", "image")+ is_pdf: bool = params.get("is_pdf", False)+ cpu_threads: int = int(params.get("cpu_threads", 0) or 0) # 0 = use all cores++ _progress("ocr-init")++ result_holder: dict = {}++ def run() -> None:+ try:+ import ocr as _ocr+ if is_pdf:+ last_hb = [time.time()]++ def progress_cb(frac, stage):+ now = time.time()+ if now - last_hb[0] >= 5.0:+ _progress("ocr-page", frac)+ last_hb[0] = now++ text = _ocr.ocr_pdf(path, progress_cb=progress_cb, intra_op_threads=cpu_threads)+ else:+ _progress("ocr-image")+ text = _ocr.ocr_image(path, intra_op_threads=cpu_threads)++ result_holder["markdown"] = text or ""+ except Exception as exc: # noqa: BLE001+ result_holder["error"] = str(exc)++ t = threading.Thread(target=run, daemon=True)+ t.start()++ while t.is_alive():+ t.join(timeout=10.0)+ if t.is_alive():+ _progress("ocr-processing")++ if "error" in result_holder:+ _write({"type": "result", "ok": False, "error": {+ "code": "CONVERSION_FAILED",+ "title": "OCR failed",+ "detail": result_holder["error"],+ "suggested_action": (+ "The file may be too complex for OCR. "+ "Try a different image or simpler scan."+ ),+ }})+ else:+ md = result_holder.get("markdown", "")+ _write({"type": "result", "ok": True, "result": {+ "markdown": md,+ "meta": {+ "detected_format": fmt,+ "converter_path": "ocr.RapidOCR",+ "warnings": [] if md.strip() else ["OCR found no text in this file."],+ },+ }})+++if __name__ == "__main__":+ main()diff --git a/app/src-tauri/resources/sidecar/preflight.py b/app/src-tauri/resources/sidecar/preflight.pynew file mode 100644index 0000000..6c04d9d--- /dev/null+++ b/app/src-tauri/resources/sidecar/preflight.py@@ -0,0 +1,76 @@+"""Pre-flight checks run before spawning the conversion worker."""+import os+import sys++from errors import ENCRYPTED_INPUT, FILE_TOO_LARGE, FILE_UNREADABLE, err++MAX_FILE_BYTES: int = 100 * 1024 * 1024 # 100 MB+# Cloud placeholder files (OneDrive Files On-Demand) report their logical size but+# aren't downloaded yet. They get a longer timeout in main.py, so allow larger ones.+MAX_CLOUD_FILE_BYTES: int = 500 * 1024 * 1024 # 500 MB+++def _is_cloud_placeholder(path: str) -> bool:+ if sys.platform != "win32":+ return False+ try:+ attrs = os.stat(path).st_file_attributes+ except (OSError, AttributeError):+ return False+ return bool(attrs & (0x00040000 | 0x00400000 | 0x00001000))+++def check(path: str, ext: str) -> dict | None:+ """Return a typed error dict if the file must not be converted, else None."""++ if not os.access(path, os.R_OK):+ return err(+ FILE_UNREADABLE,+ "File not readable",+ f"'{os.path.basename(path)}' can't be opened — permission denied or file is locked.",+ "Close any app that has the file open, check permissions, and try again.",+ )++ try:+ size = os.path.getsize(path)+ except OSError:+ size = 0++ # Cloud placeholders get a higher size limit — they'll be downloaded on read+ # and the longer timeout in main.py accommodates the download.+ limit = MAX_CLOUD_FILE_BYTES if _is_cloud_placeholder(path) else MAX_FILE_BYTES+ if size > limit:+ mb = size / (1024 * 1024)+ limit_mb = limit // (1024 * 1024)+ return err(+ FILE_TOO_LARGE,+ "File is too large",+ f"This file is {mb:.1f} MB — the limit is {limit_mb} MB.",+ "Split the file or export a smaller selection, then try again.",+ )++ # Encrypted PDF: scan for the /Encrypt entry. It lives in the trailer dictionary,+ # which sits at the END of the file — so checking only the head (as before) missed+ # most real encrypted PDFs. Scan both the first and last 64 KB to cover linearized+ # PDFs (Encrypt referenced early) and ordinary ones (Encrypt in the trailer).+ if ext == ".pdf":+ try:+ scan_len = 65536+ with open(path, "rb") as f:+ head = f.read(scan_len)+ if size > scan_len:+ f.seek(max(0, size - scan_len))+ tail = f.read(scan_len)+ else:+ tail = b""+ if b"/Encrypt" in head or b"/Encrypt" in tail:+ return err(+ ENCRYPTED_INPUT,+ "PDF is password-protected",+ "This PDF is encrypted and can't be read without the password.",+ "Unlock it in Preview (Mac) or Adobe Acrobat, then try again.",+ )+ except OSError:+ pass # readability check above already handles this++ return Nonediff --git a/app/src-tauri/resources/sidecar/provider.py b/app/src-tauri/resources/sidecar/provider.pynew file mode 100644index 0000000..a2a9f7a--- /dev/null+++ b/app/src-tauri/resources/sidecar/provider.py@@ -0,0 +1,302 @@+"""+LLM provider plumbing.++Two groups of functions:+- Health checks (`check_*`) — pure blocking, run via run_in_executor. Never send+ document content; connectivity + credentials only. Degrade gracefully (return a+ dict, never raise).+- Chat / cleanup invocation (`chat_*`, `first_model_*`) — added in Stage 5 for the+ optional LLM cleanup pass. These DO send document text and DO raise on failure, so+ the caller (cleanup.llm_clean) can fail soft and fall back to deterministic output.++Rule across both groups: never log or mention the API key in any return value.+"""+import json+import urllib.error+import urllib.request+++def _safe_exc(exc: Exception) -> str:+ return f"{type(exc).__name__}: {exc}"+++def check_local(base_url: str) -> dict:+ """+ Probe a local server at base_url.+ Tries Ollama (/api/tags) first, then OpenAI-compat (/v1/models).+ """+ base = base_url.rstrip("/")+ last_exc: Exception | None = None++ # Ollama: GET /api/tags+ try:+ with urllib.request.urlopen(f"{base}/api/tags", timeout=5) as r:+ data = json.loads(r.read())+ models: list[str] = [m.get("name", "") for m in data.get("models", [])]+ vision_kw = ("llava", "minicpm", "vision", "bakllava", "qwen-vl", "internvl", "phi3-v", "moondream")+ vision = [m for m in models if any(k in m.lower() for k in vision_kw)]+ parts = [f"{len(models)} model(s)"]+ if vision:+ parts.append(f"{len(vision)} vision-capable")+ return {+ "server": "ollama",+ "reachable": True,+ "detail": "Ollama — " + ", ".join(parts),+ "models": models,+ "usable": len(models) > 0,+ }+ except Exception as exc:+ last_exc = exc++ # OpenAI-compat: GET /v1/models (no auth required for local servers)+ try:+ with urllib.request.urlopen(f"{base}/v1/models", timeout=5) as r:+ data = json.loads(r.read())+ models = [m.get("id", "") for m in data.get("data", [])]+ return {+ "server": "openai_compat",+ "reachable": True,+ "detail": f"OpenAI-compatible server — {len(models)} model(s)",+ "models": models,+ "usable": len(models) > 0,+ }+ except Exception as exc:+ last_exc = exc++ detail = f"No server found at {base} — is Ollama or another local server running?"+ if last_exc:+ detail += f" (last error: {_safe_exc(last_exc)})"+ return {+ "server": None,+ "reachable": False,+ "detail": detail,+ "models": [],+ "usable": False,+ }+++def check_openai_compat(base_url: str, key: str) -> dict:+ """Probe an OpenAI-compatible API endpoint with the supplied key."""+ base = base_url.rstrip("/")+ req = urllib.request.Request(+ f"{base}/models",+ headers={"Authorization": f"Bearer {key}"},+ )+ try:+ with urllib.request.urlopen(req, timeout=8) as r:+ data = json.loads(r.read())+ models = [m.get("id", "") for m in data.get("data", [])]+ return {+ "reachable": True,+ "detail": f"Connected — {len(models)} model(s) available",+ "models": models,+ "usable": True,+ }+ except urllib.error.HTTPError as e:+ if e.code == 401:+ return {+ "reachable": True,+ "detail": "Endpoint reachable — API key rejected (401 Unauthorized)",+ "models": [],+ "usable": False,+ }+ return {+ "reachable": True,+ "detail": f"Endpoint returned HTTP {e.code}",+ "models": [],+ "usable": False,+ }+ except Exception as exc:+ return {+ "reachable": False,+ "detail": f"Cannot reach endpoint: {_safe_exc(exc)}",+ "models": [],+ "usable": False,+ }+++def check_anthropic(key: str) -> dict:+ """Probe the Anthropic API with the supplied key."""+ if not key.startswith("sk-ant-"):+ return {+ "reachable": False,+ "detail": "Key format invalid — Anthropic keys start with 'sk-ant-'",+ "models": [],+ "usable": False,+ }+ req = urllib.request.Request(+ "https://api.anthropic.com/v1/models",+ headers={+ "x-api-key": key,+ "anthropic-version": "2023-06-01",+ },+ )+ try:+ with urllib.request.urlopen(req, timeout=8) as r:+ data = json.loads(r.read())+ models = [m.get("id", "") for m in data.get("data", [])]+ return {+ "reachable": True,+ "detail": f"Connected — {len(models)} model(s) available",+ "models": models,+ "usable": True,+ }+ except urllib.error.HTTPError as e:+ if e.code == 401:+ return {+ "reachable": True,+ "detail": "Endpoint reachable — API key rejected",+ "models": [],+ "usable": False,+ }+ return {+ "reachable": True,+ "detail": f"Anthropic API returned HTTP {e.code}",+ "models": [],+ "usable": False,+ }+ except Exception as exc:+ return {+ "reachable": False,+ "detail": f"Cannot reach Anthropic API: {_safe_exc(exc)}",+ "models": [],+ "usable": False,+ }+++# ── Chat / cleanup invocation (Stage 5) ─────────────────────────────────────────+# These raise on failure; the caller fails soft.++def _post_json(url: str, headers: dict, payload: dict, timeout: float) -> dict:+ body = json.dumps(payload).encode()+ req = urllib.request.Request(url, data=body, headers=headers, method="POST")+ with urllib.request.urlopen(req, timeout=timeout) as r:+ return json.loads(r.read())+++def chat_openai_compat(+ base_url: str, key: str, model: str, system: str, user: str, timeout: float,+ max_tokens: int | None = None,+) -> str:+ """POST {base}/chat/completions; return the assistant message content.++ `max_tokens` bounds the OUTPUT length. Leave it None to use the server default.+ Note: this endpoint cannot set the input context window — for local Ollama that+ is done via chat_ollama (the OpenAI-compat layer silently truncates over-long+ prompts at the 2048-token default).+ """+ base = base_url.rstrip("/")+ headers = {"Content-Type": "application/json"}+ if key:+ headers["Authorization"] = f"Bearer {key}"+ payload = {+ "model": model,+ "messages": [+ {"role": "system", "content": system},+ {"role": "user", "content": user},+ ],+ "temperature": 0,+ }+ if max_tokens and max_tokens > 0:+ payload["max_tokens"] = int(max_tokens)+ data = _post_json(f"{base}/chat/completions", headers, payload, timeout)+ return data["choices"][0]["message"]["content"]+++def chat_ollama(+ base: str, model: str, system: str, user: str, timeout: float,+ num_ctx: int | None = None, num_predict: int | None = None,+) -> str:+ """POST {base}/api/chat (Ollama native). Unlike the OpenAI-compat endpoint, this+ accepts `num_ctx` — the input context window — so a long prompt is NOT silently+ truncated. `num_predict` bounds the output (use -1 for unbounded)."""+ options: dict = {"temperature": 0}+ if num_ctx:+ options["num_ctx"] = int(num_ctx)+ if num_predict is not None:+ options["num_predict"] = int(num_predict)+ payload = {+ "model": model,+ "stream": False,+ "messages": [+ {"role": "system", "content": system},+ {"role": "user", "content": user},+ ],+ "options": options,+ }+ data = _post_json(f"{base}/api/chat", {"Content-Type": "application/json"}, payload, timeout)+ return data.get("message", {}).get("content", "")+++def chat_local(+ base_url: str, model: str, system: str, user: str, timeout: float,+ num_ctx: int | None = None, num_predict: int | None = None,+) -> str:+ """Local chat. Prefers Ollama's native /api/chat so we can set `num_ctx` and avoid+ silent prompt truncation; falls back to the OpenAI-compatible endpoint (LM Studio,+ Jan, etc.) where the context window is fixed at model-load time instead.+ """+ base = base_url.rstrip("/")+ # Try Ollama native first (only it honours num_ctx). A non-Ollama server returns+ # 404/connection error here, so we fall through to the OpenAI-compat path.+ native_exc: Exception | None = None+ try:+ out = chat_ollama(base, model, system, user, timeout, num_ctx, num_predict)+ if out:+ return out+ except Exception as exc: # noqa: BLE001 — not Ollama, or transient; try the compat path+ native_exc = exc+ last: Exception | None = None+ out_cap = num_predict if (num_predict and num_predict > 0) else None+ for candidate in (f"{base}/v1", base):+ try:+ return chat_openai_compat(candidate, "", model, system, user, timeout, out_cap)+ except Exception as exc: # noqa: BLE001+ last = exc+ # If both paths failed, prefer the native error (usually more informative:+ # "model not found", etc.) over the compat error.+ raise native_exc or last or RuntimeError("Local chat failed")+++def chat_anthropic(+ key: str, model: str, system: str, user: str, timeout: float,+ max_tokens: int = 8192,+) -> str:+ headers = {+ "x-api-key": key,+ "anthropic-version": "2023-06-01",+ "Content-Type": "application/json",+ }+ payload = {+ "model": model,+ "max_tokens": int(max_tokens),+ "system": system,+ "messages": [{"role": "user", "content": user}],+ }+ data = _post_json("https://api.anthropic.com/v1/messages", headers, payload, timeout)+ parts = [b.get("text", "") for b in data.get("content", []) if b.get("type") == "text"]+ return "".join(parts)+++def first_model_openai_compat(base_url: str, key: str) -> str:+ res = check_openai_compat(base_url, key)+ models = res.get("models") or []+ if not models:+ raise RuntimeError("No models available from the configured endpoint.")+ return models[0]+++def first_model_anthropic(key: str) -> str:+ res = check_anthropic(key)+ models = res.get("models") or []+ if not models:+ raise RuntimeError("No models available from the Anthropic API.")+ return models[0]+++def first_model_local(base_url: str) -> str:+ res = check_local(base_url)+ models = res.get("models") or []+ if not models:+ raise RuntimeError("No models available from the local server.")+ return models[0]diff --git a/app/src-tauri/resources/sidecar/requirements-audio.in b/app/src-tauri/resources/sidecar/requirements-audio.innew file mode 100644index 0000000..8d23241--- /dev/null+++ b/app/src-tauri/resources/sidecar/requirements-audio.in@@ -0,0 +1 @@+faster-whisperdiff --git a/app/src-tauri/resources/sidecar/requirements-audio.lock b/app/src-tauri/resources/sidecar/requirements-audio.locknew file mode 100644index 0000000..b2b6cd8--- /dev/null+++ b/app/src-tauri/resources/sidecar/requirements-audio.lock@@ -0,0 +1,416 @@+# This file was autogenerated by uv via the following command:+# uv pip compile requirements-audio.in --generate-hashes --python-version 3.12 -o requirements-audio.lock+annotated-doc==0.0.4 \+ --hash=sha256:571ac1dc6991c450b25a9c2d84a3705e2ae7a53467b5d111c24fa8baabbed320 \+ --hash=sha256:fbcda96e87e9c92ad167c2e53839e57503ecfda18804ea28102353485033faa4+ # via typer+anyio==4.14.0 \+ --hash=sha256:b47c1f9ccf73e67021df785332508f99379c68fa7d0684e8e3492cb1d4b23f89 \+ --hash=sha256:dd9b7a2a9799ed6552fde617b2c5df02b7fdd7d88392fc48101e51bae46164d9+ # via httpx+av==17.1.0 \+ --hash=sha256:1284addf3c0dd939887a9722dc30df2241a97471ad52c3c507e31583ae22ff02 \+ --hash=sha256:1370b11a697eb3f2555906f8ab3519b0cfe48425d7830a3996ad42e6bffafda5 \+ --hash=sha256:19264c9bb4bee404accc7ce9ec461f2044b7f577a70234d29aafde31ed17de46 \+ --hash=sha256:19c84fd72af5ef81a20f18fbc6f9aedff9e1455e53a7062c1d4c95926d73da4e \+ --hash=sha256:22dff0ae582d10ef08c75c2150a4fd27cfc26653b54930c7c27b9f7b3aa20723 \+ --hash=sha256:3453b06075c7bb973fdb6de52563f7692ff05cbc64c0bb45f4fd6e8709131f2f \+ --hash=sha256:3dcd41e53f53f9a3260751d9c3c11d34e93d70d61e506c81f13dbc1e3606e07b \+ --hash=sha256:43ebbe977f19a7f2d2bd1a4e119675a0b15e05852cf7309846b6ab922ba7ffe9 \+ --hash=sha256:5327807c1219293803ef0c5d1578ff3ae1cf638c09e5998962026e1a554ec240 \+ --hash=sha256:58f7593726437cda5bd19793027e027768450b5c4a594777bf487798a33db702 \+ --hash=sha256:5df5c1172ef1cf65a1529d612f7da7798ce2cf82c1ff7212466b538a6cc7214c \+ --hash=sha256:6a20658ec7d96a70e14b1196eff00b7cdd8831ac3b99868e16b8ba8b24090847 \+ --hash=sha256:6c9b71fe5c0c5a8d303b1588d4d8ce9397d6b023f467cfef95000ba1f75507fa \+ --hash=sha256:7f1e71ff621b66253333926f948e00faae11d855b2442133c65128bca64cdeb3 \+ --hash=sha256:90c49bc9608377d01e82e747377505419a229464873341db18202d5dddecce5a \+ --hash=sha256:9514cfda85180554c430695282faf4be3ffdf95775d8519733821244eecb58e0 \+ --hash=sha256:ad7b4aa011093324b7118245f50ac6db244cfe9900d4072508a5245a2b0d3f41 \+ --hash=sha256:b41647e42884bf543b8e8d0a1dabd4d1b006c99183eb1a2d7afc5b01f73eeff4 \+ --hash=sha256:bbab058bd965309f39962e53caac8126987c68c0be094fc4f9427e5615b0218f \+ --hash=sha256:bff8896454b38fcb785a70e5ae0485d7021cb776303a5849393128a30b8f850b \+ --hash=sha256:cc5a5247622cb77e24c342364eb68f88c1442ddfaab60c1f1f483359d3cc7879 \+ --hash=sha256:e1c90f85cd7431ede95b11e8e711571a896ebea433f298849c2c0f1594c8d86e \+ --hash=sha256:ec630be6321b04e317862f6082e84812bbd801e55a3c2298312e3fc8a0a4af4f \+ --hash=sha256:ee98534242a74da847af78624779ac5a3177dc7c69f956a4da9e6f0fdb37d7f6 \+ --hash=sha256:efe9b1397300b67b644ad220c89df4892a76f2debe70f16bae1749fa20526e63 \+ --hash=sha256:f997e3351bdf51127c07a74e21741a2996e9230cbeb2d81c14acde761b116c9c \+ --hash=sha256:f9a65d1f48b818323fb411e80358f89d77dec340b01d27c6b2dfbb9cbf4b779f \+ --hash=sha256:fa64e1f1500d01c4a98e7a41dc1a9a35fb4dfe71f5de0389264ec1192200c76a \+ --hash=sha256:ff457ed419348e5b8e8c811d341389b052c5e4d5839da3794d019b125b9fe830 \+ --hash=sha256:ffbd78d73d2c9bf31e9a007c992faec3991428b2941a3b085b84fb82e8c32d19+ # via faster-whisper+certifi==2026.6.17 \+ --hash=sha256:024c88eeec92ca068db80f02b8b07c9cef7b9fe261d1d535abfd5abd6f6af432 \+ --hash=sha256:2227dcbaafe0d2f59279d1762ddddc37783ed4354594f194ffc31d20f41fc3db+ # via+ # httpcore+ # httpx+click==8.4.1 \+ --hash=sha256:482be17c6991b8c19c5429a1e995d9b0efdbb63172824c41f99965dc0ade8ec2 \+ --hash=sha256:918b5633eddf6b41c32d4f454bf0de810065c74e3f7dbf8ee5452f8be88d3e96+ # via+ # huggingface-hub+ # typer+colorama==0.4.6 \+ --hash=sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44 \+ --hash=sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6+ # via+ # click+ # tqdm+ctranslate2==4.8.0 \+ --hash=sha256:0465bb50ddf143d02d52ea818c25a49ef5c2395c3fff98f6a905e239946cd765 \+ --hash=sha256:06feaafe134aafa8cb2fb1fdb82e36f050bb05929dfde1a95f4fe4d7881dfc76 \+ --hash=sha256:0ccb10af5b7ef4747d5f275e11d809ebf9057c7b1e5241fdbf386b120eaf353d \+ --hash=sha256:0e11893a8235349348a701a7c5adfceb150e1bc66cdec5826f8ac956b26b2565 \+ --hash=sha256:1a758c95aa8f9bdaec476433515a00695b453b1315a0664612fae25b75818d44 \+ --hash=sha256:247efccc2da9a63e8bf22abb4e87789f44ec1454bdcb227b07860cdc826fc89a \+ --hash=sha256:2676854f374e6720600467cbde2ea2ea844fb0b6fb3e8a79795d495a3bdc7469 \+ --hash=sha256:3427639aa036ea3d8e6864598552dc0b32c4017801925b8165638acb937b39cf \+ --hash=sha256:39d36c67554afbed8f8cd8c03bcfb3d3453f02e96b2b6d5a0e7391daec81358d \+ --hash=sha256:3a6a2f0a0768f14863f125675da446641348d9393c480a5bc75e53f44a7502c6 \+ --hash=sha256:402472d283d844579961b8522589401bc2c50f77f1b820783b01c25060260c3c \+ --hash=sha256:54b857eb9d0c09b7bdee844b6675d1bc0d864edb3078ff4f0212096ad0bf86e0 \+ --hash=sha256:59c71320788b88621be143f2795048e9f510ff690c549cffc2827831f85a1a04 \+ --hash=sha256:65e64a5d79de82f302677b7ac07d3a540f893657c33fb0196824db87a17e4900 \+ --hash=sha256:68405a3f88b6ec89c9768c59fded6d212b335d39c67cf0ccf058a906188a282c \+ --hash=sha256:7531ed5148099792ec488f80e21f9bb551fb9fdf335c4b6c3720f11d53f2639c \+ --hash=sha256:83336d60ae04f19a30a90405040efaea1dfa0e1d95c2fe1513e53dade4681c85 \+ --hash=sha256:892898271f7f2c6a3651a7ea4d91f5727f97baed36171e5026456dbf0916030a \+ --hash=sha256:94ec37527dd815531209694854dd5177e763ed51d35b4b2c34da3c3ad2c9b9fd \+ --hash=sha256:9f56f8de6e6e036a306d427b86d86964076b614e2358b923f93fa160139ac6f5 \+ --hash=sha256:aa53859acd61db1e287db57be955885fd271f84348af37dabe2c3dbd0b4425e2 \+ --hash=sha256:b55976b0248d62aacce4e3569b0555ec2861d77b8b334ed03eaf757f51d0492d \+ --hash=sha256:c4791301710d8b6e1078106d4ba34e3a176f4be19f7047de06b6935b15d422bd \+ --hash=sha256:c4c8b9dc6bd8a3e79fa4109fa918e1c563b533e84a1e6c96eda6ff57cfee17f4 \+ --hash=sha256:d99095855b4f7921be85e694e20cce6a834f7d4464335150186efdf6430a3b58 \+ --hash=sha256:ddc359f9b886e0f92bd3061038711285e0003dd69e7f8184cbcd29322a832458 \+ --hash=sha256:e14648a8bed404f27d2fad5c4dbcf6eae5e584cc9641400fa443382057200c8d \+ --hash=sha256:e66b5dc33e94a05dfe0fcdf6ab17dfe6e0335017cc6a315de044214063b1c533 \+ --hash=sha256:e742074822e5b27fa5b991b5ab785e6a8ae5909996023e798448fa7df478dea0 \+ --hash=sha256:edfa0c1b348525d6c2713a53c90c0c50ae7a7bb2e4d59d8a59150aadba818991 \+ --hash=sha256:f0b93d127a4efb6481e3d0da4c3a6ac9889a8e9d8b50f9930bc5b2401fe5e598 \+ --hash=sha256:f25566e056d1fa9da47d6e374b2d04d6a6dfa0b631e52687a0bc4101633ecb53 \+ --hash=sha256:f6ab3fa77a0a4259deaf7f23979c9182974d45857873211d417fdf364a55cac5 \+ --hash=sha256:fa343dd9685309fbbdc5f22b8f2492361ec8ab3c0a676a0dfaa458089d1ae325 \+ --hash=sha256:fcc1ac1d73345f5b87a78de3915a50be5c005402248d0fda0eaafc24837a5ca8+ # via faster-whisper+faster-whisper==1.2.1 \+ --hash=sha256:79a66ad50688c0b794dd501dc340a736992a6342f7f95e5811be60b5224a26a7+ # via -r requirements-audio.in+filelock==3.29.4 \+ --hash=sha256:10cdb3656fc44541cdf30652a93fb10ec6b05325620eb316bd26893e4201538a \+ --hash=sha256:dac1648087d5115554850d113e7dd8c83ab2d38e3435dde2d4f163847e57b767+ # via huggingface-hub+flatbuffers==25.12.19 \+ --hash=sha256:7634f50c427838bb021c2d66a3d1168e9d199b0607e6329399f04846d42e20b4+ # via onnxruntime+fsspec==2026.6.0 \+ --hash=sha256:02e0b71817df9b2169dc30a16832045764def1191b43dcff5bb85bdee212d2a1 \+ --hash=sha256:f5bac145310fe30e16e1471bd6840b2d990d609e872251d7e674241822abf01a+ # via huggingface-hub+h11==0.16.0 \+ --hash=sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1 \+ --hash=sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86+ # via httpcore+hf-xet==1.5.1 \+ --hash=sha256:0c97106032ef70467b4f6bc2d0ccc266d7613ee076afc56516c502f87ce1c4a6 \+ --hash=sha256:3474760d10e3bb6f92ff3f024fcb00c0b3e4001e9b035c7483e49a5dd17aa70f \+ --hash=sha256:4f561cbbb92f80960772059864b7fb07eae879adde1b2e781ec6f86f6ac26c59 \+ --hash=sha256:51ef4500dab3764b41135ee1381a4b62ce56fc54d4c92b719b59e597d6df5bf6 \+ --hash=sha256:6071d5ccb4d8d2cbd5fea5cc798da4f0ba3f44e25369591c4e89a4987050e61d \+ --hash=sha256:6208adb15d192b90e4c2ad2a27ed864359b2cb0f2494eb6d7c7f3699ac02e2bf \+ --hash=sha256:6762d89b9e3267dfd502b29b2a327b4525f33b17e7b509a78d94e2151a30ce30 \+ --hash=sha256:6abd35c3221eff63836618ddfb954dcf84798603f71d8e33e3ed7b04acfdbe6e \+ --hash=sha256:6f7a04a8ad962422e225bc49fbbac99dc1806764b1f3e54dbd154bffa7593947 \+ --hash=sha256:8298485c1e36e7e67cbd01eeb1376619b7af43d4f1ec245caae306f890a8a32d \+ --hash=sha256:892e3a3a3aecc12aded8b93cf4f9cd059282c7de0732f7d55026f3abdf474350 \+ --hash=sha256:93d090b57b211133f6c0dab0205ef5cb6d89162979ba75a74845045cc3063b8e \+ --hash=sha256:94e761bbd266bf4c03cee73753916062665ce8365aa40ed321f45afcb934b41e \+ --hash=sha256:97f212a88d14bbf573619a74b7fecb238de77d08fc702e54dec6f78276ca3283 \+ --hash=sha256:a93df2039190502835b1db8cd7e178b0b7b889fe9ab51299d5ced26e0dd879a4 \+ --hash=sha256:bf67e6ed10260cef62e852789dc91ebb03f382d5bdc4b1dbeb64763ea275e7d6 \+ --hash=sha256:c6b6cd08ca095058780b50b8ce4d6cbf6787bcf27841705d58a9d32246e3e47a \+ --hash=sha256:d48199c2bf4f8df0adc55d31d1368b6ec0e4d4f45bc86b08038089c23db0bed8 \+ --hash=sha256:dbf48c0d02cf0b2e568944330c60d9120c272dabe013bd892d48e25bc6797577 \+ --hash=sha256:e1af0de8ca6f190d4294a28b88023db64a1e2d1d719cab044baf75bec569e7a9 \+ --hash=sha256:e78e4e5192ad2b674c2e1160b651cb9134db974f8ae1835bdfbfb0166b894a43 \+ --hash=sha256:e7dbb40617410f432182d918e37c12303fe6700fd6aa6c5964e30a535a4461d6 \+ --hash=sha256:f4ad3ebd4c32dd2b27099d69dc7b2df821e30767e46fb6ee6a0713778243b8ff \+ --hash=sha256:f61e3665892a6c8c5e765395838b8ddf36185da835253d4bc4509a81e49fb342 \+ --hash=sha256:f7b3002f95d1c13e24bcb4537baa8f0eb3838957067c91bb4959bc004a6435f5+ # via huggingface-hub+httpcore==1.0.9 \+ --hash=sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55 \+ --hash=sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8+ # via httpx+httpx==0.28.1 \+ --hash=sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc \+ --hash=sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad+ # via huggingface-hub+huggingface-hub==1.20.1 \+ --hash=sha256:274448a45c1ba6f112fe2fb168ead05574c654faa156904157a84085cfae14bd \+ --hash=sha256:9f6d63bfbeab2d2a8357200a9bc4f18cd2c8bfac9579f792f5922e77bf6471d0+ # via+ # faster-whisper+ # tokenizers+idna==3.18 \+ --hash=sha256:7f952cbe720b688055e3f87de14f5c3e5fdaa8bc3928985c4077ca689de849a2 \+ --hash=sha256:ffb385a7e039654cef1ab9ef32c6fafe283c0c0467bba1d9029738ce4a14a848+ # via+ # anyio+ # httpx+markdown-it-py==4.2.0 \+ --hash=sha256:04a21681d6fbb623de53f6f364d352309d4094dd4194040a10fd51833e418d49 \+ --hash=sha256:9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a+ # via rich+mdurl==0.1.2 \+ --hash=sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8 \+ --hash=sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba+ # via markdown-it-py+numpy==2.4.6 \+ --hash=sha256:001fbb8e08d942dd57599e781f2472269ee7f2755fae407b4f67b2f0b17da3f1 \+ --hash=sha256:0280e0356c0829a18d9de1cb7eee50ec22ca639878d7240307ca0943d73cd2c4 \+ --hash=sha256:043191bfa8eab18c776647b62723ac9dddece59743b13f49b2016094129c2b3f \+ --hash=sha256:06ca2f61ec4385a07a6977c55ba998a4466c123642b4a32694d3128fce18c079 \+ --hash=sha256:0a041d3d761dc3c35cc56ce0351506a02bcbc25f7b169f652435141a17db9096 \+ --hash=sha256:0ab0a9c4ffb1a6d95ef519fe4247dba8eb6b18ad93999f76b7f657039acabd47 \+ --hash=sha256:0c9136e14ed34a9e343a31c533d78a9813a69a3148332bce5e9821cb2f996e66 \+ --hash=sha256:110f8b71aacb688ec69062bb7f6938a0f8acb01b7c1c4beb453c65b6d234584d \+ --hash=sha256:112b06a867b235ef466ed3508ddf0238050df9c727cafb5301ac385b899189a1 \+ --hash=sha256:17f9ade344e7d9b464a084d69bcf18fc691cb1db67c62ed80820bf4926d78f0e \+ --hash=sha256:1e254a00cdf42b1e4d5b3d68d33af63268d41340d8885df2ab6470f2e1500147 \+ --hash=sha256:1e978ec1e8bd0e0e4de6bb75de9d30cbb74db6b6a2bb727618613703ca0167dd \+ --hash=sha256:25c692919ac5a01f170a3bfcd62d745b24fd095c353d50812637d6fcab442e75 \+ --hash=sha256:260a5d70215b61ab4fadf5c7baacd64821842975eea312125ed3c39a6391b063 \+ --hash=sha256:2803abfebfc990042cd494d8ce2d5f82e9d847af6d35ec486923aa19dbad5e73 \+ --hash=sha256:29a287e0cf63ff528da061de6b9f64a4618da591ca1046aafc54062e40ca7eab \+ --hash=sha256:29cb7f67d10b479ff07c17d33e39f78c07f71c40ef30d63c153d340e96cd3fb4 \+ --hash=sha256:3213d622a0283a39a93d188f3cf72b26862df52fbb4ca3697f51705016523d41 \+ --hash=sha256:33111801a01c12a8a1e3721f0a9232f8cfc8ae2c6b7098167e6f623c6073f402 \+ --hash=sha256:357cc07a6d7b0b182ff02249616a03742827ebb1277546b5c7cd7f7620a45698 \+ --hash=sha256:38efbc8de75c7a0fc1ac190162d892787f3f47b57cc291231aafee36b80982b7 \+ --hash=sha256:4081eb135ac24158bd51cdfbef16f1c64df7063b1143f24731387137c092bec8 \+ --hash=sha256:40fdc1ae7125e518ea98e53e69a4ebc27e1fd50510c47b7ea130cf21e5e1d42b \+ --hash=sha256:4cfe66903cc32a9921a6733d96b19bb6abf310397581bbad89c228f5abaf0ee8 \+ --hash=sha256:511dbaf848decaaaf4b4ca48032619fb3138710c4bf7da7617765edad1ef96b0 \+ --hash=sha256:55cced7c52e981362f708ad635198e97a752dfba412cc03c23bbf3bd8d5cd662 \+ --hash=sha256:56b39e5e0622a09a25bf5baf62f4bcf0cb8a41ae6e2819cf49bbc5a74c083f91 \+ --hash=sha256:5dbbdb29840ca3d91ee0fece42fc29278886d908280bfec0a5846c6f901a3eb0 \+ --hash=sha256:5f9fb9157b4ce2971008323afe46053787b526ef624fea915b261468a8421a0f \+ --hash=sha256:6180d8b35af935aed8ece3a85e0a43f87393ae0ac87c8d2c8bd2c993f7270ef3 \+ --hash=sha256:68a5124b13fa6cc2086764a20005d30bc0548146f7f5322f02fce212ca14317f \+ --hash=sha256:68bb27509ac1b9a3443094260f6326150663b06abe40b73a2f81160623da5b67 \+ --hash=sha256:6f41ae150c4e32db4f3310cdaf64b1593a03dbabe29eec77fc9b50fe64061df6 \+ --hash=sha256:7265a2f3d436e54ef9f2b52b5c937e6be778781bd97a590319d7348f1c1ca997 \+ --hash=sha256:72fbe16c6fac95aedf5937fa873445cec2110be35d8a4e9433d7501fd98dae6b \+ --hash=sha256:7d92c3819208a60205a12a245c91ad70cb0a85336659b19b834205573ac8456e \+ --hash=sha256:8155154c7c691289fe18f510b5d4657c68c67989f293f0535a91360392ff6538 \+ --hash=sha256:81a1cca95ed5bb92aa8b10dd2cdc9a0d3853a50fad926c28b5d7e8ea54389627 \+ --hash=sha256:89cd468399cfd2504718f0ba50e410dca55a170b61a02ad92bb18c8a65186e93 \+ --hash=sha256:8ad03c0965fb3c692200e74d458ca28c1dbb4ce96f9a479a8aa041ad5fabca02 \+ --hash=sha256:90f9849678c75fe7afa2d348ac842c168b0a4d3d61919687216dfc547976d853 \+ --hash=sha256:948424b06129ce883307e8cff868c31396d8dc7630a59c61d70d98dbe70f222c \+ --hash=sha256:9cd5ffd25db4e7ba6a375693b3fc0fc1791ec636c17db3720da19bde7180ec43 \+ --hash=sha256:a0df0043bdb289bde1f62da130d20df23d58b45429f752bc7a8fc5325a225ecd \+ --hash=sha256:a2c306dea656c12c68f51f4cea133cbe78ca7435eb28c735eac1d3ebe73be6e8 \+ --hash=sha256:a7830bab239b79cda9c08c2da014761cafb48da6150e1da17ac06283f43b6089 \+ --hash=sha256:a7c711e21628b52034bb5ab8d1bce291f752fcc5e92accc615778acee1ff4778 \+ --hash=sha256:aaf159caa35993cb1f56fb9b8e4610d35758e7ca005412eb1daa856a78c9c4b1 \+ --hash=sha256:ae506e6902902557576a26ff33eda8695e7ecb3cb36c3b573a0765dee114ebdb \+ --hash=sha256:b507f5c4c1d508876d1819b6bf9a49d365b96320b5d4993426b33a23ca4b8261 \+ --hash=sha256:bf162abab1c1a736333192707cef898e735a5ca00f38f27eeedf44b39d9e85eb \+ --hash=sha256:c1a2af6c6ef86344a6b0db6b97834208bf598db514f2b155042439b62605601a \+ --hash=sha256:c2d37ab77531417474168eb79d6d80b14f821a966818505d03013d0833edb7a8 \+ --hash=sha256:c4fc99836233ea196540b17ab0983aff60ed07941751930f5f4d05bc3b3b7359 \+ --hash=sha256:d581b735e177fdcdce6fed8e7e8880a3fb6ee4e3653a3ac6af01c6f4c03effc5 \+ --hash=sha256:d6da64deb6b8ed903e7560180a92f2d804ee1ba5eeb849ac2748b8c1aba1f6d7 \+ --hash=sha256:d8e8286dd7cea7895157318d1b91cdacac64c479f3cbc8dce548331728484751 \+ --hash=sha256:ddea102b48f9e339f3948bf22040944184627a30fdf7f858667673b9c5f033c8 \+ --hash=sha256:dfa20cc6ca228e6b155b11da03825975ce66aea520985dbbddf0f2a5a495c605 \+ --hash=sha256:e3e5193ef5a3dc73bceee50f7fdc2c90dbb76c42df8d8fae3d1067a583df579e \+ --hash=sha256:e3eeb0aabd6bd5ce64faae67e9935203a6991b4bc2a485a767fbafb2c5125f45 \+ --hash=sha256:e5805d5a22fd19c8ccff10a9561f9df94436b0545619ea579db2d3c35294bce2 \+ --hash=sha256:e85b752a1e912b70eaad4fafbd4d1238007ab221de2009b9a2f5ae7461239895 \+ --hash=sha256:eaf7fa2de5c0be8ae6ff8e9bea2ccd725e980541244521d8d4b5f3354a27babe \+ --hash=sha256:ebfb099f8dcf083deef3ac1ca4c1503f387cf76296fcb3816b66f5ecb5f54fdb \+ --hash=sha256:ece3d2cfe132e7d51f44a832b303895e6f2d499c5e74dfbdb06ee246147a304a \+ --hash=sha256:ed9749eef4cbd126da3dc1d6bcb3a57f5eb7ac6a6484146bdbf743f552dfc577 \+ --hash=sha256:ede83e07a75dd06bc501566c1eca2afc0d61677c1472ac9ad93fdee6e638a48d \+ --hash=sha256:ef4aea96ce4d3b074422cb4f2f64e216bf9e213004bb58ecfdf50ea02ea8eb9a \+ --hash=sha256:f3a3570c4a2a16746ac2c31a7c7c7b0c186b95ce902e33db6f28094ed7387dda \+ --hash=sha256:f407cb6b8e9d6d8c626bc73c945db1706035af8fd632295547bf1c9e46d092d6 \+ --hash=sha256:f74a575920ab21fe304421a3fc28793d82e299cae9eccb37084e9fc7f3617c20+ # via+ # ctranslate2+ # onnxruntime+onnxruntime==1.27.0 \+ --hash=sha256:0874edc171f470fc4dd2bbb60bc0989612ed1a8b89b365cda016630a93227f13 \+ --hash=sha256:1b215aa662c8f983f7d6dedafe65a9be72c26e5338e0fe98b3e0422c32c85428 \+ --hash=sha256:20c321cf187ba496e648acf6b4cf90b4d398b0d17c2a77fdaeba365b908cc1c1 \+ --hash=sha256:2eb083321af8a236a84c7c140a7f4cecbfa2a987a18c07c78db471c20cd390ef \+ --hash=sha256:2fdfa9df40a0ded0028ce6f9cd863264237f3970559dea2b81456e9ac4622b94 \+ --hash=sha256:370d211e1ceeac4cd5f45301655463ac59e27cdc74d9f7aeb2d19ff4b7a76715 \+ --hash=sha256:445fb702ea5241ba813a3ce2febe2e9408a64f6ad2eb610924322c536165f7cd \+ --hash=sha256:48b3d87eb560ff6a772240506f3c78d6d27c63cafedd5c775672e1194f968cfd \+ --hash=sha256:49e416be0d717338b6d041b99911b716d70c397d277056450724f93bdded3fc2 \+ --hash=sha256:54c0c4e9202c36c4ecdb1f3443f5dfbfd5ee3b54d1362c4b4c6134110e74fb32 \+ --hash=sha256:5b51c014cf1a4fcd93c29a97eac8071fa27710dae05a4d0380bb60a66d60a62c \+ --hash=sha256:6872443f236a554921cda6f318c900e2d0c226792cf3534d00e5057c6926e5d2 \+ --hash=sha256:75fbc1e1fb43a39a856c8209c544cca7817b5de7ac16b15b1bdf55d1cc67b9df \+ --hash=sha256:760021bca514d64a811837820d351a08a41741f16f8b4c26450da708fecf14e6 \+ --hash=sha256:7c65a7438632d55dfbc8a02ee60bd6cf7dd9d1ba05a43d4b851452f32338e194 \+ --hash=sha256:856032937dd3bc7a7c141909c8d7ae4fde3e3f59bddf061ae627b9a051bda95c \+ --hash=sha256:8ba14a38c570087f3cdb8cfba33f7a38a1e826c1e5b29e17c28ceda0cc910016 \+ --hash=sha256:a14c2ce45312def86b77aea651f46565e45960cf5f0721bfdff449165086ab76 \+ --hash=sha256:b3e5b58b8c89c2b20e086e890aa9527377e5c240dc3ecc1640d18e07705eeb1c \+ --hash=sha256:c6197a02e3f620c4dc13cff51b80672409fc1ffab3aa2593911b19fd322ff48b \+ --hash=sha256:c6fddce0539a4898c7bef35b052ffd37935b2190e35488eab99ce91887743ea1 \+ --hash=sha256:d0d1f68868e2ef30ef70998ba9bbbc5c305e9b17041e3936751c1b8aa6aade06 \+ --hash=sha256:e4f7b0e90d2d212e2c2deaa6c8291616183ab815d3ec558ea12d3ac8b26d36f4 \+ --hash=sha256:ff050e4f6bf7f12918fa14dcb047c0b02e295f35e86d42532552be4b3d54e977+ # via faster-whisper+packaging==26.2 \+ --hash=sha256:5fc45236b9446107ff2415ce77c807cee2862cb6fac22b8a73826d0693b0980e \+ --hash=sha256:ff452ff5a3e828ce110190feff1178bb1f2ea2281fa2075aadb987c2fb221661+ # via+ # huggingface-hub+ # onnxruntime+protobuf==7.35.1 \+ --hash=sha256:11d6b0ec246892d85215b0a13ca6e0233cf5284b68f0ac02646427f4ff88a799 \+ --hash=sha256:230a75ddfc2de4806e56696ce9640c1cdfdb6543b7cfce98d42a4c0a0e7bdb87 \+ --hash=sha256:24f857477359a85c0c235261b8ba905fd51b2562f4a64ca1df5473f29850cbf6 \+ --hash=sha256:353652e4efd0bca5b5fc2656abf8307ef351f0cf938c9eba09f0e09c20a25c30 \+ --hash=sha256:4bc97768d8fe4ad6743c8a19403e314511ed9f6d13205b687e52421c023ac1b9 \+ --hash=sha256:74758715c53d7158fb76caf4f0cfdacc5329a4b1bb994f865d6cf302d413a1c4 \+ --hash=sha256:b73f9489a4b8b1c9cb1f8ed951c736392592edb24b9d6819f36d2e10b171d5b4 \+ --hash=sha256:ce115a26fe0c39a2c29973d914d327e516a6455464489fe3cd1e51a1b354f81a+ # via onnxruntime+pygments==2.20.0 \+ --hash=sha256:6757cd03768053ff99f3039c1a36d6c0aa0b263438fcab17520b30a303a82b5f \+ --hash=sha256:81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176+ # via rich+pyyaml==6.0.3 \+ --hash=sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c \+ --hash=sha256:0150219816b6a1fa26fb4699fb7daa9caf09eb1999f3b70fb6e786805e80375a \+ --hash=sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3 \+ --hash=sha256:02ea2dfa234451bbb8772601d7b8e426c2bfa197136796224e50e35a78777956 \+ --hash=sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6 \+ --hash=sha256:10892704fc220243f5305762e276552a0395f7beb4dbf9b14ec8fd43b57f126c \+ --hash=sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65 \+ --hash=sha256:1d37d57ad971609cf3c53ba6a7e365e40660e3be0e5175fa9f2365a379d6095a \+ --hash=sha256:1ebe39cb5fc479422b83de611d14e2c0d3bb2a18bbcb01f229ab3cfbd8fee7a0 \+ --hash=sha256:214ed4befebe12df36bcc8bc2b64b396ca31be9304b8f59e25c11cf94a4c033b \+ --hash=sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1 \+ --hash=sha256:22ba7cfcad58ef3ecddc7ed1db3409af68d023b7f940da23c6c2a1890976eda6 \+ --hash=sha256:27c0abcb4a5dac13684a37f76e701e054692a9b2d3064b70f5e4eb54810553d7 \+ --hash=sha256:28c8d926f98f432f88adc23edf2e6d4921ac26fb084b028c733d01868d19007e \+ --hash=sha256:2e71d11abed7344e42a8849600193d15b6def118602c4c176f748e4583246007 \+ --hash=sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310 \+ --hash=sha256:37503bfbfc9d2c40b344d06b2199cf0e96e97957ab1c1b546fd4f87e53e5d3e4 \+ --hash=sha256:3c5677e12444c15717b902a5798264fa7909e41153cdf9ef7ad571b704a63dd9 \+ --hash=sha256:3ff07ec89bae51176c0549bc4c63aa6202991da2d9a6129d7aef7f1407d3f295 \+ --hash=sha256:41715c910c881bc081f1e8872880d3c650acf13dfa8214bad49ed4cede7c34ea \+ --hash=sha256:418cf3f2111bc80e0933b2cd8cd04f286338bb88bdc7bc8e6dd775ebde60b5e0 \+ --hash=sha256:44edc647873928551a01e7a563d7452ccdebee747728c1080d881d68af7b997e \+ --hash=sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac \+ --hash=sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9 \+ --hash=sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7 \+ --hash=sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35 \+ --hash=sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb \+ --hash=sha256:5cf4e27da7e3fbed4d6c3d8e797387aaad68102272f8f9752883bc32d61cb87b \+ --hash=sha256:5e0b74767e5f8c593e8c9b5912019159ed0533c70051e9cce3e8b6aa699fcd69 \+ --hash=sha256:5ed875a24292240029e4483f9d4a4b8a1ae08843b9c54f43fcc11e404532a8a5 \+ --hash=sha256:5fcd34e47f6e0b794d17de1b4ff496c00986e1c83f7ab2fb8fcfe9616ff7477b \+ --hash=sha256:5fdec68f91a0c6739b380c83b951e2c72ac0197ace422360e6d5a959d8d97b2c \+ --hash=sha256:6344df0d5755a2c9a276d4473ae6b90647e216ab4757f8426893b5dd2ac3f369 \+ --hash=sha256:64386e5e707d03a7e172c0701abfb7e10f0fb753ee1d773128192742712a98fd \+ --hash=sha256:652cb6edd41e718550aad172851962662ff2681490a8a711af6a4d288dd96824 \+ --hash=sha256:66291b10affd76d76f54fad28e22e51719ef9ba22b29e1d7d03d6777a9174198 \+ --hash=sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065 \+ --hash=sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c \+ --hash=sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c \+ --hash=sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764 \+ --hash=sha256:7f047e29dcae44602496db43be01ad42fc6f1cc0d8cd6c83d342306c32270196 \+ --hash=sha256:8098f252adfa6c80ab48096053f512f2321f0b998f98150cea9bd23d83e1467b \+ --hash=sha256:850774a7879607d3a6f50d36d04f00ee69e7fc816450e5f7e58d7f17f1ae5c00 \+ --hash=sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac \+ --hash=sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8 \+ --hash=sha256:8dc52c23056b9ddd46818a57b78404882310fb473d63f17b07d5c40421e47f8e \+ --hash=sha256:9149cad251584d5fb4981be1ecde53a1ca46c891a79788c0df828d2f166bda28 \+ --hash=sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3 \+ --hash=sha256:96b533f0e99f6579b3d4d4995707cf36df9100d67e0c8303a0c55b27b5f99bc5 \+ --hash=sha256:9c57bb8c96f6d1808c030b1687b9b5fb476abaa47f0db9c0101f5e9f394e97f4 \+ --hash=sha256:9c7708761fccb9397fe64bbc0395abcae8c4bf7b0eac081e12b809bf47700d0b \+ --hash=sha256:9f3bfb4965eb874431221a3ff3fdcddc7e74e3b07799e0e84ca4a0f867d449bf \+ --hash=sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5 \+ --hash=sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702 \+ --hash=sha256:b30236e45cf30d2b8e7b3e85881719e98507abed1011bf463a8fa23e9c3e98a8 \+ --hash=sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788 \+ --hash=sha256:b865addae83924361678b652338317d1bd7e79b1f4596f96b96c77a5a34b34da \+ --hash=sha256:b8bb0864c5a28024fac8a632c443c87c5aa6f215c0b126c449ae1a150412f31d \+ --hash=sha256:ba1cc08a7ccde2d2ec775841541641e4548226580ab850948cbfda66a1befcdc \+ --hash=sha256:bdb2c67c6c1390b63c6ff89f210c8fd09d9a1217a465701eac7316313c915e4c \+ --hash=sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba \+ --hash=sha256:c2514fceb77bc5e7a2f7adfaa1feb2fb311607c9cb518dbc378688ec73d8292f \+ --hash=sha256:c3355370a2c156cffb25e876646f149d5d68f5e0a3ce86a5084dd0b64a994917 \+ --hash=sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5 \+ --hash=sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26 \+ --hash=sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f \+ --hash=sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b \+ --hash=sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be \+ --hash=sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c \+ --hash=sha256:efd7b85f94a6f21e4932043973a7ba2613b059c4a000551892ac9f1d11f5baf3 \+ --hash=sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6 \+ --hash=sha256:fa160448684b4e94d80416c0fa4aac48967a969efe22931448d853ada8baf926 \+ --hash=sha256:fc09d0aa354569bc501d4e787133afc08552722d3ab34836a80547331bb5d4a0+ # via+ # ctranslate2+ # huggingface-hub+rich==15.0.0 \+ --hash=sha256:33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb \+ --hash=sha256:edd07a4824c6b40189fb7ac9bc4c52536e9780fbbfbddf6f1e2502c31b068c36+ # via typer+setuptools==82.0.1 \+ --hash=sha256:7d872682c5d01cfde07da7bccc7b65469d3dca203318515ada1de5eda35efbf9 \+ --hash=sha256:a59e362652f08dcd477c78bb6e7bd9d80a7995bc73ce773050228a348ce2e5bb+ # via ctranslate2+shellingham==1.5.4 \+ --hash=sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686 \+ --hash=sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de+ # via typer+tokenizers==0.23.1 \+ --hash=sha256:120468fb4c24faf0543c835a4fabafa4deb3f20a035c9b6e83d0b553a97615d4 \+ --hash=sha256:1974288a609c343774f1b897c8b482c791ab17b75ab5c8c2b1737565c1d82288 \+ --hash=sha256:1bf13402aff9bc533c89cb849ec3b412dc3fbeacc9744840e423d7bf3f7dc0e3 \+ --hash=sha256:1feeeadf865a7915adc25445dea30e9933e593c31bb96c277cee36de227c8bfa \+ --hash=sha256:5075b405006415ea148a992d093699c66eb01952bf59f4d5727089a98bda45a4 \+ --hash=sha256:53b09e85775d5187941e7bab30e941b4134ab4a7dd8c68e783d231fb7ca27c51 \+ --hash=sha256:56f3a77de629917652f876294dc9fe6bad4a0c43bc229dc72e59bb23a0f4729a \+ --hash=sha256:93120a930b919416da7cd10a2f606ac9919cc69cacae7980fa2140e277660948 \+ --hash=sha256:9d10a6d957ef01896dc274e890eee27d41bd0e74ef31e60616f0fc311345184e \+ --hash=sha256:a26197957d8e4425dfba746315f3c425ea00cfa8367c5fbc4ec73447893dcea9 \+ --hash=sha256:ae848657742035523fdf261773630cb819a26995fcd3d9ecae0c1daf6e5a4959 \+ --hash=sha256:e03d6ffcbe0d56ee9c1ccd070e70a13fa750727c0277e138152acbc0252c2224 \+ --hash=sha256:e0948bbb1ac1d7cdfc9fb6d62c596e3b7550036ad60ecd654a66ad273326324e \+ --hash=sha256:e3d8f40ea6268047de7046906326abed5134f27d4e8447b23763afe5808c8a96 \+ --hash=sha256:e7bfaf995c1bdbbd21d13539decb6650967013759318627d85daeb7881af16b7 \+ --hash=sha256:ea5a0ce170074329faaa8ea3f6400ecde604b6678192688533af80980daae71a \+ --hash=sha256:f836ca703b89ae07919a309f9651f7a88fd5a33d5f718ba5ad0870ec0256bad6+ # via faster-whisper+tqdm==4.68.3 \+ --hash=sha256:00dfa48452b6b6cfae3dd9885636c23d3422d1ec97c66d96818cbd5e0821d482 \+ --hash=sha256:39832cc2def2789a6f29df83f172db7416cea70052c0907a57801c5f2fdccb03+ # via+ # faster-whisper+ # huggingface-hub+typer==0.25.1 \+ --hash=sha256:75caa44ed46a03fb2dab8808753ffacdbfea88495e74c85a28c5eefcf5f39c89 \+ --hash=sha256:9616eb8853a09ffeabab1698952f33c6f29ffdbceb4eaeecf571880e8d7664cc+ # via huggingface-hub+typing-extensions==4.15.0 \+ --hash=sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466 \+ --hash=sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548+ # via+ # anyio+ # huggingface-hubdiff --git a/app/src-tauri/resources/sidecar/requirements-ocr.in b/app/src-tauri/resources/sidecar/requirements-ocr.innew file mode 100644index 0000000..7ddd1ff--- /dev/null+++ b/app/src-tauri/resources/sidecar/requirements-ocr.in@@ -0,0 +1,2 @@+rapidocr-onnxruntime+pypdfium2diff --git a/app/src-tauri/resources/sidecar/requirements-ocr.lock b/app/src-tauri/resources/sidecar/requirements-ocr.locknew file mode 100644index 0000000..763104a--- /dev/null+++ b/app/src-tauri/resources/sidecar/requirements-ocr.lock@@ -0,0 +1,437 @@+# This file was autogenerated by uv via the following command:+# uv pip compile requirements-ocr.in --generate-hashes --python-version 3.12 -o requirements-ocr.lock+colorama==0.4.6 \+ --hash=sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44 \+ --hash=sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6+ # via tqdm+flatbuffers==25.12.19 \+ --hash=sha256:7634f50c427838bb021c2d66a3d1168e9d199b0607e6329399f04846d42e20b4+ # via onnxruntime+numpy==2.4.6 \+ --hash=sha256:001fbb8e08d942dd57599e781f2472269ee7f2755fae407b4f67b2f0b17da3f1 \+ --hash=sha256:0280e0356c0829a18d9de1cb7eee50ec22ca639878d7240307ca0943d73cd2c4 \+ --hash=sha256:043191bfa8eab18c776647b62723ac9dddece59743b13f49b2016094129c2b3f \+ --hash=sha256:06ca2f61ec4385a07a6977c55ba998a4466c123642b4a32694d3128fce18c079 \+ --hash=sha256:0a041d3d761dc3c35cc56ce0351506a02bcbc25f7b169f652435141a17db9096 \+ --hash=sha256:0ab0a9c4ffb1a6d95ef519fe4247dba8eb6b18ad93999f76b7f657039acabd47 \+ --hash=sha256:0c9136e14ed34a9e343a31c533d78a9813a69a3148332bce5e9821cb2f996e66 \+ --hash=sha256:110f8b71aacb688ec69062bb7f6938a0f8acb01b7c1c4beb453c65b6d234584d \+ --hash=sha256:112b06a867b235ef466ed3508ddf0238050df9c727cafb5301ac385b899189a1 \+ --hash=sha256:17f9ade344e7d9b464a084d69bcf18fc691cb1db67c62ed80820bf4926d78f0e \+ --hash=sha256:1e254a00cdf42b1e4d5b3d68d33af63268d41340d8885df2ab6470f2e1500147 \+ --hash=sha256:1e978ec1e8bd0e0e4de6bb75de9d30cbb74db6b6a2bb727618613703ca0167dd \+ --hash=sha256:25c692919ac5a01f170a3bfcd62d745b24fd095c353d50812637d6fcab442e75 \+ --hash=sha256:260a5d70215b61ab4fadf5c7baacd64821842975eea312125ed3c39a6391b063 \+ --hash=sha256:2803abfebfc990042cd494d8ce2d5f82e9d847af6d35ec486923aa19dbad5e73 \+ --hash=sha256:29a287e0cf63ff528da061de6b9f64a4618da591ca1046aafc54062e40ca7eab \+ --hash=sha256:29cb7f67d10b479ff07c17d33e39f78c07f71c40ef30d63c153d340e96cd3fb4 \+ --hash=sha256:3213d622a0283a39a93d188f3cf72b26862df52fbb4ca3697f51705016523d41 \+ --hash=sha256:33111801a01c12a8a1e3721f0a9232f8cfc8ae2c6b7098167e6f623c6073f402 \+ --hash=sha256:357cc07a6d7b0b182ff02249616a03742827ebb1277546b5c7cd7f7620a45698 \+ --hash=sha256:38efbc8de75c7a0fc1ac190162d892787f3f47b57cc291231aafee36b80982b7 \+ --hash=sha256:4081eb135ac24158bd51cdfbef16f1c64df7063b1143f24731387137c092bec8 \+ --hash=sha256:40fdc1ae7125e518ea98e53e69a4ebc27e1fd50510c47b7ea130cf21e5e1d42b \+ --hash=sha256:4cfe66903cc32a9921a6733d96b19bb6abf310397581bbad89c228f5abaf0ee8 \+ --hash=sha256:511dbaf848decaaaf4b4ca48032619fb3138710c4bf7da7617765edad1ef96b0 \+ --hash=sha256:55cced7c52e981362f708ad635198e97a752dfba412cc03c23bbf3bd8d5cd662 \+ --hash=sha256:56b39e5e0622a09a25bf5baf62f4bcf0cb8a41ae6e2819cf49bbc5a74c083f91 \+ --hash=sha256:5dbbdb29840ca3d91ee0fece42fc29278886d908280bfec0a5846c6f901a3eb0 \+ --hash=sha256:5f9fb9157b4ce2971008323afe46053787b526ef624fea915b261468a8421a0f \+ --hash=sha256:6180d8b35af935aed8ece3a85e0a43f87393ae0ac87c8d2c8bd2c993f7270ef3 \+ --hash=sha256:68a5124b13fa6cc2086764a20005d30bc0548146f7f5322f02fce212ca14317f \+ --hash=sha256:68bb27509ac1b9a3443094260f6326150663b06abe40b73a2f81160623da5b67 \+ --hash=sha256:6f41ae150c4e32db4f3310cdaf64b1593a03dbabe29eec77fc9b50fe64061df6 \+ --hash=sha256:7265a2f3d436e54ef9f2b52b5c937e6be778781bd97a590319d7348f1c1ca997 \+ --hash=sha256:72fbe16c6fac95aedf5937fa873445cec2110be35d8a4e9433d7501fd98dae6b \+ --hash=sha256:7d92c3819208a60205a12a245c91ad70cb0a85336659b19b834205573ac8456e \+ --hash=sha256:8155154c7c691289fe18f510b5d4657c68c67989f293f0535a91360392ff6538 \+ --hash=sha256:81a1cca95ed5bb92aa8b10dd2cdc9a0d3853a50fad926c28b5d7e8ea54389627 \+ --hash=sha256:89cd468399cfd2504718f0ba50e410dca55a170b61a02ad92bb18c8a65186e93 \+ --hash=sha256:8ad03c0965fb3c692200e74d458ca28c1dbb4ce96f9a479a8aa041ad5fabca02 \+ --hash=sha256:90f9849678c75fe7afa2d348ac842c168b0a4d3d61919687216dfc547976d853 \+ --hash=sha256:948424b06129ce883307e8cff868c31396d8dc7630a59c61d70d98dbe70f222c \+ --hash=sha256:9cd5ffd25db4e7ba6a375693b3fc0fc1791ec636c17db3720da19bde7180ec43 \+ --hash=sha256:a0df0043bdb289bde1f62da130d20df23d58b45429f752bc7a8fc5325a225ecd \+ --hash=sha256:a2c306dea656c12c68f51f4cea133cbe78ca7435eb28c735eac1d3ebe73be6e8 \+ --hash=sha256:a7830bab239b79cda9c08c2da014761cafb48da6150e1da17ac06283f43b6089 \+ --hash=sha256:a7c711e21628b52034bb5ab8d1bce291f752fcc5e92accc615778acee1ff4778 \+ --hash=sha256:aaf159caa35993cb1f56fb9b8e4610d35758e7ca005412eb1daa856a78c9c4b1 \+ --hash=sha256:ae506e6902902557576a26ff33eda8695e7ecb3cb36c3b573a0765dee114ebdb \+ --hash=sha256:b507f5c4c1d508876d1819b6bf9a49d365b96320b5d4993426b33a23ca4b8261 \+ --hash=sha256:bf162abab1c1a736333192707cef898e735a5ca00f38f27eeedf44b39d9e85eb \+ --hash=sha256:c1a2af6c6ef86344a6b0db6b97834208bf598db514f2b155042439b62605601a \+ --hash=sha256:c2d37ab77531417474168eb79d6d80b14f821a966818505d03013d0833edb7a8 \+ --hash=sha256:c4fc99836233ea196540b17ab0983aff60ed07941751930f5f4d05bc3b3b7359 \+ --hash=sha256:d581b735e177fdcdce6fed8e7e8880a3fb6ee4e3653a3ac6af01c6f4c03effc5 \+ --hash=sha256:d6da64deb6b8ed903e7560180a92f2d804ee1ba5eeb849ac2748b8c1aba1f6d7 \+ --hash=sha256:d8e8286dd7cea7895157318d1b91cdacac64c479f3cbc8dce548331728484751 \+ --hash=sha256:ddea102b48f9e339f3948bf22040944184627a30fdf7f858667673b9c5f033c8 \+ --hash=sha256:dfa20cc6ca228e6b155b11da03825975ce66aea520985dbbddf0f2a5a495c605 \+ --hash=sha256:e3e5193ef5a3dc73bceee50f7fdc2c90dbb76c42df8d8fae3d1067a583df579e \+ --hash=sha256:e3eeb0aabd6bd5ce64faae67e9935203a6991b4bc2a485a767fbafb2c5125f45 \+ --hash=sha256:e5805d5a22fd19c8ccff10a9561f9df94436b0545619ea579db2d3c35294bce2 \+ --hash=sha256:e85b752a1e912b70eaad4fafbd4d1238007ab221de2009b9a2f5ae7461239895 \+ --hash=sha256:eaf7fa2de5c0be8ae6ff8e9bea2ccd725e980541244521d8d4b5f3354a27babe \+ --hash=sha256:ebfb099f8dcf083deef3ac1ca4c1503f387cf76296fcb3816b66f5ecb5f54fdb \+ --hash=sha256:ece3d2cfe132e7d51f44a832b303895e6f2d499c5e74dfbdb06ee246147a304a \+ --hash=sha256:ed9749eef4cbd126da3dc1d6bcb3a57f5eb7ac6a6484146bdbf743f552dfc577 \+ --hash=sha256:ede83e07a75dd06bc501566c1eca2afc0d61677c1472ac9ad93fdee6e638a48d \+ --hash=sha256:ef4aea96ce4d3b074422cb4f2f64e216bf9e213004bb58ecfdf50ea02ea8eb9a \+ --hash=sha256:f3a3570c4a2a16746ac2c31a7c7c7b0c186b95ce902e33db6f28094ed7387dda \+ --hash=sha256:f407cb6b8e9d6d8c626bc73c945db1706035af8fd632295547bf1c9e46d092d6 \+ --hash=sha256:f74a575920ab21fe304421a3fc28793d82e299cae9eccb37084e9fc7f3617c20+ # via+ # onnxruntime+ # opencv-python+ # rapidocr-onnxruntime+ # shapely+onnxruntime==1.27.0 \+ --hash=sha256:0874edc171f470fc4dd2bbb60bc0989612ed1a8b89b365cda016630a93227f13 \+ --hash=sha256:1b215aa662c8f983f7d6dedafe65a9be72c26e5338e0fe98b3e0422c32c85428 \+ --hash=sha256:20c321cf187ba496e648acf6b4cf90b4d398b0d17c2a77fdaeba365b908cc1c1 \+ --hash=sha256:2eb083321af8a236a84c7c140a7f4cecbfa2a987a18c07c78db471c20cd390ef \+ --hash=sha256:2fdfa9df40a0ded0028ce6f9cd863264237f3970559dea2b81456e9ac4622b94 \+ --hash=sha256:370d211e1ceeac4cd5f45301655463ac59e27cdc74d9f7aeb2d19ff4b7a76715 \+ --hash=sha256:445fb702ea5241ba813a3ce2febe2e9408a64f6ad2eb610924322c536165f7cd \+ --hash=sha256:48b3d87eb560ff6a772240506f3c78d6d27c63cafedd5c775672e1194f968cfd \+ --hash=sha256:49e416be0d717338b6d041b99911b716d70c397d277056450724f93bdded3fc2 \+ --hash=sha256:54c0c4e9202c36c4ecdb1f3443f5dfbfd5ee3b54d1362c4b4c6134110e74fb32 \+ --hash=sha256:5b51c014cf1a4fcd93c29a97eac8071fa27710dae05a4d0380bb60a66d60a62c \+ --hash=sha256:6872443f236a554921cda6f318c900e2d0c226792cf3534d00e5057c6926e5d2 \+ --hash=sha256:75fbc1e1fb43a39a856c8209c544cca7817b5de7ac16b15b1bdf55d1cc67b9df \+ --hash=sha256:760021bca514d64a811837820d351a08a41741f16f8b4c26450da708fecf14e6 \+ --hash=sha256:7c65a7438632d55dfbc8a02ee60bd6cf7dd9d1ba05a43d4b851452f32338e194 \+ --hash=sha256:856032937dd3bc7a7c141909c8d7ae4fde3e3f59bddf061ae627b9a051bda95c \+ --hash=sha256:8ba14a38c570087f3cdb8cfba33f7a38a1e826c1e5b29e17c28ceda0cc910016 \+ --hash=sha256:a14c2ce45312def86b77aea651f46565e45960cf5f0721bfdff449165086ab76 \+ --hash=sha256:b3e5b58b8c89c2b20e086e890aa9527377e5c240dc3ecc1640d18e07705eeb1c \+ --hash=sha256:c6197a02e3f620c4dc13cff51b80672409fc1ffab3aa2593911b19fd322ff48b \+ --hash=sha256:c6fddce0539a4898c7bef35b052ffd37935b2190e35488eab99ce91887743ea1 \+ --hash=sha256:d0d1f68868e2ef30ef70998ba9bbbc5c305e9b17041e3936751c1b8aa6aade06 \+ --hash=sha256:e4f7b0e90d2d212e2c2deaa6c8291616183ab815d3ec558ea12d3ac8b26d36f4 \+ --hash=sha256:ff050e4f6bf7f12918fa14dcb047c0b02e295f35e86d42532552be4b3d54e977+ # via rapidocr-onnxruntime+opencv-python==4.13.0.92 \+ --hash=sha256:0bc2596e68f972ca452d80f444bc404e08807d021fbba40df26b61b18e01838a \+ --hash=sha256:372fe164a3148ac1ca51e5f3ad0541a4a276452273f503441d718fab9c5e5f59 \+ --hash=sha256:402033cddf9d294693094de5ef532339f14ce821da3ad7df7c9f6e8316da32cf \+ --hash=sha256:423d934c9fafb91aad38edf26efb46da91ffbc05f3f59c4b0c72e699720706f5 \+ --hash=sha256:5868a8c028a0b37561579bfb8ac1875babdc69546d236249fff296a8c010ccf9 \+ --hash=sha256:620d602b8f7d8b8dab5f4b99c6eb353e78d3fb8b0f53db1bd258bb1aa001c1d5 \+ --hash=sha256:bccaabf9eb7f897ca61880ce2869dcd9b25b72129c28478e7f2a5e8dee945616 \+ --hash=sha256:caf60c071ec391ba51ed00a4a920f996d0b64e3e46068aac1f646b5de0326a19+ # via rapidocr-onnxruntime+packaging==26.2 \+ --hash=sha256:5fc45236b9446107ff2415ce77c807cee2862cb6fac22b8a73826d0693b0980e \+ --hash=sha256:ff452ff5a3e828ce110190feff1178bb1f2ea2281fa2075aadb987c2fb221661+ # via onnxruntime+pillow==12.2.0 \+ --hash=sha256:00a2865911330191c0b818c59103b58a5e697cae67042366970a6b6f1b20b7f9 \+ --hash=sha256:01afa7cf67f74f09523699b4e88c73fb55c13346d212a59a2db1f86b0a63e8c5 \+ --hash=sha256:03e7e372d5240cc23e9f07deca4d775c0817bffc641b01e9c3af208dbd300987 \+ --hash=sha256:03f6fab9219220f041c74aeaa2939ff0062bd5c364ba9ce037197f4c6d498cd9 \+ --hash=sha256:042db20a421b9bafecc4b84a8b6e444686bd9d836c7fd24542db3e7df7baad9b \+ --hash=sha256:0538bd5e05efec03ae613fd89c4ce0368ecd2ba239cc25b9f9be7ed426b0af1f \+ --hash=sha256:0a34329707af4f73cf1782a36cd2289c0368880654a2c11f027bcee9052d35dd \+ --hash=sha256:0c838a5125cee37e68edec915651521191cef1e6aa336b855f495766e77a366e \+ --hash=sha256:144748b3af2d1b358d41286056d0003f47cb339b8c43a9ea42f5fea4d8c66b6e \+ --hash=sha256:1610dd6c61621ae1cf811bef44d77e149ce3f7b95afe66a4512f8c59f25d9ebe \+ --hash=sha256:1e1757442ed87f4912397c6d35a0db6a7b52592156014706f17658ff58bbf795 \+ --hash=sha256:22db17c68434de69d8ecfc2fe821569195c0c373b25cccb9cbdacf2c6e53c601 \+ --hash=sha256:25373b66e0dd5905ed63fa3cae13c82fbddf3079f2c8bf15c6fb6a35586324c1 \+ --hash=sha256:2bb4a8d594eacdfc59d9e5ad972aa8afdd48d584ffd5f13a937a664c3e7db0ed \+ --hash=sha256:2c727a6d53cb0018aadd8018c2b938376af27914a68a492f59dfcaca650d5eea \+ --hash=sha256:2d192a155bbcec180f8564f693e6fd9bccff5a7af9b32e2e4bf8c9c69dbad6b5 \+ --hash=sha256:2e589959f10d9824d39b350472b92f0ce3b443c0a3442ebf41c40cb8361c5b97 \+ --hash=sha256:2e5a76d03a6c6dcef67edabda7a52494afa4035021a79c8558e14af25313d453 \+ --hash=sha256:325ca0528c6788d2a6c3d40e3568639398137346c3d6e66bb61db96b96511c98 \+ --hash=sha256:34c0d99ecccea270c04882cb3b86e7b57296079c9a4aff88cb3b33563d95afaa \+ --hash=sha256:390ede346628ccc626e5730107cde16c42d3836b89662a115a921f28440e6a3b \+ --hash=sha256:394167b21da716608eac917c60aa9b969421b5dcbbe02ae7f013e7b85811c69d \+ --hash=sha256:3997232e10d2920a68d25191392e3a4487d8183039e1c74c2297f00ed1c50705 \+ --hash=sha256:3adc9215e8be0448ed6e814966ecf3d9952f0ea40eb14e89a102b87f450660d8 \+ --hash=sha256:3e080565d8d7c671db5802eedfb438e5565ffa40115216eabb8cd52d0ecce024 \+ --hash=sha256:4a6c9fa44005fa37a91ebfc95d081e8079757d2e904b27103f4f5fa6f0bf78c0 \+ --hash=sha256:4bfd07bc812fbd20395212969e41931001fd59eb55a60658b0e5710872e95286 \+ --hash=sha256:4e6c62e9d237e9b65fac06857d511e90d8461a32adcc1b9065ea0c0fa3a28150 \+ --hash=sha256:50d8520da2a6ce0af445fa6d648c4273c3eeefbc32d7ce049f22e8b5c3daecc2 \+ --hash=sha256:51c4167c34b0d8ba05b547a3bb23578d0ba17b80a5593f93bd8ecb123dd336a3 \+ --hash=sha256:56a3f9c60a13133a98ecff6197af34d7824de9b7b38c3654861a725c970c197b \+ --hash=sha256:56b25336f502b6ed02e889f4ece894a72612fe885889a6e8c4c80239ff6e5f5f \+ --hash=sha256:57850958fe9c751670e49b2cecf6294acc99e562531f4bd317fa5ddee2068463 \+ --hash=sha256:58f62cc0f00fd29e64b29f4fd923ffdb3859c9f9e6105bfc37ba1d08994e8940 \+ --hash=sha256:5c0a9f29ca8e79f09de89293f82fc9b0270bb4af1d58bc98f540cc4aedf03166 \+ --hash=sha256:5cdfebd752ec52bf5bb4e35d9c64b40826bc5b40a13df7c3cda20a2c03a0f5ed \+ --hash=sha256:5d04bfa02cc2d23b497d1e90a0f927070043f6cbf303e738300532379a4b4e0f \+ --hash=sha256:5d2fd0fa6b5d9d1de415060363433f28da8b1526c1c129020435e186794b3795 \+ --hash=sha256:62f5409336adb0663b7caa0da5c7d9e7bdbaae9ce761d34669420c2a801b2780 \+ --hash=sha256:632ff19b2778e43162304d50da0181ce24ac5bb8180122cbe1bf4673428328c7 \+ --hash=sha256:6562ace0d3fb5f20ed7290f1f929cae41b25ae29528f2af1722966a0a02e2aa1 \+ --hash=sha256:673aa32138f3e7531ccdbca7b3901dba9b70940a19ccecc6a37c77d5fdeb05b5 \+ --hash=sha256:6a6e67ea2e6feda684ed370f9a1c52e7a243631c025ba42149a2cc5934dec295 \+ --hash=sha256:6a9adfc6d24b10f89588096364cc726174118c62130c817c2837c60cf08a392b \+ --hash=sha256:6bb77b2dcb06b20f9f4b4a8454caa581cd4dd0643a08bacf821216a16d9c8354 \+ --hash=sha256:6e6b2a0c538fc200b38ff9eb6628228b77908c319a005815f2dde585a0664b60 \+ --hash=sha256:71cde9a1e1551df7d34a25462fc60325e8a11a82cc2e2f54578e5e9a1e153d65 \+ --hash=sha256:7371b48c4fa448d20d2714c9a1f775a81155050d383333e0a6c15b1123dda005 \+ --hash=sha256:766cef22385fa1091258ad7e6216792b156dc16d8d3fa607e7545b2b72061f1c \+ --hash=sha256:7b14cc0106cd9aecda615dd6903840a058b4700fcb817687d0ee4fc8b6e389be \+ --hash=sha256:7f84204dee22a783350679a0333981df803dac21a0190d706a50475e361c93f5 \+ --hash=sha256:8023abc91fba39036dbce14a7d6535632f99c0b857807cbbbf21ecc9f4717f06 \+ --hash=sha256:80b2da48193b2f33ed0c32c38140f9d3186583ce7d516526d462645fd98660ae \+ --hash=sha256:8297651f5b5679c19968abefd6bb84d95fe30ef712eb1b2d9b2d31ca61267f4c \+ --hash=sha256:88d387ff40b3ff7c274947ed3125dedf5262ec6919d83946753b5f3d7c67ea4c \+ --hash=sha256:88ddbc66737e277852913bd1e07c150cc7bb124539f94c4e2df5344494e0a612 \+ --hash=sha256:8bd7903a5f2a4545f6fd5935c90058b89d30045568985a71c79f5fd6edf9b91e \+ --hash=sha256:8be29e59487a79f173507c30ddf57e733a357f67881430449bb32614075a40ab \+ --hash=sha256:8c984051042858021a54926eb597d6ee3012393ce9c181814115df4c60b9a808 \+ --hash=sha256:8cbeb542b2ebc6fcdacabf8aca8c1a97c9b3ad3927d46b8723f9d4f033288a0f \+ --hash=sha256:8e9c4f5b3c546fa3458a29ab22646c1c6c787ea8f5ef51300e5a60300736905e \+ --hash=sha256:90e6f81de50ad6b534cab6e5aef77ff6e37722b2f5d908686f4a5c9eba17a909 \+ --hash=sha256:975385f4776fafde056abb318f612ef6285b10a1f12b8570f3647ad0d74b48ec \+ --hash=sha256:9a8a34cc89c67a65ea7437ce257cea81a9dad65b29805f3ecee8c8fe8ff25ffe \+ --hash=sha256:9aba9a17b623ef750a4d11b742cbafffeb48a869821252b30ee21b5e91392c50 \+ --hash=sha256:9f08483a632889536b8139663db60f6724bfcb443c96f1b18855860d7d5c0fd4 \+ --hash=sha256:a4e8f36e677d3336f35089648c8955c51c6d386a13cf6ee9c189c5f5bd713a9f \+ --hash=sha256:a52edc8bfff4429aaabdf4d9ee0daadbbf8562364f940937b941f87a4290f5ff \+ --hash=sha256:a830b1a40919539d07806aa58e1b114df53ddd43213d9c8b75847eee6c0182b5 \+ --hash=sha256:aa88ccfe4e32d362816319ed727a004423aab09c5cea43c01a4b435643fa34eb \+ --hash=sha256:af73337013e0b3b46f175e79492d96845b16126ddf79c438d7ea7ff27783a414 \+ --hash=sha256:b1c1fbd8a5a1af3412a0810d060a78b5136ec0836c8a4ef9aa11807f2a22f4e1 \+ --hash=sha256:b85f66ae9eb53e860a873b858b789217ba505e5e405a24b85c0464822fe88032 \+ --hash=sha256:b86024e52a1b269467a802258c25521e6d742349d760728092e1bc2d135b4d76 \+ --hash=sha256:bd9c0c7a0c681a347b3194c500cb1e6ca9cab053ea4d82a5cf45b6b754560136 \+ --hash=sha256:bfa9c230d2fe991bed5318a5f119bd6780cda2915cca595393649fc118ab895e \+ --hash=sha256:d362d1878f00c142b7e1a16e6e5e780f02be8195123f164edf7eddd911eefe7c \+ --hash=sha256:d5d38f1411c0ed9f97bcb49b7bd59b6b7c314e0e27420e34d99d844b9ce3b6f3 \+ --hash=sha256:dac8d77255a37e81a2efcbd1fc05f1c15ee82200e6c240d7e127e25e365c39ea \+ --hash=sha256:dd025009355c926a84a612fecf58bb315a3f6814b17ead51a8e48d3823d9087f \+ --hash=sha256:deede7c263feb25dba4e82ea23058a235dcc2fe1f6021025dc71f2b618e26104 \+ --hash=sha256:e74473c875d78b8e9d5da2a70f7099549f9eb37ded4e2f6a463e60125bccd176 \+ --hash=sha256:ee3120ae9dff32f121610bb08e4313be87e03efeadfc6c0d18f89127e24d0c24 \+ --hash=sha256:eedf4b74eda2b5a4b2b2fb4c006d6295df3bf29e459e198c90ea48e130dc75c3 \+ --hash=sha256:efd8c21c98c5cc60653bcb311bef2ce0401642b7ce9d09e03a7da87c878289d4 \+ --hash=sha256:f1c943e96e85df3d3478f7b691f229887e143f81fedab9b20205349ab04d73ed \+ --hash=sha256:f278f034eb75b4e8a13a54a876cc4a5ab39173d2cdd93a638e1b467fc545ac43 \+ --hash=sha256:f3f40b3c5a968281fd507d519e444c35f0ff171237f4fdde090dd60699458421 \+ --hash=sha256:f490f9368b6fc026f021db16d7ec2fbf7d89e2edb42e8ec09d2c60505f5729c7 \+ --hash=sha256:fb043ee2f06b41473269765c2feae53fc2e2fbf96e5e22ca94fb5ad677856f06 \+ --hash=sha256:fc3d34d4a8fbec3e88a79b92e5465e0f9b842b628675850d860b8bd300b159f5+ # via rapidocr-onnxruntime+protobuf==7.35.1 \+ --hash=sha256:11d6b0ec246892d85215b0a13ca6e0233cf5284b68f0ac02646427f4ff88a799 \+ --hash=sha256:230a75ddfc2de4806e56696ce9640c1cdfdb6543b7cfce98d42a4c0a0e7bdb87 \+ --hash=sha256:24f857477359a85c0c235261b8ba905fd51b2562f4a64ca1df5473f29850cbf6 \+ --hash=sha256:353652e4efd0bca5b5fc2656abf8307ef351f0cf938c9eba09f0e09c20a25c30 \+ --hash=sha256:4bc97768d8fe4ad6743c8a19403e314511ed9f6d13205b687e52421c023ac1b9 \+ --hash=sha256:74758715c53d7158fb76caf4f0cfdacc5329a4b1bb994f865d6cf302d413a1c4 \+ --hash=sha256:b73f9489a4b8b1c9cb1f8ed951c736392592edb24b9d6819f36d2e10b171d5b4 \+ --hash=sha256:ce115a26fe0c39a2c29973d914d327e516a6455464489fe3cd1e51a1b354f81a+ # via onnxruntime+pyclipper==1.4.0 \+ --hash=sha256:0a4d2736fb3c42e8eb1d38bf27a720d1015526c11e476bded55138a977c17d9d \+ --hash=sha256:0b74a9dd44b22a7fd35d65fb1ceeba57f3817f34a97a28c3255556362e491447 \+ --hash=sha256:0b8c2105b3b3c44dbe1a266f64309407fe30bf372cf39a94dc8aaa97df00da5b \+ --hash=sha256:14c8bdb5a72004b721c4e6f448d2c2262d74a7f0c9e3076aeff41e564a92389f \+ --hash=sha256:1b6c8d75ba20c6433c9ea8f1a0feb7e4d3ac06a09ad1fd6d571afc1ddf89b869 \+ --hash=sha256:222ac96c8b8281b53d695b9c4fedc674f56d6d4320ad23f1bdbd168f4e316140 \+ --hash=sha256:29dae3e0296dff8502eeb7639fcfee794b0eec8590ba3563aee28db269da6b04 \+ --hash=sha256:37bfec361e174110cdddffd5ecd070a8064015c99383d95eb692c253951eee8a \+ --hash=sha256:3ef44b64666ebf1cb521a08a60c3e639d21b8c50bfbe846ba7c52a0415e936f4 \+ --hash=sha256:58e29d7443d7cc0e83ee9daf43927730386629786d00c63b04fe3b53ac01462c \+ --hash=sha256:6a97b961f182b92d899ca88c1bb3632faea2e00ce18d07c5f789666ebb021ca4 \+ --hash=sha256:6c317e182590c88ec0194149995e3d71a979cfef3b246383f4e035f9d4a11826 \+ --hash=sha256:773c0e06b683214dcfc6711be230c83b03cddebe8a57eae053d4603dd63582f9 \+ --hash=sha256:7c87480fc91a5af4c1ba310bdb7de2f089a3eeef5fe351a3cedc37da1fcced1c \+ --hash=sha256:81d8bb2d1fb9d66dc7ea4373b176bb4b02443a7e328b3b603a73faec088b952e \+ --hash=sha256:8d42b07a2f6cfe2d9b87daf345443583f00a14e856927782fde52f3a255e305a \+ --hash=sha256:9882bd889f27da78add4dd6f881d25697efc740bf840274e749988d25496c8e1 \+ --hash=sha256:98b2a40f98e1fc1b29e8a6094072e7e0c7dfe901e573bf6cfc6eb7ce84a7ae87 \+ --hash=sha256:9bc45f2463d997848450dbed91c950ca37c6cf27f84a49a5cad4affc0b469e39 \+ --hash=sha256:a8d2b5fb75ebe57e21ce61e79a9131edec2622ff23cc665e4d1d1f201bc1a801 \+ --hash=sha256:a9f11ad133257c52c40d50de7a0ca3370a0cdd8e3d11eec0604ad3c34ba549e9 \+ --hash=sha256:adcb7ca33c5bdc33cd775e8b3eadad54873c802a6d909067a57348bcb96e7a2d \+ --hash=sha256:b3b3630051b53ad2564cb079e088b112dd576e3d91038338ad1cc7915e0f14dc \+ --hash=sha256:bafad70d2679c187120e8c44e1f9a8b06150bad8c0aecf612ad7dfbfa9510f73 \+ --hash=sha256:bbc827b77442c99deaeee26e0e7f172355ddb097a5e126aea206d447d3b26286 \+ --hash=sha256:c9a3faa416ff536cee93417a72bfb690d9dea136dc39a39dbbe1e5dadf108c9c \+ --hash=sha256:ce1f83c9a4e10ea3de1959f0ae79e9a5bd41346dff648fee6228ba9eaf8b3872 \+ --hash=sha256:d1e5498d883b706a4ce636247f0d830c6eb34a25b843a1b78e2c969754ca9037 \+ --hash=sha256:d1f807e2b4760a8e5c6d6b4e8c1d71ef52b7fe1946ff088f4fa41e16a881a5ca \+ --hash=sha256:d49df13cbb2627ccb13a1046f3ea6ebf7177b5504ec61bdef87d6a704046fd6e \+ --hash=sha256:d4b2d7c41086f1927d14947c563dfc7beed2f6c0d9af13c42fe3dcdc20d35832 \+ --hash=sha256:e9b973467d9c5fa9bc30bb6ac95f9f4d7c3d9fc25f6cf2d1cc972088e5955c01 \+ --hash=sha256:f160a2c6ba036f7eaf09f1f10f4fbfa734234af9112fb5187877efed78df9303 \+ --hash=sha256:f2a50c22c3a78cb4e48347ecf06930f61ce98cf9252f2e292aa025471e9d75b1 \+ --hash=sha256:f3672dbafbb458f1b96e1ee3e610d174acb5ace5bd2ed5d1252603bb797f2fc6 \+ --hash=sha256:fd24849d2b94ec749ceac7c34c9f01010d23b6e9d9216cf2238b8481160e703d+ # via rapidocr-onnxruntime+pypdfium2==5.10.1 \+ --hash=sha256:09fda0609dc4749c9865a0315c447d6f2583a580693bcabd69980d3fbb22ad51 \+ --hash=sha256:0de53d2710ca9509fc2812340acc57c3f043697609068592d87de654f8cabf44 \+ --hash=sha256:10a26ce04795f8ec079e81c707fcb5737061e8a78025babc3d6e36642e9c903a \+ --hash=sha256:139a6387a3a2652f288e53164268bb03af4fa221d78484ee18407053a60082a3 \+ --hash=sha256:13abf7a9f5e0ddebc8bbcccea5f13ae5abe8a298ea219e125b0fc24c1d2171b4 \+ --hash=sha256:172ff3e10358d66456e27fb0b8b5098e28ec24e51072eb4b5b86077d550e21bb \+ --hash=sha256:3ba127750bc3f4161461538d532d74491cd976f584f1753a6cee9cb821338ec1 \+ --hash=sha256:58da5b51fb7884c7d21a05062ab13edb011d1a08dfd9694f3d5d685df62796b9 \+ --hash=sha256:610e14c37d2090b826dccc0604fc7e7612c0ce591190780ae228abdb9abb971e \+ --hash=sha256:6b01adcfe9aaf7a635a59bed5687fd4fd7b0da292664f050d4ebd2bfa5c70584 \+ --hash=sha256:80f30517ee089dfbbc6e9de6da365b6e8c0ce8f80c40b7d4025a3b1d3bbd8a70 \+ --hash=sha256:8702bb4f01ddfc8e7757b41b4c2c8392ac17c9f0234476e1e69672ea7c6d6aa0 \+ --hash=sha256:8947fa3cd808da33960bdf8ff9e5247aa94ccd94f0b09bb3402e99498d83bcc9 \+ --hash=sha256:a0dc52b56631e2f7edcdb22bae3b155aa840bec32c5bd05781e90baaecee88e7 \+ --hash=sha256:ad5f5de15febb788c6eb3853e58aceda9cd8c5187c92472abaeecf9558deb0cf \+ --hash=sha256:be6d2a8d1bcfd777188e7aa55a25c83f34d54e8350ad8810fb32017787d9b0d9 \+ --hash=sha256:cf4d2527f79f31c550490cc74c9f32e19385a944630a3ef4cd4d9b6f961fbf77 \+ --hash=sha256:d04f2050b6b32bb18624688b600543342a4ab3aacf64bf66521a5af72bbc7de1 \+ --hash=sha256:e3301c2f7a66fb8cb57dba857d0c9e90215e178f6602a87c5a306cd98513dab8 \+ --hash=sha256:ebb9e63f92d15fc41b359fe7a187233dfae37548800e1fa09cb2fc466ac89951 \+ --hash=sha256:f257d2011eb43c846b7e9f5a802e28646b29732763e4a35dd6ca76f9be580538 \+ --hash=sha256:f2803020952afa57e1e148adc19369b835154e1fa251a1ca85008ab6466a710f+ # via -r requirements-ocr.in+pyyaml==6.0.3 \+ --hash=sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c \+ --hash=sha256:0150219816b6a1fa26fb4699fb7daa9caf09eb1999f3b70fb6e786805e80375a \+ --hash=sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3 \+ --hash=sha256:02ea2dfa234451bbb8772601d7b8e426c2bfa197136796224e50e35a78777956 \+ --hash=sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6 \+ --hash=sha256:10892704fc220243f5305762e276552a0395f7beb4dbf9b14ec8fd43b57f126c \+ --hash=sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65 \+ --hash=sha256:1d37d57ad971609cf3c53ba6a7e365e40660e3be0e5175fa9f2365a379d6095a \+ --hash=sha256:1ebe39cb5fc479422b83de611d14e2c0d3bb2a18bbcb01f229ab3cfbd8fee7a0 \+ --hash=sha256:214ed4befebe12df36bcc8bc2b64b396ca31be9304b8f59e25c11cf94a4c033b \+ --hash=sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1 \+ --hash=sha256:22ba7cfcad58ef3ecddc7ed1db3409af68d023b7f940da23c6c2a1890976eda6 \+ --hash=sha256:27c0abcb4a5dac13684a37f76e701e054692a9b2d3064b70f5e4eb54810553d7 \+ --hash=sha256:28c8d926f98f432f88adc23edf2e6d4921ac26fb084b028c733d01868d19007e \+ --hash=sha256:2e71d11abed7344e42a8849600193d15b6def118602c4c176f748e4583246007 \+ --hash=sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310 \+ --hash=sha256:37503bfbfc9d2c40b344d06b2199cf0e96e97957ab1c1b546fd4f87e53e5d3e4 \+ --hash=sha256:3c5677e12444c15717b902a5798264fa7909e41153cdf9ef7ad571b704a63dd9 \+ --hash=sha256:3ff07ec89bae51176c0549bc4c63aa6202991da2d9a6129d7aef7f1407d3f295 \+ --hash=sha256:41715c910c881bc081f1e8872880d3c650acf13dfa8214bad49ed4cede7c34ea \+ --hash=sha256:418cf3f2111bc80e0933b2cd8cd04f286338bb88bdc7bc8e6dd775ebde60b5e0 \+ --hash=sha256:44edc647873928551a01e7a563d7452ccdebee747728c1080d881d68af7b997e \+ --hash=sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac \+ --hash=sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9 \+ --hash=sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7 \+ --hash=sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35 \+ --hash=sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb \+ --hash=sha256:5cf4e27da7e3fbed4d6c3d8e797387aaad68102272f8f9752883bc32d61cb87b \+ --hash=sha256:5e0b74767e5f8c593e8c9b5912019159ed0533c70051e9cce3e8b6aa699fcd69 \+ --hash=sha256:5ed875a24292240029e4483f9d4a4b8a1ae08843b9c54f43fcc11e404532a8a5 \+ --hash=sha256:5fcd34e47f6e0b794d17de1b4ff496c00986e1c83f7ab2fb8fcfe9616ff7477b \+ --hash=sha256:5fdec68f91a0c6739b380c83b951e2c72ac0197ace422360e6d5a959d8d97b2c \+ --hash=sha256:6344df0d5755a2c9a276d4473ae6b90647e216ab4757f8426893b5dd2ac3f369 \+ --hash=sha256:64386e5e707d03a7e172c0701abfb7e10f0fb753ee1d773128192742712a98fd \+ --hash=sha256:652cb6edd41e718550aad172851962662ff2681490a8a711af6a4d288dd96824 \+ --hash=sha256:66291b10affd76d76f54fad28e22e51719ef9ba22b29e1d7d03d6777a9174198 \+ --hash=sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065 \+ --hash=sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c \+ --hash=sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c \+ --hash=sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764 \+ --hash=sha256:7f047e29dcae44602496db43be01ad42fc6f1cc0d8cd6c83d342306c32270196 \+ --hash=sha256:8098f252adfa6c80ab48096053f512f2321f0b998f98150cea9bd23d83e1467b \+ --hash=sha256:850774a7879607d3a6f50d36d04f00ee69e7fc816450e5f7e58d7f17f1ae5c00 \+ --hash=sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac \+ --hash=sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8 \+ --hash=sha256:8dc52c23056b9ddd46818a57b78404882310fb473d63f17b07d5c40421e47f8e \+ --hash=sha256:9149cad251584d5fb4981be1ecde53a1ca46c891a79788c0df828d2f166bda28 \+ --hash=sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3 \+ --hash=sha256:96b533f0e99f6579b3d4d4995707cf36df9100d67e0c8303a0c55b27b5f99bc5 \+ --hash=sha256:9c57bb8c96f6d1808c030b1687b9b5fb476abaa47f0db9c0101f5e9f394e97f4 \+ --hash=sha256:9c7708761fccb9397fe64bbc0395abcae8c4bf7b0eac081e12b809bf47700d0b \+ --hash=sha256:9f3bfb4965eb874431221a3ff3fdcddc7e74e3b07799e0e84ca4a0f867d449bf \+ --hash=sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5 \+ --hash=sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702 \+ --hash=sha256:b30236e45cf30d2b8e7b3e85881719e98507abed1011bf463a8fa23e9c3e98a8 \+ --hash=sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788 \+ --hash=sha256:b865addae83924361678b652338317d1bd7e79b1f4596f96b96c77a5a34b34da \+ --hash=sha256:b8bb0864c5a28024fac8a632c443c87c5aa6f215c0b126c449ae1a150412f31d \+ --hash=sha256:ba1cc08a7ccde2d2ec775841541641e4548226580ab850948cbfda66a1befcdc \+ --hash=sha256:bdb2c67c6c1390b63c6ff89f210c8fd09d9a1217a465701eac7316313c915e4c \+ --hash=sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba \+ --hash=sha256:c2514fceb77bc5e7a2f7adfaa1feb2fb311607c9cb518dbc378688ec73d8292f \+ --hash=sha256:c3355370a2c156cffb25e876646f149d5d68f5e0a3ce86a5084dd0b64a994917 \+ --hash=sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5 \+ --hash=sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26 \+ --hash=sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f \+ --hash=sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b \+ --hash=sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be \+ --hash=sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c \+ --hash=sha256:efd7b85f94a6f21e4932043973a7ba2613b059c4a000551892ac9f1d11f5baf3 \+ --hash=sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6 \+ --hash=sha256:fa160448684b4e94d80416c0fa4aac48967a969efe22931448d853ada8baf926 \+ --hash=sha256:fc09d0aa354569bc501d4e787133afc08552722d3ab34836a80547331bb5d4a0+ # via rapidocr-onnxruntime+rapidocr-onnxruntime==1.4.4 \+ --hash=sha256:971d7d5f223a7a808662229df1ef69893809d8457d834e6373d3854bc1782cbf+ # via -r requirements-ocr.in+shapely==2.1.2 \+ --hash=sha256:0036ac886e0923417932c2e6369b6c52e38e0ff5d9120b90eef5cd9a5fc5cae9 \+ --hash=sha256:01d0d304b25634d60bd7cf291828119ab55a3bab87dc4af1e44b07fb225f188b \+ --hash=sha256:0bd308103340030feef6c111d3eb98d50dc13feea33affc8a6f9fa549e9458a3 \+ --hash=sha256:136ab87b17e733e22f0961504d05e77e7be8c9b5a8184f685b4a91a84efe3c26 \+ --hash=sha256:16a9c722ba774cf50b5d4541242b4cce05aafd44a015290c82ba8a16931ff63d \+ --hash=sha256:16c5d0fc45d3aa0a69074979f4f1928ca2734fb2e0dde8af9611e134e46774e7 \+ --hash=sha256:19efa3611eef966e776183e338b2d7ea43569ae99ab34f8d17c2c054d3205cc0 \+ --hash=sha256:1d0bfb4b8f661b3b4ec3565fa36c340bfb1cda82087199711f86a88647d26b2f \+ --hash=sha256:1e7d4d7ad262a48bb44277ca12c7c78cb1b0f56b32c10734ec9a1d30c0b0c54b \+ --hash=sha256:1f2f33f486777456586948e333a56ae21f35ae273be99255a191f5c1fa302eb4 \+ --hash=sha256:1ff629e00818033b8d71139565527ced7d776c269a49bd78c9df84e8f852190c \+ --hash=sha256:21952dc00df38a2c28375659b07a3979d22641aeb104751e769c3ee825aadecf \+ --hash=sha256:2d93d23bdd2ed9dc157b46bc2f19b7da143ca8714464249bef6771c679d5ff40 \+ --hash=sha256:2ed4ecb28320a433db18a5bf029986aa8afcfd740745e78847e330d5d94922a9 \+ --hash=sha256:2fa78b49485391224755a856ed3b3bd91c8455f6121fee0db0e71cefb07d0ef6 \+ --hash=sha256:346ec0c1a0fcd32f57f00e4134d1200e14bf3f5ae12af87ba83ca275c502498c \+ --hash=sha256:361b6d45030b4ac64ddd0a26046906c8202eb60d0f9f53085f5179f1d23021a0 \+ --hash=sha256:40d784101f5d06a1fd30b55fc11ea58a61be23f930d934d86f19a180909908a4 \+ --hash=sha256:4a44bc62a10d84c11a7a3d7c1c4fe857f7477c3506e24c9062da0db0ae0c449c \+ --hash=sha256:5860eb9f00a1d49ebb14e881f5caf6c2cf472c7fd38bd7f253bbd34f934eb076 \+ --hash=sha256:5ebe3f84c6112ad3d4632b1fd2290665aa75d4cef5f6c5d77c4c95b324527c6a \+ --hash=sha256:61edcd8d0d17dd99075d320a1dd39c0cb9616f7572f10ef91b4b5b00c4aeb566 \+ --hash=sha256:6305993a35989391bd3476ee538a5c9a845861462327efe00dd11a5c8c709a99 \+ --hash=sha256:6ddc759f72b5b2b0f54a7e7cde44acef680a55019eb52ac63a7af2cf17cb9cd2 \+ --hash=sha256:743044b4cfb34f9a67205cee9279feaf60ba7d02e69febc2afc609047cb49179 \+ --hash=sha256:7ae48c236c0324b4e139bea88a306a04ca630f49be66741b340729d380d8f52f \+ --hash=sha256:7ed1a5bbfb386ee8332713bf7508bc24e32d24b74fc9a7b9f8529a55db9f4ee6 \+ --hash=sha256:8cff473e81017594d20ec55d86b54bc635544897e13a7cfc12e36909c5309a2a \+ --hash=sha256:8d8382dd120d64b03698b7298b89611a6ea6f55ada9d39942838b79c9bc89801 \+ --hash=sha256:9111274b88e4d7b54a95218e243282709b330ef52b7b86bc6aaf4f805306f454 \+ --hash=sha256:91121757b0a36c9aac3427a651a7e6567110a4a67c97edf04f8d55d4765f6618 \+ --hash=sha256:980c777c612514c0cf99bc8a9de6d286f5e186dcaf9091252fcd444e5638193d \+ --hash=sha256:9a522f460d28e2bf4e12396240a5fc1518788b2fcd73535166d748399ef0c223 \+ --hash=sha256:9c3a3c648aedc9f99c09263b39f2d8252f199cb3ac154fadc173283d7d111350 \+ --hash=sha256:a1fd0ea855b2cf7c9cddaf25543e914dd75af9de08785f20ca3085f2c9ca60b0 \+ --hash=sha256:a444e7afccdb0999e203b976adb37ea633725333e5b119ad40b1ca291ecf311c \+ --hash=sha256:a84e0582858d841d54355246ddfcbd1fce3179f185da7470f41ce39d001ee1af \+ --hash=sha256:b510dda1a3672d6879beb319bc7c5fd302c6c354584690973c838f46ec3e0fa8 \+ --hash=sha256:b54df60f1fbdecc8ebc2c5b11870461a6417b3d617f555e5033f1505d36e5735 \+ --hash=sha256:b705c99c76695702656327b819c9660768ec33f5ce01fa32b2af62b56ba400a1 \+ --hash=sha256:ba4d1333cc0bc94381d6d4308d2e4e008e0bd128bdcff5573199742ee3634359 \+ --hash=sha256:c64d5c97b2f47e3cd9b712eaced3b061f2b71234b3fc263e0fcf7d889c6559dc \+ --hash=sha256:c8876673449f3401f278c86eb33224c5764582f72b653a415d0e6672fde887bf \+ --hash=sha256:ca2591bff6645c216695bdf1614fca9c82ea1144d4a7591a466fef64f28f0715 \+ --hash=sha256:cc4f7397459b12c0b196c9efe1f9d7e92463cbba142632b4cc6d8bbbbd3e2b09 \+ --hash=sha256:cf831a13e0d5a7eb519e96f58ec26e049b1fad411fc6fc23b162a7ce04d9cffc \+ --hash=sha256:dc3487447a43d42adcdf52d7ac73804f2312cbfa5d433a7d2c506dcab0033dfd \+ --hash=sha256:df90e2db118c3671a0754f38e36802db75fe0920d211a27481daf50a711fdf26 \+ --hash=sha256:e38a190442aacc67ff9f75ce60aec04893041f16f97d242209106d502486a142 \+ --hash=sha256:e9eddfe513096a71896441a7c37db72da0687b34752c4e193577a145c71736fc \+ --hash=sha256:eba6710407f1daa8e7602c347dfc94adc02205ec27ed956346190d66579eb9ea \+ --hash=sha256:ef4a456cc8b7b3d50ccec29642aa4aeda959e9da2fe9540a92754770d5f0cf1f \+ --hash=sha256:f67b34271dedc3c653eba4e3d7111aa421d5be9b4c4c7d38d30907f796cb30df \+ --hash=sha256:f6f6cd5819c50d9bcf921882784586aab34a4bd53e7553e175dece6db513a6f0 \+ --hash=sha256:fe2533caae6a91a543dec62e8360fe86ffcdc42a7c55f9dfd0128a977a896b94 \+ --hash=sha256:fe7b77dc63d707c09726b7908f575fc04ff1d1ad0f3fb92aec212396bc6cfe5e \+ --hash=sha256:fe9627c39c59e553c90f5bc3128252cb85dc3b3be8189710666d2f8bc3a5503e+ # via rapidocr-onnxruntime+six==1.17.0 \+ --hash=sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274 \+ --hash=sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81+ # via rapidocr-onnxruntime+tqdm==4.68.3 \+ --hash=sha256:00dfa48452b6b6cfae3dd9885636c23d3422d1ec97c66d96818cbd5e0821d482 \+ --hash=sha256:39832cc2def2789a6f29df83f172db7416cea70052c0907a57801c5f2fdccb03+ # via rapidocr-onnxruntimediff --git a/app/src-tauri/resources/sidecar/requirements.lock b/app/src-tauri/resources/sidecar/requirements.locknew file mode 100644index 0000000..c60e688--- /dev/null+++ b/app/src-tauri/resources/sidecar/requirements.lock@@ -0,0 +1,1125 @@+# This file was autogenerated by uv via the following command:+# uv pip compile requirements.txt --generate-hashes --python-version 3.12 -o requirements.lock+annotated-types==0.7.0 \+ --hash=sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53 \+ --hash=sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89+ # via pydantic+anyio==4.14.0 \+ --hash=sha256:b47c1f9ccf73e67021df785332508f99379c68fa7d0684e8e3492cb1d4b23f89 \+ --hash=sha256:dd9b7a2a9799ed6552fde617b2c5df02b7fdd7d88392fc48101e51bae46164d9+ # via+ # httpx+ # openai+beautifulsoup4==4.15.0 \+ --hash=sha256:288e3ca7d54b06f2ac191970bc275c1939cb46d450b255bf6718b04aa37ab4f7 \+ --hash=sha256:d6f88de62e1d4e38ecb1077eb9724cd0eff29d2a08ca16a401e9b9e93f117cf9+ # via+ # markdownify+ # markitdown+certifi==2026.6.17 \+ --hash=sha256:024c88eeec92ca068db80f02b8b07c9cef7b9fe261d1d535abfd5abd6f6af432 \+ --hash=sha256:2227dcbaafe0d2f59279d1762ddddc37783ed4354594f194ffc31d20f41fc3db+ # via+ # httpcore+ # httpx+ # requests+cffi==2.0.0 \+ --hash=sha256:00bdf7acc5f795150faa6957054fbbca2439db2f775ce831222b66f192f03beb \+ --hash=sha256:07b271772c100085dd28b74fa0cd81c8fb1a3ba18b21e03d7c27f3436a10606b \+ --hash=sha256:087067fa8953339c723661eda6b54bc98c5625757ea62e95eb4898ad5e776e9f \+ --hash=sha256:0a1527a803f0a659de1af2e1fd700213caba79377e27e4693648c2923da066f9 \+ --hash=sha256:0cf2d91ecc3fcc0625c2c530fe004f82c110405f101548512cce44322fa8ac44 \+ --hash=sha256:0f6084a0ea23d05d20c3edcda20c3d006f9b6f3fefeac38f59262e10cef47ee2 \+ --hash=sha256:12873ca6cb9b0f0d3a0da705d6086fe911591737a59f28b7936bdfed27c0d47c \+ --hash=sha256:19f705ada2530c1167abacb171925dd886168931e0a7b78f5bffcae5c6b5be75 \+ --hash=sha256:1cd13c99ce269b3ed80b417dcd591415d3372bcac067009b6e0f59c7d4015e65 \+ --hash=sha256:1e3a615586f05fc4065a8b22b8152f0c1b00cdbc60596d187c2a74f9e3036e4e \+ --hash=sha256:1f72fb8906754ac8a2cc3f9f5aaa298070652a0ffae577e0ea9bd480dc3c931a \+ --hash=sha256:1fc9ea04857caf665289b7a75923f2c6ed559b8298a1b8c49e59f7dd95c8481e \+ --hash=sha256:203a48d1fb583fc7d78a4c6655692963b860a417c0528492a6bc21f1aaefab25 \+ --hash=sha256:2081580ebb843f759b9f617314a24ed5738c51d2aee65d31e02f6f7a2b97707a \+ --hash=sha256:21d1152871b019407d8ac3985f6775c079416c282e431a4da6afe7aefd2bccbe \+ --hash=sha256:24b6f81f1983e6df8db3adc38562c83f7d4a0c36162885ec7f7b77c7dcbec97b \+ --hash=sha256:256f80b80ca3853f90c21b23ee78cd008713787b1b1e93eae9f3d6a7134abd91 \+ --hash=sha256:28a3a209b96630bca57cce802da70c266eb08c6e97e5afd61a75611ee6c64592 \+ --hash=sha256:2c8f814d84194c9ea681642fd164267891702542f028a15fc97d4674b6206187 \+ --hash=sha256:2de9a304e27f7596cd03d16f1b7c72219bd944e99cc52b84d0145aefb07cbd3c \+ --hash=sha256:38100abb9d1b1435bc4cc340bb4489635dc2f0da7456590877030c9b3d40b0c1 \+ --hash=sha256:3925dd22fa2b7699ed2617149842d2e6adde22b262fcbfada50e3d195e4b3a94 \+ --hash=sha256:3e17ed538242334bf70832644a32a7aae3d83b57567f9fd60a26257e992b79ba \+ --hash=sha256:3e837e369566884707ddaf85fc1744b47575005c0a229de3327f8f9a20f4efeb \+ --hash=sha256:3f4d46d8b35698056ec29bca21546e1551a205058ae1a181d871e278b0b28165 \+ --hash=sha256:44d1b5909021139fe36001ae048dbdde8214afa20200eda0f64c068cac5d5529 \+ --hash=sha256:45d5e886156860dc35862657e1494b9bae8dfa63bf56796f2fb56e1679fc0bca \+ --hash=sha256:4647afc2f90d1ddd33441e5b0e85b16b12ddec4fca55f0d9671fef036ecca27c \+ --hash=sha256:4671d9dd5ec934cb9a73e7ee9676f9362aba54f7f34910956b84d727b0d73fb6 \+ --hash=sha256:53f77cbe57044e88bbd5ed26ac1d0514d2acf0591dd6bb02a3ae37f76811b80c \+ --hash=sha256:5eda85d6d1879e692d546a078b44251cdd08dd1cfb98dfb77b670c97cee49ea0 \+ --hash=sha256:5fed36fccc0612a53f1d4d9a816b50a36702c28a2aa880cb8a122b3466638743 \+ --hash=sha256:61d028e90346df14fedc3d1e5441df818d095f3b87d286825dfcbd6459b7ef63 \+ --hash=sha256:66f011380d0e49ed280c789fbd08ff0d40968ee7b665575489afa95c98196ab5 \+ --hash=sha256:6824f87845e3396029f3820c206e459ccc91760e8fa24422f8b0c3d1731cbec5 \+ --hash=sha256:6c6c373cfc5c83a975506110d17457138c8c63016b563cc9ed6e056a82f13ce4 \+ --hash=sha256:6d02d6655b0e54f54c4ef0b94eb6be0607b70853c45ce98bd278dc7de718be5d \+ --hash=sha256:6d50360be4546678fc1b79ffe7a66265e28667840010348dd69a314145807a1b \+ --hash=sha256:730cacb21e1bdff3ce90babf007d0a0917cc3e6492f336c2f0134101e0944f93 \+ --hash=sha256:737fe7d37e1a1bffe70bd5754ea763a62a066dc5913ca57e957824b72a85e205 \+ --hash=sha256:74a03b9698e198d47562765773b4a8309919089150a0bb17d829ad7b44b60d27 \+ --hash=sha256:7553fb2090d71822f02c629afe6042c299edf91ba1bf94951165613553984512 \+ --hash=sha256:7a66c7204d8869299919db4d5069a82f1561581af12b11b3c9f48c584eb8743d \+ --hash=sha256:7cc09976e8b56f8cebd752f7113ad07752461f48a58cbba644139015ac24954c \+ --hash=sha256:81afed14892743bbe14dacb9e36d9e0e504cd204e0b165062c488942b9718037 \+ --hash=sha256:8941aaadaf67246224cee8c3803777eed332a19d909b47e29c9842ef1e79ac26 \+ --hash=sha256:89472c9762729b5ae1ad974b777416bfda4ac5642423fa93bd57a09204712322 \+ --hash=sha256:8ea985900c5c95ce9db1745f7933eeef5d314f0565b27625d9a10ec9881e1bfb \+ --hash=sha256:8eca2a813c1cb7ad4fb74d368c2ffbbb4789d377ee5bb8df98373c2cc0dee76c \+ --hash=sha256:92b68146a71df78564e4ef48af17551a5ddd142e5190cdf2c5624d0c3ff5b2e8 \+ --hash=sha256:9332088d75dc3241c702d852d4671613136d90fa6881da7d770a483fd05248b4 \+ --hash=sha256:94698a9c5f91f9d138526b48fe26a199609544591f859c870d477351dc7b2414 \+ --hash=sha256:9a67fc9e8eb39039280526379fb3a70023d77caec1852002b4da7e8b270c4dd9 \+ --hash=sha256:9de40a7b0323d889cf8d23d1ef214f565ab154443c42737dfe52ff82cf857664 \+ --hash=sha256:a05d0c237b3349096d3981b727493e22147f934b20f6f125a3eba8f994bec4a9 \+ --hash=sha256:afb8db5439b81cf9c9d0c80404b60c3cc9c3add93e114dcae767f1477cb53775 \+ --hash=sha256:b18a3ed7d5b3bd8d9ef7a8cb226502c6bf8308df1525e1cc676c3680e7176739 \+ --hash=sha256:b1e74d11748e7e98e2f426ab176d4ed720a64412b6a15054378afdb71e0f37dc \+ --hash=sha256:b21e08af67b8a103c71a250401c78d5e0893beff75e28c53c98f4de42f774062 \+ --hash=sha256:b4c854ef3adc177950a8dfc81a86f5115d2abd545751a304c5bcf2c2c7283cfe \+ --hash=sha256:b882b3df248017dba09d6b16defe9b5c407fe32fc7c65a9c69798e6175601be9 \+ --hash=sha256:baf5215e0ab74c16e2dd324e8ec067ef59e41125d3eade2b863d294fd5035c92 \+ --hash=sha256:c649e3a33450ec82378822b3dad03cc228b8f5963c0c12fc3b1e0ab940f768a5 \+ --hash=sha256:c654de545946e0db659b3400168c9ad31b5d29593291482c43e3564effbcee13 \+ --hash=sha256:c6638687455baf640e37344fe26d37c404db8b80d037c3d29f58fe8d1c3b194d \+ --hash=sha256:c8d3b5532fc71b7a77c09192b4a5a200ea992702734a2e9279a37f2478236f26 \+ --hash=sha256:cb527a79772e5ef98fb1d700678fe031e353e765d1ca2d409c92263c6d43e09f \+ --hash=sha256:cf364028c016c03078a23b503f02058f1814320a56ad535686f90565636a9495 \+ --hash=sha256:d48a880098c96020b02d5a1f7d9251308510ce8858940e6fa99ece33f610838b \+ --hash=sha256:d68b6cef7827e8641e8ef16f4494edda8b36104d79773a334beaa1e3521430f6 \+ --hash=sha256:d9b29c1f0ae438d5ee9acb31cadee00a58c46cc9c0b2f9038c6b0b3470877a8c \+ --hash=sha256:d9b97165e8aed9272a6bb17c01e3cc5871a594a446ebedc996e2397a1c1ea8ef \+ --hash=sha256:da68248800ad6320861f129cd9c1bf96ca849a2771a59e0344e88681905916f5 \+ --hash=sha256:da902562c3e9c550df360bfa53c035b2f241fed6d9aef119048073680ace4a18 \+ --hash=sha256:dbd5c7a25a7cb98f5ca55d258b103a2054f859a46ae11aaf23134f9cc0d356ad \+ --hash=sha256:dd4f05f54a52fb558f1ba9f528228066954fee3ebe629fc1660d874d040ae5a3 \+ --hash=sha256:de8dad4425a6ca6e4e5e297b27b5c824ecc7581910bf9aee86cb6835e6812aa7 \+ --hash=sha256:e11e82b744887154b182fd3e7e8512418446501191994dbf9c9fc1f32cc8efd5 \+ --hash=sha256:e6e73b9e02893c764e7e8d5bb5ce277f1a009cd5243f8228f75f842bf937c534 \+ --hash=sha256:f73b96c41e3b2adedc34a7356e64c8eb96e03a3782b535e043a986276ce12a49 \+ --hash=sha256:f93fd8e5c8c0a4aa1f424d6173f14a892044054871c771f8566e4008eaa359d2 \+ --hash=sha256:fc33c5141b55ed366cfaad382df24fe7dcbc686de5be719b207bb248e3053dc5 \+ --hash=sha256:fc7de24befaeae77ba923797c7c87834c73648a05a4bde34b3b7e5588973a453 \+ --hash=sha256:fe562eb1a64e67dd297ccc4f5addea2501664954f2692b69a76449ec7913ecbf+ # via cryptography+charset-normalizer==3.4.7 \+ --hash=sha256:007d05ec7321d12a40227aae9e2bc6dca73f3cb21058999a1df9e193555a9dcc \+ --hash=sha256:03853ed82eeebbce3c2abfdbc98c96dc205f32a79627688ac9a27370ea61a49c \+ --hash=sha256:07d9e39b01743c3717745f4c530a6349eadbfa043c7577eef86c502c15df2c67 \+ --hash=sha256:08e721811161356f97b4059a9ba7bafb23ea5ee2255402c42881c214e173c6b4 \+ --hash=sha256:0c96c3b819b5c3e9e165495db84d41914d6894d55181d2d108cc1a69bfc9cce0 \+ --hash=sha256:0ea948db76d31190bf08bd371623927ee1339d5f2a0b4b1b4a4439a65298703c \+ --hash=sha256:0f7eb884681e3938906ed0434f20c63046eacd0111c4ba96f27b76084cd679f5 \+ --hash=sha256:12a6fff75f6bc66711b73a2f0addfc4c8c15a20e805146a02d147a318962c444 \+ --hash=sha256:12d8baf840cc7889b37c7c770f478adea7adce3dcb3944d02ec87508e2dcf153 \+ --hash=sha256:14265bfe1f09498b9d8ec91e9ec9fa52775edf90fcbde092b25f4a33d444fea9 \+ --hash=sha256:16d971e29578a5e97d7117866d15889a4a07befe0e87e703ed63cd90cb348c01 \+ --hash=sha256:177a0ba5f0211d488e295aaf82707237e331c24788d8d76c96c5a41594723217 \+ --hash=sha256:1a87ca9d5df6fe460483d9a5bbf2b18f620cbed41b432e2bddb686228282d10b \+ --hash=sha256:1c2a768fdd44ee4a9339a9b0b130049139b8ce3c01d2ce09f67f5a68048d477c \+ --hash=sha256:1c2aed2e5e41f24ea8ef1590b8e848a79b56f3a5564a65ceec43c9d692dc7d8a \+ --hash=sha256:1dc8b0ea451d6e69735094606991f32867807881400f808a106ee1d963c46a83 \+ --hash=sha256:1efde3cae86c8c273f1eb3b287be7d8499420cf2fe7585c41d370d3e790054a5 \+ --hash=sha256:202389074300232baeb53ae2569a60901f7efadd4245cf3a3bf0617d60b439d7 \+ --hash=sha256:203104ed3e428044fd943bc4bf45fa73c0730391f9621e37fe39ecf477b128cb \+ --hash=sha256:2257141f39fe65a3fdf38aeccae4b953e5f3b3324f4ff0daf9f15b8518666a2c \+ --hash=sha256:298930cec56029e05497a76988377cbd7457ba864beeea92ad7e844fe74cd1f1 \+ --hash=sha256:2cd4a60d0e2fb04537162c62bbbb4182f53541fe0ede35cdf270a1c1e723cc42 \+ --hash=sha256:2d6eb928e13016cea4f1f21d1e10c1cebd5a421bc57ddf5b1142ae3f86824fab \+ --hash=sha256:2fe249cb4651fd12605b7288b24751d8bfd46d35f12a20b1ba33dea122e690df \+ --hash=sha256:30b8d1d8c52a48c2c5690e152c169b673487a2a58de1ec7393196753063fcd5e \+ --hash=sha256:320ade88cfb846b8cd6b4ddf5ee9e80ee0c1f52401f2456b84ae1ae6a1a5f207 \+ --hash=sha256:3534e7dcbdcf757da6b85a0bbf5b6868786d5982dd959b065e65481644817a18 \+ --hash=sha256:36836d6ff945a00b88ba1e4572d721e60b5b8c98c155d465f56ad19d68f23734 \+ --hash=sha256:38c0109396c4cfc574d502df99742a45c72c08eff0a36158b6f04000043dbf38 \+ --hash=sha256:3946fa46a0cf3e4c8cb1cc52f56bb536310d34f25f01ca9b6c16afa767dab110 \+ --hash=sha256:3bec022aec2c514d9cf199522a802bd007cd588ab17ab2525f20f9c34d067c18 \+ --hash=sha256:3c9a494bc5ec77d43cea229c4f6db1e4d8fe7e1bbffa8b6f0f0032430ff8ab44 \+ --hash=sha256:3dce51d0f5e7951f8bb4900c257dad282f49190fdbebecd4ba99bcc41fef404d \+ --hash=sha256:3dedcc22d73ec993f42055eff4fcfed9318d1eeb9a6606c55892a26964964e48 \+ --hash=sha256:4042d5c8f957e15221d423ba781e85d553722fc4113f523f2feb7b188cc34c5e \+ --hash=sha256:481551899c856c704d58119b5025793fa6730adda3571971af568f66d2424bb5 \+ --hash=sha256:4dc1e73c36828f982bfe79fadf5919923f8a6f4df2860804db9a98c48824ce8d \+ --hash=sha256:4e5163c14bffd570ef2affbfdd77bba66383890797df43dc8b4cc7d6f500bf53 \+ --hash=sha256:511ef87c8aec0783e08ac18565a16d435372bc1ac25a91e6ac7f5ef2b0bff790 \+ --hash=sha256:532bc9bf33a68613fd7d65e4b1c71a6a38d7d42604ecf239c77392e9b4e8998c \+ --hash=sha256:54523e136b8948060c0fa0bc7b1b50c32c186f2fceee897a495406bb6e311d2b \+ --hash=sha256:5649fd1c7bade02f320a462fdefd0b4bd3ce036065836d4f42e0de958038e116 \+ --hash=sha256:56be790f86bfb2c98fb742ce566dfb4816e5a83384616ab59c49e0604d49c51d \+ --hash=sha256:5b77459df20e08151cd6f8b9ef8ef1f961ef73d85c21a555c7eed5b79410ec10 \+ --hash=sha256:5ed6ab538499c8644b8a3e18debabcd7ce684f3fa91cf867521a7a0279cab2d6 \+ --hash=sha256:6178f72c5508bfc5fd446a5905e698c6212932f25bcdd4b47a757a50605a90e2 \+ --hash=sha256:6370e8686f662e6a3941ee48ed4742317cafbe5707e36406e9df792cdb535776 \+ --hash=sha256:64f02c6841d7d83f832cd97ccf8eb8a906d06eb95d5276069175c696b024b60a \+ --hash=sha256:65bcd23054beab4d166035cabbc868a09c1a49d1efe458fe8e4361215df40265 \+ --hash=sha256:66671f93accb62ed07da56613636f3641f1a12c13046ce91ffc923721f23c008 \+ --hash=sha256:6696b7688f54f5af4462118f0bfa7c1621eeb87154f77fa04b9295ce7a8f2943 \+ --hash=sha256:6785f414ae0f3c733c437e0f3929197934f526d19dfaa75e18fdb4f94c6fb374 \+ --hash=sha256:67f6279d125ca0046a7fd386d01b311c6363844deac3e5b069b514ba3e63c246 \+ --hash=sha256:6c114670c45346afedc0d947faf3c7f701051d2518b943679c8ff88befe14f8e \+ --hash=sha256:6e0d51f618228538a3e8f46bd246f87a6cd030565e015803691603f55e12afb5 \+ --hash=sha256:6ed74185b2db44f41ef35fd1617c5888e59792da9bbc9190d6c7300617182616 \+ --hash=sha256:708838739abf24b2ceb208d0e22403dd018faeef86ddac04319a62ae884c4f15 \+ --hash=sha256:715479b9a2802ecac752a3b0efa2b0b60285cf962ee38414211abdfccc233b41 \+ --hash=sha256:733784b6d6def852c814bce5f318d25da2ee65dd4839a0718641c696e09a2960 \+ --hash=sha256:750e02e074872a3fad7f233b47734166440af3cdea0add3e95163110816d6752 \+ --hash=sha256:752a45dc4a6934060b3b0dab47e04edc3326575f82be64bc4fc293914566503e \+ --hash=sha256:7579e913a5339fb8fa133f6bbcfd8e6749696206cf05acdbdca71a1b436d8e72 \+ --hash=sha256:7641bb8895e77f921102f72833904dcd9901df5d6d72a2ab8f31d04b7e51e4e7 \+ --hash=sha256:7804338df6fcc08105c7745f1502ba68d900f45fd770d5bdd5288ddccb8a42d8 \+ --hash=sha256:80d04837f55fc81da168b98de4f4b797ef007fc8a79ab71c6ec9bc4dd662b15b \+ --hash=sha256:813c0e0132266c08eb87469a642cb30aaff57c5f426255419572aaeceeaa7bf4 \+ --hash=sha256:82b271f5137d07749f7bf32f70b17ab6eaabedd297e75dce75081a24f76eb545 \+ --hash=sha256:84c018e49c3bf790f9c2771c45e9313a08c2c2a6342b162cd650258b57817706 \+ --hash=sha256:8751d2787c9131302398b11e6c8068053dcb55d5a8964e114b6e196cf16cb366 \+ --hash=sha256:8778f0c7a52e56f75d12dae53ae320fae900a8b9b4164b981b9c5ce059cd1fcb \+ --hash=sha256:87fad7d9ba98c86bcb41b2dc8dbb326619be2562af1f8ff50776a39e55721c5a \+ --hash=sha256:8d828b6667a32a728a1ad1d93957cdf37489c57b97ae6c4de2860fa749b8fc1e \+ --hash=sha256:8e385e4267ab76874ae30db04c627faaaf0b509e1ccc11a95b3fc3e83f855c00 \+ --hash=sha256:92a0a01ead5e668468e952e4238cccd7c537364eb7d851ab144ab6627dbbe12f \+ --hash=sha256:94e1885b270625a9a828c9793b4d52a64445299baa1fea5a173bf1d3dd9a1a5a \+ --hash=sha256:a180c5e59792af262bf263b21a3c49353f25945d8d9f70628e73de370d55e1e1 \+ --hash=sha256:a277ab8928b9f299723bc1a2dabb1265911b1a76341f90a510368ca44ad9ab66 \+ --hash=sha256:a5fe03b42827c13cdccd08e6c0247b6a6d4b5e3cdc53fd1749f5896adcdc2356 \+ --hash=sha256:a6c5863edfbe888d9eff9c8b8087354e27618d9da76425c119293f11712a6319 \+ --hash=sha256:a89c23ef8d2c6b27fd200a42aa4ac72786e7c60d40efdc76e6011260b6e949c4 \+ --hash=sha256:adb2597b428735679446b46c8badf467b4ca5f5056aae4d51a19f9570301b1ad \+ --hash=sha256:ae196f021b5e7c78e918242d217db021ed2a6ace2bc6ae94c0fc596221c7f58d \+ --hash=sha256:ae89db9e5f98a11a4bf50407d4363e7b09b31e55bc117b4f7d80aab97ba009e5 \+ --hash=sha256:aed52fea0513bac0ccde438c188c8a471c4e0f457c2dd20cdbf6ea7a450046c7 \+ --hash=sha256:aef65cd602a6d0e0ff6f9930fcb1c8fec60dd2cfcb6facaf4bdb0e5873042db0 \+ --hash=sha256:af21eb4409a119e365397b2adbaca4c9ccab56543a65d5dbd9f920d6ac29f686 \+ --hash=sha256:b14b2d9dac08e28bb8046a1a0434b1750eb221c8f5b87a68f4fa11a6f97b5e34 \+ --hash=sha256:bb6d88045545b26da47aa879dd4a89a71d1dce0f0e549b1abcb31dfe4a8eac49 \+ --hash=sha256:bb8cc7534f51d9a017b93e3e85b260924f909601c3df002bcdb58ddb4dc41a5c \+ --hash=sha256:bc17a677b21b3502a21f66a8cc64f5bfad4df8a0b8434d661666f8ce90ac3af1 \+ --hash=sha256:bd6c2a1c7573c64738d716488d2cdd3c00e340e4835707d8fdb8dc1a66ef164e \+ --hash=sha256:bd9b23791fe793e4968dba0c447e12f78e425c59fc0e3b97f6450f4781f3ee60 \+ --hash=sha256:c03a41a8784091e67a39648f70c5f97b5b6a37f216896d44d2cdcb82615339a0 \+ --hash=sha256:c0f081d69a6e58272819b70288d3221a6ee64b98df852631c80f293514d3b274 \+ --hash=sha256:c35abb8bfff0185efac5878da64c45dafd2b37fb0383add1be155a763c1f083d \+ --hash=sha256:c36c333c39be2dbca264d7803333c896ab8fa7d4d6f0ab7edb7dfd7aea6e98c0 \+ --hash=sha256:c45e9440fb78f8ddabcf714b68f936737a121355bf59f3907f4e17721b9d1aae \+ --hash=sha256:c593052c465475e64bbfe5dbd81680f64a67fdc752c56d7a0ae205dc8aeefe0f \+ --hash=sha256:cdd68a1fb318e290a2077696b7eb7a21a49163c455979c639bf5a5dcdc46617d \+ --hash=sha256:ce3412fbe1e31eb81ea42f4169ed94861c56e643189e1e75f0041f3fe7020abe \+ --hash=sha256:cf1493cd8607bec4d8a7b9b004e699fcf8f9103a9284cc94962cb73d20f9d4a3 \+ --hash=sha256:cf29836da5119f3c8a8a70667b0ef5fdca3bb12f80fd06487cfa575b3909b393 \+ --hash=sha256:d4a48e5b3c2a489fae013b7589308a40146ee081f6f509e047e0e096084ceca1 \+ --hash=sha256:d560742f3c0d62afaccf9f41fe485ed69bd7661a241f86a3ef0f0fb8b1a397af \+ --hash=sha256:d6038d37043bced98a66e68d3aa2b6a35505dc01328cd65217cefe82f25def44 \+ --hash=sha256:d61f00a0869d77422d9b2aba989e2d24afa6ffd552af442e0e58de4f35ea6d00 \+ --hash=sha256:d635aab80466bc95771bb78d5370e74d36d1fe31467b6b29b8b57b2a3cd7d22c \+ --hash=sha256:dca4bbc466a95ba9c0234ef56d7dd9509f63da22274589ebd4ed7f1f4d4c54e3 \+ --hash=sha256:dd915403e231e6b1809fe9b6d9fc55cf8fb5e02765ac625d9cd623342a7905d7 \+ --hash=sha256:e044c39e41b92c845bc815e5ae4230804e8e7bc29e399b0437d64222d92809dd \+ --hash=sha256:e060d01aec0a910bdccb8be71faf34e7799ce36950f8294c8bf612cba65a2c9e \+ --hash=sha256:e1421b502d83040e6d7fb2fb18dff63957f720da3d77b2fbd3187ceb63755d7b \+ --hash=sha256:e17b8d5d6a8c47c85e68ca8379def1303fd360c3e22093a807cd34a71cd082b8 \+ --hash=sha256:e5f4d355f0a2b1a31bc3edec6795b46324349c9cb25eed068049e4f472fb4259 \+ --hash=sha256:e712b419df8ba5e42b226c510472b37bd57b38e897d3eca5e8cfd410a29fa859 \+ --hash=sha256:e74327fb75de8986940def6e8dee4f127cc9752bee7355bb323cc5b2659b6d46 \+ --hash=sha256:e80c8378d8f3d83cd3164da1ad2df9e37a666cdde7b1cb2298ed0b558064be30 \+ --hash=sha256:e8ac484bf18ce6975760921bb6148041faa8fef0547200386ea0b52b5d27bf7b \+ --hash=sha256:eca9705049ad3c7345d574e3510665cb2cf844c2f2dcfe675332677f081cbd46 \+ --hash=sha256:ed065083d0898c9d5b4bbec7b026fd755ff7454e6e8b73a67f8c744b13986e24 \+ --hash=sha256:edac0f1ab77644605be2cbba52e6b7f630731fc42b34cb0f634be1a6eface56a \+ --hash=sha256:effc3f449787117233702311a1b7d8f59cba9ced946ba727bdc329ec69028e24 \+ --hash=sha256:f22dec1690b584cea26fade98b2435c132c1b5f68e39f5a0b7627cd7ae31f1dc \+ --hash=sha256:f495a1652cf3fbab2eb0639776dad966c2fb874d79d87ca07f9d5f059b8bd215 \+ --hash=sha256:f496c9c3cc02230093d8330875c4c3cdfc3b73612a5fd921c65d39cbcef08063 \+ --hash=sha256:f59099f9b66f0d7145115e6f80dd8b1d847176df89b234a5a6b3f00437aa0832 \+ --hash=sha256:f59ad4c0e8f6bba240a9bb85504faa1ab438237199d4cce5f622761507b8f6a6 \+ --hash=sha256:fbccdc05410c9ee21bbf16a35f4c1d16123dcdeb8a1d38f33654fa21d0234f79 \+ --hash=sha256:fea24543955a6a729c45a73fe90e08c743f0b3334bbf3201e6c4bc1b0c7fa464+ # via+ # markitdown+ # pdfminer-six+ # requests+click==8.4.1 \+ --hash=sha256:482be17c6991b8c19c5429a1e995d9b0efdbb63172824c41f99965dc0ade8ec2 \+ --hash=sha256:918b5633eddf6b41c32d4f454bf0de810065c74e3f7dbf8ee5452f8be88d3e96+ # via magika+cobble==0.1.4 \+ --hash=sha256:36c91b1655e599fd428e2b95fdd5f0da1ca2e9f1abb0bc871dec21a0e78a2b44 \+ --hash=sha256:de38be1539992c8a06e569630717c485a5f91be2192c461ea2b220607dfa78aa+ # via mammoth+colorama==0.4.6 \+ --hash=sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44 \+ --hash=sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6+ # via+ # click+ # tqdm+coloredlogs==15.0.1 \+ --hash=sha256:612ee75c546f53e92e70049c9dbfcc18c935a2b9a53b66085ce9ef6a6e5c0934 \+ --hash=sha256:7c991aa71a4577af2f82600d8f8f3a89f936baeaf9b50a9c197da014e5bf16b0+ # via onnxruntime+cryptography==49.0.0 \+ --hash=sha256:026ac7423e6fa66872d3bf889be5974507da3944f866f704fa200eadacd00001 \+ --hash=sha256:07cab27cc7b7e0fd28e5e26bb9eeedde5c135c868b46de4a27845abe94af6122 \+ --hash=sha256:084ef1af862eb07ec46d25f68689f2102a9fc0e05ce7b80f14f5fe51e4eef0f6 \+ --hash=sha256:0b82e28ee398a386f0807bba7884d30f25218855690f45115831bcce5d90822c \+ --hash=sha256:0e959b578856a3924bc0cbb710fc12c387b9412a951389f3ca61704a9e25f325 \+ --hash=sha256:0f21641cf4b30fca7aee061ced0ec7ad7b073518088b7c9969a297c0ae796c69 \+ --hash=sha256:196ecd6a36e4e9aa10270393bb98d8df88fccee0bf1e5128b91ae4eb4375896d \+ --hash=sha256:2400ef9c9e2299a25614eb1dea3db54a69b1349efd043bfac9c67630d136df36 \+ --hash=sha256:28d8b15e6275f12c8a207dc309dfa957903c927d08d0cc937ee3f63f200693cc \+ --hash=sha256:2afe9051da7ae7bd5905da5a949280c7d2bb75682e188f650a9d0f2756b834c6 \+ --hash=sha256:2eda353d8a27bcbcaa4cbed18994a74ab4d19a2ca897db188ea269ab9b71419b \+ --hash=sha256:32703d93296f5c1f4b53349ad3a250c2cae0fdecd3a3dd5d47e616d8d616af27 \+ --hash=sha256:33cd0565932807baddb67b96dbee92f2c374b5c89dee09fd74079aeb8c8dba61 \+ --hash=sha256:35b151772baff2c74cba7fa290ceaff4c3b11c0c881eb93eb5dbc05a7cfbba18 \+ --hash=sha256:36d1709f992593689b45bda411498d62c6e365f2ca00b84657d4dadd24de16db \+ --hash=sha256:42b0684e0e40cf26122427802486f6d93aea593612603a94fbf260c7eb1e9c1b \+ --hash=sha256:4ae387c9cb68ea569ca17e490d66d8142b81c3cc814bf179974b7d146e490bbb \+ --hash=sha256:53ecee2e23f7169b6117e99fc8a944e5e50f79e69758a83b52a00cb98ab2b2d2 \+ --hash=sha256:66ec79c3904820572d7e987abdf304281f141d37ad9a489b8e97066e7b9b6459 \+ --hash=sha256:67e1d20ad9ef3a563c59ef22e7a8a0b8210bd26604369ea4a30a7c66aefe504e \+ --hash=sha256:6f2debedf9ca60cf1d5bd466475638af5130f89965605cd818484d19987d3a21 \+ --hash=sha256:6fc361c34fb6aac015ce19435876635e5c6d21db31998b0920f675f131e043b8 \+ --hash=sha256:73a205dce83953d131a4aa1e0fd917a2fd1c5b1eef251e9d7152efefcbf5caf7 \+ --hash=sha256:7abcee80084cda3f7691f3eb1ce480d8df49cec637b429aa35986c1de71738aa \+ --hash=sha256:8c25ceb16df5b9435f3f6a9829204985b0e0cbee3b48aacd432c7d2c850b44d9 \+ --hash=sha256:966fe0e9c67490071f14c0d2b1cb2dfb3023c5ce39457343931415f08382f2db \+ --hash=sha256:9e82dcc8e56052715fb18b2429e3bca4823b1629136a2084fc45a9a5cecb9b64 \+ --hash=sha256:b20133d204d2bb56ba047642199603876c872026ca53e79c35b83772ab2cc505 \+ --hash=sha256:b39efa323140595abd3ecca8529d321ae50f55f3aa3ba9cc81ea56a6011953d5 \+ --hash=sha256:b47db11c2c3525083296069b98ac5221907455e989ae0c2e3008bde851921615 \+ --hash=sha256:b87e65d263b3e5d3bb92a57e2a6638e2f31110fa7aa890c7b2dbba42248d0a3f \+ --hash=sha256:b970c6da94d5bb18629db453d14f2a1300f6bf59b61e9b82377931ef95504866 \+ --hash=sha256:be9fcb48a55f023493482827d4f459bd263cc20efde64f204b97c123201850c6 \+ --hash=sha256:c2bc30226390d60ea19d9f82b19db005fe0452154a23c1c410c12ea801e43561 \+ --hash=sha256:c83782480a4a9da4d0feb51950131ba32e12e70813848b3343f6e18c28a66838 \+ --hash=sha256:cbc77da8c523d5abd028635ba850a6966fcee2c82e2bf65a41d1d8afe0f98be9 \+ --hash=sha256:ccac2bfebc306b862133e3bb71f3f6ee8bb525240089b2d952e4144b3a6d5da7 \+ --hash=sha256:d0527ce944105f257f605a827d6ebead966c752038b6e8656abb9c5edee6fc68 \+ --hash=sha256:d8ecde755e2e91bf773fc94e8c9d730cd7f2007004cb492263a794ec3899a1c8 \+ --hash=sha256:e3fb64c420688e5319ae25113a354015abbd8dffbfbc41781a1ea66fc7622ac3 \+ --hash=sha256:e5dfc1e64de5677cec922ffa8da89c546d0415bf6efdf081842e5d44c84e1f0e \+ --hash=sha256:ec5e529fb80935c94fe7b729f9972b50e351a0e6b50aa294fd5cabb109fcc29a \+ --hash=sha256:f37d847238971164fdbc68ade6f6574aecc9c0af714190e2083429ff68f4ce9d \+ --hash=sha256:f78ff2c9ed8dc2d036b0f4d640e22522213d047c1b14e61205a7e55c80a494d4 \+ --hash=sha256:f89660a348f4f78a92366240a61404e337586ef7f5909a2fef59ca88ef505493 \+ --hash=sha256:fc1e275c2f1d97b1a6450b8b0ea3ebfa6e087a611c2b26cb2404d48588abab7b+ # via pdfminer-six+defusedxml==0.7.1 \+ --hash=sha256:1bb3032db185915b62d7c6209c5a8792be6a32ab2fedacc84e01b52c51aa3e69 \+ --hash=sha256:a352e7e428770286cc899e2542b6cdaedb2b4953ff269a210103ec58f6198a61+ # via markitdown+distro==1.9.0 \+ --hash=sha256:2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed \+ --hash=sha256:7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2+ # via openai+et-xmlfile==2.0.0 \+ --hash=sha256:7a91720bc756843502c3b7504c77b8fe44217c85c537d85037f0f536151b2caa \+ --hash=sha256:dab3f4764309081ce75662649be815c4c9081e88f0837825f90fd28317d4da54+ # via openpyxl+flatbuffers==25.12.19 \+ --hash=sha256:7634f50c427838bb021c2d66a3d1168e9d199b0607e6329399f04846d42e20b4+ # via onnxruntime+h11==0.16.0 \+ --hash=sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1 \+ --hash=sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86+ # via httpcore+httpcore==1.0.9 \+ --hash=sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55 \+ --hash=sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8+ # via httpx+httpx==0.28.1 \+ --hash=sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc \+ --hash=sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad+ # via openai+humanfriendly==10.0 \+ --hash=sha256:1697e1a8a8f550fd43c2865cd84542fc175a61dcb779b6fee18cf6b6ccba1477 \+ --hash=sha256:6b0b831ce8f15f7300721aa49829fc4e83921a9a301cc7f606be6686a2288ddc+ # via coloredlogs+idna==3.18 \+ --hash=sha256:7f952cbe720b688055e3f87de14f5c3e5fdaa8bc3928985c4077ca689de849a2 \+ --hash=sha256:ffb385a7e039654cef1ab9ef32c6fafe283c0c0467bba1d9029738ce4a14a848+ # via+ # anyio+ # httpx+ # requests+jiter==0.15.0 \+ --hash=sha256:01a8222cf05ab1128e239421156c207949808acaaea2bdfd33130ae666786e86 \+ --hash=sha256:032396229564bca02440396bd327710719f724f5e7b7e9f7a8eb3faa4a2c2281 \+ --hash=sha256:04b400bbf8c9efb03d9bdd976475c919c1d85593b04b9fff7ae234065daf87ae \+ --hash=sha256:05906b93d72f03339e6bb7cf8dc10ebda64a0266126eed6beba79e20abcf5fd4 \+ --hash=sha256:066f8f33f18b2419cd8213b2436fa7fbc9c499f315971cfa3ce1f9820c001b1b \+ --hash=sha256:0ab068bce62a45aa3e7367eceaffb5dde60b7eb853be8dece45132e3d0ff4879 \+ --hash=sha256:0be6f5ad41a809f303f416d17cec92a7a725902fb9b4f3de3d19362ac0ef8554 \+ --hash=sha256:0e90a1c315a0226ec822d973817967f9223b7701546c8c2a7913e7ab0926294d \+ --hash=sha256:0f862193b8696249d22ec433e85fd2ab0ad9596bc3e45e6c0bc55e8aeba97be2 \+ --hash=sha256:1303d4d68a9b051ea90502402063ecf3807da00ad2affa19ca1ae3b90b3c5f67 \+ --hash=sha256:144f8e72cb53dab146347b91cceac01f5481237f2b93b4a339a1ee8f8878b67c \+ --hash=sha256:182226cbc930c9fab81bc2e41a4da672f89539906dadb05e75670ac07b94f71f \+ --hash=sha256:1c11465f97e2abf45a014b83b730222f8f1c5335e802c7055a67d50de6f1f4e3 \+ --hash=sha256:1c15024a3d892223b18f597c86d59387249dc396590844ce6b9f6131d1093bae \+ --hash=sha256:1d54fb5b31dea401a41af3f8a7d2512e9b6a6a005491e6166c7e4ffab9639a9c \+ --hash=sha256:25ffbe229aa8cd98c28879d8aa1a6e34ae77992ab984a65fba800859dab16269 \+ --hash=sha256:2a77aadd57cac1682e4401a72724d2796d89a4ba129b1a5812aa94ee480826eb \+ --hash=sha256:2ae901f3a55bfafdde31d289590fa25e3245735a2b1e8c7cc15871710a002871 \+ --hash=sha256:2b0074e2f56eb2dacca1689760fd2852a068f85a0547a157b82cb4cafeb6768b \+ --hash=sha256:2c8aea7781d2a372227871de4e1a1332aa96f5a89fd76c5e835dafdbad102887 \+ --hash=sha256:2c9cb907439d20bd0c7d7565ca01ee52234203208433749bae5b516907526928 \+ --hash=sha256:2fb6a5d26af81fc0f00f9360a891e05cf755e149bba391c4d563adc54812973d \+ --hash=sha256:2fd73e3da91a0a722d67165e849ce2cdc10de0e0d48738c142be8c6c5f310f4c \+ --hash=sha256:30ce1a5d16b5641dc935d50ef775af6a0871e3d14ab05d6fc54dff371b78e558 \+ --hash=sha256:30ce785d2adb8e32c3f7741442370a74834ec4c01f3c48f0750227a0b4ef27d6 \+ --hash=sha256:30f2218e6a9e5c18bc10fe6d41ac189c442c88eacf11bad9f28ef95a9bef00e6 \+ --hash=sha256:351a341c2105aa430b7047e30f1bf7975f6313b00165d3fc07be2edaf741f279 \+ --hash=sha256:37a10c377ce3a4a85f4a67f28b7afe093154cde77eaf248a72e856aa08b4d865 \+ --hash=sha256:392b8ab019e5502d08aff85c6272209c24bc2cbe706ea82a56368f524236614a \+ --hash=sha256:3e4540b8e74e4268811ac05db226a6a128ff572e7e0ce3f1163b693cadb184cd \+ --hash=sha256:40b2c7e92c44a84d748d21706c68dc6ff8161d80b59c99d774721a0d2317d7c7 \+ --hash=sha256:411fa4dfa5a7ae3d11491027ffb9beadec3996010a986862db70d91abba1c750 \+ --hash=sha256:4251acc80e2b7c9b7b8823456ea0fceeb0734dac2df7636d3c711b38476b5a76 \+ --hash=sha256:42bfb257930800cf43e7c62c832402c704ab60797c992faf88d20e903eac8f32 \+ --hash=sha256:4363818355dbc70ae1a8e9eaba9de350d93ede4ff6992b8f8eb8cbb6e5122d42 \+ --hash=sha256:4ab395feec8d249ec4044e228e98a7033f043426a265df439dc3698823f0a4e4 \+ --hash=sha256:50164d7610c00e7cd913a873fce30b6beeebf4b37e53983e33f22de4c900f6b8 \+ --hash=sha256:50e51156192722a9c58db112837d3f8ef96fb3c5ecc14e95f409134b08b158ec \+ --hash=sha256:510c8b3c17a0ed9ac69850c0438dada3c9b82d9c4d589fcb62002a5a9cf3a866 \+ --hash=sha256:5157de9f76eb4bc5ea74a1219366a25f945ad305641d74e04f59c54087091aa9 \+ --hash=sha256:54d5d6090cdc1b7c9e780dfb04949a990adb1e301a2fc0bbcee7de4638d33f9a \+ --hash=sha256:553fcac2ef2cb990877f9fc0833b8b629a3e6a5670b6b5fd58219b41a653ddc4 \+ --hash=sha256:5607e6013ed7e6b0ec9661e467b7ffde0aa7ab36833a04850f26fcf88ed4845b \+ --hash=sha256:5d6a60072b44c3c2b797a7ddcbcbbf2b34ea3cfd4721580fbfd2a09d9d9b84ba \+ --hash=sha256:5f30bae8bc1c2d613e28e5af3e8cceb09b742f1c8a8a5f839fb67afaffc03b61 \+ --hash=sha256:62ebd14e47e9aed9df4472afcb2663668ce4d74891cd54f86bf6e44029d6dc89 \+ --hash=sha256:631f13a3d04e97d4e083993b10f4b99530e3a10d953e2eb5e196b7dc7f812ce0 \+ --hash=sha256:6550fa135c7deb8ead6af49ed7ff648532ea8334a1447fe34a36315ef79c5c29 \+ --hash=sha256:66b1880df2d01e206e8339769d1c7c1753bcb653efd6289e203f6f24ebada0c0 \+ --hash=sha256:6eac374c5c975709b69c10f09afd199df74150172156ad10c8d4fd785b7da995 \+ --hash=sha256:71683c38c825452999b5717fcae07ea708e8c93003e808be4319c1b02e3d176e \+ --hash=sha256:7553333dd0930c104a5a0db8df72bf7219fe663d731383b576bb6ed6351c984d \+ --hash=sha256:75e8a04e91432dde9f1838373cf93d23726c79d3e908d319acf0e796f85592e7 \+ --hash=sha256:773b6eb282ce11ee19f05f6b2d4404fa308e5bbd353b0b80a0262caad6db2cd7 \+ --hash=sha256:774f93f65031856bf14ad9f59bdcab8b8cad501e5ceabd51ba3525f76937a25b \+ --hash=sha256:7c468136b8bd6bb18c8786e4236a1fa27362f24cb23450ba0cb204ab379b8e6f \+ --hash=sha256:7ce8902f939970048b233087082e7bb829db29375811c7ad50687b8624c6fd08 \+ --hash=sha256:7d3d6683288c11cbab50e865f2e2f13950179aa45410e30b2cfbd3fb7b0177bf \+ --hash=sha256:7f6163c0f10b055245f814dcc59f4818da60dfe72f3e72ab89fc24b6bd5e9c52 \+ --hash=sha256:8020c99ec13a7db2b6f96cbe82ef4721c88b426a4892f27478044af0284615ef \+ --hash=sha256:813dfbb17d65328bf86e5f0905dd277ba2265d3ca20556e86c0c7035b7182e5a \+ --hash=sha256:860a74063284a2ae9bfedd694f299cc2c68e2696c5f3d440cc9d18bb81b9dd04 \+ --hash=sha256:8c9004af7c8d67cce7f1aae1026fb55607f4aa600710d08ede3a3ce4aeefe7e0 \+ --hash=sha256:8d2c0c44d569ce0f2850f5c926f8caeb5f245fbc84475aeb36efccc2103e6dbd \+ --hash=sha256:8f7e9bc0f1135039b22ee6eab588d42df1ce55842b30740a352885eb267bd941 \+ --hash=sha256:90c5db5527c221249a876160663ab891ace358c17f7b9c93ec1478b7f0550e5c \+ --hash=sha256:9100ddbec09741cc66feb0fc6773f8bdbd0e3c345689368f260082ff85dcc0cd \+ --hash=sha256:913d02d29c9606643418d9ccfc3b72492ab25a6bf7889934e09a3490f8d3438b \+ --hash=sha256:980c256edb05b78a111b99c4de3b1d32e31634b867fd1fc2cf726e7b7bba9854 \+ --hash=sha256:9f924585cdacf631cd382b657966847bb537bf9ed0a6f9b991da5f05a631480f \+ --hash=sha256:a254e10b593624d230c365b6d616b22ca0ad65e63a16e6631c2b3466022e6ba8 \+ --hash=sha256:a2a438005b6f22d0273413484d6094d7c2c5d10ec1b3a3bf128e0d1d3ba53258 \+ --hash=sha256:a97261f1fccb8e50ecd2890a96e46efdc3f57c80a197324c6777827231eca712 \+ --hash=sha256:ab596fa3837e91e7e6a31b5f639988bfc6a35d1f915ac3932d946062219d588f \+ --hash=sha256:abbf258599526ad0326fe51e252e24f2bd6f24f1852681b4b78feda3808f1d18 \+ --hash=sha256:ac0d9ddea4350974be7a221fc25895f251a8fee748c889bdced2141c0fec1a49 \+ --hash=sha256:acf4ee4d1fc55917239fe72972fb292dd773055d05eb040d36f4326e02cc2c0e \+ --hash=sha256:ae1b0d82ac2d987f9ea512b1c9adfcc71a28de3dea3a6039b54d76cffda9901e \+ --hash=sha256:b15741f501469009ae0ae90b7147958a664a7dede40aa7ff174a8a4645f546d0 \+ --hash=sha256:b15d3ec9b0449c40e85319bdb4caa8b77ab526e74f5532ed94bec15e2f66822c \+ --hash=sha256:b3b3b775e33d3bfaec9899edc526ae97b0da0bf9d071a46124ba419149a414f8 \+ --hash=sha256:b6c0ffae686c39bf3737be60793783267628783ea42545632c10b291105aee45 \+ --hash=sha256:c210f8b35dc6f30aafd4b4365ca89b9d1189f21ab49b8e68fa6322a847aef138 \+ --hash=sha256:c2f6bb8b5216ab9e7873bc08b5d7bef2b8abbb578a3069bf1cd14a45d71d771d \+ --hash=sha256:c60e71b6d10cfc284c9bf36bd885e8d44c46f688ce50aa91b5edd90181dea687 \+ --hash=sha256:c6694a173ecabc12eb60efbc0b474464ead1951ff65cd8b1e72100715c64512b \+ --hash=sha256:c77496cb10bd7549690fbbab3e5ec05857b83e49276f4a9423a766ddd2afcd4c \+ --hash=sha256:c84c1b7be454b0c16f8499b4ebfbfd82ea5cca6527cceefcbbc06a7557b5ed2e \+ --hash=sha256:cc0bc345cf2df9d1c00ac443f50d543c1ccfa8b0422cb85b1ab70d681c0b255b \+ --hash=sha256:ceb8fc27d38793f9c97149be8302720c5b22e5c195a37bf2c45dc36c4600a512 \+ --hash=sha256:cf4bd113a69c0a740e27cb962ce10630c36d2b8f59d759a651b955ee9d18a823 \+ --hash=sha256:d1aa62e277fc1cbd80e6deacae6f4d983b41b3d7728e0645c5d741a6149bba45 \+ --hash=sha256:d1e7b1776f0797956c509e123d0952d10d293a9492dea9f288ab9570ec01d1a5 \+ --hash=sha256:d636d5095155afd364247f65070fab7beda13498d7ff4de331046e704ab9657f \+ --hash=sha256:d726e3ceeb337191324b49de298142f27c3ad10886341555d1d5315b5f252c6a \+ --hash=sha256:d72d8af5c1013656a8870c866660627d1a75bc185814ee022c8533caa1de88ae \+ --hash=sha256:d8d2955167274e15d79a7a020afdd9b39c990eb80b2d89fca695d92dcfdd38ec \+ --hash=sha256:d92a5cd21fdb083931d546c207aa29633787c5dc5b02daab2d32b843f88a2c53 \+ --hash=sha256:e58585a58209d72691ce2d62a9147445f5a87beb0bde97fde284c96ae392a3d1 \+ --hash=sha256:e7196e56f1cd69af1dbb07dff02dcfb260a50b45a82d409d92a06fedb32473b5 \+ --hash=sha256:eda3071db3346334beae1360b46da4606da57bf3528c167b3c38533afaf9f2c5 \+ --hash=sha256:edebcf7d1f601199084bb6e844d7dc67e03e04f6ac786b0332d616635c4ff7a4 \+ --hash=sha256:ef1fd24d9413f6209e00d3d5a453e67acfe004a25cc6c8e8484faed4311ab9e8 \+ --hash=sha256:f0b271b462769543716f92d3a4f90527df6ef5ed05ee95ec4137f513e21e1b77 \+ --hash=sha256:f18f85e4218d1b40f000f42a92239a7a61a902cd42c65e6c360dbd17dcb20894 \+ --hash=sha256:f1e1754960f38ec40613a07e5e372df67acb3b890fb383b6fb3de3e49ddbf3c7 \+ --hash=sha256:f2143ab06181d2b029eedcb6af3cebe95f11bbac62441781860f98ee9330a6a6 \+ --hash=sha256:f3d37768fce7f88dd2a8c6091f2325dea27d30d30d5c6e7a1c0f0af77723b708 \+ --hash=sha256:fa248c9eb220197d363f688818dac2fd4b2f0cd7d843ca7105d652034823427d+ # via openai+lxml==6.1.1 \+ --hash=sha256:05a82eb6e1530a64f26225b55cbd178113bd0b5af1c2b625f25e5296742c26d2 \+ --hash=sha256:07a4a68e286ee7a1ed7dfb8af83e615757c0ccfe9f18c6b4ea6771388d9ba8c9 \+ --hash=sha256:09dd5b7075dc2f7709654a46543ba1ea3c2e217b2ed8fbd413a8a945a0f40f60 \+ --hash=sha256:0b7e8a14c8634bf6f7a568634cb395305a6d964aeb5b7ee32248094bed3a7e2c \+ --hash=sha256:104c09bda8d2a562824c0e319d0768ce26a779b7601e0931d33b09b53c392ef7 \+ --hash=sha256:126c93f7f56f0eda92f6d8c619edc463a4f23d9252f1c9d0405a76f25fa9f11a \+ --hash=sha256:162af1091cd785f2f27e62d3547ae9bc58ec5c86dd314d67021fd02463708d83 \+ --hash=sha256:17e0e18d4ad8adbd0399291bc44845b69d9dd68439a3cdebdf35ff902ec05072 \+ --hash=sha256:18b73c339ae29b90fd2d06e58ebd555a751bde9cd6bbd36cc0281b9a2c94e9d8 \+ --hash=sha256:19607c6bbff2a44cf3fe8250abccd20942d3462473e0a721d01d379ed017e462 \+ --hash=sha256:19b7ab10b210b0b3ad7985d9ac4eb66ab09a90b20fe6e2f7ba55d01a234345d0 \+ --hash=sha256:1d4962d4c66bf830a7e59ed6cfc17d148149898a3aefa8ec6e59763e6e3ed085 \+ --hash=sha256:1db753c9115ec7100d073b744d17e25e88a8f90f5c39b2f5dd878149af59671f \+ --hash=sha256:1dde6131244bba38a17c745836ba190bc753fd73c9291666287fd0a3fa3dcf30 \+ --hash=sha256:25c6997a9a534e016695a0ba06b2f07945de682731ff01065b6d5a4474179da1 \+ --hash=sha256:26e6eda8d38c1fcab1090dd196ee87cbd13788e531937610e2589085de074e77 \+ --hash=sha256:27acc820660aaffa4f7c087f29120e12980f7779d56d8492d263170111284740 \+ --hash=sha256:2a0217714657e023ef4293500f65aa20fce6164c8fd6b08fa5bd4a859fb14b9b \+ --hash=sha256:2c8daa471358dc2d6fcf02165e80ec68f77871a286df95bc5cc3816153b0fd2c \+ --hash=sha256:30a89d3ac8faec007453fb541f3f46807eeec88edd5826f6e3fe001752a2c621 \+ --hash=sha256:31033dc34636ea6b7d5cc11b1ddbda78a14de858ba9d3e1ed4b69a3085bc521e \+ --hash=sha256:32ab449a5486f6c758e849bb86710d0e45edc24a04e250c01555f8f5653958f8 \+ --hash=sha256:3483644525531e1d5762b0c44a8e18b6efba321b6dcf8a8952de10b037618bca \+ --hash=sha256:34c2d737beabfe35baada43941ed519251e9a12e779031496bcd5d539fcfd730 \+ --hash=sha256:3779def59032b81e44a5f70096ef6bf2082f8d901937dca354474ba09782e245 \+ --hash=sha256:37a58976370f36d9329d118ad0b953c5aeb9119ac9c6a4e258942a225d0573a1 \+ --hash=sha256:3893c14c4b6ac5b2d54ba8cf03e99fe5104e592de491f19bd6b82756c09f8004 \+ --hash=sha256:3a12689be69a28ddaa0ab99a5a1137da2afd5f8f16df7b5680b66f616d3eda1d \+ --hash=sha256:3ab541146f1f6968c462d6c2ac495148e8cdba2f8347700b2141b6ec5a75bf52 \+ --hash=sha256:3abf332af33a74288675d936fe861fd4344da0dd6622193fbc4f2bfbb35536b5 \+ --hash=sha256:3fd9728a2735fda14f4e8235830c86b539e9661e849665bf926d3f867943b4bf \+ --hash=sha256:424aa57aca0897eb922aef34395bd1289b3b6f04e6bae20ea123c0c7e333cffc \+ --hash=sha256:441dd227fa0690eb9fc81edabc63cdcefc212bba99b906dcf6e32cc1a9d3e533 \+ --hash=sha256:469e3618338bd7ab5beb412d2439825479fcf0dab99e394ca563dbc4eaf6c834 \+ --hash=sha256:47402e62c52ff5988c1e8c6c63177f5708bccf48e366dea4e3dcf1e645e04947 \+ --hash=sha256:4f0dd2f01f9f8a89f565d000e03abcf0a13d692a346c8d22f628d49af098777a \+ --hash=sha256:53b7d2b7a10b1c35c0a5e21e9224accf60c1bbfba523990732e521b2b73adef2 \+ --hash=sha256:53c909b62a0532183542fed00c5a7218258c56292d409bc789886fe1cb04c438 \+ --hash=sha256:54a7f95e4de5fb94e2f9f4b9055c6ba33bf3d628fd77a1d647c5923caa2cdcdc \+ --hash=sha256:556e94a63c9b04716f8e4de2abb65775061f846e89331b6c5be79183a24f98ea \+ --hash=sha256:55b03549819867ea141c0202242c4816c82e52ec36e7e648db9d8da5a3dc3ed6 \+ --hash=sha256:581d4c8ae690a6609e64862dd6b7c2489635c2d13907fc2b20f2bc200ff1d21e \+ --hash=sha256:58bb955caba94e467d2a96da17660d2d704e0675894cba21ab8a775b8621fd1c \+ --hash=sha256:5b7328b46d49fc9477d91ae8f6d55340347d827b7734ba3ea33faae0efef1383 \+ --hash=sha256:5ba186ad207446c65d3bb3d3e0412b032b1d9f595e59861e2354798c5703d955 \+ --hash=sha256:5bec7d03d78d853597d6107854c2310ce3f761fd218fe9fe91d5101fcf6c2efe \+ --hash=sha256:5c6bf403fbb3b3e348a561a5f4f0b9961835657981c802a1df03653eef8a9074 \+ --hash=sha256:5f6994074ebae6ffb04447268e37dc16edc304f9859cf91acb86e0af6c1b395c \+ --hash=sha256:62aeb7e85b5d60320b9d77eef2e773994e2c0ce10121b277e0a19804e1654a5a \+ --hash=sha256:63876be28efefa04a1df615b46770e82042cce445cfdce55160522f57b231ccb \+ --hash=sha256:639f6c857d91d9be29bd7502348d6736dab168b54b5158cd899abf11684dc186 \+ --hash=sha256:640f97d43d867bcb9c75b3af013b64850756b746cb6bce8ace83b70da3abba9d \+ --hash=sha256:649dda677cf3bd6ac9ae14007ba0c824ded8ce5808b53fc7431d9140399118c1 \+ --hash=sha256:6540377fbd53fe1b629172288c464fb18db11ce1fa7dc15891da10aa9dcc3e7f \+ --hash=sha256:6689e828a94eee4f139408c337bb198e014724bb8a8c26d3cfac49d119ed69a6 \+ --hash=sha256:68a9198d0fc122d14bb76837de9aa80cf84caed990b5b237f532ed87d3706736 \+ --hash=sha256:6b1761fbf9ec984e2e9d9c589ef5f5fd684b7c19f92aadd567a26c5224958db6 \+ --hash=sha256:70cdfd80589d59e43e18005dd7244e8895e93db8ab6a620b7e23df5445a4e3d2 \+ --hash=sha256:70ef8a7e102a1508f8121aae5b0867abd663f72c14f0a9c937e6554cb4587b7b \+ --hash=sha256:73bc2086f141224ebddb7fc5c6a36ca58b31b94b561e1dfe8e073e3270fad1e7 \+ --hash=sha256:74a9717fd0d82effef5c2854f0d917231d5324b5a3eb7275c43ac9fa32f97a14 \+ --hash=sha256:752d3bbfe874715ccd0aec7f88d7fc623c0f1fd7aa7b3238a084e017bad2a009 \+ --hash=sha256:762ff394d5bd56da0cf034a23dcce4e13923f15321a2adfa2ac00201dc6d3fca \+ --hash=sha256:76447f65250ed2501ead1a1552f5ce8edff159a86f308348e6a9c4acb5e1f1b4 \+ --hash=sha256:766b010012d59470072c1816b5b6c69f1d243e5db36ea5968e94accf430a4635 \+ --hash=sha256:787b2496d0dbe8cd180984e8d29e3a6f76e7ea34db781cb3bd55e4ba1ef8b4ee \+ --hash=sha256:793033d6c5cdf33a573f910d9bea14ef8f5771820411d118da8e1182edb53d5e \+ --hash=sha256:7d47866cb32fb503450b6edc9df355d10dc49836af2e89901bd6ac6b0896d9d9 \+ --hash=sha256:7f7a92e8583f06b1fd49d01158143b8461cfcd135dcb10ec807270a3051bd603 \+ --hash=sha256:80c2dfadb855da477cf73373ad29a333535dedb9b12bad02c9814c8e2b43bf08 \+ --hash=sha256:83b6b30eb131da7a75b601f28c5d6971e6ed3e887919bf6b6a1ad3c2df289080 \+ --hash=sha256:86281fbdd6a8162756f8d603f37e3435bfa38043adb79c6dc6a2dfee065e7525 \+ --hash=sha256:86c89b9d55ebf820ad7c90bc533410f0d098054f293351f10603c0c46ff598f5 \+ --hash=sha256:876e1ff5930ed8bf295ec5ef9a8155e9b6b1876bbf1deed8b3a8069311875a8f \+ --hash=sha256:88136950da4d13c318bde414ce10219931937851327f44328f2df4d2c4614067 \+ --hash=sha256:88d8cb75b9d82858497a5393e3c63cfbf03035225e4b35a49ed7ccb151e4dc0e \+ --hash=sha256:8be8ad51249698103d24b0571df35a10990fbe93dd043b6c024172189485f5e3 \+ --hash=sha256:8d43ca737b20e106e4aebc42b2f3ae19f00ba63d7eb731698ee083d72d15646f \+ --hash=sha256:8dadbe5b217ff35b6a8d16610dd710219b59b76d13f0e3f0d9f36786206e4485 \+ --hash=sha256:9395002973c827b3ed67db77e6ec09f092919a587022174554096a269378fb13 \+ --hash=sha256:96f2ec43df44b1f76249ee0a615334f9b5b060e1c8bd90e706dad2d14d02f383 \+ --hash=sha256:98fc784c2c1440667aeedf8465bdfe10208acf0ead656a2c68627299f546b315 \+ --hash=sha256:9e36f163528fc50cbef305f02a5fd66d404edf7049cdaff211dbc2cba5a7013e \+ --hash=sha256:9eb9b5a968f6e0f6d640092a567e14529ff8cea2e29d00da6f78a79fa49f013c \+ --hash=sha256:9f76acfb5f68ba982635a53fd985a8044be98a35b43232c2a1ee235ffab3e1dd \+ --hash=sha256:a088f287f7d8275a33c07f2cac6c50b9319309a0200a39e7e75d80c707723099 \+ --hash=sha256:a10bd2fd62e8ce916ececb342f348f190724a098c1faa056fdfb2a22ad5e8660 \+ --hash=sha256:a4bbea04c97f6d78a48e3fbc1cb9116d2780b1b39e03a23f6eb9b603fd61f510 \+ --hash=sha256:aa366a1e55b8ebfe8ca8ddc3cfe75c8ebade181aeb0f661d0cb05986b647f72a \+ --hash=sha256:aa49e06d94aba782c6a02eecb7e507969e7e7a41b267f1b359bb35585f295d5b \+ --hash=sha256:aad9aa39483ed8ec44d6d2e59e5b98a0d80676ef0d92f44bfc374836111f62f5 \+ --hash=sha256:aae97dfdb60715c164419ac2532a76d013c3918a665eb6cb7288098b5f349aaf \+ --hash=sha256:abbefa31eee84842140f67acef1c828e28bba8bbf0c3bc6e5492a9af88152c28 \+ --hash=sha256:ac931cdc9442c1763b8a8f6cd62c0c938737eafc5be75eff88df55fc73bc0d00 \+ --hash=sha256:acd7d70b64c0aae0c7922cca83d288a16f5f6da523637697872253415269baef \+ --hash=sha256:add8cf6ddf9a65116119a28ece0f7886e30af27ba724a7594305f1d1b58a92a1 \+ --hash=sha256:aee395f5d0927f947758b4ec119fd5fc8ec71f07a1c5c52077b30b04c0fa6955 \+ --hash=sha256:b1b963fd8f5caa68e99dfae060d54de1fe9cba899b8718b44a00cdca53c3e590 \+ --hash=sha256:b2d444f2e66624d68e9c6b211e28a76e22fff5fcabcfff4deac18b529b7d4137 \+ --hash=sha256:b8d812c6011c08b8111a15e54dd990b8923692d80adf35488bee34026c35accf \+ --hash=sha256:ba96ae44888e0185281e937633a743ea90d5a196c6000f82565ebb0580012d40 \+ --hash=sha256:bdebcc8a75d38c7598dfb2c9ed852d7a9eb4a10d6e2d0764b919b802bf32ac88 \+ --hash=sha256:c07da4cebf6889f03ebac8d238f62318e29f495de0aa18a51ea14e61ae907e2e \+ --hash=sha256:c08e5c694306507275f2290073350c4f32e383db15213b2c69e7ff39c1193840 \+ --hash=sha256:c4f469aebd783bb741c2ecb2a681008fd26bfe5c16a9a72ed5467f834e810df2 \+ --hash=sha256:c5d7152ec39ca7c402d8fb9bad86140a15b9503bd0c54484e3f1bbe3dd37ceca \+ --hash=sha256:c674693f055fa2495de12292cb45e9944199d8eaef5a2dec45175c7c61cb73e3 \+ --hash=sha256:c6ed5141a5c7507cf3ee76bd363b0d6f801e3321adc35b5d825a23115faa5465 \+ --hash=sha256:c921ba5c51e4e9f63b8b00267d06566e1f63407408a0496da2d1d0bfc819c7fc \+ --hash=sha256:c9a4b821dc7055bf9e05ff5719e18ec501f75c0f0bbfabd573b277559780833d \+ --hash=sha256:c9f79d5325907f13e1be0b3e4dacc1049d1dffc4aeee3c995284bea5fe0fab7d \+ --hash=sha256:cd312b9692e831d2ffcad61eab31d91d4b4655a962e61de8fb410472cbcd37aa \+ --hash=sha256:cea3f4c1af79af13cdb2da0c028111d8f8522d4f22a000c82385535f24e5cf3a \+ --hash=sha256:cecdd5dfdc87b1fd87dbf81d4b037a544f47f4c744200a67013771682d67686a \+ --hash=sha256:cf9d57306d848218f3601fee7601fab1a327c942d56e2e97610583cb4dd74206 \+ --hash=sha256:d34bbf07dbc7ca5970671b1512e928991fb5e9d95365636c9b2d8b4f53af405e \+ --hash=sha256:d49514be2f28d895c38cf9d2b72d7b9a07d00314519f456c0b50b53cfcf4c785 \+ --hash=sha256:d680fbcb768404c601ecb43519ecd8461f6954cb11c06a78962f666832ccfca8 \+ --hash=sha256:db1d75f6617a49c1c01bc7023713e0ff59ab32c9579ae62a7674c0e34f3b0b0a \+ --hash=sha256:dcb292aa7fe485ceff7af4f92e46c5af397daec5dff64871a528f0fc47a3cc5b \+ --hash=sha256:e07c65f443c887bbcf31cc1771d932ecc192a5273943589b3c7572b749f1ffb2 \+ --hash=sha256:e902da4b04e6b52e5893900d4b8ab46068f75f3561f01bf1080957f9fd932ed6 \+ --hash=sha256:e9308ff8241c532df3f3e570f9a5aeed6c853f888512ba4b75638d7c11c95ef6 \+ --hash=sha256:eb7c9811bfaa8b1ed5ed319f5d370dfbcaa59d52ea64be2a5a85e18195930354 \+ --hash=sha256:ebe6af670449830d6d9b752c256a983291c766a1365ba5d5460048f9e33a7818 \+ --hash=sha256:ed21202aec73cda4d55d1ce57b389aadb90ffb044e6cd1080b8347efe1b1ec84 \+ --hash=sha256:efe0374196335f93b53269acd811b944f2e6bdc88e8894f214bd636455484909 \+ --hash=sha256:f64ec5397ea6a41fc1b4af0380d79b44a755b5531dcaccd9940fb260dca93038 \+ --hash=sha256:f6ac4ef4d82dff54670227a69c67782ae0b811b5cf6b17954f1e8f7502fc0d1d \+ --hash=sha256:f6f0ce10945fab9c4c06ce14e22af9059d1a87493a9af4501a5b0b9187e21cf2 \+ --hash=sha256:f8844cd288697c6425c9beba919302241e3278871dc6519515e72b04e987abcf \+ --hash=sha256:fe0306bd29505a9177aac19f1877174b0e7422c222a59f70b2cd41633448c3dc \+ --hash=sha256:ff3f333630ab480244a1bff72043e511a91eb22e7595dead8653ee5612dd8f3d \+ --hash=sha256:ffecec8eb889b58ba9be5b95fb1cc78e22ea8eedea38e8736a1568fe1979250e+ # via+ # markitdown+ # python-pptx+magika==0.6.3 \+ --hash=sha256:3d9661eedbdf445ac9567e97e7ceefb93545d77a6a32858139ea966b5806fb64 \+ --hash=sha256:7cc52aa7359af861957043e2bf7265ed4741067251c104532765cd668c0c0cb1 \+ --hash=sha256:86901e64b05dde5faff408c9b8245495b2e1fd4c226e3393d3d2a3fee65c504b \+ --hash=sha256:e57f75674447b20cab4db928ae58ab264d7d8582b55183a0b876711c2b2787f3 \+ --hash=sha256:eda443d08006ee495e02083b32e51b98cb3696ab595a7d13900d8e2ef506ec9d+ # via markitdown+mammoth==1.11.0 \+ --hash=sha256:a0f59e442f34d5b6447f4b0999306cbf3e67aaabfa8cb516f878fb1456744637 \+ --hash=sha256:c077ab0d450bd7c0c6ecd529a23bf7e0fa8190c929e28998308ff4eada3f063b+ # via markitdown+markdownify==1.2.2 \+ --hash=sha256:3f02d3cc52714084d6e589f70397b6fc9f2f3a8531481bf35e8cc39f975e186a \+ --hash=sha256:b274f1b5943180b031b699b199cbaeb1e2ac938b75851849a31fd0c3d6603d09+ # via markitdown+markitdown==0.1.6 \+ --hash=sha256:07b2d5bf87b5c53e13a9f2fdc440df8ccc85e26f40c1e557781727b700049775 \+ --hash=sha256:e5bdbaffd971b29598c7c39ef0e9afce2f08c0751fbfa4e4257678ebaf8cfc7e+ # via -r requirements.txt+mpmath==1.3.0 \+ --hash=sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f \+ --hash=sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c+ # via sympy+numpy==2.4.6 \+ --hash=sha256:001fbb8e08d942dd57599e781f2472269ee7f2755fae407b4f67b2f0b17da3f1 \+ --hash=sha256:0280e0356c0829a18d9de1cb7eee50ec22ca639878d7240307ca0943d73cd2c4 \+ --hash=sha256:043191bfa8eab18c776647b62723ac9dddece59743b13f49b2016094129c2b3f \+ --hash=sha256:06ca2f61ec4385a07a6977c55ba998a4466c123642b4a32694d3128fce18c079 \+ --hash=sha256:0a041d3d761dc3c35cc56ce0351506a02bcbc25f7b169f652435141a17db9096 \+ --hash=sha256:0ab0a9c4ffb1a6d95ef519fe4247dba8eb6b18ad93999f76b7f657039acabd47 \+ --hash=sha256:0c9136e14ed34a9e343a31c533d78a9813a69a3148332bce5e9821cb2f996e66 \+ --hash=sha256:110f8b71aacb688ec69062bb7f6938a0f8acb01b7c1c4beb453c65b6d234584d \+ --hash=sha256:112b06a867b235ef466ed3508ddf0238050df9c727cafb5301ac385b899189a1 \+ --hash=sha256:17f9ade344e7d9b464a084d69bcf18fc691cb1db67c62ed80820bf4926d78f0e \+ --hash=sha256:1e254a00cdf42b1e4d5b3d68d33af63268d41340d8885df2ab6470f2e1500147 \+ --hash=sha256:1e978ec1e8bd0e0e4de6bb75de9d30cbb74db6b6a2bb727618613703ca0167dd \+ --hash=sha256:25c692919ac5a01f170a3bfcd62d745b24fd095c353d50812637d6fcab442e75 \+ --hash=sha256:260a5d70215b61ab4fadf5c7baacd64821842975eea312125ed3c39a6391b063 \+ --hash=sha256:2803abfebfc990042cd494d8ce2d5f82e9d847af6d35ec486923aa19dbad5e73 \+ --hash=sha256:29a287e0cf63ff528da061de6b9f64a4618da591ca1046aafc54062e40ca7eab \+ --hash=sha256:29cb7f67d10b479ff07c17d33e39f78c07f71c40ef30d63c153d340e96cd3fb4 \+ --hash=sha256:3213d622a0283a39a93d188f3cf72b26862df52fbb4ca3697f51705016523d41 \+ --hash=sha256:33111801a01c12a8a1e3721f0a9232f8cfc8ae2c6b7098167e6f623c6073f402 \+ --hash=sha256:357cc07a6d7b0b182ff02249616a03742827ebb1277546b5c7cd7f7620a45698 \+ --hash=sha256:38efbc8de75c7a0fc1ac190162d892787f3f47b57cc291231aafee36b80982b7 \+ --hash=sha256:4081eb135ac24158bd51cdfbef16f1c64df7063b1143f24731387137c092bec8 \+ --hash=sha256:40fdc1ae7125e518ea98e53e69a4ebc27e1fd50510c47b7ea130cf21e5e1d42b \+ --hash=sha256:4cfe66903cc32a9921a6733d96b19bb6abf310397581bbad89c228f5abaf0ee8 \+ --hash=sha256:511dbaf848decaaaf4b4ca48032619fb3138710c4bf7da7617765edad1ef96b0 \+ --hash=sha256:55cced7c52e981362f708ad635198e97a752dfba412cc03c23bbf3bd8d5cd662 \+ --hash=sha256:56b39e5e0622a09a25bf5baf62f4bcf0cb8a41ae6e2819cf49bbc5a74c083f91 \+ --hash=sha256:5dbbdb29840ca3d91ee0fece42fc29278886d908280bfec0a5846c6f901a3eb0 \+ --hash=sha256:5f9fb9157b4ce2971008323afe46053787b526ef624fea915b261468a8421a0f \+ --hash=sha256:6180d8b35af935aed8ece3a85e0a43f87393ae0ac87c8d2c8bd2c993f7270ef3 \+ --hash=sha256:68a5124b13fa6cc2086764a20005d30bc0548146f7f5322f02fce212ca14317f \+ --hash=sha256:68bb27509ac1b9a3443094260f6326150663b06abe40b73a2f81160623da5b67 \+ --hash=sha256:6f41ae150c4e32db4f3310cdaf64b1593a03dbabe29eec77fc9b50fe64061df6 \+ --hash=sha256:7265a2f3d436e54ef9f2b52b5c937e6be778781bd97a590319d7348f1c1ca997 \+ --hash=sha256:72fbe16c6fac95aedf5937fa873445cec2110be35d8a4e9433d7501fd98dae6b \+ --hash=sha256:7d92c3819208a60205a12a245c91ad70cb0a85336659b19b834205573ac8456e \+ --hash=sha256:8155154c7c691289fe18f510b5d4657c68c67989f293f0535a91360392ff6538 \+ --hash=sha256:81a1cca95ed5bb92aa8b10dd2cdc9a0d3853a50fad926c28b5d7e8ea54389627 \+ --hash=sha256:89cd468399cfd2504718f0ba50e410dca55a170b61a02ad92bb18c8a65186e93 \+ --hash=sha256:8ad03c0965fb3c692200e74d458ca28c1dbb4ce96f9a479a8aa041ad5fabca02 \+ --hash=sha256:90f9849678c75fe7afa2d348ac842c168b0a4d3d61919687216dfc547976d853 \+ --hash=sha256:948424b06129ce883307e8cff868c31396d8dc7630a59c61d70d98dbe70f222c \+ --hash=sha256:9cd5ffd25db4e7ba6a375693b3fc0fc1791ec636c17db3720da19bde7180ec43 \+ --hash=sha256:a0df0043bdb289bde1f62da130d20df23d58b45429f752bc7a8fc5325a225ecd \+ --hash=sha256:a2c306dea656c12c68f51f4cea133cbe78ca7435eb28c735eac1d3ebe73be6e8 \+ --hash=sha256:a7830bab239b79cda9c08c2da014761cafb48da6150e1da17ac06283f43b6089 \+ --hash=sha256:a7c711e21628b52034bb5ab8d1bce291f752fcc5e92accc615778acee1ff4778 \+ --hash=sha256:aaf159caa35993cb1f56fb9b8e4610d35758e7ca005412eb1daa856a78c9c4b1 \+ --hash=sha256:ae506e6902902557576a26ff33eda8695e7ecb3cb36c3b573a0765dee114ebdb \+ --hash=sha256:b507f5c4c1d508876d1819b6bf9a49d365b96320b5d4993426b33a23ca4b8261 \+ --hash=sha256:bf162abab1c1a736333192707cef898e735a5ca00f38f27eeedf44b39d9e85eb \+ --hash=sha256:c1a2af6c6ef86344a6b0db6b97834208bf598db514f2b155042439b62605601a \+ --hash=sha256:c2d37ab77531417474168eb79d6d80b14f821a966818505d03013d0833edb7a8 \+ --hash=sha256:c4fc99836233ea196540b17ab0983aff60ed07941751930f5f4d05bc3b3b7359 \+ --hash=sha256:d581b735e177fdcdce6fed8e7e8880a3fb6ee4e3653a3ac6af01c6f4c03effc5 \+ --hash=sha256:d6da64deb6b8ed903e7560180a92f2d804ee1ba5eeb849ac2748b8c1aba1f6d7 \+ --hash=sha256:d8e8286dd7cea7895157318d1b91cdacac64c479f3cbc8dce548331728484751 \+ --hash=sha256:ddea102b48f9e339f3948bf22040944184627a30fdf7f858667673b9c5f033c8 \+ --hash=sha256:dfa20cc6ca228e6b155b11da03825975ce66aea520985dbbddf0f2a5a495c605 \+ --hash=sha256:e3e5193ef5a3dc73bceee50f7fdc2c90dbb76c42df8d8fae3d1067a583df579e \+ --hash=sha256:e3eeb0aabd6bd5ce64faae67e9935203a6991b4bc2a485a767fbafb2c5125f45 \+ --hash=sha256:e5805d5a22fd19c8ccff10a9561f9df94436b0545619ea579db2d3c35294bce2 \+ --hash=sha256:e85b752a1e912b70eaad4fafbd4d1238007ab221de2009b9a2f5ae7461239895 \+ --hash=sha256:eaf7fa2de5c0be8ae6ff8e9bea2ccd725e980541244521d8d4b5f3354a27babe \+ --hash=sha256:ebfb099f8dcf083deef3ac1ca4c1503f387cf76296fcb3816b66f5ecb5f54fdb \+ --hash=sha256:ece3d2cfe132e7d51f44a832b303895e6f2d499c5e74dfbdb06ee246147a304a \+ --hash=sha256:ed9749eef4cbd126da3dc1d6bcb3a57f5eb7ac6a6484146bdbf743f552dfc577 \+ --hash=sha256:ede83e07a75dd06bc501566c1eca2afc0d61677c1472ac9ad93fdee6e638a48d \+ --hash=sha256:ef4aea96ce4d3b074422cb4f2f64e216bf9e213004bb58ecfdf50ea02ea8eb9a \+ --hash=sha256:f3a3570c4a2a16746ac2c31a7c7c7b0c186b95ce902e33db6f28094ed7387dda \+ --hash=sha256:f407cb6b8e9d6d8c626bc73c945db1706035af8fd632295547bf1c9e46d092d6 \+ --hash=sha256:f74a575920ab21fe304421a3fc28793d82e299cae9eccb37084e9fc7f3617c20+ # via+ # magika+ # onnxruntime+ # pandas+onnxruntime==1.20.1 \+ --hash=sha256:06bfbf02ca9ab5f28946e0f912a562a5f005301d0c419283dc57b3ed7969bb7b \+ --hash=sha256:0df6f2df83d61f46e842dbcde610ede27218947c33e994545a22333491e72a3b \+ --hash=sha256:19c2d843eb074f385e8bbb753a40df780511061a63f9def1b216bf53860223fb \+ --hash=sha256:22b0655e2bf4f2161d52706e31f517a0e54939dc393e92577df51808a7edc8c9 \+ --hash=sha256:4c4b251a725a3b8cf2aab284f7d940c26094ecd9d442f07dd81ab5470e99b83f \+ --hash=sha256:5eec64c0269dcdb8d9a9a53dc4d64f87b9e0c19801d9321246a53b7eb5a7d1bc \+ --hash=sha256:7b2908b50101a19e99c4d4e97ebb9905561daf61829403061c1adc1b588bc0de \+ --hash=sha256:8508887eb1c5f9537a4071768723ec7c30c28eb2518a00d0adcd32c89dea3221 \+ --hash=sha256:a19bc6e8c70e2485a1725b3d517a2319603acc14c1f1a017dda0afe6d4665b41 \+ --hash=sha256:bb71a814f66517a65628c9e4a2bb530a6edd2cd5d87ffa0af0f6f773a027d99e \+ --hash=sha256:bd386cc9ee5f686ee8a75ba74037750aca55183085bf1941da8efcfe12d5b120 \+ --hash=sha256:bda6aebdf7917c1d811f21d41633df00c58aff2bef2f598f69289c1f1dabc4b3 \+ --hash=sha256:c9158465745423b2b5d97ed25aa7740c7d38d2993ee2e5c3bfacb0c4145c49d8 \+ --hash=sha256:cc01437a32d0042b606f462245c8bbae269e5442797f6213e36ce61d5abdd8cc \+ --hash=sha256:d30367df7e70f1d9fc5a6a68106f5961686d39b54d3221f760085524e8d38e16 \+ --hash=sha256:d3b616bb53a77a9463707bb313637223380fc327f5064c9a782e8ec69c22e6a2 \+ --hash=sha256:d82daaec24045a2e87598b8ac2b417b1cce623244e80e663882e9fe1aae86410 \+ --hash=sha256:e50ba5ff7fed4f7d9253a6baf801ca2883cc08491f9d32d78a80da57256a5439 \+ --hash=sha256:f1f56e898815963d6dc4ee1c35fc6c36506466eff6d16f3cb9848cea4e8c8172 \+ --hash=sha256:f6243e34d74423bdd1edf0ae9596dd61023b260f546ee17d701723915f06a9f7 \+ --hash=sha256:fb44b08e017a648924dbe91b82d89b0c105b1adcfe31e90d1dc06b8677ad37be+ # via magika+openai==2.43.0 \+ --hash=sha256:65a670b54fadf2268c9e1330133373c963eb779ee969e5cbad419ec2c21dce97 \+ --hash=sha256:e74d238200a26868977002190fb6631613480a93dfe0c9c982e77021ed60a017+ # via -r requirements.txt+openpyxl==3.1.5 \+ --hash=sha256:5282c12b107bffeef825f4617dc029afaf41d0ea60823bbb665ef3079dc79de2 \+ --hash=sha256:cf0e3cf56142039133628b5acffe8ef0c12bc902d2aadd3e0fe5878dc08d1050+ # via markitdown+packaging==26.2 \+ --hash=sha256:5fc45236b9446107ff2415ce77c807cee2862cb6fac22b8a73826d0693b0980e \+ --hash=sha256:ff452ff5a3e828ce110190feff1178bb1f2ea2281fa2075aadb987c2fb221661+ # via onnxruntime+pandas==3.0.3 \+ --hash=sha256:0383c72c75cdcca61a9e116e611143902dbfd08bff356829c2f6d1cf40a9ca8c \+ --hash=sha256:05f1f1752b8533ea03f7f39a9c15b1a058d067bb48f4748948e7a8691e0510f2 \+ --hash=sha256:08d789b41f87e0905880e293cedf6197ce71fe67cc081358b1e148a491b9bd13 \+ --hash=sha256:0d589105b3c14645af1738ff279b2995102d8f7a03b0a66dc8d95550eb513e04 \+ --hash=sha256:13fc1e853d9e04743d11ba75a985ccbc2a317fe07d8af61e445a6fd24dacd6a6 \+ --hash=sha256:14da8316da4d0c5a77618425996bfb1248ca87fc2c1486e6fde4652bd18b5824 \+ --hash=sha256:1928e07221f82db493cd4af1e23c1bfca524a19a4699887975bff68f49a72bfb \+ --hash=sha256:261e308dfb22448384b7580cf719d2f998fe2966c92893c3e77d14008af1f066 \+ --hash=sha256:275c14e0fce14a2ec20eee474aecd305478ea3c1e6f6a9d8fe219a165542717e \+ --hash=sha256:335f62418ed562cfc3c49e9e196375c28b729dcef8543abf4f9438e381bf3c76 \+ --hash=sha256:3650109c0f22879df8bd6179ab9ee3d7f1d1d4e7e0094a3f0032d9f51e2e64ac \+ --hash=sha256:39436b377d56d2a2e52d0395bdbee171f01068e99af5250509aceeb929f765c7 \+ --hash=sha256:3c20a521bbb85902f79f7270c80a59e1b5452d96d170c034f207181870f97ac5 \+ --hash=sha256:3e91cec1879ada0624fc3dc9953c5cbd60208e59c0db28f540c5d6d47502422f \+ --hash=sha256:455f6f8139d4282188f526868dbc3c828470e88a3d9d59a891bd46a455f21b98 \+ --hash=sha256:46997386d528eb40376ecd6b033cf4a8a1e5282580f68f43de875b78cba2199d \+ --hash=sha256:4db8c527972a821cf5286b40ccc57642a39bc62e62022b42f99f8a67fca8c3a1 \+ --hash=sha256:4e15135e2ee5df1063313e2425ceef8ac0f4ae775893815b0923651b806a5639 \+ --hash=sha256:51b1fe551acb77dac643c6fda86084d8d446c10fe64b06a9cc29c4cc8540e7f2 \+ --hash=sha256:557409bc4178e70ee8d9ddb494798e51ebf6ea59330f6be22c51bab2a7db6c49 \+ --hash=sha256:5cc09a68b3120e0f54870dede8287a7bb1fa463907e4fcec1ea77cab6179bf7a \+ --hash=sha256:60ae316d3fd75d1858d450d0db0103ea2be3e7d4a95ec2f064f7e2ae63f7b028 \+ --hash=sha256:6674ab18ad8c57802867264b00e15e7bb904700cdd9046e3b2fa1fce237439ea \+ --hash=sha256:67b3b64c11910cfa29f4e94a14d3bff9ee693b6fc76055e7cad549cee0aec5fa \+ --hash=sha256:696a4a00a2a2a35d4e5deb3fc946641b96c944f02230e4f76137fe35d806c4fc \+ --hash=sha256:6dc0b3fd2169c9157deed50b4d519553a3655c8c6a96027136d654592be973a9 \+ --hash=sha256:7e65d5407dc0b394f509699650e4a2ec01c0514f21850f453fa60f3be79a5dbf \+ --hash=sha256:819959dab7bbd0049c15623fbac4e29a191b9528160a61fb1032242d8ced2d9c \+ --hash=sha256:8a1e45c80cceb3b4a21bc5939d52e8cbd8d9b7305309219d59e9754d9ce09e27 \+ --hash=sha256:9c39be2d709d01fa972a0cabc522389fceca4f3969332ba25a7d6c5802cf976a \+ --hash=sha256:9d71c63ae4ebdbf70209742096f1fc46a83a0613c99d4b23766cced9ff8cd62a \+ --hash=sha256:a2d2dff8a04f3917b55ab3910c32990f8ddf7eceba114947838cefa976a68977 \+ --hash=sha256:a4eeb6830daf35a71cc09649bd823e2b542dac246cdee9614c6e4bd65028cd6a \+ --hash=sha256:a55066a0505dae0ba2b50a46637db34b46f9094c65c5d4800794ef6335010938 \+ --hash=sha256:a82d532a3351d435432cd913edbccaf8b8e01d4dd0e5ced5a8d2e8ecd94c7e44 \+ --hash=sha256:b168fc218fd80a6cbdbdbc1a97ddc7889ed057d7eb45f50d866ceab5f39904c4 \+ --hash=sha256:b2c95f8bfc1ee412bf482605d7bfd30c12d1d26bd59fdd91efeef1d4718decb1 \+ --hash=sha256:ba7e08b9ac1d54569cd1e256e3668975ed624d6826f7b68df0342b012007bddb \+ --hash=sha256:bab900348131a7db1f69a7309ef141fd5680f1487094193bcbbb61791573bf8f \+ --hash=sha256:bd3a518890b400d32f9023722dc9a9a5c969f00b415419a3c06c043f09bb5d7d \+ --hash=sha256:c7be265b62cef88e253a941e4698604973736dcfe242fdb5198f0f7bc473cdcc \+ --hash=sha256:d26cbe1fcfc12e8fd900e2454163e466b2d3af84f7c75481df7683ffc073d870 \+ --hash=sha256:d4be06d68f9ddcfc645b87534911da79a8fbffc7573c80e0edcf42a5020624d8 \+ --hash=sha256:d72828c20c6d6e83e1e22a6a3b47b326b71664112fa9705dcbccfd7a39b62085 \+ --hash=sha256:dd1a5d1def6a46002e964510bdc67c368aa0951df5d1d9f8365336f5a1f490cd \+ --hash=sha256:e3a2ec42c98ffa2565a67e08e218d06d72576d758d90facb7c00805194d8f360 \+ --hash=sha256:f8894dc474d648fe7b6ff0ca9b0bd73950d19952bc1a6534540762c5d79d305c \+ --hash=sha256:fed2ff7fd9779120e388e285fc029bd5cf9490cdd2e4166a9ee22c0e49a9ab09+ # via markitdown+pdfminer-six==20260107 \+ --hash=sha256:366585ba97e80dffa8f00cebe303d2f381884d8637af4ce422f1df3ef38111a9 \+ --hash=sha256:96bfd431e3577a55a0efd25676968ca4ce8fd5b53f14565f85716ff363889602+ # via+ # markitdown+ # pdfplumber+pdfplumber==0.11.10 \+ --hash=sha256:7741ea81bf165b474b153e6789d10d18e06b6ddcf3ec84289c3ef2fed6802580 \+ --hash=sha256:b95b2d28c66efb0a794a83b88c6c6aea5987532a445d20a1cbcfa657022e6e57+ # via markitdown+pillow==12.2.0 \+ --hash=sha256:00a2865911330191c0b818c59103b58a5e697cae67042366970a6b6f1b20b7f9 \+ --hash=sha256:01afa7cf67f74f09523699b4e88c73fb55c13346d212a59a2db1f86b0a63e8c5 \+ --hash=sha256:03e7e372d5240cc23e9f07deca4d775c0817bffc641b01e9c3af208dbd300987 \+ --hash=sha256:03f6fab9219220f041c74aeaa2939ff0062bd5c364ba9ce037197f4c6d498cd9 \+ --hash=sha256:042db20a421b9bafecc4b84a8b6e444686bd9d836c7fd24542db3e7df7baad9b \+ --hash=sha256:0538bd5e05efec03ae613fd89c4ce0368ecd2ba239cc25b9f9be7ed426b0af1f \+ --hash=sha256:0a34329707af4f73cf1782a36cd2289c0368880654a2c11f027bcee9052d35dd \+ --hash=sha256:0c838a5125cee37e68edec915651521191cef1e6aa336b855f495766e77a366e \+ --hash=sha256:144748b3af2d1b358d41286056d0003f47cb339b8c43a9ea42f5fea4d8c66b6e \+ --hash=sha256:1610dd6c61621ae1cf811bef44d77e149ce3f7b95afe66a4512f8c59f25d9ebe \+ --hash=sha256:1e1757442ed87f4912397c6d35a0db6a7b52592156014706f17658ff58bbf795 \+ --hash=sha256:22db17c68434de69d8ecfc2fe821569195c0c373b25cccb9cbdacf2c6e53c601 \+ --hash=sha256:25373b66e0dd5905ed63fa3cae13c82fbddf3079f2c8bf15c6fb6a35586324c1 \+ --hash=sha256:2bb4a8d594eacdfc59d9e5ad972aa8afdd48d584ffd5f13a937a664c3e7db0ed \+ --hash=sha256:2c727a6d53cb0018aadd8018c2b938376af27914a68a492f59dfcaca650d5eea \+ --hash=sha256:2d192a155bbcec180f8564f693e6fd9bccff5a7af9b32e2e4bf8c9c69dbad6b5 \+ --hash=sha256:2e589959f10d9824d39b350472b92f0ce3b443c0a3442ebf41c40cb8361c5b97 \+ --hash=sha256:2e5a76d03a6c6dcef67edabda7a52494afa4035021a79c8558e14af25313d453 \+ --hash=sha256:325ca0528c6788d2a6c3d40e3568639398137346c3d6e66bb61db96b96511c98 \+ --hash=sha256:34c0d99ecccea270c04882cb3b86e7b57296079c9a4aff88cb3b33563d95afaa \+ --hash=sha256:390ede346628ccc626e5730107cde16c42d3836b89662a115a921f28440e6a3b \+ --hash=sha256:394167b21da716608eac917c60aa9b969421b5dcbbe02ae7f013e7b85811c69d \+ --hash=sha256:3997232e10d2920a68d25191392e3a4487d8183039e1c74c2297f00ed1c50705 \+ --hash=sha256:3adc9215e8be0448ed6e814966ecf3d9952f0ea40eb14e89a102b87f450660d8 \+ --hash=sha256:3e080565d8d7c671db5802eedfb438e5565ffa40115216eabb8cd52d0ecce024 \+ --hash=sha256:4a6c9fa44005fa37a91ebfc95d081e8079757d2e904b27103f4f5fa6f0bf78c0 \+ --hash=sha256:4bfd07bc812fbd20395212969e41931001fd59eb55a60658b0e5710872e95286 \+ --hash=sha256:4e6c62e9d237e9b65fac06857d511e90d8461a32adcc1b9065ea0c0fa3a28150 \+ --hash=sha256:50d8520da2a6ce0af445fa6d648c4273c3eeefbc32d7ce049f22e8b5c3daecc2 \+ --hash=sha256:51c4167c34b0d8ba05b547a3bb23578d0ba17b80a5593f93bd8ecb123dd336a3 \+ --hash=sha256:56a3f9c60a13133a98ecff6197af34d7824de9b7b38c3654861a725c970c197b \+ --hash=sha256:56b25336f502b6ed02e889f4ece894a72612fe885889a6e8c4c80239ff6e5f5f \+ --hash=sha256:57850958fe9c751670e49b2cecf6294acc99e562531f4bd317fa5ddee2068463 \+ --hash=sha256:58f62cc0f00fd29e64b29f4fd923ffdb3859c9f9e6105bfc37ba1d08994e8940 \+ --hash=sha256:5c0a9f29ca8e79f09de89293f82fc9b0270bb4af1d58bc98f540cc4aedf03166 \+ --hash=sha256:5cdfebd752ec52bf5bb4e35d9c64b40826bc5b40a13df7c3cda20a2c03a0f5ed \+ --hash=sha256:5d04bfa02cc2d23b497d1e90a0f927070043f6cbf303e738300532379a4b4e0f \+ --hash=sha256:5d2fd0fa6b5d9d1de415060363433f28da8b1526c1c129020435e186794b3795 \+ --hash=sha256:62f5409336adb0663b7caa0da5c7d9e7bdbaae9ce761d34669420c2a801b2780 \+ --hash=sha256:632ff19b2778e43162304d50da0181ce24ac5bb8180122cbe1bf4673428328c7 \+ --hash=sha256:6562ace0d3fb5f20ed7290f1f929cae41b25ae29528f2af1722966a0a02e2aa1 \+ --hash=sha256:673aa32138f3e7531ccdbca7b3901dba9b70940a19ccecc6a37c77d5fdeb05b5 \+ --hash=sha256:6a6e67ea2e6feda684ed370f9a1c52e7a243631c025ba42149a2cc5934dec295 \+ --hash=sha256:6a9adfc6d24b10f89588096364cc726174118c62130c817c2837c60cf08a392b \+ --hash=sha256:6bb77b2dcb06b20f9f4b4a8454caa581cd4dd0643a08bacf821216a16d9c8354 \+ --hash=sha256:6e6b2a0c538fc200b38ff9eb6628228b77908c319a005815f2dde585a0664b60 \+ --hash=sha256:71cde9a1e1551df7d34a25462fc60325e8a11a82cc2e2f54578e5e9a1e153d65 \+ --hash=sha256:7371b48c4fa448d20d2714c9a1f775a81155050d383333e0a6c15b1123dda005 \+ --hash=sha256:766cef22385fa1091258ad7e6216792b156dc16d8d3fa607e7545b2b72061f1c \+ --hash=sha256:7b14cc0106cd9aecda615dd6903840a058b4700fcb817687d0ee4fc8b6e389be \+ --hash=sha256:7f84204dee22a783350679a0333981df803dac21a0190d706a50475e361c93f5 \+ --hash=sha256:8023abc91fba39036dbce14a7d6535632f99c0b857807cbbbf21ecc9f4717f06 \+ --hash=sha256:80b2da48193b2f33ed0c32c38140f9d3186583ce7d516526d462645fd98660ae \+ --hash=sha256:8297651f5b5679c19968abefd6bb84d95fe30ef712eb1b2d9b2d31ca61267f4c \+ --hash=sha256:88d387ff40b3ff7c274947ed3125dedf5262ec6919d83946753b5f3d7c67ea4c \+ --hash=sha256:88ddbc66737e277852913bd1e07c150cc7bb124539f94c4e2df5344494e0a612 \+ --hash=sha256:8bd7903a5f2a4545f6fd5935c90058b89d30045568985a71c79f5fd6edf9b91e \+ --hash=sha256:8be29e59487a79f173507c30ddf57e733a357f67881430449bb32614075a40ab \+ --hash=sha256:8c984051042858021a54926eb597d6ee3012393ce9c181814115df4c60b9a808 \+ --hash=sha256:8cbeb542b2ebc6fcdacabf8aca8c1a97c9b3ad3927d46b8723f9d4f033288a0f \+ --hash=sha256:8e9c4f5b3c546fa3458a29ab22646c1c6c787ea8f5ef51300e5a60300736905e \+ --hash=sha256:90e6f81de50ad6b534cab6e5aef77ff6e37722b2f5d908686f4a5c9eba17a909 \+ --hash=sha256:975385f4776fafde056abb318f612ef6285b10a1f12b8570f3647ad0d74b48ec \+ --hash=sha256:9a8a34cc89c67a65ea7437ce257cea81a9dad65b29805f3ecee8c8fe8ff25ffe \+ --hash=sha256:9aba9a17b623ef750a4d11b742cbafffeb48a869821252b30ee21b5e91392c50 \+ --hash=sha256:9f08483a632889536b8139663db60f6724bfcb443c96f1b18855860d7d5c0fd4 \+ --hash=sha256:a4e8f36e677d3336f35089648c8955c51c6d386a13cf6ee9c189c5f5bd713a9f \+ --hash=sha256:a52edc8bfff4429aaabdf4d9ee0daadbbf8562364f940937b941f87a4290f5ff \+ --hash=sha256:a830b1a40919539d07806aa58e1b114df53ddd43213d9c8b75847eee6c0182b5 \+ --hash=sha256:aa88ccfe4e32d362816319ed727a004423aab09c5cea43c01a4b435643fa34eb \+ --hash=sha256:af73337013e0b3b46f175e79492d96845b16126ddf79c438d7ea7ff27783a414 \+ --hash=sha256:b1c1fbd8a5a1af3412a0810d060a78b5136ec0836c8a4ef9aa11807f2a22f4e1 \+ --hash=sha256:b85f66ae9eb53e860a873b858b789217ba505e5e405a24b85c0464822fe88032 \+ --hash=sha256:b86024e52a1b269467a802258c25521e6d742349d760728092e1bc2d135b4d76 \+ --hash=sha256:bd9c0c7a0c681a347b3194c500cb1e6ca9cab053ea4d82a5cf45b6b754560136 \+ --hash=sha256:bfa9c230d2fe991bed5318a5f119bd6780cda2915cca595393649fc118ab895e \+ --hash=sha256:d362d1878f00c142b7e1a16e6e5e780f02be8195123f164edf7eddd911eefe7c \+ --hash=sha256:d5d38f1411c0ed9f97bcb49b7bd59b6b7c314e0e27420e34d99d844b9ce3b6f3 \+ --hash=sha256:dac8d77255a37e81a2efcbd1fc05f1c15ee82200e6c240d7e127e25e365c39ea \+ --hash=sha256:dd025009355c926a84a612fecf58bb315a3f6814b17ead51a8e48d3823d9087f \+ --hash=sha256:deede7c263feb25dba4e82ea23058a235dcc2fe1f6021025dc71f2b618e26104 \+ --hash=sha256:e74473c875d78b8e9d5da2a70f7099549f9eb37ded4e2f6a463e60125bccd176 \+ --hash=sha256:ee3120ae9dff32f121610bb08e4313be87e03efeadfc6c0d18f89127e24d0c24 \+ --hash=sha256:eedf4b74eda2b5a4b2b2fb4c006d6295df3bf29e459e198c90ea48e130dc75c3 \+ --hash=sha256:efd8c21c98c5cc60653bcb311bef2ce0401642b7ce9d09e03a7da87c878289d4 \+ --hash=sha256:f1c943e96e85df3d3478f7b691f229887e143f81fedab9b20205349ab04d73ed \+ --hash=sha256:f278f034eb75b4e8a13a54a876cc4a5ab39173d2cdd93a638e1b467fc545ac43 \+ --hash=sha256:f3f40b3c5a968281fd507d519e444c35f0ff171237f4fdde090dd60699458421 \+ --hash=sha256:f490f9368b6fc026f021db16d7ec2fbf7d89e2edb42e8ec09d2c60505f5729c7 \+ --hash=sha256:fb043ee2f06b41473269765c2feae53fc2e2fbf96e5e22ca94fb5ad677856f06 \+ --hash=sha256:fc3d34d4a8fbec3e88a79b92e5465e0f9b842b628675850d860b8bd300b159f5+ # via+ # pdfplumber+ # python-pptx+protobuf==7.35.1 \+ --hash=sha256:11d6b0ec246892d85215b0a13ca6e0233cf5284b68f0ac02646427f4ff88a799 \+ --hash=sha256:230a75ddfc2de4806e56696ce9640c1cdfdb6543b7cfce98d42a4c0a0e7bdb87 \+ --hash=sha256:24f857477359a85c0c235261b8ba905fd51b2562f4a64ca1df5473f29850cbf6 \+ --hash=sha256:353652e4efd0bca5b5fc2656abf8307ef351f0cf938c9eba09f0e09c20a25c30 \+ --hash=sha256:4bc97768d8fe4ad6743c8a19403e314511ed9f6d13205b687e52421c023ac1b9 \+ --hash=sha256:74758715c53d7158fb76caf4f0cfdacc5329a4b1bb994f865d6cf302d413a1c4 \+ --hash=sha256:b73f9489a4b8b1c9cb1f8ed951c736392592edb24b9d6819f36d2e10b171d5b4 \+ --hash=sha256:ce115a26fe0c39a2c29973d914d327e516a6455464489fe3cd1e51a1b354f81a+ # via onnxruntime+pycparser==3.0 \+ --hash=sha256:600f49d217304a5902ac3c37e1281c9fe94e4d0489de643a9504c5cdfdfc6b29 \+ --hash=sha256:b727414169a36b7d524c1c3e31839a521725078d7b2ff038656844266160a992+ # via cffi+pydantic==2.13.4 \+ --hash=sha256:45a282cde31d808236fd7ea9d919b128653c8b38b393d1c4ab335c62924d9aba \+ --hash=sha256:c40756b57adaa8b1efeeced5c196f3f3b7c435f90e84ea7f443901bec8099ef6+ # via openai+pydantic-core==2.46.4 \+ --hash=sha256:00c603d540afdd6b80eb39f078f33ebd46211f02f33e34a32d9f053bba711de0 \+ --hash=sha256:0186750b482eefa11d7f435892b09c5c606193ef3375bcf94aa00ae6bfb66262 \+ --hash=sha256:041bde0a48fd37cf71cab1c9d56d3e8625a3793fef1f7dd232b3ff37e978ecda \+ --hash=sha256:0c563b08bca408dc7f65f700633d8442fffb2421fc47b8101377e9fd65051ff0 \+ --hash=sha256:0cbe8b01f948de4286c74cdd6c667aceb38f5c1e26f0693b3983d9d74887c65e \+ --hash=sha256:0ce40cd7b21210e99342afafbd4d0f76d784eb5b1d60f3bdc566be4983c6c73b \+ --hash=sha256:0e96592440881c74a213e5ad528e2b24d3d4f940de2766bed9010ab1d9e51594 \+ --hash=sha256:10e17cbb10a330363733efc4d7c4d0dd827ac0909b8f6a6542298fed1ea62f29 \+ --hash=sha256:133878133d271ade3d41d1bfb2a45ec38dbdbda40bc065921c6b04e4630127e2 \+ --hash=sha256:14d4edf427bdcf950a8a02d7cb44a08614388dd6e1bdcbf4f67504fa7887da9c \+ --hash=sha256:14f4c5d6db102bd796a627bbb3a17b4cf4574b9ae861d8b7c9a9661c6dd3362d \+ --hash=sha256:17299feefe090f2caa5b8e37222bb5f663e4935a8bfa6931d4102e5df1a9f398 \+ --hash=sha256:184c081504d17f1c1066e430e117142b2c77d9448a97f7b65c6ac9fd9aee238d \+ --hash=sha256:18e5ceec2ab67e6d5f1a9085e5a24c9c4e2ac4545730bfe668680bca05e555f3 \+ --hash=sha256:19e51f073cd3df251856a8a4189fbdf1de4012c3ebacfb1884f94f1eb406079f \+ --hash=sha256:1a7dd0b3ee80d90150e3495a3a13ac34dbcbfd4f012996a6a1d8900e91b5c0fb \+ --hash=sha256:1d8ba486450b14f3b1d63bc521d410ec7565e52f887b9fb671791886436a42f7 \+ --hash=sha256:2108ba5c1c1eca18030634489dc544844144ee36357f2f9f780b93e7ddbb44b5 \+ --hash=sha256:228ee9bae8bef5b1e97ec58302f80357c37199e0d0a99174e138d28e6957b9d9 \+ --hash=sha256:23ace664830ee0bfe014a0c7bc248b1f7f25ed7ad103852c317624a1083af462 \+ --hash=sha256:2412e734dcb48da14d4e4006b82b46b74f2518b8a26ee7e58c6844a6cd6d03c4 \+ --hash=sha256:29c61fc04a3d840155ff08e475a04809278972fe6aef51e2720554e96367e34b \+ --hash=sha256:2f84c03c8607173d16b5a854ec68a2f9079ae03237a54fb506d13af47e1d018d \+ --hash=sha256:3009f12e4e90b7f88b4f9adb1b0c4a3d58fe7820f3238c190047209d148026df \+ --hash=sha256:3245406455a5d98187ec35530fd772b1d799b26667980872c8d4614991e2c4a2 \+ --hash=sha256:3447661d99f75a3683a4cf5c87da72f2161964611864dbbeac7fbb118bb4bfc0 \+ --hash=sha256:372429a130e469c9cd698925ce5fc50940b7a1336b0d82038e63d5bbc4edc519 \+ --hash=sha256:395aebd9183f9d112f569aeb5b2214d1a10a33bec8456447f7fbdfa51d38d4cd \+ --hash=sha256:3a233125ac121aa3ffba9a2b59edfc4a985a76092dc8279586ab4b71390875e7 \+ --hash=sha256:3be77f45df024d789a672ae34f8b06fb346c4f9f46ea714956660ea4862e89ac \+ --hash=sha256:3bf92c5d0e00fefaab325a4d27828fe6b6e2a21848686b5b60d2d9eeb09d76c6 \+ --hash=sha256:3ecbc122d18468d06ca279dc26a8c2e2d5acb10943bb35e36ae92096dc3b5565 \+ --hash=sha256:3fb702cd90b0446a3a1c5e470bfa0dd23c0233b676a9099ddcc964fa6ca13898 \+ --hash=sha256:428e04521a40150c85216fc8b85e8d39fece235a9cf5e383761238c7fa9b96fb \+ --hash=sha256:432c179df7874eeb73307aad2df0755e1ae0efa61ff0ea89b93e194411ae3928 \+ --hash=sha256:4a05d69cba51d852c5c3e92758653245a50c0b646ced0cf05bd793ed592839d6 \+ --hash=sha256:4c63ebc82684aa89d9a3bcbd13d515b3be44250dc68dd3bd81526c1cb31286c3 \+ --hash=sha256:4fc73cb559bdb54b1134a706a2802a4cddd27a0633f5abb7e53056268751ac6a \+ --hash=sha256:4fcbe087dbc2068af7eda3aa87634eba216dbda64d1ae73c8684b621d33f6596 \+ --hash=sha256:56cb4851bcaf3d117eddcef4fe66afd750a50274b0da8e22be256d10e5611987 \+ --hash=sha256:5855698a4856556d86e8e6cd8434bc3ac0314ee8e12089ae0e143f64c6256e4e \+ --hash=sha256:5a4330cdbc57162e4b3aa303f588ba752257694c9c9be3e7ebb11b4aca659b5d \+ --hash=sha256:5b712b53160b79a5850310b912a5ef8e57e56947c8ad690c227f5c9d7e561712 \+ --hash=sha256:5d5902252db0d3cedf8d4a1bc68f70eeb430f7e4c7104c8c476753519b423008 \+ --hash=sha256:617d7e2ca7dcb8c5cf6bcb8c59b8832c94b36196bbf1cbd1bfb56ed341905edd \+ --hash=sha256:62f875393d7f270851f20523dd2e29f082bcc82292d66db2b64ea71f64b6e1c1 \+ --hash=sha256:633147d34cf4550417f12e2b1a0383973bdf5cdfde212cb09e9a581cf10820be \+ --hash=sha256:66ce7632c22d837c95301830e111ad0128a32b8207533b60896a96c4915192ea \+ --hash=sha256:6b3ace8194b0e5204818c92802dcdca7fc6d88aabbb799d7c795540d9cd6d292 \+ --hash=sha256:6f2eeda33a839975441c86a4119e1383c50b47faf0cbb5176985565c6bb02c33 \+ --hash=sha256:7027560ee92211647d0d34e3f7cd6f50da56399d26a9c8ad0da286d3869a53f3 \+ --hash=sha256:7283d57845ecf5a163403eb0702dfc220cc4fbdd18919cb5ccea4f95ee1cdab4 \+ --hash=sha256:7a5f930472650a82629163023e630d160863fce524c616f4e5186e5de9d9a49b \+ --hash=sha256:7bfb192b3f4b9e8a89b6277b6ce787564f62cfd272055f6e685726b111dc7826 \+ --hash=sha256:811ff8e9c313ab425368bcbb36e5c4ebd7108c2bbf4e4089cfbb0b01eff63fac \+ --hash=sha256:8233f2947cf85404441fd7e0085f53b10c93e0ee78611099b5c7237e36aacbf7 \+ --hash=sha256:82cf5301172168103724d49a1444d3378cb20cdee30b116a1bd6031236298a5d \+ --hash=sha256:8358a950c8909158e3df31538a7e4edc2d7265a7c54b47f0864d9e5bae9dcebf \+ --hash=sha256:85bb3611ff1802f3ee7fdd7dbff26b56f343fb432d57a4728fdd49b6ef35e2f4 \+ --hash=sha256:86e1a4418c6cd97d60c95c71164158eaf7324fae7b0923264016baa993eba6fc \+ --hash=sha256:8b9bab013d1c7a79d3501ff86d0bc9c31bf587db4551677b96bec07df78c6b15 \+ --hash=sha256:8c5dac79fa1614d1e06ca695109c6105923bd9c7d1d6c918d4e637b7e6b32fd3 \+ --hash=sha256:8d0820e8192167f80d88d64038e609c31452eeca865b4e1d9950a27a4609b00b \+ --hash=sha256:8daafc69c93ee8a0204506a3b6b30f586ef54028f52aeeeb5c4cfc5184fd5914 \+ --hash=sha256:9037063db01f09b09e237c282b6792bd4da634b5402c4e7f0c61effed7701a04 \+ --hash=sha256:905a0ed8ea6f2d61c1738835f99b699348d7857379083e5fc497fa0c967a407c \+ --hash=sha256:90884113d8b48f760e9587002789ddd741e76ab9f89518cd1e43b1f1a52ec44b \+ --hash=sha256:91a06d2e259ecfbd8c901d70c3c507900458498142b3026a296b7de4d1322cc9 \+ --hash=sha256:926c9541b14b12b1681dca8a0b75feb510b06c6341b70a8e500c2fdcff837cce \+ --hash=sha256:9401557acd873c3a7f3eb9383edef8ac4968f9510e340f4808d427e75667e7b4 \+ --hash=sha256:9551187363ffc0de2a00b2e47c25aeaeb1020b69b668762966df15fc5659dd5a \+ --hash=sha256:962ccbab7b642487b1d8b7df90ef677e03134cf1fd8880bf698649b22a69371f \+ --hash=sha256:97e7cf2be5c77b7d1a9713a05605d49460d02c6078d38d8bef3cbe323c548424 \+ --hash=sha256:9aa768456404a8bf48a4406685ac2bec8e72b62c69313734fa3b73cf33b3a894 \+ --hash=sha256:9bc519fbf2b7578398853d815009ae5e4d4603d12f4e3f91da8c06852d3da3e9 \+ --hash=sha256:9d56801be94b86a9da183e5f3766e6310752b99ff647e38b09a9500d88e46e76 \+ --hash=sha256:9f444c499b3eefd3a92e348059471ea0c3a6e303d9c1cec09fa748fd9f895201 \+ --hash=sha256:9fa8ae11da9e2b3126c6426f147e0fba88d96d65921799bb30c6abd1cb2c97fb \+ --hash=sha256:a0f62d0a58f4e7da165457e995725421e0064f2255d8eccebc49f41bbc23b109 \+ --hash=sha256:a396dcc17e5a0b164dbe026896245a4fa9ff402edca1dff0be3d53a517f74de4 \+ --hash=sha256:aaa2a54443eff1950ba5ddc6b6ccda0d9c84a364276a62f969bdf2a390650848 \+ --hash=sha256:ad785e92e6dc634c21555edc8bd6b64957ab844541bcb96a1366c202951ae526 \+ --hash=sha256:af8244b2bef6aaad6d92cda81372de7f8c8d36c9f0c3ea36e827c60e7d9467a0 \+ --hash=sha256:b078afbc25f3a1436c7a1d2cd3e322497ee99615ba97c563566fdf46aff1ee01 \+ --hash=sha256:b2f69dec1725e79a012d920df1707de5caf7ed5e08f3be4435e25803efc47458 \+ --hash=sha256:b8458003118a712e66286df6a707db01c52c0f52f7db8e4a38f0da1d3b94fc4e \+ --hash=sha256:bb63e0198ca18aad131c089b9204c23079c3afa95487e561f4c522d519e55aba \+ --hash=sha256:bfec22eab3c8cc2ceec0248aec886624116dc079afa027ecc8ad4a7e62010f8a \+ --hash=sha256:c1747f85cee84c26985853c6f3d9bd3e75da5212912443fa111c113b9c246f39 \+ --hash=sha256:c1b3f518abeca3aa13c712fd202306e145abf59a18b094a6bafb2d2bbf59192c \+ --hash=sha256:c50f2528cf200c5eed56faf3f4e22fcd5f38c157a8b78576e6ba3168ec35f000 \+ --hash=sha256:c68fcd102d71ea85c5b2dfac3f4f8476eff42a9e078fd5faefff6d145063536b \+ --hash=sha256:c7a7bd4e39e8e4c12c39cd480356842b6a8a06e41b23a55a5e3e191718838ddf \+ --hash=sha256:c94f0688e7b8d0a67abf40e57a7eaaecd17cc9586706a31b76c031f63df052b4 \+ --hash=sha256:cbaf13819775b7f769bf4a1f066cb6df7a28d4480081a589828ef190226881cd \+ --hash=sha256:cd2213145bcc2ba85884d0ac63d222fece9209678f77b9b4d76f054c561adb28 \+ --hash=sha256:ce5c1d2a8b27468f433ca974829c44060b8097eedc39933e3c206a90ee49c4a9 \+ --hash=sha256:d396ec2b979760aaf3218e76c24e65bd0aca24983298653b3a9d7a45f9e47b30 \+ --hash=sha256:d51026d73fcfd93610abc7b27789c26b313920fcfb20e27462d74a7f8b06e983 \+ --hash=sha256:d80ee3d731373b24cebbc10d689ca4ee1875caf0d5703a245db18efd4dd37fc1 \+ --hash=sha256:d995260fdf4e1db774581b4900e0f832abe3c7c84996726bbc161b19c8f29e76 \+ --hash=sha256:da4b951fe36dc7c3a1ccb4e3cd1747c3542b8c9ceede8fc86cae054e764485f5 \+ --hash=sha256:daa27d92c36f24388fe3ad306b174781c747627f134452e4f128ea00ce1fe8c4 \+ --hash=sha256:db06ffe51636ffe9ca531fe9023dd64bdd794be8754cb5df57c5498ae5b518a7 \+ --hash=sha256:e0d65b8c354be7fb5f720c3caa8bc940bc2d20ce749c8e06135f07f8ed95dd7c \+ --hash=sha256:e68b7a074f65a2fd746c52a7ce6142ab7006074ac269ace0c25cd8ba171f8066 \+ --hash=sha256:e739fee756ba1010f8bcccb534252e85a35fe45ae92c295a06059ce58b74ccd3 \+ --hash=sha256:e846ae7835bf0703ae43f534ab79a867146dadd59dc9ca5c8b53d5c8f7c9ef02 \+ --hash=sha256:e9c26f834c65f5752f3f06cb08cb86a913ceb7274d0db6e267808a708b46bc89 \+ --hash=sha256:ea793e075b70290d89d8142074262885d3f7da19634845135751bd6344f73b50 \+ --hash=sha256:f027324c56cd5406ca49c124b0db10e56c69064fec039acc571c29020cc87c76 \+ --hash=sha256:f13a646d65d09fbf1bc6b3a9635d30095c8e7e5cc419ff35ecc563c5fd04cd49 \+ --hash=sha256:f47286a97f0bc9b8859519809077b91b2cefe4ae47fcbf5e466a009c1c5d742b \+ --hash=sha256:f747929cf940cddb5b3668a390056ddd5ba2e5010615ea2dcf4f9c4f3ab8791d \+ --hash=sha256:f99626688942fb746e545232e7726926f3be91b5975f8b55327665fafda991c7 \+ --hash=sha256:f9fa868638bf362d3d138ea55829cefb3d5f4b0d7f142234382a15e2485dbec4 \+ --hash=sha256:fbdb89b3e1c94a30cc5edfce477c6e6a5dc4d8f84665b455c27582f211a1c72c \+ --hash=sha256:fc010ab034c8c7452522748bf937df58020d256ccae0874463d1f4d01758af8e \+ --hash=sha256:fc3e9034a63de20e15e8ade85358bc6efc614008cab72898b4b4952bea0509ff \+ --hash=sha256:fd8b3d9fd264be37976686c7f65cd52a83f5e84f4bfd2adf9c1d469676bbb6ae+ # via pydantic+pypdfium2==5.10.1 \+ --hash=sha256:09fda0609dc4749c9865a0315c447d6f2583a580693bcabd69980d3fbb22ad51 \+ --hash=sha256:0de53d2710ca9509fc2812340acc57c3f043697609068592d87de654f8cabf44 \+ --hash=sha256:10a26ce04795f8ec079e81c707fcb5737061e8a78025babc3d6e36642e9c903a \+ --hash=sha256:139a6387a3a2652f288e53164268bb03af4fa221d78484ee18407053a60082a3 \+ --hash=sha256:13abf7a9f5e0ddebc8bbcccea5f13ae5abe8a298ea219e125b0fc24c1d2171b4 \+ --hash=sha256:172ff3e10358d66456e27fb0b8b5098e28ec24e51072eb4b5b86077d550e21bb \+ --hash=sha256:3ba127750bc3f4161461538d532d74491cd976f584f1753a6cee9cb821338ec1 \+ --hash=sha256:58da5b51fb7884c7d21a05062ab13edb011d1a08dfd9694f3d5d685df62796b9 \+ --hash=sha256:610e14c37d2090b826dccc0604fc7e7612c0ce591190780ae228abdb9abb971e \+ --hash=sha256:6b01adcfe9aaf7a635a59bed5687fd4fd7b0da292664f050d4ebd2bfa5c70584 \+ --hash=sha256:80f30517ee089dfbbc6e9de6da365b6e8c0ce8f80c40b7d4025a3b1d3bbd8a70 \+ --hash=sha256:8702bb4f01ddfc8e7757b41b4c2c8392ac17c9f0234476e1e69672ea7c6d6aa0 \+ --hash=sha256:8947fa3cd808da33960bdf8ff9e5247aa94ccd94f0b09bb3402e99498d83bcc9 \+ --hash=sha256:a0dc52b56631e2f7edcdb22bae3b155aa840bec32c5bd05781e90baaecee88e7 \+ --hash=sha256:ad5f5de15febb788c6eb3853e58aceda9cd8c5187c92472abaeecf9558deb0cf \+ --hash=sha256:be6d2a8d1bcfd777188e7aa55a25c83f34d54e8350ad8810fb32017787d9b0d9 \+ --hash=sha256:cf4d2527f79f31c550490cc74c9f32e19385a944630a3ef4cd4d9b6f961fbf77 \+ --hash=sha256:d04f2050b6b32bb18624688b600543342a4ab3aacf64bf66521a5af72bbc7de1 \+ --hash=sha256:e3301c2f7a66fb8cb57dba857d0c9e90215e178f6602a87c5a306cd98513dab8 \+ --hash=sha256:ebb9e63f92d15fc41b359fe7a187233dfae37548800e1fa09cb2fc466ac89951 \+ --hash=sha256:f257d2011eb43c846b7e9f5a802e28646b29732763e4a35dd6ca76f9be580538 \+ --hash=sha256:f2803020952afa57e1e148adc19369b835154e1fa251a1ca85008ab6466a710f+ # via pdfplumber+pyreadline3==3.5.6 \+ --hash=sha256:61e53218b99656091ddb077df9e71f25850e72e030b6183b39c9b7e6e4f4a9bf \+ --hash=sha256:8449b734232e42a5dcd74048e39b60db2839a4c38cf3ae2bf7707d58b5389c0d+ # via humanfriendly+python-dateutil==2.9.0.post0 \+ --hash=sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3 \+ --hash=sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427+ # via pandas+python-dotenv==1.2.2 \+ --hash=sha256:1d8214789a24de455a8b8bd8ae6fe3c6b69a5e3d64aa8a8e5d68e694bbcb285a \+ --hash=sha256:2c371a91fbd7ba082c2c1dc1f8bf89ca22564a087c2c287cd9b662adde799cf3+ # via magika+python-pptx==1.0.2 \+ --hash=sha256:160838e0b8565a8b1f67947675886e9fea18aa5e795db7ae531606d68e785cba \+ --hash=sha256:479a8af0eaf0f0d76b6f00b0887732874ad2e3188230315290cd1f9dd9cc7095+ # via markitdown+requests==2.34.2 \+ --hash=sha256:2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0 \+ --hash=sha256:f288924cae4e29463698d6d60bc6a4da69c89185ad1e0bcc4104f584e960b9ed+ # via markitdown+six==1.17.0 \+ --hash=sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274 \+ --hash=sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81+ # via+ # markdownify+ # python-dateutil+sniffio==1.3.1 \+ --hash=sha256:2f6da418d1f1e0fddd844478f41680e794e6051915791a034ff65e5f100525a2 \+ --hash=sha256:f4324edc670a0f49750a81b895f35c3adb843cca46f0530f79fc1babb23789dc+ # via openai+soupsieve==2.8.4 \+ --hash=sha256:e121fd02e975c695e4e9e8774a5ee35d74714b59307868dcc5319ad2d9e3328e \+ --hash=sha256:e7e6b0769c8f51ed59acab6e994b00621096cfb1c640a7509295987388fbaf65+ # via beautifulsoup4+sympy==1.14.0 \+ --hash=sha256:d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517 \+ --hash=sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5+ # via onnxruntime+tqdm==4.68.3 \+ --hash=sha256:00dfa48452b6b6cfae3dd9885636c23d3422d1ec97c66d96818cbd5e0821d482 \+ --hash=sha256:39832cc2def2789a6f29df83f172db7416cea70052c0907a57801c5f2fdccb03+ # via openai+typing-extensions==4.15.0 \+ --hash=sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466 \+ --hash=sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548+ # via+ # anyio+ # beautifulsoup4+ # openai+ # pydantic+ # pydantic-core+ # python-pptx+ # typing-inspection+typing-inspection==0.4.2 \+ --hash=sha256:4ed1cacbdc298c220f1bd249ed5287caa16f34d44ef4e9c3d0cbad5b521545e7 \+ --hash=sha256:ba561c48a67c5958007083d386c3295464928b01faa735ab8547c5692e87f464+ # via pydantic+tzdata==2026.2 \+ --hash=sha256:9173fde7d80d9018e02a662e168e5a2d04f87c41ea174b139fbef642eda62d10 \+ --hash=sha256:bbe9af844f658da81a5f95019480da3a89415801f6cc966806612cc7169bffe7+ # via pandas+urllib3==2.7.0 \+ --hash=sha256:231e0ec3b63ceb14667c67be60f2f2c40a518cb38b03af60abc813da26505f4c \+ --hash=sha256:9fb4c81ebbb1ce9531cce37674bbc6f1360472bc18ca9a553ede278ef7276897+ # via requests+xlrd==2.0.2 \+ --hash=sha256:08b5e25de58f21ce71dc7db3b3b8106c1fa776f3024c54e45b45b374e89234c9 \+ --hash=sha256:ea762c3d29f4cca48d82df517b6d89fbce4db3107f9d78713e48cd321d5c9aa9+ # via markitdown+xlsxwriter==3.2.9 \+ --hash=sha256:254b1c37a368c444eac6e2f867405cc9e461b0ed97a3233b2ac1e574efb4140c \+ --hash=sha256:9a5db42bc5dff014806c58a20b9eae7322a134abb6fce3c92c181bfb275ec5b3+ # via python-pptxdiff --git a/app/src-tauri/resources/sidecar/requirements.txt b/app/src-tauri/resources/sidecar/requirements.txtnew file mode 100644index 0000000..7a8eb9a--- /dev/null+++ b/app/src-tauri/resources/sidecar/requirements.txt@@ -0,0 +1,2 @@+markitdown[pdf,docx,pptx,xlsx,xls]+openaidiff --git a/app/src-tauri/resources/sidecar/worker.py b/app/src-tauri/resources/sidecar/worker.pynew file mode 100644index 0000000..8834824--- /dev/null+++ b/app/src-tauri/resources/sidecar/worker.py@@ -0,0 +1,168 @@+"""+Conversion worker subprocess — spawned once per convert-one request.++Reads one JSON params line from stdin.+Writes JSON lines to stdout:+ progress: {"type":"progress","stage":"<stage>","frac":<float|null>,"heartbeat":<unix_ts>}+ result: {"type":"result","ok":<bool>,...}++Designed to be killed cleanly by SIGTERM / terminate() from the sidecar.+The MarkItDown call runs in a daemon thread so terminate() stops the process+immediately regardless of where the conversion is.+"""+import json+import os+import sys+import threading+import time+++def _build_llm_client(cfg: dict | None):+ """Build an OpenAI-compatible client from the LLM config dict, or None."""+ if not cfg or cfg.get("mode", "off") == "off":+ return None+ try:+ import openai+ base_url = cfg.get("base_url", "")+ key = cfg.get("key", "") or "local"+ if cfg.get("api_type") == "anthropic":+ # Anthropic's API is not OpenAI-compatible (no /v1/chat/completions).+ # MarkItDown expects an openai.OpenAI client for image description, so+ # image description is not available with Anthropic in v1. Return None+ # so MarkItDown runs without LLM — the text result is never lost.+ return None+ # Local servers (Ollama) typically expose the OpenAI-compatible API under+ # /v1, but the user's configured base URL often omits it (e.g.+ # "http://localhost:11434"). The OpenAI SDK appends "/chat/completions"+ # to whatever base it's given, so ensure a /v1 suffix for local mode.+ # LM Studio and hosted APIs already include /v1, so don't double it.+ if cfg.get("mode") == "local" and base_url:+ b = base_url.rstrip("/")+ base_url = b if b.endswith("/v1") else b + "/v1"+ return openai.OpenAI(+ base_url=base_url or "http://localhost:11434/v1",+ api_key=key or "local",+ )+ except Exception:+ return None+++def _llm_model(cfg: dict | None) -> str | None:+ if not cfg:+ return None+ return cfg.get("model") or None+++def _write(obj: dict) -> None:+ sys.stdout.write(json.dumps(obj) + "\n")+ sys.stdout.flush()+++def _progress(stage: str, frac: float | None = None) -> None:+ _write({+ "type": "progress",+ "stage": stage,+ "frac": frac,+ "heartbeat": int(time.time()),+ })+++def main() -> None:+ raw = sys.stdin.readline()+ try:+ params = json.loads(raw)+ except (json.JSONDecodeError, ValueError):+ _write({"type": "result", "ok": False, "error": {+ "code": "INTERNAL_ERROR",+ "title": "Worker received bad params",+ "detail": "Could not parse worker params.",+ "suggested_action": "Restart the app.",+ }})+ return++ path: str = params.get("path", "")+ fmt: str = params.get("fmt", "")+ converter_path: str = params.get("converter_path", "")++ _progress("extracting")++ llm_cfg: dict | None = params.get("llm")+ llm_client = _build_llm_client(llm_cfg) if llm_cfg else None++ result_holder: dict = {}++ def run() -> None:+ try:+ from markitdown import MarkItDown+ md = MarkItDown(llm_client=llm_client, llm_model=_llm_model(llm_cfg)) if llm_client else MarkItDown()+ try:+ r = md.convert(path)+ except UnicodeDecodeError:+ # MarkItDown guessed the wrong encoding (it samples the start of the+ # file). Retry forcing UTF-8 via convert_stream so non-ASCII content+ # (Arabic, accents, etc.) decodes correctly.+ from markitdown import StreamInfo+ ext = os.path.splitext(path)[1]+ md2 = MarkItDown(llm_client=llm_client, llm_model=_llm_model(llm_cfg)) if llm_client else MarkItDown()+ with open(path, "rb") as f:+ r = md2.convert_stream(+ f, stream_info=StreamInfo(extension=ext, charset="utf-8")+ )+ result_holder["markdown"] = r.text_content or ""+ except Exception as exc: # noqa: BLE001+ if llm_client:+ # Fail soft: retry without LLM so the text result is never lost.+ # Scrub the API key from the exception string — some OpenAI-compat+ # servers echo request headers in error bodies. Only scrub when+ # the key is non-empty (local mode sends key=""; str.replace("",+ # "[key]") would insert [key] between every character).+ _key = llm_cfg.get("key", "")+ safe_exc = str(exc).replace(_key, "[key]") if _key else str(exc)+ try:+ from markitdown import MarkItDown as _MD+ r2 = _MD().convert(path)+ result_holder["markdown"] = r2.text_content or ""+ result_holder["llm_notice"] = f"LLM image description unavailable: {safe_exc}"+ return+ except Exception as exc2: # noqa: BLE001+ result_holder["error"] = f"LLM failed ({safe_exc}); fallback also failed ({exc2})"+ else:+ result_holder["error"] = str(exc)++ t = threading.Thread(target=run, daemon=True)+ t.start()++ # Join in 10 s slices; send heartbeats so sidecar knows we're alive.+ while t.is_alive():+ t.join(timeout=10.0)+ if t.is_alive():+ _progress("extracting")++ if "error" in result_holder:+ _write({"type": "result", "ok": False, "error": {+ "code": "CONVERSION_FAILED",+ "title": "Conversion failed",+ "detail": result_holder["error"],+ "suggested_action": (+ "The file may be corrupted or contain content that can't be extracted. "+ "Try another file."+ ),+ }})+ else:+ warnings: list[str] = []+ if notice := result_holder.get("llm_notice"):+ warnings.append(notice)+ if not result_holder["markdown"].strip():+ warnings.append("No text could be extracted from this file.")+ _write({"type": "result", "ok": True, "result": {+ "markdown": result_holder["markdown"],+ "meta": {+ "detected_format": fmt,+ "converter_path": converter_path,+ "warnings": warnings,+ },+ }})+++if __name__ == "__main__":+ main()diff --git a/app/src-tauri/src/bootstrap.rs b/app/src-tauri/src/bootstrap.rsnew file mode 100644index 0000000..705f97f--- /dev/null+++ b/app/src-tauri/src/bootstrap.rs@@ -0,0 +1,673 @@+use std::fs;+use std::path::{Path, PathBuf};+use tauri::{AppHandle, Emitter, Manager};++use crate::ipc::{DownloadDetail, ProgressPayload};++// ── Platform constants ─────────────────────────────────────────────────────++#[cfg(target_os = "windows")]+mod platform {+ pub const UV_URL: &str = "https://github.com/astral-sh/uv/releases/download/0.5.11/uv-x86_64-pc-windows-msvc.zip";+ pub const UV_SHA256: &str = "3e8203e6434b45427f20824419f8d8d53f970a76d94ccdcad07f8498fa01a9d0";+ pub const UV_ARCHIVE: &str = "uv.zip";+ pub const UV_BIN: &str = "uv.exe";+ pub const PYTHON_BIN: &str = "Scripts/python.exe";+ pub const UV_LABEL: &str = "uv 0.5.11 — Python package manager (Windows x64)";+}++#[cfg(all(target_os = "macos", target_arch = "aarch64"))]+mod platform {+ pub const UV_URL: &str = "https://github.com/astral-sh/uv/releases/download/0.5.11/uv-aarch64-apple-darwin.tar.gz";+ pub const UV_SHA256: &str = "695f3640d5b1a4e28de7e36e3a2e14072852dcc6c70bf9e4deec6ada00d516b4";+ pub const UV_ARCHIVE: &str = "uv.tar.gz";+ pub const UV_BIN: &str = "uv";+ pub const PYTHON_BIN: &str = "bin/python";+ pub const UV_LABEL: &str = "uv 0.5.11 — Python package manager (macOS arm64)";+}++#[cfg(all(target_os = "macos", target_arch = "x86_64"))]+mod platform {+ pub const UV_URL: &str = "https://github.com/astral-sh/uv/releases/download/0.5.11/uv-x86_64-apple-darwin.tar.gz";+ pub const UV_SHA256: &str = "7e23d1d892c23f9e74245c4fd3d3e246438ce9b34460f85eee61f784de137b0b";+ pub const UV_ARCHIVE: &str = "uv.tar.gz";+ pub const UV_BIN: &str = "uv";+ pub const PYTHON_BIN: &str = "bin/python";+ pub const UV_LABEL: &str = "uv 0.5.11 — Python package manager (macOS x64)";+}++// ── State helpers ──────────────────────────────────────────────────────────++#[derive(serde::Serialize, serde::Deserialize, Clone, Default)]+pub struct OptionalEngineState {+ #[serde(default)]+ pub status: String, // "not_installed" | "installed" | "failed"+ #[serde(default)]+ pub error: Option<String>,+}++#[derive(serde::Serialize, serde::Deserialize, Default)]+struct OptionalEnginesState {+ #[serde(default)]+ ocr: OptionalEngineState,+ #[serde(default)]+ audio: OptionalEngineState,+}++#[derive(serde::Serialize, serde::Deserialize)]+struct ProvisionState {+ status: String,+ version: String,+ #[serde(default)]+ optional: OptionalEnginesState,+}++fn emit(app: &AppHandle, step: &str, message: &str, pct: f32) {+ let _ = app.emit(+ "provision:progress",+ ProgressPayload {+ step: step.to_string(),+ message: message.to_string(),+ pct,+ detail: None,+ },+ );+}++/// Emit a progress event carrying live download metrics (label + bytes + speed).+fn emit_detail(+ app: &AppHandle,+ step: &str,+ message: &str,+ pct: f32,+ detail: DownloadDetail,+) {+ let _ = app.emit(+ "provision:progress",+ ProgressPayload {+ step: step.to_string(),+ message: message.to_string(),+ pct,+ detail: Some(detail),+ },+ );+}++pub fn app_data_dir(app: &AppHandle) -> PathBuf {+ app.path().app_data_dir().expect("app data dir unavailable")+}++pub fn is_provisioned(app: &AppHandle) -> bool {+ let path = app_data_dir(app).join(".provision-state.json");+ fs::read_to_string(path)+ .ok()+ .and_then(|s| serde_json::from_str::<ProvisionState>(&s).ok())+ .map(|s| s.status == "ready")+ .unwrap_or(false)+}++fn read_state(app: &AppHandle) -> ProvisionState {+ let path = app_data_dir(app).join(".provision-state.json");+ fs::read_to_string(path)+ .ok()+ .and_then(|s| serde_json::from_str::<ProvisionState>(&s).ok())+ .unwrap_or_else(|| ProvisionState {+ status: "not_provisioned".into(),+ version: env!("CARGO_PKG_VERSION").to_string(),+ optional: OptionalEnginesState::default(),+ })+}++fn write_state(app: &AppHandle, state: &ProvisionState) -> Result<(), String> {+ let dir = app_data_dir(app);+ fs::create_dir_all(&dir).map_err(|e| {+ format!(+ "Cannot create app data folder at {}.\n\nCheck that you have write permission.\n\nDetail: {e}",+ dir.display()+ )+ })?;+ // Atomic write: write to .tmp then rename. A crash mid-write won't leave a+ // truncated state file that forces a full re-provision.+ let final_path = dir.join(".provision-state.json");+ let tmp_path = dir.join(".provision-state.json.tmp");+ let json = serde_json::to_string(state)+ .map_err(|e| format!("State serialise error: {e}"))?;+ fs::write(&tmp_path, json.as_bytes())+ .map_err(|e| format!("Cannot write setup state: {e}"))?;+ fs::rename(&tmp_path, &final_path)+ .map_err(|e| format!("Cannot finalise setup state: {e}"))+}++fn set_state(app: &AppHandle, status: &str) -> Result<(), String> {+ let mut state = read_state(app);+ state.status = status.to_string();+ state.version = env!("CARGO_PKG_VERSION").to_string();+ write_state(app, &state)+}++fn emit_engine(app: &AppHandle, engine: &str, step: &str, message: &str, pct: f32) {+ use crate::ipc::EngineInstallProgress;+ let _ = app.emit("engine:install-progress", EngineInstallProgress {+ engine: engine.to_string(),+ step: step.to_string(),+ message: message.to_string(),+ pct,+ });+}++// ── Public API ─────────────────────────────────────────────────────────────++pub fn optional_engine_status(app: &AppHandle, engine: &str) -> OptionalEngineState {+ let state = read_state(app);+ match engine {+ "ocr" => state.optional.ocr,+ "audio" => state.optional.audio,+ _ => OptionalEngineState::default(),+ }+}++pub async fn install_optional_engine(+ app: AppHandle,+ engine: String,+) -> Result<(), String> {+ let lock_name = match engine.as_str() {+ "ocr" => "requirements-ocr.lock",+ "audio" => "requirements-audio.lock",+ other => return Err(format!("Unknown engine: {other}")),+ };++ let data_dir = app_data_dir(&app);+ let bin_dir = data_dir.join("bin");+ let venv_dir = data_dir.join("venv");+ let uv_path = bin_dir.join(platform::UV_BIN);++ if !uv_path.exists() {+ return Err("Setup tools not found. Restart the app to re-provision.".to_string());+ }++ // Hash-pinned engine lock (same supply-chain posture as the core install).+ let lock_path = get_sidecar_resource(&app, lock_name)?;++ // Mark as in-progress in provision state.+ {+ let mut state = read_state(&app);+ let slot = match engine.as_str() {+ "ocr" => &mut state.optional.ocr,+ "audio" => &mut state.optional.audio,+ _ => unreachable!(),+ };+ *slot = OptionalEngineState { status: "installing".into(), error: None };+ write_state(&app, &state)?;+ }++ let label = match engine.as_str() {+ "ocr" => "OCR engine (RapidOCR + pypdfium2)",+ "audio" => "audio engine (faster-whisper)",+ _ => "engine",+ };+ emit_engine(&app, &engine, "installing", &format!("Installing {label}…"), 0.1);++ let python = venv_dir.join(platform::PYTHON_BIN);+ let uv2 = uv_path.clone();+ let lock = lock_path.clone();+ let result = tokio::task::spawn_blocking(move || {+ let mut cmd = std::process::Command::new(&uv2);+ cmd.args([+ "pip", "install", "--python", &python.to_string_lossy(),+ "--require-hashes", "-r", &lock.to_string_lossy(),+ ]);+ crate::hide_console(&mut cmd);+ cmd.output()+ .map_err(|e| format!("Could not run package installer: {e}"))+ })+ .await+ .map_err(|e| format!("Internal error: {e}"))??;++ if result.status.success() {+ let mut state = read_state(&app);+ let slot = match engine.as_str() {+ "ocr" => &mut state.optional.ocr,+ "audio" => &mut state.optional.audio,+ _ => unreachable!(),+ };+ *slot = OptionalEngineState { status: "installed".into(), error: None };+ write_state(&app, &state)?;+ emit_engine(&app, &engine, "installed", &format!("{label} installed."), 1.0);+ Ok(())+ } else {+ let stderr = String::from_utf8_lossy(&result.stderr).to_string();+ let low = stderr.to_lowercase();+ let msg = if low.contains("network") || low.contains("timeout")+ || low.contains("connection") || low.contains("resolve")+ {+ format!("Could not download packages — check your internet connection.\n\nDetail: {stderr}")+ } else {+ format!("Installation failed.\n\nDetail: {stderr}")+ };+ let mut state = read_state(&app);+ let slot = match engine.as_str() {+ "ocr" => &mut state.optional.ocr,+ "audio" => &mut state.optional.audio,+ _ => unreachable!(),+ };+ *slot = OptionalEngineState { status: "failed".into(), error: Some(msg.clone()) };+ write_state(&app, &state)?;+ Err(msg)+ }+}++// ── Public API ─────────────────────────────────────────────────────────────++pub async fn provision(app: AppHandle, force: bool) -> Result<(), String> {+ let data_dir = app_data_dir(&app);+ let bin_dir = data_dir.join("bin");+ let venv_dir = data_dir.join("venv");++ if force {+ // Best-effort cleanup; on Windows some files may be locked by a running+ // sidecar. Surface the error so the user knows to close the app and retry+ // rather than silently rebuilding on top of a half-removed venv.+ if let Err(e) = fs::remove_dir_all(&venv_dir) {+ if venv_dir.exists() {+ return Err(format!(+ "Could not remove the old Python environment (files may be in use).\n\nClose the app fully and try again.\n\nDetail: {e}"+ ));+ }+ }+ if let Err(e) = fs::remove_dir_all(&bin_dir) {+ if bin_dir.exists() {+ return Err(format!(+ "Could not remove old setup tools.\n\nClose the app fully and try again.\n\nDetail: {e}"+ ));+ }+ }+ }++ set_state(&app, "provisioning")?;++ // Step 1 — download uv+ emit(&app, "downloading_uv", "Downloading setup tools…", 0.05);+ let uv_path = download_uv(&app, &bin_dir).await.map_err(|e| {+ format!("Could not download setup tools.\n\nCheck your internet connection and try again.\n\nDetail: {e}")+ })?;+ emit(&app, "downloading_uv", "Setup tools ready.", 0.2);++ // Step 2 — create Python 3.12 venv (uv downloads Python automatically)+ emit(&app, "creating_env", "Setting up Python 3.12…", 0.25);+ let uv = uv_path.clone();+ let venv = venv_dir.clone();+ let app_venv = app.clone();+ tokio::task::spawn_blocking(move || create_venv(&app_venv, &uv, &venv))+ .await+ .map_err(|e| format!("Internal error: {e}"))??;+ emit(&app, "creating_env", "Python environment ready.", 0.45);++ // Step 3 — install packages+ emit(+ &app,+ "installing_packages",+ "Installing packages — this takes about a minute…",+ 0.5,+ );+ let requirements = get_requirements_path(&app)?;+ let uv2 = uv_path.clone();+ let venv2 = venv_dir.clone();+ let app_pkgs = app.clone();+ tokio::task::spawn_blocking(move || install_packages(&app_pkgs, &uv2, &venv2, &requirements))+ .await+ .map_err(|e| format!("Internal error: {e}"))??;+ emit(&app, "installing_packages", "Packages installed.", 0.9);++ set_state(&app, "ready")?;+ emit(&app, "done", "Ready.", 1.0);+ Ok(())+}++pub fn python_path(app: &AppHandle) -> PathBuf {+ app_data_dir(app)+ .join("venv")+ .join(platform::PYTHON_BIN)+}++// ── Download ───────────────────────────────────────────────────────────────++async fn download_uv(app: &AppHandle, bin_dir: &Path) -> Result<PathBuf, String> {+ fs::create_dir_all(bin_dir).map_err(|e| e.to_string())?;++ let uv_path = bin_dir.join(platform::UV_BIN);+ if uv_path.exists() {+ // Validate the cached binary isn't a zero-byte/corrupt leftover from an+ // interrupted download. If validation fails, re-download.+ let valid = std::fs::metadata(&uv_path)+ .map(|m| m.len() > 1024)+ .unwrap_or(false);+ if valid {+ return Ok(uv_path);+ }+ }++ let client = reqwest::Client::builder()+ .timeout(std::time::Duration::from_secs(120))+ .build()+ .map_err(|e| e.to_string())?;++ let mut resp = client+ .get(platform::UV_URL)+ .send()+ .await+ .map_err(|e| e.to_string())?+ .error_for_status()+ .map_err(|e| e.to_string())?;++ let total = resp.content_length();+ let mut bytes: Vec<u8> = Vec::with_capacity(total.unwrap_or(0) as usize);++ // Stream the body chunk-by-chunk so we can report live bytes + speed. We map+ // download progress onto the 0.05–0.20 slice of the overall provisioning bar.+ use std::time::Instant;+ let started = Instant::now();+ let mut last_emit = Instant::now();+ // Rolling-window speed: bytes received since the previous sample.+ let mut window_start = Instant::now();+ let mut window_bytes: u64 = 0;+ let mut speed: f64 = 0.0;++ while let Some(chunk) = resp.chunk().await.map_err(|e| e.to_string())? {+ bytes.extend_from_slice(&chunk);+ window_bytes += chunk.len() as u64;++ // Recompute speed over a ~0.4s window so the number is responsive but not jumpy.+ let win = window_start.elapsed().as_secs_f64();+ if win >= 0.4 {+ speed = window_bytes as f64 / win;+ window_start = Instant::now();+ window_bytes = 0;+ }++ // Throttle UI events to ~10/sec.+ if last_emit.elapsed().as_millis() >= 100 {+ let received = bytes.len() as u64;+ let frac = total+ .map(|t| if t > 0 { received as f32 / t as f32 } else { 0.0 })+ .unwrap_or(0.0)+ .clamp(0.0, 1.0);+ emit_detail(+ app,+ "downloading_uv",+ "Downloading setup tools…",+ 0.05 + frac * 0.15,+ DownloadDetail {+ label: platform::UV_LABEL.to_string(),+ received,+ total,+ // Fall back to the running average before the first window closes.+ speed: if speed > 0.0 {+ speed+ } else {+ received as f64 / started.elapsed().as_secs_f64().max(0.001)+ },+ },+ );+ last_emit = Instant::now();+ }+ }++ // Integrity check: verify SHA256 against the pinned hash. An empty constant+ // means the hash hasn't been filled in yet (verification skipped). Pinning the+ // version URL is the primary defense against supply-chain attacks.+ if !platform::UV_SHA256.is_empty() {+ use sha2::{Digest, Sha256};+ let mut hasher = Sha256::new();+ hasher.update(&bytes);+ let actual = format!("{:x}", hasher.finalize());+ if actual != platform::UV_SHA256 {+ return Err(format!(+ "Setup tools failed integrity check (SHA256 mismatch).\n\nExpected: {}\nGot: {}\n\nThis may indicate a corrupted download or a compromised package. Try again, and if it persists, report this issue.",+ platform::UV_SHA256, actual+ ));+ }+ }++ let archive_path = bin_dir.join(platform::UV_ARCHIVE);+ fs::write(&archive_path, &bytes).map_err(|e| e.to_string())?;++ let dest = bin_dir.to_path_buf();+ let archive_clone = archive_path.clone();+ tokio::task::spawn_blocking(move || extract_uv(&archive_clone, &dest))+ .await+ .map_err(|e| e.to_string())??;++ let _ = fs::remove_file(&archive_path);++ #[cfg(unix)]+ set_executable(&uv_path)?;++ Ok(uv_path)+}++#[cfg(target_os = "windows")]+fn extract_uv(archive: &Path, dest: &Path) -> Result<(), String> {+ let file = fs::File::open(archive).map_err(|e| e.to_string())?;+ let mut zip = zip::ZipArchive::new(file).map_err(|e| e.to_string())?;+ for i in 0..zip.len() {+ let mut entry = zip.by_index(i).map_err(|e| e.to_string())?;+ let name = entry.name().to_string();+ if name == platform::UV_BIN || name.ends_with(&format!("/{}", platform::UV_BIN)) {+ let mut out =+ fs::File::create(dest.join(platform::UV_BIN)).map_err(|e| e.to_string())?;+ std::io::copy(&mut entry, &mut out).map_err(|e| e.to_string())?;+ return Ok(());+ }+ }+ Err(format!("{} not found in archive", platform::UV_BIN))+}++#[cfg(target_os = "macos")]+fn extract_uv(archive: &Path, dest: &Path) -> Result<(), String> {+ let file = fs::File::open(archive).map_err(|e| e.to_string())?;+ let gz = flate2::read::GzDecoder::new(file);+ let mut tar = tar::Archive::new(gz);+ for entry in tar.entries().map_err(|e| e.to_string())? {+ let mut entry = entry.map_err(|e| e.to_string())?;+ let path = entry.path().map_err(|e| e.to_string())?;+ let name = path.file_name().and_then(|n| n.to_str()).unwrap_or("");+ if name == platform::UV_BIN {+ entry+ .unpack(dest.join(platform::UV_BIN))+ .map_err(|e| e.to_string())?;+ return Ok(());+ }+ }+ Err(format!("{} not found in archive", platform::UV_BIN))+}++#[cfg(not(any(target_os = "windows", target_os = "macos")))]+fn extract_uv(_archive: &Path, _dest: &Path) -> Result<(), String> {+ Err("Unsupported platform. Rebuild for win-x64, darwin-arm64, or darwin-x64.".to_string())+}++#[cfg(unix)]+fn set_executable(path: &Path) -> Result<(), String> {+ use std::os::unix::fs::PermissionsExt;+ let mut perms = fs::metadata(path)+ .map_err(|e| e.to_string())?+ .permissions();+ perms.set_mode(0o755);+ fs::set_permissions(path, perms).map_err(|e| e.to_string())+}++// ── Venv + packages ────────────────────────────────────────────────────────++/// Run a `uv` command, streaming its stderr line-by-line to `on_line` as it+/// arrives (uv logs everything to stderr). Returns the exit status plus the full+/// captured stderr for error reporting. stdout is discarded — uv writes nothing+/// meaningful there, and null-ing it avoids any pipe-buffer deadlock.+fn run_uv_streamed(+ mut cmd: std::process::Command,+ mut on_line: impl FnMut(&str),+) -> Result<(std::process::ExitStatus, String), String> {+ use std::io::{BufRead, BufReader};+ cmd.stdout(std::process::Stdio::null());+ cmd.stderr(std::process::Stdio::piped());+ crate::hide_console(&mut cmd);++ let mut child = cmd+ .spawn()+ .map_err(|e| format!("Could not run setup tool: {e}"))?;+ let stderr = child.stderr.take().expect("stderr was piped");++ let mut collected = String::new();+ for line in BufReader::new(stderr).lines() {+ let Ok(line) = line else { break };+ collected.push_str(&line);+ collected.push('\n');+ let trimmed = line.trim();+ if !trimmed.is_empty() {+ on_line(trimmed);+ }+ }++ let status = child+ .wait()+ .map_err(|e| format!("Setup tool error: {e}"))?;+ Ok((status, collected))+}++fn create_venv(app: &AppHandle, uv: &Path, venv_dir: &Path) -> Result<(), String> {+ let mut cmd = std::process::Command::new(uv);+ cmd.args(["venv", "--python", "3.12", &venv_dir.to_string_lossy()]);++ let (status, stderr) = run_uv_streamed(cmd, |line| {+ // Surface what uv is doing: fetching the CPython 3.12 runtime, then+ // building the environment. Keep messages short and human.+ let low = line.to_lowercase();+ let (msg, pct) = if low.contains("download") || low.contains("fetching") {+ ("Downloading Python 3.12 runtime…", 0.30)+ } else if low.contains("creating") || low.contains("created") || low.contains("environment") {+ ("Creating the Python environment…", 0.42)+ } else {+ ("Setting up Python 3.12…", 0.28)+ };+ emit_detail(+ app,+ "creating_env",+ msg,+ pct,+ DownloadDetail {+ label: "CPython 3.12 runtime (~25 MB)".to_string(),+ received: 0,+ total: None,+ speed: 0.0,+ },+ );+ })?;++ if !status.success() {+ let msg = if stderr.contains("No interpreter found") || stderr.contains("download") {+ "Python 3.12 could not be downloaded. Check your internet connection and try again."+ } else {+ "Could not create Python environment."+ };+ return Err(format!("{msg}\n\nDetail: {stderr}"));+ }+ Ok(())+}++fn install_packages(+ app: &AppHandle,+ uv: &Path,+ venv_dir: &Path,+ requirements: &Path,+) -> Result<(), String> {+ let python = venv_dir.join(platform::PYTHON_BIN);+ let mut cmd = std::process::Command::new(uv);+ cmd.args([+ "pip",+ "install",+ "--python",+ &python.to_string_lossy(),+ // Supply-chain integrity: install only the exact, hash-verified versions in+ // the bundled lock file. uv aborts if any artifact's hash doesn't match.+ "--require-hashes",+ "-r",+ &requirements.to_string_lossy(),+ ]);++ let (status, stderr) = run_uv_streamed(cmd, |line| {+ // uv prints milestone lines like "Resolved N packages", "Prepared N+ // packages", "Installed N packages". Map them onto the 0.50–0.90 slice.+ let low = line.to_lowercase();+ let (msg, pct): (String, f32) = if low.starts_with("resolved") {+ ("Resolving package versions…".to_string(), 0.58)+ } else if low.starts_with("downloading") || low.starts_with("downloaded") {+ (truncate(line, 90), 0.72)+ } else if low.starts_with("prepared") || low.starts_with("preparing") {+ ("Unpacking packages…".to_string(), 0.80)+ } else if low.starts_with("installed") {+ ("Finalising installation…".to_string(), 0.88)+ } else {+ ("Installing packages…".to_string(), 0.62)+ };+ emit_detail(+ app,+ "installing_packages",+ &msg,+ pct,+ DownloadDetail {+ label: "markitdown + format support, openai client".to_string(),+ received: 0,+ total: None,+ speed: 0.0,+ },+ );+ })?;++ if !status.success() {+ let low = stderr.to_lowercase();+ let msg = if low.contains("network")+ || low.contains("timeout")+ || low.contains("connection")+ || low.contains("resolve")+ || low.contains("refused")+ {+ "Packages could not be downloaded. Check your internet connection and try again."+ } else {+ "Package installation failed."+ };+ return Err(format!("{msg}\n\nDetail: {stderr}"));+ }+ Ok(())+}++/// Truncate a status line to keep UI messages tidy.+fn truncate(s: &str, max: usize) -> String {+ if s.chars().count() <= max {+ s.to_string()+ } else {+ let mut out: String = s.chars().take(max.saturating_sub(1)).collect();+ out.push('…');+ out+ }+}++/// Resolve a bundled sidecar resource file (e.g. a requirements lock) by name.+fn get_sidecar_resource(app: &AppHandle, filename: &str) -> Result<PathBuf, String> {+ let resource_dir = app+ .path()+ .resource_dir()+ .map_err(|e| format!("Cannot locate app resources: {e}"))?;+ let path = resource_dir.join("resources").join("sidecar").join(filename);+ if !path.exists() {+ return Err(format!(+ "{filename} not found at {}.\n\nRe-install the app to fix this.",+ path.display()+ ));+ }+ Ok(path)+}++fn get_requirements_path(app: &AppHandle) -> Result<PathBuf, String> {+ // The hash-pinned lock is the install source of truth (requirements.txt is the+ // human-readable spec it was compiled from).+ get_sidecar_resource(app, "requirements.lock")+}diff --git a/app/src-tauri/src/config.rs b/app/src-tauri/src/config.rsnew file mode 100644index 0000000..e6dd68d--- /dev/null+++ b/app/src-tauri/src/config.rs@@ -0,0 +1,137 @@+use serde::{Deserialize, Serialize};+use std::path::PathBuf;+use tauri::{AppHandle, Manager};++#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct AppConfig {+ #[serde(default = "default_llm_mode")]+ pub llm_mode: String, // "off" | "local" | "api"+ #[serde(default = "default_local_base_url")]+ pub local_base_url: String,+ #[serde(default = "default_api_type")]+ pub api_type: String, // "openai_compat" | "anthropic"+ #[serde(default = "default_api_base_url")]+ pub api_base_url: String,+ #[serde(default)]+ pub api_key: String,+ /// Stage 5: model used for the optional LLM cleanup pass (empty = auto-pick first).+ #[serde(default)]+ pub cleanup_model: String,+ /// Stage 5: set once the user has seen the first-run cleanup highlight.+ #[serde(default)]+ pub cleanup_seen: bool,+ /// Stage 6: model used for LLM-powered conversion (image description, empty = auto).+ #[serde(default)]+ pub conversion_model: String,+ /// Stage 6: enable LLM image description during conversion (default false).+ #[serde(default)]+ pub llm_conversion: bool,+ /// Stage 6: extract embedded images to a {stem}_assets/ folder (default true).+ #[serde(default = "default_extract_images")]+ pub extract_images: bool,+ /// Stage 6: faster-whisper model size (default "base").+ #[serde(default = "default_audio_model")]+ pub audio_model: String,+ /// Stage 7: where batch output is written —+ /// "next_to_source" | "fixed_folder" | "mirror_tree".+ #[serde(default = "default_output_rule")]+ pub output_rule: String,+ /// Stage 7: the default output folder for "fixed_folder"/"mirror_tree"+ /// (empty = none chosen yet). Used to seed the per-run picker.+ #[serde(default)]+ pub output_folder: String,+ /// Stage 7: output filename template. Tokens: {stem} {ext} {date}. The ".md"+ /// extension is always appended. Default "{stem}" reproduces the old behavior.+ #[serde(default = "default_naming_template")]+ pub naming_template: String,+ /// Stage 7: case transform applied to the templated name —+ /// "keep" | "lower" | "slug".+ #[serde(default = "default_naming_case")]+ pub naming_case: String,+ /// Stage 7: reveal the output folder in the OS file manager after a batch.+ #[serde(default)]+ pub open_after_convert: bool,+}++fn default_llm_mode() -> String {+ "off".into()+}+fn default_local_base_url() -> String {+ "http://localhost:11434".into()+}+fn default_api_type() -> String {+ "openai_compat".into()+}+fn default_api_base_url() -> String {+ "https://api.openai.com/v1".into()+}+fn default_extract_images() -> bool {+ true+}+fn default_audio_model() -> String {+ "base".into()+}+fn default_output_rule() -> String {+ "next_to_source".into()+}+fn default_naming_template() -> String {+ "{stem}".into()+}+fn default_naming_case() -> String {+ "keep".into()+}++impl Default for AppConfig {+ fn default() -> Self {+ AppConfig {+ llm_mode: default_llm_mode(),+ local_base_url: default_local_base_url(),+ api_type: default_api_type(),+ api_base_url: default_api_base_url(),+ api_key: String::new(),+ cleanup_model: String::new(),+ cleanup_seen: false,+ conversion_model: String::new(),+ llm_conversion: false,+ extract_images: true,+ audio_model: default_audio_model(),+ output_rule: default_output_rule(),+ output_folder: String::new(),+ naming_template: default_naming_template(),+ naming_case: default_naming_case(),+ open_after_convert: false,+ }+ }+}++fn config_path(app: &AppHandle) -> PathBuf {+ app.path()+ .app_data_dir()+ .unwrap_or_else(|_| PathBuf::from("."))+ .join("config.json")+}++pub fn load(app: &AppHandle) -> AppConfig {+ let path = config_path(app);+ match std::fs::read_to_string(&path) {+ Ok(content) => serde_json::from_str(&content).unwrap_or_default(),+ Err(_) => AppConfig::default(),+ }+}++pub fn save(app: &AppHandle, config: &AppConfig) -> Result<(), String> {+ let path = config_path(app);+ if let Some(parent) = path.parent() {+ std::fs::create_dir_all(parent)+ .map_err(|e| format!("Cannot create config directory: {e}"))?;+ }+ let json = serde_json::to_string_pretty(config)+ .map_err(|e| format!("Config serialisation error: {e}"))?;+ // Atomic write: write to .tmp then rename. A crash mid-write won't corrupt+ // the config and silently reset the user's settings to defaults.+ let tmp = path.with_extension("json.tmp");+ std::fs::write(&tmp, json.as_bytes())+ .map_err(|e| format!("Cannot write config: {e}"))?;+ std::fs::rename(&tmp, &path)+ .map_err(|e| format!("Cannot finalise config: {e}"))+}diff --git a/app/src-tauri/src/converter.rs b/app/src-tauri/src/converter.rsnew file mode 100644index 0000000..084eb59--- /dev/null+++ b/app/src-tauri/src/converter.rs@@ -0,0 +1,320 @@+/// Manages the persistent Python sidecar process.+///+/// Stage 4 redesign: a background reader task reads stdout continuously and+/// routes each NDJSON line to a per-request channel keyed by the `id` field.+/// This lets multiple concurrent `send_streaming` callers coexist on the same+/// sidecar process without stealing each other's lines.+use std::collections::HashMap;+use std::path::PathBuf;+use std::sync::Arc;+use std::time::Duration;++use serde_json::Value;+use tokio::io::{AsyncBufReadExt, AsyncWriteExt, BufReader};+use tokio::process::{Child, ChildStdin, ChildStdout};+use tokio::sync::{mpsc, Mutex};+use tokio::task::JoinHandle;++type Router = Arc<Mutex<HashMap<String, mpsc::UnboundedSender<Value>>>>;++/// Ring buffer of the sidecar's recent stderr lines, surfaced in error messages+/// when the sidecar exits unexpectedly. Without this a startup crash is invisible.+type StderrTail = Arc<Mutex<Vec<String>>>;++const STDERR_TAIL_LINES: usize = 40;++struct SidecarInner {+ child: Child,+ stdin: Arc<Mutex<ChildStdin>>,+ router: Router,+ reader_task: JoinHandle<()>,+ stderr_task: JoinHandle<()>,+ stderr_tail: StderrTail,+}++pub struct SidecarManager {+ inner: Mutex<Option<SidecarInner>>,+}++impl SidecarManager {+ pub fn new() -> Self {+ SidecarManager {+ inner: Mutex::new(None),+ }+ }++ /// Spawn the sidecar if not alive. Detects dead processes and respawns.+ pub async fn ensure_alive(&self, python: &PathBuf, script: &PathBuf) -> Result<(), String> {+ let mut guard = self.inner.lock().await;++ let needs_spawn = match guard.as_mut() {+ None => true,+ Some(inner) => match inner.child.try_wait() {+ Ok(None) => false, // still running+ _ => true, // exited or check failed+ },+ };++ if needs_spawn {+ if let Some(mut old) = guard.take() {+ // Explicitly kill the child before dropping — tokio's Child does NOT+ // kill on drop by default, so without this the python.exe would orphan.+ let _ = old.child.start_kill();+ old.reader_task.abort();+ old.stderr_task.abort();+ }+ *guard = Some(spawn(python, script)?);+ }++ Ok(())+ }++ /// Send one v1 request and stream back the response.+ ///+ /// Registers a per-id channel in the router before writing to stdin so no+ /// lines can be lost. Progress lines are forwarded to `on_progress`; the+ /// first non-progress line is the final response.+ ///+ /// A 150 s IDLE backstop guards against a silent/dead sidecar: it trips only if+ /// no line (heartbeat or response) arrives for 150 s. Long operations (e.g. AI+ /// cleanup) stream heartbeats to stay under it; the sidecar enforces its own+ /// per-operation caps.+ pub async fn send_streaming(+ &self,+ request: &Value,+ on_progress: impl Fn(Value) + Send,+ ) -> Result<Value, String> {+ let id = request["id"]+ .as_str()+ .unwrap_or("")+ .to_string();++ // Clone Arcs without holding the inner lock during the whole call.+ let (stdin_arc, router_arc, stderr_tail) = {+ let guard = self.inner.lock().await;+ let inner = guard+ .as_ref()+ .ok_or_else(|| "Sidecar is not running. Run the health check first.".to_string())?;+ (+ Arc::clone(&inner.stdin),+ Arc::clone(&inner.router),+ Arc::clone(&inner.stderr_tail),+ )+ };++ // Register channel BEFORE writing to stdin — eliminates the race where+ // the sidecar responds before we start listening.+ let (tx, mut rx) = mpsc::unbounded_channel::<Value>();+ {+ let mut router = router_arc.lock().await;+ router.insert(id.clone(), tx);+ }++ // Write request.+ {+ let mut stdin = stdin_arc.lock().await;+ let mut line = serde_json::to_string(request)+ .map_err(|e| format!("Could not serialise request: {e}"))?;+ line.push('\n');+ if let Err(e) = stdin.write_all(line.as_bytes()).await {+ let mut router = router_arc.lock().await;+ router.remove(&id);+ return Err(format!("Could not write to sidecar: {e}"));+ }+ }++ // IDLE timeout: the sidecar must send *something* (progress heartbeat or the+ // final response) within this window. Long operations like AI cleanup stay+ // alive by streaming heartbeats; only a genuinely silent/dead sidecar trips it.+ let idle = Duration::from_secs(150);+ let result: Result<Value, String> = loop {+ match tokio::time::timeout(idle, rx.recv()).await {+ Err(_) => {+ break Err(+ "Sidecar went silent for 150 seconds. Restart the app.".to_string(),+ )+ }+ Ok(None) => {+ let tail = stderr_tail.lock().await;+ let detail = if tail.is_empty() {+ "Sidecar exited unexpectedly. Restart the app.".to_string()+ } else {+ format!(+ "Sidecar exited unexpectedly. Recent output:\n{}",+ tail.join("\n")+ )+ };+ break Err(detail)+ }+ Ok(Some(val)) => {+ if val.get("type").and_then(|v| v.as_str()) == Some("progress") {+ on_progress(val);+ } else {+ break Ok(val);+ }+ }+ }+ };++ // Always deregister, even on timeout or error.+ {+ let mut router = router_arc.lock().await;+ router.remove(&id);+ }++ // On timeout, send a targeted cancel so the sidecar stops the orphaned+ // request instead of processing it for up to 600 s (OCR/audio timeout).+ if result.is_err() {+ let cancel_req = serde_json::json!({+ "v": 1, "id": "cancel-timeout", "method": "cancel",+ "params": { "id": id }+ });+ if let Ok(line) = serde_json::to_string(&cancel_req) {+ let mut stdin = stdin_arc.lock().await;+ let mut buf = line;+ buf.push('\n');+ let _ = stdin.write_all(buf.as_bytes()).await;+ }+ }++ result+ }++ /// Kill the running sidecar (if any) so the next `ensure_alive` spawns a fresh+ /// process. Used after installing new Python packages — the existing process+ /// cannot hot-reload imports.+ pub async fn kill_sidecar(&self) {+ let mut guard = self.inner.lock().await;+ if let Some(mut old) = guard.take() {+ // Explicitly kill — without this the child process would orphan on Windows+ // (tokio's Child does not kill on drop by default). kill_on_drop(true) on the+ // spawn is a belt-and-suspenders backstop; this is the deterministic path.+ let _ = old.child.start_kill();+ old.reader_task.abort();+ old.stderr_task.abort();+ }+ }++ /// Write a cancel request to the sidecar. With empty params the sidecar+ /// cancels ALL active conversions (correct for both single-file and batch).+ pub async fn cancel(&self) -> Result<(), String> {+ let stdin_arc = {+ let guard = self.inner.lock().await;+ guard.as_ref().map(|inner| Arc::clone(&inner.stdin))+ };+ if let Some(stdin_arc) = stdin_arc {+ let cancel_req = serde_json::json!({+ "v": 1,+ "id": "cancel",+ "method": "cancel",+ "params": {}+ });+ let mut line = serde_json::to_string(&cancel_req).unwrap();+ line.push('\n');+ let mut stdin = stdin_arc.lock().await;+ stdin+ .write_all(line.as_bytes())+ .await+ .map_err(|e| format!("Could not write cancel request: {e}"))?;+ }+ Ok(())+ }+}++fn spawn(python: &PathBuf, script: &PathBuf) -> Result<SidecarInner, String> {+ // Build via std::process::Command so we can apply the Windows no-console flag,+ // then hand it to tokio for async pipes. Force UTF-8 everywhere (Python UTF-8+ // Mode): without it the sidecar and its worker default to the OS locale codec+ // (ascii/cp1252 on Windows) and choke on non-ASCII content. The worker inherits env.+ let mut std_cmd = std::process::Command::new(python);+ std_cmd+ .arg(script)+ .env("PYTHONUTF8", "1")+ .env("PYTHONIOENCODING", "utf-8")+ .stdin(std::process::Stdio::piped())+ .stdout(std::process::Stdio::piped())+ .stderr(std::process::Stdio::piped());+ crate::hide_console(&mut std_cmd);+ let mut child = tokio::process::Command::from(std_cmd)+ .kill_on_drop(true)+ .spawn()+ .map_err(|e| format!("Could not start background process: {e}"))?;++ let stdin = child.stdin.take().ok_or("Could not get sidecar stdin")?;+ let stdout = child.stdout.take().ok_or("Could not get sidecar stdout")?;+ let stderr = child.stderr.take().ok_or("Could not get sidecar stderr")?;++ let router: Router = Arc::new(Mutex::new(HashMap::new()));+ let router_clone = Arc::clone(&router);++ let stderr_tail: StderrTail = Arc::new(Mutex::new(Vec::new()));+ let stderr_tail_clone = Arc::clone(&stderr_tail);++ let reader_task = tokio::spawn(reader_loop(BufReader::new(stdout), router_clone));+ let stderr_task = tokio::spawn(stderr_loop(BufReader::new(stderr), stderr_tail_clone));++ Ok(SidecarInner {+ child,+ stdin: Arc::new(Mutex::new(stdin)),+ router,+ reader_task,+ stderr_task,+ stderr_tail,+ })+}++/// Reads stdout lines from the sidecar and routes each to the matching channel.+/// When the sidecar exits (Ok(0) / Err), clears all channels so waiting+/// `send_streaming` callers receive `None` and return an error.+async fn reader_loop(mut reader: BufReader<ChildStdout>, router: Router) {+ let mut buf = String::new();+ loop {+ buf.clear();+ match reader.read_line(&mut buf).await {+ Ok(0) | Err(_) => {+ // Sidecar closed stdout — drop all senders so receivers get None.+ let mut r = router.lock().await;+ r.clear();+ break;+ }+ Ok(_) => {+ let trimmed = buf.trim();+ if trimmed.is_empty() {+ continue;+ }+ if let Ok(val) = serde_json::from_str::<Value>(trimmed) {+ if let Some(id) = val.get("id").and_then(|v| v.as_str()) {+ let r = router.lock().await;+ if let Some(tx) = r.get(id) {+ let _ = tx.send(val);+ }+ // Lines with unknown ids (e.g. startup noise) are silently dropped.+ }+ }+ }+ }+ }+}++/// Drains the sidecar's stderr into a small ring buffer so a startup crash or+/// unexpected exit can be diagnosed instead of showing a bare "exited unexpectedly".+async fn stderr_loop(mut reader: BufReader<tokio::process::ChildStderr>, tail: StderrTail) {+ let mut buf = String::new();+ loop {+ buf.clear();+ match reader.read_line(&mut buf).await {+ Ok(0) | Err(_) => break,+ Ok(_) => {+ let line = buf.trim_end().to_string();+ if line.is_empty() {+ continue;+ }+ let mut t = tail.lock().await;+ if t.len() >= STDERR_TAIL_LINES {+ t.remove(0);+ }+ t.push(line);+ }+ }+ }+}diff --git a/app/src-tauri/src/ipc.rs b/app/src-tauri/src/ipc.rsnew file mode 100644index 0000000..cded0a8--- /dev/null+++ b/app/src-tauri/src/ipc.rs@@ -0,0 +1,243 @@+use serde::{Deserialize, Serialize};+use std::collections::HashMap;++// ── Stage 0 types (unchanged) ──────────────────────────────────────────────++#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct HealthReport {+ pub python_version: String,+ pub markitdown_version: Option<String>,+ pub extras: HashMap<String, bool>,+}++#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct ProvisionStatus {+ pub state: String, // "not_provisioned" | "ready"+}++#[derive(Debug, Serialize, Clone)]+pub struct ProgressPayload {+ pub step: String,+ pub message: String,+ pub pct: f32,+ /// Live download metrics for the current step (bytes + speed). Present only+ /// while something is actively transferring; `None` for non-download work.+ #[serde(skip_serializing_if = "Option::is_none")]+ pub detail: Option<DownloadDetail>,+}++/// What is being downloaded right now, and how fast.+#[derive(Debug, Serialize, Clone)]+pub struct DownloadDetail {+ /// Human label for the artefact, e.g. "uv 0.5.11 (Windows x64)".+ pub label: String,+ /// Bytes received so far.+ pub received: u64,+ /// Total bytes, if the server reported a content-length.+ #[serde(skip_serializing_if = "Option::is_none")]+ pub total: Option<u64>,+ /// Instantaneous transfer rate in bytes per second.+ pub speed: f64,+}++// ── IPC v1 wire types ──────────────────────────────────────────────────────++/// Typed error envelope — same shape for every failure class.+#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct IpcError {+ pub code: String,+ pub title: String,+ pub detail: String,+ pub suggested_action: String,+ /// Set on MISSING_EXTRA so the UI can link to the matching Diagnostics row.+ #[serde(skip_serializing_if = "Option::is_none")]+ pub diagnostics_key: Option<String>,+}++/// Metadata returned alongside the converted Markdown.+#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct ConvertMeta {+ pub detected_format: String,+ pub converter_path: String,+ #[serde(default, skip_serializing_if = "Vec::is_empty")]+ pub warnings: Vec<String>,+ /// Stage 6: populated when embedded images were extracted to a folder.+ #[serde(skip_serializing_if = "Option::is_none")]+ pub assets_folder: Option<String>,+}++/// Successful conversion payload.+#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct ConvertResult {+ pub markdown: String,+ pub meta: ConvertMeta,+}++/// Union response returned to the frontend by `convert_file`.+/// Always Ok(ConvertResponse) — never Err — so the typed error reaches the UI.+#[derive(Debug, Serialize, Clone)]+pub struct ConvertResponse {+ pub ok: bool,+ pub result: Option<ConvertResult>,+ pub error: Option<IpcError>,+}++// ── Stage 3: Capabilities types ────────────────────────────────────────────++#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct RuntimeInfo {+ pub python_version: String,+ pub sidecar_version: String,+ pub markitdown_version: String,+ pub venv_path: String,+}++/// One row in the format-support table.+#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct FormatEntry {+ pub key: String,+ pub label: String,+ pub extensions: Vec<String>,+ pub module: Option<String>,+ pub module_version: Option<String>,+ pub converter: Option<String>,+ /// "available" | "missing" | "broken" | "coming_later"+ pub status: String,+ pub error: Option<String>,+ pub note: Option<String>,+}++#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct OptionalCapability {+ pub status: String, // "not_installed" | "installed" | "missing" (broken)+ pub engine: String,+ pub size_hint: String,+ pub note: String,+}++#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct OptionalCapabilities {+ pub ocr: OptionalCapability,+ pub audio: OptionalCapability,+}++/// Emitted as "engine:install-progress" during optional engine installation.+#[derive(Debug, Serialize, Clone)]+pub struct EngineInstallProgress {+ pub engine: String,+ pub step: String,+ pub message: String,+ pub pct: f32,+}++#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct CapabilitiesReport {+ pub runtime: RuntimeInfo,+ pub formats: Vec<FormatEntry>,+ pub optional: OptionalCapabilities,+}++// ── Stage 3: Provider check result ─────────────────────────────────────────++#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct ProviderCheckResult {+ #[serde(skip_serializing_if = "Option::is_none")]+ pub server: Option<String>,+ pub reachable: bool,+ pub detail: String,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub models: Option<Vec<String>>,+ pub usable: bool,+}++// ── Stage 4: Batch types ────────────────────────────────────────────────────++/// One file in the batch queue.+#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct BatchItem {+ pub id: String,+ pub path: String,+ pub filename: String,+ /// "pending" | "running" | "done" | "failed" | "cancelled"+ pub status: String,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub output_path: Option<String>,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub error: Option<IpcError>,+ /// Non-fatal notices from the conversion (e.g. "No text could be extracted").+ #[serde(default, skip_serializing_if = "Vec::is_empty")]+ pub warnings: Vec<String>,+}++/// Returned immediately by start_batch / retry_failed.+#[derive(Debug, Serialize, Clone)]+pub struct BatchStartResult {+ pub items: Vec<BatchItem>,+}++/// Emitted as "batch:file-status" whenever a file's state changes.+#[derive(Debug, Serialize, Clone)]+pub struct BatchFileStatusEvent {+ pub id: String,+ pub status: String,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub frac: Option<f64>,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub error: Option<IpcError>,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub output_path: Option<String>,+ #[serde(default, skip_serializing_if = "Vec::is_empty")]+ pub warnings: Vec<String>,+}++/// Emitted as "batch:done" when the last worker finishes.+#[derive(Debug, Serialize, Clone)]+pub struct BatchDoneEvent {+ pub done: u32,+ pub failed: u32,+ pub cancelled: u32,+ pub items: Vec<BatchItem>,+ /// Stage 5: whether cleanup ran for this batch, and aggregate change counts.+ pub cleanup_applied: bool,+ pub cleanup_changes: u32,+}++// ── Stage 5: Cleanup types ──────────────────────────────────────────────────++/// Cleanup options carried on `start_batch` / `retry_failed`. Mirrors the sidecar+/// `cleanup` params. `method` is "none" | "rules" | "ai":+/// - "none": no cleanup+/// - "rules": deterministic rules only+/// - "ai": LLM cleans the raw extraction directly (rules ignored)+#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct CleanupOptions {+ pub method: String,+ /// Per-rule toggles for the "rules" method, keyed by rule id.+ #[serde(default)]+ pub rules: HashMap<String, bool>,+}++/// One rule's contribution to the change summary.+#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct CleanupRuleSummary {+ pub key: String,+ pub label: String,+ pub applied: bool,+ pub changes: u32,+}++#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct CleanupSummary {+ pub rules: Vec<CleanupRuleSummary>,+ pub char_delta: i64,+ pub line_delta: i64,+}++/// Result of a `cleanup_markdown` call.+#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct CleanupResult {+ pub markdown: String,+ pub summary: CleanupSummary,+ pub llm_applied: bool,+ pub llm_notice: Option<String>,+}diff --git a/app/src-tauri/src/lib.rs b/app/src-tauri/src/lib.rsnew file mode 100644index 0000000..29bf99f--- /dev/null+++ b/app/src-tauri/src/lib.rs@@ -0,0 +1,2131 @@+mod bootstrap;+mod config;+mod converter;+mod ipc;++use std::path::PathBuf;+use std::sync::Arc;++use tauri::{AppHandle, Emitter, Manager};+use tauri_plugin_dialog::DialogExt;++use converter::SidecarManager;++// ── Batch pool ─────────────────────────────────────────────────────────────++/// Logical processors available, with a safe fallback.+fn logical_cores() -> usize {+ std::thread::available_parallelism()+ .map(|n| n.get())+ .unwrap_or(4)+}++/// Conservative RAM budget per concurrent worker — a heavy OCR/audio worker holds+/// model weights plus a working set; 1 GiB covers that with headroom.+const PER_WORKER_MB: u64 = 1024;+/// RAM left untouched for the OS, the app, and the model weights already resident.+const RAM_RESERVE_MB: u64 = 1024;++/// Available physical memory in MiB, or None if it can't be determined (→ no RAM cap).+#[cfg(windows)]+fn available_ram_mb() -> Option<u64> {+ #[repr(C)]+ struct MemStatus {+ length: u32,+ memory_load: u32,+ total_phys: u64,+ avail_phys: u64,+ total_pagefile: u64,+ avail_pagefile: u64,+ total_virtual: u64,+ avail_virtual: u64,+ avail_ext_virtual: u64,+ }+ extern "system" {+ fn GlobalMemoryStatusEx(buffer: *mut MemStatus) -> i32;+ }+ let mut s: MemStatus = unsafe { std::mem::zeroed() };+ s.length = std::mem::size_of::<MemStatus>() as u32;+ if unsafe { GlobalMemoryStatusEx(&mut s) } != 0 {+ Some(s.avail_phys / (1024 * 1024))+ } else {+ None+ }+}++#[cfg(target_os = "macos")]+fn available_ram_mb() -> Option<u64> {+ extern "C" {+ fn sysctlbyname(+ name: *const std::os::raw::c_char,+ oldp: *mut std::ffi::c_void,+ oldlenp: *mut usize,+ newp: *mut std::ffi::c_void,+ newlen: usize,+ ) -> std::os::raw::c_int;+ }+ let name = b"hw.memsize\0";+ let mut val: u64 = 0;+ let mut len = std::mem::size_of::<u64>();+ let rc = unsafe {+ sysctlbyname(+ name.as_ptr() as *const _,+ &mut val as *mut _ as *mut _,+ &mut len,+ std::ptr::null_mut(),+ 0,+ )+ };+ // hw.memsize is TOTAL physical RAM. macOS uses free RAM as cache, so treat ~half of+ // total as a conservative available budget for sizing the pool.+ if rc == 0 && val > 0 {+ Some((val / (1024 * 1024)) / 2)+ } else {+ None+ }+}++#[cfg(not(any(windows, target_os = "macos")))]+fn available_ram_mb() -> Option<u64> {+ None+}++/// CPU-based concurrency cap — stable across a run (does not depend on live RAM).+/// `batch_worker_threads` is derived from THIS so the per-worker thread budget never+/// changes; only the worker *count* (`batch_worker_cap`) can drop under memory pressure.+fn cpu_worker_cap() -> usize {+ (logical_cores() / 2).clamp(2, 8)+}++/// How many files convert concurrently in a batch, adapted to the machine.+///+/// Each concurrent worker is a SEPARATE converter subprocess (MarkItDown / OCR /+/// Whisper); the heavy ones (OCR, audio) are multi-threaded and hold model weights in+/// RAM. We start from a core-based cap, then clamp it DOWN if available memory is tight+/// so a many-core / low-RAM machine doesn't run more heavy workers than fit in memory.+/// Sampled per batch.+fn batch_worker_cap() -> usize {+ let cpu = cpu_worker_cap();+ match available_ram_mb() {+ Some(avail) => {+ let budget = avail.saturating_sub(RAM_RESERVE_MB);+ let ram_cap = (budget / PER_WORKER_MB).max(1) as usize;+ cpu.min(ram_cap).clamp(1, 8)+ }+ None => cpu,+ }+}++/// Per-worker CPU-thread budget for batch conversions, so N concurrent heavy workers+/// don't oversubscribe the CPU. Derived from the CPU cap (NOT the RAM-adjusted cap) so+/// it's fixed at startup and `workers × threads` can never exceed the core count.+/// Single-file conversions ignore it and use all cores.+fn batch_worker_threads() -> usize {+ std::cmp::max(1, logical_cores() / cpu_worker_cap())+}++/// Tracks output paths the app has written, so `read_text_file` can allow+/// reading them back without a blanket `.md` extension check that any file+/// could bypass. Populated by `write_output` and `save_markdown`.+#[derive(Default)]+pub struct WrittenPaths(std::sync::Mutex<std::collections::HashSet<PathBuf>>);++impl WrittenPaths {+ pub fn record(&self, path: &std::path::Path) {+ if let Ok(canon) = std::fs::canonicalize(path) {+ if let Ok(mut guard) = self.0.lock() {+ guard.insert(canon);+ }+ }+ }++ pub fn contains(&self, canon: &std::path::Path) -> bool {+ self.0+ .lock()+ .map(|g| g.contains(canon))+ .unwrap_or(false)+ }+}+pub struct BatchManager {+ cancel_flag: std::sync::atomic::AtomicBool,+}++impl BatchManager {+ fn new() -> Self {+ BatchManager {+ cancel_flag: std::sync::atomic::AtomicBool::new(false),+ }+ }+ fn reset(&self) {+ self.cancel_flag+ .store(false, std::sync::atomic::Ordering::Relaxed);+ }+ fn cancel(&self) {+ self.cancel_flag+ .store(true, std::sync::atomic::Ordering::Relaxed);+ }+ fn is_cancelled(&self) -> bool {+ self.cancel_flag+ .load(std::sync::atomic::Ordering::Relaxed)+ }+}++// ── Helpers ────────────────────────────────────────────────────────────────++fn sidecar_paths(app: &AppHandle) -> Result<(PathBuf, PathBuf), String> {+ let python = bootstrap::python_path(app);+ let resource_dir = app+ .path()+ .resource_dir()+ .map_err(|e| format!("Cannot locate app resources: {e}"))?;+ let script = resource_dir+ .join("resources")+ .join("sidecar")+ .join("main.py");+ if !script.exists() {+ return Err(format!(+ "Sidecar script missing at {}. Re-install the app.",+ script.display()+ ));+ }+ Ok((python, script))+}++pub fn next_id() -> String {+ use std::sync::atomic::{AtomicU64, Ordering};+ static SEQ: AtomicU64 = AtomicU64::new(1);+ SEQ.fetch_add(1, Ordering::Relaxed).to_string()+}++/// Windows: suppress the console window a child process would otherwise flash on+/// screen (uv, Python, the sidecar, OCR/audio workers). No-op on other platforms.+/// Apply to EVERY process we spawn so install/provision/convert stay visually clean.+#[cfg(windows)]+pub(crate) fn hide_console(cmd: &mut std::process::Command) {+ use std::os::windows::process::CommandExt;+ const CREATE_NO_WINDOW: u32 = 0x0800_0000;+ cmd.creation_flags(CREATE_NO_WINDOW);+}+#[cfg(not(windows))]+pub(crate) fn hide_console(_cmd: &mut std::process::Command) {}++// ── Format sets (single source of truth in Rust) ───────────────────────────++/// Core formats always supported (provisioned at Stage 0).+const CORE_EXTS: &[&str] = &[+ "pdf", "docx", "pptx", "xlsx", "xls", "html", "htm", "csv", "json", "xml", "epub",+];+/// Formats requiring the OCR engine.+const OCR_EXTS: &[&str] = &["jpg", "jpeg", "png", "gif", "webp", "tiff", "tif", "bmp"];+/// Formats requiring the audio engine.+const AUDIO_EXTS: &[&str] = &["mp3", "wav", "m4a", "ogg", "flac", "aac"];++fn all_supported_exts() -> Vec<&'static str> {+ let mut v: Vec<&str> = CORE_EXTS.to_vec();+ v.extend_from_slice(OCR_EXTS);+ v.extend_from_slice(AUDIO_EXTS);+ v+}++/// Stage 6: conversion options threaded through the batch pipeline.+struct BatchConvOpts {+ /// LLM config for image description; `Null` when disabled.+ llm_cfg: serde_json::Value,+ extract_images: bool,+ audio_model: String,+}++// ── Tauri commands ─────────────────────────────────────────────────────────++#[tauri::command]+async fn get_provision_status(app: AppHandle) -> Result<ipc::ProvisionStatus, String> {+ let state = if bootstrap::is_provisioned(&app) {+ "ready"+ } else {+ "not_provisioned"+ };+ Ok(ipc::ProvisionStatus {+ state: state.to_string(),+ })+}++#[tauri::command]+async fn start_provision(+ app: AppHandle,+ force: bool,+ manager: tauri::State<'_, Arc<SidecarManager>>,+) -> Result<(), String> {+ // Kill the sidecar before force-provision so Windows doesn't hold locks on+ // venv DLLs/python.exe — a force rebuild on top of a running sidecar would+ // silently corrupt the venv.+ if force {+ manager.kill_sidecar().await;+ }+ bootstrap::provision(app, force).await+}++#[tauri::command]+async fn run_health_check(+ app: AppHandle,+ manager: tauri::State<'_, Arc<SidecarManager>>,+) -> Result<ipc::HealthReport, String> {+ let python = bootstrap::python_path(&app);+ if !python.exists() {+ return Err("Python environment not found. Click Repair to reinstall.".to_string());+ }+ let (python, script) = sidecar_paths(&app)?;+ manager.ensure_alive(&python, &script).await?;++ let req = serde_json::json!({+ "v": 1,+ "id": next_id(),+ "method": "health",+ "params": {}+ });+ let resp = manager.send_streaming(&req, |_| {}).await?;++ if !resp.get("ok").and_then(|v| v.as_bool()).unwrap_or(false) {+ let msg = resp+ .get("error")+ .and_then(|e| e.get("detail"))+ .and_then(|d| d.as_str())+ .unwrap_or("Health check failed.")+ .to_string();+ return Err(msg);+ }++ let data = resp+ .get("result")+ .ok_or("Health response missing 'result' field.")?;+ serde_json::from_value(data.clone())+ .map_err(|e| format!("Could not parse health report: {e}"))+}++#[tauri::command]+async fn convert_file(+ app: AppHandle,+ path: String,+ manager: tauri::State<'_, Arc<SidecarManager>>,+) -> Result<ipc::ConvertResponse, String> {+ let (python, script) = sidecar_paths(&app)?;+ manager.ensure_alive(&python, &script).await?;++ let cfg = config::load(&app);++ // Build LLM config for conversion when the user has enabled it.+ let llm_params = if cfg.llm_conversion && cfg.llm_mode != "off" {+ build_conversion_llm_cfg(&cfg)+ } else {+ serde_json::Value::Null+ };++ let mut params = serde_json::json!({ "path": path });+ if !llm_params.is_null() {+ params["llm"] = llm_params;+ }+ // Pass the audio model size so audio_worker picks the right weights.+ params["audio_model"] = serde_json::Value::String(cfg.audio_model.clone());++ let req = serde_json::json!({+ "v": 1,+ "id": next_id(),+ "method": "convert-one",+ "params": params+ });++ let app_clone = app.clone();+ let resp = manager+ .send_streaming(&req, move |progress_val| {+ let _ = app_clone.emit("convert:progress", progress_val);+ })+ .await?;++ let ok = resp.get("ok").and_then(|v| v.as_bool()).unwrap_or(false);+ if ok {+ // Image extraction for zip-based formats is deferred to `save_markdown` so+ // a preview-only conversion doesn't litter the user's source directory with a+ // `{stem}_assets/` folder. The batch path extracts at the output dir directly.+ let result: ipc::ConvertResult = serde_json::from_value(+ resp.get("result")+ .cloned()+ .ok_or("Response missing 'result'")?,+ )+ .map_err(|e| format!("Could not parse conversion result: {e}"))?;++ Ok(ipc::ConvertResponse { ok: true, result: Some(result), error: None })+ } else {+ let error: ipc::IpcError = serde_json::from_value(+ resp.get("error")+ .cloned()+ .ok_or("Response missing 'error'")?,+ )+ .map_err(|e| format!("Could not parse error response: {e}"))?;+ Ok(ipc::ConvertResponse { ok: false, result: None, error: Some(error) })+ }+}++/// Build the LLM config sent to the sidecar for image description during conversion.+fn build_conversion_llm_cfg(cfg: &config::AppConfig) -> serde_json::Value {+ let (base_url, key) = match cfg.llm_mode.as_str() {+ "local" => (cfg.local_base_url.clone(), String::new()),+ "api" => (cfg.api_base_url.clone(), cfg.api_key.clone()),+ _ => return serde_json::Value::Null,+ };+ serde_json::json!({+ "mode": cfg.llm_mode,+ "api_type": cfg.api_type,+ "base_url": base_url,+ "key": key,+ "model": cfg.conversion_model,+ })+}++/// Extract images from a DOCX / PPTX / EPUB (all are ZIP archives) and write+/// them to `{stem}_assets/` inside `out_dir`. Returns the assets folder name+/// (relative, for use in Markdown links) and a list of relative Markdown image links.+/// Failures to write individual images are silently skipped — the .md is never lost.+fn extract_zip_images(source: &str, out_dir: &std::path::Path) -> (String, Vec<String>) {+ let p = std::path::Path::new(source);+ let ext = p.extension().map(|e| e.to_string_lossy().to_lowercase()).unwrap_or_default();+ if !["docx", "pptx", "epub"].contains(&ext.as_str()) {+ return (String::new(), vec![]);+ }++ let stem = p.file_stem().map(|s| s.to_string_lossy().to_string()).unwrap_or_else(|| "output".into());+ let assets_dir = out_dir.join(format!("{stem}_assets"));+ let assets_name = format!("{stem}_assets");++ let file = match std::fs::File::open(source) {+ Ok(f) => f,+ Err(_) => return (String::new(), vec![]),+ };+ let mut zip = match zip::ZipArchive::new(file) {+ Ok(z) => z,+ Err(_) => return (String::new(), vec![]),+ };++ const IMG_EXTS: &[&str] = &["png", "jpg", "jpeg", "gif", "webp", "tiff", "tif", "bmp"];+ // Skip images smaller than this — theme backgrounds, bullet glyphs, header logos and+ // other chrome are almost always tiny, while real content images are larger. This+ // keeps the "Extracted Images" block to actual document content.+ const MIN_IMAGE_BYTES: usize = 5 * 1024;+ let mut links: Vec<String> = Vec::new();+ let mut dir_created = false;++ // Collect image entries upfront (can't borrow zip while iterating and writing).+ // Dedupe identical images (the same logo/icon recurs across many slides/pages) by a+ // content hash so each distinct image is written once.+ let mut to_extract: Vec<(String, Vec<u8>)> = Vec::new();+ let mut seen: std::collections::HashSet<u64> = std::collections::HashSet::new();+ for i in 0..zip.len() {+ let mut entry = match zip.by_index(i) { Ok(e) => e, Err(_) => continue };+ let name_lc = entry.name().to_lowercase();+ // Only extract from standard media/image folders.+ let in_media = name_lc.contains("/media/")+ || name_lc.contains("\\media\\")+ || name_lc.starts_with("images/")+ || name_lc.contains("/images/");+ if !in_media { continue; }+ let entry_ext = std::path::Path::new(&name_lc)+ .extension().map(|e| e.to_string_lossy().to_string()).unwrap_or_default();+ if !IMG_EXTS.contains(&entry_ext.as_str()) { continue; }++ let mut data = Vec::new();+ use std::io::Read;+ if entry.read_to_end(&mut data).is_ok() && data.len() >= MIN_IMAGE_BYTES {+ use std::hash::{Hash, Hasher};+ let mut h = std::collections::hash_map::DefaultHasher::new();+ data.hash(&mut h);+ if !seen.insert(h.finish()) {+ continue; // duplicate of an already-collected image+ }+ let fname = std::path::Path::new(entry.name())+ .file_name().map(|n| n.to_string_lossy().to_string())+ .unwrap_or_else(|| format!("image_{}.{entry_ext}", to_extract.len() + 1));+ to_extract.push((fname, data));+ }+ }++ for (fname, data) in to_extract {+ if !dir_created {+ if std::fs::create_dir_all(&assets_dir).is_err() {+ break; // can't create folder — skip all images, never lose the .md+ }+ dir_created = true;+ }+ let dest = assets_dir.join(&fname);+ if std::fs::write(&dest, &data).is_ok() {+ links.push(format!(""));+ }+ }++ (assets_name, links)+}++#[tauri::command]+async fn cancel_conversion(+ manager: tauri::State<'_, Arc<SidecarManager>>,+) -> Result<(), String> {+ manager.cancel().await+}++#[tauri::command]+async fn save_markdown(+ app: AppHandle,+ content: String,+ suggested_name: String,+ source_path: Option<String>,+ extract_images: Option<bool>,+ written: tauri::State<'_, Arc<WrittenPaths>>,+) -> Result<bool, String> {+ let cfg = config::load(&app);+ let should_extract = extract_images.unwrap_or(cfg.extract_images);++ let path = tokio::task::spawn_blocking(move || {+ app.dialog()+ .file()+ .set_title("Save as Markdown")+ .add_filter("Markdown", &["md"])+ .set_file_name(&suggested_name)+ .blocking_save_file()+ })+ .await+ .map_err(|e| format!("Dialog error: {e}"))?;++ match path {+ Some(p) => {+ let dest = p.into_path().map_err(|e| format!("Invalid path: {e}"))?;++ // Image extraction: for zip-based source formats, extract embedded images+ // to `{stem}_assets/` beside the saved .md so relative links resolve.+ // Deferred from convert_file so preview-only runs don't litter the source dir.+ let mut final_content = content;+ if should_extract {+ if let Some(src) = source_path.as_deref() {+ let dest_dir = dest.parent().unwrap_or(std::path::Path::new("."));+ let (assets_name, links) = extract_zip_images(src, dest_dir);+ if !links.is_empty() {+ final_content.push_str("\n\n---\n\n## Extracted Images\n\n");+ final_content.push_str(&links.join("\n\n"));+ }+ let _ = assets_name; // relative folder name embedded in links above+ }+ }++ std::fs::write(&dest, final_content.as_bytes())+ .map_err(|e| format!("Could not save file: {e}"))?;+ // Record the written path so read_text_file can read it back.+ written.record(&dest);+ Ok(true)+ }+ None => Ok(false),+ }+}++#[tauri::command]+async fn pick_file(app: AppHandle) -> Result<Option<String>, String> {+ let path = tokio::task::spawn_blocking(move || {+ app.dialog()+ .file()+ .set_title("Open File")+ .add_filter(+ "Supported files",+ &[+ "pdf", "docx", "pptx", "xlsx", "xls", "html", "htm", "csv", "json", "xml",+ "epub",+ "jpg", "jpeg", "png", "gif", "webp", "tiff", "tif", "bmp",+ "mp3", "wav", "m4a", "ogg", "flac", "aac",+ ],+ )+ // Escape hatch so the OS never disables Open: the user can switch to+ // "All files" and pick anything; unsupported types get a clean typed+ // error after selection rather than a greyed-out, unexplained button.+ .add_filter("All files", &["*"])+ .blocking_pick_file()+ })+ .await+ .map_err(|e| format!("Dialog error: {e}"))?;++ Ok(path+ .and_then(|p| p.into_path().ok())+ .map(|p| p.to_string_lossy().into_owned()))+}++// ── Stage 6: Optional engine management ───────────────────────────────────++/// Return the install state of an optional engine from provision state.+#[tauri::command]+async fn optional_engine_status(+ app: AppHandle,+ engine: String,+) -> Result<bootstrap::OptionalEngineState, String> {+ Ok(bootstrap::optional_engine_status(&app, &engine))+}++/// Install an optional engine (OCR or audio) in the background.+/// Streams "engine:install-progress" events; kills the sidecar afterward+/// so the fresh process picks up the newly installed packages.+/// A mutex serializes concurrent installs so two simultaneous installs don't+/// race the provision state file or conflict at the venv layer.+#[tauri::command]+async fn install_engine(+ app: AppHandle,+ engine: String,+ manager: tauri::State<'_, Arc<SidecarManager>>,+ install_lock: tauri::State<'_, Arc<tokio::sync::Mutex<()>>>,+) -> Result<(), String> {+ let _guard = install_lock.lock().await;+ bootstrap::install_optional_engine(app.clone(), engine).await?;+ // Kill sidecar so it respawns with the new packages importable.+ manager.kill_sidecar().await;+ Ok(())+}++// ── Stage 3 commands ───────────────────────────────────────────────────────++#[tauri::command]+async fn get_capabilities(+ app: AppHandle,+ manager: tauri::State<'_, Arc<SidecarManager>>,+) -> Result<ipc::CapabilitiesReport, String> {+ let (python, script) = sidecar_paths(&app)?;+ manager.ensure_alive(&python, &script).await?;++ let req = serde_json::json!({+ "v": 1,+ "id": next_id(),+ "method": "capabilities",+ "params": {}+ });+ let resp = manager.send_streaming(&req, |_| {}).await?;++ if !resp.get("ok").and_then(|v| v.as_bool()).unwrap_or(false) {+ return Err("Capabilities check failed.".into());+ }++ let data = resp+ .get("result")+ .ok_or("Capabilities response missing 'result'.")?;+ serde_json::from_value(data.clone())+ .map_err(|e| format!("Could not parse capabilities report: {e}"))+}++#[tauri::command]+async fn check_provider(+ app: AppHandle,+ provider: String,+ base_url: String,+ key: String,+ manager: tauri::State<'_, Arc<SidecarManager>>,+) -> Result<ipc::ProviderCheckResult, String> {+ let (python, script) = sidecar_paths(&app)?;+ manager.ensure_alive(&python, &script).await?;++ let req = serde_json::json!({+ "v": 1,+ "id": next_id(),+ "method": "check-provider",+ "params": { "provider": provider, "base_url": base_url, "key": key }+ });+ let resp = manager.send_streaming(&req, |_| {}).await?;++ let data = resp+ .get("result")+ .ok_or("Provider check response missing 'result'.")?;+ serde_json::from_value(data.clone())+ .map_err(|e| format!("Could not parse provider check result: {e}"))+}++#[tauri::command]+async fn get_config(app: AppHandle) -> Result<config::AppConfig, String> {+ Ok(config::load(&app))+}++#[tauri::command]+async fn set_config(app: AppHandle, config: config::AppConfig) -> Result<(), String> {+ config::save(&app, &config)+}++// ── Stage 5: Cleanup ─────────────────────────────────────────────────────────++/// Build the provider config block the sidecar `cleanup` method expects. Keeps the+/// API key server-side — the frontend never has to round-trip it for cleanup.+fn build_provider_cfg(cfg: &config::AppConfig) -> serde_json::Value {+ let (base_url, key) = match cfg.llm_mode.as_str() {+ "local" => (cfg.local_base_url.clone(), String::new()),+ "api" => (cfg.api_base_url.clone(), cfg.api_key.clone()),+ _ => (String::new(), String::new()),+ };+ serde_json::json!({+ "mode": cfg.llm_mode,+ "api_type": cfg.api_type,+ "base_url": base_url,+ "key": key,+ "model": cfg.cleanup_model,+ })+}++/// Run a cleanup pass on a Markdown string. Deterministic rules always; optional+/// LLM pass when `llm` is true and the configured provider is usable (fails soft+/// inside the sidecar). Re-runnable with different rule sets without re-converting.+#[tauri::command]+async fn cleanup_markdown(+ app: AppHandle,+ markdown: String,+ source_format: String,+ method: String,+ rules: std::collections::HashMap<String, bool>,+ manager: tauri::State<'_, Arc<SidecarManager>>,+) -> Result<ipc::CleanupResult, String> {+ let (python, script) = sidecar_paths(&app)?;+ manager.ensure_alive(&python, &script).await?;++ let cfg = config::load(&app);+ let provider_cfg = build_provider_cfg(&cfg);++ let req = serde_json::json!({+ "v": 1,+ "id": next_id(),+ "method": "cleanup",+ "params": {+ "markdown": markdown,+ "source_format": source_format,+ "method": method,+ "rules": rules,+ "provider": provider_cfg,+ }+ });++ let resp = manager.send_streaming(&req, |_| {}).await?;++ if !resp.get("ok").and_then(|v| v.as_bool()).unwrap_or(false) {+ let detail = resp+ .get("error")+ .and_then(|e| e.get("detail"))+ .and_then(|d| d.as_str())+ .unwrap_or("Cleanup failed.")+ .to_string();+ return Err(detail);+ }++ let data = resp+ .get("result")+ .ok_or("Cleanup response missing 'result'.")?;+ serde_json::from_value(data.clone())+ .map_err(|e| format!("Could not parse cleanup result: {e}"))+}++// ── Stage 4 commands ───────────────────────────────────────────────────────++/// Expand a list of paths (files and/or folders) to all supported file paths.+/// Folders are walked recursively; unsupported extensions are filtered out.+#[tauri::command]+async fn list_files(paths: Vec<String>) -> Result<Vec<String>, String> {+ let supported = all_supported_exts();+ let mut result = Vec::new();+ for path in &paths {+ let p = std::path::Path::new(path);+ if p.is_dir() {+ collect_supported(p, &mut result, &supported)?;+ } else if p.is_file() {+ let ext = p+ .extension()+ .map(|e| e.to_string_lossy().to_lowercase())+ .unwrap_or_default();+ if supported.contains(&ext.as_str()) {+ result.push(path.clone());+ }+ }+ }+ Ok(result)+}++/// Metadata for a staged file: name, uppercase extension (type badge), byte size.+#[derive(serde::Serialize)]+pub struct FileInfo {+ pub path: String,+ pub name: String,+ pub ext: String,+ pub size: u64,+}++/// Read a UTF-8 text file (used to view a finished batch item's output .md).+/// Validates that the path is within an allowed directory (app data dir, the+/// configured output folder) OR was recorded as a path the app itself wrote.+/// This prevents a compromised webview from reading arbitrary files.+#[tauri::command]+async fn read_text_file(+ app: AppHandle,+ path: String,+ written: tauri::State<'_, Arc<WrittenPaths>>,+) -> Result<String, String> {+ let canonical = std::fs::canonicalize(&path)+ .map_err(|e| format!("Could not read file: {e}"))?;++ let cfg = config::load(&app);+ let mut allowed = false;++ // App data dir is always allowed (config, logs, etc.).+ if let Ok(app_data) = app.path().app_data_dir() {+ if let Ok(app_data_canon) = std::fs::canonicalize(&app_data) {+ if canonical.starts_with(&app_data_canon) {+ allowed = true;+ }+ }+ }++ // The configured output folder is allowed (that's where batch .md files live).+ if !allowed && !cfg.output_folder.is_empty() {+ if let Ok(out_canon) = std::fs::canonicalize(&cfg.output_folder) {+ if canonical.starts_with(&out_canon) {+ allowed = true;+ }+ }+ }++ // Paths the app itself wrote (via write_output or save_markdown) are allowed.+ // This covers the next_to_source case without a blanket .md extension check.+ if !allowed && written.contains(&canonical) {+ allowed = true;+ }++ if !allowed {+ return Err("Access denied: this file is outside the app's output directories.".to_string());+ }++ std::fs::read_to_string(&canonical).map_err(|e| format!("Could not read file: {e}"))+}++/// Return name/type/size for each path, for the staging list chips.+#[tauri::command]+async fn stat_files(paths: Vec<String>) -> Result<Vec<FileInfo>, String> {+ let mut out = Vec::with_capacity(paths.len());+ for p in paths {+ let path = std::path::Path::new(&p);+ let name = path+ .file_name()+ .map(|n| n.to_string_lossy().into_owned())+ .unwrap_or_else(|| p.clone());+ let ext = path+ .extension()+ .map(|e| e.to_string_lossy().to_uppercase())+ .unwrap_or_default();+ let size = std::fs::metadata(&p).map(|m| m.len()).unwrap_or(0);+ out.push(FileInfo { path: p.clone(), name, ext, size });+ }+ Ok(out)+}++fn collect_supported(+ dir: &std::path::Path,+ out: &mut Vec<String>,+ exts: &[&str],+) -> Result<(), String> {+ collect_supported_depth(dir, out, exts, 0)+}++fn collect_supported_depth(+ dir: &std::path::Path,+ out: &mut Vec<String>,+ exts: &[&str],+ depth: usize,+) -> Result<(), String> {+ // Cap recursion depth — a symlink loop (a → b → a) would otherwise stack-overflow.+ const MAX_DEPTH: usize = 32;+ if depth > MAX_DEPTH {+ return Ok(());+ }+ let entries =+ std::fs::read_dir(dir).map_err(|e| format!("Cannot read directory: {e}"))?;+ for entry in entries.flatten() {+ // Use file_type() (does NOT follow symlinks) instead of is_dir() (which does)+ // so a symlink loop can't send us into unbounded recursion.+ let ft = match entry.file_type() {+ Ok(ft) => ft,+ Err(_) => continue,+ };+ if ft.is_dir() && !ft.is_symlink() {+ collect_supported_depth(&entry.path(), out, exts, depth + 1)?;+ } else if ft.is_file() {+ let p = entry.path();+ let ext = p+ .extension()+ .map(|e| e.to_string_lossy().to_lowercase())+ .unwrap_or_default();+ if exts.contains(&ext.as_str()) {+ out.push(p.to_string_lossy().to_string());+ }+ }+ }+ Ok(())+}++/// Open a native folder-picker dialog; returns the chosen path or null.+#[tauri::command]+async fn pick_folder(app: AppHandle) -> Result<Option<String>, String> {+ let path = tokio::task::spawn_blocking(move || {+ app.dialog()+ .file()+ .set_title("Choose output folder")+ .blocking_pick_folder()+ })+ .await+ .map_err(|e| format!("Dialog error: {e}"))?;++ Ok(path+ .and_then(|p| p.into_path().ok())+ .map(|p| p.to_string_lossy().into_owned()))+}++/// Stage 7: reveal a path in the OS file manager. If given a file, opens its+/// containing folder; if given a folder, opens it directly.+#[tauri::command]+async fn open_folder(app: AppHandle, path: String) -> Result<(), String> {+ use tauri_plugin_opener::OpenerExt;+ let p = std::path::Path::new(&path);+ let target = if p.is_file() {+ p.parent().map(|d| d.to_path_buf()).unwrap_or_else(|| p.to_path_buf())+ } else {+ p.to_path_buf()+ };+ app.opener()+ .open_path(target.to_string_lossy().to_string(), None::<&str>)+ .map_err(|e| format!("Could not open folder: {e}"))+}++/// Shared logic for `start_batch` and `retry_failed` (identical signatures + behavior).+#[allow(clippy::too_many_arguments)]+async fn start_batch_inner(+ app: AppHandle,+ files: Vec<String>,+ output_folder: Option<String>,+ output_rule: Option<String>,+ cleanup: Option<ipc::CleanupOptions>,+ extract_images: Option<bool>,+ manager: Arc<SidecarManager>,+ batch: Arc<BatchManager>,+) -> Result<ipc::BatchStartResult, String> {+ let (python, script) = sidecar_paths(&app)?;+ manager.ensure_alive(&python, &script).await?;++ batch.reset();++ let run = next_id();+ let items: Vec<ipc::BatchItem> = files+ .iter()+ .enumerate()+ .map(|(idx, path)| pre_check_file(path, idx, &run))+ .collect();++ let result = ipc::BatchStartResult { items: items.clone() };++ let cfg = config::load(&app);+ let provider_cfg = build_provider_cfg(&cfg);+ let conv_opts = BatchConvOpts {+ llm_cfg: if cfg.llm_conversion && cfg.llm_mode != "off" {+ build_conversion_llm_cfg(&cfg)+ } else {+ serde_json::Value::Null+ },+ extract_images: extract_images.unwrap_or(cfg.extract_images),+ audio_model: cfg.audio_model.clone(),+ };+ let out_opts =+ OutputOpts::from_config(&cfg, output_rule, output_folder, common_parent(&files));+ let app2 = app.clone();+ let mgr2 = Arc::clone(&manager);+ let bat2 = Arc::clone(&batch);++ tokio::spawn(run_batch(+ app2, items, mgr2, bat2, python, script, out_opts, cleanup, provider_cfg, conv_opts,+ ));++ Ok(result)+}++/// Start a batch conversion. Returns the initial item list immediately;+/// progress and completion are reported via "batch:file-status" / "batch:done" events.+#[tauri::command]+#[allow(clippy::too_many_arguments)]+async fn start_batch(+ app: AppHandle,+ files: Vec<String>,+ output_folder: Option<String>,+ output_rule: Option<String>,+ cleanup: Option<ipc::CleanupOptions>,+ extract_images: Option<bool>,+ manager: tauri::State<'_, Arc<SidecarManager>>,+ batch: tauri::State<'_, Arc<BatchManager>>,+) -> Result<ipc::BatchStartResult, String> {+ start_batch_inner(+ app, files, output_folder, output_rule, cleanup, extract_images,+ Arc::clone(&*manager), Arc::clone(&*batch),+ ).await+}++/// Cancel the running batch — sets the flag and tells the sidecar to stop all+/// in-flight conversions.+#[tauri::command]+async fn cancel_batch(+ manager: tauri::State<'_, Arc<SidecarManager>>,+ batch: tauri::State<'_, Arc<BatchManager>>,+) -> Result<(), String> {+ batch.cancel();+ manager.cancel().await+}++/// Re-run only the failed files from a previous batch. Signature matches+/// start_batch so the frontend can reuse the same flow.+#[tauri::command]+#[allow(clippy::too_many_arguments)]+async fn retry_failed(+ app: AppHandle,+ files: Vec<String>,+ output_folder: Option<String>,+ output_rule: Option<String>,+ cleanup: Option<ipc::CleanupOptions>,+ extract_images: Option<bool>,+ manager: tauri::State<'_, Arc<SidecarManager>>,+ batch: tauri::State<'_, Arc<BatchManager>>,+) -> Result<ipc::BatchStartResult, String> {+ start_batch_inner(+ app, files, output_folder, output_rule, cleanup, extract_images,+ Arc::clone(&*manager), Arc::clone(&*batch),+ ).await+}++// ── Batch runner ───────────────────────────────────────────────────────────++fn pre_check_file(path: &str, idx: usize, run: &str) -> ipc::BatchItem {+ let id = format!("{run}-{idx}");+ let p = std::path::Path::new(path);+ let filename = p+ .file_name()+ .map(|n| n.to_string_lossy().to_string())+ .unwrap_or_else(|| path.to_string());++ if !p.exists() {+ return ipc::BatchItem {+ id,+ path: path.to_string(),+ filename: filename.clone(),+ status: "failed".to_string(),+ output_path: None,+ error: Some(ipc::IpcError {+ code: "FILE_NOT_FOUND".to_string(),+ title: "File not found".to_string(),+ detail: format!("'{filename}' does not exist."),+ suggested_action: "Check the file hasn't been moved or deleted.".to_string(),+ diagnostics_key: None,+ }),+ warnings: Vec::new(),+ };+ }++ let supported = all_supported_exts();+ let ext = p+ .extension()+ .map(|e| e.to_string_lossy().to_lowercase())+ .unwrap_or_default();+ if !supported.contains(&ext.as_str()) {+ return ipc::BatchItem {+ id,+ path: path.to_string(),+ filename,+ status: "failed".to_string(),+ output_path: None,+ error: Some(ipc::IpcError {+ code: "UNSUPPORTED_FORMAT".to_string(),+ title: "Format not supported".to_string(),+ detail: format!("'.{ext}' files can't be converted."),+ suggested_action: "Use PDF, DOCX, PPTX, XLSX, HTML, CSV, JSON, XML, EPUB, images, or audio.".to_string(),+ diagnostics_key: None,+ }),+ warnings: Vec::new(),+ };+ }++ // Size cap is format-aware: documents that MarkItDown loads into memory are capped+ // at 100 MB, but audio (transcription) and images/scans (OCR) are legitimately large+ // and are stream/page processed, so they get a much higher ceiling. This matches the+ // sidecar, which exempts the OCR/audio path from its own 100 MB document cap.+ let is_media = OCR_EXTS.contains(&ext.as_str()) || AUDIO_EXTS.contains(&ext.as_str());+ let limit: u64 = if is_media { 2048 * 1024 * 1024 } else { 100 * 1024 * 1024 };+ let limit_mb = limit / (1024 * 1024);+ if let Ok(meta) = std::fs::metadata(path) {+ if meta.len() > limit {+ let mb = meta.len() as f64 / (1024.0 * 1024.0);+ return ipc::BatchItem {+ id,+ path: path.to_string(),+ filename,+ status: "failed".to_string(),+ output_path: None,+ error: Some(ipc::IpcError {+ code: "FILE_TOO_LARGE".to_string(),+ title: "File too large".to_string(),+ detail: format!("{mb:.1} MB — limit is {limit_mb} MB."),+ suggested_action: "Split the file into smaller parts.".to_string(),+ diagnostics_key: None,+ }),+ warnings: Vec::new(),+ };+ }+ }++ ipc::BatchItem {+ id,+ path: path.to_string(),+ filename,+ status: "pending".to_string(),+ output_path: None,+ error: None,+ warnings: Vec::new(),+ }+}++#[allow(clippy::too_many_arguments)]+async fn run_batch(+ app: AppHandle,+ items: Vec<ipc::BatchItem>,+ manager: Arc<SidecarManager>,+ batch: Arc<BatchManager>,+ python: PathBuf,+ script: PathBuf,+ out_opts: OutputOpts,+ cleanup: Option<ipc::CleanupOptions>,+ provider_cfg: serde_json::Value,+ conv_opts: BatchConvOpts,+) {+ use std::sync::atomic::{AtomicU32, Ordering};+ use tokio::sync::Mutex;+ let sem = Arc::new(tokio::sync::Semaphore::new(batch_worker_cap()));+ let state: Arc<Mutex<Vec<ipc::BatchItem>>> = Arc::new(Mutex::new(items.clone()));+ let mut handles: Vec<tokio::task::JoinHandle<()>> = Vec::new();++ // Stage 5: aggregate cleanup change counts across all workers.+ let cleanup_enabled = cleanup+ .as_ref()+ .map(|c| c.method != "none")+ .unwrap_or(false);+ let cleanup_changes = Arc::new(AtomicU32::new(0));+ let cleanup = Arc::new(cleanup);+ let provider_cfg = Arc::new(provider_cfg);+ let conv_opts = Arc::new(conv_opts);+ let out_opts = Arc::new(out_opts);++ for item in items {+ // Pre-failed items: emit their final status immediately, no worker needed.+ if item.status != "pending" {+ let _ = app.emit(+ "batch:file-status",+ ipc::BatchFileStatusEvent {+ id: item.id,+ status: item.status,+ frac: None,+ error: item.error,+ output_path: None,+ warnings: item.warnings,+ },+ );+ continue;+ }++ // Drain the remaining queue if the batch was cancelled.+ if batch.is_cancelled() {+ set_item_cancelled(&state, &item.id).await;+ let _ = app.emit(+ "batch:file-status",+ ipc::BatchFileStatusEvent {+ id: item.id,+ status: "cancelled".to_string(),+ frac: None,+ error: None,+ output_path: None,+ warnings: Vec::new(),+ },+ );+ continue;+ }++ let permit = match Arc::clone(&sem).acquire_owned().await {+ Ok(p) => p,+ Err(_) => break,+ };++ // Re-check after acquiring the semaphore slot.+ if batch.is_cancelled() {+ drop(permit);+ set_item_cancelled(&state, &item.id).await;+ let _ = app.emit(+ "batch:file-status",+ ipc::BatchFileStatusEvent {+ id: item.id,+ status: "cancelled".to_string(),+ frac: None,+ error: None,+ output_path: None,+ warnings: Vec::new(),+ },+ );+ continue;+ }++ let app2 = app.clone();+ let mgr2 = Arc::clone(&manager);+ let bat2 = Arc::clone(&batch);+ let st2 = Arc::clone(&state);+ let py2 = python.clone();+ let sc2 = script.clone();+ let item2 = item.clone();+ let out2 = Arc::clone(&out_opts);+ let clean2 = Arc::clone(&cleanup);+ let prov2 = Arc::clone(&provider_cfg);+ let changes2 = Arc::clone(&cleanup_changes);+ let conv2 = Arc::clone(&conv_opts);++ handles.push(tokio::spawn(async move {+ let _permit = permit; // released when task ends+ convert_one_batch(+ app2, item2, mgr2, bat2, st2, py2, sc2, out2, clean2, prov2, changes2, conv2,+ )+ .await;+ }));+ }++ for h in handles {+ match h.await {+ Ok(_) => {}+ Err(join_err) => {+ // A worker task panicked — its BatchItem was never updated, so mark it+ // failed here and emit the event the frontend expects. Without this the+ // chip stays "running" forever and the done/failed/cancelled count won't sum.+ let err = ipc::IpcError {+ code: "INTERNAL_ERROR".to_string(),+ title: "Conversion failed".to_string(),+ detail: format!("Internal error: {join_err}"),+ suggested_action: "Restart the app.".to_string(),+ diagnostics_key: None,+ };+ // The panicked worker's item id is unknown here (it was moved into the+ // task). Scan for any item still "running" and fail it.+ let failed_ids: Vec<String> = {+ let mut state_guard = state.lock().await;+ state_guard+ .iter_mut()+ .filter(|i| i.status == "running")+ .map(|i| {+ i.status = "failed".to_string();+ i.error = Some(err.clone());+ i.id.clone()+ })+ .collect()+ };+ for id in failed_ids {+ let _ = app.emit(+ "batch:file-status",+ ipc::BatchFileStatusEvent {+ id,+ status: "failed".to_string(),+ frac: None,+ error: Some(err.clone()),+ output_path: None,+ warnings: Vec::new(),+ },+ );+ }+ }+ }+ }++ let final_items = state.lock().await.clone();+ let done = final_items.iter().filter(|i| i.status == "done").count() as u32;+ let failed = final_items.iter().filter(|i| i.status == "failed").count() as u32;+ let cancelled = final_items+ .iter()+ .filter(|i| i.status == "cancelled")+ .count() as u32;++ let _ = app.emit(+ "batch:done",+ ipc::BatchDoneEvent {+ done,+ failed,+ cancelled,+ items: final_items,+ cleanup_applied: cleanup_enabled,+ cleanup_changes: cleanup_changes.load(Ordering::Relaxed),+ },+ );+}++#[allow(clippy::too_many_arguments)]+async fn convert_one_batch(+ app: AppHandle,+ item: ipc::BatchItem,+ manager: Arc<SidecarManager>,+ batch: Arc<BatchManager>,+ state: Arc<tokio::sync::Mutex<Vec<ipc::BatchItem>>>,+ python: PathBuf,+ script: PathBuf,+ out_opts: Arc<OutputOpts>,+ cleanup: Arc<Option<ipc::CleanupOptions>>,+ provider_cfg: Arc<serde_json::Value>,+ cleanup_changes: Arc<std::sync::atomic::AtomicU32>,+ conv_opts: Arc<BatchConvOpts>,+) {+ let id = item.id.clone();+ let path = item.path.clone();+ // The conv_id sent to the sidecar must be unique per request for IPC routing.+ let conv_id = format!("batch-{id}");++ let _ = app.emit(+ "batch:file-status",+ ipc::BatchFileStatusEvent {+ id: id.clone(),+ status: "running".to_string(),+ frac: None,+ error: None,+ output_path: None,+ warnings: Vec::new(),+ },+ );++ if let Err(e) = manager.ensure_alive(&python, &script).await {+ let error = ipc::IpcError {+ code: "INTERNAL_ERROR".to_string(),+ title: "Sidecar unavailable".to_string(),+ detail: e,+ suggested_action: "Restart the app.".to_string(),+ diagnostics_key: None,+ };+ update_item(&state, &id, "failed", None, Some(error.clone()), Vec::new()).await;+ let _ = app.emit(+ "batch:file-status",+ ipc::BatchFileStatusEvent {+ id,+ status: "failed".to_string(),+ frac: None,+ error: Some(error),+ output_path: None,+ warnings: Vec::new(),+ },+ );+ return;+ }++ let mut conv_params = serde_json::json!({ "path": path });+ if !conv_opts.llm_cfg.is_null() {+ conv_params["llm"] = conv_opts.llm_cfg.clone();+ }+ conv_params["audio_model"] = serde_json::Value::String(conv_opts.audio_model.clone());++ let req = serde_json::json!({+ "v": 1,+ "id": conv_id,+ "method": "convert-one",+ "params": conv_params+ });++ let app2 = app.clone();+ let id2 = id.clone();++ let resp = manager+ .send_streaming(&req, move |prog| {+ let frac = prog.get("frac").and_then(|v| v.as_f64());+ let _ = app2.emit(+ "batch:file-status",+ ipc::BatchFileStatusEvent {+ id: id2.clone(),+ status: "running".to_string(),+ frac,+ error: None,+ output_path: None,+ warnings: Vec::new(),+ },+ );+ })+ .await;++ match resp {+ Err(e) => {+ let (status, error) = if batch.is_cancelled() {+ ("cancelled".to_string(), None)+ } else {+ (+ "failed".to_string(),+ Some(ipc::IpcError {+ code: "INTERNAL_ERROR".to_string(),+ title: "Conversion failed".to_string(),+ detail: e,+ suggested_action: "Restart the app.".to_string(),+ diagnostics_key: None,+ }),+ )+ };+ update_item(&state, &id, &status, None, error.clone(), Vec::new()).await;+ let _ = app.emit(+ "batch:file-status",+ ipc::BatchFileStatusEvent {+ id,+ status,+ frac: None,+ error,+ output_path: None,+ warnings: Vec::new(),+ },+ );+ }+ Ok(val) => {+ let ok = val.get("ok").and_then(|v| v.as_bool()).unwrap_or(false);+ if ok {+ let raw_markdown = val+ .get("result")+ .and_then(|r| r.get("markdown"))+ .and_then(|m| m.as_str())+ .unwrap_or("")+ .to_string();++ // Carry the sidecar's non-fatal notices (e.g. "No text could be+ // extracted") through to the batch summary so an empty result is+ // never silent.+ let warnings: Vec<String> = val+ .get("result")+ .and_then(|r| r.get("meta"))+ .and_then(|m| m.get("warnings"))+ .and_then(|w| w.as_array())+ .map(|arr| {+ arr.iter()+ .filter_map(|v| v.as_str().map(|s| s.to_string()))+ .collect()+ })+ .unwrap_or_default();++ // Stage 6: image extraction (zip-based formats, Rust-side).+ // Extract to the OUTPUT directory (not the source) so relative links+ // resolve correctly under fixed_folder / mirror_tree output rules.+ let raw_markdown = if conv_opts.extract_images {+ match resolve_output_dir(&path, &out_opts) {+ Ok(out_dir) => {+ let (_assets_name, links) = extract_zip_images(&path, &out_dir);+ if !links.is_empty() {+ let mut md = raw_markdown;+ md.push_str("\n\n---\n\n## Extracted Images\n\n");+ md.push_str(&links.join("\n\n"));+ md+ } else {+ raw_markdown+ }+ }+ Err(_) => raw_markdown, // can't resolve dir — don't lose the .md+ }+ } else {+ raw_markdown+ };++ // Stage 5: optional cleanup before the single write chokepoint.+ // Fails soft — on any cleanup error, fall back to the raw markdown+ // so the file is still written and the run continues.+ let markdown = match cleanup.as_ref() {+ Some(opts) if opts.method != "none" => {+ match run_batch_cleanup(+ &manager, opts, &provider_cfg, &raw_markdown, &path,+ )+ .await+ {+ Some((cleaned, changes)) => {+ cleanup_changes+ .fetch_add(changes, std::sync::atomic::Ordering::Relaxed);+ cleaned+ }+ None => raw_markdown,+ }+ }+ _ => raw_markdown,+ };++ match write_output(&path, &markdown, &out_opts) {+ Ok(out_path) => {+ // Record the written path so read_text_file can read it back.+ if let Some(wp) = app.try_state::<Arc<WrittenPaths>>() {+ wp.record(std::path::Path::new(&out_path));+ }+ update_item(+ &state, &id, "done", Some(out_path.clone()), None,+ warnings.clone(),+ )+ .await;+ let _ = app.emit(+ "batch:file-status",+ ipc::BatchFileStatusEvent {+ id,+ status: "done".to_string(),+ frac: Some(1.0),+ error: None,+ output_path: Some(out_path),+ warnings,+ },+ );+ }+ Err(e) => {+ let error = ipc::IpcError {+ code: "INTERNAL_ERROR".to_string(),+ title: "Could not write output file".to_string(),+ detail: e,+ suggested_action: "Check write permissions in the output folder."+ .to_string(),+ diagnostics_key: None,+ };+ update_item(&state, &id, "failed", None, Some(error.clone()), Vec::new()).await;+ let _ = app.emit(+ "batch:file-status",+ ipc::BatchFileStatusEvent {+ id,+ status: "failed".to_string(),+ frac: None,+ error: Some(error),+ output_path: None,+ warnings: Vec::new(),+ },+ );+ }+ }+ } else {+ let code = val+ .get("error")+ .and_then(|e| e.get("code"))+ .and_then(|c| c.as_str())+ .unwrap_or("");+ let (status, error) = if code == "CANCELLED" || batch.is_cancelled() {+ ("cancelled".to_string(), None)+ } else {+ let err: Option<ipc::IpcError> = val+ .get("error")+ .and_then(|e| serde_json::from_value(e.clone()).ok());+ ("failed".to_string(), err)+ };+ update_item(&state, &id, &status, None, error.clone(), Vec::new()).await;+ let _ = app.emit(+ "batch:file-status",+ ipc::BatchFileStatusEvent {+ id,+ status,+ frac: None,+ error,+ output_path: None,+ warnings: Vec::new(),+ },+ );+ }+ }+ }+}++async fn update_item(+ state: &Arc<tokio::sync::Mutex<Vec<ipc::BatchItem>>>,+ id: &str,+ status: &str,+ output_path: Option<String>,+ error: Option<ipc::IpcError>,+ warnings: Vec<String>,+) {+ let mut items = state.lock().await;+ if let Some(item) = items.iter_mut().find(|i| i.id == id) {+ item.status = status.to_string();+ item.output_path = output_path;+ item.error = error;+ item.warnings = warnings;+ }+}++async fn set_item_cancelled(+ state: &Arc<tokio::sync::Mutex<Vec<ipc::BatchItem>>>,+ id: &str,+) {+ update_item(state, id, "cancelled", None, None, Vec::new()).await;+}++/// Run the sidecar cleanup pass for one batch file. Returns the cleaned markdown+/// and the total number of changes, or `None` if cleanup failed (caller falls back+/// to the raw markdown — failure never stops the run).+async fn run_batch_cleanup(+ manager: &Arc<SidecarManager>,+ opts: &ipc::CleanupOptions,+ provider_cfg: &serde_json::Value,+ markdown: &str,+ path: &str,+) -> Option<(String, u32)> {+ let source_format = std::path::Path::new(path)+ .extension()+ .map(|e| e.to_string_lossy().to_lowercase())+ .unwrap_or_default();++ let req = serde_json::json!({+ "v": 1,+ "id": format!("cleanup-{}", next_id()),+ "method": "cleanup",+ "params": {+ "markdown": markdown,+ "source_format": source_format,+ "method": opts.method,+ "rules": opts.rules,+ "provider": provider_cfg,+ }+ });++ let resp = manager.send_streaming(&req, |_| {}).await.ok()?;+ if !resp.get("ok").and_then(|v| v.as_bool()).unwrap_or(false) {+ return None;+ }+ let result = resp.get("result")?;+ let cleaned = result.get("markdown").and_then(|m| m.as_str())?.to_string();+ let changes: u32 = result+ .get("summary")+ .and_then(|s| s.get("rules"))+ .and_then(|r| r.as_array())+ .map(|rules| {+ rules+ .iter()+ .filter(|r| r.get("applied").and_then(|a| a.as_bool()).unwrap_or(false))+ .filter_map(|r| r.get("changes").and_then(|c| c.as_u64()))+ .sum::<u64>() as u32+ })+ .unwrap_or(0);+ Some((cleaned, changes))+}++/// Stage 7: resolved output settings for a conversion run. Built once from config+/// + the per-run folder/rule override, then applied to every file in the batch.+#[derive(Clone)]+struct OutputOpts {+ /// "next_to_source" | "fixed_folder" | "mirror_tree"+ rule: String,+ /// Destination folder for fixed_folder / mirror_tree (None = none chosen).+ folder: Option<String>,+ /// Filename template — tokens {stem} {ext} {date}; ".md" is always appended.+ template: String,+ /// "keep" | "lower" | "slug"+ case: String,+ /// Common parent of all batch sources — the base whose sub-tree mirror_tree+ /// recreates under `folder`. None outside a multi-file run.+ source_root: Option<String>,+}++impl OutputOpts {+ /// Build from config, with a per-run rule/folder override (from the staging UI).+ fn from_config(+ cfg: &config::AppConfig,+ rule_override: Option<String>,+ folder_override: Option<String>,+ source_root: Option<String>,+ ) -> Self {+ let rule = rule_override.unwrap_or_else(|| cfg.output_rule.clone());+ // An explicit per-run folder wins; otherwise fall back to the saved default.+ let folder = folder_override+ .filter(|f| !f.is_empty())+ .or_else(|| (!cfg.output_folder.is_empty()).then(|| cfg.output_folder.clone()));+ OutputOpts {+ rule,+ folder,+ template: if cfg.naming_template.trim().is_empty() {+ "{stem}".to_string()+ } else {+ cfg.naming_template.clone()+ },+ case: cfg.naming_case.clone(),+ source_root,+ }+ }+}++/// Today's date as YYYY-MM-DD (UTC) for the {date} naming token. Computed without a+/// date crate via the civil-from-days algorithm.+fn today_date_string() -> String {+ use std::time::{SystemTime, UNIX_EPOCH};+ let secs = SystemTime::now()+ .duration_since(UNIX_EPOCH)+ .map(|d| d.as_secs())+ .unwrap_or(0);+ let days = (secs / 86_400) as i64;+ let (y, m, d) = civil_from_days(days);+ format!("{y:04}-{m:02}-{d:02}")+}++/// Howard Hinnant's civil_from_days: days since 1970-01-01 → (year, month, day).+fn civil_from_days(z: i64) -> (i64, u32, u32) {+ let z = z + 719_468;+ let era = if z >= 0 { z } else { z - 146_096 } / 146_097;+ let doe = z - era * 146_097;+ let yoe = (doe - doe / 1460 + doe / 36_524 - doe / 146_096) / 365;+ let y = yoe + era * 400;+ let doy = doe - (365 * yoe + yoe / 4 - yoe / 100);+ let mp = (5 * doy + 2) / 153;+ let d = (doy - (153 * mp + 2) / 5 + 1) as u32;+ let m = (if mp < 10 { mp + 3 } else { mp - 9 }) as u32;+ (y + if m <= 2 { 1 } else { 0 }, m, d)+}++/// Lowercase, collapse any non-alphanumeric run to a single '-', trim leading/trailing '-'.+fn slugify(s: &str) -> String {+ let mut out = String::with_capacity(s.len());+ let mut prev_dash = false;+ for ch in s.to_lowercase().chars() {+ if ch.is_alphanumeric() {+ out.push(ch);+ prev_dash = false;+ } else if !prev_dash {+ out.push('-');+ prev_dash = true;+ }+ }+ out.trim_matches('-').to_string()+}++/// Strip characters illegal in a filename (Windows-safe), control chars, and any+/// trailing dots/spaces. Also avoids Windows reserved names (CON, PRN, AUX, NUL,+/// COM1-9, LPT1-9). Never returns a path separator.+fn sanitize_filename(s: &str) -> String {+ let cleaned: String = s+ .chars()+ .map(|c| match c {+ '\\' | '/' | ':' | '*' | '?' | '"' | '<' | '>' | '|' => '-',+ c if (c as u32) < 0x20 => '-',+ c => c,+ })+ .collect();+ let result = cleaned.trim().trim_end_matches('.').trim().to_string();+ // Windows reserved names — appending '_' avoids the OS refusing to create the file.+ let upper = result.to_uppercase();+ let reserved = ["CON", "PRN", "AUX", "NUL",+ "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9",+ "LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9"];+ if reserved.contains(&upper.as_str()) {+ return format!("{result}_");+ }+ result+}++/// Apply the naming template + case to a source path → a base filename (no extension).+fn build_output_name(p: &std::path::Path, template: &str, case: &str) -> String {+ let stem = p+ .file_stem()+ .map(|s| s.to_string_lossy().to_string())+ .unwrap_or_else(|| "output".to_string());+ let ext = p+ .extension()+ .map(|e| e.to_string_lossy().to_lowercase())+ .unwrap_or_default();+ let name = template+ .replace("{stem}", &stem)+ .replace("{ext}", &ext)+ .replace("{date}", &today_date_string());+ let cased = match case {+ "lower" => name.to_lowercase(),+ "slug" => slugify(&name),+ _ => name,+ };+ let final_name = sanitize_filename(&cased);+ if final_name.is_empty() { "output".to_string() } else { final_name }+}++/// Deepest directory that is an ancestor of every path (for mirror_tree). None if the+/// list is empty or paths share no common base.+fn common_parent(paths: &[String]) -> Option<String> {+ let mut base = std::path::Path::new(paths.first()?).parent()?.to_path_buf();+ for p in paths {+ let parent = std::path::Path::new(p)+ .parent()+ .unwrap_or_else(|| std::path::Path::new(""));+ while !parent.starts_with(&base) {+ if !base.pop() {+ return Some(base.to_string_lossy().to_string());+ }+ }+ }+ Some(base.to_string_lossy().to_string())+}++/// Resolve the output directory for a source file given the output rule + opts.+/// Extracted from `write_output` so the batch path can extract images to the same+/// directory before writing the .md.+fn resolve_output_dir(source: &str, opts: &OutputOpts) -> Result<std::path::PathBuf, String> {+ let p = std::path::Path::new(source);+ let src_parent = p.parent().unwrap_or_else(|| std::path::Path::new("."));++ let dir: std::path::PathBuf = match opts.rule.as_str() {+ "fixed_folder" => match opts.folder.as_deref() {+ Some(f) if !f.is_empty() => std::path::PathBuf::from(f),+ _ => src_parent.to_path_buf(),+ },+ "mirror_tree" => match (opts.folder.as_deref(), opts.source_root.as_deref()) {+ (Some(dest), Some(root)) if !dest.is_empty() => {+ let rel = src_parent+ .strip_prefix(root)+ .unwrap_or_else(|_| std::path::Path::new(""));+ std::path::PathBuf::from(dest).join(rel)+ }+ (Some(dest), None) if !dest.is_empty() => std::path::PathBuf::from(dest),+ _ => src_parent.to_path_buf(),+ },+ // "next_to_source" and any unknown value+ _ => src_parent.to_path_buf(),+ };++ std::fs::create_dir_all(&dir)+ .map_err(|e| format!("Cannot create output folder: {e}"))?;+ Ok(dir)+}++/// Write `markdown` for `source`, applying the resolved output rule + naming template.+/// Creates the destination folder if needed; appends `_2`, `_3`, … on collision and+/// never overwrites (atomic create — safe under concurrent workers).+fn write_output(source: &str, markdown: &str, opts: &OutputOpts) -> Result<String, String> {+ let p = std::path::Path::new(source);+ let dir = resolve_output_dir(source, opts)?;++ let name = build_output_name(p, &opts.template, &opts.case);+ let base = dir.join(format!("{name}.md"));++ // Atomic exclusive create — safe under concurrency. Two workers producing the+ // same name can't both observe !exists() and silently overwrite each other.+ use std::io::Write;+ match std::fs::OpenOptions::new()+ .write(true)+ .create_new(true)+ .open(&base)+ {+ Ok(mut f) => {+ f.write_all(markdown.as_bytes())+ .map_err(|e| format!("Write failed: {e}"))?;+ return Ok(base.to_string_lossy().to_string());+ }+ Err(e) if e.kind() == std::io::ErrorKind::AlreadyExists => {}+ Err(e) => return Err(format!("Write failed: {e}")),+ }++ for n in 2u32..=999 {+ let candidate = dir.join(format!("{name}_{n}.md"));+ match std::fs::OpenOptions::new()+ .write(true)+ .create_new(true)+ .open(&candidate)+ {+ Ok(mut f) => {+ f.write_all(markdown.as_bytes())+ .map_err(|e| format!("Write failed: {e}"))?;+ return Ok(candidate.to_string_lossy().to_string());+ }+ Err(e) if e.kind() == std::io::ErrorKind::AlreadyExists => continue,+ Err(e) => return Err(format!("Write failed: {e}")),+ }+ }+ Err(format!("Could not find a free output path for '{name}.md'"))+}++// ── Tests ────────────────────────────────────────────────────────────────────++#[cfg(test)]+mod tests {+ use super::*;+ use std::io::Write;++ /// Build a minimal DOCX-shaped zip (word/media/<imgs>) in a temp dir and run+ /// extract_zip_images against it.+ fn make_zip_with_media(dir: &std::path::Path, name: &str, media: &[(&str, &[u8])]) -> String {+ let path = dir.join(name);+ let file = std::fs::File::create(&path).unwrap();+ let mut zip = zip::ZipWriter::new(file);+ let opts: zip::write::FileOptions<()> =+ zip::write::FileOptions::default().compression_method(zip::CompressionMethod::Stored);+ // Some non-image entries that must be ignored.+ zip.start_file("word/document.xml", opts).unwrap();+ zip.write_all(b"<xml/>").unwrap();+ zip.start_file("[Content_Types].xml", opts).unwrap();+ zip.write_all(b"<types/>").unwrap();+ for (n, data) in media {+ zip.start_file(*n, opts).unwrap();+ zip.write_all(data).unwrap();+ }+ zip.finish().unwrap();+ path.to_string_lossy().to_string()+ }++ #[test]+ fn extracts_media_images_and_links() {+ let tmp = std::env::temp_dir().join(format!("mdstudio_test_{}", next_id()));+ std::fs::create_dir_all(&tmp).unwrap();+ // Content images must clear the MIN_IMAGE_BYTES (5 KB) junk threshold and be+ // distinct (the dedupe is content-hashed).+ let mut png = b"\x89PNG\r\n\x1a\n".to_vec();+ png.extend(std::iter::repeat(0xAB).take(8192));+ let mut jpg = b"\xff\xd8\xff\xe0".to_vec();+ jpg.extend(std::iter::repeat(0xCD).take(8192));+ let tiny = b"\x89PNG tiny chrome glyph"; // < 5 KB → must be skipped+ let src = make_zip_with_media(+ &tmp,+ "doc.docx",+ &[+ ("word/media/image1.png", png.as_slice()),+ ("word/media/image2.jpg", jpg.as_slice()),+ ("word/media/image3.png", png.as_slice()), // duplicate of image1 → deduped+ ("word/media/icon.png", tiny), // too small → skipped+ ("word/media/notes.txt", b"ignore me"), // non-image → skipped+ ],+ );++ let (assets_name, links) = extract_zip_images(&src, &tmp);+ assert_eq!(links.len(), 2, "exactly the 2 distinct content images (tiny+dupe dropped)");+ assert!(links.iter().any(|l| l.contains("image1.png")));+ assert!(links.iter().any(|l| l.contains("image2.jpg")));+ assert!(links.iter().all(|l| l.starts_with("![")), "links are markdown images");+ // Files actually written, content preserved.+ let p1 = tmp.join(format!("{assets_name}")).join("image1.png");+ assert!(p1.exists());+ assert_eq!(std::fs::read(&p1).unwrap(), png);+ // Relative path in the link points at {stem}_assets/.+ assert!(links[0].contains("doc_assets/"));++ std::fs::remove_dir_all(&tmp).ok();+ }++ #[test]+ fn concurrency_caps_are_sane() {+ let cpu = cpu_worker_cap();+ let cap = batch_worker_cap();+ let threads = batch_worker_threads();+ let cores = logical_cores();+ eprintln!(+ "cores={cores} cpu_cap={cpu} batch_cap={cap} threads/worker={threads} \+ avail_ram_mb={:?}",+ available_ram_mb()+ );+ assert!((2..=8).contains(&cpu), "cpu cap in range");+ assert!((1..=8).contains(&cap), "batch cap in range");+ assert!(cap <= cpu, "RAM only reduces the count, never above the CPU cap");+ assert!(threads >= 1, "at least one thread per worker");+ // The thread budget must never let a full pool oversubscribe the cores.+ assert!(threads * cpu <= cores + cpu, "workers x threads ~= cores");+ }++ fn opts(rule: &str, folder: Option<&str>, template: &str, case: &str, root: Option<&str>) -> OutputOpts {+ OutputOpts {+ rule: rule.to_string(),+ folder: folder.map(|s| s.to_string()),+ template: template.to_string(),+ case: case.to_string(),+ source_root: root.map(|s| s.to_string()),+ }+ }++ #[test]+ fn naming_template_and_case() {+ // {stem} keeps the old behavior; {ext} distinguishes formats; slug lowercases.+ let p = std::path::Path::new("C:/docs/My Report.PDF");+ assert_eq!(build_output_name(p, "{stem}", "keep"), "My Report");+ assert_eq!(build_output_name(p, "{stem}_{ext}", "keep"), "My Report_pdf");+ assert_eq!(build_output_name(p, "{stem}", "lower"), "my report");+ assert_eq!(build_output_name(p, "{stem}", "slug"), "my-report");+ // Illegal characters in a template are sanitized to '-'.+ assert_eq!(build_output_name(p, "a/b:c", "keep"), "a-b-c");+ }++ #[test]+ fn write_output_default_is_next_to_source() {+ let tmp = std::env::temp_dir().join(format!("mdflux_out_{}", next_id()));+ std::fs::create_dir_all(&tmp).unwrap();+ let src = tmp.join("doc.pdf");+ std::fs::write(&src, b"x").unwrap();++ let o = opts("next_to_source", None, "{stem}", "keep", None);+ let out = write_output(&src.to_string_lossy(), "# hi", &o).unwrap();+ assert!(out.ends_with("doc.md"));+ assert!(std::path::Path::new(&out).exists());+ // Collision → _2 suffix.+ let out2 = write_output(&src.to_string_lossy(), "# hi again", &o).unwrap();+ assert!(out2.ends_with("doc_2.md"));++ std::fs::remove_dir_all(&tmp).ok();+ }++ #[test]+ fn write_output_fixed_and_mirror() {+ let tmp = std::env::temp_dir().join(format!("mdflux_out2_{}", next_id()));+ let root = tmp.join("in");+ let sub = root.join("sub");+ let dest = tmp.join("out");+ std::fs::create_dir_all(&sub).unwrap();+ let src = sub.join("a.docx");+ std::fs::write(&src, b"x").unwrap();++ // fixed_folder: lands directly in dest, no sub-tree.+ let of = opts("fixed_folder", Some(&dest.to_string_lossy()), "{stem}", "keep", None);+ let out = write_output(&src.to_string_lossy(), "md", &of).unwrap();+ assert_eq!(std::path::Path::new(&out).parent().unwrap(), dest);++ // mirror_tree: recreates sub/ under dest.+ let om = opts(+ "mirror_tree",+ Some(&dest.to_string_lossy()),+ "{stem}",+ "keep",+ Some(&root.to_string_lossy()),+ );+ let out = write_output(&src.to_string_lossy(), "md", &om).unwrap();+ assert_eq!(std::path::Path::new(&out).parent().unwrap(), dest.join("sub"));++ std::fs::remove_dir_all(&tmp).ok();+ }++ #[test]+ fn common_parent_finds_deepest_shared_dir() {+ let paths = vec![+ "C:/a/b/c/one.pdf".to_string(),+ "C:/a/b/d/two.pdf".to_string(),+ ];+ let cp = common_parent(&paths).unwrap().replace('\\', "/");+ assert_eq!(cp, "C:/a/b");+ }++ #[test]+ fn non_zip_format_yields_nothing() {+ let tmp = std::env::temp_dir().join(format!("mdstudio_test2_{}", next_id()));+ std::fs::create_dir_all(&tmp).unwrap();+ let p = tmp.join("plain.pdf");+ std::fs::write(&p, b"not a zip").unwrap();+ let (_dir, links) = extract_zip_images(&p.to_string_lossy(), &tmp);+ assert!(links.is_empty(), "pdf is not a zip-image source");+ std::fs::remove_dir_all(&tmp).ok();+ }++ #[test]+ fn zip_with_no_media_yields_nothing() {+ let tmp = std::env::temp_dir().join(format!("mdstudio_test3_{}", next_id()));+ std::fs::create_dir_all(&tmp).unwrap();+ let src = make_zip_with_media(&tmp, "empty.pptx", &[]);+ let (_dir, links) = extract_zip_images(&src, &tmp);+ assert!(links.is_empty());+ // No assets folder should be created when there's nothing to extract.+ assert!(!tmp.join("empty_assets").exists());+ std::fs::remove_dir_all(&tmp).ok();+ }++ #[test]+ fn next_id_is_unique_under_rapid_calls() {+ // The old ms-timestamp id collided when two callers called within the same+ // millisecond. The AtomicU64 counter must never produce a duplicate.+ let ids: std::collections::HashSet<String> = (0..1000).map(|_| next_id()).collect();+ assert_eq!(ids.len(), 1000, "next_id must produce 1000 unique ids");+ }++ #[test]+ fn write_output_atomic_no_overwrite() {+ // Two concurrent writes to the same path must not silently overwrite —+ // the atomic create_new path produces _2 on collision.+ let tmp = std::env::temp_dir().join(format!("mdflux_atomic_{}", next_id()));+ std::fs::create_dir_all(&tmp).unwrap();+ let src = tmp.join("f.pdf");+ std::fs::write(&src, b"x").unwrap();+ let o = opts("next_to_source", None, "{stem}", "keep", None);+ let out1 = write_output(&src.to_string_lossy(), "first", &o).unwrap();+ let out2 = write_output(&src.to_string_lossy(), "second", &o).unwrap();+ assert_ne!(out1, out2, "collision must produce a different path");+ // Both files exist with their own content (no overwrite).+ assert_eq!(std::fs::read_to_string(&out1).unwrap(), "first");+ assert_eq!(std::fs::read_to_string(&out2).unwrap(), "second");+ std::fs::remove_dir_all(&tmp).ok();+ }++ #[test]+ fn collect_supported_skips_symlinks() {+ // A symlink loop must not cause unbounded recursion (stack overflow).+ // We can't easily create a symlink loop without admin on Windows, but we+ // can at least verify the function handles a normal tree without crashing+ // and respects the depth cap. The symlink-skip is tested by file_type().+ let tmp = std::env::temp_dir().join(format!("mdflux_symlink_{}", next_id()));+ std::fs::create_dir_all(tmp.join("a").join("b")).unwrap();+ std::fs::write(tmp.join("a").join("doc.pdf"), b"x").unwrap();+ std::fs::write(tmp.join("a").join("b").join("note.docx"), b"x").unwrap();+ let mut out: Vec<String> = Vec::new();+ let exts = ["pdf", "docx"];+ collect_supported(&tmp, &mut out, &exts).unwrap();+ assert_eq!(out.len(), 2, "should find both files in the tree");+ std::fs::remove_dir_all(&tmp).ok();+ }++ #[test]+ fn extract_zip_images_writes_to_out_dir() {+ // The H1 fix: images must be written to the OUTPUT dir, not next to source.+ // Verify the assets folder appears in out_dir, not in source's parent.+ let tmp = std::env::temp_dir().join(format!("mdflux_imgdir_{}", next_id()));+ let src_dir = tmp.join("src");+ let out_dir = tmp.join("out");+ std::fs::create_dir_all(&src_dir).unwrap();+ std::fs::create_dir_all(&out_dir).unwrap();+ let mut png = b"\x89PNG\r\n\x1a\n".to_vec();+ png.extend(std::iter::repeat(0xAB).take(8192));+ let src = make_zip_with_media(&src_dir, "doc.docx", &[("word/media/image1.png", png.as_slice())]);+ let (assets_name, links) = extract_zip_images(&src, &out_dir);+ assert!(!links.is_empty(), "image extracted");+ // Assets folder must be in out_dir, NOT in src_dir.+ assert!(out_dir.join(&assets_name).exists(), "assets in output dir");+ assert!(!src_dir.join(&assets_name).exists(), "assets NOT in source dir");+ std::fs::remove_dir_all(&tmp).ok();+ }+}++// ── App entry ──────────────────────────────────────────────────────────────++#[cfg_attr(mobile, tauri::mobile_entry_point)]+pub fn run() {+ // Per-worker CPU-thread budget for batch conversions. The sidecar reads this and+ // applies it to batch workers only (single conversions use all cores). Set once at+ // startup so it propagates to the sidecar process and its worker subprocesses.+ std::env::set_var("MDFLUX_BATCH_THREADS", batch_worker_threads().to_string());++ let app = tauri::Builder::default()+ .manage(Arc::new(SidecarManager::new()))+ .manage(Arc::new(BatchManager::new()))+ .manage(Arc::new(WrittenPaths::default()))+ .manage(Arc::new(tokio::sync::Mutex::new(())))+ .plugin(tauri_plugin_opener::init())+ .plugin(tauri_plugin_dialog::init())+ .plugin(tauri_plugin_fs::init())+ .invoke_handler(tauri::generate_handler![+ get_provision_status,+ start_provision,+ run_health_check,+ convert_file,+ cancel_conversion,+ save_markdown,+ pick_file,+ get_capabilities,+ check_provider,+ get_config,+ set_config,+ cleanup_markdown,+ list_files,+ stat_files,+ read_text_file,+ pick_folder,+ open_folder,+ start_batch,+ cancel_batch,+ retry_failed,+ optional_engine_status,+ install_engine,+ ])+ .build(tauri::generate_context!())+ .expect("error while building tauri application");++ // Kill the sidecar deterministically on app exit. kill_on_drop(true) on the spawn+ // is a backstop, but this ensures the python.exe is terminated even if the managed+ // Arc's drop order doesn't reach it (e.g. the process is torn down without dropping+ // managed state). Without this the sidecar orphaned on Windows until reboot.+ app.run(|app_handle, event| {+ if let tauri::RunEvent::ExitRequested { .. } = event {+ if let Some(manager) = app_handle.try_state::<Arc<SidecarManager>>() {+ tauri::async_runtime::block_on(manager.kill_sidecar());+ }+ }+ });+}diff --git a/app/src-tauri/src/main.rs b/app/src-tauri/src/main.rsnew file mode 100644index 0000000..31c612f--- /dev/null+++ b/app/src-tauri/src/main.rs@@ -0,0 +1,6 @@+// Prevents additional console window on Windows in release, DO NOT REMOVE!!+#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]++fn main() {+ app_lib::run()+}diff --git a/app/src-tauri/tauri.conf.json b/app/src-tauri/tauri.conf.jsonnew file mode 100644index 0000000..9d9a835--- /dev/null+++ b/app/src-tauri/tauri.conf.json@@ -0,0 +1,55 @@+{+ "$schema": "https://schema.tauri.app/config/2",+ "productName": "MDFlux",+ "version": "0.1.0",+ "identifier": "com.projektvisyo.mdflux",+ "build": {+ "beforeDevCommand": "npm run dev",+ "devUrl": "http://localhost:1420",+ "beforeBuildCommand": "npm run build",+ "frontendDist": "../build"+ },+ "app": {+ "windows": [+ {+ "title": "MDFlux",+ "width": 960,+ "height": 680,+ "minWidth": 680,+ "minHeight": 520,+ "resizable": true,+ "center": true+ }+ ],+ "security": {+ "csp": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: asset: http://asset.localhost; connect-src 'self' ipc: http://ipc.localhost"+ }+ },+ "bundle": {+ "active": false,+ "targets": ["nsis"],+ "publisher": "ibrahimqureshae",+ "copyright": "© 2026 ibrahimqureshae",+ "category": "Productivity",+ "shortDescription": "Convert documents to clean Markdown — offline.",+ "longDescription": "MDFlux turns PDFs, Office files, images, audio and more into clean Markdown. It self-installs its dependencies on first launch, runs fully offline, and adds batch processing, cleanup, OCR/transcription, and an optional local/API intelligence layer on top of Microsoft's MarkItDown.",+ "icon": [+ "icons/32x32.png",+ "icons/128x128.png",+ "icons/[email protected]",+ "icons/icon.icns",+ "icons/icon.ico"+ ],+ "resources": [+ "resources/sidecar/*",+ "resources/sidecar/requirements.lock",+ "resources/sidecar/requirements-ocr.lock",+ "resources/sidecar/requirements-audio.lock"+ ],+ "windows": {+ "nsis": {+ "installMode": "currentUser"+ }+ }+ }+}diff --git a/app/src/app.html b/app/src/app.htmlnew file mode 100644index 0000000..5bd854d--- /dev/null+++ b/app/src/app.html@@ -0,0 +1,13 @@+<!doctype html>+<html lang="en">+ <head>+ <meta charset="utf-8" />+ <link rel="icon" href="%sveltekit.assets%/favicon.png" />+ <meta name="viewport" content="width=device-width, initial-scale=1" />+ <title>MDFlux</title>+ %sveltekit.head%+ </head>+ <body data-sveltekit-preload-data="hover">+ <div style="display: contents">%sveltekit.body%</div>+ </body>+</html>diff --git a/app/src/lib/BatchQueueView.svelte b/app/src/lib/BatchQueueView.sveltenew file mode 100644index 0000000..f18f689--- /dev/null+++ b/app/src/lib/BatchQueueView.svelte@@ -0,0 +1,301 @@+<script lang="ts">+ import type { ConvertError } from './ErrorCard.svelte';++ export interface BatchItemState {+ id: string;+ path: string;+ filename: string;+ status: string;+ frac: number | null;+ output_path: string | null;+ error: ConvertError | null;+ warnings?: string[];+ }++ let {+ items,+ phase,+ onCancel,+ onOpen,+ }: {+ items: BatchItemState[];+ phase: string;+ onCancel: () => void;+ onOpen?: (item: BatchItemState) => void;+ } = $props();++ const done = $derived(items.filter(i => i.status === 'done').length);+ const failed = $derived(items.filter(i => i.status === 'failed').length);+ const finished = $derived(items.filter(i => i.status !== 'pending' && i.status !== 'running').length);+ const total = $derived(items.length);+ const progress = $derived(total > 0 ? finished / total : 0);+ const isCancelling = $derived(phase === 'cancelling');++ const STATUS_LABELS: Record<string, string> = {+ pending: 'Queued',+ running: 'Converting…',+ done: 'Done',+ failed: 'Failed',+ cancelled: 'Cancelled',+ };+</script>++<div class="batch-queue">++ <!-- Header -->+ <div class="queue-header">+ <div class="queue-title-row">+ <span class="queue-title">Converting {total} file{total === 1 ? '' : 's'}</span>+ <span class="queue-counts">+ {done} done{failed > 0 ? ` · ${failed} failed` : ''}+ </span>+ </div>++ <!-- Overall progress bar -->+ <div class="overall-bar" role="progressbar"+ aria-valuenow={Math.round(progress * 100)}+ aria-valuemin={0} aria-valuemax={100}+ aria-label="Overall batch progress">+ <div class="overall-fill" style="width: {progress * 100}%"></div>+ </div>++ <!-- Cancel -->+ <button+ class="cancel-btn"+ onclick={onCancel}+ disabled={isCancelling}+ aria-label={isCancelling ? 'Cancelling…' : 'Cancel batch'}+ title="Stop the whole batch. Files already finished are kept."+ >+ {isCancelling ? 'Cancelling…' : 'Cancel'}+ </button>+ </div>++ <!-- File list -->+ <ul class="file-list" aria-label="Conversion queue">+ {#each items as item (item.id)}+ <li class="file-row"+ class:row-failed={item.status === 'failed'}+ class:row-cancelled={item.status === 'cancelled'}>++ <!-- Status icon -->+ <span class="status-icon" aria-hidden="true">+ {#if item.status === 'done'}+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none">+ <circle cx="7" cy="7" r="6" fill="color-mix(in srgb, var(--green) 18%, transparent)" stroke="var(--green)" stroke-width="1"/>+ <path d="M4.5 7l1.8 1.8L9.5 5" stroke="var(--green)" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>+ </svg>+ {:else if item.status === 'failed'}+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none">+ <circle cx="7" cy="7" r="6" fill="color-mix(in srgb, var(--red) 18%, transparent)" stroke="var(--red)" stroke-width="1"/>+ <path d="M5 5l4 4M9 5l-4 4" stroke="var(--red)" stroke-width="1.3" stroke-linecap="round"/>+ </svg>+ {:else if item.status === 'cancelled'}+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none">+ <circle cx="7" cy="7" r="6" stroke="var(--text-muted)" stroke-width="1"/>+ <path d="M5 7h4" stroke="var(--text-muted)" stroke-width="1.3" stroke-linecap="round"/>+ </svg>+ {:else if item.status === 'running'}+ <span class="spinner-sm" aria-label="Converting"></span>+ {:else}+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none">+ <circle cx="7" cy="7" r="6" stroke="var(--border)" stroke-width="1"/>+ <circle cx="7" cy="7" r="2" fill="var(--border)"/>+ </svg>+ {/if}+ </span>++ <!-- Filename + status -->+ <div class="file-info">+ <span class="file-name">{item.filename}</span>++ {#if item.status === 'running' && item.frac !== null}+ <div class="file-bar" role="progressbar"+ aria-valuenow={Math.round((item.frac ?? 0) * 100)}+ aria-valuemin={0} aria-valuemax={100}>+ <div class="file-fill" style="width: {(item.frac ?? 0) * 100}%"></div>+ </div>+ {:else if item.status === 'running'}+ <div class="file-bar indeterminate" role="progressbar" aria-label="Converting"></div>+ {:else if item.status === 'failed' && item.error}+ <span class="file-error">{item.error.title} — {item.error.detail}</span>+ {:else}+ <span class="file-status">{STATUS_LABELS[item.status] ?? item.status}</span>+ {/if}+ </div>++ {#if item.status === 'done' && onOpen}+ <button class="btn-accent-soft btn-sm view-btn" title="View the converted Markdown" onclick={() => onOpen?.(item)}>View</button>+ {/if}++ </li>+ {/each}+ </ul>++</div>++<style>+ .batch-queue {+ flex: 1;+ display: flex;+ flex-direction: column;+ min-height: 0;+ gap: var(--sp-4);+ }++ /* Header */+ .queue-header {+ display: flex;+ flex-direction: column;+ gap: var(--sp-2);+ flex-shrink: 0;+ }+ .queue-title-row {+ display: flex;+ align-items: baseline;+ justify-content: space-between;+ }+ .queue-title {+ font-size: 13px;+ font-weight: 600;+ color: var(--text-primary);+ }+ .queue-counts {+ font-size: 12px;+ color: var(--text-secondary);+ font-family: var(--font-mono);+ }++ /* Overall progress */+ .overall-bar {+ height: 3px;+ background: var(--border);+ border-radius: 999px;+ overflow: hidden;+ }+ .overall-fill {+ height: 100%;+ background: var(--accent);+ border-radius: 999px;+ transition: width 0.4s ease;+ }+ @media (prefers-reduced-motion: reduce) { .overall-fill { transition: none; } }++ /* Cancel button */+ .cancel-btn {+ align-self: flex-end;+ height: 34px;+ padding: 0 16px;+ font-size: 12.5px;+ font-weight: 600;+ font-family: var(--font-ui);+ color: var(--text-primary);+ background: var(--surface-2);+ border: 1px solid var(--border-strong);+ border-radius: var(--radius-sm);+ cursor: pointer;+ transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);+ }+ .cancel-btn:hover:not(:disabled) { color: #fff; background: var(--red); border-color: var(--red); }+ .cancel-btn:disabled { opacity: 0.55; cursor: default; }+ .cancel-btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); }++ /* File list */+ .file-list {+ flex: 1;+ overflow-y: auto;+ list-style: none;+ background: var(--surface-1);+ border: 1px solid var(--border);+ border-radius: var(--radius);+ contain: content;+ }++ .file-row {+ display: flex;+ align-items: flex-start;+ gap: var(--sp-2);+ padding: var(--sp-2) var(--sp-3);+ border-bottom: 1px solid var(--border);+ transition: background var(--transition-fast);+ }+ .file-row:last-child { border-bottom: none; }+ .file-row.row-failed { background: color-mix(in srgb, var(--red) 4%, transparent); }+ .file-row.row-cancelled { opacity: 0.5; }++ /* View button styling is global (.btn-accent-soft/.btn-sm); only placement is local. */+ .view-btn { flex-shrink: 0; align-self: center; }++ /* Status icon */+ .status-icon {+ flex-shrink: 0;+ width: 14px;+ height: 14px;+ margin-top: 2px;+ display: flex;+ align-items: center;+ justify-content: center;+ }+ .spinner-sm {+ width: 12px;+ height: 12px;+ border: 1.5px solid var(--border);+ border-top-color: var(--accent);+ border-radius: 50%;+ animation: spin 0.7s linear infinite;+ display: block;+ }+ @media (prefers-reduced-motion: reduce) { .spinner-sm { animation: none; } }+ @keyframes spin { to { transform: rotate(360deg); } }++ /* File info */+ .file-info {+ flex: 1;+ min-width: 0;+ display: flex;+ flex-direction: column;+ gap: 3px;+ }+ .file-name {+ font-size: 12px;+ color: var(--text-primary);+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ }+ .file-status {+ font-size: 11px;+ color: var(--text-muted);+ }+ .file-error {+ font-size: 11px;+ color: var(--red);+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ }++ /* Per-file progress bar */+ .file-bar {+ height: 2px;+ background: var(--border);+ border-radius: 999px;+ overflow: hidden;+ }+ .file-fill {+ height: 100%;+ background: var(--accent);+ border-radius: 999px;+ transition: width 0.3s ease;+ }+ @media (prefers-reduced-motion: reduce) { .file-fill { transition: none; } }+ .file-bar.indeterminate {+ background: linear-gradient(90deg, var(--border) 0%, var(--accent) 50%, var(--border) 100%);+ background-size: 200% 100%;+ animation: shimmer 1.4s ease infinite;+ }+ @keyframes shimmer { to { background-position: -200% 0; } }+ @media (prefers-reduced-motion: reduce) {+ .file-bar.indeterminate { animation: none; background: var(--border); }+ }+</style>diff --git a/app/src/lib/BatchSummaryView.svelte b/app/src/lib/BatchSummaryView.sveltenew file mode 100644index 0000000..4b0f8b7--- /dev/null+++ b/app/src/lib/BatchSummaryView.svelte@@ -0,0 +1,280 @@+<script lang="ts">+ import type { BatchItemState } from './BatchQueueView.svelte';+ import { onDestroy } from 'svelte';++ let {+ items,+ onRetry,+ onClose,+ onOpen,+ onOpenFolder,+ cleanupApplied = false,+ cleanupChanges = 0,+ }: {+ items: BatchItemState[];+ onRetry: () => void;+ onClose: () => void;+ onOpen?: (item: BatchItemState) => void;+ onOpenFolder?: () => void;+ cleanupApplied?: boolean;+ cleanupChanges?: number;+ } = $props();++ const done = $derived(items.filter(i => i.status === 'done').length);+ const failed = $derived(items.filter(i => i.status === 'failed').length);+ const cancelled = $derived(items.filter(i => i.status === 'cancelled').length);+ const warned = $derived(items.filter(i => i.status === 'done' && (i.warnings?.length ?? 0) > 0).length);+ const total = $derived(items.length);+ const hasFailed = $derived(failed > 0);++ let copied = $state(false);+ let copyTimer: ReturnType<typeof setTimeout>;+ onDestroy(() => clearTimeout(copyTimer));++ function copyFailures() {+ const text = items+ .filter(i => i.status === 'failed')+ .map(i => `${i.filename}: ${i.error?.detail ?? 'unknown error'}`)+ .join('\n');+ navigator.clipboard.writeText(text).then(() => {+ clearTimeout(copyTimer);+ copied = true;+ copyTimer = setTimeout(() => (copied = false), 1800);+ }).catch(() => {+ copied = false;+ });+ }+</script>++<div class="summary">++ <!-- Stats row -->+ <div class="stats">+ {#if done > 0}+ <span class="stat stat-done">+ <span class="stat-num">{done}</span>+ <span class="stat-label">converted</span>+ </span>+ {/if}+ {#if failed > 0}+ <span class="stat stat-failed">+ <span class="stat-num">{failed}</span>+ <span class="stat-label">failed</span>+ </span>+ {/if}+ {#if cancelled > 0}+ <span class="stat stat-cancelled">+ <span class="stat-num">{cancelled}</span>+ <span class="stat-label">cancelled</span>+ </span>+ {/if}+ {#if warned > 0}+ <span class="stat stat-warned" title="Converted, but the file had no extractable content">+ <span class="stat-num">{warned}</span>+ <span class="stat-label">with notices</span>+ </span>+ {/if}+ </div>++ {#if cleanupApplied && done > 0}+ <div class="cleanup-note">+ <svg width="13" height="13" viewBox="0 0 14 14" fill="none" aria-hidden="true">+ <path d="M2 7.5L5.5 11L12 3.5" stroke="var(--accent)" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>+ </svg>+ <span>+ Cleanup applied to every converted file{cleanupChanges > 0 ? ` — ${cleanupChanges.toLocaleString()} change${cleanupChanges === 1 ? '' : 's'} in total` : ''}.+ </span>+ </div>+ {/if}++ <!-- Results list -->+ <ul class="results-list" aria-label="Conversion results">+ {#each items as item (item.id)}+ <li class="result-row"+ class:result-done={item.status === 'done'}+ class:result-failed={item.status === 'failed'}+ class:result-cancelled={item.status === 'cancelled'}>++ <!-- Status dot -->+ <span class="dot"+ class:dot-green={item.status === 'done' && !(item.warnings?.length)}+ class:dot-amber={item.status === 'done' && !!item.warnings?.length}+ class:dot-red={item.status === 'failed'}+ class:dot-muted={item.status === 'cancelled' || item.status === 'pending'}+ aria-hidden="true">+ </span>++ <!-- File info -->+ <div class="result-info">+ <span class="result-filename">{item.filename}</span>+ {#if item.status === 'done' && item.output_path}+ <span class="result-detail result-out">→ {item.output_path}</span>+ {#if item.warnings?.length}+ <span class="result-detail result-warn">⚠ {item.warnings.join(' · ')}</span>+ {/if}+ {:else if item.status === 'failed' && item.error}+ <span class="result-detail result-err">{item.error.title} — {item.error.detail}</span>+ {:else if item.status === 'cancelled'}+ <span class="result-detail result-muted">Cancelled</span>+ {/if}+ </div>++ {#if item.status === 'done' && onOpen}+ <button class="btn-accent-soft btn-sm view-btn" title="View the converted Markdown" onclick={() => onOpen?.(item)}>View</button>+ {/if}++ </li>+ {/each}+ </ul>++ <!-- Actions -->+ <div class="actions">+ {#if hasFailed}+ <button class="btn-primary" title="Re-run only the files that failed, with the same settings" onclick={onRetry}>+ Retry {failed} failed file{failed === 1 ? '' : 's'}+ </button>+ <button class="btn-secondary" title="Copy the list of failed files and their errors" onclick={copyFailures}>+ {copied ? 'Copied!' : 'Copy failures'}+ </button>+ {/if}+ {#if done > 0 && onOpenFolder}+ <button class="btn-secondary" title="Reveal the converted files in your file manager" onclick={onOpenFolder}>+ Open folder+ </button>+ {/if}+ <button class="btn-secondary" title="Clear this summary and start a new conversion" onclick={onClose}>+ Convert more files+ </button>+ </div>++</div>++<style>+ .summary {+ flex: 1;+ display: flex;+ flex-direction: column;+ gap: var(--sp-4);+ min-height: 0;+ }++ /* Stats */+ .stats {+ display: flex;+ gap: var(--sp-3);+ flex-shrink: 0;+ }+ .cleanup-note {+ display: flex;+ align-items: center;+ gap: var(--sp-2);+ flex-shrink: 0;+ font-size: 12px;+ color: var(--text-secondary);+ background: color-mix(in srgb, var(--accent) 7%, transparent);+ border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);+ border-radius: var(--radius-sm);+ padding: var(--sp-2) var(--sp-3);+ }+ .stat {+ display: flex;+ align-items: baseline;+ gap: 5px;+ padding: var(--sp-2) var(--sp-3);+ border-radius: var(--radius-sm);+ border: 1px solid var(--border);+ }+ .stat-num {+ font-size: 20px;+ font-weight: 700;+ font-family: var(--font-mono);+ line-height: 1;+ }+ .stat-label {+ font-size: 11px;+ color: var(--text-secondary);+ text-transform: uppercase;+ letter-spacing: 0.05em;+ }+ .stat-done { background: color-mix(in srgb, var(--green) 8%, transparent); }+ .stat-done .stat-num { color: var(--green); }+ .stat-failed { background: color-mix(in srgb, var(--red) 8%, transparent); }+ .stat-failed .stat-num { color: var(--red); }+ .stat-cancelled { background: color-mix(in srgb, var(--text-muted) 8%, transparent); }+ .stat-cancelled .stat-num { color: var(--text-muted); }+ .stat-warned { background: color-mix(in srgb, var(--amber) 8%, transparent); }+ .stat-warned .stat-num { color: var(--amber); }++ /* Results list */+ .results-list {+ flex: 1;+ overflow-y: auto;+ list-style: none;+ background: var(--surface-1);+ border: 1px solid var(--border);+ border-radius: var(--radius);+ contain: content;+ }++ .result-row {+ display: flex;+ align-items: flex-start;+ gap: var(--sp-2);+ padding: var(--sp-2) var(--sp-3);+ border-bottom: 1px solid var(--border);+ }+ .result-row:last-child { border-bottom: none; }+ .result-failed { background: color-mix(in srgb, var(--red) 4%, transparent); }+ .result-cancelled { opacity: 0.45; }++ .dot {+ flex-shrink: 0;+ width: 7px;+ height: 7px;+ border-radius: 50%;+ margin-top: 4px;+ }+ .dot-green { background: var(--green); }+ .dot-amber { background: var(--amber); }+ .dot-red { background: var(--red); }+ .dot-muted { background: var(--text-muted); }++ .result-info {+ flex: 1;+ min-width: 0;+ display: flex;+ flex-direction: column;+ gap: 2px;+ }+ .result-filename {+ font-size: 12px;+ color: var(--text-primary);+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ }+ .result-detail {+ font-size: 11px;+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ font-family: var(--font-mono);+ }+ .result-out { color: var(--text-muted); }+ .result-err { color: var(--red); }+ .result-warn { color: var(--amber); font-family: var(--font-ui); white-space: normal; }+ .result-muted { color: var(--text-muted); font-family: var(--font-ui); }++ /* The View button styling is the global .btn-accent-soft/.btn-sm; only its placement+ in the result row is local. */+ .view-btn { align-self: center; flex-shrink: 0; }++ /* Action buttons (.btn-primary / .btn-secondary / .btn-accent-soft / .btn-sm) and the+ row container come from tokens.css. */+ .actions {+ display: flex;+ gap: var(--sp-2);+ flex-shrink: 0;+ flex-wrap: wrap;+ }+</style>diff --git a/app/src/lib/ConvertProgress.svelte b/app/src/lib/ConvertProgress.sveltenew file mode 100644index 0000000..97af728--- /dev/null+++ b/app/src/lib/ConvertProgress.svelte@@ -0,0 +1,111 @@+<script lang="ts">+ let {+ stage = 'converting',+ onCancel,+ }: {+ stage?: string;+ onCancel: () => void;+ } = $props();++ const STAGE_LABELS: Record<string, string> = {+ downloading: 'Downloading from the cloud…',+ preflight: 'Checking file…',+ extracting: 'Extracting content…',+ formatting: 'Finishing up…',+ };++ let cancelPending = $state(false);++ function handleCancel() {+ cancelPending = true;+ onCancel();+ }+</script>++<div class="wrap">+ <p class="stage-label">{STAGE_LABELS[stage] ?? 'Converting…'}</p>++ <div class="track" role="progressbar" aria-label="Conversion in progress" aria-busy="true">+ <div class="fill"></div>+ </div>++ <button+ class="cancel-btn"+ onclick={handleCancel}+ disabled={cancelPending}+ aria-label="Cancel conversion"+ >+ {cancelPending ? 'Cancelling…' : 'Cancel'}+ </button>+</div>++<style>+ .wrap {+ flex: 1;+ display: flex;+ flex-direction: column;+ align-items: center;+ justify-content: center;+ gap: var(--sp-4);+ }++ .stage-label {+ font-size: 14px;+ font-weight: 500;+ color: var(--text-secondary);+ min-height: 1.4em;+ }++ .track {+ width: min(320px, 80%);+ height: 3px;+ background: var(--border);+ border-radius: 999px;+ overflow: hidden;+ }++ .fill {+ height: 100%;+ background: var(--accent);+ border-radius: 999px;+ animation: indeterminate 1.6s ease-in-out infinite;+ transform-origin: left center;+ }++ @keyframes indeterminate {+ 0% { transform: translateX(-100%) scaleX(0.4); }+ 50% { transform: translateX(60%) scaleX(0.6); }+ 100% { transform: translateX(200%) scaleX(0.4); }+ }++ @media (prefers-reduced-motion: reduce) {+ .fill { animation: none; width: 100%; opacity: 0.35; }+ }++ .cancel-btn {+ padding: var(--sp-2) var(--sp-6);+ font-size: 13px;+ font-weight: 600;+ font-family: var(--font-ui);+ color: var(--text-primary);+ background: var(--surface-2);+ border: 1px solid var(--border-strong);+ border-radius: var(--radius-sm);+ cursor: pointer;+ transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);+ }+ .cancel-btn:hover:not(:disabled) {+ background: var(--red);+ border-color: var(--red);+ color: #fff;+ }+ .cancel-btn:disabled {+ opacity: 0.5;+ cursor: wait;+ }+ .cancel-btn:focus-visible {+ outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);+ outline-offset: 3px;+ border-radius: var(--radius-sm);+ }+</style>diff --git a/app/src/lib/DiagnosticsView.svelte b/app/src/lib/DiagnosticsView.sveltenew file mode 100644index 0000000..d569a21--- /dev/null+++ b/app/src/lib/DiagnosticsView.svelte@@ -0,0 +1,1193 @@+<script lang="ts">+ import { onMount, onDestroy, untrack } from 'svelte';+ import { invoke } from '@tauri-apps/api/core';+ import { listen } from '@tauri-apps/api/event';+ import { buildOutputFilename, type NamingCase } from './naming';++ // ── Types ──────────────────────────────────────────────────────────────────++ interface FormatEntry {+ key: string;+ label: string;+ extensions: string[];+ module: string | null;+ module_version: string | null;+ converter: string | null;+ status: 'available' | 'missing' | 'broken' | 'coming_later';+ error: string | null;+ note?: string | null;+ }++ interface CapabilitiesReport {+ runtime: {+ python_version: string;+ sidecar_version: string;+ markitdown_version: string;+ venv_path: string;+ };+ formats: FormatEntry[];+ optional: {+ ocr: { status: string; engine: string; size_hint: string; note: string };+ audio: { status: string; engine: string; size_hint: string; note: string };+ };+ }++ interface EngineState {+ status: string; // "not_installed" | "installing" | "installed" | "failed"+ error?: string | null;+ }++ interface EngineInstallProgress {+ engine: string;+ step: string;+ message: string;+ pct: number;+ }++ interface ProviderCheckResult {+ server?: string;+ reachable: boolean;+ detail: string;+ models?: string[];+ usable: boolean;+ }++ export interface AppConfig {+ llm_mode: string;+ local_base_url: string;+ api_type: string;+ api_base_url: string;+ api_key: string;+ cleanup_model: string;+ cleanup_seen: boolean;+ // Stage 6+ conversion_model: string;+ llm_conversion: boolean;+ extract_images: boolean;+ audio_model: string;+ // Stage 7 — output management+ output_rule: string; // 'next_to_source' | 'fixed_folder' | 'mirror_tree'+ output_folder: string; // default folder for fixed_folder / mirror_tree+ naming_template: string; // tokens: {stem} {ext} {date}+ naming_case: string; // 'keep' | 'lower' | 'slug'+ open_after_convert: boolean;+ }++ // ── Props ──────────────────────────────────────────────────────────────────++ let {+ onBack,+ highlight = null,+ config,+ onConfigChange,+ }: {+ onBack: () => void;+ highlight?: string | null;+ config: AppConfig;+ onConfigChange: (c: AppConfig) => Promise<void>;+ } = $props();++ // ── State ──────────────────────────────────────────────────────────────────++ let caps = $state<CapabilitiesReport | null>(null);+ let capsLoading = $state(true);+ let capsError = $state<string | null>(null);++ let providerResult = $state<ProviderCheckResult | null>(null);+ let providerChecking = $state(false);++ // Editable copies of config fields (committed on Check/Test).+ // untrack: intentionally capturing initial prop value only.+ let localBaseUrl = $state(untrack(() => config.local_base_url));+ let apiType = $state(untrack(() => config.api_type));+ let apiBaseUrl = $state(untrack(() => config.api_base_url));+ let apiKey = $state(untrack(() => config.api_key));+ let cleanupModel = $state(untrack(() => config.cleanup_model));+ let conversionModel = $state(untrack(() => config.conversion_model ?? ''));++ // Stage 7 — output management. Template is edited locally for a live preview,+ // committed on change; rule/case/folder/toggle read config directly (reactive).+ let namingTemplate = $state(untrack(() => config.naming_template ?? '{stem}'));+ const namePreview = $derived(+ buildOutputFilename('Annual Report.pdf', namingTemplate, (config.naming_case ?? 'keep') as NamingCase),+ );++ // Stage 6: optional engine install state+ let ocrState = $state<EngineState>({ status: 'not_installed' });+ let audioState = $state<EngineState>({ status: 'not_installed' });+ let installing = $state<string | null>(null);+ let installMsg = $state('');+ let installPct = $state(0);+ let unlistenInstall: (() => void) | null = null;++ // Models offered in the cleanup-model dropdown: the currently-saved one plus+ // whatever the latest provider check returned.+ const modelOptions = $derived.by(() => {+ const set = new Set<string>();+ if (cleanupModel) set.add(cleanupModel);+ for (const m of providerResult?.models ?? []) set.add(m);+ return [...set];+ });++ // Local edits are committed on Check/Test; no continuous sync needed.++ // ── Lifecycle ──────────────────────────────────────────────────────────────++ onMount(async () => {+ let dead = false;+ loadCaps();++ // Load engine states from provision file (includes installing/failed states).+ const [ocr, audio] = await Promise.all([+ invoke<EngineState>('optional_engine_status', { engine: 'ocr' }).catch(() => ({ status: 'not_installed' })),+ invoke<EngineState>('optional_engine_status', { engine: 'audio' }).catch(() => ({ status: 'not_installed' })),+ ]);+ if (dead) return;+ ocrState = ocr as EngineState;+ audioState = audio as EngineState;++ listen<EngineInstallProgress>('engine:install-progress', ({ payload }) => {+ installMsg = payload.message;+ installPct = payload.pct;+ if (payload.step === 'installed') {+ if (payload.engine === 'ocr') ocrState = { status: 'installed' };+ else audioState = { status: 'installed' };+ }+ }).then(fn => { if (dead) fn(); else unlistenInstall = fn; });+ });++ onDestroy(() => { unlistenInstall?.(); });++ // ── Capabilities ───────────────────────────────────────────────────────────++ async function loadCaps() {+ capsLoading = true;+ capsError = null;+ try {+ caps = await invoke<CapabilitiesReport>('get_capabilities');+ } catch (e) {+ capsError = String(e);+ } finally {+ capsLoading = false;+ if (highlight) setTimeout(() => scrollToFormat(highlight!), 80);+ }+ }++ function scrollToFormat(key: string) {+ const el = document.getElementById(`fmt-${key}`);+ el?.scrollIntoView({ behavior: 'smooth', block: 'center' });+ }++ // ── Mode switch ────────────────────────────────────────────────────────────++ async function setMode(m: string) {+ providerResult = null;+ await onConfigChange({ ...config, llm_mode: m });+ }++ async function saveApiType(type: string) {+ apiType = type;+ providerResult = null;+ await onConfigChange({ ...config, api_type: type });+ }++ async function saveCleanupModel(m: string) {+ cleanupModel = m;+ await onConfigChange({ ...config, cleanup_model: m });+ }++ async function saveConversionModel(m: string) {+ conversionModel = m;+ await onConfigChange({ ...config, conversion_model: m });+ }++ async function toggleLlmConversion(enabled: boolean) {+ await onConfigChange({ ...config, llm_conversion: enabled });+ }++ // ── Stage 7: output management ───────────────────────────────────────────────++ async function saveOutputRule(rule: string) {+ await onConfigChange({ ...config, output_rule: rule });+ }+ async function chooseOutputFolder() {+ const sel = await invoke<string | null>('pick_folder');+ if (sel) await onConfigChange({ ...config, output_folder: sel });+ }+ async function clearOutputFolder() {+ await onConfigChange({ ...config, output_folder: '' });+ }+ async function saveNamingTemplate() {+ const t = namingTemplate.trim() || '{stem}';+ namingTemplate = t;+ await onConfigChange({ ...config, naming_template: t });+ }+ function applyTemplatePreset(t: string) {+ namingTemplate = t;+ saveNamingTemplate();+ }+ async function saveNamingCase(c: string) {+ await onConfigChange({ ...config, naming_case: c });+ }+ async function toggleOpenAfter(v: boolean) {+ await onConfigChange({ ...config, open_after_convert: v });+ }++ // ── Engine install ─────────────────────────────────────────────────────────++ async function installEngine(engine: string) {+ installing = engine;+ installMsg = 'Starting installation…';+ installPct = 0;+ if (engine === 'ocr') ocrState = { status: 'installing' };+ else audioState = { status: 'installing' };+ try {+ await invoke('install_engine', { engine });+ if (engine === 'ocr') ocrState = { status: 'installed' };+ else audioState = { status: 'installed' };+ loadCaps(); // refresh format table to show new OCR/audio rows as available+ } catch (e) {+ const err = String(e);+ if (engine === 'ocr') ocrState = { status: 'failed', error: err };+ else audioState = { status: 'failed', error: err };+ } finally {+ installing = null;+ installMsg = '';+ installPct = 0;+ }+ }++ // ── Provider check ─────────────────────────────────────────────────────────++ async function runProviderCheck() {+ providerChecking = true;+ providerResult = null;+ try {+ if (config.llm_mode === 'local') {+ await onConfigChange({ ...config, local_base_url: localBaseUrl });+ providerResult = await invoke<ProviderCheckResult>('check_provider', {+ provider: 'local',+ baseUrl: localBaseUrl,+ key: '',+ });+ } else if (config.llm_mode === 'api') {+ await onConfigChange({+ ...config,+ api_type: apiType,+ api_base_url: apiBaseUrl,+ api_key: apiKey,+ });+ providerResult = await invoke<ProviderCheckResult>('check_provider', {+ provider: apiType === 'anthropic' ? 'api_anthropic' : 'api_openai_compat',+ baseUrl: apiBaseUrl,+ key: apiKey,+ });+ }+ } catch (e) {+ providerResult = { reachable: false, detail: String(e), usable: false };+ } finally {+ providerChecking = false;+ }+ }++ // ── Helpers ────────────────────────────────────────────────────────────────++ function dotColor(status: string) {+ if (status === 'available') return 'green';+ if (status === 'coming_later') return 'amber';+ return 'red';+ }++ function badgeLabel(status: string) {+ if (status === 'available') return 'Available';+ if (status === 'coming_later') return 'Later version';+ if (status === 'missing') return 'Missing';+ return 'Broken';+ }++ function detailText(fmt: FormatEntry): string {+ if (fmt.status === 'available') {+ if (!fmt.module) return '';+ return fmt.module + (fmt.module_version ? ` ${fmt.module_version}` : '');+ }+ if (fmt.status === 'missing') return 'Click Repair on the main screen';+ if (fmt.status === 'broken') return fmt.error ?? 'Unknown error';+ return fmt.note ?? '';+ }+</script>++<div class="diag-wrap">++ <!-- Header -->+ <div class="diag-header">+ <button class="back-btn" onclick={onBack} aria-label="Back to main view">+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true">+ <path d="M9 2L4 7l5 5" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/>+ </svg>+ Back+ </button>+ <span class="diag-title">Diagnostics</span>+ <button+ class="refresh-btn"+ onclick={loadCaps}+ disabled={capsLoading}+ aria-label="Refresh capabilities"+ title="Refresh"+ >+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true" class:spinning={capsLoading}>+ <path d="M12 7A5 5 0 1 1 7 2a5 5 0 0 1 3.54 1.46L12 2v4H8l1.59-1.59A3 3 0 1 0 10 7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>+ </svg>+ </button>+ </div>++ <!-- Scrollable body -->+ <div class="diag-body">++ {#if capsLoading}+ <div class="loading-state">+ <div class="spinner-sm" aria-label="Loading"></div>+ <span>Checking capabilities…</span>+ </div>+ {:else if capsError}+ <div class="load-error">+ <span>Could not load capabilities: {capsError}</span>+ <button class="retry-btn" onclick={loadCaps}>Retry</button>+ </div>+ {:else if caps}++ <!-- Runtime section -->+ <section class="section">+ <h2 class="section-title">Runtime</h2>+ <div class="runtime-grid">+ <div class="runtime-item">+ <span class="runtime-label">Python</span>+ <span class="runtime-value">{caps.runtime.python_version}</span>+ </div>+ <div class="runtime-item">+ <span class="runtime-label">MarkItDown</span>+ <span class="runtime-value">{caps.runtime.markitdown_version}</span>+ </div>+ <div class="runtime-item">+ <span class="runtime-label">Sidecar</span>+ <span class="runtime-value">{caps.runtime.sidecar_version}</span>+ </div>+ <div class="runtime-item span2">+ <span class="runtime-label">Venv</span>+ <span class="runtime-value mono ellipsis" title={caps.runtime.venv_path}>{caps.runtime.venv_path}</span>+ </div>+ </div>+ </section>++ <!-- Format support section -->+ <section class="section">+ <h2 class="section-title">Format support</h2>+ <div class="cap-list">+ {#each caps.formats as fmt}+ <div+ id="fmt-{fmt.key}"+ class="cap-row"+ class:highlighted={highlight === fmt.key}+ >+ <span class="dot dot-{dotColor(fmt.status)}" aria-hidden="true"></span>+ <span class="cap-label">{fmt.label}</span>+ <span class="cap-exts">{fmt.extensions.join(' · ')}</span>+ <span class="cap-badge badge-{dotColor(fmt.status)}">{badgeLabel(fmt.status)}</span>+ {#if detailText(fmt)}+ <span class="cap-detail" class:cap-detail-red={fmt.status === 'missing' || fmt.status === 'broken'}>+ {detailText(fmt)}+ </span>+ {/if}+ </div>+ {/each}+ </div>+ </section>++ <!-- Optional capabilities (install-on-demand engines) -->+ <section class="section">+ <h2 class="section-title">Optional capabilities</h2>+ <div class="cap-list">+ <!-- OCR row -->+ <div class="cap-row cap-row-wrap">+ <span class="dot dot-{ocrState.status === 'installed' ? 'green' : ocrState.status === 'failed' ? 'red' : 'amber'}" aria-hidden="true"></span>+ <span class="cap-label">OCR · Images & scanned PDFs</span>+ <span class="cap-exts">{caps.optional.ocr.engine}</span>+ {#if ocrState.status === 'installed'}+ <span class="cap-badge badge-green">Installed</span>+ {:else if ocrState.status === 'installing' && installing === 'ocr'}+ <span class="cap-badge badge-amber">Installing…</span>+ {:else if ocrState.status === 'failed'}+ <span class="cap-badge badge-red">Failed</span>+ {:else}+ <span class="cap-badge badge-amber">Not installed</span>+ <button class="install-btn" onclick={() => installEngine('ocr')} disabled={installing !== null}>+ Install <span class="install-size">· {caps.optional.ocr.size_hint}</span>+ </button>+ {/if}+ {#if installing === 'ocr' && ocrState.status === 'installing'}+ <div class="install-progress-wrap">+ <div class="install-track"><div class="install-indet"></div></div>+ <span class="install-progress-msg">{installMsg}</span>+ </div>+ {:else if ocrState.status === 'failed' && ocrState.error}+ <div class="install-error">+ <span>{ocrState.error.split('\n')[0]}</span>+ <button class="install-btn" onclick={() => installEngine('ocr')} disabled={installing !== null}>Retry</button>+ </div>+ {:else}+ <span class="cap-detail">{caps.optional.ocr.note}</span>+ {/if}+ </div>++ <!-- Audio row -->+ <div class="cap-row cap-row-wrap">+ <span class="dot dot-{audioState.status === 'installed' ? 'green' : audioState.status === 'failed' ? 'red' : 'amber'}" aria-hidden="true"></span>+ <span class="cap-label">Audio transcription</span>+ <span class="cap-exts">{caps.optional.audio.engine}</span>+ {#if audioState.status === 'installed'}+ <span class="cap-badge badge-green">Installed</span>+ {:else if audioState.status === 'installing' && installing === 'audio'}+ <span class="cap-badge badge-amber">Installing…</span>+ {:else if audioState.status === 'failed'}+ <span class="cap-badge badge-red">Failed</span>+ {:else}+ <span class="cap-badge badge-amber">Not installed</span>+ <button class="install-btn" onclick={() => installEngine('audio')} disabled={installing !== null}>+ Install <span class="install-size">· {caps.optional.audio.size_hint}</span>+ </button>+ {/if}+ {#if installing === 'audio' && audioState.status === 'installing'}+ <div class="install-progress-wrap">+ <div class="install-track"><div class="install-indet"></div></div>+ <span class="install-progress-msg">{installMsg}</span>+ </div>+ {:else if audioState.status === 'failed' && audioState.error}+ <div class="install-error">+ <span>{audioState.error.split('\n')[0]}</span>+ <button class="install-btn" onclick={() => installEngine('audio')} disabled={installing !== null}>Retry</button>+ </div>+ {:else}+ <span class="cap-detail">{caps.optional.audio.note}</span>+ {/if}+ </div>+ </div>+ <p class="optional-note">Installed via uv pip into the app's isolated Python environment. Internet required. No system packages needed.</p>+ </section>++ {/if}++ <!-- Output management (Stage 7) — always shown -->+ <section class="section">+ <h2 class="section-title">Output</h2>++ <!-- Where batch output is saved -->+ <div class="provider-fields">+ <span class="field-label">Where to save (batch)</span>+ <div class="seg" role="group" aria-label="Output location rule">+ <button class="seg-btn" class:active={config.output_rule === 'next_to_source'} aria-pressed={config.output_rule === 'next_to_source'}+ title="Write each .md beside its source file" onclick={() => saveOutputRule('next_to_source')}>Next to source</button>+ <button class="seg-btn" class:active={config.output_rule === 'fixed_folder'} aria-pressed={config.output_rule === 'fixed_folder'}+ title="Write all .md files into one chosen folder" onclick={() => saveOutputRule('fixed_folder')}>One folder</button>+ <button class="seg-btn" class:active={config.output_rule === 'mirror_tree'} aria-pressed={config.output_rule === 'mirror_tree'}+ title="Recreate the source folder structure under a chosen root" onclick={() => saveOutputRule('mirror_tree')}>Mirror folders</button>+ </div>++ {#if config.output_rule !== 'next_to_source'}+ <div class="folder-row">+ <svg class="folder-icon" width="15" height="15" viewBox="0 0 16 16" fill="none" aria-hidden="true">+ <path d="M1.5 4.5A1 1 0 0 1 2.5 3.5h3.086a1 1 0 0 1 .707.293l.914.914H13.5a1 1 0 0 1 1 1V12a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1V4.5z" stroke="currentColor" stroke-width="1.25" fill="none"/>+ </svg>+ <span class="folder-value" class:folder-unset={!config.output_folder} title={config.output_folder || 'No folder chosen yet'}>+ {config.output_folder || 'No folder chosen — choose one'}+ </span>+ {#if config.output_folder}+ <button class="mini-x" title="Clear" aria-label="Clear folder" onclick={clearOutputFolder}>+ <svg width="10" height="10" viewBox="0 0 10 10" fill="none" aria-hidden="true"><path d="M2 2l6 6M8 2l-6 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>+ </button>+ {/if}+ <button class="change-btn" onclick={chooseOutputFolder}>{config.output_folder ? 'Change…' : 'Choose folder…'}</button>+ </div>+ {#if config.output_rule === 'mirror_tree'}+ <p class="field-hint">Sub-folders of the dropped folder are recreated under this root.</p>+ {/if}+ {/if}+ <p class="field-hint">Single files are saved with a Save dialog; this rule applies to batch conversions.</p>+ </div>++ <!-- Naming convention -->+ <div class="provider-fields cleanup-model-block">+ <label class="field-label" for="naming-template">File name</label>+ <input+ id="naming-template"+ class="field-input"+ bind:value={namingTemplate}+ onchange={saveNamingTemplate}+ spellcheck="false"+ autocomplete="off"+ placeholder="{'{stem}'}"+ />+ <div class="preset-row">+ <button class="preset" title="The source file name" onclick={() => applyTemplatePreset('{stem}')}>{'{stem}'}</button>+ <button class="preset" title="Name plus original format" onclick={() => applyTemplatePreset('{stem}_{ext}')}>{'{stem}_{ext}'}</button>+ <button class="preset" title="Name plus today's date" onclick={() => applyTemplatePreset('{stem}-{date}')}>{'{stem}-{date}'}</button>+ </div>+ <p class="field-hint">Tokens: <code>{'{stem}'}</code> name · <code>{'{ext}'}</code> format · <code>{'{date}'}</code> today. <code>.md</code> is added automatically.</p>++ <span class="field-label">Letter case</span>+ <div class="seg" role="group" aria-label="Filename case">+ <button class="seg-btn" class:active={config.naming_case === 'keep'} aria-pressed={config.naming_case === 'keep'} title="Leave the name as-is" onclick={() => saveNamingCase('keep')}>Keep</button>+ <button class="seg-btn" class:active={config.naming_case === 'lower'} aria-pressed={config.naming_case === 'lower'} title="Lowercase the name" onclick={() => saveNamingCase('lower')}>lowercase</button>+ <button class="seg-btn" class:active={config.naming_case === 'slug'} aria-pressed={config.naming_case === 'slug'} title="Lowercase and replace spaces/symbols with hyphens" onclick={() => saveNamingCase('slug')}>slug-case</button>+ </div>++ <p class="name-preview"><span class="np-from">Annual Report.pdf</span> <span class="np-arrow" aria-hidden="true">→</span> <span class="np-to">{namePreview}</span></p>+ </div>++ <!-- Open folder after a batch -->+ <div class="provider-fields cleanup-model-block">+ <div class="toggle-row">+ <label class="toggle-label" for="open-after">Open the output folder when a batch finishes</label>+ <button+ id="open-after"+ role="switch"+ aria-checked={config.open_after_convert}+ class="toggle-btn"+ class:toggle-on={config.open_after_convert}+ onclick={() => toggleOpenAfter(!config.open_after_convert)}+ title="Reveal the converted files in your file manager after a batch run."+ >+ <span class="toggle-thumb"></span>+ </button>+ </div>+ </div>+ </section>++ <!-- LLM Provider — always shown -->+ <section class="section">+ <h2 class="section-title">LLM provider</h2>++ <!-- Mode tabs -->+ <div class="mode-tabs" role="group" aria-label="LLM mode">+ {#each [['off','Off'],['local','Local'],['api','API']] as [m, label]}+ <button+ class="mode-tab"+ class:active={config.llm_mode === m}+ aria-pressed={config.llm_mode === m}+ onclick={() => setMode(m)}+ >+ {label}+ </button>+ {/each}+ </div>++ {#if config.llm_mode === 'off'}+ <p class="provider-note">No intelligence features active. Conversions use MarkItDown only.</p>++ {:else if config.llm_mode === 'local'}+ <div class="provider-fields">+ <label class="field-label" for="local-url">Server URL</label>+ <div class="field-row">+ <input+ id="local-url"+ class="field-input"+ bind:value={localBaseUrl}+ placeholder="http://localhost:11434"+ spellcheck="false"+ autocomplete="off"+ />+ <button class="check-btn" title="Test the connection and list available models" onclick={runProviderCheck} disabled={providerChecking}>+ {providerChecking ? 'Checking…' : 'Check'}+ </button>+ </div>+ <p class="field-hint">Works with Ollama, LM Studio, Jan, and any OpenAI-compatible local server</p>+ {#if providerResult}+ <div class="provider-result" class:result-ok={providerResult.usable} class:result-fail={!providerResult.usable}>+ <span class="dot dot-{providerResult.usable ? 'green' : 'red'}" aria-hidden="true"></span>+ <span>{providerResult.detail}</span>+ </div>+ {/if}+ </div>++ {:else}+ <div class="provider-fields">+ <label class="field-label" for="api-type">Type</label>+ <select id="api-type" class="field-select" value={apiType} onchange={(e) => saveApiType((e.target as HTMLSelectElement).value)}>+ <option value="openai_compat">OpenAI-compatible</option>+ <option value="anthropic">Anthropic</option>+ </select>++ {#if apiType === 'openai_compat'}+ <label class="field-label" for="api-url">Base URL</label>+ <input+ id="api-url"+ class="field-input"+ bind:value={apiBaseUrl}+ placeholder="https://api.openai.com/v1"+ spellcheck="false"+ autocomplete="off"+ />+ <p class="field-hint">Works with OpenAI, Groq, Together, Mistral, Fireworks, and any OpenAI-compatible API</p>+ {:else}+ <p class="field-hint">Connects to api.anthropic.com — keys begin with sk-ant-</p>+ {/if}++ <label class="field-label" for="api-key">API Key</label>+ <div class="field-row">+ <input+ id="api-key"+ type="password"+ class="field-input"+ bind:value={apiKey}+ placeholder="Paste your key here"+ autocomplete="off"+ />+ <button class="check-btn" title="Test the API key and list available models" onclick={runProviderCheck} disabled={providerChecking}>+ {providerChecking ? 'Testing…' : 'Test'}+ </button>+ </div>+ <p class="field-hint">Key stored in your app data folder and sent only to the endpoint above</p>++ {#if providerResult}+ <div class="provider-result" class:result-ok={providerResult.usable} class:result-fail={!providerResult.usable}>+ <span class="dot dot-{providerResult.usable ? 'green' : 'red'}" aria-hidden="true"></span>+ <span>{providerResult.detail}</span>+ </div>+ {/if}+ </div>+ {/if}++ {#if config.llm_mode !== 'off'}+ <div class="provider-fields cleanup-model-block">+ <label class="field-label" for="cleanup-model">AI cleanup model</label>+ <select+ id="cleanup-model"+ class="field-select"+ title="Which model the AI cleanup uses. Larger models clean more reliably."+ value={cleanupModel}+ onchange={(e) => saveCleanupModel((e.target as HTMLSelectElement).value)}+ >+ <option value="">Auto — first available</option>+ {#each modelOptions as m}+ <option value={m}>{m}</option>+ {/each}+ </select>+ {#if modelOptions.length === 0}+ <p class="field-hint">Run a check above to list models. Until then, AI cleanup auto-picks the first available model.</p>+ {:else}+ <p class="field-hint">Used for the optional AI cleanup pass on extracted Markdown.</p>+ {/if}+ {#if config.llm_mode === 'local'}+ <p class="field-hint rec-hint">Recommended: <b>llama3.1:8b</b> or larger. Small models (under ~7B) tend to summarize instead of clean.</p>+ {/if}+ </div>++ <div class="provider-fields cleanup-model-block">+ <div class="toggle-row">+ <label class="toggle-label" for="llm-conversion">LLM image description during conversion</label>+ <button+ id="llm-conversion"+ role="switch"+ aria-checked={config.llm_conversion}+ class="toggle-btn"+ class:toggle-on={config.llm_conversion}+ onclick={() => toggleLlmConversion(!config.llm_conversion)}+ title="When on, the LLM describes images found in documents during conversion. Uses the conversion model."+ >+ <span class="toggle-thumb"></span>+ </button>+ </div>+ <p class="field-hint">Adds image descriptions to the converted Markdown. May increase cost for API providers.</p>++ {#if config.llm_conversion}+ <label class="field-label" for="conversion-model">Conversion model</label>+ <select+ id="conversion-model"+ class="field-select"+ title="Which model describes images during conversion."+ value={conversionModel}+ onchange={(e) => saveConversionModel((e.target as HTMLSelectElement).value)}+ >+ <option value="">Auto — first available</option>+ {#each modelOptions as m}+ <option value={m}>{m}</option>+ {/each}+ </select>+ <p class="field-hint">Uses the same provider as AI cleanup. A vision-capable model works best for image description.</p>+ {/if}+ </div>+ {/if}+ </section>++ </div>+</div>++<style>+ .diag-wrap {+ display: flex;+ flex-direction: column;+ flex: 1;+ min-height: 0;+ }++ /* Header */+ .diag-header {+ display: flex;+ align-items: center;+ gap: var(--sp-3);+ padding-bottom: var(--sp-4);+ border-bottom: 1px solid var(--border);+ margin-bottom: var(--sp-4);+ flex-shrink: 0;+ }+ .back-btn {+ display: flex;+ align-items: center;+ gap: var(--sp-1);+ background: var(--surface-2);+ border: 1px solid var(--border-strong);+ color: var(--text-primary);+ font-size: 12.5px;+ font-weight: 600;+ font-family: var(--font-ui);+ cursor: pointer;+ padding: 6px 12px;+ border-radius: var(--radius-sm);+ transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);+ }+ .back-btn:hover { background: var(--surface-3); border-color: #565660; }+ .back-btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); }+ .diag-title {+ font-size: 14px;+ font-weight: 600;+ color: var(--text-primary);+ flex: 1;+ }+ .refresh-btn {+ background: var(--surface-2);+ border: 1px solid var(--border-strong);+ color: var(--text-secondary);+ cursor: pointer;+ width: 32px;+ height: 32px;+ border-radius: var(--radius-sm);+ display: flex;+ align-items: center;+ justify-content: center;+ transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);+ }+ .refresh-btn:hover { color: var(--text-primary); background: var(--surface-3); border-color: #565660; }+ .refresh-btn:disabled { opacity: 0.4; cursor: default; }+ .refresh-btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); }+ .spinning { animation: spin 0.8s linear infinite; }+ @keyframes spin { to { transform: rotate(360deg); } }+ @media (prefers-reduced-motion: reduce) { .spinning { animation: none; } }++ /* Body */+ .diag-body {+ flex: 1;+ overflow-y: auto;+ display: flex;+ flex-direction: column;+ gap: var(--sp-6);+ padding-right: var(--sp-1);+ }++ /* Loading / error states */+ .loading-state {+ display: flex;+ align-items: center;+ gap: var(--sp-3);+ padding: var(--sp-6);+ color: var(--text-muted);+ font-size: 13px;+ }+ .spinner-sm {+ width: 16px;+ height: 16px;+ border: 2px solid var(--border);+ border-top-color: var(--accent);+ border-radius: 50%;+ flex-shrink: 0;+ animation: spin 0.7s linear infinite;+ }+ @media (prefers-reduced-motion: reduce) { .spinner-sm { animation: none; } }+ .load-error {+ display: flex;+ align-items: center;+ gap: var(--sp-4);+ padding: var(--sp-4);+ font-size: 12px;+ color: var(--red);+ background: color-mix(in srgb, var(--red) 8%, var(--surface-1));+ border: 1px solid color-mix(in srgb, var(--red) 25%, transparent);+ border-radius: var(--radius-sm);+ }+ .retry-btn {+ background: var(--surface-2);+ border: 1px solid var(--border-strong);+ font-size: 11.5px;+ font-weight: 600;+ font-family: var(--font-ui);+ color: var(--text-primary);+ padding: 5px var(--sp-3);+ border-radius: var(--radius-sm);+ cursor: pointer;+ transition: background var(--transition-fast), border-color var(--transition-fast);+ }+ .retry-btn:hover { background: var(--surface-3); border-color: #565660; }++ /* Section */+ .section { display: flex; flex-direction: column; gap: var(--sp-3); }+ .section-title {+ font-size: 11px;+ font-weight: 600;+ text-transform: uppercase;+ letter-spacing: 0.06em;+ color: var(--text-muted);+ }++ /* Runtime grid */+ .runtime-grid {+ display: grid;+ grid-template-columns: 1fr 1fr;+ gap: 1px;+ background: var(--border);+ border: 1px solid var(--border);+ border-radius: var(--radius-sm);+ overflow: hidden;+ }+ .runtime-item {+ background: var(--surface-1);+ display: flex;+ flex-direction: column;+ gap: 2px;+ padding: var(--sp-2) var(--sp-3);+ }+ .runtime-item.span2 { grid-column: span 2; }+ .runtime-label {+ font-size: 10px;+ text-transform: uppercase;+ letter-spacing: 0.05em;+ color: var(--text-muted);+ }+ .runtime-value {+ font-size: 12px;+ color: var(--text-primary);+ font-family: var(--font-mono);+ }+ .runtime-value.ellipsis {+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ }++ /* Capability list */+ .cap-list {+ display: flex;+ flex-direction: column;+ gap: 0;+ background: var(--surface-1);+ border: 1px solid var(--border);+ border-radius: var(--radius-sm);+ overflow: hidden;+ }+ .cap-row {+ display: flex;+ align-items: center;+ gap: var(--sp-2);+ padding: 7px var(--sp-3);+ border-bottom: 1px solid var(--border);+ transition: background var(--transition-fast);+ }+ .cap-row:last-child { border-bottom: none; }+ .cap-row.highlighted {+ background: color-mix(in srgb, var(--accent) 8%, var(--surface-1));+ animation: pulse-row 1.2s ease-out;+ }+ @keyframes pulse-row {+ 0% { background: color-mix(in srgb, var(--accent) 20%, var(--surface-1)); }+ 100% { background: color-mix(in srgb, var(--accent) 8%, var(--surface-1)); }+ }+ @media (prefers-reduced-motion: reduce) { .cap-row.highlighted { animation: none; } }++ .dot {+ width: 6px;+ height: 6px;+ border-radius: 50%;+ flex-shrink: 0;+ }+ .dot-green { background: var(--green); }+ .dot-amber { background: var(--amber); }+ .dot-red { background: var(--red); }++ .cap-label { font-size: 12px; color: var(--text-primary); flex: 1; min-width: 0; }+ .cap-exts { font-size: 10px; color: var(--text-muted); font-family: var(--font-mono); white-space: nowrap; }+ .cap-badge {+ font-size: 10px;+ font-weight: 500;+ padding: 1px 6px;+ border-radius: 99px;+ white-space: nowrap;+ }+ .badge-green { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }+ .badge-amber { background: color-mix(in srgb, var(--amber) 15%, transparent); color: var(--amber); }+ .badge-red { background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--red); }+ .cap-detail {+ font-size: 11px;+ color: var(--text-muted);+ font-family: var(--font-mono);+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ max-width: 180px;+ }+ .cap-detail-red { color: var(--red); font-family: var(--font-ui); }++ /* LLM provider section */+ .mode-tabs {+ display: flex;+ background: var(--surface-1);+ border: 1px solid var(--border-strong);+ border-radius: var(--radius-sm);+ padding: 3px;+ gap: 3px;+ align-self: flex-start;+ }+ .mode-tab {+ padding: 6px 16px;+ font-size: 12.5px;+ font-weight: 600;+ font-family: var(--font-ui);+ border: none;+ border-radius: 5px;+ background: transparent;+ color: var(--text-secondary);+ cursor: pointer;+ transition: background var(--transition-fast), color var(--transition-fast);+ }+ .mode-tab:hover:not(.active) { color: var(--text-primary); background: var(--surface-2); }+ .mode-tab.active { background: var(--accent); color: #fff; }+ .mode-tab:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; }++ .provider-note {+ font-size: 12px;+ color: var(--text-muted);+ padding: var(--sp-2) 0;+ }++ .provider-fields {+ display: flex;+ flex-direction: column;+ gap: var(--sp-2);+ }+ .field-label {+ font-size: 11px;+ font-weight: 500;+ color: var(--text-muted);+ text-transform: uppercase;+ letter-spacing: 0.04em;+ }+ .field-row {+ display: flex;+ gap: var(--sp-2);+ }+ .field-input {+ flex: 1;+ background: var(--surface-1);+ border: 1px solid var(--border);+ border-radius: var(--radius-sm);+ padding: 6px var(--sp-3);+ font-size: 12px;+ font-family: var(--font-mono);+ color: var(--text-primary);+ outline: none;+ transition: border-color var(--transition-fast);+ }+ .field-input:focus { border-color: var(--accent); }+ .field-input::placeholder { color: var(--text-muted); }+ .field-select {+ background: var(--surface-1);+ border: 1px solid var(--border);+ border-radius: var(--radius-sm);+ padding: 6px var(--sp-3);+ font-size: 12px;+ font-family: var(--font-ui);+ color: var(--text-primary);+ outline: none;+ cursor: pointer;+ align-self: flex-start;+ }+ .field-select:focus { border-color: var(--accent); }+ .field-hint {+ font-size: 11px;+ color: var(--text-muted);+ line-height: 1.5;+ }+ .check-btn {+ padding: 7px var(--sp-4);+ font-size: 12.5px;+ font-weight: 600;+ font-family: var(--font-ui);+ background: var(--accent);+ color: #fff;+ border: 1px solid var(--accent-edge);+ border-radius: var(--radius-sm);+ cursor: pointer;+ white-space: nowrap;+ transition: background var(--transition-fast);+ }+ .check-btn:hover { background: var(--accent-hover); }+ .check-btn:disabled { opacity: 0.45; cursor: default; }+ .check-btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }++ .provider-result {+ display: flex;+ align-items: center;+ gap: var(--sp-2);+ padding: var(--sp-2) var(--sp-3);+ border-radius: var(--radius-sm);+ font-size: 12px;+ }+ .result-ok { background: color-mix(in srgb, var(--green) 10%, var(--surface-1)); color: var(--text-primary); }+ .result-fail { background: color-mix(in srgb, var(--red) 10%, var(--surface-1)); color: var(--text-primary); }++ .cleanup-model-block {+ margin-top: var(--sp-3);+ padding-top: var(--sp-3);+ border-top: 1px solid var(--border);+ }+ .rec-hint b { color: var(--text-secondary); }++ /* Stage 7 — output management */+ .folder-row { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-sm); }+ .folder-icon { flex-shrink: 0; color: var(--accent); }+ .folder-value { flex: 1; min-width: 0; font-size: 12px; color: var(--text-primary); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+ .folder-unset { color: var(--text-muted); font-family: var(--font-ui); font-style: italic; }+ .mini-x { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: none; background: var(--surface-2); color: var(--text-muted); cursor: pointer; }+ .mini-x:hover { color: var(--text-primary); background: var(--border); }+ .change-btn { flex-shrink: 0; padding: 6px 13px; font-size: 12px; font-weight: 600; font-family: var(--font-ui); color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: var(--radius-sm); cursor: pointer; transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast); }+ .change-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }++ .preset-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; }+ .preset { font-size: 11px; font-family: var(--font-mono); color: var(--text-secondary); background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px 9px; cursor: pointer; transition: color var(--transition-fast), border-color var(--transition-fast); }+ .preset:hover { color: var(--text-primary); border-color: var(--border-strong); }+ .preset:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); }+ .field-hint code { font-family: var(--font-mono); font-size: 10.5px; background: var(--surface-2); padding: 0 4px; border-radius: 3px; color: var(--text-secondary); }++ .name-preview { display: flex; align-items: center; gap: var(--sp-2); font-size: 12px; font-family: var(--font-mono); margin-top: var(--sp-1); padding: var(--sp-2) var(--sp-3); background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-sm); }+ .np-from { color: var(--text-muted); }+ .np-arrow { color: var(--text-muted); }+ .np-to { color: var(--accent); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }++ /* Optional engine install UI */+ .cap-row-wrap { flex-wrap: wrap; gap: var(--sp-2) var(--sp-2); }+ .install-btn {+ padding: 6px 13px;+ font-size: 12px;+ font-weight: 600;+ font-family: var(--font-ui);+ background: var(--accent);+ color: #fff;+ border: 1px solid var(--accent-edge);+ border-radius: var(--radius-sm);+ cursor: pointer;+ white-space: nowrap;+ transition: background var(--transition-fast);+ display: inline-flex;+ align-items: center;+ gap: 5px;+ }+ .install-btn:hover { background: var(--accent-hover); }+ .install-btn:disabled { opacity: 0.45; cursor: default; }+ .install-size { opacity: 0.75; font-weight: 400; }+ .install-progress-wrap {+ width: 100%;+ display: flex;+ flex-direction: column;+ gap: 6px;+ background: var(--surface-1);+ border: 1px solid var(--border);+ border-radius: var(--radius-sm);+ padding: var(--sp-2) var(--sp-3);+ }+ /* Install has no real percentage (uv pip install doesn't stream granular progress),+ so the bar is indeterminate — honest "working" feedback rather than a fake number. */+ .install-track {+ position: relative;+ height: 3px;+ background: var(--surface-2);+ border-radius: 99px;+ overflow: hidden;+ }+ .install-indet {+ position: absolute;+ top: 0;+ height: 100%;+ width: 35%;+ background: var(--accent);+ border-radius: 99px;+ animation: install-indet 1.1s ease-in-out infinite;+ }+ @keyframes install-indet {+ 0% { left: -35%; }+ 100% { left: 100%; }+ }+ @media (prefers-reduced-motion: reduce) {+ .install-indet { animation: none; left: 0; width: 100%; opacity: 0.45; }+ }+ .install-progress-msg {+ font-size: 11px;+ color: var(--text-muted);+ }+ .install-error {+ width: 100%;+ display: flex;+ align-items: center;+ gap: var(--sp-3);+ font-size: 11px;+ color: var(--red);+ padding: var(--sp-1) 0;+ }+ .optional-note {+ font-size: 11px;+ color: var(--text-muted);+ padding: var(--sp-1) 0 0;+ }++ /* LLM conversion toggle */+ .toggle-row {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: var(--sp-3);+ }+ .toggle-label {+ font-size: 12px;+ color: var(--text-primary);+ cursor: pointer;+ flex: 1;+ }+ .toggle-btn {+ position: relative;+ width: 34px;+ height: 18px;+ background: var(--surface-2);+ border: 1px solid var(--border);+ border-radius: 99px;+ cursor: pointer;+ flex-shrink: 0;+ transition: background var(--transition-fast), border-color var(--transition-fast);+ }+ .toggle-btn.toggle-on { background: var(--accent); border-color: var(--accent); }+ .toggle-thumb {+ position: absolute;+ top: 2px;+ left: 2px;+ width: 12px;+ height: 12px;+ background: #fff;+ border-radius: 50%;+ transition: transform var(--transition-fast);+ }+ .toggle-btn.toggle-on .toggle-thumb { transform: translateX(16px); }+ .toggle-btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }+</style>diff --git a/app/src/lib/DocViewer.svelte b/app/src/lib/DocViewer.sveltenew file mode 100644index 0000000..6f47a16--- /dev/null+++ b/app/src/lib/DocViewer.svelte@@ -0,0 +1,96 @@+<script lang="ts">+ import { renderMarkdown } from './mdpreview';+ import { onDestroy } from 'svelte';++ let {+ name,+ markdown,+ onBack,+ }: {+ name: string;+ markdown: string;+ onBack: () => void;+ } = $props();++ let view = $state<'preview' | 'source'>('preview');+ const previewHtml = $derived(view === 'preview' ? renderMarkdown(markdown) : '');++ let copyLabel = $state('Copy');+ let copyTimer: ReturnType<typeof setTimeout>;+ onDestroy(() => clearTimeout(copyTimer));+ async function copy() {+ try {+ await navigator.clipboard.writeText(markdown);+ clearTimeout(copyTimer); copyLabel = 'Copied!';+ copyTimer = setTimeout(() => (copyLabel = 'Copy'), 1800);+ } catch { copyLabel = 'Failed'; copyTimer = setTimeout(() => (copyLabel = 'Copy'), 1800); }+ }++ function onPreviewClick(e: MouseEvent) {+ const a = (e.target as HTMLElement)?.closest('a');+ if (a) e.preventDefault();+ }+</script>++<div class="viewer">+ <div class="vhead">+ <button class="back" onclick={onBack} title="Back to the batch summary">+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true"><path d="M9 2L4 7l5 5" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>+ Back+ </button>+ <span class="vname" title={name}>{name}</span>+ <div class="seg" role="group" aria-label="View mode">+ <button class="seg-btn" class:active={view === 'preview'} title="Rendered Markdown" onclick={() => (view = 'preview')}>Preview</button>+ <button class="seg-btn" class:active={view === 'source'} title="Raw Markdown text" onclick={() => (view = 'source')}>Source</button>+ </div>+ <button class="copy" onclick={copy} title="Copy the Markdown">{copyLabel}</button>+ </div>++ <div class="vbody" tabindex="0" role="region" aria-label="Document">+ {#if view === 'preview'}+ <!-- svelte-ignore a11y_click_events_have_key_events a11y_no_static_element_interactions -->+ <div class="preview" onclick={onPreviewClick}>{@html previewHtml}</div>+ {:else}+ <pre class="source">{markdown}</pre>+ {/if}+ </div>+</div>++<style>+ .viewer { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }+ .vhead { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--border); background: var(--surface-2); flex-shrink: 0; }+ .back { display: flex; align-items: center; gap: var(--sp-1); background: var(--surface-1); border: 1px solid var(--border-strong); color: var(--text-primary); font-size: 12.5px; font-weight: 600; font-family: var(--font-ui); cursor: pointer; padding: 6px 12px; border-radius: var(--radius-sm); transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast); }+ .back:hover { background: var(--surface-3); border-color: #565660; }+ .vname { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }++ /* Segmented control — base .seg/.seg-btn in tokens.css; local: no-shrink only. */+ .seg { flex-shrink: 0; }++ .copy { padding: 6px 13px; font-size: 12.5px; font-weight: 600; font-family: var(--font-ui); background: var(--surface-2); color: var(--text-primary); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; flex-shrink: 0; transition: background var(--transition-fast), border-color var(--transition-fast); }+ .copy:hover { background: var(--surface-3); border-color: #565660; }++ .vbody { flex: 1; overflow-y: auto; padding: var(--sp-5) var(--sp-6); min-height: 0; outline: none; }+ .vbody:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: -2px; }+ .source { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.65; color: var(--text-primary); white-space: pre-wrap; word-break: break-word; user-select: text; margin: 0; }++ .preview { color: var(--text-primary); font-size: 14px; line-height: 1.65; user-select: text; max-width: 760px; }+ .preview :global(h1) { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--border); }+ .preview :global(h2) { font-size: 20px; font-weight: 700; margin: var(--sp-6) 0 var(--sp-2); }+ .preview :global(h3) { font-size: 16px; font-weight: 600; margin: var(--sp-5) 0 var(--sp-2); }+ .preview :global(h4), .preview :global(h5), .preview :global(h6) { font-size: 14px; font-weight: 600; margin: var(--sp-4) 0 var(--sp-1); }+ .preview :global(p) { margin: 0 0 var(--sp-3); }+ .preview :global(ul), .preview :global(ol) { margin: 0 0 var(--sp-3); padding-left: var(--sp-6); }+ .preview :global(li) { margin: 2px 0; }+ .preview :global(a) { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }+ .preview :global(strong) { font-weight: 700; }+ .preview :global(em) { font-style: italic; }+ .preview :global(blockquote) { margin: 0 0 var(--sp-3); padding: var(--sp-1) var(--sp-4); border-left: 3px solid var(--border); color: var(--text-secondary); }+ .preview :global(hr) { border: none; border-top: 1px solid var(--border); margin: var(--sp-5) 0; }+ .preview :global(code) { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }+ .preview :global(pre) { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--sp-3); overflow-x: auto; margin: 0 0 var(--sp-3); }+ .preview :global(pre code) { background: none; padding: 0; }+ .preview :global(table) { border-collapse: collapse; margin: 0 0 var(--sp-3); font-size: 13px; display: block; overflow-x: auto; }+ .preview :global(th), .preview :global(td) { border: 1px solid var(--border); padding: 5px 10px; text-align: left; }+ .preview :global(th) { background: var(--surface-2); font-weight: 600; }+ .preview :global(img) { max-width: 100%; }+</style>diff --git a/app/src/lib/DropZone.svelte b/app/src/lib/DropZone.sveltenew file mode 100644index 0000000..2a991db--- /dev/null+++ b/app/src/lib/DropZone.svelte@@ -0,0 +1,213 @@+<script lang="ts">+ import { onMount } from 'svelte';+ import { listen } from '@tauri-apps/api/event';+ import { open } from '@tauri-apps/plugin-dialog';+ import type { ConvertError } from './ErrorCard.svelte';+ import ErrorCard from './ErrorCard.svelte';+ import { SUPPORTED_EXTS } from './formats';++ let {+ onAdd,+ error = null,+ onDismissError,+ onOpenDiagnostics,+ }: {+ /** Called with raw dropped/picked paths (files and/or folders). The parent+ * expands folders and stages them — files are not converted immediately. */+ onAdd: (paths: string[]) => void;+ error?: ConvertError | null;+ onDismissError?: () => void;+ onOpenDiagnostics?: (key: string) => void;+ } = $props();++ type LocalState = 'idle' | 'drag-hover';+ let localState = $state<LocalState>('idle');+ let dropState = $derived(error ? 'error' : localState);++ onMount(() => {+ let unlistenDrop: (() => void) | undefined;+ let unlistenEnter: (() => void) | undefined;+ let unlistenLeave: (() => void) | undefined;+ let dead = false;++ listen<{ paths: string[] }>('tauri://drag-drop', (e) => {+ localState = 'idle';+ const paths = e.payload.paths ?? [];+ if (paths.length) onAdd(paths);+ }).then(fn => { if (dead) fn(); else unlistenDrop = fn; });++ listen('tauri://drag-enter', () => {+ localState = 'drag-hover';+ }).then(fn => { if (dead) fn(); else unlistenEnter = fn; });++ listen('tauri://drag-leave', () => {+ if (localState === 'drag-hover') localState = 'idle';+ }).then(fn => { if (dead) fn(); else unlistenLeave = fn; });++ return () => {+ dead = true;+ unlistenDrop?.();+ unlistenEnter?.();+ unlistenLeave?.();+ };+ });++ async function browse() {+ if (error) return;+ const selected = await open({+ multiple: true,+ filters: [+ { name: 'Supported files', extensions: SUPPORTED_EXTS },+ { name: 'All files', extensions: ['*'] },+ ],+ });+ if (!selected) return;+ const paths = Array.isArray(selected) ? (selected as string[]) : [selected as string];+ if (paths.length) onAdd(paths);+ }++ function onKeyDown(e: KeyboardEvent) {+ if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); browse(); }+ }+</script>++<div+ class="zone"+ class:drag-hover={dropState === 'drag-hover'}+ class:error-state={dropState === 'error'}+ role="button"+ tabindex={0}+ aria-label="Drop files or a folder, or click to browse"+ title="Drop one file, several files, or a folder here — or click to pick files"+ onclick={browse}+ onkeydown={onKeyDown}+>+ <!-- Animated gradient border ring -->+ <div class="border-ring" aria-hidden="true"></div>++ {#if dropState === 'error' && error}+ <div class="inner error-inner" role="presentation" onclick={(e) => e.stopPropagation()}>+ <ErrorCard {error} onDismiss={onDismissError ?? (() => {})} {onOpenDiagnostics} />+ </div>+ {:else}+ <div class="inner idle-inner">+ <div class="drop-icon" aria-hidden="true">+ <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path d="M16 4v16M9 13l7-7 7 7" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>+ <path d="M5 24h22" stroke="currentColor" stroke-width="2" stroke-linecap="round" opacity=".4"/>+ <path d="M5 28h12" stroke="currentColor" stroke-width="2" stroke-linecap="round" opacity=".25"/>+ </svg>+ </div>+ <p class="label">Drop files or a folder</p>+ <p class="hint">or <span class="link">browse to choose</span></p>+ <p class="formats">PDF · DOCX · PPTX · XLSX · EPUB · HTML · CSV · JSON · images · audio</p>+ </div>+ {/if}+</div>++<style>+ .zone {+ flex: 1;+ position: relative;+ border-radius: var(--radius-lg);+ background: var(--surface-1);+ cursor: pointer;+ outline: none;+ display: flex;+ align-items: center;+ justify-content: center;+ overflow: hidden;+ transition: background var(--transition);+ }+ .zone:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 3px; }+ .zone.error-state { cursor: default; }++ /* Hover: mouse hover OR drag-enter both brighten the zone */+ .zone:hover,+ .zone.drag-hover { background: var(--surface-2); }++ /* Signature element: animated gradient ring */+ .border-ring {+ position: absolute;+ inset: 0;+ border-radius: var(--radius-lg);+ padding: 1px;+ background: conic-gradient(+ from var(--angle, 0deg),+ var(--accent),+ transparent 30%,+ transparent 70%,+ var(--accent)+ );+ -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);+ -webkit-mask-composite: xor;+ mask-composite: exclude;+ opacity: 0.35;+ transition: opacity var(--transition);+ animation: rotate-ring 6s linear infinite;+ }+ /* Ring brightens and speeds up on hover */+ .zone:hover .border-ring,+ .zone.drag-hover .border-ring { opacity: 0.85; animation-duration: 2.5s; }+ .zone.error-state .border-ring {+ background: conic-gradient(from var(--angle, 0deg), var(--red), transparent 40%, transparent 60%, var(--red));+ opacity: 0.5;+ animation: none;+ }++ @keyframes rotate-ring { to { --angle: 360deg; } }+ @property --angle {+ syntax: '<angle>';+ inherits: false;+ initial-value: 0deg;+ }+ @media (prefers-reduced-motion: reduce) {+ .border-ring { animation: none; }+ }++ .inner {+ position: relative;+ display: flex;+ flex-direction: column;+ align-items: center;+ gap: var(--sp-2);+ padding: var(--sp-8);+ width: 100%;+ }+ .error-inner {+ padding: var(--sp-6);+ align-items: stretch;+ cursor: default;+ }++ .drop-icon {+ color: var(--text-muted);+ margin-bottom: var(--sp-2);+ transition: color var(--transition);+ }+ /* Icon turns accent on hover */+ .zone:hover .drop-icon,+ .zone.drag-hover .drop-icon { color: var(--accent); }++ .label {+ font-size: 15px;+ font-weight: 600;+ color: var(--text-primary);+ }+ .hint {+ font-size: 13px;+ color: var(--text-secondary);+ }+ .link {+ color: var(--accent);+ text-decoration: underline;+ text-underline-offset: 2px;+ }+ .formats {+ margin-top: var(--sp-2);+ font-size: 11px;+ color: var(--text-muted);+ font-family: var(--font-mono);+ letter-spacing: 0.02em;+ }+</style>diff --git a/app/src/lib/ErrorCard.svelte b/app/src/lib/ErrorCard.sveltenew file mode 100644index 0000000..054d306--- /dev/null+++ b/app/src/lib/ErrorCard.svelte@@ -0,0 +1,114 @@+<script lang="ts">+ export interface ConvertError {+ code: string;+ title: string;+ detail: string;+ suggested_action: string;+ diagnostics_key?: string;+ }++ let {+ error,+ onDismiss,+ onOpenDiagnostics,+ }: {+ error: ConvertError;+ onDismiss: () => void;+ onOpenDiagnostics?: (key: string) => void;+ } = $props();+</script>++<div class="card" role="alert">+ <div class="header">+ <span class="icon" aria-hidden="true">✕</span>+ <span class="title">{error.title}</span>+ <button class="close" onclick={onDismiss} aria-label="Dismiss error">✕</button>+ </div>+ <p class="detail">{error.detail}</p>+ <div class="footer">+ <p class="action">{error.suggested_action}</p>+ {#if error.diagnostics_key && onOpenDiagnostics}+ <button+ class="diag-link"+ onclick={() => onOpenDiagnostics!(error.diagnostics_key!)}+ >+ View in Diagnostics →+ </button>+ {/if}+ </div>+</div>++<style>+ .card {+ background: color-mix(in srgb, var(--red) 8%, var(--surface-1));+ border: 1px solid color-mix(in srgb, var(--red) 30%, transparent);+ border-radius: var(--radius);+ padding: var(--sp-4);+ display: flex;+ flex-direction: column;+ gap: var(--sp-2);+ }+ .header {+ display: flex;+ align-items: center;+ gap: var(--sp-2);+ }+ .icon {+ font-size: 13px;+ color: var(--red);+ flex-shrink: 0;+ font-style: normal;+ }+ .title {+ font-size: 13px;+ font-weight: 600;+ color: var(--text-primary);+ flex: 1;+ }+ .close {+ background: none;+ border: none;+ color: var(--text-muted);+ cursor: pointer;+ font-size: 12px;+ padding: 2px var(--sp-1);+ border-radius: var(--radius-sm);+ transition: color var(--transition-fast);+ font-family: var(--font-ui);+ }+ .close:hover { color: var(--text-primary); }+ .detail {+ font-size: 12px;+ color: var(--text-secondary);+ line-height: 1.5;+ user-select: text;+ }+ .footer {+ display: flex;+ align-items: baseline;+ gap: var(--sp-4);+ flex-wrap: wrap;+ }+ .action {+ font-size: 12px;+ color: var(--accent);+ font-weight: 500;+ }+ .diag-link {+ font-size: 12px;+ font-weight: 600;+ font-family: var(--font-ui);+ color: var(--accent);+ cursor: pointer;+ padding: 5px 11px;+ background: color-mix(in srgb, var(--accent) 16%, transparent);+ border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);+ border-radius: var(--radius-sm);+ transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);+ }+ .diag-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }+ .diag-link:focus-visible {+ outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);+ border-radius: 2px;+ }+</style>diff --git a/app/src/lib/ModeSwitch.svelte b/app/src/lib/ModeSwitch.sveltenew file mode 100644index 0000000..93e9625--- /dev/null+++ b/app/src/lib/ModeSwitch.svelte@@ -0,0 +1,77 @@+<script lang="ts">+ const MODE_LABELS: Record<string, string> = { off: 'Off', local: 'Local', api: 'API' };+ const MODE_TIPS: Record<string, string> = {+ off: 'No AI — fully offline. Only rule-based cleanup is available.',+ local: 'Use a local model (e.g. Ollama) for AI cleanup. Stays on your machine.',+ api: 'Use a cloud API model for AI cleanup. Sends text to your provider.',+ };++ let {+ mode = 'off',+ onModeChange,+ }: {+ mode?: string;+ onModeChange?: (m: string) => void;+ } = $props();+</script>++<div class="switch-wrap" title="Intelligence mode">+ <span class="label">Intelligence</span>+ <div class="pills" aria-label="Intelligence mode" role="group">+ {#each Object.keys(MODE_LABELS) as m}+ <button+ class="pill"+ class:active={mode === m}+ aria-pressed={mode === m}+ title={MODE_TIPS[m]}+ onclick={() => onModeChange?.(m)}+ >+ {MODE_LABELS[m]}+ </button>+ {/each}+ </div>+</div>++<style>+ .switch-wrap {+ display: flex;+ align-items: center;+ gap: var(--sp-3);+ }+ .label {+ font-size: 11px;+ font-weight: 500;+ color: var(--text-muted);+ text-transform: uppercase;+ letter-spacing: 0.06em;+ }+ .pills {+ display: flex;+ background: var(--surface-1);+ border: 1px solid var(--border-strong);+ border-radius: var(--radius-sm);+ padding: 3px;+ gap: 3px;+ }+ .pill {+ padding: 5px 13px;+ font-size: 12px;+ font-weight: 600;+ font-family: var(--font-ui);+ border: none;+ border-radius: 5px;+ background: transparent;+ color: var(--text-secondary);+ cursor: pointer;+ transition: background var(--transition-fast), color var(--transition-fast);+ }+ .pill:hover:not(.active) { color: var(--text-primary); background: var(--surface-2); }+ .pill.active {+ background: var(--accent);+ color: #fff;+ }+ .pill:focus-visible {+ outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);+ outline-offset: 1px;+ }+</style>diff --git a/app/src/lib/ProvisionView.svelte b/app/src/lib/ProvisionView.sveltenew file mode 100644index 0000000..c73b728--- /dev/null+++ b/app/src/lib/ProvisionView.svelte@@ -0,0 +1,226 @@+<script lang="ts" module>+ export interface DownloadDetail {+ label: string;+ received: number;+ total?: number | null;+ speed: number; // bytes per second+ }+ export interface ProvisionProgress {+ step: string;+ message: string;+ pct: number;+ detail?: DownloadDetail | null;+ }+</script>++<script lang="ts">+ import Stepper, { type Step } from '$lib/Stepper.svelte';++ let { progress }: { progress: ProvisionProgress } = $props();++ const STEPS: Step[] = [+ { title: 'Setup tools', description: 'Download uv' },+ { title: 'Python 3.12', description: 'Runtime' },+ { title: 'Packages', description: 'Converters' },+ ];++ // Map the backend step key onto the stepper index.+ const STEP_INDEX: Record<string, number> = {+ downloading_uv: 0,+ creating_env: 1,+ installing_packages: 2,+ done: 3,+ };++ let current = $derived(STEP_INDEX[progress.step] ?? 0);+ let done = $derived(progress.step === 'done' || progress.pct >= 1);+ let detail = $derived(progress.detail ?? null);+ // A determinate bar only when we know the total size (the uv download). Other+ // steps are driven by uv and report no byte totals, so they stay indeterminate.+ let hasTotal = $derived(!!detail && typeof detail.total === 'number' && detail.total! > 0);+ let frac = $derived(hasTotal ? Math.min(1, detail!.received / detail!.total!) : 0);++ // What ships in the "Packages" step — shown so the user sees exactly what's+ // being installed, not just a spinner.+ const PACKAGES = [+ { name: 'markitdown', note: 'core document converter' },+ { name: 'PDF · Word · PowerPoint · Excel', note: 'format support' },+ { name: 'openai', note: 'AI cleanup client' },+ ];++ function formatBytes(n: number): string {+ if (n < 1024) return `${n} B`;+ if (n < 1024 * 1024) return `${(n / 1024).toFixed(0)} KB`;+ if (n < 1024 * 1024 * 1024) return `${(n / (1024 * 1024)).toFixed(1)} MB`;+ return `${(n / (1024 * 1024 * 1024)).toFixed(2)} GB`;+ }+ function formatSpeed(bps: number): string {+ if (bps <= 0) return '';+ if (bps < 1024 * 1024) return `${(bps / 1024).toFixed(0)} KB/s`;+ return `${(bps / (1024 * 1024)).toFixed(1)} MB/s`;+ }++ let sizeText = $derived(+ detail+ ? hasTotal+ ? `${formatBytes(detail.received)} / ${formatBytes(detail.total!)}`+ : detail.received > 0+ ? formatBytes(detail.received)+ : ''+ : ''+ );+ let speedText = $derived(detail ? formatSpeed(detail.speed) : '');+</script>++<div class="provision">+ <header class="head">+ <h1>Setting up MDFlux</h1>+ <p class="sub">One-time setup of the local conversion engine.</p>+ </header>++ <Stepper steps={STEPS} {current} {done} />++ <div class="detail-card" aria-live="polite">+ <p class="status">{done ? 'Setup complete.' : progress.message}</p>++ {#if detail && !done}+ <p class="what">{detail.label}</p>+ {/if}++ {#if hasTotal && !done}+ <div class="bar" role="progressbar"+ aria-valuenow={Math.round(frac * 100)} aria-valuemin={0} aria-valuemax={100}>+ <div class="bar-fill" style="width: {frac * 100}%"></div>+ </div>+ {:else if !done}+ <div class="bar" role="progressbar" aria-busy="true" aria-label={progress.message}>+ <div class="bar-fill indeterminate"></div>+ </div>+ {/if}++ {#if !done && (sizeText || speedText)}+ <div class="metrics">+ {#if sizeText}<span class="metric">{sizeText}</span>{/if}+ {#if hasTotal}<span class="metric">{Math.round(frac * 100)}%</span>{/if}+ {#if speedText}<span class="metric speed">↓ {speedText}</span>{/if}+ </div>+ {/if}++ {#if current === 2 && !done}+ <ul class="pkg-list">+ {#each PACKAGES as p}+ <li><span class="pkg-name">{p.name}</span><span class="pkg-note">{p.note}</span></li>+ {/each}+ </ul>+ {/if}+ </div>++ <p class="hint">Internet required · this runs once</p>+</div>++<style>+ .provision {+ flex: 1;+ display: flex;+ flex-direction: column;+ align-items: center;+ justify-content: center;+ gap: var(--sp-6);+ width: min(520px, 92%);+ margin: 0 auto;+ padding: var(--sp-6) 0;+ }++ .head { text-align: center; }+ .head h1 {+ font-size: 19px;+ font-weight: 700;+ color: var(--text-primary);+ }+ .sub {+ margin-top: var(--sp-1);+ font-size: 13px;+ color: var(--text-secondary);+ }++ .detail-card {+ width: 100%;+ background: var(--surface-1);+ border: 1px solid var(--border);+ border-radius: var(--radius);+ padding: var(--sp-5);+ display: flex;+ flex-direction: column;+ gap: var(--sp-3);+ }+ .status {+ font-size: 13.5px;+ font-weight: 600;+ color: var(--text-primary);+ min-height: 1.4em;+ }+ .what {+ font-size: 12px;+ color: var(--text-secondary);+ font-family: var(--font-mono);+ word-break: break-word;+ }++ .bar {+ height: 6px;+ background: var(--surface-3);+ border-radius: 999px;+ overflow: hidden;+ }+ .bar-fill {+ height: 100%;+ background: var(--accent);+ border-radius: 999px;+ transition: width 150ms linear;+ transform-origin: left center;+ }+ .bar-fill.indeterminate {+ width: 45%;+ animation: indeterminate 1.5s ease-in-out infinite;+ }+ @keyframes indeterminate {+ 0% { transform: translateX(-120%); }+ 100% { transform: translateX(260%); }+ }++ .metrics {+ display: flex;+ gap: var(--sp-4);+ font-size: 12px;+ color: var(--text-secondary);+ font-variant-numeric: tabular-nums;+ }+ .metric.speed { color: var(--accent); font-weight: 600; margin-left: auto; }++ .pkg-list {+ list-style: none;+ margin: var(--sp-1) 0 0;+ padding: var(--sp-3) 0 0;+ border-top: 1px solid var(--border);+ display: flex;+ flex-direction: column;+ gap: var(--sp-2);+ }+ .pkg-list li {+ display: flex;+ align-items: baseline;+ gap: var(--sp-2);+ font-size: 12px;+ }+ .pkg-name { color: var(--text-primary); font-weight: 600; }+ .pkg-note { color: var(--text-muted); }++ .hint {+ font-size: 12px;+ color: var(--text-muted);+ }++ @media (prefers-reduced-motion: reduce) {+ .bar-fill.indeterminate { animation: none; width: 100%; opacity: 0.35; }+ }+</style>diff --git a/app/src/lib/ResultView.svelte b/app/src/lib/ResultView.sveltenew file mode 100644index 0000000..7a2dd0c--- /dev/null+++ b/app/src/lib/ResultView.svelte@@ -0,0 +1,620 @@+<script lang="ts">+ import { invoke } from '@tauri-apps/api/core';+ import { CLEANUP_RULES, totalChanges } from './cleanup';+ import type { CleanupResult, CleanupMethod, CleanupUIState, ViewMode } from './cleanup';+ import { lineDiff } from './diff';+ import type { DiffResult } from './diff';+ import { renderMarkdown } from './mdpreview';+ import { buildOutputFilename, type NamingCase } from './naming';+ import { onDestroy } from 'svelte';++ let {+ markdown,+ detectedFormat,+ converterPath,+ warnings = [],+ sourceStem = 'output',+ sourcePath = '',+ extractImages = true,+ namingTemplate = '{stem}',+ namingCase = 'keep',+ onClear,+ onOpenFile,+ llmMode = 'off',+ cleanupSeen = true,+ onSeenCleanup,+ cleanup,+ }: {+ markdown: string;+ detectedFormat: string;+ converterPath: string;+ warnings?: string[];+ sourceStem?: string;+ sourcePath?: string;+ extractImages?: boolean;+ namingTemplate?: string;+ namingCase?: string;+ onClear: () => void;+ onOpenFile: () => Promise<void>;+ llmMode?: string;+ cleanupSeen?: boolean;+ onSeenCleanup?: () => void;+ cleanup: CleanupUIState;+ } = $props();++ // Save name follows the configured naming convention ({stem}/{ext}/{date} + case).+ const outName = $derived(+ buildOutputFilename(`${sourceStem}.${(detectedFormat || '').toLowerCase()}`, namingTemplate, namingCase as NamingCase),+ );++ const running = $derived(cleanup.running);+ const llmAvailable = $derived(llmMode === 'local' || llmMode === 'api');++ // The cleaned text for the active method (null until produced).+ const activeCleaned = $derived(+ cleanup.method === 'rules' ? cleanup.rulesCleaned+ : cleanup.method === 'ai' ? cleanup.aiCleaned+ : null,+ );+ const activeMarkdown = $derived(activeCleaned ?? markdown);+ const hasChanges = $derived(cleanup.method !== 'none' && activeCleaned !== null);++ const diff = $derived<DiffResult | null>(+ hasChanges && cleanup.viewMode === 'changes' ? lineDiff(markdown, activeCleaned as string) : null,+ );+ const previewHtml = $derived(+ cleanup.viewMode === 'preview' ? renderMarkdown(activeMarkdown) : '',+ );+ // Split view = before/after cleanup, rendered side by side.+ const beforeHtml = $derived(cleanup.viewMode === 'split' ? renderMarkdown(markdown) : '');+ const afterHtml = $derived(cleanup.viewMode === 'split' ? renderMarkdown(activeMarkdown) : '');++ // Tracks whether the active markdown has been saved to disk. Reset synchronously+ // at each content-mutating handler (not via $effect — writing $state in $effect+ // is a Svelte 5 anti-pattern that can cascade).+ let saved = $state(false);++ // ── Split view scroll-sync ───────────────────────────────────────────────────+ let splitSrcEl = $state<HTMLElement | null>(null);+ let splitPrevEl = $state<HTMLElement | null>(null);+ let syncing = false;+ function syncScroll(from: 'src' | 'prev') {+ if (syncing) return;+ const a = from === 'src' ? splitSrcEl : splitPrevEl;+ const b = from === 'src' ? splitPrevEl : splitSrcEl;+ if (!a || !b) return;+ const ratio = a.scrollTop / Math.max(1, a.scrollHeight - a.clientHeight);+ syncing = true;+ b.scrollTop = ratio * Math.max(1, b.scrollHeight - b.clientHeight);+ requestAnimationFrame(() => { syncing = false; });+ }++ const ruleChanges = $derived(totalChanges(cleanup.rulesSummary));+ const ruleCounts = $derived(+ Object.fromEntries((cleanup.rulesSummary?.rules ?? []).map(r => [r.key, r.changes])),+ );++ function setView(v: ViewMode) { cleanup.viewMode = v; }++ // ── Cleanup method ─────────────────────────────────────────────────────────+ async function selectMethod(m: CleanupMethod) {+ if (cleanup.method === m) return;+ cleanup.method = m;+ saved = false;+ // Split/Changes are before-vs-after views — meaningless with no cleanup.+ if (m === 'none' && (cleanup.viewMode === 'split' || cleanup.viewMode === 'changes')) {+ cleanup.viewMode = 'preview';+ }+ if (m !== 'none' && !cleanupSeen) onSeenCleanup?.();+ if (m === 'rules' && cleanup.rulesCleaned === null) await runRules();+ }++ async function runRules() {+ cleanup.running = true;+ saved = false;+ try {+ const res = await invoke<CleanupResult>('cleanup_markdown', {+ markdown, sourceFormat: detectedFormat, method: 'rules', rules: cleanup.rules,+ });+ cleanup.rulesCleaned = res.markdown;+ cleanup.rulesSummary = res.summary;+ } catch (e) {+ cleanup.rulesCleaned = markdown;+ cleanup.rulesSummary = null;+ } finally {+ cleanup.running = false;+ }+ }++ let cancelRequested = $state(false);++ async function runAi() {+ cleanup.running = true;+ cancelRequested = false;+ saved = false;+ try {+ const res = await invoke<CleanupResult>('cleanup_markdown', {+ markdown, sourceFormat: detectedFormat, method: 'ai', rules: {},+ });+ cleanup.aiCleaned = res.markdown;+ cleanup.aiApplied = res.llm_applied;+ cleanup.aiNotice = res.llm_notice;+ } catch (e) {+ if (cancelRequested) {+ cleanup.aiCleaned = null;+ cleanup.aiApplied = false;+ cleanup.aiNotice = 'AI cleanup cancelled — kept the original text.';+ } else {+ cleanup.aiCleaned = markdown;+ cleanup.aiApplied = false;+ cleanup.aiNotice = `AI cleanup failed: ${e}`;+ }+ } finally {+ cleanup.running = false;+ cancelRequested = false;+ }+ }++ async function cancelAi() {+ cancelRequested = true;+ try { await invoke('cancel_conversion'); } catch { /* will resolve/reject */ }+ }++ async function toggleRule(key: string) {+ cleanup.rules = { ...cleanup.rules, [key]: !cleanup.rules[key] };+ saved = false;+ await runRules();+ }++ // ── Copy / Save (operate on the active markdown) ─────────────────────────────+ let copyLabel = $state('Copy');+ let copyTimeout: ReturnType<typeof setTimeout>;+ let confirming = $state(false);++ onDestroy(() => clearTimeout(copyTimeout));++ async function copyMarkdown() {+ try {+ await navigator.clipboard.writeText(activeMarkdown);+ clearTimeout(copyTimeout);+ copyLabel = 'Copied!';+ copyTimeout = setTimeout(() => (copyLabel = 'Copy'), 2000);+ } catch {+ copyLabel = 'Failed';+ copyTimeout = setTimeout(() => (copyLabel = 'Copy'), 2000);+ }+ }+ let saveError = $state<string | null>(null);++ async function saveMarkdown(): Promise<boolean> {+ saveError = null;+ try {+ const ok = await invoke<boolean>('save_markdown', {+ content: activeMarkdown,+ suggestedName: outName,+ sourcePath: sourcePath || null,+ extractImages,+ });+ if (ok) saved = true;+ return ok;+ } catch (e) {+ saveError = `Could not save: ${e}`;+ return false;+ }+ }+ async function saveAndOpen() {+ const ok = await saveMarkdown();+ if (ok) { confirming = false; await onOpenFile(); }+ }+ function discardAndOpen() { confirming = false; onClear(); }++ // "Open a New File": only warn about losing the result if it isn't already saved.+ function requestOpenNew() {+ if (saved) onOpenFile();+ else confirming = true;+ }++ let modalEl = $state<HTMLElement | null>(null);+ let openNewBtnEl = $state<HTMLButtonElement | null>(null);++ // Modal focus management: focus the modal on open, trap Tab, close on Escape,+ // restore focus to the trigger on close.+ $effect(() => {+ if (confirming && modalEl) {+ modalEl.focus();+ }+ });++ function onModalKeydown(e: KeyboardEvent) {+ if (e.key === 'Escape') {+ e.preventDefault();+ confirming = false;+ openNewBtnEl?.focus();+ return;+ }+ if (e.key === 'Tab' && modalEl) {+ const focusable = modalEl.querySelectorAll<HTMLElement>('button, [tabindex]:not([tabindex="-1"])');+ if (focusable.length === 0) return;+ const first = focusable[0];+ const last = focusable[focusable.length - 1];+ // Handle Tab from the modal container itself (the initially-focused element).+ if (document.activeElement === modalEl) {+ e.preventDefault();+ if (e.shiftKey) last.focus(); else first.focus();+ } else if (e.shiftKey && document.activeElement === first) {+ e.preventDefault();+ last.focus();+ } else if (!e.shiftKey && document.activeElement === last) {+ e.preventDefault();+ first.focus();+ }+ }+ }++ // Intercept link clicks in the preview so they don't navigate the app webview.+ function onPreviewClick(e: MouseEvent) {+ const a = (e.target as HTMLElement)?.closest('a');+ if (a) e.preventDefault();+ }+</script>++<div class="result-wrap">++ <!-- Header: filename + view toggle -->+ <div class="result-header">+ <div class="file-title" title={sourceStem}>+ <svg width="15" height="15" viewBox="0 0 15 15" fill="none" aria-hidden="true">+ <path d="M3 1.5h6L12 4.5V13a.5.5 0 0 1-.5.5h-8A.5.5 0 0 1 3 13V1.5z" stroke="currentColor" stroke-width="1.1" stroke-linejoin="round"/>+ <path d="M8.5 1.5V5h3.5" stroke="currentColor" stroke-width="1.1" stroke-linejoin="round"/>+ </svg>+ <span class="filename">{sourceStem}</span>+ </div>++ <div class="seg view-seg" role="group" aria-label="View mode">+ <button class="seg-btn" class:active={cleanup.viewMode === 'preview'} aria-pressed={cleanup.viewMode === 'preview'} title="Rendered Markdown" onclick={() => setView('preview')}>Preview</button>+ <button class="seg-btn" class:active={cleanup.viewMode === 'source'} aria-pressed={cleanup.viewMode === 'source'} title="Raw Markdown text" onclick={() => setView('source')}>Source</button>+ {#if hasChanges}+ <button class="seg-btn" class:active={cleanup.viewMode === 'split'} aria-pressed={cleanup.viewMode === 'split'} title="Before and after cleanup, side by side" onclick={() => setView('split')}>Split</button>+ <button class="seg-btn" class:active={cleanup.viewMode === 'changes'} aria-pressed={cleanup.viewMode === 'changes'} title="What cleanup changed vs the original" onclick={() => setView('changes')}>Changes</button>+ {/if}+ </div>+ </div>++ <!-- Cleanup bar -->+ <div class="cleanup-bar">+ <div class="cleanup-head">+ <span class="cleanup-title">Clean up</span>+ <div class="seg seg-lg" role="group" aria-label="Cleanup method">+ <button class="seg-btn" class:active={cleanup.method === 'none'} aria-pressed={cleanup.method === 'none'} title="Show the raw conversion, unchanged" onclick={() => selectMethod('none')}>Off</button>+ <button class="seg-btn" class:active={cleanup.method === 'rules'} aria-pressed={cleanup.method === 'rules'} title="Clean up using fast, offline rules" onclick={() => selectMethod('rules')}>Rule-based</button>+ <button class="seg-btn" class:active={cleanup.method === 'ai'} aria-pressed={cleanup.method === 'ai'}+ onclick={() => selectMethod('ai')} disabled={!llmAvailable}+ title={llmAvailable ? 'Clean up with your configured AI model' : 'Switch to Local or API mode to enable AI cleanup'}>AI</button>+ </div>+ {#if !cleanupSeen && cleanup.method === 'none'}+ <span class="new-badge" aria-hidden="true">New</span>+ {/if}+ </div>++ {#if cleanup.method === 'rules'}+ <p class="cleanup-desc">+ Fast, offline rules — nothing leaves your machine. Toggle any rule to re-run.+ {#if running}<span class="muted">Cleaning…</span>+ {:else if cleanup.rulesSummary}<span class="muted" title="Total edits across all enabled rules">{ruleChanges === 0 ? 'No changes needed.' : `${ruleChanges.toLocaleString()} change${ruleChanges === 1 ? '' : 's'} total.`}</span>{/if}+ </p>+ <div class="rules-list">+ {#each CLEANUP_RULES as rule}+ <label class="rule-row" title="{rule.hint}. {cleanup.rules[rule.key] ? 'On' : 'Off'} — click to toggle.">+ <input type="checkbox" checked={cleanup.rules[rule.key]} onchange={() => toggleRule(rule.key)} disabled={running} />+ <span class="rule-text">+ <span class="rule-label">{rule.label}</span>+ <span class="rule-hint">{rule.hint}</span>+ </span>+ {#if cleanup.rulesSummary && cleanup.rules[rule.key]}+ {@const c = ruleCounts[rule.key] ?? 0}+ <span class="rule-count" class:rule-count-zero={c === 0} title="{c.toLocaleString()} {c === 1 ? 'edit' : 'edits'} this rule made">{c.toLocaleString()}</span>+ {/if}+ </label>+ {/each}+ </div>++ {:else if cleanup.method === 'ai'}+ {#if running}+ <div class="ai-running-row">+ <p class="cleanup-desc"><span class="spinner-inline" aria-hidden="true"></span> Cleaning with AI… large documents on a local model can take a few minutes.</p>+ <button class="btn-cancel" onclick={cancelAi} disabled={cancelRequested} title="Stop the AI cleanup and keep the original text">+ {cancelRequested ? 'Cancelling…' : 'Cancel'}+ </button>+ </div>+ {:else if cleanup.aiCleaned === null}+ <div class="ai-panel">+ <p class="cleanup-desc">Cleans the document with your {llmMode === 'api' ? 'configured API model' : 'local model'}, in one pass. Your raw result is kept.</p>+ {#if llmMode === 'api'}<p class="cost-warning">⚠ This sends the document text to your configured API provider.</p>{/if}+ <button class="btn-primary btn-sm" title="Send the document to your AI model and clean it up" onclick={runAi}>Run AI cleanup</button>+ </div>+ {:else}+ <p class="cleanup-desc">+ {#if cleanup.aiApplied}<span class="ok">AI cleanup applied.</span>{/if}+ <button class="link-btn" title="Run the AI cleanup again on the original text" onclick={runAi}>Run again</button>+ </p>+ {#if cleanup.aiNotice}<p class="warn">{cleanup.aiNotice}</p>{/if}+ {/if}+ {/if}+ </div>++ <!-- Content -->+ {#if cleanup.viewMode === 'split' && hasChanges}+ <div class="split">+ <div class="split-col">+ <div class="split-label">Before cleanup</div>+ <div class="split-pane split-source" bind:this={splitSrcEl} onscroll={() => syncScroll('src')} tabindex="0" role="region" aria-label="Before cleanup">+ <!-- svelte-ignore a11y_click_events_have_key_events a11y_no_static_element_interactions -->+ <div class="preview" onclick={onPreviewClick}>{@html beforeHtml}</div>+ </div>+ </div>+ <div class="split-col">+ <div class="split-label">After cleanup</div>+ <div class="split-pane" bind:this={splitPrevEl} onscroll={() => syncScroll('prev')} tabindex="0" role="region" aria-label="After cleanup">+ <!-- svelte-ignore a11y_click_events_have_key_events a11y_no_static_element_interactions -->+ <div class="preview" onclick={onPreviewClick}>{@html afterHtml}</div>+ </div>+ </div>+ </div>+ {:else}+ <div class="scroll-area" tabindex="0" role="region" aria-label="Markdown result">+ {#if cleanup.viewMode === 'changes' && diff}+ {#if diff.kind === 'summary'}+ <div class="diff-summary">+ <p>{diff.note}</p>+ <p class="diff-counts"><span class="add-count">+{diff.added.toLocaleString()}</span> <span class="del-count">−{diff.removed.toLocaleString()}</span> lines</p>+ </div>+ {:else}+ <div class="diff-view">+ {#each diff.rows as row}+ <div class="diff-row diff-{row.type}">+ <span class="diff-gutter" aria-hidden="true">{row.type === 'add' ? '+' : row.type === 'del' ? '−' : ''}</span>+ <span class="diff-text">{row.text || ' '}</span>+ </div>+ {/each}+ </div>+ {/if}+ {:else if cleanup.viewMode === 'preview'}+ <!-- svelte-ignore a11y_click_events_have_key_events a11y_no_static_element_interactions -->+ <div class="preview" onclick={onPreviewClick}>{@html previewHtml}</div>+ {:else}+ <pre class="markdown-view">{activeMarkdown}</pre>+ {/if}+ </div>+ {/if}++ <!-- Bottom bar -->+ <div class="bottom-bar">+ <span class="source-badge" title="Source format · {converterPath}">+ From: {detectedFormat}{#if warnings.length}<span class="warn-dot" title={warnings.join('\n')}>⚠</span>{/if}+ </span>+ <div class="actions">+ <button class="btn-secondary" title="Discard this result and convert a different file" onclick={requestOpenNew} bind:this={openNewBtnEl}>+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true"><path d="M3 1.5h5L11 4.5V12a.5.5 0 0 1-.5.5h-7A.5.5 0 0 1 3 12V1.5z" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round"/><path d="M7 6.2v3.6M5.2 8h3.6" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/></svg>+ Open a New File+ </button>+ <button class="btn-secondary" title="Copy the current Markdown to the clipboard" onclick={copyMarkdown}>+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true"><rect x="4.5" y="4.5" width="7.5" height="7.5" rx="1.3" stroke="currentColor" stroke-width="1.2"/><path d="M9.5 4.5V3a1 1 0 0 0-1-1h-5a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1H4.5" stroke="currentColor" stroke-width="1.2"/></svg>+ {copyLabel}+ </button>+ {#if saveError}<p class="save-error">{saveError}</p>{/if}+ <button class="btn-primary" title="Save the current Markdown to a .md file" onclick={saveMarkdown}>+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true"><path d="M7 1.5v7M4 6l3 3 3-3" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/><path d="M2.5 11.5h9" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg>+ Save as .md+ </button>+ </div>+ </div>+</div>++{#if confirming}+ <!-- svelte-ignore a11y_click_events_have_key_events a11y_no_static_element_interactions -->+ <div class="modal-backdrop" onclick={() => { confirming = false; openNewBtnEl?.focus(); }}>+ <div class="modal" bind:this={modalEl} onclick={(e) => e.stopPropagation()} onkeydown={onModalKeydown} role="dialog" aria-modal="true" aria-labelledby="modal-title" tabindex="-1">+ <p id="modal-title" class="modal-title">Open a new file?</p>+ <p class="modal-body">Your current result will be lost unless you save it first.</p>+ <div class="modal-actions">+ <button class="btn-secondary" onclick={() => { confirming = false; openNewBtnEl?.focus(); }}>Cancel</button>+ <button class="btn-secondary" onclick={discardAndOpen}>Discard</button>+ <button class="btn-primary" onclick={saveAndOpen}>Save & Open</button>+ </div>+ </div>+ </div>+{/if}++<style>+ .result-wrap {+ flex: 1;+ display: flex;+ flex-direction: column;+ min-height: 0;+ background: var(--surface-1);+ border: 1px solid var(--border);+ border-radius: var(--radius);+ overflow: hidden;+ }++ /* Header */+ .result-header {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: var(--sp-3);+ padding: var(--sp-3) var(--sp-4);+ border-bottom: 1px solid var(--border);+ background: var(--surface-2);+ flex-shrink: 0;+ }+ .file-title { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; color: var(--text-muted); }+ .filename {+ font-size: 13px;+ font-weight: 600;+ color: var(--text-primary);+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+ }++ /* Segmented control — base .seg/.seg-btn in tokens.css; local: no-shrink + large variant. */+ .seg { flex-shrink: 0; }+ .seg-lg .seg-btn { padding: 7px 22px; font-size: 13px; }++ /* Cleanup bar */+ .cleanup-bar {+ flex-shrink: 0;+ display: flex;+ flex-direction: column;+ gap: var(--sp-2);+ padding: var(--sp-2) var(--sp-4);+ border-bottom: 1px solid var(--border);+ background: color-mix(in srgb, var(--surface-2) 40%, var(--surface-1));+ }+ .cleanup-head { display: flex; align-items: center; gap: var(--sp-3); }+ .cleanup-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }++ .new-badge {+ font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;+ color: #fff; background: var(--accent); padding: 1px 6px; border-radius: 999px;+ animation: new-pulse 1.6s ease-in-out infinite;+ }+ @keyframes new-pulse {+ 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); }+ 50% { box-shadow: 0 0 0 4px transparent; }+ }+ @media (prefers-reduced-motion: reduce) { .new-badge { animation: none; } }++ .cleanup-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin: 0; }+ .muted { color: var(--text-muted); margin-left: var(--sp-1); }+ .ok { color: var(--green); }+ .warn { font-size: 11px; color: var(--amber); line-height: 1.5; margin: 0; }++ .spinner-inline {+ display: inline-block; width: 11px; height: 11px;+ border: 2px solid var(--border); border-top-color: var(--accent);+ border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: -1px; margin-right: 4px;+ }+ @keyframes spin { to { transform: rotate(360deg); } }+ @media (prefers-reduced-motion: reduce) { .spinner-inline { animation: none; } }++ .rules-list { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-2); background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-sm); }+ .rule-row { display: flex; align-items: flex-start; gap: var(--sp-2); cursor: pointer; padding: 3px var(--sp-1); border-radius: var(--radius-sm); }+ .rule-row:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }+ .rule-row input { margin-top: 2px; accent-color: var(--accent); cursor: pointer; }+ .rule-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }+ .rule-label { font-size: 12px; color: var(--text-primary); }+ .rule-hint { font-size: 10px; color: var(--text-muted); }+ .rule-count { flex-shrink: 0; align-self: center; font-size: 11px; font-family: var(--font-mono); font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 1px 7px; border-radius: 999px; min-width: 22px; text-align: center; }+ .rule-count-zero { color: var(--text-muted); background: var(--surface-2); }++ .ai-panel { display: flex; flex-direction: column; gap: var(--sp-2); align-items: flex-start; }+ .ai-running-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }+ .cost-warning { font-size: 11px; color: var(--amber); line-height: 1.5; background: color-mix(in srgb, var(--amber) 10%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); border-radius: var(--radius-sm); padding: var(--sp-2); margin: 0; }+ .btn-cancel { flex-shrink: 0; padding: 4px var(--sp-4); font-size: 12px; font-weight: 600; font-family: var(--font-ui); color: #fff; background: var(--red); border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; transition: opacity var(--transition-fast); }+ .btn-cancel:hover { opacity: 0.85; }+ .btn-cancel:disabled { opacity: 0.55; cursor: default; }+ .btn-cancel:focus-visible { outline: 2px solid color-mix(in srgb, var(--red) 60%, transparent); outline-offset: 1px; }++ /* Content */+ .scroll-area { flex: 1; overflow-y: auto; padding: var(--sp-5) var(--sp-6); min-height: 0; outline: none; }+ .scroll-area:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: -2px; }++ /* Split view — before vs after cleanup, rendered side by side, scroll-synced. */+ .split { flex: 1; display: flex; min-height: 0; }+ .split-col { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }+ .split-col + .split-col { border-left: 1px solid var(--border); }+ .split-label {+ flex-shrink: 0; padding: 6px var(--sp-6); font-size: 10px; font-weight: 600;+ text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);+ background: var(--surface-2); border-bottom: 1px solid var(--border);+ }+ .split-pane { flex: 1; min-width: 0; overflow-y: auto; padding: var(--sp-5) var(--sp-6); min-height: 0; outline: none; }+ .split-pane:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: -2px; }+ .split-source { background: color-mix(in srgb, var(--surface-2) 30%, var(--surface-1)); }+ @media (max-width: 720px) {+ .split { flex-direction: column; }+ .split-col + .split-col { border-left: none; border-top: 1px solid var(--border); }+ }+ .markdown-view {+ font-family: var(--font-mono); font-size: 12.5px; line-height: 1.65; color: var(--text-primary);+ white-space: pre-wrap; word-break: break-word; user-select: text; background: transparent; border: none; tab-size: 2; margin: 0;+ }++ /* Rendered preview — {@html}, so descendants need :global() */+ .preview { color: var(--text-primary); font-size: 14px; line-height: 1.65; user-select: text; max-width: 760px; }+ .preview :global(h1) { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--border); }+ .preview :global(h2) { font-size: 20px; font-weight: 700; margin: var(--sp-6) 0 var(--sp-2); }+ .preview :global(h3) { font-size: 16px; font-weight: 600; margin: var(--sp-5) 0 var(--sp-2); }+ .preview :global(h4), .preview :global(h5), .preview :global(h6) { font-size: 14px; font-weight: 600; margin: var(--sp-4) 0 var(--sp-1); }+ .preview :global(p) { margin: 0 0 var(--sp-3); }+ .preview :global(ul), .preview :global(ol) { margin: 0 0 var(--sp-3); padding-left: var(--sp-6); }+ .preview :global(li) { margin: 2px 0; }+ .preview :global(a) { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }+ .preview :global(strong) { font-weight: 700; color: var(--text-primary); }+ .preview :global(em) { font-style: italic; }+ .preview :global(blockquote) { margin: 0 0 var(--sp-3); padding: var(--sp-1) var(--sp-4); border-left: 3px solid var(--border); color: var(--text-secondary); }+ .preview :global(hr) { border: none; border-top: 1px solid var(--border); margin: var(--sp-5) 0; }+ .preview :global(code) { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }+ .preview :global(pre) { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--sp-3); overflow-x: auto; margin: 0 0 var(--sp-3); }+ .preview :global(pre code) { background: none; padding: 0; }+ .preview :global(table) { border-collapse: collapse; margin: 0 0 var(--sp-3); font-size: 13px; display: block; overflow-x: auto; }+ .preview :global(th), .preview :global(td) { border: 1px solid var(--border); padding: 5px 10px; text-align: left; }+ .preview :global(th) { background: var(--surface-2); font-weight: 600; }+ .preview :global(img) { max-width: 100%; }++ /* Diff */+ .diff-view { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; user-select: text; }+ .diff-row { display: flex; gap: var(--sp-2); white-space: pre-wrap; word-break: break-word; padding: 0 var(--sp-1); }+ .diff-gutter { flex-shrink: 0; width: 10px; text-align: center; color: var(--text-muted); user-select: none; }+ .diff-text { flex: 1; min-width: 0; }+ .diff-same { color: var(--text-secondary); }+ .diff-add { background: color-mix(in srgb, var(--green) 12%, transparent); }+ .diff-add .diff-text, .diff-add .diff-gutter { color: var(--green); }+ .diff-del { background: color-mix(in srgb, var(--red) 12%, transparent); }+ .diff-del .diff-text, .diff-del .diff-gutter { color: var(--red); }+ .diff-summary { font-size: 13px; color: var(--text-secondary); display: flex; flex-direction: column; gap: var(--sp-2); }+ .diff-counts { font-family: var(--font-mono); }+ .add-count { color: var(--green); }+ .del-count { color: var(--red); margin-left: var(--sp-2); }++ /* Bottom bar */+ .bottom-bar {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: var(--sp-3);+ padding: var(--sp-2) var(--sp-4);+ border-top: 1px solid var(--border);+ background: var(--surface-2);+ flex-shrink: 0;+ }+ .source-badge {+ font-size: 11px;+ font-family: var(--font-mono);+ color: var(--text-muted);+ background: var(--surface-1);+ border: 1px solid var(--border);+ padding: 2px 10px;+ border-radius: 999px;+ display: inline-flex;+ align-items: center;+ gap: 5px;+ }+ .warn-dot { color: var(--amber); cursor: help; }+ .actions { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }+ .save-error { font-size: 11px; color: var(--red); margin: 0; }++ /* Modal */+ .modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; z-index: 100; }+ .modal { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-6); width: 340px; display: flex; flex-direction: column; gap: var(--sp-3); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }+ .modal-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }+ .modal-body { font-size: 12px; color: var(--text-muted); line-height: 1.5; }+ .modal-actions { display: flex; justify-content: flex-end; gap: var(--sp-2); margin-top: var(--sp-2); }++ /* Buttons: .btn-primary / .btn-secondary / .btn-sm come from tokens.css. */+ .link-btn { background: none; border: none; padding: 0; font-size: 11px; font-family: var(--font-ui); color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }+ .link-btn:hover { opacity: 0.8; }+ .link-btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 2px; }+</style>diff --git a/app/src/lib/StagingView.svelte b/app/src/lib/StagingView.sveltenew file mode 100644index 0000000..f906442--- /dev/null+++ b/app/src/lib/StagingView.svelte@@ -0,0 +1,408 @@+<script module lang="ts">+ import { defaultRules } from './cleanup';+ import type { CleanupMethod } from './cleanup';+ import type { OutputRule } from './naming';++ export interface FileInfo {+ path: string;+ name: string;+ ext: string; // uppercase, e.g. "PDF"+ size: number; // bytes+ }++ export interface ConvertCleanup {+ method: CleanupMethod; // 'none' | 'rules' | 'ai'+ rules: Record<string, boolean>;+ }++ // Lifted to the parent so it survives view changes (e.g. opening Diagnostics).+ export interface StagingState {+ outputFolder: string | null;+ outputRule: OutputRule; // Stage 7 — per-run output location rule+ method: CleanupMethod;+ rules: Record<string, boolean>;+ }++ // Seeded from config (output defaults) when available; falls back to old behavior.+ export function freshStaging(seed?: { rule?: string; folder?: string | null }): StagingState {+ return {+ outputFolder: seed?.folder ?? null,+ outputRule: (seed?.rule as OutputRule) ?? 'next_to_source',+ method: 'none',+ rules: defaultRules('pdf'),+ };+ }++ function fmtSize(bytes: number): string {+ if (bytes < 1024) return `${bytes} B`;+ if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;+ return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;+ }+</script>++<script lang="ts">+ import { onMount } from 'svelte';+ import { listen } from '@tauri-apps/api/event';+ import { open } from '@tauri-apps/plugin-dialog';+ import { CLEANUP_RULES } from './cleanup';+ import { SUPPORTED_EXTS, isHeavyExt } from './formats';+ import { buildOutputFilename, type NamingCase } from './naming';++ let {+ files,+ setup,+ llmMode = 'off',+ cleanupSeen = true,+ namingTemplate = '{stem}',+ namingCase = 'keep',+ onSeenCleanup,+ onAddFiles,+ onRemove,+ onClear,+ onConvert,+ onOpenDiagnostics,+ }: {+ files: FileInfo[];+ setup: StagingState;+ llmMode?: string;+ cleanupSeen?: boolean;+ namingTemplate?: string;+ namingCase?: string;+ onSeenCleanup?: () => void;+ onAddFiles: (rawPaths: string[]) => void;+ onRemove: (path: string) => void;+ onClear: () => void;+ onConvert: (outputFolder: string | null, outputRule: string, cleanup: ConvertCleanup) => void;+ onOpenDiagnostics?: () => void;+ } = $props();++ const isBatch = $derived(files.length > 1);+ // Live preview of the output filename using the configured naming convention,+ // sampled on the first staged file.+ const namePreview = $derived(+ files.length ? buildOutputFilename(files[0].name, namingTemplate, namingCase as NamingCase) : '',+ );+ const llmAvailable = $derived(llmMode === 'local' || llmMode === 'api');+ // Files that need a heavy optional engine (OCR / transcription) — slower, and the+ // model loads on first use. Used to warn before a long run.+ const heavyCount = $derived(files.filter(f => isHeavyExt(f.ext)).length);++ let dragHover = $state(false);++ onMount(() => {+ let unDrop: (() => void) | undefined;+ let unEnter: (() => void) | undefined;+ let unLeave: (() => void) | undefined;+ let dead = false;+ listen<{ paths: string[] }>('tauri://drag-drop', (e) => {+ dragHover = false;+ const paths = e.payload.paths ?? [];+ if (paths.length) onAddFiles(paths);+ }).then(fn => { if (dead) fn(); else unDrop = fn; });+ listen('tauri://drag-enter', () => (dragHover = true)).then(fn => { if (dead) fn(); else unEnter = fn; });+ listen('tauri://drag-leave', () => (dragHover = false)).then(fn => { if (dead) fn(); else unLeave = fn; });+ return () => { dead = true; unDrop?.(); unEnter?.(); unLeave?.(); };+ });++ async function browseFiles() {+ const sel = await open({+ multiple: true,+ filters: [+ { name: 'Supported files', extensions: SUPPORTED_EXTS },+ { name: 'All files', extensions: ['*'] },+ ],+ });+ if (!sel) return;+ onAddFiles(Array.isArray(sel) ? (sel as string[]) : [sel as string]);+ }+ async function browseFolder() {+ const sel = await open({ directory: true, multiple: false });+ if (!sel) return;+ onAddFiles([typeof sel === 'string' ? sel : (sel as string[])[0]]);+ }++ async function chooseFolder() {+ const sel = await open({ directory: true, multiple: false });+ if (!sel) return;+ setup.outputFolder = typeof sel === 'string' ? sel : (sel as string[])[0];+ }++ function setRule(r: OutputRule) {+ setup.outputRule = r;+ }++ function selectMethod(m: CleanupMethod) {+ setup.method = m;+ if (m !== 'none' && !cleanupSeen) onSeenCleanup?.();+ }++ function convert() {+ onConvert(setup.outputFolder, setup.outputRule, { method: setup.method, rules: setup.rules });+ }+</script>++<div class="staging">+ <div class="head">+ <span class="count">{files.length}</span>+ <span class="count-label">file{files.length === 1 ? '' : 's'} ready</span>+ <button class="link-btn clear-all" onclick={onClear} title="Remove all staged files">Clear all</button>+ </div>++ <!-- File list (drop more anywhere on this view) -->+ <div class="file-list" class:drag={dragHover}>+ {#each files as f (f.path)}+ <div class="file-chip">+ <span class="ftype" data-ext={f.ext.toLowerCase()}>{f.ext || 'FILE'}</span>+ <span class="fname" title={f.path}>{f.name}</span>+ <span class="fsize">{fmtSize(f.size)}</span>+ <button class="remove" title="Remove {f.name}" aria-label="Remove {f.name}" onclick={() => onRemove(f.path)}>+ <svg width="11" height="11" viewBox="0 0 11 11" fill="none" aria-hidden="true"><path d="M2 2l7 7M9 2l-7 7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>+ </button>+ </div>+ {/each}+ </div>++ <!-- Add more -->+ <div class="add-row">+ <span class="add-hint">Add more — drop files anywhere, or</span>+ <button class="add-btn" onclick={browseFiles}>Choose files…</button>+ <button class="add-btn" onclick={browseFolder}>Choose folder…</button>+ </div>++ {#if isBatch}+ <!-- Output destination (batch only; a single file is saved from the result view) -->+ <div class="section">+ <span class="section-label">Save output to</span>+ <div class="seg" role="group" aria-label="Output location">+ <button class="seg-btn" class:active={setup.outputRule === 'next_to_source'} aria-pressed={setup.outputRule === 'next_to_source'}+ title="Each .md is saved beside its source file" onclick={() => setRule('next_to_source')}>Next to source</button>+ <button class="seg-btn" class:active={setup.outputRule === 'fixed_folder'} aria-pressed={setup.outputRule === 'fixed_folder'}+ title="All .md files go into one chosen folder" onclick={() => setRule('fixed_folder')}>One folder</button>+ <button class="seg-btn" class:active={setup.outputRule === 'mirror_tree'} aria-pressed={setup.outputRule === 'mirror_tree'}+ title="Recreate the source folder structure under a chosen root" onclick={() => setRule('mirror_tree')}>Mirror folders</button>+ </div>++ {#if setup.outputRule !== 'next_to_source'}+ <div class="folder-row">+ <svg class="folder-icon" width="15" height="15" viewBox="0 0 16 16" fill="none" aria-hidden="true">+ <path d="M1.5 4.5A1 1 0 0 1 2.5 3.5h3.086a1 1 0 0 1 .707.293l.914.914H13.5a1 1 0 0 1 1 1V12a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1V4.5z" stroke="currentColor" stroke-width="1.25" fill="none"/>+ </svg>+ <span class="folder-value" class:folder-default={!setup.outputFolder} title={setup.outputFolder ?? 'Choose a folder'}>+ {setup.outputFolder ?? 'No folder chosen'}+ </span>+ {#if setup.outputFolder}+ <button class="mini-x" title="Clear" aria-label="Clear folder" onclick={() => (setup.outputFolder = null)}>+ <svg width="10" height="10" viewBox="0 0 10 10" fill="none" aria-hidden="true"><path d="M2 2l6 6M8 2l-6 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>+ </button>+ {/if}+ <button class="change-btn" title="Pick the folder to save into" onclick={chooseFolder}>{setup.outputFolder ? 'Change…' : 'Choose folder…'}</button>+ </div>+ {#if setup.outputRule === 'mirror_tree'}+ <span class="output-hint">Sub-folders of the dropped folder are recreated under this root.</span>+ {/if}+ {/if}++ {#if namePreview}+ <div class="name-line">+ <span class="name-line-label">Named</span>+ <span class="name-line-val">{namePreview}</span>+ {#if onOpenDiagnostics}<button class="link-btn" title="Change the naming convention in Diagnostics" onclick={onOpenDiagnostics}>Change…</button>{/if}+ </div>+ {/if}+ </div>++ <!-- Cleanup method (batch applies one choice to every file) -->+ <div class="section">+ <div class="cleanup-head">+ <span class="section-label">Clean up</span>+ <div class="seg seg-lg" role="group" aria-label="Cleanup method">+ <button class="seg-btn" class:active={setup.method === 'none'} aria-pressed={setup.method === 'none'} title="Convert files as-is, no cleanup" onclick={() => selectMethod('none')}>Off</button>+ <button class="seg-btn" class:active={setup.method === 'rules'} aria-pressed={setup.method === 'rules'} title="Clean every file with fast, offline rules" onclick={() => selectMethod('rules')}>Rule-based</button>+ <button class="seg-btn" class:active={setup.method === 'ai'} aria-pressed={setup.method === 'ai'} disabled={!llmAvailable}+ title={llmAvailable ? 'Clean every file with your configured AI model' : 'Switch to Local or API mode to enable AI cleanup'} onclick={() => selectMethod('ai')}>AI</button>+ </div>+ {#if !cleanupSeen && setup.method === 'none'}<span class="new-badge" aria-hidden="true">New</span>{/if}+ </div>+ {#if setup.method === 'rules'}+ <div class="rules-list">+ {#each CLEANUP_RULES as rule}+ <label class="rule-row" title="{rule.hint}. {setup.rules[rule.key] ? 'On' : 'Off'} — click to toggle.">+ <input type="checkbox" bind:checked={setup.rules[rule.key]} />+ <span class="rule-text"><span class="rule-label">{rule.label}</span><span class="rule-hint">{rule.hint}</span></span>+ </label>+ {/each}+ </div>+ {:else if setup.method === 'ai' && llmMode === 'api'}+ <p class="cost-warning">⚠ AI cleanup sends the text of all {files.length} files to your configured API provider — cost and privacy implications, once per file.</p>+ {/if}+ </div>+ {/if}++ {#if heavyCount > 0}+ <div class="heavy-notice">+ <svg width="15" height="15" viewBox="0 0 16 16" fill="none" aria-hidden="true">+ <circle cx="8" cy="8" r="6.3" stroke="currentColor" stroke-width="1.3"/>+ <path d="M8 4.5V8l2.3 1.5" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>+ </svg>+ <span>+ {heavyCount} {heavyCount === 1 ? 'file needs' : 'files need'} OCR or transcription — expect a longer run{isBatch ? ' across the batch' : ''}, and the engine's model loads on first use.+ </span>+ </div>+ {/if}++ <button class="convert-btn" onclick={convert}>+ <svg width="19" height="19" viewBox="0 0 20 20" fill="none" aria-hidden="true">+ <path d="M10 2.5l1.6 4.1 4.4.3-3.4 2.8 1.1 4.3L10 11.8 6.3 14l1.1-4.3L4 6.9l4.4-.3L10 2.5z" fill="currentColor"/>+ </svg>+ Convert to AI-Ready Markdown+ </button>+</div>++<style>+ .staging {+ flex: 1;+ display: flex;+ flex-direction: column;+ gap: var(--sp-4);+ max-width: 620px;+ margin: 0 auto;+ width: 100%;+ padding: var(--sp-4) 0;+ overflow-y: auto;+ min-height: 0;+ }++ .head { display: flex; align-items: baseline; gap: var(--sp-2); }+ .count { font-size: 24px; font-weight: 700; font-family: var(--font-mono); color: var(--text-primary); line-height: 1; }+ .count-label { font-size: 14px; color: var(--text-secondary); }+ .clear-all { margin-left: auto; }++ .file-list {+ display: flex;+ flex-direction: column;+ gap: var(--sp-2);+ padding: var(--sp-2);+ border: 1px dashed var(--border);+ border-radius: var(--radius);+ transition: border-color var(--transition-fast), background var(--transition-fast);+ }+ .file-list.drag { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }++ .file-chip {+ display: flex;+ align-items: center;+ gap: var(--sp-3);+ padding: var(--sp-2) var(--sp-3);+ background: var(--surface-1);+ border: 1px solid var(--border);+ border-radius: var(--radius-sm);+ }+ .ftype {+ flex-shrink: 0;+ font-size: 10px;+ font-weight: 700;+ font-family: var(--font-mono);+ color: var(--accent);+ background: color-mix(in srgb, var(--accent) 14%, transparent);+ padding: 2px 7px;+ border-radius: 4px;+ min-width: 38px;+ text-align: center;+ }+ .fname { flex: 1; min-width: 0; font-size: 13px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+ .fsize { flex-shrink: 0; font-size: 11px; font-family: var(--font-mono); color: var(--text-muted); }+ .remove {+ flex-shrink: 0; display: flex; align-items: center; justify-content: center;+ width: 20px; height: 20px; border-radius: 50%; border: none;+ background: var(--surface-2); color: var(--text-muted); cursor: pointer;+ transition: color var(--transition-fast), background var(--transition-fast);+ }+ .remove:hover { color: var(--red); background: color-mix(in srgb, var(--red) 14%, transparent); }++ .add-row { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }+ .add-hint { font-size: 12px; color: var(--text-muted); }+ .add-btn {+ font-size: 12.5px; font-weight: 600; font-family: var(--font-ui);+ color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent);+ border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);+ padding: 6px 13px; border-radius: var(--radius-sm); cursor: pointer;+ transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);+ }+ .add-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }+ .add-btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); }++ .section { display: flex; flex-direction: column; gap: var(--sp-2); }+ .section-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }++ .folder-row { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); }+ .folder-icon { flex-shrink: 0; color: var(--accent); }+ .folder-value { flex: 1; font-size: 12px; color: var(--text-primary); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+ .folder-default { color: var(--text-muted); font-family: var(--font-ui); font-style: italic; }+ .mini-x { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: none; background: var(--surface-2); color: var(--text-muted); cursor: pointer; }+ .mini-x:hover { color: var(--text-primary); background: var(--border); }+ .change-btn { flex-shrink: 0; padding: 6px 13px; font-size: 12px; font-weight: 600; font-family: var(--font-ui); color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: var(--radius-sm); cursor: pointer; transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast); }+ .change-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }++ .output-hint { font-size: 11px; color: var(--text-muted); line-height: 1.5; }+ .name-line { display: flex; align-items: center; gap: var(--sp-2); font-size: 12px; }+ .name-line-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }+ .name-line-val { font-family: var(--font-mono); color: var(--accent); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }++ .cleanup-head { display: flex; align-items: center; gap: var(--sp-3); }+ /* Segmented control — base .seg/.seg-btn in tokens.css; local: large variant only. */+ .seg-lg .seg-btn { padding: 7px 22px; font-size: 13px; }++ .new-badge { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #fff; background: var(--accent); padding: 1px 6px; border-radius: 999px; }++ .rules-list { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-2); background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-sm); }+ .rule-row { display: flex; align-items: flex-start; gap: var(--sp-2); cursor: pointer; padding: 3px; }+ .rule-row input { margin-top: 2px; accent-color: var(--accent); cursor: pointer; }+ .rule-text { display: flex; flex-direction: column; gap: 1px; }+ .rule-label { font-size: 12px; color: var(--text-primary); }+ .rule-hint { font-size: 10px; color: var(--text-muted); }++ .cost-warning { font-size: 11px; color: var(--amber); line-height: 1.5; background: color-mix(in srgb, var(--amber) 10%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); border-radius: var(--radius-sm); padding: var(--sp-2); margin: 0; }++ .heavy-notice {+ display: flex;+ align-items: center;+ gap: var(--sp-2);+ margin-top: var(--sp-2);+ font-size: 12px;+ line-height: 1.5;+ color: var(--text-secondary);+ background: color-mix(in srgb, var(--accent) 8%, transparent);+ border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);+ border-radius: var(--radius-sm);+ padding: var(--sp-2) var(--sp-3);+ }+ .heavy-notice svg { flex-shrink: 0; color: var(--accent); }++ .convert-btn {+ margin-top: var(--sp-4);+ width: 100%;+ min-height: 56px;+ display: inline-flex;+ align-items: center;+ justify-content: center;+ gap: var(--sp-2);+ padding: 18px 28px;+ font-size: 16px;+ font-weight: 700;+ letter-spacing: -0.01em;+ font-family: var(--font-ui);+ color: #fff;+ background: var(--accent);+ border: 1px solid var(--accent-edge);+ border-radius: 12px;+ cursor: pointer;+ box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 40%, transparent);+ transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);+ }+ .convert-btn:hover { background: var(--accent-hover); box-shadow: 0 6px 26px color-mix(in srgb, var(--accent) 48%, transparent); }+ .convert-btn:active { transform: translateY(1px); }+ .convert-btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }++ .link-btn { background: none; border: none; padding: 0; font-size: 11px; font-family: var(--font-ui); color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }+ .link-btn:hover { opacity: 0.8; }+</style>diff --git a/app/src/lib/Stepper.svelte b/app/src/lib/Stepper.sveltenew file mode 100644index 0000000..991776d--- /dev/null+++ b/app/src/lib/Stepper.svelte@@ -0,0 +1,172 @@+<script lang="ts">+ // Horizontal multi-step indicator, modelled on Nuxt UI's <UStepper>.+ // Steps before `current` render as complete (check), `current` is active,+ // the rest are pending. When `error` is set, the active step turns red.+ export interface Step {+ title: string;+ description?: string;+ }++ let {+ steps,+ current,+ error = false,+ done = false,+ }: {+ steps: Step[];+ current: number;+ error?: boolean;+ done?: boolean;+ } = $props();++ function stateOf(i: number): 'complete' | 'active' | 'error' | 'pending' {+ if (done) return 'complete';+ if (i < current) return 'complete';+ if (i === current) return error ? 'error' : 'active';+ return 'pending';+ }+</script>++<ol class="stepper" role="list">+ {#each steps as step, i}+ {@const st = stateOf(i)}+ <li class="step" data-state={st}>+ <div class="marker-row">+ <span class="line line-left" class:filled={i <= current && i > 0}></span>+ <span class="marker" aria-hidden="true">+ {#if st === 'complete'}+ <svg viewBox="0 0 24 24" width="14" height="14" fill="none"+ stroke="currentColor" stroke-width="3"+ stroke-linecap="round" stroke-linejoin="round">+ <path d="M5 13l4 4L19 7" />+ </svg>+ {:else if st === 'error'}+ <svg viewBox="0 0 24 24" width="14" height="14" fill="none"+ stroke="currentColor" stroke-width="3"+ stroke-linecap="round" stroke-linejoin="round">+ <path d="M6 6l12 12M18 6L6 18" />+ </svg>+ {:else if st === 'active'}+ <span class="pulse"></span>+ {:else}+ <span class="num">{i + 1}</span>+ {/if}+ </span>+ <span class="line line-right" class:filled={i < current}></span>+ </div>+ <div class="label">+ <span class="title">{step.title}</span>+ {#if step.description}+ <span class="desc">{step.description}</span>+ {/if}+ </div>+ </li>+ {/each}+</ol>++<style>+ .stepper {+ display: flex;+ list-style: none;+ width: 100%;+ margin: 0;+ padding: 0;+ }+ .step {+ flex: 1 1 0;+ display: flex;+ flex-direction: column;+ align-items: center;+ text-align: center;+ min-width: 0;+ }++ .marker-row {+ display: flex;+ align-items: center;+ width: 100%;+ }+ .line {+ flex: 1 1 auto;+ height: 2px;+ background: var(--border);+ transition: background var(--transition);+ }+ .line.filled { background: var(--accent); }+ /* First step has no incoming line, last has no outgoing — keep them invisible+ but present so every marker sits dead-centre in its column. */+ .step:first-child .line-left,+ .step:last-child .line-right { visibility: hidden; }++ .marker {+ flex: 0 0 auto;+ width: 28px;+ height: 28px;+ border-radius: 50%;+ display: grid;+ place-items: center;+ border: 2px solid var(--border-strong);+ background: var(--surface-1);+ color: var(--text-muted);+ font-size: 12px;+ font-weight: 700;+ font-family: var(--font-ui);+ transition: background var(--transition), border-color var(--transition),+ color var(--transition);+ }+ .num { line-height: 1; }++ .step[data-state='complete'] .marker {+ background: var(--accent);+ border-color: var(--accent);+ color: #fff;+ }+ .step[data-state='active'] .marker {+ border-color: var(--accent);+ color: var(--accent);+ box-shadow: 0 0 0 4px var(--accent-dim);+ }+ .step[data-state='error'] .marker {+ background: var(--red);+ border-color: var(--red);+ color: #fff;+ }++ .pulse {+ width: 9px;+ height: 9px;+ border-radius: 50%;+ background: var(--accent);+ animation: pulse 1.4s ease-in-out infinite;+ }+ @keyframes pulse {+ 0%, 100% { transform: scale(0.7); opacity: 0.6; }+ 50% { transform: scale(1); opacity: 1; }+ }++ .label {+ display: flex;+ flex-direction: column;+ gap: 2px;+ margin-top: var(--sp-2);+ padding: 0 var(--sp-1);+ }+ .title {+ font-size: 12.5px;+ font-weight: 600;+ color: var(--text-muted);+ transition: color var(--transition);+ }+ .step[data-state='active'] .title { color: var(--text-primary); }+ .step[data-state='complete'] .title { color: var(--text-secondary); }+ .step[data-state='error'] .title { color: var(--red); }+ .desc {+ font-size: 11px;+ color: var(--text-muted);+ line-height: 1.3;+ }++ @media (prefers-reduced-motion: reduce) {+ .pulse { animation: none; }+ }+</style>diff --git a/app/src/lib/cleanup.ts b/app/src/lib/cleanup.tsnew file mode 100644index 0000000..3663ec3--- /dev/null+++ b/app/src/lib/cleanup.ts@@ -0,0 +1,96 @@+// Stage 5 — shared cleanup rule metadata and defaults.+// Mirrors the sidecar's RULE_ORDER (cleanup.py). Single source of truth for the UI.++export interface CleanupRuleDef {+ key: string;+ label: string;+ hint: string;+ /** PDF-oriented rules default-on only when the source is a PDF (context-aware). */+ pdfOnly: boolean;+}++export const CLEANUP_RULES: CleanupRuleDef[] = [+ { key: 'strip_cid', label: 'Remove (cid:N) markers', hint: 'Strips PDF glyph artifacts like (cid:12)', pdfOnly: true },+ { key: 'dedup_lines', label: 'Remove duplicate lines', hint: 'Drops repeated headers, footers, and page numbers', pdfOnly: true },+ { key: 'repair_lines', label: 'Rejoin broken lines', hint: 'Reconnects sentences split across lines or columns', pdfOnly: true },+ { key: 'collapse_blanks', label: 'Collapse blank runs', hint: 'Normalises long runs of empty lines', pdfOnly: false },+ { key: 'detect_headings', label: 'Detect headings', hint: 'Promotes clear heading lines to Markdown (conservative)', pdfOnly: false },+];++/**+ * Default rule set when cleanup is switched on. Per the locked decision, "cleanup on"+ * means all applicable rules on — but PDF-oriented rules only default-on for PDFs.+ */+export function defaultRules(sourceFormat: string): Record<string, boolean> {+ const isPdf = (sourceFormat || '').toLowerCase().includes('pdf');+ const out: Record<string, boolean> = {};+ for (const r of CLEANUP_RULES) out[r.key] = r.pdfOnly ? isPdf : true;+ return out;+}++export interface CleanupRuleSummary {+ key: string;+ label: string;+ applied: boolean;+ changes: number;+}++export interface CleanupSummary {+ rules: CleanupRuleSummary[];+ char_delta: number;+ line_delta: number;+}++export interface CleanupResult {+ markdown: string;+ summary: CleanupSummary;+ llm_applied: boolean;+ llm_notice: string | null;+}++/** Total changes across applied rules — used for headline counts. */+export function totalChanges(summary: CleanupSummary | null): number {+ if (!summary) return 0;+ return summary.rules.filter(r => r.applied).reduce((n, r) => n + r.changes, 0);+}++// ── Cleanup method + shared UI state ────────────────────────────────────────++export type CleanupMethod = 'none' | 'rules' | 'ai';+export type ViewMode = 'preview' | 'source' | 'split' | 'changes';++/**+ * Single-file cleanup state. Lifted to the page so it survives view changes.+ * Rule-based and AI results are cached separately so switching methods (or+ * toggling the diff) never silently re-runs a slow/costly AI pass.+ */+export interface CleanupUIState {+ method: CleanupMethod;+ rules: Record<string, boolean>;+ rulesCleaned: string | null;+ rulesSummary: CleanupSummary | null;+ aiCleaned: string | null;+ aiApplied: boolean;+ aiNotice: string | null;+ showAdvanced: boolean;+ /** How the content area renders the active markdown. */+ viewMode: ViewMode;+ /** True while a cleanup pass is in flight. Lifted here so it survives view+ * changes (e.g. opening Diagnostics mid-run and returning). */+ running: boolean;+}++export function freshCleanup(sourceFormat: string): CleanupUIState {+ return {+ method: 'none',+ rules: defaultRules(sourceFormat),+ rulesCleaned: null,+ rulesSummary: null,+ aiCleaned: null,+ aiApplied: false,+ aiNotice: null,+ showAdvanced: false,+ viewMode: 'preview',+ running: false,+ };+}diff --git a/app/src/lib/diff.ts b/app/src/lib/diff.tsnew file mode 100644index 0000000..309bc24--- /dev/null+++ b/app/src/lib/diff.ts@@ -0,0 +1,85 @@+// Stage 5 — lightweight line diff for the single-file before/after preview.+// Dependency-free LCS. Guards against pathological sizes so a 500-page PDF stays+// responsive: above the cap it returns a cheap multiset summary instead of a full diff.++export type DiffRow = { type: 'same' | 'add' | 'del'; text: string };++export type DiffResult =+ | { kind: 'full'; rows: DiffRow[]; added: number; removed: number }+ | { kind: 'summary'; added: number; removed: number; note: string };++const DEFAULT_CAP = 2000;++export function lineDiff(a: string, b: string, cap = DEFAULT_CAP): DiffResult {+ const aLines = a.split('\n');+ const bLines = b.split('\n');++ if (aLines.length > cap || bLines.length > cap) {+ return summaryDiff(aLines, bLines);+ }++ const n = aLines.length;+ const m = bLines.length;++ // LCS length table.+ const dp: Uint32Array[] = Array.from({ length: n + 1 }, () => new Uint32Array(m + 1));+ for (let i = n - 1; i >= 0; i--) {+ const row = dp[i];+ const next = dp[i + 1];+ for (let j = m - 1; j >= 0; j--) {+ row[j] = aLines[i] === bLines[j]+ ? next[j + 1] + 1+ : Math.max(next[j], row[j + 1]);+ }+ }++ // Backtrack into rows.+ const rows: DiffRow[] = [];+ let added = 0;+ let removed = 0;+ let i = 0;+ let j = 0;+ while (i < n && j < m) {+ if (aLines[i] === bLines[j]) {+ rows.push({ type: 'same', text: aLines[i] });+ i++; j++;+ } else if (dp[i + 1][j] >= dp[i][j + 1]) {+ rows.push({ type: 'del', text: aLines[i] });+ removed++; i++;+ } else {+ rows.push({ type: 'add', text: bLines[j] });+ added++; j++;+ }+ }+ while (i < n) { rows.push({ type: 'del', text: aLines[i] }); removed++; i++; }+ while (j < m) { rows.push({ type: 'add', text: bLines[j] }); added++; j++; }++ return { kind: 'full', rows, added, removed };+}++// Cheap approximation for very large inputs — multiset difference of lines.+function summaryDiff(aLines: string[], bLines: string[]): DiffResult {+ const count = (lines: string[]) => {+ const map = new Map<string, number>();+ for (const l of lines) map.set(l, (map.get(l) ?? 0) + 1);+ return map;+ };+ const ca = count(aLines);+ const cb = count(bLines);+ let added = 0;+ let removed = 0;+ for (const [line, nb] of cb) {+ const na = ca.get(line) ?? 0;+ if (nb > na) added += nb - na;+ }+ for (const [line, na] of ca) {+ const nb = cb.get(line) ?? 0;+ if (na > nb) removed += na - nb;+ }+ return {+ kind: 'summary',+ added,+ removed,+ note: 'Document is large — showing a change summary instead of a full line diff.',+ };+}diff --git a/app/src/lib/formats.ts b/app/src/lib/formats.tsnew file mode 100644index 0000000..fbc12e7--- /dev/null+++ b/app/src/lib/formats.ts@@ -0,0 +1,28 @@+// Supported input formats — single source of truth for the FRONTEND.+// Keep in sync with the backend lists: `capabilities.py` (sidecar routing) and+// `lib.rs` (CORE_EXTS / OCR_EXTS / AUDIO_EXTS). When you add a format, update all three.++/** Core document formats — always available (provisioned at Stage 0). */+export const CORE_EXTS = [+ 'pdf', 'docx', 'pptx', 'xlsx', 'xls', 'html', 'htm', 'csv', 'json', 'xml', 'epub',+];++/** Image formats — converted via the optional OCR engine. */+export const IMAGE_EXTS = ['jpg', 'jpeg', 'png', 'gif', 'webp', 'tiff', 'tif', 'bmp'];++/** Audio formats — converted via the optional transcription engine. */+export const AUDIO_EXTS = ['mp3', 'wav', 'm4a', 'ogg', 'flac', 'aac'];++/** Everything the app accepts as input. */+export const SUPPORTED_EXTS = [...CORE_EXTS, ...IMAGE_EXTS, ...AUDIO_EXTS];++export function isImageExt(ext: string): boolean {+ return IMAGE_EXTS.includes(ext.toLowerCase());+}+export function isAudioExt(ext: string): boolean {+ return AUDIO_EXTS.includes(ext.toLowerCase());+}+/** Formats handled by a heavy optional engine (OCR / transcription) — slower, model loads on first use. */+export function isHeavyExt(ext: string): boolean {+ return isImageExt(ext) || isAudioExt(ext);+}diff --git a/app/src/lib/mdpreview.ts b/app/src/lib/mdpreview.tsnew file mode 100644index 0000000..d01f37b--- /dev/null+++ b/app/src/lib/mdpreview.ts@@ -0,0 +1,27 @@+// Stage 5 — Markdown → safe HTML for the Preview tab.+// marked parses GFM (incl. tables); DOMPurify strips any scripts/handlers that a+// converted document might carry. DOMPurify needs `window`, so callers must only+// invoke this in the browser (it's only ever used at runtime in the webview).+import { marked } from 'marked';+import DOMPurify from 'dompurify';++marked.setOptions({ gfm: true, breaks: false });++// Defense-in-depth: force rel="noopener noreferrer" on any target="_blank" link so a+// link inside the user's own converted preview can't reach back via window.opener+// (tab-nabbing). Modern Chromium/WebView2 already defaults to this, but the hook also+// covers older engines and costs nothing. Registered once at module load; guarded for+// SSR, where DOMPurify is a stub without addHook.+if (typeof DOMPurify.addHook === 'function') {+ DOMPurify.addHook('afterSanitizeAttributes', (node) => {+ if (node.nodeName === 'A' && node.getAttribute('target') === '_blank') {+ node.setAttribute('rel', 'noopener noreferrer');+ }+ });+}++export function renderMarkdown(md: string): string {+ const html = marked.parse(md ?? '', { async: false }) as string;+ if (typeof DOMPurify.sanitize !== 'function') return ''; // SSR guard+ return DOMPurify.sanitize(html, { ADD_ATTR: ['target'] });+}diff --git a/app/src/lib/naming.ts b/app/src/lib/naming.tsnew file mode 100644index 0000000..f7b3044--- /dev/null+++ b/app/src/lib/naming.ts@@ -0,0 +1,73 @@+// Stage 7 — output filename builder. Mirrors the Rust `build_output_name`+// (lib.rs) so the live preview in the UI matches what a batch actually writes.+// Tokens: {stem} {ext} {date}. The ".md" extension is always appended.++export type NamingCase = 'keep' | 'lower' | 'slug';+export type OutputRule = 'next_to_source' | 'fixed_folder' | 'mirror_tree';++/** Strip directory + extension from a path (handles \ and /). */+export function fileStem(path: string): string {+ const base = path.split(/[\\/]/).pop() ?? path;+ const dot = base.lastIndexOf('.');+ const stem = dot > 0 ? base.slice(0, dot) : base;+ return stem || 'output';+}++/** Lowercase extension without the dot, or '' if none. */+export function fileExt(path: string): string {+ const base = path.split(/[\\/]/).pop() ?? path;+ const dot = base.lastIndexOf('.');+ return dot > 0 ? base.slice(dot + 1).toLowerCase() : '';+}++function slugify(s: string): string {+ return s+ .toLowerCase()+ .replace(/[^a-z0-9]+/g, '-')+ .replace(/^-+|-+$/g, '');+}++function sanitize(s: string): string {+ return s+ // eslint-disable-next-line no-control-regex+ .replace(/[\\/:*?"<>|\x00-\x1f]/g, '-')+ .trim()+ .replace(/\.+$/, '')+ .trim();+}++function todayDate(): string {+ // UTC to match the Rust `today_date_string()` (civil-from-days, UTC). Without this+ // the live preview filename can differ from the actual output by one day near midnight.+ const d = new Date();+ const m = String(d.getUTCMonth() + 1).padStart(2, '0');+ const day = String(d.getUTCDate()).padStart(2, '0');+ return `${d.getUTCFullYear()}-${m}-${day}`;+}++/** Base filename (no extension) from a source path + template + case. */+export function buildOutputName(path: string, template: string, naming: NamingCase): string {+ const tpl = (template ?? '').trim() || '{stem}';+ let name = tpl+ .replaceAll('{stem}', fileStem(path))+ .replaceAll('{ext}', fileExt(path))+ .replaceAll('{date}', todayDate());+ if (naming === 'lower') name = name.toLowerCase();+ else if (naming === 'slug') name = slugify(name);+ const cleaned = sanitize(name);+ return cleaned || 'output';+}++/** Full output filename (with .md) for previews and the single-file save default. */+export function buildOutputFilename(path: string, template: string, naming: NamingCase): string {+ return `${buildOutputName(path, template, naming)}.md`;+}++/** Human label for an output rule. */+export function ruleLabel(rule: OutputRule): string {+ switch (rule) {+ case 'fixed_folder': return 'A chosen folder';+ case 'mirror_tree': return 'Mirror source folders';+ default: return 'Next to each source file';+ }+}diff --git a/app/src/lib/tokens.css b/app/src/lib/tokens.cssnew file mode 100644index 0000000..321a431--- /dev/null+++ b/app/src/lib/tokens.css@@ -0,0 +1,122 @@+/* Design tokens — single source of truth. All components use var(--…) exclusively. */++/* ── Palette ──────────────────────────────────────────────────────────────── */+:root {+ /* MDFlux brand palette — cool dark surfaces + blue mark accent. */+ --canvas: #0a0a0b; /* window background (brand Page) */+ --surface-1: #141417; /* cards, panels */+ --surface-2: #1f1f25; /* elevated: hover, result bg, secondary buttons */+ --surface-3: #2c2c33; /* button hover, active surfaces */+ --border: #2a2a31; /* all borders — readable on near-black */+ --border-strong: #3a3a44; /* button borders, emphasis edges */+ --text-primary: #fafafa; /* headings, labels (brand Text) */+ --text-secondary: #cfccd6; /* metadata, secondary — high enough contrast to read */+ --text-muted: #9a96a4; /* hints, placeholders (brand Muted) */+ --accent: #3b82f6; /* brand Primary — the blue mark, the one bold choice */+ --accent-hover: #6aa1f5; /* brand Light — accent button hover */+ --accent-edge: #2563eb; /* brand Deep — darker edge under accent fills */+ --accent-dim: color-mix(in srgb, var(--accent) 15%, transparent);+ --green: #3fb950; /* brand Success */+ --red: #ff5b5b; /* error */+ --amber: #ffb13d; /* partial / warning */++ /* ── Typography ───────────────────────────────────────────────────────── */+ --font-ui: 'Inter', 'Inter Variable', system-ui, sans-serif;+ --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;++ /* ── Spacing scale ────────────────────────────────────────────────────── */+ --sp-1: 4px;+ --sp-2: 8px;+ --sp-3: 12px;+ --sp-4: 16px;+ --sp-5: 20px;+ --sp-6: 24px;+ --sp-8: 32px;+ --sp-12: 48px;++ /* ── Radii ────────────────────────────────────────────────────────────── */+ --radius-sm: 6px;+ --radius: 10px;+ --radius-lg: 16px;++ /* ── Transitions ──────────────────────────────────────────────────────── */+ --transition-fast: 120ms ease;+ --transition: 200ms ease;+}++/* ── Base reset ───────────────────────────────────────────────────────────── */+*, *::before, *::after {+ box-sizing: border-box;+ margin: 0;+ padding: 0;+}++body {+ background: var(--canvas);+ color: var(--text-primary);+ font-family: var(--font-ui);+ font-size: 14px;+ line-height: 1.5;+ -webkit-font-smoothing: antialiased;+ user-select: none;+}++/* ── Focus ring ───────────────────────────────────────────────────────────── */+:focus-visible {+ outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);+ outline-offset: 3px;+ border-radius: var(--radius-sm);+}++/* ── Scrollbar ────────────────────────────────────────────────────────────── */+::-webkit-scrollbar { width: 6px; height: 6px; }+::-webkit-scrollbar-track { background: transparent; }+::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }+::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }++/* ── Button system (canonical, self-contained) ────────────────────────────────+ Shared so components don't each redefine the same recipe. Global (unscoped) so any+ component can use the class names directly. Each is self-contained (layout + colour)+ so markup needs only the one class, e.g. <button class="btn-primary">. */+.btn-primary, .btn-secondary, .btn-tertiary, .btn-danger, .btn-accent-soft {+ display: inline-flex; align-items: center; justify-content: center; gap: 6px;+ height: 34px; padding: 0 15px;+ font-size: 13px; font-weight: 600; font-family: var(--font-ui);+ border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;+ white-space: nowrap;+ transition: background var(--transition-fast), color var(--transition-fast),+ border-color var(--transition-fast), transform var(--transition-fast);+}+.btn-primary > svg, .btn-secondary > svg, .btn-danger > svg, .btn-accent-soft > svg { flex-shrink: 0; }+.btn-primary:active, .btn-secondary:active, .btn-tertiary:active,+.btn-danger:active, .btn-accent-soft:active { transform: translateY(1px); }+.btn-primary:disabled, .btn-secondary:disabled, .btn-tertiary:disabled,+.btn-danger:disabled, .btn-accent-soft:disabled { opacity: 0.45; cursor: default; }++.btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; }++.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent-edge); }+.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }++.btn-secondary { background: var(--surface-2); color: var(--text-primary); border-color: var(--border-strong); }+.btn-secondary:hover:not(:disabled) { background: var(--surface-3); border-color: #565660; }++.btn-tertiary { background: transparent; color: var(--text-secondary); }+.btn-tertiary:hover:not(:disabled) { background: var(--surface-2); color: var(--text-primary); }++.btn-danger { background: transparent; color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); }+.btn-danger:hover:not(:disabled) { background: var(--red); border-color: var(--red); color: #fff; }++.btn-accent-soft { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }+.btn-accent-soft:hover:not(:disabled) { background: var(--accent); color: #fff; border-color: var(--accent); }++/* ── Segmented control (canonical) ───────────────────────────────────────────── */+.seg { display: inline-flex; background: var(--surface-1); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 3px; gap: 3px; }+.seg-btn {+ padding: 4px 13px; font-size: 12px; font-weight: 600; font-family: var(--font-ui);+ border: none; border-radius: 4px; background: transparent; color: var(--text-secondary);+ cursor: pointer; transition: background var(--transition-fast), color var(--transition-fast);+}+.seg-btn:hover:not(:disabled):not(.active) { color: var(--text-primary); background: var(--surface-2); }+.seg-btn.active { background: var(--accent); color: #fff; }+.seg-btn:disabled { opacity: 0.4; cursor: default; }diff --git a/app/src/routes/+layout.svelte b/app/src/routes/+layout.sveltenew file mode 100644index 0000000..b6b3a46--- /dev/null+++ b/app/src/routes/+layout.svelte@@ -0,0 +1,9 @@+<script lang="ts">+ import '@fontsource-variable/inter';+ import '@fontsource/jetbrains-mono/400.css';+ import '$lib/tokens.css';++ let { children } = $props();+</script>++{@render children()}diff --git a/app/src/routes/+layout.ts b/app/src/routes/+layout.tsnew file mode 100644index 0000000..9d24899--- /dev/null+++ b/app/src/routes/+layout.ts@@ -0,0 +1,5 @@+// Tauri doesn't have a Node.js server to do proper SSR+// so we use adapter-static with a fallback to index.html to put the site in SPA mode+// See: https://svelte.dev/docs/kit/single-page-apps+// See: https://v2.tauri.app/start/frontend/sveltekit/ for more info+export const ssr = false;diff --git a/app/src/routes/+page.svelte b/app/src/routes/+page.sveltenew file mode 100644index 0000000..2f29d6e--- /dev/null+++ b/app/src/routes/+page.svelte@@ -0,0 +1,960 @@+<script lang="ts">+ import { onMount } from 'svelte';+ import { fade } from 'svelte/transition';+ import { invoke } from '@tauri-apps/api/core';+ import { listen } from '@tauri-apps/api/event';+ import DropZone from '$lib/DropZone.svelte';+ import ConvertProgress from '$lib/ConvertProgress.svelte';+ import ResultView from '$lib/ResultView.svelte';+ import ModeSwitch from '$lib/ModeSwitch.svelte';+ import DiagnosticsView from '$lib/DiagnosticsView.svelte';+ import BatchQueueView from '$lib/BatchQueueView.svelte';+ import BatchSummaryView from '$lib/BatchSummaryView.svelte';+ import DocViewer from '$lib/DocViewer.svelte';+ import StagingView, { freshStaging } from '$lib/StagingView.svelte';+ import ProvisionView, { type ProvisionProgress } from '$lib/ProvisionView.svelte';+ import type { ConvertCleanup, StagingState, FileInfo } from '$lib/StagingView.svelte';+ import type { BatchItemState } from '$lib/BatchQueueView.svelte';+ import { freshCleanup } from '$lib/cleanup';+ import type { CleanupUIState } from '$lib/cleanup';+ import type { ConvertError } from '$lib/ErrorCard.svelte';+ import type { AppConfig } from '$lib/DiagnosticsView.svelte';+ import { fileStem } from '$lib/naming';++ // ── Types ──────────────────────────────────────────────────────────────────++ type Phase = 'checking' | 'provisioning' | 'health-checking' | 'ready' | 'error';+ type View = 'main' | 'diagnostics';+ type BatchPhase = 'idle' | 'running' | 'cancelling' | 'done' | 'cancelled';++ interface DownloadDetail { label: string; received: number; total?: number | null; speed: number; }+ interface ProgressPayload { step: string; message: string; pct: number; detail?: DownloadDetail | null; }+ interface ProvisionStatus { state: string; }+ interface HealthReport {+ python_version: string;+ markitdown_version: string | null;+ extras: Record<string, boolean>;+ }+ interface ConvertResult {+ markdown: string;+ detectedFormat: string;+ converterPath: string;+ warnings: string[];+ }++ // ── State ──────────────────────────────────────────────────────────────────++ let phase = $state<Phase>('checking');+ let view = $state<View>('main');+ let progress = $state<ProvisionProgress>({ step: '', message: 'Starting…', pct: 0, detail: null });+ let health = $state<HealthReport | null>(null);+ let errorMsg = $state('');+ let errorBtn = $state('Retry');+ let result = $state<ConvertResult | null>(null);+ let config = $state<AppConfig | null>(null);+ let resultSourcePath = $state<string>('');++ // Top-level error banner — surfaces errors in the current view (e.g. open-folder+ // failures from the batch summary, where dropError isn't rendered).+ let errorBanner = $state<string | null>(null);+ let errorBannerTimer: ReturnType<typeof setTimeout>;+ function showBanner(msg: string) {+ clearTimeout(errorBannerTimer);+ errorBanner = msg;+ errorBannerTimer = setTimeout(() => (errorBanner = null), 6000);+ }++ // Single-file cleanup state — lifted here so it survives view changes+ // (opening Diagnostics and returning must not reset the user's cleanup).+ let cleanupState = $state<CleanupUIState>(freshCleanup(''));+ // Source file's base name (no extension) — used as the default save name.+ let resultStem = $state('output');++ let diagHighlight = $state<string | null>(null);+ let converting = $state(false);+ let convStage = $state('preflight');+ let dropError = $state<ConvertError | null>(null);+ let cancelledFlash = $state(false);+ let cancelFlashTimer: ReturnType<typeof setTimeout>;++ // Staging + batch state+ let staged = $state<FileInfo[]>([]); // files loaded, not yet converted+ let stagingState = $state<StagingState>(freshStaging());+ let batchItems = $state<BatchItemState[] | null>(null);+ // Items carried over from a previous run on retry (the done/cancelled ones we keep).+ // Held in state so the batch:done listener can re-merge them instead of dropping them.+ let batchKept = $state<BatchItemState[]>([]);+ let batchPhase = $state<BatchPhase>('idle');+ let batchOutputFolder = $state<string | null>(null);+ let batchOutputRule = $state<string>('next_to_source');+ let batchCleanup = $state<ConvertCleanup | null>(null);+ let batchCleanupApplied = $state(false);+ let batchCleanupChanges = $state(0);+ let viewing = $state<{ name: string; markdown: string } | null>(null);++ const EXTRA_LABELS: Record<string, string> = {+ pdf: 'PDF',+ docx: 'Word documents',+ pptx: 'PowerPoint',+ xlsx: 'Excel (.xlsx)',+ xls: 'Excel (.xls)',+ epub: 'EPUB',+ };++ // ── Lifecycle ──────────────────────────────────────────────────────────────++ onMount(() => {+ const unlisteners: Array<() => void> = [];+ let dead = false;++ listen<ProgressPayload>('provision:progress', ({ payload }) => {+ progress = {+ step: payload.step,+ message: payload.message,+ pct: payload.pct,+ detail: payload.detail ?? null,+ };+ }).then(fn => { if (dead) fn(); else unlisteners.push(fn); });++ // Single-file conversion progress+ listen<{ type: string; stage: string; frac: number | null }>(+ 'convert:progress',+ ({ payload }) => {+ if (payload.type === 'progress') convStage = payload.stage;+ },+ ).then(fn => { if (dead) fn(); else unlisteners.push(fn); });++ // Batch: per-file status changes+ listen<{+ id: string;+ status: string;+ frac: number | null;+ error: ConvertError | null;+ output_path: string | null;+ warnings?: string[];+ }>('batch:file-status', ({ payload }) => {+ batchItems = batchItems?.map(item =>+ item.id !== payload.id ? item : {+ ...item,+ status: payload.status,+ frac: payload.frac ?? (payload.status === 'done' ? 1 : item.frac),+ error: payload.error ?? item.error,+ output_path: payload.output_path ?? item.output_path,+ warnings: payload.warnings ?? item.warnings,+ }+ ) ?? null;+ }).then(fn => { if (dead) fn(); else unlisteners.push(fn); });++ // Batch: all workers finished+ listen<{+ done: number;+ failed: number;+ cancelled: number;+ items: Array<Omit<BatchItemState, 'frac'>>;+ cleanup_applied: boolean;+ cleanup_changes: number;+ }>('batch:done', ({ payload }) => {+ const incoming = payload.items.map(i => ({+ ...i,+ frac: i.status === 'done' ? 1 : null,+ }));+ const incomingIds = new Set(incoming.map(i => i.id));+ // Keep prior-run items (e.g. already-converted files on a retry) that this+ // run didn't touch, so they don't vanish from the summary.+ batchItems = [...batchKept.filter(k => !incomingIds.has(k.id)), ...incoming];+ batchCleanupApplied = payload.cleanup_applied;+ batchCleanupChanges = payload.cleanup_changes;+ const allCancelled = payload.done + payload.failed === 0 && payload.cancelled > 0;+ batchPhase = allCancelled ? 'cancelled' : 'done';+ // Stage 7: optionally reveal the output folder once files have landed.+ if (config?.open_after_convert && payload.done > 0) openOutputFolder();+ }).then(fn => { if (dead) fn(); else unlisteners.push(fn); });++ boot(false);++ return () => { dead = true; unlisteners.forEach(fn => fn()); };+ });++ // ── Boot / provision ───────────────────────────────────────────────────────++ async function boot(force: boolean) {+ try {+ phase = 'checking';+ const status = await invoke<ProvisionStatus>('get_provision_status');+ if (status.state === 'ready' && !force) {+ await doHealthCheck();+ } else {+ await doProvision(force);+ }+ } catch (e) {+ showError(String(e), 'Retry');+ }+ }++ async function doProvision(force: boolean) {+ phase = 'provisioning';+ progress = { step: '', message: 'Preparing…', pct: 0, detail: null };+ try {+ await invoke('start_provision', { force });+ await doHealthCheck();+ } catch (e) {+ showError(String(e), 'Retry');+ }+ }++ async function doHealthCheck() {+ phase = 'health-checking';+ try {+ health = await invoke<HealthReport>('run_health_check');+ config = await invoke<AppConfig>('get_config');+ // Seed staging defaults from saved output settings — but only if the user+ // hasn't already staged files and chosen per-run overrides. A Repair from+ // the health footer must not silently revert "Mirror folders" + "Rule-based".+ if (staged.length === 0) {+ stagingState = freshStaging({ rule: config.output_rule, folder: config.output_folder || null });+ }+ batchOutputRule = config.output_rule;+ phase = 'ready';+ } catch (e) {+ showError(String(e), 'Restart');+ }+ }++ function showError(msg: string, btn: string) {+ errorMsg = msg;+ errorBtn = btn;+ phase = 'error';+ }++ function allGreen(): boolean {+ if (!health || !health.markitdown_version) return false;+ return Object.values(health.extras).every(Boolean);+ }++ // ── Config management ──────────────────────────────────────────────────────++ async function updateConfig(newConfig: AppConfig) {+ const prev = config;+ config = newConfig;+ try {+ await invoke('set_config', { config: newConfig });+ } catch (e) {+ // Roll back so the UI matches the disk — without this the user's settings+ // silently revert on next launch while appearing to be saved now.+ config = prev;+ showBanner(`Could not save setting: ${e}`);+ }+ }++ // First-run cleanup discovery — persist once the user has seen the highlight.+ async function markCleanupSeen() {+ if (!config || config.cleanup_seen) return;+ await updateConfig({ ...config, cleanup_seen: true });+ }++ // ── Diagnostics navigation ─────────────────────────────────────────────────++ function openDiagnostics(key?: string) {+ diagHighlight = key ?? null;+ view = 'diagnostics';+ }++ function closeDiagnostics() {+ view = 'main';+ diagHighlight = null;+ }++ // ── Single-file conversion ─────────────────────────────────────────────────++ async function startConversion(path: string) {+ result = null;+ dropError = null;+ converting = true;+ convStage = 'preflight';+ resultSourcePath = path;++ try {+ const resp = await invoke<{+ ok: boolean;+ result?: { markdown: string; meta: { detected_format: string; converter_path: string; warnings: string[]; assets_folder?: string } };+ error?: ConvertError;+ }>('convert_file', { path });++ converting = false;+ convStage = 'preflight';++ if (resp.ok && resp.result) {+ result = {+ markdown: resp.result.markdown,+ detectedFormat: resp.result.meta.detected_format,+ converterPath: resp.result.meta.converter_path,+ warnings: resp.result.meta.warnings,+ };+ // Fresh cleanup state for the new file (PDF rules default-on for PDFs).+ cleanupState = freshCleanup(resp.result.meta.detected_format);+ resultStem = fileStem(path);+ } else if (resp.error?.code === 'CANCELLED') {+ clearTimeout(cancelFlashTimer);+ cancelledFlash = true;+ cancelFlashTimer = setTimeout(() => (cancelledFlash = false), 2000);+ } else {+ dropError = resp.error ?? {+ code: 'UNKNOWN',+ title: 'Unknown error',+ detail: 'No details available.',+ suggested_action: 'Try again.',+ };+ }+ } catch (e) {+ converting = false;+ convStage = 'preflight';+ dropError = {+ code: 'INTERNAL_ERROR',+ title: 'Unexpected error',+ detail: String(e),+ suggested_action: 'Restart the app.',+ };+ }+ }++ async function cancelConversion() {+ try {+ await invoke('cancel_conversion');+ } catch {+ // ignore — if sidecar is gone, convert_file will error and clean up+ }+ }++ function onClearResult() {+ result = null;+ dropError = null;+ }++ async function onOpenFile() {+ const path = await invoke<string | null>('pick_file');+ if (path) {+ result = null;+ dropError = null;+ await startConversion(path);+ }+ }++ // ── Staging (load files, convert on button) ─────────────────────────────────++ // Add raw dropped/picked paths to the staging list: expand folders, get+ // metadata, and dedupe by path. Files are NOT converted until the user clicks.+ async function addFiles(rawPaths: string[]) {+ if (rawPaths.length === 0) return;+ dropError = null;+ try {+ const expanded = await invoke<string[]>('list_files', { paths: rawPaths });+ // Nothing supported in the selection (e.g. the user picked an unsupported type+ // via the "All files" filter) — say so instead of silently doing nothing.+ if (expanded.length === 0) {+ dropError = {+ code: 'UNSUPPORTED_FORMAT',+ title: 'Unsupported file type',+ detail: 'None of the selected files are a supported format.',+ suggested_action: 'Choose PDF, DOCX, PPTX, XLSX, EPUB, HTML, CSV, JSON, XML, an image, or audio.',+ };+ return;+ }+ const have = new Set(staged.map(f => f.path));+ const fresh = expanded.filter(p => !have.has(p));+ if (fresh.length === 0) return; // all already staged — nothing to add+ const infos = await invoke<FileInfo[]>('stat_files', { paths: fresh });+ staged = [...staged, ...infos];+ } catch (e) {+ dropError = {+ code: 'INTERNAL_ERROR',+ title: 'Could not add files',+ detail: String(e),+ suggested_action: 'Try again.',+ };+ }+ }++ function removeStaged(path: string) {+ staged = staged.filter(f => f.path !== path);+ }++ function clearStaged() {+ staged = [];+ stagingState = freshStaging({ rule: config?.output_rule, folder: config?.output_folder || null });+ }++ // The single Convert button: one file → rich single-file view; many → batch.+ async function convertStaged(outputFolder: string | null, outputRule: string, cleanup: ConvertCleanup) {+ if (staged.length === 0) return;+ const paths = staged.map(f => f.path);+ if (paths.length === 1) {+ const only = paths[0];+ staged = [];+ await startConversion(only);+ } else {+ // Set batchItems synchronously from staged before clearing, so the UI+ // transitions directly from StagingView to BatchQueueView without a+ // one-frame DropZone flash (staged=[] + batchItems=null → empty state).+ const files = paths;+ batchItems = staged.map(f => ({+ id: '',+ path: f.path,+ filename: f.name,+ status: 'pending',+ frac: null,+ error: null,+ output_path: null,+ }));+ staged = [];+ await startBatch(files, outputFolder, outputRule, cleanup);+ }+ }++ // ── Batch conversion ───────────────────────────────────────────────────────++ // Seed batchItems from a freshly-started run WITHOUT clobbering any status the+ // run's events already applied. The backend starts emitting batch:file-status /+ // batch:done as soon as the run is spawned — for a fast-failing file these can+ // arrive before `invoke(...)` even resolves. So we merge by id: if an item is+ // already present (event-updated), keep it; otherwise take the fresh (pending) one.+ function seedBatchItems(newItems: BatchItemState[], kept: BatchItemState[]) {+ const current = new Map((batchItems ?? []).map(i => [i.id, i]));+ const seeded = newItems.map(ni => current.get(ni.id) ?? ni);+ const seededIds = new Set(seeded.map(i => i.id));+ batchItems = [...kept.filter(k => !seededIds.has(k.id)), ...seeded];+ }++ async function startBatch(files: string[], outputFolder: string | null, outputRule: string, cleanup: ConvertCleanup) {+ if (files.length === 0) return;+ batchOutputFolder = outputFolder;+ batchOutputRule = outputRule;+ batchCleanup = cleanup;+ batchCleanupApplied = false;+ batchCleanupChanges = 0;+ batchKept = []; // fresh batch — nothing carried over+ batchPhase = 'running';+ try {+ const res = await invoke<{ items: Array<Omit<BatchItemState, 'frac'>> }>(+ 'start_batch',+ { files, outputFolder, outputRule, cleanup, extractImages: config?.extract_images ?? true },+ );+ seedBatchItems(res.items.map(i => ({ ...i, frac: null })), []);+ } catch (e) {+ batchPhase = 'idle';+ dropError = {+ code: 'INTERNAL_ERROR',+ title: 'Could not start batch',+ detail: String(e),+ suggested_action: 'Restart the app.',+ };+ }+ }++ async function cancelBatch() {+ batchPhase = 'cancelling';+ try {+ await invoke('cancel_batch');+ } catch {+ // If cancel_batch rejects and no batch:done event arrives, the UI would be+ // stuck at 'cancelling' forever. Force-done after 10s as a self-healing fallback.+ setTimeout(() => {+ if (batchPhase === 'cancelling') {+ batchPhase = 'done';+ showBanner('Cancel did not complete — showing the batch summary.');+ }+ }, 10_000);+ }+ }++ async function retryFailed() {+ const failedPaths = batchItems+ ?.filter(i => i.status === 'failed')+ .map(i => i.path) ?? [];+ if (failedPaths.length === 0) return;++ // Keep done/cancelled items; replace failed items with fresh pending ones.+ const kept = (batchItems ?? []).filter(i => i.status !== 'failed');+ batchKept = kept; // so batch:done re-merges them instead of dropping them++ batchPhase = 'running';+ try {+ const res = await invoke<{ items: Array<Omit<BatchItemState, 'frac'>> }>(+ 'retry_failed',+ { files: failedPaths, outputFolder: batchOutputFolder, outputRule: batchOutputRule, cleanup: batchCleanup, extractImages: config?.extract_images ?? true },+ );+ seedBatchItems(res.items.map(i => ({ ...i, frac: null })), kept);+ } catch (e) {+ batchPhase = 'done';+ showBanner(`Could not start the retry: ${e}. The original failures are still listed.`);+ }+ }++ function closeBatch() {+ batchItems = null;+ batchKept = [];+ batchPhase = 'idle';+ batchOutputFolder = null;+ batchCleanup = null;+ batchCleanupApplied = false;+ batchCleanupChanges = 0;+ viewing = null;+ }++ // Reveal the batch output in the OS file manager (from the first written file).+ async function openOutputFolder() {+ const done = batchItems?.find(i => i.status === 'done' && i.output_path);+ if (!done?.output_path) return;+ try { await invoke('open_folder', { path: done.output_path }); }+ catch (e) { showBanner(`Could not open the folder: ${e}`); }+ }++ // Open a finished batch item's output .md in the read-only viewer.+ async function openBatchItem(item: BatchItemState) {+ if (item.status !== 'done' || !item.output_path) return;+ try {+ const md = await invoke<string>('read_text_file', { path: item.output_path });+ viewing = { name: item.filename, markdown: md };+ } catch (e) {+ showBanner(`Could not open file: ${e}. The output may have been moved or deleted.`);+ }+ }+</script>++<!-- ── Markup ─────────────────────────────────────────────────────────────── -->++<div class="shell">++ <!-- Header -->+ <header>+ <span class="wordmark">MDFlux</span>+ {#if phase === 'ready'}+ <span class="badge" class:green={allGreen()} class:amber={!allGreen()}>+ {allGreen() ? 'Ready' : 'Partial'}+ </span>+ {/if}+ <div class="header-right">+ {#if phase === 'ready' && config}+ <ModeSwitch mode={config.llm_mode} onModeChange={(m) => updateConfig({ ...config!, llm_mode: m })} />+ <button+ class="diag-btn"+ class:diag-active={view === 'diagnostics'}+ onclick={() => view === 'diagnostics' ? closeDiagnostics() : openDiagnostics()}+ aria-label="Diagnostics"+ title="Diagnostics"+ aria-pressed={view === 'diagnostics'}+ >+ <svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">+ <circle cx="7.5" cy="7.5" r="1.5" fill="currentColor"/>+ <circle cx="2.5" cy="7.5" r="1.5" fill="currentColor"/>+ <circle cx="12.5" cy="7.5" r="1.5" fill="currentColor"/>+ <path d="M7.5 2v2M7.5 11v2M2.5 2v2M2.5 11v2M12.5 2v2M12.5 11v2" stroke="currentColor" stroke-width="1.25" stroke-linecap="round"/>+ </svg>+ </button>+ {/if}+ </div>+ </header>++ <!-- Main content -->+ <main>++ {#if errorBanner}+ <div class="error-banner" role="alert" transition:fade={{ duration: 200 }}>+ {errorBanner}+ <button class="banner-close" onclick={() => (errorBanner = null)} aria-label="Dismiss">×</button>+ </div>+ {/if}++ {#if phase === 'checking' || phase === 'health-checking'}+ <div class="centered">+ <div class="spinner" aria-label="Loading"></div>+ <p class="hint">Checking environment…</p>+ </div>++ {:else if phase === 'provisioning'}+ <ProvisionView {progress} />++ {:else if phase === 'ready' && view === 'diagnostics' && config}+ <DiagnosticsView+ onBack={closeDiagnostics}+ highlight={diagHighlight}+ {config}+ onConfigChange={updateConfig}+ />++ {:else if phase === 'ready' && viewing}+ <DocViewer+ name={viewing.name}+ markdown={viewing.markdown}+ onBack={() => (viewing = null)}+ />++ {:else if phase === 'ready' && batchItems !== null && (batchPhase === 'done' || batchPhase === 'cancelled')}+ <BatchSummaryView+ items={batchItems}+ onRetry={retryFailed}+ onClose={closeBatch}+ onOpen={openBatchItem}+ onOpenFolder={openOutputFolder}+ cleanupApplied={batchCleanupApplied}+ cleanupChanges={batchCleanupChanges}+ />++ {:else if phase === 'ready' && batchItems !== null}+ <BatchQueueView+ items={batchItems}+ phase={batchPhase}+ onCancel={cancelBatch}+ onOpen={openBatchItem}+ />++ {:else if phase === 'ready' && result}+ <ResultView+ markdown={result.markdown}+ detectedFormat={result.detectedFormat}+ converterPath={result.converterPath}+ warnings={result.warnings}+ sourceStem={resultStem}+ sourcePath={resultSourcePath}+ extractImages={config?.extract_images ?? true}+ namingTemplate={config?.naming_template ?? '{stem}'}+ namingCase={config?.naming_case ?? 'keep'}+ onClear={onClearResult}+ {onOpenFile}+ llmMode={config?.llm_mode ?? 'off'}+ cleanupSeen={config?.cleanup_seen ?? true}+ onSeenCleanup={markCleanupSeen}+ cleanup={cleanupState}+ />++ {:else if phase === 'ready' && converting}+ <ConvertProgress stage={convStage} onCancel={cancelConversion} />++ {:else if phase === 'ready' && staged.length > 0}+ <StagingView+ files={staged}+ setup={stagingState}+ llmMode={config?.llm_mode ?? 'off'}+ cleanupSeen={config?.cleanup_seen ?? true}+ namingTemplate={config?.naming_template ?? '{stem}'}+ namingCase={config?.naming_case ?? 'keep'}+ onSeenCleanup={markCleanupSeen}+ onAddFiles={addFiles}+ onRemove={removeStaged}+ onClear={clearStaged}+ onConvert={convertStaged}+ onOpenDiagnostics={() => openDiagnostics()}+ />++ {:else if phase === 'ready'}+ {#if cancelledFlash}+ <p class="cancelled-notice" transition:fade={{ duration: 300 }}>Conversion cancelled</p>+ {/if}+ <DropZone+ onAdd={addFiles}+ error={dropError}+ onDismissError={() => (dropError = null)}+ onOpenDiagnostics={(key) => openDiagnostics(key)}+ />+++ {:else if phase === 'error'}+ <div class="error-wrap">+ <p class="error-msg">{errorMsg}</p>+ <button class="action-btn" onclick={() => boot(errorBtn === 'Retry')}>+ {errorBtn}+ </button>+ </div>++ {/if}++ </main>++ <!-- Health footer (hidden while in diagnostics, staging, or batch views) -->+ {#if phase === 'ready' && health && view === 'main' && batchItems === null && staged.length === 0 && !result && !converting}+ <details class="health-footer">+ <summary>+ <span>Dependency health</span>+ <span class="health-dots" aria-hidden="true">+ <span class="hdot hdot-green" title="Python {health.python_version}"></span>+ <span class="hdot" class:hdot-green={!!health.markitdown_version} class:hdot-red={!health.markitdown_version} title="MarkItDown {health.markitdown_version ?? 'missing'}"></span>+ {#each Object.entries(EXTRA_LABELS) as [key, label]}+ <span class="hdot" class:hdot-green={health.extras[key]} class:hdot-red={!health.extras[key]} title="{label}: {health.extras[key] ? 'ok' : 'missing'}"></span>+ {/each}+ </span>+ {#if !allGreen()}<span class="warn-badge">Issues found</span>{/if}+ </summary>+ <div class="health-grid">+ {@render HealthRow({ label: 'Python', value: health.python_version, ok: true })}+ {@render HealthRow({ label: 'MarkItDown', value: health.markitdown_version ?? 'not installed', ok: !!health.markitdown_version })}+ {#each Object.entries(EXTRA_LABELS) as [key, label]}+ {@render HealthRow({ label, value: health.extras[key] ? 'installed' : 'missing', ok: health.extras[key] ?? false })}+ {/each}+ {#if !allGreen()}+ <button class="repair-btn" onclick={() => boot(true)}>Repair</button>+ {/if}+ </div>+ </details>+ {/if}++</div>++<!-- HealthRow snippet -->+{#snippet HealthRow({ label, value, ok }: { label: string; value: string; ok: boolean })}+ <div class="health-row">+ <span class="dot" class:dot-green={ok} class:dot-red={!ok} aria-hidden="true"></span>+ <span class="row-label">{label}</span>+ <span class="row-value" class:muted-red={!ok}>{value}</span>+ </div>+{/snippet}++<!-- ── Styles ──────────────────────────────────────────────────────────────── -->+<style>+ .shell {+ display: flex;+ flex-direction: column;+ height: 100vh;+ padding: 0 var(--sp-8) var(--sp-6);+ }++ /* Header */+ header {+ display: flex;+ align-items: center;+ gap: var(--sp-3);+ padding: var(--sp-6) 0 var(--sp-4);+ border-bottom: 1px solid var(--border);+ margin-bottom: var(--sp-4);+ flex-shrink: 0;+ }+ .wordmark {+ font-size: 15px;+ font-weight: 700;+ letter-spacing: -0.02em;+ color: var(--text-primary);+ }+ .badge {+ font-size: 10px;+ font-weight: 600;+ padding: 2px 8px;+ border-radius: 999px;+ text-transform: uppercase;+ letter-spacing: 0.04em;+ }+ .badge.green { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }+ .badge.amber { background: color-mix(in srgb, var(--amber) 15%, transparent); color: var(--amber); }+ .header-right {+ margin-left: auto;+ display: flex;+ align-items: center;+ gap: var(--sp-4);+ }++ /* Diagnostics icon button */+ .diag-btn {+ background: var(--surface-2);+ border: 1px solid var(--border-strong);+ color: var(--text-secondary);+ cursor: pointer;+ width: 34px;+ height: 34px;+ border-radius: var(--radius-sm);+ display: flex;+ align-items: center;+ justify-content: center;+ transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);+ }+ .diag-btn:hover { color: var(--text-primary); background: var(--surface-3); border-color: #565660; }+ .diag-btn.diag-active { color: #fff; background: var(--accent); border-color: var(--accent-edge); }+ .diag-btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); }++ /* Main area */+ main {+ flex: 1;+ display: flex;+ flex-direction: column;+ min-height: 0;+ }++ /* Error banner — surfaces failures in the current view context */+ .error-banner {+ flex-shrink: 0;+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: var(--sp-3);+ padding: var(--sp-2) var(--sp-4);+ background: color-mix(in srgb, var(--red) 12%, transparent);+ border: 1px solid color-mix(in srgb, var(--red) 30%, transparent);+ border-radius: var(--radius-sm);+ font-size: 12px;+ color: var(--text-primary);+ margin-bottom: var(--sp-2);+ user-select: text;+ }+ .banner-close {+ background: none; border: none; color: var(--text-muted);+ font-size: 16px; cursor: pointer; padding: 0 var(--sp-1);+ line-height: 1; flex-shrink: 0;+ }+ .banner-close:hover { color: var(--text-primary); }++ /* Cancelled flash */+ .cancelled-notice {+ font-size: 12px;+ color: var(--text-muted);+ text-align: center;+ padding: var(--sp-2) 0;+ flex-shrink: 0;+ }++ /* Spinner */+ .centered {+ flex: 1;+ display: flex;+ flex-direction: column;+ align-items: center;+ justify-content: center;+ gap: var(--sp-4);+ }+ .spinner {+ width: 28px;+ height: 28px;+ border: 2px solid var(--border);+ border-top-color: var(--accent);+ border-radius: 50%;+ animation: spin 0.7s linear infinite;+ }+ @media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }+ @keyframes spin { to { transform: rotate(360deg); } }++ .hint { font-size: 12px; color: var(--text-muted); }++ /* Boot error */+ .error-wrap {+ flex: 1;+ display: flex;+ flex-direction: column;+ justify-content: center;+ gap: var(--sp-6);+ }+ .error-msg {+ font-size: 13px;+ line-height: 1.6;+ color: var(--text-primary);+ white-space: pre-wrap;+ background: var(--surface-1);+ border: 1px solid var(--border);+ border-radius: var(--radius);+ padding: var(--sp-4);+ user-select: text;+ }+ .action-btn {+ align-self: flex-start;+ padding: var(--sp-2) var(--sp-6);+ font-size: 13px;+ font-weight: 600;+ font-family: var(--font-ui);+ color: #fff;+ background: var(--accent);+ border: 1px solid var(--accent-edge);+ border-radius: var(--radius-sm);+ cursor: pointer;+ transition: background var(--transition-fast), transform var(--transition-fast);+ }+ .action-btn:hover { background: var(--accent-hover); }+ .action-btn:active { transform: translateY(1px); }++ /* Health footer */+ .health-footer {+ flex-shrink: 0;+ border-top: 1px solid var(--border);+ margin-top: var(--sp-4);+ padding-top: var(--sp-3);+ }+ .health-footer > summary {+ font-size: 11px;+ font-weight: 500;+ color: var(--text-muted);+ cursor: pointer;+ list-style: none;+ display: flex;+ align-items: center;+ gap: var(--sp-2);+ user-select: none;+ text-transform: uppercase;+ letter-spacing: 0.06em;+ }+ .health-footer > summary::-webkit-details-marker { display: none; }++ /* Per-dependency status dots in collapsed summary */+ .health-dots {+ display: flex;+ align-items: center;+ gap: 4px;+ margin-left: var(--sp-2);+ }+ .hdot {+ width: 6px;+ height: 6px;+ border-radius: 50%;+ background: var(--text-muted);+ flex-shrink: 0;+ }+ .hdot-green { background: var(--green); }+ .hdot-red { background: var(--red); }++ .warn-badge {+ font-size: 10px;+ font-weight: 500;+ color: var(--amber);+ background: color-mix(in srgb, var(--amber) 12%, transparent);+ padding: 1px 6px;+ border-radius: 99px;+ text-transform: none;+ letter-spacing: 0;+ }+ .health-grid {+ display: flex;+ flex-direction: column;+ gap: 0;+ margin-top: var(--sp-3);+ background: var(--surface-1);+ border: 1px solid var(--border);+ border-radius: var(--radius-sm);+ overflow: hidden;+ }+ .health-row {+ display: flex;+ align-items: center;+ gap: var(--sp-2);+ padding: var(--sp-2) var(--sp-3);+ border-bottom: 1px solid var(--border);+ }+ .health-row:last-child { border-bottom: none; }+ .dot {+ width: 6px;+ height: 6px;+ border-radius: 50%;+ flex-shrink: 0;+ }+ .dot-green { background: var(--green); }+ .dot-red { background: var(--red); }+ .row-label { flex: 1; font-size: 12px; color: var(--text-secondary); }+ .row-value { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }+ .row-value.muted-red { color: var(--red); }+ .repair-btn {+ align-self: flex-start;+ margin: var(--sp-3);+ padding: 7px var(--sp-4);+ font-size: 12.5px;+ font-weight: 600;+ font-family: var(--font-ui);+ color: #fff;+ background: var(--accent);+ border: 1px solid var(--accent-edge);+ border-radius: var(--radius-sm);+ cursor: pointer;+ transition: background var(--transition-fast);+ }+ .repair-btn:hover { background: var(--accent-hover); }+</style>diff --git a/app/static/favicon.png b/app/static/favicon.pngnew file mode 100644index 0000000..35fe517Binary files /dev/null and b/app/static/favicon.png differdiff --git a/app/svelte.config.js b/app/svelte.config.jsnew file mode 100644index 0000000..a7830ea--- /dev/null+++ b/app/svelte.config.js@@ -0,0 +1,18 @@+// Tauri doesn't have a Node.js server to do proper SSR+// so we use adapter-static with a fallback to index.html to put the site in SPA mode+// See: https://svelte.dev/docs/kit/single-page-apps+// See: https://v2.tauri.app/start/frontend/sveltekit/ for more info+import adapter from "@sveltejs/adapter-static";+import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";++/** @type {import('@sveltejs/kit').Config} */+const config = {+ preprocess: vitePreprocess(),+ kit: {+ adapter: adapter({+ fallback: "index.html",+ }),+ },+};++export default config;diff --git a/app/tsconfig.json b/app/tsconfig.jsonnew file mode 100644index 0000000..f4d0a0e--- /dev/null+++ b/app/tsconfig.json@@ -0,0 +1,19 @@+{+ "extends": "./.svelte-kit/tsconfig.json",+ "compilerOptions": {+ "allowJs": true,+ "checkJs": true,+ "esModuleInterop": true,+ "forceConsistentCasingInFileNames": true,+ "resolveJsonModule": true,+ "skipLibCheck": true,+ "sourceMap": true,+ "strict": true,+ "moduleResolution": "bundler"+ }+ // Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias+ // except $lib which is handled by https://svelte.dev/docs/kit/configuration#files+ //+ // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes+ // from the referenced tsconfig.json - TypeScript does not merge them in+}diff --git a/app/vite.config.js b/app/vite.config.jsnew file mode 100644index 0000000..3ecfa0a--- /dev/null+++ b/app/vite.config.js@@ -0,0 +1,32 @@+import { defineConfig } from "vite";+import { sveltekit } from "@sveltejs/kit/vite";++// @ts-expect-error process is a nodejs global+const host = process.env.TAURI_DEV_HOST;++// https://vite.dev/config/+export default defineConfig(async () => ({+ plugins: [sveltekit()],++ // Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`+ //+ // 1. prevent Vite from obscuring rust errors+ clearScreen: false,+ // 2. tauri expects a fixed port, fail if that port is not available+ server: {+ port: 1420,+ strictPort: true,+ host: host || false,+ hmr: host+ ? {+ protocol: "ws",+ host,+ port: 1421,+ }+ : undefined,+ watch: {+ // 3. tell Vite to ignore watching `src-tauri`+ ignored: ["**/src-tauri/**"],+ },+ },+}));diff --git a/docs/media/converting-to-markdown.gif b/docs/media/converting-to-markdown.gifnew file mode 100644index 0000000..f4c3733Binary files /dev/null and b/docs/media/converting-to-markdown.gif differdiff --git a/docs/media/demo-hero.gif b/docs/media/demo-hero.gifnew file mode 100644index 0000000..f4c3733Binary files /dev/null and b/docs/media/demo-hero.gif differdiff --git a/docs/media/diagnostics.gif b/docs/media/diagnostics.gifnew file mode 100644index 0000000..a80f2acBinary files /dev/null and b/docs/media/diagnostics.gif differdiff --git a/docs/media/favicon.png b/docs/media/favicon.pngnew file mode 100644index 0000000..35fe517Binary files /dev/null and b/docs/media/favicon.png differdiff --git a/docs/media/fetching-files.gif b/docs/media/fetching-files.gifnew file mode 100644index 0000000..46b8811Binary files /dev/null and b/docs/media/fetching-files.gif differdiff --git a/docs/media/github-social-card-1280x640.png b/docs/media/github-social-card-1280x640.pngnew file mode 100644index 0000000..7b2bf3aBinary files /dev/null and b/docs/media/github-social-card-1280x640.png differdiff --git a/docs/media/logo/logo-256.png b/docs/media/logo/logo-256.pngnew file mode 100644index 0000000..68b71fdBinary files /dev/null and b/docs/media/logo/logo-256.png differdiff --git a/docs/media/poster-1-capability-1080x1350.png b/docs/media/poster-1-capability-1080x1350.pngnew file mode 100644index 0000000..ee23645Binary files /dev/null and b/docs/media/poster-1-capability-1080x1350.png differdiff --git a/docs/media/poster-2-vs-vision-1080x1350.png b/docs/media/poster-2-vs-vision-1080x1350.pngnew file mode 100644index 0000000..26c7458Binary files /dev/null and b/docs/media/poster-2-vs-vision-1080x1350.png differdiff --git a/docs/media/poster-3-vs-markitdown-1080x1350.png b/docs/media/poster-3-vs-markitdown-1080x1350.pngnew file mode 100644index 0000000..bad8139Binary files /dev/null and b/docs/media/poster-3-vs-markitdown-1080x1350.png differdiff --git a/docs/media/readme-hero-banner-1200x1263.png b/docs/media/readme-hero-banner-1200x1263.pngnew file mode 100644index 0000000..eafcff3Binary files /dev/null and b/docs/media/readme-hero-banner-1200x1263.png differdiff --git a/docs/media/screenshot-cleanup-modes.png b/docs/media/screenshot-cleanup-modes.pngnew file mode 100644index 0000000..76d9784Binary files /dev/null and b/docs/media/screenshot-cleanup-modes.png differdiff --git a/docs/media/screenshot-diagnostics.png b/docs/media/screenshot-diagnostics.pngnew file mode 100644index 0000000..e393c0fBinary files /dev/null and b/docs/media/screenshot-diagnostics.png differdiff --git a/docs/media/screenshot-setup.png b/docs/media/screenshot-setup.pngnew file mode 100644index 0000000..97a2458Binary files /dev/null and b/docs/media/screenshot-setup.png differdiff --git a/index.html b/index.htmlnew file mode 100644index 0000000..5df8af5--- /dev/null+++ b/index.html@@ -0,0 +1,777 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>MDFlux: turn any document into clean, AI-ready Markdown</title>+<meta name="description" content="MDFlux is a local-first desktop app that converts PDF, Office, EPUB, scans, and audio into clean, AI-ready Markdown. Reads documents other tools can't. No cloud, no account.">+<meta name="theme-color" content="#0a0a0b">+<link rel="icon" href="docs/media/favicon.png">+<link rel="canonical" href="https://ibrahimqureshae.github.io/mdflux/">++<meta property="og:type" content="website">+<meta property="og:title" content="MDFlux: clean, AI-ready Markdown from any document">+<meta property="og:description" content="Local-first desktop app. Reads scanned PDFs, batches folders, runs offline. Up to 6× fewer tokens than vision models.">+<meta property="og:url" content="https://ibrahimqureshae.github.io/mdflux/">+<meta property="og:image" content="https://raw.githubusercontent.com/ibrahimqureshae/mdflux/main/docs/media/github-social-card-1280x640.png">+<meta property="og:image:width" content="1280">+<meta property="og:image:height" content="640">+<meta property="og:site_name" content="MDFlux">++<meta name="twitter:card" content="summary_large_image">+<meta name="twitter:title" content="MDFlux: clean, AI-ready Markdown from any document">+<meta name="twitter:description" content="Local-first desktop app. Reads scanned PDFs, batches folders, runs offline. Up to 6× fewer tokens than vision models.">+<meta name="twitter:image" content="https://raw.githubusercontent.com/ibrahimqureshae/mdflux/main/docs/media/github-social-card-1280x640.png">++<link rel="preconnect" href="https://fonts.googleapis.com">+<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>+<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,400;1,6..72,400&display=swap" rel="stylesheet">++<style>+ :root{+ --blue:#3b82f6;+ --blue-light:#6aa1f5;+ --blue-deep:#2563eb;+ --green:#3fb950;+ --paper:#faf9f5;+ --bg:#0a0a0b;+ --panel:#0e0e10;+ --card:#16161a;+ --border:#1c1c22;+ --hairline:#2c2c33;+ --accent-border:#29395c;+ --text:#fafafa;+ --text-2:#cfccd6;+ --muted:#9a96a4;+ --muted-2:#8b8792;+ --maxw:1200px;+ --r-card:16px;+ --r-inset:10px;+ --r-pill:999px;+ --f-display:'Space Grotesk',sans-serif;+ --f-body:'IBM Plex Sans',sans-serif;+ --f-mono:'IBM Plex Mono',monospace;+ --f-serif:'Newsreader',serif;+ }++ *{box-sizing:border-box;margin:0;padding:0}+ html{scroll-behavior:smooth}+ body{+ background:var(--bg);+ color:var(--text);+ font-family:var(--f-body);+ line-height:1.5;+ -webkit-font-smoothing:antialiased;+ text-rendering:optimizeLegibility;+ }+ img{max-width:100%;display:block}+ a{color:inherit;text-decoration:none}++ /* ── Layout helpers ─────────────────────────────────────── */+ .wrap{max-width:var(--maxw);margin:0 auto;padding:0 32px}+ section{padding:96px 0;position:relative}+ .eyebrow{+ font-family:var(--f-mono);+ font-size:12px;+ letter-spacing:.18em;+ text-transform:uppercase;+ color:var(--muted-2);+ margin-bottom:14px;+ }+ .eyebrow .dot{+ display:inline-block;width:8px;height:8px;border-radius:50%;+ background:var(--blue);margin-right:10px;vertical-align:middle;+ }+ h1,h2,h3{font-family:var(--f-display);font-weight:600;letter-spacing:-.02em;line-height:1.08}+ h2{font-size:clamp(28px,4vw,42px)}+ h3{font-size:20px;letter-spacing:-.01em}+ .lead{font-size:clamp(16px,1.8vw,19px);color:var(--text-2);max-width:62ch}++ /* ── Nav ────────────────────────────────────────────────── */+ nav{+ position:sticky;top:0;z-index:50;+ background:rgba(10,10,11,.82);+ backdrop-filter:saturate(140%) blur(12px);+ -webkit-backdrop-filter:saturate(140%) blur(12px);+ border-bottom:1px solid var(--border);+ }+ nav .wrap{display:flex;align-items:center;justify-content:space-between;padding-top:14px;padding-bottom:14px}+ .lockup{display:flex;align-items:center;gap:12px}+ .mark{+ width:32px;height:32px;border-radius:8px;background:var(--blue);+ display:flex;align-items:center;justify-content:center;+ font-family:var(--f-display);font-weight:700;font-size:16px;color:#fff;+ }+ .lockup .name{font-family:var(--f-display);font-size:19px;font-weight:600;letter-spacing:-.02em}+ .lockup .name b{color:var(--blue-light);font-weight:600}+ .nav-links{display:flex;align-items:center;gap:28px;font-size:14px;color:var(--muted)}+ .nav-links a:hover{color:var(--text)}+ .nav-cta{+ font-family:var(--f-mono);font-size:13px;color:#fff;+ padding:9px 18px;border-radius:var(--r-pill);+ background:var(--blue);border:1px solid var(--blue);+ transition:background .15s ease;+ }+ .nav-cta:hover{background:var(--blue-deep);border-color:var(--blue-deep)}+ .nav-burger{display:none;background:none;border:1px solid var(--hairline);border-radius:8px;color:var(--text);padding:8px 10px;cursor:pointer;font-family:var(--f-mono);font-size:12px}++ /* ── Buttons / chips ────────────────────────────────────── */+ .btn{+ display:inline-flex;align-items:center;gap:10px;+ font-family:var(--f-mono);font-size:15px;font-weight:500;+ padding:14px 26px;border-radius:var(--r-pill);+ background:var(--blue);color:#fff;border:1px solid var(--blue);+ transition:background .15s ease,transform .15s ease;+ }+ .btn:hover{background:var(--blue-deep);border-color:var(--blue-deep)}+ .btn-ghost{+ background:transparent;color:var(--text-2);+ border:1px solid var(--hairline);+ }+ .btn-ghost:hover{border-color:var(--blue-light);color:var(--text)}+ .chips{display:flex;flex-wrap:wrap;gap:10px}+ .chip{+ font-family:var(--f-mono);font-size:13px;color:var(--text-2);+ padding:7px 15px;border:1px solid var(--hairline);border-radius:var(--r-pill);+ }++ /* ── Hero ───────────────────────────────────────────────── */+ .hero{padding:72px 0 64px;overflow:hidden}+ .hero .glow{+ position:absolute;top:-180px;left:50%;transform:translateX(-50%);+ width:880px;height:380px;border-radius:50%;pointer-events:none;+ background:radial-gradient(circle,rgba(59,130,246,.18),transparent 70%);+ }+ .hero-inner{position:relative;text-align:center;display:flex;flex-direction:column;align-items:center}+ .hero h1{+ font-size:clamp(34px,6vw,58px);+ line-height:1.04;letter-spacing:-.025em;+ max-width:18ch;margin:18px 0;+ }+ .hero h1 em{color:var(--blue-light);font-style:normal}+ .hero .sub{font-size:clamp(17px,2.2vw,22px);color:var(--muted);margin-bottom:28px}+ .hero-cta{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin-bottom:20px}+ .hero-stage{+ margin:48px auto 0;width:100%;max-width:680px;+ background:var(--panel);border:1px solid var(--border);border-radius:var(--r-card);+ padding:18px;box-shadow:0 24px 60px rgba(0,0,0,.55);+ }+ .hero-stage img{+ border-radius:var(--r-inset);border:1px solid var(--hairline);+ width:100%;height:auto;+ }++ /* ── Section header ─────────────────────────────────────── */+ .sec-head{max-width:760px;margin-bottom:48px}+ .sec-head.center{margin-left:auto;margin-right:auto;text-align:center}+ .sec-head h2{margin-bottom:14px}+ .sec-head .lead{margin-bottom:0}++ /* ── Proof section ──────────────────────────────────────── */+ .proof{background:linear-gradient(180deg,var(--bg) 0%,var(--panel) 100%)}+ .proof-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center}+ .proof-stat{+ font-family:var(--f-display);font-weight:600;+ font-size:clamp(40px,6vw,72px);line-height:1;letter-spacing:-.03em;+ color:var(--blue-light);margin-bottom:18px;+ }+ .proof-stat small{font-size:.4em;color:var(--text);font-weight:500;letter-spacing:-.01em;display:block;margin-top:8px}+ .proof-table{+ width:100%;border-collapse:collapse;margin:24px 0;+ font-family:var(--f-mono);font-size:14px;+ background:var(--card);border:1px solid var(--border);border-radius:var(--r-inset);overflow:hidden;+ }+ .proof-table th,.proof-table td{padding:14px 18px;text-align:left;border-bottom:1px solid var(--border)}+ .proof-table tr:last-child td{border-bottom:0}+ .proof-table th{color:var(--muted);font-weight:500;font-size:12px;letter-spacing:.06em;text-transform:uppercase}+ .proof-table td:last-child{text-align:right;color:var(--text)}+ .proof-table tr.ok td:last-child{color:var(--green)}+ .proof-table tr.zero td:last-child{color:var(--muted)}+ .proof-poster{+ background:var(--panel);border:1px solid var(--border);border-radius:var(--r-card);+ padding:18px;display:flex;justify-content:center;+ }+ .proof-poster img{border-radius:var(--r-inset);max-height:560px;width:auto;border:1px solid var(--hairline)}++ /* ── Features ───────────────────────────────────────────── */+ .features-poster{+ background:var(--panel);border:1px solid var(--border);border-radius:var(--r-card);+ padding:18px;margin-bottom:48px;display:flex;justify-content:center;+ }+ .features-poster img{border-radius:var(--r-inset);max-height:520px;width:auto;border:1px solid var(--hairline)}+ .feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}+ .feature{+ background:var(--panel);border:1px solid var(--border);border-radius:var(--r-card);+ padding:24px;+ }+ .feature .ic{+ width:38px;height:38px;border-radius:10px;background:var(--card);border:1px solid var(--hairline);+ display:flex;align-items:center;justify-content:center;font-size:18px;margin-bottom:16px;+ }+ .feature h3{margin-bottom:8px}+ .feature p{font-size:14px;color:var(--muted);line-height:1.55}++ /* ── How it works ───────────────────────────────────────── */+ .how{background:var(--panel)}+ .step{+ display:grid;grid-template-columns:300px 1fr;gap:48px;align-items:center;+ margin-bottom:48px;+ }+ .step:last-child{margin-bottom:0}+ .step.flip .step-text{order:2}+ .step.flip .step-media{order:1}+ .step-text .step-num{+ display:flex;align-items:center;gap:12px;margin-bottom:16px;+ font-family:var(--f-mono);font-size:13px;+ }+ .step-text .step-num b{color:var(--blue);font-weight:500}+ .step-text .step-num .line{height:1px;width:34px;background:var(--hairline)}+ .step-text .step-num .label{letter-spacing:.14em;text-transform:uppercase;color:var(--muted-2);font-size:12px}+ .step-text h3{font-size:clamp(24px,3vw,30px);line-height:1.08;margin-bottom:14px}+ .step-text p{font-size:16px;color:var(--muted);line-height:1.55;max-width:38ch}+ .step-media{+ background:var(--bg);border:1px solid var(--border);border-radius:var(--r-card);padding:18px;+ display:flex;justify-content:center;+ }+ .step-media img{+ border-radius:var(--r-inset);border:1px solid var(--hairline);+ max-height:380px;width:auto;box-shadow:0 18px 44px rgba(0,0,0,.5);+ }++ /* ── Compare ────────────────────────────────────────────── */+ .compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}+ .compare-table{+ width:100%;border-collapse:collapse;+ background:var(--panel);border:1px solid var(--border);border-radius:var(--r-card);overflow:hidden;+ }+ .compare-table th,.compare-table td{padding:14px 18px;text-align:left;border-bottom:1px solid var(--border);font-size:14px}+ .compare-table tr:last-child td{border-bottom:0}+ .compare-table th{+ font-family:var(--f-display);font-weight:600;font-size:14px;+ color:var(--muted);background:var(--card);+ }+ .compare-table th.yes{color:var(--text)}+ .compare-table th.mf{color:var(--blue-light)}+ .compare-table td:first-child{color:var(--muted)}+ .compare-table td.yes{color:var(--text-2)}+ .compare-table td.mf{color:var(--text);font-weight:500}+ .compare-table td.mf strong{color:var(--green);font-weight:500}+ .compare-poster{+ background:var(--panel);border:1px solid var(--border);border-radius:var(--r-card);+ padding:18px;display:flex;justify-content:center;position:sticky;top:88px;+ }+ .compare-poster img{border-radius:var(--r-inset);max-height:560px;width:auto;border:1px solid var(--hairline)}++ /* ── Audience ───────────────────────────────────────────── */+ .audience-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}+ .audience{+ background:var(--panel);border:1px solid var(--border);border-radius:var(--r-card);+ padding:24px 22px;+ }+ .audience .em{font-size:24px;margin-bottom:12px}+ .audience h3{font-size:15px;line-height:1.3;margin-bottom:8px;font-family:var(--f-body);font-weight:600;letter-spacing:0}+ .audience p{font-size:13px;color:var(--muted);line-height:1.5}++ /* ── Formats ────────────────────────────────────────────── */+ .formats{background:var(--panel)}+ .format-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}+ .format-col{+ background:var(--card);border:1px solid var(--border);border-radius:var(--r-card);padding:22px 24px;+ }+ .format-col .label{+ font-family:var(--f-mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;+ color:var(--muted-2);margin-bottom:14px;+ }+ .format-col ul{list-style:none;display:flex;flex-direction:column;gap:8px}+ .format-col li{font-size:14px;color:var(--text-2)}+ .format-col li .tag{+ font-family:var(--f-mono);font-size:11px;color:var(--blue-light);margin-left:6px;+ }++ /* ── CTA band ───────────────────────────────────────────── */+ .cta-band{+ background:linear-gradient(135deg,var(--blue) 0%,var(--blue-deep) 100%);+ border-radius:24px;padding:64px 48px;text-align:center;+ position:relative;overflow:hidden;+ }+ .cta-band h2{color:#fff;margin-bottom:14px;font-size:clamp(26px,4vw,38px)}+ .cta-band p{color:rgba(255,255,255,.88);font-size:18px;margin-bottom:28px}+ .cta-band .btn{background:#fff;color:var(--blue-deep);border-color:#fff}+ .cta-band .btn:hover{background:var(--paper);border-color:var(--paper)}+ .cta-band .sponsor{display:flex;gap:12px;justify-content:center;margin-top:20px;flex-wrap:wrap}+ .cta-band .sponsor a{+ font-family:var(--f-mono);font-size:13px;color:#fff;+ padding:9px 18px;border:1px solid rgba(255,255,255,.4);border-radius:var(--r-pill);+ transition:background .15s ease;+ }+ .cta-band .sponsor a:hover{background:rgba(255,255,255,.12)}++ /* ── Footer ─────────────────────────────────────────────── */+ footer{padding:56px 0 40px;border-top:1px solid var(--border)}+ footer .wrap{display:grid;grid-template-columns:1fr 2fr;gap:48px}+ footer .brand .lockup{margin-bottom:14px}+ footer .brand p{font-size:13px;color:var(--muted);max-width:34ch}+ footer .cols{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}+ footer .col .h{+ font-family:var(--f-mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;+ color:var(--muted-2);margin-bottom:14px;+ }+ footer .col ul{list-style:none;display:flex;flex-direction:column;gap:9px}+ footer .col a{font-size:13px;color:var(--text-2)}+ footer .col a:hover{color:var(--blue-light)}+ footer .built{+ margin-top:48px;padding-top:24px;border-top:1px solid var(--border);+ display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;+ font-family:var(--f-mono);font-size:12px;color:var(--muted);+ }+ footer .built a{color:var(--text-2)}+ footer .built a:hover{color:var(--blue-light)}++ /* ── Cleanup modes ─────────────────────────────────────── */+ .cleanup-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}+ .cleanup-shot{+ background:var(--panel);border:1px solid var(--border);border-radius:var(--r-card);+ padding:18px;display:flex;justify-content:center;+ }+ .cleanup-shot img{border-radius:var(--r-inset);border:1px solid var(--hairline);width:100%;height:auto}+ .modes{display:flex;flex-direction:column;gap:14px}+ .mode{+ background:var(--panel);border:1px solid var(--border);border-radius:var(--r-card);+ padding:20px 22px;display:flex;gap:16px;align-items:flex-start;+ }+ .mode .dot-c{width:10px;height:10px;border-radius:50%;margin-top:7px;flex:none}+ .mode .dot-c.off{background:var(--green)}+ .mode .dot-c.rule{background:var(--blue)}+ .mode .dot-c.ai{background:var(--blue-light)}+ .mode h3{font-size:16px;margin-bottom:6px;font-family:var(--f-body);font-weight:600;letter-spacing:0}+ .mode .tag{+ font-family:var(--f-mono);font-size:11px;color:var(--muted-2);margin-left:8px;+ padding:2px 8px;border:1px solid var(--hairline);border-radius:var(--r-pill);+ }+ .mode p{font-size:14px;color:var(--muted);line-height:1.5}++ /* ── Responsive ─────────────────────────────────────────── */+ @media (max-width:980px){+ .nav-links{display:none}+ .nav-burger{display:inline-block}+ .proof-grid,.compare-grid,.cleanup-grid{grid-template-columns:1fr}+ .compare-poster{position:static}+ .feature-grid{grid-template-columns:repeat(2,1fr)}+ .audience-grid{grid-template-columns:repeat(2,1fr)}+ .format-grid{grid-template-columns:repeat(2,1fr)}+ .step{grid-template-columns:1fr;gap:24px}+ .step.flip .step-text,.step.flip .step-media{order:initial}+ .step-text{max-width:none}+ footer .wrap{grid-template-columns:1fr;gap:32px}+ footer .cols{grid-template-columns:repeat(2,1fr)}+ }+ @media (max-width:560px){+ section{padding:64px 0}+ .wrap{padding:0 20px}+ .feature-grid,.audience-grid,.format-grid{grid-template-columns:1fr}+ .cta-band{padding:40px 24px}+ }+ @media (prefers-reduced-motion:reduce){+ html{scroll-behavior:auto}+ *{transition:none !important}+ }+</style>+</head>+<body>++<!-- ════════════════ NAV ════════════════ -->+<nav>+ <div class="wrap">+ <a class="lockup" href="#top" aria-label="MDFlux home">+ <span class="mark">M↓</span>+ <span class="name"><b>MD</b>Flux</span>+ </a>+ <div class="nav-links">+ <a href="#features">Features</a>+ <a href="#proof">The proof</a>+ <a href="#how">How it works</a>+ <a href="#compare">vs MarkItDown</a>+ <a href="https://github.com/ibrahimqureshae/mdflux">GitHub</a>+ <a class="nav-cta" href="https://github.com/ibrahimqureshae/mdflux/releases/latest">Download</a>+ </div>+ <button class="nav-burger" aria-label="Open menu" onclick="document.querySelector('.nav-links').style.display='flex';this.style.display='none'">Menu</button>+ </div>+</nav>++<main id="top">++<!-- ════════════════ HERO ════════════════ -->+<section class="hero">+ <div class="glow"></div>+ <div class="wrap hero-inner">+ <div class="eyebrow"><span class="dot"></span>Reads documents other tools can't.</div>+ <h1>Converts documents into clean, <em>AI-ready Markdown.</em></h1>+ <p class="sub">On your machine. No upload.</p>+ <p class="sub" style="font-size:14px;opacity:.65;margin-top:8px">Works with PDF · DOCX · PPTX · XLSX · EPUB · HTML · CSV · JSON · XML · images · audio</p>+ <div class="chips">+ <span class="chip">Open Source</span>+ <span class="chip">MIT</span>+ <span class="chip">Local-first</span>+ <span class="chip">Windows</span>+ </div>+ <div class="hero-cta" style="margin-top:28px">+ <a class="btn" href="https://github.com/ibrahimqureshae/mdflux/releases/latest">⬇ Download for Windows</a>+ <a class="btn btn-ghost" href="#proof">See the proof ↓</a>+ </div>+ <div class="hero-stage">+ <img src="docs/media/demo-hero.gif" alt="MDFlux: drop a document, get clean Markdown in seconds" width="1080" height="675">+ </div>+ </div>+</section>++<!-- ════════════════ SEE IT IN ACTION ════════════════ -->+<section id="demo">+ <div class="wrap">+ <div class="sec-head center">+ <div class="eyebrow"><span class="dot"></span>See it in action · three steps</div>+ <h2>Select. Convert. Done.</h2>+ </div>+ <div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;margin-top:10px">+ <div style="background:#0e0e10;border:1px solid #1c1c22;border-radius:16px;padding:18px">+ <div style="display:flex;align-items:center;gap:10px;margin-bottom:14px"><span style="color:#3b82f6;font-weight:600;font-size:14px">01</span><span style="font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#9a96a4">Select</span></div>+ <img src="docs/media/fetching-files.gif" alt="Select a folder of mixed files" loading="lazy" style="width:100%;border-radius:10px;border:1px solid #23232a;display:block">+ <p style="font-size:14px;color:#9a96a4;line-height:1.55;margin-top:14px">Grab a folder of mixed files. PDFs, Office docs, scans, web pages. No conversion settings to pick.</p>+ </div>+ <div style="background:#0e0e10;border:1px solid #1c1c22;border-radius:16px;padding:18px">+ <div style="display:flex;align-items:center;gap:10px;margin-bottom:14px"><span style="color:#3b82f6;font-weight:600;font-size:14px">02</span><span style="font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#9a96a4">Convert</span></div>+ <img src="docs/media/converting-to-markdown.gif" alt="Convert documents to clean Markdown" loading="lazy" style="width:100%;border-radius:10px;border:1px solid #23232a;display:block">+ <p style="font-size:14px;color:#9a96a4;line-height:1.55;margin-top:14px">One drop turns the whole batch into AI-ready Markdown, locally. OCR recovers text from scans others read as empty.</p>+ </div>+ <div style="background:#0e0e10;border:1px solid #1c1c22;border-radius:16px;padding:18px">+ <div style="display:flex;align-items:center;gap:10px;margin-bottom:14px"><span style="color:#3b82f6;font-weight:600;font-size:14px">03</span><span style="font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#9a96a4">Stays healthy</span></div>+ <img src="docs/media/diagnostics.gif" alt="Dependency health and diagnostics" loading="lazy" style="width:100%;border-radius:10px;border:1px solid #23232a;display:block">+ <p style="font-size:14px;color:#9a96a4;line-height:1.55;margin-top:14px">Dependency health and diagnostics run on-device. See exactly what's installed and working.</p>+ </div>+ </div>+ </div>+</section>++<!-- ════════════════ PROOF ════════════════ -->+<section class="proof" id="proof">+ <div class="wrap">+ <div class="sec-head">+ <div class="eyebrow"><span class="dot"></span>The proof · fewer tokens, lower cost</div>+ <h2>About 2 to 6× fewer tokens than a vision model.</h2>+ <p class="lead">Every time a document gets read by an LLM, you pay for it in tokens. Sending pages as images is an expensive way to spend them. MDFlux hands the model clean Markdown instead, and the saving lands on every single call that reads the document.</p>+ </div>+ <div style="max-width:820px;margin:0 auto 14px">+ <div style="font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#3b82f6;font-weight:600;margin-bottom:16px;text-align:center">Why clean Markdown costs fewer tokens</div>+ <div style="display:grid;gap:11px">+ <p style="margin:0;font-size:15px;color:var(--text-2);line-height:1.55"><b style="color:var(--text,#fafafa)">You pay for pixels, not words.</b> A page sent to a vision model as an image costs a fixed chunk of tokens, often well over a thousand, no matter how little text is on it. The same page as Markdown is usually a few hundred.</p>+ <p style="margin:0;font-size:15px;color:var(--text-2);line-height:1.55"><b style="color:var(--text,#fafafa)">Plain text tokenizes efficiently.</b> Markdown is just text, with no image data, no markup bloat, no base64 blobs.</p>+ <p style="margin:0;font-size:15px;color:var(--text-2);line-height:1.55"><b style="color:var(--text,#fafafa)">Clean beats raw.</b> MDFlux strips the broken layout, repeated whitespace, and junk that pad out messy extractions, so you don't spend tokens on noise.</p>+ <p style="margin:0;font-size:15px;color:var(--text-2);line-height:1.55"><b style="color:var(--text,#fafafa)">Structure stays compact.</b> Headings, tables, and lists carry the document's meaning in very few tokens.</p>+ <p style="margin:0;font-size:15px;color:var(--text-2);line-height:1.55"><b style="color:var(--text,#fafafa)">It compounds.</b> The saving lands on every single call that reads the document, across a whole pipeline or batch.</p>+ </div>+ </div>+ <div class="proof-grid">+ <div>+ <div class="proof-stat">5.7×<small>lighter than vision on scanned pages</small></div>+ <p style="color:var(--text-2);font-size:16px;margin-bottom:24px">Point a plain extractor at a scanned, image-only PDF and you get zero usable text. MDFlux's OCR recovers it, and even then stays lighter than the vision route.</p>+ <table class="proof-table">+ <thead><tr><th>Scanned, image-only PDF</th><th>Usable tokens</th></tr></thead>+ <tbody>+ <tr class="zero"><td>Plain text extractor</td><td>0</td></tr>+ <tr><td>Vision model (page as image)</td><td>10,731</td></tr>+ <tr class="ok"><td>MDFlux (OCR → Markdown)</td><td>1,893</td></tr>+ </tbody>+ </table>+ <p style="color:var(--muted);font-size:14px">Full text recovered in about 5.7× fewer tokens than the vision model, which still has to OCR the image on its end anyway.</p>+ </div>+ <div class="proof-poster">+ <img src="docs/media/poster-2-vs-vision-1080x1350.png" alt="Two to six times fewer tokens than a vision model" width="540" height="675">+ </div>+ </div>+ </div>+</section>++<!-- ════════════════ FEATURES ════════════════ -->+<section id="features">+ <div class="wrap">+ <div class="sec-head center">+ <div class="eyebrow"><span class="dot"></span>What it does</div>+ <h2>Everything around the engine that makes it usable.</h2>+ <p class="lead" style="margin:14px auto 0">Built on Microsoft's MarkItDown. What MDFlux adds is the OCR, the desktop app, the batching, the reliability, and the privacy-by-default packaging.</p>+ </div>+ <div class="features-poster">+ <img src="docs/media/poster-1-capability-1080x1350.png" alt="MDFlux capability overview" width="432" height="540">+ </div>+ <div class="feature-grid">+ <div class="feature"><div class="ic">💸</div><h3>Fewer tokens, lower cost</h3><p>Clean Markdown costs about 2 to 6× fewer tokens than sending pages to a vision model. Every LLM call that reads the document is cheaper.</p></div>+ <div class="feature"><div class="ic">🔒</div><h3>Local and private</h3><p>Your documents never leave your machine. No cloud, no API key, no account.</p></div>+ <div class="feature"><div class="ic">🔍</div><h3>Reads scanned PDFs</h3><p>Built-in OCR recovers text that plain extractors return as zero characters.</p></div>+ <div class="feature"><div class="ic">🧱</div><h3>Real structure</h3><p>Proper Markdown with headings, tables, and lists intact. Readable, greppable, diff-able.</p></div>+ <div class="feature"><div class="ic">🖥️</div><h3>No terminal needed</h3><p>Portable app. Unzip, run, click through a one-time setup. Done.</p></div>+ <div class="feature"><div class="ic">📦</div><h3>Many formats</h3><p>PDF, DOCX, PPTX, XLSX, EPUB, HTML, CSV, JSON, XML, images, and audio.</p></div>+ <div class="feature"><div class="ic">🔁</div><h3>Batch a whole folder</h3><p>Convert everything at once, with progress, cancellation, and per-file diagnostics.</p></div>+ <div class="feature"><div class="ic">🧹</div><h3>Optional cleanup</h3><p>Off, rule-based, or a local AI pass to tidy up messy extractions.</p></div>+ </div>+ </div>+</section>++<!-- ════════════════ HOW IT WORKS ════════════════ -->+<section class="how" id="how">+ <div class="wrap">+ <div class="sec-head">+ <div class="eyebrow"><span class="dot"></span>How it works · three steps</div>+ <h2>Select. Convert. Done, all on your machine.</h2>+ <p class="lead">The first launch sets up a private, self-contained Python environment (one time, needs internet). Every conversion after that runs fully offline.</p>+ </div>++ <div class="step">+ <div class="step-text">+ <div class="step-num"><b>01</b><span class="line"></span><span class="label">Set up</span></div>+ <h3>A one-time, self-contained setup.</h3>+ <p>MDFlux provisions its own private Python 3.12 environment on first launch. After that it runs fully offline, every time. No terminal, no admin rights, no manual installs.</p>+ </div>+ <div class="step-media">+ <img src="docs/media/screenshot-setup.png" alt="MDFlux first-run setup screen: provisions a private, self-contained Python environment" width="600" height="444" loading="lazy">+ </div>+ </div>++ <div class="step flip">+ <div class="step-text">+ <div class="step-num"><b>02</b><span class="line"></span><span class="label">Convert</span></div>+ <h3>Drop → clean Markdown.</h3>+ <p>One drop turns a file or a whole batch into AI-ready Markdown, locally. OCR recovers text from scans that other tools read as empty. Cancel any time, with progress per file.</p>+ </div>+ <div class="step-media">+ <img src="docs/media/converting-to-markdown.gif" alt="Converting a document to clean Markdown" width="600" height="400">+ </div>+ </div>++ <div class="step">+ <div class="step-text">+ <div class="step-num"><b>03</b><span class="line"></span><span class="label">Stays healthy</span></div>+ <h3>Everything local & checked.</h3>+ <p>Dependency health and diagnostics run on-device. You see exactly what's installed and working, and a clear next step instead of a silent empty file when something's off.</p>+ </div>+ <div class="step-media">+ <img src="docs/media/screenshot-diagnostics.png" alt="MDFlux diagnostics panel: dependency health and per-file status" width="600" height="444" loading="lazy">+ </div>+ </div>+ </div>+</section>++<!-- ════════════════ CLEANUP MODES ════════════════ -->+<section id="cleanup">+ <div class="wrap">+ <div class="sec-head">+ <div class="eyebrow"><span class="dot"></span>Cleanup modes · a per-run switch</div>+ <h2>Off, rule-based, or a local AI pass.</h2>+ <p class="lead">Tidy up messy extraction, or don't. The default is Off: no LLM, fully offline. You decide per run, per batch. Nothing is forced on you.</p>+ </div>+ <div class="cleanup-grid">+ <div class="cleanup-shot">+ <img src="docs/media/screenshot-cleanup-modes.png" alt="MDFlux cleanup mode selector: Off, Rule-based, Local AI, and API options" width="600" height="444" loading="lazy">+ </div>+ <div class="modes">+ <div class="mode">+ <span class="dot-c off"></span>+ <div>+ <h3>Off <span class="tag">default</span></h3>+ <p>No LLM. Raw MarkItDown output, exactly as the engine produced it. Fully offline, zero compute overhead.</p>+ </div>+ </div>+ <div class="mode">+ <span class="dot-c rule"></span>+ <div>+ <h3>Rule-based <span class="tag">offline</span></h3>+ <p>Deterministic cleanup passes, fix broken tables, collapse whitespace, normalise headings. No LLM, no surprise rewrites, always the same output.</p>+ </div>+ </div>+ <div class="mode">+ <span class="dot-c ai"></span>+ <div>+ <h3>Local AI <span class="tag">Ollama · offline</span></h3>+ <p>An optional pass through a model running on your machine via Ollama. Still offline, still private. Bring your own model, the app doesn't manage weights in v1.</p>+ </div>+ </div>+ <div class="mode">+ <span class="dot-c" style="background:var(--muted)"></span>+ <div>+ <h3>API <span class="tag">bring-your-own-key</span></h3>+ <p>For when you want a frontier model's cleanup. OpenAI-compatible client, your key, your cost. Clearly marked, never the default, never required.</p>+ </div>+ </div>+ </div>+ </div>+ </div>+</section>++<!-- ════════════════ COMPARE ════════════════ -->+<section id="compare">+ <div class="wrap">+ <div class="sec-head">+ <div class="eyebrow"><span class="dot"></span>How it compares</div>+ <h2>MDFlux vs Microsoft MarkItDown.</h2>+ <p class="lead">MDFlux is built on MarkItDown, which is a genuinely great conversion library. The point isn't to beat the engine, it's to make that engine genuinely usable day to day.</p>+ </div>+ <div class="compare-grid">+ <table class="compare-table">+ <thead>+ <tr><th></th><th class="yes">MarkItDown</th><th class="mf">MDFlux</th></tr>+ </thead>+ <tbody>+ <tr><td>Core conversion engine</td><td class="yes">yes</td><td class="mf">yes (uses MarkItDown)</td></tr>+ <tr><td>Scanned / image-only PDFs</td><td class="yes">≈ 0 characters</td><td class="mf"><strong>built-in OCR recovers text</strong></td></tr>+ <tr><td>Install and run</td><td class="yes">pip + terminal</td><td class="mf">portable app, no terminal</td></tr>+ <tr><td>Dependency setup</td><td class="yes">manual</td><td class="mf">sets itself up on first launch</td></tr>+ <tr><td>Batch a whole folder</td><td class="yes">write your own script</td><td class="mf"><strong>built in, concurrent, with progress</strong></td></tr>+ <tr><td>Timeouts and cancel</td><td class="yes">can hang, no feedback</td><td class="mf"><strong>streams progress, cancellable</strong></td></tr>+ <tr><td>Cleanup modes</td><td class="yes">raw output</td><td class="mf">Off, rule-based, or local AI</td></tr>+ <tr><td>Preview & diagnostics</td><td class="yes">none</td><td class="mf"><strong>rendered preview + health panel</strong></td></tr>+ <tr><td>Audio transcription</td><td class="yes">plugin or Azure</td><td class="mf">local, built in</td></tr>+ <tr><td>Privacy</td><td class="yes">local if you wire it up</td><td class="mf"><strong>local by default</strong></td></tr>+ </tbody>+ </table>+ <div class="compare-poster">+ <img src="docs/media/poster-3-vs-markitdown-1080x1350.png" alt="MDFlux next to MarkItDown" width="540" height="675">+ </div>+ </div>+ </div>+</section>++<!-- ════════════════ AUDIENCE ════════════════ -->+<section id="audience">+ <div class="wrap">+ <div class="sec-head center">+ <div class="eyebrow"><span class="dot"></span>Who it's for</div>+ <h2>Built for anyone who feeds documents to a model.</h2>+ </div>+ <div class="audience-grid">+ <div class="audience"><div class="em">🤖</div><h3>AI & RAG builders</h3><p>Feed clean, structured source documents to any model instead of raw text or pricey vision tokens.</p></div>+ <div class="audience"><div class="em">🔬</div><h3>Researchers</h3><p>Batch-convert papers, reports, and scanned archives into searchable Markdown.</p></div>+ <div class="audience"><div class="em">🧑💻</div><h3>Developers</h3><p>Get diff-able, version-controllable text out of binary document formats.</p></div>+ <div class="audience"><div class="em">📝</div><h3>Writers & analysts</h3><p>Pull clean copy out of PDFs and Office files without the formatting mess.</p></div>+ <div class="audience"><div class="em">🔒</div><h3>Privacy-conscious</h3><p>Convert sensitive contracts, records, and decks with nothing ever uploaded.</p></div>+ </div>+ </div>+</section>++<!-- ════════════════ FORMATS ════════════════ -->+<section class="formats" id="formats">+ <div class="wrap">+ <div class="sec-head">+ <div class="eyebrow"><span class="dot"></span>Supported formats</div>+ <h2>One app, most of your files.</h2>+ </div>+ <div class="format-grid">+ <div class="format-col">+ <div class="label">Documents</div>+ <ul>+ <li>PDF <span class="tag">incl. scanned · OCR</span></li>+ <li>EPUB</li>+ <li>TXT</li>+ <li>Markdown</li>+ </ul>+ </div>+ <div class="format-col">+ <div class="label">Office</div>+ <ul>+ <li>DOCX</li>+ <li>PPTX</li>+ <li>XLSX</li>+ </ul>+ </div>+ <div class="format-col">+ <div class="label">Web & data</div>+ <ul>+ <li>HTML</li>+ <li>CSV</li>+ <li>JSON</li>+ <li>XML</li>+ </ul>+ </div>+ <div class="format-col">+ <div class="label">Other</div>+ <ul>+ <li>Audio → transcript <span class="tag">local</span></li>+ <li>OCR on images <span class="tag">local</span></li>+ </ul>+ </div>+ </div>+ </div>+</section>++<!-- ════════════════ CTA BAND ════════════════ -->+<section style="padding-bottom:96px">+ <div class="wrap">+ <div class="cta-band">+ <h2>Download for Windows. Free. MIT-licensed.</h2>+ <p>Portable zip. No installer, no admin rights, no account, no cloud.</p>+ <a class="btn" href="https://github.com/ibrahimqureshae/mdflux/releases/latest">⬇ Get MDFlux</a>+ <div class="sponsor">+ <a href="https://github.com/sponsors/ibrahimqureshae">❤ Sponsor on GitHub</a>+ <a href="https://buymeacoffee.com/mibrahim99">☕ Buy me a coffee</a>+ <a href="https://www.paypal.me/mibrahimqr">💳 PayPal</a>+ <a href="https://github.com/ibrahimqureshae/mdflux">★ Star the repo</a>+ </div>+ </div>+ </div>+</section>++</main>++<!-- ════════════════ FOOTER ════════════════ -->+<footer>+ <div class="wrap">+ <div class="brand">+ <div class="lockup">+ <span class="mark">M↓</span>+ <span class="name"><b>MD</b>Flux</span>+ </div>+ <p>Turn any document into clean, AI-ready Markdown, on your machine. Local-first, MIT-licensed, built on open source.</p>+ </div>+ <div class="cols">+ <div class="col">+ <div class="h">Product</div>+ <ul>+ <li><a href="#features">Features</a></li>+ <li><a href="#proof">The proof</a></li>+ <li><a href="#how">How it works</a></li>+ <li><a href="#formats">Formats</a></li>+ </ul>+ </div>+ <div class="col">+ <div class="h">Repo</div>+ <ul>+ <li><a href="https://github.com/ibrahimqureshae/mdflux">GitHub</a></li>+ <li><a href="https://github.com/ibrahimqureshae/mdflux/releases/latest">Releases</a></li>+ <li><a href="https://github.com/ibrahimqureshae/mdflux/issues">Issues</a></li>+ <li><a href="ROADMAP.md">Roadmap</a></li>+ </ul>+ </div>+ <div class="col">+ <div class="h">Project</div>+ <ul>+ <li><a href="CONTRIBUTING.md">Contributing</a></li>+ <li><a href="CHANGELOG.md">Changelog</a></li>+ <li><a href="SECURITY.md">Security</a></li>+ <li><a href="CODE_OF_CONDUCT.md">Code of conduct</a></li>+ </ul>+ </div>+ <div class="col">+ <div class="h">Support</div>+ <ul>+ <li><a href="https://github.com/sponsors/ibrahimqureshae">Sponsor</a></li>+ <li><a href="https://buymeacoffee.com/mibrahim99">Buy me a coffee</a></li>+ <li><a href="https://www.paypal.me/mibrahimqr">PayPal</a></li>+ <li><a href="https://github.com/ibrahimqureshae/mdflux/blob/main/README.md#troubleshooting">Troubleshooting</a></li>+ </ul>+ </div>+ </div>+ </div>+ <div class="wrap built">+ <span>MIT · © 2026 ibrahimqureshae · Built on <a href="https://github.com/microsoft/markitdown">MarkItDown</a> · <a href="https://tauri.app/">Tauri</a> · <a href="https://github.com/RapidAI/RapidOCR">RapidOCR</a> · <a href="https://github.com/pypdfium2-team/pypdfium2">pypdfium2</a></span>+ <a href="https://claude.com/claude-code"><img src="https://img.shields.io/badge/Built%20with-Claude%20Code-D97757?logo=claude&logoColor=white" height="20" alt="Built with Claude Code"></a>+ </div>+</footer>++</body>+</html>diff --git a/scripts/make-portable.ps1 b/scripts/make-portable.ps1new file mode 100644index 0000000..5b7b8e2--- /dev/null+++ b/scripts/make-portable.ps1@@ -0,0 +1,45 @@+# Build MDFlux and package it as a portable, extract-and-run zip (no installer).+# The zip contains app.exe + resources/ (the Python sidecar). On first launch the app+# downloads uv + Python + deps to %APPDATA% — same online-provisioning model as the installer.+#+# Usage: pwsh -File scripts\make-portable.ps1 # build + zip+# pwsh -File scripts\make-portable.ps1 -NoBuild # zip the existing release build++param([switch]$NoBuild)++$ErrorActionPreference = "Stop"+$root = Split-Path -Parent $PSScriptRoot+$rel = Join-Path $root "app\src-tauri\target\release"+$dist = Join-Path $root "dist"++if (-not $NoBuild) {+ # --no-bundle: compile app.exe + stage resources, but DO NOT build an installer.+ # MDFlux ships as a portable, extract-and-run zip — no NSIS installer.+ Push-Location (Join-Path $root "app")+ try { npm run tauri build -- --no-bundle } finally { Pop-Location }+}++$exe = Join-Path $rel "app.exe"+$res = Join-Path $rel "resources"+if (-not (Test-Path $exe)) { throw "Release build not found at $exe. Run without -NoBuild first." }++# Read version from tauri.conf.json for the zip name.+$conf = Get-Content (Join-Path $root "app\src-tauri\tauri.conf.json") -Raw | ConvertFrom-Json+$version = $conf.version++New-Item -ItemType Directory -Force -Path $dist | Out-Null+$zip = Join-Path $dist "MDFlux_${version}_portable.zip"+if (Test-Path $zip) { Remove-Item $zip -Force }++# Stage the payload so the shipped executable is MDFlux.exe (the build output is app.exe+# because the Rust crate is named "app"; users are told to run MDFlux.exe).+$stage = Join-Path $dist "_portable_stage"+if (Test-Path $stage) { Remove-Item $stage -Recurse -Force }+New-Item -ItemType Directory -Force -Path $stage | Out-Null+Copy-Item $exe (Join-Path $stage "MDFlux.exe")+Copy-Item $res -Destination $stage -Recurse++Compress-Archive -Path (Join-Path $stage '*') -DestinationPath $zip -CompressionLevel Optimal+Remove-Item $stage -Recurse -Force+$mb = [math]::Round((Get-Item $zip).Length / 1MB, 2)+Write-Host "Portable build: $zip ($mb MB) (executable: MDFlux.exe)"