From 03d904bc1ec905d44b5e1d16112e7d2106c40c28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Fri, 13 Nov 2026 19:47:22 +0100 Subject: [PATCH 1/3] Add a demo website that runs the validator in the browser with WebAssembly --- .castor/website.php | 131 + .gitattributes | 3 + .github/dependabot.yml | 13 + .github/workflows/website.yml | 75 + .gitignore | 3 + README.md | 8 + castor.composer.json | 5 + castor.composer.lock | 65 + phpstan.neon | 4 + website/.gitignore | 4 + website/README.md | 36 + website/assets/app.js | 60 + .../controllers/highlight_controller.js | 36 + .../assets/controllers/result_controller.js | 346 +++ website/assets/examples.js | 53 + website/assets/format.js | 170 ++ website/assets/images/arrow.svg | 1 + website/assets/images/check.svg | 3 + website/assets/images/error.svg | 3 + website/assets/images/info.svg | 3 + website/assets/images/link.svg | 3 + website/assets/images/settings.svg | 4 + website/assets/images/warning.svg | 3 + website/assets/php.js | 31 + website/assets/styles/app.css | 97 + website/assets/tolerant-html.js | 260 ++ website/assets/validatorSettings.js | 22 + website/bin/audit.php | 70 + website/composer.json | 32 + website/composer.lock | 1488 ++++++++++ website/package-lock.json | 2587 +++++++++++++++++ website/package.json | 32 + website/public/favicon-16x16.png | Bin 0 -> 868 bytes website/public/favicon-32x32.png | Bin 0 -> 1309 bytes website/public/index.html | 68 + website/src/Twig/JsonLdExtension.php | 82 + website/src/Twig/MarkdownExtension.php | 71 + website/templates/components/_issue.html.twig | 28 + .../components/_issueCount.html.twig | 8 + .../templates/components/_property.html.twig | 12 + .../components/_rangeProperties.html.twig | 5 + .../components/_regularProperty.html.twig | 83 + website/templates/components/_type.html.twig | 62 + .../components/_typeProperty.html.twig | 64 + .../reference/_googleLink.html.twig | 11 + .../components/reference/_link.html.twig | 23 + .../components/reference/_reference.html.twig | 14 + website/templates/result.html.twig | 145 + website/tests/format.test.mjs | 40 + website/tests/page.test.mjs | 53 + 50 files changed, 6420 insertions(+) create mode 100644 .castor/website.php create mode 100644 .github/workflows/website.yml create mode 100644 castor.composer.json create mode 100644 castor.composer.lock create mode 100644 website/.gitignore create mode 100644 website/README.md create mode 100644 website/assets/app.js create mode 100644 website/assets/controllers/highlight_controller.js create mode 100644 website/assets/controllers/result_controller.js create mode 100644 website/assets/examples.js create mode 100644 website/assets/format.js create mode 100644 website/assets/images/arrow.svg create mode 100644 website/assets/images/check.svg create mode 100644 website/assets/images/error.svg create mode 100644 website/assets/images/info.svg create mode 100644 website/assets/images/link.svg create mode 100644 website/assets/images/settings.svg create mode 100644 website/assets/images/warning.svg create mode 100644 website/assets/php.js create mode 100644 website/assets/styles/app.css create mode 100644 website/assets/tolerant-html.js create mode 100644 website/assets/validatorSettings.js create mode 100644 website/bin/audit.php create mode 100644 website/composer.json create mode 100644 website/composer.lock create mode 100644 website/package-lock.json create mode 100644 website/package.json create mode 100644 website/public/favicon-16x16.png create mode 100644 website/public/favicon-32x32.png create mode 100644 website/public/index.html create mode 100644 website/src/Twig/JsonLdExtension.php create mode 100644 website/src/Twig/MarkdownExtension.php create mode 100644 website/templates/components/_issue.html.twig create mode 100644 website/templates/components/_issueCount.html.twig create mode 100644 website/templates/components/_property.html.twig create mode 100644 website/templates/components/_rangeProperties.html.twig create mode 100644 website/templates/components/_regularProperty.html.twig create mode 100644 website/templates/components/_type.html.twig create mode 100644 website/templates/components/_typeProperty.html.twig create mode 100644 website/templates/components/reference/_googleLink.html.twig create mode 100644 website/templates/components/reference/_link.html.twig create mode 100644 website/templates/components/reference/_reference.html.twig create mode 100644 website/templates/result.html.twig create mode 100644 website/tests/format.test.mjs create mode 100644 website/tests/page.test.mjs diff --git a/.castor/website.php b/.castor/website.php new file mode 100644 index 00000000..6dcd4b85 --- /dev/null +++ b/.castor/website.php @@ -0,0 +1,131 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace website; + +use Castor\Attribute\AsOption; +use Castor\Attribute\AsTask; + +use function Castor\context; +use function Castor\finder; +use function Castor\fs; +use function Castor\io; +use function Castor\run; +use function PhpWasm\build as build_wasm; +use function PhpWasm\check_stack; + +use PhpWasm\Stack; +use PhpWasm\Target; + +use function PhpWasm\test_page; + +use Symfony\Component\Console\Input\InputOption; + +// The demo website: a static page, in website/public, that audits a document +// with the validator, run by PHP built as WebAssembly. See website/README.md. + +#[AsTask(description: 'Installs the dependencies of the demo website')] +function install(): void +{ + io()->title('Installing the dependencies of the website'); + + $context = context()->withWorkingDirectory(websiteDir()); + + run(['composer', 'install', '--no-dev', '--no-progress'], context: $context); + // The library is a copy of this repository, that Composer only makes again + // when the commit changes: the website would miss what is not committed. + run(['composer', 'reinstall', '--no-progress', 'jolicode/structured-data'], context: $context); + run(['npm', 'ci', '--no-audit', '--no-fund'], context: $context); +} + +/** + * @param list $set + */ +#[AsTask(description: 'Builds the demo website, in website/public/build: its assets, and PHP as WebAssembly with the validator')] +function build( + #[AsOption(description: 'Overrides a value of the bake file, as "docker buildx bake --set" does (the CI gives the cache this way), can be repeated', mode: InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY)] + array $set = [], +): void { + // What is built comes from vendor/ and node_modules/ + install(); + + io()->title('Building the website'); + + $website = websiteDir(); + $app = "{$website}/build/app"; + + fs()->remove([$app, "{$website}/public/build"]); + + run(['npm', 'run', 'build'], context: context()->withWorkingDirectory($website)); + + // What is embedded takes some of the memory of the WebAssembly module: + // only what bin/audit.php reads + fs()->mirror($website, $app, finder() + ->in(["{$website}/assets/images", "{$website}/bin", "{$website}/src", "{$website}/templates", "{$website}/vendor"]) + // Composer copies the directories of the repository that Git ignores too + ->notPath(['jolicode/structured-data/vendor', 'jolicode/structured-data/website']) + ->notName(['*.md', 'composer.lock']), + ); + + build_wasm([wasmStack()], $set); +} + +#[AsTask(description: 'Checks, in node, that what is built for the demo website boots, and audits a document')] +function check(): void +{ + buildIfNeeded(); + + io()->title('Checking the website'); + + check_stack(wasmStack()); + test_page('website/tests/page.test.mjs', 'website/tests/format.test.mjs'); +} + +#[AsTask(description: 'Serves the demo website')] +function serve(string $address = 'localhost:9999'): void +{ + buildIfNeeded(); + + io()->note("Serving on http://{$address}"); + + run(['php', '-S', $address, '-t', websiteDir() . '/public']); +} + +function websiteDir(): string +{ + return \dirname(__DIR__) . '/website'; +} + +/** + * For the tasks that need what is built: build() when it is missing. + */ +function buildIfNeeded(): void +{ + if (!is_file(wasmStack()->artifact(Target::Web, 'wasm'))) { + build(); + } +} + +/** + * The PHP that runs the validator in the browser, see https://github.com/lyrixx/php-wasm-builder. + */ +function wasmStack(): Stack +{ + return Stack::named('website') + ->php('8.5.12') + // What the library, Twig and league/commonmark require + ->extensions('ctype', 'dom', 'filter', 'libxml', 'mbstring') + // Filled by build(), assets/php.js runs /app/bin/audit.php + ->embed('website/build/app', at: '/app') + ->targets(Target::Web) + ->outputDir('website/public/build') + ; +} diff --git a/.gitattributes b/.gitattributes index 77581cd4..a66c8003 100644 --- a/.gitattributes +++ b/.gitattributes @@ -8,6 +8,8 @@ /.php-cs-fixer.php export-ignore /CHANGELOG.md export-ignore /CONTRIBUTING.md export-ignore +/castor.composer.json export-ignore +/castor.composer.lock export-ignore /castor.php export-ignore /generators export-ignore /infection.json5 export-ignore @@ -18,6 +20,7 @@ /tests export-ignore /tools export-ignore /var export-ignore +/website export-ignore # Only the resources needed at runtime (the schema.org contexts and the # standards data) stay in the archive: the vocabulary definitions used for diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 769895f7..d2303ad4 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -23,6 +23,7 @@ updates: - "/tools/phpunit" - "/tools/phpbench" - "/tools/infection" + - "/website" schedule: interval: "weekly" groups: @@ -31,3 +32,15 @@ updates: - "*" cooldown: default-days: 7 + + # The page of the demo website is built with these. + - package-ecosystem: "npm" + directory: "/website" + schedule: + interval: "weekly" + groups: + website: + patterns: + - "*" + cooldown: + default-days: 7 diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml new file mode 100644 index 00000000..ba92921f --- /dev/null +++ b/.github/workflows/website.yml @@ -0,0 +1,75 @@ +name: Demo website + +on: + push: + branches: [main] + pull_request: + branches: ["main"] + +permissions: + contents: read + +jobs: + build: + name: Build and check the website + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Setup PHP + uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0 + with: + # The version PHP is built with as WebAssembly, see .castor/website.php + php-version: "8.5" + # Dependabot does not track tools installed by setup-php: bump these + # versions and their SHA-256 checksums by hand, in every job. + tools: >- + composer:2.11.1@sha256:6f1b891e1d4927d62740276c540fb490e47689e19e102c49e8da849794882f8c, + castor:1.9.1@sha256:3312568da9a593ad7d3ef6548f05c12d994dbc7140634e401531dc8d7de41764 + coverage: none + + # It builds the assets of the page, and runs the checks + - name: Setup node + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version: 24 + + # The cache of the PHP build needs the docker-container driver of buildx + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 + + # And the runtime token and URLs of GitHub Actions, that only actions get + - name: Expose the GitHub runtime + uses: crazy-max/ghaction-github-runtime@04d248b84655b509d8c44dc1d6f990c879747487 # v4.0.0 + + - name: Build + run: castor website:build --set '*.cache-from=type=gha' --set '*.cache-to=type=gha,mode=max,ignore-error=true' + + - name: Check + run: castor website:check + + - name: Upload the website + if: github.event_name == 'push' + uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 + with: + path: website/public + + # Only what passes the checks is deployed + deploy: + name: Deploy to GitHub Pages + if: github.event_name == 'push' + needs: build + runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1 diff --git a/.gitignore b/.gitignore index c39df613..badc993e 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,6 @@ phpunit.xml # Castor stubs .castor.stub.php + +# Demo website: the bake file of php-wasm-builder (what is built is ignored in website/) +/build/ diff --git a/README.md b/README.md index 26258556..ce61189c 100644 --- a/README.md +++ b/README.md @@ -513,6 +513,14 @@ Command | Description `castor qa:all` | Runs all QA tasks `castor qa:earl` | Runs the W3C test suites and writes the EARL conformance report (see [Conformance](#conformance)) +The following commands build the [demo website](website/README.md), that runs the validator in the browser: + +Command | Description +---- | ----- +`castor website:build` | Builds the demo website: its assets, and PHP as WebAssembly with the validator +`castor website:check` | Checks, in node, that what is built boots, and audits a document +`castor website:serve` | Serves the demo website + The following commands are available to run the tests: Command | Description diff --git a/castor.composer.json b/castor.composer.json new file mode 100644 index 00000000..3d6f21e8 --- /dev/null +++ b/castor.composer.json @@ -0,0 +1,5 @@ +{ + "require": { + "lyrixx/php-wasm-builder": "^0.12.2" + } +} diff --git a/castor.composer.lock b/castor.composer.lock new file mode 100644 index 00000000..bf09adc9 --- /dev/null +++ b/castor.composer.lock @@ -0,0 +1,65 @@ +{ + "_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": "95ec174aa579dbd21334503e189c23e4", + "packages": [ + { + "name": "lyrixx/php-wasm-builder", + "version": "v0.12.2", + "source": { + "type": "git", + "url": "https://github.com/lyrixx/php-wasm-builder.git", + "reference": "0531ddcd47bda35cc587dcb7856007ed9a0ba231" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/lyrixx/php-wasm-builder/zipball/0531ddcd47bda35cc587dcb7856007ed9a0ba231", + "reference": "0531ddcd47bda35cc587dcb7856007ed9a0ba231", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "type": "library", + "autoload": { + "files": [ + "src/functions-internal.php", + "src/functions.php" + ], + "psr-4": { + "PhpWasm\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Builds PHP as WebAssembly: a Dockerfile, and a castor function to build stacks (a PHP version, extensions, what to embed) with one command", + "keywords": [ + "castor", + "emscripten", + "php", + "wasm", + "webassembly" + ], + "support": { + "issues": "https://github.com/lyrixx/php-wasm-builder/issues", + "source": "https://github.com/lyrixx/php-wasm-builder/tree/v0.12.2" + }, + "time": "2026-11-05T18:51:25+00:00", + "published-time": "2026-11-05T18:51:31+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": {}, + "prefer-stable": false, + "prefer-lowest": false, + "platform": {}, + "platform-dev": {}, + "plugin-api-version": "2.11.0" +} diff --git a/phpstan.neon b/phpstan.neon index 0109918e..008e82a2 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -6,6 +6,10 @@ parameters: - tests - .castor - castor.php + excludePaths: + analyse: + # The packages of castor.composer.json, that the tasks of the website use + - .castor/vendor scanFiles: - .castor.stub.php scanDirectories: diff --git a/website/.gitignore b/website/.gitignore new file mode 100644 index 00000000..7d200ab7 --- /dev/null +++ b/website/.gitignore @@ -0,0 +1,4 @@ +/build/ +/node_modules/ +/public/build/ +/vendor/ diff --git a/website/README.md b/website/README.md new file mode 100644 index 00000000..4c3ee131 --- /dev/null +++ b/website/README.md @@ -0,0 +1,36 @@ +# Demo website + +A static page that audits a document with the validator, in the browser: PHP is built as +WebAssembly, with [lyrixx/php-wasm-builder](https://github.com/lyrixx/php-wasm-builder), and the +library of this repository embedded in it. GitHub Pages serves `public/`, deployed from `main` by +`.github/workflows/website.yml`. + +It comes from +[jolicode/structured-data-validator-demo](https://github.com/jolicode/structured-data-validator-demo), +without its server: the editor and the tree of the properties are its ones, with another look. +Fetching a URL needs a server, and is not here: a page can not read another website. Pretty-printing +the document is the "Format" button of the result: `assets/format.js` runs Prettier in the browser, +as its `bin/format-document.js` does in node. + +## How it works + +- `public/index.html` is the homepage. `assets/app.js` gives the document of its form, or one of + `assets/examples.js`, to PHP, and shows what it answers in place of the form. +- `bin/audit.php` is what PHP runs: it audits the document, and renders `templates/result.html.twig`, + the editor and the result, with Twig. +- `assets/php.js` loads PHP, and runs `bin/audit.php`. + +## Build it + +Docker, node and [Castor](https://github.com/jolicode/castor) are needed. The tasks are in +`.castor/website.php`: + +Command | Description +---- | ----- +`castor website:build` | Installs the dependencies, and builds the assets and PHP in `public/build/` +`castor website:check` | Checks, in node, that PHP boots, and runs the tests of `tests/` +`castor website:serve` | Serves the website on http://localhost:9999 + +`composer.json` declares the parent directory as a path repository: the website is built with the +code of the working directory, not with a release. Run `castor website:build` again after a change: +only the last step of the build of PHP runs again. diff --git a/website/assets/app.js b/website/assets/app.js new file mode 100644 index 00000000..bac2fb36 --- /dev/null +++ b/website/assets/app.js @@ -0,0 +1,60 @@ +import { Application } from "@hotwired/stimulus"; +import HighlightController from "./controllers/highlight_controller.js"; +import ResultController from "./controllers/result_controller.js"; +import { examples } from "./examples.js"; +import { audit } from "./php.js"; +import { loadSettings } from "./validatorSettings.js"; + +const app = Application.start(); +app.register("highlight", HighlightController); +app.register("result", ResultController); + +const submitButtons = () => document.querySelectorAll('button[type="submit"]'); + +// Both the form of the homepage and the one of the result audit their "body" +// field, and show the result in place of the
they are in. Stimulus sees +// the new one, and starts its controllers. +document.addEventListener("submit", async (event) => { + event.preventDefault(); + + const form = event.target; + const errorElement = form.querySelector("[data-validation-error]"); + const { mergeSharedIdentifiers, allowPendingVocabulary } = loadSettings(); + + errorElement.textContent = ""; + submitButtons().forEach((button) => (button.disabled = true)); + + try { + const { html, error } = await audit({ + body: form.elements.body.value, + mergeSharedIdentifiers, + allowPendingVocabulary, + }); + + if (error) { + errorElement.textContent = error; + } else { + document.querySelector("main").outerHTML = html; + window.scrollTo(0, 0); + } + } catch (error) { + console.error(error); + errorElement.textContent = "The validator crashed on this document, see the console for details."; + } finally { + submitButtons().forEach((button) => (button.disabled = false)); + } +}); + +document.addEventListener("click", (event) => { + const example = event.target.closest("[data-example]"); + if (!example) { + return; + } + + const form = document.querySelector("form"); + form.elements.body.value = examples[example.dataset.example]; + form.requestSubmit(); +}); + +// Until then, submitting would reload the page +submitButtons().forEach((button) => (button.disabled = false)); diff --git a/website/assets/controllers/highlight_controller.js b/website/assets/controllers/highlight_controller.js new file mode 100644 index 00000000..be2185d0 --- /dev/null +++ b/website/assets/controllers/highlight_controller.js @@ -0,0 +1,36 @@ +import { Controller } from "@hotwired/stimulus"; +// Not 'shiki': it brings every language and theme in the bundle +import { createHighlighterCore } from 'shiki/core' +import { createOnigurumaEngine } from 'shiki/engine/oniguruma' +import { default as javascript } from 'shiki/langs/javascript.mjs' +import { default as monokai } from 'shiki/themes/monokai.mjs' +import { default as shikiWasm } from 'shiki/wasm' + +// Created for the first code to highlight: the page does not wait for it +let highlighter = null; + +export default class extends Controller { + initialize() { + highlighter ??= createHighlighterCore({ + themes: [monokai], + langs: [javascript], + engine: createOnigurumaEngine(shikiWasm), + }); + + const highlightedNodes = this.element.querySelectorAll('pre:has(> code[class*="language-"])'); + + highlightedNodes.forEach(async (pre) => { + const highlightedHtmlString = (await highlighter).codeToHtml(pre.textContent, { + lang: 'javascript', + theme: 'monokai', + colorReplacements: { + '#272822': '#1f2937' + } + }); + + const parser = new DOMParser(); + const highlightedNode = parser.parseFromString(highlightedHtmlString, "text/html"); + pre.replaceWith(highlightedNode.body.firstChild); + }); + } +} diff --git a/website/assets/controllers/result_controller.js b/website/assets/controllers/result_controller.js new file mode 100644 index 00000000..23df1151 --- /dev/null +++ b/website/assets/controllers/result_controller.js @@ -0,0 +1,346 @@ +import { Controller } from "@hotwired/stimulus"; +import { loadSettings, persistSettings } from "../validatorSettings.js"; +import * as autocomplete from "@codemirror/autocomplete"; +import * as commands from "@codemirror/commands"; +import { htmlLanguage } from "@codemirror/lang-html"; +import { json, jsonLanguage } from "@codemirror/lang-json"; +import * as language from "@codemirror/language"; +import * as state from "@codemirror/state"; +import * as view from "@codemirror/view"; +import { configureNesting } from "@lezer/html"; + +const defaultValue = `{ + "@context": "https://schema.org", + "@type": "Organization", + "url": "https://jolicode.com", + "name": [ + "Web development agency" + ], + "contactPoint": { + "@type": "ContactPoint", + "url": "https://jolicode.com/contact", + "contactType": "Customer service" + } +}`; + +// override the html language configuration to support the nested json-ld blocks +const html = htmlLanguage.configure({ + wrap: configureNesting([ + { + tag: "script", + attrs(attrs) { + return attrs.type === "application/ld+json"; + }, + parser: jsonLanguage.parser, + }, + ]), +}); + +// data-start / data-end carry "line:column" pairs computed by PHP, valid only +// against the exact document it audited. Should the two ever drift +// apart, that must degrade to "no marker" rather than throw: doc.line() raises +// a RangeError, and one raised inside the transactionExtender below would +// abort the whole controller boot, leaving the visitor with a bare textarea +// and no editor at all. +const lineStart = (doc, rawLine) => { + const line = parseInt(rawLine, 10); + + // parseInt yields NaN on garbage, and both NaN < 1 and NaN > doc.lines are + // false, so the explicit check is doing real work here + if (!Number.isInteger(line) || line < 1 || line > doc.lines) { + return null; + } + + return doc.line(line).from; +}; + +export default class extends Controller { + static targets = [ + "codemirror", + "formatButton", + "nodes", + "settingsWrapper", + "settingsButton", + "settingsPanel", + "settingMergeNodes", + "settingAllowPending", + "settingAutoExpandWarnings", + "warnings", + ]; + + initialize() { + this.setupCodemirror(); + } + + connect() { + // the errors are always shown, the warnings of an entity are folded + // unless the settings say otherwise + const { autoExpandWarnings } = loadSettings(); + + this.warningsTargets.forEach((warnings) => { + warnings.open = autoExpandWarnings; + }); + } + + toggleSettings() { + const shouldOpen = this.settingsPanelTarget.classList.contains("hidden"); + + if (shouldOpen) { + const settings = loadSettings(); + this.settingMergeNodesTarget.checked = settings.mergeSharedIdentifiers; + this.settingAllowPendingTarget.checked = settings.allowPendingVocabulary; + this.settingAutoExpandWarningsTarget.checked = settings.autoExpandWarnings; + } + + this.settingsPanelTarget.classList.toggle("hidden", !shouldOpen); + this.settingsButtonTarget.setAttribute("aria-expanded", shouldOpen ? "true" : "false"); + } + + closeSettingsOnOutsideClick(event) { + if (this.settingsPanelTarget.classList.contains("hidden") || this.settingsWrapperTarget.contains(event.target)) { + return; + } + + this.settingsPanelTarget.classList.add("hidden"); + this.settingsButtonTarget.setAttribute("aria-expanded", "false"); + } + + // audit again so that the settings applied by PHP - merging and pending + // vocabulary - take effect + saveSettings() { + persistSettings({ + mergeSharedIdentifiers: this.settingMergeNodesTarget.checked, + allowPendingVocabulary: this.settingAllowPendingTarget.checked, + autoExpandWarnings: this.settingAutoExpandWarningsTarget.checked, + }); + + this.codemirrorTarget.form.requestSubmit(); + } + + // the audit reports lines and columns: once the document is reformatted, + // it is audited again + async format() { + const form = this.codemirrorTarget.form; + const errorElement = form.querySelector("[data-validation-error]"); + + errorElement.textContent = ""; + this.formatButtonTarget.disabled = true; + + try { + // Prettier is as big as the rest of the page: loaded when asked for + const { formatDocument } = await import("../format.js"); + const { content, error } = await formatDocument(this.editorView.state.doc.toString()); + + if (error) { + errorElement.textContent = error; + + return; + } + + this.editorView.dispatch({ + changes: { from: 0, to: this.editorView.state.doc.length, insert: content }, + }); + form.requestSubmit(); + } finally { + this.formatButtonTarget.disabled = false; + } + } + + setupCodemirror() { + let compartmentInitialized = false; + const compartmentEffects = []; + + // compute if a language change is required + const computeCurrentLanguage = (tr) => { + if (compartmentInitialized && !tr.docChanged) { + return null; + } + + const docIsHTML = /^\s* { + const currentLanguage = computeCurrentLanguage(tr); + + if (compartmentInitialized) { + return currentLanguage === null + ? null + : { + effects: compartment.reconfigure([ + currentLanguage, + ...compartmentEffects, + ]), + }; + } + + compartmentInitialized = true; + + const violationGutterMarker = new (class extends view.GutterMarker { + constructor() { + super(); + this.elementClass = "cm-violationLineGutter"; + } + })(); + + const ranges = []; + const positions = []; + + this.nodesTarget.querySelectorAll("[data-start]").forEach((node) => { + if (typeof node.dataset.invalid === "undefined") { + return; + } + + // a single range splits to a one-element list, so the pipe-joined and + // the lone case are the same code + node.dataset.start.split("|").forEach((start) => { + const from = lineStart(tr.startState.doc, start.split(":")[0]); + + if (from !== null) { + positions.push(from); + } + }); + }); + + positions.forEach((value, index) => { + if (positions.indexOf(value) === index) { + ranges.push(violationGutterMarker.range(value)); + } + }); + + if (ranges.length) { + compartmentEffects.push( + view.lineNumberMarkers.of(state.RangeSet.of(ranges, true)) + ); + } + + compartmentEffects.push(view.lineNumbers()); + + if (currentLanguage === null) { + return { + effects: compartment.reconfigure(compartmentEffects), + }; + } + + return { + effects: compartment.reconfigure([ + currentLanguage, + ...compartmentEffects, + ]), + }; + } + ); + + const customSelectionStyle = view.EditorView.baseTheme({ + ".cm-selectionBackground": { + backgroundColor: "rgb(255 255 100)", + }, + }); + + const extensions = (() => [ + view.highlightActiveLineGutter(), + view.highlightSpecialChars(), + commands.history(), + view.drawSelection(), + view.dropCursor(), + state.EditorState.allowMultipleSelections.of(true), + language.indentOnInput(), + language.syntaxHighlighting(language.defaultHighlightStyle, { + fallback: true, + }), + language.bracketMatching(), + compartment.of([]), + compartmentExtension, + autocomplete.closeBrackets(), + autocomplete.autocompletion(), + view.rectangularSelection(), + view.crosshairCursor(), + view.highlightActiveLine(), + view.keymap.of([ + ...autocomplete.closeBracketsKeymap, + ...commands.defaultKeymap, + ...commands.historyKeymap, + commands.indentWithTab, + ...autocomplete.completionKeymap, + ]), + customSelectionStyle, + ])(); + + // create the editor + const editorView = new view.EditorView({ + doc: this.codemirrorTarget.value || defaultValue, + extensions, + }); + this.editorView = editorView; + this.codemirrorTarget.parentNode.insertBefore(editorView.dom, this.codemirrorTarget); + this.codemirrorTarget.style.display = "none"; + + // app.js audits what the textarea holds, once the event reaches the document + this.codemirrorTarget.form.addEventListener("submit", () => { + this.codemirrorTarget.value = editorView.state.doc.toString(); + }); + + // force an initial configuration of our comprtment + editorView.dispatch({ + effects: compartment.reconfigure(html), + }); + + + // handle the clicks on the nodes + this.nodesTarget.addEventListener("click", (e) => { + // a link of an issue is followed, not taken for its issue + const node = e.target.closest("a, [data-start]"); + + if (node && node.dataset.start && node.dataset.end) { + e.preventDefault(); + // several ranges are joined with a pipe: the first one is selected + const start = node.dataset.start.split("|")[0].split(":"); + const end = node.dataset.end.split("|")[0].split(":"); + + // tested before computing anything, so an approximate range cannot + // throw on its way to being ignored + if (start.length > 2 && start[2] === "approx") { + return; + } + + const startFrom = lineStart(editorView.state.doc, start[0]); + const endFrom = lineStart(editorView.state.doc, end[0]); + + if (startFrom === null || endFrom === null) { + return; + } + + // a column can overrun its line even when the line number is sound, + // and EditorSelection rejects an out-of-document position + const docLength = editorView.state.doc.length; + const bookmarkStart = Math.max(0, Math.min(startFrom + parseInt(start[1], 10) - 1, docLength)); + const bookmarkEnd = Math.max(0, Math.min(endFrom + parseInt(end[1], 10) - 1, docLength)); + + editorView.dispatch({ + selection: { + anchor: bookmarkEnd, + head: bookmarkStart, + }, + }); + editorView.dispatch( + editorView.state.update({ + effects: view.EditorView.scrollIntoView(bookmarkEnd, { + y: 'center', + x: 'center', + }), + }) + ); + } + }); + } +} diff --git a/website/assets/examples.js b/website/assets/examples.js new file mode 100644 index 00000000..87ef6c4a --- /dev/null +++ b/website/assets/examples.js @@ -0,0 +1,53 @@ +// The documents behind the "Try an example" buttons of the homepage, by the +// data-example of their button. + +export const examples = { + product: ``, + + article: ``, + + microdata: ` + + + Jane Doe + + +
+

