diff --git a/composer.json b/composer.json index ffcade6..781dd96 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,8 @@ "php-http/guzzle7-adapter": "^1.1", "mailersend/mailersend": "^0.28.0", "sylvainjule/code-editor": "^1.0", - "tobimori/kirby-seo": "^1.1" + "tobimori/kirby-seo": "^1.1", + "moinframe/kirby-loop": "^1.0" }, "config": { "platform": { diff --git a/composer.lock b/composer.lock index 29ac08e..3c8d3dd 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "30f9edc8f90ec79150fffac01e3b80fd", + "content-hash": "e9154be9f46dbe7bc999d4706958afae", "packages": [ { "name": "beberlei/assert", @@ -1317,6 +1317,67 @@ }, "time": "2016-12-13T01:01:17+00:00" }, + { + "name": "moinframe/kirby-loop", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/moinframe/kirby-loop.git", + "reference": "1e7732a075e96ecca119032175f9a048cfa4784e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/moinframe/kirby-loop/zipball/1e7732a075e96ecca119032175f9a048cfa4784e", + "reference": "1e7732a075e96ecca119032175f9a048cfa4784e", + "shasum": "" + }, + "require": { + "getkirby/cms": "^4.0||^5.0", + "getkirby/composer-installer": "^1.1" + }, + "require-dev": { + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-deprecation-rules": "^2.0", + "phpstan/phpstan-strict-rules": "^2.0" + }, + "type": "kirby-plugin", + "extra": { + "installer-name": "loop" + }, + "autoload": { + "psr-4": { + "Moinframe\\Loop\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Justus Kraft", + "email": "justus@moinfra.me", + "homepage": "https://moinfra.me" + } + ], + "description": "Interactive feedback tool for Kirby CMS websites that allows users to add contextual comments directly on page elements", + "homepage": "https://github.com/moinframe/kirby-loop", + "keywords": [ + "cms", + "comments", + "feedback", + "kirby", + "loop", + "plugin", + "review" + ], + "support": { + "docs": "https://moinfra.me/docs/moinframe-loop", + "issues": "https://github.com/moinframe/kirby-loop/issues", + "source": "https://github.com/moinframe/kirby-loop" + }, + "time": "2025-07-08T18:20:46+00:00" + }, { "name": "nyholm/psr7", "version": "1.8.2", diff --git a/site/config/config.php b/site/config/config.php index 3b05f4d..f682a75 100644 --- a/site/config/config.php +++ b/site/config/config.php @@ -26,4 +26,6 @@ return [ 'hooks' => [ 'page.create:after' => require __DIR__ . '/hooks/prefill-test-adress-list.php', ], + + 'moinframe.loop.language' => 'fr', ]; diff --git a/site/plugins/loop/.editorconfig b/site/plugins/loop/.editorconfig new file mode 100644 index 0000000..3b762c9 --- /dev/null +++ b/site/plugins/loop/.editorconfig @@ -0,0 +1,20 @@ +# This file is for unifying the coding style for different editors and IDEs +# editorconfig.org + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.php] +indent_size = 4 + +[*.md,*.txt] +trim_trailing_whitespace = false +insert_final_newline = false + +[composer.json] +indent_size = 4 diff --git a/site/plugins/loop/.paradocs.json b/site/plugins/loop/.paradocs.json new file mode 100644 index 0000000..237dddb --- /dev/null +++ b/site/plugins/loop/.paradocs.json @@ -0,0 +1,3 @@ +{ + "title": "Kirby Loop" +} \ No newline at end of file diff --git a/site/plugins/loop/.release-it.json b/site/plugins/loop/.release-it.json new file mode 100644 index 0000000..cee4d59 --- /dev/null +++ b/site/plugins/loop/.release-it.json @@ -0,0 +1,25 @@ +{ + "git": { + "requireUpstream": true, + "push": true, + "tagName": "v${version}", + "commitMessage": "chore: release v${version}" + }, + "npm": { + "publish": false + }, + "github": { + "release": true, + "web": true + }, + "plugins": { + "@release-it/conventional-changelog": { + "preset": "conventionalcommits", + "infile": "CHANGELOG.md" + }, + "@release-it/bumper": { + "in": "composer.json", + "out": "composer.json" + } + } +} diff --git a/site/plugins/loop/CHANGELOG.md b/site/plugins/loop/CHANGELOG.md new file mode 100644 index 0000000..5edbef9 --- /dev/null +++ b/site/plugins/loop/CHANGELOG.md @@ -0,0 +1,90 @@ +# Changelog + +## [1.0.1](///compare/v1.0.0...v1.0.1) (2025-07-08) + +### Features + +* add allow draft pages option 351471e +* add major version check 02d3690 + +### Bug Fixes + +* add token to fetch universally (if set) 9c33fdd +* check for valid draft token 091a135 +* check for verified token with kirby 4 too dec2d34 +* remove draft page access docs 7e71ee9 +* remove draftaccess option 98148a0 +* show ui only if comments fetch goes through a5188f0 +* use default minification b9ce0f6 + +## [1.0.0](///compare/v1.0.0-beta.7...v1.0.0) (2025-07-05) + +## [1.0.0-beta.7](///compare/v1.0.0-beta.6...v1.0.0-beta.7) (2025-07-05) + +### Bug Fixes + +* use autoloader for classes 7464553 + +## [1.0.0-beta.6](///compare/v1.0.0-beta.5...v1.0.0-beta.6) (2025-07-02) + +### Features + +* add screenshot c3ef6f3 + +## [1.0.0-beta.5](///compare/v1.0.0-beta.4...v1.0.0-beta.5) (2025-06-30) + +### Bug Fixes + +* decode html entities cf00460 +* make sure to add a guest name before replying or commenting 763c904 + +## [1.0.0-beta.4](///compare/v1.0.0-beta.3...v1.0.0-beta.4) (2025-06-30) + +### Features + +* add aria labels to improve voice over 63fc81d +* improve reply voiceover 93e294e + +### Bug Fixes + +* cleanup icons f956a34 +* date display 9a4ad00 +* header button focus styles 26ebb19 +* hide reply button on solved 545a094 +* improve context menu voiceover a6c514a +* outline on comment header a9c2d37 +* pulse marker 8ec0bd5 +* skip focus if panel closed ee23bde +* switch icons, little style fixes 958f0d1 +* use dialog element for panel f3dff13 + +## [1.0.0-beta.3](///compare/v1.0.0-beta.2...v1.0.0-beta.3) (2025-06-22) + +### Features + +* dark theme e34269f +* add dark theme 5255d64 +* add theme option 51e3b67 +* add theming docs 2d74d63 +* better shadows, rename theme light to default 90e6e6c +* refactor css custom properties 6daf0de +* refactor css custom properties f6ffb0b + +### Bug Fixes + +* frosted glass style 8807e3d +* Plugin name in paradocs 62ac94b +* remove cursor property, don’t set to auto 7cf72c2 + +## [1.0.0-beta.2](///compare/v1.0.0-beta.1...v1.0.0-beta.2) (2025-06-21) + +### Bug Fixes + +* handle $page variable in hook 113f77d +* installer name 77c9e18 +* update types b79d7b6 +* use unified api base with language included 109d850 + +## [1.0.0-beta.1](///compare/v1.0.0-beta.0...v1.0.0-beta.1) (2025-06-21) + +## 1.0.0-beta.0 (2025-06-21) diff --git a/site/plugins/loop/CLAUDE.md b/site/plugins/loop/CLAUDE.md new file mode 100644 index 0000000..c82e30b --- /dev/null +++ b/site/plugins/loop/CLAUDE.md @@ -0,0 +1,97 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## Project Structure + +This is a Kirby CMS plugin that provides a feedback tool for web pages. The architecture consists of: + +**Backend (PHP):** +- Kirby plugin structure with main entry point at `index.php` +- Core logic in `src/App.php` with database abstraction +- API routes in `src/Routes.php` for comment management +- Models in `src/Models/` for Comment and Reply entities +- Database layer in `src/Database.php` + +**Frontend (Svelte):** +- Svelte 5 component library in `frontend/src/` +- Builds to ES modules in `assets/` directory +- Uses Vite for build process with custom element compilation +- State management via Svelte stores in `frontend/src/store/` + +## Development Commands + +**Frontend Development:** +```bash +# Start development server +pnpm dev + +# Build assets +pnpm build + +# Type checking +pnpm --filter=frontend run check +``` + +**PHP Development:** +```bash +# Static analysis +vendor/bin/phpstan analyse + +# PHP analysis level 8 with strict rules +# Configuration in phpstan.neon +``` + +**Documentation:** +Use context7 to find out about Kirby CMS, Documentation for this plugin is placed in the `docs/` folder. + +## Key Architecture Details + +**Plugin Integration:** +- Auto-injects feedback component into all HTML pages via `page.render:after` hook +- Component snippet located at `snippets/loop/app.php` +- Requires authenticated users (see `Middleware::auth()`) + +**API Endpoints:** +- `GET /loop/comments/{pageId}` - Get comments for a specific page +- `POST /loop/comment/new` - Create new comment +- `POST /loop/comment/reply` - Reply to existing comment +- `POST /loop/comment/resolve` - Mark comment as resolved +- `POST /loop/comment/unresolve` - Mark comment as unresolved +- `POST /loop/guest/name` - Set guest name for non-authenticated users + +**Data Flow:** +- Comments are tied to Kirby page ids +- Position tracking via CSS selectors and page coordinates +- Validation happens at model level before database operations + +## Translations + +**IMPORTANT: When adding new translatable text to the frontend:** + +1. **Add translation key to PHP backend** (`index.php`): + ```php + 'moinframe.loop.ui.component.key' => 'Default English text', + ``` + +2. **Add translation key to snippet** (`snippets/loop/app.php`): + ```php + 'ui.component.key' => t('moinframe.loop.ui.component.key'), + ``` + +3. **Use translation in Svelte components**: + ```svelte + {t("ui.component.key", "Default fallback text")} + ``` + +**Translation Architecture:** +- PHP translations defined in `index.php` under `'translations'` key +- Frontend translations passed via `snippets/loop/app.php` +- Svelte components use `t()` function from `store/translations.svelte.ts` +- Always provide fallback text in components for development + +## Linting and Code Quality + +- Biome for frontend linting (config in `biome.json`) +- PHPStan level 8 analysis with strict rules +- TypeScript checking via `svelte-check` diff --git a/site/plugins/loop/LICENSE.md b/site/plugins/loop/LICENSE.md new file mode 100755 index 0000000..716097a --- /dev/null +++ b/site/plugins/loop/LICENSE.md @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 Justus Kraft + +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/site/plugins/loop/README.md b/site/plugins/loop/README.md new file mode 100755 index 0000000..d3f6b82 --- /dev/null +++ b/site/plugins/loop/README.md @@ -0,0 +1,96 @@ +![Kirby Loop](kirby-loop.png) +# Kirby Loop + +Stay in the loop. A powerful visual feedback plugin for Kirby CMS that allows users to add comments directly on web pages by clicking on elements. Perfect for client reviews, content collaboration, and team feedback workflows. + +## Features + +- 🎯 **Click-to-comment**: Toggle between navigate mode for normal browsing and comment mode to click anywhere and add feedback +- 🌍 **Multi-language support**: Full support for Kirby's multi-language sites with automatic language detection +- πŸ’¬ **Threaded comments**: Reply to comments for contextual discussions +- πŸ”’ **Authentication**: Choose whether to restrict access to authenticated users only or allow guest commenting +- 🎨 **Theming**: Built-in light/dark themes with full customization support +- βš™οΈ **Auto-injection**: Automatically inject into all pages or manually control placement +- πŸ—„οΈ **Local storage**: All data stored locally in SQLite - no external dependencies + +## How It Works + +Kirby Loop transforms your website into a collaborative workspace where teams can provide feedback directly on web pages. + +**Visual Context**: Users can click on any element to leave specific comments, creating a direct connection between feedback and content. + +**Streamlined Communication**: Team members, clients, and stakeholders can point out issues and suggest improvements right where they see them. + +**Organized Discussions**: Comments support threaded replies and can be marked as resolved to maintain a clean feedback pipeline. + +**Privacy & Data Control**: All feedback data is stored locally in a SQLite database on your server - no external services or cloud dependencies. + +## Quick Start + +1. **Install**: `composer require moinframe/kirby-loop` +2. **Use**: Kirby Loop is automatically active on all pages for authenticated users +3. **Configure**: Customize settings in `site/config/config.php` (optional) + +## Documentation + +Detailed documentation is available in the `docs/` folder: + +- **[Installation Guide](https://moinfra.me/docs/moinframe-loop/01-installation)** - Complete installation instructions +- **[Configuration Guide](https://moinfra.me/docs/moinframe-loop/02-configuration)** - All configuration options and advanced settings +- **[Multi-Language Support](https://moinfra.me/docs/moinframe-loop/03-multi-language)** - Setup and customization for multi-language sites +- **[API Reference](https://moinfra.me/docs/moinframe-loop/05-api)** - API documentation +- **[Theming Guide](https://moinfra.me/docs/moinframe-loop/04-theming)** - Theme customization and creating custom themes + +## Basic Configuration + +Add these options to your `site/config/config.php`: + +```php +return [ + // Enable/disable loop (default: true) + 'moinframe.loop.enabled' => true, + + // Or use a callback for conditional enabling + 'moinframe.loop.enabled' => function($page) { + return in_array($page->template()->name(), ['article', 'blog']); + }, + + // Disable auto-injection (default: true) + 'moinframe.loop.auto-inject' => false, + + // Set header position: 'top' or 'bottom' (default: 'top') + 'moinframe.loop.position' => 'bottom', + + // Make feedback public (default: false - requires auth) + 'moinframe.loop.public' => true, + + // Force UI language (default: null - auto-detect) + 'moinframe.loop.language' => 'de', + + // Set theme: 'default', 'dark', or custom theme name + 'moinframe.loop.theme' => 'dark', +]; +``` + +See the [Configuration Guide](https://moinfra.me/docs/moinframe-loop/02-configuration) for all available options. + +## Requirements + +- Kirby CMS 4.0+ +- PHP 8.3+ +- SQLite support + +## Important Notes + +> [!WARNING] +> Pages with the snippet automatically have Kirby's page **cache** **disabled**. This is necessary for CSRF token validation and User authentication checks. + + +## Support + +- **Documentation**: See the [Documentation](https://moinfra.me/docs/moinframe-loop) for installation and usage instructions +- **Issues**: Report bugs on [GitHub Issues](https://github.com/moinframe/kirby-loop/issues) + +## License + +MIT License - see [LICENSE.md](LICENSE.md) diff --git a/site/plugins/loop/assets/loop.js b/site/plugins/loop/assets/loop.js new file mode 100644 index 0000000..e679326 --- /dev/null +++ b/site/plugins/loop/assets/loop.js @@ -0,0 +1,3941 @@ +(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('kirby-loop{--color-neutral-h:900;--color-neutral-c:0;--color-accent-h:900;--color-accent-c:.18;--color-accent-l:.75;--color-accent-dark-factor:.4;--color-accent-light-factor:1.2;--color-neutral-l-0:1;--color-neutral-l-100:.95;--color-neutral-l-200:.9;--color-neutral-l-300:.7;--color-neutral-l-400:.6;--color-neutral-l-600:.4;--color-neutral-l-500:.5;--color-neutral-l-700:.3;--color-neutral-l-800:.2;--color-neutral-l-900:.1;--color-neutral-l-1000:0}kirby-loop[theme=dark]{--color-accent-l:.85;--color-neutral-l-0:0;--color-neutral-l-100:.1;--color-neutral-l-200:.2;--color-neutral-l-300:.45;--color-neutral-l-400:.5;--color-neutral-l-600:.55;--color-neutral-l-500:.6;--color-neutral-l-700:.7;--color-neutral-l-800:.8;--color-neutral-l-900:.95;--color-neutral-l-1000:1;--shadow-s:0 .1em .25em oklch(var(--color-neutral-l-100)var(--color-neutral-c)var(--color-neutral-h)/.1);--shadow-m:0 2px 8px oklch(var(--color-neutral-l-100)var(--color-neutral-c)var(--color-neutral-h)/.08),0 8px 16px oklch(var(--color-neutral-l-100)var(--color-neutral-c)var(--color-neutral-h)/.12),0 16px 24px oklch(var(--color-neutral-l-100)var(--color-neutral-c)var(--color-neutral-h)/.08);--shadow-l:0 4px 16px oklch(var(--color-neutral-l-100)var(--color-neutral-c)var(--color-neutral-h)/.08),0 12px 32px oklch(var(--color-neutral-l-100)var(--color-neutral-c)var(--color-neutral-h)/.12),0 24px 48px oklch(var(--color-neutral-l-100)var(--color-neutral-c)var(--color-neutral-h)/.16),0 48px 80px oklch(var(--color-neutral-l-100)var(--color-neutral-c)var(--color-neutral-h)/.08);--shadow-light-edge:inset 1px 1px 1px oklch(var(--color-neutral-l-1000)var(--color-neutral-c)var(--color-neutral-h)/.3);--shadow-dark-edge:inset -1px -1px 1px oklch(var(--color-neutral-l-100)var(--color-neutral-c)var(--color-neutral-h)/.3);--background-glass:linear-gradient(135deg,transparent,var(--color-base-background-o-50));--panel-threads-background:oklch(var(--color-neutral-l-200)var(--color-neutral-c)var(--color-neutral-h)/.99)}kirby-loop{--color-base:var(--color-neutral-900);--color-base-background:var(--color-neutral-0);--color-base-background-o-5:oklch(var(--color-neutral-l-0)var(--color-neutral-c)var(--color-neutral-h)/.05);--color-base-background-o-10:oklch(var(--color-neutral-l-0)var(--color-neutral-c)var(--color-neutral-h)/.1);--color-base-background-o-20:oklch(var(--color-neutral-l-0)var(--color-neutral-c)var(--color-neutral-h)/.2);--color-base-background-o-50:oklch(var(--color-neutral-l-0)var(--color-neutral-c)var(--color-neutral-h)/.5);--color-base-background-o-60:oklch(var(--color-neutral-l-0)var(--color-neutral-c)var(--color-neutral-h)/.6);--color-base-background-o-75:oklch(var(--color-neutral-l-0)var(--color-neutral-c)var(--color-neutral-h)/.75);--color-base-background-o-95:oklch(var(--color-neutral-l-0)var(--color-neutral-c)var(--color-neutral-h)/.95);--color-accent-light:oklch(calc(var(--color-accent-l)*var(--color-accent-light-factor))var(--color-accent-c)var(--color-accent-h));--color-accent:oklch(var(--color-accent-l)var(--color-accent-c)var(--color-accent-h));--color-accent-dark:oklch(calc(var(--color-accent-l)*var(--color-accent-dark-factor))var(--color-accent-c)var(--color-accent-h));--color-neutral-0:oklch(var(--color-neutral-l-0)var(--color-neutral-c)var(--color-neutral-h));--color-neutral-100:oklch(var(--color-neutral-l-100)var(--color-neutral-c)var(--color-neutral-h));--color-neutral-200:oklch(var(--color-neutral-l-200)var(--color-neutral-c)var(--color-neutral-h));--color-neutral-300:oklch(var(--color-neutral-l-300)var(--color-neutral-c)var(--color-neutral-h));--color-neutral-400:oklch(var(--color-neutral-l-400)var(--color-neutral-c)var(--color-neutral-h));--color-neutral-500:oklch(var(--color-neutral-l-500)var(--color-neutral-c)var(--color-neutral-h));--color-neutral-600:oklch(var(--color-neutral-l-600)var(--color-neutral-c)var(--color-neutral-h));--color-neutral-700:oklch(var(--color-neutral-l-700)var(--color-neutral-c)var(--color-neutral-h));--color-neutral-800:oklch(var(--color-neutral-l-800)var(--color-neutral-c)var(--color-neutral-h));--color-neutral-900:oklch(var(--color-neutral-l-900)var(--color-neutral-c)var(--color-neutral-h));--color-neutral-1000:oklch(var(--color-neutral-l-1000)var(--color-neutral-c)var(--color-neutral-h));--color-success:oklch(.65 .15 150);--color-warning:oklch(.75 .15 80);--color-error:oklch(.65 .18 25);--color-info:oklch(.65 .15 220);--font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol",sans-serif;--line-height:1.4;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:550;--font-weight-bold:700;--font-size-3:clamp(1.9531rem,1.4262rem + 1.7565vw,3.5339rem);--font-size-4:clamp(1.5625rem,1.2503rem + 1.0408vw,2.4992rem);--font-size-5:clamp(1.25rem,1.0775rem + .575vw,1.7675rem);--font-size-6:clamp(1rem,.9167rem + .2778vw,1.25rem);--font-size-7:clamp(.8rem,.772rem + .0934vw,.884rem);--font-size-8:clamp(.6252rem,.6449rem + -.0165vw,.64rem);--border-radius-s:.125rem;--border-radius:.25rem;--border-radius-rounded:4096px;--space-2xs:clamp(.25rem,.2292rem + .0694vw,.3125rem);--space-xs:clamp(.5rem,.4583rem + .1389vw,.625rem);--space-s:clamp(1rem,.9167rem + .2778vw,1.25rem);--space-m:clamp(1.5rem,1.375rem + .4167vw,1.875rem);--space-l:clamp(2rem,1.8333rem + .5556vw,2.5rem);--space-2xs-xs:clamp(.25rem,.125rem + .4167vw,.625rem);--space-xs-s:clamp(.5rem,.25rem + .8333vw,1.25rem);--space-s-m:clamp(1rem,.7083rem + .9722vw,1.875rem);--space-m-l:clamp(1.5rem,1.1667rem + 1.1111vw,2.5rem);--space-s-l:clamp(1rem,.5rem + 1.6667vw,2.5rem);--shadow-s:0 .1em .25em oklch(var(--color-neutral-l-900)var(--color-neutral-c)var(--color-neutral-h)/.1);--shadow-m:0 2px 8px oklch(var(--color-neutral-l-900)var(--color-neutral-c)var(--color-neutral-h)/.08),0 8px 16px oklch(var(--color-neutral-l-900)var(--color-neutral-c)var(--color-neutral-h)/.12),0 16px 24px oklch(var(--color-neutral-l-900)var(--color-neutral-c)var(--color-neutral-h)/.08);--shadow-l:0 4px 16px oklch(var(--color-neutral-l-900)var(--color-neutral-c)var(--color-neutral-h)/.08),0 12px 32px oklch(var(--color-neutral-l-900)var(--color-neutral-c)var(--color-neutral-h)/.12),0 24px 48px oklch(var(--color-neutral-l-900)var(--color-neutral-c)var(--color-neutral-h)/.16),0 48px 80px oklch(var(--color-neutral-l-900)var(--color-neutral-c)var(--color-neutral-h)/.08);--shadow-light-edge:inset 1px 1px 1px oklch(var(--color-neutral-l-0)var(--color-neutral-c)var(--color-neutral-h)/.3);--shadow-dark-edge:inset 0 -1px 1px oklch(var(--color-neutral-l-900)var(--color-neutral-c)var(--color-neutral-h)/.3);--backdrop-blur:blur(6px);--backdrop-glass:var(--backdrop-blur)saturate(1.4)brightness(1.2);--background-glass:linear-gradient(135deg,transparent,var(--color-base-background-o-95));--background-glass-frosted:linear-gradient(0deg,var(--color-base-background-o-75)0%,var(--color-base-background-o-95)50%);--opacity-subtle:.5;--opacity-medium:.7;--opacity-strong:.9;--outline-color:var(--color-accent);--outline-offset:.25rem;--transition-duration:.2s;--transition-duration-jump:.4s;--transition-easing-jump:cubic-bezier(.44,1.2,.64,1);--transition-easing:cubic-bezier(0,0,.2,1);--z-loop-marker:9998;--z-loop-panel:9999;--z-loop-dialog:10000;--author-avatar-color:var(--color-neutral-600);--author-avatar-background-color:var(--color-neutral-100);--author-avatar-size:2.5rem;--author-avatar-border-radius:var(--border-radius-rounded);--author-avatar-font-size:var(--font-size-6);--button-background:transparent;--button-color:var(--color-neutral-600);--button-border-radius:var(--border-radius);--button-padding:0 var(--space-xs);--button-gap:var(--space-2xs);--button-font-size:var(--font-size-7);--button-font-weight:var(--font-weight-medium);--button-height:2.25rem;--button-transition:var(--transition-duration)var(--transition-easing);--button-outline-color:var(--outline-color);--button-outline-offset:var(--outline-offset);--button-hover-color:var(--color-neutral-900);--button-hover-background:var(--color-neutral-200);--button-header-background:transparent;--button-header-height:3rem;--button-header-padding:0 var(--space-s);--button-header-hover-background:var(--color-base-background-o-95);--button-header-blend-mode:multiply;--button-panel-background:transparent;--button-panel-padding:0 calc(var(--space-s)*.4);--button-solid-background:var(--color-neutral-100);--button-solid-hover-color:var(--color-neutral-900);--button-solid-hover-background:var(--color-neutral-200);--button-small-height:1.5rem;--button-small-font-size:var(--font-size-7);--button-icon-background:var(--color-neutral-0);--button-icon-color:var(--color-neutral-500);--button-icon-height:3rem;--button-icon-shadow:var(--shadow-s);--button-icon-border-radius:var(--border-radius-rounded);--button-icon-font-size:var(--font-size-6);--button-icon-hover-background:var(--color-neutral-200);--button-icon-hover-color:var(--color-neutral-900);--button-marker-background:var(--color-accent);--button-marker-color:var(--color-accent-dark);--button-marker-font-weight:var(--font-weight-bold);--button-marker-border-radius:var(--border-radius-rounded);--button-marker-highlighted-background:var(--color-accent);--button-marker-highlighted-color:var(--color-accent-dark);--button-filter-background:transparent;--button-filter-color:var(--color-neutral-500);--button-filter-height:1.75rem;--button-filter-font-size:var(--font-size-8);--button-filter-padding:0 var(--space-xs);--button-filter-border-radius:calc(var(--border-radius) - 2px);--button-filter-hover-color:var(--color-neutral-700);--button-filter-hover-background:var(--color-neutral-200);--button-filter-active-background:var(--color-base-background);--button-filter-active-color:var(--color-base);--button-filter-active-font-weight:var(--font-weight-medium);--button-menu-item-background:transparent;--button-menu-item-color:var(--color-neutral-700);--button-menu-item-padding:var(--space-2xs)var(--space-xs);--button-menu-item-border-radius:calc(var(--border-radius) - 2px);--button-menu-item-font-size:var(--font-size-7);--button-menu-item-gap:var(--space-2xs);--button-menu-item-hover-background:var(--color-neutral-100);--button-menu-item-hover-color:var(--color-neutral-900);--button-menu-item-active-background:var(--color-accent-light);--button-menu-item-active-color:var(--color-accent-dark);--button-menu-item-active-font-weight:var(--font-weight-medium);--button-active-background:var(--color-accent);--button-active-color:var(--color-accent-dark);--button-disabled-opacity:var(--opacity-subtle);--button-disabled-hover-color:var(--color-neutral-700);--button-disabled-hover-background:var(--color-neutral-100);--comment-avatar-size:2.5rem;--comment-marker-background:var(--color-neutral-200);--comment-marker-color:var(--color-neutral-800);--comment-line-background:var(--color-neutral-100);--comment-line-width:.1rem;--comment-line-offset:calc(var(--space-s) + var(--comment-avatar-size)/2);--comment-header-font-size:var(--font-size-7);--comment-header-padding:var(--space-s);--comment-header-gap:var(--space-s);--comment-header-outline-color:var(--outline-color);--comment-header-outline-offset:-2px;--comment-header-border-radius:var(--border-radius);--comment-content-padding:var(--space-xs);--comment-content-background:var(--color-neutral-100);--comment-content-background-dark:var(--color-neutral-200);--comment-content-border-radius:var(--border-radius);--comment-author-gap:var(--space-xs);--comment-author-margin-bottom:var(--space-2xs);--comment-timestamp-font-size:var(--font-size-8);--comment-timestamp-color:var(--color-neutral-300);--comment-replies-padding:0 var(--space-s);--comment-replies-gap:var(--space-s);--comment-footer-padding:var(--space-s);--comment-footer-gap:var(--space-s);--comment-buttons-gap:var(--space-xs);--comment-dialog-position:absolute;--comment-dialog-max-width:300px;--comment-dialog-border-radius:var(--border-radius);--comment-dialog-shadow:var(--shadow-s);--comment-dialog-backdrop-background:transparent;--comment-dialog-textarea-font-size:var(--font-size-6);--comment-form-background:var(--color-base-background);--comment-form-color:var(--color-base);--comment-form-border:1px solid var(--color-neutral-200);--comment-form-border-radius:var(--border-radius);--comment-form-textarea-height:15ch;--comment-form-textarea-padding:var(--space-s);--comment-form-textarea-background:var(--color-base-background);--comment-form-textarea-font-family:var(--font-family);--comment-form-textarea-font-size:var(--font-size-7);--comment-form-footer-padding:var(--space-xs);--comment-form-footer-gap:var(--space-xs);--comment-form-hint-font-size:var(--font-size-8);--comment-form-hint-color:var(--color-neutral-300);--comment-form-hint-padding:0 var(--space-xs)var(--space-xs)var(--space-xs);--context-menu-container-bottom:var(--space-s);--context-menu-container-right:var(--space-s);--context-menu-container-z-index:10;--context-menu-trigger-size:2.5rem;--context-menu-trigger-border-radius:var(--border-radius-rounded);--context-menu-background:var(--color-base-background);--context-menu-border-radius:var(--border-radius);--context-menu-shadow:var(--shadow-s);--context-menu-padding:var(--space-xs);--context-menu-min-width:12rem;--context-menu-backdrop-background:transparent;--context-menu-section-gap:var(--space-2xs);--context-menu-title-font-size:var(--font-size-8);--context-menu-title-font-weight:var(--font-weight-medium);--context-menu-title-color:var(--color-neutral-500);--context-menu-title-margin-bottom:var(--space-2xs);--context-menu-title-letter-spacing:.05em;--context-menu-filter-gap:1px;--context-menu-filter-dot-size:.5em;--context-menu-filter-dot-border-radius:50%;--context-menu-filter-dot-margin-right:var(--space-2xs);--context-menu-filter-dot-open-background:var(--color-accent);--context-menu-filter-dot-resolved-background:var(--color-neutral-400);--header-position:fixed;--header-top:var(--space-xs);--header-transform:translateX(-50%);--header-color:var(--color-base);--header-border-radius:var(--border-radius-rounded);--header-z-index:9999;--header-bottom-position:var(--space-xs);--header-backdrop-filter:var(--backdrop-glass);--header-background:var(--background-glass);--header-count-size:2rem;--header-count-border-radius:var(--border-radius-rounded);--header-count-backdrop-filter:var(--backdrop-glass);--header-count-background:var(--background-glass);--marker-size:2rem;--marker-position:absolute;--marker-z-index:var(--z-loop-marker);--marker-transform:translate(-50%,-50%);--marker-border-radius:var(--border-radius-rounded);--panel-width:380px;--panel-mobile-width:85svw;--panel-position:fixed;--panel-right:var(--space-xs);--panel-top:var(--space-xs);--panel-height:calc(100svh - var(--space-xs)*2);--panel-transform-closed:translateX(calc(100% + var(--space-xs)));--panel-transform-open:translateX(0);--panel-color:var(--color-base);--panel-border-radius:var(--border-radius);--panel-border-top-left-radius:0;--panel-transition:var(--transition-duration-jump)var(--transition-easing-jump);--panel-z-index:var(--z-loop-panel);--panel-shadow:var(--shadow-m);--panel-header-transform-closed:translate(-95%);--panel-header-transform-open:translate(calc(-100% + 1px));--panel-header-transform-hover:translate(calc(-100% + 1px));--panel-header-border-radius:var(--border-radius-rounded);--panel-header-gap:var(--space-xs);--panel-header-backdrop-filter:var(--backdrop-glass);--panel-header-background:var(--background-glass);--panel-threads-background:var(--color-base-background-o-95);--panel-threads-backdrop:var(--backdrop-blur);--panel-threads-border-radius:var(--border-radius);--panel-threads-border-top-left-radius:0;--panel-threads-padding:0 0 var(--space-s)0;--panel-threads-item-margin:var(--space-s);--panel-threads-scrollbar-width:thin;--panel-no-threads-padding:var(--space-s)var(--space-l);--panel-no-threads-font-size:var(--font-size-6);--panel-no-threads-color:var(--color-neutral-300);--reply-gap:var(--space-s);--reply-content-padding:var(--space-xs);--reply-content-background:var(--color-neutral-100);--reply-content-background-dark:var(--color-neutral-200);--reply-content-border-radius:var(--border-radius);--reply-header-gap:var(--space-xs);--reply-header-margin-bottom:var(--space-2xs);--reply-timestamp-font-size:var(--font-size-8);--reply-timestamp-color:var(--color-neutral-300);--welcome-dialog-background:var(--background-glass-frosted);--welcome-dialog-backdrop-filter:var(--backdrop-glass);--welcome-dialog-border:0px;--welcome-dialog-border-radius:var(--border-radius);--welcome-dialog-shadow:var(--shadow-l),var(--shadow-light-edge),var(--shadow-dark-edge);--welcome-dialog-max-width:500px;--welcome-dialog-backdrop-background:var(--color-base-background-o-10);--welcome-dialog-backdrop-backdrop-filter:none;--welcome-dialog-form-padding:var(--space-l);--welcome-dialog-title-margin:0 0 var(--space-s)0;--welcome-dialog-title-font-size:var(--font-size-4);--welcome-dialog-title-color:var(--color-base);--welcome-dialog-title-font-weight:var(--font-weight-bold);--welcome-dialog-text-margin:0 0 var(--space-m)0;--welcome-dialog-text-font-size:var(--font-size-6);--welcome-dialog-text-color:var(--color-neutral-600);--welcome-dialog-text-line-height:var(--line-height);--welcome-dialog-name-section-margin:var(--space-l);--welcome-dialog-input-border:1px solid var(--color-neutral-300);--welcome-dialog-input-border-radius:var(--border-radius-s);--welcome-dialog-input-padding:var(--space-xs);--welcome-dialog-input-font-family:var(--font-family);--welcome-dialog-input-font-size:var(--font-size-6);--welcome-dialog-input-color:var(--color-base);--welcome-dialog-input-background:var(--color-base-background);--welcome-dialog-input-outline-color:var(--outline-color);--welcome-dialog-input-outline-offset:var(--outline-offset);--welcome-dialog-footer-gap:var(--space-xs);--icon-size:1em}kirby-loop[data-theme=dark]{--color-neutral-l-0:0;--color-neutral-l-100:.1;--color-neutral-l-200:.2;--color-neutral-l-300:.3;--color-neutral-l-400:.4;--color-neutral-l-500:.5;--color-neutral-l-600:.6;--color-neutral-l-700:.7;--color-neutral-l-800:.9;--color-neutral-l-900:.95;--color-neutral-l-1000:1}kirby-loop{font-family:var(--font-family);line-height:var(--line-height);font-weight:var(--font-weight-normal);font-size:var(--font-size-7);box-sizing:border-box}html.loop-overlay-open a{pointer-events:none}')),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})(); +var io = Object.defineProperty; +var Dr = (e) => { + throw TypeError(e); +}; +var lo = (e, t, r) => t in e ? io(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r; +var oe = (e, t, r) => lo(e, typeof t != "symbol" ? t + "" : t, r), jr = (e, t, r) => t.has(e) || Dr("Cannot " + r); +var de = (e, t, r) => (jr(e, t, "read from private field"), r ? r.call(e) : t.get(e)), ar = (e, t, r) => t.has(e) ? Dr("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), sr = (e, t, r, n) => (jr(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r); +const uo = "5"; +var nn; +typeof window < "u" && ((nn = window.__svelte ?? (window.__svelte = {})).v ?? (nn.v = /* @__PURE__ */ new Set())).add(uo); +const pr = 1, br = 2, on = 4, co = 8, fo = 16, vo = 1, ho = 2, mo = 4, go = 8, po = 16, bo = 1, wo = 2, wr = "[", _r = "[!", yr = "]", wt = {}, fe = Symbol(), _o = "http://www.w3.org/1999/xhtml", Hr = !1, Se = 2, an = 4, Zt = 8, kr = 16, Le = 32, rt = 64, Tt = 128, Ce = 256, Ot = 512, be = 1024, De = 2048, dt = 4096, Te = 8192, Jt = 16384, yo = 32768, xr = 65536, ko = 1 << 17, xo = 1 << 19, sn = 1 << 20, Ke = Symbol("$state"), ln = Symbol("legacy props"), $o = Symbol(""); +var $r = Array.isArray, Co = Array.prototype.indexOf, Cr = Array.from, At = Object.keys, Lt = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, un = Object.getOwnPropertyDescriptors, zo = Object.prototype, So = Array.prototype, zr = Object.getPrototypeOf; +function Eo(e) { + return e(); +} +function Dt(e) { + for (var t = 0; t < e.length; t++) + e[t](); +} +const qo = typeof requestIdleCallback > "u" ? (e) => setTimeout(e, 1) : requestIdleCallback; +let yt = [], kt = []; +function cn() { + var e = yt; + yt = [], Dt(e); +} +function dn() { + var e = kt; + kt = [], Dt(e); +} +function Kt(e) { + yt.length === 0 && queueMicrotask(cn), yt.push(e); +} +function Io(e) { + kt.length === 0 && qo(dn), kt.push(e); +} +function Fr() { + yt.length > 0 && cn(), kt.length > 0 && dn(); +} +function fn(e) { + return e === this.v; +} +function Mo(e, t) { + return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function"; +} +function Sr(e) { + return !Mo(e, this.v); +} +function Po(e) { + throw new Error("https://svelte.dev/e/effect_in_teardown"); +} +function No() { + throw new Error("https://svelte.dev/e/effect_in_unowned_derived"); +} +function Ro(e) { + throw new Error("https://svelte.dev/e/effect_orphan"); +} +function To() { + throw new Error("https://svelte.dev/e/effect_update_depth_exceeded"); +} +function Oo() { + throw new Error("https://svelte.dev/e/hydration_failed"); +} +function Ao(e) { + throw new Error("https://svelte.dev/e/props_invalid_value"); +} +function Lo() { + throw new Error("https://svelte.dev/e/state_descriptors_fixed"); +} +function Do() { + throw new Error("https://svelte.dev/e/state_prototype_fixed"); +} +function jo() { + throw new Error("https://svelte.dev/e/state_unsafe_local_read"); +} +function Ho() { + throw new Error("https://svelte.dev/e/state_unsafe_mutation"); +} +let ft = !1, Fo = !1; +function Vo() { + ft = !0; +} +const xt = /* @__PURE__ */ new Map(); +function ve(e, t) { + var r = { + f: 0, + // TODO ideally we could skip this altogether, but it causes type errors + v: e, + reactions: null, + equals: fn, + rv: 0, + wv: 0 + }; + return r; +} +function ue(e) { + return /* @__PURE__ */ vn(ve(e)); +} +// @__NO_SIDE_EFFECTS__ +function Gt(e, t = !1) { + var n; + const r = ve(e); + return t || (r.equals = Sr), ft && U !== null && U.l !== null && ((n = U.l).s ?? (n.s = [])).push(r), r; +} +function Vr(e, t = !1) { + return /* @__PURE__ */ vn(/* @__PURE__ */ Gt(e, t)); +} +// @__NO_SIDE_EFFECTS__ +function vn(e) { + return Y !== null && !ze && (Y.f & Se) !== 0 && (Ie === null ? Wo([e]) : Ie.push(e)), e; +} +function Mt(e, t) { + return T( + e, + Ue(() => h(e)) + ), t; +} +function T(e, t) { + return Y !== null && !ze && Et() && (Y.f & (Se | kr)) !== 0 && // If the source was created locally within the current derived, then + // we allow the mutation. + (Ie === null || !Ie.includes(e)) && Ho(), dr(e, t); +} +function dr(e, t) { + if (!e.equals(t)) { + var r = e.v; + zt ? xt.set(e, t) : xt.set(e, r), e.v = t, e.wv = kn(), hn(e, De), Et() && B !== null && (B.f & be) !== 0 && (B.f & (Le | rt)) === 0 && (ke === null ? Xo([e]) : ke.push(e)); + } + return t; +} +function hn(e, t) { + var r = e.reactions; + if (r !== null) + for (var n = Et(), o = r.length, a = 0; a < o; a++) { + var s = r[a], i = s.f; + (i & De) === 0 && (!n && s === B || (Pe(s, t), (i & (be | Ce)) !== 0 && ((i & Se) !== 0 ? hn( + /** @type {Derived} */ + s, + dt + ) : er( + /** @type {Effect} */ + s + )))); + } +} +// @__NO_SIDE_EFFECTS__ +function ee(e) { + var t = Se | De, r = Y !== null && (Y.f & Se) !== 0 ? ( + /** @type {Derived} */ + Y + ) : null; + return B === null || r !== null && (r.f & Ce) !== 0 ? t |= Ce : B.f |= sn, { + ctx: U, + deps: null, + effects: null, + equals: fn, + f: t, + fn: e, + reactions: null, + rv: 0, + v: ( + /** @type {V} */ + null + ), + wv: 0, + parent: r ?? B + }; +} +// @__NO_SIDE_EFFECTS__ +function me(e) { + const t = /* @__PURE__ */ ee(e); + return t.equals = Sr, t; +} +function mn(e) { + var t = e.effects; + if (t !== null) { + e.effects = null; + for (var r = 0; r < t.length; r += 1) + Ae( + /** @type {Effect} */ + t[r] + ); + } +} +function Bo(e) { + for (var t = e.parent; t !== null; ) { + if ((t.f & Se) === 0) + return ( + /** @type {Effect} */ + t + ); + t = t.parent; + } + return null; +} +function Yo(e) { + var t, r = B; + Xe(Bo(e)); + try { + mn(e), t = $n(e); + } finally { + Xe(r); + } + return t; +} +function gn(e) { + var t = Yo(e), r = (Be || (e.f & Ce) !== 0) && e.deps !== null ? dt : be; + Pe(e, r), e.equals(t) || (e.v = t, e.wv = kn()); +} +function Er(e) { + console.warn("https://svelte.dev/e/hydration_mismatch"); +} +let A = !1; +function Re(e) { + A = e; +} +let H; +function pe(e) { + if (e === null) + throw Er(), wt; + return H = e; +} +function Ct() { + return pe( + /** @type {TemplateNode} */ + /* @__PURE__ */ je(H) + ); +} +function x(e) { + if (A) { + if (/* @__PURE__ */ je(H) !== null) + throw Er(), wt; + H = e; + } +} +function ge(e = 1) { + if (A) { + for (var t = e, r = H; t--; ) + r = /** @type {TemplateNode} */ + /* @__PURE__ */ je(r); + H = r; + } +} +function fr() { + for (var e = 0, t = H; ; ) { + if (t.nodeType === 8) { + var r = ( + /** @type {Comment} */ + t.data + ); + if (r === yr) { + if (e === 0) return t; + e -= 1; + } else (r === wr || r === _r) && (e += 1); + } + var n = ( + /** @type {TemplateNode} */ + /* @__PURE__ */ je(t) + ); + t.remove(), t = n; + } +} +function J(e, t = null, r) { + if (typeof e != "object" || e === null || Ke in e) + return e; + const n = zr(e); + if (n !== zo && n !== So) + return e; + var o = /* @__PURE__ */ new Map(), a = $r(e), s = ve(0); + a && o.set("length", ve( + /** @type {any[]} */ + e.length + )); + var i; + return new Proxy( + /** @type {any} */ + e, + { + defineProperty(u, c, v) { + (!("value" in v) || v.configurable === !1 || v.enumerable === !1 || v.writable === !1) && Lo(); + var m = o.get(c); + return m === void 0 ? (m = ve(v.value), o.set(c, m)) : T(m, J(v.value, i)), !0; + }, + deleteProperty(u, c) { + var v = o.get(c); + if (v === void 0) + c in u && o.set(c, ve(fe)); + else { + if (a && typeof c == "string") { + var m = ( + /** @type {Source} */ + o.get("length") + ), l = Number(c); + Number.isInteger(l) && l < m.v && T(m, l); + } + T(v, fe), Br(s); + } + return !0; + }, + get(u, c, v) { + var d; + if (c === Ke) + return e; + var m = o.get(c), l = c in u; + if (m === void 0 && (!l || (d = Ge(u, c)) != null && d.writable) && (m = ve(J(l ? u[c] : fe, i)), o.set(c, m)), m !== void 0) { + var f = h(m); + return f === fe ? void 0 : f; + } + return Reflect.get(u, c, v); + }, + getOwnPropertyDescriptor(u, c) { + var v = Reflect.getOwnPropertyDescriptor(u, c); + if (v && "value" in v) { + var m = o.get(c); + m && (v.value = h(m)); + } else if (v === void 0) { + var l = o.get(c), f = l == null ? void 0 : l.v; + if (l !== void 0 && f !== fe) + return { + enumerable: !0, + configurable: !0, + value: f, + writable: !0 + }; + } + return v; + }, + has(u, c) { + var f; + if (c === Ke) + return !0; + var v = o.get(c), m = v !== void 0 && v.v !== fe || Reflect.has(u, c); + if (v !== void 0 || B !== null && (!m || (f = Ge(u, c)) != null && f.writable)) { + v === void 0 && (v = ve(m ? J(u[c], i) : fe), o.set(c, v)); + var l = h(v); + if (l === fe) + return !1; + } + return m; + }, + set(u, c, v, m) { + var k; + var l = o.get(c), f = c in u; + if (a && c === "length") + for (var d = v; d < /** @type {Source} */ + l.v; d += 1) { + var p = o.get(d + ""); + p !== void 0 ? T(p, fe) : d in u && (p = ve(fe), o.set(d + "", p)); + } + l === void 0 ? (!f || (k = Ge(u, c)) != null && k.writable) && (l = ve(void 0), T(l, J(v, i)), o.set(c, l)) : (f = l.v !== fe, T(l, J(v, i))); + var w = Reflect.getOwnPropertyDescriptor(u, c); + if (w != null && w.set && w.set.call(m, v), !f) { + if (a && typeof c == "string") { + var I = ( + /** @type {Source} */ + o.get("length") + ), _ = Number(c); + Number.isInteger(_) && _ >= I.v && T(I, _ + 1); + } + Br(s); + } + return !0; + }, + ownKeys(u) { + h(s); + var c = Reflect.ownKeys(u).filter((l) => { + var f = o.get(l); + return f === void 0 || f.v !== fe; + }); + for (var [v, m] of o) + m.v !== fe && !(v in u) && c.push(v); + return c; + }, + setPrototypeOf() { + Do(); + } + } + ); +} +function Br(e, t = 1) { + T(e, e.v + t); +} +var Yr, pn, bn, wn, _n; +function vr() { + if (Yr === void 0) { + Yr = window, pn = document, bn = /Firefox/.test(navigator.userAgent); + var e = Element.prototype, t = Node.prototype; + wn = Ge(t, "firstChild").get, _n = Ge(t, "nextSibling").get, e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0, Text.prototype.__t = void 0; + } +} +function Ye(e = "") { + return document.createTextNode(e); +} +// @__NO_SIDE_EFFECTS__ +function Ee(e) { + return wn.call(e); +} +// @__NO_SIDE_EFFECTS__ +function je(e) { + return _n.call(e); +} +function C(e, t) { + if (!A) + return /* @__PURE__ */ Ee(e); + var r = ( + /** @type {TemplateNode} */ + /* @__PURE__ */ Ee(H) + ); + if (r === null) + r = H.appendChild(Ye()); + else if (t && r.nodeType !== 3) { + var n = Ye(); + return r == null || r.before(n), pe(n), n; + } + return pe(r), r; +} +function Oe(e, t) { + if (!A) { + var r = ( + /** @type {DocumentFragment} */ + /* @__PURE__ */ Ee( + /** @type {Node} */ + e + ) + ); + return r instanceof Comment && r.data === "" ? /* @__PURE__ */ je(r) : r; + } + return H; +} +function V(e, t = 1, r = !1) { + let n = A ? H : e; + for (var o; t--; ) + o = n, n = /** @type {TemplateNode} */ + /* @__PURE__ */ je(n); + if (!A) + return n; + var a = n == null ? void 0 : n.nodeType; + if (r && a !== 3) { + var s = Ye(); + return n === null ? o == null || o.after(s) : n.before(s), pe(s), s; + } + return pe(n), /** @type {TemplateNode} */ + n; +} +function qr(e) { + e.textContent = ""; +} +let Nt = !1, jt = !1, Ht = null, Qe = !1, zt = !1; +function Wr(e) { + zt = e; +} +let _t = []; +let Y = null, ze = !1; +function We(e) { + Y = e; +} +let B = null; +function Xe(e) { + B = e; +} +let Ie = null; +function Wo(e) { + Ie = e; +} +let ie = null, he = 0, ke = null; +function Xo(e) { + ke = e; +} +let yn = 1, Ft = 0, Be = !1; +function kn() { + return ++yn; +} +function St(e) { + var m; + var t = e.f; + if ((t & De) !== 0) + return !0; + if ((t & dt) !== 0) { + var r = e.deps, n = (t & Ce) !== 0; + if (r !== null) { + var o, a, s = (t & Ot) !== 0, i = n && B !== null && !Be, u = r.length; + if (s || i) { + var c = ( + /** @type {Derived} */ + e + ), v = c.parent; + for (o = 0; o < u; o++) + a = r[o], (s || !((m = a == null ? void 0 : a.reactions) != null && m.includes(c))) && (a.reactions ?? (a.reactions = [])).push(c); + s && (c.f ^= Ot), i && v !== null && (v.f & Ce) === 0 && (c.f ^= Ce); + } + for (o = 0; o < u; o++) + if (a = r[o], St( + /** @type {Derived} */ + a + ) && gn( + /** @type {Derived} */ + a + ), a.wv > e.wv) + return !0; + } + (!n || B !== null && !Be) && Pe(e, be); + } + return !1; +} +function Uo(e, t) { + for (var r = t; r !== null; ) { + if ((r.f & Tt) !== 0) + try { + r.fn(e); + return; + } catch { + r.f ^= Tt; + } + r = r.parent; + } + throw Nt = !1, e; +} +function Zo(e) { + return (e.f & Jt) === 0 && (e.parent === null || (e.parent.f & Tt) === 0); +} +function Qt(e, t, r, n) { + if (Nt) { + if (r === null && (Nt = !1), Zo(t)) + throw e; + return; + } + r !== null && (Nt = !0); + { + Uo(e, t); + return; + } +} +function xn(e, t, r = !0) { + var n = e.reactions; + if (n !== null) + for (var o = 0; o < n.length; o++) { + var a = n[o]; + (a.f & Se) !== 0 ? xn( + /** @type {Derived} */ + a, + t, + !1 + ) : t === a && (r ? Pe(a, De) : (a.f & be) !== 0 && Pe(a, dt), er( + /** @type {Effect} */ + a + )); + } +} +function $n(e) { + var f; + var t = ie, r = he, n = ke, o = Y, a = Be, s = Ie, i = U, u = ze, c = e.f; + ie = /** @type {null | Value[]} */ + null, he = 0, ke = null, Be = (c & Ce) !== 0 && (ze || !Qe || Y === null), Y = (c & (Le | rt)) === 0 ? e : null, Ie = null, Xr(e.ctx), ze = !1, Ft++; + try { + var v = ( + /** @type {Function} */ + (0, e.fn)() + ), m = e.deps; + if (ie !== null) { + var l; + if (Vt(e, he), m !== null && he > 0) + for (m.length = he + ie.length, l = 0; l < ie.length; l++) + m[he + l] = ie[l]; + else + e.deps = m = ie; + if (!Be) + for (l = he; l < m.length; l++) + ((f = m[l]).reactions ?? (f.reactions = [])).push(e); + } else m !== null && he < m.length && (Vt(e, he), m.length = he); + if (Et() && ke !== null && !ze && m !== null && (e.f & (Se | dt | De)) === 0) + for (l = 0; l < /** @type {Source[]} */ + ke.length; l++) + xn( + ke[l], + /** @type {Effect} */ + e + ); + return o !== null && (Ft++, ke !== null && (n === null ? n = ke : n.push(.../** @type {Source[]} */ + ke))), v; + } finally { + ie = t, he = r, ke = n, Y = o, Be = a, Ie = s, Xr(i), ze = u; + } +} +function Jo(e, t) { + let r = t.reactions; + if (r !== null) { + var n = Co.call(r, e); + if (n !== -1) { + var o = r.length - 1; + o === 0 ? r = t.reactions = null : (r[n] = r[o], r.pop()); + } + } + r === null && (t.f & Se) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear + // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps` + // allows us to skip the expensive work of disconnecting and immediately reconnecting it + (ie === null || !ie.includes(t)) && (Pe(t, dt), (t.f & (Ce | Ot)) === 0 && (t.f ^= Ot), mn( + /** @type {Derived} **/ + t + ), Vt( + /** @type {Derived} **/ + t, + 0 + )); +} +function Vt(e, t) { + var r = e.deps; + if (r !== null) + for (var n = t; n < r.length; n++) + Jo(e, r[n]); +} +function Ir(e) { + var t = e.f; + if ((t & Jt) === 0) { + Pe(e, be); + var r = B, n = U, o = Qe; + B = e, Qe = !0; + try { + (t & kr) !== 0 ? sa(e) : En(e), Sn(e); + var a = $n(e); + e.teardown = typeof a == "function" ? a : null, e.wv = yn; + var s = e.deps, i; + Hr && Fo && e.f & De; + } catch (u) { + Qt(u, e, r, n || e.ctx); + } finally { + Qe = o, B = r; + } + } +} +function Ko() { + try { + To(); + } catch (e) { + if (Ht !== null) + Qt(e, Ht, null); + else + throw e; + } +} +function Cn() { + var e = Qe; + try { + var t = 0; + for (Qe = !0; _t.length > 0; ) { + t++ > 1e3 && Ko(); + var r = _t, n = r.length; + _t = []; + for (var o = 0; o < n; o++) { + var a = Qo(r[o]); + Go(a); + } + } + } finally { + jt = !1, Qe = e, Ht = null, xt.clear(); + } +} +function Go(e) { + var t = e.length; + if (t !== 0) + for (var r = 0; r < t; r++) { + var n = e[r]; + if ((n.f & (Jt | Te)) === 0) + try { + St(n) && (Ir(n), n.deps === null && n.first === null && n.nodes_start === null && (n.teardown === null ? qn(n) : n.fn = null)); + } catch (o) { + Qt(o, n, null, n.ctx); + } + } +} +function er(e) { + jt || (jt = !0, queueMicrotask(Cn)); + for (var t = Ht = e; t.parent !== null; ) { + t = t.parent; + var r = t.f; + if ((r & (rt | Le)) !== 0) { + if ((r & be) === 0) return; + t.f ^= be; + } + } + _t.push(t); +} +function Qo(e) { + for (var t = [], r = e; r !== null; ) { + var n = r.f, o = (n & (Le | rt)) !== 0, a = o && (n & be) !== 0; + if (!a && (n & Te) === 0) { + if ((n & an) !== 0) + t.push(r); + else if (o) + r.f ^= be; + else { + var s = Y; + try { + Y = r, St(r) && Ir(r); + } catch (c) { + Qt(c, r, null, r.ctx); + } finally { + Y = s; + } + } + var i = r.first; + if (i !== null) { + r = i; + continue; + } + } + var u = r.parent; + for (r = r.next; r === null && u !== null; ) + r = u.next, u = u.parent; + } + return t; +} +function E(e) { + var t; + for (Fr(); _t.length > 0; ) + jt = !0, Cn(), Fr(); + return ( + /** @type {T} */ + t + ); +} +function h(e) { + var t = e.f, r = (t & Se) !== 0; + if (Y !== null && !ze) { + Ie !== null && Ie.includes(e) && jo(); + var n = Y.deps; + e.rv < Ft && (e.rv = Ft, ie === null && n !== null && n[he] === e ? he++ : ie === null ? ie = [e] : (!Be || !ie.includes(e)) && ie.push(e)); + } else if (r && /** @type {Derived} */ + e.deps === null && /** @type {Derived} */ + e.effects === null) { + var o = ( + /** @type {Derived} */ + e + ), a = o.parent; + a !== null && (a.f & Ce) === 0 && (o.f ^= Ce); + } + return r && (o = /** @type {Derived} */ + e, St(o) && gn(o)), zt && xt.has(e) ? xt.get(e) : e.v; +} +function Ue(e) { + var t = ze; + try { + return ze = !0, e(); + } finally { + ze = t; + } +} +const ea = -7169; +function Pe(e, t) { + e.f = e.f & ea | t; +} +function ta(e) { + if (!(typeof e != "object" || !e || e instanceof EventTarget)) { + if (Ke in e) + hr(e); + else if (!Array.isArray(e)) + for (let t in e) { + const r = e[t]; + typeof r == "object" && r && Ke in r && hr(r); + } + } +} +function hr(e, t = /* @__PURE__ */ new Set()) { + if (typeof e == "object" && e !== null && // We don't want to traverse DOM elements + !(e instanceof EventTarget) && !t.has(e)) { + t.add(e), e instanceof Date && e.getTime(); + for (let n in e) + try { + hr(e[n], t); + } catch { + } + const r = zr(e); + if (r !== Object.prototype && r !== Array.prototype && r !== Map.prototype && r !== Set.prototype && r !== Date.prototype) { + const n = un(r); + for (let o in n) { + const a = n[o].get; + if (a) + try { + a.call(e); + } catch { + } + } + } + } +} +function zn(e) { + B === null && Y === null && Ro(), Y !== null && (Y.f & Ce) !== 0 && B === null && No(), zt && Po(); +} +function ra(e, t) { + var r = t.last; + r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e); +} +function nt(e, t, r, n = !0) { + var o = B, a = { + ctx: U, + deps: null, + nodes_start: null, + nodes_end: null, + f: e | De, + first: null, + fn: t, + last: null, + next: null, + parent: o, + prev: null, + teardown: null, + transitions: null, + wv: 0 + }; + if (r) + try { + Ir(a), a.f |= yo; + } catch (u) { + throw Ae(a), u; + } + else t !== null && er(a); + var s = r && a.deps === null && a.first === null && a.nodes_start === null && a.teardown === null && (a.f & (sn | Tt)) === 0; + if (!s && n && (o !== null && ra(a, o), Y !== null && (Y.f & Se) !== 0)) { + var i = ( + /** @type {Derived} */ + Y + ); + (i.effects ?? (i.effects = [])).push(a); + } + return a; +} +function tr(e) { + const t = nt(Zt, null, !1); + return Pe(t, be), t.teardown = e, t; +} +function et(e) { + zn(); + var t = B !== null && (B.f & Le) !== 0 && U !== null && !U.m; + if (t) { + var r = ( + /** @type {ComponentContext} */ + U + ); + (r.e ?? (r.e = [])).push({ + fn: e, + effect: B, + reaction: Y + }); + } else { + var n = Mr(e); + return n; + } +} +function na(e) { + return zn(), vt(e); +} +function oa(e) { + const t = nt(rt, e, !0); + return () => { + Ae(t); + }; +} +function aa(e) { + const t = nt(rt, e, !0); + return (r = {}) => new Promise((n) => { + r.outro ? Bt(t, () => { + Ae(t), n(void 0); + }) : (Ae(t), n(void 0)); + }); +} +function Mr(e) { + return nt(an, e, !1); +} +function vt(e) { + return nt(Zt, e, !0); +} +function j(e, t = [], r = ee) { + const n = t.map(r); + return Pr(() => e(...n.map(h))); +} +function Pr(e, t = 0) { + return nt(Zt | kr | t, e, !0); +} +function $t(e, t = !0) { + return nt(Zt | Le, e, !0, t); +} +function Sn(e) { + var t = e.teardown; + if (t !== null) { + const r = zt, n = Y; + Wr(!0), We(null); + try { + t.call(null); + } finally { + Wr(r), We(n); + } + } +} +function En(e, t = !1) { + var r = e.first; + for (e.first = e.last = null; r !== null; ) { + var n = r.next; + (r.f & rt) !== 0 ? r.parent = null : Ae(r, t), r = n; + } +} +function sa(e) { + for (var t = e.first; t !== null; ) { + var r = t.next; + (t.f & Le) === 0 && Ae(t), t = r; + } +} +function Ae(e, t = !0) { + var r = !1; + if ((t || (e.f & xo) !== 0) && e.nodes_start !== null) { + for (var n = e.nodes_start, o = e.nodes_end; n !== null; ) { + var a = n === o ? null : ( + /** @type {TemplateNode} */ + /* @__PURE__ */ je(n) + ); + n.remove(), n = a; + } + r = !0; + } + En(e, t && !r), Vt(e, 0), Pe(e, Jt); + var s = e.transitions; + if (s !== null) + for (const u of s) + u.stop(); + Sn(e); + var i = e.parent; + i !== null && i.first !== null && qn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = null; +} +function qn(e) { + var t = e.parent, r = e.prev, n = e.next; + r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r)); +} +function Bt(e, t) { + var r = []; + Nr(e, r, !0), In(r, () => { + Ae(e), t && t(); + }); +} +function In(e, t) { + var r = e.length; + if (r > 0) { + var n = () => --r || t(); + for (var o of e) + o.out(n); + } else + t(); +} +function Nr(e, t, r) { + if ((e.f & Te) === 0) { + if (e.f ^= Te, e.transitions !== null) + for (const s of e.transitions) + (s.is_global || r) && t.push(s); + for (var n = e.first; n !== null; ) { + var o = n.next, a = (n.f & xr) !== 0 || (n.f & Le) !== 0; + Nr(n, t, a ? r : !1), n = o; + } + } +} +function Yt(e) { + Mn(e, !0); +} +function Mn(e, t) { + if ((e.f & Te) !== 0) { + e.f ^= Te, (e.f & be) === 0 && (e.f ^= be), St(e) && (Pe(e, De), er(e)); + for (var r = e.first; r !== null; ) { + var n = r.next, o = (r.f & xr) !== 0 || (r.f & Le) !== 0; + Mn(r, o ? t : !1), r = n; + } + if (e.transitions !== null) + for (const a of e.transitions) + (a.is_global || t) && a.in(); + } +} +function Pn(e) { + throw new Error("https://svelte.dev/e/lifecycle_outside_component"); +} +let U = null; +function Xr(e) { + U = e; +} +function we(e, t = !1, r) { + var n = U = { + p: U, + c: null, + d: !1, + e: null, + m: !1, + s: e, + x: null, + l: null + }; + ft && !t && (U.l = { + s: null, + u: null, + r1: [], + r2: ve(!1) + }), tr(() => { + n.d = !0; + }); +} +function _e(e) { + const t = U; + if (t !== null) { + e !== void 0 && (t.x = e); + const s = t.e; + if (s !== null) { + var r = B, n = Y; + t.e = null; + try { + for (var o = 0; o < s.length; o++) { + var a = s[o]; + Xe(a.effect), We(a.reaction), Mr(a.fn); + } + } finally { + Xe(r), We(n); + } + } + U = t.p, t.m = !0; + } + return e || /** @type {T} */ + {}; +} +function Et() { + return !ft || U !== null && U.l === null; +} +const ia = ["touchstart", "touchmove"]; +function la(e) { + return ia.includes(e); +} +function ua(e) { + A && /* @__PURE__ */ Ee(e) !== null && qr(e); +} +let Ur = !1; +function Nn() { + Ur || (Ur = !0, document.addEventListener( + "reset", + (e) => { + Promise.resolve().then(() => { + var t; + if (!e.defaultPrevented) + for ( + const r of + /**@type {HTMLFormElement} */ + e.target.elements + ) + (t = r.__on_r) == null || t.call(r); + }); + }, + // In the capture phase to guarantee we get noticed of it (no possiblity of stopPropagation) + { capture: !0 } + )); +} +function Rn(e) { + var t = Y, r = B; + We(null), Xe(null); + try { + return e(); + } finally { + We(t), Xe(r); + } +} +function ca(e, t, r, n = r) { + e.addEventListener(t, () => Rn(r)); + const o = e.__on_r; + o ? e.__on_r = () => { + o(), n(!0); + } : e.__on_r = () => n(!0), Nn(); +} +const Tn = /* @__PURE__ */ new Set(), mr = /* @__PURE__ */ new Set(); +function da(e, t, r, n = {}) { + function o(a) { + if (n.capture || bt.call(t, a), !a.cancelBubble) + return Rn(() => r == null ? void 0 : r.call(this, a)); + } + return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? Kt(() => { + t.addEventListener(e, o, n); + }) : t.addEventListener(e, o, n), o; +} +function Ze(e, t, r, n, o) { + var a = { capture: n, passive: o }, s = da(e, t, r, a); + (t === document.body || t === window || t === document) && tr(() => { + t.removeEventListener(e, s, a); + }); +} +function On(e) { + for (var t = 0; t < e.length; t++) + Tn.add(e[t]); + for (var r of mr) + r(e); +} +function bt(e) { + var _; + var t = this, r = ( + /** @type {Node} */ + t.ownerDocument + ), n = e.type, o = ((_ = e.composedPath) == null ? void 0 : _.call(e)) || [], a = ( + /** @type {null | Element} */ + o[0] || e.target + ), s = 0, i = e.__root; + if (i) { + var u = o.indexOf(i); + if (u !== -1 && (t === document || t === /** @type {any} */ + window)) { + e.__root = t; + return; + } + var c = o.indexOf(t); + if (c === -1) + return; + u <= c && (s = u); + } + if (a = /** @type {Element} */ + o[s] || e.target, a !== t) { + Lt(e, "currentTarget", { + configurable: !0, + get() { + return a || r; + } + }); + var v = Y, m = B; + We(null), Xe(null); + try { + for (var l, f = []; a !== null; ) { + var d = a.assignedSlot || a.parentNode || /** @type {any} */ + a.host || null; + try { + var p = a["__" + n]; + if (p != null && (!/** @type {any} */ + a.disabled || // DOM could've been updated already by the time this is reached, so we check this as well + // -> the target could not have been disabled because it emits the event in the first place + e.target === a)) + if ($r(p)) { + var [w, ...I] = p; + w.apply(a, [e, ...I]); + } else + p.call(a, e); + } catch (k) { + l ? f.push(k) : l = k; + } + if (e.cancelBubble || d === t || d === null) + break; + a = d; + } + if (l) { + for (let k of f) + queueMicrotask(() => { + throw k; + }); + throw l; + } + } finally { + e.__root = t, delete e.currentTarget, We(v), Xe(m); + } + } +} +function An(e) { + var t = document.createElement("template"); + return t.innerHTML = e, t.content; +} +function Me(e, t) { + var r = ( + /** @type {Effect} */ + B + ); + r.nodes_start === null && (r.nodes_start = e, r.nodes_end = t); +} +// @__NO_SIDE_EFFECTS__ +function W(e, t) { + var r = (t & bo) !== 0, n = (t & wo) !== 0, o, a = !e.startsWith(""); + return () => { + if (A) + return Me(H, null), H; + o === void 0 && (o = An(a ? e : "" + e), r || (o = /** @type {Node} */ + /* @__PURE__ */ Ee(o))); + var s = ( + /** @type {TemplateNode} */ + n || bn ? document.importNode(o, !0) : o.cloneNode(!0) + ); + if (r) { + var i = ( + /** @type {TemplateNode} */ + /* @__PURE__ */ Ee(s) + ), u = ( + /** @type {TemplateNode} */ + s.lastChild + ); + Me(i, u); + } else + Me(s, s); + return s; + }; +} +// @__NO_SIDE_EFFECTS__ +function qt(e, t, r = "svg") { + var n = !e.startsWith(""), o = `<${r}>${n ? e : "" + e}`, a; + return () => { + if (A) + return Me(H, null), H; + if (!a) { + var s = ( + /** @type {DocumentFragment} */ + An(o) + ), i = ( + /** @type {Element} */ + /* @__PURE__ */ Ee(s) + ); + a = /** @type {Element} */ + /* @__PURE__ */ Ee(i); + } + var u = ( + /** @type {TemplateNode} */ + a.cloneNode(!0) + ); + return Me(u, u), u; + }; +} +function le(e = "") { + if (!A) { + var t = Ye(e + ""); + return Me(t, t), t; + } + var r = H; + return r.nodeType !== 3 && (r.before(r = Ye()), pe(r)), Me(r, r), r; +} +function Rr() { + if (A) + return Me(H, null), H; + var e = document.createDocumentFragment(), t = document.createComment(""), r = Ye(); + return e.append(t, r), Me(t, r), e; +} +function $(e, t) { + if (A) { + B.nodes_end = H, Ct(); + return; + } + e !== null && e.before( + /** @type {Node} */ + t + ); +} +function F(e, t) { + var r = t == null ? "" : typeof t == "object" ? t + "" : t; + r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = r + ""); +} +function Ln(e, t) { + return Dn(e, t); +} +function fa(e, t) { + vr(), t.intro = t.intro ?? !1; + const r = t.target, n = A, o = H; + try { + for (var a = ( + /** @type {TemplateNode} */ + /* @__PURE__ */ Ee(r) + ); a && (a.nodeType !== 8 || /** @type {Comment} */ + a.data !== wr); ) + a = /** @type {TemplateNode} */ + /* @__PURE__ */ je(a); + if (!a) + throw wt; + Re(!0), pe( + /** @type {Comment} */ + a + ), Ct(); + const s = Dn(e, { ...t, anchor: a }); + if (H === null || H.nodeType !== 8 || /** @type {Comment} */ + H.data !== yr) + throw Er(), wt; + return Re(!1), /** @type {Exports} */ + s; + } catch (s) { + if (s === wt) + return t.recover === !1 && Oo(), vr(), qr(r), Re(!1), Ln(e, t); + throw s; + } finally { + Re(n), pe(o); + } +} +const at = /* @__PURE__ */ new Map(); +function Dn(e, { target: t, anchor: r, props: n = {}, events: o, context: a, intro: s = !0 }) { + vr(); + var i = /* @__PURE__ */ new Set(), u = (m) => { + for (var l = 0; l < m.length; l++) { + var f = m[l]; + if (!i.has(f)) { + i.add(f); + var d = la(f); + t.addEventListener(f, bt, { passive: d }); + var p = at.get(f); + p === void 0 ? (document.addEventListener(f, bt, { passive: d }), at.set(f, 1)) : at.set(f, p + 1); + } + } + }; + u(Cr(Tn)), mr.add(u); + var c = void 0, v = aa(() => { + var m = r ?? t.appendChild(Ye()); + return $t(() => { + if (a) { + we({}); + var l = ( + /** @type {ComponentContext} */ + U + ); + l.c = a; + } + o && (n.$$events = o), A && Me( + /** @type {TemplateNode} */ + m, + null + ), c = e(m, n) || {}, A && (B.nodes_end = H), a && _e(); + }), () => { + var d; + for (var l of i) { + t.removeEventListener(l, bt); + var f = ( + /** @type {number} */ + at.get(l) + ); + --f === 0 ? (document.removeEventListener(l, bt), at.delete(l)) : at.set(l, f); + } + mr.delete(u), m !== r && ((d = m.parentNode) == null || d.removeChild(m)); + }; + }); + return gr.set(c, v), c; +} +let gr = /* @__PURE__ */ new WeakMap(); +function va(e, t) { + const r = gr.get(e); + return r ? (gr.delete(e), r(t)) : Promise.resolve(); +} +function $e(e, t, [r, n] = [0, 0]) { + A && r === 0 && Ct(); + var o = e, a = null, s = null, i = fe, u = r > 0 ? xr : 0, c = !1; + const v = (l, f = !0) => { + c = !0, m(f, l); + }, m = (l, f) => { + if (i === (i = l)) return; + let d = !1; + if (A && n !== -1) { + if (r === 0) { + const w = ( + /** @type {Comment} */ + o.data + ); + w === wr ? n = 0 : w === _r ? n = 1 / 0 : (n = parseInt(w.substring(1)), n !== n && (n = i ? 1 / 0 : -1)); + } + const p = n > r; + !!i === p && (o = fr(), pe(o), Re(!1), d = !0, n = -1); + } + i ? (a ? Yt(a) : f && (a = $t(() => f(o))), s && Bt(s, () => { + s = null; + })) : (s ? Yt(s) : f && (s = $t(() => f(o, [r + 1, n]))), a && Bt(a, () => { + a = null; + })), d && Re(!0); + }; + Pr(() => { + c = !1, t(v), c || m(null, null); + }, u), A && (o = H); +} +function Zr(e, t) { + A && pe( + /** @type {TemplateNode} */ + /* @__PURE__ */ Ee(e) + ), vt(() => { + var r = t(); + for (var n in r) { + var o = r[n]; + o ? e.style.setProperty(n, o) : e.style.removeProperty(n); + } + }), tr(() => { + e.remove(); + }); +} +function ha(e, t, r, n) { + for (var o = [], a = t.length, s = 0; s < a; s++) + Nr(t[s].e, o, !0); + var i = a > 0 && o.length === 0 && r !== null; + if (i) { + var u = ( + /** @type {Element} */ + /** @type {Element} */ + r.parentNode + ); + qr(u), u.append( + /** @type {Element} */ + r + ), n.clear(), Ve(e, t[0].prev, t[a - 1].next); + } + In(o, () => { + for (var c = 0; c < a; c++) { + var v = t[c]; + i || (n.delete(v.k), Ve(e, v.prev, v.next)), Ae(v.e, !i); + } + }); +} +function Tr(e, t, r, n, o, a = null) { + var s = e, i = { flags: t, items: /* @__PURE__ */ new Map(), first: null }, u = (t & on) !== 0; + if (u) { + var c = ( + /** @type {Element} */ + e + ); + s = A ? pe( + /** @type {Comment | Text} */ + /* @__PURE__ */ Ee(c) + ) : c.appendChild(Ye()); + } + A && Ct(); + var v = null, m = !1, l = /* @__PURE__ */ me(() => { + var f = r(); + return $r(f) ? f : f == null ? [] : Cr(f); + }); + Pr(() => { + var f = h(l), d = f.length; + if (m && d === 0) + return; + m = d === 0; + let p = !1; + if (A) { + var w = ( + /** @type {Comment} */ + s.data === _r + ); + w !== (d === 0) && (s = fr(), pe(s), Re(!1), p = !0); + } + if (A) { + for (var I = null, _, k = 0; k < d; k++) { + if (H.nodeType === 8 && /** @type {Comment} */ + H.data === yr) { + s = /** @type {Comment} */ + H, p = !0, Re(!1); + break; + } + var y = f[k], g = n(y, k); + _ = jn( + H, + i, + I, + null, + y, + g, + k, + o, + t, + r + ), i.items.set(g, _), I = _; + } + d > 0 && pe(fr()); + } + A || ma(f, i, s, o, t, n, r), a !== null && (d === 0 ? v ? Yt(v) : v = $t(() => a(s)) : v !== null && Bt(v, () => { + v = null; + })), p && Re(!0), h(l); + }), A && (s = H); +} +function ma(e, t, r, n, o, a, s) { + var re, z, S, D; + var i = (o & co) !== 0, u = (o & (pr | br)) !== 0, c = e.length, v = t.items, m = t.first, l = m, f, d = null, p, w = [], I = [], _, k, y, g; + if (i) + for (g = 0; g < c; g += 1) + _ = e[g], k = a(_, g), y = v.get(k), y !== void 0 && ((re = y.a) == null || re.measure(), (p ?? (p = /* @__PURE__ */ new Set())).add(y)); + for (g = 0; g < c; g += 1) { + if (_ = e[g], k = a(_, g), y = v.get(k), y === void 0) { + var R = l ? ( + /** @type {TemplateNode} */ + l.e.nodes_start + ) : r; + d = jn( + R, + t, + d, + d === null ? t.first : d.next, + _, + k, + g, + n, + o, + s + ), v.set(k, d), w = [], I = [], l = d.next; + continue; + } + if (u && ga(y, _, g, o), (y.e.f & Te) !== 0 && (Yt(y.e), i && ((z = y.a) == null || z.unfix(), (p ?? (p = /* @__PURE__ */ new Set())).delete(y))), y !== l) { + if (f !== void 0 && f.has(y)) { + if (w.length < I.length) { + var M = I[0], b; + d = M.prev; + var P = w[0], N = w[w.length - 1]; + for (b = 0; b < w.length; b += 1) + Jr(w[b], M, r); + for (b = 0; b < I.length; b += 1) + f.delete(I[b]); + Ve(t, P.prev, N.next), Ve(t, d, P), Ve(t, N, M), l = M, d = N, g -= 1, w = [], I = []; + } else + f.delete(y), Jr(y, l, r), Ve(t, y.prev, y.next), Ve(t, y, d === null ? t.first : d.next), Ve(t, d, y), d = y; + continue; + } + for (w = [], I = []; l !== null && l.k !== k; ) + (l.e.f & Te) === 0 && (f ?? (f = /* @__PURE__ */ new Set())).add(l), I.push(l), l = l.next; + if (l === null) + continue; + y = l; + } + w.push(y), d = y, l = y.next; + } + if (l !== null || f !== void 0) { + for (var L = f === void 0 ? [] : Cr(f); l !== null; ) + (l.e.f & Te) === 0 && L.push(l), l = l.next; + var K = L.length; + if (K > 0) { + var Q = (o & on) !== 0 && c === 0 ? r : null; + if (i) { + for (g = 0; g < K; g += 1) + (S = L[g].a) == null || S.measure(); + for (g = 0; g < K; g += 1) + (D = L[g].a) == null || D.fix(); + } + ha(t, L, Q, v); + } + } + i && Kt(() => { + var X; + if (p !== void 0) + for (y of p) + (X = y.a) == null || X.apply(); + }), B.first = t.first && t.first.e, B.last = d && d.e; +} +function ga(e, t, r, n) { + (n & pr) !== 0 && dr(e.v, t), (n & br) !== 0 ? dr( + /** @type {Value} */ + e.i, + r + ) : e.i = r; +} +function jn(e, t, r, n, o, a, s, i, u, c) { + var v = (u & pr) !== 0, m = (u & fo) === 0, l = v ? m ? /* @__PURE__ */ Gt(o) : ve(o) : o, f = (u & br) === 0 ? s : ve(s), d = { + i: f, + v: l, + k: a, + a: null, + // @ts-expect-error + e: null, + prev: r, + next: n + }; + try { + return d.e = $t(() => i(e, l, f, c), A), d.e.prev = r && r.e, d.e.next = n && n.e, r === null ? t.first = d : (r.next = d, r.e.next = d.e), n !== null && (n.prev = d, n.e.prev = d.e), d; + } finally { + } +} +function Jr(e, t, r) { + for (var n = e.next ? ( + /** @type {TemplateNode} */ + e.next.e.nodes_start + ) : r, o = t ? ( + /** @type {TemplateNode} */ + t.e.nodes_start + ) : r, a = ( + /** @type {TemplateNode} */ + e.e.nodes_start + ); a !== n; ) { + var s = ( + /** @type {TemplateNode} */ + /* @__PURE__ */ je(a) + ); + o.before(a), a = s; + } +} +function Ve(e, t, r) { + t === null ? e.first = r : (t.next = r, t.e.next = r && r.e), r !== null && (r.prev = t, r.e.prev = t && t.e); +} +function Kr(e, t, r, n, o) { + var i; + A && Ct(); + var a = (i = t.$$slots) == null ? void 0 : i[r], s = !1; + a === !0 && (a = t[r === "default" ? "children" : r], s = !0), a === void 0 || a(e, s ? () => n : n); +} +function pa(e) { + const t = {}; + e.children && (t.default = !0); + for (const r in e.$$slots) + t[r] = !0; + return t; +} +function se(e, t) { + Kt(() => { + var r = e.getRootNode(), n = ( + /** @type {ShadowRoot} */ + r.host ? ( + /** @type {ShadowRoot} */ + r + ) : ( + /** @type {Document} */ + r.head ?? /** @type {Document} */ + r.ownerDocument.head + ) + ); + if (!n.querySelector("#" + t.hash)) { + const o = document.createElement("style"); + o.id = t.hash, o.textContent = t.code, n.appendChild(o); + } + }); +} +const Gr = [...` +\r\fΒ \v\uFEFF`]; +function ba(e, t, r) { + var n = e == null ? "" : "" + e; + if (t && (n = n ? n + " " + t : t), r) { + for (var o in r) + if (r[o]) + n = n ? n + " " + o : o; + else if (n.length) + for (var a = o.length, s = 0; (s = n.indexOf(o, s)) >= 0; ) { + var i = s + a; + (s === 0 || Gr.includes(n[s - 1])) && (i === n.length || Gr.includes(n[i])) ? n = (s === 0 ? "" : n.substring(0, s)) + n.substring(i + 1) : s = i; + } + } + return n === "" ? null : n; +} +function wa(e, t) { + return e == null ? null : String(e); +} +function ot(e, t, r, n, o, a) { + var s = e.__className; + if (A || s !== r) { + var i = ba(r, n, a); + (!A || i !== e.getAttribute("class")) && (i == null ? e.removeAttribute("class") : e.className = i), e.__className = r; + } else if (a && o !== a) + for (var u in a) { + var c = !!a[u]; + (o == null || c !== !!o[u]) && e.classList.toggle(u, c); + } + return a; +} +function _a(e, t, r, n) { + var o = e.__style; + if (A || o !== t) { + var a = wa(t); + (!A || a !== e.getAttribute("style")) && (a == null ? e.removeAttribute("style") : e.style.cssText = a), e.__style = t; + } + return n; +} +const ya = Symbol("is custom element"), ka = Symbol("is html"); +function xa(e) { + if (A) { + var t = !1, r = () => { + if (!t) { + if (t = !0, e.hasAttribute("value")) { + var n = e.value; + G(e, "value", null), e.value = n; + } + if (e.hasAttribute("checked")) { + var o = e.checked; + G(e, "checked", null), e.checked = o; + } + } + }; + e.__on_r = r, Io(r), Nn(); + } +} +function G(e, t, r, n) { + var o = $a(e); + A && (o[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || o[t] !== (o[t] = r) && (t === "loading" && (e[$o] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Ca(e).includes(t) ? e[t] = r : e.setAttribute(t, r)); +} +function $a(e) { + return ( + /** @type {Record} **/ + // @ts-expect-error + e.__attributes ?? (e.__attributes = { + [ya]: e.nodeName.includes("-"), + [ka]: e.namespaceURI === _o + }) + ); +} +var Qr = /* @__PURE__ */ new Map(); +function Ca(e) { + var t = Qr.get(e.nodeName); + if (t) return t; + Qr.set(e.nodeName, t = []); + for (var r, n = e, o = Element.prototype; o !== n; ) { + r = un(n); + for (var a in r) + r[a].set && t.push(a); + n = zr(n); + } + return t; +} +function Hn(e, t, r = t) { + var n = Et(); + ca(e, "input", (o) => { + var a = o ? e.defaultValue : e.value; + if (a = ir(e) ? lr(a) : a, r(a), n && a !== (a = t())) { + var s = e.selectionStart, i = e.selectionEnd; + e.value = a ?? "", i !== null && (e.selectionStart = s, e.selectionEnd = Math.min(i, e.value.length)); + } + }), // If we are hydrating and the value has since changed, + // then use the updated value from the input instead. + (A && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue + // TODO Svelte 6: remove input.value check and set to empty string? + Ue(t) == null && e.value) && r(ir(e) ? lr(e.value) : e.value), vt(() => { + var o = t(); + ir(e) && o === lr(e.value) || e.type === "date" && !o && !e.value || o !== e.value && (e.value = o ?? ""); + }); +} +function ir(e) { + var t = e.type; + return t === "number" || t === "range"; +} +function lr(e) { + return e === "" ? null : +e; +} +function en(e, t) { + return e === t || (e == null ? void 0 : e[Ke]) === t; +} +function tt(e = {}, t, r, n) { + return Mr(() => { + var o, a; + return vt(() => { + o = a, a = [], Ue(() => { + e !== r(...a) && (t(e, ...a), o && en(r(...o), e) && t(null, ...o)); + }); + }), () => { + Kt(() => { + a && en(r(...a), e) && t(null, ...a); + }); + }; + }), e; +} +function za(e, t, r, n, o) { + var a = () => { + n(r[e]); + }; + r.addEventListener(t, a), o ? vt(() => { + r[e] = o(); + }) : a(), (r === document.body || r === window || r === document) && tr(() => { + r.removeEventListener(t, a); + }); +} +function Fn(e = !1) { + const t = ( + /** @type {ComponentContextLegacy} */ + U + ), r = t.l.u; + if (!r) return; + let n = () => ta(t.s); + if (e) { + let o = 0, a = ( + /** @type {Record} */ + {} + ); + const s = /* @__PURE__ */ ee(() => { + let i = !1; + const u = t.s; + for (const c in u) + u[c] !== a[c] && (a[c] = u[c], i = !0); + return i && o++, o; + }); + n = () => h(s); + } + r.b.length && na(() => { + tn(t, n), Dt(r.b); + }), et(() => { + const o = Ue(() => r.m.map(Eo)); + return () => { + for (const a of o) + typeof a == "function" && a(); + }; + }), r.a.length && et(() => { + tn(t, n), Dt(r.a); + }); +} +function tn(e, t) { + if (e.l.s) + for (const r of e.l.s) h(r); + t(); +} +function Sa(e) { + var t = ve(0); + return function() { + return arguments.length === 1 ? (T(t, h(t) + 1), arguments[0]) : (h(t), e()); + }; +} +function rr(e) { + U === null && Pn(), ft && U.l !== null ? qa(U).m.push(e) : et(() => { + const t = Ue(e); + if (typeof t == "function") return ( + /** @type {() => void} */ + t + ); + }); +} +function Ea(e) { + U === null && Pn(), rr(() => () => Ue(e)); +} +function qa(e) { + var t = ( + /** @type {ComponentContextLegacy} */ + e.l + ); + return t.u ?? (t.u = { a: [], b: [], m: [] }); +} +let Pt = !1; +function Ia(e) { + var t = Pt; + try { + return Pt = !1, [e(), Pt]; + } finally { + Pt = t; + } +} +function rn(e) { + var t; + return ((t = e.ctx) == null ? void 0 : t.d) ?? !1; +} +function q(e, t, r, n) { + var R; + var o = (r & vo) !== 0, a = !ft || (r & ho) !== 0, s = (r & go) !== 0, i = (r & po) !== 0, u = !1, c; + s ? [c, u] = Ia(() => ( + /** @type {V} */ + e[t] + )) : c = /** @type {V} */ + e[t]; + var v = Ke in e || ln in e, m = s && (((R = Ge(e, t)) == null ? void 0 : R.set) ?? (v && t in e && ((M) => e[t] = M))) || void 0, l = ( + /** @type {V} */ + n + ), f = !0, d = !1, p = () => (d = !0, f && (f = !1, i ? l = Ue( + /** @type {() => V} */ + n + ) : l = /** @type {V} */ + n), l); + c === void 0 && n !== void 0 && (m && a && Ao(), c = p(), m && m(c)); + var w; + if (a) + w = () => { + var M = ( + /** @type {V} */ + e[t] + ); + return M === void 0 ? p() : (f = !0, d = !1, M); + }; + else { + var I = (o ? ee : me)( + () => ( + /** @type {V} */ + e[t] + ) + ); + I.f |= ko, w = () => { + var M = h(I); + return M !== void 0 && (l = /** @type {V} */ + void 0), M === void 0 ? l : M; + }; + } + if ((r & mo) === 0) + return w; + if (m) { + var _ = e.$$legacy; + return function(M, b) { + return arguments.length > 0 ? ((!a || !b || _ || u) && m(b ? w() : M), M) : w(); + }; + } + var k = !1, y = /* @__PURE__ */ Gt(c), g = /* @__PURE__ */ ee(() => { + var M = w(), b = h(y); + return k ? (k = !1, b) : y.v = M; + }); + return s && h(g), o || (g.equals = Sr), function(M, b) { + if (arguments.length > 0) { + const P = b ? h(g) : a && s ? J(M) : M; + if (!g.equals(P)) { + if (k = !0, T(y, P), d && l !== void 0 && (l = P), rn(g)) + return M; + Ue(() => h(g)); + } + return M; + } + return rn(g) ? g.v : h(g); + }; +} +function Ma(e) { + return new Pa(e); +} +var Ne, xe; +class Pa { + /** + * @param {ComponentConstructorOptions & { + * component: any; + * }} options + */ + constructor(t) { + /** @type {any} */ + ar(this, Ne); + /** @type {Record} */ + ar(this, xe); + var a; + var r = /* @__PURE__ */ new Map(), n = (s, i) => { + var u = /* @__PURE__ */ Gt(i); + return r.set(s, u), u; + }; + const o = new Proxy( + { ...t.props || {}, $$events: {} }, + { + get(s, i) { + return h(r.get(i) ?? n(i, Reflect.get(s, i))); + }, + has(s, i) { + return i === ln ? !0 : (h(r.get(i) ?? n(i, Reflect.get(s, i))), Reflect.has(s, i)); + }, + set(s, i, u) { + return T(r.get(i) ?? n(i, u), u), Reflect.set(s, i, u); + } + } + ); + sr(this, xe, (t.hydrate ? fa : Ln)(t.component, { + target: t.target, + anchor: t.anchor, + props: o, + context: t.context, + intro: t.intro ?? !1, + recover: t.recover + })), (!((a = t == null ? void 0 : t.props) != null && a.$$host) || t.sync === !1) && E(), sr(this, Ne, o.$$events); + for (const s of Object.keys(de(this, xe))) + s === "$set" || s === "$destroy" || s === "$on" || Lt(this, s, { + get() { + return de(this, xe)[s]; + }, + /** @param {any} value */ + set(i) { + de(this, xe)[s] = i; + }, + enumerable: !0 + }); + de(this, xe).$set = /** @param {Record} next */ + (s) => { + Object.assign(o, s); + }, de(this, xe).$destroy = () => { + va(de(this, xe)); + }; + } + /** @param {Record} props */ + $set(t) { + de(this, xe).$set(t); + } + /** + * @param {string} event + * @param {(...args: any[]) => any} callback + * @returns {any} + */ + $on(t, r) { + de(this, Ne)[t] = de(this, Ne)[t] || []; + const n = (...o) => r.call(this, ...o); + return de(this, Ne)[t].push(n), () => { + de(this, Ne)[t] = de(this, Ne)[t].filter( + /** @param {any} fn */ + (o) => o !== n + ); + }; + } + $destroy() { + de(this, xe).$destroy(); + } +} +Ne = new WeakMap(), xe = new WeakMap(); +let Vn; +typeof HTMLElement == "function" && (Vn = class extends HTMLElement { + /** + * @param {*} $$componentCtor + * @param {*} $$slots + * @param {*} use_shadow_dom + */ + constructor(t, r, n) { + super(); + /** The Svelte component constructor */ + oe(this, "$$ctor"); + /** Slots */ + oe(this, "$$s"); + /** @type {any} The Svelte component instance */ + oe(this, "$$c"); + /** Whether or not the custom element is connected */ + oe(this, "$$cn", !1); + /** @type {Record} Component props data */ + oe(this, "$$d", {}); + /** `true` if currently in the process of reflecting component props back to attributes */ + oe(this, "$$r", !1); + /** @type {Record} Props definition (name, reflected, type etc) */ + oe(this, "$$p_d", {}); + /** @type {Record} Event listeners */ + oe(this, "$$l", {}); + /** @type {Map} Event listener unsubscribe functions */ + oe(this, "$$l_u", /* @__PURE__ */ new Map()); + /** @type {any} The managed render effect for reflecting attributes */ + oe(this, "$$me"); + this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" }); + } + /** + * @param {string} type + * @param {EventListenerOrEventListenerObject} listener + * @param {boolean | AddEventListenerOptions} [options] + */ + addEventListener(t, r, n) { + if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) { + const o = this.$$c.$on(t, r); + this.$$l_u.set(r, o); + } + super.addEventListener(t, r, n); + } + /** + * @param {string} type + * @param {EventListenerOrEventListenerObject} listener + * @param {boolean | AddEventListenerOptions} [options] + */ + removeEventListener(t, r, n) { + if (super.removeEventListener(t, r, n), this.$$c) { + const o = this.$$l_u.get(r); + o && (o(), this.$$l_u.delete(r)); + } + } + async connectedCallback() { + if (this.$$cn = !0, !this.$$c) { + let t = function(o) { + return (a) => { + const s = document.createElement("slot"); + o !== "default" && (s.name = o), $(a, s); + }; + }; + if (await Promise.resolve(), !this.$$cn || this.$$c) + return; + const r = {}, n = Na(this); + for (const o of this.$$s) + o in n && (o === "default" && !this.$$d.children ? (this.$$d.children = t(o), r.default = !0) : r[o] = t(o)); + for (const o of this.attributes) { + const a = this.$$g_p(o.name); + a in this.$$d || (this.$$d[a] = Rt(a, o.value, this.$$p_d, "toProp")); + } + for (const o in this.$$p_d) + !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]); + this.$$c = Ma({ + component: this.$$ctor, + target: this.shadowRoot || this, + props: { + ...this.$$d, + $$slots: r, + $$host: this + } + }), this.$$me = oa(() => { + vt(() => { + var o; + this.$$r = !0; + for (const a of At(this.$$c)) { + if (!((o = this.$$p_d[a]) != null && o.reflect)) continue; + this.$$d[a] = this.$$c[a]; + const s = Rt( + a, + this.$$d[a], + this.$$p_d, + "toAttribute" + ); + s == null ? this.removeAttribute(this.$$p_d[a].attribute || a) : this.setAttribute(this.$$p_d[a].attribute || a, s); + } + this.$$r = !1; + }); + }); + for (const o in this.$$l) + for (const a of this.$$l[o]) { + const s = this.$$c.$on(o, a); + this.$$l_u.set(a, s); + } + this.$$l = {}; + } + } + // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte + // and setting attributes through setAttribute etc, this is helpful + /** + * @param {string} attr + * @param {string} _oldValue + * @param {string} newValue + */ + attributeChangedCallback(t, r, n) { + var o; + this.$$r || (t = this.$$g_p(t), this.$$d[t] = Rt(t, n, this.$$p_d, "toProp"), (o = this.$$c) == null || o.$set({ [t]: this.$$d[t] })); + } + disconnectedCallback() { + this.$$cn = !1, Promise.resolve().then(() => { + !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$me(), this.$$c = void 0); + }); + } + /** + * @param {string} attribute_name + */ + $$g_p(t) { + return At(this.$$p_d).find( + (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t + ) || t; + } +}); +function Rt(e, t, r, n) { + var a; + const o = (a = r[e]) == null ? void 0 : a.type; + if (t = o === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e]) + return t; + if (n === "toAttribute") + switch (o) { + case "Object": + case "Array": + return t == null ? null : JSON.stringify(t); + case "Boolean": + return t ? "" : null; + case "Number": + return t ?? null; + default: + return t; + } + else + switch (o) { + case "Object": + case "Array": + return t && JSON.parse(t); + case "Boolean": + return t; + // conversion already handled above + case "Number": + return t != null ? +t : t; + default: + return t; + } +} +function Na(e) { + const t = {}; + return e.childNodes.forEach((r) => { + t[ + /** @type {Element} node */ + r.slot || "default" + ] = !0; + }), t; +} +function ae(e, t, r, n, o, a) { + let s = class extends Vn { + constructor() { + super(e, r, o), this.$$p_d = t; + } + static get observedAttributes() { + return At(t).map( + (i) => (t[i].attribute || i).toLowerCase() + ); + } + }; + return At(t).forEach((i) => { + Lt(s.prototype, i, { + get() { + return this.$$c && i in this.$$c ? this.$$c[i] : this.$$d[i]; + }, + set(u) { + var m; + u = Rt(i, u, t), this.$$d[i] = u; + var c = this.$$c; + if (c) { + var v = (m = Ge(c, i)) == null ? void 0 : m.get; + v ? c[i] = u : c.$set({ [i]: u }); + } + } + }); + }), n.forEach((i) => { + Lt(s.prototype, i, { + get() { + var u; + return (u = this.$$c) == null ? void 0 : u[i]; + } + }); + }), e.element = /** @type {any} */ + s, s; +} +const Z = J({ + open: !1, + currentCommentId: 0, + showResolvedOnly: !1, + pulseMarkerId: 0 +}), Je = J({ open: !1 }); +let st = ue(""); +const lt = { + get value() { + return h(st); + }, + set(e) { + T(st, J(e)), typeof window < "u" && sessionStorage.setItem("loop-guest-name", e); + }, + get() { + return !h(st) && typeof window < "u" && T(st, J(sessionStorage.getItem("loop-guest-name") || "")), h(st); + }, + clear() { + T(st, ""), typeof window < "u" && sessionStorage.removeItem("loop-guest-name"); + } +}; +let Or = ue(J({})); +const O = (e, t) => h(Or)[e] || t || e, ur = (e, t, r) => { + let n = h(Or)[e] || t || e; + for (const [o, a] of Object.entries(r)) + n = n.replace(`{${o}}`, a); + return n; +}, Ra = (e) => { + T(Or, J(e)); +}; +Vo(); +var Ta = /* @__PURE__ */ qt(''); +const Oa = { + hash: "svelte-1q9atlb", + code: "svg.svelte-1q9atlb{width:var(--size,var(--icon-size));height:var(--size,var(--icon-size))}" +}; +function Bn(e) { + se(e, Oa); + var t = Ta(); + $(e, t); +} +ae(Bn, {}, [], [], !0); +var Aa = /* @__PURE__ */ W(''), La = /* @__PURE__ */ W(""); +const Da = { + hash: "svelte-1qoozz7", + code: "button.svelte-1qoozz7{appearance:none;background-color:var(--button-background);color:var(--button-color);padding:var(--button-padding);font-family:var(--font-family);letter-spacing:.01em;border-radius:var(--button-border-radius);gap:var(--button-gap);cursor:pointer;font-size:var(--button-font-size);font-weight:var(--button-font-weight);transition:var(--button-transition);white-space:nowrap;height:var(--button-height);outline-color:var(--button-outline-color);border:0;flex:none;justify-content:center;align-items:center;line-height:1;display:inline-flex}button.svelte-1qoozz7:focus-visible{outline-offset:var(--button-outline-offset)}button.svelte-1qoozz7:hover,button.svelte-1qoozz7:focus-visible{color:var(--button-hover-color);background-color:var(--button-hover-background)}button.svelte-1qoozz7 span:where(.svelte-1qoozz7){text-overflow:ellipsis;min-width:0;display:block;overflow-x:clip}button.button--header.svelte-1qoozz7{--icon-size:1.25rem;background-color:var(--button-header-background);height:var(--button-header-height);padding:var(--button-header-padding);mix-blend-mode:var(--button-header-blend-mode);border:0;border-radius:0}button.button--header.svelte-1qoozz7:first-child{border-top-left-radius:var(--border-radius-rounded);border-bottom-left-radius:var(--border-radius-rounded)}button.button--header.svelte-1qoozz7:hover,button.button--header.svelte-1qoozz7:focus-visible{background-color:var(--button-header-hover-background)}button.button--panel.svelte-1qoozz7{background-color:var(--button-panel-background);height:auto;padding:var(--button-panel-padding);border-radius:var(--border-radius-rounded);border:0}button.button--panel.svelte-1qoozz7 span:where(.svelte-1qoozz7){overflow:visible}button.button--solid.svelte-1qoozz7{background-color:var(--button-solid-background)}button.button--solid.svelte-1qoozz7:hover,button.button--solid.svelte-1qoozz7:focus-visible{color:var(--button-solid-hover-color);background-color:var(--button-solid-hover-background)}button.button--small.svelte-1qoozz7{height:var(--button-small-height);font-size:var(--button-small-font-size)}button.button--icon.svelte-1qoozz7{background-color:var(--button-icon-background);color:var(--button-icon-color);height:var(--button-icon-height);box-shadow:var(--button-icon-shadow);aspect-ratio:1;font-size:var(--button-icon-font-size);border-radius:var(--button-icon-border-radius);border:0;padding:0}button.button--icon.svelte-1qoozz7:hover,button.button--icon.svelte-1qoozz7:focus-visible{background-color:var(--button-icon-hover-background);color:var(--button-icon-hover-color)}button.button--marker.svelte-1qoozz7{background-color:var(--button-marker-background);color:var(--button-marker-color);height:var(--marker-size);width:var(--marker-size);font-weight:var(--button-marker-font-weight);border-radius:var(--button-marker-border-radius);border:0;padding:0}button.button--marker.svelte-1qoozz7 :where(.svelte-1qoozz7){pointer-events:none}button.button--marker.button--marker-highlighted.svelte-1qoozz7{background-color:var(--button-marker-highlighted-background);color:var(--button-marker-highlighted-color)}button.button--marker-open.svelte-1qoozz7{background-color:var(--color-accent);color:var(--color-accent-dark)}button.button--filter.svelte-1qoozz7{background-color:var(--button-filter-background);color:var(--button-filter-color);height:var(--button-filter-height);font-size:var(--button-filter-font-size);padding:var(--button-filter-padding);border-radius:var(--button-filter-border-radius);flex:1}button.button--filter.svelte-1qoozz7:hover,button.button--filter.svelte-1qoozz7:focus-visible{color:var(--button-filter-hover-color);background-color:var(--button-filter-hover-background)}button.button--filter.button--filter-active.svelte-1qoozz7{background-color:var(--button-filter-active-background);color:var(--button-filter-active-color);font-weight:var(--button-filter-active-font-weight)}button.button--filter.button--filter-active.svelte-1qoozz7:hover,button.button--filter.button--filter-active.svelte-1qoozz7:focus-visible{background-color:var(--button-filter-active-background);color:var(--button-filter-active-color)}button.button--menu-item.svelte-1qoozz7{background-color:var(--button-menu-item-background);color:var(--button-menu-item-color);width:100%;padding:var(--button-menu-item-padding);border-radius:var(--button-menu-item-border-radius);font-size:var(--button-menu-item-font-size);justify-content:flex-start;gap:var(--button-menu-item-gap)}button.button--menu-item.svelte-1qoozz7:hover,button.button--menu-item.svelte-1qoozz7:focus-visible{background-color:var(--button-menu-item-hover-background);color:var(--button-menu-item-hover-color)}button.button--menu-item.button--menu-item-active.svelte-1qoozz7{background-color:var(--button-menu-item-active-background);color:var(--button-menu-item-active-color);font-weight:var(--button-menu-item-active-font-weight)}button.button--menu-item.button--menu-item-active.svelte-1qoozz7:hover,button.button--menu-item.button--menu-item-active.svelte-1qoozz7:focus-visible{background-color:var(--button-menu-item-active-background);color:var(--button-menu-item-active-color)}button.is-active.svelte-1qoozz7{background-color:var(--button-active-background);color:var(--button-active-color)}button.is-active.svelte-1qoozz7:hover,button.is-active.svelte-1qoozz7:focus-visible{color:var(--button-active-color);background-color:var(--button-active-background)}button.svelte-1qoozz7:disabled{opacity:var(--button-disabled-opacity);cursor:not-allowed}button.svelte-1qoozz7:disabled:hover{color:var(--button-disabled-hover-color);background-color:var(--button-disabled-hover-background)}" +}; +function te(e, t) { + const r = pa(t); + we(t, !0), se(e, Da); + const n = q(t, "onclick", 7), o = q(t, "onmouseenter", 7), a = q(t, "onmouseout", 7), s = q(t, "onblur", 7), i = q(t, "active", 7, !1), u = q(t, "type", 7, "button"), c = q(t, "style", 7, ""), v = q(t, "disabled", 7, !1), m = q(t, "ariaLabel", 7, ""), l = q(t, "id", 7, ""), f = q(t, "ariaHaspopup", 7, ""), d = q(t, "ariaExpanded", 7, ""), p = q(t, "ariaControls", 7, ""); + var w = La(); + w.__click = function(...g) { + var R; + (R = n()) == null || R.apply(this, g); + }; + let I; + w.__mouseout = function(...g) { + var R; + (R = a()) == null || R.apply(this, g); + }; + var _ = C(w); + Kr(_, t, "icon", {}); + var k = V(_, 2); + { + var y = (g) => { + var R = Aa(), M = C(R); + Kr(M, t, "default", {}), x(R), $(g, R); + }; + $e(k, (g) => { + r.default && g(y); + }); + } + return x(w), j( + (g) => { + I = ot(w, 1, `button ${c() ?? ""}`, "svelte-1qoozz7", I, g), G(w, "type", u()), G(w, "aria-label", m()), G(w, "id", l()), G(w, "aria-haspopup", f() === "menu" ? "menu" : null), G(w, "aria-expanded", d() === "true" ? !0 : d() === "false" ? !1 : null), G(w, "aria-controls", p() || null), w.disabled = v(); + }, + [() => ({ "is-active": i() })] + ), Ze("mouseenter", w, function(...g) { + var R; + (R = o()) == null || R.apply(this, g); + }), Ze("blur", w, function(...g) { + var R; + (R = s()) == null || R.apply(this, g); + }), $(e, w), _e({ + get onclick() { + return n(); + }, + set onclick(g) { + n(g), E(); + }, + get onmouseenter() { + return o(); + }, + set onmouseenter(g) { + o(g), E(); + }, + get onmouseout() { + return a(); + }, + set onmouseout(g) { + a(g), E(); + }, + get onblur() { + return s(); + }, + set onblur(g) { + s(g), E(); + }, + get active() { + return i(); + }, + set active(g = !1) { + i(g), E(); + }, + get type() { + return u(); + }, + set type(g = "button") { + u(g), E(); + }, + get style() { + return c(); + }, + set style(g = "") { + c(g), E(); + }, + get disabled() { + return v(); + }, + set disabled(g = !1) { + v(g), E(); + }, + get ariaLabel() { + return m(); + }, + set ariaLabel(g = "") { + m(g), E(); + }, + get id() { + return l(); + }, + set id(g = "") { + l(g), E(); + }, + get ariaHaspopup() { + return f(); + }, + set ariaHaspopup(g = "") { + f(g), E(); + }, + get ariaExpanded() { + return d(); + }, + set ariaExpanded(g = "") { + d(g), E(); + }, + get ariaControls() { + return p(); + }, + set ariaControls(g = "") { + p(g), E(); + } + }); +} +On(["click", "mouseout"]); +ae( + te, + { + onclick: {}, + onmouseenter: {}, + onmouseout: {}, + onblur: {}, + active: {}, + type: {}, + style: {}, + disabled: {}, + ariaLabel: {}, + id: {}, + ariaHaspopup: {}, + ariaExpanded: {}, + ariaControls: {} + }, + ["icon", "default"], + [], + !0 +); +var ja = /* @__PURE__ */ qt(''); +const Ha = { + hash: "svelte-1q9atlb", + code: "svg.svelte-1q9atlb{width:var(--size,var(--icon-size));height:var(--size,var(--icon-size))}" +}; +function Yn(e) { + se(e, Ha); + var t = ja(); + $(e, t); +} +ae(Yn, {}, [], [], !0); +var Fa = /* @__PURE__ */ W('', 1), Va = /* @__PURE__ */ W('', 1), Ba = /* @__PURE__ */ W(' '), Ya = /* @__PURE__ */ W('
'); +const Wa = { + hash: "svelte-12aqd5e", + code: ".toggle.svelte-12aqd5e{display:flex}header.svelte-12aqd5e{position:var(--header-position);top:var(--header-top);max-width:100%;transform:var(--header-transform);color:var(--header-color);border-radius:var(--header-border-radius);z-index:var(--header-z-index);-webkit-backdrop-filter:var(--header-backdrop-filter);backdrop-filter:var(--header-backdrop-filter);box-shadow:var(--shadow-l),var(--shadow-light-edge),var(--shadow-dark-edge);background:var(--header-background);justify-content:space-between;align-items:stretch;display:flex;left:50%}header.bottom.svelte-12aqd5e{top:auto;bottom:var(--header-bottom-position)}.count.svelte-12aqd5e{width:var(--header-count-size);height:var(--header-count-size);border-radius:var(--header-count-border-radius);-webkit-backdrop-filter:var(--header-count-backdrop-filter);backdrop-filter:var(--header-count-backdrop-filter);box-shadow:var(--shadow-s),var(--shadow-light-edge),var(--shadow-dark-edge);background:var(--header-count-background);justify-content:center;align-items:center;display:flex}" +}; +function Wn(e, t) { + we(t, !0), se(e, Wa); + const r = q(t, "position", 7), n = q(t, "commentsCount", 7); + var o = Ya(); + let a; + var s = C(o), i = C(s); + const u = /* @__PURE__ */ ee(() => !Je.open); + te(i, { + onclick: () => { + Je.open = !1; + }, + get active() { + return h(u); + }, + style: "button--header", + children: (l, f) => { + ge(); + var d = le(); + j((p) => F(d, p), [() => O("ui.header.browse.mode", "Browse")]), $(l, d); + }, + $$slots: { + default: !0, + icon: (l, f) => { + var d = Fa(), p = Oe(d); + Zr(p, () => ({ "--size": "1.5em" })), Yn(p.lastChild), x(p), $(l, d); + } + } + }); + var c = V(i, 2); + te(c, { + onclick: () => { + Je.open = !0; + }, + style: "button--header", + get active() { + return Je.open; + }, + children: (l, f) => { + ge(); + var d = le(); + j((p) => F(d, p), [ + () => O("ui.header.comment.mode", "Comment") + ]), $(l, d); + }, + $$slots: { + default: !0, + icon: (l, f) => { + var d = Va(), p = Oe(d); + Zr(p, () => ({ "--size": "1.5em" })), Bn(p.lastChild), x(p), $(l, d); + } + } + }), x(s); + var v = V(s, 2); + const m = /* @__PURE__ */ ee(() => `${n()} ${O("ui.header.aria.count", "unresolved comments")}`); + return te(v, { + onclick: () => Z.open = !Z.open, + style: "button--panel", + get ariaLabel() { + return h(m); + }, + children: (l, f) => { + var d = Ba(), p = C(d, !0); + x(d), j(() => F(p, n())), $(l, d); + }, + $$slots: { default: !0 } + }), x(o), j((l) => a = ot(o, 1, "svelte-12aqd5e", null, a, l), [ + () => ({ bottom: r() === "bottom" }) + ]), $(e, o), _e({ + get position() { + return r(); + }, + set position(l) { + r(l), E(); + }, + get commentsCount() { + return n(); + }, + set commentsCount(l) { + n(l), E(); + } + }); +} +ae(Wn, { position: {}, commentsCount: {} }, [], [], !0); +class Xa { + constructor(t = {}) { + oe(this, "callbacks", /* @__PURE__ */ new Set()); + oe(this, "debounceTimer", null); + oe(this, "rafId", null); + oe(this, "isListening", !1); + oe(this, "options"); + oe(this, "handleResize", () => { + this.debounceTimer && clearTimeout(this.debounceTimer), this.rafId && cancelAnimationFrame(this.rafId), this.debounceTimer = window.setTimeout(() => { + this.options.useRAF ? this.rafId = requestAnimationFrame(() => { + this.executeCallbacks(); + }) : this.executeCallbacks(); + }, this.options.debounceDelay); + }); + this.options = { + debounceDelay: t.debounceDelay ?? 100, + useRAF: t.useRAF ?? !0 + }; + } + executeCallbacks() { + this.callbacks.forEach((t) => { + try { + t(); + } catch (r) { + console.error("Error in resize callback:", r); + } + }); + } + startListening() { + this.isListening || (window.addEventListener("resize", this.handleResize, { passive: !0 }), this.isListening = !0); + } + stopListening() { + this.isListening && (window.removeEventListener("resize", this.handleResize), this.isListening = !1); + } + /** + * Add a callback to be executed on resize + */ + subscribe(t) { + return this.callbacks.add(t), this.startListening(), () => { + this.callbacks.delete(t), this.callbacks.size === 0 && this.stopListening(); + }; + } + /** + * Clean up all resources + */ + destroy() { + this.callbacks.clear(), this.stopListening(), this.debounceTimer && clearTimeout(this.debounceTimer), this.rafId && cancelAnimationFrame(this.rafId); + } +} +const Ua = new Xa(); +function Za(e, t) { + return Ua.subscribe(e); +} +const Xn = () => { + const e = document.body, t = document.documentElement; + return Math.max( + e.scrollHeight, + e.offsetHeight, + t.clientHeight, + t.scrollHeight, + t.offsetHeight + ); +}; +var Ja = /* @__PURE__ */ W("
"); +const Ka = { + hash: "svelte-4f1edl", + code: ".marker.svelte-4f1edl{position:var(--marker-position);z-index:var(--marker-z-index);transform:var(--marker-transform);border-radius:var(--marker-border-radius)}.marker--pulse.svelte-4f1edl{animation:1.5s ease-in-out infinite svelte-4f1edl-kirby-loop-pulse}@keyframes svelte-4f1edl-kirby-loop-pulse{0%{box-shadow:0 0 0 0 var(--color-accent),0 0 0 0 #8080804d,0 0 0 0 #80808033}30%{box-shadow:0 0 0 8px #0000,0 0 #8080804d,0 0 #80808033}60%{box-shadow:0 0 0 8px #80808026,0 0 0 12px #0000,0 0 #80808033}to{box-shadow:0 0 0 16px #0000,0 0 0 12px #0000,0 0 0 8px #0000}}" +}; +function Un(e, t) { + we(t, !0), se(e, Ka); + const r = q(t, "comment", 7); + let n = ue(!1); + et(() => { + T(n, Z.pulseMarkerId === r().id); + }); + let o = ue(null), a = ue(null), s = ue(null); + rr(() => { + requestAnimationFrame(() => { + i(); + }), T(s, J(Za(() => { + i(); + }))); + }), Ea(() => { + h(s) && h(s)(); + }); + function i() { + if (!(!r() || !h(o))) + try { + T(a, J(document.querySelector(r().selector))); + let d, p; + if (h(a)) { + const Q = h(a).getBoundingClientRect(), re = Q.width * r().selectorOffsetX / 100, z = Q.height * r().selectorOffsetY / 100; + d = Q.left + window.scrollX + re, p = Q.top + window.scrollY + z; + } else + d = Number(r().pagePositionX), p = Number(r().pagePositionY); + const w = h(o).getBoundingClientRect(), I = w.width || 32, _ = w.height || 32, k = I / 2, y = _ / 2, g = Xn(), R = window.innerWidth, M = k, b = R - k, P = y, N = g - y, L = Math.max(M, Math.min(b, d)), K = Math.max(P, Math.min(N, p)); + h(o).style.left = `${L}px`, h(o).style.top = `${K}px`; + } catch (d) { + console.error("Error positioning marker:", d); + } + } + function u(d) { + Z.currentCommentId = d; + } + function c() { + Z.currentCommentId = 0; + } + function v() { + var p, w; + Z.open = !0; + const d = (w = (p = document.querySelector("loop")) == null ? void 0 : p.shadowRoot) == null ? void 0 : w.querySelector(`#comment-${r().id}`); + d && d.scrollIntoView({ behavior: "smooth", block: "start" }); + } + var m = Rr(), l = Oe(m); + { + var f = (d) => { + var p = Ja(); + let w; + var I = C(p); + te(I, { + onmouseenter: () => u(r().id), + onmouseout: c, + onblur: c, + onclick: v, + get style() { + return `button--marker button--marker-${r().status ?? ""}`; + }, + children: (_, k) => { + ge(); + var y = le(); + j(() => F(y, r().id)), $(_, y); + }, + $$slots: { default: !0 } + }), x(p), tt(p, (_) => T(o, _), () => h(o)), j( + (_) => { + w = ot(p, 1, `marker marker--${r().status ?? ""}`, "svelte-4f1edl", w, _), G(p, "id", `marker-${r().id ?? ""}`); + }, + [ + () => ({ "marker--pulse": h(n) }) + ] + ), $(d, p); + }; + $e(l, (d) => { + r() && d(f); + }); + } + return $(e, m), _e({ + get comment() { + return r(); + }, + set comment(d) { + r(d), E(); + } + }); +} +ae(Un, { comment: {} }, [], [], !0); +const qe = J({ comments: [] }), Ga = "loop", ut = document.querySelector("kirby-loop"), Qa = (ut == null ? void 0 : ut.getAttribute("csrf-token")) || "", es = (ut == null ? void 0 : ut.getAttribute("apibase")) || "/", ht = { + "Content-Type": "application/json", + "X-CSRF-Token": Qa || "" +}, mt = (e) => { + const t = new URL(`${es}/${Ga}/${e}`, window.location.origin), r = new URLSearchParams(window.location.search), n = r.get("token") || r.get("_token"); + return n && t.searchParams.set(r.has("token") ? "token" : "_token", n), t.toString(); +}, ts = async (e) => { + const t = mt(`comments/${e}`), n = await (await fetch(t, { headers: ht })).json(); + return n.status === "ok" && (qe.comments = n.comments), n.status === "ok"; +}, rs = async (e) => { + const t = mt("comment/new"), n = await (await fetch(t, { + method: "POST", + headers: ht, + body: JSON.stringify(e) + })).json(); + n.status === "ok" && (qe.comments = [n.comment, ...qe.comments]); +}, ns = async (e) => { + const t = mt("comment/resolve"), n = await (await fetch(t, { + method: "POST", + headers: ht, + body: JSON.stringify({ id: e.id }) + })).json(); + if (n.success) { + const o = qe.comments.findIndex((a) => a.id === e.id); + o !== -1 && (qe.comments[o].status = "RESOLVED"); + } + return n.success; +}, os = async (e) => { + const t = mt("comment/unresolve"), n = await (await fetch(t, { + method: "POST", + headers: ht, + body: JSON.stringify({ id: e.id }) + })).json(); + if (n.success) { + const o = qe.comments.findIndex((a) => a.id === e.id); + o !== -1 && (qe.comments[o].status = "OPEN"); + } + return n.success; +}, as = async (e) => await (await fetch(mt("guest/name"), { + method: "POST", + headers: ht, + body: JSON.stringify({ name: e }) +})).json(), ss = async (e) => { + const t = mt("comment/reply"), n = await (await fetch(t, { + method: "POST", + headers: ht, + body: JSON.stringify(e) + })).json(); + if (n.status === "ok") { + const o = qe.comments.find((a) => a.id === n.reply.parentId); + o && (o.replies = [...o.replies, n.reply]); + } +}, ct = J({ text: "", parentId: null }), cr = () => { + ct.text = "", ct.parentId = null; +}; +function is(e) { + var t; + if ((e.metaKey || e.ctrlKey) && e.key === "Enter") { + e.preventDefault(); + const r = (t = e.currentTarget) == null ? void 0 : t.closest("form"); + r && r.requestSubmit(); + } +} +var ls = /* @__PURE__ */ W('
'); +const us = { + hash: "svelte-w3h34c", + code: "form.svelte-w3h34c{cursor:auto;background-color:var(--comment-form-background);color:var(--comment-form-color);border-radius:var(--comment-form-border-radius);border:var(--comment-form-border);padding:0;overflow:hidden}textarea.svelte-w3h34c{width:100%;height:var(--comment-form-textarea-height);resize:none;padding:var(--comment-form-textarea-padding);box-sizing:border-box;background-color:var(--comment-form-textarea-background);font-family:var(--comment-form-textarea-font-family);font-size:var(--comment-form-textarea-font-size);color:currentColor;border:0;margin:0}textarea.svelte-w3h34c:focus-visible,textarea.svelte-w3h34c:focus{outline:0}footer.svelte-w3h34c{padding:var(--comment-form-footer-padding);gap:var(--comment-form-footer-gap);display:flex}footer.svelte-w3h34c button{flex:1}.keyboard-hint.svelte-w3h34c{font-size:var(--comment-form-hint-font-size);color:var(--comment-form-hint-color);padding:var(--comment-form-hint-padding);white-space:nowrap;align-self:center;margin-left:auto}" +}; +function Ar(e, t) { + we(t, !0), se(e, us); + const r = q(t, "handleSubmit", 7), n = q(t, "cancel", 7), o = q(t, "parentId", 7, null); + ct.parentId = o() ? Number(o()) : null; + var a = ls(), s = C(a), i = C(s); + ua(i), i.__keydown = [is], x(s); + var u = V(s, 2), c = C(u, !0); + x(u); + var v = V(u, 2), m = C(v); + te(m, { + type: "submit", + style: "button--solid", + children: (f, d) => { + ge(); + var p = le(); + j((w) => F(p, w), [ + () => o() ? O("ui.reply.submit", "Reply") : O("ui.comment.submit", "Submit") + ]), $(f, p); + }, + $$slots: { default: !0 } + }); + var l = V(m, 2); + return te(l, { + get onclick() { + return n(); + }, + children: (f, d) => { + ge(); + var p = le(); + j((w) => F(p, w), [() => O("ui.comment.cancel", "Cancel")]), $(f, p); + }, + $$slots: { default: !0 } + }), x(v), x(a), j( + (f, d) => { + G(i, "placeholder", f), F(c, d); + }, + [ + () => o() ? O("ui.reply.placeholder", "Write a reply...") : O("ui.comment.placeholder", "Enter your comment..."), + () => O("ui.comment.keyboardHint", "⌘+Enter or Ctrl+Enter to submit") + ] + ), Ze("submit", a, function(...f) { + var d; + (d = r()) == null || d.apply(this, f); + }), Hn(i, () => ct.text, (f) => ct.text = f), $(e, a), _e({ + get handleSubmit() { + return r(); + }, + set handleSubmit(f) { + r(f), E(); + }, + get cancel() { + return n(); + }, + set cancel(f) { + n(f), E(); + }, + get parentId() { + return o(); + }, + set parentId(f = null) { + o(f), E(); + } + }); +} +On(["keydown"]); +ae(Ar, { handleSubmit: {}, cancel: {}, parentId: {} }, [], [], !0); +var cs = /* @__PURE__ */ W('
'); +const ds = { + hash: "svelte-1xlsy1x", + code: ".author.svelte-1xlsy1x{font-size:var(--author-avatar-font-size);text-transform:uppercase;color:var(--author-avatar-color);background-color:var(--author-avatar-background-color);aspect-ratio:1;flex:0 0 var(--author-avatar-size);border-radius:var(--author-avatar-border-radius);justify-content:center;align-items:center;display:flex}" +}; +function Zn(e, t) { + we(t, !0), se(e, ds); + const r = q(t, "initials", 7); + var n = cs(), o = C(n, !0); + return x(n), j(() => F(o, r())), $(e, n), _e({ + get initials() { + return r(); + }, + set initials(a) { + r(a), E(); + } + }); +} +ae(Zn, { initials: {} }, [], [], !0); +function Wt(e, t = !0) { + const r = new Date(e * 1e3), o = (/* @__PURE__ */ new Date()).getTime() - r.getTime(), a = Math.floor(o / (1e3 * 60)), s = Math.floor(o / (1e3 * 60 * 60)), i = Math.floor(o / (1e3 * 60 * 60 * 24)); + return t && i <= 3 ? a < 1 ? O("ui.time.just_now", "just now") : a === 1 ? O("ui.time.minute_ago", "a minute ago") : a < 60 ? ur("ui.time.minutes_ago", "{count} minutes ago", { count: a.toString() }) : s === 1 ? O("ui.time.hour_ago", "an hour ago") : s < 24 ? ur("ui.time.hours_ago", "{count} hours ago", { count: s.toString() }) : i === 1 ? O("ui.time.yesterday", "yesterday") : ur("ui.time.days_ago", "{count} days ago", { count: i.toString() }) : r.toLocaleString(void 0, { dateStyle: "short", timeStyle: "short" }); +} +function Jn(e) { + return new Date(e * 1e3).toISOString(); +} +function Xt(e) { + const t = { + "&": "&", + "<": "<", + ">": ">", + """: '"', + "'": "'", + "/": "/", + "`": "`", + "=": "=" + }; + return e.replace(/&[#\w]+;/g, (r) => t[r] || r); +} +var fs = /* @__PURE__ */ W('
'); +const vs = { + hash: "svelte-1nsulj7", + code: ".reply.svelte-1nsulj7{gap:var(--reply-gap);flex-direction:row;align-items:start;display:flex}.reply__content.svelte-1nsulj7{padding:var(--reply-content-padding);background-color:var(--reply-content-background);border-radius:var(--reply-content-border-radius)}.reply__content.svelte-1nsulj7 header:where(.svelte-1nsulj7){gap:var(--reply-header-gap);margin-bottom:var(--reply-header-margin-bottom);justify-content:flex-start;align-items:center;display:flex}.reply__content.svelte-1nsulj7 header:where(.svelte-1nsulj7) time:where(.svelte-1nsulj7){font-size:var(--reply-timestamp-font-size);color:var(--reply-timestamp-color)}@media (prefers-color-scheme:dark){.reply__content.svelte-1nsulj7{background-color:var(--reply-content-background-dark)}}.reply__text.svelte-1nsulj7{white-space:pre-line}" +}; +function Kn(e, t) { + we(t, !1), se(e, vs); + let r = q(t, "reply", 12); + Fn(); + var n = fs(), o = C(n); + const a = /* @__PURE__ */ me(() => r().author.substring(0, 1)); + Zn(o, { + get initials() { + return h(a); + } + }); + var s = V(o, 2), i = C(s), u = C(i), c = C(u, !0); + x(u); + var v = V(u, 2), m = C(v, !0); + x(v), x(i); + var l = V(i, 2), f = C(l, !0); + return x(l), x(s), x(n), j( + (d, p, w, I, _, k) => { + G(n, "data-id", r().id), G(n, "aria-label", `${d ?? ""} ${r().author ?? ""}: ${p ?? ""}`), F(c, r().author), G(v, "datetime", w), G(v, "title", I), F(m, _), F(f, k); + }, + [ + () => O("ui.reply.aria.label", "Reply by"), + () => Xt(r().comment), + () => Jn(r().timestamp), + () => Wt(r().timestamp, !1), + () => Wt(r().timestamp), + () => Xt(r().comment) + ], + me + ), $(e, n), _e({ + get reply() { + return r(); + }, + set reply(d) { + r(d), E(); + } + }); +} +ae(Kn, { reply: {} }, [], [], !0); +var hs = /* @__PURE__ */ W("
  • "), ms = /* @__PURE__ */ W('
      '), gs = /* @__PURE__ */ W(" ", 1), ps = /* @__PURE__ */ W('
      '), bs = /* @__PURE__ */ W('
      '); +const ws = { + hash: "svelte-6fqqrp", + code: '.comment.svelte-6fqqrp{--loop-marker-background:var(--comment-marker-background);--loop-marker-color:var(--comment-marker-color);--marker-size:var(--comment-avatar-size);position:relative}.comment.svelte-6fqqrp>:where(.svelte-6fqqrp){z-index:1;position:relative}.comment.svelte-6fqqrp:after{content:"";left:var(--comment-line-offset);width:var(--comment-line-width);background-color:var(--comment-line-background);z-index:0;height:calc(100% - 4rem);position:absolute;top:1.5rem}.comment.svelte-6fqqrp:not([open]):after{height:calc(100% - 2.75rem)}.comment__header.svelte-6fqqrp{font-size:var(--comment-header-font-size);padding:var(--comment-header-padding);align-items:flex-start;gap:var(--comment-header-gap);cursor:pointer;border-radius:var(--comment-header-border-radius);display:flex}.comment__header.svelte-6fqqrp:focus-visible{outline:2px solid var(--comment-header-outline-color);outline-offset:var(--comment-header-outline-offset)}.comment__header.svelte-6fqqrp .comment__replies-count{bottom:0;left:var(--space-s);min-width:var(--comment-avatar-size);position:absolute}.comment__header.svelte-6fqqrp header:where(.svelte-6fqqrp){gap:var(--comment-author-gap);margin-bottom:var(--comment-author-margin-bottom);justify-content:flex-start;align-items:center;display:flex}.comment__header.svelte-6fqqrp header:where(.svelte-6fqqrp) time:where(.svelte-6fqqrp){font-size:var(--comment-timestamp-font-size);color:var(--comment-timestamp-color)}.comment__header.svelte-6fqqrp .comment__content:where(.svelte-6fqqrp){padding:var(--comment-content-padding);background-color:var(--comment-content-background);border-radius:var(--comment-content-border-radius);flex:1}@media (prefers-color-scheme:dark){.comment__header.svelte-6fqqrp .comment__content:where(.svelte-6fqqrp){background-color:var(--comment-content-background-dark)}}.comment__header.svelte-6fqqrp .comment__text:where(.svelte-6fqqrp){white-space:pre-line}.comment__replies.svelte-6fqqrp{padding:var(--comment-replies-padding);gap:var(--comment-replies-gap);flex-direction:column;margin:0;list-style:none;display:flex}footer.svelte-6fqqrp{gap:var(--comment-footer-gap);padding:var(--comment-footer-padding);flex-direction:column;display:flex}footer.svelte-6fqqrp .buttons:where(.svelte-6fqqrp){gap:var(--comment-buttons-gap);align-items:flex-end;display:flex}.is-hidden.svelte-6fqqrp{display:none}' +}; +function Gn(e, t) { + var z; + we(t, !0), se(e, ws); + const r = q(t, "comment", 7), n = q(t, "scrollIntoView", 7), o = q(t, "handleSubmit", 7), a = q(t, "cancel", 7); + let s = ue(!1), i = ue(J(((z = r().replies) == null ? void 0 : z.length) > 0 && !Z.showResolvedOnly)); + var u = bs(); + let c; + var v = C(u), m = C(v); + const l = /* @__PURE__ */ ee(() => r().status), f = /* @__PURE__ */ ee(() => Z.currentCommentId === r().id ? "button--marker-highlighted" : ""), d = /* @__PURE__ */ ee(() => `${O("ui.comment.maker.aria.label", "Jump to marker")} ${r().id}`); + te(m, { + get style() { + return `button--marker button--marker-${h(l) ?? ""} ${h(f) ?? ""}`; + }, + onclick: () => n()(r().id), + onmouseenter: () => Z.pulseMarkerId = r().id, + onmouseout: () => Z.pulseMarkerId = 0, + get ariaLabel() { + return h(d); + }, + children: (S, D) => { + ge(); + var X = le(); + j(() => F(X, r().id)), $(S, X); + }, + $$slots: { default: !0 } + }); + var p = V(m, 2), w = C(p), I = C(w), _ = C(I, !0); + x(I); + var k = V(I, 2), y = C(k, !0); + x(k), x(w); + var g = V(w, 2), R = C(g, !0); + x(g), x(p); + var M = V(p, 2); + { + var b = (S) => { + const D = /* @__PURE__ */ ee(() => `${O("ui.comment.replies.aria.label", "Show replies")} ${r().id}`); + te(S, { + style: "button--solid button--small comment__replies-count", + get ariaLabel() { + return h(D); + }, + onclick: () => { + T(i, !h(i)); + }, + children: (X, ce) => { + ge(); + var ye = le(); + j(() => { + var ne; + return F(ye, ((ne = r().replies) == null ? void 0 : ne.length) > 0 ? `+${r().replies.length}` : "+"); + }), $(X, ye); + }, + $$slots: { default: !0 } + }); + }; + $e(M, (S) => { + h(i) || S(b); + }); + } + x(v); + var P = V(v, 2); + { + var N = (S) => { + var D = ms(); + Tr(D, 21, () => r().replies, (X) => X.id, (X, ce) => { + var ye = hs(), ne = C(ye); + Kn(ne, { + get reply() { + return h(ce); + } + }), x(ye), $(X, ye); + }), x(D), $(S, D); + }; + $e(P, (S) => { + var D; + ((D = r().replies) == null ? void 0 : D.length) > 0 && S(N); + }); + } + var L = V(P, 2), K = C(L); + { + var Q = (S) => { + Ar(S, { + handleSubmit: (D) => { + T(s, !1), o()(D); + }, + cancel: () => { + T(s, !1), a()(); + }, + get parentId() { + return r().id; + } + }); + }, re = (S) => { + var D = ps(), X = C(D); + { + var ce = (ne) => { + var He = gs(), nr = Oe(He); + te(nr, { + style: "button--solid", + onclick: () => T(s, !0), + children: (gt, so) => { + ge(); + var pt = le(); + j((or) => F(pt, or), [() => O("ui.reply.submit", "Reply")]), $(gt, pt); + }, + $$slots: { default: !0 } + }); + var It = V(nr, 2); + te(It, { + onclick: () => ns(r()), + children: (gt, so) => { + ge(); + var pt = le(); + j((or) => F(pt, or), [ + () => O("ui.comment.mark.solved", "Resolve") + ]), $(gt, pt); + }, + $$slots: { default: !0 } + }), $(ne, He); + }, ye = (ne) => { + te(ne, { + onclick: () => os(r()), + children: (He, nr) => { + ge(); + var It = le(); + j((gt) => F(It, gt), [ + () => O("ui.comment.mark.unsolved", "Reopen") + ]), $(He, It); + }, + $$slots: { default: !0 } + }); + }; + $e(X, (ne) => { + r().status === "OPEN" ? ne(ce) : ne(ye, !1); + }); + } + x(D), $(S, D); + }; + $e(K, (S) => { + h(s) ? S(Q) : S(re, !1); + }); + } + return x(L), x(u), j( + (S, D, X, ce, ye, ne, He) => { + G(u, "id", `comment-${r().id ?? ""}`), c = ot(u, 1, `comment comment--${r().status ?? ""}`, "svelte-6fqqrp", c, S), G(v, "aria-label", `${D ?? ""} ${r().author ?? ""}: ${X ?? ""}`), F(_, r().author), G(k, "datetime", ce), G(k, "title", ye), F(y, ne), F(R, He); + }, + [ + () => ({ + "comment--current": Z.currentCommentId === r().id + }), + () => O("ui.comment.summary.aria.label", "Comment by"), + () => Xt(r().comment), + () => Jn(r().timestamp), + () => Wt(r().timestamp, !1), + () => Wt(r().timestamp), + () => Xt(r().comment) + ] + ), za("open", "toggle", u, (S) => T(i, S), () => h(i)), $(e, u), _e({ + get comment() { + return r(); + }, + set comment(S) { + r(S), E(); + }, + get scrollIntoView() { + return n(); + }, + set scrollIntoView(S) { + n(S), E(); + }, + get handleSubmit() { + return o(); + }, + set handleSubmit(S) { + o(S), E(); + }, + get cancel() { + return a(); + }, + set cancel(S) { + a(S), E(); + } + }); +} +ae( + Gn, + { + comment: {}, + scrollIntoView: {}, + handleSubmit: {}, + cancel: {} + }, + [], + [], + !0 +); +var _s = /* @__PURE__ */ qt(''); +const ys = { + hash: "svelte-1q9atlb", + code: "svg.svelte-1q9atlb{width:var(--size,var(--icon-size));height:var(--size,var(--icon-size))}" +}; +function ks(e) { + se(e, ys); + var t = _s(); + $(e, t); +} +ae(ks, {}, [], [], !0); +var xs = /* @__PURE__ */ qt(''); +const $s = { + hash: "svelte-1q9atlb", + code: "svg.svelte-1q9atlb{width:var(--size,var(--icon-size));height:var(--size,var(--icon-size))}" +}; +function Qn(e) { + se(e, $s); + var t = xs(); + $(e, t); +} +ae(Qn, {}, [], [], !0); +var it = Sa(() => Z), Cs = /* @__PURE__ */ W(''), zs = /* @__PURE__ */ W(''), Ss = /* @__PURE__ */ W('
      '); +const Es = { + hash: "svelte-15wfo7b", + code: ".context-menu-container.svelte-15wfo7b{bottom:var(--context-menu-container-bottom);right:var(--context-menu-container-right);z-index:var(--context-menu-container-z-index);position:absolute}.context-menu-trigger.svelte-15wfo7b{width:var(--context-menu-trigger-size);height:var(--context-menu-trigger-size);border-radius:var(--context-menu-trigger-border-radius);justify-content:center;align-items:center;display:flex}.context-menu.svelte-15wfo7b{background:var(--context-menu-background);border-radius:var(--context-menu-border-radius);box-shadow:var(--context-menu-shadow);padding:var(--context-menu-padding);min-width:var(--context-menu-min-width);border:0;margin:0;position:fixed}.context-menu.svelte-15wfo7b::backdrop{background:var(--context-menu-backdrop-background)}.menu-section.svelte-15wfo7b{gap:var(--context-menu-section-gap);flex-direction:column;display:flex}.menu-section-title.svelte-15wfo7b{font-size:var(--context-menu-title-font-size);font-weight:var(--context-menu-title-font-weight);color:var(--context-menu-title-color);margin-bottom:var(--context-menu-title-margin-bottom);text-transform:uppercase;letter-spacing:var(--context-menu-title-letter-spacing);padding:0}.filter-options.svelte-15wfo7b{gap:var(--context-menu-filter-gap);flex-direction:column;display:flex}.filter-dot.svelte-15wfo7b{width:var(--context-menu-filter-dot-size);height:var(--context-menu-filter-dot-size);border-radius:var(--context-menu-filter-dot-border-radius);margin-right:var(--context-menu-filter-dot-margin-right);display:inline-block}.filter-dot--open.svelte-15wfo7b{background:var(--context-menu-filter-dot-open-background)}.filter-dot--resolved.svelte-15wfo7b{background:var(--context-menu-filter-dot-resolved-background)}" +}; +function eo(e, t) { + we(t, !1), se(e, Es); + let r = Vr(), n = Vr(); + const o = () => { + h(r).matches(":popover-open") ? h(r).hidePopover() : (h(r).showPopover(), a()); + }, a = () => { + if (!h(n) || !h(r)) return; + const b = h(n).getBoundingClientRect(), P = h(r).getBoundingClientRect(), N = b.top - P.height - 8, L = b.left - P.width + b.width; + Mt(r, h(r).style.position = "fixed"), Mt(r, h(r).style.top = `${Math.max(8, N)}px`), Mt(r, h(r).style.left = `${Math.max(8, L)}px`), Mt(r, h(r).style.margin = "0"); + }, s = () => { + h(r).hidePopover(); + }, i = (b) => { + it(it().showResolvedOnly = b), s(); + }; + Fn(); + var u = Ss(), c = C(u), v = C(c); + const m = /* @__PURE__ */ me(() => O("ui.panel.menu.open", "Open menu")), l = /* @__PURE__ */ me(() => { + var b; + return (b = h(r)) != null && b.matches(":popover-open") ? "true" : "false"; + }); + te(v, { + onclick: o, + get ariaLabel() { + return h(m); + }, + style: "button--icon", + id: "context-menu-trigger", + ariaHaspopup: "menu", + get ariaExpanded() { + return h(l); + }, + ariaControls: "context-menu", + $$slots: { + icon: (b, P) => { + Qn(b); + } + } + }), x(c), tt(c, (b) => T(n, b), () => h(n)); + var f = V(c, 2), d = C(f), p = C(d), w = C(p, !0); + x(p); + var I = V(p, 2), _ = C(I); + const k = /* @__PURE__ */ me(() => it().showResolvedOnly ? "" : "button--menu-item-active"), y = /* @__PURE__ */ me(() => it().showResolvedOnly ? O("ui.panel.filter.open.inactive", "Show open comments") : O("ui.panel.filter.open.active", "Show open comments (currently selected)")); + te(_, { + get style() { + return `button--menu-item ${h(k) ?? ""}`; + }, + onclick: () => i(!1), + get ariaLabel() { + return h(y); + }, + children: (b, P) => { + ge(); + var N = le(); + j((L) => F(N, L), [() => O("ui.panel.filter.open", "Open")], me), $(b, N); + }, + $$slots: { + default: !0, + icon: (b, P) => { + var N = Cs(); + $(b, N); + } + } + }); + var g = V(_, 2); + const R = /* @__PURE__ */ me(() => it().showResolvedOnly ? "button--menu-item-active" : ""), M = /* @__PURE__ */ me(() => it().showResolvedOnly ? O("ui.panel.filter.resolved.active", "Show resolved comments (currently selected)") : O("ui.panel.filter.resolved.inactive", "Show resolved comments")); + te(g, { + get style() { + return `button--menu-item ${h(R) ?? ""}`; + }, + onclick: () => i(!0), + get ariaLabel() { + return h(M); + }, + children: (b, P) => { + ge(); + var N = le(); + j( + (L) => F(N, L), + [ + () => O("ui.panel.filter.resolved", "Resolved") + ], + me + ), $(b, N); + }, + $$slots: { + default: !0, + icon: (b, P) => { + var N = zs(); + $(b, N); + } + } + }), x(I), x(d), x(f), tt(f, (b) => T(r, b), () => h(r)), x(u), j( + (b) => F(w, b), + [ + () => O("ui.panel.menu.filter.title", "Show Comments") + ], + me + ), $(e, u), _e(); +} +ae(eo, {}, [], [], !0); +var qs = /* @__PURE__ */ qt(''); +const Is = { + hash: "svelte-1q9atlb", + code: "svg.svelte-1q9atlb{width:var(--size,var(--icon-size));height:var(--size,var(--icon-size))}" +}; +function to(e) { + se(e, Is); + var t = qs(); + $(e, t); +} +ae(to, {}, [], [], !0); +var Ms = /* @__PURE__ */ W('
    • '), Ps = /* @__PURE__ */ W('
    • '), Ns = /* @__PURE__ */ W('
    • '), Rs = /* @__PURE__ */ W('
      '); +const Ts = { + hash: "svelte-1nwyuw", + code: ".panel.svelte-1nwyuw{position:var(--panel-position);right:var(--panel-right);top:var(--panel-top);transform:var(--panel-transform-closed);width:var(--panel-width);max-width:none;height:var(--panel-height);color:var(--panel-color);border-radius:var(--panel-border-radius);border-top-left-radius:var(--panel-border-top-left-radius);transition:var(--panel-transition);z-index:var(--panel-z-index);cursor:auto;background:0 0;border:0;flex-direction:column;justify-content:flex-start;align-items:flex-start;margin:0;padding:0;display:flex;bottom:auto;left:auto}@media screen and (max-width:600px){.panel.svelte-1nwyuw{width:var(--panel-mobile-width)}}.panel.open.svelte-1nwyuw{transform:var(--panel-transform-open);box-shadow:var(--panel-shadow)}.panel.open.svelte-1nwyuw header:where(.svelte-1nwyuw){transform:var(--panel-header-transform-open)}.panel.svelte-1nwyuw header:where(.svelte-1nwyuw){transform:var(--panel-header-transform-closed);border-top-left-radius:var(--panel-header-border-radius);border-bottom-left-radius:var(--panel-header-border-radius);gap:var(--panel-header-gap);-webkit-backdrop-filter:var(--panel-header-backdrop-filter);backdrop-filter:var(--panel-header-backdrop-filter);background:var(--panel-header-background);box-shadow:var(--shadow-l),var(--shadow-light-edge),var(--shadow-dark-edge);transition:transform var(--transition-duration)var(--transition-easing);border-top-right-radius:0;border-bottom-right-radius:0;flex-direction:column;display:flex;position:absolute}.panel.svelte-1nwyuw header:where(.svelte-1nwyuw):hover,.panel.svelte-1nwyuw header:where(.svelte-1nwyuw):focus-visible{transform:var(--panel-header-transform-hover)}.threads.svelte-1nwyuw{overscroll-behavior:contain;padding:var(--panel-threads-padding);box-sizing:border-box;background-color:var(--panel-threads-background);width:100%;-webkit-backdrop-filter:var(--panel-threads-backdrop);backdrop-filter:var(--panel-threads-backdrop);z-index:2;border-radius:var(--panel-threads-border-radius);border-top-left-radius:var(--panel-threads-border-top-left-radius);scrollbar-width:var(--panel-threads-scrollbar-width);scrollbar-gutter:stable;flex-direction:column;flex:100%;margin:0;list-style:none;display:flex;overflow-y:auto}.threads.svelte-1nwyuw li:where(.svelte-1nwyuw)+li:where(.svelte-1nwyuw){margin-top:var(--panel-threads-item-margin)}.threads.svelte-1nwyuw .no-threads:where(.svelte-1nwyuw){text-align:center;padding:var(--panel-no-threads-padding);font-size:var(--panel-no-threads-font-size);color:var(--panel-no-threads-color);margin-block:auto}" +}; +function ro(e, t) { + we(t, !0), se(e, Ts); + const r = q(t, "scrollIntoView", 7), n = q(t, "handleSubmit", 7), o = q(t, "cancel", 7); + let a; + const s = /* @__PURE__ */ ee(() => Z.showResolvedOnly ? qe.comments.filter((_) => _.status === "RESOLVED") : qe.comments.filter((_) => _.status === "OPEN")); + et(() => { + a && (Z.open && !a.open ? a.show() : !Z.open && a.open && a.close()); + }), rr(() => { + const _ = (k) => { + k.key === "Escape" && Z.open && (Z.open = !1); + }; + return document.addEventListener("keydown", _), () => document.removeEventListener("keydown", _); + }); + function i() { + Z.open = !1; + } + var u = Rs(); + let c; + var v = C(u), m = C(v); + const l = /* @__PURE__ */ ee(() => O("ui.panel.open", "Open comments")); + te(m, { + onclick: () => Z.open = !Z.open, + style: "button--header", + get ariaLabel() { + return h(l); + }, + $$slots: { + icon: (_, k) => { + to(_); + } + } + }), x(v); + var f = V(v, 2), d = C(f); + { + var p = (_) => { + var k = Ms(), y = C(k), g = C(y, !0); + x(y), x(k), j((R) => F(g, R), [ + () => O("ui.panel.no.comments", "No comments yet.") + ]), $(_, k); + }, w = (_, k) => { + { + var y = (R) => { + var M = Ps(), b = C(M), P = C(b, !0); + x(b), x(M), j((N) => F(P, N), [ + () => O("ui.panel.no.resolved", "No resolved comments yet.") + ]), $(R, M); + }, g = (R) => { + var M = Rr(), b = Oe(M); + Tr(b, 17, () => h(s), (P) => P.id, (P, N) => { + var L = Ns(), K = C(L); + Gn(K, { + get comment() { + return h(N); + }, + get scrollIntoView() { + return r(); + }, + get cancel() { + return o(); + }, + get handleSubmit() { + return n(); + } + }), x(L), $(P, L); + }), $(R, M); + }; + $e( + _, + (R) => { + h(s).length === 0 && Z.showResolvedOnly ? R(y) : R(g, !1); + }, + k + ); + } + }; + $e(d, (_) => { + h(s).length === 0 ? _(p) : _(w, !1); + }); + } + x(f); + var I = V(f, 2); + return eo(I, {}), x(u), tt(u, (_) => a = _, () => a), j( + (_) => { + c = ot(u, 1, "panel svelte-1nwyuw", null, c, _), f.inert = !Z.open; + }, + [() => ({ open: Z.open })] + ), Ze("close", u, i), $(e, u), _e({ + get scrollIntoView() { + return r(); + }, + set scrollIntoView(_) { + r(_), E(); + }, + get handleSubmit() { + return n(); + }, + set handleSubmit(_) { + n(_), E(); + }, + get cancel() { + return o(); + }, + set cancel(_) { + o(_), E(); + } + }); +} +ae( + ro, + { + scrollIntoView: {}, + handleSubmit: {}, + cancel: {} + }, + [], + [], + !0 +); +function Os(e) { + const t = e.target; + if (!t) + throw new Error("No target element found in event"); + const r = As(); + for (const n of r) + try { + const o = n.generator(t); + if (o && Hs(o, t)) + return o; + } catch (o) { + console.warn(`Strategy ${n.name} failed:`, o); + } + return Ls(t); +} +function As() { + return [ + { + name: "ID", + priority: 1, + generator: (e) => e.id && Lr(e.id) ? `#${CSS.escape(e.id)}` : null + }, + { + name: "Unique Attributes", + priority: 2, + generator: (e) => { + const t = ["data-testid", "data-id", "name", "for"]; + for (const r of t) { + const n = e.getAttribute(r); + if (n) { + const o = `${e.tagName.toLowerCase()}[${r}="${CSS.escape(n)}"]`; + if (Fe(o)) + return o; + } + } + return null; + } + }, + { + name: "Semantic Attributes", + priority: 3, + generator: (e) => { + const t = [ + "aria-label", + "aria-labelledby", + "role", + "type", + "placeholder", + "title", + "alt" + ], n = [e.tagName.toLowerCase()]; + for (const o of t) { + const a = e.getAttribute(o); + a && n.push(`[${o}="${CSS.escape(a)}"]`); + } + if (n.length > 1) { + const o = n.join(""); + if (Fe(o)) + return o; + } + return null; + } + }, + { + name: "Structural Attributes", + priority: 4, + generator: (e) => { + const t = ["href", "src", "action", "value"], r = e.tagName.toLowerCase(); + for (const n of t) { + const o = e.getAttribute(n); + if (o && o.length > 0) { + const a = `${r}[${n}="${CSS.escape(o)}"]`; + if (Fe(a)) + return a; + } + } + return null; + } + }, + { + name: "Class Combinations", + priority: 5, + generator: (e) => { + const t = Ut(e); + if (t.length === 0) + return null; + const r = e.tagName.toLowerCase(); + for (const n of t) { + const o = `${r}.${CSS.escape(n)}`; + if (Fe(o)) + return o; + } + if (t.length >= 2) { + const n = t.slice(0, 3).map((a) => `.${CSS.escape(a)}`).join(""), o = `${r}${n}`; + if (Fe(o)) + return o; + } + return null; + } + }, + { + name: "Parent Context", + priority: 6, + generator: (e) => { + const t = e.parentElement; + if (!t) return null; + const r = Ds(t); + if (!r) return null; + const n = e.tagName.toLowerCase(), o = no(e); + if (o > 0) { + const s = `${r} > ${n}:nth-of-type(${o})`; + if (Fe(s)) + return s; + } + const a = Ut(e); + if (a.length > 0) { + const s = `${r} > ${n}.${CSS.escape(a[0])}`; + if (Fe(s)) + return s; + } + return null; + } + } + ]; +} +function Ut(e) { + const t = Array.from(e.classList), r = [ + /^(is-|has-|js-)/, + // State prefixes + /^(active|disabled|loading|selected|hover|focus)/, + // State classes + /^[a-z]+-[0-9]+$/, + // Generated classes like 'item-123' + /^(sm-|md-|lg-|xl-)/, + // Responsive utilities + /^(m-|p-|w-|h-|text-|bg-)/, + // Tailwind-like utilities + /^[a-f0-9]{6,}$/ + // Hash-like classes + ]; + return t.filter((n) => !r.some((o) => o.test(n))); +} +function Ls(e) { + const t = []; + let r = e; + for (; r && r !== document.body && t.length < 5; ) { + const n = js(r); + t.unshift(n); + const o = t.join(" > "); + if (Fe(o)) + return o; + r = r.parentElement; + } + return t.join(" > "); +} +function Ds(e) { + if (e.id && Lr(e.id)) + return `#${CSS.escape(e.id)}`; + const t = ["data-testid", "data-id", "name"]; + for (const o of t) { + const a = e.getAttribute(o); + if (a) + return `[${o}="${CSS.escape(a)}"]`; + } + const r = e.tagName.toLowerCase(), n = Ut(e); + return n.length > 0 ? `${r}.${CSS.escape(n[0])}` : null; +} +function js(e) { + const t = e.tagName.toLowerCase(); + if (e.id && Lr(e.id)) + return `#${CSS.escape(e.id)}`; + const r = Ut(e); + if (r.length > 0) + return `${t}.${CSS.escape(r[0])}`; + const n = no(e); + return n > 1 ? `${t}:nth-of-type(${n})` : t; +} +function no(e) { + let t = 1, r = e.previousElementSibling; + for (; r; ) + r.tagName === e.tagName && t++, r = r.previousElementSibling; + return t; +} +function Hs(e, t) { + try { + const r = document.querySelectorAll(e); + return r.length === 1 && r[0] === t; + } catch (r) { + return console.warn(`Invalid selector: ${e}`, r), !1; + } +} +function Fe(e) { + try { + return document.querySelectorAll(e).length === 1; + } catch { + return !1; + } +} +function Lr(e) { + return ![ + /^[a-f0-9]{8,}$/, + // Hex strings + /^(ember|react|vue)[0-9]+/, + // Framework generated + /^[0-9]+$/, + // Pure numbers + /^temp-/ + // Temporary prefixes + ].some((r) => r.test(e)); +} +const Fs = (e, t) => { + const r = e.pageX, n = e.pageY, o = t.getBoundingClientRect(), a = o.left + window.scrollX, s = o.top + window.scrollY, i = r - a, u = n - s; + let c = i / t.offsetWidth * 100, v = u / t.offsetHeight * 100; + return c = Number(c.toFixed(2)), v = Number(v.toFixed(2)), { + selectorOffsetX: c, + selectorOffsetY: v + }; +}, Vs = (e) => { + const t = Os(e), r = document.querySelector(t); + if (!r) return; + const { selectorOffsetX: n, selectorOffsetY: o } = Fs(e, r); + let a = e.pageX, s = e.pageY; + return a = Number(a.toFixed(2)), s = Number(s.toFixed(2)), { + selector: t, + selectorOffsetX: n, + selectorOffsetY: o, + pagePositionX: a, + pagePositionY: s + }; +}, Bs = () => { + const e = document.body, t = document.documentElement; + return Math.max( + e.scrollWidth, + e.offsetWidth, + t.clientWidth, + t.scrollWidth, + t.offsetWidth + ); +}, Ys = (e, t) => { + let r = 0, n = 0; + if (!e || !t) return { left: r, top: n }; + r = e.pagePositionX, n = e.pagePositionY; + const o = t.offsetWidth, a = t.offsetHeight, s = Bs(), i = Xn(); + return r + o > s && (r = s - o), n + a > i && (n = i - a), r = Math.max(0, r), n = Math.max(0, n), { left: r, top: n }; +}; +var Ws = /* @__PURE__ */ W(""); +const Xs = { + hash: "svelte-iihm64", + code: "dialog.svelte-iihm64{--loop-textarea-font-size:var(--comment-dialog-textarea-font-size);position:var(--comment-dialog-position);top:var(--top);left:var(--left);max-width:var(--comment-dialog-max-width);border-radius:var(--comment-dialog-border-radius);visibility:hidden;width:100%;max-height:none;box-shadow:var(--comment-dialog-shadow);border:0;margin:0;padding:0;overflow:hidden}dialog.is-visible.svelte-iihm64{visibility:visible}dialog.svelte-iihm64::backdrop{background-color:var(--comment-dialog-backdrop-background)}" +}; +function oo(e, t) { + we(t, !0), se(e, Xs); + const r = q(t, "handleSubmit", 7), n = q(t, "showModal", 7), o = q(t, "newMarker", 7), a = q(t, "cancel", 7); + let s, i = ue(J({ left: 0, top: 0 })), u = ue(!1); + et(() => { + n() ? (s.showModal(), T(i, J(Ys(o(), s))), T(u, !0)) : (s.close(), T(u, !1)); + }); + var c = Ws(); + let v; + var m = C(c); + return Ar(m, { + get handleSubmit() { + return r(); + }, + get cancel() { + return a(); + } + }), x(c), tt(c, (l) => s = l, () => s), j( + (l) => { + _a(c, `--left: ${h(i).left ?? ""}px; --top: ${h(i).top ?? ""}px;`), v = ot(c, 1, "svelte-iihm64", null, v, l); + }, + [() => ({ "is-visible": h(u) })] + ), Ze("close", c, function(...l) { + var f; + (f = a()) == null || f.apply(this, l); + }), $(e, c), _e({ + get handleSubmit() { + return r(); + }, + set handleSubmit(l) { + r(l), E(); + }, + get showModal() { + return n(); + }, + set showModal(l) { + n(l), E(); + }, + get newMarker() { + return o(); + }, + set newMarker(l) { + o(l), E(); + }, + get cancel() { + return a(); + }, + set cancel(l) { + a(l), E(); + } + }); +} +ae( + oo, + { + handleSubmit: {}, + showModal: {}, + newMarker: {}, + cancel: {} + }, + [], + [], + !0 +); +var Us = /* @__PURE__ */ W('

      ', 1), Zs = /* @__PURE__ */ W('
      '), Js = /* @__PURE__ */ W('
      '); +const Ks = { + hash: "svelte-1y3js7r", + code: "dialog.svelte-1y3js7r{-webkit-backdrop-filter:var(--welcome-dialog-backdrop-filter);backdrop-filter:var(--welcome-dialog-backdrop-filter);border:var(--welcome-dialog-border);border-radius:var(--welcome-dialog-border-radius);box-shadow:var(--welcome-dialog-shadow);width:100%;max-width:var(--welcome-dialog-max-width);background:var(--welcome-dialog-background);padding:0}dialog.svelte-1y3js7r::backdrop{background:var(--welcome-dialog-backdrop-background);-webkit-backdrop-filter:var(--welcome-dialog-backdrop-backdrop-filter);backdrop-filter:var(--welcome-dialog-backdrop-backdrop-filter)}form.svelte-1y3js7r{padding:var(--welcome-dialog-form-padding)}h2.svelte-1y3js7r{margin:var(--welcome-dialog-title-margin);font-size:var(--welcome-dialog-title-font-size);color:var(--welcome-dialog-title-color);font-weight:var(--welcome-dialog-title-font-weight)}.welcome-text.svelte-1y3js7r{margin:var(--welcome-dialog-text-margin);font-size:var(--welcome-dialog-text-font-size);color:var(--welcome-dialog-text-color);line-height:var(--welcome-dialog-text-line-height)}.name-section.svelte-1y3js7r{margin-bottom:var(--welcome-dialog-name-section-margin)}.name-section.no-welcome.svelte-1y3js7r{border-top:none;padding-top:0}input.svelte-1y3js7r{border:var(--welcome-dialog-input-border);border-radius:var(--welcome-dialog-input-border-radius);width:100%;padding:var(--welcome-dialog-input-padding);box-sizing:border-box;font-family:var(--welcome-dialog-input-font-family);font-size:var(--welcome-dialog-input-font-size);color:var(--welcome-dialog-input-color);background:var(--welcome-dialog-input-background)}input.svelte-1y3js7r:focus-visible{outline-color:var(--welcome-dialog-input-outline-color);outline-offset:var(--welcome-dialog-input-outline-offset)}footer.svelte-1y3js7r{gap:var(--welcome-dialog-footer-gap);display:flex}footer.svelte-1y3js7r button{flex:1}" +}; +function ao(e, t) { + we(t, !0), se(e, Ks); + const r = q(t, "headline", 7), n = q(t, "text", 7), o = q(t, "authenticated", 7), a = q(t, "welcomeEnabled", 7, !0), s = q(t, "onDismiss", 7); + let i, u = ue(""), c = ue(!1); + const v = () => i == null ? void 0 : i.showModal(), m = () => i == null ? void 0 : i.close(); + async function l(b) { + var P; + if (b.preventDefault(), o()) + (P = s()) == null || P(), i == null || i.close(); + else if (h(u).trim() && !h(c)) { + T(c, !0); + try { + await as(h(u).trim()), lt.set(h(u).trim()), i == null || i.close(); + } catch (N) { + console.error("Failed to set guest name:", N); + } finally { + T(c, !1); + } + } + } + function f() { + i == null || i.close(); + } + function d() { + T(u, ""), T(c, !1); + } + var p = Js(), w = C(p), I = C(w); + { + var _ = (b) => { + var P = Us(), N = Oe(P), L = C(N, !0); + x(N); + var K = V(N, 2), Q = C(K, !0); + x(K), j(() => { + F(L, r()), F(Q, n()); + }), $(b, P); + }; + $e(I, (b) => { + a() && b(_); + }); + } + var k = V(I, 2); + { + var y = (b) => { + var P = Zs(); + let N; + var L = C(P), K = C(L); + xa(K), x(L), x(P), j( + (Q, re) => { + N = ot(P, 1, "name-section svelte-1y3js7r", null, N, Q), G(K, "placeholder", re); + }, + [ + () => ({ "no-welcome": !a() }), + () => O("ui.welcome.guest.name.placeholder", "Enter your name") + ] + ), Hn(K, () => h(u), (Q) => T(u, Q)), $(b, P); + }; + $e(k, (b) => { + o() || b(y); + }); + } + var g = V(k, 2), R = C(g); + te(R, { + type: "submit", + style: "button--solid", + get disabled() { + return h(c); + }, + children: (b, P) => { + var N = Rr(), L = Oe(N); + { + var K = (re) => { + var z = le(); + j((S) => F(z, S), [ + () => h(c) ? "Saving..." : O("ui.welcome.continue", "Continue") + ]), $(re, z); + }, Q = (re) => { + var z = le(); + j((S) => F(z, S), [() => O("ui.welcome.continue", "Continue")]), $(re, z); + }; + $e(L, (re) => { + o() ? re(Q, !1) : re(K); + }); + } + $(b, N); + }, + $$slots: { default: !0 } + }); + var M = V(R, 2); + return te(M, { + onclick: f, + get disabled() { + return h(c); + }, + children: (b, P) => { + ge(); + var N = le(); + j((L) => F(N, L), [() => O("ui.welcome.dismiss", "Dismiss")]), $(b, N); + }, + $$slots: { default: !0 } + }), x(g), x(w), x(p), tt(p, (b) => i = b, () => i), Ze("close", p, d), Ze("submit", w, l), $(e, p), _e({ + showModal: v, + close: m, + get headline() { + return r(); + }, + set headline(b) { + r(b), E(); + }, + get text() { + return n(); + }, + set text(b) { + n(b), E(); + }, + get authenticated() { + return o(); + }, + set authenticated(b) { + o(b), E(); + }, + get welcomeEnabled() { + return a(); + }, + set welcomeEnabled(b = !0) { + a(b), E(); + }, + get onDismiss() { + return s(); + }, + set onDismiss(b) { + s(b), E(); + } + }); +} +ae( + ao, + { + headline: {}, + text: {}, + authenticated: {}, + welcomeEnabled: {}, + onDismiss: {} + }, + [], + ["showModal", "close"], + !0 +); +var Gs = /* @__PURE__ */ W(" ", 1), Qs = /* @__PURE__ */ W(" ", 1); +function ei(e, t) { + we(t, !0); + const r = q(t, "position", 7), n = q(t, "language", 7), o = q(t, "apibase", 7), a = q(t, "pageId", 7), s = q(t, "authenticated", 7), i = q(t, "welcome-enabled", 7), u = q(t, "welcome-headline", 7), c = q(t, "welcome-text", 7), v = q(t, "translations", 7); + let m = ue(!1), l = ue(!1), f, d = /* @__PURE__ */ ee(() => s() === "true"), p = /* @__PURE__ */ ee(() => i() === "true"); + const w = /* @__PURE__ */ ee(() => qe.comments.filter((z) => z.status !== "RESOLVED")), I = "loop-welcome-dismissed", _ = () => h(d) ? sessionStorage.getItem(I) === "true" : !1, k = () => { + h(d) && sessionStorage.setItem(I, "true"); + }; + let y = ue(null); + const g = (z) => { + var D; + const S = (D = t.$$host.shadowRoot) == null ? void 0 : D.getElementById(`marker-${z}`); + S && S.scrollIntoView({ behavior: "smooth", block: "center" }); + }, R = (z) => { + var ce; + const S = z.target, D = S.nodeName === "KIRBY-LOOP" || ((ce = S.parentElement) == null ? void 0 : ce.closest("loop")); + if (!Je.open || D) return; + if (!h(d) && !lt.get()) { + f == null || f.showModal(); + return; + } + const X = Vs(z); + X && (T(y, J(X)), T(l, !0)); + }, M = () => { + T(l, !1), cr(); + }, b = (z) => { + if (z.preventDefault(), !h(d) && !lt.get()) { + f == null || f.showModal(); + return; + } + const { text: S, parentId: D } = ct; + if (D) + ss({ parentId: D, comment: S }), cr(); + else { + if (!h(y)) return; + const X = n() || "", ce = { + url: window.location.href, + comment: S, + parentId: null, + lang: X, + pageId: a(), + ...h(y) + }; + T(l, !1), rs(ce), cr(); + } + }; + rr(async () => { + const z = JSON.parse(v() || "{}"); + Ra(z), T(m, J(await ts(a()))), lt.get(), h(p) && h(m) ? (h(d) && !_() || !h(d) && !lt.get()) && (f == null || f.showModal()) : !h(d) && !lt.get() && h(m) && (f == null || f.showModal()); + }), et(() => { + Je.open ? document.body.style.setProperty("cursor", `url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23Z' stroke='white' stroke-width='0.75'/%3E%3Cpath d='M15 12H12M12 12H9M12 12V9M12 12V15' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M15 12H12M12 12H9M12 12V9M12 12V15' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"), auto`) : document.body.style.removeProperty("cursor"), document.documentElement.classList.toggle("loop-overlay-open", Je.open); + }); + var P = Qs(); + Ze("click", pn, R); + var N = Oe(P); + { + var L = (z) => { + var S = Gs(), D = Oe(S); + Wn(D, { + get position() { + return r(); + }, + get commentsCount() { + return h(w).length; + } + }); + var X = V(D, 2); + ro(X, { scrollIntoView: g, handleSubmit: b, cancel: M }); + var ce = V(X, 2); + Tr(ce, 17, () => h(w), (ne) => ne.id, (ne, He) => { + Un(ne, { + get comment() { + return h(He); + } + }); + }); + var ye = V(ce, 2); + oo(ye, { + handleSubmit: b, + get showModal() { + return h(l); + }, + get newMarker() { + return h(y); + }, + cancel: M + }), $(z, S); + }; + $e(N, (z) => { + h(m) && z(L); + }); + } + var K = V(N, 2); + const Q = /* @__PURE__ */ ee(() => u() || ""), re = /* @__PURE__ */ ee(() => c() || ""); + return tt( + ao(K, { + get headline() { + return h(Q); + }, + get text() { + return h(re); + }, + get authenticated() { + return h(d); + }, + get welcomeEnabled() { + return h(p); + }, + onDismiss: k + }), + (z) => f = z, + () => f + ), $(e, P), _e({ + get position() { + return r(); + }, + set position(z) { + r(z), E(); + }, + get language() { + return n(); + }, + set language(z) { + n(z), E(); + }, + get apibase() { + return o(); + }, + set apibase(z) { + o(z), E(); + }, + get pageId() { + return a(); + }, + set pageId(z) { + a(z), E(); + }, + get authenticated() { + return s(); + }, + set authenticated(z) { + s(z), E(); + }, + get "welcome-enabled"() { + return i(); + }, + set "welcome-enabled"(z) { + i(z), E(); + }, + get "welcome-headline"() { + return u(); + }, + set "welcome-headline"(z) { + u(z), E(); + }, + get "welcome-text"() { + return c(); + }, + set "welcome-text"(z) { + c(z), E(); + }, + get translations() { + return v(); + }, + set translations(z) { + v(z), E(); + } + }); +} +customElements.define("kirby-loop", ae( + ei, + { + position: {}, + language: {}, + apibase: {}, + pageId: {}, + authenticated: {}, + "welcome-enabled": {}, + "welcome-headline": {}, + "welcome-text": {}, + translations: {} + }, + [], + [], + !0 +)); +export { + ei as default +}; diff --git a/site/plugins/loop/biome.json b/site/plugins/loop/biome.json new file mode 100644 index 0000000..30a68d1 --- /dev/null +++ b/site/plugins/loop/biome.json @@ -0,0 +1,15 @@ +{ + "overrides": [ + { + "include": ["*.svelte", "*.astro", "*.vue"], + "linter": { + "rules": { + "style": { + "useConst": "off", + "useImportType": "off" + } + } + } + } + ] +} diff --git a/site/plugins/loop/composer.json b/site/plugins/loop/composer.json new file mode 100755 index 0000000..0ef6dea --- /dev/null +++ b/site/plugins/loop/composer.json @@ -0,0 +1,55 @@ +{ + "name": "moinframe/kirby-loop", + "description": "Interactive feedback tool for Kirby CMS websites that allows users to add contextual comments directly on page elements", + "homepage": "https://github.com/moinframe/kirby-loop", + "license": "MIT", + "type": "kirby-plugin", + "version": "1.0.1", + "keywords": [ + "kirby", + "cms", + "plugin", + "feedback", + "comments", + "review", + "loop" + ], + "authors": [ + { + "name": "Justus Kraft", + "email": "justus@moinfra.me", + "homepage": "https://moinfra.me" + } + ], + "require": { + "getkirby/composer-installer": "^1.1", + "getkirby/cms": "^4.0||^5.0" + }, + "autoload": { + "psr-4": { + "Moinframe\\Loop\\": "src/" + } + }, + "support": { + "docs": "https://moinfra.me/docs/moinframe-loop", + "source": "https://github.com/moinframe/kirby-loop", + "issues": "https://github.com/moinframe/kirby-loop/issues" + }, + "scripts": { + "analyse": "vendor/bin/phpstan analyse" + }, + "config": { + "optimize-autoloader": true, + "allow-plugins": { + "getkirby/composer-installer": true + } + }, + "extra": { + "installer-name": "loop" + }, + "require-dev": { + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-strict-rules": "^2.0", + "phpstan/phpstan-deprecation-rules": "^2.0" + } +} diff --git a/site/plugins/loop/composer.lock b/site/plugins/loop/composer.lock new file mode 100644 index 0000000..b6d4f74 --- /dev/null +++ b/site/plugins/loop/composer.lock @@ -0,0 +1,1358 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "7c44133100ded43f96ca00fffaa78947", + "packages": [ + { + "name": "christian-riesen/base32", + "version": "1.6.0", + "source": { + "type": "git", + "url": "https://github.com/ChristianRiesen/base32.git", + "reference": "2e82dab3baa008e24a505649b0d583c31d31e894" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ChristianRiesen/base32/zipball/2e82dab3baa008e24a505649b0d583c31d31e894", + "reference": "2e82dab3baa008e24a505649b0d583c31d31e894", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.17", + "phpstan/phpstan": "^0.12", + "phpunit/phpunit": "^8.5.13 || ^9.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Base32\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christian Riesen", + "email": "chris.riesen@gmail.com", + "homepage": "http://christianriesen.com", + "role": "Developer" + } + ], + "description": "Base32 encoder/decoder according to RFC 4648", + "homepage": "https://github.com/ChristianRiesen/base32", + "keywords": [ + "base32", + "decode", + "encode", + "rfc4648" + ], + "support": { + "issues": "https://github.com/ChristianRiesen/base32/issues", + "source": "https://github.com/ChristianRiesen/base32/tree/1.6.0" + }, + "time": "2021-02-26T10:19:33+00:00" + }, + { + "name": "claviska/simpleimage", + "version": "4.2.1", + "source": { + "type": "git", + "url": "https://github.com/claviska/SimpleImage.git", + "reference": "ec6d5021e5a7153a2520d64c59b86b6f3c4157c5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/claviska/SimpleImage/zipball/ec6d5021e5a7153a2520d64c59b86b6f3c4157c5", + "reference": "ec6d5021e5a7153a2520d64c59b86b6f3c4157c5", + "shasum": "" + }, + "require": { + "ext-gd": "*", + "league/color-extractor": "0.4.*", + "php": ">=8.0" + }, + "require-dev": { + "laravel/pint": "^1.5", + "phpstan/phpstan": "^1.10" + }, + "type": "library", + "autoload": { + "psr-0": { + "claviska": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Cory LaViska", + "homepage": "http://www.abeautifulsite.net/", + "role": "Developer" + } + ], + "description": "A PHP class that makes working with images as simple as possible.", + "support": { + "issues": "https://github.com/claviska/SimpleImage/issues", + "source": "https://github.com/claviska/SimpleImage/tree/4.2.1" + }, + "funding": [ + { + "url": "https://github.com/claviska", + "type": "github" + } + ], + "time": "2024-11-22T13:25:03+00:00" + }, + { + "name": "composer/semver", + "version": "3.4.3", + "source": { + "type": "git", + "url": "https://github.com/composer/semver.git", + "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/semver/zipball/4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", + "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.11", + "symfony/phpunit-bridge": "^3 || ^7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Semver\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nils Adermann", + "email": "naderman@naderman.de", + "homepage": "http://www.naderman.de" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + }, + { + "name": "Rob Bast", + "email": "rob.bast@gmail.com", + "homepage": "http://robbast.nl" + } + ], + "description": "Semver library that offers utilities, version constraint parsing and validation.", + "keywords": [ + "semantic", + "semver", + "validation", + "versioning" + ], + "support": { + "irc": "ircs://irc.libera.chat:6697/composer", + "issues": "https://github.com/composer/semver/issues", + "source": "https://github.com/composer/semver/tree/3.4.3" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2024-09-19T14:15:21+00:00" + }, + { + "name": "filp/whoops", + "version": "2.18.3", + "source": { + "type": "git", + "url": "https://github.com/filp/whoops.git", + "reference": "59a123a3d459c5a23055802237cb317f609867e5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filp/whoops/zipball/59a123a3d459c5a23055802237cb317f609867e5", + "reference": "59a123a3d459c5a23055802237cb317f609867e5", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0", + "psr/log": "^1.0.1 || ^2.0 || ^3.0" + }, + "require-dev": { + "mockery/mockery": "^1.0", + "phpunit/phpunit": "^7.5.20 || ^8.5.8 || ^9.3.3", + "symfony/var-dumper": "^4.0 || ^5.0" + }, + "suggest": { + "symfony/var-dumper": "Pretty print complex values better with var-dumper available", + "whoops/soap": "Formats errors as SOAP responses" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Whoops\\": "src/Whoops/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Filipe Dobreira", + "homepage": "https://github.com/filp", + "role": "Developer" + } + ], + "description": "php error handling for cool kids", + "homepage": "https://filp.github.io/whoops/", + "keywords": [ + "error", + "exception", + "handling", + "library", + "throwable", + "whoops" + ], + "support": { + "issues": "https://github.com/filp/whoops/issues", + "source": "https://github.com/filp/whoops/tree/2.18.3" + }, + "funding": [ + { + "url": "https://github.com/denis-sokolov", + "type": "github" + } + ], + "time": "2025-06-16T00:02:10+00:00" + }, + { + "name": "getkirby/cms", + "version": "5.0.1", + "source": { + "type": "git", + "url": "https://github.com/getkirby/kirby.git", + "reference": "ddd11f9b4a23e0b5d306b146ca5d6b7a1c1909a9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/getkirby/kirby/zipball/ddd11f9b4a23e0b5d306b146ca5d6b7a1c1909a9", + "reference": "ddd11f9b4a23e0b5d306b146ca5d6b7a1c1909a9", + "shasum": "" + }, + "require": { + "christian-riesen/base32": "1.6.0", + "claviska/simpleimage": "4.2.1", + "composer/semver": "3.4.3", + "ext-ctype": "*", + "ext-curl": "*", + "ext-dom": "*", + "ext-filter": "*", + "ext-hash": "*", + "ext-iconv": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-openssl": "*", + "ext-simplexml": "*", + "filp/whoops": "2.18.3", + "getkirby/composer-installer": "^1.2.1", + "laminas/laminas-escaper": "2.17.0", + "michelf/php-smartypants": "1.8.1", + "php": "~8.2.0 || ~8.3.0 || ~8.4.0", + "phpmailer/phpmailer": "6.10.0", + "symfony/polyfill-intl-idn": "1.32.0", + "symfony/polyfill-mbstring": "1.32.0", + "symfony/yaml": "7.3.1" + }, + "replace": { + "symfony/polyfill-php72": "*" + }, + "suggest": { + "ext-PDO": "Support for using databases", + "ext-apcu": "Support for the Apcu cache driver", + "ext-exif": "Support for exif information from images", + "ext-fileinfo": "Improved mime type detection for files", + "ext-intl": "Improved i18n number formatting", + "ext-memcached": "Support for the Memcached cache driver", + "ext-redis": "Support for the Redis cache driver", + "ext-sodium": "Support for the crypto class and more robust session handling", + "ext-zip": "Support for ZIP archive file functions", + "ext-zlib": "Sanitization and validation for svgz files" + }, + "type": "kirby-cms", + "extra": { + "unused": [ + "symfony/polyfill-intl-idn" + ] + }, + "autoload": { + "files": [ + "config/setup.php", + "config/helpers.php" + ], + "psr-4": { + "Kirby\\": "src/" + }, + "classmap": [ + "dependencies/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "proprietary" + ], + "authors": [ + { + "name": "Kirby Team", + "email": "support@getkirby.com", + "homepage": "https://getkirby.com" + } + ], + "description": "The Kirby core", + "homepage": "https://getkirby.com", + "keywords": [ + "cms", + "core", + "kirby" + ], + "support": { + "email": "support@getkirby.com", + "forum": "https://forum.getkirby.com", + "issues": "https://github.com/getkirby/kirby/issues", + "source": "https://github.com/getkirby/kirby" + }, + "funding": [ + { + "url": "https://getkirby.com/buy", + "type": "custom" + } + ], + "time": "2025-07-03T11:23:56+00:00" + }, + { + "name": "getkirby/composer-installer", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/getkirby/composer-installer.git", + "reference": "c98ece30bfba45be7ce457e1102d1b169d922f3d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/getkirby/composer-installer/zipball/c98ece30bfba45be7ce457e1102d1b169d922f3d", + "reference": "c98ece30bfba45be7ce457e1102d1b169d922f3d", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.0 || ^2.0" + }, + "require-dev": { + "composer/composer": "^1.8 || ^2.0" + }, + "type": "composer-plugin", + "extra": { + "class": "Kirby\\ComposerInstaller\\Plugin" + }, + "autoload": { + "psr-4": { + "Kirby\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Kirby's custom Composer installer for the Kirby CMS and for Kirby plugins", + "homepage": "https://getkirby.com", + "support": { + "issues": "https://github.com/getkirby/composer-installer/issues", + "source": "https://github.com/getkirby/composer-installer/tree/1.2.1" + }, + "funding": [ + { + "url": "https://getkirby.com/buy", + "type": "custom" + } + ], + "time": "2020-12-28T12:54:39+00:00" + }, + { + "name": "laminas/laminas-escaper", + "version": "2.17.0", + "source": { + "type": "git", + "url": "https://github.com/laminas/laminas-escaper.git", + "reference": "df1ef9503299a8e3920079a16263b578eaf7c3ba" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laminas/laminas-escaper/zipball/df1ef9503299a8e3920079a16263b578eaf7c3ba", + "reference": "df1ef9503299a8e3920079a16263b578eaf7c3ba", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-mbstring": "*", + "php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0" + }, + "conflict": { + "zendframework/zend-escaper": "*" + }, + "require-dev": { + "infection/infection": "^0.29.8", + "laminas/laminas-coding-standard": "~3.0.1", + "phpunit/phpunit": "^10.5.45", + "psalm/plugin-phpunit": "^0.19.2", + "vimeo/psalm": "^6.6.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Laminas\\Escaper\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "Securely and safely escape HTML, HTML attributes, JavaScript, CSS, and URLs", + "homepage": "https://laminas.dev", + "keywords": [ + "escaper", + "laminas" + ], + "support": { + "chat": "https://laminas.dev/chat", + "docs": "https://docs.laminas.dev/laminas-escaper/", + "forum": "https://discourse.laminas.dev", + "issues": "https://github.com/laminas/laminas-escaper/issues", + "rss": "https://github.com/laminas/laminas-escaper/releases.atom", + "source": "https://github.com/laminas/laminas-escaper" + }, + "funding": [ + { + "url": "https://funding.communitybridge.org/projects/laminas-project", + "type": "community_bridge" + } + ], + "time": "2025-05-06T19:29:36+00:00" + }, + { + "name": "league/color-extractor", + "version": "0.4.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/color-extractor.git", + "reference": "21fcac6249c5ef7d00eb83e128743ee6678fe505" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/color-extractor/zipball/21fcac6249c5ef7d00eb83e128743ee6678fe505", + "reference": "21fcac6249c5ef7d00eb83e128743ee6678fe505", + "shasum": "" + }, + "require": { + "ext-gd": "*", + "php": "^7.3 || ^8.0" + }, + "replace": { + "matthecat/colorextractor": "*" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "~2", + "phpunit/phpunit": "^9.5" + }, + "suggest": { + "ext-curl": "To download images from remote URLs if allow_url_fopen is disabled for security reasons" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\ColorExtractor\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mathieu Lechat", + "email": "math.lechat@gmail.com", + "homepage": "http://matthecat.com", + "role": "Developer" + } + ], + "description": "Extract colors from an image as a human would do.", + "homepage": "https://github.com/thephpleague/color-extractor", + "keywords": [ + "color", + "extract", + "human", + "image", + "palette" + ], + "support": { + "issues": "https://github.com/thephpleague/color-extractor/issues", + "source": "https://github.com/thephpleague/color-extractor/tree/0.4.0" + }, + "time": "2022-09-24T15:57:16+00:00" + }, + { + "name": "michelf/php-smartypants", + "version": "1.8.1", + "source": { + "type": "git", + "url": "https://github.com/michelf/php-smartypants.git", + "reference": "47d17c90a4dfd0ccf1f87e25c65e6c8012415aad" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/michelf/php-smartypants/zipball/47d17c90a4dfd0ccf1f87e25c65e6c8012415aad", + "reference": "47d17c90a4dfd0ccf1f87e25c65e6c8012415aad", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "autoload": { + "psr-0": { + "Michelf": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Michel Fortin", + "email": "michel.fortin@michelf.ca", + "homepage": "https://michelf.ca/", + "role": "Developer" + }, + { + "name": "John Gruber", + "homepage": "https://daringfireball.net/" + } + ], + "description": "PHP SmartyPants", + "homepage": "https://michelf.ca/projects/php-smartypants/", + "keywords": [ + "dashes", + "quotes", + "spaces", + "typographer", + "typography" + ], + "support": { + "issues": "https://github.com/michelf/php-smartypants/issues", + "source": "https://github.com/michelf/php-smartypants/tree/1.8.1" + }, + "time": "2016-12-13T01:01:17+00:00" + }, + { + "name": "phpmailer/phpmailer", + "version": "v6.10.0", + "source": { + "type": "git", + "url": "https://github.com/PHPMailer/PHPMailer.git", + "reference": "bf74d75a1fde6beaa34a0ddae2ec5fce0f72a144" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/bf74d75a1fde6beaa34a0ddae2ec5fce0f72a144", + "reference": "bf74d75a1fde6beaa34a0ddae2ec5fce0f72a144", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-filter": "*", + "ext-hash": "*", + "php": ">=5.5.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "doctrine/annotations": "^1.2.6 || ^1.13.3", + "php-parallel-lint/php-console-highlighter": "^1.0.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpcompatibility/php-compatibility": "^9.3.5", + "roave/security-advisories": "dev-latest", + "squizlabs/php_codesniffer": "^3.7.2", + "yoast/phpunit-polyfills": "^1.0.4" + }, + "suggest": { + "decomplexity/SendOauth2": "Adapter for using XOAUTH2 authentication", + "ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses", + "ext-openssl": "Needed for secure SMTP sending and DKIM signing", + "greew/oauth2-azure-provider": "Needed for Microsoft Azure XOAUTH2 authentication", + "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication", + "league/oauth2-google": "Needed for Google XOAUTH2 authentication", + "psr/log": "For optional PSR-3 debug logging", + "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)", + "thenetworg/oauth2-azure": "Needed for Microsoft XOAUTH2 authentication" + }, + "type": "library", + "autoload": { + "psr-4": { + "PHPMailer\\PHPMailer\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1-only" + ], + "authors": [ + { + "name": "Marcus Bointon", + "email": "phpmailer@synchromedia.co.uk" + }, + { + "name": "Jim Jagielski", + "email": "jimjag@gmail.com" + }, + { + "name": "Andy Prevost", + "email": "codeworxtech@users.sourceforge.net" + }, + { + "name": "Brent R. Matzelle" + } + ], + "description": "PHPMailer is a full-featured email creation and transfer class for PHP", + "support": { + "issues": "https://github.com/PHPMailer/PHPMailer/issues", + "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.10.0" + }, + "funding": [ + { + "url": "https://github.com/Synchro", + "type": "github" + } + ], + "time": "2025-04-24T15:19:31+00:00" + }, + { + "name": "psr/log", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/3.0.2" + }, + "time": "2024-09-11T13:17:53+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v3.6.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62", + "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.6-dev" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.6.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-25T14:21:43+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.32.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638", + "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "provide": { + "ext-ctype": "*" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.32.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/polyfill-intl-idn", + "version": "v1.32.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-idn.git", + "reference": "9614ac4d8061dc257ecc64cba1b140873dce8ad3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/9614ac4d8061dc257ecc64cba1b140873dce8ad3", + "reference": "9614ac4d8061dc257ecc64cba1b140873dce8ad3", + "shasum": "" + }, + "require": { + "php": ">=7.2", + "symfony/polyfill-intl-normalizer": "^1.10" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Idn\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Laurent Bassin", + "email": "laurent@bassin.info" + }, + { + "name": "Trevor Rowbotham", + "email": "trevor.rowbotham@pm.me" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "idn", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.32.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-10T14:38:51+00:00" + }, + { + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.32.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "3833d7255cc303546435cb650316bff708a1c75c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3833d7255cc303546435cb650316bff708a1c75c", + "reference": "3833d7255cc303546435cb650316bff708a1c75c", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's Normalizer class and related functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "intl", + "normalizer", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.32.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.32.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493", + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493", + "shasum": "" + }, + "require": { + "ext-iconv": "*", + "php": ">=7.2" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.32.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-12-23T08:48:59+00:00" + }, + { + "name": "symfony/yaml", + "version": "v7.3.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "0c3555045a46ab3cd4cc5a69d161225195230edb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/0c3555045a46ab3cd4cc5a69d161225195230edb", + "reference": "0c3555045a46ab3cd4cc5a69d161225195230edb", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3.0", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/console": "<6.4" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0" + }, + "bin": [ + "Resources/bin/yaml-lint" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Loads and dumps YAML files", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/yaml/tree/v7.3.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-06-03T06:57:57+00:00" + } + ], + "packages-dev": [ + { + "name": "phpstan/phpstan", + "version": "2.1.17", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan.git", + "reference": "89b5ef665716fa2a52ecd2633f21007a6a349053" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/89b5ef665716fa2a52ecd2633f21007a6a349053", + "reference": "89b5ef665716fa2a52ecd2633f21007a6a349053", + "shasum": "" + }, + "require": { + "php": "^7.4|^8.0" + }, + "conflict": { + "phpstan/phpstan-shim": "*" + }, + "bin": [ + "phpstan", + "phpstan.phar" + ], + "type": "library", + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPStan - PHP Static Analysis Tool", + "keywords": [ + "dev", + "static analysis" + ], + "support": { + "docs": "https://phpstan.org/user-guide/getting-started", + "forum": "https://github.com/phpstan/phpstan/discussions", + "issues": "https://github.com/phpstan/phpstan/issues", + "security": "https://github.com/phpstan/phpstan/security/policy", + "source": "https://github.com/phpstan/phpstan-src" + }, + "funding": [ + { + "url": "https://github.com/ondrejmirtes", + "type": "github" + }, + { + "url": "https://github.com/phpstan", + "type": "github" + } + ], + "time": "2025-05-21T20:55:28+00:00" + }, + { + "name": "phpstan/phpstan-deprecation-rules", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan-deprecation-rules.git", + "reference": "468e02c9176891cc901143da118f09dc9505fc2f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan-deprecation-rules/zipball/468e02c9176891cc901143da118f09dc9505fc2f", + "reference": "468e02c9176891cc901143da118f09dc9505fc2f", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0", + "phpstan/phpstan": "^2.1.15" + }, + "require-dev": { + "php-parallel-lint/php-parallel-lint": "^1.2", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^9.6" + }, + "type": "phpstan-extension", + "extra": { + "phpstan": { + "includes": [ + "rules.neon" + ] + } + }, + "autoload": { + "psr-4": { + "PHPStan\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPStan rules for detecting usage of deprecated classes, methods, properties, constants and traits.", + "support": { + "issues": "https://github.com/phpstan/phpstan-deprecation-rules/issues", + "source": "https://github.com/phpstan/phpstan-deprecation-rules/tree/2.0.3" + }, + "time": "2025-05-14T10:56:57+00:00" + }, + { + "name": "phpstan/phpstan-strict-rules", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan-strict-rules.git", + "reference": "3e139cbe67fafa3588e1dbe27ca50f31fdb6236a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/3e139cbe67fafa3588e1dbe27ca50f31fdb6236a", + "reference": "3e139cbe67fafa3588e1dbe27ca50f31fdb6236a", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0", + "phpstan/phpstan": "^2.0.4" + }, + "require-dev": { + "php-parallel-lint/php-parallel-lint": "^1.2", + "phpstan/phpstan-deprecation-rules": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^9.6" + }, + "type": "phpstan-extension", + "extra": { + "phpstan": { + "includes": [ + "rules.neon" + ] + } + }, + "autoload": { + "psr-4": { + "PHPStan\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Extra strict and opinionated rules for PHPStan", + "support": { + "issues": "https://github.com/phpstan/phpstan-strict-rules/issues", + "source": "https://github.com/phpstan/phpstan-strict-rules/tree/2.0.4" + }, + "time": "2025-03-18T11:42:40+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": {}, + "prefer-stable": false, + "prefer-lowest": false, + "platform": {}, + "platform-dev": {}, + "plugin-api-version": "2.6.0" +} diff --git a/site/plugins/loop/docs/01-installation.md b/site/plugins/loop/docs/01-installation.md new file mode 100644 index 0000000..de692b7 --- /dev/null +++ b/site/plugins/loop/docs/01-installation.md @@ -0,0 +1,90 @@ +--- +title: Installation +--- + +This guide covers all installation methods for the Kirby Loop plugin. + +## Prerequisites + +Before installing the plugin, ensure your system meets these requirements: + +- **Kirby CMS**: Version 4.0 or higher +- **PHP**: Version 8.3 or higher +- **SQLite**: Support enabled (usually included by default in PHP) + +## Installation Methods + +### Method 1: Composer (Recommended) + +Composer is the preferred installation method + +```bash +composer require moinframe/kirby-loop +``` + +### Method 2: Manual Installation + +For environments where Composer isn't available or preferred: + +1. **Download the plugin** + - Visit the [GitHub releases page](https://github.com/moinframe/kirby-loop/releases) + - Download the latest version as a ZIP file + +2. **Extract and place** + - Unzip the downloaded archive + - Rename the folder to `loop` (remove version numbers) + - Move the folder to `/site/plugins/loop` + +3. **Verify installation** + - The plugin folder should contain `index.php` and other plugin files + - Your final structure should be: `/site/plugins/loop/index.php` + +### Method 3: Git Submodule + +For projects using Git version control, submodules provide a clean way to include the plugin: + +```bash +git submodule add https://github.com/moinframe/kirby-loop.git site/plugins/loop +``` + +## Next Steps + +After successful installation: + +1. **Configuration**: See [Configuration Guide](https://moinfra.me/docs/moinframe-loop/02-configuration) for customization options +2. **Multi-language**: If using multiple languages, review [Multi-language Setup](https://moinfra.me/docs/moinframe-loop/03-multi-language) +3. **API Integration**: For custom implementations, check the [API Reference](https://moinfra.me/docs/moinframe-loop/05-api) + +## Updating + +### Composer Updates +```bash +composer update moinframe/kirby-loop +``` + +### Manual Updates +1. Download the new version +2. Replace the plugin folder (backup first!) +3. Clear any caches + +### Git Submodule Updates +```bash +git submodule update --remote site/plugins/loop +git add site/plugins/loop +git commit -m "Update loop plugin" +``` + +## Uninstallation + +To remove the plugin: + +1. **Remove plugin files**: + - Composer: `composer remove moinframe/kirby-loop` + - Manual: Delete `/site/plugins/loop/` folder + - Git submodule: `git submodule deinit site/plugins/loop` + +2. **Clean up data** (optional): + - Delete `/site/logs/loop/` directory to remove all comments + - Remove configuration from `site/config/config.php` + +3. **Clear caches**: Clear any site caches to ensure complete removal diff --git a/site/plugins/loop/docs/02-configuration.md b/site/plugins/loop/docs/02-configuration.md new file mode 100644 index 0000000..044e11f --- /dev/null +++ b/site/plugins/loop/docs/02-configuration.md @@ -0,0 +1,252 @@ +--- +title: Configuration +--- + +You can customize the plugin's look and behavior by adding configuration options. +Add configuration options to your `site/config/config.php` file: + +```php + [ + 'auto-inject' => true, + ... + ] +]; +``` + +## Configuration Options + +### Enable/Disable Tool + +**Option**: `moinframe.loop.enabled` +**Type**: `boolean|callable` +**Default**: `true` + +Controls whether loop is enabled globally or conditionally. + +```php +// Simple boolean enable/disable +'moinframe.loop.enabled' => false, // Disables globally + +// Use a callback for dynamic control +'moinframe.loop.enabled' => function($page) { + // Only enable for specific templates + return in_array($page->template()->name(), ['article', 'blog']); +}, + +// Filter by page status +'moinframe.loop.enabled' => function($page) { + return $page->status() === 'published'; +}, + +// Complex conditions +'moinframe.loop.enabled' => function($page) { + return $page->template()->name() === 'article' + && $page->status() === 'published' + && !$page->archived()->toBool(); +} +``` + +**Callback function receives:** +- `$page` - The current Kirby page object + +**Common use cases:** +- Disable feedback on specific page templates +- Enable only for published content +- Conditional enabling based on page fields or metadata + +**Note**: This option is checked both during auto-injection and manual snippet usage. + +### Auto-Injection + +**Option**: `moinframe.loop.auto-inject` +**Type**: `boolean` +**Default**: `true` + +Controls whether loop is automatically injected into all pages. + +```php +// Disable auto-injection (requires manual snippet placement) +'moinframe.loop.auto-inject' => false, +``` + +When disabled, you must manually add the snippet to your templates: + +```php + +``` + +**Use cases for disabling auto-injection:** +- Custom page templates where you want precise control +- JavaScript-based routing (Swup, Taxi.js) that needs manual initialization +- Conditional loading based on user roles or page types + +### Position + +**Option**: `moinframe.loop.position` +**Type**: `string` +**Default**: `'top'` +**Values**: `'top'` | `'bottom'` + +Sets the position of loop header on the page. + +```php +// Position header at bottom of page +'moinframe.loop.position' => 'bottom', +``` + +### Database Path + +**Option**: `moinframe.loop.database` +**Type**: `string|null` +**Default**: `null` (uses `site/logs/loop/comments.sqlite`) + +Customize the SQLite database location. + +```php +// Custom database path +'moinframe.loop.database' => '/custom/path/comments.sqlite', + +// Alternative locations +'moinframe.loop.database' => kirby()->root('content') . '/feedback.sqlite', +'moinframe.loop.database' => '/var/www/data/feedback.sqlite', +``` + +**Important considerations:** +- Path must be absolute +- Directory must exist and be writable +- Consider backup strategies for custom locations +- Ensure path is outside web root for security + +### Public Access + +**Option**: `moinframe.loop.public` +**Type**: `boolean` +**Default**: `false` + +Controls whether loop requires authentication. + +```php +// Allow public access (no authentication required) +'moinframe.loop.public' => true, +``` + +**Security implications:** +- `false` (default): Only authenticated panel users can see/use the tool +- `true`: Anyone can add comments + +**Recommended for public access:** +- Internal staging environments +- Client review sites with controlled access +- Public beta feedback collection + +### Language Override + +**Option**: `moinframe.loop.language` +**Type**: `string|null` +**Default**: `null` (auto-detect from Kirby) + +Force a specific UI language regardless of the current page language. + +```php +// Force German UI +'moinframe.loop.language' => 'de', + +// Force English UI +'moinframe.loop.language' => 'en', +``` + +**When to use:** +- Single-language sites with non-English content but English-speaking editors +- Multi-language sites where editors prefer consistent UI language + +### Theme + +**Option**: `moinframe.loop.theme` +**Type**: `string` +**Default**: `'default'` +**Values**: `'default'` | `'dark'` | custom theme name + +Sets the visual theme for the loop interface. + +```php +// Use dark theme +'moinframe.loop.theme' => 'dark', + +// Use custom theme +'moinframe.loop.theme' => 'custom', +``` + +**Available themes:** +- `'default'` - Light theme with clean, bright interface +- `'dark'` - Dark theme for low-light environments +- Custom theme names - See [Theming Guide](https://moinfra.me/docs/moinframe-loop/04-theming) for creating custom themes + +### Welcome Dialog + +The welcome dialog introduces new users to loop functionality. + +#### Enable/Disable Welcome Dialog + +**Option**: `moinframe.loop.welcome.enabled` +**Type**: `boolean` +**Default**: `true` + +```php +// Disable welcome dialog +'moinframe.loop.welcome.enabled' => false, +``` + +#### Custom Welcome Headline + +**Option**: `moinframe.loop.welcome.headline` +**Type**: `string|null` +**Default**: `null` (uses default translation) + +```php +// Custom welcome headline +'moinframe.loop.welcome.headline' => 'Welcome to Our Review Tool!', +``` + +#### Custom Welcome Text + +**Option**: `moinframe.loop.welcome.text` +**Type**: `string|null` +**Default**: `null` (uses default translation) + +```php +// Custom welcome message +'moinframe.loop.welcome.text' => 'Click anywhere on the page to leave feedback. Use the toggle button to switch between navigation and comment modes.', +``` + +## Manual Snippet Usage + +When auto-injection is disabled, you have full control over when and where loop appears. + +### Basic Usage + +```php + +``` + +### Conditional Loading + +```php +user() && $kirby->user()->role()->isAdmin()): ?> + + +``` + +> [!TIPP] +> Manual snippets also respect the `enabled` configuration option. If you've set up conditional enabling via the `enabled` option, you don't need to duplicate that logic in your template - the snippet will automatically check the enabled status. + + +## Caching Behavior + +> [!WARNING] +> Pages with loop automatically have Kirby's page **cache** **disabled**. This is necessary for CSRF token validation and User authentication checks. diff --git a/site/plugins/loop/docs/03-multi-language.md b/site/plugins/loop/docs/03-multi-language.md new file mode 100644 index 0000000..5736afb --- /dev/null +++ b/site/plugins/loop/docs/03-multi-language.md @@ -0,0 +1,94 @@ +--- +title: Multi-Language +--- + +Kirby Loop provides comprehensive support for multi-language Kirby sites, including automatic language detection and customizable UI translations. + +## How Multi-Language Support Works + +The plugin automatically detects and adapts to your Kirby site's language configuration. No additional configuration is required - the plugin works automatically with Kirby's multi-language setup. + +- **Single-language sites**: Uses the en translations +- **Multi-language sites**: Detects the current page language and adapts accordingly + + + +## UI Language Override + +### Forcing a Specific UI Language + +By default, loop UI adapts to the current page language. You can override this behavior: + +```php +// Always show German UI regardless of page language +'moinframe.loop.language' => 'de', + +// Always show English UI regardless of page language +'moinframe.loop.language' => 'en', +``` + +### Use Cases for Language Override + +**Consistent Editor Experience:** +```php +// Editors prefer English UI even on German pages +'moinframe.loop.language' => 'en', +``` + +**Single-Language website with non english content:** +```php +// German content site with German-speaking editors +'moinframe.loop.language' => 'de', +``` + + +## Built-in Translations + +The plugin includes complete translations for: +- English (en) - Default +- German (de) + +## Custom Translations + +### Adding New Languages + +To add support for additional languages, create or extend your Kirby language files: + +```php +// site/languages/fr.php + 'fr', + 'default' => false, + 'direction' => 'ltr', + 'locale' => 'fr_FR', + 'name' => 'FranΓ§ais', + 'translations' => [ + // UI Elements + 'moinframe.loop.ui.header.title' => 'Commentaires', + ... + ] +]; +``` + +### Overriding Existing Translations + +Customize existing translations by adding them to your language files: + +```php +// site/languages/en.php - Override English defaults +return [ + 'code' => 'en', + 'default' => true, + 'translations' => [ + 'moinframe.loop.ui.header.title' => 'Page Feedback', + 'moinframe.loop.ui.comment.placeholder' => 'What needs attention?', + 'moinframe.loop.ui.welcome.headline' => 'Welcome to Our Review Tool', + ] +]; +``` + +### Translation Key Reference + +For a complete list of available translation keys, see the [plugin's index file](https://github.com/moinframe/kirby-loop/blob/main/index.php). diff --git a/site/plugins/loop/docs/04-theming.md b/site/plugins/loop/docs/04-theming.md new file mode 100644 index 0000000..9a01bc2 --- /dev/null +++ b/site/plugins/loop/docs/04-theming.md @@ -0,0 +1,110 @@ +--- +title: Theming +--- + +Kirby Loop comes with built-in theming support, allowing you to customize the visual appearance to match your brand or provide different user experiences. The plugin includes a default (light) theme and a dark theme, with support for creating custom themes. + +## Configuration + +### Setting a Theme + +Configure the theme in your `site/config/config.php`: + +```php +return [ + // Set theme: 'default', 'dark', or custom theme name + 'moinframe.loop.theme' => 'dark', +]; +``` + +**Available options:** +- `'default'` - Light theme (default) +- `'dark'` - Dark theme +- Custom theme name + +## Creating Custom Themes + +Custom themes are CSS files that override the default color and styling tokens. The theming system uses CSS custom properties (variables) for easy customization. + + +### Basic Custom Theme + +Here's a minimal custom theme example: + +```css +/* frontend/src/styles/theme-custom.css */ +kirby-loop[theme="custom"] { + /* Accent color */ + --color-accent-l: 0.6; + --color-accent-c: 0.15; + --color-accent-h: 280; /* Purple accent */ + + /* Neutral color lightness values */ + --color-neutral-l-0: 0.98; + --color-neutral-l-100: 0.92; + --color-neutral-l-200: 0.86; + --color-neutral-l-300: 0.7; + --color-neutral-l-400: 0.6; + --color-neutral-l-500: 0.5; + --color-neutral-l-600: 0.4; + --color-neutral-l-700: 0.3; + --color-neutral-l-800: 0.15; + --color-neutral-l-900: 0.05; + --color-neutral-l-1000: 0; +} +``` + +### Configure Your Custom Theme + +Set your custom theme in the configuration: + +```php +// site/config/config.php +return [ + 'moinframe.loop.theme' => 'custom', +]; +``` + +## Theme Architecture + +### Color System + +The theming system uses OKLCH color space for consistent, perceptually uniform colors: + +```css +/* Accent colors */ +--color-accent-l: 0.7; /* Lightness (0-1) */ +--color-accent-c: 0.12; /* Chroma/saturation (0-0.4) */ +--color-accent-h: 220; /* Hue (0-360) */ + +/* Neutral colors */ +--color-neutral-l-0: 1; /* Lightest */ +--color-neutral-l-100: 0.95; +--color-neutral-l-200: 0.9; +/* ... */ +--color-neutral-l-900: 0.05; +--color-neutral-l-1000: 0; /* Darkest */ +``` + +### Advanced Customization + +You can override any design token in your custom theme: + +```css +kirby-loop[theme="custom"] { + /* Colors */ + --color-accent-l: 0.65; + --color-accent-c: 0.18; + --color-accent-h: 15; /* Orange accent */ + + /* Shadows with custom opacity */ + --shadow-s: 0 0.1em 0.25em oklch(var(--color-neutral-l-900) var(--color-neutral-c) var(--color-neutral-h) / 0.15); + + /* Custom border radius */ + --border-radius: 0.5rem; + --border-radius-rounded: 1rem; + + /* Custom fonts */ + --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; +} +``` diff --git a/site/plugins/loop/docs/05-api.md b/site/plugins/loop/docs/05-api.md new file mode 100644 index 0000000..8dc4bd0 --- /dev/null +++ b/site/plugins/loop/docs/05-api.md @@ -0,0 +1,325 @@ +--- +title: API Reference +--- + +Kirby Loop provides a RESTful API for managing comments and feedback. All endpoints include CSRF protection. + +## Authentication + +All API endpoints require authentication, controlled by the `moinframe.loop.public` configuration option: + +- **Default (private)**: Only authenticated Kirby users can access the API +- **Public mode**: Anyone can access the API + +## CSRF Protection + +All API requests must include a valid CSRF token in the request header: + +```javascript +fetch('/loop/comments/page-id', { + headers: { + 'X-CSRF-Token': '' + } +}); +``` + +## Base URL Structure + +### Single Language Sites +``` +/loop/comments/{pageId} +/loop/comment/new +/loop/comment/reply +/loop/comment/resolve +/loop/comment/unresolve +/loop/guest/name +``` + +### Multi-Language Sites +``` +/{language}/loop/comments/{pageId} +/{language}/loop/comment/new +/{language}/loop/comment/reply +/{language}/loop/comment/resolve +/{language}/loop/comment/unresolve +/{language}/loop/guest/name +``` + +Where `{language}` is the language code (e.g., `en`, `de`). + +## Endpoints + +### GET /loop/comments/{pageId} + +Retrieve all comments for a specific page. + +**Parameters:** +- `pageId` (string): The page ID or 'home' for the homepage + +**Response:** +```json +{ + "status": "ok", + "comments": [ + { + "id": 1, + "author": "John Doe", + "url": "https://example.com/page", + "page": "page-uuid", + "comment": "This needs to be updated", + "selector": ".header h1", + "selectorOffsetX": 10, + "selectorOffsetY": 20, + "pagePositionX": 150, + "pagePositionY": 300, + "timestamp": 1640995200, + "lang": "en", + "status": "OPEN", + "replies": [ + { + "id": 1, + "author": "jane.smith", + "comment": "I'll fix this", + "parentId": 1, + "timestamp": 1640995800 + } + ] + } + ] +} +``` + +**Error Responses:** +- `400`: Page not found +- `401`: Unauthorized (if authentication required) +- `403`: CSRF token invalid + +### POST /loop/comment/new + +Create a new comment on a page. + +**Request Body:** +```json +{ + "comment": "This section needs clarification", + "url": "https://example.com/page", + "selector": ".content p:nth-child(3)", + "selectorOffsetX": 15, + "selectorOffsetY": 25, + "pagePositionX": 200, + "pagePositionY": 450, + "pageId": "projects/project-alpha" +} +``` + +**Required Fields:** +- `comment` (string): The comment text (HTML stripped and sanitized) +- `url` (string): The full URL where the comment was made +- `selector` (string): CSS selector for the commented element +- `selectorOffsetX` (number): X offset within the selected element +- `selectorOffsetY` (number): Y offset within the selected element +- `pagePositionX` (number): X position on the page +- `pagePositionY` (number): Y position on the page +- `pageId` (string): Kirby page ID or 'home' + +**Response:** +```json +{ + "status": "ok", + "comment": { + "id": 15, + "author": "John Doe", + "url": "https://example.com/page", + "page": "page-uuid", + "comment": "This section needs clarification", + "selector": ".content p:nth-child(3)", + "selectorOffsetX": 15, + "selectorOffsetY": 25, + "pagePositionX": 200, + "pagePositionY": 450, + "timestamp": 1640995200, + "lang": "en", + "status": "OPEN", + "replies": [] + } +} +``` + +**Error Responses:** +- `400`: Missing required fields, invalid selector format, or invalid data +- `401`: Unauthorized +- `403`: CSRF token invalid or disabled +- `404`: Page not found + +### POST /loop/comment/reply + +Add a reply to an existing comment. + +**Request Body:** +```json +{ + "comment": "I'll handle this update", + "parentId": 15 +} +``` + +**Required Fields:** +- `comment` (string): The reply text (HTML stripped and sanitized) +- `parentId` (number): ID of the parent comment + +**Response:** +```json +{ + "status": "ok", + "reply": { + "id": 3, + "author": "John Doe", + "comment": "I'll handle this update", + "parentId": 15, + "timestamp": 1640995800 + } +} +``` + +**Error Responses:** +- `400`: Missing required fields +- `401`: Unauthorized +- `403`: CSRF token invalid or disabled + +### POST /loop/comment/resolve + +Mark a comment as resolved. + +**Request Body:** +```json +{ + "id": 15 +} +``` + +**Required Fields:** +- `id` (number): The comment ID to resolve + +**Response:** +```json +{ + "status": "ok", + "success": true +} +``` + +**Error Responses:** +- `400`: Missing comment ID +- `401`: Unauthorized +- `403`: CSRF token invalid or disabled + +### POST /loop/comment/unresolve + +Mark a resolved comment as unresolved. + +**Request Body:** +```json +{ + "id": 15 +} +``` + +**Required Fields:** +- `id` (number): The comment ID to unresolve + +**Response:** +```json +{ + "status": "ok", + "success": true +} +``` + +**Error Responses:** +- `400`: Missing comment ID +- `401`: Unauthorized +- `403`: CSRF token invalid or disabled + +### POST /loop/guest/name + +Set a guest name for non-authenticated users (when public mode is enabled). + +**Request Body:** +```json +{ + "name": "John Doe" +} +``` + +**Required Fields:** +- `name` (string): The guest user's name + +**Response:** +```json +{ + "status": "ok", + "name": "John Doe" +} +``` + +**Error Responses:** +- `400`: Missing or empty name +- `401`: Unauthorized +- `403`: CSRF token invalid or disabled + +## Data Models + +### Comment Object + +```typescript +interface Comment { + id: number; + author: string; // Resolved display name (user name, email prefix, or guest name) + url: string; // Full URL where comment was made + page: string; // Page UUID + comment: string; // Sanitized comment text + selector: string; // CSS selector for target element + selectorOffsetX: number; // X offset within element (float) + selectorOffsetY: number; // Y offset within element (float) + pagePositionX: number; // X position on page (float) + pagePositionY: number; // Y position on page (float) + timestamp: number; // Unix timestamp + lang: string; // Language code + status: string; // Status: OPEN, RESOLVED + replies: Reply[]; // Array of replies +} +``` + +### Reply Object + +```typescript +interface Reply { + id: number; + author: string; // Resolved display name (user name, email prefix, or guest name) + comment: string; // Sanitized reply text + parentId: number; // Parent comment ID + timestamp: number; // Unix timestamp +} +``` + +## Error Handling + +The api endpoints return consistent error responses. For more details, switch on the debug mode in your Kirby Installation. + +```json +{ + "status": "error", + "message": "Human-readable error message", + "code": "ERROR_CODE" // Optional error code +} +``` + +### Common Error Codes + +- `CSRF_INVALID`: CSRF token is missing or invalid +- `PAGE_NOT_FOUND`: Specified page doesn't exist +- `FIELD_REQUIRED`: Required field is missing +- `UNAUTHORIZED`: Authentication required but not provided +- `INVALID_SELECTOR`: Invalid selector format +- `INVALID_NAME`: Invalid guest name +- `DISABLED`: Tool is disabled diff --git a/site/plugins/loop/frontend/.vscode/extensions.json b/site/plugins/loop/frontend/.vscode/extensions.json new file mode 100644 index 0000000..bdef820 --- /dev/null +++ b/site/plugins/loop/frontend/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["svelte.svelte-vscode"] +} diff --git a/site/plugins/loop/frontend/package.json b/site/plugins/loop/frontend/package.json new file mode 100644 index 0000000..66d4d43 --- /dev/null +++ b/site/plugins/loop/frontend/package.json @@ -0,0 +1,27 @@ +{ + "name": "loop-frontend", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "preview": "vite preview", + "check": "svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json" + }, + "devDependencies": { + "@sveltejs/vite-plugin-svelte": "^5.0.3", + "@tsconfig/svelte": "^5.0.4", + "@types/node": "^22.13.10", + "browserslist": "^4.24.4", + "lightningcss": "^1.29.3", + "svelte": "^5.20.2", + "svelte-check": "^4.1.4", + "terser": "^5.39.0", + "typescript": "~5.7.2", + "vite": "^6.2.0", + "vite-plugin-css-injected-by-js": "^3.5.2", + "vite-plugin-ejs": "^1.7.0", + "vitest": "^3.0.9" + } +} diff --git a/site/plugins/loop/frontend/pnpm-lock.yaml b/site/plugins/loop/frontend/pnpm-lock.yaml new file mode 100644 index 0000000..be3376e --- /dev/null +++ b/site/plugins/loop/frontend/pnpm-lock.yaml @@ -0,0 +1,1505 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + '@sveltejs/vite-plugin-svelte': + specifier: ^5.0.3 + version: 5.0.3(svelte@5.23.2)(vite@6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0)) + '@tsconfig/svelte': + specifier: ^5.0.4 + version: 5.0.4 + '@types/node': + specifier: ^22.13.10 + version: 22.13.10 + browserslist: + specifier: ^4.24.4 + version: 4.24.4 + lightningcss: + specifier: ^1.29.3 + version: 1.29.3 + svelte: + specifier: ^5.20.2 + version: 5.23.2 + svelte-check: + specifier: ^4.1.4 + version: 4.1.5(svelte@5.23.2)(typescript@5.7.3) + terser: + specifier: ^5.39.0 + version: 5.39.0 + typescript: + specifier: ~5.7.2 + version: 5.7.3 + vite: + specifier: ^6.2.0 + version: 6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0) + vite-plugin-css-injected-by-js: + specifier: ^3.5.2 + version: 3.5.2(vite@6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0)) + vite-plugin-ejs: + specifier: ^1.7.0 + version: 1.7.0(vite@6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0)) + vitest: + specifier: ^3.0.9 + version: 3.0.9(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0) + +packages: + + '@ampproject/remapping@2.3.0': + resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} + engines: {node: '>=6.0.0'} + + '@esbuild/aix-ppc64@0.25.1': + resolution: {integrity: sha512-kfYGy8IdzTGy+z0vFGvExZtxkFlA4zAxgKEahG9KE1ScBjpQnFsNOX8KTU5ojNru5ed5CVoJYXFtoxaq5nFbjQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.25.1': + resolution: {integrity: sha512-50tM0zCJW5kGqgG7fQ7IHvQOcAn9TKiVRuQ/lN0xR+T2lzEFvAi1ZcS8DiksFcEpf1t/GYOeOfCAgDHFpkiSmA==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.25.1': + resolution: {integrity: sha512-dp+MshLYux6j/JjdqVLnMglQlFu+MuVeNrmT5nk6q07wNhCdSnB7QZj+7G8VMUGh1q+vj2Bq8kRsuyA00I/k+Q==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.25.1': + resolution: {integrity: sha512-GCj6WfUtNldqUzYkN/ITtlhwQqGWu9S45vUXs7EIYf+7rCiiqH9bCloatO9VhxsL0Pji+PF4Lz2XXCES+Q8hDw==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.25.1': + resolution: {integrity: sha512-5hEZKPf+nQjYoSr/elb62U19/l1mZDdqidGfmFutVUjjUZrOazAtwK+Kr+3y0C/oeJfLlxo9fXb1w7L+P7E4FQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.25.1': + resolution: {integrity: sha512-hxVnwL2Dqs3fM1IWq8Iezh0cX7ZGdVhbTfnOy5uURtao5OIVCEyj9xIzemDi7sRvKsuSdtCAhMKarxqtlyVyfA==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.25.1': + resolution: {integrity: sha512-1MrCZs0fZa2g8E+FUo2ipw6jw5qqQiH+tERoS5fAfKnRx6NXH31tXBKI3VpmLijLH6yriMZsxJtaXUyFt/8Y4A==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.25.1': + resolution: {integrity: sha512-0IZWLiTyz7nm0xuIs0q1Y3QWJC52R8aSXxe40VUxm6BB1RNmkODtW6LHvWRrGiICulcX7ZvyH6h5fqdLu4gkww==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.25.1': + resolution: {integrity: sha512-jaN3dHi0/DDPelk0nLcXRm1q7DNJpjXy7yWaWvbfkPvI+7XNSc/lDOnCLN7gzsyzgu6qSAmgSvP9oXAhP973uQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.25.1': + resolution: {integrity: sha512-NdKOhS4u7JhDKw9G3cY6sWqFcnLITn6SqivVArbzIaf3cemShqfLGHYMx8Xlm/lBit3/5d7kXvriTUGa5YViuQ==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.25.1': + resolution: {integrity: sha512-OJykPaF4v8JidKNGz8c/q1lBO44sQNUQtq1KktJXdBLn1hPod5rE/Hko5ugKKZd+D2+o1a9MFGUEIUwO2YfgkQ==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.25.1': + resolution: {integrity: sha512-nGfornQj4dzcq5Vp835oM/o21UMlXzn79KobKlcs3Wz9smwiifknLy4xDCLUU0BWp7b/houtdrgUz7nOGnfIYg==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.25.1': + resolution: {integrity: sha512-1osBbPEFYwIE5IVB/0g2X6i1qInZa1aIoj1TdL4AaAb55xIIgbg8Doq6a5BzYWgr+tEcDzYH67XVnTmUzL+nXg==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.25.1': + resolution: {integrity: sha512-/6VBJOwUf3TdTvJZ82qF3tbLuWsscd7/1w+D9LH0W/SqUgM5/JJD0lrJ1fVIfZsqB6RFmLCe0Xz3fmZc3WtyVg==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.25.1': + resolution: {integrity: sha512-nSut/Mx5gnilhcq2yIMLMe3Wl4FK5wx/o0QuuCLMtmJn+WeWYoEGDN1ipcN72g1WHsnIbxGXd4i/MF0gTcuAjQ==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.25.1': + resolution: {integrity: sha512-cEECeLlJNfT8kZHqLarDBQso9a27o2Zd2AQ8USAEoGtejOrCYHNtKP8XQhMDJMtthdF4GBmjR2au3x1udADQQQ==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.25.1': + resolution: {integrity: sha512-xbfUhu/gnvSEg+EGovRc+kjBAkrvtk38RlerAzQxvMzlB4fXpCFCeUAYzJvrnhFtdeyVCDANSjJvOvGYoeKzFA==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.25.1': + resolution: {integrity: sha512-O96poM2XGhLtpTh+s4+nP7YCCAfb4tJNRVZHfIE7dgmax+yMP2WgMd2OecBuaATHKTHsLWHQeuaxMRnCsH8+5g==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.25.1': + resolution: {integrity: sha512-X53z6uXip6KFXBQ+Krbx25XHV/NCbzryM6ehOAeAil7X7oa4XIq+394PWGnwaSQ2WRA0KI6PUO6hTO5zeF5ijA==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.25.1': + resolution: {integrity: sha512-Na9T3szbXezdzM/Kfs3GcRQNjHzM6GzFBeU1/6IV/npKP5ORtp9zbQjvkDJ47s6BCgaAZnnnu/cY1x342+MvZg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.25.1': + resolution: {integrity: sha512-T3H78X2h1tszfRSf+txbt5aOp/e7TAz3ptVKu9Oyir3IAOFPGV6O9c2naym5TOriy1l0nNf6a4X5UXRZSGX/dw==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/sunos-x64@0.25.1': + resolution: {integrity: sha512-2H3RUvcmULO7dIE5EWJH8eubZAI4xw54H1ilJnRNZdeo8dTADEZ21w6J22XBkXqGJbe0+wnNJtw3UXRoLJnFEg==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.25.1': + resolution: {integrity: sha512-GE7XvrdOzrb+yVKB9KsRMq+7a2U/K5Cf/8grVFRAGJmfADr/e/ODQ134RK2/eeHqYV5eQRFxb1hY7Nr15fv1NQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.25.1': + resolution: {integrity: sha512-uOxSJCIcavSiT6UnBhBzE8wy3n0hOkJsBOzy7HDAuTDE++1DJMRRVCPGisULScHL+a/ZwdXPpXD3IyFKjA7K8A==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.25.1': + resolution: {integrity: sha512-Y1EQdcfwMSeQN/ujR5VayLOJ1BHaK+ssyk0AEzPjC+t1lITgsnccPqFjb6V+LsTp/9Iov4ysfjxLaGJ9RPtkVg==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@jridgewell/gen-mapping@0.3.8': + resolution: {integrity: sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==} + engines: {node: '>=6.0.0'} + + '@jridgewell/resolve-uri@3.1.2': + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + '@jridgewell/set-array@1.2.1': + resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} + engines: {node: '>=6.0.0'} + + '@jridgewell/source-map@0.3.6': + resolution: {integrity: sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==} + + '@jridgewell/sourcemap-codec@1.5.0': + resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} + + '@jridgewell/trace-mapping@0.3.25': + resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} + + '@rollup/rollup-android-arm-eabi@4.36.0': + resolution: {integrity: sha512-jgrXjjcEwN6XpZXL0HUeOVGfjXhPyxAbbhD0BlXUB+abTOpbPiN5Wb3kOT7yb+uEtATNYF5x5gIfwutmuBA26w==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.36.0': + resolution: {integrity: sha512-NyfuLvdPdNUfUNeYKUwPwKsE5SXa2J6bCt2LdB/N+AxShnkpiczi3tcLJrm5mA+eqpy0HmaIY9F6XCa32N5yzg==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.36.0': + resolution: {integrity: sha512-JQ1Jk5G4bGrD4pWJQzWsD8I1n1mgPXq33+/vP4sk8j/z/C2siRuxZtaUA7yMTf71TCZTZl/4e1bfzwUmFb3+rw==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.36.0': + resolution: {integrity: sha512-6c6wMZa1lrtiRsbDziCmjE53YbTkxMYhhnWnSW8R/yqsM7a6mSJ3uAVT0t8Y/DGt7gxUWYuFM4bwWk9XCJrFKA==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-freebsd-arm64@4.36.0': + resolution: {integrity: sha512-KXVsijKeJXOl8QzXTsA+sHVDsFOmMCdBRgFmBb+mfEb/7geR7+C8ypAml4fquUt14ZyVXaw2o1FWhqAfOvA4sg==} + cpu: [arm64] + os: [freebsd] + + '@rollup/rollup-freebsd-x64@4.36.0': + resolution: {integrity: sha512-dVeWq1ebbvByI+ndz4IJcD4a09RJgRYmLccwlQ8bPd4olz3Y213uf1iwvc7ZaxNn2ab7bjc08PrtBgMu6nb4pQ==} + cpu: [x64] + os: [freebsd] + + '@rollup/rollup-linux-arm-gnueabihf@4.36.0': + resolution: {integrity: sha512-bvXVU42mOVcF4le6XSjscdXjqx8okv4n5vmwgzcmtvFdifQ5U4dXFYaCB87namDRKlUL9ybVtLQ9ztnawaSzvg==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm-musleabihf@4.36.0': + resolution: {integrity: sha512-JFIQrDJYrxOnyDQGYkqnNBtjDwTgbasdbUiQvcU8JmGDfValfH1lNpng+4FWlhaVIR4KPkeddYjsVVbmJYvDcg==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm64-gnu@4.36.0': + resolution: {integrity: sha512-KqjYVh3oM1bj//5X7k79PSCZ6CvaVzb7Qs7VMWS+SlWB5M8p3FqufLP9VNp4CazJ0CsPDLwVD9r3vX7Ci4J56A==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-arm64-musl@4.36.0': + resolution: {integrity: sha512-QiGnhScND+mAAtfHqeT+cB1S9yFnNQ/EwCg5yE3MzoaZZnIV0RV9O5alJAoJKX/sBONVKeZdMfO8QSaWEygMhw==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-loongarch64-gnu@4.36.0': + resolution: {integrity: sha512-1ZPyEDWF8phd4FQtTzMh8FQwqzvIjLsl6/84gzUxnMNFBtExBtpL51H67mV9xipuxl1AEAerRBgBwFNpkw8+Lg==} + cpu: [loong64] + os: [linux] + + '@rollup/rollup-linux-powerpc64le-gnu@4.36.0': + resolution: {integrity: sha512-VMPMEIUpPFKpPI9GZMhJrtu8rxnp6mJR3ZzQPykq4xc2GmdHj3Q4cA+7avMyegXy4n1v+Qynr9fR88BmyO74tg==} + cpu: [ppc64] + os: [linux] + + '@rollup/rollup-linux-riscv64-gnu@4.36.0': + resolution: {integrity: sha512-ttE6ayb/kHwNRJGYLpuAvB7SMtOeQnVXEIpMtAvx3kepFQeowVED0n1K9nAdraHUPJ5hydEMxBpIR7o4nrm8uA==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-s390x-gnu@4.36.0': + resolution: {integrity: sha512-4a5gf2jpS0AIe7uBjxDeUMNcFmaRTbNv7NxI5xOCs4lhzsVyGR/0qBXduPnoWf6dGC365saTiwag8hP1imTgag==} + cpu: [s390x] + os: [linux] + + '@rollup/rollup-linux-x64-gnu@4.36.0': + resolution: {integrity: sha512-5KtoW8UWmwFKQ96aQL3LlRXX16IMwyzMq/jSSVIIyAANiE1doaQsx/KRyhAvpHlPjPiSU/AYX/8m+lQ9VToxFQ==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-linux-x64-musl@4.36.0': + resolution: {integrity: sha512-sycrYZPrv2ag4OCvaN5js+f01eoZ2U+RmT5as8vhxiFz+kxwlHrsxOwKPSA8WyS+Wc6Epid9QeI/IkQ9NkgYyQ==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-win32-arm64-msvc@4.36.0': + resolution: {integrity: sha512-qbqt4N7tokFwwSVlWDsjfoHgviS3n/vZ8LK0h1uLG9TYIRuUTJC88E1xb3LM2iqZ/WTqNQjYrtmtGmrmmawB6A==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.36.0': + resolution: {integrity: sha512-t+RY0JuRamIocMuQcfwYSOkmdX9dtkr1PbhKW42AMvaDQa+jOdpUYysroTF/nuPpAaQMWp7ye+ndlmmthieJrQ==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.36.0': + resolution: {integrity: sha512-aRXd7tRZkWLqGbChgcMMDEHjOKudo1kChb1Jt1IfR8cY/KIpgNviLeJy5FUb9IpSuQj8dU2fAYNMPW/hLKOSTw==} + cpu: [x64] + os: [win32] + + '@sveltejs/acorn-typescript@1.0.5': + resolution: {integrity: sha512-IwQk4yfwLdibDlrXVE04jTZYlLnwsTT2PIOQQGNLWfjavGifnk1JD1LcZjZaBTRcxZu2FfPfNLOE04DSu9lqtQ==} + peerDependencies: + acorn: ^8.9.0 + + '@sveltejs/vite-plugin-svelte-inspector@4.0.1': + resolution: {integrity: sha512-J/Nmb2Q2y7mck2hyCX4ckVHcR5tu2J+MtBEQqpDrrgELZ2uvraQcK/ioCV61AqkdXFgriksOKIceDcQmqnGhVw==} + 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 + + '@sveltejs/vite-plugin-svelte@5.0.3': + resolution: {integrity: sha512-MCFS6CrQDu1yGwspm4qtli0e63vaPCehf6V7pIMP15AsWgMKrqDGCPFF/0kn4SP0ii4aySu4Pa62+fIRGFMjgw==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22} + peerDependencies: + svelte: ^5.0.0 + vite: ^6.0.0 + + '@tsconfig/svelte@5.0.4': + resolution: {integrity: sha512-BV9NplVgLmSi4mwKzD8BD/NQ8erOY/nUE/GpgWe2ckx+wIQF5RyRirn/QsSSCPeulVpc3RA/iJt6DpfTIZps0Q==} + + '@types/estree@1.0.6': + resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==} + + '@types/node@22.13.10': + resolution: {integrity: sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==} + + '@vitest/expect@3.0.9': + resolution: {integrity: sha512-5eCqRItYgIML7NNVgJj6TVCmdzE7ZVgJhruW0ziSQV4V7PvLkDL1bBkBdcTs/VuIz0IxPb5da1IDSqc1TR9eig==} + + '@vitest/mocker@3.0.9': + resolution: {integrity: sha512-ryERPIBOnvevAkTq+L1lD+DTFBRcjueL9lOUfXsLfwP92h4e+Heb+PjiqS3/OURWPtywfafK0kj++yDFjWUmrA==} + peerDependencies: + msw: ^2.4.9 + vite: ^5.0.0 || ^6.0.0 + peerDependenciesMeta: + msw: + optional: true + vite: + optional: true + + '@vitest/pretty-format@3.0.9': + resolution: {integrity: sha512-OW9F8t2J3AwFEwENg3yMyKWweF7oRJlMyHOMIhO5F3n0+cgQAJZBjNgrF8dLwFTEXl5jUqBLXd9QyyKv8zEcmA==} + + '@vitest/runner@3.0.9': + resolution: {integrity: sha512-NX9oUXgF9HPfJSwl8tUZCMP1oGx2+Sf+ru6d05QjzQz4OwWg0psEzwY6VexP2tTHWdOkhKHUIZH+fS6nA7jfOw==} + + '@vitest/snapshot@3.0.9': + resolution: {integrity: sha512-AiLUiuZ0FuA+/8i19mTYd+re5jqjEc2jZbgJ2up0VY0Ddyyxg/uUtBDpIFAy4uzKaQxOW8gMgBdAJJ2ydhu39A==} + + '@vitest/spy@3.0.9': + resolution: {integrity: sha512-/CcK2UDl0aQ2wtkp3YVWldrpLRNCfVcIOFGlVGKO4R5eajsH393Z1yiXLVQ7vWsj26JOEjeZI0x5sm5P4OGUNQ==} + + '@vitest/utils@3.0.9': + resolution: {integrity: sha512-ilHM5fHhZ89MCp5aAaM9uhfl1c2JdxVxl3McqsdVyVNN6JffnEen8UMCdRTzOhGXNQGo5GNL9QugHrz727Wnng==} + + acorn@8.14.1: + resolution: {integrity: sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==} + engines: {node: '>=0.4.0'} + hasBin: true + + ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + + aria-query@5.3.2: + resolution: {integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==} + engines: {node: '>= 0.4'} + + assertion-error@2.0.1: + resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} + engines: {node: '>=12'} + + async@3.2.6: + resolution: {integrity: sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==} + + axobject-query@4.1.0: + resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==} + engines: {node: '>= 0.4'} + + balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + + brace-expansion@1.1.11: + resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} + + brace-expansion@2.0.1: + resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} + + browserslist@4.24.4: + resolution: {integrity: sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + + buffer-from@1.1.2: + resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} + + cac@6.7.14: + resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} + engines: {node: '>=8'} + + caniuse-lite@1.0.30001706: + resolution: {integrity: sha512-3ZczoTApMAZwPKYWmwVbQMFpXBDds3/0VciVoUwPUbldlYyVLmRVuRs/PcUZtHpbLRpzzDvrvnFuREsGt6lUug==} + + chai@5.2.0: + resolution: {integrity: sha512-mCuXncKXk5iCLhfhwTc0izo0gtEmpz5CtG2y8GiOINBlMVS6v8TMRc5TaLWKS6692m9+dVVfzgeVxR5UxWHTYw==} + engines: {node: '>=12'} + + chalk@4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} + + check-error@2.1.1: + resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==} + engines: {node: '>= 16'} + + chokidar@4.0.3: + resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==} + engines: {node: '>= 14.16.0'} + + clsx@2.1.1: + resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} + engines: {node: '>=6'} + + color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + + color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + + commander@2.20.3: + resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} + + concat-map@0.0.1: + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + + debug@4.4.0: + resolution: {integrity: sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + deep-eql@5.0.2: + resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==} + engines: {node: '>=6'} + + deepmerge@4.3.1: + resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} + engines: {node: '>=0.10.0'} + + detect-libc@2.0.3: + resolution: {integrity: sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==} + engines: {node: '>=8'} + + ejs@3.1.10: + resolution: {integrity: sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==} + engines: {node: '>=0.10.0'} + hasBin: true + + electron-to-chromium@1.5.122: + resolution: {integrity: sha512-EML1wnwkY5MFh/xUnCvY8FrhUuKzdYhowuZExZOfwJo+Zu9OsNCI23Cgl5y7awy7HrUHSwB1Z8pZX5TI34lsUg==} + + es-module-lexer@1.6.0: + resolution: {integrity: sha512-qqnD1yMU6tk/jnaMosogGySTZP8YtUgAffA9nMN+E/rjxcfRQ6IEk7IiozUjgxKoFHBGjTLnrHB/YC45r/59EQ==} + + esbuild@0.25.1: + resolution: {integrity: sha512-BGO5LtrGC7vxnqucAe/rmvKdJllfGaYWdyABvyMoXQlfYMb2bbRuReWR5tEGE//4LcNJj9XrkovTqNYRFZHAMQ==} + engines: {node: '>=18'} + hasBin: true + + escalade@3.2.0: + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} + engines: {node: '>=6'} + + esm-env@1.2.2: + resolution: {integrity: sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA==} + + esrap@1.4.5: + resolution: {integrity: sha512-CjNMjkBWWZeHn+VX+gS8YvFwJ5+NDhg8aWZBSFJPR8qQduDNjbJodA2WcwCm7uQa5Rjqj+nZvVmceg1RbHFB9g==} + + estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + + expect-type@1.2.0: + resolution: {integrity: sha512-80F22aiJ3GLyVnS/B3HzgR6RelZVumzj9jkL0Rhz4h0xYbNW9PjlQz5h3J/SShErbXBc295vseR4/MIbVmUbeA==} + engines: {node: '>=12.0.0'} + + fdir@6.4.3: + resolution: {integrity: sha512-PMXmW2y1hDDfTSRc9gaXIuCCRpuoz3Kaz8cUelp3smouvfT632ozg2vrT6lJsHKKOF59YLbOGfAWGUcKEfRMQw==} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + filelist@1.0.4: + resolution: {integrity: sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==} + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + + is-reference@3.0.3: + resolution: {integrity: sha512-ixkJoqQvAP88E6wLydLGGqCJsrFUnqoH6HnaczB8XmDH1oaWU+xxdptvikTgaEhtZ53Ky6YXiBuUI2WXLMCwjw==} + + jake@10.9.2: + resolution: {integrity: sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA==} + engines: {node: '>=10'} + hasBin: true + + kleur@4.1.5: + resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} + engines: {node: '>=6'} + + lightningcss-darwin-arm64@1.29.3: + resolution: {integrity: sha512-fb7raKO3pXtlNbQbiMeEu8RbBVHnpyqAoxTyTRMEWFQWmscGC2wZxoHzZ+YKAepUuKT9uIW5vL2QbFivTgprZg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [darwin] + + lightningcss-darwin-x64@1.29.3: + resolution: {integrity: sha512-KF2XZ4ZdmDGGtEYmx5wpzn6u8vg7AdBHaEOvDKu8GOs7xDL/vcU2vMKtTeNe1d4dogkDdi3B9zC77jkatWBwEQ==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [darwin] + + lightningcss-freebsd-x64@1.29.3: + resolution: {integrity: sha512-VUWeVf+V1UM54jv9M4wen9vMlIAyT69Krl9XjI8SsRxz4tdNV/7QEPlW6JASev/pYdiynUCW0pwaFquDRYdxMw==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [freebsd] + + lightningcss-linux-arm-gnueabihf@1.29.3: + resolution: {integrity: sha512-UhgZ/XVNfXQVEJrMIWeK1Laj8KbhjbIz7F4znUk7G4zeGw7TRoJxhb66uWrEsonn1+O45w//0i0Fu0wIovYdYg==} + engines: {node: '>= 12.0.0'} + cpu: [arm] + os: [linux] + + lightningcss-linux-arm64-gnu@1.29.3: + resolution: {integrity: sha512-Pqau7jtgJNmQ/esugfmAT1aCFy/Gxc92FOxI+3n+LbMHBheBnk41xHDhc0HeYlx9G0xP5tK4t0Koy3QGGNqypw==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + + lightningcss-linux-arm64-musl@1.29.3: + resolution: {integrity: sha512-dxakOk66pf7KLS7VRYFO7B8WOJLecE5OPL2YOk52eriFd/yeyxt2Km5H0BjLfElokIaR+qWi33gB8MQLrdAY3A==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + + lightningcss-linux-x64-gnu@1.29.3: + resolution: {integrity: sha512-ySZTNCpbfbK8rqpKJeJR2S0g/8UqqV3QnzcuWvpI60LWxnFN91nxpSSwCbzfOXkzKfar9j5eOuOplf+klKtINg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + + lightningcss-linux-x64-musl@1.29.3: + resolution: {integrity: sha512-3pVZhIzW09nzi10usAXfIGTTSTYQ141dk88vGFNCgawIzayiIzZQxEcxVtIkdvlEq2YuFsL9Wcj/h61JHHzuFQ==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + + lightningcss-win32-arm64-msvc@1.29.3: + resolution: {integrity: sha512-VRnkAvtIkeWuoBJeGOTrZxsNp4HogXtcaaLm8agmbYtLDOhQdpgxW6NjZZjDXbvGF+eOehGulXZ3C1TiwHY4QQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [win32] + + lightningcss-win32-x64-msvc@1.29.3: + resolution: {integrity: sha512-IszwRPu2cPnDQsZpd7/EAr0x2W7jkaWqQ1SwCVIZ/tSbZVXPLt6k8s6FkcyBjViCzvB5CW0We0QbbP7zp2aBjQ==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [win32] + + lightningcss@1.29.3: + resolution: {integrity: sha512-GlOJwTIP6TMIlrTFsxTerwC0W6OpQpCGuX1ECRLBUVRh6fpJH3xTqjCjRgQHTb4ZXexH9rtHou1Lf03GKzmhhQ==} + engines: {node: '>= 12.0.0'} + + locate-character@3.0.0: + resolution: {integrity: sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==} + + loupe@3.1.3: + resolution: {integrity: sha512-kkIp7XSkP78ZxJEsSxW3712C6teJVoeHHwgo9zJ380de7IYyJ2ISlxojcH2pC5OFLewESmnRi/+XCDIEEVyoug==} + + magic-string@0.30.17: + resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==} + + minimatch@3.1.2: + resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} + + minimatch@5.1.6: + resolution: {integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==} + engines: {node: '>=10'} + + mri@1.2.0: + resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==} + engines: {node: '>=4'} + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + nanoid@3.3.11: + resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + node-releases@2.0.19: + resolution: {integrity: sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==} + + pathe@2.0.3: + resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} + + pathval@2.0.0: + resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==} + engines: {node: '>= 14.16'} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + postcss@8.5.3: + resolution: {integrity: sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==} + engines: {node: ^10 || ^12 || >=14} + + readdirp@4.1.2: + resolution: {integrity: sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==} + engines: {node: '>= 14.18.0'} + + rollup@4.36.0: + resolution: {integrity: sha512-zwATAXNQxUcd40zgtQG0ZafcRK4g004WtEl7kbuhTWPvf07PsfohXl39jVUvPF7jvNAIkKPQ2XrsDlWuxBd++Q==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + sade@1.8.1: + resolution: {integrity: sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==} + engines: {node: '>=6'} + + siginfo@2.0.0: + resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} + + source-map-js@1.2.1: + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} + + source-map-support@0.5.21: + resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} + + source-map@0.6.1: + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} + engines: {node: '>=0.10.0'} + + stackback@0.0.2: + resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} + + std-env@3.8.1: + resolution: {integrity: sha512-vj5lIj3Mwf9D79hBkltk5qmkFI+biIKWS2IBxEyEU3AX1tUf7AoL8nSazCOiiqQsGKIq01SClsKEzweu34uwvA==} + + supports-color@7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + + svelte-check@4.1.5: + resolution: {integrity: sha512-Gb0T2IqBNe1tLB9EB1Qh+LOe+JB8wt2/rNBDGvkxQVvk8vNeAoG+vZgFB/3P5+zC7RWlyBlzm9dVjZFph/maIg==} + engines: {node: '>= 18.0.0'} + hasBin: true + peerDependencies: + svelte: ^4.0.0 || ^5.0.0-next.0 + typescript: '>=5.0.0' + + svelte@5.23.2: + resolution: {integrity: sha512-PHP1o0aYJNMatiZ+0nq1W/Z1W1/l5Z94B9nhMIo7gsuTBbxC454g4O5SQMjQpZBUZi5ANYUrXJOE4gPzcN/VQw==} + engines: {node: '>=18'} + + terser@5.39.0: + resolution: {integrity: sha512-LBAhFyLho16harJoWMg/nZsQYgTrg5jXOn2nCYjRUcZZEdE3qa2zb8QEDRUGVZBW4rlazf2fxkg8tztybTaqWw==} + engines: {node: '>=10'} + hasBin: true + + tinybench@2.9.0: + resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} + + tinyexec@0.3.2: + resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==} + + tinypool@1.0.2: + resolution: {integrity: sha512-al6n+QEANGFOMf/dmUMsuS5/r9B06uwlyNjZZql/zv8J7ybHCgoihBNORZCY2mzUuAnomQa2JdhyHKzZxPCrFA==} + engines: {node: ^18.0.0 || >=20.0.0} + + tinyrainbow@2.0.0: + resolution: {integrity: sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==} + engines: {node: '>=14.0.0'} + + tinyspy@3.0.2: + resolution: {integrity: sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==} + engines: {node: '>=14.0.0'} + + typescript@5.7.3: + resolution: {integrity: sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==} + engines: {node: '>=14.17'} + hasBin: true + + undici-types@6.20.0: + resolution: {integrity: sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==} + + update-browserslist-db@1.1.3: + resolution: {integrity: sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==} + hasBin: true + peerDependencies: + browserslist: '>= 4.21.0' + + vite-node@3.0.9: + resolution: {integrity: sha512-w3Gdx7jDcuT9cNn9jExXgOyKmf5UOTb6WMHz8LGAm54eS1Elf5OuBhCxl6zJxGhEeIkgsE1WbHuoL0mj/UXqXg==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + + vite-plugin-css-injected-by-js@3.5.2: + resolution: {integrity: sha512-2MpU/Y+SCZyWUB6ua3HbJCrgnF0KACAsmzOQt1UvRVJCGF6S8xdA3ZUhWcWdM9ivG4I5az8PnQmwwrkC2CAQrQ==} + peerDependencies: + vite: '>2.0.0-0' + + vite-plugin-ejs@1.7.0: + resolution: {integrity: sha512-JNP3zQDC4mSbfoJ3G73s5mmZITD8NGjUmLkq4swxyahy/W0xuokK9U9IJGXw7KCggq6UucT6hJ0p+tQrNtqTZw==} + peerDependencies: + vite: '>=5.0.0' + + vite@6.2.2: + resolution: {integrity: sha512-yW7PeMM+LkDzc7CgJuRLMW2Jz0FxMOsVJ8Lv3gpgW9WLcb9cTW+121UEr1hvmfR7w3SegR5ItvYyzVz1vxNJgQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + 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 + + vitefu@1.0.6: + resolution: {integrity: sha512-+Rex1GlappUyNN6UfwbVZne/9cYC4+R2XDk9xkNXBKMw6HQagdX9PgZ8V2v1WUSK1wfBLp7qbI1+XSNIlB1xmA==} + peerDependencies: + vite: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 + peerDependenciesMeta: + vite: + optional: true + + vitest@3.0.9: + resolution: {integrity: sha512-BbcFDqNyBlfSpATmTtXOAOj71RNKDDvjBM/uPfnxxVGrG+FSH2RQIwgeEngTaTkuU/h0ScFvf+tRcKfYXzBybQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@types/debug': ^4.1.12 + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + '@vitest/browser': 3.0.9 + '@vitest/ui': 3.0.9 + happy-dom: '*' + jsdom: '*' + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@types/debug': + optional: true + '@types/node': + optional: true + '@vitest/browser': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + + why-is-node-running@2.3.0: + resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} + engines: {node: '>=8'} + hasBin: true + + zimmerframe@1.1.2: + resolution: {integrity: sha512-rAbqEGa8ovJy4pyBxZM70hg4pE6gDgaQ0Sl9M3enG3I0d6H4XSAM3GeNGLKnsBpuijUow064sf7ww1nutC5/3w==} + +snapshots: + + '@ampproject/remapping@2.3.0': + dependencies: + '@jridgewell/gen-mapping': 0.3.8 + '@jridgewell/trace-mapping': 0.3.25 + + '@esbuild/aix-ppc64@0.25.1': + optional: true + + '@esbuild/android-arm64@0.25.1': + optional: true + + '@esbuild/android-arm@0.25.1': + optional: true + + '@esbuild/android-x64@0.25.1': + optional: true + + '@esbuild/darwin-arm64@0.25.1': + optional: true + + '@esbuild/darwin-x64@0.25.1': + optional: true + + '@esbuild/freebsd-arm64@0.25.1': + optional: true + + '@esbuild/freebsd-x64@0.25.1': + optional: true + + '@esbuild/linux-arm64@0.25.1': + optional: true + + '@esbuild/linux-arm@0.25.1': + optional: true + + '@esbuild/linux-ia32@0.25.1': + optional: true + + '@esbuild/linux-loong64@0.25.1': + optional: true + + '@esbuild/linux-mips64el@0.25.1': + optional: true + + '@esbuild/linux-ppc64@0.25.1': + optional: true + + '@esbuild/linux-riscv64@0.25.1': + optional: true + + '@esbuild/linux-s390x@0.25.1': + optional: true + + '@esbuild/linux-x64@0.25.1': + optional: true + + '@esbuild/netbsd-arm64@0.25.1': + optional: true + + '@esbuild/netbsd-x64@0.25.1': + optional: true + + '@esbuild/openbsd-arm64@0.25.1': + optional: true + + '@esbuild/openbsd-x64@0.25.1': + optional: true + + '@esbuild/sunos-x64@0.25.1': + optional: true + + '@esbuild/win32-arm64@0.25.1': + optional: true + + '@esbuild/win32-ia32@0.25.1': + optional: true + + '@esbuild/win32-x64@0.25.1': + optional: true + + '@jridgewell/gen-mapping@0.3.8': + dependencies: + '@jridgewell/set-array': 1.2.1 + '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/trace-mapping': 0.3.25 + + '@jridgewell/resolve-uri@3.1.2': {} + + '@jridgewell/set-array@1.2.1': {} + + '@jridgewell/source-map@0.3.6': + dependencies: + '@jridgewell/gen-mapping': 0.3.8 + '@jridgewell/trace-mapping': 0.3.25 + + '@jridgewell/sourcemap-codec@1.5.0': {} + + '@jridgewell/trace-mapping@0.3.25': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.5.0 + + '@rollup/rollup-android-arm-eabi@4.36.0': + optional: true + + '@rollup/rollup-android-arm64@4.36.0': + optional: true + + '@rollup/rollup-darwin-arm64@4.36.0': + optional: true + + '@rollup/rollup-darwin-x64@4.36.0': + optional: true + + '@rollup/rollup-freebsd-arm64@4.36.0': + optional: true + + '@rollup/rollup-freebsd-x64@4.36.0': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.36.0': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.36.0': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.36.0': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.36.0': + optional: true + + '@rollup/rollup-linux-loongarch64-gnu@4.36.0': + optional: true + + '@rollup/rollup-linux-powerpc64le-gnu@4.36.0': + optional: true + + '@rollup/rollup-linux-riscv64-gnu@4.36.0': + optional: true + + '@rollup/rollup-linux-s390x-gnu@4.36.0': + optional: true + + '@rollup/rollup-linux-x64-gnu@4.36.0': + optional: true + + '@rollup/rollup-linux-x64-musl@4.36.0': + optional: true + + '@rollup/rollup-win32-arm64-msvc@4.36.0': + optional: true + + '@rollup/rollup-win32-ia32-msvc@4.36.0': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.36.0': + optional: true + + '@sveltejs/acorn-typescript@1.0.5(acorn@8.14.1)': + dependencies: + acorn: 8.14.1 + + '@sveltejs/vite-plugin-svelte-inspector@4.0.1(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.23.2)(vite@6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0)))(svelte@5.23.2)(vite@6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0))': + dependencies: + '@sveltejs/vite-plugin-svelte': 5.0.3(svelte@5.23.2)(vite@6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0)) + debug: 4.4.0 + svelte: 5.23.2 + vite: 6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0) + transitivePeerDependencies: + - supports-color + + '@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.23.2)(vite@6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0))': + dependencies: + '@sveltejs/vite-plugin-svelte-inspector': 4.0.1(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.23.2)(vite@6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0)))(svelte@5.23.2)(vite@6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0)) + debug: 4.4.0 + deepmerge: 4.3.1 + kleur: 4.1.5 + magic-string: 0.30.17 + svelte: 5.23.2 + vite: 6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0) + vitefu: 1.0.6(vite@6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0)) + transitivePeerDependencies: + - supports-color + + '@tsconfig/svelte@5.0.4': {} + + '@types/estree@1.0.6': {} + + '@types/node@22.13.10': + dependencies: + undici-types: 6.20.0 + + '@vitest/expect@3.0.9': + dependencies: + '@vitest/spy': 3.0.9 + '@vitest/utils': 3.0.9 + chai: 5.2.0 + tinyrainbow: 2.0.0 + + '@vitest/mocker@3.0.9(vite@6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0))': + dependencies: + '@vitest/spy': 3.0.9 + estree-walker: 3.0.3 + magic-string: 0.30.17 + optionalDependencies: + vite: 6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0) + + '@vitest/pretty-format@3.0.9': + dependencies: + tinyrainbow: 2.0.0 + + '@vitest/runner@3.0.9': + dependencies: + '@vitest/utils': 3.0.9 + pathe: 2.0.3 + + '@vitest/snapshot@3.0.9': + dependencies: + '@vitest/pretty-format': 3.0.9 + magic-string: 0.30.17 + pathe: 2.0.3 + + '@vitest/spy@3.0.9': + dependencies: + tinyspy: 3.0.2 + + '@vitest/utils@3.0.9': + dependencies: + '@vitest/pretty-format': 3.0.9 + loupe: 3.1.3 + tinyrainbow: 2.0.0 + + acorn@8.14.1: {} + + ansi-styles@4.3.0: + dependencies: + color-convert: 2.0.1 + + aria-query@5.3.2: {} + + assertion-error@2.0.1: {} + + async@3.2.6: {} + + axobject-query@4.1.0: {} + + balanced-match@1.0.2: {} + + brace-expansion@1.1.11: + dependencies: + balanced-match: 1.0.2 + concat-map: 0.0.1 + + brace-expansion@2.0.1: + dependencies: + balanced-match: 1.0.2 + + browserslist@4.24.4: + dependencies: + caniuse-lite: 1.0.30001706 + electron-to-chromium: 1.5.122 + node-releases: 2.0.19 + update-browserslist-db: 1.1.3(browserslist@4.24.4) + + buffer-from@1.1.2: {} + + cac@6.7.14: {} + + caniuse-lite@1.0.30001706: {} + + chai@5.2.0: + dependencies: + assertion-error: 2.0.1 + check-error: 2.1.1 + deep-eql: 5.0.2 + loupe: 3.1.3 + pathval: 2.0.0 + + chalk@4.1.2: + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + + check-error@2.1.1: {} + + chokidar@4.0.3: + dependencies: + readdirp: 4.1.2 + + clsx@2.1.1: {} + + color-convert@2.0.1: + dependencies: + color-name: 1.1.4 + + color-name@1.1.4: {} + + commander@2.20.3: {} + + concat-map@0.0.1: {} + + debug@4.4.0: + dependencies: + ms: 2.1.3 + + deep-eql@5.0.2: {} + + deepmerge@4.3.1: {} + + detect-libc@2.0.3: {} + + ejs@3.1.10: + dependencies: + jake: 10.9.2 + + electron-to-chromium@1.5.122: {} + + es-module-lexer@1.6.0: {} + + esbuild@0.25.1: + optionalDependencies: + '@esbuild/aix-ppc64': 0.25.1 + '@esbuild/android-arm': 0.25.1 + '@esbuild/android-arm64': 0.25.1 + '@esbuild/android-x64': 0.25.1 + '@esbuild/darwin-arm64': 0.25.1 + '@esbuild/darwin-x64': 0.25.1 + '@esbuild/freebsd-arm64': 0.25.1 + '@esbuild/freebsd-x64': 0.25.1 + '@esbuild/linux-arm': 0.25.1 + '@esbuild/linux-arm64': 0.25.1 + '@esbuild/linux-ia32': 0.25.1 + '@esbuild/linux-loong64': 0.25.1 + '@esbuild/linux-mips64el': 0.25.1 + '@esbuild/linux-ppc64': 0.25.1 + '@esbuild/linux-riscv64': 0.25.1 + '@esbuild/linux-s390x': 0.25.1 + '@esbuild/linux-x64': 0.25.1 + '@esbuild/netbsd-arm64': 0.25.1 + '@esbuild/netbsd-x64': 0.25.1 + '@esbuild/openbsd-arm64': 0.25.1 + '@esbuild/openbsd-x64': 0.25.1 + '@esbuild/sunos-x64': 0.25.1 + '@esbuild/win32-arm64': 0.25.1 + '@esbuild/win32-ia32': 0.25.1 + '@esbuild/win32-x64': 0.25.1 + + escalade@3.2.0: {} + + esm-env@1.2.2: {} + + esrap@1.4.5: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.0 + + estree-walker@3.0.3: + dependencies: + '@types/estree': 1.0.6 + + expect-type@1.2.0: {} + + fdir@6.4.3: {} + + filelist@1.0.4: + dependencies: + minimatch: 5.1.6 + + fsevents@2.3.3: + optional: true + + has-flag@4.0.0: {} + + is-reference@3.0.3: + dependencies: + '@types/estree': 1.0.6 + + jake@10.9.2: + dependencies: + async: 3.2.6 + chalk: 4.1.2 + filelist: 1.0.4 + minimatch: 3.1.2 + + kleur@4.1.5: {} + + lightningcss-darwin-arm64@1.29.3: + optional: true + + lightningcss-darwin-x64@1.29.3: + optional: true + + lightningcss-freebsd-x64@1.29.3: + optional: true + + lightningcss-linux-arm-gnueabihf@1.29.3: + optional: true + + lightningcss-linux-arm64-gnu@1.29.3: + optional: true + + lightningcss-linux-arm64-musl@1.29.3: + optional: true + + lightningcss-linux-x64-gnu@1.29.3: + optional: true + + lightningcss-linux-x64-musl@1.29.3: + optional: true + + lightningcss-win32-arm64-msvc@1.29.3: + optional: true + + lightningcss-win32-x64-msvc@1.29.3: + optional: true + + lightningcss@1.29.3: + dependencies: + detect-libc: 2.0.3 + optionalDependencies: + lightningcss-darwin-arm64: 1.29.3 + lightningcss-darwin-x64: 1.29.3 + lightningcss-freebsd-x64: 1.29.3 + lightningcss-linux-arm-gnueabihf: 1.29.3 + lightningcss-linux-arm64-gnu: 1.29.3 + lightningcss-linux-arm64-musl: 1.29.3 + lightningcss-linux-x64-gnu: 1.29.3 + lightningcss-linux-x64-musl: 1.29.3 + lightningcss-win32-arm64-msvc: 1.29.3 + lightningcss-win32-x64-msvc: 1.29.3 + + locate-character@3.0.0: {} + + loupe@3.1.3: {} + + magic-string@0.30.17: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.0 + + minimatch@3.1.2: + dependencies: + brace-expansion: 1.1.11 + + minimatch@5.1.6: + dependencies: + brace-expansion: 2.0.1 + + mri@1.2.0: {} + + ms@2.1.3: {} + + nanoid@3.3.11: {} + + node-releases@2.0.19: {} + + pathe@2.0.3: {} + + pathval@2.0.0: {} + + picocolors@1.1.1: {} + + postcss@8.5.3: + dependencies: + nanoid: 3.3.11 + picocolors: 1.1.1 + source-map-js: 1.2.1 + + readdirp@4.1.2: {} + + rollup@4.36.0: + dependencies: + '@types/estree': 1.0.6 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.36.0 + '@rollup/rollup-android-arm64': 4.36.0 + '@rollup/rollup-darwin-arm64': 4.36.0 + '@rollup/rollup-darwin-x64': 4.36.0 + '@rollup/rollup-freebsd-arm64': 4.36.0 + '@rollup/rollup-freebsd-x64': 4.36.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.36.0 + '@rollup/rollup-linux-arm-musleabihf': 4.36.0 + '@rollup/rollup-linux-arm64-gnu': 4.36.0 + '@rollup/rollup-linux-arm64-musl': 4.36.0 + '@rollup/rollup-linux-loongarch64-gnu': 4.36.0 + '@rollup/rollup-linux-powerpc64le-gnu': 4.36.0 + '@rollup/rollup-linux-riscv64-gnu': 4.36.0 + '@rollup/rollup-linux-s390x-gnu': 4.36.0 + '@rollup/rollup-linux-x64-gnu': 4.36.0 + '@rollup/rollup-linux-x64-musl': 4.36.0 + '@rollup/rollup-win32-arm64-msvc': 4.36.0 + '@rollup/rollup-win32-ia32-msvc': 4.36.0 + '@rollup/rollup-win32-x64-msvc': 4.36.0 + fsevents: 2.3.3 + + sade@1.8.1: + dependencies: + mri: 1.2.0 + + siginfo@2.0.0: {} + + source-map-js@1.2.1: {} + + source-map-support@0.5.21: + dependencies: + buffer-from: 1.1.2 + source-map: 0.6.1 + + source-map@0.6.1: {} + + stackback@0.0.2: {} + + std-env@3.8.1: {} + + supports-color@7.2.0: + dependencies: + has-flag: 4.0.0 + + svelte-check@4.1.5(svelte@5.23.2)(typescript@5.7.3): + dependencies: + '@jridgewell/trace-mapping': 0.3.25 + chokidar: 4.0.3 + fdir: 6.4.3 + picocolors: 1.1.1 + sade: 1.8.1 + svelte: 5.23.2 + typescript: 5.7.3 + transitivePeerDependencies: + - picomatch + + svelte@5.23.2: + dependencies: + '@ampproject/remapping': 2.3.0 + '@jridgewell/sourcemap-codec': 1.5.0 + '@sveltejs/acorn-typescript': 1.0.5(acorn@8.14.1) + '@types/estree': 1.0.6 + acorn: 8.14.1 + aria-query: 5.3.2 + axobject-query: 4.1.0 + clsx: 2.1.1 + esm-env: 1.2.2 + esrap: 1.4.5 + is-reference: 3.0.3 + locate-character: 3.0.0 + magic-string: 0.30.17 + zimmerframe: 1.1.2 + + terser@5.39.0: + dependencies: + '@jridgewell/source-map': 0.3.6 + acorn: 8.14.1 + commander: 2.20.3 + source-map-support: 0.5.21 + + tinybench@2.9.0: {} + + tinyexec@0.3.2: {} + + tinypool@1.0.2: {} + + tinyrainbow@2.0.0: {} + + tinyspy@3.0.2: {} + + typescript@5.7.3: {} + + undici-types@6.20.0: {} + + update-browserslist-db@1.1.3(browserslist@4.24.4): + dependencies: + browserslist: 4.24.4 + escalade: 3.2.0 + picocolors: 1.1.1 + + vite-node@3.0.9(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0): + dependencies: + cac: 6.7.14 + debug: 4.4.0 + es-module-lexer: 1.6.0 + pathe: 2.0.3 + vite: 6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0) + transitivePeerDependencies: + - '@types/node' + - jiti + - less + - lightningcss + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + - tsx + - yaml + + vite-plugin-css-injected-by-js@3.5.2(vite@6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0)): + dependencies: + vite: 6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0) + + vite-plugin-ejs@1.7.0(vite@6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0)): + dependencies: + ejs: 3.1.10 + vite: 6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0) + + vite@6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0): + dependencies: + esbuild: 0.25.1 + postcss: 8.5.3 + rollup: 4.36.0 + optionalDependencies: + '@types/node': 22.13.10 + fsevents: 2.3.3 + lightningcss: 1.29.3 + terser: 5.39.0 + + vitefu@1.0.6(vite@6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0)): + optionalDependencies: + vite: 6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0) + + vitest@3.0.9(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0): + dependencies: + '@vitest/expect': 3.0.9 + '@vitest/mocker': 3.0.9(vite@6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0)) + '@vitest/pretty-format': 3.0.9 + '@vitest/runner': 3.0.9 + '@vitest/snapshot': 3.0.9 + '@vitest/spy': 3.0.9 + '@vitest/utils': 3.0.9 + chai: 5.2.0 + debug: 4.4.0 + expect-type: 1.2.0 + magic-string: 0.30.17 + pathe: 2.0.3 + std-env: 3.8.1 + tinybench: 2.9.0 + tinyexec: 0.3.2 + tinypool: 1.0.2 + tinyrainbow: 2.0.0 + vite: 6.2.2(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0) + vite-node: 3.0.9(@types/node@22.13.10)(lightningcss@1.29.3)(terser@5.39.0) + why-is-node-running: 2.3.0 + optionalDependencies: + '@types/node': 22.13.10 + transitivePeerDependencies: + - jiti + - less + - lightningcss + - msw + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + - tsx + - yaml + + why-is-node-running@2.3.0: + dependencies: + siginfo: 2.0.0 + stackback: 0.0.2 + + zimmerframe@1.1.2: {} diff --git a/site/plugins/loop/frontend/src/App.svelte b/site/plugins/loop/frontend/src/App.svelte new file mode 100644 index 0000000..83a68df --- /dev/null +++ b/site/plugins/loop/frontend/src/App.svelte @@ -0,0 +1,216 @@ + + + + + + +{#if showLoop} +
      + + + + {#each visibleComments as comment (comment.id)} + + {/each} + + +{/if} + + diff --git a/site/plugins/loop/frontend/src/composables/decodeHTMLEntities.ts b/site/plugins/loop/frontend/src/composables/decodeHTMLEntities.ts new file mode 100644 index 0000000..e65ea71 --- /dev/null +++ b/site/plugins/loop/frontend/src/composables/decodeHTMLEntities.ts @@ -0,0 +1,19 @@ +/** + * Decodes HTML entities in a string + * @param text The text that may contain HTML entities + * @returns The decoded text + */ +export function decodeHTMLEntities(text: string): string { + const entityMap: Record = { + '&': '&', + '<': '<', + '>': '>', + '"': '"', + ''': "'", + '/': '/', + '`': '`', + '=': '=' + }; + + return text.replace(/&[#\w]+;/g, (entity) => entityMap[entity] || entity); +} diff --git a/site/plugins/loop/frontend/src/composables/formatDate.ts b/site/plugins/loop/frontend/src/composables/formatDate.ts new file mode 100644 index 0000000..3b8177c --- /dev/null +++ b/site/plugins/loop/frontend/src/composables/formatDate.ts @@ -0,0 +1,31 @@ +import { t, tt } from "../store/translations.svelte"; + +export function formatDate(timestamp: number, humanize = true): string { + const date = new Date(timestamp * 1000); + const now = new Date(); + const diffInMs = now.getTime() - date.getTime(); + const diffInMinutes = Math.floor(diffInMs / (1000 * 60)); + const diffInHours = Math.floor(diffInMs / (1000 * 60 * 60)); + const diffInDays = Math.floor(diffInMs / (1000 * 60 * 60 * 24)); + + // Show relative time for up to 3 days + if (humanize && diffInDays <= 3) { + if (diffInMinutes < 1) { + return t("ui.time.just_now", "just now"); + } else if (diffInMinutes === 1) { + return t("ui.time.minute_ago", "a minute ago"); + } else if (diffInMinutes < 60) { + return tt("ui.time.minutes_ago", "{count} minutes ago", { count: diffInMinutes.toString() }); + } else if (diffInHours === 1) { + return t("ui.time.hour_ago", "an hour ago"); + } else if (diffInHours < 24) { + return tt("ui.time.hours_ago", "{count} hours ago", { count: diffInHours.toString() }); + } else if (diffInDays === 1) { + return t("ui.time.yesterday", "yesterday"); + } else { + return tt("ui.time.days_ago", "{count} days ago", { count: diffInDays.toString() }); + } + } + + return date.toLocaleString(undefined, { dateStyle: "short", timeStyle: "short" }); +} diff --git a/site/plugins/loop/frontend/src/composables/formatDateISO.ts b/site/plugins/loop/frontend/src/composables/formatDateISO.ts new file mode 100644 index 0000000..ba5c164 --- /dev/null +++ b/site/plugins/loop/frontend/src/composables/formatDateISO.ts @@ -0,0 +1,3 @@ +export function formatDateISO(timestamp: number): string { + return new Date(timestamp * 1000).toISOString(); +} \ No newline at end of file diff --git a/site/plugins/loop/frontend/src/composables/getDialogPosition.ts b/site/plugins/loop/frontend/src/composables/getDialogPosition.ts new file mode 100644 index 0000000..1e54920 --- /dev/null +++ b/site/plugins/loop/frontend/src/composables/getDialogPosition.ts @@ -0,0 +1,39 @@ +import { getDocumentHeight } from "./getDocumentHeight"; +import { getDocumentWidth } from "./getDocumentWidth"; + +export const getDialogPosition = (marker: { pagePositionX: number, pagePositionY: number } | null, + dialogElement: HTMLDialogElement | null): { left: number, top: number } => { + // Default position (fallback) + let left = 0; + let top = 0; + + if (!marker || !dialogElement) return { left, top }; + + // Get marker position + left = marker.pagePositionX; + top = marker.pagePositionY; + + // Get dialog dimensions + const dialogWidth = dialogElement.offsetWidth; + const dialogHeight = dialogElement.offsetHeight; + + // Get document dimensions + const documentWidth = getDocumentWidth(); + const documentHeight = getDocumentHeight(); + + // Ensure dialog doesn't go off-screen to the right + if (left + dialogWidth > documentWidth) { + left = documentWidth - dialogWidth; + } + + // Ensure dialog doesn't go off-screen to the bottom + if (top + dialogHeight > documentHeight) { + top = documentHeight - dialogHeight; + } + + // Ensure dialog doesn't go off-screen to the left or top + left = Math.max(0, left); + top = Math.max(0, top); + + return { left, top }; +} diff --git a/site/plugins/loop/frontend/src/composables/getDocumentHeight.ts b/site/plugins/loop/frontend/src/composables/getDocumentHeight.ts new file mode 100644 index 0000000..8171a77 --- /dev/null +++ b/site/plugins/loop/frontend/src/composables/getDocumentHeight.ts @@ -0,0 +1,13 @@ +// Get the entire document height, including scrollable area +export const getDocumentHeight = (): number => { + const body = document.body; + const html = document.documentElement; + + return Math.max( + body.scrollHeight, + body.offsetHeight, + html.clientHeight, + html.scrollHeight, + html.offsetHeight + ); +}; diff --git a/site/plugins/loop/frontend/src/composables/getDocumentWidth.ts b/site/plugins/loop/frontend/src/composables/getDocumentWidth.ts new file mode 100644 index 0000000..1eb49d6 --- /dev/null +++ b/site/plugins/loop/frontend/src/composables/getDocumentWidth.ts @@ -0,0 +1,13 @@ +// Get the entire document width, including scrollable area +export const getDocumentWidth = (): number => { + const body = document.body; + const html = document.documentElement; + + return Math.max( + body.scrollWidth, + body.offsetWidth, + html.clientWidth, + html.scrollWidth, + html.offsetWidth + ); +}; diff --git a/site/plugins/loop/frontend/src/composables/getSelectorOffset.ts b/site/plugins/loop/frontend/src/composables/getSelectorOffset.ts new file mode 100644 index 0000000..4a35241 --- /dev/null +++ b/site/plugins/loop/frontend/src/composables/getSelectorOffset.ts @@ -0,0 +1,26 @@ +export const getSelectorOffset = (e: MouseEvent, element: HTMLElement): { selectorOffsetX: number, selectorOffsetY: number } => { + // Get absolute click position (relative to the document) + const clickX = e.pageX; + const clickY = e.pageY; + + // Get element's position relative to the document + const rect = element.getBoundingClientRect(); + const elementX = rect.left + window.scrollX; + const elementY = rect.top + window.scrollY; + + // Calculate relative offsets + const offsetXRel = clickX - elementX; + const offsetYRel = clickY - elementY; + + // Convert to percentages + let offsetX = (offsetXRel / element.offsetWidth) * 100; + let offsetY = (offsetYRel / element.offsetHeight) * 100; + + // Round to 2 decimal places + offsetX = Number(offsetX.toFixed(2)); + offsetY = Number(offsetY.toFixed(2)); + + return { + selectorOffsetX: offsetX, selectorOffsetY: offsetY + }; +} diff --git a/site/plugins/loop/frontend/src/composables/setNewMarker.ts b/site/plugins/loop/frontend/src/composables/setNewMarker.ts new file mode 100644 index 0000000..09802a4 --- /dev/null +++ b/site/plugins/loop/frontend/src/composables/setNewMarker.ts @@ -0,0 +1,32 @@ +import { useGenerateSelector } from "./useGenerateSelector"; +import { getSelectorOffset } from "./getSelectorOffset"; + +export const setNewMarker = (e: MouseEvent) => { + + const selector = useGenerateSelector(e); + const element: HTMLElement | null = document.querySelector(selector); + + // error out, if no selector found + if (!element) return; + + const { selectorOffsetX, selectorOffsetY } = getSelectorOffset(e, element); + + // Store absolute position on the page + let pagePositionX = e.pageX; + let pagePositionY = e.pageY; + + // Round to 2 digits + pagePositionX = Number(pagePositionX.toFixed(2)); + pagePositionY = Number(pagePositionY.toFixed(2)); + + return { + selector, + selectorOffsetX, + selectorOffsetY, + pagePositionX, + pagePositionY + } + +} + +export default setNewMarker; diff --git a/site/plugins/loop/frontend/src/composables/useGenerateSelector.ts b/site/plugins/loop/frontend/src/composables/useGenerateSelector.ts new file mode 100644 index 0000000..8c06b59 --- /dev/null +++ b/site/plugins/loop/frontend/src/composables/useGenerateSelector.ts @@ -0,0 +1,352 @@ +/** + * CSS Selector Generator Composable + * Generates reliable, unique CSS selectors for clicked DOM elements + */ + +type SelectorStrategy = { + name: string; + generator: (element: Element) => string | null; + priority: number; +}; + +/** + * Main composable function to generate CSS selector from click event + * @param event - Mouse event from user click + * @returns CSS selector string that uniquely identifies the clicked element + */ +export function useGenerateSelector(event: MouseEvent): string { + const target = event.target as Element; + + if (!target) { + throw new Error('No target element found in event'); + } + + // Try each strategy in priority order + const strategies = getSelectorStrategies(); + + for (const strategy of strategies) { + try { + const selector = strategy.generator(target); + + if (selector && validateSelector(selector, target)) { + return selector; + } + } catch (error) { + console.warn(`Strategy ${strategy.name} failed:`, error); + } + } + + // Ultimate fallback - generate a path selector + return generatePathSelector(target); +} + +/** + * Define selector generation strategies in priority order + */ +function getSelectorStrategies(): SelectorStrategy[] { + return [ + { + name: 'ID', + priority: 1, + generator: (element: Element) => { + if (element.id && isValidId(element.id)) { + return `#${CSS.escape(element.id)}`; + } + return null; + } + }, + { + name: 'Unique Attributes', + priority: 2, + generator: (element: Element) => { + const uniqueAttrs = ['data-testid', 'data-id', 'name', 'for']; + + for (const attr of uniqueAttrs) { + const value = element.getAttribute(attr); + if (value) { + const selector = `${element.tagName.toLowerCase()}[${attr}="${CSS.escape(value)}"]`; + if (isUniqueSelector(selector)) { + return selector; + } + } + } + return null; + } + }, + { + name: 'Semantic Attributes', + priority: 3, + generator: (element: Element) => { + const semanticAttrs = [ + 'aria-label', + 'aria-labelledby', + 'role', + 'type', + 'placeholder', + 'title', + 'alt' + ]; + + const tagName = element.tagName.toLowerCase(); + const selectors: string[] = [tagName]; + + for (const attr of semanticAttrs) { + const value = element.getAttribute(attr); + if (value) { + selectors.push(`[${attr}="${CSS.escape(value)}"]`); + } + } + + if (selectors.length > 1) { + const selector = selectors.join(''); + if (isUniqueSelector(selector)) { + return selector; + } + } + + return null; + } + }, + { + name: 'Structural Attributes', + priority: 4, + generator: (element: Element) => { + const structuralAttrs = ['href', 'src', 'action', 'value']; + const tagName = element.tagName.toLowerCase(); + + for (const attr of structuralAttrs) { + const value = element.getAttribute(attr); + if (value && value.length > 0) { + const selector = `${tagName}[${attr}="${CSS.escape(value)}"]`; + if (isUniqueSelector(selector)) { + return selector; + } + } + } + + return null; + } + }, + { + name: 'Class Combinations', + priority: 5, + generator: (element: Element) => { + const classes = getStableClasses(element); + + if (classes.length === 0) { + return null; + } + + const tagName = element.tagName.toLowerCase(); + + // Try single class first + for (const className of classes) { + const selector = `${tagName}.${CSS.escape(className)}`; + if (isUniqueSelector(selector)) { + return selector; + } + } + + // Try combinations of classes + if (classes.length >= 2) { + const classSelector = classes.slice(0, 3).map(c => `.${CSS.escape(c)}`).join(''); + const selector = `${tagName}${classSelector}`; + if (isUniqueSelector(selector)) { + return selector; + } + } + + return null; + } + }, + { + name: 'Parent Context', + priority: 6, + generator: (element: Element) => { + const parent = element.parentElement; + if (!parent) return null; + + // Try to get a unique selector for parent + const parentSelector = getSimpleSelector(parent); + if (!parentSelector) return null; + + const tagName = element.tagName.toLowerCase(); + const siblingIndex = getSiblingIndex(element); + + if (siblingIndex > 0) { + const selector = `${parentSelector} > ${tagName}:nth-of-type(${siblingIndex})`; + if (isUniqueSelector(selector)) { + return selector; + } + } + + // Try with classes + const classes = getStableClasses(element); + if (classes.length > 0) { + const selector = `${parentSelector} > ${tagName}.${CSS.escape(classes[0])}`; + if (isUniqueSelector(selector)) { + return selector; + } + } + + return null; + } + } + ]; +} + +/** + * Get stable classes (excluding utility/state classes) + */ +function getStableClasses(element: Element): string[] { + const classes = Array.from(element.classList); + + // Filter out common utility/state classes + const unstablePatterns = [ + /^(is-|has-|js-)/, // State prefixes + /^(active|disabled|loading|selected|hover|focus)/, // State classes + /^[a-z]+-[0-9]+$/, // Generated classes like 'item-123' + /^(sm-|md-|lg-|xl-)/, // Responsive utilities + /^(m-|p-|w-|h-|text-|bg-)/, // Tailwind-like utilities + /^[a-f0-9]{6,}$/, // Hash-like classes + ]; + + return classes.filter(className => { + return !unstablePatterns.some(pattern => pattern.test(className)); + }); +} + +/** + * Generate a path-based selector as fallback + */ +function generatePathSelector(element: Element): string { + const path: string[] = []; + let current: Element | null = element; + + while (current && current !== document.body && path.length < 5) { + const selector = getElementSelector(current); + path.unshift(selector); + + // Check if this partial path is unique + const partialSelector = path.join(' > '); + if (isUniqueSelector(partialSelector)) { + return partialSelector; + } + + current = current.parentElement; + } + + return path.join(' > '); +} + +/** + * Get a simple selector for an element + */ +function getSimpleSelector(element: Element): string | null { + // Try ID first + if (element.id && isValidId(element.id)) { + return `#${CSS.escape(element.id)}`; + } + + // Try unique attributes + const uniqueAttrs = ['data-testid', 'data-id', 'name']; + for (const attr of uniqueAttrs) { + const value = element.getAttribute(attr); + if (value) { + return `[${attr}="${CSS.escape(value)}"]`; + } + } + + // Try tag + first stable class + const tagName = element.tagName.toLowerCase(); + const classes = getStableClasses(element); + + if (classes.length > 0) { + return `${tagName}.${CSS.escape(classes[0])}`; + } + + return null; +} + +/** + * Get selector for element in path + */ +function getElementSelector(element: Element): string { + const tagName = element.tagName.toLowerCase(); + + // Use ID if available + if (element.id && isValidId(element.id)) { + return `#${CSS.escape(element.id)}`; + } + + // Use classes if available + const classes = getStableClasses(element); + if (classes.length > 0) { + return `${tagName}.${CSS.escape(classes[0])}`; + } + + // Use nth-of-type for siblings + const index = getSiblingIndex(element); + if (index > 1) { + return `${tagName}:nth-of-type(${index})`; + } + + return tagName; +} + +/** + * Get sibling index for nth-of-type + */ +function getSiblingIndex(element: Element): number { + let index = 1; + let sibling = element.previousElementSibling; + + while (sibling) { + if (sibling.tagName === element.tagName) { + index++; + } + sibling = sibling.previousElementSibling; + } + + return index; +} + +/** + * Validate that a selector uniquely identifies the target element + */ +function validateSelector(selector: string, target: Element): boolean { + try { + const matches = document.querySelectorAll(selector); + return matches.length === 1 && matches[0] === target; + } catch (error) { + console.warn(`Invalid selector: ${selector}`, error); + return false; + } +} + +/** + * Check if a selector matches exactly one element + */ +function isUniqueSelector(selector: string): boolean { + try { + const matches = document.querySelectorAll(selector); + return matches.length === 1; + } catch (error) { + return false; + } +} + +/** + * Check if ID is valid (not auto-generated) + */ +function isValidId(id: string): boolean { + // Skip IDs that look auto-generated + const invalidPatterns = [ + /^[a-f0-9]{8,}$/, // Hex strings + /^(ember|react|vue)[0-9]+/, // Framework generated + /^[0-9]+$/, // Pure numbers + /^temp-/, // Temporary prefixes + ]; + + return !invalidPatterns.some(pattern => pattern.test(id)); +} diff --git a/site/plugins/loop/frontend/src/composables/useResizeHandler.ts b/site/plugins/loop/frontend/src/composables/useResizeHandler.ts new file mode 100644 index 0000000..719df77 --- /dev/null +++ b/site/plugins/loop/frontend/src/composables/useResizeHandler.ts @@ -0,0 +1,130 @@ +/** + * Performance-optimized resize handler with debouncing and RAF + */ + +interface ResizeCallback { + (): void; +} + +interface ResizeHandlerOptions { + /** Debounce delay in milliseconds (default: 100) */ + debounceDelay?: number; + /** Whether to use requestAnimationFrame (default: true) */ + useRAF?: boolean; +} + +class ResizeHandler { + private callbacks = new Set(); + private debounceTimer: number | null = null; + private rafId: number | null = null; + private isListening = false; + private options: Required; + + constructor(options: ResizeHandlerOptions = {}) { + this.options = { + debounceDelay: options.debounceDelay ?? 100, + useRAF: options.useRAF ?? true, + }; + } + + private handleResize = () => { + // Clear existing timers + if (this.debounceTimer) { + clearTimeout(this.debounceTimer); + } + if (this.rafId) { + cancelAnimationFrame(this.rafId); + } + + // Debounce the resize event + this.debounceTimer = window.setTimeout(() => { + if (this.options.useRAF) { + // Use RAF for smooth updates + this.rafId = requestAnimationFrame(() => { + this.executeCallbacks(); + }); + } else { + this.executeCallbacks(); + } + }, this.options.debounceDelay); + }; + + private executeCallbacks() { + this.callbacks.forEach(callback => { + try { + callback(); + } catch (error) { + console.error('Error in resize callback:', error); + } + }); + } + + private startListening() { + if (!this.isListening) { + window.addEventListener('resize', this.handleResize, { passive: true }); + this.isListening = true; + } + } + + private stopListening() { + if (this.isListening) { + window.removeEventListener('resize', this.handleResize); + this.isListening = false; + } + } + + /** + * Add a callback to be executed on resize + */ + subscribe(callback: ResizeCallback): () => void { + this.callbacks.add(callback); + this.startListening(); + + // Return unsubscribe function + return () => { + this.callbacks.delete(callback); + if (this.callbacks.size === 0) { + this.stopListening(); + } + }; + } + + /** + * Clean up all resources + */ + destroy() { + this.callbacks.clear(); + this.stopListening(); + if (this.debounceTimer) { + clearTimeout(this.debounceTimer); + } + if (this.rafId) { + cancelAnimationFrame(this.rafId); + } + } +} + +// Singleton instance for global use +const globalResizeHandler = new ResizeHandler(); + +/** + * Svelte composable for handling window resize events with performance optimization + * @param callback Function to call on resize + * @param options Configuration options + * @returns Cleanup function + */ +export function useResizeHandler( + callback: ResizeCallback, + options?: ResizeHandlerOptions +): () => void { + if (options) { + // Create a new handler with custom options + const handler = new ResizeHandler(options); + return handler.subscribe(callback); + } else { + // Use the global handler + return globalResizeHandler.subscribe(callback); + } +} + +export default useResizeHandler; \ No newline at end of file diff --git a/site/plugins/loop/frontend/src/lib/Author.svelte b/site/plugins/loop/frontend/src/lib/Author.svelte new file mode 100644 index 0000000..0be9b17 --- /dev/null +++ b/site/plugins/loop/frontend/src/lib/Author.svelte @@ -0,0 +1,22 @@ + + +
      + {initials} +
      + + diff --git a/site/plugins/loop/frontend/src/lib/Button.svelte b/site/plugins/loop/frontend/src/lib/Button.svelte new file mode 100644 index 0000000..75f7063 --- /dev/null +++ b/site/plugins/loop/frontend/src/lib/Button.svelte @@ -0,0 +1,256 @@ + + + + + diff --git a/site/plugins/loop/frontend/src/lib/Comment.svelte b/site/plugins/loop/frontend/src/lib/Comment.svelte new file mode 100644 index 0000000..cd74c17 --- /dev/null +++ b/site/plugins/loop/frontend/src/lib/Comment.svelte @@ -0,0 +1,227 @@ + + +
      + + +
      +
      + {comment.author} + +
      +
      {decodeHTMLEntities(comment.comment)}
      +
      + + {#if !detailsOpen} + + {/if} +
      + + {#if comment.replies?.length > 0} +
        + {#each comment.replies as reply (reply.id)} +
      • + +
      • + {/each} +
      + {/if} + +
      + {#if openReplyForm} + { + openReplyForm = false; + handleSubmit(e); + }} + cancel={() => { + openReplyForm = false; + cancel(); + }} + parentId={comment.id} + /> + {:else} +
      + {#if comment.status === "OPEN"} + + + {:else} + + {/if} +
      + {/if} +
      +
      + + diff --git a/site/plugins/loop/frontend/src/lib/CommentDialog.svelte b/site/plugins/loop/frontend/src/lib/CommentDialog.svelte new file mode 100644 index 0000000..5e21a08 --- /dev/null +++ b/site/plugins/loop/frontend/src/lib/CommentDialog.svelte @@ -0,0 +1,56 @@ + + + + + + + diff --git a/site/plugins/loop/frontend/src/lib/CommentForm.svelte b/site/plugins/loop/frontend/src/lib/CommentForm.svelte new file mode 100644 index 0000000..d8d9cd1 --- /dev/null +++ b/site/plugins/loop/frontend/src/lib/CommentForm.svelte @@ -0,0 +1,99 @@ + + +
      +
      + +
      +
      + {t("ui.comment.keyboardHint", "⌘+Enter or Ctrl+Enter to submit")} +
      +
      + + +
      +
      + + diff --git a/site/plugins/loop/frontend/src/lib/ContextMenu.svelte b/site/plugins/loop/frontend/src/lib/ContextMenu.svelte new file mode 100644 index 0000000..f90fb93 --- /dev/null +++ b/site/plugins/loop/frontend/src/lib/ContextMenu.svelte @@ -0,0 +1,187 @@ + + +
      +
      + +
      + + +
      + + diff --git a/site/plugins/loop/frontend/src/lib/Header.svelte b/site/plugins/loop/frontend/src/lib/Header.svelte new file mode 100644 index 0000000..711bef3 --- /dev/null +++ b/site/plugins/loop/frontend/src/lib/Header.svelte @@ -0,0 +1,89 @@ + + +
      +
      + + +
      + +
      + + diff --git a/site/plugins/loop/frontend/src/lib/Marker.svelte b/site/plugins/loop/frontend/src/lib/Marker.svelte new file mode 100644 index 0000000..96bcd52 --- /dev/null +++ b/site/plugins/loop/frontend/src/lib/Marker.svelte @@ -0,0 +1,179 @@ + + +{#if comment} +
      + +
      +{/if} + + diff --git a/site/plugins/loop/frontend/src/lib/Panel.svelte b/site/plugins/loop/frontend/src/lib/Panel.svelte new file mode 100644 index 0000000..8cfbc4e --- /dev/null +++ b/site/plugins/loop/frontend/src/lib/Panel.svelte @@ -0,0 +1,181 @@ + + + +
      + +
      + +
        + {#if filteredComments.length === 0} +
      • +

        + {t("ui.panel.no.comments", "No comments yet.")} +

        +
      • + {:else if filteredComments.length === 0 && panel.showResolvedOnly} +
      • +

        {t("ui.panel.no.resolved", "No resolved comments yet.")}

        +
      • + {:else} + {#each filteredComments as comment (comment.id)} +
      • + +
      • + {/each} + {/if} +
      + + +
      + + diff --git a/site/plugins/loop/frontend/src/lib/Reply.svelte b/site/plugins/loop/frontend/src/lib/Reply.svelte new file mode 100644 index 0000000..8902dab --- /dev/null +++ b/site/plugins/loop/frontend/src/lib/Reply.svelte @@ -0,0 +1,67 @@ + + +
      + +
      +
      + {reply.author} + +
      +
      {decodeHTMLEntities(reply.comment)}
      +
      +
      + + diff --git a/site/plugins/loop/frontend/src/lib/WelcomeDialog.svelte b/site/plugins/loop/frontend/src/lib/WelcomeDialog.svelte new file mode 100644 index 0000000..2c9b412 --- /dev/null +++ b/site/plugins/loop/frontend/src/lib/WelcomeDialog.svelte @@ -0,0 +1,168 @@ + + + +
      + {#if welcomeEnabled} +

      {headline}

      +

      {text}

      + {/if} + + {#if !authenticated} +
      +
      + +
      +
      + {/if} + +
      + + +
      +
      +
      + + diff --git a/site/plugins/loop/frontend/src/main.ts b/site/plugins/loop/frontend/src/main.ts new file mode 100644 index 0000000..04ebb82 --- /dev/null +++ b/site/plugins/loop/frontend/src/main.ts @@ -0,0 +1,5 @@ +import App from './App.svelte' +import "./styles/variables.css" +import "./styles/app.css" + +export default App; diff --git a/site/plugins/loop/frontend/src/store/api.svelte.ts b/site/plugins/loop/frontend/src/store/api.svelte.ts new file mode 100644 index 0000000..bdc5c71 --- /dev/null +++ b/site/plugins/loop/frontend/src/store/api.svelte.ts @@ -0,0 +1,111 @@ +import type { Comment, CommentPayload, Reply, ReplyPayload } from '../types'; + +export const store: { comments: Comment[] } = $state({ + comments: [] +}); + +const apiPrefix = 'loop'; +const KirbyLoop = document.querySelector('kirby-loop'); +const csrfToken = KirbyLoop?.getAttribute('csrf-token') || ''; +const apiBase = KirbyLoop?.getAttribute('apibase') || '/'; +const headers = { + 'Content-Type': 'application/json', + 'X-CSRF-Token': csrfToken || '' +}; + +const buildApiUrl = (endpoint: string): string => { + const url = new URL(`${apiBase}/${apiPrefix}/${endpoint}`, window.location.origin); + + // Add token query params from current page if they exist + const currentParams = new URLSearchParams(window.location.search); + const token = currentParams.get('token') || currentParams.get('_token'); + if (token) { + url.searchParams.set(currentParams.has('token') ? 'token' : '_token', token); + } + + return url.toString(); +}; + +export const getComments = async (pageId: string): Promise => { + const url = buildApiUrl(`comments/${pageId}`); + const response = await fetch(url, { + headers + }); + const data = await response.json(); + if (data.status === 'ok') { + store.comments = data.comments; + } + return data.status === 'ok'; +} + +export const addComment = async (comment: CommentPayload) => { + const url = buildApiUrl('comment/new'); + const response = await fetch(url, { + method: 'POST', + headers, + body: JSON.stringify(comment) + }); + const data: { comment: Comment, status: string } = await response.json(); + if (data.status === 'ok') { + store.comments = [data.comment, ...store.comments]; + } +} + +export const resolveComment = async (comment: Comment) => { + const url = buildApiUrl('comment/resolve'); + const response = await fetch(url, { + method: 'POST', + headers, + body: JSON.stringify({ id: comment.id }) + }); + const data: { success: boolean } = await response.json(); + if (data.success) { + const commentIndex = store.comments.findIndex(c => c.id === comment.id); + if (commentIndex !== -1) { + store.comments[commentIndex].status = 'RESOLVED'; + } + } + return data.success; +} + +export const unresolveComment = async (comment: Comment) => { + const url = buildApiUrl('comment/unresolve'); + const response = await fetch(url, { + method: 'POST', + headers, + body: JSON.stringify({ id: comment.id }) + }); + const data: { success: boolean } = await response.json(); + if (data.success) { + const commentIndex = store.comments.findIndex(c => c.id === comment.id); + if (commentIndex !== -1) { + store.comments[commentIndex].status = 'OPEN'; + } + } + return data.success; +} + +export const setGuestName = async (name: string) => { + const response = await fetch(buildApiUrl('guest/name'), { + method: 'POST', + headers, + body: JSON.stringify({ name }) + }); + return await response.json(); +} + +export const addReply = async (reply: ReplyPayload) => { + const url = buildApiUrl('comment/reply'); + const response = await fetch(url, { + method: 'POST', + headers, + body: JSON.stringify(reply) + }); + const data: { reply: Reply, status: string } = await response.json(); + if (data.status === 'ok') { + const parent = store.comments.find(c => c.id === data.reply.parentId) + if (parent) parent.replies = [...parent.replies, data.reply]; + } +} + +export default store; diff --git a/site/plugins/loop/frontend/src/store/form.svelte.ts b/site/plugins/loop/frontend/src/store/form.svelte.ts new file mode 100644 index 0000000..a33d7a5 --- /dev/null +++ b/site/plugins/loop/frontend/src/store/form.svelte.ts @@ -0,0 +1,11 @@ +import type { FormData } from '../types'; + +export const formData: FormData = $state({ + text: "", + parentId: null +}); + +export const reset = () => { + formData.text = "" + formData.parentId = null +} diff --git a/site/plugins/loop/frontend/src/store/translations.svelte.ts b/site/plugins/loop/frontend/src/store/translations.svelte.ts new file mode 100644 index 0000000..5edeb33 --- /dev/null +++ b/site/plugins/loop/frontend/src/store/translations.svelte.ts @@ -0,0 +1,19 @@ +let translations = $state>({}); + +export const t = (key: string, fallback?: string): string => { + return translations[key] || fallback || key; +}; + +export const tt = (key: string, fallback: string, replacements: Record): string => { + let text = translations[key] || fallback || key; + + for (const [placeholder, value] of Object.entries(replacements)) { + text = text.replace(`{${placeholder}}`, value); + } + + return text; +}; + +export const setTranslations = (newTranslations: Record) => { + translations = newTranslations; +}; \ No newline at end of file diff --git a/site/plugins/loop/frontend/src/store/ui.svelte.ts b/site/plugins/loop/frontend/src/store/ui.svelte.ts new file mode 100644 index 0000000..305b47c --- /dev/null +++ b/site/plugins/loop/frontend/src/store/ui.svelte.ts @@ -0,0 +1,34 @@ +export const panel = $state({ + open: false, + currentCommentId: 0, + showResolvedOnly: false, + pulseMarkerId: 0 +}); +export const overlay = $state({ open: false }); + +// Guest name management +let guestNameValue = $state(""); + +export const guestName = { + get value() { + return guestNameValue; + }, + set(name: string) { + guestNameValue = name; + if (typeof window !== 'undefined') { + sessionStorage.setItem('loop-guest-name', name); + } + }, + get() { + if (!guestNameValue && typeof window !== 'undefined') { + guestNameValue = sessionStorage.getItem('loop-guest-name') || ""; + } + return guestNameValue; + }, + clear() { + guestNameValue = ""; + if (typeof window !== 'undefined') { + sessionStorage.removeItem('loop-guest-name'); + } + } +}; diff --git a/site/plugins/loop/frontend/src/styles/app.css b/site/plugins/loop/frontend/src/styles/app.css new file mode 100644 index 0000000..fd92a49 --- /dev/null +++ b/site/plugins/loop/frontend/src/styles/app.css @@ -0,0 +1,13 @@ +kirby-loop { + font-family: var(--font-family); + line-height: var(--line-height); + font-weight: var(--font-weight-normal); + font-size: var(--font-size-7); + box-sizing: border-box; +} + +html.loop-overlay-open { + a { + pointer-events: none; + } +} diff --git a/site/plugins/loop/frontend/src/styles/theme-dark.css b/site/plugins/loop/frontend/src/styles/theme-dark.css new file mode 100644 index 0000000..a7ce655 --- /dev/null +++ b/site/plugins/loop/frontend/src/styles/theme-dark.css @@ -0,0 +1,35 @@ +kirby-loop[theme="dark"] { + /* Accent lightness values */ + --color-accent-l: 0.85; + + /* Neutral lightness values */ + --color-neutral-l-0: 0; + --color-neutral-l-100: 0.1; + --color-neutral-l-200: 0.2; + --color-neutral-l-300: 0.45; + --color-neutral-l-400: 0.5; + --color-neutral-l-600: 0.55; + --color-neutral-l-500: 0.6; + --color-neutral-l-700: 0.7; + --color-neutral-l-800: 0.8; + --color-neutral-l-900: 0.95; + --color-neutral-l-1000: 1; + + /* Shadow tokens */ + --shadow-s: 0 0.1em 0.25em oklch(var(--color-neutral-l-100) var(--color-neutral-c) var(--color-neutral-h) / 0.1); + --shadow-m: 0 2px 8px oklch(var(--color-neutral-l-100) var(--color-neutral-c) var(--color-neutral-h) / 0.08), + 0 8px 16px oklch(var(--color-neutral-l-100) var(--color-neutral-c) var(--color-neutral-h) / 0.12), + 0 16px 24px oklch(var(--color-neutral-l-100) var(--color-neutral-c) var(--color-neutral-h) / 0.08); + --shadow-l: 0 4px 16px oklch(var(--color-neutral-l-100) var(--color-neutral-c) var(--color-neutral-h) / 0.08), + 0 12px 32px oklch(var(--color-neutral-l-100) var(--color-neutral-c) var(--color-neutral-h) / 0.12), + 0 24px 48px oklch(var(--color-neutral-l-100) var(--color-neutral-c) var(--color-neutral-h) / 0.16), + 0 48px 80px oklch(var(--color-neutral-l-100) var(--color-neutral-c) var(--color-neutral-h) / 0.08); + --shadow-light-edge: inset 1px 1px 1px oklch(var(--color-neutral-l-1000) var(--color-neutral-c) var(--color-neutral-h) / 0.3); + --shadow-dark-edge: inset -1px -1px 1px oklch(var(--color-neutral-l-100) var(--color-neutral-c) var(--color-neutral-h) / 0.3); + + /* Background tokens */ + --background-glass: linear-gradient(135deg, transparent, var(--color-base-background-o-50)); + + /* Panel */ + --panel-threads-background: oklch(var(--color-neutral-l-200) var(--color-neutral-c) var(--color-neutral-h) / 0.99) +} \ No newline at end of file diff --git a/site/plugins/loop/frontend/src/styles/theme-default.css b/site/plugins/loop/frontend/src/styles/theme-default.css new file mode 100644 index 0000000..f8f39bc --- /dev/null +++ b/site/plugins/loop/frontend/src/styles/theme-default.css @@ -0,0 +1,23 @@ +kirby-loop { + /* Color Customization */ + --color-neutral-h: 900; + --color-neutral-c: 0; + --color-accent-h: 900; + --color-accent-c: 0.18; + --color-accent-l: 0.75; + --color-accent-dark-factor: 0.4; + --color-accent-light-factor: 1.2; + + /* Neutral lightness values */ + --color-neutral-l-0: 1; + --color-neutral-l-100: 0.95; + --color-neutral-l-200: 0.9; + --color-neutral-l-300: 0.7; + --color-neutral-l-400: 0.6; + --color-neutral-l-600: 0.4; + --color-neutral-l-500: 0.5; + --color-neutral-l-700: 0.3; + --color-neutral-l-800: 0.2; + --color-neutral-l-900: 0.1; + --color-neutral-l-1000: 0; +} \ No newline at end of file diff --git a/site/plugins/loop/frontend/src/styles/variables.css b/site/plugins/loop/frontend/src/styles/variables.css new file mode 100644 index 0000000..19d41d1 --- /dev/null +++ b/site/plugins/loop/frontend/src/styles/variables.css @@ -0,0 +1,421 @@ +@import "./theme-default.css"; +@import "./theme-dark.css"; + +kirby-loop { + /* Colors */ + --color-base: var(--color-neutral-900); + --color-base-background: var(--color-neutral-0); + + --color-base-background-o-5: oklch(var(--color-neutral-l-0) var(--color-neutral-c) var(--color-neutral-h) / 0.05); + --color-base-background-o-10: oklch(var(--color-neutral-l-0) var(--color-neutral-c) var(--color-neutral-h) / 0.1); + --color-base-background-o-20: oklch(var(--color-neutral-l-0) var(--color-neutral-c) var(--color-neutral-h) / 0.2); + --color-base-background-o-50: oklch(var(--color-neutral-l-0) var(--color-neutral-c) var(--color-neutral-h) / 0.5); + --color-base-background-o-60: oklch(var(--color-neutral-l-0) var(--color-neutral-c) var(--color-neutral-h) / 0.6); + --color-base-background-o-75: oklch(var(--color-neutral-l-0) var(--color-neutral-c) var(--color-neutral-h) / 0.75); + --color-base-background-o-95: oklch(var(--color-neutral-l-0) var(--color-neutral-c) var(--color-neutral-h) / 0.95); + + --color-accent-light: oklch(calc(var(--color-accent-l) * var(--color-accent-light-factor)) var(--color-accent-c) var(--color-accent-h)); + --color-accent: oklch(var(--color-accent-l) var(--color-accent-c) var(--color-accent-h)); + --color-accent-dark: oklch(calc(var(--color-accent-l) * var(--color-accent-dark-factor)) var(--color-accent-c) var(--color-accent-h)); + + --color-neutral-0: oklch(var(--color-neutral-l-0) var(--color-neutral-c) var(--color-neutral-h)); + --color-neutral-100: oklch(var(--color-neutral-l-100) var(--color-neutral-c) var(--color-neutral-h)); + --color-neutral-200: oklch(var(--color-neutral-l-200) var(--color-neutral-c) var(--color-neutral-h)); + --color-neutral-300: oklch(var(--color-neutral-l-300) var(--color-neutral-c) var(--color-neutral-h)); + --color-neutral-400: oklch(var(--color-neutral-l-400) var(--color-neutral-c) var(--color-neutral-h)); + --color-neutral-500: oklch(var(--color-neutral-l-500) var(--color-neutral-c) var(--color-neutral-h)); + --color-neutral-600: oklch(var(--color-neutral-l-600) var(--color-neutral-c) var(--color-neutral-h)); + --color-neutral-700: oklch(var(--color-neutral-l-700) var(--color-neutral-c) var(--color-neutral-h)); + --color-neutral-800: oklch(var(--color-neutral-l-800) var(--color-neutral-c) var(--color-neutral-h)); + --color-neutral-900: oklch(var(--color-neutral-l-900) var(--color-neutral-c) var(--color-neutral-h)); + --color-neutral-1000: oklch(var(--color-neutral-l-1000) var(--color-neutral-c) var(--color-neutral-h)); + + --color-success: oklch(0.65 0.15 150); + --color-warning: oklch(0.75 0.15 80); + --color-error: oklch(0.65 0.18 25); + --color-info: oklch(0.65 0.15 220); + + --font-family: -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + Helvetica, + Arial, + sans-serif, + "Apple Color Emoji", + "Segoe UI Emoji", + "Segoe UI Symbol", + sans-serif; + + --line-height: 1.4; + + --font-weight-light: 300; + --font-weight-normal: 400; + --font-weight-medium: 550; + --font-weight-bold: 700; + + --font-size-3: clamp(1.9531rem, 1.4262rem + 1.7565vw, 3.5339rem); + --font-size-4: clamp(1.5625rem, 1.2503rem + 1.0408vw, 2.4992rem); + --font-size-5: clamp(1.25rem, 1.0775rem + 0.575vw, 1.7675rem); + --font-size-6: clamp(1rem, 0.9167rem + 0.2778vw, 1.25rem); + --font-size-7: clamp(0.8rem, 0.772rem + 0.0934vw, 0.884rem); + --font-size-8: clamp(0.6252rem, 0.6449rem + -0.0165vw, 0.64rem); + + --border-radius-s: 0.125rem; + --border-radius: 0.25rem; + --border-radius-rounded: 4096px; + + --space-2xs: clamp(0.25rem, 0.2292rem + 0.0694vw, 0.3125rem); + --space-xs: clamp(0.5rem, 0.4583rem + 0.1389vw, 0.625rem); + --space-s: clamp(1rem, 0.9167rem + 0.2778vw, 1.25rem); + --space-m: clamp(1.5rem, 1.375rem + 0.4167vw, 1.875rem); + --space-l: clamp(2rem, 1.8333rem + 0.5556vw, 2.5rem); + --space-2xs-xs: clamp(0.25rem, 0.125rem + 0.4167vw, 0.625rem); + --space-xs-s: clamp(0.5rem, 0.25rem + 0.8333vw, 1.25rem); + --space-s-m: clamp(1rem, 0.7083rem + 0.9722vw, 1.875rem); + --space-m-l: clamp(1.5rem, 1.1667rem + 1.1111vw, 2.5rem); + --space-s-l: clamp(1rem, 0.5rem + 1.6667vw, 2.5rem); + + /* Shadow tokens */ + --shadow-s: 0 0.1em 0.25em oklch(var(--color-neutral-l-900) var(--color-neutral-c) var(--color-neutral-h) / 0.1); + --shadow-m: 0 2px 8px oklch(var(--color-neutral-l-900) var(--color-neutral-c) var(--color-neutral-h) / 0.08), + 0 8px 16px oklch(var(--color-neutral-l-900) var(--color-neutral-c) var(--color-neutral-h) / 0.12), + 0 16px 24px oklch(var(--color-neutral-l-900) var(--color-neutral-c) var(--color-neutral-h) / 0.08); + --shadow-l: 0 4px 16px oklch(var(--color-neutral-l-900) var(--color-neutral-c) var(--color-neutral-h) / 0.08), + 0 12px 32px oklch(var(--color-neutral-l-900) var(--color-neutral-c) var(--color-neutral-h) / 0.12), + 0 24px 48px oklch(var(--color-neutral-l-900) var(--color-neutral-c) var(--color-neutral-h) / 0.16), + 0 48px 80px oklch(var(--color-neutral-l-900) var(--color-neutral-c) var(--color-neutral-h) / 0.08); + --shadow-light-edge: inset 1px 1px 1px oklch(var(--color-neutral-l-0) var(--color-neutral-c) var(--color-neutral-h) / 0.3); + --shadow-dark-edge: inset 0 -1px 1px oklch(var(--color-neutral-l-900) var(--color-neutral-c) var(--color-neutral-h) / 0.3); + + /* Backdrop tokens */ + --backdrop-blur: blur(6px); + --backdrop-glass: var(--backdrop-blur) saturate(1.4) brightness(1.2); + + /* Background tokens */ + --background-glass: linear-gradient(135deg, transparent, var(--color-base-background-o-95)); + --background-glass-frosted: linear-gradient(0deg, var(--color-base-background-o-75) 0%, var(--color-base-background-o-95) 50%); + + /* Opacity tokens */ + --opacity-subtle: 0.5; + --opacity-medium: 0.7; + --opacity-strong: 0.9; + + /* Outline tokens */ + --outline-color: var(--color-accent); + --outline-offset: 0.25rem; + + /* Transition tokens */ + --transition-duration: 0.2s; + --transition-duration-jump: 0.4s; + --transition-easing-jump: cubic-bezier(0.44, 1.2, 0.64, 1); + --transition-easing: cubic-bezier(0, 0, 0.2, 1); + + /* Z-index tokens */ + --z-loop-marker: 9998; + --z-loop-panel: 9999; + --z-loop-dialog: 10000; + + /* Author */ + --author-avatar-color: var(--color-neutral-600); + --author-avatar-background-color: var(--color-neutral-100); + --author-avatar-size: 2.5rem; + --author-avatar-border-radius: var(--border-radius-rounded); + --author-avatar-font-size: var(--font-size-6); + + /* Button */ + --button-background: transparent; + --button-color: var(--color-neutral-600); + --button-border-radius: var(--border-radius); + --button-padding: 0 var(--space-xs); + --button-gap: var(--space-2xs); + --button-font-size: var(--font-size-7); + --button-font-weight: var(--font-weight-medium); + --button-height: 2.25rem; + --button-transition: var(--transition-duration) var(--transition-easing); + --button-outline-color: var(--outline-color); + --button-outline-offset: var(--outline-offset); + + --button-hover-color: var(--color-neutral-900); + --button-hover-background: var(--color-neutral-200); + + --button-header-background: transparent; + --button-header-height: 3rem; + --button-header-padding: 0 var(--space-s); + --button-header-hover-background: var(--color-base-background-o-95); + --button-header-blend-mode: multiply; + + --button-panel-background: transparent; + --button-panel-padding: 0 calc(var(--space-s) * 0.4); + + --button-solid-background: var(--color-neutral-100); + --button-solid-hover-color: var(--color-neutral-900); + --button-solid-hover-background: var(--color-neutral-200); + + --button-small-height: 1.5rem; + --button-small-font-size: var(--font-size-7); + + --button-icon-background: var(--color-neutral-0); + --button-icon-color: var(--color-neutral-500); + --button-icon-height: 3rem; + --button-icon-shadow: var(--shadow-s); + --button-icon-border-radius: var(--border-radius-rounded); + --button-icon-font-size: var(--font-size-6); + --button-icon-hover-background: var(--color-neutral-200); + --button-icon-hover-color: var(--color-neutral-900); + + --button-marker-background: var(--color-accent); + --button-marker-color: var(--color-accent-dark); + --button-marker-font-weight: var(--font-weight-bold); + --button-marker-border-radius: var(--border-radius-rounded); + --button-marker-highlighted-background: var(--color-accent); + --button-marker-highlighted-color: var(--color-accent-dark); + + --button-filter-background: transparent; + --button-filter-color: var(--color-neutral-500); + --button-filter-height: 1.75rem; + --button-filter-font-size: var(--font-size-8); + --button-filter-padding: 0 var(--space-xs); + --button-filter-border-radius: calc(var(--border-radius) - 2px); + --button-filter-hover-color: var(--color-neutral-700); + --button-filter-hover-background: var(--color-neutral-200); + --button-filter-active-background: var(--color-base-background); + --button-filter-active-color: var(--color-base); + --button-filter-active-font-weight: var(--font-weight-medium); + + --button-menu-item-background: transparent; + --button-menu-item-color: var(--color-neutral-700); + --button-menu-item-padding: var(--space-2xs) var(--space-xs); + --button-menu-item-border-radius: calc(var(--border-radius) - 2px); + --button-menu-item-font-size: var(--font-size-7); + --button-menu-item-gap: var(--space-2xs); + --button-menu-item-hover-background: var(--color-neutral-100); + --button-menu-item-hover-color: var(--color-neutral-900); + --button-menu-item-active-background: var(--color-accent-light); + --button-menu-item-active-color: var(--color-accent-dark); + --button-menu-item-active-font-weight: var(--font-weight-medium); + + --button-active-background: var(--color-accent); + --button-active-color: var(--color-accent-dark); + + --button-disabled-opacity: var(--opacity-subtle); + --button-disabled-hover-color: var(--color-neutral-700); + --button-disabled-hover-background: var(--color-neutral-100); + + /* Comment */ + --comment-avatar-size: 2.5rem; + --comment-marker-background: var(--color-neutral-200); + --comment-marker-color: var(--color-neutral-800); + --comment-line-background: var(--color-neutral-100); + --comment-line-width: 0.1rem; + --comment-line-offset: calc(var(--space-s) + var(--comment-avatar-size) / 2); + + --comment-header-font-size: var(--font-size-7); + --comment-header-padding: var(--space-s); + --comment-header-gap: var(--space-s); + --comment-header-outline-color: var(--outline-color); + --comment-header-outline-offset: -2px; + --comment-header-border-radius: var(--border-radius); + + --comment-content-padding: var(--space-xs); + --comment-content-background: var(--color-neutral-100); + --comment-content-background-dark: var(--color-neutral-200); + --comment-content-border-radius: var(--border-radius); + + --comment-author-gap: var(--space-xs); + --comment-author-margin-bottom: var(--space-2xs); + --comment-timestamp-font-size: var(--font-size-8); + --comment-timestamp-color: var(--color-neutral-300); + + --comment-replies-padding: 0 var(--space-s); + --comment-replies-gap: var(--space-s); + + --comment-footer-padding: var(--space-s); + --comment-footer-gap: var(--space-s); + --comment-buttons-gap: var(--space-xs); + + /* CommentDialog */ + --comment-dialog-position: absolute; + --comment-dialog-max-width: 300px; + --comment-dialog-border-radius: var(--border-radius); + --comment-dialog-shadow: var(--shadow-s); + --comment-dialog-backdrop-background: transparent; + --comment-dialog-textarea-font-size: var(--font-size-6); + + /* CommentForm */ + --comment-form-background: var(--color-base-background); + --comment-form-color: var(--color-base); + --comment-form-border: 1px solid var(--color-neutral-200); + --comment-form-border-radius: var(--border-radius); + + --comment-form-textarea-height: 15ch; + --comment-form-textarea-padding: var(--space-s); + --comment-form-textarea-background: var(--color-base-background); + --comment-form-textarea-font-family: var(--font-family); + --comment-form-textarea-font-size: var(--font-size-7); + + --comment-form-footer-padding: var(--space-xs); + --comment-form-footer-gap: var(--space-xs); + + --comment-form-hint-font-size: var(--font-size-8); + --comment-form-hint-color: var(--color-neutral-300); + --comment-form-hint-padding: 0 var(--space-xs) var(--space-xs) var(--space-xs); + + /* ContextMenu */ + --context-menu-container-bottom: var(--space-s); + --context-menu-container-right: var(--space-s); + --context-menu-container-z-index: 10; + + --context-menu-trigger-size: 2.5rem; + --context-menu-trigger-border-radius: var(--border-radius-rounded); + + --context-menu-background: var(--color-base-background); + --context-menu-border-radius: var(--border-radius); + --context-menu-shadow: var(--shadow-s); + --context-menu-padding: var(--space-xs); + --context-menu-min-width: 12rem; + --context-menu-backdrop-background: transparent; + + --context-menu-section-gap: var(--space-2xs); + + --context-menu-title-font-size: var(--font-size-8); + --context-menu-title-font-weight: var(--font-weight-medium); + --context-menu-title-color: var(--color-neutral-500); + --context-menu-title-margin-bottom: var(--space-2xs); + --context-menu-title-letter-spacing: 0.05em; + + --context-menu-filter-gap: 1px; + + --context-menu-filter-dot-size: 0.5em; + --context-menu-filter-dot-border-radius: 50%; + --context-menu-filter-dot-margin-right: var(--space-2xs); + --context-menu-filter-dot-open-background: var(--color-accent); + --context-menu-filter-dot-resolved-background: var(--color-neutral-400); + + /* Header */ + --header-position: fixed; + --header-top: var(--space-xs); + --header-transform: translateX(-50%); + --header-color: var(--color-base); + --header-border-radius: var(--border-radius-rounded); + --header-z-index: 9999; + --header-bottom-position: var(--space-xs); + --header-backdrop-filter: var(--backdrop-glass); + --header-background: var(--background-glass); + + --header-count-size: 2rem; + --header-count-border-radius: var(--border-radius-rounded); + --header-count-backdrop-filter: var(--backdrop-glass); + --header-count-background: var(--background-glass); + + /* Marker */ + --marker-size: 2rem; + --marker-position: absolute; + --marker-z-index: var(--z-loop-marker); + --marker-transform: translate(-50%, -50%); + --marker-border-radius: var(--border-radius-rounded); + + /* Panel */ + --panel-width: 380px; + --panel-mobile-width: 85svw; + --panel-position: fixed; + --panel-right: var(--space-xs); + --panel-top: var(--space-xs); + --panel-height: calc(100svh - var(--space-xs) * 2); + --panel-transform-closed: translateX(calc(100% + var(--space-xs))); + --panel-transform-open: translateX(0); + --panel-color: var(--color-base); + --panel-border-radius: var(--border-radius); + --panel-border-top-left-radius: 0; + --panel-transition: var(--transition-duration-jump) var(--transition-easing-jump); + --panel-z-index: var(--z-loop-panel); + --panel-shadow: var(--shadow-m); + + --panel-header-transform-closed: translate(-95%); + --panel-header-transform-open: translate(calc(-100% + 1px)); + --panel-header-transform-hover: translate(calc(-100% + 1px)); + --panel-header-border-radius: var(--border-radius-rounded); + --panel-header-gap: var(--space-xs); + --panel-header-backdrop-filter: var(--backdrop-glass); + --panel-header-background: var(--background-glass); + + --panel-threads-background: var(--color-base-background-o-95); + --panel-threads-backdrop: var(--backdrop-blur); + --panel-threads-border-radius: var(--border-radius); + --panel-threads-border-top-left-radius: 0; + --panel-threads-padding: 0 0 var(--space-s) 0; + --panel-threads-item-margin: var(--space-s); + --panel-threads-scrollbar-width: thin; + + --panel-no-threads-padding: var(--space-s) var(--space-l); + --panel-no-threads-font-size: var(--font-size-6); + --panel-no-threads-color: var(--color-neutral-300); + + /* Reply */ + --reply-gap: var(--space-s); + --reply-content-padding: var(--space-xs); + --reply-content-background: var(--color-neutral-100); + --reply-content-background-dark: var(--color-neutral-200); + --reply-content-border-radius: var(--border-radius); + + --reply-header-gap: var(--space-xs); + --reply-header-margin-bottom: var(--space-2xs); + --reply-timestamp-font-size: var(--font-size-8); + --reply-timestamp-color: var(--color-neutral-300); + + /* WelcomeDialog */ + --welcome-dialog-background: var(--background-glass-frosted); + --welcome-dialog-backdrop-filter: var(--backdrop-glass); + --welcome-dialog-border: 0px; + --welcome-dialog-border-radius: var(--border-radius); + --welcome-dialog-shadow: var(--shadow-l), var(--shadow-light-edge), + var(--shadow-dark-edge); + --welcome-dialog-max-width: 500px; + + --welcome-dialog-backdrop-background: var(--color-base-background-o-10); + --welcome-dialog-backdrop-backdrop-filter: none; + + --welcome-dialog-form-padding: var(--space-l); + + --welcome-dialog-title-margin: 0 0 var(--space-s) 0; + --welcome-dialog-title-font-size: var(--font-size-4); + --welcome-dialog-title-color: var(--color-base); + --welcome-dialog-title-font-weight: var(--font-weight-bold); + + --welcome-dialog-text-margin: 0 0 var(--space-m) 0; + --welcome-dialog-text-font-size: var(--font-size-6); + --welcome-dialog-text-color: var(--color-neutral-600); + --welcome-dialog-text-line-height: var(--line-height); + + --welcome-dialog-name-section-margin: var(--space-l); + + --welcome-dialog-input-border: 1px solid var(--color-neutral-300); + --welcome-dialog-input-border-radius: var(--border-radius-s); + --welcome-dialog-input-padding: var(--space-xs); + --welcome-dialog-input-font-family: var(--font-family); + --welcome-dialog-input-font-size: var(--font-size-6); + --welcome-dialog-input-color: var(--color-base); + --welcome-dialog-input-background: var(--color-base-background); + --welcome-dialog-input-outline-color: var(--outline-color); + --welcome-dialog-input-outline-offset: var(--outline-offset); + + --welcome-dialog-footer-gap: var(--space-xs); + + /* Icon */ + --icon-size: 1em; +} + +/* Dark theme overrides */ +kirby-loop[data-theme="dark"] { + --color-neutral-l-0: 0; + --color-neutral-l-100: 0.1; + --color-neutral-l-200: 0.2; + --color-neutral-l-300: 0.3; + --color-neutral-l-400: 0.4; + --color-neutral-l-500: 0.5; + --color-neutral-l-600: 0.6; + --color-neutral-l-700: 0.7; + --color-neutral-l-800: 0.9; + --color-neutral-l-900: 0.95; + --color-neutral-l-1000: 1; +} diff --git a/site/plugins/loop/frontend/src/types.ts b/site/plugins/loop/frontend/src/types.ts new file mode 100644 index 0000000..0c726fa --- /dev/null +++ b/site/plugins/loop/frontend/src/types.ts @@ -0,0 +1,100 @@ +// TypeScript interfaces for loop + +export interface LoopProps { + position: 'top' | 'bottom'; + language?: string; + apibase?: string; + pageId: string; + authenticated?: 'true' | 'false'; + 'welcome-enabled'?: 'true' | 'false'; + 'welcome-headline'?: string; + 'welcome-text'?: string; + translations?: string; +} + +export interface Comment { + id: number; + author: string; + url: string; + page: string; + comment: string; + selector: string; + selectorOffsetX: number; + selectorOffsetY: number; + pagePositionX: number; + pagePositionY: number; + status: string; + timestamp: number; + lang: string; + replies: Reply[]; +} + +export interface Reply { + id?: number; + author: string; + comment: string; + parentId: number | null; + timestamp: number; +} + +export interface CommentPayload { + url: string; + comment: string; + selector: string; + selectorOffsetX: number; + selectorOffsetY: number; + pagePositionX: number; + pagePositionY: number; + parentId: number | null; + lang: string; + pageId: string; +} + +export interface ReplyPayload { + comment: string; + parentId: number | null; +} + +export interface MarkerPosition { + selector: string; + selectorOffsetX: number; + selectorOffsetY: number; + pagePositionX: number; + pagePositionY: number; +} + +export interface ApiResponse { + status: 'ok' | 'error'; + message?: string; + code?: string; + data?: T; +} + +export interface CommentsResponse extends ApiResponse { + comments: Comment[]; +} + +export interface CommentResponse extends ApiResponse { + comment: Comment; +} + +export interface ReplyResponse extends ApiResponse { + reply: Reply; +} + +// Store interfaces +export interface FormData { + text: string; + parentId: number | null; +} + +export interface UIState { + open: boolean; + sidebarOpen: boolean; +} + +export interface APIStore { + comments: Comment[]; + loading: boolean; + error: string | null; +} diff --git a/site/plugins/loop/frontend/src/vite-env.d.ts b/site/plugins/loop/frontend/src/vite-env.d.ts new file mode 100644 index 0000000..4078e74 --- /dev/null +++ b/site/plugins/loop/frontend/src/vite-env.d.ts @@ -0,0 +1,2 @@ +/// +/// diff --git a/site/plugins/loop/frontend/svelte.config.js b/site/plugins/loop/frontend/svelte.config.js new file mode 100644 index 0000000..bb11984 --- /dev/null +++ b/site/plugins/loop/frontend/svelte.config.js @@ -0,0 +1,10 @@ +import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; + +export default { + // Consult https://svelte.dev/docs#compile-time-svelte-preprocess + // for more information about preprocessors + preprocess: vitePreprocess(), + compilerOptions: { + customElement: true, + }, +}; diff --git a/site/plugins/loop/frontend/tsconfig.app.json b/site/plugins/loop/frontend/tsconfig.app.json new file mode 100644 index 0000000..55a2f9b --- /dev/null +++ b/site/plugins/loop/frontend/tsconfig.app.json @@ -0,0 +1,20 @@ +{ + "extends": "@tsconfig/svelte/tsconfig.json", + "compilerOptions": { + "target": "ESNext", + "useDefineForClassFields": true, + "module": "ESNext", + "resolveJsonModule": true, + /** + * Typecheck JS in `.svelte` and `.js` files by default. + * Disable checkJs if you'd like to use dynamic types in JS. + * Note that setting allowJs false does not prevent the use + * of JS in `.svelte` files. + */ + "allowJs": true, + "checkJs": true, + "isolatedModules": true, + "moduleDetection": "force" + }, + "include": ["src/**/*.ts", "src/**/*.js", "src/**/*.svelte"] +} diff --git a/site/plugins/loop/frontend/tsconfig.json b/site/plugins/loop/frontend/tsconfig.json new file mode 100644 index 0000000..1ffef60 --- /dev/null +++ b/site/plugins/loop/frontend/tsconfig.json @@ -0,0 +1,7 @@ +{ + "files": [], + "references": [ + { "path": "./tsconfig.app.json" }, + { "path": "./tsconfig.node.json" } + ] +} diff --git a/site/plugins/loop/frontend/tsconfig.node.json b/site/plugins/loop/frontend/tsconfig.node.json new file mode 100644 index 0000000..db0becc --- /dev/null +++ b/site/plugins/loop/frontend/tsconfig.node.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", + "target": "ES2022", + "lib": ["ES2023"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedSideEffectImports": true + }, + "include": ["vite.config.ts"] +} diff --git a/site/plugins/loop/frontend/vite.config.ts b/site/plugins/loop/frontend/vite.config.ts new file mode 100644 index 0000000..f7c36cd --- /dev/null +++ b/site/plugins/loop/frontend/vite.config.ts @@ -0,0 +1,69 @@ +/// + +import { defineConfig, loadEnv } from "vite"; +import { svelte } from "@sveltejs/vite-plugin-svelte"; +import { resolve, dirname } from "node:path"; +import { fileURLToPath } from "node:url"; +import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js"; +import { ViteEjsPlugin } from 'vite-plugin-ejs' +import { browserslistToTargets } from 'lightningcss'; +import browserslist from "browserslist" + +// Isomorphic dirname +const _dirname = + typeof __dirname !== "undefined" + ? __dirname + : dirname(fileURLToPath(import.meta.url)); + +// Config +export default defineConfig(({ mode }) => { + const env = loadEnv(mode, process.cwd()); + return { + base: env.VITE_DEMO_BASE, + compilerOptions: { + hmr: !process.env.VITEST && mode !== 'production', + }, + build: { + cssMinify: 'lightningcss', + minify: true, + lib: { + entry: resolve(_dirname, "src/main.ts"), + name: "Loop", + fileName: "loop", + formats: ["es"], + }, + outDir: "../assets", + }, + css: { + transformer: 'lightningcss', + lightningcss: { + drafts: { + customMedia: true + }, + targets: browserslistToTargets(browserslist(["last 2 versions", ">= 0.4%", "not dead", "Firefox ESR", "not op_mini all", "not and_uc > 0"])) + } + }, + define: { + APP_VERSION: JSON.stringify(process.env.npm_package_version), + }, + plugins: [ + svelte({ compilerOptions: { customElement: true } }), + cssInjectedByJsPlugin(), + ViteEjsPlugin((viteConfig) => ({ + // viteConfig is the current Vite resolved config + env: viteConfig.env, + })) + ], + test: { + globals: true, + environment: "jsdom", + }, + server: { + allowedHosts: ['kirby-loop.test'], + cors: { + // Allow ddev and .test domains + origin: /https?:\/\/([A-Za-z0-9\-\.]+)?(\.(ddev\.site|test))(?::\d+)?$/, + }, + } + } +}); diff --git a/site/plugins/loop/index.php b/site/plugins/loop/index.php new file mode 100644 index 0000000..5f34c32 --- /dev/null +++ b/site/plugins/loop/index.php @@ -0,0 +1,333 @@ + 'src/App.php', + 'moinframe\\loop\\Database' => 'src/Database.php', + 'moinframe\\loop\\Middleware' => 'src/Middleware.php', + 'moinframe\\loop\\Options' => 'src/Options.php', + 'moinframe\\loop\\Routes' => 'src/Routes.php', + 'moinframe\\loop\\Models\\Comment' => 'src/Models/Comment.php', + 'moinframe\\loop\\Models\\Reply' => 'src/Models/Reply.php', + 'moinframe\\loop\\Enums\\CommentStatus' => 'src/Enums/CommentStatus.php', +], __DIR__); + +Kirby::plugin('moinframe/loop', [ + 'translations' => [ + 'en' => [ + // General errors + 'moinframe.loop.csrf.invalid' => 'Invalid CSRF token', + 'moinframe.loop.field.required' => 'Missing required field: {field}', + + // Page errors + 'moinframe.loop.page.not.found' => 'Page with id {pageId} not found', + 'moinframe.loop.page.path.not.found' => 'Page not found: {path}', + + // Comment validation + 'moinframe.loop.comment.required' => 'Comment text is required', + 'moinframe.loop.comment.max.length' => 'Comment text must be less than 5000 characters', + 'moinframe.loop.comment.validation.failed' => 'Comment validation failed: {errors}', + 'moinframe.loop.comment.validation.error' => 'Comment validation failed: {errors}', + 'moinframe.loop.comment.creation.failed' => 'Comment creation failed: {error}', + 'moinframe.loop.comment.add.failed' => 'Failed to add comment: {error}', + + // Reply validation + 'moinframe.loop.reply.validation.failed' => 'Reply validation failed: {errors}', + 'moinframe.loop.reply.validation.error' => 'Reply validation failed: {errors}', + 'moinframe.loop.reply.creation.failed' => 'Reply creation failed: {error}', + 'moinframe.loop.reply.add.failed' => 'Failed to add reply: {error}', + 'moinframe.loop.reply.index.error' => 'Reply {index}: {error}', + + // Author validation + 'moinframe.loop.author.required' => 'Author is required', + 'moinframe.loop.author.max.length' => 'Author name must be less than 255 characters', + + // Page field validation + 'moinframe.loop.page.required' => 'Page identifier is required', + 'moinframe.loop.page.max.length' => 'Page identifier must be less than 255 characters', + + // Selector validation + 'moinframe.loop.selector.required' => 'Element selector is required', + 'moinframe.loop.selector.max.length' => 'Element selector must be less than 1000 characters', + 'moinframe.loop.selector.offset.x.min' => 'Selector offset X must be non-negative', + 'moinframe.loop.selector.offset.y.min' => 'Selector offset Y must be non-negative', + + // URL validation + 'moinframe.loop.url.format.invalid' => 'URL format is invalid', + 'moinframe.loop.url.max.length' => 'URL must be less than 2048 characters', + + // Position validation + 'moinframe.loop.page.position.x.min' => 'Page position X must be non-negative', + 'moinframe.loop.page.position.y.min' => 'Page position Y must be non-negative', + + // Other field validation + 'moinframe.loop.timestamp.min' => 'Timestamp must be non-negative', + 'moinframe.loop.parent.id.min' => 'Parent ID must be non-negative', + 'moinframe.loop.parent.id.required' => 'Valid parent comment ID is required', + + // Welcome dialog + 'moinframe.loop.welcome.headline' => 'Welcome! πŸ‘‹', + 'moinframe.loop.welcome.text' => 'We\'re excited to hear your thoughts! This page has an interactive feedback system that lets you comment directly on any element. Simply use the action bar at the {position} of your screen to switch between browsing and commenting mode. When in commenting mode, click anywhere on the page to leave your feedback.', + + // Frontend UI translations + 'moinframe.loop.ui.comment.placeholder' => 'Enter your comment...', + 'moinframe.loop.ui.comment.submit' => 'Submit', + 'moinframe.loop.ui.comment.cancel' => 'Cancel', + 'moinframe.loop.ui.comment.keyboardHint' => '⌘+Enter or Ctrl+Enter to submit', + 'moinframe.loop.ui.comment.replies.aria.label' => 'Show replies', + 'moinframe.loop.ui.reply.placeholder' => 'Write a reply...', + 'moinframe.loop.ui.reply.submit' => 'Reply', + 'moinframe.loop.ui.panel.no.comments' => 'No comments. Add your first comment to get started.', + 'moinframe.loop.ui.header.browse.mode' => 'Browse', + 'moinframe.loop.ui.header.comment.mode' => 'Comment', + 'moinframe.loop.ui.header.aria.count' => 'unresolved comments', + 'moinframe.loop.ui.welcome.guest.name.placeholder' => 'Enter your name', + 'moinframe.loop.ui.welcome.continue' => 'Continue', + 'moinframe.loop.ui.welcome.dismiss' => 'Dismiss', + 'moinframe.loop.ui.header.position.top' => 'top', + 'moinframe.loop.ui.header.position.bottom' => 'bottom', + 'moinframe.loop.ui.comment.mark.solved' => 'Resolve', + 'moinframe.loop.ui.comment.mark.unsolved' => 'Reopen', + 'moinframe.loop.ui.comment.maker.aria.label' => 'Jump to marker', + 'moinframe.loop.ui.comment.summary.aria.label' => 'Comment by', + 'moinframe.loop.ui.reply.aria.label' => 'Reply by', + 'moinframe.loop.ui.panel.open' => 'Open comments', + 'moinframe.loop.ui.panel.show.resolved' => 'Show Resolved Only', + 'moinframe.loop.ui.panel.show.all' => 'Show All Comments', + 'moinframe.loop.ui.panel.filter.open' => 'Open', + 'moinframe.loop.ui.panel.filter.resolved' => 'Resolved', + 'moinframe.loop.ui.panel.filter.open.active' => 'Show open comments (currently selected)', + 'moinframe.loop.ui.panel.filter.open.inactive' => 'Show open comments', + 'moinframe.loop.ui.panel.filter.resolved.active' => 'Show resolved comments (currently selected)', + 'moinframe.loop.ui.panel.filter.resolved.inactive' => 'Show resolved comments', + 'moinframe.loop.ui.panel.menu.open' => 'Open menu', + 'moinframe.loop.ui.panel.menu.filter.title' => 'Show Comments', + 'moinframe.loop.ui.panel.no.resolved' => 'No resolved comments yet.', + + // Time formatting + 'moinframe.loop.ui.time.just_now' => 'just now', + 'moinframe.loop.ui.time.minute_ago' => 'a minute ago', + 'moinframe.loop.ui.time.minutes_ago' => '{count} minutes ago', + 'moinframe.loop.ui.time.hour_ago' => 'an hour ago', + 'moinframe.loop.ui.time.hours_ago' => '{count} hours ago', + 'moinframe.loop.ui.time.yesterday' => 'yesterday', + 'moinframe.loop.ui.time.days_ago' => '{count} days ago' + ], + 'de' => [ + // General errors + 'moinframe.loop.csrf.invalid' => 'UngΓΌltiges CSRF-Token', + 'moinframe.loop.field.required' => 'Pflichtfeld fehlt: {field}', + + // Page errors + 'moinframe.loop.page.not.found' => 'Seite mit ID {pageId} nicht gefunden', + 'moinframe.loop.page.path.not.found' => 'Seite nicht gefunden: {path}', + + // Comment validation + 'moinframe.loop.comment.required' => 'Kommentartext ist erforderlich', + 'moinframe.loop.comment.max.length' => 'Kommentartext darf maximal 5000 Zeichen lang sein', + 'moinframe.loop.comment.validation.failed' => 'Kommentar-Validierung fehlgeschlagen: {errors}', + 'moinframe.loop.comment.validation.error' => 'Kommentar-Validierung fehlgeschlagen: {errors}', + 'moinframe.loop.comment.creation.failed' => 'Kommentar-Erstellung fehlgeschlagen: {error}', + 'moinframe.loop.comment.add.failed' => 'Kommentar konnte nicht hinzugefΓΌgt werden: {error}', + + // Reply validation + 'moinframe.loop.reply.validation.failed' => 'Antwort-Validierung fehlgeschlagen: {errors}', + 'moinframe.loop.reply.validation.error' => 'Antwort-Validierung fehlgeschlagen: {errors}', + 'moinframe.loop.reply.creation.failed' => 'Antwort-Erstellung fehlgeschlagen: {error}', + 'moinframe.loop.reply.add.failed' => 'Antwort konnte nicht hinzugefΓΌgt werden: {error}', + 'moinframe.loop.reply.index.error' => 'Antwort {index}: {error}', + + // Author validation + 'moinframe.loop.author.required' => 'Autor ist erforderlich', + 'moinframe.loop.author.max.length' => 'Autorname darf maximal 255 Zeichen lang sein', + + // Page field validation + 'moinframe.loop.page.required' => 'Seiten-Identifikator ist erforderlich', + 'moinframe.loop.page.max.length' => 'Seiten-Identifikator darf maximal 255 Zeichen lang sein', + + // Selector validation + 'moinframe.loop.selector.required' => 'Element-Selektor ist erforderlich', + 'moinframe.loop.selector.max.length' => 'Element-Selektor darf maximal 1000 Zeichen lang sein', + 'moinframe.loop.selector.offset.x.min' => 'Selektor-Offset X muss nicht-negativ sein', + 'moinframe.loop.selector.offset.y.min' => 'Selektor-Offset Y muss nicht-negativ sein', + + // URL validation + 'moinframe.loop.url.format.invalid' => 'URL-Format ist ungΓΌltig', + 'moinframe.loop.url.max.length' => 'URL darf maximal 2048 Zeichen lang sein', + + // Position validation + 'moinframe.loop.page.position.x.min' => 'Seitenposition X muss nicht-negativ sein', + 'moinframe.loop.page.position.y.min' => 'Seitenposition Y muss nicht-negativ sein', + + // Other field validation + 'moinframe.loop.timestamp.min' => 'Zeitstempel muss nicht-negativ sein', + 'moinframe.loop.parent.id.min' => 'Eltern-ID muss nicht-negativ sein', + 'moinframe.loop.parent.id.required' => 'GΓΌltige Eltern-Kommentar-ID ist erforderlich', + + // Welcome dialog + 'moinframe.loop.welcome.headline' => 'Willkommen! πŸ‘‹', + 'moinframe.loop.welcome.text' => 'Wir freuen uns auf Ihr Feedback! Diese Seite verfΓΌgt ΓΌber ein interaktives Feedback-System, mit dem Sie direkt zu jedem Element kommentieren kΓΆnnen. Verwenden Sie einfach die Aktionsleiste {position} an ihrem Bildschirm, um zwischen Browse- und Kommentar-Modus zu wechseln. Im Kommentar-Modus klicken Sie einfach irgendwo auf die Seite, um Ihr Feedback zu hinterlassen.', + + // Frontend UI translations + 'moinframe.loop.ui.comment.placeholder' => 'Ihr Kommentar...', + 'moinframe.loop.ui.comment.submit' => 'Senden', + 'moinframe.loop.ui.comment.cancel' => 'Abbrechen', + 'moinframe.loop.ui.comment.keyboardHint' => '⌘+Enter oder Strg+Enter zum Senden', + 'moinframe.loop.ui.comment.replies.aria.label' => 'Antworten anzeigen', + 'moinframe.loop.ui.comment.maker.aria.label' => 'Springe zu Marker', + 'moinframe.loop.ui.comment.summary.aria.label' => 'Kommentar von', + 'moinframe.loop.ui.reply.aria.label' => 'Antwort von', + 'moinframe.loop.ui.reply.placeholder' => 'Antwort schreiben...', + 'moinframe.loop.ui.reply.submit' => 'Antworten', + 'moinframe.loop.ui.panel.no.comments' => 'Keine Kommentare. FΓΌgen Sie Ihren ersten Kommentar hinzu, um zu beginnen.', + 'moinframe.loop.ui.panel.open' => 'Kommentare ΓΆffnen', + 'moinframe.loop.ui.header.browse.mode' => 'Navigieren', + 'moinframe.loop.ui.header.comment.mode' => 'Kommentieren', + 'moinframe.loop.ui.header.aria.count' => 'offene Kommentare', + 'moinframe.loop.ui.welcome.guest.name.placeholder' => 'Geben Sie Ihren Namen ein', + 'moinframe.loop.ui.welcome.continue' => 'Weiter', + 'moinframe.loop.ui.welcome.dismiss' => 'Schließen', + 'moinframe.loop.ui.header.position.top' => 'oben', + 'moinframe.loop.ui.header.position.bottom' => 'unten', + 'moinframe.loop.ui.comment.mark.solved' => 'Erledigt', + 'moinframe.loop.ui.comment.mark.unsolved' => 'Wieder ΓΆffnen', + 'moinframe.loop.ui.panel.show.resolved' => 'Nur erledigte anzeigen', + 'moinframe.loop.ui.panel.show.all' => 'Alle Kommentare anzeigen', + 'moinframe.loop.ui.panel.filter.open' => 'Offen', + 'moinframe.loop.ui.panel.filter.resolved' => 'Erledigt', + 'moinframe.loop.ui.panel.filter.open.active' => 'Offene Kommentare anzeigen (aktuell ausgewΓ€hlt)', + 'moinframe.loop.ui.panel.filter.open.inactive' => 'Offene Kommentare anzeigen', + 'moinframe.loop.ui.panel.filter.resolved.active' => 'Erledigte Kommentare anzeigen (aktuell ausgewΓ€hlt)', + 'moinframe.loop.ui.panel.filter.resolved.inactive' => 'Erledigte Kommentare anzeigen', + 'moinframe.loop.ui.panel.menu.open' => 'MenΓΌ ΓΆffnen', + 'moinframe.loop.ui.panel.menu.filter.title' => 'Kommentare anzeigen', + 'moinframe.loop.ui.panel.no.resolved' => 'Noch keine erledigten Kommentare.', + + // Time formatting + 'moinframe.loop.ui.time.just_now' => 'gerade eben', + 'moinframe.loop.ui.time.minute_ago' => 'vor einer Minute', + 'moinframe.loop.ui.time.minutes_ago' => 'vor {count} Minuten', + 'moinframe.loop.ui.time.hour_ago' => 'vor einer Stunde', + 'moinframe.loop.ui.time.hours_ago' => 'vor {count} Stunden', + 'moinframe.loop.ui.time.yesterday' => 'gestern', + 'moinframe.loop.ui.time.days_ago' => 'vor {count} Tagen' + ], + 'fr' => [ + // General errors + 'moinframe.loop.csrf.invalid' => 'Jeton CSRF invalide', + 'moinframe.loop.field.required' => 'Champ obligatoire manquant : {field}', + + // Page errors + 'moinframe.loop.page.not.found' => 'Page avec l\'id {pageId} introuvable', + 'moinframe.loop.page.path.not.found' => 'Page introuvable : {path}', + + // Comment validation + 'moinframe.loop.comment.required' => 'Le texte du commentaire est requis', + 'moinframe.loop.comment.max.length' => 'Le commentaire ne doit pas dΓ©passer 5000 caractΓ¨res', + 'moinframe.loop.comment.validation.failed' => 'Validation du commentaire Γ©chouΓ©e : {errors}', + 'moinframe.loop.comment.validation.error' => 'Validation du commentaire Γ©chouΓ©e : {errors}', + 'moinframe.loop.comment.creation.failed' => 'CrΓ©ation du commentaire Γ©chouΓ©e : {error}', + 'moinframe.loop.comment.add.failed' => 'Impossible d\'ajouter le commentaire : {error}', + + // Reply validation + 'moinframe.loop.reply.validation.failed' => 'Validation de la rΓ©ponse Γ©chouΓ©e : {errors}', + 'moinframe.loop.reply.validation.error' => 'Validation de la rΓ©ponse Γ©chouΓ©e : {errors}', + 'moinframe.loop.reply.creation.failed' => 'CrΓ©ation de la rΓ©ponse Γ©chouΓ©e : {error}', + 'moinframe.loop.reply.add.failed' => 'Impossible d\'ajouter la rΓ©ponse : {error}', + 'moinframe.loop.reply.index.error' => 'RΓ©ponse {index} : {error}', + + // Author validation + 'moinframe.loop.author.required' => 'L\'auteur est requis', + 'moinframe.loop.author.max.length' => 'Le nom de l\'auteur ne doit pas dΓ©passer 255 caractΓ¨res', + + // Page field validation + 'moinframe.loop.page.required' => 'L\'identifiant de page est requis', + 'moinframe.loop.page.max.length' => 'L\'identifiant de page ne doit pas dΓ©passer 255 caractΓ¨res', + + // Selector validation + 'moinframe.loop.selector.required' => 'Le sΓ©lecteur d\'Γ©lΓ©ment est requis', + 'moinframe.loop.selector.max.length' => 'Le sΓ©lecteur d\'Γ©lΓ©ment ne doit pas dΓ©passer 1000 caractΓ¨res', + 'moinframe.loop.selector.offset.x.min' => 'L\'offset X du sΓ©lecteur doit Γͺtre positif', + 'moinframe.loop.selector.offset.y.min' => 'L\'offset Y du sΓ©lecteur doit Γͺtre positif', + + // URL validation + 'moinframe.loop.url.format.invalid' => 'Format d\'URL invalide', + 'moinframe.loop.url.max.length' => 'L\'URL ne doit pas dΓ©passer 2048 caractΓ¨res', + + // Position validation + 'moinframe.loop.page.position.x.min' => 'La position X doit Γͺtre positive', + 'moinframe.loop.page.position.y.min' => 'La position Y doit Γͺtre positive', + + // Other field validation + 'moinframe.loop.timestamp.min' => 'L\'horodatage doit Γͺtre positif', + 'moinframe.loop.parent.id.min' => 'L\'ID parent doit Γͺtre positif', + 'moinframe.loop.parent.id.required' => 'Un ID de commentaire parent valide est requis', + + // Welcome dialog + 'moinframe.loop.welcome.headline' => 'NouveautΓ©', + 'moinframe.loop.welcome.text' => 'Il est dΓ©sormais possible de commenter directement n\'importe quel Γ©lΓ©ment. Utilisez la barre d\'action en {position} de votre Γ©cran pour basculer entre le mode navigation et le mode commentaire. En mode commentaire, cliquez n\'importe oΓΉ sur la page pour laisser votre message.', + + // Frontend UI translations + 'moinframe.loop.ui.comment.placeholder' => 'Votre commentaire...', + 'moinframe.loop.ui.comment.submit' => 'Envoyer', + 'moinframe.loop.ui.comment.cancel' => 'Annuler', + 'moinframe.loop.ui.comment.keyboardHint' => '⌘+EntrΓ©e ou Ctrl+EntrΓ©e pour envoyer', + 'moinframe.loop.ui.comment.replies.aria.label' => 'Afficher les rΓ©ponses', + 'moinframe.loop.ui.comment.maker.aria.label' => 'Aller au marqueur', + 'moinframe.loop.ui.comment.summary.aria.label' => 'Commentaire de', + 'moinframe.loop.ui.reply.aria.label' => 'RΓ©ponse de', + 'moinframe.loop.ui.reply.placeholder' => 'Γ‰crire une rΓ©ponse...', + 'moinframe.loop.ui.reply.submit' => 'RΓ©pondre', + 'moinframe.loop.ui.panel.no.comments' => 'Aucun commentaire. Ajoutez votre premier commentaire pour commencer.', + 'moinframe.loop.ui.panel.open' => 'Ouvrir les commentaires', + 'moinframe.loop.ui.header.browse.mode' => 'Naviguer', + 'moinframe.loop.ui.header.comment.mode' => 'Commenter', + 'moinframe.loop.ui.header.aria.count' => 'commentaires non rΓ©solus', + 'moinframe.loop.ui.welcome.guest.name.placeholder' => 'Entrez votre nom', + 'moinframe.loop.ui.welcome.continue' => 'Continuer', + 'moinframe.loop.ui.welcome.dismiss' => 'Fermer', + 'moinframe.loop.ui.header.position.top' => 'haut', + 'moinframe.loop.ui.header.position.bottom' => 'bas', + 'moinframe.loop.ui.comment.mark.solved' => 'RΓ©soudre', + 'moinframe.loop.ui.comment.mark.unsolved' => 'Rouvrir', + 'moinframe.loop.ui.panel.show.resolved' => 'Afficher les rΓ©solus uniquement', + 'moinframe.loop.ui.panel.show.all' => 'Afficher tous les commentaires', + 'moinframe.loop.ui.panel.filter.open' => 'Ouverts', + 'moinframe.loop.ui.panel.filter.resolved' => 'RΓ©solus', + 'moinframe.loop.ui.panel.filter.open.active' => 'Afficher les commentaires ouverts (sΓ©lectionnΓ©)', + 'moinframe.loop.ui.panel.filter.open.inactive' => 'Afficher les commentaires ouverts', + 'moinframe.loop.ui.panel.filter.resolved.active' => 'Afficher les commentaires rΓ©solus (sΓ©lectionnΓ©)', + 'moinframe.loop.ui.panel.filter.resolved.inactive' => 'Afficher les commentaires rΓ©solus', + 'moinframe.loop.ui.panel.menu.open' => 'Ouvrir le menu', + 'moinframe.loop.ui.panel.menu.filter.title' => 'Afficher les commentaires', + 'moinframe.loop.ui.panel.no.resolved' => 'Aucun commentaire rΓ©solu pour le moment.', + + // Time formatting + 'moinframe.loop.ui.time.just_now' => 'Γ  l\'instant', + 'moinframe.loop.ui.time.minute_ago' => 'il y a une minute', + 'moinframe.loop.ui.time.minutes_ago' => 'il y a {count} minutes', + 'moinframe.loop.ui.time.hour_ago' => 'il y a une heure', + 'moinframe.loop.ui.time.hours_ago' => 'il y a {count} heures', + 'moinframe.loop.ui.time.yesterday' => 'hier', + 'moinframe.loop.ui.time.days_ago' => 'il y a {count} jours' + ] + ], + 'hooks' => [ + 'page.render:after' => function (string $contentType, array $data, string $html, \Kirby\Cms\Page $page) { + if ($contentType === 'html' && Options::autoInject() && Options::enabled()) { + $snippet = snippet('loop/app', ['page' => $page], true); + // @phpstan-ignore-next-line + $html = str_replace('', $snippet . '', $html); + } + return $html; + } + ], + 'routes' => Routes::register(), + 'snippets' => [ + 'loop/app' => __DIR__ . '/snippets/loop/app.php' + ] +]); diff --git a/site/plugins/loop/kirby-loop.png b/site/plugins/loop/kirby-loop.png new file mode 100644 index 0000000..71f884b Binary files /dev/null and b/site/plugins/loop/kirby-loop.png differ diff --git a/site/plugins/loop/package.json b/site/plugins/loop/package.json new file mode 100644 index 0000000..91f1f22 --- /dev/null +++ b/site/plugins/loop/package.json @@ -0,0 +1,20 @@ +{ + "name": "moinframe-loop", + "version": "1.0.1", + "description": "", + "main": "index.js", + "scripts": { + "dev": "pnpm --filter=loop-frontend run dev", + "build": "pnpm --filter=loop-frontend run build", + "release": "release-it" + }, + "keywords": [], + "author": "Justus Kraft ", + "license": "MIT", + "packageManager": "pnpm@10.12.1+sha512.f0dda8580f0ee9481c5c79a1d927b9164f2c478e90992ad268bbb2465a736984391d6333d2c327913578b2804af33474ca554ba29c04a8b13060a717675ae3ac", + "devDependencies": { + "@release-it/bumper": "^7.0.1", + "@release-it/conventional-changelog": "^10.0.0", + "release-it": "^18.1.2" + } +} diff --git a/site/plugins/loop/phpstan.neon b/site/plugins/loop/phpstan.neon new file mode 100644 index 0000000..4117eaa --- /dev/null +++ b/site/plugins/loop/phpstan.neon @@ -0,0 +1,28 @@ +parameters: + # Level 8 is the highest level of analysis (0 is the lowest) + # Adjust based on your project's maturity and needs + level: 8 + + # Paths to analyze + paths: + - index.php + - src + + # Exclude paths that don't need analysis + excludePaths: + analyseAndScan: + - vendor + - node_modules + + # Cache + tmpDir: .phpstan-cache + + + # Use cache + cache: + nodesByStringCountMax: 512 + +# Extension for better type inference +includes: + - vendor/phpstan/phpstan-strict-rules/rules.neon + - vendor/phpstan/phpstan-deprecation-rules/rules.neon diff --git a/site/plugins/loop/pnpm-lock.yaml b/site/plugins/loop/pnpm-lock.yaml new file mode 100644 index 0000000..b4ad815 --- /dev/null +++ b/site/plugins/loop/pnpm-lock.yaml @@ -0,0 +1,2870 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + '@release-it/bumper': + specifier: ^7.0.1 + version: 7.0.2(release-it@18.1.2(@types/node@22.13.10)) + '@release-it/conventional-changelog': + specifier: ^10.0.0 + version: 10.0.0(conventional-commits-filter@5.0.0)(conventional-commits-parser@6.1.0)(release-it@18.1.2(@types/node@22.13.10)) + release-it: + specifier: ^18.1.2 + version: 18.1.2(@types/node@22.13.10) + +packages: + + '@babel/code-frame@7.26.2': + resolution: {integrity: sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-identifier@7.25.9': + resolution: {integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==} + engines: {node: '>=6.9.0'} + + '@conventional-changelog/git-client@1.0.1': + resolution: {integrity: sha512-PJEqBwAleffCMETaVm/fUgHldzBE35JFk3/9LL6NUA5EXa3qednu+UT6M7E5iBu3zIQZCULYIiZ90fBYHt6xUw==} + engines: {node: '>=18'} + peerDependencies: + conventional-commits-filter: ^5.0.0 + conventional-commits-parser: ^6.0.0 + peerDependenciesMeta: + conventional-commits-filter: + optional: true + conventional-commits-parser: + optional: true + + '@hutson/parse-repository-url@5.0.0': + resolution: {integrity: sha512-e5+YUKENATs1JgYHMzTr2MW/NDcXGfYFAuOQU8gJgF/kEh4EqKgfGrfLI67bMD4tbhZVlkigz/9YYwWcbOFthg==} + engines: {node: '>=10.13.0'} + + '@iarna/toml@2.2.5': + resolution: {integrity: sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==} + + '@iarna/toml@3.0.0': + resolution: {integrity: sha512-td6ZUkz2oS3VeleBcN+m//Q6HlCFCPrnI0FZhrt/h4XqLEdOyYp2u21nd8MdsR+WJy5r9PTDaHTDDfhf4H4l6Q==} + + '@inquirer/checkbox@4.1.4': + resolution: {integrity: sha512-d30576EZdApjAMceijXA5jDzRQHT/MygbC+J8I7EqA6f/FRpYxlRtRJbHF8gHeWYeSdOuTEJqonn7QLB1ELezA==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/confirm@5.1.8': + resolution: {integrity: sha512-dNLWCYZvXDjO3rnQfk2iuJNL4Ivwz/T2+C3+WnNfJKsNGSuOs3wAo2F6e0p946gtSAk31nZMfW+MRmYaplPKsg==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/core@10.1.9': + resolution: {integrity: sha512-sXhVB8n20NYkUBfDYgizGHlpRVaCRjtuzNZA6xpALIUbkgfd2Hjz+DfEN6+h1BRnuxw0/P4jCIMjMsEOAMwAJw==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/editor@4.2.9': + resolution: {integrity: sha512-8HjOppAxO7O4wV1ETUlJFg6NDjp/W2NP5FB9ZPAcinAlNT4ZIWOLe2pUVwmmPRSV0NMdI5r/+lflN55AwZOKSw==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/expand@4.0.11': + resolution: {integrity: sha512-OZSUW4hFMW2TYvX/Sv+NnOZgO8CHT2TU1roUCUIF2T+wfw60XFRRp9MRUPCT06cRnKL+aemt2YmTWwt7rOrNEA==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/figures@1.0.11': + resolution: {integrity: sha512-eOg92lvrn/aRUqbxRyvpEWnrvRuTYRifixHkYVpJiygTgVSBIHDqLh0SrMQXkafvULg3ck11V7xvR+zcgvpHFw==} + engines: {node: '>=18'} + + '@inquirer/input@4.1.8': + resolution: {integrity: sha512-WXJI16oOZ3/LiENCAxe8joniNp8MQxF6Wi5V+EBbVA0ZIOpFcL4I9e7f7cXse0HJeIPCWO8Lcgnk98juItCi7Q==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/number@3.0.11': + resolution: {integrity: sha512-pQK68CsKOgwvU2eA53AG/4npRTH2pvs/pZ2bFvzpBhrznh8Mcwt19c+nMO7LHRr3Vreu1KPhNBF3vQAKrjIulw==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/password@4.0.11': + resolution: {integrity: sha512-dH6zLdv+HEv1nBs96Case6eppkRggMe8LoOTl30+Gq5Wf27AO/vHFgStTVz4aoevLdNXqwE23++IXGw4eiOXTg==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@7.4.0': + resolution: {integrity: sha512-EZiJidQOT4O5PYtqnu1JbF0clv36oW2CviR66c7ma4LsupmmQlUwmdReGKRp456OWPWMz3PdrPiYg3aCk3op2w==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/rawlist@4.0.11': + resolution: {integrity: sha512-uAYtTx0IF/PqUAvsRrF3xvnxJV516wmR6YVONOmCWJbbt87HcDHLfL9wmBQFbNJRv5kCjdYKrZcavDkH3sVJPg==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/search@3.0.11': + resolution: {integrity: sha512-9CWQT0ikYcg6Ls3TOa7jljsD7PgjcsYEM0bYE+Gkz+uoW9u8eaJCRHJKkucpRE5+xKtaaDbrND+nPDoxzjYyew==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/select@4.1.0': + resolution: {integrity: sha512-z0a2fmgTSRN+YBuiK1ROfJ2Nvrpij5lVN3gPDkQGhavdvIVGHGW29LwYZfM/j42Ai2hUghTI/uoBuTbrJk42bA==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/type@3.0.5': + resolution: {integrity: sha512-ZJpeIYYueOz/i/ONzrfof8g89kNdO2hjGuvULROo3O8rlB2CRtSseE5KeirnyE4t/thAn/EwvS/vuQeJCn+NZg==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@nodelib/fs.scandir@2.1.5': + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} + engines: {node: '>= 8'} + + '@nodelib/fs.stat@2.0.5': + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} + engines: {node: '>= 8'} + + '@nodelib/fs.walk@1.2.8': + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} + engines: {node: '>= 8'} + + '@octokit/auth-token@5.1.2': + resolution: {integrity: sha512-JcQDsBdg49Yky2w2ld20IHAlwr8d/d8N6NiOXbtuoPCqzbsiJgF633mVUw3x4mo0H5ypataQIX7SFu3yy44Mpw==} + engines: {node: '>= 18'} + + '@octokit/core@6.1.4': + resolution: {integrity: sha512-lAS9k7d6I0MPN+gb9bKDt7X8SdxknYqAMh44S5L+lNqIN2NuV8nvv3g8rPp7MuRxcOpxpUIATWprO0C34a8Qmg==} + engines: {node: '>= 18'} + + '@octokit/endpoint@10.1.3': + resolution: {integrity: sha512-nBRBMpKPhQUxCsQQeW+rCJ/OPSMcj3g0nfHn01zGYZXuNDvvXudF/TYY6APj5THlurerpFN4a/dQAIAaM6BYhA==} + engines: {node: '>= 18'} + + '@octokit/graphql@8.2.1': + resolution: {integrity: sha512-n57hXtOoHrhwTWdvhVkdJHdhTv0JstjDbDRhJfwIRNfFqmSo1DaK/mD2syoNUoLCyqSjBpGAKOG0BuwF392slw==} + engines: {node: '>= 18'} + + '@octokit/openapi-types@24.2.0': + resolution: {integrity: sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==} + + '@octokit/plugin-paginate-rest@11.6.0': + resolution: {integrity: sha512-n5KPteiF7pWKgBIBJSk8qzoZWcUkza2O6A0za97pMGVrGfPdltxrfmfF5GucHYvHGZD8BdaZmmHGz5cX/3gdpw==} + engines: {node: '>= 18'} + peerDependencies: + '@octokit/core': '>=6' + + '@octokit/plugin-request-log@5.3.1': + resolution: {integrity: sha512-n/lNeCtq+9ofhC15xzmJCNKP2BWTv8Ih2TTy+jatNCCq/gQP/V7rK3fjIfuz0pDWDALO/o/4QY4hyOF6TQQFUw==} + engines: {node: '>= 18'} + peerDependencies: + '@octokit/core': '>=6' + + '@octokit/plugin-rest-endpoint-methods@13.5.0': + resolution: {integrity: sha512-9Pas60Iv9ejO3WlAX3maE1+38c5nqbJXV5GrncEfkndIpZrJ/WPMRd2xYDcPPEt5yzpxcjw9fWNoPhsSGzqKqw==} + engines: {node: '>= 18'} + peerDependencies: + '@octokit/core': '>=6' + + '@octokit/request-error@6.1.7': + resolution: {integrity: sha512-69NIppAwaauwZv6aOzb+VVLwt+0havz9GT5YplkeJv7fG7a40qpLt/yZKyiDxAhgz0EtgNdNcb96Z0u+Zyuy2g==} + engines: {node: '>= 18'} + + '@octokit/request@9.2.2': + resolution: {integrity: sha512-dZl0ZHx6gOQGcffgm1/Sf6JfEpmh34v3Af2Uci02vzUYz6qEN6zepoRtmybWXIGXFIK8K9ylE3b+duCWqhArtg==} + engines: {node: '>= 18'} + + '@octokit/rest@21.0.2': + resolution: {integrity: sha512-+CiLisCoyWmYicH25y1cDfCrv41kRSvTq6pPWtRroRJzhsCZWZyCqGyI8foJT5LmScADSwRAnr/xo+eewL04wQ==} + engines: {node: '>= 18'} + + '@octokit/types@13.10.0': + resolution: {integrity: sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==} + + '@pnpm/config.env-replace@1.1.0': + resolution: {integrity: sha512-htyl8TWnKL7K/ESFa1oW2UB5lVDxuF5DpM7tBi6Hu2LNL3mWkIzNLG6N4zoCUP1lCKNxWy/3iu8mS8MvToGd6w==} + engines: {node: '>=12.22.0'} + + '@pnpm/network.ca-file@1.0.2': + resolution: {integrity: sha512-YcPQ8a0jwYU9bTdJDpXjMi7Brhkr1mXsXrUJvjqM2mQDgkRiz8jFaQGOdaLxgjtUfQgZhKy/O3cG/YwmgKaxLA==} + engines: {node: '>=12.22.0'} + + '@pnpm/npm-conf@2.3.1': + resolution: {integrity: sha512-c83qWb22rNRuB0UaVCI0uRPNRr8Z0FWnEIvT47jiHAmOIUHbBOg5XvV7pM5x+rKn9HRpjxquDbXYSXr3fAKFcw==} + engines: {node: '>=12'} + + '@release-it/bumper@7.0.2': + resolution: {integrity: sha512-OHcdArfUgSW//1GuzcjWOW2Sbx3tz9vgMyi2KQv8SEeLeWjIMAM2IxR+bXzbC2q40ACSa/cQRQE0HfHCMfkYwg==} + engines: {node: ^20.9.0 || >=22.0.0} + peerDependencies: + release-it: '>=18.0.0' + + '@release-it/conventional-changelog@10.0.0': + resolution: {integrity: sha512-49qf9phGmPUIGpY2kwfgehs9en1znbPv2zdNn1WMLAH9DtHUh4m6KNSB+mLFGAMUhv24JhsA8ruYRYgluc2UJw==} + engines: {node: ^20.9.0 || >=22.0.0} + peerDependencies: + release-it: ^18.0.0 + + '@sec-ant/readable-stream@0.4.1': + resolution: {integrity: sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==} + + '@sindresorhus/merge-streams@2.3.0': + resolution: {integrity: sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==} + engines: {node: '>=18'} + + '@sindresorhus/merge-streams@4.0.0': + resolution: {integrity: sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==} + engines: {node: '>=18'} + + '@tootallnate/quickjs-emscripten@0.23.0': + resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==} + + '@types/node@22.13.10': + resolution: {integrity: sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==} + + '@types/normalize-package-data@2.4.4': + resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} + + '@types/parse-path@7.0.3': + resolution: {integrity: sha512-LriObC2+KYZD3FzCrgWGv/qufdUy4eXrxcLgQMfYXgPbLIecKIsVBaQgUPmxSSLcjmYbDTQbMgr6qr6l/eb7Bg==} + + '@types/semver@7.5.8': + resolution: {integrity: sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==} + + add-stream@1.0.0: + resolution: {integrity: sha512-qQLMr+8o0WC4FZGQTcJiKBVC59JylcPSrTtk6usvmIDFUOCKegapy1VHQwRbFMOFyb/inzUVqHs+eMYKDM1YeQ==} + + agent-base@7.1.3: + resolution: {integrity: sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==} + engines: {node: '>= 14'} + + ansi-align@3.0.1: + resolution: {integrity: sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==} + + ansi-escapes@4.3.2: + resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==} + engines: {node: '>=8'} + + ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + + ansi-regex@6.1.0: + resolution: {integrity: sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==} + engines: {node: '>=12'} + + ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + + ansi-styles@6.2.1: + resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} + engines: {node: '>=12'} + + argparse@2.0.1: + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + + array-ify@1.0.0: + resolution: {integrity: sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==} + + ast-types@0.13.4: + resolution: {integrity: sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==} + engines: {node: '>=4'} + + async-retry@1.3.3: + resolution: {integrity: sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==} + + atomically@2.0.3: + resolution: {integrity: sha512-kU6FmrwZ3Lx7/7y3hPS5QnbJfaohcIul5fGqf7ok+4KklIEk9tJ0C2IQPdacSbVUWv6zVHXEBWoWd6NrVMT7Cw==} + + balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + + basic-ftp@5.0.5: + resolution: {integrity: sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==} + engines: {node: '>=10.0.0'} + + before-after-hook@3.0.2: + resolution: {integrity: sha512-Nik3Sc0ncrMK4UUdXQmAnRtzmNQTAAXmXIopizwZ1W1t8QmfJj+zL4OA2I7XPTPW5z5TDqv4hRo/JzouDJnX3A==} + + boolbase@1.0.0: + resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==} + + boxen@8.0.1: + resolution: {integrity: sha512-F3PH5k5juxom4xktynS7MoFY+NUWH5LC4CnH11YB8NPew+HLpmBLCybSAEyb2F+4pRXhuhWqFesoQd6DAyc2hw==} + engines: {node: '>=18'} + + brace-expansion@1.1.11: + resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + + buffer-from@1.1.2: + resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} + + bundle-name@4.1.0: + resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==} + engines: {node: '>=18'} + + callsites@3.1.0: + resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} + engines: {node: '>=6'} + + camelcase@8.0.0: + resolution: {integrity: sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA==} + engines: {node: '>=16'} + + chalk@5.4.1: + resolution: {integrity: sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + + chardet@0.7.0: + resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==} + + cheerio-select@2.1.0: + resolution: {integrity: sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==} + + cheerio@1.0.0: + resolution: {integrity: sha512-quS9HgjQpdaXOvsZz82Oz7uxtXiy6UIsIQcpBj7HRw2M63Skasm9qlDocAM7jNuaxdhpPU7c4kJN+gA5MCu4ww==} + engines: {node: '>=18.17'} + + ci-info@4.2.0: + resolution: {integrity: sha512-cYY9mypksY8NRqgDB1XD1RiJL338v/551niynFTGkZOO2LHuB2OmOYxDIe/ttN9AHwrqdum1360G3ald0W9kCg==} + engines: {node: '>=8'} + + cli-boxes@3.0.0: + resolution: {integrity: sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==} + engines: {node: '>=10'} + + cli-cursor@5.0.0: + resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} + engines: {node: '>=18'} + + cli-spinners@2.9.2: + resolution: {integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==} + engines: {node: '>=6'} + + cli-width@4.1.0: + resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} + engines: {node: '>= 12'} + + color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + + color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + + compare-func@2.0.0: + resolution: {integrity: sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==} + + concat-map@0.0.1: + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + + concat-stream@2.0.0: + resolution: {integrity: sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==} + engines: {'0': node >= 6.0} + + config-chain@1.1.13: + resolution: {integrity: sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==} + + configstore@7.0.0: + resolution: {integrity: sha512-yk7/5PN5im4qwz0WFZW3PXnzHgPu9mX29Y8uZ3aefe2lBPC1FYttWZRcaW9fKkT0pBCJyuQ2HfbmPVaODi9jcQ==} + engines: {node: '>=18'} + + conventional-changelog-angular@8.0.0: + resolution: {integrity: sha512-CLf+zr6St0wIxos4bmaKHRXWAcsCXrJU6F4VdNDrGRK3B8LDLKoX3zuMV5GhtbGkVR/LohZ6MT6im43vZLSjmA==} + engines: {node: '>=18'} + + conventional-changelog-atom@5.0.0: + resolution: {integrity: sha512-WfzCaAvSCFPkznnLgLnfacRAzjgqjLUjvf3MftfsJzQdDICqkOOpcMtdJF3wTerxSpv2IAAjX8doM3Vozqle3g==} + engines: {node: '>=18'} + + conventional-changelog-codemirror@5.0.0: + resolution: {integrity: sha512-8gsBDI5Y3vrKUCxN6Ue8xr6occZ5nsDEc4C7jO/EovFGozx8uttCAyfhRrvoUAWi2WMm3OmYs+0mPJU7kQdYWQ==} + engines: {node: '>=18'} + + conventional-changelog-conventionalcommits@8.0.0: + resolution: {integrity: sha512-eOvlTO6OcySPyyyk8pKz2dP4jjElYunj9hn9/s0OB+gapTO8zwS9UQWrZ1pmF2hFs3vw1xhonOLGcGjy/zgsuA==} + engines: {node: '>=18'} + + conventional-changelog-core@8.0.0: + resolution: {integrity: sha512-EATUx5y9xewpEe10UEGNpbSHRC6cVZgO+hXQjofMqpy+gFIrcGvH3Fl6yk2VFKh7m+ffenup2N7SZJYpyD9evw==} + engines: {node: '>=18'} + + conventional-changelog-ember@5.0.0: + resolution: {integrity: sha512-RPflVfm5s4cSO33GH/Ey26oxhiC67akcxSKL8CLRT3kQX2W3dbE19sSOM56iFqUJYEwv9mD9r6k79weWe1urfg==} + engines: {node: '>=18'} + + conventional-changelog-eslint@6.0.0: + resolution: {integrity: sha512-eiUyULWjzq+ybPjXwU6NNRflApDWlPEQEHvI8UAItYW/h22RKkMnOAtfCZxMmrcMO1OKUWtcf2MxKYMWe9zJuw==} + engines: {node: '>=18'} + + conventional-changelog-express@5.0.0: + resolution: {integrity: sha512-D8Q6WctPkQpvr2HNCCmwU5GkX22BVHM0r4EW8vN0230TSyS/d6VQJDAxGb84lbg0dFjpO22MwmsikKL++Oo/oQ==} + engines: {node: '>=18'} + + conventional-changelog-jquery@6.0.0: + resolution: {integrity: sha512-2kxmVakyehgyrho2ZHBi90v4AHswkGzHuTaoH40bmeNqUt20yEkDOSpw8HlPBfvEQBwGtbE+5HpRwzj6ac2UfA==} + engines: {node: '>=18'} + + conventional-changelog-jshint@5.0.0: + resolution: {integrity: sha512-gGNphSb/opc76n2eWaO6ma4/Wqu3tpa2w7i9WYqI6Cs2fncDSI2/ihOfMvXveeTTeld0oFvwMVNV+IYQIk3F3g==} + engines: {node: '>=18'} + + conventional-changelog-preset-loader@5.0.0: + resolution: {integrity: sha512-SetDSntXLk8Jh1NOAl1Gu5uLiCNSYenB5tm0YVeZKePRIgDW9lQImromTwLa3c/Gae298tsgOM+/CYT9XAl0NA==} + engines: {node: '>=18'} + + conventional-changelog-writer@8.0.1: + resolution: {integrity: sha512-hlqcy3xHred2gyYg/zXSMXraY2mjAYYo0msUCpK+BGyaVJMFCKWVXPIHiaacGO2GGp13kvHWXFhYmxT4QQqW3Q==} + engines: {node: '>=18'} + hasBin: true + + conventional-changelog@6.0.0: + resolution: {integrity: sha512-tuUH8H/19VjtD9Ig7l6TQRh+Z0Yt0NZ6w/cCkkyzUbGQTnUEmKfGtkC9gGfVgCfOL1Rzno5NgNF4KY8vR+Jo3w==} + engines: {node: '>=18'} + + conventional-commits-filter@5.0.0: + resolution: {integrity: sha512-tQMagCOC59EVgNZcC5zl7XqO30Wki9i9J3acbUvkaosCT6JX3EeFwJD7Qqp4MCikRnzS18WXV3BLIQ66ytu6+Q==} + engines: {node: '>=18'} + + conventional-commits-parser@6.1.0: + resolution: {integrity: sha512-5nxDo7TwKB5InYBl4ZC//1g9GRwB/F3TXOGR9hgUjMGfvSP4Vu5NkpNro2+1+TIEy1vwxApl5ircECr2ri5JIw==} + engines: {node: '>=18'} + hasBin: true + + conventional-recommended-bump@10.0.0: + resolution: {integrity: sha512-RK/fUnc2btot0oEVtrj3p2doImDSs7iiz/bftFCDzels0Qs1mxLghp+DFHMaOC0qiCI6sWzlTDyBFSYuot6pRA==} + engines: {node: '>=18'} + hasBin: true + + cosmiconfig@9.0.0: + resolution: {integrity: sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==} + engines: {node: '>=14'} + peerDependencies: + typescript: '>=4.9.5' + peerDependenciesMeta: + typescript: + optional: true + + cross-spawn@7.0.6: + resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} + engines: {node: '>= 8'} + + css-select@5.1.0: + resolution: {integrity: sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==} + + css-what@6.1.0: + resolution: {integrity: sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==} + engines: {node: '>= 6'} + + data-uri-to-buffer@6.0.2: + resolution: {integrity: sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==} + engines: {node: '>= 14'} + + debug@4.4.0: + resolution: {integrity: sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + deep-extend@0.6.0: + resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==} + engines: {node: '>=4.0.0'} + + default-browser-id@5.0.0: + resolution: {integrity: sha512-A6p/pu/6fyBcA1TRz/GqWYPViplrftcW2gZC9q79ngNCKAeR/X3gcEdXQHl4KNXV+3wgIJ1CPkJQ3IHM6lcsyA==} + engines: {node: '>=18'} + + default-browser@5.2.1: + resolution: {integrity: sha512-WY/3TUME0x3KPYdRRxEJJvXRHV4PyPoUsxtZa78lwItwRQRHhd2U9xOscaT/YTf8uCXIAjeJOFBVEh/7FtD8Xg==} + engines: {node: '>=18'} + + define-lazy-prop@3.0.0: + resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==} + engines: {node: '>=12'} + + degenerator@5.0.1: + resolution: {integrity: sha512-TllpMR/t0M5sqCXfj85i4XaAzxmS5tVA16dqvdkMwGmzI+dXLXnw3J+3Vdv7VKw+ThlTMboK6i9rnZ6Nntj5CQ==} + engines: {node: '>= 14'} + + detect-indent@7.0.1: + resolution: {integrity: sha512-Mc7QhQ8s+cLrnUfU/Ji94vG/r8M26m8f++vyres4ZoojaRDpZ1eSIh/EpzLNwlWuvzSZ3UbDFspjFvTDXe6e/g==} + engines: {node: '>=12.20'} + + dom-serializer@2.0.0: + resolution: {integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==} + + domelementtype@2.3.0: + resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==} + + domhandler@5.0.3: + resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==} + engines: {node: '>= 4'} + + domutils@3.2.2: + resolution: {integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==} + + dot-prop@5.3.0: + resolution: {integrity: sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==} + engines: {node: '>=8'} + + dot-prop@9.0.0: + resolution: {integrity: sha512-1gxPBJpI/pcjQhKgIU91II6Wkay+dLcN3M6rf2uwP8hRur3HtQXjVrdAK3sjC0piaEuxzMwjXChcETiJl47lAQ==} + engines: {node: '>=18'} + + emoji-regex@10.4.0: + resolution: {integrity: sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==} + + emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + + encoding-sniffer@0.2.0: + resolution: {integrity: sha512-ju7Wq1kg04I3HtiYIOrUrdfdDvkyO9s5XM8QAj/bN61Yo/Vb4vgJxy5vi4Yxk01gWHbrofpPtpxM8bKger9jhg==} + + entities@4.5.0: + resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} + engines: {node: '>=0.12'} + + env-paths@2.2.1: + resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==} + engines: {node: '>=6'} + + error-ex@1.3.2: + resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} + + escape-goat@4.0.0: + resolution: {integrity: sha512-2Sd4ShcWxbx6OY1IHyla/CVNwvg7XwZVoXZHcSu9w9SReNP1EzzD5T8NWKIR38fIqEns9kDWKUQTXXAmlDrdPg==} + engines: {node: '>=12'} + + escodegen@2.1.0: + resolution: {integrity: sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==} + engines: {node: '>=6.0'} + hasBin: true + + esprima@4.0.1: + resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} + engines: {node: '>=4'} + hasBin: true + + estraverse@5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} + engines: {node: '>=4.0'} + + esutils@2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} + + execa@8.0.1: + resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==} + engines: {node: '>=16.17'} + + execa@9.5.2: + resolution: {integrity: sha512-EHlpxMCpHWSAh1dgS6bVeoLAXGnJNdR93aabr4QCGbzOM73o5XmRfM/e5FUqsw3aagP8S8XEWUWFAxnRBnAF0Q==} + engines: {node: ^18.19.0 || >=20.5.0} + + external-editor@3.1.0: + resolution: {integrity: sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==} + engines: {node: '>=4'} + + fast-content-type-parse@2.0.1: + resolution: {integrity: sha512-nGqtvLrj5w0naR6tDPfB4cUmYCqouzyQiz6C5y/LtcDllJdrcc6WaWW6iXyIIOErTa/XRybj28aasdn4LkVk6Q==} + + fast-glob@3.3.3: + resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==} + engines: {node: '>=8.6.0'} + + fastq@1.19.1: + resolution: {integrity: sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==} + + figures@6.1.0: + resolution: {integrity: sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==} + engines: {node: '>=18'} + + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + + find-up-simple@1.0.1: + resolution: {integrity: sha512-afd4O7zpqHeRyg4PfDQsXmlDe2PfdHtJt6Akt8jOWaApLOZk5JXs6VMR29lz03pRe9mpykrRCYIYxaJYcfpncQ==} + engines: {node: '>=18'} + + fs.realpath@1.0.0: + resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} + + function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + + get-east-asian-width@1.3.0: + resolution: {integrity: sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==} + engines: {node: '>=18'} + + get-stream@8.0.1: + resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==} + engines: {node: '>=16'} + + get-stream@9.0.1: + resolution: {integrity: sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==} + engines: {node: '>=18'} + + get-uri@6.0.4: + resolution: {integrity: sha512-E1b1lFFLvLgak2whF2xDBcOy6NLVGZBqqjJjsIhvopKfWWEi64pLVTWWehV8KlLerZkfNTA95sTe2OdJKm1OzQ==} + engines: {node: '>= 14'} + + git-raw-commits@5.0.0: + resolution: {integrity: sha512-I2ZXrXeOc0KrCvC7swqtIFXFN+rbjnC7b2T943tvemIOVNl+XP8YnA9UVwqFhzzLClnSA60KR/qEjLpXzs73Qg==} + engines: {node: '>=18'} + hasBin: true + + git-semver-tags@8.0.0: + resolution: {integrity: sha512-N7YRIklvPH3wYWAR2vysaqGLPRcpwQ0GKdlqTiVN5w1UmCdaeY3K8s6DMKRCh54DDdzyt/OAB6C8jgVtb7Y2Fg==} + engines: {node: '>=18'} + hasBin: true + + git-up@8.0.1: + resolution: {integrity: sha512-2XFu1uNZMSjkyetaF+8rqn6P0XqpMq/C+2ycjI6YwrIKcszZ5/WR4UubxjN0lILOKqLkLaHDaCr2B6fP1cke6g==} + + git-url-parse@16.0.0: + resolution: {integrity: sha512-Y8iAF0AmCaqXc6a5GYgPQW9ESbncNLOL+CeQAJRhmWUOmnPkKpBYeWYp4mFd3LA5j53CdGDdslzX12yEBVHQQg==} + + glob-parent@5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} + + glob@7.2.3: + resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} + deprecated: Glob versions prior to v9 are no longer supported + + global-directory@4.0.1: + resolution: {integrity: sha512-wHTUcDUoZ1H5/0iVqEudYW4/kAlN5cZ3j/bXn0Dpbizl9iaUVeWSHqiOjsgk6OW2bkLclbBjzewBz6weQ1zA2Q==} + engines: {node: '>=18'} + + globby@14.0.2: + resolution: {integrity: sha512-s3Fq41ZVh7vbbe2PN3nrW7yC7U7MFVc5c98/iTl9c2GawNMKx/J648KQRW6WKkuU8GIbbh2IXfIRQjOZnXcTnw==} + engines: {node: '>=18'} + + graceful-fs@4.2.10: + resolution: {integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==} + + graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + + handlebars@4.7.8: + resolution: {integrity: sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==} + engines: {node: '>=0.4.7'} + hasBin: true + + hasown@2.0.2: + resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} + engines: {node: '>= 0.4'} + + hosted-git-info@7.0.2: + resolution: {integrity: sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==} + engines: {node: ^16.14.0 || >=18.0.0} + + htmlparser2@9.1.0: + resolution: {integrity: sha512-5zfg6mHUoaer/97TxnGpxmbR7zJtPwIYFMZ/H5ucTlPZhKvtum05yiPK3Mgai3a0DyVxv7qYqoweaEd2nrYQzQ==} + + http-proxy-agent@7.0.2: + resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==} + engines: {node: '>= 14'} + + https-proxy-agent@7.0.6: + resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==} + engines: {node: '>= 14'} + + human-signals@5.0.0: + resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==} + engines: {node: '>=16.17.0'} + + human-signals@8.0.0: + resolution: {integrity: sha512-/1/GPCpDUCCYwlERiYjxoczfP0zfvZMU/OWgQPMya9AbAE24vseigFdhAMObpc8Q4lc/kjutPfUddDYyAmejnA==} + engines: {node: '>=18.18.0'} + + iconv-lite@0.4.24: + resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} + engines: {node: '>=0.10.0'} + + iconv-lite@0.6.3: + resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} + engines: {node: '>=0.10.0'} + + ignore@5.3.2: + resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} + engines: {node: '>= 4'} + + import-fresh@3.3.1: + resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==} + engines: {node: '>=6'} + + index-to-position@0.1.2: + resolution: {integrity: sha512-MWDKS3AS1bGCHLBA2VLImJz42f7bJh8wQsTGCzI3j519/CASStoDONUBVz2I/VID0MpiX3SGSnbOD2xUalbE5g==} + engines: {node: '>=18'} + + inflight@1.0.6: + resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} + deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. + + inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + + ini@1.3.8: + resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==} + + ini@4.1.1: + resolution: {integrity: sha512-QQnnxNyfvmHFIsj7gkPcYymR8Jdw/o7mp5ZFihxn6h8Ci6fh3Dx4E1gPjpQEpIuPo9XVNY/ZUwh4BPMjGyL01g==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + + ini@5.0.0: + resolution: {integrity: sha512-+N0ngpO3e7cRUWOJAS7qw0IZIVc6XPrW4MlFBdD066F2L4k1L6ker3hLqSq7iXxU5tgS4WGkIUElWn5vogAEnw==} + engines: {node: ^18.17.0 || >=20.5.0} + + inquirer@12.3.0: + resolution: {integrity: sha512-3NixUXq+hM8ezj2wc7wC37b32/rHq1MwNZDYdvx+d6jokOD+r+i8Q4Pkylh9tISYP114A128LCX8RKhopC5RfQ==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + + interpret@1.4.0: + resolution: {integrity: sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==} + engines: {node: '>= 0.10'} + + ip-address@9.0.5: + resolution: {integrity: sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==} + engines: {node: '>= 12'} + + is-arrayish@0.2.1: + resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} + + is-core-module@2.16.1: + resolution: {integrity: sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==} + engines: {node: '>= 0.4'} + + is-docker@3.0.0: + resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + hasBin: true + + is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} + engines: {node: '>=0.10.0'} + + is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + + is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + + is-in-ci@1.0.0: + resolution: {integrity: sha512-eUuAjybVTHMYWm/U+vBO1sY/JOCgoPCXRxzdju0K+K0BiGW0SChEL1MLC0PoCIR1OlPo5YAp8HuQoUlsWEICwg==} + engines: {node: '>=18'} + hasBin: true + + is-inside-container@1.0.0: + resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==} + engines: {node: '>=14.16'} + hasBin: true + + is-installed-globally@1.0.0: + resolution: {integrity: sha512-K55T22lfpQ63N4KEN57jZUAaAYqYHEe8veb/TycJRk9DdSCLLcovXz/mL6mOnhQaZsQGwPhuFopdQIlqGSEjiQ==} + engines: {node: '>=18'} + + is-interactive@2.0.0: + resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==} + engines: {node: '>=12'} + + is-npm@6.0.0: + resolution: {integrity: sha512-JEjxbSmtPSt1c8XTkVrlujcXdKV1/tvuQ7GwKcAlyiVLeYFQ2VHat8xfrDJsIkhCdF/tZ7CiIR3sy141c6+gPQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + + is-obj@2.0.0: + resolution: {integrity: sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==} + engines: {node: '>=8'} + + is-path-inside@4.0.0: + resolution: {integrity: sha512-lJJV/5dYS+RcL8uQdBDW9c9uWFLLBNRyFhnAKXw5tVqLlKZ4RMGZKv+YQ/IA3OhD+RpbJa1LLFM1FQPGyIXvOA==} + engines: {node: '>=12'} + + is-plain-obj@4.1.0: + resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==} + engines: {node: '>=12'} + + is-ssh@1.4.1: + resolution: {integrity: sha512-JNeu1wQsHjyHgn9NcWTaXq6zWSR6hqE0++zhfZlkFBbScNkyvxCdeV8sRkSBaeLKxmbpR21brail63ACNxJ0Tg==} + + is-stream@3.0.0: + resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + is-stream@4.0.1: + resolution: {integrity: sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==} + engines: {node: '>=18'} + + is-unicode-supported@1.3.0: + resolution: {integrity: sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==} + engines: {node: '>=12'} + + is-unicode-supported@2.1.0: + resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} + engines: {node: '>=18'} + + is-wsl@3.1.0: + resolution: {integrity: sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==} + engines: {node: '>=16'} + + isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + + issue-parser@7.0.1: + resolution: {integrity: sha512-3YZcUUR2Wt1WsapF+S/WiA2WmlW0cWAoPccMqne7AxEBhCdFeTPjfv/Axb8V2gyCgY3nRw+ksZ3xSUX+R47iAg==} + engines: {node: ^18.17 || >=20.6.1} + + js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + + js-yaml@4.1.0: + resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} + hasBin: true + + jsbn@1.1.0: + resolution: {integrity: sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==} + + json-parse-even-better-errors@2.3.1: + resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} + + ky@1.7.5: + resolution: {integrity: sha512-HzhziW6sc5m0pwi5M196+7cEBtbt0lCYi67wNsiwMUmz833wloE0gbzJPWKs1gliFKQb34huItDQX97LyOdPdA==} + engines: {node: '>=18'} + + latest-version@9.0.0: + resolution: {integrity: sha512-7W0vV3rqv5tokqkBAFV1LbR7HPOWzXQDpDgEuib/aJ1jsZZx6x3c2mBI+TJhJzOhkGeaLbCKEHXEXLfirtG2JA==} + engines: {node: '>=18'} + + lines-and-columns@1.2.4: + resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} + + lodash-es@4.17.21: + resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==} + + lodash.capitalize@4.2.1: + resolution: {integrity: sha512-kZzYOKspf8XVX5AvmQF94gQW0lejFVgb80G85bU4ZWzoJ6C03PQg3coYAUpSTpQWelrZELd3XWgHzw4Ck5kaIw==} + + lodash.escaperegexp@4.1.2: + resolution: {integrity: sha512-TM9YBvyC84ZxE3rgfefxUWiQKLilstD6k7PTGt6wfbtXF8ixIJLOL3VYyV/z+ZiPLsVxAsKAFVwWlWeb2Y8Yyw==} + + lodash.isplainobject@4.0.6: + resolution: {integrity: sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==} + + lodash.isstring@4.0.1: + resolution: {integrity: sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==} + + lodash.uniqby@4.7.0: + resolution: {integrity: sha512-e/zcLx6CSbmaEgFHCA7BnoQKyCtKMxnuWrJygbwPs/AIn+IMKl66L8/s+wBUn5LRw2pZx3bUHibiV1b6aTWIww==} + + lodash@4.17.21: + resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} + + log-symbols@6.0.0: + resolution: {integrity: sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==} + engines: {node: '>=18'} + + lru-cache@10.4.3: + resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} + + lru-cache@7.18.3: + resolution: {integrity: sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==} + engines: {node: '>=12'} + + macos-release@3.3.0: + resolution: {integrity: sha512-tPJQ1HeyiU2vRruNGhZ+VleWuMQRro8iFtJxYgnS4NQe+EukKF6aGiIT+7flZhISAt2iaXBCfFGvAyif7/f8nQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + meow@13.2.0: + resolution: {integrity: sha512-pxQJQzB6djGPXh08dacEloMFopsOqGVRKFPYvPOt9XDZ1HasbgDZA74CJGreSU4G3Ak7EFJGoiH2auq+yXISgA==} + engines: {node: '>=18'} + + merge-stream@2.0.0: + resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==} + + merge2@1.4.1: + resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} + engines: {node: '>= 8'} + + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + + mime-db@1.52.0: + resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} + engines: {node: '>= 0.6'} + + mime-types@2.1.35: + resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} + engines: {node: '>= 0.6'} + + mimic-fn@4.0.0: + resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==} + engines: {node: '>=12'} + + mimic-function@5.0.1: + resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} + engines: {node: '>=18'} + + minimatch@3.1.2: + resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} + + minimist@1.2.8: + resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + mute-stream@2.0.0: + resolution: {integrity: sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==} + engines: {node: ^18.17.0 || >=20.5.0} + + neo-async@2.6.2: + resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==} + + netmask@2.0.2: + resolution: {integrity: sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==} + engines: {node: '>= 0.4.0'} + + new-github-release-url@2.0.0: + resolution: {integrity: sha512-NHDDGYudnvRutt/VhKFlX26IotXe1w0cmkDm6JGquh5bz/bDTw0LufSmH/GxTjEdpHEO+bVKFTwdrcGa/9XlKQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + normalize-package-data@6.0.2: + resolution: {integrity: sha512-V6gygoYb/5EmNI+MEGrWkC+e6+Rr7mTmfHrxDbLzxQogBkgzo76rkok0Am6thgSF7Mv2nLOajAJj5vDJZEFn7g==} + engines: {node: ^16.14.0 || >=18.0.0} + + npm-run-path@5.3.0: + resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + npm-run-path@6.0.0: + resolution: {integrity: sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==} + engines: {node: '>=18'} + + nth-check@2.1.1: + resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==} + + once@1.4.0: + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + + onetime@6.0.0: + resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==} + engines: {node: '>=12'} + + onetime@7.0.0: + resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} + engines: {node: '>=18'} + + open@10.1.0: + resolution: {integrity: sha512-mnkeQ1qP5Ue2wd+aivTD3NHd/lZ96Lu0jgf0pwktLPtx6cTZiH7tyeGRRHs0zX0rbrahXPnXlUnbeXyaBBuIaw==} + engines: {node: '>=18'} + + ora@8.1.1: + resolution: {integrity: sha512-YWielGi1XzG1UTvOaCFaNgEnuhZVMSHYkW/FQ7UX8O26PtlpdM84c0f7wLPlkvx2RfiQmnzd61d/MGxmpQeJPw==} + engines: {node: '>=18'} + + os-name@6.0.0: + resolution: {integrity: sha512-bv608E0UX86atYi2GMGjDe0vF/X1TJjemNS8oEW6z22YW1Rc3QykSYoGfkQbX0zZX9H0ZB6CQP/3GTf1I5hURg==} + engines: {node: '>=18'} + + os-tmpdir@1.0.2: + resolution: {integrity: sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==} + engines: {node: '>=0.10.0'} + + pac-proxy-agent@7.2.0: + resolution: {integrity: sha512-TEB8ESquiLMc0lV8vcd5Ql/JAKAoyzHFXaStwjkzpOpC5Yv+pIzLfHvjTSdf3vpa2bMiUQrg9i6276yn8666aA==} + engines: {node: '>= 14'} + + pac-resolver@7.0.1: + resolution: {integrity: sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==} + engines: {node: '>= 14'} + + package-json@10.0.1: + resolution: {integrity: sha512-ua1L4OgXSBdsu1FPb7F3tYH0F48a6kxvod4pLUlGY9COeJAJQNX/sNH2IiEmsxw7lqYiAwrdHMjz1FctOsyDQg==} + engines: {node: '>=18'} + + parent-module@1.0.1: + resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} + engines: {node: '>=6'} + + parse-json@5.2.0: + resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} + engines: {node: '>=8'} + + parse-json@8.1.0: + resolution: {integrity: sha512-rum1bPifK5SSar35Z6EKZuYPJx85pkNaFrxBK3mwdfSJ1/WKbYrjoW/zTPSjRRamfmVX1ACBIdFAO0VRErW/EA==} + engines: {node: '>=18'} + + parse-ms@4.0.0: + resolution: {integrity: sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==} + engines: {node: '>=18'} + + parse-path@7.0.1: + resolution: {integrity: sha512-6ReLMptznuuOEzLoGEa+I1oWRSj2Zna5jLWC+l6zlfAI4dbbSaIES29ThzuPkbhNahT65dWzfoZEO6cfJw2Ksg==} + + parse-url@9.2.0: + resolution: {integrity: sha512-bCgsFI+GeGWPAvAiUv63ZorMeif3/U0zaXABGJbOWt5OH2KCaPHF6S+0ok4aqM9RuIPGyZdx9tR9l13PsW4AYQ==} + engines: {node: '>=14.13.0'} + + parse5-htmlparser2-tree-adapter@7.1.0: + resolution: {integrity: sha512-ruw5xyKs6lrpo9x9rCZqZZnIUntICjQAd0Wsmp396Ul9lN/h+ifgVV1x1gZHi8euej6wTfpqX8j+BFQxF0NS/g==} + + parse5-parser-stream@7.1.2: + resolution: {integrity: sha512-JyeQc9iwFLn5TbvvqACIF/VXG6abODeB3Fwmv/TGdLk2LfbWkaySGY72at4+Ty7EkPZj854u4CrICqNk2qIbow==} + + parse5@7.2.1: + resolution: {integrity: sha512-BuBYQYlv1ckiPdQi/ohiivi9Sagc9JG+Ozs0r7b/0iK3sKmrb0b9FdWdBbOdx6hBCM/F9Ir82ofnBhtZOjCRPQ==} + + path-is-absolute@1.0.1: + resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} + engines: {node: '>=0.10.0'} + + path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + + path-key@4.0.0: + resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==} + engines: {node: '>=12'} + + path-parse@1.0.7: + resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} + + path-type@5.0.0: + resolution: {integrity: sha512-5HviZNaZcfqP95rwpv+1HDgUamezbqdSYTyzjTvwtJSnIH+3vnbmWsItli8OFEndS984VT55M3jduxZbX351gg==} + engines: {node: '>=12'} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} + engines: {node: '>=8.6'} + + pretty-ms@9.2.0: + resolution: {integrity: sha512-4yf0QO/sllf/1zbZWYnvWw3NxCQwLXKzIj0G849LSufP15BXKM0rbD2Z3wVnkMfjdn/CB0Dpp444gYAACdsplg==} + engines: {node: '>=18'} + + proto-list@1.2.4: + resolution: {integrity: sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==} + + protocols@2.0.2: + resolution: {integrity: sha512-hHVTzba3wboROl0/aWRRG9dMytgH6ow//STBZh43l/wQgmMhYhOFi0EHWAPtoCz9IAUymsyP0TSBHkhgMEGNnQ==} + + proxy-agent@6.5.0: + resolution: {integrity: sha512-TmatMXdr2KlRiA2CyDu8GqR8EjahTG3aY3nXjdzFyoZbmB8hrBsTyMezhULIXKnC0jpfjlmiZ3+EaCzoInSu/A==} + engines: {node: '>= 14'} + + proxy-from-env@1.1.0: + resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} + + pupa@3.1.0: + resolution: {integrity: sha512-FLpr4flz5xZTSJxSeaheeMKN/EDzMdK7b8PTOC6a5PYFKTucWbdqjgqaEyH0shFiSJrVB1+Qqi4Tk19ccU6Aug==} + engines: {node: '>=12.20'} + + queue-microtask@1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + + rc@1.2.8: + resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==} + hasBin: true + + read-package-up@11.0.0: + resolution: {integrity: sha512-MbgfoNPANMdb4oRBNg5eqLbB2t2r+o5Ua1pNt8BqGp4I0FJZhuVSOj3PaBPni4azWuSzEdNn2evevzVmEk1ohQ==} + engines: {node: '>=18'} + + read-pkg@9.0.1: + resolution: {integrity: sha512-9viLL4/n1BJUCT1NXVTdS1jtm80yDEgR5T4yCelII49Mbj0v1rZdKqj7zCiYdbB0CuCgdrvHcNogAKTFPBocFA==} + engines: {node: '>=18'} + + readable-stream@3.6.2: + resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==} + engines: {node: '>= 6'} + + rechoir@0.6.2: + resolution: {integrity: sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==} + engines: {node: '>= 0.10'} + + registry-auth-token@5.1.0: + resolution: {integrity: sha512-GdekYuwLXLxMuFTwAPg5UKGLW/UXzQrZvH/Zj791BQif5T05T0RsaLfHc9q3ZOKi7n+BoprPD9mJ0O0k4xzUlw==} + engines: {node: '>=14'} + + registry-url@6.0.1: + resolution: {integrity: sha512-+crtS5QjFRqFCoQmvGduwYWEBng99ZvmFvF+cUJkGYF1L1BfU8C6Zp9T7f5vPAwyLkUExpvK+ANVZmGU49qi4Q==} + engines: {node: '>=12'} + + release-it@18.1.2: + resolution: {integrity: sha512-HOVRcicehCgoCsPFOu0iCBlEC8GDOoKS5s6ICkWmqomGEoZtRQ88D3RCsI5MciSU8vAQU+aWZW2z57NQNNb74w==} + engines: {node: ^20.9.0 || >=22.0.0} + hasBin: true + + resolve-from@4.0.0: + resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} + engines: {node: '>=4'} + + resolve@1.22.10: + resolution: {integrity: sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==} + engines: {node: '>= 0.4'} + hasBin: true + + restore-cursor@5.1.0: + resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} + engines: {node: '>=18'} + + retry@0.13.1: + resolution: {integrity: sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==} + engines: {node: '>= 4'} + + reusify@1.1.0: + resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==} + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + + run-applescript@7.0.0: + resolution: {integrity: sha512-9by4Ij99JUr/MCFBUkDKLWK3G9HVXmabKz9U5MlIAIuvuzkiOicRYs8XJLxX+xahD+mLiiCYDqF9dKAgtzKP1A==} + engines: {node: '>=18'} + + run-async@3.0.0: + resolution: {integrity: sha512-540WwVDOMxA6dN6We19EcT9sc3hkXPw5mzRNGM3FkdN/vtE9NFvj5lFAPNwUDmJjXidm3v7TC1cTE7t17Ulm1Q==} + engines: {node: '>=0.12.0'} + + run-parallel@1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + + rxjs@7.8.2: + resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==} + + safe-buffer@5.2.1: + resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + + semver@7.6.3: + resolution: {integrity: sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==} + engines: {node: '>=10'} + hasBin: true + + semver@7.7.1: + resolution: {integrity: sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==} + engines: {node: '>=10'} + hasBin: true + + shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + + shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + + shelljs@0.8.5: + resolution: {integrity: sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==} + engines: {node: '>=4'} + hasBin: true + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + slash@5.1.0: + resolution: {integrity: sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==} + engines: {node: '>=14.16'} + + smart-buffer@4.2.0: + resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==} + engines: {node: '>= 6.0.0', npm: '>= 3.0.0'} + + socks-proxy-agent@8.0.5: + resolution: {integrity: sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==} + engines: {node: '>= 14'} + + socks@2.8.4: + resolution: {integrity: sha512-D3YaD0aRxR3mEcqnidIs7ReYJFVzWdd6fXJYUM8ixcQcJRGTka/b3saV0KflYhyVJXKhb947GndU35SxYNResQ==} + engines: {node: '>= 10.0.0', npm: '>= 3.0.0'} + + source-map@0.6.1: + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} + engines: {node: '>=0.10.0'} + + spdx-correct@3.2.0: + resolution: {integrity: sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==} + + spdx-exceptions@2.5.0: + resolution: {integrity: sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==} + + spdx-expression-parse@3.0.1: + resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==} + + spdx-license-ids@3.0.21: + resolution: {integrity: sha512-Bvg/8F5XephndSK3JffaRqdT+gyhfqIPwDHpX80tJrF8QQRYMo8sNMeaZ2Dp5+jhwKnUmIOyFFQfHRkjJm5nXg==} + + sprintf-js@1.1.3: + resolution: {integrity: sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==} + + stdin-discarder@0.2.2: + resolution: {integrity: sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==} + engines: {node: '>=18'} + + string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + + string-width@7.2.0: + resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==} + engines: {node: '>=18'} + + string_decoder@1.3.0: + resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} + + strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + + strip-ansi@7.1.0: + resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} + engines: {node: '>=12'} + + strip-final-newline@3.0.0: + resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==} + engines: {node: '>=12'} + + strip-final-newline@4.0.0: + resolution: {integrity: sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==} + engines: {node: '>=18'} + + strip-json-comments@2.0.1: + resolution: {integrity: sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==} + engines: {node: '>=0.10.0'} + + stubborn-fs@1.2.5: + resolution: {integrity: sha512-H2N9c26eXjzL/S/K+i/RHHcFanE74dptvvjM8iwzwbVcWY/zjBbgRqF3K0DY4+OD+uTTASTBvDoxPDaPN02D7g==} + + supports-preserve-symlinks-flag@1.0.0: + resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} + engines: {node: '>= 0.4'} + + tmp@0.0.33: + resolution: {integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==} + engines: {node: '>=0.6.0'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + + tslib@2.8.1: + resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + + type-fest@0.21.3: + resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==} + engines: {node: '>=10'} + + type-fest@2.19.0: + resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==} + engines: {node: '>=12.20'} + + type-fest@4.37.0: + resolution: {integrity: sha512-S/5/0kFftkq27FPNye0XM1e2NsnoD/3FS+pBmbjmmtLT6I+i344KoOf7pvXreaFsDamWeaJX55nczA1m5PsBDg==} + engines: {node: '>=16'} + + typedarray@0.0.6: + resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==} + + uglify-js@3.19.3: + resolution: {integrity: sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==} + engines: {node: '>=0.8.0'} + hasBin: true + + undici-types@6.20.0: + resolution: {integrity: sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==} + + undici@6.21.1: + resolution: {integrity: sha512-q/1rj5D0/zayJB2FraXdaWxbhWiNKDvu8naDT2dl1yTlvJp4BLtOcp2a5BvgGNQpYYJzau7tf1WgKv3b+7mqpQ==} + engines: {node: '>=18.17'} + + undici@6.21.2: + resolution: {integrity: sha512-uROZWze0R0itiAKVPsYhFov9LxrPMHLMEQFszeI2gCN6bnIIZ8twzBCJcN2LJrBBLfrP0t1FW0g+JmKVl8Vk1g==} + engines: {node: '>=18.17'} + + unicorn-magic@0.1.0: + resolution: {integrity: sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==} + engines: {node: '>=18'} + + unicorn-magic@0.3.0: + resolution: {integrity: sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==} + engines: {node: '>=18'} + + universal-user-agent@7.0.2: + resolution: {integrity: sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==} + + update-notifier@7.3.1: + resolution: {integrity: sha512-+dwUY4L35XFYEzE+OAL3sarJdUioVovq+8f7lcIJ7wnmnYQV5UD1Y/lcwaMSyaQ6Bj3JMj1XSTjZbNLHn/19yA==} + engines: {node: '>=18'} + + url-join@5.0.0: + resolution: {integrity: sha512-n2huDr9h9yzd6exQVnH/jU5mr+Pfx08LRXXZhkLLetAMESRj+anQsTAh940iMrIetKAmry9coFuZQ2jY8/p3WA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + util-deprecate@1.0.2: + resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} + + validate-npm-package-license@3.0.4: + resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==} + + whatwg-encoding@3.1.1: + resolution: {integrity: sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==} + engines: {node: '>=18'} + + whatwg-mimetype@4.0.0: + resolution: {integrity: sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==} + engines: {node: '>=18'} + + when-exit@2.1.4: + resolution: {integrity: sha512-4rnvd3A1t16PWzrBUcSDZqcAmsUIy4minDXT/CZ8F2mVDgd65i4Aalimgz1aQkRGU0iH5eT5+6Rx2TK8o443Pg==} + + which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + + widest-line@5.0.0: + resolution: {integrity: sha512-c9bZp7b5YtRj2wOe6dlj32MK+Bx/M/d+9VB2SHM1OtsUHR0aV0tdP6DWh/iMt0kWi1t5g1Iudu6hQRNd1A4PVA==} + engines: {node: '>=18'} + + wildcard-match@5.1.4: + resolution: {integrity: sha512-wldeCaczs8XXq7hj+5d/F38JE2r7EXgb6WQDM84RVwxy81T/sxB5e9+uZLK9Q9oNz1mlvjut+QtvgaOQFPVq/g==} + + windows-release@6.0.1: + resolution: {integrity: sha512-MS3BzG8QK33dAyqwxfYJCJ03arkwKaddUOvvnnlFdXLudflsQF6I8yAxrLBeQk4yO8wjdH/+ax0YzxJEDrOftg==} + engines: {node: '>=18'} + + wordwrap@1.0.0: + resolution: {integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==} + + wrap-ansi@6.2.0: + resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==} + engines: {node: '>=8'} + + wrap-ansi@9.0.0: + resolution: {integrity: sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==} + engines: {node: '>=18'} + + wrappy@1.0.2: + resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} + + xdg-basedir@5.1.0: + resolution: {integrity: sha512-GCPAHLvrIH13+c0SuacwvRYj2SxJXQ4kaVTT5xgL3kPrz56XxkF21IGhjSE1+W0aw7gpBWRGXLCPnPby6lSpmQ==} + engines: {node: '>=12'} + + yargs-parser@21.1.1: + resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} + engines: {node: '>=12'} + + yoctocolors-cjs@2.1.2: + resolution: {integrity: sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA==} + engines: {node: '>=18'} + + yoctocolors@2.1.1: + resolution: {integrity: sha512-GQHQqAopRhwU8Kt1DDM8NjibDXHC8eoh1erhGAJPEyveY9qqVeXvVikNKrDz69sHowPMorbPUrH/mx8c50eiBQ==} + engines: {node: '>=18'} + +snapshots: + + '@babel/code-frame@7.26.2': + dependencies: + '@babel/helper-validator-identifier': 7.25.9 + js-tokens: 4.0.0 + picocolors: 1.1.1 + + '@babel/helper-validator-identifier@7.25.9': {} + + '@conventional-changelog/git-client@1.0.1(conventional-commits-filter@5.0.0)(conventional-commits-parser@6.1.0)': + dependencies: + '@types/semver': 7.5.8 + semver: 7.7.1 + optionalDependencies: + conventional-commits-filter: 5.0.0 + conventional-commits-parser: 6.1.0 + + '@hutson/parse-repository-url@5.0.0': {} + + '@iarna/toml@2.2.5': {} + + '@iarna/toml@3.0.0': {} + + '@inquirer/checkbox@4.1.4(@types/node@22.13.10)': + dependencies: + '@inquirer/core': 10.1.9(@types/node@22.13.10) + '@inquirer/figures': 1.0.11 + '@inquirer/type': 3.0.5(@types/node@22.13.10) + ansi-escapes: 4.3.2 + yoctocolors-cjs: 2.1.2 + optionalDependencies: + '@types/node': 22.13.10 + + '@inquirer/confirm@5.1.8(@types/node@22.13.10)': + dependencies: + '@inquirer/core': 10.1.9(@types/node@22.13.10) + '@inquirer/type': 3.0.5(@types/node@22.13.10) + optionalDependencies: + '@types/node': 22.13.10 + + '@inquirer/core@10.1.9(@types/node@22.13.10)': + dependencies: + '@inquirer/figures': 1.0.11 + '@inquirer/type': 3.0.5(@types/node@22.13.10) + ansi-escapes: 4.3.2 + cli-width: 4.1.0 + mute-stream: 2.0.0 + signal-exit: 4.1.0 + wrap-ansi: 6.2.0 + yoctocolors-cjs: 2.1.2 + optionalDependencies: + '@types/node': 22.13.10 + + '@inquirer/editor@4.2.9(@types/node@22.13.10)': + dependencies: + '@inquirer/core': 10.1.9(@types/node@22.13.10) + '@inquirer/type': 3.0.5(@types/node@22.13.10) + external-editor: 3.1.0 + optionalDependencies: + '@types/node': 22.13.10 + + '@inquirer/expand@4.0.11(@types/node@22.13.10)': + dependencies: + '@inquirer/core': 10.1.9(@types/node@22.13.10) + '@inquirer/type': 3.0.5(@types/node@22.13.10) + yoctocolors-cjs: 2.1.2 + optionalDependencies: + '@types/node': 22.13.10 + + '@inquirer/figures@1.0.11': {} + + '@inquirer/input@4.1.8(@types/node@22.13.10)': + dependencies: + '@inquirer/core': 10.1.9(@types/node@22.13.10) + '@inquirer/type': 3.0.5(@types/node@22.13.10) + optionalDependencies: + '@types/node': 22.13.10 + + '@inquirer/number@3.0.11(@types/node@22.13.10)': + dependencies: + '@inquirer/core': 10.1.9(@types/node@22.13.10) + '@inquirer/type': 3.0.5(@types/node@22.13.10) + optionalDependencies: + '@types/node': 22.13.10 + + '@inquirer/password@4.0.11(@types/node@22.13.10)': + dependencies: + '@inquirer/core': 10.1.9(@types/node@22.13.10) + '@inquirer/type': 3.0.5(@types/node@22.13.10) + ansi-escapes: 4.3.2 + optionalDependencies: + '@types/node': 22.13.10 + + '@inquirer/prompts@7.4.0(@types/node@22.13.10)': + dependencies: + '@inquirer/checkbox': 4.1.4(@types/node@22.13.10) + '@inquirer/confirm': 5.1.8(@types/node@22.13.10) + '@inquirer/editor': 4.2.9(@types/node@22.13.10) + '@inquirer/expand': 4.0.11(@types/node@22.13.10) + '@inquirer/input': 4.1.8(@types/node@22.13.10) + '@inquirer/number': 3.0.11(@types/node@22.13.10) + '@inquirer/password': 4.0.11(@types/node@22.13.10) + '@inquirer/rawlist': 4.0.11(@types/node@22.13.10) + '@inquirer/search': 3.0.11(@types/node@22.13.10) + '@inquirer/select': 4.1.0(@types/node@22.13.10) + optionalDependencies: + '@types/node': 22.13.10 + + '@inquirer/rawlist@4.0.11(@types/node@22.13.10)': + dependencies: + '@inquirer/core': 10.1.9(@types/node@22.13.10) + '@inquirer/type': 3.0.5(@types/node@22.13.10) + yoctocolors-cjs: 2.1.2 + optionalDependencies: + '@types/node': 22.13.10 + + '@inquirer/search@3.0.11(@types/node@22.13.10)': + dependencies: + '@inquirer/core': 10.1.9(@types/node@22.13.10) + '@inquirer/figures': 1.0.11 + '@inquirer/type': 3.0.5(@types/node@22.13.10) + yoctocolors-cjs: 2.1.2 + optionalDependencies: + '@types/node': 22.13.10 + + '@inquirer/select@4.1.0(@types/node@22.13.10)': + dependencies: + '@inquirer/core': 10.1.9(@types/node@22.13.10) + '@inquirer/figures': 1.0.11 + '@inquirer/type': 3.0.5(@types/node@22.13.10) + ansi-escapes: 4.3.2 + yoctocolors-cjs: 2.1.2 + optionalDependencies: + '@types/node': 22.13.10 + + '@inquirer/type@3.0.5(@types/node@22.13.10)': + optionalDependencies: + '@types/node': 22.13.10 + + '@nodelib/fs.scandir@2.1.5': + dependencies: + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 + + '@nodelib/fs.stat@2.0.5': {} + + '@nodelib/fs.walk@1.2.8': + dependencies: + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.19.1 + + '@octokit/auth-token@5.1.2': {} + + '@octokit/core@6.1.4': + dependencies: + '@octokit/auth-token': 5.1.2 + '@octokit/graphql': 8.2.1 + '@octokit/request': 9.2.2 + '@octokit/request-error': 6.1.7 + '@octokit/types': 13.10.0 + before-after-hook: 3.0.2 + universal-user-agent: 7.0.2 + + '@octokit/endpoint@10.1.3': + dependencies: + '@octokit/types': 13.10.0 + universal-user-agent: 7.0.2 + + '@octokit/graphql@8.2.1': + dependencies: + '@octokit/request': 9.2.2 + '@octokit/types': 13.10.0 + universal-user-agent: 7.0.2 + + '@octokit/openapi-types@24.2.0': {} + + '@octokit/plugin-paginate-rest@11.6.0(@octokit/core@6.1.4)': + dependencies: + '@octokit/core': 6.1.4 + '@octokit/types': 13.10.0 + + '@octokit/plugin-request-log@5.3.1(@octokit/core@6.1.4)': + dependencies: + '@octokit/core': 6.1.4 + + '@octokit/plugin-rest-endpoint-methods@13.5.0(@octokit/core@6.1.4)': + dependencies: + '@octokit/core': 6.1.4 + '@octokit/types': 13.10.0 + + '@octokit/request-error@6.1.7': + dependencies: + '@octokit/types': 13.10.0 + + '@octokit/request@9.2.2': + dependencies: + '@octokit/endpoint': 10.1.3 + '@octokit/request-error': 6.1.7 + '@octokit/types': 13.10.0 + fast-content-type-parse: 2.0.1 + universal-user-agent: 7.0.2 + + '@octokit/rest@21.0.2': + dependencies: + '@octokit/core': 6.1.4 + '@octokit/plugin-paginate-rest': 11.6.0(@octokit/core@6.1.4) + '@octokit/plugin-request-log': 5.3.1(@octokit/core@6.1.4) + '@octokit/plugin-rest-endpoint-methods': 13.5.0(@octokit/core@6.1.4) + + '@octokit/types@13.10.0': + dependencies: + '@octokit/openapi-types': 24.2.0 + + '@pnpm/config.env-replace@1.1.0': {} + + '@pnpm/network.ca-file@1.0.2': + dependencies: + graceful-fs: 4.2.10 + + '@pnpm/npm-conf@2.3.1': + dependencies: + '@pnpm/config.env-replace': 1.1.0 + '@pnpm/network.ca-file': 1.0.2 + config-chain: 1.1.13 + + '@release-it/bumper@7.0.2(release-it@18.1.2(@types/node@22.13.10))': + dependencies: + '@iarna/toml': 3.0.0 + cheerio: 1.0.0 + detect-indent: 7.0.1 + fast-glob: 3.3.3 + ini: 5.0.0 + js-yaml: 4.1.0 + lodash-es: 4.17.21 + release-it: 18.1.2(@types/node@22.13.10) + semver: 7.7.1 + + '@release-it/conventional-changelog@10.0.0(conventional-commits-filter@5.0.0)(conventional-commits-parser@6.1.0)(release-it@18.1.2(@types/node@22.13.10))': + dependencies: + concat-stream: 2.0.0 + conventional-changelog: 6.0.0(conventional-commits-filter@5.0.0) + conventional-recommended-bump: 10.0.0 + git-semver-tags: 8.0.0(conventional-commits-filter@5.0.0)(conventional-commits-parser@6.1.0) + release-it: 18.1.2(@types/node@22.13.10) + semver: 7.7.1 + transitivePeerDependencies: + - conventional-commits-filter + - conventional-commits-parser + + '@sec-ant/readable-stream@0.4.1': {} + + '@sindresorhus/merge-streams@2.3.0': {} + + '@sindresorhus/merge-streams@4.0.0': {} + + '@tootallnate/quickjs-emscripten@0.23.0': {} + + '@types/node@22.13.10': + dependencies: + undici-types: 6.20.0 + + '@types/normalize-package-data@2.4.4': {} + + '@types/parse-path@7.0.3': {} + + '@types/semver@7.5.8': {} + + add-stream@1.0.0: {} + + agent-base@7.1.3: {} + + ansi-align@3.0.1: + dependencies: + string-width: 4.2.3 + + ansi-escapes@4.3.2: + dependencies: + type-fest: 0.21.3 + + ansi-regex@5.0.1: {} + + ansi-regex@6.1.0: {} + + ansi-styles@4.3.0: + dependencies: + color-convert: 2.0.1 + + ansi-styles@6.2.1: {} + + argparse@2.0.1: {} + + array-ify@1.0.0: {} + + ast-types@0.13.4: + dependencies: + tslib: 2.8.1 + + async-retry@1.3.3: + dependencies: + retry: 0.13.1 + + atomically@2.0.3: + dependencies: + stubborn-fs: 1.2.5 + when-exit: 2.1.4 + + balanced-match@1.0.2: {} + + basic-ftp@5.0.5: {} + + before-after-hook@3.0.2: {} + + boolbase@1.0.0: {} + + boxen@8.0.1: + dependencies: + ansi-align: 3.0.1 + camelcase: 8.0.0 + chalk: 5.4.1 + cli-boxes: 3.0.0 + string-width: 7.2.0 + type-fest: 4.37.0 + widest-line: 5.0.0 + wrap-ansi: 9.0.0 + + brace-expansion@1.1.11: + dependencies: + balanced-match: 1.0.2 + concat-map: 0.0.1 + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + + buffer-from@1.1.2: {} + + bundle-name@4.1.0: + dependencies: + run-applescript: 7.0.0 + + callsites@3.1.0: {} + + camelcase@8.0.0: {} + + chalk@5.4.1: {} + + chardet@0.7.0: {} + + cheerio-select@2.1.0: + dependencies: + boolbase: 1.0.0 + css-select: 5.1.0 + css-what: 6.1.0 + domelementtype: 2.3.0 + domhandler: 5.0.3 + domutils: 3.2.2 + + cheerio@1.0.0: + dependencies: + cheerio-select: 2.1.0 + dom-serializer: 2.0.0 + domhandler: 5.0.3 + domutils: 3.2.2 + encoding-sniffer: 0.2.0 + htmlparser2: 9.1.0 + parse5: 7.2.1 + parse5-htmlparser2-tree-adapter: 7.1.0 + parse5-parser-stream: 7.1.2 + undici: 6.21.2 + whatwg-mimetype: 4.0.0 + + ci-info@4.2.0: {} + + cli-boxes@3.0.0: {} + + cli-cursor@5.0.0: + dependencies: + restore-cursor: 5.1.0 + + cli-spinners@2.9.2: {} + + cli-width@4.1.0: {} + + color-convert@2.0.1: + dependencies: + color-name: 1.1.4 + + color-name@1.1.4: {} + + compare-func@2.0.0: + dependencies: + array-ify: 1.0.0 + dot-prop: 5.3.0 + + concat-map@0.0.1: {} + + concat-stream@2.0.0: + dependencies: + buffer-from: 1.1.2 + inherits: 2.0.4 + readable-stream: 3.6.2 + typedarray: 0.0.6 + + config-chain@1.1.13: + dependencies: + ini: 1.3.8 + proto-list: 1.2.4 + + configstore@7.0.0: + dependencies: + atomically: 2.0.3 + dot-prop: 9.0.0 + graceful-fs: 4.2.11 + xdg-basedir: 5.1.0 + + conventional-changelog-angular@8.0.0: + dependencies: + compare-func: 2.0.0 + + conventional-changelog-atom@5.0.0: {} + + conventional-changelog-codemirror@5.0.0: {} + + conventional-changelog-conventionalcommits@8.0.0: + dependencies: + compare-func: 2.0.0 + + conventional-changelog-core@8.0.0(conventional-commits-filter@5.0.0): + dependencies: + '@hutson/parse-repository-url': 5.0.0 + add-stream: 1.0.0 + conventional-changelog-writer: 8.0.1 + conventional-commits-parser: 6.1.0 + git-raw-commits: 5.0.0(conventional-commits-filter@5.0.0)(conventional-commits-parser@6.1.0) + git-semver-tags: 8.0.0(conventional-commits-filter@5.0.0)(conventional-commits-parser@6.1.0) + hosted-git-info: 7.0.2 + normalize-package-data: 6.0.2 + read-package-up: 11.0.0 + read-pkg: 9.0.1 + transitivePeerDependencies: + - conventional-commits-filter + + conventional-changelog-ember@5.0.0: {} + + conventional-changelog-eslint@6.0.0: {} + + conventional-changelog-express@5.0.0: {} + + conventional-changelog-jquery@6.0.0: {} + + conventional-changelog-jshint@5.0.0: + dependencies: + compare-func: 2.0.0 + + conventional-changelog-preset-loader@5.0.0: {} + + conventional-changelog-writer@8.0.1: + dependencies: + conventional-commits-filter: 5.0.0 + handlebars: 4.7.8 + meow: 13.2.0 + semver: 7.7.1 + + conventional-changelog@6.0.0(conventional-commits-filter@5.0.0): + dependencies: + conventional-changelog-angular: 8.0.0 + conventional-changelog-atom: 5.0.0 + conventional-changelog-codemirror: 5.0.0 + conventional-changelog-conventionalcommits: 8.0.0 + conventional-changelog-core: 8.0.0(conventional-commits-filter@5.0.0) + conventional-changelog-ember: 5.0.0 + conventional-changelog-eslint: 6.0.0 + conventional-changelog-express: 5.0.0 + conventional-changelog-jquery: 6.0.0 + conventional-changelog-jshint: 5.0.0 + conventional-changelog-preset-loader: 5.0.0 + transitivePeerDependencies: + - conventional-commits-filter + + conventional-commits-filter@5.0.0: {} + + conventional-commits-parser@6.1.0: + dependencies: + meow: 13.2.0 + + conventional-recommended-bump@10.0.0: + dependencies: + '@conventional-changelog/git-client': 1.0.1(conventional-commits-filter@5.0.0)(conventional-commits-parser@6.1.0) + conventional-changelog-preset-loader: 5.0.0 + conventional-commits-filter: 5.0.0 + conventional-commits-parser: 6.1.0 + meow: 13.2.0 + + cosmiconfig@9.0.0: + dependencies: + env-paths: 2.2.1 + import-fresh: 3.3.1 + js-yaml: 4.1.0 + parse-json: 5.2.0 + + cross-spawn@7.0.6: + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + + css-select@5.1.0: + dependencies: + boolbase: 1.0.0 + css-what: 6.1.0 + domhandler: 5.0.3 + domutils: 3.2.2 + nth-check: 2.1.1 + + css-what@6.1.0: {} + + data-uri-to-buffer@6.0.2: {} + + debug@4.4.0: + dependencies: + ms: 2.1.3 + + deep-extend@0.6.0: {} + + default-browser-id@5.0.0: {} + + default-browser@5.2.1: + dependencies: + bundle-name: 4.1.0 + default-browser-id: 5.0.0 + + define-lazy-prop@3.0.0: {} + + degenerator@5.0.1: + dependencies: + ast-types: 0.13.4 + escodegen: 2.1.0 + esprima: 4.0.1 + + detect-indent@7.0.1: {} + + dom-serializer@2.0.0: + dependencies: + domelementtype: 2.3.0 + domhandler: 5.0.3 + entities: 4.5.0 + + domelementtype@2.3.0: {} + + domhandler@5.0.3: + dependencies: + domelementtype: 2.3.0 + + domutils@3.2.2: + dependencies: + dom-serializer: 2.0.0 + domelementtype: 2.3.0 + domhandler: 5.0.3 + + dot-prop@5.3.0: + dependencies: + is-obj: 2.0.0 + + dot-prop@9.0.0: + dependencies: + type-fest: 4.37.0 + + emoji-regex@10.4.0: {} + + emoji-regex@8.0.0: {} + + encoding-sniffer@0.2.0: + dependencies: + iconv-lite: 0.6.3 + whatwg-encoding: 3.1.1 + + entities@4.5.0: {} + + env-paths@2.2.1: {} + + error-ex@1.3.2: + dependencies: + is-arrayish: 0.2.1 + + escape-goat@4.0.0: {} + + escodegen@2.1.0: + dependencies: + esprima: 4.0.1 + estraverse: 5.3.0 + esutils: 2.0.3 + optionalDependencies: + source-map: 0.6.1 + + esprima@4.0.1: {} + + estraverse@5.3.0: {} + + esutils@2.0.3: {} + + execa@8.0.1: + dependencies: + cross-spawn: 7.0.6 + get-stream: 8.0.1 + human-signals: 5.0.0 + is-stream: 3.0.0 + merge-stream: 2.0.0 + npm-run-path: 5.3.0 + onetime: 6.0.0 + signal-exit: 4.1.0 + strip-final-newline: 3.0.0 + + execa@9.5.2: + dependencies: + '@sindresorhus/merge-streams': 4.0.0 + cross-spawn: 7.0.6 + figures: 6.1.0 + get-stream: 9.0.1 + human-signals: 8.0.0 + is-plain-obj: 4.1.0 + is-stream: 4.0.1 + npm-run-path: 6.0.0 + pretty-ms: 9.2.0 + signal-exit: 4.1.0 + strip-final-newline: 4.0.0 + yoctocolors: 2.1.1 + + external-editor@3.1.0: + dependencies: + chardet: 0.7.0 + iconv-lite: 0.4.24 + tmp: 0.0.33 + + fast-content-type-parse@2.0.1: {} + + fast-glob@3.3.3: + dependencies: + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.8 + + fastq@1.19.1: + dependencies: + reusify: 1.1.0 + + figures@6.1.0: + dependencies: + is-unicode-supported: 2.1.0 + + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + + find-up-simple@1.0.1: {} + + fs.realpath@1.0.0: {} + + function-bind@1.1.2: {} + + get-east-asian-width@1.3.0: {} + + get-stream@8.0.1: {} + + get-stream@9.0.1: + dependencies: + '@sec-ant/readable-stream': 0.4.1 + is-stream: 4.0.1 + + get-uri@6.0.4: + dependencies: + basic-ftp: 5.0.5 + data-uri-to-buffer: 6.0.2 + debug: 4.4.0 + transitivePeerDependencies: + - supports-color + + git-raw-commits@5.0.0(conventional-commits-filter@5.0.0)(conventional-commits-parser@6.1.0): + dependencies: + '@conventional-changelog/git-client': 1.0.1(conventional-commits-filter@5.0.0)(conventional-commits-parser@6.1.0) + meow: 13.2.0 + transitivePeerDependencies: + - conventional-commits-filter + - conventional-commits-parser + + git-semver-tags@8.0.0(conventional-commits-filter@5.0.0)(conventional-commits-parser@6.1.0): + dependencies: + '@conventional-changelog/git-client': 1.0.1(conventional-commits-filter@5.0.0)(conventional-commits-parser@6.1.0) + meow: 13.2.0 + transitivePeerDependencies: + - conventional-commits-filter + - conventional-commits-parser + + git-up@8.0.1: + dependencies: + is-ssh: 1.4.1 + parse-url: 9.2.0 + + git-url-parse@16.0.0: + dependencies: + git-up: 8.0.1 + + glob-parent@5.1.2: + dependencies: + is-glob: 4.0.3 + + glob@7.2.3: + dependencies: + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.2 + once: 1.4.0 + path-is-absolute: 1.0.1 + + global-directory@4.0.1: + dependencies: + ini: 4.1.1 + + globby@14.0.2: + dependencies: + '@sindresorhus/merge-streams': 2.3.0 + fast-glob: 3.3.3 + ignore: 5.3.2 + path-type: 5.0.0 + slash: 5.1.0 + unicorn-magic: 0.1.0 + + graceful-fs@4.2.10: {} + + graceful-fs@4.2.11: {} + + handlebars@4.7.8: + dependencies: + minimist: 1.2.8 + neo-async: 2.6.2 + source-map: 0.6.1 + wordwrap: 1.0.0 + optionalDependencies: + uglify-js: 3.19.3 + + hasown@2.0.2: + dependencies: + function-bind: 1.1.2 + + hosted-git-info@7.0.2: + dependencies: + lru-cache: 10.4.3 + + htmlparser2@9.1.0: + dependencies: + domelementtype: 2.3.0 + domhandler: 5.0.3 + domutils: 3.2.2 + entities: 4.5.0 + + http-proxy-agent@7.0.2: + dependencies: + agent-base: 7.1.3 + debug: 4.4.0 + transitivePeerDependencies: + - supports-color + + https-proxy-agent@7.0.6: + dependencies: + agent-base: 7.1.3 + debug: 4.4.0 + transitivePeerDependencies: + - supports-color + + human-signals@5.0.0: {} + + human-signals@8.0.0: {} + + iconv-lite@0.4.24: + dependencies: + safer-buffer: 2.1.2 + + iconv-lite@0.6.3: + dependencies: + safer-buffer: 2.1.2 + + ignore@5.3.2: {} + + import-fresh@3.3.1: + dependencies: + parent-module: 1.0.1 + resolve-from: 4.0.0 + + index-to-position@0.1.2: {} + + inflight@1.0.6: + dependencies: + once: 1.4.0 + wrappy: 1.0.2 + + inherits@2.0.4: {} + + ini@1.3.8: {} + + ini@4.1.1: {} + + ini@5.0.0: {} + + inquirer@12.3.0(@types/node@22.13.10): + dependencies: + '@inquirer/core': 10.1.9(@types/node@22.13.10) + '@inquirer/prompts': 7.4.0(@types/node@22.13.10) + '@inquirer/type': 3.0.5(@types/node@22.13.10) + '@types/node': 22.13.10 + ansi-escapes: 4.3.2 + mute-stream: 2.0.0 + run-async: 3.0.0 + rxjs: 7.8.2 + + interpret@1.4.0: {} + + ip-address@9.0.5: + dependencies: + jsbn: 1.1.0 + sprintf-js: 1.1.3 + + is-arrayish@0.2.1: {} + + is-core-module@2.16.1: + dependencies: + hasown: 2.0.2 + + is-docker@3.0.0: {} + + is-extglob@2.1.1: {} + + is-fullwidth-code-point@3.0.0: {} + + is-glob@4.0.3: + dependencies: + is-extglob: 2.1.1 + + is-in-ci@1.0.0: {} + + is-inside-container@1.0.0: + dependencies: + is-docker: 3.0.0 + + is-installed-globally@1.0.0: + dependencies: + global-directory: 4.0.1 + is-path-inside: 4.0.0 + + is-interactive@2.0.0: {} + + is-npm@6.0.0: {} + + is-number@7.0.0: {} + + is-obj@2.0.0: {} + + is-path-inside@4.0.0: {} + + is-plain-obj@4.1.0: {} + + is-ssh@1.4.1: + dependencies: + protocols: 2.0.2 + + is-stream@3.0.0: {} + + is-stream@4.0.1: {} + + is-unicode-supported@1.3.0: {} + + is-unicode-supported@2.1.0: {} + + is-wsl@3.1.0: + dependencies: + is-inside-container: 1.0.0 + + isexe@2.0.0: {} + + issue-parser@7.0.1: + dependencies: + lodash.capitalize: 4.2.1 + lodash.escaperegexp: 4.1.2 + lodash.isplainobject: 4.0.6 + lodash.isstring: 4.0.1 + lodash.uniqby: 4.7.0 + + js-tokens@4.0.0: {} + + js-yaml@4.1.0: + dependencies: + argparse: 2.0.1 + + jsbn@1.1.0: {} + + json-parse-even-better-errors@2.3.1: {} + + ky@1.7.5: {} + + latest-version@9.0.0: + dependencies: + package-json: 10.0.1 + + lines-and-columns@1.2.4: {} + + lodash-es@4.17.21: {} + + lodash.capitalize@4.2.1: {} + + lodash.escaperegexp@4.1.2: {} + + lodash.isplainobject@4.0.6: {} + + lodash.isstring@4.0.1: {} + + lodash.uniqby@4.7.0: {} + + lodash@4.17.21: {} + + log-symbols@6.0.0: + dependencies: + chalk: 5.4.1 + is-unicode-supported: 1.3.0 + + lru-cache@10.4.3: {} + + lru-cache@7.18.3: {} + + macos-release@3.3.0: {} + + meow@13.2.0: {} + + merge-stream@2.0.0: {} + + merge2@1.4.1: {} + + micromatch@4.0.8: + dependencies: + braces: 3.0.3 + picomatch: 2.3.1 + + mime-db@1.52.0: {} + + mime-types@2.1.35: + dependencies: + mime-db: 1.52.0 + + mimic-fn@4.0.0: {} + + mimic-function@5.0.1: {} + + minimatch@3.1.2: + dependencies: + brace-expansion: 1.1.11 + + minimist@1.2.8: {} + + ms@2.1.3: {} + + mute-stream@2.0.0: {} + + neo-async@2.6.2: {} + + netmask@2.0.2: {} + + new-github-release-url@2.0.0: + dependencies: + type-fest: 2.19.0 + + normalize-package-data@6.0.2: + dependencies: + hosted-git-info: 7.0.2 + semver: 7.7.1 + validate-npm-package-license: 3.0.4 + + npm-run-path@5.3.0: + dependencies: + path-key: 4.0.0 + + npm-run-path@6.0.0: + dependencies: + path-key: 4.0.0 + unicorn-magic: 0.3.0 + + nth-check@2.1.1: + dependencies: + boolbase: 1.0.0 + + once@1.4.0: + dependencies: + wrappy: 1.0.2 + + onetime@6.0.0: + dependencies: + mimic-fn: 4.0.0 + + onetime@7.0.0: + dependencies: + mimic-function: 5.0.1 + + open@10.1.0: + dependencies: + default-browser: 5.2.1 + define-lazy-prop: 3.0.0 + is-inside-container: 1.0.0 + is-wsl: 3.1.0 + + ora@8.1.1: + dependencies: + chalk: 5.4.1 + cli-cursor: 5.0.0 + cli-spinners: 2.9.2 + is-interactive: 2.0.0 + is-unicode-supported: 2.1.0 + log-symbols: 6.0.0 + stdin-discarder: 0.2.2 + string-width: 7.2.0 + strip-ansi: 7.1.0 + + os-name@6.0.0: + dependencies: + macos-release: 3.3.0 + windows-release: 6.0.1 + + os-tmpdir@1.0.2: {} + + pac-proxy-agent@7.2.0: + dependencies: + '@tootallnate/quickjs-emscripten': 0.23.0 + agent-base: 7.1.3 + debug: 4.4.0 + get-uri: 6.0.4 + http-proxy-agent: 7.0.2 + https-proxy-agent: 7.0.6 + pac-resolver: 7.0.1 + socks-proxy-agent: 8.0.5 + transitivePeerDependencies: + - supports-color + + pac-resolver@7.0.1: + dependencies: + degenerator: 5.0.1 + netmask: 2.0.2 + + package-json@10.0.1: + dependencies: + ky: 1.7.5 + registry-auth-token: 5.1.0 + registry-url: 6.0.1 + semver: 7.6.3 + + parent-module@1.0.1: + dependencies: + callsites: 3.1.0 + + parse-json@5.2.0: + dependencies: + '@babel/code-frame': 7.26.2 + error-ex: 1.3.2 + json-parse-even-better-errors: 2.3.1 + lines-and-columns: 1.2.4 + + parse-json@8.1.0: + dependencies: + '@babel/code-frame': 7.26.2 + index-to-position: 0.1.2 + type-fest: 4.37.0 + + parse-ms@4.0.0: {} + + parse-path@7.0.1: + dependencies: + protocols: 2.0.2 + + parse-url@9.2.0: + dependencies: + '@types/parse-path': 7.0.3 + parse-path: 7.0.1 + + parse5-htmlparser2-tree-adapter@7.1.0: + dependencies: + domhandler: 5.0.3 + parse5: 7.2.1 + + parse5-parser-stream@7.1.2: + dependencies: + parse5: 7.2.1 + + parse5@7.2.1: + dependencies: + entities: 4.5.0 + + path-is-absolute@1.0.1: {} + + path-key@3.1.1: {} + + path-key@4.0.0: {} + + path-parse@1.0.7: {} + + path-type@5.0.0: {} + + picocolors@1.1.1: {} + + picomatch@2.3.1: {} + + pretty-ms@9.2.0: + dependencies: + parse-ms: 4.0.0 + + proto-list@1.2.4: {} + + protocols@2.0.2: {} + + proxy-agent@6.5.0: + dependencies: + agent-base: 7.1.3 + debug: 4.4.0 + http-proxy-agent: 7.0.2 + https-proxy-agent: 7.0.6 + lru-cache: 7.18.3 + pac-proxy-agent: 7.2.0 + proxy-from-env: 1.1.0 + socks-proxy-agent: 8.0.5 + transitivePeerDependencies: + - supports-color + + proxy-from-env@1.1.0: {} + + pupa@3.1.0: + dependencies: + escape-goat: 4.0.0 + + queue-microtask@1.2.3: {} + + rc@1.2.8: + dependencies: + deep-extend: 0.6.0 + ini: 1.3.8 + minimist: 1.2.8 + strip-json-comments: 2.0.1 + + read-package-up@11.0.0: + dependencies: + find-up-simple: 1.0.1 + read-pkg: 9.0.1 + type-fest: 4.37.0 + + read-pkg@9.0.1: + dependencies: + '@types/normalize-package-data': 2.4.4 + normalize-package-data: 6.0.2 + parse-json: 8.1.0 + type-fest: 4.37.0 + unicorn-magic: 0.1.0 + + readable-stream@3.6.2: + dependencies: + inherits: 2.0.4 + string_decoder: 1.3.0 + util-deprecate: 1.0.2 + + rechoir@0.6.2: + dependencies: + resolve: 1.22.10 + + registry-auth-token@5.1.0: + dependencies: + '@pnpm/npm-conf': 2.3.1 + + registry-url@6.0.1: + dependencies: + rc: 1.2.8 + + release-it@18.1.2(@types/node@22.13.10): + dependencies: + '@iarna/toml': 2.2.5 + '@octokit/rest': 21.0.2 + async-retry: 1.3.3 + chalk: 5.4.1 + ci-info: 4.2.0 + cosmiconfig: 9.0.0 + execa: 9.5.2 + git-url-parse: 16.0.0 + globby: 14.0.2 + inquirer: 12.3.0(@types/node@22.13.10) + issue-parser: 7.0.1 + lodash: 4.17.21 + mime-types: 2.1.35 + new-github-release-url: 2.0.0 + open: 10.1.0 + ora: 8.1.1 + os-name: 6.0.0 + proxy-agent: 6.5.0 + semver: 7.6.3 + shelljs: 0.8.5 + undici: 6.21.1 + update-notifier: 7.3.1 + url-join: 5.0.0 + wildcard-match: 5.1.4 + yargs-parser: 21.1.1 + transitivePeerDependencies: + - '@types/node' + - supports-color + - typescript + + resolve-from@4.0.0: {} + + resolve@1.22.10: + dependencies: + is-core-module: 2.16.1 + path-parse: 1.0.7 + supports-preserve-symlinks-flag: 1.0.0 + + restore-cursor@5.1.0: + dependencies: + onetime: 7.0.0 + signal-exit: 4.1.0 + + retry@0.13.1: {} + + reusify@1.1.0: {} + + run-applescript@7.0.0: {} + + run-async@3.0.0: {} + + run-parallel@1.2.0: + dependencies: + queue-microtask: 1.2.3 + + rxjs@7.8.2: + dependencies: + tslib: 2.8.1 + + safe-buffer@5.2.1: {} + + safer-buffer@2.1.2: {} + + semver@7.6.3: {} + + semver@7.7.1: {} + + shebang-command@2.0.0: + dependencies: + shebang-regex: 3.0.0 + + shebang-regex@3.0.0: {} + + shelljs@0.8.5: + dependencies: + glob: 7.2.3 + interpret: 1.4.0 + rechoir: 0.6.2 + + signal-exit@4.1.0: {} + + slash@5.1.0: {} + + smart-buffer@4.2.0: {} + + socks-proxy-agent@8.0.5: + dependencies: + agent-base: 7.1.3 + debug: 4.4.0 + socks: 2.8.4 + transitivePeerDependencies: + - supports-color + + socks@2.8.4: + dependencies: + ip-address: 9.0.5 + smart-buffer: 4.2.0 + + source-map@0.6.1: {} + + spdx-correct@3.2.0: + dependencies: + spdx-expression-parse: 3.0.1 + spdx-license-ids: 3.0.21 + + spdx-exceptions@2.5.0: {} + + spdx-expression-parse@3.0.1: + dependencies: + spdx-exceptions: 2.5.0 + spdx-license-ids: 3.0.21 + + spdx-license-ids@3.0.21: {} + + sprintf-js@1.1.3: {} + + stdin-discarder@0.2.2: {} + + string-width@4.2.3: + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + + string-width@7.2.0: + dependencies: + emoji-regex: 10.4.0 + get-east-asian-width: 1.3.0 + strip-ansi: 7.1.0 + + string_decoder@1.3.0: + dependencies: + safe-buffer: 5.2.1 + + strip-ansi@6.0.1: + dependencies: + ansi-regex: 5.0.1 + + strip-ansi@7.1.0: + dependencies: + ansi-regex: 6.1.0 + + strip-final-newline@3.0.0: {} + + strip-final-newline@4.0.0: {} + + strip-json-comments@2.0.1: {} + + stubborn-fs@1.2.5: {} + + supports-preserve-symlinks-flag@1.0.0: {} + + tmp@0.0.33: + dependencies: + os-tmpdir: 1.0.2 + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + + tslib@2.8.1: {} + + type-fest@0.21.3: {} + + type-fest@2.19.0: {} + + type-fest@4.37.0: {} + + typedarray@0.0.6: {} + + uglify-js@3.19.3: + optional: true + + undici-types@6.20.0: {} + + undici@6.21.1: {} + + undici@6.21.2: {} + + unicorn-magic@0.1.0: {} + + unicorn-magic@0.3.0: {} + + universal-user-agent@7.0.2: {} + + update-notifier@7.3.1: + dependencies: + boxen: 8.0.1 + chalk: 5.4.1 + configstore: 7.0.0 + is-in-ci: 1.0.0 + is-installed-globally: 1.0.0 + is-npm: 6.0.0 + latest-version: 9.0.0 + pupa: 3.1.0 + semver: 7.6.3 + xdg-basedir: 5.1.0 + + url-join@5.0.0: {} + + util-deprecate@1.0.2: {} + + validate-npm-package-license@3.0.4: + dependencies: + spdx-correct: 3.2.0 + spdx-expression-parse: 3.0.1 + + whatwg-encoding@3.1.1: + dependencies: + iconv-lite: 0.6.3 + + whatwg-mimetype@4.0.0: {} + + when-exit@2.1.4: {} + + which@2.0.2: + dependencies: + isexe: 2.0.0 + + widest-line@5.0.0: + dependencies: + string-width: 7.2.0 + + wildcard-match@5.1.4: {} + + windows-release@6.0.1: + dependencies: + execa: 8.0.1 + + wordwrap@1.0.0: {} + + wrap-ansi@6.2.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + + wrap-ansi@9.0.0: + dependencies: + ansi-styles: 6.2.1 + string-width: 7.2.0 + strip-ansi: 7.1.0 + + wrappy@1.0.2: {} + + xdg-basedir@5.1.0: {} + + yargs-parser@21.1.1: {} + + yoctocolors-cjs@2.1.2: {} + + yoctocolors@2.1.1: {} diff --git a/site/plugins/loop/snippets/loop/app.php b/site/plugins/loop/snippets/loop/app.php new file mode 100644 index 0000000..a9e63ae --- /dev/null +++ b/site/plugins/loop/snippets/loop/app.php @@ -0,0 +1,74 @@ + Translations + * + */ +function getTranslations(): array +{ + $customLang = Options::language(); + + return [ + 'ui.comment.placeholder' => t('moinframe.loop.ui.comment.placeholder', 'Enter your comment...', $customLang), + 'ui.comment.submit' => t('moinframe.loop.ui.comment.submit', 'Submit', $customLang), + 'ui.comment.cancel' => t('moinframe.loop.ui.comment.cancel', 'Cancel', $customLang), + 'ui.comment.keyboardHint' => t('moinframe.loop.ui.comment.keyboardHint', '⌘+Enter or Ctrl+Enter to submit', $customLang), + 'ui.comment.maker.aria.label' => t('moinframe.loop.ui.comment.maker.aria.label', 'Jump to marker', $customLang), + 'ui.comment.summary.aria.label' => t('moinframe.loop.ui.comment.summary.aria.label', 'Comment by', $customLang), + 'ui.reply.aria.label' => t('moinframe.loop.ui.reply.aria.label', 'Reply by', $customLang), + 'ui.comment.replies.aria.label' => t('moinframe.loop.ui.comment.replies.aria.label', 'Show replies', $customLang), + 'ui.reply.placeholder' => t('moinframe.loop.ui.reply.placeholder', 'Write a reply...', $customLang), + 'ui.reply.submit' => t('moinframe.loop.ui.reply.submit', 'Reply', $customLang), + 'ui.panel.no.comments' => t('moinframe.loop.ui.panel.no.comments', 'No comments yet. Add your first comment to get started.', $customLang), + 'ui.header.browse.mode' => t('moinframe.loop.ui.header.browse.mode', 'Browse', $customLang), + 'ui.header.comment.mode' => t('moinframe.loop.ui.header.comment.mode', 'Comment', $customLang), + 'ui.header.aria.count' => t('moinframe.loop.ui.header.aria.count', 'unresolved comments', $customLang), + 'ui.welcome.guest.name.placeholder' => t('moinframe.loop.ui.welcome.guest.name.placeholder', 'Enter your name', $customLang), + 'ui.welcome.continue' => t('moinframe.loop.ui.welcome.continue', 'Continue', $customLang), + 'ui.welcome.dismiss' => t('moinframe.loop.ui.welcome.dismiss', 'Dismiss', $customLang), + 'ui.comment.mark.solved' => t('moinframe.loop.ui.comment.mark.solved', 'Resolve', $customLang), + 'ui.comment.mark.unsolved' => t('moinframe.loop.ui.comment.mark.unsolved', 'Reopen', $customLang), + 'ui.panel.show.resolved' => t('moinframe.loop.ui.panel.show.resolved', 'Show Resolved Only', $customLang), + 'ui.panel.show.all' => t('moinframe.loop.ui.panel.show.all', 'Show All Comments', $customLang), + 'ui.panel.open' => t('moinframe.loop.ui.panel.open', 'Open comments', $customLang), + 'ui.panel.filter.open' => t('moinframe.loop.ui.panel.filter.open', 'Open', $customLang), + 'ui.panel.filter.resolved' => t('moinframe.loop.ui.panel.filter.resolved', 'Resolved', $customLang), + 'ui.panel.filter.open.active' => t('moinframe.loop.ui.panel.filter.open.active', 'Show open comments (currently selected)', $customLang), + 'ui.panel.filter.open.inactive' => t('moinframe.loop.ui.panel.filter.open.inactive', 'Show open comments', $customLang), + 'ui.panel.filter.resolved.active' => t('moinframe.loop.ui.panel.filter.resolved.active', 'Show resolved comments (currently selected)', $customLang), + 'ui.panel.filter.resolved.inactive' => t('moinframe.loop.ui.panel.filter.resolved.inactive', 'Show resolved comments', $customLang), + 'ui.panel.menu.open' => t('moinframe.loop.ui.panel.menu.open', 'Open menu', $customLang), + 'ui.panel.menu.filter.title' => t('moinframe.loop.ui.panel.menu.filter.title', 'Show Comments', $customLang), + 'ui.panel.no.resolved' => t('moinframe.loop.ui.panel.no.resolved', 'No resolved comments yet.', $customLang), + + // Time formatting + 'ui.time.just_now' => t('moinframe.loop.ui.time.just_now', 'just now', $customLang), + 'ui.time.minute_ago' => t('moinframe.loop.ui.time.minute_ago', 'a minute ago', $customLang), + 'ui.time.minutes_ago' => t('moinframe.loop.ui.time.minutes_ago', '{count} minutes ago', $customLang), + 'ui.time.hour_ago' => t('moinframe.loop.ui.time.hour_ago', 'an hour ago', $customLang), + 'ui.time.hours_ago' => t('moinframe.loop.ui.time.hours_ago', '{count} hours ago', $customLang), + 'ui.time.yesterday' => t('moinframe.loop.ui.time.yesterday', 'yesterday', $customLang), + 'ui.time.days_ago' => t('moinframe.loop.ui.time.days_ago', '{count} days ago', $customLang) + ]; +} + +if (Options::enabled() && (Options::public() || kirby()->user() !== null)): ?> + + + diff --git a/site/plugins/loop/src/App.php b/site/plugins/loop/src/App.php new file mode 100644 index 0000000..4181b8d --- /dev/null +++ b/site/plugins/loop/src/App.php @@ -0,0 +1,199 @@ +user(); + + if (null === $user) { + return ''; + } + + return ''; + } + + /** + * Gets the database instance (singleton) + * @return Database + */ + protected static function db(): Database + { + if (self::$instance === null) { + self::$instance = new Database(); + } + + return self::$instance; + } + + /** + * Converts array data to Comment objects + * @param array $commentsData + * @return Comment[] + */ + private static function convertToCommentObjects(array $commentsData): array + { + $comments = []; + foreach ($commentsData as $commentData) { + $comment = Comment::fromArray($commentData); + $comments[] = $comment; + } + return $comments; + } + /** + * Get comments by kirby page + * @param Page $page + * @param string $lang Language code + * @return Comment[] + */ + public static function getCommentsByPage(\Kirby\Cms\Page $page, string $lang = ''): array + { + try { + // @phpstan-ignore method.notFound + $pageUuid = $page->content()->uuid()->value(); + $db = self::db(); + + // Use optimized query that filters at database level + $commentsData = $db::getCommentsByPage($pageUuid, $lang)->toArray(); + + return self::convertToCommentObjects($commentsData); + } catch (\Exception $e) { + return []; + } + } + + + /** + * Retrieves all comments organized in a nested structure + * @return Comment[] array of Comment objects with nested replies + * @remarks Top-level comments have replies as children + */ + public static function getComments(): array + { + try { + $db = self::db(); + // Use optimized query that fetches comments with replies in 2 queries instead of N+1 + $commentsData = $db::getCommentsWithReplies()->toArray(); + + return self::convertToCommentObjects($commentsData); + } catch (\Exception $e) { + return []; + } + } + + /** + * Creates a Comment from array data + * @param array $data + * @return Comment|null The created comment or null if validation fails + */ + public static function createComment(array $data): ?Comment + { + try { + return Comment::fromArray($data); + } catch (\InvalidArgumentException $e) { + error_log(tt('moinframe.loop.comment.creation.failed', ['error' => $e->getMessage()])); + return null; + } + } + + /** + * Creates a Reply from array data + * @param array $data + * @return Reply|null The created reply or null if validation fails + */ + public static function createReply(array $data): ?Reply + { + try { + return Reply::fromArray($data); + } catch (\InvalidArgumentException $e) { + error_log(tt('moinframe.loop.reply.creation.failed', ['error' => $e->getMessage()])); + return null; + } + } + + /** + * Adds a new comment to the database + * @param Comment $comment Comment to add + * @return Comment|null The added comment or null on failure + */ + public static function addComment(Comment $comment): ?Comment + { + try { + if (!$comment->isValid()) { + error_log(tt('moinframe.loop.comment.validation.error', ['errors' => implode(', ', $comment->validate())])); + return null; + } + + $comment = self::db()::addComment($comment); + return $comment; + } catch (\Exception $e) { + error_log(tt('moinframe.loop.comment.add.failed', ['error' => $e->getMessage()])); + return null; + } + } + + /** + * Adds a new reply to the database + * @param Reply $reply Reply to add + * @return Reply|null The added reply or null on failure + */ + public static function addReply(Reply $reply): ?Reply + { + try { + if (!$reply->isValid()) { + error_log(tt('moinframe.loop.reply.validation.error', ['errors' => implode(', ', $reply->validate())])); + return null; + } + + $reply = self::db()::addReply($reply); + return $reply; + } catch (\Exception $e) { + error_log(tt('moinframe.loop.reply.add.failed', ['error' => $e->getMessage()])); + return null; + } + } + + public static function resolveComment(string $commentId): bool + { + try { + $success = self::db()::updateCommentStatus($commentId, 'RESOLVED'); + return $success; + } catch (\Exception $e) { + return false; + } + } + + public static function unresolveComment(string $commentId): bool + { + try { + $success = self::db()::updateCommentStatus($commentId, 'OPEN'); + return $success; + } catch (\Exception $e) { + return false; + } + } +} diff --git a/site/plugins/loop/src/Database.php b/site/plugins/loop/src/Database.php new file mode 100644 index 0000000..f412942 --- /dev/null +++ b/site/plugins/loop/src/Database.php @@ -0,0 +1,356 @@ + 'sqlite', + 'database' => $dbPath + ]); + } + } + + /** + * Creates an empty database with schema + * @param string $path Database file path + */ + protected static function createEmptyDatabase(string $path): void + { + $db = new \SQLite3($path); + $db->exec('PRAGMA foreign_keys = ON;'); + + $db->exec('CREATE TABLE IF NOT EXISTS comments ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + author TEXT NOT NULL, + url TEXT NOT NULL, + page TEXT NOT NULL, + comment TEXT NOT NULL, + selector TEXT NOT NULL, + selectorOffsetX REAL NOT NULL, + selectorOffsetY REAL NOT NULL, + pagePositionX REAL NOT NULL, + pagePositionY REAL NOT NULL, + status TEXT NOT NULL, + timestamp INTEGER NOT NULL, + lang TEXT NOT NULL DEFAULT "" + )'); + + // Create indexes for better performance + $db->exec('CREATE INDEX IF NOT EXISTS idx_comments_page_lang ON comments(page, lang)'); + $db->exec('CREATE INDEX IF NOT EXISTS idx_comments_status ON comments(status)'); + $db->exec('CREATE INDEX IF NOT EXISTS idx_comments_timestamp ON comments(timestamp)'); + + $db->exec('CREATE TABLE IF NOT EXISTS replies ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + author TEXT NOT NULL, + comment TEXT NOT NULL, + parentId INTEGER NOT NULL, + timestamp INTEGER NOT NULL, + FOREIGN KEY (parentId) REFERENCES comments(id) ON DELETE CASCADE + )'); + + // Create indexes for replies + $db->exec('CREATE INDEX IF NOT EXISTS idx_replies_parent ON replies(parentId)'); + $db->exec('CREATE INDEX IF NOT EXISTS idx_replies_timestamp ON replies(timestamp)'); + + $db->close(); + } + + /** + * Returns a query builder for replies table + * @return \Kirby\Database\Query + */ + protected static function tableReplies(): \Kirby\Database\Query + { + self::initializeDatabase(); + return Db::table('replies'); + } + + /** + * Returns a query builder for comments table + * @return \Kirby\Database\Query + */ + protected static function tableComments(): \Kirby\Database\Query + { + self::initializeDatabase(); + return Db::table('comments'); + } + + + /** + * Retrieves all comments from the database + * @return Collection Array of comments + */ + public static function getComments(): Collection + { + try { + $comments = self::tableComments() + ->select('*') + ->order('timestamp DESC') + ->all(); + return $comments; + } catch (\Exception $e) { + return new Collection(); + } + } + + /** + * Retrieves comments with their replies in a single optimized query + * @param string|null $status Filter by status (optional) + * @return Collection Array of comments with nested replies + */ + public static function getCommentsWithReplies(?string $status = null): Collection + { + try { + // Build the main comments query + $commentsQuery = self::tableComments()->select('*'); + + if ($status !== null) { + $commentsQuery = $commentsQuery->where('status', '!=', $status); + } + + $comments = $commentsQuery->order('timestamp DESC')->all(); + + if ($comments->count() === 0) { + return new Collection(); + } + + // Get all comment IDs for efficient reply lookup + $commentIds = $comments->pluck('id'); + + // Single query to get all replies for these comments + $replies = self::tableReplies() + ->select('*') + ->where('parentId', 'in', $commentIds) + ->order('timestamp ASC') + ->all(); + + // Group replies by parentId for efficient lookup + $repliesByParent = []; + foreach ($replies as $reply) { + $parentId = $reply->parentId; + if (!isset($repliesByParent[$parentId])) { + $repliesByParent[$parentId] = []; + } + $repliesByParent[$parentId][] = $reply->toArray(); + } + + // Add replies to their parent comments + $result = []; + foreach ($comments as $comment) { + $commentArray = $comment->toArray(); + $commentArray['replies'] = $repliesByParent[$comment->id] ?? []; + $result[] = $commentArray; + } + + return new Collection($result); + } catch (\Exception $e) { + return new Collection(); + } + } + + /** + * Retrieves comments for a specific page with their replies + * @param string $pageUuid Page UUID to filter by + * @param string $lang Language to filter by + * @param string|null $status Status to exclude (optional) + * @return Collection Array of comments with nested replies + */ + public static function getCommentsByPage(string $pageUuid, string $lang = '', ?string $status = null): Collection + { + try { + // Build the main comments query with page filter + $commentsQuery = self::tableComments() + ->select('*') + ->where('page', '=', $pageUuid); + + // Add language filter only if language is specified + if ($lang !== '') { + $commentsQuery = $commentsQuery->where('lang', '=', $lang); + } + + if ($status !== null) { + $commentsQuery = $commentsQuery->where('status', '!=', $status); + } + + $comments = $commentsQuery->order('timestamp DESC')->all(); + + if ($comments->count() === 0) { + return new Collection(); + } + + // Get all comment IDs for efficient reply lookup + $commentIds = $comments->pluck('id'); + + // Single query to get all replies for these comments + $replies = self::tableReplies() + ->select('*') + ->where('parentId', 'in', $commentIds) + ->order('timestamp ASC') + ->all(); + + // Group replies by parentId for efficient lookup + $repliesByParent = []; + foreach ($replies as $reply) { + $parentId = $reply->parentId(); + if (!isset($repliesByParent[$parentId])) { + $repliesByParent[$parentId] = []; + } + $repliesByParent[$parentId][] = $reply->toArray(); + } + + // Add replies to their parent comments + $result = []; + foreach ($comments as $comment) { + $commentArray = $comment->toArray(); + $commentArray['replies'] = $repliesByParent[$comment->id] ?? []; + $result[] = $commentArray; + } + + return new Collection($result); + } catch (\Exception $e) { + return new Collection(); + } + } + + /** + * Retrieves all replies from the database + * @return Collection Array of comments + */ + public static function getReplies(): Collection + { + try { + $replies = self::tableReplies() + ->select('*') + ->order('timestamp DESC') + ->all(); + return $replies; + } catch (\Exception $e) { + return new Collection(); + } + } + + /** + * Adds a new comment to the database + * @param Comment $comment Comment data + * @return Comment|null The added comment or null on failure + */ + public static function addComment(Comment $comment): ?Comment + { + try { + $data = $comment->toArray(); + // Remove id field for insertion to allow auto-increment + unset($data['id']); + + $id = self::tableComments()->insert($data); + + if (null !== $id) { + $comment->id = $id; + return $comment; + } + + return null; + } catch (\Exception $e) { + return null; + } + } + + /** + * Adds a new reply to the database + * @param Reply $reply Reply data + * @return Reply|null The added reply or null on failure + */ + public static function addReply(Reply $reply): ?Reply + { + try { + $data = $reply->toArray(); + // Remove id field for insertion to allow auto-increment + unset($data['id']); + + $id = self::tableReplies()->insert($data); + + if (null !== $id) { + $reply->id = $id; + return $reply; + } + + return null; + } catch (\Exception $e) { + return null; + } + } + + // /** + // * Updates a comment in the database + // * @param string $id Comment ID + // * @param array $data Updated comment data + // * @return bool Success status + // */ + // public static function updateComment(string $id, array $data): bool + // { + // try { + // $updateData = []; + + // foreach ($data as $key => $value) { + // if (in_array($key, ['comment', 'selector', 'posX', 'posY'])) { + // $updateData[$key] = $value; + // } + // } + + // if (empty($updateData)) { + // return false; + // } + + // return self::table()->update($updateData, ['id' => $id]); + // } catch (\Exception $e) { + // return false; + // } + // } + + /** + * Updates a comment's status + * @param string $id Comment ID + * @param string $status New status + * @return bool Success status + */ + public static function updateCommentStatus(string $id, string $status): bool + { + try { + return self::tableComments()->update( + ['status' => $status], + ['id' => $id] + ); + } catch (\Exception $e) { + return false; + } + } +} diff --git a/site/plugins/loop/src/Enums/CommentStatus.php b/site/plugins/loop/src/Enums/CommentStatus.php new file mode 100644 index 0000000..b8418e5 --- /dev/null +++ b/site/plugins/loop/src/Enums/CommentStatus.php @@ -0,0 +1,9 @@ + 'error', + 'message' => 'Loop is disabled', + 'code' => 'DISABLED' + ], 403); + } + + $csrfToken = kirby()->request()->header('X-CSRF-Token'); + if (csrf($csrfToken) !== true) { + return Response::json([ + 'status' => 'error', + 'message' => t('moinframe.loop.csrf.invalid'), + 'code' => 'CSRF_INVALID' + ], 403); + } + + + if (Options::public() === false && kirby()->user() === null) { + return Response::json([ + 'status' => 'error', + 'message' => 'Unauthorized', + 'code' => 'UNAUTHORIZED' + ], 401); + } + + + return $next(...func_get_args()); + }; + } +} diff --git a/site/plugins/loop/src/Models/Comment.php b/site/plugins/loop/src/Models/Comment.php new file mode 100644 index 0000000..b0cef59 --- /dev/null +++ b/site/plugins/loop/src/Models/Comment.php @@ -0,0 +1,359 @@ + 0) { + throw new \InvalidArgumentException(tt('moinframe.loop.comment.validation.failed', ['errors' => implode(', ', $errors)])); + } + + $data = static::transformNumbers($data); + + // Convert reply arrays to Reply objects + $replies = []; + if (isset($data['replies']) && is_array($data['replies'])) { + foreach ($data['replies'] as $replyData) { + $replies[] = Reply::fromArray($replyData); + } + } + + return new self( + id: $data['id'] ?? 0, + author: strip_tags($data['author'] ?? ''), + url: $data['url'] ?? '', + page: $data['page'] ?? '', + selector: $data['selector'] ?? '', + selectorOffsetX: $data['selectorOffsetX'] ?? 0, + selectorOffsetY: $data['selectorOffsetY'] ?? 0, + pagePositionX: $data['pagePositionX'] ?? 0, + pagePositionY: $data['pagePositionY'] ?? 0, + status: isset($data['status']) ? CommentStatus::from($data['status']) : CommentStatus::OPEN, + comment: strip_tags($data['comment'] ?? ''), + timestamp: $data['timestamp'] ?? 0, + lang: $data['lang'] ?? '', + replies: $replies + ); + } + + + /** + * Transforms numeric fields in comment data + * + * @param array $item + * @return array + */ + protected static function transformNumbers(array $item): array + { + // Create a new array instead of modifying the input + $result = $item; + + // Handle each numeric field explicitly + if (isset($result['id'])) { + $result['id'] = (int)$result['id']; + } + + if (isset($result['selectorOffsetX'])) { + $result['selectorOffsetX'] = (float)$result['selectorOffsetX']; + } + + if (isset($result['selectorOffsetY'])) { + $result['selectorOffsetY'] = (float)$result['selectorOffsetY']; + } + + if (isset($result['pagePositionX'])) { + $result['pagePositionX'] = (float)$result['pagePositionX']; + } + + if (isset($result['pagePositionY'])) { + $result['pagePositionY'] = (float)$result['pagePositionY']; + } + + if (isset($result['timestamp'])) { + $result['timestamp'] = (int)$result['timestamp']; + } + + + return $result; + } + + /** + * Validates the comment data using Kirby validators + * @return array Array of validation errors (empty if valid) + */ + /** @phpstan-ignore-next-line */ + public function validate(): array + { + $rules = [ + 'author' => ['required', 'maxLength' => 255], + 'comment' => ['required', 'maxLength' => 5000], + 'page' => ['required', 'maxLength' => 255], + 'selector' => ['required', 'maxLength' => 1000], + 'url' => ['maxLength' => 2048], + 'selectorOffsetX' => ['min' => 0], + 'selectorOffsetY' => ['min' => 0], + 'pagePositionX' => ['min' => 0], + 'pagePositionY' => ['min' => 0], + 'timestamp' => ['min' => 0] + ]; + + $messages = [ + 'author' => [ + t('moinframe.loop.author.required'), + t('moinframe.loop.author.max.length') + ], + 'comment' => [ + t('moinframe.loop.comment.required'), + t('moinframe.loop.comment.max.length') + ], + 'page' => [ + t('moinframe.loop.page.required'), + t('moinframe.loop.page.max.length') + ], + 'selector' => [ + t('moinframe.loop.selector.required'), + t('moinframe.loop.selector.max.length') + ], + 'url' => t('moinframe.loop.url.max.length'), + 'selectorOffsetX' => t('moinframe.loop.selector.offset.x.min'), + 'selectorOffsetY' => t('moinframe.loop.selector.offset.y.min'), + 'pagePositionX' => t('moinframe.loop.page.position.x.min'), + 'pagePositionY' => t('moinframe.loop.page.position.y.min'), + 'timestamp' => t('moinframe.loop.timestamp.min') + ]; + + $data = $this->toArray(); + + // Custom URL validation if provided + if (($data['url'] ?? '') !== '' && filter_var($data['url'], FILTER_VALIDATE_URL) === false) { + return [t('moinframe.loop.url.format.invalid')]; + } + + /** @phpstan-ignore-next-line */ + $invalid = invalid($data, $rules, $messages) ?: []; + + // Convert validation errors to flat array of strings + $errors = []; + foreach ($invalid as $field => $fieldErrors) { + if (is_array($fieldErrors)) { + // Multiple validation rules failed for this field + foreach ($fieldErrors as $error) { + $errors[] = (string) $error; + } + } else { + // Single validation rule failed + $errors[] = (string) $fieldErrors; + } + } + + // Validate replies + foreach ($this->replies as $index => $reply) { + $replyErrors = $reply->validate(); + foreach ($replyErrors as $replyError) { + $errors[] = tt('moinframe.loop.reply.index.error', ['index' => $index, 'error' => $replyError]); + } + } + + return $errors; + } + + /** + * Checks if the comment is valid + * @return bool + */ + public function isValid(): bool + { + return count($this->validate()) === 0; + } + + /** + * Validates data before creating Comment instance using Kirby validators + * @param array $data + * @return array Array of validation errors + */ + /** @phpstan-ignore-next-line */ + public static function validateData(array $data): array + { + $rules = [ + 'author' => ['required', 'maxLength' => 255], + 'comment' => ['required', 'maxLength' => 5000], + 'page' => ['required', 'maxLength' => 255], + 'selector' => ['required', 'maxLength' => 1000], + 'url' => ['maxLength' => 2048], + 'selectorOffsetX' => ['min' => 0], + 'selectorOffsetY' => ['min' => 0], + 'pagePositionX' => ['min' => 0], + 'pagePositionY' => ['min' => 0], + 'timestamp' => ['min' => 0] + ]; + + $messages = [ + 'author' => [ + t('moinframe.loop.author.required'), + t('moinframe.loop.author.max.length') + ], + 'comment' => [ + t('moinframe.loop.comment.required'), + t('moinframe.loop.comment.max.length') + ], + 'page' => [ + t('moinframe.loop.page.required'), + t('moinframe.loop.page.max.length') + ], + 'selector' => [ + t('moinframe.loop.selector.required'), + t('moinframe.loop.selector.max.length') + ], + 'url' => t('moinframe.loop.url.max.length'), + 'selectorOffsetX' => t('moinframe.loop.selector.offset.x.min'), + 'selectorOffsetY' => t('moinframe.loop.selector.offset.y.min'), + 'pagePositionX' => t('moinframe.loop.page.position.x.min'), + 'pagePositionY' => t('moinframe.loop.page.position.y.min'), + 'timestamp' => t('moinframe.loop.timestamp.min') + ]; + + // Custom URL validation if provided + if (($data['url'] ?? '') !== '' && filter_var($data['url'], FILTER_VALIDATE_URL) === false) { + return [t('moinframe.loop.url.format.invalid')]; + } + + /** @phpstan-ignore-next-line */ + $invalid = invalid($data, $rules, $messages) ?: []; + + // Convert validation errors to flat array of strings + $errors = []; + foreach ($invalid as $field => $fieldErrors) { + if (is_array($fieldErrors)) { + // Multiple validation rules failed for this field + foreach ($fieldErrors as $error) { + $errors[] = (string) $error; + } + } else { + // Single validation rule failed + $errors[] = (string) $fieldErrors; + } + } + + return $errors; + } + + /** + * Resolves the author string to a display name + * If author starts with 'user://', attempts to resolve Kirby user + * Returns user's name or email prefix, otherwise returns the stored string + * @return string Resolved author display name + */ + public function resolveAuthor(): string + { + // Check if author is a Kirby user reference + if (str_starts_with($this->author, 'user://')) { + $userId = substr($this->author, 7); // Remove 'user://' prefix + + try { + $user = kirby()->user($userId); + if ($user !== null && $user->exists()) { + // Return user's name if available + if ($user->name()->isNotEmpty()) { + return $user->name()->value(); + } + + // Fallback to email prefix (everything before @) + $email = $user->email(); + if ($email !== null && str_contains($email, '@')) { + return explode('@', $email)[0]; + } + + // Final fallback to email + return $email !== null ? $email : $this->author; + } + } catch (\Exception) { + // If user resolution fails, fall back to original string + } + } + + // Return the original author string if not a user reference or resolution failed + return $this->author; + } + + /** + * Convert Comment instance to array + * + * @return array + */ + public function toArray(): array + { + // Convert Reply objects to arrays + $replies = []; + foreach ($this->replies as $reply) { + $replies[] = $reply->toArray(); + } + + return [ + 'id' => $this->id ?? null, + 'author' => $this->resolveAuthor(), + 'url' => $this->url, + 'page' => $this->page, + 'comment' => $this->comment, + 'selector' => $this->selector, + 'selectorOffsetX' => $this->selectorOffsetX, + 'selectorOffsetY' => $this->selectorOffsetY, + 'pagePositionX' => $this->pagePositionX, + 'pagePositionY' => $this->pagePositionY, + 'status' => $this->status->value, + 'replies' => $replies, + 'timestamp' => $this->timestamp, + 'lang' => $this->lang + ]; + } +} diff --git a/site/plugins/loop/src/Models/Reply.php b/site/plugins/loop/src/Models/Reply.php new file mode 100644 index 0000000..15485c9 --- /dev/null +++ b/site/plugins/loop/src/Models/Reply.php @@ -0,0 +1,198 @@ + 0) { + throw new \InvalidArgumentException(tt('moinframe.loop.reply.validation.failed', ['errors' => implode(', ', $errors)])); + } + + $data = static::transformNumbers($data); + + return new self( + id: $data['id'] ?? 0, + author: strip_tags($data['author'] ?? ''), + comment: strip_tags($data['comment'] ?? ''), + parentId: $data['parentId'] ?? 0, + timestamp: $data['timestamp'] ?? 0 + ); + } + + /** + * Transforms numeric fields in reply data + * + * @param array $item + * @return array + */ + protected static function transformNumbers(array $item): array + { + $result = $item; + + if (isset($result['id'])) { + $result['id'] = (int)$result['id']; + } + + if (isset($result['parentId'])) { + $result['parentId'] = (int)$result['parentId']; + } + + if (isset($result['timestamp'])) { + $result['timestamp'] = (int)$result['timestamp']; + } + + return $result; + } + + /** + * Validates the reply data using Kirby validators + * @return array Array of validation errors (empty if valid) + */ + public function validate(): array + { + $rules = [ + 'author' => ['required', 'maxLength' => 255], + 'comment' => ['required', 'maxLength' => 5000], + 'parentId' => ['required', 'min' => 1], + 'timestamp' => ['min' => 0] + ]; + + $messages = [ + 'author' => [ + t('moinframe.loop.author.required'), + t('moinframe.loop.author.max.length') + ], + 'comment' => [ + t('moinframe.loop.comment.required'), + t('moinframe.loop.comment.max.length') + ], + 'parentId' => [ + t('moinframe.loop.parent.id.required'), + t('moinframe.loop.parent.id.required') + ], + 'timestamp' => t('moinframe.loop.timestamp.min') + ]; + + $data = $this->toArray(); + /** @phpstan-ignore-next-line */ + $invalid = invalid($data, $rules, $messages) ?: []; + return array_map('strval', array_values($invalid)); + } + + /** + * Checks if the reply is valid + * @return bool + */ + public function isValid(): bool + { + return count($this->validate()) === 0; + } + + /** + * Validates data before creating Reply instance using Kirby validators + * @param array $data + * @return array Array of validation errors + */ + public static function validateData(array $data): array + { + $rules = [ + 'author' => ['required', 'maxLength' => 255], + 'comment' => ['required', 'maxLength' => 5000], + 'parentId' => ['required', 'min' => 1], + 'timestamp' => ['min' => 0] + ]; + + $messages = [ + 'author' => [ + t('moinframe.loop.author.required'), + t('moinframe.loop.author.max.length') + ], + 'comment' => [ + t('moinframe.loop.comment.required'), + t('moinframe.loop.comment.max.length') + ], + 'parentId' => [ + t('moinframe.loop.parent.id.required'), + t('moinframe.loop.parent.id.required') + ], + 'timestamp' => t('moinframe.loop.timestamp.min') + ]; + + /** @phpstan-ignore-next-line */ + $invalid = invalid($data, $rules, $messages) ?: []; + return array_map('strval', array_values($invalid)); + } + + /** + * Resolves the author string to a display name + * If author starts with 'user://', attempts to resolve Kirby user + * Returns user's name or email prefix, otherwise returns the stored string + * @return string Resolved author display name + */ + public function resolveAuthor(): string + { + // Check if author is a Kirby user reference + if (str_starts_with($this->author, 'user://')) { + $userId = substr($this->author, 7); // Remove 'user://' prefix + + try { + $user = kirby()->user($userId); + if ($user !== null && $user->exists()) { + // Return user's name if available + if ($user->name()->isNotEmpty()) { + return $user->name()->value(); + } + + // Fallback to email prefix (everything before @) + $email = $user->email(); + if ($email !== null && str_contains($email, '@')) { + return explode('@', $email)[0]; + } + + // Final fallback to email + return $email !== null ? $email : $this->author; + } + } catch (\Exception) { + // If user resolution fails, fall back to original string + } + } + + // Return the original author string if not a user reference or resolution failed + return $this->author; + } + + /** + * Convert Reply instance to array + * + * @return array + */ + public function toArray(): array + { + return [ + 'id' => $this->id, + 'author' => $this->resolveAuthor(), + 'comment' => $this->comment, + 'parentId' => $this->parentId, + 'timestamp' => $this->timestamp + ]; + } +} diff --git a/site/plugins/loop/src/Options.php b/site/plugins/loop/src/Options.php new file mode 100644 index 0000000..0f6d6cd --- /dev/null +++ b/site/plugins/loop/src/Options.php @@ -0,0 +1,114 @@ +root('logs') . '/loop/comments.sqlite'); + } + + /** + * Get header position (top or bottom) + * @return string + */ + public static function position(): string + { + return option('moinframe.loop.position', 'top'); + } + + /** + * Check if auto-injection is enabled + * @return bool + */ + public static function autoInject(): bool + { + return option('moinframe.loop.auto-inject', true); + } + + /** + * Check if loop is enabled for the current page + * @return bool + */ + public static function enabled(): bool + { + $enabledOption = option('moinframe.loop.enabled', true); + + // If it's a boolean, return it directly + if (is_bool($enabledOption)) { + return $enabledOption; + } + + // If it's a callable, execute it with the current page + if (is_callable($enabledOption)) { + $page = kirby()->site()->page(); + return (bool) $enabledOption($page); + } + + // Default to enabled if invalid configuration + return true; + } + + /** + * Check if welcome dialog is enabled + * @return bool + */ + public static function welcomeDialogEnabled(): bool + { + return option('moinframe.loop.welcome.enabled', true); + } + + /** + * Get welcome dialog headline + * @return string + */ + public static function welcomeDialogHeadline(): string + { + $customLang = self::language(); + return option('moinframe.loop.welcome.headline', $customLang !== null ? t('moinframe.loop.welcome.headline', '', $customLang) : t('moinframe.loop.welcome.headline')); + } + + /** + * Get welcome dialog text + * @return string + */ + public static function welcomeDialogText(): string + { + $customLang = self::language(); + $translatedPosition = t('moinframe.loop.ui.header.position.' . self::position(), self::position(), $customLang); + return option('moinframe.loop.welcome.text', $customLang !== null ? tt('moinframe.loop.welcome.text', '', ['position' => $translatedPosition], $customLang) : tt('moinframe.loop.welcome.text', ['position' => $translatedPosition])); + } + + /** + * Get custom language setting for loop + * @return string|null + */ + public static function language(): ?string + { + return option('moinframe.loop.language', null); + } + + /** + * Set a theme + * @return string + */ + public static function theme(): string + { + return option('moinframe.loop.theme', 'default'); + } +} diff --git a/site/plugins/loop/src/Routes.php b/site/plugins/loop/src/Routes.php new file mode 100644 index 0000000..e7f39fa --- /dev/null +++ b/site/plugins/loop/src/Routes.php @@ -0,0 +1,312 @@ + Error response array + */ + private static function errorResponse(string $message, ?string $code = null): array + { + $response = [ + 'status' => 'error', + 'message' => $message + ]; + + if ($code !== null) { + $response['code'] = $code; + } + + return $response; + } + /** + * Registers routes and returns route definitions + * @return array Route definitions array + */ + public static function register(): array + { + + return [ + [ + 'pattern' => 'loop/comments/(:all)', + 'method' => 'GET', + 'language' => '*', + 'action' => Middleware::auth(function ($language = null, $pageId = null) { + + // Handle both multilingual and non-multilingual cases + if ($pageId === null && $language !== null) { + // Non-multilingual: only pageId was passed as first argument + $pageId = $language; + $language = null; + } + $onPage = null; + + if ($pageId === 'home'): + $onPage = kirby()->site()->homePage(); + else: + $onPage = page($pageId); + endif; + + // If not found, check if it's a draft and validate access + if (null === $onPage) { + $draftPage = kirby()->page($pageId); + if ($draftPage !== null && $draftPage->isDraft() && ( + (App::getKirbyMajorVersion() >= 5 && $draftPage->renderVersionFromRequest() !== null) || + // @phpstan-ignore method.notFound + (App::getKirbyMajorVersion() < 5 && $draftPage->isVerified(get('token')) === true) + )) { + $onPage = $draftPage; + } + } + + if (null === $onPage) { + return Response::json(self::errorResponse( + tt('moinframe.loop.page.not.found', ['pageId' => $pageId]), + self::ERROR_PAGE_NOT_FOUND + ), 400); + } + + $comments = App::getCommentsByPage($onPage, $language ?? ''); + + // Convert Comment objects to arrays to ensure resolved authors are included + $commentsArray = array_map(function ($comment) { + return $comment->toArray(); + }, $comments); + + return Response::json([ + 'status' => 'ok', + 'comments' => $commentsArray + ], 200); + }) + ], + [ + 'pattern' => 'loop/comment/new', + 'method' => 'POST', + 'language' => '*', + 'action' => Middleware::auth(function ($language = null) { + + $data = kirby()->request()->data(); + + // Sanitize input data + if (isset($data['comment'])) { + $data['comment'] = htmlspecialchars(strip_tags($data['comment']), ENT_QUOTES, 'UTF-8'); + } + if (isset($data['selector'])) { + // Validate selector but don't HTML encode it as it needs to remain a valid CSS selector + $data['selector'] = trim($data['selector']); + // Basic validation - selector should not contain script tags or javascript + if (preg_match('/ $field]), + self::ERROR_FIELD_REQUIRED + ), 400); + } + } + + // Find page using page ID from data + $pageId = $data['pageId'] ?? null; + + if ($pageId === null) { + return Response::json(self::errorResponse( + tt('moinframe.loop.field.required', ['field' => 'pageId']), + self::ERROR_FIELD_REQUIRED + ), 400); + } + + $page = ($pageId === 'home') ? kirby()->site()->homePage() : page($pageId); + + // If not found, check if it's a draft and validate access + if (null === $page) { + $draftPage = kirby()->page($pageId); + if ($draftPage !== null && $draftPage->isDraft() && ( + (App::getKirbyMajorVersion() >= 5 && $draftPage->renderVersionFromRequest() !== null) || + // @phpstan-ignore method.notFound + (App::getKirbyMajorVersion() < 5 && $draftPage->isVerified(get('token')) === true) + )) { + $page = $draftPage; + } + } + + if (null === $page) { + return Response::json(self::errorResponse( + tt('moinframe.loop.page.path.not.found', ['path' => $pageId]), + self::ERROR_PAGE_NOT_FOUND + ), 404); + } + + $comment = [ + 'author' => ($user = kirby()->user()) !== null ? (string) $user->uuid() : (kirby()->session()->data()->get('loop.guest.name') ?? "guest"), + 'url' => $data['url'], + // @phpstan-ignore method.notFound + 'page' => $page->content()->uuid(), + 'comment' => $data['comment'], + 'selector' => $data['selector'], + 'selectorOffsetX' => $data['selectorOffsetX'], + 'selectorOffsetY' => $data['selectorOffsetY'], + 'pagePositionX' => $data['pagePositionX'], + 'pagePositionY' => $data['pagePositionY'], + 'timestamp' => time(), + 'lang' => $language ?? '', + 'replies' => [] + ]; + + $comment = Comment::fromArray($comment); + $result = App::addComment($comment); + return Response::json([ + 'status' => 'ok', + 'comment' => $result !== null ? $result->toArray() : null + ], 201); + }) + ], + [ + 'pattern' => 'loop/comment/resolve', + 'method' => 'POST', + 'language' => '*', + 'action' => Middleware::auth(function ($language = null) { + + + $data = kirby()->request()->data(); + + $required = ['id']; + + foreach ($required as $field) { + if (!isset($data[$field])) { + return Response::json(self::errorResponse( + tt('moinframe.loop.field.required', ['field' => $field]), + self::ERROR_FIELD_REQUIRED + ), 400); + } + } + + $success = App::resolveComment($data['id']); + + return Response::json([ + 'status' => 'ok', + 'success' => $success + ], 200); + }) + ], + [ + 'pattern' => 'loop/comment/reply', + 'method' => 'POST', + 'language' => '*', + 'action' => Middleware::auth(function ($language = null) { + + + $data = kirby()->request()->data(); + + // Sanitize input data + if (isset($data['comment'])) { + $data['comment'] = htmlspecialchars(strip_tags($data['comment']), ENT_QUOTES, 'UTF-8'); + } + + $required = ['comment', 'parentId']; + + foreach ($required as $field) { + if (!isset($data[$field])) { + return Response::json(self::errorResponse( + tt('moinframe.loop.field.required', ['field' => $field]), + self::ERROR_FIELD_REQUIRED + ), 400); + } + } + + $reply = Reply::fromArray([ + 'author' => ($user = kirby()->user()) !== null ? (string) $user->uuid() : (kirby()->session()->data()->get('loop.guest.name') ?? "guest"), + 'comment' => $data['comment'], + 'parentId' => (int) $data['parentId'], + 'timestamp' => time() + ]); + + $result = App::addReply($reply); + + return Response::json([ + 'status' => 'ok', + 'reply' => $result !== null ? $result->toArray() : null + ], 201); + }) + ], + [ + 'pattern' => 'loop/comment/unresolve', + 'method' => 'POST', + 'language' => '*', + 'action' => Middleware::auth(function ($language = null) { + + + $data = kirby()->request()->data(); + + $required = ['id']; + + foreach ($required as $field) { + if (!isset($data[$field])) { + return Response::json(self::errorResponse( + tt('moinframe.loop.field.required', ['field' => $field]), + self::ERROR_FIELD_REQUIRED + ), 400); + } + } + + $success = App::unresolveComment($data['id']); + + return Response::json([ + 'status' => 'ok', + 'success' => $success + ], 200); + }) + ], + [ + 'pattern' => 'loop/guest/name', + 'method' => 'POST', + 'language' => '*', + 'action' => Middleware::auth(function ($language = null) { + $data = kirby()->request()->data(); + + if (!isset($data['name']) || trim($data['name']) === '') { + return Response::json(self::errorResponse( + 'Name is required', + self::ERROR_INVALID_NAME + ), 400); + } + + $name = trim($data['name']); + kirby()->session()->data()->set('loop.guest.name', $name); + + return Response::json([ + 'status' => 'ok', + 'name' => $name + ], 200); + }) + ] + ]; + } +}