站内搜索
+ +正在加载搜索索引…
+From adf6804b37bc82d43a5fdbeeed9cb2e83ece515b Mon Sep 17 00:00:00 2001
From: lizheming
Date: Tue, 1 Dec 2026 03:17:18 +0800
Subject: [PATCH] feat(simply-static): add static site export and publishing
plugin
---
README.md | 2 +
packages/simply-static/IMPLEMENTATION.md | 57 +
packages/simply-static/README.md | 248 ++++
packages/simply-static/assets/comments.js | 18 +
packages/simply-static/assets/search.css | 30 +
packages/simply-static/assets/search.html | 22 +
packages/simply-static/assets/search.js | 54 +
packages/simply-static/bin/cli.js | 128 ++
.../simply-static/lib/additional-files.js | 38 +
packages/simply-static/lib/automation.js | 48 +
packages/simply-static/lib/deploy.js | 54 +
packages/simply-static/lib/exporter.js | 200 +++
packages/simply-static/lib/fetch-resource.js | 100 ++
packages/simply-static/lib/integrations.js | 65 +
packages/simply-static/lib/invalidation.js | 61 +
packages/simply-static/lib/jobs.js | 224 +++
packages/simply-static/lib/optimize-image.js | 24 +
packages/simply-static/lib/optimize.js | 35 +
packages/simply-static/lib/publish-bunny.js | 59 +
.../simply-static/lib/publish-cloudflare.js | 47 +
packages/simply-static/lib/publish-git.js | 65 +
packages/simply-static/lib/publish-local.js | 65 +
packages/simply-static/lib/publish-netlify.js | 36 +
packages/simply-static/lib/publish-s3.js | 37 +
packages/simply-static/lib/publish-sftp.js | 57 +
packages/simply-static/lib/resource-cache.js | 39 +
packages/simply-static/lib/settings.js | 46 +
packages/simply-static/lib/transform.js | 106 ++
packages/simply-static/lib/urls.js | 90 ++
packages/simply-static/package.json | 57 +
packages/simply-static/plugin.js | 205 +++
.../test/additional-files.test.js | 32 +
.../simply-static/test/automation.test.js | 49 +
packages/simply-static/test/cli.test.js | 75 +
packages/simply-static/test/deploy.test.js | 31 +
packages/simply-static/test/exporter.test.js | 129 ++
.../simply-static/test/fetch-resource.test.js | 63 +
.../test/fixtures/create-site.js | 53 +
.../simply-static/test/integrations.test.js | 46 +
.../simply-static/test/invalidation.test.js | 31 +
packages/simply-static/test/jobs.test.js | 130 ++
packages/simply-static/test/live-site.test.js | 81 ++
.../simply-static/test/optimize-image.test.js | 25 +
packages/simply-static/test/optimize.test.js | 27 +
packages/simply-static/test/plugin.test.js | 51 +
.../simply-static/test/publish-bunny.test.js | 45 +
.../test/publish-cloudflare.test.js | 34 +
.../simply-static/test/publish-git.test.js | 35 +
.../simply-static/test/publish-local.test.js | 34 +
.../test/publish-netlify.test.js | 36 +
.../simply-static/test/publish-s3.test.js | 31 +
.../simply-static/test/publish-sftp.test.js | 37 +
.../simply-static/test/resource-cache.test.js | 34 +
packages/simply-static/test/resume.test.js | 38 +
packages/simply-static/test/search-ui.test.js | 55 +
packages/simply-static/test/settings.test.js | 22 +
packages/simply-static/test/transform.test.js | 50 +
packages/simply-static/test/urls.test.js | 53 +
pnpm-lock.yaml | 1219 +++++++++++++++++
59 files changed, 4863 insertions(+)
create mode 100644 packages/simply-static/IMPLEMENTATION.md
create mode 100644 packages/simply-static/README.md
create mode 100644 packages/simply-static/assets/comments.js
create mode 100644 packages/simply-static/assets/search.css
create mode 100644 packages/simply-static/assets/search.html
create mode 100644 packages/simply-static/assets/search.js
create mode 100755 packages/simply-static/bin/cli.js
create mode 100644 packages/simply-static/lib/additional-files.js
create mode 100644 packages/simply-static/lib/automation.js
create mode 100644 packages/simply-static/lib/deploy.js
create mode 100644 packages/simply-static/lib/exporter.js
create mode 100644 packages/simply-static/lib/fetch-resource.js
create mode 100644 packages/simply-static/lib/integrations.js
create mode 100644 packages/simply-static/lib/invalidation.js
create mode 100644 packages/simply-static/lib/jobs.js
create mode 100644 packages/simply-static/lib/optimize-image.js
create mode 100644 packages/simply-static/lib/optimize.js
create mode 100644 packages/simply-static/lib/publish-bunny.js
create mode 100644 packages/simply-static/lib/publish-cloudflare.js
create mode 100644 packages/simply-static/lib/publish-git.js
create mode 100644 packages/simply-static/lib/publish-local.js
create mode 100644 packages/simply-static/lib/publish-netlify.js
create mode 100644 packages/simply-static/lib/publish-s3.js
create mode 100644 packages/simply-static/lib/publish-sftp.js
create mode 100644 packages/simply-static/lib/resource-cache.js
create mode 100644 packages/simply-static/lib/settings.js
create mode 100644 packages/simply-static/lib/transform.js
create mode 100644 packages/simply-static/lib/urls.js
create mode 100644 packages/simply-static/package.json
create mode 100644 packages/simply-static/plugin.js
create mode 100644 packages/simply-static/test/additional-files.test.js
create mode 100644 packages/simply-static/test/automation.test.js
create mode 100644 packages/simply-static/test/cli.test.js
create mode 100644 packages/simply-static/test/deploy.test.js
create mode 100644 packages/simply-static/test/exporter.test.js
create mode 100644 packages/simply-static/test/fetch-resource.test.js
create mode 100644 packages/simply-static/test/fixtures/create-site.js
create mode 100644 packages/simply-static/test/integrations.test.js
create mode 100644 packages/simply-static/test/invalidation.test.js
create mode 100644 packages/simply-static/test/jobs.test.js
create mode 100644 packages/simply-static/test/live-site.test.js
create mode 100644 packages/simply-static/test/optimize-image.test.js
create mode 100644 packages/simply-static/test/optimize.test.js
create mode 100644 packages/simply-static/test/plugin.test.js
create mode 100644 packages/simply-static/test/publish-bunny.test.js
create mode 100644 packages/simply-static/test/publish-cloudflare.test.js
create mode 100644 packages/simply-static/test/publish-git.test.js
create mode 100644 packages/simply-static/test/publish-local.test.js
create mode 100644 packages/simply-static/test/publish-netlify.test.js
create mode 100644 packages/simply-static/test/publish-s3.test.js
create mode 100644 packages/simply-static/test/publish-sftp.test.js
create mode 100644 packages/simply-static/test/resource-cache.test.js
create mode 100644 packages/simply-static/test/resume.test.js
create mode 100644 packages/simply-static/test/search-ui.test.js
create mode 100644 packages/simply-static/test/settings.test.js
create mode 100644 packages/simply-static/test/transform.test.js
create mode 100644 packages/simply-static/test/urls.test.js
diff --git a/README.md b/README.md
index 4dbc898..72bb003 100644
--- a/README.md
+++ b/README.md
@@ -33,6 +33,8 @@ packages through `pnpm-workspace.yaml`.
- [`firekylin-plugin-embed`](packages/embed): automatically embed supported standalone media and code URLs.
+- [`firekylin-plugin-simply-static`](packages/simply-static): export public sites as static HTML/ZIP, with a durable worker, static search, forms/comments integration, and hosting adapters.
+
## Publishing
Packages are published automatically through npm trusted publishing after their
diff --git a/packages/simply-static/IMPLEMENTATION.md b/packages/simply-static/IMPLEMENTATION.md
new file mode 100644
index 0000000..6ba8660
--- /dev/null
+++ b/packages/simply-static/IMPLEMENTATION.md
@@ -0,0 +1,57 @@
+# Feature mapping and validation
+
+Independent Firekylin implementation of the publishing capabilities described by
+[Simply Static](https://wordpress.org/plugins/simply-static/), including the public
+Pro feature categories. No Firekylin core files are changed. WordPress-specific
+page builders, WP-CLI, form plugins and language plugins are replaced by the
+Firekylin rendered-page crawler, CLI and explicit integration settings. Commercial
+support and hosted Studio are services, not features provided by this package.
+
+| Capability | Implementation / boundary |
+| --- | --- |
+| Full site / theme export | Anonymous HTML, linked pages, pagination, CSS imports, scripts, images, srcset, fonts; additional URL seeds for unlinked/plugin/language routes |
+| ZIP / directory / URLs | Complete snapshot and ZIP; absolute or relative links; Unicode filenames, canonical/meta URL rewriting |
+| Sitemap / feeds / robots / errors | XML link rewriting; robots Sitemap rewrite; explicit error-page URL produces 404.html |
+| Incremental / single page | ETag response reuse; baseline checkpoints refresh selected pages and direct referrers; full snapshots still published |
+| Admin / CLI | Settings, enqueue, progress, request logs, ZIP download, single-page form; standalone worker/status/cancel/recover commands |
+| Automation | Debounced content events and Cron while the web process runs; durable filesystem queue with serialized execution |
+| Destinations | Local managed symlink, Git/GitHub branch, Netlify ZIP API, Cloudflare Wrangler, S3-compatible AWS CLI, Bunny Storage API, SFTP |
+| Search | Local JSON index and browser search UI; built-in search routes/forms adapted; no Algolia account required |
+| Forms | CSS-selector mappings to HTTPS POST services; arbitrary AJAX form handlers require theme-specific adaptation |
+| Comments | Existing external scripts retained; Firekylin Waline containers can target an external Waline server while preserving original page identity |
+| Multilingual | Crawl linked language routes, preserve hreflang links; explicitly seed unlinked language entry points |
+| Optimization | Optional HTML/CSS/JS minification and optional sharp PNG/JPEG/WebP optimization |
+| Recovery | Per-resource checksummed checkpoints, same-host dead-worker recovery; uncertain remote publication is not automatically repeated |
+
+## Publication semantics
+
+Local publication switches a managed symlink after staging. Git makes a snapshot
+commit without force pushes. Netlify waits for the deployment to become ready;
+Cloudflare reports the official command result. S3 and Bunny sync individual
+objects and are not atomic. SFTP stages a directory and performs two renames with
+rollback on switch failure, leaving a brief gap. Credentials come from the worker
+environment, SSH keys or provider tooling, not generated pages.
+
+## Validation
+
+- Unit/integration tests cover crawler boundaries, private responses, redirects,
+ size limits, XML/CSS/HTML transforms, jobs, recovery, scheduling, deployment
+ failures, forms/comments mapping and browser search execution in jsdom.
+- CLI tests use a real local HTTP server and separate worker process, including
+ single-page updates. Local and Git adapters use real directories and a local
+ bare Git remote.
+- Optional real-core tests register the admin declarations and export an isolated
+ SQLite-backed Firekylin website with the default theme. Private, draft, future
+ and password-protected content must not occur in the generated pages/index.
+- Remote hosting adapters use mocked transports/commands; real account deployments
+ and browser visual comparison are not claimed.
+
+## Operational boundaries
+
+A persistent shared filesystem and separate worker are required for admin jobs.
+Serverless/ephemeral web deployments should execute exports in a persistent CI or
+worker environment. Search, forms and comments do not turn authentication,
+payments, arbitrary JavaScript APIs or server-side business logic into static HTML.
+JavaScript runtime imports/requests are not recursively interpreted by the crawler.
+Full export is required after global theme/navigation/visibility changes. Export
+memory, provider-specific non-atomic publication and cleanup are documented in README.
diff --git a/packages/simply-static/README.md b/packages/simply-static/README.md
new file mode 100644
index 0000000..6f86148
--- /dev/null
+++ b/packages/simply-static/README.md
@@ -0,0 +1,248 @@
+# Firekylin Simply Static
+
+将 Firekylin 公开网站导出为独立静态文件。复用源站匿名访客看到的
+HTML 和主题资源,不修改 Firekylin core。
+
+> 要求 Firekylin 2.19.4+、Node.js 22.13+。这是独立实现,非 Simply Static 官方产品。
+> 功能对照与验证边界见 [IMPLEMENTATION.md](IMPLEMENTATION.md)。
+
+## 安装与后台
+
+在网站项目中安装此包并启用插件,后台会出现「静态发布」。
+配置源站地址、静态网站地址,然后选择「生成静态网站」。
+源站需要能从工作进程访问。后台发起的导出包含 sitemap.xml、rss.xml
+以及自行添加的页面地址。使用源站 sitemap 中的公开链接补充内容发现。
+
+源站地址可以包含子目录;目标地址也可包含子目录。相对链接模式允许
+把同一份输出移动到不同的域名或子目录。
+
+外部图片、字体和 CSS 默认保留远程引用;如需下载,逐行填写允许的
+外部资源源站,例如 `https://cdn.example.com`。不要把私有服务加入此列表。
+
+## 工作进程
+
+后台只负责创建任务。请在同一网站项目目录运行独立工作进程:
+
+```sh
+npx --no-install firekylin-static worker --store .firekylin/simply-static/jobs
+```
+
+使用进程管理器保持其运行。工作进程和 Web 进程需要共享同一持久化目录。
+纯临时文件系统的部署不能依赖这个本地队列;应在持久化执行环境运行
+CLI,例如 CI 中直接执行下面的 `export` 命令。
+
+定时生成使用 Cron 表达式与 IANA 时区。定时触发器运行在 Firekylin
+进程内,网站进程停止期间不会补跑。自动生成合并短时间内的内容更新,
+多个实例会复用相同的待执行任务。
+
+## 独立命令行
+
+创建 `static.config.json`:
+
+```json
+{
+ "sourceUrl": "https://cms.example.com/",
+ "destinationUrl": "https://www.example.com/",
+ "relative": false,
+ "incremental": true,
+ "additionalUrls": ["/sitemap.xml", "/rss.xml"],
+ "exclude": ["/private"],
+ "assetOrigins": ["https://cdn.example.com"]
+}
+```
+
+```sh
+npx --no-install firekylin-static export --config static.config.json
+npx --no-install firekylin-static enqueue --config static.config.json
+npx --no-install firekylin-static worker --once
+npx --no-install firekylin-static status --id JOB_ID
+npx --no-install firekylin-static cancel --id JOB_ID
+```
+
+CLI 默认任务目录是 `.firekylin/static-jobs`,可通过 `--store` 显式指定。
+每个任务保存状态和进度,成功后生成 `output/` 和 `output.zip`。
+取消任务会保留诊断信息,不会将未完成的输出发布出去。
+
+## 本地发布
+
+配置 `localDestination` 为绝对路径。插件在目标旁创建完整发布目录,
+通过替换符号链接切换版本。目标必须不存在或为插件创建的发布链接,
+不会覆盖已有普通目录。旧版本保留以便人工恢复,暂不自动清理。
+Web 服务器须允许跟随此发布链接。此方式依赖支持符号链接的文件系统。
+
+## Git 发布
+
+配置 `gitRepository` 与 `gitBranch`(默认 `gh-pages`)。工作进程使用
+Git 凭据助手或 SSH 身份验证;不要把密码或 Token 放到仓库 URL。
+插件创建完整静态快照提交,清理分支上旧的静态文件,不使用强制推送。
+发布分支应专用于静态输出,不能指向网站源码分支。
+
+每个任务只能配置一个发布目标。GitHub Pages 或其他托管平台仍需配置为读取
+指定发布分支;提交分支成功不代表托管平台已经部署完成。
+
+## 搜索和动态功能
+
+输出包含 `static-search.html`、脚本、样式和公开页面搜索索引。可将导航
+链接指向这个页面。搜索在浏览器端执行,不依赖 Firekylin 后台。
+
+现有独立评论服务脚本会随页面保留,但仍需要评论服务可访问。依赖源站
+API 的登录和动态请求不会自动变成静态功能。普通表单可配置外部端点;
+内置评论可通过 `commentServerUrl` 指向独立 Waline 服务(HTTPS)。插件保留
+原页面 pathname 作为评论标识,移动静态站子目录不会产生新的评论线程。
+服务端须允许静态站域名的跨域请求,并配置验证码域名;原站登录状态不会
+传递到独立评论服务。默认保留既有第三方评论脚本,未适配的内置评论会记录警告。
+
+## 目前的验证范围
+
+测试覆盖 URL 映射、下载限制和重定向、HTML/CSS/XML 解析、目录和 ZIP
+生成、条件请求缓存、持久化队列、定时触发、真实本地 HTTP 抓取、本地
+发布切换及真实本地 Git 远端发布。可使用真实 core 后台注册器验证声明:
+
+```sh
+FIREKYLIN_CORE_PATH=/absolute/path/to/firekylin node --test test/*.test.js
+```
+
+另有真实 SQLite Firekylin 默认主题导出测试,验证草稿、私密、未来发布和
+密码保护内容不泄露。搜索 UI 通过 jsdom 执行测试;未进行真实浏览器外观验收。
+远程平台使用模拟传输/进程测试,未使用真实账号部署。
+
+## Netlify 发布
+
+后台填写 `netlifySiteId`,或在 CLI 配置中设置同名字段。工作进程环境
+需要 `NETLIFY_AUTH_TOKEN`。不要将该令牌放进配置 JSON、任务记录或代码仓库。
+插件上传完整 ZIP 并轮询部署状态,只有 Netlify 返回 `ready` 才判定成功。
+如果超过等待次数,错误中保留部署 ID,应先检查已有部署,避免重复上传。
+每个任务只能配置一个发布目标。当前只有模拟接口测试,尚未在真实账号验收。
+
+## 中断任务恢复
+
+工作进程异常退出后,可在原执行主机使用:
+
+```sh
+npx --no-install firekylin-static recover --id JOB_ID --store .firekylin/simply-static/jobs
+```
+
+恢复前会检查锁文件中的主机和进程,活跃进程、其他主机或无法确认的
+所有者不会被抢占。恢复重新排队执行抓取,启用增量缓存时可以复用条件
+请求结果。若中断发生在发布阶段,必须先核对远端结果,不会自动重试发布。
+
+## 额外文件与表单适配
+
+CLI 配置可添加未被页面引用的文件或目录:
+
+```json
+{
+ "additionalFiles": [{"source": "public-downloads", "target": "downloads"}],
+ "searchSelectors": ["form.site-search"],
+ "forms": [{"selector": "form.contact", "endpoint": "https://forms.example/submit"}]
+}
+```
+
+`source` 相对于工作进程的工作目录,`target` 相对于导出根目录。额外文件
+拒绝隐藏文件、符号链接、路径越界和已生成文件冲突;仍需确认指定目录
+只包含可公开资料。
+
+搜索适配会将匹配表单的查询字段改为 `q` 并指向静态搜索页。表单适配
+仅适用于普通 HTML POST 表单,外部服务需接受对应字段;第三方脚本绑定
+的 AJAX 表单可能需要另行适配。未匹配表单会在导出清单中记录警告。
+
+## 输出优化
+
+`minify` 启用保守的 HTML/CSS/JavaScript 压缩,不改变量名、不合并 HTML
+文本空白。`optimizeImages` 使用可选依赖 sharp,保持图片格式、尺寸及 URL,
+仅在结果更小时替换。PNG 使用无损压缩;JPEG/WebP 使用质量 85 的有损压缩。
+动画、带方向信息或 ICC 配置的图片保持原样。缺少 sharp 时开启图片优化
+会明确报错,关闭此功能仍可正常导出。
+
+## Cloudflare Pages 发布
+
+后台配置 `cloudflareProject` 和 `cloudflareBranch`。工作进程 PATH 中需
+预先安装 Wrangler,环境提供 `CLOUDFLARE_API_TOKEN` 与 `CLOUDFLARE_ACCOUNT_ID`。
+分支匹配 Pages 项目的生产分支时发布生产版本,否则发布预览版本。
+插件在隔离工作目录中运行官方 `wrangler pages deploy`,不会自动安装 CLI。
+返回 `command-completed` 表示 Wrangler 成功退出,仍应查看 Pages 部署详情
+核对自定义域名的上线情况。当前测试使用模拟执行器,未操作真实账号。
+
+恢复任务会读取任务专属抓取检查点,复用成功下载的原始响应,并重新解析
+链接来重建未完成队列。检查点代表该次导出看到的版本;若源站已发生较大
+变化,应创建新任务而非恢复旧任务,以获取最新内容。
+
+## S3 兼容存储
+
+配置 `s3Destination`(例如 `s3://example/site/`),可选 `s3Endpoint` 指向
+HTTPS 兼容服务。工作进程 PATH 需安装 AWS CLI,使用它的标准环境或配置
+文件提供凭据。目标前缀应专用于静态网站;同步会删除该前缀中源目录不存在
+的文件。当前为逐对象同步,非原子切换,中断可能留下混合版本,需重试修复。
+需要原子发布时请使用本地版本切换、Git 或支持版本化部署的托管目标。
+
+## Bunny Storage 发布
+
+配置 `bunnyZone`、不含首尾斜杠的专用目录 `bunnyPrefix`,以及可选的
+区域存储主机 `bunnyHostname`。工作进程通过 `BUNNY_STORAGE_PASSWORD`
+读取存储密码,不能使用普通账户 API Key 替代存储密码。
+全部上传成功后才枚举并删除专用目录中的旧文件。上传使用 SHA-256 校验,
+不跟随 HTTP 重定向。同步不是原子操作;需另行清除 CDN 缓存并核对线上结果,
+当前完成状态只代表存储同步,不能代表所有边缘节点已更新。
+
+## SFTP 发布
+
+配置 `sftpHost`、`sftpUsername`、`sftpDestination`,可选 `sftpPort`(默认 22)。
+`sftpFingerprint` 必须为通过可信渠道确认的服务器主机公钥 SHA-256
+十六进制摘要(64 个字符)。未匹配的主机密钥会拒绝连接。
+
+工作进程环境通过 `STATIC_SFTP_KEY_FILE` 指定私钥文件,可选
+`STATIC_SFTP_KEY_PASSPHRASE`,或使用 `STATIC_SFTP_PASSWORD`。凭据不保存在
+后台设置中。目标路径必须为专用目录,父目录需已存在且允许写入。
+
+上传先写入同级暂存目录,完成后将旧目录改名为备份,再将新目录改名到
+目标路径。第二次改名失败时尝试恢复旧目录。两次改名之间有短暂不可用
+窗口,所以不能称为原子发布;旧备份和失败暂存目录暂时保留,便于恢复。
+目前测试使用模拟客户端,尚未在真实 SFTP 服务完成验收。
+
+## 单页、增量与完整快照
+
+后台「更新单页」填写一个已完成任务 ID 和页面地址,或执行:
+
+```sh
+npx --no-install firekylin-static update-page --id BASELINE_ID --url /post/example.html --store .firekylin/simply-static/jobs
+```
+
+任务沿用基线配置,更新目标、首页、直接引用目标的页面、Feed/Sitemap 和
+资源文件;复用其余 HTML 下载检查点,然后重新生成完整快照、搜索索引和 ZIP。
+目标明确返回 404/410 时移除该页。主题、菜单、全局挂件、权限或列表布局变化
+应执行全站导出,不应使用单页模式。发布仍传输完整快照,单页模式优化抓取阶段。
+
+`incremental` 使用 HTTP ETag 条件请求减少下载;源站未提供 ETag 时正常下载。
+每次全站导出重新发现链接,因此不会沿用上次已删除的页面。CLI 默认只以首页
+为入口,`additionalUrls` 可加入 Sitemap、RSS、robots.txt、多语言首页和插件路由。
+隐藏在脚本运行结果中、未被 HTML/Sitemap 引用的地址也应明确添加。
+
+可选 `errorPageUrl` 指向源站的一个不存在页面,允许其返回 404 并导出为
+`404.html`(不加入搜索索引);静态托管平台需要配置使用这个错误页。
+robots.txt 的 Sitemap 地址随目标地址改写,其他爬虫规则保持原样。
+
+## 执行与资源边界
+
+同一个任务目录只允许一个工作进程执行导出/发布,避免旧快照覆盖新版本。
+中断抓取可恢复;中断发布必须先检查远端是否已生效。不同任务目录不共享锁,
+不要让它们同时发布到同一目标。取消发布可能发生在远端已接受请求之后,应核对
+远端状态;取消不等于回滚。
+
+默认限制为 10,000 个资源、单资源 32 MiB、总下载 512 MiB,每次下载 60 秒,
+暂时性错误最多重试两次。可通过 CLI 配置 `maxPages`、`maxResourceBytes`、
+`maxTotalBytes`、`timeout`。导出器在内存中解析并压缩 ZIP,内存应明显大于
+总下载限制;大型站点应降低单次范围或提高工作进程内存。额外文件有独立大小限制。
+
+队列、检查点、日志和本地历史发布不会自动清理,请按保留策略清理已结束任务。
+若进程恰在入队时崩溃留下 `.enqueue-lock`,停止所有使用该目录的 Web/worker
+进程后再删除该锁;不要在进程仍运行时强行解锁。
+
+## 运行测试
+
+仓库根目录执行 `pnpm test`。可选真实 Firekylin 集成测试:
+
+```sh
+FIREKYLIN_CORE_PATH=/absolute/path/to/waterkylin STATIC_LIVE_TEST=1 pnpm --filter firekylin-plugin-simply-static test
+```
+
+集成测试创建临时 SQLite 网站与独立服务,不使用线上管理员 Cookie 或线上数据。
diff --git a/packages/simply-static/assets/comments.js b/packages/simply-static/assets/comments.js
new file mode 100644
index 0000000..950c98f
--- /dev/null
+++ b/packages/simply-static/assets/comments.js
@@ -0,0 +1,18 @@
+'use strict';
+
+for (const container of document.querySelectorAll('.fk-comment-container[data-comment-config]')) {
+ const config = JSON.parse(container.dataset.commentConfig);
+ const resources = config.resources;
+ delete config.resources;
+ config.el = container;
+ const style = document.createElement('link');
+ style.rel = 'stylesheet';
+ style.href = resources.style;
+ document.head.appendChild(style);
+ import(resources.script).then(client => {
+ container.textContent = '';
+ client.init(config);
+ }).catch(() => {
+ container.textContent = config.loadError || '评论加载失败';
+ });
+}
diff --git a/packages/simply-static/assets/search.css b/packages/simply-static/assets/search.css
new file mode 100644
index 0000000..192d6c4
--- /dev/null
+++ b/packages/simply-static/assets/search.css
@@ -0,0 +1,30 @@
+:root {
+ color-scheme: light dark;
+ font-family: system-ui, sans-serif;
+ line-height: 1.6;
+}
+main {
+ max-width: 48rem;
+ margin: 3rem auto;
+ padding: 0 1rem;
+}
+form {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.75rem;
+ align-items: center;
+}
+input {
+ flex: 1;
+ min-width: 10rem;
+ padding: 0.6rem;
+}
+button {
+ padding: 0.6rem 1rem;
+}
+li {
+ margin-bottom: 1.5rem;
+}
+p {
+ overflow-wrap: anywhere;
+}
diff --git a/packages/simply-static/assets/search.html b/packages/simply-static/assets/search.html
new file mode 100644
index 0000000..1d1d906
--- /dev/null
+++ b/packages/simply-static/assets/search.html
@@ -0,0 +1,22 @@
+
+
+
+
+
+ 正在加载搜索索引…站内搜索
+
+
+

${row.secret}
`, 0, + row.future ? '2099-01-01 00:00:00' : '2020-01-01 00:00:00', '2020-01-01 00:00:00', + row.private ? 0 : constants.POST_PUBLIC, 0, + row.protected ? JSON.stringify({postPasswordHash: 'fixture-protected-hash'}) : '{}'); + } + } finally { + db.close(); + } +} + +module.exports.seedVisibility = seedVisibility; diff --git a/packages/simply-static/test/integrations.test.js b/packages/simply-static/test/integrations.test.js new file mode 100644 index 0000000..e4aec97 --- /dev/null +++ b/packages/simply-static/test/integrations.test.js @@ -0,0 +1,46 @@ +'use strict'; + +const test = require('node:test'); +const assert = require('node:assert/strict'); +const cheerio = require('cheerio'); +const {integrateHtml} = require('../lib/integrations'); + +test('maps external forms, removes old CSRF input and converts search query names', () => { + const result = integrateHtml('' + + '', { + pageUrl: 'https://source.example/', searchUrl: '../static-search.html', + forms: [{selector: '#contact', endpoint: 'https://forms.example/submit'}], searchSelectors: ['#search'] + }); + const $ = cheerio.load(result.html); + assert.equal($('#contact').attr('action'), 'https://forms.example/submit'); + assert.equal($('#contact').attr('method'), 'post'); + assert.equal($('#contact').attr('onsubmit'), undefined); + assert.equal($('input[name="csrfToken"]').length, 0); + assert.equal($('#search').attr('action'), '../static-search.html'); + assert.equal($('#search input').attr('name'), 'q'); + assert.equal(result.warnings.length, 1); + assert.equal(result.warnings[0].action, '/dynamic'); +}); + +test('rejects insecure form endpoints and invalid selector targets', () => { + assert.throws(() => integrateHtml('', { + forms: [{selector: 'form', endpoint: 'http://forms.example/'}] + }), /HTTPS/); + assert.throws(() => integrateHtml('', { + forms: [{selector: 'div', endpoint: 'https://forms.example/'}] + }), /identify forms/); +}); + +test('external comments keep original page identity across static subdirectory moves', () => { + const result = integrateHtml('', { + pageUrl: 'https://source.example/post.html', commentServerUrl: 'https://comments.example/', + commentScriptUrl: '../static-comments.js' + }); + const $ = cheerio.load(result.html); + const config = JSON.parse($('.fk-comment-container').attr('data-comment-config')); + assert.equal(config.serverURL, 'https://comments.example'); + assert.equal(config.path, '/post.html'); + assert.equal($('script').attr('src'), '../static-comments.js'); + assert.ok(!result.html.includes('oldInitializer')); +}); diff --git a/packages/simply-static/test/invalidation.test.js b/packages/simply-static/test/invalidation.test.js new file mode 100644 index 0000000..8170391 --- /dev/null +++ b/packages/simply-static/test/invalidation.test.js @@ -0,0 +1,31 @@ +'use strict'; + +const test = require('node:test'); +const assert = require('node:assert/strict'); +const fs = require('node:fs/promises'); +const path = require('node:path'); +const os = require('node:os'); +const {ResourceCache} = require('../lib/resource-cache'); +const {preparePageUpdate} = require('../lib/invalidation'); + +test('invalidates changed page, referrers and feeds while reusing unrelated content', async() => { + const root = await fs.mkdtemp(path.join(os.tmpdir(), 'static-invalidation-')); + try { + const previousCheckpoint = path.join(root, 'previous'); + const checkpointDirectory = path.join(root, 'next'); + const cache = new ResourceCache(previousCheckpoint); + for (const [pathname, html] of [['/', 'Post'], + ['/category', 'Post'], ['/post', 'old
'], ['/unrelated', 'unrelated
']]) { + const url = 'https://example.com' + pathname; + await cache.write({requestedUrl: url, url, body: Buffer.from(html), contentType: 'text/html', status: 200}); + } + const result = await preparePageUpdate({previousCheckpoint, checkpointDirectory, + config: {sourceUrl: 'https://example.com/', destinationUrl: 'https://static.example/'}, urls: ['/post']}); + assert.equal(result.reused, 1); + assert.ok(result.invalidated.includes('https://example.com/category')); + assert.equal(await new ResourceCache(checkpointDirectory).read('https://example.com/post'), null); + assert.ok(await new ResourceCache(checkpointDirectory).read('https://example.com/unrelated')); + } finally { + await fs.rm(root, {recursive: true, force: true}); + } +}); diff --git a/packages/simply-static/test/jobs.test.js b/packages/simply-static/test/jobs.test.js new file mode 100644 index 0000000..1e16ca7 --- /dev/null +++ b/packages/simply-static/test/jobs.test.js @@ -0,0 +1,130 @@ +'use strict'; + +const test = require('node:test'); +const assert = require('node:assert/strict'); +const fs = require('node:fs/promises'); +const path = require('node:path'); +const os = require('node:os'); +const {JobStore} = require('../lib/jobs'); + +async function fixture(fn) { + const root = await fs.mkdtemp(path.join(os.tmpdir(), 'export-jobs-')); + try { + await fn(new JobStore(root)); + } finally { + await fs.rm(root, {recursive: true, force: true}); + } +} + +test('persists queue, progress and completion across store instances', () => fixture(async store => { + const job = await store.create({sourceUrl: 'https://example.com'}, ['/page']); + const second = new JobStore(store.root); + assert.equal((await second.list())[0].id, job.id); + const finished = await second.run(job.id, async(value, context) => { + assert.deepEqual(value.seeds, ['/page']); + await context.onProgress({completed: 2}); + return {pages: 2}; + }); + assert.equal(finished.status, 'completed'); + assert.deepEqual((await store.read(job.id)).progress, {completed: 2}); + assert.equal(await store.run(job.id, () => assert.fail('must not run twice')), null); +})); + +test('only one worker claims a job', () => fixture(async store => { + const job = await store.create({}); + let release; + let started; + const ready = new Promise(resolve => { started = resolve; }); + const first = store.run(job.id, async() => { + started(); + await new Promise(resolve => { release = resolve; }); + }); + await ready; + assert.equal(await store.run(job.id, () => assert.fail('duplicate worker')), null); + release(); + await first; +})); + +test('records failures and honors queued cancellation', () => fixture(async store => { + const failed = await store.create({}); + await store.run(failed.id, async() => { throw new Error('Download unavailable'); }); + assert.equal((await store.read(failed.id)).status, 'failed'); + const cancelled = await store.create({}); + await store.cancel(cancelled.id); + await store.run(cancelled.id, () => assert.fail('cancelled job executed')); + assert.equal((await store.read(cancelled.id)).status, 'cancelled'); + assert.throws(() => store.location('../secret'), /Invalid/); +})); + +test('deduplicates queued exports across stores and retains one follow-up while running', () => fixture(async store => { + const second = new JobStore(store.root); + const config = {sourceUrl: 'https://example.com'}; + const jobs = await Promise.all([store.enqueue(config), second.enqueue(config), store.enqueue(config)]); + assert.equal(new Set(jobs.map(job => job.id)).size, 1); + let release; + let started; + const ready = new Promise(resolve => { started = resolve; }); + const running = store.run(jobs[0].id, async() => { + started(); + await new Promise(resolve => { release = resolve; }); + }); + await ready; + try { + const next = await second.enqueue(config); + assert.notEqual(next.id, jobs[0].id); + assert.equal((await store.enqueue(config)).id, next.id); + await store.cancel(next.id); + assert.notEqual((await second.enqueue(config)).id, next.id); + } finally { + release(); + await running; + } +})); + +test('recovers only stopped local workers and refuses ambiguous publication retries', () => fixture(async store => { + const {atomicJson} = require('../lib/jobs'); + const job = await store.create({}); + const directory = store.location(job.id); + await atomicJson(path.join(directory, 'job.json'), {...job, status: 'running'}); + await fs.writeFile(path.join(directory, 'lock'), JSON.stringify({pid: 123, hostname: 'worker'})); + await assert.rejects(store.recover(job.id, {hostname: 'other', isAlive: () => false}), /original worker/); + await assert.rejects(store.recover(job.id, {hostname: 'worker', isAlive: () => true}), /still active/); + const recovered = await store.recover(job.id, {hostname: 'worker', isAlive: () => false}); + assert.equal(recovered.status, 'queued'); + assert.equal(recovered.recoveries, 1); + await store.run(job.id, async() => ({ok: true})); + assert.equal((await store.read(job.id)).status, 'completed'); + await atomicJson(path.join(directory, 'job.json'), {...job, status: 'running', phase: 'deploying'}); + await assert.rejects(store.recover(job.id), /publication/); +})); + +test('persists structured request logs alongside task state', () => fixture(async store => { + const job = await store.create({}); + await store.run(job.id, async(value, context) => { + await context.onLog({stage: 'fetch', url: 'https://example.com/', status: 200}); + await context.onLog({stage: 'fetch', url: 'https://example.com/missing', status: 404}); + throw new Error('HTTP 404'); + }); + const records = (await fs.readFile(path.join(store.location(job.id), 'requests.jsonl'), 'utf8')) + .trim().split('\n').map(line => JSON.parse(line)); + assert.deepEqual(records.map(record => record.status), [200, 404]); + assert.ok(records.every(record => record.timestamp)); + assert.equal((await store.read(job.id)).status, 'failed'); +})); + +test('serializes distinct jobs so older snapshots cannot overwrite newer publications', () => fixture(async store => { + const first = await store.create({}); + const second = await store.create({}); + let release; + let started; + const ready = new Promise(resolve => { started = resolve; }); + const running = store.run(first.id, async() => { + started(); + await new Promise(resolve => { release = resolve; }); + }); + await ready; + assert.equal(await store.run(second.id, () => assert.fail('concurrent publication')), null); + release(); + await running; + assert.equal((await store.run(second.id, async() => ({}))).status, 'completed'); +})); diff --git a/packages/simply-static/test/live-site.test.js b/packages/simply-static/test/live-site.test.js new file mode 100644 index 0000000..c26881c --- /dev/null +++ b/packages/simply-static/test/live-site.test.js @@ -0,0 +1,81 @@ +'use strict'; + +const test = require('node:test'); +const assert = require('node:assert/strict'); +const fs = require('node:fs/promises'); +const os = require('node:os'); +const path = require('node:path'); +const {spawn} = require('node:child_process'); +const {setTimeout: delay} = require('node:timers/promises'); +const net = require('node:net'); +const {createSite, seedVisibility} = require('./fixtures/create-site'); +const {exportSite} = require('../lib/exporter'); +const core = process.env.FIREKYLIN_CORE_PATH; + +test('exports a real SQLite-backed Firekylin site with its default theme', { + skip: !core || !process.env.STATIC_LIVE_TEST, timeout: 60000 +}, async() => { + const root = await fs.mkdtemp(path.join(os.tmpdir(), 'static-live-test-')); + const probe = net.createServer(); + await new Promise(resolve => probe.listen(0, '127.0.0.1', resolve)); + const port = probe.address().port; + await new Promise(resolve => probe.close(resolve)); + let child; + try { + const site = path.join(root, 'site'); + await createSite(core, site, port); + await seedVisibility(core, site); + const runner = path.join(root, 'server.cjs'); + await fs.writeFile(runner, "'use strict';\n" + + `process.chdir(${JSON.stringify(site)});\n` + + `process.env.FIREKYLIN_PROJECT_PATH = ${JSON.stringify(site)};\n` + + `require(${JSON.stringify(path.join(core, 'lib/start'))})().catch(error => {\n` + + ' console.error(error.message);\n process.exit(1);\n});\n'); + child = spawn(process.execPath, [runner], {detached: true, stdio: ['ignore', 'pipe', 'pipe']}); + let serverLog = ''; + child.stdout.on('data', chunk => { serverLog += chunk; }); + child.stderr.on('data', chunk => { serverLog += chunk; }); + const sourceUrl = `http://127.0.0.1:${port}/`; + let ready = false; + for (let attempt = 0; attempt < 300; attempt++) { + if (child.exitCode !== null) throw new Error('Fixture server exited before readiness'); + try { + const response = await fetch(sourceUrl, {signal: AbortSignal.timeout(1000)}); + await response.body?.cancel(); + if (response.ok) { + ready = true; + break; + } + } catch {} + await delay(100); + } + assert.ok(ready, 'Fixture server should become ready: ' + serverLog.slice(-5000)); + const directory = path.join(root, 'export'); + const manifest = await exportSite({sourceUrl, destinationUrl: 'https://static.example/'}, { + directory, seeds: ['/sitemap.xml', '/rss.xml'] + }); + assert.ok(manifest.resources.some(item => item.file === 'post/hello-world-via-firekylin.html')); + assert.ok(manifest.resources.some(item => item.file.endsWith('/res/css/article.css'))); + assert.match(await fs.readFile(path.join(directory, 'index.html'), 'utf8'), /https:\/\/static.example\//); + assert.ok((await fs.stat(directory + '.zip')).size > 0); + const textFiles = manifest.resources.filter(item => /\.(html|xml|json)$/.test(item.file)); + const allText = (await Promise.all(textFiles.map(item => + fs.readFile(path.join(directory, item.file), 'utf8')))).join('\n') + + await fs.readFile(path.join(directory, 'static-search.json'), 'utf8'); + assert.match(allText, /PUBLIC_FIXTURE_TEXT/); + for (const marker of ['PRIVATE_SECRET_MARKER', 'DRAFT_SECRET_MARKER', 'FUTURE_SECRET_MARKER', 'PASSWORD_SECRET_MARKER']) { + assert.ok(!allText.includes(marker), `Export must not contain ${marker}`); + } + + } finally { + if (child?.pid) { + try { + process.kill(-child.pid, 'SIGTERM'); + } catch (error) { + if (error.code !== 'ESRCH') throw error; + } + await delay(300); + } + await fs.rm(root, {recursive: true, force: true}); + } +}); diff --git a/packages/simply-static/test/optimize-image.test.js b/packages/simply-static/test/optimize-image.test.js new file mode 100644 index 0000000..519e488 --- /dev/null +++ b/packages/simply-static/test/optimize-image.test.js @@ -0,0 +1,25 @@ +'use strict'; + +const test = require('node:test'); +const assert = require('node:assert/strict'); +const {optimizeImage} = require('../lib/optimize-image'); +let sharp; +try { + sharp = require('sharp'); +} catch { + sharp = null; +} + +test('image optimization keeps format, dimensions and PNG pixels while reducing size', {skip: !sharp}, async() => { + const source = await sharp({create: {width: 64, height: 64, channels: 4, background: '#f04c7a'}}) + .png({compressionLevel: 0}).toBuffer(); + const output = await optimizeImage(source, 'image/png', true); + assert.ok(output.length < source.length); + const metadata = await sharp(output).metadata(); + assert.equal(metadata.width, 64); + assert.equal(metadata.height, 64); + assert.equal(metadata.format, 'png'); + assert.deepEqual(await sharp(output).raw().toBuffer(), await sharp(source).raw().toBuffer()); + assert.equal(await optimizeImage(source, 'image/png', false), source); + assert.equal(await optimizeImage(source, 'image/gif', true), source); +}); diff --git a/packages/simply-static/test/optimize.test.js b/packages/simply-static/test/optimize.test.js new file mode 100644 index 0000000..210433f --- /dev/null +++ b/packages/simply-static/test/optimize.test.js @@ -0,0 +1,27 @@ +'use strict'; + +const test = require('node:test'); +const assert = require('node:assert/strict'); +const vm = require('node:vm'); +const {optimize} = require('../lib/optimize'); + +test('optional optimization preserves HTML whitespace and script behavior', async() => { + const html = Buffer.from('a\n b'); + assert.equal(await optimize(html, 'text/html'), html); + const optimized = await optimize(html, 'text/html', true); + assert.match(optimized.toString(), /
a\n b<\/pre>/);
+ assert.ok(!optimized.toString().includes('internal note'));
+ const script = Buffer.from('function add(a, b) {\n return a + b;\n}\nglobalThis.answer = add(2, 3);');
+ const result = await optimize(script, 'application/javascript', true);
+ const context = {};
+ vm.runInNewContext(result.toString(), context);
+ assert.equal(context.answer, 5);
+ assert.ok(result.length < script.length);
+});
+
+test('CSS optimization retains relative resource paths and binary assets remain unchanged', async() => {
+ const result = await optimize(Buffer.from('body {\n background: url(../image.png);\n color: red;\n}'), 'text/css', true);
+ assert.match(result.toString(), /\.\.\/image.png/);
+ const png = Buffer.from([0, 255, 3]);
+ assert.equal(await optimize(png, 'image/png', true), png);
+});
diff --git a/packages/simply-static/test/plugin.test.js b/packages/simply-static/test/plugin.test.js
new file mode 100644
index 0000000..bc5915e
--- /dev/null
+++ b/packages/simply-static/test/plugin.test.js
@@ -0,0 +1,51 @@
+'use strict';
+
+const test = require('node:test');
+const assert = require('node:assert/strict');
+const fs = require('node:fs/promises');
+const path = require('node:path');
+const os = require('node:os');
+
+const core = process.env.FIREKYLIN_CORE_PATH;
+
+test('registers with real Firekylin admin API and queues configured exports', {skip: !core}, async() => {
+ const AdminRegistry = require(path.join(core, 'src/plugin/admin'));
+ const registry = new AdminRegistry();
+ const root = await fs.mkdtemp(path.join(os.tmpdir(), 'static-plugin-'));
+ const previous = process.env.FIREKYLIN_PROJECT_PATH;
+ process.env.FIREKYLIN_PROJECT_PATH = root;
+ try {
+ const routes = [];
+ const admin = {};
+ for (const method of ['registerPanel', 'registerPage', 'registerForm', 'registerAction']) {
+ admin[method] = definition => registry[method](definition, 'simply-static');
+ }
+ require('../plugin').register({admin, events: {on() {}}, routes: {register: route => routes.push(route)}});
+ await registry.loadPage('simply-static', 'exports', {});
+ await registry.submitForm('simply-static', 'settings', {
+ sourceUrl: 'https://source.example/', destinationUrl: 'https://static.example/',
+ relative: true, additionalUrls: '/unlinked', exclude: '/private', assetOrigins: ''
+ }, {});
+ const queued = await registry.runAction('simply-static', 'generate', {}, {});
+ assert.ok(queued.result.id);
+ const listing = routes.find(route => route.path === '/jobs');
+ assert.equal(listing.auth, 'admin');
+ const jobs = await listing.handler();
+ assert.equal(jobs[0].status, 'queued');
+ assert.equal(jobs[0].config, undefined);
+ const cancel = routes.find(route => route.path === '/cancel/:id');
+ assert.equal(cancel.auth, 'admin');
+ assert.equal(cancel.csrf, true);
+ const download = routes.find(route => route.path === '/download/:id');
+ assert.equal(download.auth, 'admin');
+ let status;
+ await download.handler({params: {id: queued.result.id}, ctx: {throw(code) { status = code; }}});
+ assert.equal(status, 409);
+ await registry.loadPage('simply-static', 'exports', {});
+ } finally {
+ require('../plugin').deactivate();
+ if (previous === undefined) delete process.env.FIREKYLIN_PROJECT_PATH;
+ else process.env.FIREKYLIN_PROJECT_PATH = previous;
+ await fs.rm(root, {recursive: true, force: true});
+ }
+});
diff --git a/packages/simply-static/test/publish-bunny.test.js b/packages/simply-static/test/publish-bunny.test.js
new file mode 100644
index 0000000..e08df99
--- /dev/null
+++ b/packages/simply-static/test/publish-bunny.test.js
@@ -0,0 +1,45 @@
+'use strict';
+
+const test = require('node:test');
+const assert = require('node:assert/strict');
+const fs = require('node:fs/promises');
+const path = require('node:path');
+const os = require('node:os');
+const {publishBunny} = require('../lib/publish-bunny');
+
+test('uploads with checksums then removes only stale files under the configured prefix', async() => {
+ const root = await fs.mkdtemp(path.join(os.tmpdir(), 'static-bunny-'));
+ try {
+ await fs.writeFile(path.join(root, 'index.html'), 'site');
+ const calls = [];
+ const options = {zone: 'example', prefix: 'site', token: 'fixture', fetcher: async(url, init) => {
+ calls.push({url, init});
+ assert.equal(init.redirect, 'error');
+ assert.equal(init.headers.AccessKey, 'fixture');
+ if (init.method === 'PUT') {
+ assert.match(init.headers.Checksum, /^[A-F0-9]{64}$/);
+ return new Response('', {status: 201});
+ }
+ if (init.method === 'GET') return Response.json([
+ {ObjectName: 'index.html', IsDirectory: false}, {ObjectName: 'old.html', IsDirectory: false}
+ ]);
+ return new Response('', {status: 200});
+ }};
+ const result = await publishBunny(root, options);
+ assert.equal(result.files, 1);
+ assert.deepEqual(calls.map(call => call.init.method), ['PUT', 'GET', 'DELETE']);
+ assert.equal(calls[2].url, 'https://storage.bunnycdn.com/example/site/old.html');
+ let failedCalls = 0;
+ await assert.rejects(publishBunny(root, {...options, fetcher: async() => {
+ failedCalls++;
+ return new Response('', {status: 500});
+ }}), /HTTP 500/);
+ assert.equal(failedCalls, 1);
+ await assert.rejects(publishBunny(root, {...options, prefix: '../other'}), /prefix/);
+ await assert.rejects(publishBunny(root, {...options, fetcher: async(url, init) =>
+ init.method === 'GET' ? Response.json([{ObjectName: '../other', IsDirectory: false}]) :
+ new Response('', {status: 201})}), /remote filename/);
+ } finally {
+ await fs.rm(root, {recursive: true, force: true});
+ }
+});
diff --git a/packages/simply-static/test/publish-cloudflare.test.js b/packages/simply-static/test/publish-cloudflare.test.js
new file mode 100644
index 0000000..3451d5c
--- /dev/null
+++ b/packages/simply-static/test/publish-cloudflare.test.js
@@ -0,0 +1,34 @@
+'use strict';
+
+const test = require('node:test');
+const assert = require('node:assert/strict');
+const fs = require('node:fs/promises');
+const os = require('node:os');
+const path = require('node:path');
+const {publishCloudflare} = require('../lib/publish-cloudflare');
+
+test('invokes Wrangler with isolated working directory and explicit branch', async() => {
+ const root = await fs.mkdtemp(path.join(os.tmpdir(), 'static-cf-test-'));
+ try {
+ await fs.writeFile(path.join(root, 'index.html'), 'site');
+ let calls = 0;
+ const options = {project: 'example', branch: 'main',
+ environment: {CLOUDFLARE_API_TOKEN: 'fixture', CLOUDFLARE_ACCOUNT_ID: 'account'},
+ runner: async(command, args, settings) => {
+ calls++;
+ assert.equal(command, 'wrangler');
+ assert.ok(args.includes('--branch'));
+ assert.ok(args.includes('main'));
+ assert.notEqual(settings.cwd, root);
+ assert.equal(settings.env.CI, 'true');
+ assert.ok(!args.includes('fixture'));
+ }
+ };
+ assert.equal((await publishCloudflare(root, options)).state, 'command-completed');
+ await fs.writeFile(path.join(root, '_worker.js'), 'unsafe');
+ await assert.rejects(publishCloudflare(root, options));
+ assert.equal(calls, 1);
+ } finally {
+ await fs.rm(root, {recursive: true, force: true});
+ }
+});
diff --git a/packages/simply-static/test/publish-git.test.js b/packages/simply-static/test/publish-git.test.js
new file mode 100644
index 0000000..0cb9bf8
--- /dev/null
+++ b/packages/simply-static/test/publish-git.test.js
@@ -0,0 +1,35 @@
+'use strict';
+
+const test = require('node:test');
+const assert = require('node:assert/strict');
+const fs = require('node:fs/promises');
+const os = require('node:os');
+const path = require('node:path');
+const {execFile} = require('node:child_process');
+const {promisify} = require('node:util');
+const execute = promisify(execFile);
+const {publishGit} = require('../lib/publish-git');
+
+test('publishes snapshots to a real Git remote, removes stale files and skips unchanged commits', async() => {
+ const root = await fs.mkdtemp(path.join(os.tmpdir(), 'static-git-test-'));
+ try {
+ const repository = path.join(root, 'remote.git');
+ const source = path.join(root, 'output');
+ await execute('git', ['init', '--bare', repository]);
+ await fs.mkdir(source);
+ await fs.writeFile(path.join(source, 'index.html'), 'first');
+ await fs.writeFile(path.join(source, 'old.html'), 'obsolete');
+ assert.equal((await publishGit(source, {repository})).changed, true);
+ assert.equal((await publishGit(source, {repository})).changed, false);
+ await fs.unlink(path.join(source, 'old.html'));
+ await fs.writeFile(path.join(source, 'index.html'), 'second');
+ await publishGit(source, {repository});
+ const content = await execute('git', ['--git-dir', repository, 'show', 'gh-pages:index.html']);
+ assert.equal(content.stdout, 'second');
+ const tree = await execute('git', ['--git-dir', repository, 'ls-tree', '--name-only', 'gh-pages']);
+ assert.ok(!tree.stdout.includes('old.html'));
+ await assert.rejects(publishGit(source, {repository, branch: '-invalid'}));
+ } finally {
+ await fs.rm(root, {recursive: true, force: true});
+ }
+});
diff --git a/packages/simply-static/test/publish-local.test.js b/packages/simply-static/test/publish-local.test.js
new file mode 100644
index 0000000..05543bc
--- /dev/null
+++ b/packages/simply-static/test/publish-local.test.js
@@ -0,0 +1,34 @@
+'use strict';
+
+const test = require('node:test');
+const assert = require('node:assert/strict');
+const fs = require('node:fs/promises');
+const path = require('node:path');
+const os = require('node:os');
+const {publishLocal} = require('../lib/publish-local');
+
+test('publishes complete releases and keeps old content on copy failure', async() => {
+ const root = await fs.mkdtemp(path.join(os.tmpdir(), 'static-publish-'));
+ try {
+ const source = path.join(root, 'build');
+ const target = path.join(root, 'public');
+ await fs.mkdir(source);
+ await fs.writeFile(path.join(source, 'index.html'), 'old');
+ const first = await publishLocal(source, target);
+ assert.equal(await fs.readFile(path.join(target, 'index.html'), 'utf8'), 'old');
+ await fs.writeFile(path.join(source, 'index.html'), 'new');
+ await assert.rejects(publishLocal(source, target, {
+ copy: async() => { throw new Error('Disk full'); }
+ }), /Disk full/);
+ assert.equal(await fs.readFile(path.join(target, 'index.html'), 'utf8'), 'old');
+ const second = await publishLocal(source, target);
+ assert.equal(second.previous, first.release);
+ assert.equal(await fs.readFile(path.join(target, 'index.html'), 'utf8'), 'new');
+ assert.equal(await fs.readFile(path.join(first.release, 'index.html'), 'utf8'), 'old');
+ await assert.rejects(publishLocal(source, source), /inside/);
+ await fs.symlink('/etc/passwd', path.join(source, 'unsafe'));
+ await assert.rejects(publishLocal(source, target), /regular files/);
+ } finally {
+ await fs.rm(root, {recursive: true, force: true});
+ }
+});
diff --git a/packages/simply-static/test/publish-netlify.test.js b/packages/simply-static/test/publish-netlify.test.js
new file mode 100644
index 0000000..ea84e3f
--- /dev/null
+++ b/packages/simply-static/test/publish-netlify.test.js
@@ -0,0 +1,36 @@
+'use strict';
+
+const test = require('node:test');
+const assert = require('node:assert/strict');
+const fs = require('node:fs/promises');
+const os = require('node:os');
+const path = require('node:path');
+const {publishNetlify} = require('../lib/publish-netlify');
+
+test('uploads ZIP once and waits for confirmed ready state', async() => {
+ const root = await fs.mkdtemp(path.join(os.tmpdir(), 'netlify-export-'));
+ try {
+ const archive = path.join(root, 'site.zip');
+ await fs.writeFile(archive, 'zip fixture');
+ const calls = [];
+ const result = await publishNetlify(archive, {
+ siteId: 'site', token: 'fixture-token', pollInterval: 0,
+ fetcher: async(url, options) => {
+ calls.push({url, options});
+ return Response.json(calls.length === 1 ? {id: 'deploy', state: 'processing'} :
+ {id: 'deploy', state: 'ready', ssl_url: 'https://site.example'});
+ }
+ });
+ assert.equal(result.state, 'ready');
+ assert.equal(calls.length, 2);
+ assert.equal(calls[0].options.method, 'POST');
+ assert.equal(calls[0].options.body.toString(), 'zip fixture');
+ assert.equal(calls[1].url, 'https://api.netlify.com/api/v1/deploys/deploy');
+ await assert.rejects(publishNetlify(archive, {
+ siteId: 'site', token: 'fixture-token',
+ fetcher: async() => new Response('secret details', {status: 401})
+ }), /HTTP 401/);
+ } finally {
+ await fs.rm(root, {recursive: true, force: true});
+ }
+});
diff --git a/packages/simply-static/test/publish-s3.test.js b/packages/simply-static/test/publish-s3.test.js
new file mode 100644
index 0000000..a53f2f7
--- /dev/null
+++ b/packages/simply-static/test/publish-s3.test.js
@@ -0,0 +1,31 @@
+'use strict';
+
+const test = require('node:test');
+const assert = require('node:assert/strict');
+const fs = require('node:fs/promises');
+const os = require('node:os');
+const path = require('node:path');
+const {publishS3} = require('../lib/publish-s3');
+
+test('syncs only a dedicated prefix and supports HTTPS compatible endpoints', async() => {
+ const root = await fs.mkdtemp(path.join(os.tmpdir(), 'static-s3-'));
+ try {
+ await fs.writeFile(path.join(root, 'index.html'), 'site');
+ const result = await publishS3(root, {
+ destination: 's3://example/site/', endpoint: 'https://s3.example.com',
+ runner: async(command, args) => {
+ assert.equal(command, 'aws');
+ assert.ok(args.includes('--delete'));
+ assert.ok(args.includes('--no-follow-symlinks'));
+ assert.ok(args.includes('s3://example/site/'));
+ assert.ok(args.includes('https://s3.example.com/'));
+ }
+ });
+ assert.equal(result.atomic, false);
+ for (const destination of ['s3://example/', 's3://example//', 's3://example/site//', 's3://example/site/../other', 's3://example/site?secret']) {
+ await assert.rejects(publishS3(root, {destination}), /dedicated/);
+ }
+ } finally {
+ await fs.rm(root, {recursive: true, force: true});
+ }
+});
diff --git a/packages/simply-static/test/publish-sftp.test.js b/packages/simply-static/test/publish-sftp.test.js
new file mode 100644
index 0000000..50f6584
--- /dev/null
+++ b/packages/simply-static/test/publish-sftp.test.js
@@ -0,0 +1,37 @@
+'use strict';
+
+const test = require('node:test');
+const assert = require('node:assert/strict');
+const fs = require('node:fs/promises');
+const os = require('node:os');
+const path = require('node:path');
+const {publishSftp} = require('../lib/publish-sftp');
+
+test('verifies host key, stages upload and restores old directory on switch failure', async() => {
+ const root = await fs.mkdtemp(path.join(os.tmpdir(), 'static-sftp-'));
+ const calls = [];
+ try {
+ const client = {
+ connect: async config => {
+ assert.equal(config.hostVerifier('a'.repeat(64)), true);
+ assert.equal(config.hostVerifier('b'.repeat(64)), false);
+ },
+ exists: async() => 'd',
+ uploadDir: async(source, target) => calls.push(['upload', target]),
+ rename: async(from, to) => {
+ calls.push(['rename', from, to]);
+ if (from.includes('.staging-')) throw new Error('switch failed');
+ },
+ end: async() => calls.push(['end'])
+ };
+ await assert.rejects(publishSftp(root, {host: 'example.com', username: 'user',
+ destination: '/www/site', fingerprint: 'a'.repeat(64), environment: {}, client}), /switch failed/);
+ assert.equal(calls[0][0], 'upload');
+ assert.equal(calls[1][1], '/www/site');
+ assert.match(calls[3][1], /\.previous-/);
+ assert.equal(calls[3][2], '/www/site');
+ assert.equal(calls.at(-1)[0], 'end');
+ } finally {
+ await fs.rm(root, {recursive: true, force: true});
+ }
+});
diff --git a/packages/simply-static/test/resource-cache.test.js b/packages/simply-static/test/resource-cache.test.js
new file mode 100644
index 0000000..207ae97
--- /dev/null
+++ b/packages/simply-static/test/resource-cache.test.js
@@ -0,0 +1,34 @@
+'use strict';
+
+const test = require('node:test');
+const assert = require('node:assert/strict');
+const fs = require('node:fs/promises');
+const os = require('node:os');
+const path = require('node:path');
+const {exportSite} = require('../lib/exporter');
+
+test('incremental crawl revalidates and reuses responses while discovering new links', async() => {
+ const root = await fs.mkdtemp(path.join(os.tmpdir(), 'static-cache-'));
+ let round = 1;
+ const requests = [];
+ const fetcher = async(url, options) => {
+ const pathname = new URL(url).pathname;
+ requests.push({round, pathname, etag: options.headers['if-none-match']});
+ if (round === 2 && pathname === '/old') return new Response(null, {status: 304});
+ const html = pathname === '/' ? 'Old' +
+ (round === 2 ? 'New' : '') : `${pathname} `;
+ return new Response(html, {headers: {'content-type': 'text/html', etag: `"${pathname}-${round}"`}});
+ };
+ try {
+ const config = {sourceUrl: 'https://example.com/', destinationUrl: 'https://static.example/'};
+ const common = {fetcher, cacheDirectory: path.join(root, 'cache')};
+ await exportSite(config, {...common, directory: path.join(root, 'first')});
+ round = 2;
+ await exportSite(config, {...common, directory: path.join(root, 'second')});
+ assert.ok(requests.some(item => item.round === 2 && item.pathname === '/old' && item.etag === '"/old-1"'));
+ assert.match(await fs.readFile(path.join(root, 'second/old/index.html'), 'utf8'), /old/);
+ assert.match(await fs.readFile(path.join(root, 'second/new/index.html'), 'utf8'), /new/);
+ } finally {
+ await fs.rm(root, {recursive: true, force: true});
+ }
+});
diff --git a/packages/simply-static/test/resume.test.js b/packages/simply-static/test/resume.test.js
new file mode 100644
index 0000000..76f4626
--- /dev/null
+++ b/packages/simply-static/test/resume.test.js
@@ -0,0 +1,38 @@
+'use strict';
+
+const test = require('node:test');
+const assert = require('node:assert/strict');
+const fs = require('node:fs/promises');
+const path = require('node:path');
+const os = require('node:os');
+const {exportSite} = require('../lib/exporter');
+
+test('resumes persisted crawl results and discovers the remaining resources', async() => {
+ const root = await fs.mkdtemp(path.join(os.tmpdir(), 'static-resume-'));
+ const config = {sourceUrl: 'https://example.com/', destinationUrl: 'https://static.example/'};
+ const directory = path.join(root, 'output');
+ const checkpointDirectory = path.join(root, 'checkpoint');
+ try {
+ await assert.rejects(exportSite(config, {
+ directory, checkpointDirectory,
+ fetcher: async url => new URL(url).pathname === '/' ?
+ new Response('Next', {headers: {'content-type': 'text/html'}}) :
+ new Response('missing', {status: 404})
+ }), /HTTP 404/);
+ const requests = [];
+ const logs = [];
+ const manifest = await exportSite(config, {
+ directory, checkpointDirectory, onLog: async record => logs.push(record),
+ fetcher: async url => {
+ requests.push(new URL(url).pathname);
+ return new Response('Recovered ', {headers: {'content-type': 'text/html'}});
+ }
+ });
+ assert.deepEqual(requests, ['/remaining']);
+ assert.equal(manifest.resources.length, 2);
+ assert.equal(logs[0].resumed, true);
+ assert.match(await fs.readFile(path.join(directory, 'remaining/index.html'), 'utf8'), /Recovered/);
+ } finally {
+ await fs.rm(root, {recursive: true, force: true});
+ }
+});
diff --git a/packages/simply-static/test/search-ui.test.js b/packages/simply-static/test/search-ui.test.js
new file mode 100644
index 0000000..dea46aa
--- /dev/null
+++ b/packages/simply-static/test/search-ui.test.js
@@ -0,0 +1,55 @@
+'use strict';
+
+const test = require('node:test');
+const assert = require('node:assert/strict');
+const fs = require('node:fs/promises');
+const path = require('node:path');
+const {JSDOM} = require('jsdom');
+
+async function fixture(fetcher) {
+ const html = await fs.readFile(path.join(__dirname, '../assets/search.html'), 'utf8');
+ const script = await fs.readFile(path.join(__dirname, '../assets/search.js'), 'utf8');
+ const dom = new JSDOM(html, {
+ url: 'https://static.example/blog/static-search.html?q=' + encodeURIComponent('中文'),
+ runScripts: 'outside-only'
+ });
+ dom.window.fetch = fetcher;
+ await dom.window.eval(script);
+ return dom;
+}
+
+test('search UI supports Chinese, prioritizes titles and renders results as text', async() => {
+ const dom = await fixture(async url => {
+ assert.equal(String(url), 'https://static.example/blog/static-search.json');
+ return {ok: true, json: async() => [
+ {title: 'Other', text: '中文正文', url: 'other/index.html'},
+ {title: '中文
', text: '正文', url: 'post/index.html'},
+ {title: 'Unrelated', text: 'Nothing', url: 'unrelated.html'}
+ ]};
+ });
+ try {
+ const document = dom.window.document;
+ assert.match(document.querySelector('[data-search-status]').textContent, /2/);
+ const links = [...document.querySelectorAll('[data-search-results] a')];
+ assert.equal(links.length, 2);
+ assert.match(links[0].textContent, /^中文/);
+ assert.equal(links[0].href, 'https://static.example/blog/post/index.html');
+ assert.equal(document.querySelectorAll('[data-search-results] img').length, 0);
+ const input = document.querySelector('input');
+ input.value = 'missing';
+ input.dispatchEvent(new dom.window.Event('input'));
+ assert.equal(document.querySelectorAll('[data-search-results] a').length, 0);
+ assert.match(document.querySelector('[data-search-status]').textContent, /0/);
+ } finally {
+ dom.window.close();
+ }
+});
+
+test('search UI shows an actionable error when index download fails', async() => {
+ const dom = await fixture(async() => ({ok: false}));
+ try {
+ assert.match(dom.window.document.querySelector('[data-search-status]').textContent, /加载失败/);
+ } finally {
+ dom.window.close();
+ }
+});
diff --git a/packages/simply-static/test/settings.test.js b/packages/simply-static/test/settings.test.js
new file mode 100644
index 0000000..3ef22e5
--- /dev/null
+++ b/packages/simply-static/test/settings.test.js
@@ -0,0 +1,22 @@
+'use strict';
+
+const test = require('node:test');
+const assert = require('node:assert/strict');
+const {integrationSettings} = require('../lib/settings');
+
+test('normalizes admin JSON mappings and line-separated search selectors', () => {
+ const result = integrationSettings({forms: '[{"selector":"#contact","endpoint":"https://forms.example/"}]',
+ additionalFiles: '[{"source":"public","target":"downloads"}]', searchSelectors: '#search\n\nform.search'});
+ assert.equal(result.forms[0].selector, '#contact');
+ assert.equal(result.additionalFiles[0].target, 'downloads');
+ assert.deepEqual(result.searchSelectors, ['#search', 'form.search']);
+ assert.deepEqual(integrationSettings({}), {forms: [], additionalFiles: [], searchSelectors: []});
+});
+
+test('rejects malformed or insecure mappings before saving configuration', () => {
+ for (const values of [{forms: '{'}, {forms: '{}'}, {forms: '[{}]'},
+ {forms: '[{"selector":"form","endpoint":"javascript:alert(1)"}]'},
+ {additionalFiles: '[{"source":"x"}]'}]) {
+ assert.throws(() => integrationSettings(values));
+ }
+});
diff --git a/packages/simply-static/test/transform.test.js b/packages/simply-static/test/transform.test.js
new file mode 100644
index 0000000..7276f82
--- /dev/null
+++ b/packages/simply-static/test/transform.test.js
@@ -0,0 +1,50 @@
+'use strict';
+
+const test = require('node:test');
+const assert = require('node:assert/strict');
+const {transformHtml, transformCss} = require('../lib/transform');
+
+test('discovers HTML assets, responsive images, metadata and base-relative pages', () => {
+ const seen = [];
+ const result = transformHtml('Example Hello ' +
+ 'Read
' +
+ '', {
+ url: 'https://example.com/',
+ rewrite(value, asset, base) {
+ seen.push({value, asset, base});
+ return '/export/' + value;
+ }
+ });
+ assert.equal(result.title, 'Example');
+ assert.equal(result.text, 'Hello');
+ assert.ok(!result.html.includes(' item.value === 'article' && !item.asset && item.base === 'https://example.com/nested/'));
+ for (const name of ['a.png', 'b.png', 'cover.png', 'bg.png']) {
+ assert.ok(seen.some(item => item.value === name && item.asset), name);
+ }
+ assert.match(result.html, /\/export\/b.png 2x/);
+});
+
+test('rewrites CSS imports and font URLs while retaining media conditions', () => {
+ const output = transformCss('@import "theme.css" screen; @font-face{src:url(font.woff2)}',
+ value => '/assets/' + value);
+ assert.match(output, /"\/assets\/theme.css" screen/);
+ assert.match(output, /url\("\/assets\/font.woff2"\)/);
+});
+
+test('XML rewriting discovers sitemap entries and preserves opaque feed identifiers', () => {
+ const {transformXml} = require('../lib/transform');
+ const discovered = [];
+ const output = transformXml('https://example.com/unlinked ' +
+ 'https://example.com/id ' +
+ ' ', (url, asset) => {
+ discovered.push({url, asset});
+ return url.replace('example.com', 'static.example');
+ });
+ assert.deepEqual(discovered, [
+ {url: 'https://example.com/unlinked', asset: false},
+ {url: 'https://example.com/audio.mp3', asset: true}
+ ]);
+ assert.match(output, /https:\/\/static.example\/unlinked/);
+ assert.match(output, /https:\/\/example.com\/id/);
+});
diff --git a/packages/simply-static/test/urls.test.js b/packages/simply-static/test/urls.test.js
new file mode 100644
index 0000000..a3cf27f
--- /dev/null
+++ b/packages/simply-static/test/urls.test.js
@@ -0,0 +1,53 @@
+'use strict';
+
+const test = require('node:test');
+const assert = require('node:assert/strict');
+const {UrlPolicy, safeSegments} = require('../lib/urls');
+
+const config = {sourceUrl: 'https://source.example/blog/', destinationUrl: 'https://public.example/site/'};
+
+test('maps public pages and query variants without merging their output', () => {
+ const policy = new UrlPolicy(config);
+ assert.equal(policy.file(policy.resolve('/blog/article'), true), 'article/index.html');
+ assert.equal(policy.file(policy.resolve('/blog/page.html'), true), 'page.html');
+ assert.notEqual(policy.file(policy.resolve('/blog/?page=2'), true), 'index.html');
+ assert.notEqual(policy.file(policy.resolve('/blog/?page=2'), true),
+ policy.file(policy.resolve('/blog/?page=3'), true));
+ assert.equal(policy.link('article/index.html', 'index.html', '#heading'),
+ 'https://public.example/site/article/index.html#heading');
+});
+
+test('excludes control routes, authenticated URLs and other origins', () => {
+ const policy = new UrlPolicy({...config, exclude: ['/blog/hidden']});
+ for (const value of ['/blog/admin', '/blog/api/private', '/blog/mcp', '/blog/%61dmin/',
+ '/blog/?preview=1', '/blog/hidden/page', '/outside', 'https://other.example/']) {
+ assert.equal(policy.allowed(policy.resolve(value)), false, value);
+ }
+ assert.equal(policy.allowed(policy.resolve('/blog/article')), true);
+});
+
+test('rejects ambiguous separators and control characters', () => {
+ for (const value of ['/a%2fb', '/a%5cb', '/%00', '/%2e%2e']) {
+ assert.throws(() => safeSegments(value), /Unsafe/);
+ }
+ assert.throws(() => new UrlPolicy({...config, sourceUrl: 'https://user:password@example.com'}));
+});
+
+test('supports relative links and explicit external asset origins', () => {
+ const policy = new UrlPolicy({...config, relative: true, assetOrigins: ['https://cdn.example']});
+ const asset = policy.resolve('https://cdn.example/image.png');
+ assert.equal(policy.allowed(asset), false);
+ assert.equal(policy.allowed(asset, true), true);
+ assert.match(policy.file(asset), /^_external\/[a-f0-9]{16}\/image.png$/);
+ assert.equal(policy.link('res/main.css', 'posts/example/index.html'), '../../res/main.css');
+});
+
+test('Unicode output names round-trip through a static HTTP server URL decoder', () => {
+ for (const relative of [false, true]) {
+ const policy = new UrlPolicy({...config, relative});
+ const filename = policy.file(policy.resolve('/blog/中文.html'), true);
+ const link = policy.link(filename, 'index.html');
+ const decoded = decodeURIComponent(new URL(link, policy.destination).pathname);
+ assert.equal(decoded, '/site/' + filename);
+ }
+});
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a1eb975..a6bef26 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -61,61 +61,1084 @@ importers:
packages/say: {}
+ packages/simply-static:
+ dependencies:
+ cheerio:
+ specifier: 1.1.2
+ version: 1.1.2
+ clean-css:
+ specifier: ^5.3.3
+ version: 5.3.3
+ croner:
+ specifier: ^10.0.1
+ version: 10.0.1
+ fflate:
+ specifier: 0.8.2
+ version: 0.8.2
+ html-minifier-terser:
+ specifier: ^7.2.0
+ version: 7.2.0
+ parse-srcset:
+ specifier: 1.0.2
+ version: 1.0.2
+ postcss:
+ specifier: 8.5.6
+ version: 8.5.6
+ postcss-value-parser:
+ specifier: 4.2.0
+ version: 4.2.0
+ ssh2-sftp-client:
+ specifier: ^12.0.1
+ version: 12.1.1
+ terser:
+ specifier: ^5.44.1
+ version: 5.51.4
+ devDependencies:
+ jsdom:
+ specifier: ^27.0.1
+ version: 27.4.0
+ optionalDependencies:
+ sharp:
+ specifier: ^0.34.5
+ version: 0.34.5
+
packages:
+ '@acemir/cssom@0.9.33':
+ resolution: {integrity: sha512-52IMmrBsIsDZLp/KFM+KmaMLJ8GTj113K+iFGFCoOjstZSZbsAxMJE8KYtwao7bz1LsEG810ts1m5wvkVEqPlg==}
+
+ '@asamuzakjp/css-color@4.1.2':
+ resolution: {integrity: sha512-NfBUvBaYgKIuq6E/RBLY1m0IohzNHAYyaJGuTK79Z23uNwmz2jl1mPsC5ZxCCxylinKhT1Amn5oNTlx1wN8cQg==}
+
+ '@asamuzakjp/dom-selector@6.8.1':
+ resolution: {integrity: sha512-MvRz1nCqW0fsy8Qz4dnLIvhOlMzqDVBabZx6lH+YywFDdjXhMY37SmpV1XFX3JzG5GWHn63j6HX6QPr3lZXHvQ==}
+
+ '@asamuzakjp/nwsapi@2.3.9':
+ resolution: {integrity: sha512-n8GuYSrI9bF7FFZ/SjhwevlHc8xaVlb/7HmHelnc/PZXBD2ZR49NnN9sMMuDdEGPeeRQ5d0hqlSlEpgCX3Wl0Q==}
+
+ '@csstools/color-helpers@6.1.3':
+ resolution: {integrity: sha512-c6CpX5G1pvuOKTXiRFJ54Lzc8zQrZ3qUjp44QC5DJNt1OmA1vmfUxOMCcKdDqsvffVDG0/MHnY63J+Mn0nmdUg==}
+ engines: {node: '>=20.19.0'}
+
+ '@csstools/css-calc@3.4.4':
+ resolution: {integrity: sha512-Jwo1Z8DUsZ8xVOLBdLMfhjJFvWD6pqaUTlBNQZ+qIB2i9g7yG8kd/UBJj2c9J9Twr+u87cjy9BjkmfvMbyOk3Q==}
+ engines: {node: '>=20.19.0'}
+ peerDependencies:
+ '@csstools/css-parser-algorithms': ^4.0.3
+ '@csstools/css-tokenizer': ^4.0.3
+
+ '@csstools/css-color-parser@4.2.8':
+ resolution: {integrity: sha512-JLsKBee9dmnA3L+H+vYK4lQ6n5CoY3yEnh33zdlMutRfrTxtqt+hFeoZ1maHRt5vLw67huDLpOkDb3rl9A51MQ==}
+ engines: {node: '>=20.19.0'}
+ peerDependencies:
+ '@csstools/css-parser-algorithms': ^4.0.3
+ '@csstools/css-tokenizer': ^4.0.3
+
+ '@csstools/css-parser-algorithms@4.0.3':
+ resolution: {integrity: sha512-EpCfUDaJtwohPHC7egoXxPGT/R1/WyyAhw87MKB/7BPPZvZU+IcEqo4er5FpLnby2Gvwt9Lpxy+WNEDyFjoXtA==}
+ engines: {node: '>=20.19.0'}
+ peerDependencies:
+ '@csstools/css-tokenizer': ^4.0.3
+
+ '@csstools/css-syntax-patches-for-csstree@1.1.17':
+ resolution: {integrity: sha512-IPx9W33+t0Yt5TVb+Y7oICrThOIry0TY6GuXfSHOatxA0uiHqbzi98Gai905lpBAX1m/LH7iI96e9jcI7Dkvxw==}
+ peerDependencies:
+ css-tree: ^3.2.1
+ peerDependenciesMeta:
+ css-tree:
+ optional: true
+
+ '@csstools/css-tokenizer@4.0.3':
+ resolution: {integrity: sha512-gdkFe/Z4KU1q8Y5S3GYScXGcOnO56dgWwIs5+97Ij1VIKISItOIUlCXUq4VLbdnRclF+SSQ49sLsn3KeV111AA==}
+ engines: {node: '>=20.19.0'}
+
+ '@emnapi/runtime@1.11.3':
+ resolution: {integrity: sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==}
+
+ '@exodus/bytes@1.16.0':
+ resolution: {integrity: sha512-IcpW84uEn3N7ETtNZMlxKhfl6Pec8rUNGOTBtWbK1FKhJxIFAptZyVrvVRVBimAJxJCgc3PxepxkdWWG4DVzfA==}
+ engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0}
+ peerDependencies:
+ '@noble/hashes': ^1.8.0 || ^2.0.0
+ peerDependenciesMeta:
+ '@noble/hashes':
+ optional: true
+
+ '@img/colour@1.1.0':
+ resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==}
+ engines: {node: '>=18'}
+
+ '@img/sharp-darwin-arm64@0.34.5':
+ resolution: {integrity: sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@img/sharp-darwin-x64@0.34.5':
+ resolution: {integrity: sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [x64]
+ os: [darwin]
+
+ '@img/sharp-libvips-darwin-arm64@1.2.4':
+ resolution: {integrity: sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@img/sharp-libvips-darwin-x64@1.2.4':
+ resolution: {integrity: sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==}
+ cpu: [x64]
+ os: [darwin]
+
+ '@img/sharp-libvips-linux-arm64@1.2.4':
+ resolution: {integrity: sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ '@img/sharp-libvips-linux-arm@1.2.4':
+ resolution: {integrity: sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==}
+ cpu: [arm]
+ os: [linux]
+ libc: [glibc]
+
+ '@img/sharp-libvips-linux-ppc64@1.2.4':
+ resolution: {integrity: sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==}
+ cpu: [ppc64]
+ os: [linux]
+ libc: [glibc]
+
+ '@img/sharp-libvips-linux-riscv64@1.2.4':
+ resolution: {integrity: sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [glibc]
+
+ '@img/sharp-libvips-linux-s390x@1.2.4':
+ resolution: {integrity: sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==}
+ cpu: [s390x]
+ os: [linux]
+ libc: [glibc]
+
+ '@img/sharp-libvips-linux-x64@1.2.4':
+ resolution: {integrity: sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ '@img/sharp-libvips-linuxmusl-arm64@1.2.4':
+ resolution: {integrity: sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ '@img/sharp-libvips-linuxmusl-x64@1.2.4':
+ resolution: {integrity: sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ '@img/sharp-linux-arm64@0.34.5':
+ resolution: {integrity: sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ '@img/sharp-linux-arm@0.34.5':
+ resolution: {integrity: sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [arm]
+ os: [linux]
+ libc: [glibc]
+
+ '@img/sharp-linux-ppc64@0.34.5':
+ resolution: {integrity: sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [ppc64]
+ os: [linux]
+ libc: [glibc]
+
+ '@img/sharp-linux-riscv64@0.34.5':
+ resolution: {integrity: sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [glibc]
+
+ '@img/sharp-linux-s390x@0.34.5':
+ resolution: {integrity: sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [s390x]
+ os: [linux]
+ libc: [glibc]
+
+ '@img/sharp-linux-x64@0.34.5':
+ resolution: {integrity: sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ '@img/sharp-linuxmusl-arm64@0.34.5':
+ resolution: {integrity: sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ '@img/sharp-linuxmusl-x64@0.34.5':
+ resolution: {integrity: sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ '@img/sharp-wasm32@0.34.5':
+ resolution: {integrity: sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [wasm32]
+
+ '@img/sharp-win32-arm64@0.34.5':
+ resolution: {integrity: sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [arm64]
+ os: [win32]
+
+ '@img/sharp-win32-ia32@0.34.5':
+ resolution: {integrity: sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [ia32]
+ os: [win32]
+
+ '@img/sharp-win32-x64@0.34.5':
+ resolution: {integrity: sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [x64]
+ os: [win32]
+
+ '@jridgewell/gen-mapping@0.3.13':
+ resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
+
+ '@jridgewell/resolve-uri@3.1.3':
+ resolution: {integrity: sha512-lhTtjtoEArWBjismtfS761S9Hlyn+nIZqOZVYoZ1Xn82PMNMVnk+jj/NhC4fAXGTs7ydONcJiR5vyQBTMDu27g==}
+ engines: {node: '>=6.0.0'}
+
+ '@jridgewell/source-map@0.3.11':
+ resolution: {integrity: sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==}
+
+ '@jridgewell/sourcemap-codec@1.6.0':
+ resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==}
+
+ '@jridgewell/trace-mapping@0.3.31':
+ resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
+
'@mixmark-io/domino@2.2.0':
resolution: {integrity: sha512-Y28PR25bHXUg88kCV7nivXrP2Nj2RueZ3/l/jdx6J9f8J4nsEGcgX0Qe6lt7Pa+J79+kPiJU3LguR6O/6zrLOw==}
+ acorn@8.19.0:
+ resolution: {integrity: sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==}
+ engines: {node: '>=0.4.0'}
+ hasBin: true
+
+ agent-base@7.1.4:
+ resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==}
+ engines: {node: '>= 14'}
+
argparse@2.0.1:
resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
+ asn1@0.2.6:
+ resolution: {integrity: sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==}
+
+ bcrypt-pbkdf@1.0.2:
+ resolution: {integrity: sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==}
+
+ bidi-js@1.1.0:
+ resolution: {integrity: sha512-fX1Onk0tdVPC7obPWB5EbJ1z7NVhLq4m2xZLq2YXBkxzMXIGRpNMU88n0EPgWseKl12J7zXs7qrDxPK4sRs2fg==}
+
+ boolbase@1.0.0:
+ resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==}
+
+ buffer-from@1.1.2:
+ resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==}
+
+ buildcheck@0.0.7:
+ resolution: {integrity: sha512-lHblz4ahamxpTmnsk+MNTRWsjYKv965MwOrSJyeD588rR3Jcu7swE+0wN5F+PbL5cjgu/9ObkhfzEPuofEMwLA==}
+ engines: {node: '>=10.0.0'}
+
+ camel-case@4.1.2:
+ resolution: {integrity: sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==}
+
+ cheerio-select@2.1.0:
+ resolution: {integrity: sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==}
+
+ cheerio@1.1.2:
+ resolution: {integrity: sha512-IkxPpb5rS/d1IiLbHMgfPuS0FgiWTtFIm/Nj+2woXDLTZ7fOT2eqzgYbdMlLweqlHbsZjxEChoVK+7iph7jyQg==}
+ engines: {node: '>=20.18.1'}
+
+ clean-css@5.3.3:
+ resolution: {integrity: sha512-D5J+kHaVb/wKSFcyyV75uCn8fiY4sV38XJoe4CUyGQ+mOU/fMVYUdH1hJC+CJQ5uY3EnW27SbJYS4X8BiLrAFg==}
+ engines: {node: '>= 10.0'}
+
+ commander@10.0.1:
+ resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==}
+ engines: {node: '>=14'}
+
+ commander@2.20.3:
+ resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
+
+ concat-stream@2.0.0:
+ resolution: {integrity: sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==}
+ engines: {'0': node >= 6.0}
+
+ cpu-features@0.0.10:
+ resolution: {integrity: sha512-9IkYqtX3YHPCzoVg1Py+o9057a3i0fp7S530UWokCSaFVTc7CwXPRiOjRjBQQ18ZCNafx78YfnG+HALxtVmOGA==}
+ engines: {node: '>=10.0.0'}
+
croner@10.0.1:
resolution: {integrity: sha512-ixNtAJndqh173VQ4KodSdJEI6nuioBWI0V1ITNKhZZsO0pEMoDxz539T4FTTbSZ/xIOSuDnzxLVRqBVSvPNE2g==}
engines: {node: '>=18.0'}
+ css-select@5.2.2:
+ resolution: {integrity: sha512-TizTzUddG/xYLA3NXodFM0fSbNizXjOKhqiQQwvhlspadZokn1KDy0NZFS0wuEubIYAV5/c1/lAr0TaaFXEXzw==}
+
+ css-tree@3.2.1:
+ resolution: {integrity: sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==}
+ engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0}
+
+ css-what@6.2.2:
+ resolution: {integrity: sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA==}
+ engines: {node: '>= 6'}
+
+ cssstyle@5.3.7:
+ resolution: {integrity: sha512-7D2EPVltRrsTkhpQmksIu+LxeWAIEk6wRDMJ1qljlv+CKHJM+cJLlfhWIzNA44eAsHXSNe3+vO6DW1yCYx8SuQ==}
+ engines: {node: '>=20'}
+
+ data-urls@6.0.1:
+ resolution: {integrity: sha512-euIQENZg6x8mj3fO6o9+fOW8MimUI4PpD/fZBhJfeioZVy9TUpM4UY7KjQNVZFlqwJ0UdzRDzkycB997HEq1BQ==}
+ engines: {node: '>=20'}
+
+ debug@4.4.3:
+ resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}
+ engines: {node: '>=6.0'}
+ peerDependencies:
+ supports-color: '*'
+ peerDependenciesMeta:
+ supports-color:
+ optional: true
+
+ decimal.js@10.6.0:
+ resolution: {integrity: sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==}
+
+ detect-libc@2.1.2:
+ resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==}
+ engines: {node: '>=8'}
+
+ dom-serializer@2.0.0:
+ resolution: {integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==}
+
+ domelementtype@2.3.0:
+ resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==}
+
+ domhandler@5.0.3:
+ resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==}
+ engines: {node: '>= 4'}
+
+ domutils@3.2.2:
+ resolution: {integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==}
+
+ dot-case@3.0.4:
+ resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==}
+
+ encoding-sniffer@0.2.1:
+ resolution: {integrity: sha512-5gvq20T6vfpekVtqrYQsSCFZ1wEg5+wW0/QaZMWkFr6BqD3NfKs0rLCx4rrVlSWJeZb5NBJgVLswK/w2MWU+Gw==}
+
entities@4.5.0:
resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}
engines: {node: '>=0.12'}
+ entities@6.0.1:
+ resolution: {integrity: sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==}
+ engines: {node: '>=0.12'}
+
+ entities@7.0.1:
+ resolution: {integrity: sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==}
+ engines: {node: '>=0.12'}
+
+ entities@9.0.0:
+ resolution: {integrity: sha512-oJFNDJg3kTPwAD1cNn2+WmUq4wFoo09npc3Ydf1D7ED4smRiWrsKnaLxykrTWgyGEcusc87P5dxlAleol9kpkg==}
+ engines: {node: '>=20.19.0'}
+
+ fflate@0.8.2:
+ resolution: {integrity: sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==}
+
+ html-encoding-sniffer@6.0.0:
+ resolution: {integrity: sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==}
+ engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0}
+
+ html-minifier-terser@7.2.0:
+ resolution: {integrity: sha512-tXgn3QfqPIpGl9o+K5tpcj3/MN4SfLtsx2GWwBC3SSd0tXQGyF3gsSqad8loJgKZGM3ZxbYDd5yhiBIdWpmvLA==}
+ engines: {node: ^14.13.1 || >=16.0.0}
+ hasBin: true
+
+ htmlparser2@10.1.0:
+ resolution: {integrity: sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==}
+
+ http-proxy-agent@7.0.2:
+ resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==}
+ engines: {node: '>= 14'}
+
+ https-proxy-agent@7.0.6:
+ resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==}
+ engines: {node: '>= 14'}
+
+ iconv-lite@0.6.3:
+ resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==}
+ engines: {node: '>=0.10.0'}
+
+ inherits@2.0.4:
+ resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
+
+ is-potential-custom-element-name@1.0.1:
+ resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==}
+
+ jsdom@27.4.0:
+ resolution: {integrity: sha512-mjzqwWRD9Y1J1KUi7W97Gja1bwOOM5Ug0EZ6UDK3xS7j7mndrkwozHtSblfomlzyB4NepioNt+B2sOSzczVgtQ==}
+ engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0}
+ peerDependencies:
+ canvas: ^3.0.0
+ peerDependenciesMeta:
+ canvas:
+ optional: true
+
linkify-it@5.0.2:
resolution: {integrity: sha512-ONTm2jCMAVZjgQa/Fy1kScXsuOoF5NPTsoFBdE1KVIZ2vAh/r9+Bqo+0jINCBYnavTPQZz38QzFTme79ENoN3Q==}
+ lower-case@2.0.2:
+ resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==}
+
+ lru-cache@11.5.4:
+ resolution: {integrity: sha512-B8nJCTi8JuSaDBg0tBdnImV6j5O2CXaqKfdj24ZTCFbyivN8KZ2Z+RL3aHjwJAfLutD9cNnObG4SIgW4gMufiw==}
+ engines: {node: 20 || >=22}
+
markdown-it@14.3.3:
resolution: {integrity: sha512-L//tDAkjTjJCU6pBUSBTgs3Kg4InVaZuUZog/b6V12UKhcDQ7S78877ibbCanRExwPuYP1CZD7Gd2dxSy1GXRg==}
hasBin: true
+ mdn-data@2.27.1:
+ resolution: {integrity: sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==}
+
mdurl@2.1.0:
resolution: {integrity: sha512-1+HBaOx0zi/dQWht8rNv9MYf9qqpqL/kxI0hXImU6Y547zM6Sni8BQibt7ifgMcYtQg41ao3Ivd6cnSM86inpg==}
+ ms@2.1.3:
+ resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
+
+ nan@2.30.0:
+ resolution: {integrity: sha512-P5mokDkSvCGBz6mZDD/2l+w9QoICRXdCyZ9ONGmTePr40oihJg3Kpn0YU3twKd6PJnwSlLBWNQeOT6yWEV2c4A==}
+
+ nanoid@3.3.20:
+ resolution: {integrity: sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==}
+ engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
+ hasBin: true
+
+ no-case@3.0.4:
+ resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==}
+
nodemailer@7.0.13:
resolution: {integrity: sha512-PNDFSJdP+KFgdsG3ZzMXCgquO7I6McjY2vlqILjtJd0hy8wEvtugS9xKRF2NWlPNGxvLCXlTNIae4serI7dinw==}
engines: {node: '>=6.0.0'}
+ nth-check@2.1.1:
+ resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==}
+
+ param-case@3.0.4:
+ resolution: {integrity: sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==}
+
+ parse-srcset@1.0.2:
+ resolution: {integrity: sha512-/2qh0lav6CmI15FzA3i/2Bzk2zCgQhGMkvhOhKNcBVQ1ldgpbfiNTVslmooUmWJcADi1f1kIeynbDRVzNlfR6Q==}
+
+ parse5-htmlparser2-tree-adapter@7.1.0:
+ resolution: {integrity: sha512-ruw5xyKs6lrpo9x9rCZqZZnIUntICjQAd0Wsmp396Ul9lN/h+ifgVV1x1gZHi8euej6wTfpqX8j+BFQxF0NS/g==}
+
+ parse5-parser-stream@7.1.2:
+ resolution: {integrity: sha512-JyeQc9iwFLn5TbvvqACIF/VXG6abODeB3Fwmv/TGdLk2LfbWkaySGY72at4+Ty7EkPZj854u4CrICqNk2qIbow==}
+
+ parse5@7.3.0:
+ resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==}
+
+ parse5@8.1.1:
+ resolution: {integrity: sha512-EcR/6WDcU7b2N3vQSxKALCk9lXGtUMQxXio008OEMBE0kavu/7JLfBEeFPzi43nMqVDSbEn3QCK+BMCc9zO//w==}
+
+ pascal-case@3.1.2:
+ resolution: {integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==}
+
+ picocolors@1.1.1:
+ resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
+
+ postcss-value-parser@4.2.0:
+ resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==}
+
+ postcss@8.5.6:
+ resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==}
+ engines: {node: ^10 || ^12 || >=14}
+
punycode.js@2.3.1:
resolution: {integrity: sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==}
engines: {node: '>=6'}
+ punycode@2.3.1:
+ resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}
+ engines: {node: '>=6'}
+
+ readable-stream@3.6.2:
+ resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==}
+ engines: {node: '>= 6'}
+
+ relateurl@0.2.7:
+ resolution: {integrity: sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==}
+ engines: {node: '>= 0.10'}
+
+ require-from-string@2.0.2:
+ resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==}
+ engines: {node: '>=0.10.0'}
+
+ safe-buffer@5.2.1:
+ resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}
+
+ safer-buffer@2.1.2:
+ resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
+
+ saxes@6.0.0:
+ resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==}
+ engines: {node: '>=v12.22.7'}
+
+ semver@7.8.6:
+ resolution: {integrity: sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==}
+ engines: {node: '>=10'}
+ hasBin: true
+
+ sharp@0.34.5:
+ resolution: {integrity: sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+
+ source-map-js@1.3.0:
+ resolution: {integrity: sha512-pdUVfIWcK0kCgK831ibqkZDcL7I9zljjOu0TQFnA+fiQ6y1CYqYB7RkTOHHO45FGMg5P/Mvk/+4ToQ7gAYAL5Q==}
+ engines: {node: '>=6.0.0'}
+
+ source-map-support@0.5.21:
+ resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==}
+
+ source-map@0.6.1:
+ resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
+ engines: {node: '>=0.10.0'}
+
+ ssh2-sftp-client@12.1.1:
+ resolution: {integrity: sha512-wYVDgwkpcKG2iPGQQ+QR33xkWqLFIaVrYvA+uON4pmxTPaPuB81f1aooUEPN75e/9DCK6rrKYXb6zR6zP3+EtA==}
+ engines: {node: '>=18.20.4'}
+
+ ssh2@1.17.0:
+ resolution: {integrity: sha512-wPldCk3asibAjQ/kziWQQt1Wh3PgDFpC0XpwclzKcdT1vql6KeYxf5LIt4nlFkUeR8WuphYMKqUA56X4rjbfgQ==}
+ engines: {node: '>=10.16.0'}
+
+ string_decoder@1.4.0:
+ resolution: {integrity: sha512-r8azg21Y67ckRmeG0hHol5CeDXMs4ZFkFT6eXMO39hX7khvJcopBcYTCeWZ0rQXkMoPh8lVdbjmsOMGL8krxRQ==}
+
+ symbol-tree@3.2.4:
+ resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==}
+
+ terser@5.51.4:
+ resolution: {integrity: sha512-VPi1CkDvCWLGUVIToctNBG+NdHbSXwOPjHJnQ3pdB0XknaldnI76wSkAFOGxV2ZdkzOP5d6gpQ5c58XvDghRvw==}
+ engines: {node: '>=10'}
+ hasBin: true
+
+ tldts-core@7.6.4:
+ resolution: {integrity: sha512-QywQ9lgQyZMuc3NVlqmuxHOhlwirSdvgD/vDLvX8dZYcYgy1cdri5rY/TXDHcF4J3VBSdJLcJNIJI6zGJ7jE+w==}
+
+ tldts@7.6.4:
+ resolution: {integrity: sha512-wp+ZdvQyov404xynNcjbXoJyeGM28W/aCwMmry/rJ+Y0SsObukJYkWwuxWGbNpIjeqMaEbNUtXPNtPPfI5cTFA==}
+ hasBin: true
+
+ tough-cookie@6.1.0:
+ resolution: {integrity: sha512-FTxc8u8Kl2tz0Lat1u8ksvcy8bwHRyEMawwTWybo51JqaC6O7SvfuhAKg+Ld6VqyIe2QRJBzY9HA7y2WyFRT2w==}
+ engines: {node: '>=16'}
+
+ tr46@6.0.0:
+ resolution: {integrity: sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==}
+ engines: {node: '>=20'}
+
+ tslib@2.9.1:
+ resolution: {integrity: sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==}
+
turndown@7.2.4:
resolution: {integrity: sha512-I8yFsfRzmzK0WV1pNNOA4A7y4RDfFxPRxb3t+e3ui14qSGOxGtiSP6GjeX+Y6CHb7HYaFj7ECUD7VE5kQMZWGQ==}
engines: {node: '>=18', npm: '>=9'}
+ tweetnacl@0.14.5:
+ resolution: {integrity: sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==}
+
+ typedarray@0.0.6:
+ resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==}
+
uc.micro@2.1.0:
resolution: {integrity: sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==}
+ undici@7.30.2:
+ resolution: {integrity: sha512-mLyPQnHwUxaM/rideoK/+KL8DaAJLRl4aBCfmX444aCSLnIaomqPLtNRe2jdCYcsk5wZzXrDIQC8ZeYNRAYyIA==}
+ engines: {node: '>=20.18.1'}
+
+ util-deprecate@1.0.2:
+ resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
+
+ w3c-xmlserializer@5.0.0:
+ resolution: {integrity: sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==}
+ engines: {node: '>=18'}
+
+ webidl-conversions@8.0.1:
+ resolution: {integrity: sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==}
+ engines: {node: '>=20'}
+
+ whatwg-encoding@3.1.1:
+ resolution: {integrity: sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==}
+ engines: {node: '>=18'}
+ deprecated: Use @exodus/bytes instead for a more spec-conformant and faster implementation
+
+ whatwg-mimetype@4.0.0:
+ resolution: {integrity: sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==}
+ engines: {node: '>=18'}
+
+ whatwg-mimetype@5.0.0:
+ resolution: {integrity: sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==}
+ engines: {node: '>=20'}
+
+ whatwg-url@15.1.0:
+ resolution: {integrity: sha512-2ytDk0kiEj/yu90JOAp44PVPUkO9+jVhyf+SybKlRHSDlvOOZhdPIrr7xTH64l4WixO2cP+wQIcgujkGBPPz6g==}
+ engines: {node: '>=20'}
+
+ ws@8.23.1:
+ resolution: {integrity: sha512-1rzWDSN0NOi3tpwgHsQExjWRoKUGtjCkJ2gZRaaRtzhYLboMytOI9pj9PU7yCgY37auqdd4OyLofZDbkeuZmPA==}
+ engines: {node: '>=10.0.0'}
+ peerDependencies:
+ bufferutil: ^4.0.1
+ utf-8-validate: '>=5.0.2'
+ peerDependenciesMeta:
+ bufferutil:
+ optional: true
+ utf-8-validate:
+ optional: true
+
+ xml-name-validator@5.0.0:
+ resolution: {integrity: sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==}
+ engines: {node: '>=18'}
+
+ xmlchars@2.2.0:
+ resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==}
+
snapshots:
+ '@acemir/cssom@0.9.33': {}
+
+ '@asamuzakjp/css-color@4.1.2':
+ dependencies:
+ '@csstools/css-calc': 3.4.4(@csstools/css-parser-algorithms@4.0.3(@csstools/css-tokenizer@4.0.3))(@csstools/css-tokenizer@4.0.3)
+ '@csstools/css-color-parser': 4.2.8(@csstools/css-parser-algorithms@4.0.3(@csstools/css-tokenizer@4.0.3))(@csstools/css-tokenizer@4.0.3)
+ '@csstools/css-parser-algorithms': 4.0.3(@csstools/css-tokenizer@4.0.3)
+ '@csstools/css-tokenizer': 4.0.3
+ lru-cache: 11.5.4
+
+ '@asamuzakjp/dom-selector@6.8.1':
+ dependencies:
+ '@asamuzakjp/nwsapi': 2.3.9
+ bidi-js: 1.1.0
+ css-tree: 3.2.1
+ is-potential-custom-element-name: 1.0.1
+ lru-cache: 11.5.4
+
+ '@asamuzakjp/nwsapi@2.3.9': {}
+
+ '@csstools/color-helpers@6.1.3': {}
+
+ '@csstools/css-calc@3.4.4(@csstools/css-parser-algorithms@4.0.3(@csstools/css-tokenizer@4.0.3))(@csstools/css-tokenizer@4.0.3)':
+ dependencies:
+ '@csstools/css-parser-algorithms': 4.0.3(@csstools/css-tokenizer@4.0.3)
+ '@csstools/css-tokenizer': 4.0.3
+
+ '@csstools/css-color-parser@4.2.8(@csstools/css-parser-algorithms@4.0.3(@csstools/css-tokenizer@4.0.3))(@csstools/css-tokenizer@4.0.3)':
+ dependencies:
+ '@csstools/color-helpers': 6.1.3
+ '@csstools/css-calc': 3.4.4(@csstools/css-parser-algorithms@4.0.3(@csstools/css-tokenizer@4.0.3))(@csstools/css-tokenizer@4.0.3)
+ '@csstools/css-parser-algorithms': 4.0.3(@csstools/css-tokenizer@4.0.3)
+ '@csstools/css-tokenizer': 4.0.3
+
+ '@csstools/css-parser-algorithms@4.0.3(@csstools/css-tokenizer@4.0.3)':
+ dependencies:
+ '@csstools/css-tokenizer': 4.0.3
+
+ '@csstools/css-syntax-patches-for-csstree@1.1.17(css-tree@3.2.1)':
+ optionalDependencies:
+ css-tree: 3.2.1
+
+ '@csstools/css-tokenizer@4.0.3': {}
+
+ '@emnapi/runtime@1.11.3':
+ dependencies:
+ tslib: 2.9.1
+ optional: true
+
+ '@exodus/bytes@1.16.0': {}
+
+ '@img/colour@1.1.0':
+ optional: true
+
+ '@img/sharp-darwin-arm64@0.34.5':
+ optionalDependencies:
+ '@img/sharp-libvips-darwin-arm64': 1.2.4
+ optional: true
+
+ '@img/sharp-darwin-x64@0.34.5':
+ optionalDependencies:
+ '@img/sharp-libvips-darwin-x64': 1.2.4
+ optional: true
+
+ '@img/sharp-libvips-darwin-arm64@1.2.4':
+ optional: true
+
+ '@img/sharp-libvips-darwin-x64@1.2.4':
+ optional: true
+
+ '@img/sharp-libvips-linux-arm64@1.2.4':
+ optional: true
+
+ '@img/sharp-libvips-linux-arm@1.2.4':
+ optional: true
+
+ '@img/sharp-libvips-linux-ppc64@1.2.4':
+ optional: true
+
+ '@img/sharp-libvips-linux-riscv64@1.2.4':
+ optional: true
+
+ '@img/sharp-libvips-linux-s390x@1.2.4':
+ optional: true
+
+ '@img/sharp-libvips-linux-x64@1.2.4':
+ optional: true
+
+ '@img/sharp-libvips-linuxmusl-arm64@1.2.4':
+ optional: true
+
+ '@img/sharp-libvips-linuxmusl-x64@1.2.4':
+ optional: true
+
+ '@img/sharp-linux-arm64@0.34.5':
+ optionalDependencies:
+ '@img/sharp-libvips-linux-arm64': 1.2.4
+ optional: true
+
+ '@img/sharp-linux-arm@0.34.5':
+ optionalDependencies:
+ '@img/sharp-libvips-linux-arm': 1.2.4
+ optional: true
+
+ '@img/sharp-linux-ppc64@0.34.5':
+ optionalDependencies:
+ '@img/sharp-libvips-linux-ppc64': 1.2.4
+ optional: true
+
+ '@img/sharp-linux-riscv64@0.34.5':
+ optionalDependencies:
+ '@img/sharp-libvips-linux-riscv64': 1.2.4
+ optional: true
+
+ '@img/sharp-linux-s390x@0.34.5':
+ optionalDependencies:
+ '@img/sharp-libvips-linux-s390x': 1.2.4
+ optional: true
+
+ '@img/sharp-linux-x64@0.34.5':
+ optionalDependencies:
+ '@img/sharp-libvips-linux-x64': 1.2.4
+ optional: true
+
+ '@img/sharp-linuxmusl-arm64@0.34.5':
+ optionalDependencies:
+ '@img/sharp-libvips-linuxmusl-arm64': 1.2.4
+ optional: true
+
+ '@img/sharp-linuxmusl-x64@0.34.5':
+ optionalDependencies:
+ '@img/sharp-libvips-linuxmusl-x64': 1.2.4
+ optional: true
+
+ '@img/sharp-wasm32@0.34.5':
+ dependencies:
+ '@emnapi/runtime': 1.11.3
+ optional: true
+
+ '@img/sharp-win32-arm64@0.34.5':
+ optional: true
+
+ '@img/sharp-win32-ia32@0.34.5':
+ optional: true
+
+ '@img/sharp-win32-x64@0.34.5':
+ optional: true
+
+ '@jridgewell/gen-mapping@0.3.13':
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.6.0
+ '@jridgewell/trace-mapping': 0.3.31
+
+ '@jridgewell/resolve-uri@3.1.3': {}
+
+ '@jridgewell/source-map@0.3.11':
+ dependencies:
+ '@jridgewell/gen-mapping': 0.3.13
+ '@jridgewell/trace-mapping': 0.3.31
+
+ '@jridgewell/sourcemap-codec@1.6.0': {}
+
+ '@jridgewell/trace-mapping@0.3.31':
+ dependencies:
+ '@jridgewell/resolve-uri': 3.1.3
+ '@jridgewell/sourcemap-codec': 1.6.0
+
'@mixmark-io/domino@2.2.0': {}
+ acorn@8.19.0: {}
+
+ agent-base@7.1.4: {}
+
argparse@2.0.1: {}
+ asn1@0.2.6:
+ dependencies:
+ safer-buffer: 2.1.2
+
+ bcrypt-pbkdf@1.0.2:
+ dependencies:
+ tweetnacl: 0.14.5
+
+ bidi-js@1.1.0:
+ dependencies:
+ require-from-string: 2.0.2
+
+ boolbase@1.0.0: {}
+
+ buffer-from@1.1.2: {}
+
+ buildcheck@0.0.7:
+ optional: true
+
+ camel-case@4.1.2:
+ dependencies:
+ pascal-case: 3.1.2
+ tslib: 2.9.1
+
+ cheerio-select@2.1.0:
+ dependencies:
+ boolbase: 1.0.0
+ css-select: 5.2.2
+ css-what: 6.2.2
+ domelementtype: 2.3.0
+ domhandler: 5.0.3
+ domutils: 3.2.2
+
+ cheerio@1.1.2:
+ dependencies:
+ cheerio-select: 2.1.0
+ dom-serializer: 2.0.0
+ domhandler: 5.0.3
+ domutils: 3.2.2
+ encoding-sniffer: 0.2.1
+ htmlparser2: 10.1.0
+ parse5: 7.3.0
+ parse5-htmlparser2-tree-adapter: 7.1.0
+ parse5-parser-stream: 7.1.2
+ undici: 7.30.2
+ whatwg-mimetype: 4.0.0
+
+ clean-css@5.3.3:
+ dependencies:
+ source-map: 0.6.1
+
+ commander@10.0.1: {}
+
+ commander@2.20.3: {}
+
+ concat-stream@2.0.0:
+ dependencies:
+ buffer-from: 1.1.2
+ inherits: 2.0.4
+ readable-stream: 3.6.2
+ typedarray: 0.0.6
+
+ cpu-features@0.0.10:
+ dependencies:
+ buildcheck: 0.0.7
+ nan: 2.30.0
+ optional: true
+
croner@10.0.1: {}
+ css-select@5.2.2:
+ dependencies:
+ boolbase: 1.0.0
+ css-what: 6.2.2
+ domhandler: 5.0.3
+ domutils: 3.2.2
+ nth-check: 2.1.1
+
+ css-tree@3.2.1:
+ dependencies:
+ mdn-data: 2.27.1
+ source-map-js: 1.3.0
+
+ css-what@6.2.2: {}
+
+ cssstyle@5.3.7:
+ dependencies:
+ '@asamuzakjp/css-color': 4.1.2
+ '@csstools/css-syntax-patches-for-csstree': 1.1.17(css-tree@3.2.1)
+ css-tree: 3.2.1
+ lru-cache: 11.5.4
+
+ data-urls@6.0.1:
+ dependencies:
+ whatwg-mimetype: 5.0.0
+ whatwg-url: 15.1.0
+
+ debug@4.4.3:
+ dependencies:
+ ms: 2.1.3
+
+ decimal.js@10.6.0: {}
+
+ detect-libc@2.1.2:
+ optional: true
+
+ dom-serializer@2.0.0:
+ dependencies:
+ domelementtype: 2.3.0
+ domhandler: 5.0.3
+ entities: 4.5.0
+
+ domelementtype@2.3.0: {}
+
+ domhandler@5.0.3:
+ dependencies:
+ domelementtype: 2.3.0
+
+ domutils@3.2.2:
+ dependencies:
+ dom-serializer: 2.0.0
+ domelementtype: 2.3.0
+ domhandler: 5.0.3
+
+ dot-case@3.0.4:
+ dependencies:
+ no-case: 3.0.4
+ tslib: 2.9.1
+
+ encoding-sniffer@0.2.1:
+ dependencies:
+ iconv-lite: 0.6.3
+ whatwg-encoding: 3.1.1
+
entities@4.5.0: {}
+ entities@6.0.1: {}
+
+ entities@7.0.1: {}
+
+ entities@9.0.0: {}
+
+ fflate@0.8.2: {}
+
+ html-encoding-sniffer@6.0.0:
+ dependencies:
+ '@exodus/bytes': 1.16.0
+ transitivePeerDependencies:
+ - '@noble/hashes'
+
+ html-minifier-terser@7.2.0:
+ dependencies:
+ camel-case: 4.1.2
+ clean-css: 5.3.3
+ commander: 10.0.1
+ entities: 4.5.0
+ param-case: 3.0.4
+ relateurl: 0.2.7
+ terser: 5.51.4
+
+ htmlparser2@10.1.0:
+ dependencies:
+ domelementtype: 2.3.0
+ domhandler: 5.0.3
+ domutils: 3.2.2
+ entities: 7.0.1
+
+ http-proxy-agent@7.0.2:
+ dependencies:
+ agent-base: 7.1.4
+ debug: 4.4.3
+ transitivePeerDependencies:
+ - supports-color
+
+ https-proxy-agent@7.0.6:
+ dependencies:
+ agent-base: 7.1.4
+ debug: 4.4.3
+ transitivePeerDependencies:
+ - supports-color
+
+ iconv-lite@0.6.3:
+ dependencies:
+ safer-buffer: 2.1.2
+
+ inherits@2.0.4: {}
+
+ is-potential-custom-element-name@1.0.1: {}
+
+ jsdom@27.4.0:
+ dependencies:
+ '@acemir/cssom': 0.9.33
+ '@asamuzakjp/dom-selector': 6.8.1
+ '@exodus/bytes': 1.16.0
+ cssstyle: 5.3.7
+ data-urls: 6.0.1
+ decimal.js: 10.6.0
+ html-encoding-sniffer: 6.0.0
+ http-proxy-agent: 7.0.2
+ https-proxy-agent: 7.0.6
+ is-potential-custom-element-name: 1.0.1
+ parse5: 8.1.1
+ saxes: 6.0.0
+ symbol-tree: 3.2.4
+ tough-cookie: 6.1.0
+ w3c-xmlserializer: 5.0.0
+ webidl-conversions: 8.0.1
+ whatwg-mimetype: 4.0.0
+ whatwg-url: 15.1.0
+ ws: 8.23.1
+ xml-name-validator: 5.0.0
+ transitivePeerDependencies:
+ - '@noble/hashes'
+ - bufferutil
+ - supports-color
+ - utf-8-validate
+
linkify-it@5.0.2:
dependencies:
uc.micro: 2.1.0
+ lower-case@2.0.2:
+ dependencies:
+ tslib: 2.9.1
+
+ lru-cache@11.5.4: {}
+
markdown-it@14.3.3:
dependencies:
argparse: 2.0.1
@@ -125,14 +1148,210 @@ snapshots:
punycode.js: 2.3.1
uc.micro: 2.1.0
+ mdn-data@2.27.1: {}
+
mdurl@2.1.0: {}
+ ms@2.1.3: {}
+
+ nan@2.30.0:
+ optional: true
+
+ nanoid@3.3.20: {}
+
+ no-case@3.0.4:
+ dependencies:
+ lower-case: 2.0.2
+ tslib: 2.9.1
+
nodemailer@7.0.13: {}
+ nth-check@2.1.1:
+ dependencies:
+ boolbase: 1.0.0
+
+ param-case@3.0.4:
+ dependencies:
+ dot-case: 3.0.4
+ tslib: 2.9.1
+
+ parse-srcset@1.0.2: {}
+
+ parse5-htmlparser2-tree-adapter@7.1.0:
+ dependencies:
+ domhandler: 5.0.3
+ parse5: 7.3.0
+
+ parse5-parser-stream@7.1.2:
+ dependencies:
+ parse5: 7.3.0
+
+ parse5@7.3.0:
+ dependencies:
+ entities: 6.0.1
+
+ parse5@8.1.1:
+ dependencies:
+ entities: 9.0.0
+
+ pascal-case@3.1.2:
+ dependencies:
+ no-case: 3.0.4
+ tslib: 2.9.1
+
+ picocolors@1.1.1: {}
+
+ postcss-value-parser@4.2.0: {}
+
+ postcss@8.5.6:
+ dependencies:
+ nanoid: 3.3.20
+ picocolors: 1.1.1
+ source-map-js: 1.3.0
+
punycode.js@2.3.1: {}
+ punycode@2.3.1: {}
+
+ readable-stream@3.6.2:
+ dependencies:
+ inherits: 2.0.4
+ string_decoder: 1.4.0
+ util-deprecate: 1.0.2
+
+ relateurl@0.2.7: {}
+
+ require-from-string@2.0.2: {}
+
+ safe-buffer@5.2.1: {}
+
+ safer-buffer@2.1.2: {}
+
+ saxes@6.0.0:
+ dependencies:
+ xmlchars: 2.2.0
+
+ semver@7.8.6:
+ optional: true
+
+ sharp@0.34.5:
+ dependencies:
+ '@img/colour': 1.1.0
+ detect-libc: 2.1.2
+ semver: 7.8.6
+ optionalDependencies:
+ '@img/sharp-darwin-arm64': 0.34.5
+ '@img/sharp-darwin-x64': 0.34.5
+ '@img/sharp-libvips-darwin-arm64': 1.2.4
+ '@img/sharp-libvips-darwin-x64': 1.2.4
+ '@img/sharp-libvips-linux-arm': 1.2.4
+ '@img/sharp-libvips-linux-arm64': 1.2.4
+ '@img/sharp-libvips-linux-ppc64': 1.2.4
+ '@img/sharp-libvips-linux-riscv64': 1.2.4
+ '@img/sharp-libvips-linux-s390x': 1.2.4
+ '@img/sharp-libvips-linux-x64': 1.2.4
+ '@img/sharp-libvips-linuxmusl-arm64': 1.2.4
+ '@img/sharp-libvips-linuxmusl-x64': 1.2.4
+ '@img/sharp-linux-arm': 0.34.5
+ '@img/sharp-linux-arm64': 0.34.5
+ '@img/sharp-linux-ppc64': 0.34.5
+ '@img/sharp-linux-riscv64': 0.34.5
+ '@img/sharp-linux-s390x': 0.34.5
+ '@img/sharp-linux-x64': 0.34.5
+ '@img/sharp-linuxmusl-arm64': 0.34.5
+ '@img/sharp-linuxmusl-x64': 0.34.5
+ '@img/sharp-wasm32': 0.34.5
+ '@img/sharp-win32-arm64': 0.34.5
+ '@img/sharp-win32-ia32': 0.34.5
+ '@img/sharp-win32-x64': 0.34.5
+ optional: true
+
+ source-map-js@1.3.0: {}
+
+ source-map-support@0.5.21:
+ dependencies:
+ buffer-from: 1.1.2
+ source-map: 0.6.1
+
+ source-map@0.6.1: {}
+
+ ssh2-sftp-client@12.1.1:
+ dependencies:
+ concat-stream: 2.0.0
+ ssh2: 1.17.0
+
+ ssh2@1.17.0:
+ dependencies:
+ asn1: 0.2.6
+ bcrypt-pbkdf: 1.0.2
+ optionalDependencies:
+ cpu-features: 0.0.10
+ nan: 2.30.0
+
+ string_decoder@1.4.0:
+ dependencies:
+ safe-buffer: 5.2.1
+
+ symbol-tree@3.2.4: {}
+
+ terser@5.51.4:
+ dependencies:
+ '@jridgewell/source-map': 0.3.11
+ acorn: 8.19.0
+ commander: 2.20.3
+ source-map-support: 0.5.21
+
+ tldts-core@7.6.4: {}
+
+ tldts@7.6.4:
+ dependencies:
+ tldts-core: 7.6.4
+
+ tough-cookie@6.1.0:
+ dependencies:
+ tldts: 7.6.4
+
+ tr46@6.0.0:
+ dependencies:
+ punycode: 2.3.1
+
+ tslib@2.9.1: {}
+
turndown@7.2.4:
dependencies:
'@mixmark-io/domino': 2.2.0
+ tweetnacl@0.14.5: {}
+
+ typedarray@0.0.6: {}
+
uc.micro@2.1.0: {}
+
+ undici@7.30.2: {}
+
+ util-deprecate@1.0.2: {}
+
+ w3c-xmlserializer@5.0.0:
+ dependencies:
+ xml-name-validator: 5.0.0
+
+ webidl-conversions@8.0.1: {}
+
+ whatwg-encoding@3.1.1:
+ dependencies:
+ iconv-lite: 0.6.3
+
+ whatwg-mimetype@4.0.0: {}
+
+ whatwg-mimetype@5.0.0: {}
+
+ whatwg-url@15.1.0:
+ dependencies:
+ tr46: 6.0.0
+ webidl-conversions: 8.0.1
+
+ ws@8.23.1: {}
+
+ xml-name-validator@5.0.0: {}
+
+ xmlchars@2.2.0: {}