Jane Doe

+

Web developer

+ +
+ Example + 2010 +
+
+ +`, +}; diff --git a/website/assets/format.js b/website/assets/format.js new file mode 100644 index 00000000..d929a8c7 --- /dev/null +++ b/website/assets/format.js @@ -0,0 +1,170 @@ +// Pretty-prints the document of the editor, with Prettier. It comes from +// jolicode/structured-data-validator-demo (bin/format-document.js and +// src/Formatter/), that runs it in node. +// +// Loaded on demand by result_controller.js: Prettier is as big as the rest of +// the page. + +import * as prettier from "prettier/standalone"; +import * as babelPlugin from "prettier/plugins/babel"; +import * as estreePlugin from "prettier/plugins/estree"; +import * as htmlPlugin from "prettier/plugins/html"; +import { indentTolerantly } from "./tolerant-html.js"; + +// Prettier's memory use grows with the input, and the editor struggles well +// before this anyway. +const MAX_DOCUMENT_SIZE = 1024 * 1024; + +// Mirrors JsonLdNodeExtractor::looksLikeRawJsonDocument(), so that the +// formatter and the extractor classify a document the same way. +const HTML_TAG_RE = /<\s*(?:!doctype|html|head|body|script|meta|div|span|section|article|main)\b/i; + +// Same shape as JsonLdNodeExtractor::extractJsonLdNodes(), split so that the +// payload can be replaced without touching the surrounding tags. +const JSON_LD_SCRIPT_RE = + /(]+type=["']application\/ld\+json["'][^>]*>)([\s\S]*?)(<\/script\s*>)/gi; + +const OPTIONS = { + plugins: [babelPlugin, estreePlugin, htmlPlugin], + tabWidth: 2, + useTabs: false, + endOfLine: "lf", + htmlWhitespaceSensitivity: "css", + bracketSameLine: true, + embeddedLanguageFormatting: "auto", +}; + +// Prettier fills text nodes up to printWidth, and that is the one thing this +// formatter must never do: MicrodataExtractor reads element text content as +// property values, so re-wrapping a long description injects a newline into +// the value the validator then reports. A width no document reaches disables +// filling outright, while the structural line breaks between elements - the +// ones that make a minified page readable - happen regardless of it. +const HTML_PRINT_WIDTH = 1000000; + +// The JSON-LD payloads, on the other hand, want a normal width. They are +// expanded first, in expandJsonLdPayloads() below, because Prettier keeps an +// object that already spans several lines expanded whatever printWidth says - +// which is how both settings hold at once in a single document. +// +// Note that Prettier's json parser reprints the source tokens rather than +// re-encoding decoded values, so large integers survive where a +// JSON.parse/JSON.stringify round trip would silently round them off. It does +// normalise number literals though: 1.50 is reprinted as 1.5. +const JSON_PRINT_WIDTH = 120; + +const INVALID_JSON = "This document holds invalid JSON, so it is left as it is: the validator says where."; +const TOO_LARGE = "This document is too large to be reformatted."; + +/** + * Resolves with the { content } to put in the editor, or with the { error } + * that says why the document is left as it is. + */ +export async function formatDocument(document) { + if (document.trim() === "") { + return { content: document }; + } + + if (new TextEncoder().encode(document).length > MAX_DOCUMENT_SIZE) { + return { error: TOO_LARGE }; + } + + if (looksLikeRawJsonDocument(document.trim())) { + if (!isValidJson(document)) { + return { error: INVALID_JSON }; + } + + return { content: await formatJson(document) }; + } + + // A structured data validator must report syntax errors where they are, so + // a document holding invalid JSON is never formatted. + if (hasInvalidJsonLdPayload(document)) { + return { error: INVALID_JSON }; + } + + const expanded = await expandJsonLdPayloads(document); + + try { + return { + content: await prettier.format(expanded, { + ...OPTIONS, + parser: "html", + printWidth: HTML_PRINT_WIDTH, + }), + }; + } catch (error) { + // Prettier's HTML parser is stricter than any browser, and real pages + // trip it often: fall back to a re-indenter that cannot fail, and that + // repairs nothing. + console.warn(error); + + return { content: indentTolerantly(expanded, { tabWidth: OPTIONS.tabWidth }) }; + } +} + +function looksLikeRawJsonDocument(trimmed) { + if (trimmed[0] !== "{" && trimmed[0] !== "[") { + return false; + } + + return !HTML_TAG_RE.test(trimmed); +} + +function isValidJson(json) { + try { + JSON.parse(json); + } catch { + return false; + } + + return true; +} + +function hasInvalidJsonLdPayload(document) { + for (const match of document.matchAll(JSON_LD_SCRIPT_RE)) { + if (match[2].trim() !== "" && !isValidJson(match[2])) { + return true; + } + } + + return false; +} + +// Prettier keeps an object expanded when the source already had a line break +// after its opening brace, and collapses it onto one line otherwise - so a +// short minified payload would come back exactly as minified as it went in. +// Putting that line break in is how you ask for the expanded form; there is no +// option for it. +function formatJson(json) { + return prettier.format(json.replace(/^(\s*\{)(?!\s*\n)/, "$1\n"), { + ...OPTIONS, + parser: "json", + printWidth: JSON_PRINT_WIDTH, + }); +} + +// Expands every embedded JSON-LD payload, leaving every other byte of the +// document alone. Runs before the HTML pass, see JSON_PRINT_WIDTH. +async function expandJsonLdPayloads(document) { + let result = ""; + let cursor = 0; + + for (const match of document.matchAll(JSON_LD_SCRIPT_RE)) { + const payload = match[2]; + + if (payload.trim() === "") { + continue; + } + + const start = match.index + match[1].length; + const expanded = await formatJson(payload); + + // the HTML pass re-indents this block, so a bare newline on each side is + // all that is needed here + result += `${document.slice(cursor, start)}\n${expanded.trim()}\n`; + cursor = start + payload.length; + } + + return result + document.slice(cursor); +} diff --git a/website/assets/images/arrow.svg b/website/assets/images/arrow.svg new file mode 100644 index 00000000..35364977 --- /dev/null +++ b/website/assets/images/arrow.svg @@ -0,0 +1 @@ + diff --git a/website/assets/images/check.svg b/website/assets/images/check.svg new file mode 100644 index 00000000..678bf763 --- /dev/null +++ b/website/assets/images/check.svg @@ -0,0 +1,3 @@ + diff --git a/website/assets/images/error.svg b/website/assets/images/error.svg new file mode 100644 index 00000000..6991b548 --- /dev/null +++ b/website/assets/images/error.svg @@ -0,0 +1,3 @@ + diff --git a/website/assets/images/info.svg b/website/assets/images/info.svg new file mode 100644 index 00000000..0da5f6a0 --- /dev/null +++ b/website/assets/images/info.svg @@ -0,0 +1,3 @@ + + + diff --git a/website/assets/images/link.svg b/website/assets/images/link.svg new file mode 100644 index 00000000..b4a210f0 --- /dev/null +++ b/website/assets/images/link.svg @@ -0,0 +1,3 @@ + + + diff --git a/website/assets/images/settings.svg b/website/assets/images/settings.svg new file mode 100644 index 00000000..d2447630 --- /dev/null +++ b/website/assets/images/settings.svg @@ -0,0 +1,4 @@ + diff --git a/website/assets/images/warning.svg b/website/assets/images/warning.svg new file mode 100644 index 00000000..da4868df --- /dev/null +++ b/website/assets/images/warning.svg @@ -0,0 +1,3 @@ + diff --git a/website/assets/php.js b/website/assets/php.js new file mode 100644 index 00000000..11bc4ecb --- /dev/null +++ b/website/assets/php.js @@ -0,0 +1,31 @@ +// The validator in PHP WebAssembly, without the DOM: app.js wires it to the +// page, tests/page.test.mjs tests it in node. + +// Built next to this module, in public/build: see .castor/website.php +import createPhp from "./php-web.mjs"; + +// Where .castor/website.php embeds it +const AUDIT_SCRIPT = "/app/bin/audit.php"; + +// Loading starts with the page, the first audit waits for it +const loadingPhp = createPhp(); + +/** + * Resolves with what bin/audit.php answers: the { html } of the result, or the + * { error } that says why the document is not audited. + */ +export async function audit({ body, mergeSharedIdentifiers, allowPendingVocabulary }) { + const php = await loadingPhp; + const { exitCode, stdout, stderr } = await php.runFile(AUDIT_SCRIPT, { + stdin: JSON.stringify({ allowPendingVocabulary, body, mergeSharedIdentifiers }), + }); + + if (stderr) { + console.error(stderr); + } + if (exitCode !== 0) { + throw new Error(`PHP exited with status ${exitCode}, see the console for details.`); + } + + return JSON.parse(stdout); +} diff --git a/website/assets/styles/app.css b/website/assets/styles/app.css new file mode 100644 index 00000000..a413243e --- /dev/null +++ b/website/assets/styles/app.css @@ -0,0 +1,97 @@ +/* The fonts are served with the page, from public/build/files: see the build:fonts script of package.json */ +@import "@fontsource-variable/inter/wght.css"; +@import "@fontsource-variable/jetbrains-mono/wght.css"; +@import "@fontsource-variable/space-grotesk/wght.css"; + +@import "tailwindcss"; +@plugin "@tailwindcss/typography"; + +/* As Tailwind 3 did, and as the templates of the property tree expect: a border is light unless it says otherwise */ +@layer base { + *, + ::after, + ::before { + border-color: var(--color-gray-200, currentColor); + } +} + +@theme { + --font-display: "Space Grotesk Variable", ui-sans-serif, system-ui, sans-serif; + --font-mono: "JetBrains Mono Variable", ui-monospace, monospace; + --font-sans: "Inter Variable", ui-sans-serif, system-ui, sans-serif; +} + +.cm-editor { + @apply h-full text-[13px]; + + &.cm-focused { + outline: none; + } + + .cm-scroller { + @apply font-mono leading-6; + } + + .cm-gutters { + @apply bg-white text-gray-500; + border-right: 0; + } + + .cm-gutterElement.cm-violationLineGutter { + @apply bg-red-50 font-medium text-red-700; + } +} + +.c-icon__svg { + display: inline-block; + height: 1.5em; + vertical-align: top; + width: auto; + fill: currentColor; + stroke: currentColor; + stroke-width: 0; +} + +.structured-data-reference { + @apply rounded-lg bg-gray-50 p-3 text-xs text-gray-600; + + .structured-data-description { + a { + @apply text-blue-700; + } + + a:hover { + @apply underline text-blue-900; + } + + p { + @apply mt-0; + + &:not(:last-child) { + @apply mb-2; + } + } + } +} + +[data-result-target=nodes] { + [data-start]:hover { + @apply bg-yellow-100; + } +} + +details[open]>.detail { + border-color: transparent; +} + +details[open]>summary .transition { + @apply rotate-180; +} + +summary .transition { + @apply opacity-0; +} + +summary:hover .transition { + @apply opacity-100; +} diff --git a/website/assets/tolerant-html.js b/website/assets/tolerant-html.js new file mode 100644 index 00000000..2319dca7 --- /dev/null +++ b/website/assets/tolerant-html.js @@ -0,0 +1,260 @@ +// A deliberately unfussy HTML re-indenter, used by format.js when Prettier +// refuses a document. It comes from jolicode/structured-data-validator-demo +// (bin/tolerant-html.js). +// +// Prettier's parser is stricter than any browser: a stray , an +// unclosed , a lost space in "]+)/.exec(tag); + + return match ? match[1].toLowerCase() : ""; +} + +/** + * Splits the document into tags, text, comments and raw-text blocks. Anything + * it cannot make sense of comes back as text, which is what keeps it total. + */ +function tokenize(html) { + const tokens = []; + let index = 0; + + const pushText = (value) => { + if ("" === value) { + return; + } + + const last = tokens[tokens.length - 1]; + + if (last && "text" === last.type) { + last.value += value; + } else { + tokens.push({ type: "text", value }); + } + }; + + while (index < html.length) { + const next = html.indexOf("<", index); + + if (next === -1) { + pushText(html.slice(index)); + break; + } + + if (next > index) { + pushText(html.slice(index, next)); + } + + const rest = html.slice(next); + + const comment = /^/.exec(rest); + if (comment) { + tokens.push({ type: "comment", value: comment[0] }); + index = next + comment[0].length; + continue; + } + + const declaration = /^]*>/.exec(rest); + if (declaration) { + tokens.push({ type: "declaration", value: declaration[0] }); + index = next + declaration[0].length; + continue; + } + + const tag = /^<\/?[^\s/>][^>]*>/.exec(rest); + if (!tag) { + // a bare "<" in text: not a tag, so it is text + pushText("<"); + index = next + 1; + continue; + } + + const name = tagName(tag[0]); + const closing = "/" === tag[0][1]; + + if (!closing && RAW_TEXT_ELEMENTS.has(name)) { + const after = next + tag[0].length; + const end = new RegExp(``, "i").exec(html.slice(after)); + // an unterminated raw-text element swallows the rest of the document, + // which is exactly what a browser does too + const body = end ? html.slice(after, after + end.index) : html.slice(after); + const closer = end ? end[0] : ""; + + tokens.push({ type: "raw", name, open: tag[0], body, close: closer }); + index = after + body.length + closer.length; + continue; + } + + tokens.push({ + type: "tag", + name, + closing, + selfClosing: tag[0].endsWith("/>") || VOID_ELEMENTS.has(name), + value: tag[0], + }); + index = next + tag[0].length; + } + + return tokens; +} + +export function indentTolerantly(html, { tabWidth = 2 } = {}) { + const tokens = tokenize(html); + const lines = []; + let current = ""; + let depth = 0; + + const pad = (level) => " ".repeat(Math.max(0, level) * tabWidth); + + const flush = () => { + if ("" !== current.trim()) { + lines.push(current); + } + + current = ""; + }; + + const startLine = (level) => { + flush(); + current = pad(level); + }; + + for (const token of tokens) { + if ("text" === token.type) { + // whitespace between elements is layout, not content: it is the one + // thing safe to drop, and dropping it is what lets the indentation read + if ("" === token.value.trim()) { + continue; + } + + // Same reasoning at the edges of a text run: a whitespace run holding a + // newline is indentation, so it goes, while a plain space is content and + // stays - " -by " has to keep both of its spaces. Dropping + // these is also what makes a second pass reproduce the first one exactly, + // instead of re-indenting its own indentation. + current += token.value.replace(/^[^\S\n]*\n\s*/, "").replace(/\s*\n[^\S\n]*$/, ""); + continue; + } + + if ("raw" === token.type) { + startLine(depth); + current += token.open; + + if ("" !== token.body.trim()) { + // the body is data; re-indent its existing lines but never touch what + // is on them, and leave single-line bodies exactly where they are + const body = token.body.replace(/^\n+|\s+$/g, ""); + + if (body.includes("\n")) { + flush(); + const inner = pad(depth + 1); + const shortest = Math.min( + ...body.split("\n").filter((l) => "" !== l.trim()).map((l) => /^\s*/.exec(l)[0].length), + ); + + for (const line of body.split("\n")) { + lines.push("" === line.trim() ? "" : inner + line.slice(shortest)); + } + + current = pad(depth); + } else { + current += body; + } + } + + current += token.close; + startLine(depth); + continue; + } + + if ("declaration" === token.type || "comment" === token.type) { + startLine(depth); + current += token.value; + startLine(depth); + continue; + } + + // A void element never opened a level, so its end tag must not close one. + // Browsers ignore and
outright, and it is precisely this + // kind of tag that makes Prettier walk away, so treat it as the no-op it + // is: no indentation change, and no line of its own either. It is still + // emitted, unrepaired, like every other tag. + if (token.closing && VOID_ELEMENTS.has(token.name)) { + if ("" === current.trim() && lines.length > 0) { + lines[lines.length - 1] += token.value; + } else { + current += token.value; + } + + continue; + } + + if (!BLOCK_ELEMENTS.has(token.name)) { + current += token.value; + continue; + } + + if (token.closing) { + // stray closers are common in the documents that get this far, and must + // not push the indentation into negative territory + depth = Math.max(0, depth - 1); + + // a block close that ends a line of inline content stays on that line + if ("" === current.trim()) { + startLine(depth); + } + + current += token.value; + startLine(depth); + continue; + } + + startLine(depth); + current += token.value; + + if (!token.selfClosing) { + depth += 1; + } + + // the next line opens already indented, so inline content that follows a + // block tag lands under it instead of at column zero + startLine(depth); + } + + flush(); + + return lines.join("\n") + "\n"; +} diff --git a/website/assets/validatorSettings.js b/website/assets/validatorSettings.js new file mode 100644 index 00000000..1fd5a19f --- /dev/null +++ b/website/assets/validatorSettings.js @@ -0,0 +1,22 @@ +// Validation settings persisted in the browser: the settings menu of the result +// writes them, and each audit reads them. + +const STORAGE_KEY = "structured-data-validator-settings"; + +export const defaultSettings = { + mergeSharedIdentifiers: true, + autoExpandWarnings: false, + allowPendingVocabulary: true, +}; + +export function loadSettings() { + try { + return { ...defaultSettings, ...JSON.parse(localStorage.getItem(STORAGE_KEY) ?? "{}") }; + } catch { + return { ...defaultSettings }; + } +} + +export function persistSettings(settings) { + localStorage.setItem(STORAGE_KEY, JSON.stringify({ ...defaultSettings, ...settings })); +} diff --git a/website/bin/audit.php b/website/bin/audit.php new file mode 100644 index 00000000..47423d7e --- /dev/null +++ b/website/bin/audit.php @@ -0,0 +1,70 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +// Run in the browser by PHP WebAssembly, see assets/php.js: the request is on +// stdin, and the answer on stdout, as JSON: the "html" of the result, or the +// "error" that says why the document is not audited. + +use JoliCode\StructuredData\Audit\Item; +use JoliCode\StructuredData\Mapper\MappedType; +use JoliCode\StructuredData\Validator; +use JoliCode\StructuredData\Website\Twig\JsonLdExtension; +use JoliCode\StructuredData\Website\Twig\MarkdownExtension; +use Twig\Environment; +use Twig\Loader\FilesystemLoader; + +ini_set('display_errors', '0'); +ini_set('log_errors', '1'); + +require __DIR__ . '/../vendor/autoload.php'; + +// Auditing holds the document, its DOMDocument and the expanded JSON-LD at +// once, in the memory of the WebAssembly module, that does not grow. +const MAX_DOCUMENT_SIZE = 2 * 1024 * 1024; + +/** @var array{allowPendingVocabulary: bool, body: string, mergeSharedIdentifiers: bool} $request */ +$request = json_decode((string) file_get_contents('php://stdin'), true, flags: \JSON_THROW_ON_ERROR); + +$body = $request['body']; + +$error = match (true) { + '' === trim($body) => 'Please enter some code to validate.', + strlen($body) > MAX_DOCUMENT_SIZE => 'This document is too large to be validated.', + default => null, +}; + +if (null !== $error) { + echo json_encode(['error' => $error], \JSON_THROW_ON_ERROR); + + return; +} + +$audit = new Validator()->audit( + $body, + reportPendingVocabularyUsage: !$request['allowPendingVocabulary'], + mergeNodesSharingAnIdentifier: $request['mergeSharedIdentifiers'], +); + +$loader = new FilesystemLoader(__DIR__ . '/../templates'); +$loader->addPath(__DIR__ . '/../assets/images', 'images'); + +$twig = new Environment($loader, ['strict_variables' => true]); +$twig->addExtension(new JsonLdExtension()); +$twig->addExtension(new MarkdownExtension()); + +echo json_encode([ + 'html' => $twig->render('result.html.twig', [ + 'body' => $body, + // The items, not the blocks: with the merge on, the blocks sharing an + // identifier make one item, whose node carries the verdict. + 'types' => array_map(static fn (Item $item): MappedType => $item->getType(), $audit->getItems()), + ]), +], \JSON_THROW_ON_ERROR); diff --git a/website/composer.json b/website/composer.json new file mode 100644 index 00000000..6dff2b87 --- /dev/null +++ b/website/composer.json @@ -0,0 +1,32 @@ +{ + "name": "jolicode/structured-data-website", + "description": "Demo website for jolicode/structured-data", + "type": "project", + "license": "MIT", + "repositories": [ + { + "type": "path", + "url": "..", + "options": { + "symlink": false, + "versions": { + "jolicode/structured-data": "dev-main" + } + } + } + ], + "require": { + "php": "^8.5", + "jolicode/structured-data": "dev-main@dev", + "league/commonmark": "^2.9", + "twig/twig": "^3.8" + }, + "autoload": { + "psr-4": { + "JoliCode\\StructuredData\\Website\\": "src/" + } + }, + "config": { + "sort-packages": true + } +} diff --git a/website/composer.lock b/website/composer.lock new file mode 100644 index 00000000..baf81445 --- /dev/null +++ b/website/composer.lock @@ -0,0 +1,1488 @@ +{ + "_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": "a2e32b047863d8cd73eb050d7b8250cb", + "packages": [ + { + "name": "dflydev/dot-access-data", + "version": "v3.0.3", + "source": { + "type": "git", + "url": "https://github.com/dflydev/dflydev-dot-access-data.git", + "reference": "a23a2bf4f31d3518f3ecb38660c95715dfead60f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/a23a2bf4f31d3518f3ecb38660c95715dfead60f", + "reference": "a23a2bf4f31d3518f3ecb38660c95715dfead60f", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.42", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.3", + "scrutinizer/ocular": "1.6.0", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Dflydev\\DotAccessData\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dragonfly Development Inc.", + "email": "info@dflydev.com", + "homepage": "http://dflydev.com" + }, + { + "name": "Beau Simensen", + "email": "beau@dflydev.com", + "homepage": "http://beausimensen.com" + }, + { + "name": "Carlos Frutos", + "email": "carlos@kiwing.it", + "homepage": "https://github.com/cfrutos" + }, + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com" + } + ], + "description": "Given a deep data structure, access data by dot notation.", + "homepage": "https://github.com/dflydev/dflydev-dot-access-data", + "keywords": [ + "access", + "data", + "dot", + "notation" + ], + "support": { + "issues": "https://github.com/dflydev/dflydev-dot-access-data/issues", + "source": "https://github.com/dflydev/dflydev-dot-access-data/tree/v3.0.3" + }, + "time": "2024-07-08T12:26:09+00:00", + "published-time": "2024-07-08T12:27:13+00:00" + }, + { + "name": "jolicode/structured-data", + "version": "dev-main", + "dist": { + "type": "path", + "url": "..", + "reference": "7309c33564af195a02e41b09556719f379c6b66e" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "league/uri": "^7.8", + "php": "^8.4", + "psr/log": "^1|^2|^3", + "salsify/json-streaming-parser": "^8.3", + "symfony/http-client-contracts": "^3.0" + }, + "require-dev": { + "ext-zip": "*", + "nikic/php-parser": "^5.0", + "symfony/console": "^8.0", + "symfony/css-selector": "^8.0", + "symfony/dom-crawler": "^8.0", + "symfony/filesystem": "^8.0", + "symfony/finder": "^8.0", + "symfony/http-client": "^7.2|^8.0", + "symfony/var-dumper": "^8.0" + }, + "suggest": { + "symfony/http-client": "To resolve remote JSON-LD @context documents (off by default; see the \"Loading remote contexts\" section of the README)." + }, + "type": "library", + "autoload": { + "psr-4": { + "JoliCode\\StructuredData\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "JoliCode\\StructuredData\\Tests\\": "tests/", + "JoliCode\\StructuredData\\Vocabularies\\Generators\\": "generators/" + } + }, + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Hédic Guibert", + "email": "hguibert@jolicode.com" + }, + { + "name": "Xavier Lacot", + "email": "xlacot@jolicode.com" + } + ], + "description": "A PHP toolkit to validate and convert structured data: Schema.org and Google Rich Results validation, microdata/RDFa/JSON-LD extraction, and the W3C JSON-LD 1.1 algorithms.", + "homepage": "https://github.com/jolicode/structured-data", + "keywords": [ + "json-ld", + "microdata", + "rdfa", + "rich-results", + "schema.org", + "seo", + "structured-data" + ], + "support": { + "issues": "https://github.com/jolicode/structured-data/issues", + "source": "https://github.com/jolicode/structured-data" + }, + "transport-options": { + "symlink": false, + "relative": true + } + }, + { + "name": "league/commonmark", + "version": "2.10.7", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/commonmark.git", + "reference": "8eb53e906fd60c67038d22f1f1cab420ed58b8be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/8eb53e906fd60c67038d22f1f1cab420ed58b8be", + "reference": "8eb53e906fd60c67038d22f1f1cab420ed58b8be", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "league/config": "^1.1.1", + "php": "^7.4 || ^8.0", + "psr/event-dispatcher": "^1.0", + "symfony/deprecation-contracts": "^2.1 || ^3.0", + "symfony/polyfill-php80": "^1.16" + }, + "require-dev": { + "cebe/markdown": "^1.0", + "commonmark/cmark": "0.31.1", + "commonmark/commonmark.js": "0.31.1", + "composer/package-versions-deprecated": "^1.8", + "embed/embed": "^4.4", + "erusev/parsedown": "^1.0", + "ext-json": "*", + "github/gfm": "0.29.0", + "michelf/php-markdown": "^1.4 || ^2.0", + "nyholm/psr7": "^1.5", + "phpstan/phpstan": "^2.0.0", + "phpunit/phpunit": "^9.5.21 || ^10.5.9 || ^11.0.0 || ^12.0.0 || ^13.0.0", + "scrutinizer/ocular": "^1.8.1", + "symfony/finder": "^5.3 | ^6.0 | ^7.0 || ^8.0", + "symfony/process": "^5.4 | ^6.0 | ^7.0 || ^8.0", + "symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0 | ^7.0 || ^8.0", + "unleashedtech/php-coding-standard": "^3.1.1", + "vimeo/psalm": "^4.24.0 || ^5.0.0 || ^6.0.0" + }, + "suggest": { + "symfony/yaml": "v2.3+ required if using the Front Matter extension" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.11-dev" + } + }, + "autoload": { + "psr-4": { + "League\\CommonMark\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)", + "homepage": "https://commonmark.thephpleague.com", + "keywords": [ + "commonmark", + "flavored", + "gfm", + "github", + "github-flavored", + "markdown", + "md", + "parser" + ], + "support": { + "docs": "https://commonmark.thephpleague.com/", + "forum": "https://github.com/thephpleague/commonmark/discussions", + "issues": "https://github.com/thephpleague/commonmark/issues", + "rss": "https://github.com/thephpleague/commonmark/releases.atom", + "source": "https://github.com/thephpleague/commonmark" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/commonmark", + "type": "tidelift" + } + ], + "time": "2026-10-31T13:35:37+00:00", + "published-time": "2026-10-31T13:35:57+00:00" + }, + { + "name": "league/config", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/config.git", + "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/config/zipball/754b3604fb2984c71f4af4a9cbe7b57f346ec1f3", + "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3", + "shasum": "" + }, + "require": { + "dflydev/dot-access-data": "^3.0.1", + "nette/schema": "^1.2", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.8.2", + "phpunit/phpunit": "^9.5.5", + "scrutinizer/ocular": "^1.8.1", + "unleashedtech/php-coding-standard": "^3.1", + "vimeo/psalm": "^4.7.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.2-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Config\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Define configuration arrays with strict schemas and access values with dot notation", + "homepage": "https://config.thephpleague.com", + "keywords": [ + "array", + "config", + "configuration", + "dot", + "dot-access", + "nested", + "schema" + ], + "support": { + "docs": "https://config.thephpleague.com/", + "issues": "https://github.com/thephpleague/config/issues", + "rss": "https://github.com/thephpleague/config/releases.atom", + "source": "https://github.com/thephpleague/config" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + } + ], + "time": "2022-12-11T20:36:23+00:00", + "published-time": "2022-12-11T20:36:45+00:00" + }, + { + "name": "league/uri", + "version": "7.10.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/uri.git", + "reference": "be89e2382e37acdef232259071ade5180821397b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/uri/zipball/be89e2382e37acdef232259071ade5180821397b", + "reference": "be89e2382e37acdef232259071ade5180821397b", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "league/uri-interfaces": "^7.10.0", + "php": "^8.1", + "psr/http-factory": "^1" + }, + "conflict": { + "league/uri-schemes": "^1.0" + }, + "suggest": { + "ext-bcmath": "to improve IPV4 host parsing", + "ext-dom": "to convert the URI into an HTML anchor tag", + "ext-fileinfo": "to create Data URI from file contennts", + "ext-gmp": "to improve IPV4 host parsing", + "ext-intl": "to handle IDN host with the best performance", + "ext-uri": "to use the PHP native URI class", + "jeremykendall/php-domain-parser": "to further parse the URI host and resolve its Public Suffix and Top Level Domain", + "league/uri-components": "to provide additional tools to manipulate URI objects components", + "league/uri-polyfill": "to backport the PHP URI extension for older versions of PHP", + "php-64bit": "to improve IPV4 host parsing", + "rowbot/url": "to handle URLs using the WHATWG URL Living Standard specification", + "symfony/polyfill-intl-idn": "to handle IDN host via the Symfony polyfill if ext-intl is not present" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.x-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Uri\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ignace Nyamagana Butera", + "email": "nyamsprod@gmail.com", + "homepage": "https://nyamsprod.com" + } + ], + "description": "URI manipulation library", + "homepage": "https://uri.thephpleague.com", + "keywords": [ + "URN", + "data-uri", + "file-uri", + "ftp", + "hostname", + "http", + "https", + "middleware", + "parse_str", + "parse_url", + "psr-7", + "query-string", + "querystring", + "rfc2141", + "rfc3986", + "rfc3987", + "rfc6570", + "rfc8141", + "uri", + "uri-template", + "url", + "ws" + ], + "support": { + "docs": "https://uri.thephpleague.com", + "forum": "https://thephpleague.slack.com", + "issues": "https://github.com/thephpleague/uri-src/issues", + "source": "https://github.com/thephpleague/uri/tree/7.10.0" + }, + "funding": [ + { + "url": "https://github.com/sponsors/nyamsprod", + "type": "github" + } + ], + "time": "2026-11-04T12:45:07+00:00", + "published-time": "2026-11-04T13:02:21+00:00" + }, + { + "name": "league/uri-interfaces", + "version": "7.10.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/uri-interfaces.git", + "reference": "ea66240cff4ae9a56ce85d577a04d038b771e51c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/uri-interfaces/zipball/ea66240cff4ae9a56ce85d577a04d038b771e51c", + "reference": "ea66240cff4ae9a56ce85d577a04d038b771e51c", + "shasum": "" + }, + "require": { + "ext-filter": "*", + "php": "^8.1", + "psr/http-message": "^1.1 || ^2.0" + }, + "suggest": { + "ext-bcmath": "to improve IPV4 host parsing", + "ext-gmp": "to improve IPV4 host parsing", + "ext-intl": "to handle IDN host with the best performance", + "php-64bit": "to improve IPV4 host parsing", + "rowbot/url": "to handle URLs using the WHATWG URL Living Standard specification", + "symfony/polyfill-intl-idn": "to handle IDN host via the Symfony polyfill if ext-intl is not present" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.x-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Uri\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ignace Nyamagana Butera", + "email": "nyamsprod@gmail.com", + "homepage": "https://nyamsprod.com" + } + ], + "description": "Common tools for parsing and resolving RFC3987/RFC3986 URI", + "homepage": "https://uri.thephpleague.com", + "keywords": [ + "data-uri", + "file-uri", + "ftp", + "hostname", + "http", + "https", + "parse_str", + "parse_url", + "psr-7", + "query-string", + "querystring", + "rfc3986", + "rfc3987", + "rfc6570", + "uri", + "url", + "ws" + ], + "support": { + "docs": "https://uri.thephpleague.com", + "forum": "https://thephpleague.slack.com", + "issues": "https://github.com/thephpleague/uri-src/issues", + "source": "https://github.com/thephpleague/uri-interfaces/tree/7.10.0" + }, + "funding": [ + { + "url": "https://github.com/sponsors/nyamsprod", + "type": "github" + } + ], + "time": "2026-11-04T12:45:07+00:00", + "published-time": "2026-11-04T13:02:27+00:00" + }, + { + "name": "nette/schema", + "version": "v1.4.0", + "source": { + "type": "git", + "url": "https://github.com/nette/schema.git", + "reference": "af9fa8a86bfca9b02b10346220db26e62ef942ec" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/schema/zipball/af9fa8a86bfca9b02b10346220db26e62ef942ec", + "reference": "af9fa8a86bfca9b02b10346220db26e62ef942ec", + "shasum": "" + }, + "require": { + "nette/utils": "^4.0", + "php": "8.1 - 8.6" + }, + "require-dev": { + "nette/phpstan-rules": "^1.0.7", + "nette/tester": "^2.6", + "phpstan/extension-installer": "^1.4@stable", + "phpstan/phpstan": "^2.3@stable", + "tracy/tracy": "^2.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, + "autoload": { + "psr-4": { + "Nette\\": "src" + }, + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + } + ], + "description": "📐 Nette Schema: validates and normalizes data such as configuration or API input against a schema described in a few readable lines of PHP, with precise error messages.", + "homepage": "https://doc.nette.org/schema", + "keywords": [ + "configuration", + "data validation", + "nette", + "normalization", + "schema", + "validation" + ], + "support": { + "issues": "https://github.com/nette/schema/issues", + "source": "https://github.com/nette/schema/tree/v1.4.0" + }, + "time": "2026-10-22T02:12:50+00:00", + "published-time": "2026-10-22T02:14:45+00:00" + }, + { + "name": "nette/utils", + "version": "v4.1.6", + "source": { + "type": "git", + "url": "https://github.com/nette/utils.git", + "reference": "6bf24518accf32cf845bca305e0b92078700fd01" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/utils/zipball/6bf24518accf32cf845bca305e0b92078700fd01", + "reference": "6bf24518accf32cf845bca305e0b92078700fd01", + "shasum": "" + }, + "require": { + "php": "8.2 - 8.6" + }, + "conflict": { + "nette/finder": "<3", + "nette/schema": "<1.2.2" + }, + "require-dev": { + "jetbrains/phpstorm-attributes": "^1.2", + "nette/phpstan-rules": "^1.0", + "nette/tester": "^2.5", + "phpstan/extension-installer": "^1.4@stable", + "phpstan/phpstan": "^2.1@stable", + "tracy/tracy": "^2.9" + }, + "suggest": { + "ext-gd": "to use Image", + "ext-iconv": "to use Strings::chr(), ord() and reverse()", + "ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()", + "ext-json": "to use Nette\\Utils\\Json", + "ext-mbstring": "to use Strings::lower() etc...", + "ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.1-dev" + } + }, + "autoload": { + "psr-4": { + "Nette\\": "src" + }, + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.", + "homepage": "https://nette.org", + "keywords": [ + "array", + "core", + "datetime", + "images", + "json", + "nette", + "paginator", + "password", + "slugify", + "string", + "unicode", + "utf-8", + "utility", + "validation" + ], + "support": { + "issues": "https://github.com/nette/utils/issues", + "source": "https://github.com/nette/utils/tree/v4.1.6" + }, + "time": "2026-10-20T17:07:56+00:00", + "published-time": "2026-10-20T17:48:30+00:00" + }, + { + "name": "psr/event-dispatcher", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/event-dispatcher.git", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\EventDispatcher\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Standard interfaces for event handling.", + "keywords": [ + "events", + "psr", + "psr-14" + ], + "support": { + "issues": "https://github.com/php-fig/event-dispatcher/issues", + "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" + }, + "time": "2019-01-08T18:20:26+00:00", + "published-time": "2019-03-25T15:31:44+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory" + }, + "time": "2024-04-15T12:06:14+00:00", + "published-time": "2024-05-10T07:32:19+00:00" + }, + { + "name": "psr/http-message", + "version": "2.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/2.0" + }, + "time": "2023-04-04T09:54:51+00:00", + "published-time": "2023-04-04T09:55:35+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", + "published-time": "2024-09-11T13:21:14+00:00" + }, + { + "name": "salsify/json-streaming-parser", + "version": "v8.3.1", + "source": { + "type": "git", + "url": "https://github.com/salsify/jsonstreamingparser.git", + "reference": "c0cfac990eb4e917c71b0ad0146546f0a4da0c2f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/salsify/jsonstreamingparser/zipball/c0cfac990eb4e917c71b0ad0146546f0a4da0c2f", + "reference": "c0cfac990eb4e917c71b0ad0146546f0a4da0c2f", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-mbstring": "*", + "php": ">=7.1" + }, + "require-dev": { + "ext-json": "*", + "phpunit/phpunit": "~9.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "8.0-dev" + } + }, + "autoload": { + "psr-4": { + "JsonStreamingParser\\": "src", + "JsonStreamingParser\\Test\\": "tests" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Rob Gonzalez", + "email": "rob@salsify.com", + "homepage": "http://salsify.com/" + }, + { + "name": "Maxim Gnatenko", + "email": "mgnatenko@gmail.com" + }, + { + "name": "Max Grigorian", + "email": "maxakawizard@gmail.com", + "homepage": "http://wizardcat.com/" + }, + { + "name": "ThePanz", + "email": "thepanz@gmail.com" + } + ], + "description": "A streaming parser for JSON in PHP.", + "homepage": "https://github.com/salsify/jsonstreamingparser", + "keywords": [ + "json", + "parser", + "streaming" + ], + "support": { + "issues": "https://github.com/salsify/jsonstreamingparser/issues", + "source": "https://github.com/salsify/jsonstreamingparser/tree/v8.3.1" + }, + "time": "2023-05-09T10:37:49+00:00", + "published-time": "2023-05-09T10:38:59+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v3.8.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "feb1edf4e546af3b85c5caebe8359a20db230ca3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/feb1edf4e546af3b85c5caebe8359a20db230ca3", + "reference": "feb1edf4e546af3b85c5caebe8359a20db230ca3", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.8-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.8.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-09-16T14:15:10+00:00", + "published-time": "2026-11-04T11:25:34+00:00" + }, + { + "name": "symfony/http-client-contracts", + "version": "v3.8.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-client-contracts.git", + "reference": "f9f94260f787446c6fd430b2ae1969fe41ae1ba8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/f9f94260f787446c6fd430b2ae1969fe41ae1ba8", + "reference": "f9f94260f787446c6fd430b2ae1969fe41ae1ba8", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.8-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\HttpClient\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] + }, + "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": "Generic abstractions related to HTTP clients", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/http-client-contracts/tree/v3.8.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-10-04T15:04:25+00:00", + "published-time": "2026-11-04T11:25:37+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "141046a8f9477948ff284fa65be2095baafb94f2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/141046a8f9477948ff284fa65be2095baafb94f2", + "reference": "141046a8f9477948ff284fa65be2095baafb94f2", + "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.37.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-04-10T16:19:22+00:00", + "published-time": "2026-04-26T14:44:50+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.43.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "122889ed24dc000165bcbfd77ec412f15cbdfc6a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/122889ed24dc000165bcbfd77ec412f15cbdfc6a", + "reference": "122889ed24dc000165bcbfd77ec412f15cbdfc6a", + "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.43.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-10-28T09:35:49+00:00", + "published-time": "2026-10-28T10:07:45+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.43.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "9c6a5d6b01ca51d486c813e9a9c0ed55f208bb74" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/9c6a5d6b01ca51d486c813e9a9c0ed55f208bb74", + "reference": "9c6a5d6b01ca51d486c813e9a9c0ed55f208bb74", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.43.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-09-25T15:50:05+00:00", + "published-time": "2026-09-30T10:23:35+00:00" + }, + { + "name": "twig/twig", + "version": "v3.30.0", + "source": { + "type": "git", + "url": "https://github.com/twigphp/Twig.git", + "reference": "8c737079b726af72ff8ef3c595be9f6a810ea1ef" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/8c737079b726af72ff8ef3c595be9f6a810ea1ef", + "reference": "8c737079b726af72ff8ef3c595be9f6a810ea1ef", + "shasum": "" + }, + "require": { + "php": ">=8.1.0", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-ctype": "^1.8", + "symfony/polyfill-mbstring": "^1.3" + }, + "require-dev": { + "php-cs-fixer/shim": "^3.0@stable", + "phpstan/phpstan": "^2.0@stable", + "psr/container": "^1.0|^2.0", + "symfony/phpunit-bridge": "^5.4.9|^6.4|^7.0" + }, + "type": "library", + "autoload": { + "files": [ + "src/Resources/core.php", + "src/Resources/debug.php", + "src/Resources/escaper.php", + "src/Resources/string_loader.php" + ], + "psr-4": { + "Twig\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com", + "homepage": "http://fabien.potencier.org", + "role": "Lead Developer" + }, + { + "name": "Twig Team", + "role": "Contributors" + }, + { + "name": "Armin Ronacher", + "email": "armin.ronacher@active-4.com", + "role": "Project Founder" + } + ], + "description": "Twig, the flexible, fast, and secure template language for PHP", + "homepage": "https://twig.symfony.com", + "keywords": [ + "templating" + ], + "support": { + "issues": "https://github.com/twigphp/Twig/issues", + "source": "https://github.com/twigphp/Twig/tree/v3.30.0" + }, + "funding": [ + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/twig/twig", + "type": "tidelift" + } + ], + "time": "2026-09-25T13:20:01+00:00", + "published-time": "2026-09-25T13:20:14+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": { + "jolicode/structured-data": 20 + }, + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": "^8.5" + }, + "platform-dev": {}, + "plugin-api-version": "2.11.0" +} diff --git a/website/package-lock.json b/website/package-lock.json new file mode 100644 index 00000000..2e898a50 --- /dev/null +++ b/website/package-lock.json @@ -0,0 +1,2587 @@ +{ + "name": "structured-data-website", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "structured-data-website", + "devDependencies": { + "@codemirror/autocomplete": "6.20.4", + "@codemirror/commands": "6.11.1", + "@codemirror/lang-html": "6.4.12", + "@codemirror/lang-json": "6.0.2", + "@codemirror/language": "6.13.1", + "@codemirror/state": "6.7.6", + "@codemirror/view": "6.43.15", + "@fontsource-variable/inter": "5.3.0", + "@fontsource-variable/jetbrains-mono": "5.3.0", + "@fontsource-variable/space-grotesk": "5.3.0", + "@hotwired/stimulus": "3.2.2", + "@lezer/html": "1.3.13", + "@tailwindcss/cli": "4.3.5", + "@tailwindcss/typography": "0.5.20", + "esbuild": "0.28.2", + "prettier": "3.9.6", + "shiki": "4.6.0", + "tailwindcss": "4.3.5" + } + }, + "node_modules/@codemirror/autocomplete": { + "version": "6.20.4", + "resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.20.4.tgz", + "integrity": "sha512-yF8RhOf2SXlg00+qtupzLhrglcas61boqaONiNcbPIebHCpJocpqTBA6dyrtUrQO47hqyTdeob/3XnYilT7TaQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@codemirror/language": "^6.0.0", + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.17.0", + "@lezer/common": "^1.0.0" + } + }, + "node_modules/@codemirror/commands": { + "version": "6.11.1", + "resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.11.1.tgz", + "integrity": "sha512-O/4hG3SC1YwcmQ0d2UVNDs+AsaNWd1iHVxbTeEBuqH+6bExAiPK3iS/BvpY6rZGURALv4ZD3sIgcCmRvw3ehBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@codemirror/language": "^6.0.0", + "@codemirror/state": "^6.7.0", + "@codemirror/view": "^6.27.0", + "@lezer/common": "^1.1.0" + } + }, + "node_modules/@codemirror/lang-css": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@codemirror/lang-css/-/lang-css-6.3.1.tgz", + "integrity": "sha512-kr5fwBGiGtmz6l0LSJIbno9QrifNMUusivHbnA1H6Dmqy4HZFte3UAICix1VuKo0lMPKQr2rqB+0BkKi/S3Ejg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@codemirror/autocomplete": "^6.0.0", + "@codemirror/language": "^6.0.0", + "@codemirror/state": "^6.0.0", + "@lezer/common": "^1.0.2", + "@lezer/css": "^1.1.7" + } + }, + "node_modules/@codemirror/lang-html": { + "version": "6.4.12", + "resolved": "https://registry.npmjs.org/@codemirror/lang-html/-/lang-html-6.4.12.tgz", + "integrity": "sha512-pw2ReWKUqSkbvh76RAT4NYxiogRu+PWkR2ukAwO9uOgrm8uipkzjtKKtNpyeAQwHOqxEeSvAXZ6vr3AfyB9y/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@codemirror/autocomplete": "^6.0.0", + "@codemirror/lang-css": "^6.0.0", + "@codemirror/lang-javascript": "^6.0.0", + "@codemirror/language": "^6.4.0", + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.17.0", + "@lezer/common": "^1.0.0", + "@lezer/css": "^1.1.0", + "@lezer/html": "^1.3.12" + } + }, + "node_modules/@codemirror/lang-javascript": { + "version": "6.2.5", + "resolved": "https://registry.npmjs.org/@codemirror/lang-javascript/-/lang-javascript-6.2.5.tgz", + "integrity": "sha512-zD4e5mS+50htS7F+TYjBPsiIFGanfVqg4HyUz6WNFikgOPf2BgKlx+TQedI1w6n/IqRBVBbBWmGFdLB/7uxO4A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@codemirror/autocomplete": "^6.0.0", + "@codemirror/language": "^6.6.0", + "@codemirror/lint": "^6.0.0", + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.17.0", + "@lezer/common": "^1.0.0", + "@lezer/javascript": "^1.0.0" + } + }, + "node_modules/@codemirror/lang-json": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@codemirror/lang-json/-/lang-json-6.0.2.tgz", + "integrity": "sha512-x2OtO+AvwEHrEwR0FyyPtfDUiloG3rnVTSZV1W8UteaLL8/MajQd8DpvUb2YVzC+/T18aSDv0H9mu+xw0EStoQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@codemirror/language": "^6.0.0", + "@lezer/json": "^1.0.0" + } + }, + "node_modules/@codemirror/language": { + "version": "6.13.1", + "resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.13.1.tgz", + "integrity": "sha512-zfvU2r3TyylQLMj/te+5CnQ0rSqZi8B1oTCBbQkagcLW4Xc6imab6qN+pEJhsuNOLaJqiRyBXp9UhWA1DhVvDw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@codemirror/state": "^6.0.0", + "@codemirror/streamparser": "^6.0.0", + "@codemirror/view": "^6.23.0", + "@lezer/common": "^1.5.0", + "@lezer/highlight": "^1.0.0", + "@lezer/lr": "^1.0.0", + "style-mod": "^4.0.0" + } + }, + "node_modules/@codemirror/lint": { + "version": "6.9.8", + "resolved": "https://registry.npmjs.org/@codemirror/lint/-/lint-6.9.8.tgz", + "integrity": "sha512-qNvtcE73xUto/D1RvtgSRI4A1Hg8ekxlvtZpjHpdpisLBnhyu82EUEJMEgaxkjuQCA8vqnrylENWKOsEDCOHcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@codemirror/state": "^6.0.0", + "@codemirror/view": "^6.42.0", + "crelt": "^1.0.5" + } + }, + "node_modules/@codemirror/state": { + "version": "6.7.6", + "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.7.6.tgz", + "integrity": "sha512-kAz+AncRtKuIknedxT1bq4XwXv4UowhbkHU1myPrtVb/jZtImWuV5BXzv5vK6i3kYACsdiZiQKFQQ5Mq7elW8w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@marijn/find-cluster-break": "^1.0.0" + } + }, + "node_modules/@codemirror/streamparser": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@codemirror/streamparser/-/streamparser-6.0.0.tgz", + "integrity": "sha512-JTFPF6xrfjt0mnfGPgzcLiMwYmvIyNaoizp8BYzv8FE8KrT6GBGDZ190rtt+O7Wke3gG/MFHyiY9YGNeimof4w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@codemirror/view": { + "version": "6.43.15", + "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.43.15.tgz", + "integrity": "sha512-HHsfpqFeHyXLs983pSRe38Xajs0vFWZQ2BuX0m7Ki8w3jZ5iD8cuR3lBz2/5/X53Dhf32SBHKh6rtSTB6tKeGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@codemirror/state": "^6.7.0", + "crelt": "^1.0.6", + "style-mod": "^4.1.0", + "w3c-keyname": "^2.2.4" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz", + "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz", + "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz", + "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz", + "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz", + "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz", + "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz", + "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz", + "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz", + "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz", + "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz", + "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz", + "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz", + "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz", + "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz", + "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz", + "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz", + "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz", + "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz", + "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz", + "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz", + "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz", + "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz", + "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz", + "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz", + "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz", + "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@fontsource-variable/inter": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@fontsource-variable/inter/-/inter-5.3.0.tgz", + "integrity": "sha512-OupL48va4JNofb97w6NYeF9S7W/kHNKM0Er8Dem5nqi4jeOLrVJDoE8tZEpnMJmtkvNbB1EIPPwHcdkF6b1oUA==", + "dev": true, + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, + "node_modules/@fontsource-variable/jetbrains-mono": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@fontsource-variable/jetbrains-mono/-/jetbrains-mono-5.3.0.tgz", + "integrity": "sha512-F32xpS2NsGYoQi2ADSkKTgpJj7ozajsGgDJ8woTnqjmIB+dxDIqImjl4pXZVEExu8UFZ2ndhmX18EBS/hdz3Lw==", + "dev": true, + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, + "node_modules/@fontsource-variable/space-grotesk": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@fontsource-variable/space-grotesk/-/space-grotesk-5.3.0.tgz", + "integrity": "sha512-2IxmvfB08i9vnGB3Ym/AXvhRE+8XOjWMXIyDum03c+tPwH0FUoMNQfGpU8NXPxjbws0Vvss3AH0Zqt4oJBBAdw==", + "dev": true, + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, + "node_modules/@hotwired/stimulus": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@hotwired/stimulus/-/stimulus-3.2.2.tgz", + "integrity": "sha512-eGeIqNOQpXoPAIP7tC1+1Yc1yl1xnwYqg+3mzqxyrbE5pg5YFBZcA6YoTiByJB6DKAEsiWtl6tjTJS4IYtbB7A==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.3.tgz", + "integrity": "sha512-lhTtjtoEArWBjismtfS761S9Hlyn+nIZqOZVYoZ1Xn82PMNMVnk+jj/NhC4fAXGTs7ydONcJiR5vyQBTMDu27g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@lezer/common": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@lezer/common/-/common-1.5.5.tgz", + "integrity": "sha512-Pw7PVCndruF1pb3ebCxpSVpkMHSDjwRCLcTRw+RizUKco5QbWylwq2g4lnG/RYN7yTTQDXE9F77MwtkAyphrjg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@lezer/css": { + "version": "1.3.9", + "resolved": "https://registry.npmjs.org/@lezer/css/-/css-1.3.9.tgz", + "integrity": "sha512-ZmzgvTOBdJWGIsY/ItAfN7UW8DV802oZG+jeG6E508SwEzz5YhuAajptpWPICvIyqYAD2+VjMdOS40GgGkyEOQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@lezer/common": "^1.2.0", + "@lezer/highlight": "^1.0.0", + "@lezer/lr": "^1.3.0" + } + }, + "node_modules/@lezer/highlight": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/@lezer/highlight/-/highlight-1.2.5.tgz", + "integrity": "sha512-O1GMVKgtf5YspFaRzpmqkVgMtIk2HG9uMAbH6wdAIdNh3TVzCsch/+cRi+6l2//UGDKe6NB9BW3cvuR5ezMQ0w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@lezer/common": "^1.3.0" + } + }, + "node_modules/@lezer/html": { + "version": "1.3.13", + "resolved": "https://registry.npmjs.org/@lezer/html/-/html-1.3.13.tgz", + "integrity": "sha512-oI7n6NJml729m7pjm9lvLvmXbdoMoi2f+1pwSDJkl9d68zGr7a9Btz8NdHTGQZtW2DA25ybeuv/SyDb9D5tseg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@lezer/common": "^1.2.0", + "@lezer/highlight": "^1.0.0", + "@lezer/lr": "^1.0.0" + } + }, + "node_modules/@lezer/javascript": { + "version": "1.5.6", + "resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-1.5.6.tgz", + "integrity": "sha512-sEvOqpl4vJQca0NugSQK02vQPbc5KrvoojnYGoqqFgFO0MtcYhwGiHKVEB+LuXYJnfyXo4QPA8ztbrEa4Fw5NA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@lezer/common": "^1.2.0", + "@lezer/highlight": "^1.1.3", + "@lezer/lr": "^1.3.0" + } + }, + "node_modules/@lezer/json": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@lezer/json/-/json-1.0.3.tgz", + "integrity": "sha512-BP9KzdF9Y35PDpv04r0VeSTKDeox5vVr3efE7eBbx3r4s3oNLfunchejZhjArmeieBH+nVOpgIiBJpEAv8ilqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@lezer/common": "^1.2.0", + "@lezer/highlight": "^1.0.0", + "@lezer/lr": "^1.0.0" + } + }, + "node_modules/@lezer/lr": { + "version": "1.4.12", + "resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.4.12.tgz", + "integrity": "sha512-On9HU4oMMiHPMkQDgoTnGahjgG5n/MkN38CgG77sMraKLL+3JBbeQNi1FcCXV9QRqwF9/BUXP3caHyJC1fBOTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@lezer/common": "^1.0.0" + } + }, + "node_modules/@marijn/find-cluster-break": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@marijn/find-cluster-break/-/find-cluster-break-1.0.4.tgz", + "integrity": "sha512-Wy0V7+SGUjnF9/TkiM1hKVDPj7jKXduPNboMVtHTA8dySMURWqfg/JZ9E2Sq8JgSJmkl7k7Qe9FLeMSrSraWmQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@parcel/watcher": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.6.0.tgz", + "integrity": "sha512-7FNeNl8NCE7aINx7WXiKQrPYZWC/hvrTsmk6zmxbI7LTXE7hVek/n8AfVgpe2y82zl3w0HvCHN0bVKMBoJcC0w==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "detect-libc": "^2.0.3", + "is-glob": "^4.0.3", + "node-addon-api": "^7.0.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "@parcel/watcher-android-arm64": "2.6.0", + "@parcel/watcher-darwin-arm64": "2.6.0", + "@parcel/watcher-darwin-x64": "2.6.0", + "@parcel/watcher-freebsd-x64": "2.6.0", + "@parcel/watcher-linux-arm-glibc": "2.6.0", + "@parcel/watcher-linux-arm-musl": "2.6.0", + "@parcel/watcher-linux-arm64-glibc": "2.6.0", + "@parcel/watcher-linux-arm64-musl": "2.6.0", + "@parcel/watcher-linux-x64-glibc": "2.6.0", + "@parcel/watcher-linux-x64-musl": "2.6.0", + "@parcel/watcher-win32-arm64": "2.6.0", + "@parcel/watcher-win32-x64": "2.6.0" + } + }, + "node_modules/@parcel/watcher-android-arm64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.6.0.tgz", + "integrity": "sha512-trgpLSCKRC/huFjXX/Smh+0sWe4+YtKfktIToiMl59ghz7z+qkH6kMvNnUbLyRs9N11t8l4svSCs1+5B3rOAhA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-arm64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.6.0.tgz", + "integrity": "sha512-Y3QV0gl7Q1zbfueunkWIERICbEojQFCgpyG7YqOGNFLsckXyI1xu9mAIUpKY9QBYzBtSkN8dBPwd3yiAO9ovMw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-x64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.6.0.tgz", + "integrity": "sha512-Ohv6OpzhUfKYD7Beb8kDvG0jbIxORCYY1JRdZnaBtnjjkJxgD7ZVL0nw2sCYd0yTMKTvz3nnTnOF3cDifK+kvw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-freebsd-x64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.6.0.tgz", + "integrity": "sha512-5HmXvDgs8VK+74jF9y9/2FE3/OnlcKmc56tjmSrEuZjpSZOGL+fvAu+HKJBdPs9uwoP2hE6TlSUpXZ/C5jUFmQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-glibc": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.6.0.tgz", + "integrity": "sha512-Ps/hui3A+vMbjdqlqAowK2ZL8+BO8dBjxeWXj6npTBs3jx4wWmbPpaLuqwrQrSqIVMCnpWo238bJ1U37GhQOYg==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-musl": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.6.0.tgz", + "integrity": "sha512-9c6AUHgHoG+IY88MRIHupztQiQnrbqHYQjkM2btA+Bf/wQnQMuiD0Wfk1EVv3TlNT3x41uU71rn6E4xh/+zvkw==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-glibc": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.6.0.tgz", + "integrity": "sha512-yHRqS2owEXe6Hic9z6Mh1ECsCd+ODVOGvZDyciqRd21+v+o+DnXMOrw50DSpIG2sb8GPEaPPmfeCAWKPJdq46g==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-musl": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.6.0.tgz", + "integrity": "sha512-WhB2e/V7rqdHHWZusBSPuy5Ei8S6lSz6FE5TKKQz5h3a0O+C+mhY7vxU9b/stqvMb8beLnPY82ZrFTLKs+SrKA==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-glibc": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.6.0.tgz", + "integrity": "sha512-ulGE6x6Oz6iAwg75T8YQSoguBWasniIbX+QWpaYPcCnDOpdWX3k+4xbEYPZVLxOuoJI+svJJPD3sEj8G7lrQ3A==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-musl": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.6.0.tgz", + "integrity": "sha512-tkBYKt7YQrjIJWYDnto2YgO8MRkjlMTSNoRHzsXinBqbLdeOM3L32wPZJvIZxqaLMfSlS/4sUjH/6STVP/XDLw==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-arm64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.6.0.tgz", + "integrity": "sha512-gIZAP23jaHjGWasY/TY6yL7NHFClf0Ga7FN+iINvk+KN94rhm94lYZhFsbYFNcA04/onvGD9kKmiJLJB2HbNwQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-x64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.6.0.tgz", + "integrity": "sha512-cA+/pXV2YkfxlIcXOQ5fSWqAzzPyD78/x5qbK/I0vUkrlYHA8TIz+MXjAbGouguKVSI4bOmkTSJ1/poVSsgt+A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@shikijs/core": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-4.6.0.tgz", + "integrity": "sha512-bfd4OKgvoyXYiYmMRuleA656P4V7M/Du9lcTl38Ngm6KszMj7bq4J1IGZwSYR4c95Tv5UQALtYNWUwaI9UT3xw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/primitive": "4.6.0", + "@shikijs/types": "4.6.0", + "@shikijs/vscode-textmate": "^10.1.0", + "@types/hast": "^3.0.5", + "hast-util-to-html": "^9.0.6" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/engine-javascript": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-4.6.0.tgz", + "integrity": "sha512-K0oqxFoL+kEMdz89mHLFO15Tsbv3kFZ6WR1cXZKMvLSc+oqaM00A6pyga1qSeXB22dP0tTiSApRcGBaKWsEccg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "4.6.0", + "@shikijs/vscode-textmate": "^10.1.0", + "oniguruma-to-es": "^4.3.6" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/engine-oniguruma": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-4.6.0.tgz", + "integrity": "sha512-aggd6Q7SuJOXNnsUbfG2XesxBJKBMAw/PDTUo9PyRjMaaJJ2dNrI+q0C+25ARXAK9yLHAlwxc9oRT2u68YKZ7w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "4.6.0", + "@shikijs/vscode-textmate": "^10.1.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/langs": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-4.6.0.tgz", + "integrity": "sha512-1yMEX3oCVV54LUq/ovfpRkDQoYDkcvjSWFFa/YLUDMiSoRzMi2uxLJYbv41ahT8Lu9lFMaa7hecd3Q39trqUyg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "4.6.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/primitive": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@shikijs/primitive/-/primitive-4.6.0.tgz", + "integrity": "sha512-c54+TQEo9ToqgfL/AU8FpjnV09+GA9Oa7M5ROkkXteZfp5XzpAJGXjjvZQFQioJOwm/w/6Z3lIzQstAkl8coag==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "4.6.0", + "@shikijs/vscode-textmate": "^10.1.0", + "@types/hast": "^3.0.5" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/themes": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-4.6.0.tgz", + "integrity": "sha512-qHAVAs80RiGD+IRuH9G+JPDOEc9A/kHsng4EzCUCwB9bLzW6Z0y9WETh2YyCcADJBmfrIaJ1Jp7KBNP6FHkgtQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "4.6.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/types": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-4.6.0.tgz", + "integrity": "sha512-+ENG1adsKt/X7cRYw1Nl7BEpBmPOjmQ7bR/eGmHuMlT8gtOFf3KEi5l31DJYyAWhW6Y6bjP1plU7FmaxWGENFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/vscode-textmate": "^10.1.0", + "@types/hast": "^3.0.5" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/vscode-textmate": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.1.0.tgz", + "integrity": "sha512-cVBuhDQjBZaNMTwBquYfPydrUP+E3hE6oYGasx8h6ZrODIM7/r+gxLDXdd66oszbrggZHEntdE6j+5gYIVyMWQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tailwindcss/cli": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/cli/-/cli-4.3.5.tgz", + "integrity": "sha512-+evrrLZEgNPDXgdIxD6Zfc23WhSYZQeGwniO5u9M4zC92kbEtIjKd8l2QWeO7du8kl4gF8z7YArnUGHG4y2Jzg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@parcel/watcher": "2.6.0", + "@tailwindcss/node": "4.3.5", + "@tailwindcss/oxide": "4.3.5", + "enhanced-resolve": "^5.24.5", + "mri": "^1.2.0", + "picocolors": "^1.1.1", + "tailwindcss": "4.3.5" + }, + "bin": { + "tailwindcss": "dist/index.mjs" + } + }, + "node_modules/@tailwindcss/node": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.5.tgz", + "integrity": "sha512-yT53FzV4ke0cr/BguDxhWMpm5MJu1O2muzk+tKw6lKHjODAsYArBbWwFbJiaksfzFv1tpkO9QHGzmfs1hJT66g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "enhanced-resolve": "^5.24.5", + "jiti": "^2.7.0", + "lightningcss": "1.33.0", + "magic-string": "^1.1.0", + "source-map-js": "^1.2.1", + "tailwindcss": "4.3.5" + } + }, + "node_modules/@tailwindcss/oxide": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.5.tgz", + "integrity": "sha512-PynqGLZsZvwM9tqD/CUxkOIfyd6K5elZ2MooauzJryP/UqXYgi3yYbtt3N0Xe+MHV/eFKPFQCEfIKAqlAS1CBg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 20" + }, + "optionalDependencies": { + "@tailwindcss/oxide-android-arm64": "4.3.5", + "@tailwindcss/oxide-darwin-arm64": "4.3.5", + "@tailwindcss/oxide-darwin-x64": "4.3.5", + "@tailwindcss/oxide-freebsd-x64": "4.3.5", + "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.5", + "@tailwindcss/oxide-linux-arm64-gnu": "4.3.5", + "@tailwindcss/oxide-linux-arm64-musl": "4.3.5", + "@tailwindcss/oxide-linux-x64-gnu": "4.3.5", + "@tailwindcss/oxide-linux-x64-musl": "4.3.5", + "@tailwindcss/oxide-wasm32-wasi": "4.3.5", + "@tailwindcss/oxide-win32-arm64-msvc": "4.3.5", + "@tailwindcss/oxide-win32-x64-msvc": "4.3.5" + } + }, + "node_modules/@tailwindcss/oxide-android-arm64": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.5.tgz", + "integrity": "sha512-Se0z5xMqcSQanJD1IYmO0cGpK3iv0fp3ZsIT7xRJZ1Da5PghvNoc46zz4jIQn+aan3dV9T8AermFNN9QPmsh0Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-arm64": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.5.tgz", + "integrity": "sha512-UPrgTDuUbvmqGMZuCnmI3FKee/tYKzKdp00/kuB4oSGB213VYg8QTdF7lVhnPoBXq/mIfJ+ILoBFqNOboWcMwQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-x64": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.5.tgz", + "integrity": "sha512-E+p7HEtjI0b8D7kbbWxH067cGui6d4c79COGko9fAPVE3rwc1E7ld2HFCbaG86AOGWS5VKQYqZOaf38ya4uxTQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-freebsd-x64": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.5.tgz", + "integrity": "sha512-yWEWcWyAG7rWOcTpJTjdhQ3pcaFY2h+0bqTRfgU3G2fz87ZU3AKdvdZKhslD+kyHnjBUWKvNdRYwIYC5dI1tIg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.5.tgz", + "integrity": "sha512-WmeVjtJhZlr+smpqcdR2kQkkn6arHIJnUIBxTO2EJcTLGY1ecVXNo2hbSn8xc0IH2aEtys936iMWKGyj0GaKnA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.5.tgz", + "integrity": "sha512-DTCSyucc6ShMp1QMqV5R94Z7xlgNgUzkGmFF1rL5HH2Qjy4eSmEqy+YLGkqqYvWa4sILtgrBt1JjRKbneQtiFQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-musl": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.5.tgz", + "integrity": "sha512-H9lsvO4x9E4nE4Hi8h7NHHw0O/kcVSu+iOyFHNGdYzazGgDjFHZbE6S3hQ8kMcbNXSBlMdNi67LV5EVqtpaJtw==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-gnu": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.5.tgz", + "integrity": "sha512-4uxQvtBvPuIdl13WfUBj9xMZHH14PtHZ8OZdtLmdyDtG66sCa1t599NZT+jagkUzRtWhuul1qRZQ1nAJscXN5g==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-musl": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.5.tgz", + "integrity": "sha512-0JQAzs7jwbA7O6+z/adU+Jk3AXwsu3npAhtr5escXS7TqEqWcaDV7qHuI+0Vy/KQRuVGnLQREcSJWYauyV3oqg==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.5.tgz", + "integrity": "sha512-OJhFmlEfdzMr+avACdi40RPtnkW0B6hXyxL/8r+tnEHBWZji36CYRjEXrrvgBmaYsD3oEOBqwYFRKsYvzFe7Bw==", + "bundleDependencies": [ + "@napi-rs/wasm-runtime", + "@emnapi/core", + "@emnapi/runtime", + "@tybys/wasm-util", + "@emnapi/wasi-threads", + "tslib" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.11.3", + "@emnapi/runtime": "^1.11.3", + "@emnapi/wasi-threads": "^1.2.3", + "@napi-rs/wasm-runtime": "^1.2.2", + "@tybys/wasm-util": "^0.10.3", + "tslib": "^2.8.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/core": { + "version": "1.11.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.2.3", + "tslib": "^2.4.0" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/runtime": { + "version": "1.11.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/wasi-threads": { + "version": "1.2.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@napi-rs/wasm-runtime": { + "version": "1.2.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@tybys/wasm-util": "^0.10.3" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1 || ^2.0.0-alpha.3", + "@emnapi/runtime": "^1.7.1 || ^2.0.0-alpha.3" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@tybys/wasm-util": { + "version": "0.10.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/tslib": { + "version": "2.8.1", + "dev": true, + "inBundle": true, + "license": "0BSD", + "optional": true + }, + "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.5.tgz", + "integrity": "sha512-9o8jgthi+QE5eandnboiJT64VQfnIArfZzSTdgbhEK5aafdiu2jTW9Honi/mwYHxBZuH1vAC57IFyrh+0iK5Gg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-win32-x64-msvc": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.5.tgz", + "integrity": "sha512-XiKFfIy1RWe7qK4WqByxNW7Oz1/nkOy8o/BWhHminyV1PmpUd8Eedj5v2A8h2kpqeVlz6xRnwk9Fr/ZXNLcZfg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/typography": { + "version": "0.5.20", + "resolved": "https://registry.npmjs.org/@tailwindcss/typography/-/typography-0.5.20.tgz", + "integrity": "sha512-hwbzQuNUfcPvbegQFatVPl/MY/tcM9KLl963hQ5laJKPh81TEZ1+dNG9PirGvcaDBkp+BCshExAyKVPW91dozw==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "6.0.10" + }, + "peerDependencies": { + "tailwindcss": ">=3.0.0 || >=4.0.0 || insiders" + } + }, + "node_modules/@types/hast": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.5.tgz", + "integrity": "sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/mdast": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz", + "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/unist": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@ungap/structured-clone": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.4.0.tgz", + "integrity": "sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/ccount": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", + "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-html4": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz", + "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-legacy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz", + "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/comma-separated-tokens": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", + "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/crelt": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/crelt/-/crelt-1.0.7.tgz", + "integrity": "sha512-aK6BbWfhf4U/wCcLHKPJl/xa6VkVstRaPywWtMKGwuOLc/wZTyQYuoxgvZnNsBvv7Kg3YTBQYYBCggcviQczuA==", + "dev": true, + "license": "MIT" + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/devlop": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", + "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==", + "dev": true, + "license": "MIT", + "dependencies": { + "dequal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.27.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.27.0.tgz", + "integrity": "sha512-Do6BB2xzlcc/odFg+XEYyneAx4T/WfywO71yw9ePS2tVfRsf7JVR4mUeELadIeHzixkzbG5DpluiEFPi2WGfYQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.3.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/esbuild": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz", + "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.28.2", + "@esbuild/android-arm": "0.28.2", + "@esbuild/android-arm64": "0.28.2", + "@esbuild/android-x64": "0.28.2", + "@esbuild/darwin-arm64": "0.28.2", + "@esbuild/darwin-x64": "0.28.2", + "@esbuild/freebsd-arm64": "0.28.2", + "@esbuild/freebsd-x64": "0.28.2", + "@esbuild/linux-arm": "0.28.2", + "@esbuild/linux-arm64": "0.28.2", + "@esbuild/linux-ia32": "0.28.2", + "@esbuild/linux-loong64": "0.28.2", + "@esbuild/linux-mips64el": "0.28.2", + "@esbuild/linux-ppc64": "0.28.2", + "@esbuild/linux-riscv64": "0.28.2", + "@esbuild/linux-s390x": "0.28.2", + "@esbuild/linux-x64": "0.28.2", + "@esbuild/netbsd-arm64": "0.28.2", + "@esbuild/netbsd-x64": "0.28.2", + "@esbuild/openbsd-arm64": "0.28.2", + "@esbuild/openbsd-x64": "0.28.2", + "@esbuild/openharmony-arm64": "0.28.2", + "@esbuild/sunos-x64": "0.28.2", + "@esbuild/win32-arm64": "0.28.2", + "@esbuild/win32-ia32": "0.28.2", + "@esbuild/win32-x64": "0.28.2" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.12", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.12.tgz", + "integrity": "sha512-iuyGF2E4oafQfPsRrG2wtY2ILupMhvtdrhzrxB+0VcjsPpSPttpfYdjnGFGsTi5MaJFjI1jOKHPQ6UTbTj9TAw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, + "node_modules/hast-util-to-html": { + "version": "9.0.6", + "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.6.tgz", + "integrity": "sha512-1SZUxCN3TtJAE7e2BQN2MBHsoZ1gnmi9GoCP5Di59CSWptIezSAW09yDZyVbanb78V9eCwrKqdQsjtfVTxYHWA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "ccount": "^2.0.0", + "comma-separated-tokens": "^2.0.0", + "hast-util-whitespace": "^3.0.0", + "html-void-elements": "^3.0.0", + "mdast-util-to-hast": "^13.0.0", + "property-information": "^7.0.0", + "space-separated-tokens": "^2.0.0", + "stringify-entities": "^4.0.0", + "zwitch": "^2.0.4" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-whitespace": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz", + "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/html-void-elements": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-3.0.0.tgz", + "integrity": "sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/jiti": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, + "node_modules/lightningcss": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", + "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.33.0", + "lightningcss-darwin-arm64": "1.33.0", + "lightningcss-darwin-x64": "1.33.0", + "lightningcss-freebsd-x64": "1.33.0", + "lightningcss-linux-arm-gnueabihf": "1.33.0", + "lightningcss-linux-arm64-gnu": "1.33.0", + "lightningcss-linux-arm64-musl": "1.33.0", + "lightningcss-linux-x64-gnu": "1.33.0", + "lightningcss-linux-x64-musl": "1.33.0", + "lightningcss-win32-arm64-msvc": "1.33.0", + "lightningcss-win32-x64-msvc": "1.33.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", + "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", + "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", + "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", + "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", + "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", + "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", + "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", + "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", + "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", + "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", + "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/magic-string": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.5.tgz", + "integrity": "sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.6.0" + } + }, + "node_modules/mdast-util-to-hast": { + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.2.tgz", + "integrity": "sha512-l2pnmOuqs+SGLVpTVXnRLQu5v1AzvDe181404fbXzzqObVxrAnnVxapAP27pUwzLBL/ABIkgUhGlPVU7QSvIFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "@ungap/structured-clone": "^1.0.0", + "devlop": "^1.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "trim-lines": "^3.0.0", + "unist-util-position": "^5.0.0", + "unist-util-visit": "^5.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-util-character": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz", + "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-encode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz", + "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-sanitize-uri": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz", + "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-symbol": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz", + "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-types": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.3.tgz", + "integrity": "sha512-oxB2Ik03hI0gv+VNn9tnh1t1YEe9MDPptViAEgfdf3YQHsn0pzGTgCdlSCJXcwhqm8phaEuM7zeEu3QQzVBrPg==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/mri": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", + "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/node-addon-api": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/oniguruma-parser": { + "version": "0.12.2", + "resolved": "https://registry.npmjs.org/oniguruma-parser/-/oniguruma-parser-0.12.2.tgz", + "integrity": "sha512-6HVa5oIrgMC6aA6WF6XyyqbhRPJrKR02L20+2+zpDtO5QAzGHAUGw5TKQvwi5vctNnRHkJYmjAhRVQF2EKdTQw==", + "dev": true, + "license": "MIT" + }, + "node_modules/oniguruma-to-es": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/oniguruma-to-es/-/oniguruma-to-es-4.3.6.tgz", + "integrity": "sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA==", + "dev": true, + "license": "MIT", + "dependencies": { + "oniguruma-parser": "^0.12.2", + "regex": "^6.1.0", + "regex-recursion": "^6.0.2" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.0.10", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz", + "integrity": "sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/prettier": { + "version": "3.9.6", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.6.tgz", + "integrity": "sha512-OpN0zzVdiaiAhxpuuj5efpIS4sY9j7bY6uR5mnj5yPzGkdkjNKSJeUThPb60Jw29QuAZgA4o+/iB49kFiaBX6g==", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/property-information": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/property-information/-/property-information-7.2.0.tgz", + "integrity": "sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/regex/-/regex-6.1.0.tgz", + "integrity": "sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==", + "dev": true, + "license": "MIT", + "dependencies": { + "regex-utilities": "^2.3.0" + } + }, + "node_modules/regex-recursion": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/regex-recursion/-/regex-recursion-6.0.2.tgz", + "integrity": "sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==", + "dev": true, + "license": "MIT", + "dependencies": { + "regex-utilities": "^2.3.0" + } + }, + "node_modules/regex-utilities": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/regex-utilities/-/regex-utilities-2.3.0.tgz", + "integrity": "sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==", + "dev": true, + "license": "MIT" + }, + "node_modules/shiki": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/shiki/-/shiki-4.6.0.tgz", + "integrity": "sha512-imjLsVHgPuWhvpU3P+zOekvMYqnel7QmKsFC4Sn0fCuAvaaalBsxwKEsrU8Ko5BdFnZA6Go/8a0RzahS634UgA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/core": "4.6.0", + "@shikijs/engine-javascript": "4.6.0", + "@shikijs/engine-oniguruma": "4.6.0", + "@shikijs/langs": "4.6.0", + "@shikijs/themes": "4.6.0", + "@shikijs/types": "4.6.0", + "@shikijs/vscode-textmate": "^10.1.0", + "@types/hast": "^3.0.5" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/source-map-js": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", + "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/space-separated-tokens": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz", + "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/stringify-entities": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz", + "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==", + "dev": true, + "license": "MIT", + "dependencies": { + "character-entities-html4": "^2.0.0", + "character-entities-legacy": "^3.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/style-mod": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.1.4.tgz", + "integrity": "sha512-XXWIQt633/EpAFx8aZDOTjBzrCaGmhvEQlQo6MVPfa2OzO2cWo+4hV9h+6UkHYlXGfy+ODXKUdP7Pthmcu5ATw==", + "dev": true, + "license": "MIT" + }, + "node_modules/tailwindcss": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.5.tgz", + "integrity": "sha512-FcQk9BuffmEHJP2G0XmB2SplU1aLTI7j07Kunk+U74Ny+XiWOtzXz9aujFZ/avntw1e2cOv/3PkgzflQ7gX2vQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/tapable": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.4.tgz", + "integrity": "sha512-NHFiWnAbMJxNNpBwiO7jJVGDuqMxT9/oV8v57RR+fgBQShkJil5inGD8/xWy0hjLyHQyX1tu27QANhlz3KBqCg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/trim-lines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", + "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/unist-util-is": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz", + "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-position": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz", + "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-stringify-position": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz", + "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.2.0.tgz", + "integrity": "sha512-fpsYs/VVoZxfGY9/j3FQpZmN8wdLJaV1Pt38AaJNZu9uKIHcFU3halCdBveEq1HGKO1OEfJY65w1zvoFV1b3qQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit-parents": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.1.0.tgz", + "integrity": "sha512-vKXxz6O38sKDj1mtx/k2cWvkkFBuYGx6uGrlzBkVeWCRF/F8sdI0j3Wbkz/5rVNRRuVc8UrgRdbCxNhmYXgP3w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true, + "license": "MIT" + }, + "node_modules/vfile": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz", + "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "vfile-message": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile-message": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.4.tgz", + "integrity": "sha512-66ycRswIkNmHH9PHku7ADtv5RVwgIrOcuv3J8Svz6h4qgGRrKVa+9/neuKyJZUXyOpYwLTvS+whZ4R2urHHgQg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-stringify-position": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/w3c-keyname": { + "version": "2.2.8", + "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz", + "integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/zwitch": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", + "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + } + } +} diff --git a/website/package.json b/website/package.json new file mode 100644 index 00000000..1bd6599b --- /dev/null +++ b/website/package.json @@ -0,0 +1,32 @@ +{ + "name": "structured-data-website", + "description": "What the page of the demo website is built with, see .castor/website.php", + "private": true, + "type": "module", + "scripts": { + "build": "npm run build:fonts && npm run build:css && npm run build:js", + "build:css": "tailwindcss --input assets/styles/app.css --output public/build/app.css --minify", + "build:fonts": "mkdir -p public/build/files && cp node_modules/@fontsource-variable/inter/files/*-wght-normal.woff2 node_modules/@fontsource-variable/jetbrains-mono/files/*-wght-normal.woff2 node_modules/@fontsource-variable/space-grotesk/files/*-wght-normal.woff2 public/build/files/", + "build:js": "esbuild assets/app.js assets/php.js --bundle --splitting --format=esm --minify --outdir=public/build --external:./php-web.mjs" + }, + "devDependencies": { + "@codemirror/autocomplete": "6.20.4", + "@codemirror/commands": "6.11.1", + "@codemirror/lang-html": "6.4.12", + "@codemirror/lang-json": "6.0.2", + "@codemirror/language": "6.13.1", + "@codemirror/state": "6.7.6", + "@codemirror/view": "6.43.15", + "@fontsource-variable/inter": "5.3.0", + "@fontsource-variable/jetbrains-mono": "5.3.0", + "@fontsource-variable/space-grotesk": "5.3.0", + "@hotwired/stimulus": "3.2.2", + "@lezer/html": "1.3.13", + "@tailwindcss/cli": "4.3.5", + "@tailwindcss/typography": "0.5.20", + "esbuild": "0.28.2", + "prettier": "3.9.6", + "shiki": "4.6.0", + "tailwindcss": "4.3.5" + } +} diff --git a/website/public/favicon-16x16.png b/website/public/favicon-16x16.png new file mode 100644 index 0000000000000000000000000000000000000000..a7b762e1455e15d8755bd51da03581f56af16525 GIT binary patch literal 868 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJOS+@4BLl<6e(pbstU$g(vPY0F z14ES>14Ba#1H&(%P{RubhEf9thF1v;3|2E37{m+a>0uB#`_4suGa#4Jdd?1*{S*eo_6~C6(`&RR8aHfT#p3R{MX( z`1=(#kgh901HtCpR{%3q{;vYsqWbNM+P8};K+}F)0xP%zR0Cpsx~>7S_wzZR`9K9Q z?N_zGUs3&fNf~H6P}z^mKvE58HP9T0MzG{2UfP(BLp1!W^Pg&X7wFNdl%DDg(n&s)@7$R{wIe~%EO)ZU0{e%+0nCR&K{wlXx+HZZU2D?NY%?PN}v7CMhd7XyecH3Bq*_5p`a)~Ei)%o zp`@}PRUxyWB$Jc1ICAEQ%n|m}4IT@;^cY@=3zmFxGMx&vg2B_(&t;ucLK6V--fDRO literal 0 HcmV?d00001 diff --git a/website/public/favicon-32x32.png b/website/public/favicon-32x32.png new file mode 100644 index 0000000000000000000000000000000000000000..311bdc97b2822a18e8e3ced372770e34862c68b0 GIT binary patch literal 1309 zcmZ`(c}$aM9DZ44SQlUUwnz53Pn{`A1+d)MTO2>dDma8zl3bjqejM)u_o3NA} zY`|dgfVhziheiRx0dg%CrSuR89w0O@A{7fgK=IrAwb>v0W668|e$Vs#p7-}9-`DAB zNzM)g2LOOGJDJIWI|-Y1IJh#~E{wr#S4l!@0svhy$JhC`Sh6sglM29DDge@I0JdRB zx&nY00bn%`07fGK-eoPfGvWZSk)5=^g~f#J;N(J=x3>Lg##Uk zH*136!JrB@Dalx*!%DOQ$mm1_stJK{quQ!QM(4<8HAGTj+z2U3Dmq3qsjvt}p9wZ; zf-$_}Uj>MVwbWFzimIQcnKXeW4b`N?jBPxCEHdtAi1)^n<_;g2o9E$Oyb zN{5^iU-`Znap~kwc=*NTPI}cSvbLuQe;3UXc`qCjHs*uw)yBsLlAbPHxlVa@Ac>}Z z@6$PCbuD^P5b=D4{-Nv3!G)8nfCr?u$RL@6)I)GLEEPItXos{xZa8Z8ZXwt!MP@o zW=zy%a5_}-i~VbC$Fq+bbaRIqaO7W4z7RoQ{COhOE1e8X!=3>KT-)!nJQ%Q^BYKsqIF|F+x#Ux zaPsm|UhbaWthh5?58q`}R^p<&<7RF)>x)LlNgb zUM>*f2|J0^x=mSD*Kqp>1HvJ3Ub@b=r$H>Pm*~KNclpx!Q(gxDw&l$k$0N-izf^qd zzhv8UG^(asa=-n~;Q4}E`xoTu^?gJ^2MUNS`JZT0$3|iIDI!+3s3>2=XA}zga0B5; zco-dtq9ZX}B!&?g!3c{EK@bLlWRU8l{~??d6qOcN{6B$I843RtU@ul7Q&23D + + + + + + Structured Data Validator, by JoliCode + + + + + + + + + + + +
+
+ Structured Data Validator + +
+ +
+
+

Validate your structured data

+

+ Paste a page or a JSON-LD document. It is checked against schema.org and the + Google Rich Results requirements, in your browser: nothing is sent to a server. +

+
+ +
+
+ + +
+ JSON-LD, Microdata and RDFa + + +
+
+

+
+ +
+ Try an example + + + +
+
+ + +
+ + diff --git a/website/src/Twig/JsonLdExtension.php b/website/src/Twig/JsonLdExtension.php new file mode 100644 index 00000000..f549a106 --- /dev/null +++ b/website/src/Twig/JsonLdExtension.php @@ -0,0 +1,82 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace JoliCode\StructuredData\Website\Twig; + +use JoliCode\StructuredData\JsonLd\Parser\Range; +use JoliCode\StructuredData\Mapper\MappedProperty; +use JoliCode\StructuredData\Mapper\MappedType; +use Twig\Extension\AbstractExtension; +use Twig\TwigFilter; +use Twig\TwigFunction; + +final class JsonLdExtension extends AbstractExtension +{ + #[\Override] + public function getFilters(): array + { + return [ + new TwigFilter('isTypeProperty', $this->isTypeProperty(...)), + new TwigFilter('renderScalarValue', $this->renderScalarValue(...)), + ]; + } + + #[\Override] + public function getFunctions(): array + { + return [ + new TwigFunction('formatRanges', $this->formatRanges(...)), + ]; + } + + private function isTypeProperty(MappedProperty|MappedType $property): bool + { + if ($property instanceof MappedType) { + return false; + } + + if ($property->getValue() instanceof MappedType) { + return true; + } + + return \is_array($property->getValue()) && array_any($property->getValue(), static fn (mixed $value): bool => $value instanceof MappedType); + } + + /** + * @param Range[] $ranges + * @param 'end'|'start' $position + */ + private function formatRanges(array $ranges, string $position): string + { + return implode('|', array_map( + static fn (Range $range): string => $range->{$position}, + $ranges, + )); + } + + private function renderScalarValue(mixed $value): string + { + if (\is_bool($value)) { + return $value ? 'true' : 'false'; + } + + if (!\is_string($value)) { + return (string) $value; + } + + // The values extracted from the document may still carry JSON escape + // sequences (\uXXXX, \"…): they are decoded for display only, and the + // raw value is kept when the result is not a valid JSON string. + $decoded = json_decode('"' . str_replace('"', '\"', $value) . '"', true); + + return \is_string($decoded) ? $decoded : $value; + } +} diff --git a/website/src/Twig/MarkdownExtension.php b/website/src/Twig/MarkdownExtension.php new file mode 100644 index 00000000..a40a9092 --- /dev/null +++ b/website/src/Twig/MarkdownExtension.php @@ -0,0 +1,71 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace JoliCode\StructuredData\Website\Twig; + +use League\CommonMark\Environment\Environment; +use League\CommonMark\Extension\Autolink\UrlAutolinkParser; +use League\CommonMark\Extension\CommonMark\CommonMarkCoreExtension; +use League\CommonMark\Extension\ExternalLink\ExternalLinkExtension; +use League\CommonMark\Extension\Strikethrough\StrikethroughExtension; +use League\CommonMark\MarkdownConverter; +use League\CommonMark\Util\HtmlFilter; +use Twig\Extension\AbstractExtension; +use Twig\TwigFilter; + +/** + * Renders the descriptions of schema.org, written in Markdown. + */ +final class MarkdownExtension extends AbstractExtension +{ + private readonly MarkdownConverter $markdownConverter; + + public function __construct() + { + $environment = new Environment([ + 'allow_unsafe_links' => true, + 'external_link' => [ + 'nofollow' => 'external', + 'noopener' => 'external', + 'noreferrer' => 'external', + ], + 'html_input' => HtmlFilter::ALLOW, + 'max_nesting_level' => 1000, + 'renderer' => [ + 'block_separator' => "\n", + 'inner_separator' => "\n", + 'soft_break' => "\n", + ], + ]); + $environment->addExtension(new CommonMarkCoreExtension()); + $environment->addExtension(new StrikethroughExtension()); + $environment->addExtension(new ExternalLinkExtension()); + $environment->addInlineParser(new UrlAutolinkParser()); + + $this->markdownConverter = new MarkdownConverter($environment); + } + + #[\Override] + public function getFilters(): array + { + return [ + new TwigFilter('renderMarkdown', $this->renderMarkdown(...), ['pre_escape' => 'html', 'is_safe' => ['html']]), + ]; + } + + private function renderMarkdown(string $markdown): string + { + $html = (string) $this->markdownConverter->convert(str_replace('\n', "\n", $markdown)); + + // schema.org links its own terms as [[Term]] + return preg_replace('/\[\[([a-zA-Z0-9]+)\]\]/', '$1', $html) ?? $html; + } +} diff --git a/website/templates/components/_issue.html.twig b/website/templates/components/_issue.html.twig new file mode 100644 index 00000000..c327714d --- /dev/null +++ b/website/templates/components/_issue.html.twig @@ -0,0 +1,28 @@ +{# An error or a warning of an entity, with where it is: a click selects it in the editor, see result_controller.js #} +{% set isWarning = error.severity == 'warning' %} +{% set range = error.ranges|split(' to ') %} + +
  • + + {{ include(isWarning ? '@images/warning.svg' : '@images/error.svg') }} + +
    + {{ error.message }} + + {% if error.validatorName %}{{ error.validatorName }} ·{% endif %} + {{ error.path }} + {% if range|length == 2 %}· line {{ range[0]|split(':')|first }}{% endif %} + {% if error.documentationLink %} + · Documentation + {% endif %} + +
    +
  • diff --git a/website/templates/components/_issueCount.html.twig b/website/templates/components/_issueCount.html.twig new file mode 100644 index 00000000..04b1bcb3 --- /dev/null +++ b/website/templates/components/_issueCount.html.twig @@ -0,0 +1,8 @@ +{%- set parts = [] -%} +{%- if errorCount -%} + {%- set parts = parts|merge([errorCount ~ ' error' ~ (errorCount > 1 ? 's' : '')]) -%} +{%- endif -%} +{%- if warningCount -%} + {%- set parts = parts|merge([warningCount ~ ' warning' ~ (warningCount > 1 ? 's' : '')]) -%} +{%- endif -%} +{{- parts|join(', ') -}} diff --git a/website/templates/components/_property.html.twig b/website/templates/components/_property.html.twig new file mode 100644 index 00000000..83fde02d --- /dev/null +++ b/website/templates/components/_property.html.twig @@ -0,0 +1,12 @@ + +{% if property|isTypeProperty %} + {% if property.value is iterable %} + {% for index, type in property.value %} + {{ include('components/_typeProperty.html.twig', {level: level, type: type}) }} + {% endfor %} + {% else %} + {{ include('components/_typeProperty.html.twig', {level: level, type: property.value}) }} + {% endif %} +{% else %} + {{ include('components/_regularProperty.html.twig', {level: level, property: property}) }} +{% endif %} diff --git a/website/templates/components/_rangeProperties.html.twig b/website/templates/components/_rangeProperties.html.twig new file mode 100644 index 00000000..247f7d45 --- /dev/null +++ b/website/templates/components/_rangeProperties.html.twig @@ -0,0 +1,5 @@ +{% if ranges %} + data-start="{{ formatRanges(ranges, 'start') }}" + data-end="{{ formatRanges(ranges, 'end') }}" + title="{{ 'From ' ~ formatRanges(ranges, 'start') ~ ' to ' ~ formatRanges(ranges, 'end') }}" +{% endif %} diff --git a/website/templates/components/_regularProperty.html.twig b/website/templates/components/_regularProperty.html.twig new file mode 100644 index 00000000..bcb8d4e3 --- /dev/null +++ b/website/templates/components/_regularProperty.html.twig @@ -0,0 +1,83 @@ +{% set hasDetail = property.value is iterable or property.key == '@type' and type.description is not null or property.description is not null %} + +
    + +

    + {{ property.key }} +

    + +
    + + {% if property.value is iterable %} + {{ property.value|map(value => value|renderScalarValue)|join(', ', ' and ') }} + {% elseif property.value is same as(true) %} + true + {% elseif property.value is same as(false) %} + false + {% else %} + {{ property.value|renderScalarValue }} + {% endif %} + + +
    + {% if not property.isValid %} + {% if property.errors|length > 0 %} + {{ property.errors|length }} {{ property.errorSeverity }}{{ property.errors|length > 1 ? 's' }} + {% endif %} + + {{ include('@images/info.svg') }} + + {% endif %} + {% if hasDetail %} + + {{ include('@images/arrow.svg') }} + + {% endif %} +
    +
    +
    + {% if hasDetail %} +
    + {% if property.value is iterable or property.key == '@type' and type.description is not null or property.description is not null %} +
    + {% if property.value is iterable %} + {% if property.key == '@type' and type.type is iterable %} +
    + {% for link in type.type|sort %} + {{ include('components/reference/_link.html.twig', {link: link}) }} + {% endfor %} +
    + {% else %} +
    +
      + {% for value in property.value %} +
    • {{ value|renderScalarValue }}
    • + {% endfor %} +
    +
    + {% endif %} + {% else %} + {% if property.key == '@type' and type.description is not null %} + {{ include('components/reference/_reference.html.twig', {description: type.description, link: type.type, item: type}) }} + {% elseif property.description is not null %} + {{ include('components/reference/_reference.html.twig', {description: property.description, link: property.key, item: property}) }} + {% endif %} + {% endif %} +
    + {% endif %} +
    + {% endif %} +
    diff --git a/website/templates/components/_type.html.twig b/website/templates/components/_type.html.twig new file mode 100644 index 00000000..d784cd71 --- /dev/null +++ b/website/templates/components/_type.html.twig @@ -0,0 +1,62 @@ +{% set errors = type.mergedErrors|filter(error => error.severity != 'warning') %} +{% set warnings = type.mergedErrors|filter(error => error.severity == 'warning') %} + +
    +
    +

    + {% if type.type is iterable %} + {{- type.type|join(', ') -}} + {% elseif not type.type %} + Undefined type + {% else %} + {{- type.type -}} + {% endif %} + {% if type.name %} + “{{ type.name }}” + {% endif %} +

    + + {% if errors is empty and warnings is empty %} + Valid + {% else %} + + {{- include('components/_issueCount.html.twig', {errorCount: errors|length, warningCount: warnings|length}) -}} + + {% endif %} +
    + + {% if errors is not empty %} +
      + {% for error in errors %} + {{ include('components/_issue.html.twig', {error: error}) }} + {% endfor %} +
    + {% endif %} + + {% if warnings is not empty %} +
    + + Show + + {{ warnings|length }} warning{{ warnings|length > 1 ? 's' }} + +
      + {% for error in warnings %} + {{ include('components/_issue.html.twig', {error: error}) }} + {% endfor %} +
    +
    + {% endif %} + +
    + + {{ type.properties|length }} propert{{ type.properties|length > 1 ? 'ies' : 'y' }} + {{ include('@images/arrow.svg') }} + +
    + {% for property in type.properties %} + {{ include('components/_property.html.twig', {property: property, level: 0}) }} + {% endfor %} +
    +
    +
    diff --git a/website/templates/components/_typeProperty.html.twig b/website/templates/components/_typeProperty.html.twig new file mode 100644 index 00000000..ce1a9995 --- /dev/null +++ b/website/templates/components/_typeProperty.html.twig @@ -0,0 +1,64 @@ +{% set mergedErrors = type.mergedErrors|default(property.errors) %} +{% set errorCount = mergedErrors|filter(error => error.severity != 'warning')|length %} +{% set warningCount = mergedErrors|filter(error => error.severity == 'warning')|length %} +{% set isValid = mergedErrors is empty %} + +
    + +

    + {{ property.key }} +

    + +
    +
    + {% if type.properties['@type'] is defined %} + + {% if type.properties['@type'].value is iterable %} + {{ type.properties['@type'].value|join(', ', ' and ') }} + {% else %} + {{ type.properties['@type'].value }} + {% endif %} + + {% elseif type.type is not null %} + + {% if type.type is iterable %} + {{ type.type|join(', ', ' and ') }} + {% else %} + {{ type.type }} + {% endif %} + + {% endif %} +
    + +
    + {% if not isValid %} + {{ include('components/_issueCount.html.twig', {errorCount: errorCount, warningCount: warningCount}) }} + + {{ include('@images/info.svg') }} + + {% endif %} + + {{ include('@images/arrow.svg') }} + +
    +
    +
    +
    + {% if type.properties is defined %} + {% for property in type.properties %} + {{ include('components/_property.html.twig', {level: level + 1, property: property}) }} + {% endfor %} + {% else %} + {{ type }} + {% endif %} +
    +
    diff --git a/website/templates/components/reference/_googleLink.html.twig b/website/templates/components/reference/_googleLink.html.twig new file mode 100644 index 00000000..84605848 --- /dev/null +++ b/website/templates/components/reference/_googleLink.html.twig @@ -0,0 +1,11 @@ +{% if googleLink %} + + {{ include('@images/link.svg') }} + {{ linkLabel|default('Google') }} + +{% endif %} diff --git a/website/templates/components/reference/_link.html.twig b/website/templates/components/reference/_link.html.twig new file mode 100644 index 00000000..686e78bb --- /dev/null +++ b/website/templates/components/reference/_link.html.twig @@ -0,0 +1,23 @@ +{% if link is iterable %} + {% for item in link %} + + {{ include('@images/link.svg') }} + {{ linkLabel|default(item) }} + + {% endfor %} +{% else %} + + {{ include('@images/link.svg') }} + {{ linkLabel|default(link) }} + +{% endif %} diff --git a/website/templates/components/reference/_reference.html.twig b/website/templates/components/reference/_reference.html.twig new file mode 100644 index 00000000..1690ded4 --- /dev/null +++ b/website/templates/components/reference/_reference.html.twig @@ -0,0 +1,14 @@ +
    + {{ description|renderMarkdown() }} +
    +
    + {{ include('components/reference/_link.html.twig', {link: link}) }} + {{ include('components/reference/_googleLink.html.twig', {googleLink: item.documentationLink|default(null)}) }} + {% for isPartOf in item.isPartOf %} + + {{ isPartOf }} + + {% endfor %} +
    diff --git a/website/templates/result.html.twig b/website/templates/result.html.twig new file mode 100644 index 00000000..22bd652f --- /dev/null +++ b/website/templates/result.html.twig @@ -0,0 +1,145 @@ +{% set errorCount = 0 %} +{% set warningCount = 0 %} +{% for type in types %} + {% set errorCount = errorCount + type.mergedErrors|filter(error => error.severity != 'warning')|length %} + {% set warningCount = warningCount + type.mergedErrors|filter(error => error.severity == 'warning')|length %} +{% endfor %} + +
    +
    +
    + Structured Data Validator + {% if types|length > 0 %} + {{ types|length }} {{ types|length > 1 ? 'entities' : 'entity' }} + {% if errorCount %} + {{ errorCount }} error{{ errorCount > 1 ? 's' }} + {% endif %} + {% if warningCount %} + {{ warningCount }} warning{{ warningCount > 1 ? 's' }} + {% endif %} + {% if not errorCount and not warningCount %} + Valid + {% endif %} + {% endif %} +
    + +
    +
    + + + +
    + + + + +
    +
    + +
    +
    + {# A browser drops the line break that follows the +

    + +
    + +
    + {% for type in types %} + {{ include('components/_type.html.twig', {type: type}) }} + {% else %} +
    +
    + {{ include('@images/error.svg') }} + We could not extract structured data from the provided code. +
    + +
    +

    + In order to add json-ld structured data to your pages, add a <script> tag: +

    + +
    <script type="application/ld+json">
    +{
    +  "@context": "https://schema.org",
    +  "@type": "Organization",
    +  "url": "https://jolicode.com",
    +  "name": [
    +    "Web development agency"
    +  ],
    +  "contactPoint": {
    +    "@type": "ContactPoint",
    +    "url": "https://jolicode.com/contact",
    +    "contactType": "Customer service"
    +  }
    +}
    +</script>
    +
    +
    + {% endfor %} +
    +
    +
    diff --git a/website/tests/format.test.mjs b/website/tests/format.test.mjs new file mode 100644 index 00000000..a6518a33 --- /dev/null +++ b/website/tests/format.test.mjs @@ -0,0 +1,40 @@ +import assert from 'node:assert/strict'; +import { test } from 'node:test'; + +import { formatDocument } from '../assets/format.js'; + +// Runs assets/format.js, what the "Format" button of the result runs, in node. +// Run with "castor website:check". + +test('expands a minified JSON-LD document', async () => { + const { content } = await formatDocument('{"@context":"https://schema.org","@type":"Organization","name":"JoliCode"}'); + + assert.equal(content, '{\n "@context": "https://schema.org",\n "@type": "Organization",\n "name": "JoliCode"\n}\n'); +}); + +test('indents a page, and expands its JSON-LD', async () => { + const { content } = await formatDocument('

    Hello

    '); + + assert.match(content, /\n {8}"@type": "Thing",\n {8}"name": "A"\n/); + assert.match(content, /\n {4}

    Hello<\/p>\n/); +}); + +test('never wraps a text, that microdata reads as a value', async () => { + const text = 'word '.repeat(200).trim(); + const { content } = await formatDocument(`

    ${text}

    `); + + assert.ok(content.includes(`

    ${text}

    `)); +}); + +test('leaves a document with invalid JSON as it is', async () => { + assert.match((await formatDocument('{"name": }')).error, /invalid JSON/); + assert.match((await formatDocument('')).error, /invalid JSON/); +}); + +test('indents what Prettier refuses, without repairing it', async () => { + const { content } = await formatDocument('

    Hello

    A
    '); + + assert.ok(content.includes('')); + assert.ok(content.includes('')); + assert.match(content, /^
    \n {2}

    /); +}); diff --git a/website/tests/page.test.mjs b/website/tests/page.test.mjs new file mode 100644 index 00000000..624861a7 --- /dev/null +++ b/website/tests/page.test.mjs @@ -0,0 +1,53 @@ +import assert from 'node:assert/strict'; +import { test } from 'node:test'; + +import { audit } from '../public/build/php.js'; + +// Runs assets/php.js, as the page does, in node, on what "castor website:build" +// built. Run with "castor website:check": fetch-files.mjs of php-wasm-builder +// lets node fetch the .wasm file. + +const settings = { allowPendingVocabulary: true, mergeSharedIdentifiers: true }; + +test('audits a valid document', async () => { + const { html } = await audit({ + ...settings, + body: '{"@context": "https://schema.org", "@type": "Organization", "name": "JoliCode", "url": "https://jolicode.com"}', + }); + + assert.match(html, /]*>\s*Organization\s+]*>“JoliCode”<\/span>/); + assert.match(html, />Valid { + const { html } = await audit({ + ...settings, + body: '', + }); + + assert.match(html, /1 error/); + assert.match(html, /data-result-severity="error"/); + assert.match(html, /data-start="2:/); +}); + +test('keeps the document as it is, in the editor', async () => { + const body = '\n{"@context": "https://schema.org", "@type": "Thing", "name": " & co"}'; + const { html } = await audit({ ...settings, body }); + + assert.ok(html.includes(`data-result-target="codemirror">\n\n{"@context"`)); + assert.ok(html.includes('<b> & co')); +}); + +test('says when there is no structured data', async () => { + const { html } = await audit({ ...settings, body: '

    Hello

    ' }); + + assert.match(html, /We could not extract structured data/); +}); + +test('refuses an empty document', async () => { + assert.deepEqual(await audit({ ...settings, body: ' ' }), { error: 'Please enter some code to validate.' }); +}); + +test('refuses a document that is too large', async () => { + assert.deepEqual(await audit({ ...settings, body: ' '.repeat(2 * 1024 * 1024) + '{}' }), { error: 'This document is too large to be validated.' }); +}); From 7bd2dd0bb13c2f15ff1323103831ac7d4cf7adde Mon Sep 17 00:00:00 2001 From: Xavier Lacot Date: Tue, 17 Nov 2026 10:19:29 +0100 Subject: [PATCH 2/3] Polish the demo website: redesigned homepage with real-world examples and the JoliCode footer, tree controls on the result page --- .castor/website.php | 8 + website/README.md | 3 + .../assets/controllers/result_controller.js | 68 +++- website/assets/examples.js | 322 ++++++++++++++++++ website/assets/styles/app.css | 44 +++ website/assets/validatorSettings.js | 7 +- website/public/index.html | 167 ++++++--- website/templates/result.html.twig | 39 ++- website/tests/page.test.mjs | 23 ++ 9 files changed, 636 insertions(+), 45 deletions(-) diff --git a/.castor/website.php b/.castor/website.php index 6dcd4b85..7d92ed32 100644 --- a/.castor/website.php +++ b/.castor/website.php @@ -17,6 +17,7 @@ use function Castor\context; use function Castor\finder; use function Castor\fs; +use function Castor\http_request; use function Castor\io; use function Castor\run; use function PhpWasm\build as build_wasm; @@ -66,6 +67,13 @@ function build( run(['npm', 'run', 'build'], context: context()->withWorkingDirectory($website)); + // The JoliCode open-source footer of the homepage, see jolicode/oss-theme + $footer = http_request('GET', 'https://raw.githubusercontent.com/jolicode/oss-theme/refs/heads/main/snippet-joli-footer.html')->getContent(); + fs()->dumpFile("{$website}/public/build/joli-footer.html", strtr($footer, [ + '#GITHUB_REPO' => 'jolicode/structured-data', + '' => 'The jolicode/structured-data PHP library, compiled to WebAssembly. It is licensed under MIT license.', + ])); + // What is embedded takes some of the memory of the WebAssembly module: // only what bin/audit.php reads fs()->mirror($website, $app, finder() diff --git a/website/README.md b/website/README.md index 4c3ee131..8a1ea5bb 100644 --- a/website/README.md +++ b/website/README.md @@ -19,6 +19,9 @@ as its `bin/format-document.js` does in node. - `bin/audit.php` is what PHP runs: it audits the document, and renders `templates/result.html.twig`, the editor and the result, with Twig. - `assets/php.js` loads PHP, and runs `bin/audit.php`. +- The footer of the homepage is the JoliCode open-source one, + [jolicode/oss-theme](https://github.com/jolicode/oss-theme): `castor website:build` downloads it + to `public/build/joli-footer.html`, and the homepage loads it. ## Build it diff --git a/website/assets/controllers/result_controller.js b/website/assets/controllers/result_controller.js index 23df1151..442c0c6a 100644 --- a/website/assets/controllers/result_controller.js +++ b/website/assets/controllers/result_controller.js @@ -57,6 +57,7 @@ const lineStart = (doc, rawLine) => { export default class extends Controller { static targets = [ "codemirror", + "expandButton", "formatButton", "nodes", "settingsWrapper", @@ -65,6 +66,7 @@ export default class extends Controller { "settingMergeNodes", "settingAllowPending", "settingAutoExpandWarnings", + "showDescriptions", "warnings", ]; @@ -75,11 +77,75 @@ export default class extends Controller { connect() { // the errors are always shown, the warnings of an entity are folded // unless the settings say otherwise - const { autoExpandWarnings } = loadSettings(); + const { autoExpandWarnings, showDescriptions, expandTree } = loadSettings(); this.warningsTargets.forEach((warnings) => { warnings.open = autoExpandWarnings; }); + + if (this.hasShowDescriptionsTarget) { + this.showDescriptionsTarget.checked = showDescriptions; + } + this.nodesTarget.toggleAttribute("data-hide-descriptions", !showDescriptions); + + // "toggle" does not bubble: caught on its way down, and coalesced, as + // expanding the whole tree fires one per branch + this.onBranchToggle = () => { + cancelAnimationFrame(this.refreshFrame); + this.refreshFrame = requestAnimationFrame(() => this.refreshExpandButton()); + }; + this.nodesTarget.addEventListener("toggle", this.onBranchToggle, true); + + // the tree is rendered collapsed: expanded again, if "Expand all" was the + // last choice + if (expandTree) { + this.treeBranches().forEach((branch) => { + branch.open = true; + }); + } + this.refreshExpandButton(); + } + + disconnect() { + this.nodesTarget.removeEventListener("toggle", this.onBranchToggle, true); + cancelAnimationFrame(this.refreshFrame); + } + + // the branches of the property tree: the warnings list of an entity is not one + treeBranches() { + return [...this.nodesTarget.querySelectorAll('details:not([data-result-target~="warnings"])')]; + } + + // collapses the whole tree as soon as a branch is open, expands it otherwise + toggleAll() { + const branches = this.treeBranches(); + const shouldOpen = !branches.some((branch) => branch.open); + + branches.forEach((branch) => { + branch.open = shouldOpen; + }); + + persistSettings({ expandTree: shouldOpen }); + this.refreshExpandButton(); + } + + refreshExpandButton() { + if (!this.hasExpandButtonTarget) { + return; + } + + const anyOpen = this.treeBranches().some((branch) => branch.open); + + this.expandButtonTarget.textContent = anyOpen ? "Collapse all" : "Expand all"; + this.expandButtonTarget.setAttribute("aria-expanded", anyOpen ? "true" : "false"); + } + + // display only: takes effect at once, without auditing again + toggleDescriptions() { + const showDescriptions = this.showDescriptionsTarget.checked; + + this.nodesTarget.toggleAttribute("data-hide-descriptions", !showDescriptions); + persistSettings({ showDescriptions }); } toggleSettings() { diff --git a/website/assets/examples.js b/website/assets/examples.js index 87ef6c4a..0a8c2eb0 100644 --- a/website/assets/examples.js +++ b/website/assets/examples.js @@ -1,5 +1,9 @@ // The documents behind the "Try an example" buttons of the homepage, by the // data-example of their button. +// +// The first three are made up. The others are the structured data of real pages, +// as they were served on 2026-11-16, quirks included: only their longest lists +// are shortened. export const examples = { product: ``, + + // https://jolicode.com/blog/secret-santa-in-2026-exclusions-slack-connect-and-a-fresh-coat-of-paint + // its \u escapes are decoded, for reading; String.raw keeps its escaped slashes + jolicodeBlogPost: String.raw``, + + // https://jolicampus.com/formations/symfony: its Product and WebSite blocks + // are left out, its syllabus, reviews and instructors are shortened + symfonyTraining: ` + + + Formation Symfony - JoliCampus + + + + + +

    Formation Symfony

    + +`, + + // https://redirection.io/ + redirectionio: ``, }; diff --git a/website/assets/styles/app.css b/website/assets/styles/app.css index a413243e..3eb3a051 100644 --- a/website/assets/styles/app.css +++ b/website/assets/styles/app.css @@ -19,6 +19,41 @@ --font-display: "Space Grotesk Variable", ui-sans-serif, system-ui, sans-serif; --font-mono: "JetBrains Mono Variable", ui-monospace, monospace; --font-sans: "Inter Variable", ui-sans-serif, system-ui, sans-serif; + + /* The yellow of JoliCode, and of its open-source footer */ + --color-joli: #f7d325; +} + +/* The homepage: a dotted backdrop fading out, lit by the yellow and the blue of the footer */ +.home-backdrop { + &::before, + &::after { + @apply pointer-events-none absolute inset-0 -z-10; + content: ""; + } + + &::before { + background-image: radial-gradient(var(--color-gray-300) 1px, transparent 1px); + background-size: 22px 22px; + mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 100%); + } + + &::after { + background: + radial-gradient(40rem 22rem at 15% 10%, color-mix(in oklab, var(--color-joli) 28%, transparent), transparent 70%), + radial-gradient(36rem 22rem at 90% 35%, color-mix(in oklab, #a1e3ff 40%, transparent), transparent 70%); + } +} + +/* A highlighter stroke under a few words */ +.home-marker { + background: linear-gradient(transparent 62%, color-mix(in oklab, var(--color-joli) 85%, transparent) 62%, color-mix(in oklab, var(--color-joli) 85%, transparent) 92%, transparent 92%); + box-decoration-break: clone; + padding-inline: 0.1em; +} + +.home-chip { + @apply inline-flex min-h-10 cursor-pointer items-center gap-2 rounded-full border border-gray-300 bg-white px-4 text-[13px] font-medium shadow-sm transition hover:-translate-y-px hover:border-gray-900 hover:shadow-md focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-900; } .cm-editor { @@ -78,6 +113,15 @@ [data-start]:hover { @apply bg-yellow-100; } + + /* The "Show descriptions" switch of the result hides the reference blocks: + the detail of a property holding only one is then empty, so its arrow goes too */ + &[data-hide-descriptions] { + .detail:has(> .structured-data-reference), + details:has(> .detail > .structured-data-reference) > summary .transition { + @apply hidden; + } + } } details[open]>.detail { diff --git a/website/assets/validatorSettings.js b/website/assets/validatorSettings.js index 1fd5a19f..d3d2bb9e 100644 --- a/website/assets/validatorSettings.js +++ b/website/assets/validatorSettings.js @@ -7,6 +7,9 @@ export const defaultSettings = { mergeSharedIdentifiers: true, autoExpandWarnings: false, allowPendingVocabulary: true, + showDescriptions: true, + // what "Expand all / Collapse all" of the result last did + expandTree: false, }; export function loadSettings() { @@ -17,6 +20,8 @@ export function loadSettings() { } } +// merged into what is stored: the settings menu and the toolbar of the result +// each write only their own settings export function persistSettings(settings) { - localStorage.setItem(STORAGE_KEY, JSON.stringify({ ...defaultSettings, ...settings })); + localStorage.setItem(STORAGE_KEY, JSON.stringify({ ...loadSettings(), ...settings })); } diff --git a/website/public/index.html b/website/public/index.html index 769a5596..c6c5fd10 100644 --- a/website/public/index.html +++ b/website/public/index.html @@ -17,52 +17,141 @@
    -
    - Structured Data Validator - -
    +
    +
    + + + Structured Data Validator + + +
    -
    -
    -

    Validate your structured data

    -

    - Paste a page or a JSON-LD document. It is checked against schema.org and the - Google Rich Results requirements, in your browser: nothing is sent to a server. -

    -
    +
    +
    + + + schema.org 30.1 - 2026-09-16 + +

    + Validate your structured data +

    +

    + Paste a HTML page or a JSON-LD document to check it against schema.org and the + Google Rich Results requirements, in your browser with webassembly. +

    +
    -
    -
    - - -
    - JSON-LD, Microdata and RDFa - - + +
    + + + +
    + + JSON-LD + Microdata + RDFa + + + +
    -
    -

    - +

    +

    + + + Running entirely in your browser, this demo cannot load a web page from its URL. + To validate the structured data of a live page, use + the structured data validator of redirection.io. + +

    + -
    - Try an example - - - +
    +

    Or try an example

    +
    + Samples + + + +
    +
    + Real pages + + + + +
    +
    - +
    +
    + +

    Every syntax

    +

    JSON-LD blocks, Microdata and RDFa attributes are read from a whole page, or a lone JSON-LD document. 100% compliant with the JSON-LD 1.1 specification: every W3C test that applies passes.

    +
    +
    + +

    schema.org and Google

    +

    Types and properties are checked against schema.org, and against what the Google Rich Results require.

    +
    +
    + +

    Private by design

    +

    The jolicode/structured-data PHP library runs in this page, compiled to WebAssembly: your document never leaves your browser.

    +
    +
    + + +
    + diff --git a/website/templates/result.html.twig b/website/templates/result.html.twig index 22bd652f..b944b16a 100644 --- a/website/templates/result.html.twig +++ b/website/templates/result.html.twig @@ -6,9 +6,13 @@ {% endfor %}
    -
    + {# The same backdrop and logo as the homepage, see public/index.html #} +
    - Structured Data Validator + + + Structured Data Validator + {% if types|length > 0 %} {{ types|length }} {{ types|length > 1 ? 'entities' : 'entity' }} {% if errorCount %} @@ -23,7 +27,33 @@ {% endif %}
    -
    +
    + {% if types|length > 0 %} + + + + {% endif %} +
    diff --git a/website/tests/page.test.mjs b/website/tests/page.test.mjs index 624861a7..8a740480 100644 --- a/website/tests/page.test.mjs +++ b/website/tests/page.test.mjs @@ -1,6 +1,7 @@ import assert from 'node:assert/strict'; import { test } from 'node:test'; +import { examples } from '../assets/examples.js'; import { audit } from '../public/build/php.js'; // Runs assets/php.js, as the page does, in node, on what "castor website:build" @@ -42,8 +43,30 @@ test('says when there is no structured data', async () => { const { html } = await audit({ ...settings, body: '

    Hello

    ' }); assert.match(html, /We could not extract structured data/); + assert.doesNotMatch(html, /data-result-target="expandButton"/); + assert.doesNotMatch(html, /data-result-target="showDescriptions"/); }); +test('offers to expand the tree and to hide the descriptions, when there is a result', async () => { + const { html } = await audit({ + ...settings, + body: '{"@context": "https://schema.org", "@type": "Organization", "name": "JoliCode"}', + }); + + assert.match(html, /data-result-target="expandButton"[^>]*>\s*Expand all\s* { + const { html, error } = await audit({ ...settings, body }); + + assert.equal(error, undefined); + assert.doesNotMatch(html, /We could not extract structured data/); + }); +} + test('refuses an empty document', async () => { assert.deepEqual(await audit({ ...settings, body: ' ' }), { error: 'Please enter some code to validate.' }); }); From 1df21ad78fc0af46fd331c04fd94387e998aeb56 Mon Sep 17 00:00:00 2001 From: Xavier Lacot Date: Tue, 17 Nov 2026 10:25:08 +0100 Subject: [PATCH 3/3] Add a demo example mixing JSON-LD and microdata with a shared identifier, and drop the homepage examples --- website/assets/examples.js | 63 +++++++++++++++++-------------------- website/public/index.html | 12 +++---- website/tests/page.test.mjs | 8 +++++ 3 files changed, 40 insertions(+), 43 deletions(-) diff --git a/website/assets/examples.js b/website/assets/examples.js index 0a8c2eb0..58dfa6c1 100644 --- a/website/assets/examples.js +++ b/website/assets/examples.js @@ -1,7 +1,7 @@ // The documents behind the "Try an example" buttons of the homepage, by the // data-example of their button. // -// The first three are made up. The others are the structured data of real pages, +// The first four are made up. The others are the structured data of real pages, // as they were served on 2026-11-16, quirks included: only their longest lists // are shortened. @@ -55,23 +55,35 @@ export const examples = { `, - // https://jolicode.com/ - jolicode: ``, + "@id": "https://example.com/#organization", + "name": "Example Bakery", + "url": "https://example.com/" + } + + + + + +`, // https://jolicode.com/blog/secret-santa-in-2026-exclusions-slack-connect-and-a-fresh-coat-of-paint // its \u escapes are decoded, for reading; String.raw keeps its escaped slashes @@ -353,23 +365,4 @@ export const examples = {

    Formation Symfony

    `, - - // https://redirection.io/ - redirectionio: ``, }; diff --git a/website/public/index.html b/website/public/index.html index c6c5fd10..5b5b4caf 100644 --- a/website/public/index.html +++ b/website/public/index.html @@ -96,13 +96,13 @@
    Real pages - -
    diff --git a/website/tests/page.test.mjs b/website/tests/page.test.mjs index 8a740480..6f4a1f49 100644 --- a/website/tests/page.test.mjs +++ b/website/tests/page.test.mjs @@ -67,6 +67,14 @@ for (const [name, body] of Object.entries(examples)) { }); } +test('merges the JSON-LD and the microdata of the "sharedIdentifier" example, as asked', async () => { + const merged = await audit({ ...settings, mergeSharedIdentifiers: true, body: examples.sharedIdentifier }); + const separate = await audit({ ...settings, mergeSharedIdentifiers: false, body: examples.sharedIdentifier }); + + assert.match(merged.html, />1 entity2 entities { assert.deepEqual(await audit({ ...settings, body: ' ' }), { error: 'Please enter some code to validate.' }); });