🤖 Open-source, local-first alternative to Grok Bot, OpenAI dots and Claude Duet. Your own AI bots on any model: GPT, Claude, Gemini, Grok, DeepSeek, Kimi, GLM and 70+ more through one Modelflare key. Reach them in the app, WeChat or Feishu; they remember you, work in the background, run commands and use your computer. Pay per use.
Python ai-agentai-assistantchatbotclaudecomputer-usedeepseekdesktop-appdshelectronfeishugeminigptgrokllmlocal-firstmodelflaremulti-modelopenai-compatiblepersonal-ai-agentwechat
feat(site): 官网 anymodel.bot 入库(Astro 静态站 + Docker 部署)
dyk9842607d3e9281
diff --git a/.dockerignore b/.dockerignoreindex 6247eca..046968a 100644--- a/.dockerignore+++ b/.dockerignore@@ -9,3 +9,4 @@ datavendor/deepseek-harnessvendor/magpie/.gitdocs+sitediff --git a/.github/workflows/site.yml b/.github/workflows/site.ymlnew file mode 100644index 0000000..bb97ddd--- /dev/null+++ b/.github/workflows/site.yml@@ -0,0 +1,20 @@+# 官网(site/)的检查:单测、文案 key、禁词、草稿构建(部署占位符只警告)。+name: site+on:+ push:+ paths: ["site/**", "ui/design/bots/**", "ui/components/avatar.js", "THIRD_PARTY_NOTICES.md", ".github/workflows/site.yml"]+ pull_request:+ paths: ["site/**", "ui/design/bots/**", "ui/components/avatar.js", "THIRD_PARTY_NOTICES.md", ".github/workflows/site.yml"]+jobs:+ check:+ runs-on: ubuntu-latest+ defaults: { run: { working-directory: site } }+ steps:+ - uses: actions/checkout@v4+ - uses: actions/setup-node@v4+ with: { node-version: 22, cache: npm, cache-dependency-path: site/package-lock.json }+ - run: npm ci+ - run: npm test+ - run: npm run check+ - run: npx astro check+ - run: npm run build:draftdiff --git a/site/.avif3-tmp.mjs b/site/.avif3-tmp.mjsnew file mode 100644index 0000000..a2d41f6--- /dev/null+++ b/site/.avif3-tmp.mjs@@ -0,0 +1,27 @@+import sharp from "sharp";+import fs from "node:fs";+const [dir, ...qs] = process.argv.slice(2);+const names = ["blue","green","orange","purple","red","yellow"];+async function err(png, enc) {+ // 预乘后的 RGBA 均方误差 → PSNR(透明处颜色不算)+ const a = await sharp(png).raw().toBuffer(); const b = await sharp(enc).ensureAlpha().raw().toBuffer();+ let se = 0, n = 0;+ for (let i = 0; i < a.length; i += 4) {+ const aa = a[i+3]/255, ba = b[i+3]/255;+ for (let c = 0; c < 3; c++) { const d = a[i+c]*aa - b[i+c]*ba; se += d*d; }+ const da = a[i+3]-b[i+3]; se += da*da; n += 4;+ }+ return 10*Math.log10(255*255/(se/n));+}+let line = `webp q86: `; let tot = 0, ps = [];+for (const k of names) { const f = `${dir}/${k}.webp`; tot += fs.statSync(f).size; ps.push(await err(`${dir}/${k}.png`, f)); }+console.log(line + Math.round(tot/1024) + "KB psnr min/avg " + Math.min(...ps).toFixed(2) + "/" + (ps.reduce((a,b)=>a+b)/ps.length).toFixed(2));+for (const [q, eff] of qs.map((s) => s.split(":").map(Number))) {+ tot = 0; ps = [];+ for (const k of names) {+ const buf = await sharp(`${dir}/${k}.png`).avif({ quality: q, effort: eff, chromaSubsampling: "4:4:4" }).toBuffer();+ fs.writeFileSync(`${dir}/${k}.q${q}.avif`, buf); tot += buf.length;+ ps.push(await err(`${dir}/${k}.png`, `${dir}/${k}.q${q}.avif`));+ }+ console.log(`avif q${q} e${eff}: ` + Math.round(tot/1024) + "KB psnr min/avg " + Math.min(...ps).toFixed(2) + "/" + (ps.reduce((a,b)=>a+b)/ps.length).toFixed(2));+}diff --git a/site/.dockerignore b/site/.dockerignorenew file mode 100644index 0000000..af13b0e--- /dev/null+++ b/site/.dockerignore@@ -0,0 +1,5 @@+node_modules+dist+.astro+deploy/.env+deploy/downloadsdiff --git a/site/.gitignore b/site/.gitignorenew file mode 100644index 0000000..af13b0e--- /dev/null+++ b/site/.gitignore@@ -0,0 +1,5 @@+node_modules+dist+.astro+deploy/.env+deploy/downloadsdiff --git a/site/Dockerfile b/site/Dockerfilenew file mode 100644index 0000000..3e26f97--- /dev/null+++ b/site/Dockerfile@@ -0,0 +1,8 @@+# 官网构建器:容器里定时(每天 04:00 UTC+8)抓价格 → 构建 → 原子切换到共享卷,由 deploy/compose.yml 里的 nginx 提供服务。+FROM node:22-bookworm-slim+WORKDIR /app+ENV NODE_ENV=production+COPY package.json package-lock.json ./+RUN npm ci --include=dev --no-audit --no-fund+COPY . .+CMD ["node", "deploy/builder.mjs"]diff --git a/site/README.md b/site/README.mdnew file mode 100644index 0000000..3222cf2--- /dev/null+++ b/site/README.md@@ -0,0 +1,230 @@+# AnyModelBot 官网(site/)++Astro 5 静态站,Preact 只用在价格表、计算器(含可搜索的模型选择框)这几个岛上;样式是原生 CSS + token(`@layer tokens, base, components, app, utilities`),品牌色与 App 的 `ui/design` 相同。规格见《AnyModelBot Landing Page · 需求与样式设计稿 v3》。++## 页面结构++- **首页**(`src/views/Home.astro`)八块,每块讲清一件事,细节交给附属页:+ 1. Hero:圆角大卡片里放标题、一句说明、下载 / 演示、一行小字要点,底下一台桌面窗口 + 一部手机循环演示(宽屏两侧有流动卡片)+ 2. 认识你的机器人(一排角色 + 挂在挂绳上的工牌 + 手机 mock;工牌上的"月薪"是月估算,链到 /pricing 的计算器)+ - **角色的名字**:中文叠字、英文一个词,都取自它最显眼的那件配饰——天天 Ping(天线)、闪闪 Twinkle(星星)、芽芽 Sprout(嫩芽)、哒哒 Beat(耳机)、晶晶 Crystal(水晶)、飞飞 Pilot(飞行护目镜)。文案在 i18n 的 `bots.chars`:`name` 本语言名、`alias` 另一种语言的名字、`lead` 讲名字的由来。工牌上名字旁边写 alias;证件照上不加标注(指向配饰的小标签已去掉,没有意义)。代码里的键仍是颜色(blue / yellow / green / red / purple / orange)。+ 3. 能动手、会记住:两章边滚边讲(左边文字依次滚过,右边吸顶的舞台卡跟着换场)+ 4. 任意模型:居中章节头两侧散落一片毛玻璃厂商图标砖(有标志的厂商、不放快手;标志用官方彩色版;砖越大、越靠近标题,这家的模型越多;每块很轻地上下浮动,悬停显示厂商名,窄屏少放、手机不放),标题下一颗公式胶囊「1 个 Key → N 个模型 · M 家厂商」(`components/ModelsHeadArt.astro`,数字取自价格快照)→ "换脑"舞台(模型环绕晶晶转 + 对话演示)→ 一行模型名跑马灯 → 三栏价格面板(完整价格表、计算器在 /pricing)+ 5. 数据去向图(长版在 /security)+ 6. 在哪都找得到它(安装包与校验在 /download):一张切换台——左边入口清单,右边示意小图 + 具体做法(直链、命令、接入步骤)。入口是桌面、Docker、浏览器 + 聊天渠道。渠道按语言不同——中文页微信、飞书,英文页 Slack、Telegram、Discord、WhatsApp(参考 [OpenClaw 支持的 IM](https://docs.openclaw.ai/channels)),在 `src/data/channels.ts`+ 7. 常见问题+ 8. 收尾横幅(和首屏呼应:静止的大卡,跟着页面主题走——顶光 + 一层星空(深色小星点 / 浅色细小闪光)+ 底边一道扁扁的地平线,六个机器人站在地平线后面探出半个头;高度收紧,不设最小高度)+- **章节头**:`components/SectionHead.astro`——一列左对齐:细线 → 编号 / 名称 → 两段式标题(后半句次要色)→ 说明,主持机器人蹲在细线右端(规范见下文"排版规范")。+- **机器人互动**(`lib/eyes.ts`,台词在 i18n 的 `quips`):戳一下回一句、连戳冒爱心 / 晕,鼠标在大头像上来回蹭会撒娇;`[data-doze]` 里的机器人 20 秒没动静会挨个打瞌睡,一动就惊醒并嘴硬;循环示意用 `data-states` / `data-shots` / `data-say-at` 驱动机器人(`scripts/tour.ts`)。+- **页脚**(`components/Footer.astro`,每页都有):品牌(标记 + 一句话)| 产品 / 资源 / 法务三栏 → 版权行 → **眼睛田**:最下面的 AnyModelBot 大字标由几百枚迷你 Eyes 标记拼成(一格一张小机器人脸,比例和 `EyesMark.astro` 一致),画在 canvas 上(`scripts/eyefield.ts`,纯逻辑在 `lib/eyefield.ts`)。宽屏一行、手机三行(按画布比例判断,比例由 `footer.css` 定)。每个动作都对应产品本身:+ - **醒过来**:第一次滚到时从左到右一张张弹出来、睁眼(内容出现)。+ - **看着你**:所有眼睛跟着指针看,鼠标附近的脸探出头、眼睛睁大,按住时一起眯眼(机器人的反应);指针离开就自己东张西望、偶尔眨眼。+ - **发消息**:点一下(手机上点一下),从那里按远近一张张眯眼笑——"挨个收到了"(对点击的反馈;不画扩散的圈)。+ - **换脑**:每 7 秒一道斜波扫过,扫到的脸眨一下眼、睁开就换成另一个机器人的眼睛色;右上角同时换成下一个真实模型 ID(价格快照里每家厂商取一个)。讲的是"任意模型,还是这群机器人"(内容切换)。+ - **打瞌睡**:9 秒没人动,慢慢闭眼、目光耷拉;指针一动,从指针那里一圈圈醒过来(机器人的状态,同 `[data-doze]`)。睡着时不换脑。+ - 只在页脚进视口、标签页可见时跑;"减少动态效果"时画一张静止的字标;无 JS 时整块不显示。配色:深色是灰面罩 + 发光的眼睛;浅色是淡彩面罩 + 墨色眼睛——每张脸的面罩用它那个角色的辉光色调进底色、从字标顶到底由浅变深,一圈极细的边,整块像一片粉彩马赛克,"换脑"时整片换色调(不用整块墨色,也不出现白底上的荧光色)。字标盒子贴着字形(宽屏 7.4:1、手机 1.3:1),画布上下各出血 16px 给探头的脸,不额外留白。+- **附属页**:`/pricing`(价格卡、订阅制对照、价格表、计算器)、`/download`(四个平台、校验、Docker、CLI)、`/security`、`/changelog`、`/privacy`、`/licenses`。+- **导航**(`components/Nav.astro`):通栏,和正文同一个容器——logo、下载按钮分别对齐内容的左右边线,链接居中:机器人 · 功能 · 模型 · 数据(首页锚点)· 价格(独立页)· 文档。停在顶上时透明,滚动后铺半透明底色和一根底线。一套尺寸到底:所有控件(含下载按钮)都是 32 高的胶囊,文字 14、图标 16,控件之间 2px、工具组和下载之间 12px。+- **顶部公告条**(`components/SiteBanner.astro`,内容在 `src/data/announcements.ts`):发版条(版本取自 `releases.json`,按访客系统直接下载对应安装包,发布后显示 30 天)+ 宣传 / 公告,多条时轮播、可翻页;支持时间窗、截止倒计时、按 id 记住关闭;浏览器语言和页面不一致时附带语言切换。地址加 `?banner=preview` 可预览全部条目。埋点 `banner_view` / `banner_click` / `banner_dismiss`。++## 样式++所有样式表开头都声明同一个层顺序 `@layer tokens, base, components, app, utilities;`,打包顺序变了也不会乱。++| 文件 | 谁加载 | 内容 |+|---|---|---|+| `tokens.css`、`base.css`、`components.css`、`eyes.css` | `layouts/Base.astro`(每页) | token、重置、按钮 / 卡片 / 表格 / 对话框 / 价格卡等共用组件、导航、附属页骨架、Eyes 标记 |+| `footer.css` | `components/Footer.astro`(每页) | 页脚与眼睛田 |+| `models-key.css` | `components/ModelsHeadArt.astro`(首页第 4 节) | 章节头两侧的厂商图标砖、公式胶囊 |+| `home.css` | `views/Home.astro` | 首屏、第 2 节,以及小窗口标题栏、聊天、手机 mock、电脑操作示意和动画时间线状态(这些演示导览也在用) |+| `sections.css` | `views/Home.astro` | 第 3–8 节的版式与动效(两章故事、换脑舞台、价格面板、数据去向、切换台、问答、收尾) |+| `pricing.css` | `views/PricingView.astro` | 对照表、价格表岛、计算器岛 |+| `pages.css` | 下载、安全、许可、404 | 各附属页专用版式 |+| `bots.css` | `components/BotFace.astro` | 毛绒机器人头像(移植自 App) |+| `tour.css` | `components/DemoTour.astro` | 演示导览 |++### 配色++深色是默认主题,浅色是 `html[data-theme="light"]`。品牌色是黄绿 `#d7ff00` + 墨色 `#161a00`,和 App 一样:**深色下黄绿负责操作;浅色下墨色负责操作,黄绿只做"墨色上的光"或一层很淡的底。** 黄绿在白底上只有 1.15:1、彩度又极高,大面积铺在浅底上会发荧光,所以浅色里不出现成块的纯黄绿。++组件只用语义 token,不直接写 `var(--accent)` / `var(--lime)` 当填充:++| 用途 | token | 深色 | 浅色 |+|---|---|---|---|+| 主按钮、分裂按钮右段、跳转链接 | `--primary*` / `--on-primary` | 黄绿底墨字 | 墨底白字 |+| 主操作色面上的 Eyes 标记(`data-on="accent"`) | `--primary-mark-*` | 墨色标记 | 黄绿标记 |+| 小块实心记号:公告条标签、手机 mock 的发送键 | `--signal-bg` / `--signal-fg` | 黄绿底墨色 | 墨底黄绿 |+| 成排出现的品牌标签(`.badge--accent`:"默认""本地") | `--tag-*` | 实心黄绿 | 淡底 + 深橄榄字 + 细边 |+| 荧光笔 `mark.hl`、文字选区、"我"的气泡、Hero 的记忆卡 | `--hl-bg`、`--bubble-me` | 黄绿 | 柔黄绿 `--lime-soft` |+| 文字、链接、图标、细线、小光点 | `--accent-fg` | 黄绿 | 橄榄 `#5f711c` |+| 图标底片、选中的 chip、焦点外圈 | `--accent-wash`、`--chip-on-bg` | 14% 黄绿 | `#eff7d7` |+| 菜单、下拉、Toast、对话框的投影与遮罩 | `--shadow-c`、`--shadow-c-strong`、`--scrim` | 黑色 | 中性冷灰 `rgba(17, 24, 39, …)`,轻而散 |++**浅色的层级**只用中性的白和灰(冷一点点,不偏黄、不偏绿;细线、投影也是中性冷灰,不带墨绿),从下往上:++1. 页面浅灰 `--bg` `#f4f5f7`,底下一层静止的环境光(`base.css` 的 `body::before`:几团很大的白光和一点冷灰,固定在视口上);+2. 舞台卡(`.stage`、`.crew`、`.story__scene`、价格面板、收尾大卡):半透明的白 + 颗粒 + 顶边高光,透出底下的环境光;底光的位置换成一团更亮的白,**不铺角色色**;+3. 舞台上的卡片、浮层:白玻璃(`--glass` / `--glass-strong`);+4. 凹槽回到浅灰 `--bg-sunken` `#f1f2f5`(输入框、对话气泡、数据去向的节点)。++角色色和黄绿在浅色下只留在小记号上:选中态、图标、圆点、挂绳和头顶的光束、流动的光点。++**机器人色的浓度**统一乘 `--glow-k`(深色 1、浅色 .55):舞台底光、选中态的底和描边、示意图里的色块都写成 `calc(N% * var(--glow-k))`,浅色不用再逐条覆盖(浅色下舞台、场景卡、示意图的底另有规则换成白光,见上面"浅色的层级")。浅色下带模糊的发光小点(`0 0 12px var(--tint)` 这类)换成一圈淡色描边。++**通透感**:两个主题的 `body::before` 都有一层静止的环境光(浅色几团白光 + 一点冷灰;深色白光只有 2.5–4.5%),没有颜色、不动。舞台卡、卡片、价格面板、表格、计算器在深色下是 80% 的半透明底 + 颗粒 + 顶边高光,透出底下的明暗;浅色下是半透明的白(见上文)。++**毛玻璃**(`tokens.css`,和 App 的材质同一套):`--glass`(胶囊、标签、舞台上的卡片)/ `--glass-strong`(菜单、下拉、对话框、抽屉、吸底条)+ `--grain` 磨砂颗粒 + `--glass-ring`(顶边一线高光 + 细边)+ `--glass-blur` / `--glass-blur-lg`。只给浮在内容上、或叠在舞台上的东西用;铺满整节的大面不用。浅色下价格卡、计算器、表格、FAQ 的条也用玻璃的颜色(半透明白 + 细边 + 顶边高光)。+`backdrop-filter` 只加在背后真有东西可模糊的地方(导航、菜单、对话框、次按钮、舞台上的小窗口)。**里面有弹出层的卡片不加**(价格卡、计算器表单、数据去向的几栏):它会让卡片自成层叠上下文,把下拉菜单、说明卡关在里面,被旁边的卡盖住。大面积的舞台卡也不加——背后只有很柔的环境光,模糊不出东西。导航的毛玻璃画在 `.nav::before` 上,导航本身不带 `backdrop-filter`,里面的菜单才模糊得到页面。++**纵向节奏**(`tokens.css`):一节上下各留 `--section-y`(72–112,两节之间最宽 224)→ 章节头到内容 `--stack-head` → 同一节里两大块之间 `--stack-block` → 舞台卡到它下面的说明 / 按钮 `--space-8`。卡片里:标题行和内容之间用一根细线分开(数据流的栏、下载卡的"校验"、多端的做法列表),内边距和间距都取 4 的倍数。++**圆角**:按钮 / 胶囊 `--r-btn`,弹出层 `--r-pop`(14)→ 里面的行 `--r-item`(10),输入框 / 代码块 / 提示条 `--r-field`(12),小卡 `--r-shot`(16)、卡片 `--r-card`(20)、大卡和对话框 `--r-feature`(24)、舞台 `--r-banner`(32)。++背景里的光浅色下不带颜色:公告条的 `--glow-brand` 是白光,Hero 的环境色、地平线只剩一丝机器人色;角色色(尤其芽芽、闪闪)在浅底上也收一档(`.crew` 的 `--beam-mix` / `--photo-mix` / `--dot-glow`)。++### 排版规范++字号都在 `tokens.css`,写样式时用 token,不要另写一次性的字号。++**字体只有两种。**+- Geist(中文回退到苹方 / 微软雅黑):所有标题、正文和标签。+- Geist Mono:只用在机器读得懂的内容上——模型 ID、命令、路径、文件名、价格数字、编号。+- 中文页面里写着中文句子的标签一律用无衬线,包括 `.eyebrow`、`.badge`、步骤、连线说明。Hero 要点两种语言都用无衬线。+- 等宽字体栈末尾带了中文黑体,混进等宽元素的中文不会落到 Windows 的新宋体。++**标题四级。** 相邻两级约差 1.5–1.6 倍,字重一律 600:++| 级别 | 类 | 英文 | 中文(`-zh`) | 行高 英 / 中 | 字距 英 / 中 | 用在 |+|---|---|---|---|---|---|---|+| display | `.hero__h1` | 42–76 | 38–72 | 1.02 / 1.16 | -.045em / -.02em | 只给 Hero;行尾的天天 1.12em(手机 .86em) |+| h2 | `.h2` | 32–56 | 26–48 | 1.06 / 1.25 | -.035em / 0 | 章节标题、收尾横幅、附属页 H1 |+| title | `.subhead` | 26–36 | 24–32 | 1.12 / 1.3 | -.025em / 0 | 章节里的块标题:功能卡、价格概览、工牌上的名字 |+| h3 | `.h3` | 22(手机 20) | 同英文 | 1.3 | — | 卡片、弹窗标题 |++中文字面比拉丁字母满,所以中文标题小一档:字距不收,行高放开 .15–.2。++**正文。**+- `--fs-lead`(17–19):Hero 说明、章节说明、FAQ 问题+- `--fs-body-lg`(17):功能卡说明、要点标题+- `--fs-body`(16)+- `--fs-body-sm`(15):要点说明、名字+- `--fs-sm`(14):界面文字+- `--fs-xs`(12.5):注释+- `--fs-eyebrow`(12,中文 13):小标签+- `--fs-figure`(36–44):价格卡和计算器里的大数字++手机、小窗口、演示导览这些 mock 照 App 的界面尺寸来,不受上面这张表约束,但不小于 11px。++**小标签只有一种:`.eyebrow`。** 英文用等宽大写,中文用无衬线、不大写。价格卡标签、章节头的"编号 / 名称"、工牌上的职位都用它。++**章节头(`.shead`)。**+- 一列、同一条左边线:细线 → 编号 / 名称 → 两段式标题 → 说明。说明紧跟在标题下面,不另起一栏。+- 只用三种颜色:正文色(标题前半句)、次要色(后半句、名称、说明)、品牌色(编号)。++**字重。** 只用 400 / 500 / 600 三档;`b`、`strong` 也是 600。++### 舞台卡与滚动动效++宣传口径以桌面为主。下面的滚动联动只在宽屏(≥1024px)、有鼠标、没开"减少动态效果"时启用。窄屏和无 JS 时页面停在终态,内容完整可读。动效参考了 bevel.health,但没有引第三方库。++**动效的硬规矩:每个动画都要说得出它在告诉用户什么。**+- 能动的只有这几类:内容的出现 / 切换;对操作的反馈(悬停、按下、点击);真实在进行的过程(打字、生成、数据从哪流到哪);机器人的状态和情绪。+- **严禁背景 / 装饰层的动画**——背景、光晕、边框、纹理一律静止。具体不许做:+ - 背景里自己循环播放的光圈 / 光框扩散("隧道"、涟漪、雷达波);+ - 呼吸、脉动的光晕;+ - 沿边框巡游的扫光;+ - 漂浮的光斑、粒子;+ - 跟随指针的点阵、聚光灯。+- **唯一的例外**:Hero 顶部的天空(用户 2026-10-31 明确要求)——深色:约五分之一的星星慢慢明暗闪烁(3–7 秒一周期、各自错开),两颗流星隔十几、二十秒才划过一次、每次不到一秒;浅色:三朵白云极慢地从左往右飘(横穿一次 3–5 分钟),约六成四角形细小闪光偶尔亮起、转一下再隐去;"减少动态效果"时全部静止。保持"极其简单",不要加量、不要扩展到别处。+- **第二个例外**:首页第 4 节章节头两侧的厂商图标砖(用户 2026-10-31 明确要求"logo 有微弱的浮动效果")——每块砖上下浮动 ±3px,周期 6–10 秒、起点各不相同;"减少动态效果"时静止。不要加大幅度,也不要套到别的图标上。+- **第三个例外**:Hero 背景里的模型厂商标志(`components/HeroLogos.astro` + `styles/hero-logos.css`,用户 2026-10-31 明确要求"logo 做微弱浮动、尽量淡化")——标题两侧各五枚单色标志,最清楚的一枚是正文色的 12%(浅色 11%;压到 7% 时用户说看不到,更早的版本又嫌明显),远的更小更淡、略虚;各自轻轻漂(上下 8px、左右 3px、转 ±1.5°),5–8.5 秒一个来回、起点错开;只在文字两侧的空白里,不压标题、按钮和舞台;中等宽度只留外侧几枚,窄屏不放;"减少动态效果"时静止。不要加量、不要加颜色、不要扩展到 Hero 以外。+- 说不出含义、只是"让画面动起来"的效果,一律不加。App 端同一条规矩,见 `ui/design/README.md` 的「动效」。++**舞台卡(`.stage`)。** 视觉母版是"认识机器人"那张 `.crew`:深底、一圈细线、32px 圆角,底光用这一块主角机器人的颜色。+- 颜色写在标签的 `--stage-glow` 上:动手橙、记忆绿、模型紫、数据去向绿。+- UI 强调色仍是品牌黄绿。++**滚动联动(`scripts/scroll-fx.ts`)。**+- 原理:`[data-fx]` 元素随滚动拿到 `--p`(0 → 1),样式只写在 `html.fx` 下,用 `calc()` 把 `--p` 换成位移、缩放或倾斜。+- `.fx-rise`:舞台卡升起来。+- `.fx-float` + `data-fx="through"`:视差,偏移量由 `--depth` 控制。+- `data-fx-prev`:叠卡时把进度写给前一张卡。+- 跑马灯离开视口就暂停。++**各块用到的效果。**+- **Hero**(`sections/Hero.astro`,样式在 `home.css` 的"1 Hero"):+ - 四周留 8px 的圆角大卡片(手机 6px)。背景要克制、除顶部天空外全部静止,颜色只有很弱的变化(舞台换机器人时跟着微微变色,`--hero-hue` / `--hz-glow`),不用品牌黄绿、不加装饰图形:底色渐变(深色下顶上偏一点点夜空蓝)→ 一层很淡的中性顶光(顶上 160px 淡入,不在卡片顶边切出亮带)+ 顶部的天空(`Hero.astro` 里伪随机生成,标题背后稀一些,往下渐隐):深色是星空——约 340 颗冷白小星(少数偏蓝 / 偏暖,几颗亮星带一圈光),约五分之一慢慢闪,偶尔划过一颗流星;浅色是晴空——顶上很淡的冷灰 + 三朵很软的白云(纯 CSS,底下压一层极淡的中性灰影子,极慢地飘)+ 四十来个四角形的细小闪光(颜色跟着当前机器人的色调),约六成偶尔亮起、转一下再隐去,不放流星(见上面的例外)→ 舞台后面一层极淡的机器人色 → 一道巨大的弧形地平线托住窗口(整圈一线淡亮边、正中稍亮),上方一层很淡的光晕 → App 同款磨砂颗粒。不画线框、网格、点阵、放射光束。+ - 舞台的遮罩只负责把底边淡进地面;遮罩会裁掉盒子外的一切,所以 `.hstage` 往上多留了 `--bleed`(220px),窗口四周的光晕不会在舞台顶边被切平。倾斜的滚动进度挂在 `.hstage__devices` 上。+ - 文字居中一列:小胶囊(六个角色头像 + 一句话,链到"认识你的机器人")→ 标题 → 一句说明(两行以内)→ 下载 / 演示 → 三条要点(每条前面一个勾,颜色跟着当前机器人)。+ - 标题在 Hero 里放大一档(英 46–88、中 42–84)。中文逐字、英文逐词由虚变实升起;第一行是渐隐的渐变字,行尾蹲着会看指针、能戳的天天;关键词深色下是黄绿渐变字,浅色下改用当前机器人的颜色(深一档,跟着换幕渐变;黄绿在浅底上发脏),底下垫一团同色的光,字出齐后一道亮光从左到右扫过。不铺荧光底、不加下划线。+ - 间距只取 4px 尺度:胶囊 → 标题 24、标题 → 说明 24、说明 → 按钮 32、按钮 → 要点 24(手机 16 / 16 / 24 / 16)。+ - 舞台是一台照 App 原生界面(`ui/design`、`ui/css/shell.css`、`chat.css`)做的窗口:环境光 + 毛玻璃侧栏(红绿灯、搜索、机器人行、账户)+ 浮起的主面板(顶栏、气泡、"思考中 → 用时"、代码块、审批卡、文件卡)+ 玻璃输入框(权限、模型、发送)。App 的语义 token 抄在 `.hstage` 的 `--a-*` 上,深浅两套,字体也用 App 的系统字体。+ - 循环 18 秒三幕,每幕换一个机器人:天天聊天改代码 → 飞飞动手整理文件(要你批准)→ 芽芽回聊天软件里来的消息(右下角的手机同步)。侧栏选中行、顶栏、对话、输入框里的模型和窗口环境光(`--aura-hue`)跟着切换;机器人干活时侧栏亮绿点、发送钮变成停止。时间线和演示导览同一套(`scripts/tour.ts`:`data-steps` 切幕,`data-at` / `data-type` 出消息)。窗口往后仰,随滚动摆正。+ - 宽屏(≥1280px)两侧有流动卡片:左边的模型、任务、消息流进窗口,右边的结果、文件、记忆从窗口后面流出来(`data-flow` 写进度 `--k`)。+ - 按钮:指针移上去从底下升起一团高光,演示按钮再放大一点;下载按钮底下垫一层品牌色的光。+ - 文案求短:舞台里的字尽量复用演示导览、"能动手"、角色的文案,新增的在 `hero.stage`。+ - 入场(纯 CSS):地平线升起、光晕亮起 → 胶囊 → 标题一块块出来 → 天天弹出 → 说明、按钮、要点 → 窗口、手机升上来 → 两侧卡片淡入 → 关键词扫光。减少动态效果时舞台停在完成态(第三幕)、不放流动卡片;窄屏只留主面板。+- **章节头**:第一次进视口时细线从左画出,编号、标题、说明依次升起。+- **认识机器人**:样式不变,只随滚动升起来。+- **第 3–8 节的通用规矩**:版式照第 2 节——章节头 + 一张主持机器人底光的舞台卡;叙事照 bevel.health——短标题 + 一句话,然后一块会动的大示意。品牌黄绿只给主操作(下载、获取 Key),其余强调用机器人的颜色、压得很淡。+- **能动手 / 会记住**(`scripts/sections.ts` 的 story):+ - 桌面(≥1024、高 ≥700):左边两章各占大半屏依次滚过,当前那章亮、另一章淡;右边舞台卡吸顶换场(旧幕往上退、糊掉,新幕升上来),底光从飞飞的橙渐变到芽芽的绿;卡顶两个小标签能点。+ - 窄屏 / 无 JS:舞台卡拆开,每章文字下面跟着它自己的场景卡。+- **模型**(orbit):两圈压扁的椭圆轨道像行星环,外圈模型、内圈厂商反向慢转,转到前面的变大变亮、压在机器人前面(`sin()` / `cos()` + 注册过的 `--orb` 角度);当前在用的模型在环上亮起,点环上的模型就换它来答。舞台卡随滚动升起来;跑马灯离开视口就停。手机上只留对话演示。+ - **厂商标志**:外环模型、内环厂商、跑马灯、模型选择器的胶囊和分组标题前面都带厂商标志——用官方彩色版(`VendorSprite color`;OpenAI、Anthropic、xAI、Moonshot、TypeSafe 本来就是单色标志,跟着文字颜色走)。这一节只放有标志的厂商,不放快手(用户 2026-10-31 要求;完整的模型与价格在 /pricing)。标志取自 LobeHub Icons(`@lobehub/icons-static-svg`,MIT),生成在 `src/data/vendor-logos.ts`(`VENDOR_LOGOS` 单色、`VENDOR_LOGOS_COLOR` 彩色),整页只放一份图标表(`components/VendorSprite.astro`),各处用 `components/VendorLogo.astro` 引用;没有标志的厂商(比如"快手")在别处显示首字母小圆片,第 4 节里不出现。各标志是其所有者的商标,只用来标明模型出自哪家;来源写在 /licenses。价格快照里出现新厂商时,在 `scripts/vendor-logos.ts` 的 `FILES` 里加一行再重跑(用法见脚本开头)。+- **数据去向**:"你的设备"是一圈静止的淡绿边框;动的只有表示数据流向的两样——会走的虚线和走出边界的那颗小光点。+- **多端**(hub):竖排 tabs(↑ ↓ / Home / End);换入口时示意小图里的东西依次动起来,天天看过去、蹦一下。窄屏上清单变成一行可横滑的胶囊。+- **常见问题**:打开的那条铺成卡片,回答平滑展开(支持 `::details-content` 的浏览器)。+- **收尾横幅**:背景静止(顶光、星空、地平线都不动,只用中性色,全卡只有下载按钮是品牌色);卡片跟着页面主题走,不要写死 `data-theme="dark"`(浅色下会变成白卡白字);百叶窗从下往上拉开,底边的机器人跟着依次升上来。+- **页脚眼睛田**:动的都是机器人自己(醒来、眨眼、看你、探头、眯眼笑、换脑、打瞌睡),规则见上文"页面结构 · 页脚";没有背景动画、没有扩散的圈。++## 命令++```bash+npm install+npm run dev # 本地预览 http://localhost:4321(用已提交的价格快照,不联网抓取)+npm test # 单测:价格规则与计算器验收值、Eyes 目光数学、系统识别、i18n 工具、公告条+npm run check # zh / en 文案 key 一致、禁词扫描、图片与字体体积+npx astro check # 类型检查+npm run build:draft # 草稿构建:部署占位符只警告+npm run build # 生产构建:同步素材 → 抓价格 → 构建 → 禁词 → 站内链接 → 占位符(有残留即失败)+npm run fetch:pricing # 只更新价格快照(失败即退出码 1)+npm run releases # 从 GITHUB_URL 的最新 Release 生成 src/data/releases.json(下载直达 GitHub)+npm run releases:dir # 改为从 DOWNLOADS_DIR 里的安装包生成(自己提供下载时用)+npm run og # 重新生成 favicon / App 图标 / OG 图(Python + Pillow + Noto Sans SC)+npm run bots:avif # 从原图重新编码机器人精灵图的 AVIF 版(精灵图更新后跑;Python + numpy + Pillow)+npx tsx scripts/vendor-logos.ts <icons 目录> # 从 @lobehub/icons-static-svg 重新生成厂商标志(新厂商时跑,用法见脚本开头)+python3 -I scripts/preview-serve.py --port 18600 --directory <目录> # 预览用静态服务:gzip + 长连接 + 缓存头,同线上 nginx+```++## 部署(本机 Docker)++```bash+cp deploy/.env.example deploy/.env # 填域名、仓库地址、安全邮箱;统计和镜像名可选+docker compose -f deploy/compose.yml --env-file deploy/.env up -d --build+```++- `builder` 容器:启动时构建一次,之后每天 04:00(UTC+8)重新抓价格、重新构建;每次输出到共享卷的新目录,成功后原子切换 `current` 软链接,失败就继续用上一版(保留最近 3 版)。+- `web` 容器:nginx 只在 `127.0.0.1:${SITE_PORT:-18490}` 提供静态文件。+- 域名与证书走宿主机的 Caddy,分两步:+ 1. 先放只有 HTTP 的站点(`deploy/anymodelbot.Caddyfile.example`),带 `/.well-known/acme-challenge/` 给 certbot 验证用。宿主机 Caddy 关了自动 HTTPS(`auto_https off`)时,这一步不能引用还不存在的证书文件,否则整份 Caddy 配置校验失败,共用这个 Caddy 的其他站点也受影响。+ 2. 域名解析到本机后,用 certbot(webroot)签证书,换成 HTTPS 站点(HTTP 跳 HTTPS、www 跳主域名),校验整份配置、确认已有站点一个不少再 reload,并装上每天的续期任务(续期后 `caddy reload --force` 才会重新读取证书文件)。+- 下载数据不用手填:每次构建读 `GITHUB_URL` 的最新 Release,生成版本、发布日期、各平台下载地址(直达 GitHub)、SHA-256(取 Release 里的 `SHA256SUMS`)和大小;官网服务器不提供安装包下载。读取失败时这次不构建、继续用上一版;最新 Release 缺哪个平台,生产构建就会失败并提示。+- 部署值没填齐时可以先用 `SITE_BUILD=draft` 跑起来(页面上会留着 `{…}` 占位符)。++## 部署值++| 值 | 来源 |+|---|---|+| `SITE_DOMAIN`、`GITHUB_URL`、`SECURITY_EMAIL`、`ANALYTICS_SCRIPT_URL`、`ANALYTICS_SITE_ID`、`DOCKER_IMAGE` | `deploy/.env` |+| 版本、发布日期、各平台下载地址 / SHA-256 / 大小 | GitHub 最新 Release 自动生成(`scripts/releases-from-github.ts`;也可以手改 `src/data/releases.json`) |++统计用自托管的 Umami(无 Cookie、`data-do-not-track`);开发模式不加载统计脚本。++## 数据从哪来++- **价格**:构建时请求 `https://modelflare.dev/api/pricing`,用 `src/lib/pricing.ts` 算出默认线路价、分档、条件价线路和官方价(规则与 modelflare.dev/pricing 前端一致:有 `official_input_price` 用它,否则用基础价),写入 `src/data/pricing.snapshot.json`。抓取失败或数据异常时沿用快照,页面显示快照日期。+- **机器人**:`scripts/sync-from-app.ts` 从 `../ui/design/bots/*.webp` 复制精灵图、从 `../THIRD_PARTY_NOTICES.md` 同步许可(Docker 构建上下文里没有应用目录,用已提交的副本);几何(`src/lib/bots.ts`)与 `../ui/components/avatar.js` 的 `BOT_CHARS` 不一致时会警告。头像样式 `src/styles/bots.css` 移植自 `../ui/design/components/avatar.css`。+ - 精灵图另有同分辨率的 AVIF 版(`public/bots/*.avif`,约为 WebP 的一半),支持的浏览器经 `image-set()` 优先用它,其他照旧用 WebP。AVIF 必须从原图编码(`npm run bots:avif`:重跑 `../scripts/build-bot-avatars.py --png` 拿无损精灵图,q58 的画质按 PSNR 不低于 WebP q86),不能拿 WebP 再转。生成时把对应 WebP 的哈希记在 `src/data/bots-avif.json`;WebP 更新了而 AVIF 没重做,`check-images` 会失败。+- **演示**:Hero 的"看演示"和"它能动手"都是动画(`src/components/DemoTour.astro`、`src/scripts/tour.ts`),不依赖视频文件。"看演示"点开就自动轮播、播完从头循环,没有播放 / 暂停 / 翻页按钮,底部进度条可点跳步。+- **文案**:`src/i18n/zh.ts`(源语言)与 `en.ts`,页面里不写死文案。例外是两种语言内容本来就不同的:聊天渠道(`src/data/channels.ts`)和公告(`src/data/announcements.ts`),各写各的,禁词扫描同样覆盖 `src/data`。diff --git a/site/astro.config.mjs b/site/astro.config.mjsnew file mode 100644index 0000000..30d13b8--- /dev/null+++ b/site/astro.config.mjs@@ -0,0 +1,11 @@+import { defineConfig } from "astro/config";+import preact from "@astrojs/preact";++// 纯静态输出;站点域名只在页面里用占位符 {SITE_DOMAIN} 拼出来(见 src/lib/site.ts),这里不设 site。+export default defineConfig({+ output: "static",+ trailingSlash: "ignore",+ build: { format: "directory", inlineStylesheets: "auto" },+ integrations: [preact()],+ devToolbar: { enabled: false },+});diff --git a/site/deploy/.env.example b/site/deploy/.env.examplenew file mode 100644index 0000000..ecc1ccb--- /dev/null+++ b/site/deploy/.env.example@@ -0,0 +1,15 @@+# 官网部署值(docker compose --env-file deploy/.env)+SITE_DOMAIN=anymodel.bot+GITHUB_URL=https://github.com/modelflare-ai/AnyModelBot+# 自托管 Umami(可选;留空则不加载统计脚本)+ANALYTICS_SCRIPT_URL=+ANALYTICS_SITE_ID=+# 应用的 Docker 镜像(页面上的 docker run 命令用它);留空则显示"从源码构建"的命令+DOCKER_IMAGE=+# 可选:GitHub API 令牌。下载数据每天从 GITHUB_URL 的最新 Release 读一次,匿名请求就够+GITHUB_TOKEN=+# 本机端口(只绑 127.0.0.1,由宿主机 Caddy 反代)+SITE_PORT=18490+# production:部署值缺失时构建失败、继续用上一版;draft:先跑起来,页面上留占位符+SITE_BUILD=productiondiff --git a/site/deploy/anymodelbot.Caddyfile.example b/site/deploy/anymodelbot.Caddyfile.examplenew file mode 100644index 0000000..eac9796--- /dev/null+++ b/site/deploy/anymodelbot.Caddyfile.example@@ -0,0 +1,14 @@+# 第 1 阶段:放进宿主机 Caddy 会 import 的站点目录(例如 /etc/caddy/sites.d/),然后 reload Caddy。+# 宿主机 Caddy 关了自动 HTTPS(auto_https off)时,证书用 certbot(webroot,目录同下)签发:域名解析到本机之后再签,+# 签好后把站点换成 HTTPS 版本(HTTP 跳 HTTPS、www 跳主域名)。+# 这里不能引用还不存在的证书文件:整份 Caddy 配置校验失败的话,共用这个 Caddy 的其他站点也受影响。+anymodel.bot:80, www.anymodel.bot:80 {+ handle /.well-known/acme-challenge/* {+ root * /var/lib/anymodelbot/acme+ file_server+ }+ handle {+ header -Server+ reverse_proxy 127.0.0.1:18490+ }+}diff --git a/site/deploy/builder.mjs b/site/deploy/builder.mjsnew file mode 100644index 0000000..13c9213--- /dev/null+++ b/site/deploy/builder.mjs@@ -0,0 +1,62 @@+// 构建器主循环(容器内运行):+// 启动时构建一次 → 每天 04:00(UTC+8)再构建一次(价格每日刷新)。+// 每次构建输出到 /srv/site/builds/<时间戳>,成功后把 /srv/site/current 这个软链接原子地换过去;失败则继续用上一版。+// 只保留最近 3 版。SITE_BUILD=draft 时用草稿构建(部署值没填齐时也能先跑起来,页面上会留着占位符)。+import { spawn } from "node:child_process";+import fs from "node:fs";+import path from "node:path";++const OUT = process.env.SITE_OUT || "/srv/site";+const KEEP = 3;+const mode = process.env.SITE_BUILD === "draft" ? "build:draft" : "build";+const log = (...a) => console.log(new Date().toISOString(), ...a);++function run(cmd, args) {+ return new Promise((resolve) => {+ const p = spawn(cmd, args, { stdio: "inherit", env: process.env });+ p.on("exit", (code) => resolve(code === 0));+ });+}++async function build() {+ log(`开始构建(npm run ${mode})`);+ // 下载数据:默认读 GitHub 最新 Release(安装包由 GitHub 提供下载);配了 DOWNLOADS_DIR 才改为读本机安装包目录+ const releases = process.env.DOWNLOADS_DIR ? "scripts/releases-from-dir.ts" : process.env.GITHUB_URL ? "scripts/releases-from-github.ts" : "";+ if (releases && !(await run("npx", ["tsx", releases]))) {+ log("生成 releases.json 失败,本次不构建");+ return;+ }+ if (!(await run("npm", ["run", mode]))) {+ log("构建失败,继续使用上一版");+ return;+ }+ const id = new Date().toISOString().replace(/[-:]/g, "").replace(/\..*/, "Z");+ const dir = path.join(OUT, "builds", id);+ fs.mkdirSync(path.dirname(dir), { recursive: true });+ fs.cpSync("dist", dir, { recursive: true });+ const tmp = path.join(OUT, `current.${process.pid}`);+ fs.rmSync(tmp, { force: true });+ fs.symlinkSync(path.join("builds", id), tmp);+ fs.renameSync(tmp, path.join(OUT, "current")); // rename 覆盖旧软链接是原子的+ const old = fs.readdirSync(path.dirname(dir)).sort().slice(0, -KEEP);+ for (const o of old) fs.rmSync(path.join(path.dirname(dir), o), { recursive: true, force: true });+ log(`已上线 builds/${id}`);+}++/** 距下一个 04:00(UTC+8,即 UTC 20:00)的毫秒数 */+function untilNextRun(now = new Date()) {+ const next = new Date(now);+ next.setUTCHours(20, 0, 0, 0);+ if (next <= now) next.setUTCDate(next.getUTCDate() + 1);+ return next - now;+}++let timer;+async function loop() {+ await build();+ const ms = untilNextRun();+ log(`下次构建在 ${Math.round(ms / 60000)} 分钟后`);+ timer = setTimeout(loop, ms);+}+for (const sig of ["SIGTERM", "SIGINT"]) process.on(sig, () => { clearTimeout(timer); process.exit(0); });+loop();diff --git a/site/deploy/compose.yml b/site/deploy/compose.ymlnew file mode 100644index 0000000..c317fe4--- /dev/null+++ b/site/deploy/compose.yml@@ -0,0 +1,32 @@+# 在本机部署官网:+# cp deploy/.env.example deploy/.env # 填部署值+# docker compose -f deploy/compose.yml --env-file deploy/.env up -d --build+# 然后把 deploy/anymodelbot.Caddyfile.example 按域名改好放进 /etc/caddy/sites.d/ 并 reload Caddy。+name: anymodelbot-site+services:+ builder:+ build: ..+ restart: unless-stopped+ environment:+ SITE_BUILD: ${SITE_BUILD:-production}+ SITE_DOMAIN: ${SITE_DOMAIN:-}+ GITHUB_URL: ${GITHUB_URL:-}+ SECURITY_EMAIL: ${SECURITY_EMAIL:-}+ ANALYTICS_SCRIPT_URL: ${ANALYTICS_SCRIPT_URL:-}+ ANALYTICS_SITE_ID: ${ANALYTICS_SITE_ID:-}+ DOCKER_IMAGE: ${DOCKER_IMAGE:-}+ GITHUB_TOKEN: ${GITHUB_TOKEN:-}+ TZ: Asia/Shanghai+ volumes:+ - site:/srv/site+ web:+ image: nginx:1.27-alpine+ restart: unless-stopped+ depends_on: [builder]+ ports:+ - "127.0.0.1:${SITE_PORT:-18490}:8080"+ volumes:+ - site:/srv/site:ro+ - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro+volumes:+ site:diff --git a/site/deploy/nginx.conf b/site/deploy/nginx.confnew file mode 100644index 0000000..a1d4607--- /dev/null+++ b/site/deploy/nginx.conf@@ -0,0 +1,36 @@+# 官网静态文件。TLS、压缩策略、域名由宿主机的 Caddy(/etc/caddy/sites.d)负责,这里只在容器内 8080 提供文件。+server {+ listen 8080;+ server_name _;+ root /srv/site/current;+ absolute_redirect off;+ server_tokens off;+ charset utf-8;++ # 默认等级 1 太松:首页 HTML(大量重复的机器人眼睛 SVG)等级 1 是 49 KB,6 是 37 KB。+ # 这里压过之后 Caddy 的 encode 会原样转发,所以等级要在这里给够+ gzip on;+ gzip_comp_level 6;+ gzip_min_length 256;+ gzip_vary on;+ gzip_types text/css application/javascript text/javascript application/json image/svg+xml application/xml text/plain application/manifest+json;++ add_header X-Content-Type-Options "nosniff" always;+ add_header Referrer-Policy "strict-origin-when-cross-origin" always;++ # 带哈希的构建产物与字体:长缓存+ location /_astro/ { add_header Cache-Control "public, max-age=31536000, immutable"; add_header X-Content-Type-Options "nosniff" always; }+ location /fonts/ { add_header Cache-Control "public, max-age=31536000, immutable"; add_header X-Content-Type-Options "nosniff" always; }+ # 机器人精灵图(.webp / .avif):文件名不带哈希,但只在角色重画时才变,缓存一天(过期后用 Last-Modified 重新验证)+ location /bots/ { add_header Cache-Control "public, max-age=86400"; add_header X-Content-Type-Options "nosniff" always; }++ # 页面:价格每天更新,短缓存+ location / {+ try_files $uri $uri/index.html $uri.html =404;+ add_header Cache-Control "public, max-age=300";+ add_header X-Content-Type-Options "nosniff" always;+ add_header Referrer-Policy "strict-origin-when-cross-origin" always;+ }+ error_page 404 /404.html;+ location = /404.html { internal; }+}diff --git a/site/package-lock.json b/site/package-lock.jsonnew file mode 100644index 0000000..1a6f628--- /dev/null+++ b/site/package-lock.json@@ -0,0 +1,9121 @@+{+ "name": "anymodelbot-site",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "anymodelbot-site",+ "license": "MIT",+ "dependencies": {+ "@astrojs/preact": "4.1.3",+ "astro": "5.18.2",+ "preact": "10.27.2",+ "zod": "3.25.76"+ },+ "devDependencies": {+ "@astrojs/check": "0.9.12",+ "@types/node": "22.18.12",+ "geist": "1.5.1",+ "playwright-core": "1.64.0",+ "tsx": "4.20.6",+ "typescript": "5.9.3",+ "vitest": "3.2.7"+ },+ "engines": {+ "node": ">=22.13"+ }+ },+ "node_modules/@astrojs/astro2tsx": {+ "version": "0.1.3",+ "resolved": "https://registry.npmjs.org/@astrojs/astro2tsx/-/astro2tsx-0.1.3.tgz",+ "integrity": "sha512-GMDC7Eo0myBUA/QLBl0u+OcegJ8LiBhccmNZR34KmprQNP8gQUJlWlOOZWUsxNA2rNS6GuPYcGDyLoPnjmn4/Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@emnapi/core": "1.11.3",+ "@napi-rs/wasm-runtime": "1.2.4"+ },+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@astrojs/check": {+ "version": "0.9.12",+ "resolved": "https://registry.npmjs.org/@astrojs/check/-/check-0.9.12.tgz",+ "integrity": "sha512-hazpqxIfZWj2VhyPyR0pOEQ/IhFDM/2nIApL96zMXABdD8NrUKYDmhxTy7h+drTDl9MQG/Sd1ET/4amadVJUUA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@astrojs/language-server": "^2.17.3",+ "chokidar": "^5.0.0",+ "kleur": "^4.1.5",+ "yargs": "^18.2.0"+ },+ "bin": {+ "astro-check": "bin/astro-check.js"+ },+ "peerDependencies": {+ "typescript": "^5.0.0 || ^6.0.0"+ }+ },+ "node_modules/@astrojs/check/node_modules/kleur": {+ "version": "4.1.5",+ "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz",+ "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/@astrojs/compiler": {+ "version": "2.13.1",+ "resolved": "https://registry.npmjs.org/@astrojs/compiler/-/compiler-2.13.1.tgz",+ "integrity": "sha512-f3FN83d2G/v32ipNClRKgYv30onQlMZX1vCeZMjPsMMPl1mDpmbl0+N5BYo4S/ofzqJyS5hvwacEo0CCVDn/Qg==",+ "license": "MIT"+ },+ "node_modules/@astrojs/internal-helpers": {+ "version": "0.7.6",+ "resolved": "https://registry.npmjs.org/@astrojs/internal-helpers/-/internal-helpers-0.7.6.tgz",+ "integrity": "sha512-GOle7smBWKfMSP8osUIGOlB5kaHdQLV3foCsf+5Q9Wsuu+C6Fs3Ez/ttXmhjZ1HkSgsogcM1RXSjjOVieHq16Q==",+ "license": "MIT"+ },+ "node_modules/@astrojs/language-server": {+ "version": "2.17.3",+ "resolved": "https://registry.npmjs.org/@astrojs/language-server/-/language-server-2.17.3.tgz",+ "integrity": "sha512-QIAFu1e/4quJMTPdmBOm+ZPXc5NDGZE4/YQjgR3EgjhGLl/tdidaWJDr5WmO2lesVc+BW1qN/xNBURmuePDG2A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@astrojs/astro2tsx": "^0.1.2",+ "@astrojs/yaml2ts": "^0.2.4",+ "@volar/kit": "~2.4.28",+ "@volar/language-core": "~2.4.28",+ "@volar/language-server": "~2.4.28",+ "@volar/language-service": "~2.4.28",+ "muggle-string": "^0.4.1",+ "tinyglobby": "^0.2.17",+ "volar-service-css": "0.0.71",+ "volar-service-emmet": "0.0.71",+ "volar-service-html": "0.0.71",+ "volar-service-prettier": "0.0.71",+ "volar-service-typescript": "0.0.71",+ "volar-service-typescript-twoslash-queries": "0.0.71",+ "volar-service-yaml": "0.0.71",+ "vscode-html-languageservice": "^5.6.2",+ "vscode-uri": "^3.2.0"+ },+ "bin": {+ "astro-ls": "bin/nodeServer.js"+ },+ "peerDependencies": {+ "prettier": "^3.0.0",+ "prettier-plugin-astro": ">=0.11.0"+ },+ "peerDependenciesMeta": {+ "prettier": {+ "optional": true+ },+ "prettier-plugin-astro": {+ "optional": true+ }+ }+ },+ "node_modules/@astrojs/markdown-remark": {+ "version": "6.3.11",+ "resolved": "https://registry.npmjs.org/@astrojs/markdown-remark/-/markdown-remark-6.3.11.tgz",+ "integrity": "sha512-hcaxX/5aC6lQgHeGh1i+aauvSwIT6cfyFjKWvExYSxUhZZBBdvCliOtu06gbQyhbe0pGJNoNmqNlQZ5zYUuIyQ==",+ "license": "MIT",+ "dependencies": {+ "@astrojs/internal-helpers": "0.7.6",+ "@astrojs/prism": "3.3.0",+ "github-slugger": "^2.0.0",+ "hast-util-from-html": "^2.0.3",+ "hast-util-to-text": "^4.0.2",+ "import-meta-resolve": "^4.2.0",+ "js-yaml": "^4.1.1",+ "mdast-util-definitions": "^6.0.0",+ "rehype-raw": "^7.0.0",+ "rehype-stringify": "^10.0.1",+ "remark-gfm": "^4.0.1",+ "remark-parse": "^11.0.0",+ "remark-rehype": "^11.1.2",+ "remark-smartypants": "^3.0.2",+ "shiki": "^3.21.0",+ "smol-toml": "^1.6.0",+ "unified": "^11.0.5",+ "unist-util-remove-position": "^5.0.0",+ "unist-util-visit": "^5.0.0",+ "unist-util-visit-parents": "^6.0.2",+ "vfile": "^6.0.3"+ }+ },+ "node_modules/@astrojs/preact": {+ "version": "4.1.3",+ "resolved": "https://registry.npmjs.org/@astrojs/preact/-/preact-4.1.3.tgz",+ "integrity": "sha512-Ph416wbgyumkmYr7erZ83l/d+LXdZethlHRRCbgoKEn8wo3Rkq13shKFp0QYXYSDYxVaA6UBdkdimeowy/lMLQ==",+ "license": "MIT",+ "dependencies": {+ "@preact/preset-vite": "^2.10.2",+ "@preact/signals": "^2.3.1",+ "preact-render-to-string": "^6.6.1",+ "vite": "^6.4.1"+ },+ "engines": {+ "node": "18.20.8 || ^20.3.0 || >=22.0.0"+ },+ "peerDependencies": {+ "preact": "^10.6.5"+ }+ },+ "node_modules/@astrojs/prism": {+ "version": "3.3.0",+ "resolved": "https://registry.npmjs.org/@astrojs/prism/-/prism-3.3.0.tgz",+ "integrity": "sha512-q8VwfU/fDZNoDOf+r7jUnMC2//H2l0TuQ6FkGJL8vD8nw/q5KiL3DS1KKBI3QhI9UQhpJ5dc7AtqfbXWuOgLCQ==",+ "license": "MIT",+ "dependencies": {+ "prismjs": "^1.30.0"+ },+ "engines": {+ "node": "18.20.8 || ^20.3.0 || >=22.0.0"+ }+ },+ "node_modules/@astrojs/telemetry": {+ "version": "3.3.0",+ "resolved": "https://registry.npmjs.org/@astrojs/telemetry/-/telemetry-3.3.0.tgz",+ "integrity": "sha512-UFBgfeldP06qu6khs/yY+q1cDAaArM2/7AEIqQ9Cuvf7B1hNLq0xDrZkct+QoIGyjq56y8IaE2I3CTvG99mlhQ==",+ "license": "MIT",+ "dependencies": {+ "ci-info": "^4.2.0",+ "debug": "^4.4.0",+ "dlv": "^1.1.3",+ "dset": "^3.1.4",+ "is-docker": "^3.0.0",+ "is-wsl": "^3.1.0",+ "which-pm-runs": "^1.1.0"+ },+ "engines": {+ "node": "18.20.8 || ^20.3.0 || >=22.0.0"+ }+ },+ "node_modules/@astrojs/yaml2ts": {+ "version": "0.2.4",+ "resolved": "https://registry.npmjs.org/@astrojs/yaml2ts/-/yaml2ts-0.2.4.tgz",+ "integrity": "sha512-8oddpOae35pJsXPQXhTkM0ypfKPskVsh2bCxRtbf7e+/Epw2nReakFYpLKjZMEr75CsoF203PMnCocpfz0s69A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "yaml": "^2.8.3"+ }+ },+ "node_modules/@babel/code-frame": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz",+ "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==",+ "license": "MIT",+ "dependencies": {+ "@babel/helper-validator-identifier": "^7.29.7",+ "js-tokens": "^4.0.0",+ "picocolors": "^1.1.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/compat-data": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz",+ "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==",+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/core": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz",+ "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==",+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.7",+ "@babel/generator": "^7.29.7",+ "@babel/helper-compilation-targets": "^7.29.7",+ "@babel/helper-module-transforms": "^7.29.7",+ "@babel/helpers": "^7.29.7",+ "@babel/parser": "^7.29.7",+ "@babel/template": "^7.29.7",+ "@babel/traverse": "^7.29.7",+ "@babel/types": "^7.29.7",+ "@jridgewell/remapping": "^2.3.5",+ "convert-source-map": "^2.0.0",+ "debug": "^4.1.0",+ "gensync": "^1.0.0-beta.2",+ "json5": "^2.2.3",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/babel"+ }+ },+ "node_modules/@babel/generator": {+ "version": "7.29.12",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.12.tgz",+ "integrity": "sha512-2W76mhjrpQFO1lK5e8IvGYB2D0YZ7S2R1Z2BjO2ZUYuW+amcpK/z60U6ZZmzskwoa7sJ6XohP/Wg8H5KxXI/IA==",+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.29.12",+ "@babel/types": "^7.29.11",+ "@jridgewell/gen-mapping": "^0.3.12",+ "@jridgewell/trace-mapping": "^0.3.28",+ "jsesc": "^3.0.2"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-annotate-as-pure": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.29.7.tgz",+ "integrity": "sha512-OoK6239jHPuSQOoS0kfTVKn0b/rVTk0seKq4Gd2UMLtmOVLjDC0ki3e+c90Trqv2gMfvJFqkiljrr568+qddiw==",+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-compilation-targets": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz",+ "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==",+ "license": "MIT",+ "dependencies": {+ "@babel/compat-data": "^7.29.7",+ "@babel/helper-validator-option": "^7.29.7",+ "browserslist": "^4.24.0",+ "lru-cache": "^5.1.1",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-globals": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz",+ "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==",+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-imports": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz",+ "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==",+ "license": "MIT",+ "dependencies": {+ "@babel/traverse": "^7.29.7",+ "@babel/types": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-transforms": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz",+ "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==",+ "license": "MIT",+ "dependencies": {+ "@babel/helper-module-imports": "^7.29.7",+ "@babel/helper-validator-identifier": "^7.29.7",+ "@babel/traverse": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "node_modules/@babel/helper-plugin-utils": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz",+ "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==",+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-string-parser": {+ "version": "7.29.11",+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.11.tgz",+ "integrity": "sha512-snZbO7MEDOof+hvNa97EjEY7qD7h2kwvQr5AJC3ZhQudKW5dnej6k3kP9NQV88hJwaS8vDqRLFo9rivLEhle2g==",+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-identifier": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",+ "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==",+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-option": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz",+ "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==",+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helpers": {+ "version": "7.29.10",+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.10.tgz",+ "integrity": "sha512-EMCx3AGZ3WfAl6ht7AyQoPm2Lh+BGYEMdc4Q6Hf7uSCDOZFuLq44qNwL+iaim8VlyYhRAo4X43+weadK8ZB4Yg==",+ "license": "MIT",+ "dependencies": {+ "@babel/template": "^7.29.7",+ "@babel/types": "^7.29.8"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/parser": {+ "version": "7.29.12",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.12.tgz",+ "integrity": "sha512-WJ7JBp/Q4+z/ImydtI7jS6NVco5++632ExBemSX+Ysb+G1lCwQ5BVo3SY+jGGOcZXI4ZccbZSUSJLNBW6eEpJg==",+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.29.11"+ },+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/plugin-syntax-jsx": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.29.7.tgz",+ "integrity": "sha512-TSu8+mHCoEaaCDEZ0I3+6mvTBYR4PCxQwf2z9/r5Tbztv6NaLR3B9thGTTxX2WGuGHJqRiAbKPeGTJ5XWXVg6A==",+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "node_modules/@babel/plugin-transform-react-jsx": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.29.7.tgz",+ "integrity": "sha512-WsZulLVBUHXVj2cUcPVx6UE21TpalB6bHbSFErKT0Ib++ax24jjXe73FqlWvdylFOjiuPHYi6VCcgRad1ItN+A==",+ "license": "MIT",+ "dependencies": {+ "@babel/helper-annotate-as-pure": "^7.29.7",+ "@babel/helper-module-imports": "^7.29.7",+ "@babel/helper-plugin-utils": "^7.29.7",+ "@babel/plugin-syntax-jsx": "^7.29.7",+ "@babel/types": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "node_modules/@babel/plugin-transform-react-jsx-development": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.29.7.tgz",+ "integrity": "sha512-Xfy3UVMF04+ypnFbkhvfqtmvwfe92qwQdbGZVonhE+6v35GzlofmOnA1szaZqzb9xYWr0nl1e5EMmzi0DNON1g==",+ "license": "MIT",+ "dependencies": {+ "@babel/plugin-transform-react-jsx": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "node_modules/@babel/template": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz",+ "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==",+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.7",+ "@babel/parser": "^7.29.7",+ "@babel/types": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/traverse": {+ "version": "7.29.12",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.12.tgz",+ "integrity": "sha512-MscXe/NAZcOkYEsRajHZFt3ynsb22PUi6CTrp5U7+RYycR9By84mn9mFN54YgfITiqK4hFx3Ju3tZSyzfpS5ew==",+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.7",+ "@babel/generator": "^7.29.12",+ "@babel/helper-globals": "^7.29.7",+ "@babel/parser": "^7.29.12",+ "@babel/template": "^7.29.7",+ "@babel/types": "^7.29.11",+ "debug": "^4.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/types": {+ "version": "7.29.11",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.11.tgz",+ "integrity": "sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==",+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^7.29.11",+ "@babel/helper-validator-identifier": "^7.29.7"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@capsizecss/unpack": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/@capsizecss/unpack/-/unpack-4.0.1.tgz",+ "integrity": "sha512-CuNiSqg7+e1cO/GjffyMOm5Tt2jUF9CWHHnvQ/UkqvtkGfHdgwEC0wpmq7fkN3gxwpRnrAN0WzO3vREKmNolMQ==",+ "license": "MIT",+ "dependencies": {+ "fontkitten": "^1.0.3"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@emmetio/abbreviation": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/@emmetio/abbreviation/-/abbreviation-2.3.3.tgz",+ "integrity": "sha512-mgv58UrU3rh4YgbE/TzgLQwJ3pFsHHhCLqY20aJq+9comytTXUDNGG/SMtSeMJdkpxgXSXunBGLD8Boka3JyVA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@emmetio/scanner": "^1.0.4"+ }+ },+ "node_modules/@emmetio/css-abbreviation": {+ "version": "2.1.8",+ "resolved": "https://registry.npmjs.org/@emmetio/css-abbreviation/-/css-abbreviation-2.1.8.tgz",+ "integrity": "sha512-s9yjhJ6saOO/uk1V74eifykk2CBYi01STTK3WlXWGOepyKa23ymJ053+DNQjpFcy1ingpaO7AxCcwLvHFY9tuw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@emmetio/scanner": "^1.0.4"+ }+ },+ "node_modules/@emmetio/css-parser": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/@emmetio/css-parser/-/css-parser-0.4.1.tgz",+ "integrity": "sha512-2bC6m0MV/voF4CTZiAbG5MWKbq5EBmDPKu9Sb7s7nVcEzNQlrZP6mFFFlIaISM8X6514H9shWMme1fCm8cWAfQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@emmetio/stream-reader": "^2.2.0",+ "@emmetio/stream-reader-utils": "^0.1.0"+ }+ },+ "node_modules/@emmetio/html-matcher": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@emmetio/html-matcher/-/html-matcher-1.3.0.tgz",+ "integrity": "sha512-NTbsvppE5eVyBMuyGfVu2CRrLvo7J4YHb6t9sBFLyY03WYhXET37qA4zOYUjBWFCRHO7pS1B9khERtY0f5JXPQ==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "@emmetio/scanner": "^1.0.0"+ }+ },+ "node_modules/@emmetio/scanner": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/@emmetio/scanner/-/scanner-1.0.4.tgz",+ "integrity": "sha512-IqRuJtQff7YHHBk4G8YZ45uB9BaAGcwQeVzgj/zj8/UdOhtQpEIupUhSk8dys6spFIWVZVeK20CzGEnqR5SbqA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@emmetio/stream-reader": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@emmetio/stream-reader/-/stream-reader-2.2.0.tgz",+ "integrity": "sha512-fXVXEyFA5Yv3M3n8sUGT7+fvecGrZP4k6FnWWMSZVQf69kAq0LLpaBQLGcPR30m3zMmKYhECP4k/ZkzvhEW5kw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@emmetio/stream-reader-utils": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/@emmetio/stream-reader-utils/-/stream-reader-utils-0.1.0.tgz",+ "integrity": "sha512-ZsZ2I9Vzso3Ho/pjZFsmmZ++FWeEd/txqybHTm4OgaZzdS8V9V/YYWQwg5TC38Z7uLWUV1vavpLLbjJtKubR1A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@emnapi/core": {+ "version": "1.11.3",+ "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.3.tgz",+ "integrity": "sha512-zLpS5asjEb7lq8jYLq37N6XKaE41DIexlY1rF/z4/tIl3wo13Sqm28fRyfIsKZD+NZ8mM5RoKkpW/rBcuoSZSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@emnapi/wasi-threads": "1.2.3",+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@emnapi/runtime": {+ "version": "1.11.3",+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz",+ "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==",+ "devOptional": true,+ "license": "MIT",+ "dependencies": {+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@emnapi/wasi-threads": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.3.tgz",+ "integrity": "sha512-ELEBe8PsLvvJ6QMr0zLt8ffvOHW/dc1m3CEzNMg7aJUv3bMaoDtw2TXyDAwkYBuroxxuHEwhRTLJSe5sya547g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz",+ "integrity": "sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==",+ "cpu": [+ "ppc64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.7.tgz",+ "integrity": "sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==",+ "cpu": [+ "arm"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.7.tgz",+ "integrity": "sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.7.tgz",+ "integrity": "sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.7.tgz",+ "integrity": "sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.7.tgz",+ "integrity": "sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.7.tgz",+ "integrity": "sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.7.tgz",+ "integrity": "sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.7.tgz",+ "integrity": "sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==",+ "cpu": [+ "arm"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.7.tgz",+ "integrity": "sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.7.tgz",+ "integrity": "sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==",+ "cpu": [+ "ia32"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.7.tgz",+ "integrity": "sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==",+ "cpu": [+ "loong64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.7.tgz",+ "integrity": "sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==",+ "cpu": [+ "mips64el"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.7.tgz",+ "integrity": "sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==",+ "cpu": [+ "ppc64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.7.tgz",+ "integrity": "sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==",+ "cpu": [+ "riscv64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.7.tgz",+ "integrity": "sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==",+ "cpu": [+ "s390x"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.7.tgz",+ "integrity": "sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-arm64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.7.tgz",+ "integrity": "sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.7.tgz",+ "integrity": "sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-arm64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.7.tgz",+ "integrity": "sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.7.tgz",+ "integrity": "sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openharmony-arm64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.7.tgz",+ "integrity": "sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.7.tgz",+ "integrity": "sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.7.tgz",+ "integrity": "sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.7.tgz",+ "integrity": "sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==",+ "cpu": [+ "ia32"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.7.tgz",+ "integrity": "sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@img/colour": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz",+ "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==",+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@img/sharp-darwin-arm64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.5.tgz",+ "integrity": "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==",+ "cpu": [+ "arm64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-darwin-arm64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-darwin-x64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.34.5.tgz",+ "integrity": "sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==",+ "cpu": [+ "x64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-darwin-x64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-freebsd-wasm32": {+ "version": "0.35.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.5.tgz",+ "integrity": "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==",+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "peer": true,+ "dependencies": {+ "@img/sharp-wasm32": "0.35.5"+ },+ "engines": {+ "node": ">=20.9.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-freebsd-wasm32/node_modules/@img/sharp-wasm32": {+ "version": "0.35.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz",+ "integrity": "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==",+ "dev": true,+ "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "@emnapi/runtime": "^1.11.3"+ },+ "engines": {+ "node": ">=20.9.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-libvips-darwin-arm64": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.2.4.tgz",+ "integrity": "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==",+ "cpu": [+ "arm64"+ ],+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "darwin"+ ],+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-libvips-darwin-x64": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.2.4.tgz",+ "integrity": "sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==",+ "cpu": [+ "x64"+ ],+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "darwin"+ ],+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-libvips-linux-arm": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.2.4.tgz",+ "integrity": "sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==",+ "cpu": [+ "arm"+ ],+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-libvips-linux-arm64": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.2.4.tgz",+ "integrity": "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==",+ "cpu": [+ "arm64"+ ],+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-libvips-linux-ppc64": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.2.4.tgz",+ "integrity": "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==",+ "cpu": [+ "ppc64"+ ],+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-libvips-linux-riscv64": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.2.4.tgz",+ "integrity": "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==",+ "cpu": [+ "riscv64"+ ],+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-libvips-linux-s390x": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.2.4.tgz",+ "integrity": "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==",+ "cpu": [+ "s390x"+ ],+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-libvips-linux-x64": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.2.4.tgz",+ "integrity": "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==",+ "cpu": [+ "x64"+ ],+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-libvips-linuxmusl-arm64": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.2.4.tgz",+ "integrity": "sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==",+ "cpu": [+ "arm64"+ ],+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-libvips-linuxmusl-x64": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.2.4.tgz",+ "integrity": "sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==",+ "cpu": [+ "x64"+ ],+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-linux-arm": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.34.5.tgz",+ "integrity": "sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==",+ "cpu": [+ "arm"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linux-arm": "1.2.4"+ }+ },+ "node_modules/@img/sharp-linux-arm64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.34.5.tgz",+ "integrity": "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==",+ "cpu": [+ "arm64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linux-arm64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-linux-ppc64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.34.5.tgz",+ "integrity": "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==",+ "cpu": [+ "ppc64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linux-ppc64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-linux-riscv64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.34.5.tgz",+ "integrity": "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==",+ "cpu": [+ "riscv64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linux-riscv64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-linux-s390x": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.34.5.tgz",+ "integrity": "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==",+ "cpu": [+ "s390x"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linux-s390x": "1.2.4"+ }+ },+ "node_modules/@img/sharp-linux-x64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.34.5.tgz",+ "integrity": "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==",+ "cpu": [+ "x64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linux-x64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-linuxmusl-arm64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.34.5.tgz",+ "integrity": "sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==",+ "cpu": [+ "arm64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linuxmusl-arm64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-linuxmusl-x64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.34.5.tgz",+ "integrity": "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==",+ "cpu": [+ "x64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linuxmusl-x64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-wasm32": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.34.5.tgz",+ "integrity": "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==",+ "cpu": [+ "wasm32"+ ],+ "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",+ "optional": true,+ "dependencies": {+ "@emnapi/runtime": "^1.7.0"+ },+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-webcontainers-wasm32": {+ "version": "0.35.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.5.tgz",+ "integrity": "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==",+ "cpu": [+ "wasm32"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "peer": true,+ "dependencies": {+ "@img/sharp-wasm32": "0.35.5"+ },+ "engines": {+ "node": ">=20.9.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-webcontainers-wasm32/node_modules/@img/sharp-wasm32": {+ "version": "0.35.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz",+ "integrity": "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==",+ "dev": true,+ "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",+ "optional": true,+ "peer": true,+ "dependencies": {+ "@emnapi/runtime": "^1.11.3"+ },+ "engines": {+ "node": ">=20.9.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-win32-arm64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.34.5.tgz",+ "integrity": "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==",+ "cpu": [+ "arm64"+ ],+ "license": "Apache-2.0 AND LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-win32-ia32": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.34.5.tgz",+ "integrity": "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==",+ "cpu": [+ "ia32"+ ],+ "license": "Apache-2.0 AND LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-win32-x64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.34.5.tgz",+ "integrity": "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==",+ "cpu": [+ "x64"+ ],+ "license": "Apache-2.0 AND LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.13",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.0",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "node_modules/@jridgewell/remapping": {+ "version": "2.3.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",+ "license": "MIT",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.5",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz",+ "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==",+ "license": "MIT"+ },+ "node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.31",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",+ "license": "MIT",+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.1.0",+ "@jridgewell/sourcemap-codec": "^1.4.14"+ }+ },+ "node_modules/@napi-rs/lzma-linux-x64-gnu": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-x64-gnu/-/lzma-linux-x64-gnu-1.5.1.tgz",+ "integrity": "sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^22.20 || ^24.12 || >=25"+ }+ },+ "node_modules/@napi-rs/wasm-runtime": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.4.tgz",+ "integrity": "sha512-AJxoUD2/15ESHbvpcyjU274nsAPLuOtPHCk0vKJM5pj//Fg/B1FXNWjPnXTT9PymCYYiHo4zPj0ZomXBKhoy7g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@tybys/wasm-util": "^0.10.3"+ },+ "engines": {+ "node": "^20.19.0 || ^22.13.0 || >=23.5.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/Brooooooklyn"+ },+ "peerDependencies": {+ "@emnapi/core": "^1.7.1 || ^2.0.0-alpha.4",+ "@emnapi/runtime": "^1.7.1 || ^2.0.0-alpha.4"+ }+ },+ "node_modules/@next/env": {+ "version": "16.4.3",+ "resolved": "https://registry.npmjs.org/@next/env/-/env-16.4.3.tgz",+ "integrity": "sha512-a7tz1QCcWWkwC/rPJcPMJk/UNRu9CFhDd3OHYE5hddbJrs8BqRTalxI6GlKCWEGzRLHN+S/B7a4PAHCtm25aBQ==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },+ "node_modules/@next/swc-darwin-arm64": {+ "version": "16.4.3",+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.4.3.tgz",+ "integrity": "sha512-4yq5EXBt+VDtAZwTyfijaFp5D2C5oz3Ikw5a2kiX2K9nw72vrZX2q5UuAlkPtUMO1tQz6JTKpaKWjS7OOefTDQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "peer": true,+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-darwin-x64": {+ "version": "16.4.3",+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.4.3.tgz",+ "integrity": "sha512-1Rvkn/LUhnEF8WxnRkOrqGhbwXui1bkWFxONKIbN+r7C+9KHDSZ+iUoj4CzymVMWUyZIyx9szcb9+kbKhD500A==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "peer": true,+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-linux-arm64-gnu": {+ "version": "16.4.3",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.4.3.tgz",+ "integrity": "sha512-dCKpXErGg3abUM6t5JTJV/ottVBTStJB5lRJTbgdUdQaQ+jNHiK56Hsc0YAEg/rinSh42hYG3HWiYmEMdilnxg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-linux-arm64-musl": {+ "version": "16.4.3",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.4.3.tgz",+ "integrity": "sha512-WwYbhWkhYBvBtib1K4W0kL8MW2snBD2A5b3SN4vPpqalZbZs5+bQ1yzAdepVoOqrFfEW3dmREy4Zs1MrWcrFbw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-linux-x64-gnu": {+ "version": "16.4.3",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.4.3.tgz",+ "integrity": "sha512-QymWvfUwDEC5/lpJOsxX5VAbyoR2D13+2Jsjz4be7gT4LPqEgdpkeLIR/HFfCLgKzoMhpJbp6I/JnogyNZHcaA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-linux-x64-musl": {+ "version": "16.4.3",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.4.3.tgz",+ "integrity": "sha512-Vmjd9D7DpA4Vv3cUlr82QWgJD/BQZmns801vtC5VWHg6jCIA4a5vMKpQnfrM2pyCrp2eV0ENdUg4PlN3bAc2Yw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-win32-arm64-msvc": {+ "version": "16.4.3",+ "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.4.3.tgz",+ "integrity": "sha512-lG1pPdPLk7gTyGb00n5JIMLdBJgjb+UEhSdZvFbhUMg0DyC6z4B7RnpSKF9VCd4imkLObVbXOFA0kFCpw7yFow==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "peer": true,+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-win32-x64-msvc": {+ "version": "16.4.3",+ "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.4.3.tgz",+ "integrity": "sha512-NmQC9RkJdnPXRaMxtkCzobB3teVjqF33oSOnwDfi+XYGWWYpt+xlGK3mtktSKLbdjwaWbJu2OkkMiRFGUUncKg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "peer": true,+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@oslojs/encoding": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@oslojs/encoding/-/encoding-1.1.0.tgz",+ "integrity": "sha512-70wQhgYmndg4GCPxPPxPGevRKqTIJ2Nh4OkiMWmDAVYsTQ+Ta7Sq+rPevXyXGdzr30/qZBnyOalCszoMxlyldQ==",+ "license": "MIT"+ },+ "node_modules/@preact/preset-vite": {+ "version": "2.10.6",+ "resolved": "https://registry.npmjs.org/@preact/preset-vite/-/preset-vite-2.10.6.tgz",+ "integrity": "sha512-ZZ5RIT2ZVXg8UxRA8VZpoT8CdpDG7RFIqOT4bELqNBp85+HKvQBbgmh3gsoW1UOQXx26TLe+ZRNKI7q281Kckw==",+ "license": "MIT",+ "dependencies": {+ "@babel/plugin-transform-react-jsx": "^7.27.1",+ "@babel/plugin-transform-react-jsx-development": "^7.27.1",+ "@prefresh/vite": "^2.4.11",+ "@rollup/pluginutils": "^5.0.0",+ "babel-plugin-transform-hook-names": "^1.0.2",+ "debug": "^4.4.3",+ "magic-string": "^0.30.21",+ "picocolors": "^1.1.1",+ "vite-prerender-plugin": "^0.5.8",+ "zimmerframe": "^1.1.4"+ },+ "peerDependencies": {+ "@babel/core": "7.x",+ "vite": "2.x || 3.x || 4.x || 5.x || 6.x || 7.x || 8.x"+ }+ },+ "node_modules/@preact/signals": {+ "version": "2.11.4",+ "resolved": "https://registry.npmjs.org/@preact/signals/-/signals-2.11.4.tgz",+ "integrity": "sha512-Rb+5RPo9gWSaHtzJeauhHxiC8KP/IF2DEPkHPEOGOnuy2wnJzRqyeLRankUCYd6ADqtxS6GnWGv6Ie343d8aYw==",+ "license": "MIT",+ "dependencies": {+ "@preact/signals-core": "^1.14.5"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/preact"+ },+ "peerDependencies": {+ "preact": ">= 10.25.0 || >=11.0.0-0"+ }+ },+ "node_modules/@preact/signals-core": {+ "version": "1.14.5",+ "resolved": "https://registry.npmjs.org/@preact/signals-core/-/signals-core-1.14.5.tgz",+ "integrity": "sha512-vcRv7Ityz5JVmeiVqIluLFzT/PDS/AlhHUpw3/aUWqcVUs6bDGIPXE/6RSC4evBNWYvnniozg5Syfj33al3gkg==",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/preact"+ }+ },+ "node_modules/@prefresh/babel-plugin": {+ "version": "0.5.4",+ "resolved": "https://registry.npmjs.org/@prefresh/babel-plugin/-/babel-plugin-0.5.4.tgz",+ "integrity": "sha512-GSwqHGVem7AjnOKAkmLNbAExqZZFddf9S3ySOwowGEsJR8vwNKJ7Z/262fov5wra8LkDVSmFw3CjMGRdLoCmRA==",+ "license": "MIT",+ "peerDependencies": {+ "@babel/core": "^7.0.0 || ^8.0.0"+ }+ },+ "node_modules/@prefresh/core": {+ "version": "1.5.11",+ "resolved": "https://registry.npmjs.org/@prefresh/core/-/core-1.5.11.tgz",+ "integrity": "sha512-Ml00PP8jeHaADxfQqxUs4+M5JS+T5J26UnvPVfsrmlpGw2I3e9XtM0DMeuzkmvg+Tn7VdHSMpLBrDPG0iHoDqQ==",+ "license": "MIT",+ "peerDependencies": {+ "preact": "^10.0.0 || ^11.0.0-0"+ }+ },+ "node_modules/@prefresh/utils": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/@prefresh/utils/-/utils-1.2.1.tgz",+ "integrity": "sha512-vq/sIuN5nYfYzvyayXI4C2QkprfNaHUQ9ZX+3xLD8nL3rWyzpxOm1+K7RtMbhd+66QcaISViK7amjnheQ/4WZw==",+ "license": "MIT"+ },+ "node_modules/@prefresh/vite": {+ "version": "2.4.12",+ "resolved": "https://registry.npmjs.org/@prefresh/vite/-/vite-2.4.12.tgz",+ "integrity": "sha512-FY1fzXpUjiuosznMV0YM7XAOPZjB5FIdWS0W24+XnlxYkt9hNAwwsiKYn+cuTEoMtD/ZVazS5QVssBr9YhpCQA==",+ "license": "MIT",+ "dependencies": {+ "@babel/core": "^7.22.1",+ "@prefresh/babel-plugin": "^0.5.2",+ "@prefresh/core": "^1.5.0",+ "@prefresh/utils": "^1.2.0",+ "@rollup/pluginutils": "^4.2.1"+ },+ "peerDependencies": {+ "preact": "^10.4.0 || ^11.0.0-0",+ "vite": ">=2.0.0"+ }+ },+ "node_modules/@prefresh/vite/node_modules/@rollup/pluginutils": {+ "version": "4.2.1",+ "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.1.tgz",+ "integrity": "sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==",+ "license": "MIT",+ "dependencies": {+ "estree-walker": "^2.0.1",+ "picomatch": "^2.2.2"+ },+ "engines": {+ "node": ">= 8.0.0"+ }+ },+ "node_modules/@prefresh/vite/node_modules/picomatch": {+ "version": "2.3.2",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",+ "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",+ "license": "MIT",+ "engines": {+ "node": ">=8.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/@rollup/pluginutils": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.5.1.tgz",+ "integrity": "sha512-P9ZvnfouRu4MSC+ilERaw6FmZs8zqKhpHxEs4aGDGWQAMzQGXnhvCSvoNwokfNvdt7t3Y5Y4p6gStQgezeIqug==",+ "license": "MIT",+ "dependencies": {+ "@types/estree": "^1.0.0",+ "estree-walker": "^2.0.2",+ "picomatch": "^4.0.2"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "peerDependencies": {+ "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0"+ },+ "peerDependenciesMeta": {+ "rollup": {+ "optional": true+ }+ }+ },+ "node_modules/@rollup/rollup-android-arm-eabi": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.66.0.tgz",+ "integrity": "sha512-7y4XeoUHPecjfUDRmap8U0q6bjfLAPn7uOGT8BKyqy8uNDOjsGS8rlBhOx6sZLVwwjN6hapvGl2mW9/IS6UNww==",+ "cpu": [+ "arm"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-android-arm64": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.66.0.tgz",+ "integrity": "sha512-e8WugYZXpgqrlMXLCudYVRAxAcK7AIY36JxRDwFRD38L9q62G1VsEUW6ijXxzjxYjNB8i1zo3B/ycIQ/qjLC/Q==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-darwin-arm64": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.66.0.tgz",+ "integrity": "sha512-6vkDCfyDjNLokh+Rt1D2KtNgFFMEPdkWha/mbtP4cSjh9xiN8T/JBS/A7nDYKjmMAXHrvR9J3AzUk2LtFbIBLg==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-darwin-x64": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.66.0.tgz",+ "integrity": "sha512-/mzZAX0+Q6eXxvkR0HB0RZCCrsbmFD8DpsvCQoMYABDfq/DjqkbfytuJ7GvZ4AhR/Mgis2fXbZrGqfbcK2Z5fA==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-arm64": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.66.0.tgz",+ "integrity": "sha512-JQJx9E8tUjGqed1RevDmoHaS3V30ODdV8uyvGxlwd4K5se6bkPrMeltSybqAtpJ+ltDRfo7FORQaJG2Hd5nGog==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-x64": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.66.0.tgz",+ "integrity": "sha512-GEaUQQjMaG7X1304qMgqLjzCKv6CdDirzJSS+UqUs3xhJ9X2Kjzu0JDbLoUU42FWxwmZqz+SsgU1SlQv9GNRVA==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.66.0.tgz",+ "integrity": "sha512-DgmAU9N0NhDQDzHgFUocDio7zRO8jR/nY/obDGvCR8zbJ6J77Fg6X49yPuExJUpYPbC82EOaRhG969pWzUSnHQ==",+ "cpu": [+ "arm"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.66.0.tgz",+ "integrity": "sha512-zG09YZ+sk/HoHq+P9gYB0EseQ3M20RbDuKGWey6fbiMDV1LxfXvhgSW9jDaCcvFPMgfLXpimzXY+UYvA8R2mLQ==",+ "cpu": [+ "arm"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-gnu": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.66.0.tgz",+ "integrity": "sha512-vlArhgyXbcVc1D4WZPoiYuqJIaMiSHBj6etRXua0KlfjlZeuiQyVAPYi0/N49O4mSp3u1iGUBLEjNa8ec81XZg==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-musl": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.66.0.tgz",+ "integrity": "sha512-RxJZtk0G87YPotDaRDvRqStV8cbqLSC5TroHvQHHKsqBg0ok64RxKgtXeFsa7FBcy7mb4crBrG3xK8USWIqWNA==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-gnu": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.66.0.tgz",+ "integrity": "sha512-qlGcw959PrLLkZhiBxF3OZ6SQvj+OKY85mCqGNgSRs4LZlDJ6ICqmz6UdxtINdhcXYwNIbZoapQVBAmZlD2hUQ==",+ "cpu": [+ "loong64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-musl": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.66.0.tgz",+ "integrity": "sha512-TvTI/7Cy0WvRA1SXgwzu6bwXBnMpmeT/ln5q7WvSpqmXy1VbmEnY8HVIDQNBiaHJvoWqRr0M4FNo7qiqtyMaFw==",+ "cpu": [+ "loong64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.66.0.tgz",+ "integrity": "sha512-UZEDkSoDRZ50NyLj70nO6mpIK3dvs2cPTTvQb1bA/PBDmr9fvn5KiESuGfh6srd7Zi6Lt9Sv2sVrFr1QoHLvPQ==",+ "cpu": [+ "ppc64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-musl": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.66.0.tgz",+ "integrity": "sha512-VRbxTvagLh3HRcysx1CNq+HHcvJbSebNI6fCbk7jwmmWHkXjrSIV3igXBpRHUTFdg0pagWGu50xoSZXnrZHjVQ==",+ "cpu": [+ "ppc64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.66.0.tgz",+ "integrity": "sha512-uWdJpvYqh0LE/i+YBL3sMX0a2kUkICENjmrPmyBmMOFc3jMrs6MSQH/pMD+VIpGEoUcr3XkHGLLfymzIqPSRRg==",+ "cpu": [+ "riscv64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-musl": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.66.0.tgz",+ "integrity": "sha512-3FUd88pxgWAjK60OgCrika1AcNG+u8zaCdWjg4TlcZTDkt5TGyci8ZU64l3OJ9ax0MEjw3P80B/3PoSQDCLwJQ==",+ "cpu": [+ "riscv64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-s390x-gnu": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.66.0.tgz",+ "integrity": "sha512-qT2rMmgyej62g5AdwktK+Bt2lBu497pzWZe12TTQ5JmZjOYPnEwcPEAOSLTBxBV+6gIES75rXm219v/QkT397A==",+ "cpu": [+ "s390x"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-gnu": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.66.0.tgz",+ "integrity": "sha512-E46rnZgp7J84Qwe8RMlF+rgimnDo/9fuiGbUArGB0ZkMWf97O7yeSCfKls5x/YJOF0RcuSe9RctuKe1hlxICiA==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-musl": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.66.0.tgz",+ "integrity": "sha512-Uz1HiZe+qBzqgdPsON+z0wRx3WdATuyzwvGT6cr2VZVrqqko0ZJVfkrQJtwDMuDcAfXYdo7XucaxJ7lTLjEcgg==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-openbsd-x64": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.66.0.tgz",+ "integrity": "sha512-Ph7TX3Ex5qdfcb7Tc6eEPugVkRfJ501eTovO4T5029YObfpZ7dzn3RiwpFvGp50nk2QUhvBMZ0PFGlEj6pOYTg==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ]+ },+ "node_modules/@rollup/rollup-openharmony-arm64": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.66.0.tgz",+ "integrity": "sha512-nZYPEya7ZkeNxUEiF7qmNZbyLTyRN3MK5cO22KqsaoneUzXJuzBIQRw+7BEQy9LGj2O5vrCE9V3EpK06FYo1tQ==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ]+ },+ "node_modules/@rollup/rollup-win32-arm64-msvc": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.66.0.tgz",+ "integrity": "sha512-u7aTfS3R6C4hRsqXSzaO6qLZYLVuMkHMvcWlux4IM8IJif1VCl2cgPBSo5gSNoFoStQypQP+qwq8W1IyFBf1QQ==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-ia32-msvc": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.66.0.tgz",+ "integrity": "sha512-e+i9ueHrH1Bafb0cf0woAIVJbYcoC8vRaD+vz+Xi8w6jz9cYJSV3vyKO6ELGSZ6g4W4MJOm2WPLN4/nQf77h7w==",+ "cpu": [+ "ia32"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-gnu": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.66.0.tgz",+ "integrity": "sha512-KfTCbrtr2zXTqH2E1F+uYlFTrYibxHKqPAHobpd8Kfg49cEHmuHebOidCTDRgqG1suaPFX7oejFQeGE71zWKfA==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-msvc": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.66.0.tgz",+ "integrity": "sha512-xA+neBh1bqkqaS3b48T2UHZnDsTIpb9B0h+TdBzynjF/ymCpYndhfY10RqW0qSKB1HqqQA83mINVhAdwA+mETg==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@shikijs/core": {+ "version": "3.23.0",+ "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-3.23.0.tgz",+ "integrity": "sha512-NSWQz0riNb67xthdm5br6lAkvpDJRTgB36fxlo37ZzM2yq0PQFFzbd8psqC2XMPgCzo1fW6cVi18+ArJ44wqgA==",+ "license": "MIT",+ "dependencies": {+ "@shikijs/types": "3.23.0",+ "@shikijs/vscode-textmate": "^10.0.2",+ "@types/hast": "^3.0.4",+ "hast-util-to-html": "^9.0.5"+ }+ },+ "node_modules/@shikijs/engine-javascript": {+ "version": "3.23.0",+ "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-3.23.0.tgz",+ "integrity": "sha512-aHt9eiGFobmWR5uqJUViySI1bHMqrAgamWE1TYSUoftkAeCCAiGawPMwM+VCadylQtF4V3VNOZ5LmfItH5f3yA==",+ "license": "MIT",+ "dependencies": {+ "@shikijs/types": "3.23.0",+ "@shikijs/vscode-textmate": "^10.0.2",+ "oniguruma-to-es": "^4.3.4"+ }+ },+ "node_modules/@shikijs/engine-oniguruma": {+ "version": "3.23.0",+ "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-3.23.0.tgz",+ "integrity": "sha512-1nWINwKXxKKLqPibT5f4pAFLej9oZzQTsby8942OTlsJzOBZ0MWKiwzMsd+jhzu8YPCHAswGnnN1YtQfirL35g==",+ "license": "MIT",+ "dependencies": {+ "@shikijs/types": "3.23.0",+ "@shikijs/vscode-textmate": "^10.0.2"+ }+ },+ "node_modules/@shikijs/langs": {+ "version": "3.23.0",+ "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-3.23.0.tgz",+ "integrity": "sha512-2Ep4W3Re5aB1/62RSYQInK9mM3HsLeB91cHqznAJMuylqjzNVAVCMnNWRHFtcNHXsoNRayP9z1qj4Sq3nMqYXg==",+ "license": "MIT",+ "dependencies": {+ "@shikijs/types": "3.23.0"+ }+ },+ "node_modules/@shikijs/themes": {+ "version": "3.23.0",+ "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-3.23.0.tgz",+ "integrity": "sha512-5qySYa1ZgAT18HR/ypENL9cUSGOeI2x+4IvYJu4JgVJdizn6kG4ia5Q1jDEOi7gTbN4RbuYtmHh0W3eccOrjMA==",+ "license": "MIT",+ "dependencies": {+ "@shikijs/types": "3.23.0"+ }+ },+ "node_modules/@shikijs/types": {+ "version": "3.23.0",+ "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-3.23.0.tgz",+ "integrity": "sha512-3JZ5HXOZfYjsYSk0yPwBrkupyYSLpAE26Qc0HLghhZNGTZg/SKxXIIgoxOpmmeQP0RRSDJTk1/vPfw9tbw+jSQ==",+ "license": "MIT",+ "dependencies": {+ "@shikijs/vscode-textmate": "^10.0.2",+ "@types/hast": "^3.0.4"+ }+ },+ "node_modules/@shikijs/vscode-textmate": {+ "version": "10.1.0",+ "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.1.0.tgz",+ "integrity": "sha512-cVBuhDQjBZaNMTwBquYfPydrUP+E3hE6oYGasx8h6ZrODIM7/r+gxLDXdd66oszbrggZHEntdE6j+5gYIVyMWQ==",+ "license": "MIT"+ },+ "node_modules/@swc/helpers": {+ "version": "0.5.23",+ "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.23.tgz",+ "integrity": "sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==",+ "dev": true,+ "license": "Apache-2.0",+ "peer": true,+ "dependencies": {+ "tslib": "^2.8.0"+ }+ },+ "node_modules/@tybys/wasm-util": {+ "version": "0.10.4",+ "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.4.tgz",+ "integrity": "sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@types/chai": {+ "version": "5.2.3",+ "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz",+ "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/deep-eql": "*",+ "assertion-error": "^2.0.1"+ }+ },+ "node_modules/@types/debug": {+ "version": "4.1.13",+ "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz",+ "integrity": "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==",+ "license": "MIT",+ "dependencies": {+ "@types/ms": "*"+ }+ },+ "node_modules/@types/deep-eql": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz",+ "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/estree": {+ "version": "1.0.10",+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.10.tgz",+ "integrity": "sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==",+ "license": "MIT"+ },+ "node_modules/@types/hast": {+ "version": "3.0.5",+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.5.tgz",+ "integrity": "sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "*"+ }+ },+ "node_modules/@types/mdast": {+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz",+ "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "*"+ }+ },+ "node_modules/@types/ms": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz",+ "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==",+ "license": "MIT"+ },+ "node_modules/@types/nlcst": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/@types/nlcst/-/nlcst-2.0.3.tgz",+ "integrity": "sha512-vSYNSDe6Ix3q+6Z7ri9lyWqgGhJTmzRjZRqyq15N0Z/1/UnVsno9G/N40NBijoYx2seFDIl0+B2mgAb9mezUCA==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "*"+ }+ },+ "node_modules/@types/node": {+ "version": "22.18.12",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.12.tgz",+ "integrity": "sha512-BICHQ67iqxQGFSzfCFTT7MRQ5XcBjG5aeKh5Ok38UBbPe5fxTyE+aHFxwVrGyr8GNlqFMLKD1D3P2K/1ks8tog==",+ "devOptional": true,+ "license": "MIT",+ "dependencies": {+ "undici-types": "~6.21.0"+ }+ },+ "node_modules/@types/unist": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz",+ "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==",+ "license": "MIT"+ },+ "node_modules/@ungap/structured-clone": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.4.0.tgz",+ "integrity": "sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==",+ "license": "ISC"+ },+ "node_modules/@vitest/expect": {+ "version": "3.2.7",+ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.2.7.tgz",+ "integrity": "sha512-E8eBXaKibuvH2pSZErOjdVb5vF4PbKYcrnluBTYxEk1l/VhhwZg1kZQsdtjq+CsF5CFydf2Rdkz7jDHKSisi3w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/chai": "^5.2.2",+ "@vitest/spy": "3.2.7",+ "@vitest/utils": "3.2.7",+ "chai": "^5.2.0",+ "tinyrainbow": "^2.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/mocker": {+ "version": "3.2.7",+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.2.7.tgz",+ "integrity": "sha512-Trr0hYO9CM3Wj6ksWHRhK9IZpIY6wTMO5u/MqXurMxT57sWBaOPEtP3Oq60ihZuh5JsiagKfz95OcxdEP6dBrA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/spy": "3.2.7",+ "estree-walker": "^3.0.3",+ "magic-string": "^0.30.17"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "msw": "^2.4.9",+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0"+ },+ "peerDependenciesMeta": {+ "msw": {+ "optional": true+ },+ "vite": {+ "optional": true+ }+ }+ },+ "node_modules/@vitest/mocker/node_modules/estree-walker": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "^1.0.0"+ }+ },+ "node_modules/@vitest/pretty-format": {+ "version": "3.2.7",+ "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.2.7.tgz",+ "integrity": "sha512-KUHlwqVu0sRlhCdyPdQ/wBoTfRahjUky1MubOmYw9fWfIZy1gNoHpuaaQBPAaMaVYdQYHJLurzj8ECCj5OwTqA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tinyrainbow": "^2.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/runner": {+ "version": "3.2.7",+ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.2.7.tgz",+ "integrity": "sha512-sB9y4ovltoQP+WaUPwmSxO9WIg9Ig694Di5PalVPsYHklAdE027mehpWF2SQSVq+k6sFgaivbTjTJwZLSHbedA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/utils": "3.2.7",+ "pathe": "^2.0.3",+ "strip-literal": "^3.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/snapshot": {+ "version": "3.2.7",+ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.2.7.tgz",+ "integrity": "sha512-7C+MwShwtBSI5Buwoyg3s/iY1eHL9PKAf+O1wVh/TdnjXUtkoL/9YQtre90i4MtNXM6edP1wJ2zOBpfCyhIS7g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/pretty-format": "3.2.7",+ "magic-string": "^0.30.17",+ "pathe": "^2.0.3"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/spy": {+ "version": "3.2.7",+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.2.7.tgz",+ "integrity": "sha512-Q2eQGI6d2L/hBtZ0qNuKcAGid68XK6cv1xsoaIma6PaJhHPoqcEJhYpXZ/5myCMqkNgtP6UKuBhbc0nHKnrkuQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tinyspy": "^4.0.3"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/utils": {+ "version": "3.2.7",+ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.2.7.tgz",+ "integrity": "sha512-x6BDOd7dyo3PFLY3I9/HJ25X/6OurhGXk2/B9gOZNPF7XDVjeBK4k01lQE5uvDpbuheErh91qYuE1E2OEjK3Rw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/pretty-format": "3.2.7",+ "loupe": "^3.1.4",+ "tinyrainbow": "^2.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@volar/kit": {+ "version": "2.4.30",+ "resolved": "https://registry.npmjs.org/@volar/kit/-/kit-2.4.30.tgz",+ "integrity": "sha512-VocLtumfXnqnPQEWc9Yx7uC1uOh9gyjVNlrn2+6Zx/z9aM6yTLhPK8lSqM9Ilu81XRa48I00lcYJWLi2BLxx8Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@volar/language-service": "2.4.30",+ "@volar/typescript": "2.4.30",+ "typesafe-path": "^0.2.2",+ "vscode-languageserver-textdocument": "^1.0.11",+ "vscode-uri": "^3.0.8"+ },+ "peerDependencies": {+ "typescript": "<7"+ }+ },+ "node_modules/@volar/language-core": {+ "version": "2.4.30",+ "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.4.30.tgz",+ "integrity": "sha512-73fjwEV8wat6aOZ6U/y/hqtE30ocrIWECg67b0txGczOMNw+MffLmvJ5fnFfN9drVUEYZzLdaNo6VAy6G6avMw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@volar/source-map": "2.4.30"+ }+ },+ "node_modules/@volar/language-server": {+ "version": "2.4.30",+ "resolved": "https://registry.npmjs.org/@volar/language-server/-/language-server-2.4.30.tgz",+ "integrity": "sha512-tcP9fzzUBbsLIFHhgnRU4ncQjMn9G9Vax0ffkQmdCrXVEYqRroUepmyC5AVgiju5bCiLD6a55qen5iOTQHkb3g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@volar/language-core": "2.4.30",+ "@volar/language-service": "2.4.30",+ "@volar/typescript": "2.4.30",+ "path-browserify": "^1.0.1",+ "request-light": "^0.7.0",+ "vscode-languageserver": "^9.0.1",+ "vscode-languageserver-protocol": "^3.17.5",+ "vscode-languageserver-textdocument": "^1.0.11",+ "vscode-uri": "^3.0.8"+ },+ "peerDependencies": {+ "typescript": "<7"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/@volar/language-service": {+ "version": "2.4.30",+ "resolved": "https://registry.npmjs.org/@volar/language-service/-/language-service-2.4.30.tgz",+ "integrity": "sha512-w/xDsASiqC71ggCOm7sTDXDNk/l72XEptodeRC68tgZ0e5QM4hM3zAqBGC7mBctvhrpYwKfMG+t9xcUo2hEFtA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@volar/language-core": "2.4.30",+ "vscode-languageserver-protocol": "^3.17.5",+ "vscode-languageserver-textdocument": "^1.0.11",+ "vscode-uri": "^3.0.8"+ },+ "peerDependencies": {+ "typescript": "<7"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/@volar/source-map": {+ "version": "2.4.30",+ "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-2.4.30.tgz",+ "integrity": "sha512-zym1ob/KwDDyN+0jGVtxwbxJSRRnUvv5HspCtz3yEfVVdCG4/dzxJktMGPAgemqRuVs81O0o/y0q3qOUErR8kg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@volar/typescript": {+ "version": "2.4.30",+ "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-2.4.30.tgz",+ "integrity": "sha512-/DgA5tgYFPfrLFuSjIMXMGHk1LQv2+P8eny6+BhGNzFJELWIW7UZlc56ZLIRFhLsPpMfIFxM8/HvOPBggrjTZg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@volar/language-core": "2.4.30",+ "@volar/language-service": "2.4.30",+ "path-browserify": "^1.0.1",+ "vscode-uri": "^3.0.8"+ },+ "peerDependencies": {+ "typescript": "<7"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/@vscode/emmet-helper": {+ "version": "2.11.0",+ "resolved": "https://registry.npmjs.org/@vscode/emmet-helper/-/emmet-helper-2.11.0.tgz",+ "integrity": "sha512-QLxjQR3imPZPQltfbWRnHU6JecWTF1QSWhx3GAKQpslx7y3Dp6sIIXhKjiUJ/BR9FX8PVthjr9PD6pNwOJfAzw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "emmet": "^2.4.3",+ "jsonc-parser": "^2.3.0",+ "vscode-languageserver-textdocument": "^1.0.1",+ "vscode-languageserver-types": "^3.15.1",+ "vscode-uri": "^3.0.8"+ }+ },+ "node_modules/@vscode/l10n": {+ "version": "0.0.18",+ "resolved": "https://registry.npmjs.org/@vscode/l10n/-/l10n-0.0.18.tgz",+ "integrity": "sha512-KYSIHVmslkaCDyw013pphY+d7x1qV8IZupYfeIfzNA+nsaWHbn5uPuQRvdRFsa9zFzGeudPuoGoZ1Op4jrJXIQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/acorn": {+ "version": "8.19.0",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.19.0.tgz",+ "integrity": "sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==",+ "license": "MIT",+ "bin": {+ "acorn": "bin/acorn"+ },+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/ajv": {+ "version": "8.20.0",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz",+ "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fast-deep-equal": "^3.1.3",+ "fast-uri": "^3.0.1",+ "json-schema-traverse": "^1.0.0",+ "require-from-string": "^2.0.2"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/epoberezkin"+ }+ },+ "node_modules/ajv-draft-04": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz",+ "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "ajv": "^8.5.0"+ },+ "peerDependenciesMeta": {+ "ajv": {+ "optional": true+ }+ }+ },+ "node_modules/ajv-i18n": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/ajv-i18n/-/ajv-i18n-4.2.0.tgz",+ "integrity": "sha512-v/ei2UkCEeuKNXh8RToiFsUclmU+G57LO1Oo22OagNMENIw+Yb8eMwvHu7Vn9fmkjJyv6XclhJ8TbuigSglPkg==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "ajv": "^8.0.0-beta.0"+ }+ },+ "node_modules/ansi-align": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz",+ "integrity": "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==",+ "license": "ISC",+ "dependencies": {+ "string-width": "^4.1.0"+ }+ },+ "node_modules/ansi-align/node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/ansi-align/node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "license": "MIT"+ },+ "node_modules/ansi-align/node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/ansi-align/node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/ansi-regex": {+ "version": "6.5.0",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.5.0.tgz",+ "integrity": "sha512-zhvbbbdt1kbw7EJ9OQoxmQcuaNR9P5kTj7e/YdmOSU10aHWbycofJxA6jKfoEy3vlLdctOF9ZHaxLtmSm998wQ==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"+ }+ },+ "node_modules/ansi-styles": {+ "version": "6.2.3",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/anymatch": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",+ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",+ "license": "ISC",+ "dependencies": {+ "normalize-path": "^3.0.0",+ "picomatch": "^2.0.4"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/anymatch/node_modules/picomatch": {+ "version": "2.3.2",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",+ "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",+ "license": "MIT",+ "engines": {+ "node": ">=8.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/argparse": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",+ "license": "Python-2.0"+ },+ "node_modules/aria-query": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz",+ "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/array-iterate": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/array-iterate/-/array-iterate-2.0.1.tgz",+ "integrity": "sha512-I1jXZMjAgCMmxT4qxXfPXa6SthSoE8h6gkSI9BGGNv8mP8G/v0blc+qFnZu6K42vTOiuME596QaLO0TP3Lk0xg==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/assertion-error": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",+ "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/astro": {+ "version": "5.18.2",+ "resolved": "https://registry.npmjs.org/astro/-/astro-5.18.2.tgz",+ "integrity": "sha512-TnFwLnAXty5MXKPDGuKXqK4AMBXG+FH6RUdK7Oyc3gyfNoFIthT+4eRbzOK43bdRlLaZuxgciDSjgtggZ3OtGQ==",+ "license": "MIT",+ "dependencies": {+ "@astrojs/compiler": "^2.13.0",+ "@astrojs/internal-helpers": "0.7.6",+ "@astrojs/markdown-remark": "6.3.11",+ "@astrojs/telemetry": "3.3.0",+ "@capsizecss/unpack": "^4.0.0",+ "@oslojs/encoding": "^1.1.0",+ "@rollup/pluginutils": "^5.3.0",+ "acorn": "^8.15.0",+ "aria-query": "^5.3.2",+ "axobject-query": "^4.1.0",+ "boxen": "8.0.1",+ "ci-info": "^4.3.1",+ "clsx": "^2.1.1",+ "common-ancestor-path": "^1.0.1",+ "cookie": "^1.1.1",+ "cssesc": "^3.0.0",+ "debug": "^4.4.3",+ "deterministic-object-hash": "^2.0.2",+ "devalue": "^5.6.2",+ "diff": "^8.0.3",+ "dlv": "^1.1.3",+ "dset": "^3.1.4",+ "es-module-lexer": "^1.7.0",+ "esbuild": "^0.27.3",+ "estree-walker": "^3.0.3",+ "flattie": "^1.1.1",+ "fontace": "~0.4.0",+ "github-slugger": "^2.0.0",+ "html-escaper": "3.0.3",+ "http-cache-semantics": "^4.2.0",+ "import-meta-resolve": "^4.2.0",+ "js-yaml": "^4.1.1",+ "magic-string": "^0.30.21",+ "magicast": "^0.5.1",+ "mrmime": "^2.0.1",+ "neotraverse": "^0.6.18",+ "p-limit": "^6.2.0",+ "p-queue": "^8.1.1",+ "package-manager-detector": "^1.6.0",+ "piccolore": "^0.1.3",+ "picomatch": "^4.0.3",+ "prompts": "^2.4.2",+ "rehype": "^13.0.2",+ "semver": "^7.7.3",+ "shiki": "^3.21.0",+ "smol-toml": "^1.6.0",+ "svgo": "^4.0.0",+ "tinyexec": "^1.0.2",+ "tinyglobby": "^0.2.15",+ "tsconfck": "^3.1.6",+ "ultrahtml": "^1.6.0",+ "unifont": "~0.7.3",+ "unist-util-visit": "^5.0.0",+ "unstorage": "^1.17.4",+ "vfile": "^6.0.3",+ "vite": "^6.4.1",+ "vitefu": "^1.1.1",+ "xxhash-wasm": "^1.1.0",+ "yargs-parser": "^21.1.1",+ "yocto-spinner": "^0.2.3",+ "zod": "^3.25.76",+ "zod-to-json-schema": "^3.25.1",+ "zod-to-ts": "^1.2.0"+ },+ "bin": {+ "astro": "astro.js"+ },+ "engines": {+ "node": "18.20.8 || ^20.3.0 || >=22.0.0",+ "npm": ">=9.6.5",+ "pnpm": ">=7.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/astrodotbuild"+ },+ "optionalDependencies": {+ "sharp": "^0.34.0"+ }+ },+ "node_modules/astro/node_modules/estree-walker": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",+ "license": "MIT",+ "dependencies": {+ "@types/estree": "^1.0.0"+ }+ },+ "node_modules/astro/node_modules/semver": {+ "version": "7.8.5",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/axobject-query": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz",+ "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/babel-plugin-transform-hook-names": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/babel-plugin-transform-hook-names/-/babel-plugin-transform-hook-names-1.0.2.tgz",+ "integrity": "sha512-5gafyjyyBTTdX/tQQ0hRgu4AhNHG/hqWi0ZZmg2xvs2FgRkJXzDNKBZCyoYqgFkovfDrgM8OoKg8karoUvWeCw==",+ "license": "MIT",+ "peerDependencies": {+ "@babel/core": "^7.12.10"+ }+ },+ "node_modules/bail": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz",+ "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/base-64": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/base-64/-/base-64-1.0.0.tgz",+ "integrity": "sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg==",+ "license": "MIT"+ },+ "node_modules/baseline-browser-mapping": {+ "version": "2.11.34",+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.34.tgz",+ "integrity": "sha512-Aqr8mA1kIvyJ3UY5YAY7ib8LSo1DmDMbMnVqGPtsKW1LxaFQFwn9Eb3yvq2fUKJsRvaXjnAV7R5osqETapzNiA==",+ "license": "Apache-2.0",+ "bin": {+ "baseline-browser-mapping": "dist/cli.cjs"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/boolbase": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",+ "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==",+ "license": "ISC"+ },+ "node_modules/boxen": {+ "version": "8.0.1",+ "resolved": "https://registry.npmjs.org/boxen/-/boxen-8.0.1.tgz",+ "integrity": "sha512-F3PH5k5juxom4xktynS7MoFY+NUWH5LC4CnH11YB8NPew+HLpmBLCybSAEyb2F+4pRXhuhWqFesoQd6DAyc2hw==",+ "license": "MIT",+ "dependencies": {+ "ansi-align": "^3.0.1",+ "camelcase": "^8.0.0",+ "chalk": "^5.3.0",+ "cli-boxes": "^3.0.0",+ "string-width": "^7.2.0",+ "type-fest": "^4.21.0",+ "widest-line": "^5.0.0",+ "wrap-ansi": "^9.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/browserslist": {+ "version": "4.29.5",+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.5.tgz",+ "integrity": "sha512-khTmKu5NGYTotqcYo8Bew2k4RAE9PuXRSFRXG2lQBrCEQHyeQ/vX6gKMxfokwywBsLiXZMnHsmWMG1pnO8J7uQ==",+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/browserslist"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "baseline-browser-mapping": "^2.11.33",+ "caniuse-lite": "^1.0.30001819",+ "electron-to-chromium": "^1.5.464",+ "node-releases": "^2.0.60",+ "update-browserslist-db": "^1.3.4"+ },+ "bin": {+ "browserslist": "cli.js"+ },+ "engines": {+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"+ }+ },+ "node_modules/cac": {+ "version": "6.7.14",+ "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz",+ "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/camelcase": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-8.0.0.tgz",+ "integrity": "sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA==",+ "license": "MIT",+ "engines": {+ "node": ">=16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/caniuse-lite": {+ "version": "1.0.30001820",+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001820.tgz",+ "integrity": "sha512-gfWD6MxqVCqAOwmODfZf7DchWvlrA+SRdNX7ceLfg3xRqe5ssjjpF7EgslC/0tiLiNTajdaNN/q8c/5u/7Gz8w==",+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "CC-BY-4.0"+ },+ "node_modules/ccount": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz",+ "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/chai": {+ "version": "5.3.3",+ "resolved": "https://registry.npmjs.org/chai/-/chai-5.3.3.tgz",+ "integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "assertion-error": "^2.0.1",+ "check-error": "^2.1.1",+ "deep-eql": "^5.0.1",+ "loupe": "^3.1.0",+ "pathval": "^2.0.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/chalk": {+ "version": "5.6.2",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.2.tgz",+ "integrity": "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==",+ "license": "MIT",+ "engines": {+ "node": "^12.17.0 || ^14.13 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/chalk/chalk?sponsor=1"+ }+ },+ "node_modules/character-entities": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz",+ "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/character-entities-html4": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz",+ "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/character-entities-legacy": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz",+ "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/check-error": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.3.tgz",+ "integrity": "sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 16"+ }+ },+ "node_modules/chokidar": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz",+ "integrity": "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==",+ "license": "MIT",+ "dependencies": {+ "readdirp": "^5.0.0"+ },+ "engines": {+ "node": ">= 20.19.0"+ },+ "funding": {+ "url": "https://paulmillr.com/funding/"+ }+ },+ "node_modules/ci-info": {+ "version": "4.4.0",+ "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.4.0.tgz",+ "integrity": "sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/sibiraj-s"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cli-boxes": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-3.0.0.tgz",+ "integrity": "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==",+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/client-only": {+ "version": "0.0.1",+ "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz",+ "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },+ "node_modules/cliui": {+ "version": "9.0.1",+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-9.0.1.tgz",+ "integrity": "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "string-width": "^7.2.0",+ "strip-ansi": "^7.1.0",+ "wrap-ansi": "^9.0.0"+ },+ "engines": {+ "node": ">=20"+ }+ },+ "node_modules/clsx": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/comma-separated-tokens": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz",+ "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/commander": {+ "version": "11.1.0",+ "resolved": "https://registry.npmjs.org/commander/-/commander-11.1.0.tgz",+ "integrity": "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==",+ "license": "MIT",+ "engines": {+ "node": ">=16"+ }+ },+ "node_modules/common-ancestor-path": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/common-ancestor-path/-/common-ancestor-path-1.0.1.tgz",+ "integrity": "sha512-L3sHRo1pXXEqX8VU28kfgUY+YGsk09hPqZiZmLacNib6XNTCM8ubYeT7ryXQw8asB1sKgcU5lkB7ONug08aB8w==",+ "license": "ISC"+ },+ "node_modules/convert-source-map": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",+ "license": "MIT"+ },+ "node_modules/cookie": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz",+ "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/cookie-es": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/cookie-es/-/cookie-es-1.2.3.tgz",+ "integrity": "sha512-lXVyvUvrNXblMqzIRrxHb57UUVmqsSWlxqt3XIjCkUP0wDAf6uicO6KMbEgYrMNtEvWgWHwe42CKxPu9MYAnWw==",+ "license": "MIT"+ },+ "node_modules/crossws": {+ "version": "0.3.5",+ "resolved": "https://registry.npmjs.org/crossws/-/crossws-0.3.5.tgz",+ "integrity": "sha512-ojKiDvcmByhwa8YYqbQI/hg7MEU0NC03+pSdEq4ZUnZR9xXpwk7E43SMNGkn+JxJGPFtNvQ48+vV2p+P1ml5PA==",+ "license": "MIT",+ "dependencies": {+ "uncrypto": "^0.1.3"+ }+ },+ "node_modules/css-select": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/css-select/-/css-select-6.0.0.tgz",+ "integrity": "sha512-rZZVSLle8v0+EY8QAkDWrKhpgt6SA5OtHsgBnsj6ZaLb5dmDVOWUDtQitd9ydxxvEjhewNudS6eTVU7uOyzvXw==",+ "license": "BSD-2-Clause",+ "dependencies": {+ "boolbase": "^1.0.0",+ "css-what": "^7.0.0",+ "domhandler": "^5.0.3",+ "domutils": "^3.2.2",+ "nth-check": "^2.1.1"+ },+ "funding": {+ "url": "https://github.com/sponsors/fb55"+ }+ },+ "node_modules/css-tree": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz",+ "integrity": "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==",+ "license": "MIT",+ "dependencies": {+ "mdn-data": "2.27.1",+ "source-map-js": "^1.2.1"+ },+ "engines": {+ "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"+ }+ },+ "node_modules/css-what": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/css-what/-/css-what-7.0.0.tgz",+ "integrity": "sha512-wD5oz5xibMOPHzy13CyGmogB3phdvcDaB5t0W/Nr5Z2O/agcB8YwOz6e2Lsp10pNDzBoDO9nVa3RGs/2BttpHQ==",+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">= 6"+ },+ "funding": {+ "url": "https://github.com/sponsors/fb55"+ }+ },+ "node_modules/cssesc": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",+ "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",+ "license": "MIT",+ "bin": {+ "cssesc": "bin/cssesc"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/csso": {+ "version": "5.0.5",+ "resolved": "https://registry.npmjs.org/csso/-/csso-5.0.5.tgz",+ "integrity": "sha512-0LrrStPOdJj+SPCCrGhzryycLjwcgUSHBtxNA8aIDxf0GLsRh1cKYhB00Gd1lDOS4yGH69+SNn13+TWbVHETFQ==",+ "license": "MIT",+ "dependencies": {+ "css-tree": "~2.2.0"+ },+ "engines": {+ "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0",+ "npm": ">=7.0.0"+ }+ },+ "node_modules/csso/node_modules/css-tree": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.2.1.tgz",+ "integrity": "sha512-OA0mILzGc1kCOCSJerOeqDxDQ4HOh+G8NbOJFOTgOCzpw7fCBubk0fEyxp8AgOL/jvLgYA/uV0cMbe43ElF1JA==",+ "license": "MIT",+ "dependencies": {+ "mdn-data": "2.0.28",+ "source-map-js": "^1.0.1"+ },+ "engines": {+ "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0",+ "npm": ">=7.0.0"+ }+ },+ "node_modules/csso/node_modules/mdn-data": {+ "version": "2.0.28",+ "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.28.tgz",+ "integrity": "sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==",+ "license": "CC0-1.0"+ },+ "node_modules/debug": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/decode-named-character-reference": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz",+ "integrity": "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==",+ "license": "MIT",+ "dependencies": {+ "character-entities": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/deep-eql": {+ "version": "5.0.2",+ "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz",+ "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/defu": {+ "version": "6.1.7",+ "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.7.tgz",+ "integrity": "sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==",+ "license": "MIT"+ },+ "node_modules/dequal": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",+ "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/destr": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/destr/-/destr-2.0.5.tgz",+ "integrity": "sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==",+ "license": "MIT"+ },+ "node_modules/detect-libc": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",+ "license": "Apache-2.0",+ "optional": true,+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/deterministic-object-hash": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/deterministic-object-hash/-/deterministic-object-hash-2.0.2.tgz",+ "integrity": "sha512-KxektNH63SrbfUyDiwXqRb1rLwKt33AmMv+5Nhsw1kqZ13SJBRTgZHtGbE+hH3a1mVW1cz+4pqSWVPAtLVXTzQ==",+ "license": "MIT",+ "dependencies": {+ "base-64": "^1.0.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/devalue": {+ "version": "5.9.4",+ "resolved": "https://registry.npmjs.org/devalue/-/devalue-5.9.4.tgz",+ "integrity": "sha512-sPAT4pztbu6586/hrhOnMKS17IJrvg12mXiSPSS3W5qDeN2RGgvZ0diZCm31dBbnevfVmujNO3IM2wrS4Y2Rhg==",+ "license": "MIT"+ },+ "node_modules/devlop": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz",+ "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==",+ "license": "MIT",+ "dependencies": {+ "dequal": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/diff": {+ "version": "8.0.4",+ "resolved": "https://registry.npmjs.org/diff/-/diff-8.0.4.tgz",+ "integrity": "sha512-DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw==",+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.3.1"+ }+ },+ "node_modules/dlv": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",+ "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",+ "license": "MIT"+ },+ "node_modules/dom-serializer": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz",+ "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==",+ "license": "MIT",+ "dependencies": {+ "domelementtype": "^2.3.0",+ "domhandler": "^5.0.2",+ "entities": "^4.2.0"+ },+ "funding": {+ "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1"+ }+ },+ "node_modules/dom-serializer/node_modules/entities": {+ "version": "4.5.0",+ "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",+ "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=0.12"+ },+ "funding": {+ "url": "https://github.com/fb55/entities?sponsor=1"+ }+ },+ "node_modules/domelementtype": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz",+ "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/fb55"+ }+ ],+ "license": "BSD-2-Clause"+ },+ "node_modules/domhandler": {+ "version": "5.0.3",+ "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz",+ "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==",+ "license": "BSD-2-Clause",+ "dependencies": {+ "domelementtype": "^2.3.0"+ },+ "engines": {+ "node": ">= 4"+ },+ "funding": {+ "url": "https://github.com/fb55/domhandler?sponsor=1"+ }+ },+ "node_modules/domutils": {+ "version": "3.2.2",+ "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.2.2.tgz",+ "integrity": "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==",+ "license": "BSD-2-Clause",+ "dependencies": {+ "dom-serializer": "^2.0.0",+ "domelementtype": "^2.3.0",+ "domhandler": "^5.0.3"+ },+ "funding": {+ "url": "https://github.com/fb55/domutils?sponsor=1"+ }+ },+ "node_modules/dset": {+ "version": "3.1.4",+ "resolved": "https://registry.npmjs.org/dset/-/dset-3.1.4.tgz",+ "integrity": "sha512-2QF/g9/zTaPDc3BjNcVTGoBbXBgYfMTTceLaYcFJ/W9kggFUkhxD/hMEeuLKbugyef9SqAx8cpgwlIP/jinUTA==",+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/electron-to-chromium": {+ "version": "1.5.468",+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.468.tgz",+ "integrity": "sha512-8XdEp3sIqO+PzmVPxhzqHq/3+yCxp44m27cm2WY1sRn3ZhwKyKmqSi2hx6gEhmnOXmh8NUuYE00z6Onzn5m6DA==",+ "license": "ISC"+ },+ "node_modules/emmet": {+ "version": "2.4.11",+ "resolved": "https://registry.npmjs.org/emmet/-/emmet-2.4.11.tgz",+ "integrity": "sha512-23QPJB3moh/U9sT4rQzGgeyyGIrcM+GH5uVYg2C6wZIxAIJq7Ng3QLT79tl8FUwDXhyq9SusfknOrofAKqvgyQ==",+ "dev": true,+ "license": "MIT",+ "workspaces": [+ "./packages/scanner",+ "./packages/abbreviation",+ "./packages/css-abbreviation",+ "./"+ ],+ "dependencies": {+ "@emmetio/abbreviation": "^2.3.3",+ "@emmetio/css-abbreviation": "^2.1.8"+ }+ },+ "node_modules/emoji-regex": {+ "version": "10.6.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz",+ "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==",+ "license": "MIT"+ },+ "node_modules/entities": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz",+ "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==",+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=0.12"+ },+ "funding": {+ "url": "https://github.com/fb55/entities?sponsor=1"+ }+ },+ "node_modules/es-module-lexer": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz",+ "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==",+ "license": "MIT"+ },+ "node_modules/esbuild": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.7.tgz",+ "integrity": "sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==",+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.27.7",+ "@esbuild/android-arm": "0.27.7",+ "@esbuild/android-arm64": "0.27.7",+ "@esbuild/android-x64": "0.27.7",+ "@esbuild/darwin-arm64": "0.27.7",+ "@esbuild/darwin-x64": "0.27.7",+ "@esbuild/freebsd-arm64": "0.27.7",+ "@esbuild/freebsd-x64": "0.27.7",+ "@esbuild/linux-arm": "0.27.7",+ "@esbuild/linux-arm64": "0.27.7",+ "@esbuild/linux-ia32": "0.27.7",+ "@esbuild/linux-loong64": "0.27.7",+ "@esbuild/linux-mips64el": "0.27.7",+ "@esbuild/linux-ppc64": "0.27.7",+ "@esbuild/linux-riscv64": "0.27.7",+ "@esbuild/linux-s390x": "0.27.7",+ "@esbuild/linux-x64": "0.27.7",+ "@esbuild/netbsd-arm64": "0.27.7",+ "@esbuild/netbsd-x64": "0.27.7",+ "@esbuild/openbsd-arm64": "0.27.7",+ "@esbuild/openbsd-x64": "0.27.7",+ "@esbuild/openharmony-arm64": "0.27.7",+ "@esbuild/sunos-x64": "0.27.7",+ "@esbuild/win32-arm64": "0.27.7",+ "@esbuild/win32-ia32": "0.27.7",+ "@esbuild/win32-x64": "0.27.7"+ }+ },+ "node_modules/escalade": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/escape-string-regexp": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz",+ "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/estree-walker": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",+ "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",+ "license": "MIT"+ },+ "node_modules/eventemitter3": {+ "version": "5.0.4",+ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz",+ "integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==",+ "license": "MIT"+ },+ "node_modules/expect-type": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz",+ "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=12.0.0"+ }+ },+ "node_modules/extend": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",+ "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",+ "license": "MIT"+ },+ "node_modules/fast-deep-equal": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/fast-uri": {+ "version": "3.1.9",+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz",+ "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/fastify"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/fastify"+ }+ ],+ "license": "BSD-3-Clause"+ },+ "node_modules/fdir": {+ "version": "6.5.0",+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",+ "license": "MIT",+ "engines": {+ "node": ">=12.0.0"+ },+ "peerDependencies": {+ "picomatch": "^3 || ^4"+ },+ "peerDependenciesMeta": {+ "picomatch": {+ "optional": true+ }+ }+ },+ "node_modules/flattie": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/flattie/-/flattie-1.1.1.tgz",+ "integrity": "sha512-9UbaD6XdAL97+k/n+N7JwX46K/M6Zc6KcFYskrYL8wbBV/Uyk0CTAMY0VT+qiK5PM7AIc9aTWYtq65U7T+aCNQ==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/fontace": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/fontace/-/fontace-0.4.1.tgz",+ "integrity": "sha512-lDMvbAzSnHmbYMTEld5qdtvNH2/pWpICOqpean9IgC7vUbUJc3k+k5Dokp85CegamqQpFbXf0rAVkbzpyTA8aw==",+ "license": "MIT",+ "dependencies": {+ "fontkitten": "^1.0.2"+ }+ },+ "node_modules/fontkitten": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/fontkitten/-/fontkitten-1.0.3.tgz",+ "integrity": "sha512-Wp1zXWPVUPBmfoa3Cqc9ctaKuzKAV6uLstRqlR56kSjplf5uAce+qeyYym7F+PHbGTk+tCEdkCW6RD7DX/gBZw==",+ "license": "MIT",+ "dependencies": {+ "tiny-inflate": "^1.0.3"+ },+ "engines": {+ "node": ">=20"+ }+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "hasInstallScript": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/geist": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/geist/-/geist-1.5.1.tgz",+ "integrity": "sha512-mAHZxIsL2o3ZITFaBVFBnwyDOw+zNLYum6A6nIjpzCGIO8QtC3V76XF2RnZTyLx1wlDTmMDy8jg3Ib52MIjGvQ==",+ "dev": true,+ "license": "SIL OPEN FONT LICENSE",+ "peerDependencies": {+ "next": ">=13.2.0"+ }+ },+ "node_modules/gensync": {+ "version": "1.0.0-beta.2",+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/get-caller-file": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": "6.* || 8.* || >= 10.*"+ }+ },+ "node_modules/get-east-asian-width": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.7.0.tgz",+ "integrity": "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/get-tsconfig": {+ "version": "4.14.3",+ "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.14.3.tgz",+ "integrity": "sha512-++QEw4DIY7WGoukz+/+A/8dGYPT9l9yIadnmSgZ8Rjr3YVSVDipQSO9CdnJo9ePqFqUUqh+wk9uIaoiAwsiPkA==",+ "devOptional": true,+ "license": "MIT",+ "dependencies": {+ "resolve-pkg-maps": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"+ }+ },+ "node_modules/github-slugger": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-2.0.0.tgz",+ "integrity": "sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==",+ "license": "ISC"+ },+ "node_modules/h3": {+ "version": "1.15.11",+ "resolved": "https://registry.npmjs.org/h3/-/h3-1.15.11.tgz",+ "integrity": "sha512-L3THSe2MPeBwgIZVSH5zLdBBU90TOxarvhK9d04IDY2AmVS8j2Jz2LIWtwsGOU3lu2I5jCN7FNvVfY2+XyF+mg==",+ "license": "MIT",+ "dependencies": {+ "cookie-es": "^1.2.3",+ "crossws": "^0.3.5",+ "defu": "^6.1.6",+ "destr": "^2.0.5",+ "iron-webcrypto": "^1.2.1",+ "node-mock-http": "^1.0.4",+ "radix3": "^1.1.2",+ "ufo": "^1.6.3",+ "uncrypto": "^0.1.3"+ }+ },+ "node_modules/hast-util-from-html": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/hast-util-from-html/-/hast-util-from-html-2.0.3.tgz",+ "integrity": "sha512-CUSRHXyKjzHov8yKsQjGOElXy/3EKpyX56ELnkHH34vDVw1N1XSQ1ZcAvTyAPtGqLTuKP/uxM+aLkSPqF/EtMw==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "devlop": "^1.1.0",+ "hast-util-from-parse5": "^8.0.0",+ "parse5": "^7.0.0",+ "vfile": "^6.0.0",+ "vfile-message": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/hast-util-from-parse5": {+ "version": "8.0.4",+ "resolved": "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-8.0.4.tgz",+ "integrity": "sha512-Yq7XlXor0Cpb71sI2E0zpv8QxQ5a6rfhDEETk4bcgrFX2SvJAY2PHocWwFtL6U9qyfiyByW3wZ6sZEfP2kW81g==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "@types/unist": "^3.0.0",+ "devlop": "^1.0.0",+ "hastscript": "^9.0.0",+ "property-information": "^7.0.0",+ "vfile": "^6.0.0",+ "vfile-location": "^5.0.0",+ "web-namespaces": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/hast-util-parse-selector": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-4.0.0.tgz",+ "integrity": "sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/hast-util-raw": {+ "version": "9.1.0",+ "resolved": "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-9.1.0.tgz",+ "integrity": "sha512-Y8/SBAHkZGoNkpzqqfCldijcuUKh7/su31kEBp67cFY09Wy0mTRgtsLYsiIxMJxlu0f6AA5SUTbDR8K0rxnbUw==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "@types/unist": "^3.0.0",+ "@ungap/structured-clone": "^1.0.0",+ "hast-util-from-parse5": "^8.0.0",+ "hast-util-to-parse5": "^8.0.0",+ "html-void-elements": "^3.0.0",+ "mdast-util-to-hast": "^13.0.0",+ "parse5": "^7.0.0",+ "unist-util-position": "^5.0.0",+ "unist-util-visit": "^5.0.0",+ "vfile": "^6.0.0",+ "web-namespaces": "^2.0.0",+ "zwitch": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/hast-util-to-html": {+ "version": "9.0.6",+ "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.6.tgz",+ "integrity": "sha512-1SZUxCN3TtJAE7e2BQN2MBHsoZ1gnmi9GoCP5Di59CSWptIezSAW09yDZyVbanb78V9eCwrKqdQsjtfVTxYHWA==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "@types/unist": "^3.0.0",+ "ccount": "^2.0.0",+ "comma-separated-tokens": "^2.0.0",+ "hast-util-whitespace": "^3.0.0",+ "html-void-elements": "^3.0.0",+ "mdast-util-to-hast": "^13.0.0",+ "property-information": "^7.0.0",+ "space-separated-tokens": "^2.0.0",+ "stringify-entities": "^4.0.0",+ "zwitch": "^2.0.4"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/hast-util-to-parse5": {+ "version": "8.0.1",+ "resolved": "https://registry.npmjs.org/hast-util-to-parse5/-/hast-util-to-parse5-8.0.1.tgz",+ "integrity": "sha512-MlWT6Pjt4CG9lFCjiz4BH7l9wmrMkfkJYCxFwKQic8+RTZgWPuWxwAfjJElsXkex7DJjfSJsQIt931ilUgmwdA==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "comma-separated-tokens": "^2.0.0",+ "devlop": "^1.0.0",+ "property-information": "^7.0.0",+ "space-separated-tokens": "^2.0.0",+ "web-namespaces": "^2.0.0",+ "zwitch": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/hast-util-to-text": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/hast-util-to-text/-/hast-util-to-text-4.0.3.tgz",+ "integrity": "sha512-5yrlWOvGFs6CqHriUpSsNrjzT/Tdo+IOQudbznxOn8K5qblp18MJyzOg8IgDOKQ8MYgQcJA7SusuCjSpDr8mSA==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/hast-util-whitespace": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz",+ "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/hastscript": {+ "version": "9.0.3",+ "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-9.0.3.tgz",+ "integrity": "sha512-1ALZXSmCGmW3h8AMz4R4+QKSKFi7sNgXLVwmwB8FYVtl1CwQ3WDkSAEY/d5tp1g/vbQgq2s1WlHgfO3jbw1TsA==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "comma-separated-tokens": "^2.0.0",+ "hast-util-parse-selector": "^4.0.0",+ "property-information": "^7.0.0",+ "space-separated-tokens": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/he": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",+ "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==",+ "license": "MIT",+ "bin": {+ "he": "bin/he"+ }+ },+ "node_modules/html-escaper": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-3.0.3.tgz",+ "integrity": "sha512-RuMffC89BOWQoY0WKGpIhn5gX3iI54O6nRA0yC124NYVtzjmFWBIiFd8M0x+ZdX0P9R4lADg1mgP8C7PxGOWuQ==",+ "license": "MIT"+ },+ "node_modules/html-void-elements": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-3.0.0.tgz",+ "integrity": "sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/http-cache-semantics": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.3.0.tgz",+ "integrity": "sha512-M5t5LlJpS1UHMjvwRQVdFHvPISGeLAxNcrWuJkeGh0KxsqCHZ1O3NXZU/8x7cD0BDcGW8kapxMKTvwlqrNkHkA==",+ "license": "BSD-2-Clause"+ },+ "node_modules/import-meta-resolve": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.2.0.tgz",+ "integrity": "sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/iron-webcrypto": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/iron-webcrypto/-/iron-webcrypto-1.2.1.tgz",+ "integrity": "sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==",+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/brc-dd"+ }+ },+ "node_modules/is-docker": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz",+ "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==",+ "license": "MIT",+ "bin": {+ "is-docker": "cli.js"+ },+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-inside-container": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz",+ "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==",+ "license": "MIT",+ "dependencies": {+ "is-docker": "^3.0.0"+ },+ "bin": {+ "is-inside-container": "cli.js"+ },+ "engines": {+ "node": ">=14.16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-plain-obj": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz",+ "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-wsl": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.1.tgz",+ "integrity": "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==",+ "license": "MIT",+ "dependencies": {+ "is-inside-container": "^1.0.0"+ },+ "engines": {+ "node": ">=16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/js-tokens": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",+ "license": "MIT"+ },+ "node_modules/js-yaml": {+ "version": "4.3.2",+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz",+ "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/puzrin"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/nodeca"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "argparse": "^2.0.1"+ },+ "bin": {+ "js-yaml": "bin/js-yaml.js"+ }+ },+ "node_modules/jsesc": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",+ "license": "MIT",+ "bin": {+ "jsesc": "bin/jsesc"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/json-schema-traverse": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/json5": {+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",+ "license": "MIT",+ "bin": {+ "json5": "lib/cli.js"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/jsonc-parser": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.3.1.tgz",+ "integrity": "sha512-H8jvkz1O50L3dMZCsLqiuB2tA7muqbSg1AtGEkN0leAqGjsUzDJir3Zwr02BhqdcITPg3ei3mZ+HjMocAknhhg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/kleur": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz",+ "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/kolorist": {+ "version": "1.8.0",+ "resolved": "https://registry.npmjs.org/kolorist/-/kolorist-1.8.0.tgz",+ "integrity": "sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==",+ "license": "MIT"+ },+ "node_modules/longest-streak": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz",+ "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/loupe": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz",+ "integrity": "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/lru-cache": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",+ "license": "ISC",+ "dependencies": {+ "yallist": "^3.0.2"+ }+ },+ "node_modules/magic-string": {+ "version": "0.30.21",+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",+ "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.5"+ }+ },+ "node_modules/magicast": {+ "version": "0.5.5",+ "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.5.5.tgz",+ "integrity": "sha512-UicdXN8zQ3JHlxVq+28afMXPr1z7WNY6+7EJnzTdQWkTAlMLF5fNCCKxJHBQwGaNGR11581EiQmQzx73+MvszA==",+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.29.7",+ "@babel/types": "^7.29.7",+ "source-map-js": "^1.2.1"+ }+ },+ "node_modules/markdown-table": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.4.tgz",+ "integrity": "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/mdast-util-definitions": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/mdast-util-definitions/-/mdast-util-definitions-6.0.0.tgz",+ "integrity": "sha512-scTllyX6pnYNZH/AIp/0ePz6s4cZtARxImwoPJ7kS42n+MnVsI4XbnG6d4ibehRIldYMWM2LD7ImQblVhUejVQ==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "@types/unist": "^3.0.0",+ "unist-util-visit": "^5.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-find-and-replace": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.4.tgz",+ "integrity": "sha512-z4B5c6jrnJ1ltOQemhWYPBSAo6y42Z8Gt2yEgfgNTMcLSU59B8bfj8Z8AnAlJrBGLnqkdAUZ7jdDEqQw3KuipQ==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "escape-string-regexp": "^5.0.0",+ "unist-util-is": "^6.0.0",+ "unist-util-visit-parents": "^6.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-from-markdown": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.1.0.tgz",+ "integrity": "sha512-KRLgmPaP2H1ul2bpoJkOS+9pAcDAAj9Nu1mqLnh8NLeJG5tlvj42TH80PIGBpROWlRXLk0lDrWNuZCFy/tsB4A==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "@types/unist": "^3.0.0",+ "decode-named-character-reference": "^1.0.0",+ "devlop": "^1.0.0",+ "mdast-util-to-string": "^4.0.0",+ "micromark": "^4.0.0",+ "micromark-util-decode-numeric-character-reference": "^2.0.0",+ "micromark-util-decode-string": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0",+ "unist-util-stringify-position": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-3.1.0.tgz",+ "integrity": "sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==",+ "license": "MIT",+ "dependencies": {+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-gfm-autolink-literal": "^2.0.0",+ "mdast-util-gfm-footnote": "^2.0.0",+ "mdast-util-gfm-strikethrough": "^2.0.0",+ "mdast-util-gfm-table": "^2.0.0",+ "mdast-util-gfm-task-list-item": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm-autolink-literal": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.0.1.tgz",+ "integrity": "sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "ccount": "^2.0.0",+ "devlop": "^1.0.0",+ "mdast-util-find-and-replace": "^3.0.0",+ "micromark-util-character": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm-footnote": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-2.1.0.tgz",+ "integrity": "sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "devlop": "^1.1.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm-strikethrough": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.1.tgz",+ "integrity": "sha512-OuJHqvr455pwu2OaOrir7dbzqs4jlWKOtlu9L6GjcIjjQwNyw02VntQsr/Ek6/A13vgnXfUhBekWRUP1OkNivw==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm-table": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.0.tgz",+ "integrity": "sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "markdown-table": "^3.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm-task-list-item": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.0.tgz",+ "integrity": "sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-phrasing": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz",+ "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "unist-util-is": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-to-hast": {+ "version": "13.2.1",+ "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz",+ "integrity": "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "@ungap/structured-clone": "^1.0.0",+ "devlop": "^1.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "trim-lines": "^3.0.0",+ "unist-util-position": "^5.0.0",+ "unist-util-visit": "^5.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-to-markdown": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.2.1.tgz",+ "integrity": "sha512-ThatlCBxG2GE+mljhNSfZPv56d3QrGiRh97jjYgIk80IzS4uU6d7cHAaexCYSAmUCCcOs3grJ07kX3oTGsFUOw==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "@types/unist": "^3.0.0",+ "longest-streak": "^3.0.0",+ "mdast-util-phrasing": "^4.0.0",+ "mdast-util-to-string": "^4.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-classify-character": "^2.0.0",+ "micromark-util-decode-string": "^2.0.0",+ "micromark-util-html-tag-name": "^2.0.0",+ "unist-util-visit": "^5.0.0",+ "zwitch": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-to-string": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz",+ "integrity": "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdn-data": {+ "version": "2.27.1",+ "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz",+ "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==",+ "license": "CC0-1.0"+ },+ "node_modules/micromark": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.3.tgz",+ "integrity": "sha512-oGYfQzHSG5dOMovQcJ3fyTmZlWAWpi0XA0sJwJs+i6OT88o1+Jtw/8z0CmdowSLxGhhFK89rQ/oXph/wN02PNw==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "@types/debug": "^4.0.0",+ "debug": "^4.0.0",+ "decode-named-character-reference": "^1.0.0",+ "devlop": "^1.0.0",+ "micromark-core-commonmark": "^2.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-combine-extensions": "^2.0.0",+ "micromark-util-decode-numeric-character-reference": "^2.0.0",+ "micromark-util-edit-map": "^1.0.0",+ "micromark-util-encode": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-resolve-all": "^2.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "micromark-util-subtokenize": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-core-commonmark": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.4.tgz",+ "integrity": "sha512-wxEeE8v8XVvOrxn1TZj74qYhAtTQsSqufHVS3uNVyT1MupXxhyaHk8/9xDNPh9BmL77QNDgWTkZ3RsYHB2ry7w==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "decode-named-character-reference": "^1.0.0",+ "devlop": "^1.0.0",+ "micromark-factory-destination": "^2.0.0",+ "micromark-factory-label": "^2.0.0",+ "micromark-factory-space": "^2.1.0",+ "micromark-factory-title": "^2.0.0",+ "micromark-factory-whitespace": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-classify-character": "^2.0.0",+ "micromark-util-edit-map": "^1.0.0",+ "micromark-util-html-tag-name": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-resolve-all": "^2.0.0",+ "micromark-util-subtokenize": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.3"+ }+ },+ "node_modules/micromark-extension-gfm": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-3.0.0.tgz",+ "integrity": "sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==",+ "license": "MIT",+ "dependencies": {+ "micromark-extension-gfm-autolink-literal": "^2.0.0",+ "micromark-extension-gfm-footnote": "^2.0.0",+ "micromark-extension-gfm-strikethrough": "^2.0.0",+ "micromark-extension-gfm-table": "^2.0.0",+ "micromark-extension-gfm-tagfilter": "^2.0.0",+ "micromark-extension-gfm-task-list-item": "^2.0.0",+ "micromark-util-combine-extensions": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-autolink-literal": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-2.1.0.tgz",+ "integrity": "sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==",+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-footnote": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-2.1.0.tgz",+ "integrity": "sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-core-commonmark": "^2.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-strikethrough": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-2.1.0.tgz",+ "integrity": "sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-classify-character": "^2.0.0",+ "micromark-util-resolve-all": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-table": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.2.tgz",+ "integrity": "sha512-pRzm4kDTu0MjlmBkxmS9yYhw60nncfcEwu9NNdPFSQEFXS95ZKyIIyTSHu/o3ReBUrLKYEq+7YaXCRn/bPB4MA==",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-tagfilter": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-2.0.0.tgz",+ "integrity": "sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==",+ "license": "MIT",+ "dependencies": {+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-task-list-item": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-2.1.0.tgz",+ "integrity": "sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-factory-destination": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz",+ "integrity": "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-factory-label": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz",+ "integrity": "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-factory-space": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.1.0.tgz",+ "integrity": "sha512-fS8hnLIjnjvdQIj39Geug8wWsR0HrYZ43KShKxNfwT7t2LOHo/LbWZEzEaSOjwtjdCsjoE6syHhonEzW0zv0+Q==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-factory-title": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz",+ "integrity": "sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-factory-whitespace": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz",+ "integrity": "sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-character": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz",+ "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-chunked": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz",+ "integrity": "sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "node_modules/micromark-util-classify-character": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz",+ "integrity": "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-combine-extensions": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz",+ "integrity": "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-decode-numeric-character-reference": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz",+ "integrity": "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "node_modules/micromark-util-decode-string": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz",+ "integrity": "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "decode-named-character-reference": "^1.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-decode-numeric-character-reference": "^2.0.0",+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "node_modules/micromark-util-edit-map": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/micromark-util-edit-map/-/micromark-util-edit-map-1.0.0.tgz",+ "integrity": "sha512-Pa2ljlsEL6sVwFaYeyrOLSYbQt73JvGbPOYFq+9AElXiSnfI5Q4465RRZ1sHv7lDjDOnGRDDaqPXqClqWK/q1Q==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-encode": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz",+ "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "node_modules/micromark-util-html-tag-name": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz",+ "integrity": "sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "node_modules/micromark-util-normalize-identifier": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz",+ "integrity": "sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "node_modules/micromark-util-resolve-all": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz",+ "integrity": "sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-sanitize-uri": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz",+ "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-encode": "^2.0.0",+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "node_modules/micromark-util-subtokenize": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz",+ "integrity": "sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-symbol": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz",+ "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "node_modules/micromark-util-types": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.3.tgz",+ "integrity": "sha512-oxB2Ik03hI0gv+VNn9tnh1t1YEe9MDPptViAEgfdf3YQHsn0pzGTgCdlSCJXcwhqm8phaEuM7zeEu3QQzVBrPg==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "node_modules/mrmime": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-2.0.1.tgz",+ "integrity": "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==",+ "license": "MIT",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "license": "MIT"+ },+ "node_modules/muggle-string": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.4.1.tgz",+ "integrity": "sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/nanoid": {+ "version": "3.3.20",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz",+ "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/neotraverse": {+ "version": "0.6.18",+ "resolved": "https://registry.npmjs.org/neotraverse/-/neotraverse-0.6.18.tgz",+ "integrity": "sha512-Z4SmBUweYa09+o6pG+eASabEpP6QkQ70yHj351pQoEXIs8uHbaU2DWVmzBANKgflPa47A50PtB2+NgRpQvr7vA==",+ "license": "MIT",+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/next": {+ "version": "16.4.3",+ "resolved": "https://registry.npmjs.org/next/-/next-16.4.3.tgz",+ "integrity": "sha512-OqxKTGi9u80FydydsMNYNjnuje9Au+kvHlt2GZ//ftdpDHm1dxKqAaENoOOTX5wKzn+9vaKUNIfZeyZUuLhCnA==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@next/env": "16.4.3",+ "@swc/helpers": "0.5.23",+ "baseline-browser-mapping": "^2.9.19",+ "caniuse-lite": "^1.0.30001579",+ "postcss": "8.5.23",+ "styled-jsx": "5.1.6"+ },+ "bin": {+ "next": "dist/bin/next"+ },+ "engines": {+ "node": ">=20.9.0"+ },+ "optionalDependencies": {+ "@next/swc-darwin-arm64": "16.4.3",+ "@next/swc-darwin-x64": "16.4.3",+ "@next/swc-linux-arm64-gnu": "16.4.3",+ "@next/swc-linux-arm64-musl": "16.4.3",+ "@next/swc-linux-x64-gnu": "16.4.3",+ "@next/swc-linux-x64-musl": "16.4.3",+ "@next/swc-win32-arm64-msvc": "16.4.3",+ "@next/swc-win32-x64-msvc": "16.4.3",+ "sharp": "^0.35.5"+ },+ "peerDependencies": {+ "@opentelemetry/api": "^1.1.0",+ "@playwright/test": "^1.51.1",+ "babel-plugin-react-compiler": "*",+ "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0",+ "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0",+ "sass": "^1.3.0"+ },+ "peerDependenciesMeta": {+ "@opentelemetry/api": {+ "optional": true+ },+ "@playwright/test": {+ "optional": true+ },+ "babel-plugin-react-compiler": {+ "optional": true+ },+ "sass": {+ "optional": true+ }+ }+ },+ "node_modules/next/node_modules/@img/sharp-darwin-arm64": {+ "version": "0.35.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.5.tgz",+ "integrity": "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "peer": true,+ "engines": {+ "node": ">=20.9.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-darwin-arm64": "1.3.4"+ }+ },+ "node_modules/next/node_modules/@img/sharp-darwin-x64": {+ "version": "0.35.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.5.tgz",+ "integrity": "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "peer": true,+ "engines": {+ "node": ">=20.9.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-darwin-x64": "1.3.4"+ }+ },+ "node_modules/next/node_modules/@img/sharp-libvips-darwin-arm64": {+ "version": "1.3.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.4.tgz",+ "integrity": "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "darwin"+ ],+ "peer": true,+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/next/node_modules/@img/sharp-libvips-darwin-x64": {+ "version": "1.3.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.4.tgz",+ "integrity": "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "darwin"+ ],+ "peer": true,+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/next/node_modules/@img/sharp-libvips-linux-arm": {+ "version": "1.3.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.4.tgz",+ "integrity": "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/next/node_modules/@img/sharp-libvips-linux-arm64": {+ "version": "1.3.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.4.tgz",+ "integrity": "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/next/node_modules/@img/sharp-libvips-linux-ppc64": {+ "version": "1.3.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.4.tgz",+ "integrity": "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/next/node_modules/@img/sharp-libvips-linux-riscv64": {+ "version": "1.3.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.4.tgz",+ "integrity": "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/next/node_modules/@img/sharp-libvips-linux-s390x": {+ "version": "1.3.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.4.tgz",+ "integrity": "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/next/node_modules/@img/sharp-libvips-linux-x64": {+ "version": "1.3.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.4.tgz",+ "integrity": "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/next/node_modules/@img/sharp-libvips-linuxmusl-arm64": {+ "version": "1.3.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.4.tgz",+ "integrity": "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/next/node_modules/@img/sharp-libvips-linuxmusl-x64": {+ "version": "1.3.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.4.tgz",+ "integrity": "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/next/node_modules/@img/sharp-linux-arm": {+ "version": "0.35.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.5.tgz",+ "integrity": "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": ">=20.9.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linux-arm": "1.3.4"+ }+ },+ "node_modules/next/node_modules/@img/sharp-linux-arm64": {+ "version": "0.35.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.5.tgz",+ "integrity": "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": ">=20.9.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linux-arm64": "1.3.4"+ }+ },+ "node_modules/next/node_modules/@img/sharp-linux-ppc64": {+ "version": "0.35.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.5.tgz",+ "integrity": "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": ">=20.9.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linux-ppc64": "1.3.4"+ }+ },+ "node_modules/next/node_modules/@img/sharp-linux-riscv64": {+ "version": "0.35.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.5.tgz",+ "integrity": "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": ">=20.9.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linux-riscv64": "1.3.4"+ }+ },+ "node_modules/next/node_modules/@img/sharp-linux-s390x": {+ "version": "0.35.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.5.tgz",+ "integrity": "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": ">=20.9.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linux-s390x": "1.3.4"+ }+ },+ "node_modules/next/node_modules/@img/sharp-linux-x64": {+ "version": "0.35.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.5.tgz",+ "integrity": "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": ">=20.9.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linux-x64": "1.3.4"+ }+ },+ "node_modules/next/node_modules/@img/sharp-linuxmusl-arm64": {+ "version": "0.35.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.5.tgz",+ "integrity": "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": ">=20.9.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linuxmusl-arm64": "1.3.4"+ }+ },+ "node_modules/next/node_modules/@img/sharp-linuxmusl-x64": {+ "version": "0.35.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.5.tgz",+ "integrity": "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": ">=20.9.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linuxmusl-x64": "1.3.4"+ }+ },+ "node_modules/next/node_modules/@img/sharp-win32-arm64": {+ "version": "0.35.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.5.tgz",+ "integrity": "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "Apache-2.0 AND LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "win32"+ ],+ "peer": true,+ "engines": {+ "node": ">=20.9.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/next/node_modules/@img/sharp-win32-ia32": {+ "version": "0.35.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.5.tgz",+ "integrity": "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "Apache-2.0 AND LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "win32"+ ],+ "peer": true,+ "engines": {+ "node": "^20.9.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/next/node_modules/@img/sharp-win32-x64": {+ "version": "0.35.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.5.tgz",+ "integrity": "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "Apache-2.0 AND LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "win32"+ ],+ "peer": true,+ "engines": {+ "node": ">=20.9.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/next/node_modules/postcss": {+ "version": "8.5.23",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.23.tgz",+ "integrity": "sha512-g50586zr4bZmwFiTlflMu8E0bDTb5I5gertgwAKmsdUlTQIhZtunzUlD1WSzwcVWPoAVpsrA6vlfCD7oXvRwgg==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/postcss"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "nanoid": "^3.3.16",+ "picocolors": "^1.1.1",+ "source-map-js": "^1.2.1"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/next/node_modules/semver": {+ "version": "7.8.5",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",+ "dev": true,+ "license": "ISC",+ "optional": true,+ "peer": true,+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/next/node_modules/sharp": {+ "version": "0.35.5",+ "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.5.tgz",+ "integrity": "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==",+ "dev": true,+ "license": "Apache-2.0",+ "optional": true,+ "peer": true,+ "dependencies": {+ "@img/colour": "^1.1.0",+ "detect-libc": "^2.1.2",+ "semver": "^7.8.5"+ },+ "engines": {+ "node": ">=20.9.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-darwin-arm64": "0.35.5",+ "@img/sharp-darwin-x64": "0.35.5",+ "@img/sharp-freebsd-wasm32": "0.35.5",+ "@img/sharp-libvips-darwin-arm64": "1.3.4",+ "@img/sharp-libvips-darwin-x64": "1.3.4",+ "@img/sharp-libvips-linux-arm": "1.3.4",+ "@img/sharp-libvips-linux-arm64": "1.3.4",+ "@img/sharp-libvips-linux-ppc64": "1.3.4",+ "@img/sharp-libvips-linux-riscv64": "1.3.4",+ "@img/sharp-libvips-linux-s390x": "1.3.4",+ "@img/sharp-libvips-linux-x64": "1.3.4",+ "@img/sharp-libvips-linuxmusl-arm64": "1.3.4",+ "@img/sharp-libvips-linuxmusl-x64": "1.3.4",+ "@img/sharp-linux-arm": "0.35.5",+ "@img/sharp-linux-arm64": "0.35.5",+ "@img/sharp-linux-ppc64": "0.35.5",+ "@img/sharp-linux-riscv64": "0.35.5",+ "@img/sharp-linux-s390x": "0.35.5",+ "@img/sharp-linux-x64": "0.35.5",+ "@img/sharp-linuxmusl-arm64": "0.35.5",+ "@img/sharp-linuxmusl-x64": "0.35.5",+ "@img/sharp-webcontainers-wasm32": "0.35.5",+ "@img/sharp-win32-arm64": "0.35.5",+ "@img/sharp-win32-ia32": "0.35.5",+ "@img/sharp-win32-x64": "0.35.5"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ }+ }+ },+ "node_modules/nlcst-to-string": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/nlcst-to-string/-/nlcst-to-string-4.0.0.tgz",+ "integrity": "sha512-YKLBCcUYKAg0FNlOBT6aI91qFmSiFKiluk655WzPF+DDMA02qIyy8uiRqI8QXtcFpEvll12LpL5MXqEmAZ+dcA==",+ "license": "MIT",+ "dependencies": {+ "@types/nlcst": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/node-fetch-native": {+ "version": "1.6.7",+ "resolved": "https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.6.7.tgz",+ "integrity": "sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==",+ "license": "MIT"+ },+ "node_modules/node-html-parser": {+ "version": "6.1.13",+ "resolved": "https://registry.npmjs.org/node-html-parser/-/node-html-parser-6.1.13.tgz",+ "integrity": "sha512-qIsTMOY4C/dAa5Q5vsobRpOOvPfC4pB61UVW2uSwZNUp0QU/jCekTal1vMmbO0DgdHeLUJpv/ARmDqErVxA3Sg==",+ "license": "MIT",+ "dependencies": {+ "css-select": "^5.1.0",+ "he": "1.2.0"+ }+ },+ "node_modules/node-html-parser/node_modules/css-select": {+ "version": "5.2.2",+ "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.2.2.tgz",+ "integrity": "sha512-TizTzUddG/xYLA3NXodFM0fSbNizXjOKhqiQQwvhlspadZokn1KDy0NZFS0wuEubIYAV5/c1/lAr0TaaFXEXzw==",+ "license": "BSD-2-Clause",+ "dependencies": {+ "boolbase": "^1.0.0",+ "css-what": "^6.1.0",+ "domhandler": "^5.0.2",+ "domutils": "^3.0.1",+ "nth-check": "^2.0.1"+ },+ "funding": {+ "url": "https://github.com/sponsors/fb55"+ }+ },+ "node_modules/node-html-parser/node_modules/css-what": {+ "version": "6.2.2",+ "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.2.2.tgz",+ "integrity": "sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA==",+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">= 6"+ },+ "funding": {+ "url": "https://github.com/sponsors/fb55"+ }+ },+ "node_modules/node-mock-http": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/node-mock-http/-/node-mock-http-1.0.5.tgz",+ "integrity": "sha512-KQyt/wLjG3TAc7DOUhpqWzgd4ERxR80JOlTK5VE5R1S12IaPVN5qkj4klBce9HPG1Njuup4Sb5bljaT34lIyjw==",+ "license": "MIT"+ },+ "node_modules/node-releases": {+ "version": "2.0.62",+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.62.tgz",+ "integrity": "sha512-A0Eq+qVDQI97IbAD6g/HriIuv256el9N8EwF4+xqJ49pwrdRYpdCSmLk0sO4I3fnS6hpYE5v22B73Bk+WArEoQ==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/normalize-path": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/nth-check": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz",+ "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==",+ "license": "BSD-2-Clause",+ "dependencies": {+ "boolbase": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/fb55/nth-check?sponsor=1"+ }+ },+ "node_modules/ofetch": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/ofetch/-/ofetch-1.5.1.tgz",+ "integrity": "sha512-2W4oUZlVaqAPAil6FUg/difl6YhqhUR7x2eZY4bQCko22UXg3hptq9KLQdqFClV+Wu85UX7hNtdGTngi/1BxcA==",+ "license": "MIT",+ "dependencies": {+ "destr": "^2.0.5",+ "node-fetch-native": "^1.6.7",+ "ufo": "^1.6.1"+ }+ },+ "node_modules/ohash": {+ "version": "2.0.12",+ "resolved": "https://registry.npmjs.org/ohash/-/ohash-2.0.12.tgz",+ "integrity": "sha512-65S/5gk9YSsaRjcyf7Nfa6h/d3E8/1gslpXfI4W7Dxn/oap8IKRuNT5VXkLQ1YFKIEg4apRY4Pj6aiwFzrDdmw==",+ "license": "MIT"+ },+ "node_modules/oniguruma-parser": {+ "version": "0.12.2",+ "resolved": "https://registry.npmjs.org/oniguruma-parser/-/oniguruma-parser-0.12.2.tgz",+ "integrity": "sha512-6HVa5oIrgMC6aA6WF6XyyqbhRPJrKR02L20+2+zpDtO5QAzGHAUGw5TKQvwi5vctNnRHkJYmjAhRVQF2EKdTQw==",+ "license": "MIT"+ },+ "node_modules/oniguruma-to-es": {+ "version": "4.3.6",+ "resolved": "https://registry.npmjs.org/oniguruma-to-es/-/oniguruma-to-es-4.3.6.tgz",+ "integrity": "sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA==",+ "license": "MIT",+ "dependencies": {+ "oniguruma-parser": "^0.12.2",+ "regex": "^6.1.0",+ "regex-recursion": "^6.0.2"+ }+ },+ "node_modules/p-limit": {+ "version": "6.2.0",+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-6.2.0.tgz",+ "integrity": "sha512-kuUqqHNUqoIWp/c467RI4X6mmyuojY5jGutNU0wVTmEOOfcuwLqyMVoAi9MKi2Ak+5i9+nhmrK4ufZE8069kHA==",+ "license": "MIT",+ "dependencies": {+ "yocto-queue": "^1.1.1"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/p-queue": {+ "version": "8.1.1",+ "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-8.1.1.tgz",+ "integrity": "sha512-aNZ+VfjobsWryoiPnEApGGmf5WmNsCo9xu8dfaYamG5qaLP7ClhLN6NgsFe6SwJ2UbLEBK5dv9x8Mn5+RVhMWQ==",+ "license": "MIT",+ "dependencies": {+ "eventemitter3": "^5.0.1",+ "p-timeout": "^6.1.2"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/p-timeout": {+ "version": "6.1.4",+ "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-6.1.4.tgz",+ "integrity": "sha512-MyIV3ZA/PmyBN/ud8vV9XzwTrNtR4jFrObymZYnZqMmW0zA8Z17vnT0rBgFE/TlohB+YCHqXMgZzb3Csp49vqg==",+ "license": "MIT",+ "engines": {+ "node": ">=14.16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/package-manager-detector": {+ "version": "1.9.0",+ "resolved": "https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-1.9.0.tgz",+ "integrity": "sha512-zAMfbta9nPA8AKkA4WdmNAT8R8s6Dk0/xwPsqNnRidMFcLo1YkLuPDTgs2f64XdzS8vbLNnoJ+uUIkgbz7oRHA==",+ "license": "MIT"+ },+ "node_modules/parse-latin": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/parse-latin/-/parse-latin-7.0.0.tgz",+ "integrity": "sha512-mhHgobPPua5kZ98EF4HWiH167JWBfl4pvAIXXdbaVohtK7a6YBOy56kvhCqduqyo/f3yrHFWmqmiMg/BkBkYYQ==",+ "license": "MIT",+ "dependencies": {+ "@types/nlcst": "^2.0.0",+ "@types/unist": "^3.0.0",+ "nlcst-to-string": "^4.0.0",+ "unist-util-modify-children": "^4.0.0",+ "unist-util-visit-children": "^3.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/parse5": {+ "version": "7.3.0",+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz",+ "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==",+ "license": "MIT",+ "dependencies": {+ "entities": "^6.0.0"+ },+ "funding": {+ "url": "https://github.com/inikulin/parse5?sponsor=1"+ }+ },+ "node_modules/path-browserify": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz",+ "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/pathe": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",+ "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/pathval": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz",+ "integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 14.16"+ }+ },+ "node_modules/piccolore": {+ "version": "0.1.3",+ "resolved": "https://registry.npmjs.org/piccolore/-/piccolore-0.1.3.tgz",+ "integrity": "sha512-o8bTeDWjE086iwKrROaDf31K0qC/BENdm15/uH9usSC/uZjJOKb2YGiVHfLY4GhwsERiPI1jmwI2XrA7ACOxVw==",+ "license": "ISC"+ },+ "node_modules/picocolors": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",+ "license": "ISC"+ },+ "node_modules/picomatch": {+ "version": "4.0.7",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/playwright-core": {+ "version": "1.64.0",+ "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.64.0.tgz",+ "integrity": "sha512-T9r+MZkTECl2+oUcZ26YgZzTrYidTsIhYYkJix+6iDOymOb1FB2RLLSOxRGnZGv5DStt+aduIVbt+E8WygXYpg==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "playwright-core": "cli.js"+ },+ "engines": {+ "node": ">=20"+ }+ },+ "node_modules/postcss": {+ "version": "8.5.32",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.32.tgz",+ "integrity": "sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==",+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/postcss"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "nanoid": "^3.3.20",+ "picocolors": "^1.1.1",+ "source-map-js": "^1.2.2"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/preact": {+ "version": "10.27.2",+ "resolved": "https://registry.npmjs.org/preact/-/preact-10.27.2.tgz",+ "integrity": "sha512-5SYSgFKSyhCbk6SrXyMpqjb5+MQBgfvEKE/OC+PujcY34sOpqtr+0AZQtPYx5IA6VxynQ7rUPCtKzyovpj9Bpg==",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/preact"+ }+ },+ "node_modules/preact-render-to-string": {+ "version": "6.8.2",+ "resolved": "https://registry.npmjs.org/preact-render-to-string/-/preact-render-to-string-6.8.2.tgz",+ "integrity": "sha512-Hdx7cKD3AMYgt795TdddBpUbuGEFoL/VeA6s7VrBt9Gjt0r6rCy5wMp5xkDjQ9cbKj62frHsEx1x8yV6EjoOpg==",+ "license": "MIT",+ "peerDependencies": {+ "preact": ">=10 || >= 11.0.0-0"+ }+ },+ "node_modules/prettier": {+ "version": "3.9.10",+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.10.tgz",+ "integrity": "sha512-skGHTH1Yb9QvaTC4hWnRTzEYtCpApF0UMBPz+t/0ZPzP8ihefo/btKd+QA7pUE0fEwA1SbS/NmhyEcstdXOIdA==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "prettier": "bin/prettier.cjs"+ },+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/prettier/prettier?sponsor=1"+ }+ },+ "node_modules/prismjs": {+ "version": "1.30.0",+ "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.30.0.tgz",+ "integrity": "sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/prompts": {+ "version": "2.4.2",+ "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz",+ "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==",+ "license": "MIT",+ "dependencies": {+ "kleur": "^3.0.3",+ "sisteransi": "^1.0.5"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/property-information": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/property-information/-/property-information-7.2.0.tgz",+ "integrity": "sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/radix3": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/radix3/-/radix3-1.1.2.tgz",+ "integrity": "sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA==",+ "license": "MIT"+ },+ "node_modules/react": {+ "version": "19.3.1",+ "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz",+ "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/react-dom": {+ "version": "19.3.1",+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.1.tgz",+ "integrity": "sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "scheduler": "^0.28.0"+ },+ "peerDependencies": {+ "react": "^19.3.1"+ }+ },+ "node_modules/readdirp": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-5.1.1.tgz",+ "integrity": "sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==",+ "license": "MIT",+ "engines": {+ "node": ">= 20.19.0"+ },+ "funding": {+ "type": "individual",+ "url": "https://paulmillr.com/funding/"+ }+ },+ "node_modules/regex": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/regex/-/regex-6.1.0.tgz",+ "integrity": "sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==",+ "license": "MIT",+ "dependencies": {+ "regex-utilities": "^2.3.0"+ }+ },+ "node_modules/regex-recursion": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/regex-recursion/-/regex-recursion-6.0.2.tgz",+ "integrity": "sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==",+ "license": "MIT",+ "dependencies": {+ "regex-utilities": "^2.3.0"+ }+ },+ "node_modules/regex-utilities": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/regex-utilities/-/regex-utilities-2.3.0.tgz",+ "integrity": "sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==",+ "license": "MIT"+ },+ "node_modules/rehype": {+ "version": "13.0.2",+ "resolved": "https://registry.npmjs.org/rehype/-/rehype-13.0.2.tgz",+ "integrity": "sha512-j31mdaRFrwFRUIlxGeuPXXKWQxet52RBQRvCmzl5eCefn/KGbomK5GMHNMsOJf55fgo3qw5tST5neDuarDYR2A==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "rehype-parse": "^9.0.0",+ "rehype-stringify": "^10.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/rehype-parse": {+ "version": "9.0.1",+ "resolved": "https://registry.npmjs.org/rehype-parse/-/rehype-parse-9.0.1.tgz",+ "integrity": "sha512-ksCzCD0Fgfh7trPDxr2rSylbwq9iYDkSn8TCDmEJ49ljEUBxDVCzCHv7QNzZOfODanX4+bWQ4WZqLCRWYLfhag==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "hast-util-from-html": "^2.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/rehype-raw": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/rehype-raw/-/rehype-raw-7.0.0.tgz",+ "integrity": "sha512-/aE8hCfKlQeA8LmyeyQvQF3eBiLRGNlfBJEvWH7ivp9sBqs7TNqBL5X3v157rM4IFETqDnIOO+z5M/biZbo9Ww==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "hast-util-raw": "^9.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/rehype-stringify": {+ "version": "10.0.1",+ "resolved": "https://registry.npmjs.org/rehype-stringify/-/rehype-stringify-10.0.1.tgz",+ "integrity": "sha512-k9ecfXHmIPuFVI61B9DeLPN0qFHfawM6RsuX48hoqlaKSF61RskNjSm1lI8PhBEM0MRdLxVVm4WmTqJQccH9mA==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "hast-util-to-html": "^9.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/remark-gfm": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/remark-gfm/-/remark-gfm-4.0.1.tgz",+ "integrity": "sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-gfm": "^3.0.0",+ "micromark-extension-gfm": "^3.0.0",+ "remark-parse": "^11.0.0",+ "remark-stringify": "^11.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/remark-parse": {+ "version": "11.0.0",+ "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz",+ "integrity": "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "micromark-util-types": "^2.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/remark-rehype": {+ "version": "11.1.2",+ "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-11.1.2.tgz",+ "integrity": "sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "mdast-util-to-hast": "^13.0.0",+ "unified": "^11.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/remark-smartypants": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/remark-smartypants/-/remark-smartypants-3.0.3.tgz",+ "integrity": "sha512-gCaK+ndZ0hYezlqFegHFCVh2CQemsi0Npdh1qVM9bxlUFknjkbP6VmojWhddOCrbK0PbbacmYLWfTULRiT1eWA==",+ "license": "MIT",+ "dependencies": {+ "retext": "^9.0.0",+ "retext-smartypants": "^6.0.0",+ "unified": "^11.0.4",+ "unist-util-visit": "^5.0.0"+ },+ "engines": {+ "node": ">=16.0.0"+ }+ },+ "node_modules/remark-stringify": {+ "version": "11.0.0",+ "resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-11.0.0.tgz",+ "integrity": "sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-to-markdown": "^2.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/request-light": {+ "version": "0.7.0",+ "resolved": "https://registry.npmjs.org/request-light/-/request-light-0.7.0.tgz",+ "integrity": "sha512-lMbBMrDoxgsyO+yB3sDcrDuX85yYt7sS8BfQd11jtbW/z5ZWgLZRcEGLsLoYw7I0WSUGQBs8CC8ScIxkTX1+6Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/require-from-string": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/resolve-pkg-maps": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz",+ "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==",+ "devOptional": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1"+ }+ },+ "node_modules/retext": {+ "version": "9.0.0",+ "resolved": "https://registry.npmjs.org/retext/-/retext-9.0.0.tgz",+ "integrity": "sha512-sbMDcpHCNjvlheSgMfEcVrZko3cDzdbe1x/e7G66dFp0Ff7Mldvi2uv6JkJQzdRcvLYE8CA8Oe8siQx8ZOgTcA==",+ "license": "MIT",+ "dependencies": {+ "@types/nlcst": "^2.0.0",+ "retext-latin": "^4.0.0",+ "retext-stringify": "^4.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/retext-latin": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/retext-latin/-/retext-latin-4.0.0.tgz",+ "integrity": "sha512-hv9woG7Fy0M9IlRQloq/N6atV82NxLGveq+3H2WOi79dtIYWN8OaxogDm77f8YnVXJL2VD3bbqowu5E3EMhBYA==",+ "license": "MIT",+ "dependencies": {+ "@types/nlcst": "^2.0.0",+ "parse-latin": "^7.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/retext-smartypants": {+ "version": "6.2.0",+ "resolved": "https://registry.npmjs.org/retext-smartypants/-/retext-smartypants-6.2.0.tgz",+ "integrity": "sha512-kk0jOU7+zGv//kfjXEBjdIryL1Acl4i9XNkHxtM7Tm5lFiCog576fjNC9hjoR7LTKQ0DsPWy09JummSsH1uqfQ==",+ "license": "MIT",+ "dependencies": {+ "@types/nlcst": "^2.0.0",+ "nlcst-to-string": "^4.0.0",+ "unist-util-visit": "^5.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/retext-stringify": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/retext-stringify/-/retext-stringify-4.0.0.tgz",+ "integrity": "sha512-rtfN/0o8kL1e+78+uxPTqu1Klt0yPzKuQ2BfWwwfgIUSayyzxpM1PJzkKt4V8803uB9qSy32MvI7Xep9khTpiA==",+ "license": "MIT",+ "dependencies": {+ "@types/nlcst": "^2.0.0",+ "nlcst-to-string": "^4.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/rollup": {+ "version": "4.66.0",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.66.0.tgz",+ "integrity": "sha512-Onq6/qO4ARhxIs+jYiHE0pYehadLyMECAiGEqQ+0/aWND3+2PmifJIIqBLYtuBODqHTlOUEQFtIVPyCy0Lck7A==",+ "license": "MIT",+ "dependencies": {+ "@types/estree": "1.0.9"+ },+ "bin": {+ "rollup": "dist/bin/rollup"+ },+ "engines": {+ "node": ">=18.0.0",+ "npm": ">=8.0.0"+ },+ "optionalDependencies": {+ "@napi-rs/lzma-linux-x64-gnu": "1.5.1",+ "@rollup/rollup-android-arm-eabi": "4.66.0",+ "@rollup/rollup-android-arm64": "4.66.0",+ "@rollup/rollup-darwin-arm64": "4.66.0",+ "@rollup/rollup-darwin-x64": "4.66.0",+ "@rollup/rollup-freebsd-arm64": "4.66.0",+ "@rollup/rollup-freebsd-x64": "4.66.0",+ "@rollup/rollup-linux-arm-gnueabihf": "4.66.0",+ "@rollup/rollup-linux-arm-musleabihf": "4.66.0",+ "@rollup/rollup-linux-arm64-gnu": "4.66.0",+ "@rollup/rollup-linux-arm64-musl": "4.66.0",+ "@rollup/rollup-linux-loong64-gnu": "4.66.0",+ "@rollup/rollup-linux-loong64-musl": "4.66.0",+ "@rollup/rollup-linux-ppc64-gnu": "4.66.0",+ "@rollup/rollup-linux-ppc64-musl": "4.66.0",+ "@rollup/rollup-linux-riscv64-gnu": "4.66.0",+ "@rollup/rollup-linux-riscv64-musl": "4.66.0",+ "@rollup/rollup-linux-s390x-gnu": "4.66.0",+ "@rollup/rollup-linux-x64-gnu": "4.66.0",+ "@rollup/rollup-linux-x64-musl": "4.66.0",+ "@rollup/rollup-openbsd-x64": "4.66.0",+ "@rollup/rollup-openharmony-arm64": "4.66.0",+ "@rollup/rollup-win32-arm64-msvc": "4.66.0",+ "@rollup/rollup-win32-ia32-msvc": "4.66.0",+ "@rollup/rollup-win32-x64-gnu": "4.66.0",+ "@rollup/rollup-win32-x64-msvc": "4.66.0",+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/rollup/node_modules/@types/estree": {+ "version": "1.0.9",+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",+ "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",+ "license": "MIT"+ },+ "node_modules/sax": {+ "version": "1.6.1",+ "resolved": "https://registry.npmjs.org/sax/-/sax-1.6.1.tgz",+ "integrity": "sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==",+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": ">=11.0.0"+ }+ },+ "node_modules/scheduler": {+ "version": "0.28.0",+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz",+ "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==",+ "dev": true,+ "license": "MIT",+ "peer": true+ },+ "node_modules/semver": {+ "version": "6.3.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ }+ },+ "node_modules/sharp": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.34.5.tgz",+ "integrity": "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==",+ "hasInstallScript": true,+ "license": "Apache-2.0",+ "optional": true,+ "dependencies": {+ "@img/colour": "^1.0.0",+ "detect-libc": "^2.1.2",+ "semver": "^7.7.3"+ },+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "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"+ }+ },+ "node_modules/sharp/node_modules/semver": {+ "version": "7.8.5",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",+ "license": "ISC",+ "optional": true,+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/shiki": {+ "version": "3.23.0",+ "resolved": "https://registry.npmjs.org/shiki/-/shiki-3.23.0.tgz",+ "integrity": "sha512-55Dj73uq9ZXL5zyeRPzHQsK7Nbyt6Y10k5s7OjuFZGMhpp4r/rsLBH0o/0fstIzX1Lep9VxefWljK/SKCzygIA==",+ "license": "MIT",+ "dependencies": {+ "@shikijs/core": "3.23.0",+ "@shikijs/engine-javascript": "3.23.0",+ "@shikijs/engine-oniguruma": "3.23.0",+ "@shikijs/langs": "3.23.0",+ "@shikijs/themes": "3.23.0",+ "@shikijs/types": "3.23.0",+ "@shikijs/vscode-textmate": "^10.0.2",+ "@types/hast": "^3.0.4"+ }+ },+ "node_modules/siginfo": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz",+ "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/simple-code-frame": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/simple-code-frame/-/simple-code-frame-1.3.0.tgz",+ "integrity": "sha512-MB4pQmETUBlNs62BBeRjIFGeuy/x6gGKh7+eRUemn1rCFhqo7K+4slPqsyizCbcbYLnaYqaoZ2FWsZ/jN06D8w==",+ "license": "MIT",+ "dependencies": {+ "kolorist": "^1.6.0"+ }+ },+ "node_modules/sisteransi": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz",+ "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==",+ "license": "MIT"+ },+ "node_modules/smol-toml": {+ "version": "1.9.1",+ "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.9.1.tgz",+ "integrity": "sha512-j7WyPdf0CJoutMzMoPLF/bVXHtKZIT9Rb4eGeEbWw8X2t5oirjPgpL+OpaENZrILYaXqYwnVH+qgUwVbl+pUJQ==",+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "url": "https://github.com/sponsors/cyyynthia"+ }+ },+ "node_modules/source-map": {+ "version": "0.7.6",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.6.tgz",+ "integrity": "sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==",+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">= 12"+ }+ },+ "node_modules/source-map-js": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz",+ "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==",+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/space-separated-tokens": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz",+ "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/stack-trace": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-1.0.0.tgz",+ "integrity": "sha512-H6D7134xi6qONvh7ZHKgviXf+rd3vhGBSvebPZCaUkd8zvQ+7PtDw6CljPTe4cXWNf2IKZGNqw6VJXSb9IgBpA==",+ "license": "MIT",+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/stackback": {+ "version": "0.0.2",+ "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",+ "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/std-env": {+ "version": "3.10.0",+ "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.10.0.tgz",+ "integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/string-width": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^10.3.0",+ "get-east-asian-width": "^1.0.0",+ "strip-ansi": "^7.1.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/stringify-entities": {+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz",+ "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==",+ "license": "MIT",+ "dependencies": {+ "character-entities-html4": "^2.0.0",+ "character-entities-legacy": "^3.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/strip-ansi": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^6.2.2"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"+ }+ },+ "node_modules/strip-literal": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-3.1.0.tgz",+ "integrity": "sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "js-tokens": "^9.0.1"+ },+ "funding": {+ "url": "https://github.com/sponsors/antfu"+ }+ },+ "node_modules/strip-literal/node_modules/js-tokens": {+ "version": "9.0.1",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.1.tgz",+ "integrity": "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/styled-jsx": {+ "version": "5.1.6",+ "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.6.tgz",+ "integrity": "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "client-only": "0.0.1"+ },+ "engines": {+ "node": ">= 12.0.0"+ },+ "peerDependencies": {+ "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0"+ },+ "peerDependenciesMeta": {+ "@babel/core": {+ "optional": true+ },+ "babel-plugin-macros": {+ "optional": true+ }+ }+ },+ "node_modules/svgo": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/svgo/-/svgo-4.1.0.tgz",+ "integrity": "sha512-bkxnTg1kSU0guhIBmibA6UUhrQmPVA1XsQLN+ylCd+UWzbnLkySOcXpyk1mrl05f+pcaCx2eHb+sp6BgMZWX+Q==",+ "license": "MIT",+ "dependencies": {+ "commander": "^11.1.0",+ "css-select": "^6.0.0",+ "css-tree": "^3.0.1",+ "css-what": "^7.0.0",+ "csso": "^5.0.5",+ "picocolors": "^1.1.1",+ "sax": "1.6.1"+ },+ "bin": {+ "svgo": "bin/svgo.js"+ },+ "engines": {+ "node": ">=16"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/svgo"+ }+ },+ "node_modules/tiny-inflate": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/tiny-inflate/-/tiny-inflate-1.0.3.tgz",+ "integrity": "sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==",+ "license": "MIT"+ },+ "node_modules/tinybench": {+ "version": "2.9.0",+ "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz",+ "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tinyexec": {+ "version": "1.3.1",+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.1.tgz",+ "integrity": "sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tinyglobby": {+ "version": "0.2.17",+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",+ "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==",+ "license": "MIT",+ "dependencies": {+ "fdir": "^6.5.0",+ "picomatch": "^4.0.4"+ },+ "engines": {+ "node": ">=12.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/SuperchupuDev"+ }+ },+ "node_modules/tinypool": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz",+ "integrity": "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ }+ },+ "node_modules/tinyrainbow": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz",+ "integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/tinyspy": {+ "version": "4.0.6",+ "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-4.0.6.tgz",+ "integrity": "sha512-u8KszXvGfU68hVcZpRHKG28T0krMuv2G5nDhiHaMLen/gIuFEgIJhaJuO69qjnXg5paSrbPMFfx3brNuN8eVSg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/trim-lines": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz",+ "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/trough": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/trough/-/trough-2.2.0.tgz",+ "integrity": "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/tsconfck": {+ "version": "3.1.6",+ "resolved": "https://registry.npmjs.org/tsconfck/-/tsconfck-3.1.6.tgz",+ "integrity": "sha512-ks6Vjr/jEw0P1gmOVwutM3B7fWxoWBL2KRDb1JfqGVawBmO5UsvmWOQFGHBPl5yxYz4eERr19E6L7NMv+Fej4w==",+ "deprecated": "unmaintained",+ "license": "MIT",+ "bin": {+ "tsconfck": "bin/tsconfck.js"+ },+ "engines": {+ "node": "^18 || >=20"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/tslib": {+ "version": "2.8.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",+ "devOptional": true,+ "license": "0BSD"+ },+ "node_modules/tsx": {+ "version": "4.20.6",+ "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.20.6.tgz",+ "integrity": "sha512-ytQKuwgmrrkDTFP4LjR0ToE2nqgy886GpvRSpU0JAnrdBYppuY5rLkRUYPU1yCryb24SsKBTL/hlDQAEFVwtZg==",+ "devOptional": true,+ "license": "MIT",+ "dependencies": {+ "esbuild": "~0.25.0",+ "get-tsconfig": "^4.7.5"+ },+ "bin": {+ "tsx": "dist/cli.mjs"+ },+ "engines": {+ "node": ">=18.0.0"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/aix-ppc64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz",+ "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==",+ "cpu": [+ "ppc64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/android-arm": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz",+ "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==",+ "cpu": [+ "arm"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/android-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz",+ "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/android-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz",+ "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/darwin-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz",+ "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/darwin-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz",+ "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/freebsd-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz",+ "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/freebsd-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz",+ "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-arm": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz",+ "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==",+ "cpu": [+ "arm"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz",+ "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-ia32": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz",+ "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==",+ "cpu": [+ "ia32"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-loong64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz",+ "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==",+ "cpu": [+ "loong64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-mips64el": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz",+ "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==",+ "cpu": [+ "mips64el"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-ppc64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz",+ "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==",+ "cpu": [+ "ppc64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-riscv64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz",+ "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==",+ "cpu": [+ "riscv64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-s390x": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz",+ "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==",+ "cpu": [+ "s390x"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/linux-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz",+ "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/netbsd-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz",+ "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/netbsd-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz",+ "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/openbsd-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz",+ "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/openbsd-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz",+ "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/openharmony-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz",+ "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/sunos-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz",+ "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/win32-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz",+ "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/win32-ia32": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz",+ "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==",+ "cpu": [+ "ia32"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/win32-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz",+ "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tsx/node_modules/esbuild": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz",+ "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==",+ "devOptional": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.25.12",+ "@esbuild/android-arm": "0.25.12",+ "@esbuild/android-arm64": "0.25.12",+ "@esbuild/android-x64": "0.25.12",+ "@esbuild/darwin-arm64": "0.25.12",+ "@esbuild/darwin-x64": "0.25.12",+ "@esbuild/freebsd-arm64": "0.25.12",+ "@esbuild/freebsd-x64": "0.25.12",+ "@esbuild/linux-arm": "0.25.12",+ "@esbuild/linux-arm64": "0.25.12",+ "@esbuild/linux-ia32": "0.25.12",+ "@esbuild/linux-loong64": "0.25.12",+ "@esbuild/linux-mips64el": "0.25.12",+ "@esbuild/linux-ppc64": "0.25.12",+ "@esbuild/linux-riscv64": "0.25.12",+ "@esbuild/linux-s390x": "0.25.12",+ "@esbuild/linux-x64": "0.25.12",+ "@esbuild/netbsd-arm64": "0.25.12",+ "@esbuild/netbsd-x64": "0.25.12",+ "@esbuild/openbsd-arm64": "0.25.12",+ "@esbuild/openbsd-x64": "0.25.12",+ "@esbuild/openharmony-arm64": "0.25.12",+ "@esbuild/sunos-x64": "0.25.12",+ "@esbuild/win32-arm64": "0.25.12",+ "@esbuild/win32-ia32": "0.25.12",+ "@esbuild/win32-x64": "0.25.12"+ }+ },+ "node_modules/type-fest": {+ "version": "4.41.0",+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz",+ "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==",+ "license": "(MIT OR CC0-1.0)",+ "engines": {+ "node": ">=16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/typesafe-path": {+ "version": "0.2.2",+ "resolved": "https://registry.npmjs.org/typesafe-path/-/typesafe-path-0.2.2.tgz",+ "integrity": "sha512-OJabfkAg1WLZSqJAJ0Z6Sdt3utnbzr/jh+NAHoyWHJe8CMSy79Gm085094M9nvTPy22KzTVn5Zq5mbapCI/hPA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/typescript": {+ "version": "5.9.3",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",+ "license": "Apache-2.0",+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "node_modules/typescript-auto-import-cache": {+ "version": "0.3.6",+ "resolved": "https://registry.npmjs.org/typescript-auto-import-cache/-/typescript-auto-import-cache-0.3.6.tgz",+ "integrity": "sha512-RpuHXrknHdVdK7wv/8ug3Fr0WNsNi5l5aB8MYYuXhq2UH5lnEB1htJ1smhtD5VeCsGr2p8mUDtd83LCQDFVgjQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "semver": "^7.3.8"+ }+ },+ "node_modules/typescript-auto-import-cache/node_modules/semver": {+ "version": "7.8.5",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/ufo": {+ "version": "1.6.4",+ "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.4.tgz",+ "integrity": "sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==",+ "license": "MIT"+ },+ "node_modules/ultrahtml": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/ultrahtml/-/ultrahtml-1.7.0.tgz",+ "integrity": "sha512-2xRd0VHoAQE4M+vF/DvFFB7pUV0ZxTW1TLi7lHQWnF/Sb5TPeEUV/l+hxcNnGO00ZXGnR0voCMmYRKQf+rvJ2g==",+ "license": "MIT"+ },+ "node_modules/uncrypto": {+ "version": "0.1.3",+ "resolved": "https://registry.npmjs.org/uncrypto/-/uncrypto-0.1.3.tgz",+ "integrity": "sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==",+ "license": "MIT"+ },+ "node_modules/undici": {+ "version": "8.12.3",+ "resolved": "https://registry.npmjs.org/undici/-/undici-8.12.3.tgz",+ "integrity": "sha512-+fdndUTwBP86cVjihTp21hZHo7d6oj1c/47XPA3lL8mM0XHs+C4EkcjmgRsFnFk2f/UONGDy9ItBItmXsLOQHw==",+ "license": "MIT",+ "engines": {+ "node": ">=22.19.0"+ }+ },+ "node_modules/undici-types": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",+ "devOptional": true,+ "license": "MIT"+ },+ "node_modules/unified": {+ "version": "11.0.5",+ "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz",+ "integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "bail": "^2.0.0",+ "devlop": "^1.0.0",+ "extend": "^3.0.0",+ "is-plain-obj": "^4.0.0",+ "trough": "^2.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unifont": {+ "version": "0.7.5",+ "resolved": "https://registry.npmjs.org/unifont/-/unifont-0.7.5.tgz",+ "integrity": "sha512-ULe/Cs+ZIsq+dcFofNkhqielCrUJnb5mr+Yc4EBM2VlL+6OZR6+cjtI2mT1bJvRBrVncqHAbLURxmPLcCXzWMg==",+ "license": "MIT",+ "dependencies": {+ "css-tree": "^3.1.0",+ "ohash": "^2.0.11",+ "undici": "^8.0.0"+ }+ },+ "node_modules/unist-util-is": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz",+ "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-modify-children": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/unist-util-modify-children/-/unist-util-modify-children-4.0.0.tgz",+ "integrity": "sha512-+tdN5fGNddvsQdIzUF3Xx82CU9sMM+fA0dLgR9vOmT0oPT2jH+P1nd5lSqfCfXAw+93NhcXNY2qqvTUtE4cQkw==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "array-iterate": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-position": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz",+ "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-remove-position": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/unist-util-remove-position/-/unist-util-remove-position-5.0.0.tgz",+ "integrity": "sha512-Hp5Kh3wLxv0PHj9m2yZhhLt58KzPtEYKQQ4yxfYFEO7EvHwzyDYnduhHnY1mDxoqr7VUwVuHXk9RXKIiYS1N8Q==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "unist-util-visit": "^5.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-stringify-position": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz",+ "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-visit": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.2.0.tgz",+ "integrity": "sha512-fpsYs/VVoZxfGY9/j3FQpZmN8wdLJaV1Pt38AaJNZu9uKIHcFU3halCdBveEq1HGKO1OEfJY65w1zvoFV1b3qQ==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "unist-util-is": "^6.0.0",+ "unist-util-visit-parents": "^6.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-visit-children": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/unist-util-visit-children/-/unist-util-visit-children-3.0.0.tgz",+ "integrity": "sha512-RgmdTfSBOg04sdPcpTSD1jzoNBjt9a80/ZCzp5cI9n1qPzLZWF9YdvWGN2zmTumP1HWhXKdUWexjy/Wy/lJ7tA==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-visit-parents": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.1.0.tgz",+ "integrity": "sha512-vKXxz6O38sKDj1mtx/k2cWvkkFBuYGx6uGrlzBkVeWCRF/F8sdI0j3Wbkz/5rVNRRuVc8UrgRdbCxNhmYXgP3w==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "unist-util-is": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unstorage": {+ "version": "1.17.6",+ "resolved": "https://registry.npmjs.org/unstorage/-/unstorage-1.17.6.tgz",+ "integrity": "sha512-gjKtcmn/KwZuJZO9o2sc0esAQnhmTw0LviDHwevTXbJMYs0dRTp8ZEEWXHU0vTpzbN3cA0yxlTeyXssMp3zDqw==",+ "license": "MIT",+ "dependencies": {+ "anymatch": "^3.1.3",+ "chokidar": "^5.0.0",+ "destr": "^2.0.5",+ "h3": "^1.15.11",+ "lru-cache": "^11.5.3",+ "node-fetch-native": "^1.6.7",+ "ofetch": "^1.5.1",+ "ufo": "^1.6.4"+ },+ "peerDependencies": {+ "@azure/app-configuration": "^1.8.0",+ "@azure/cosmos": "^4.2.0",+ "@azure/data-tables": "^13.3.0",+ "@azure/identity": "^4.6.0",+ "@azure/keyvault-secrets": "^4.9.0",+ "@azure/storage-blob": "^12.26.0",+ "@capacitor/preferences": "^6 || ^7 || ^8",+ "@deno/kv": ">=0.9.0",+ "@netlify/blobs": "^6.5.0 || ^7.0.0 || ^8.1.0 || ^9.0.0 || ^10.0.0 || ^11.0.0",+ "@planetscale/database": "^1.19.0",+ "@upstash/redis": "^1.34.3",+ "@vercel/blob": ">=0.27.1",+ "@vercel/functions": "^2.2.12 || ^3.0.0",+ "@vercel/kv": "^1 || ^2 || ^3",+ "aws4fetch": "^1.0.20",+ "db0": ">=0.2.1",+ "idb-keyval": "^6.2.1",+ "ioredis": "^5.4.2",+ "uploadthing": "^7.4.4"+ },+ "peerDependenciesMeta": {+ "@azure/app-configuration": {+ "optional": true+ },+ "@azure/cosmos": {+ "optional": true+ },+ "@azure/data-tables": {+ "optional": true+ },+ "@azure/identity": {+ "optional": true+ },+ "@azure/keyvault-secrets": {+ "optional": true+ },+ "@azure/storage-blob": {+ "optional": true+ },+ "@capacitor/preferences": {+ "optional": true+ },+ "@deno/kv": {+ "optional": true+ },+ "@netlify/blobs": {+ "optional": true+ },+ "@planetscale/database": {+ "optional": true+ },+ "@upstash/redis": {+ "optional": true+ },+ "@vercel/blob": {+ "optional": true+ },+ "@vercel/functions": {+ "optional": true+ },+ "@vercel/kv": {+ "optional": true+ },+ "aws4fetch": {+ "optional": true+ },+ "db0": {+ "optional": true+ },+ "idb-keyval": {+ "optional": true+ },+ "ioredis": {+ "optional": true+ },+ "uploadthing": {+ "optional": true+ }+ }+ },+ "node_modules/unstorage/node_modules/lru-cache": {+ "version": "11.5.3",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz",+ "integrity": "sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==",+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": "20 || >=22"+ }+ },+ "node_modules/update-browserslist-db": {+ "version": "1.3.4",+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.4.tgz",+ "integrity": "sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==",+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/browserslist"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "escalade": "^3.2.0",+ "picocolors": "^1.1.1"+ },+ "bin": {+ "update-browserslist-db": "cli.js"+ },+ "peerDependencies": {+ "browserslist": ">= 4.21.0"+ }+ },+ "node_modules/vfile": {+ "version": "6.0.3",+ "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz",+ "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "vfile-message": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/vfile-location": {+ "version": "5.0.3",+ "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-5.0.3.tgz",+ "integrity": "sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/vfile-message": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz",+ "integrity": "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "unist-util-stringify-position": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/vite": {+ "version": "6.4.5",+ "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.5.tgz",+ "integrity": "sha512-4enwjFfi4IwtEh0w+jPzpLVOFQiPHmmzPxcHXQOyEur47o6u0jE573DmGpjA+7irXoMLYRZD5ZaFUEneS3abPg==",+ "license": "MIT",+ "dependencies": {+ "esbuild": "^0.25.0",+ "fdir": "^6.4.4",+ "picomatch": "^4.0.2",+ "postcss": "^8.5.3",+ "rollup": "^4.34.9",+ "tinyglobby": "^0.2.13"+ },+ "bin": {+ "vite": "bin/vite.js"+ },+ "engines": {+ "node": "^18.0.0 || ^20.0.0 || >=22.0.0"+ },+ "funding": {+ "url": "https://github.com/vitejs/vite?sponsor=1"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ },+ "peerDependencies": {+ "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",+ "jiti": ">=1.21.0",+ "less": "*",+ "lightningcss": "^1.21.0",+ "sass": "*",+ "sass-embedded": "*",+ "stylus": "*",+ "sugarss": "*",+ "terser": "^5.16.0",+ "tsx": "^4.8.1",+ "yaml": "^2.4.2"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ },+ "jiti": {+ "optional": true+ },+ "less": {+ "optional": true+ },+ "lightningcss": {+ "optional": true+ },+ "sass": {+ "optional": true+ },+ "sass-embedded": {+ "optional": true+ },+ "stylus": {+ "optional": true+ },+ "sugarss": {+ "optional": true+ },+ "terser": {+ "optional": true+ },+ "tsx": {+ "optional": true+ },+ "yaml": {+ "optional": true+ }+ }+ },+ "node_modules/vite-node": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.2.4.tgz",+ "integrity": "sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cac": "^6.7.14",+ "debug": "^4.4.1",+ "es-module-lexer": "^1.7.0",+ "pathe": "^2.0.3",+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0"+ },+ "bin": {+ "vite-node": "vite-node.mjs"+ },+ "engines": {+ "node": "^18.0.0 || ^20.0.0 || >=22.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/vite-prerender-plugin": {+ "version": "0.5.14",+ "resolved": "https://registry.npmjs.org/vite-prerender-plugin/-/vite-prerender-plugin-0.5.14.tgz",+ "integrity": "sha512-X2w9AS1OhwEUec9HSryGAmEnEQJGhW6eFoiCVJv8BfOTVpM8SOjk75cEw/IC28APDHZudeIRbP8Sp7wfABq+Aw==",+ "license": "MIT",+ "dependencies": {+ "kolorist": "^1.8.0",+ "magic-string": "0.x >= 0.26.0",+ "node-html-parser": "^6.1.12",+ "simple-code-frame": "^1.3.0",+ "source-map": "^0.7.4",+ "stack-trace": "^1.0.0-pre2"+ },+ "peerDependencies": {+ "vite": "5.x || 6.x || 7.x || 8.x"+ }+ },+ "node_modules/vite/node_modules/@esbuild/aix-ppc64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz",+ "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==",+ "cpu": [+ "ppc64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/android-arm": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz",+ "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==",+ "cpu": [+ "arm"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/android-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz",+ "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/android-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz",+ "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/darwin-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz",+ "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/darwin-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz",+ "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/freebsd-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz",+ "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/freebsd-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz",+ "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-arm": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz",+ "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==",+ "cpu": [+ "arm"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz",+ "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-ia32": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz",+ "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==",+ "cpu": [+ "ia32"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-loong64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz",+ "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==",+ "cpu": [+ "loong64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-mips64el": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz",+ "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==",+ "cpu": [+ "mips64el"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-ppc64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz",+ "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==",+ "cpu": [+ "ppc64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-riscv64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz",+ "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==",+ "cpu": [+ "riscv64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-s390x": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz",+ "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==",+ "cpu": [+ "s390x"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz",+ "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/netbsd-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz",+ "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/netbsd-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz",+ "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/openbsd-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz",+ "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/openbsd-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz",+ "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/openharmony-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz",+ "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/sunos-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz",+ "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/win32-arm64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz",+ "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/win32-ia32": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz",+ "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==",+ "cpu": [+ "ia32"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/@esbuild/win32-x64": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz",+ "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/vite/node_modules/esbuild": {+ "version": "0.25.12",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz",+ "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==",+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.25.12",+ "@esbuild/android-arm": "0.25.12",+ "@esbuild/android-arm64": "0.25.12",+ "@esbuild/android-x64": "0.25.12",+ "@esbuild/darwin-arm64": "0.25.12",+ "@esbuild/darwin-x64": "0.25.12",+ "@esbuild/freebsd-arm64": "0.25.12",+ "@esbuild/freebsd-x64": "0.25.12",+ "@esbuild/linux-arm": "0.25.12",+ "@esbuild/linux-arm64": "0.25.12",+ "@esbuild/linux-ia32": "0.25.12",+ "@esbuild/linux-loong64": "0.25.12",+ "@esbuild/linux-mips64el": "0.25.12",+ "@esbuild/linux-ppc64": "0.25.12",+ "@esbuild/linux-riscv64": "0.25.12",+ "@esbuild/linux-s390x": "0.25.12",+ "@esbuild/linux-x64": "0.25.12",+ "@esbuild/netbsd-arm64": "0.25.12",+ "@esbuild/netbsd-x64": "0.25.12",+ "@esbuild/openbsd-arm64": "0.25.12",+ "@esbuild/openbsd-x64": "0.25.12",+ "@esbuild/openharmony-arm64": "0.25.12",+ "@esbuild/sunos-x64": "0.25.12",+ "@esbuild/win32-arm64": "0.25.12",+ "@esbuild/win32-ia32": "0.25.12",+ "@esbuild/win32-x64": "0.25.12"+ }+ },+ "node_modules/vitefu": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/vitefu/-/vitefu-1.1.3.tgz",+ "integrity": "sha512-ub4okH7Z5KLjb6hDyjqrGXqWtWvoYdU3IGm/NorpgHncKoLTCfRIbvlhBm7r0YstIaQRYlp4yEbFqDcKSzXSSg==",+ "license": "MIT",+ "workspaces": [+ "tests/deps/*",+ "tests/projects/*",+ "tests/projects/workspace/packages/*"+ ],+ "peerDependencies": {+ "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"+ },+ "peerDependenciesMeta": {+ "vite": {+ "optional": true+ }+ }+ },+ "node_modules/vitest": {+ "version": "3.2.7",+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.2.7.tgz",+ "integrity": "sha512-KrxIJ62Fd89gfysR4WotlgZABiz2dqFPgqGzX7s+CwsqLFomRH7777ZcrOD6+WVAh7khPQP41A+BKbpcJFrdEg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/chai": "^5.2.2",+ "@vitest/expect": "3.2.7",+ "@vitest/mocker": "3.2.7",+ "@vitest/pretty-format": "^3.2.7",+ "@vitest/runner": "3.2.7",+ "@vitest/snapshot": "3.2.7",+ "@vitest/spy": "3.2.7",+ "@vitest/utils": "3.2.7",+ "chai": "^5.2.0",+ "debug": "^4.4.1",+ "expect-type": "^1.2.1",+ "magic-string": "^0.30.17",+ "pathe": "^2.0.3",+ "picomatch": "^4.0.2",+ "std-env": "^3.9.0",+ "tinybench": "^2.9.0",+ "tinyexec": "^0.3.2",+ "tinyglobby": "^0.2.14",+ "tinypool": "^1.1.1",+ "tinyrainbow": "^2.0.0",+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0",+ "vite-node": "3.2.4",+ "why-is-node-running": "^2.3.0"+ },+ "bin": {+ "vitest": "vitest.mjs"+ },+ "engines": {+ "node": "^18.0.0 || ^20.0.0 || >=22.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "@edge-runtime/vm": "*",+ "@types/debug": "^4.1.12",+ "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",+ "@vitest/browser": "3.2.7",+ "@vitest/ui": "3.2.7",+ "happy-dom": "*",+ "jsdom": "*"+ },+ "peerDependenciesMeta": {+ "@edge-runtime/vm": {+ "optional": true+ },+ "@types/debug": {+ "optional": true+ },+ "@types/node": {+ "optional": true+ },+ "@vitest/browser": {+ "optional": true+ },+ "@vitest/ui": {+ "optional": true+ },+ "happy-dom": {+ "optional": true+ },+ "jsdom": {+ "optional": true+ }+ }+ },+ "node_modules/vitest/node_modules/tinyexec": {+ "version": "0.3.2",+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz",+ "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/volar-service-css": {+ "version": "0.0.71",+ "resolved": "https://registry.npmjs.org/volar-service-css/-/volar-service-css-0.0.71.tgz",+ "integrity": "sha512-wRRFt9BpjMKCazcgOh67MSjUjiWUCAh99DyYSDIOTuxaRjEtDC7PpB0k1Y1wbJIW/pVtMUSVbpPo3UGSm0Byxw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "vscode-css-languageservice": "^6.3.0",+ "vscode-languageserver-textdocument": "^1.0.11",+ "vscode-uri": "^3.0.8"+ },+ "peerDependencies": {+ "@volar/language-service": "~2.4.0"+ },+ "peerDependenciesMeta": {+ "@volar/language-service": {+ "optional": true+ }+ }+ },+ "node_modules/volar-service-emmet": {+ "version": "0.0.71",+ "resolved": "https://registry.npmjs.org/volar-service-emmet/-/volar-service-emmet-0.0.71.tgz",+ "integrity": "sha512-zqjzt6bN95e3CUstBm0PBFAJnrfz0ZAARka87fart46/gNCLLuP3Vujy8V/J8HEziTFLnfkgIASLFYPUhonJcA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@emmetio/css-parser": "^0.4.1",+ "@emmetio/html-matcher": "^1.3.0",+ "@vscode/emmet-helper": "^2.9.3",+ "vscode-uri": "^3.0.8"+ },+ "peerDependencies": {+ "@volar/language-service": "~2.4.0"+ },+ "peerDependenciesMeta": {+ "@volar/language-service": {+ "optional": true+ }+ }+ },+ "node_modules/volar-service-html": {+ "version": "0.0.71",+ "resolved": "https://registry.npmjs.org/volar-service-html/-/volar-service-html-0.0.71.tgz",+ "integrity": "sha512-e8tHPhgQ7ooLfudAEIku+kgd9pWkq3SSz8RbnQDI1+Eb8wbenkLGHqoirLqz5ORLV6wIMr2Iv08RWBG5eOcgpw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "vscode-html-languageservice": "^5.3.0",+ "vscode-languageserver-textdocument": "^1.0.11",+ "vscode-uri": "^3.0.8"+ },+ "peerDependencies": {+ "@volar/language-service": "~2.4.0"+ },+ "peerDependenciesMeta": {+ "@volar/language-service": {+ "optional": true+ }+ }+ },+ "node_modules/volar-service-prettier": {+ "version": "0.0.71",+ "resolved": "https://registry.npmjs.org/volar-service-prettier/-/volar-service-prettier-0.0.71.tgz",+ "integrity": "sha512-Rz7JVH3qD108UCdmIEiZvOBNljMt2nLFdbN8AXcDfn7xD9F5I2aCIsDVqBbXw21PsnxG0b7MfwtNF+zPS/NKUg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "vscode-uri": "^3.0.8"+ },+ "peerDependencies": {+ "@volar/language-service": "~2.4.0",+ "prettier": "^2.2 || ^3.0"+ },+ "peerDependenciesMeta": {+ "@volar/language-service": {+ "optional": true+ },+ "prettier": {+ "optional": true+ }+ }+ },+ "node_modules/volar-service-typescript": {+ "version": "0.0.71",+ "resolved": "https://registry.npmjs.org/volar-service-typescript/-/volar-service-typescript-0.0.71.tgz",+ "integrity": "sha512-yTtM/BVT6hoyEYnDtaCyAtNhdNeS/mhTTABlBOdw3NNiRBUin3IznFJpgfjer4c6RYopiPjjQjc9VFhxVl1mLw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "path-browserify": "^1.0.1",+ "semver": "^7.6.2",+ "typescript-auto-import-cache": "^0.3.5",+ "vscode-languageserver-textdocument": "^1.0.11",+ "vscode-nls": "^5.2.0",+ "vscode-uri": "^3.0.8"+ },+ "peerDependencies": {+ "@volar/language-service": "~2.4.0"+ },+ "peerDependenciesMeta": {+ "@volar/language-service": {+ "optional": true+ }+ }+ },+ "node_modules/volar-service-typescript-twoslash-queries": {+ "version": "0.0.71",+ "resolved": "https://registry.npmjs.org/volar-service-typescript-twoslash-queries/-/volar-service-typescript-twoslash-queries-0.0.71.tgz",+ "integrity": "sha512-9K2k72s4n7rV9s4bX0MyjbX9iBribvKZbBJKuEmTCZfeWJXs6Yh7bGpY4eoc7UufAjvpheBqwyZCOIPBvxCv0A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "vscode-uri": "^3.0.8"+ },+ "peerDependencies": {+ "@volar/language-service": "~2.4.0"+ },+ "peerDependenciesMeta": {+ "@volar/language-service": {+ "optional": true+ }+ }+ },+ "node_modules/volar-service-typescript/node_modules/semver": {+ "version": "7.8.5",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/volar-service-yaml": {+ "version": "0.0.71",+ "resolved": "https://registry.npmjs.org/volar-service-yaml/-/volar-service-yaml-0.0.71.tgz",+ "integrity": "sha512-qYGWGuVpUTnZGu5P/CR4KLK4aIR8RrcVnmfZ2eRcj9q/I8VZCoC5yy9FtEvfNvnDp4MU17yhdJcvpQPIqhJS2Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "vscode-uri": "^3.0.8",+ "yaml-language-server": "~1.23.0"+ },+ "peerDependencies": {+ "@volar/language-service": "~2.4.0"+ },+ "peerDependenciesMeta": {+ "@volar/language-service": {+ "optional": true+ }+ }+ },+ "node_modules/vscode-css-languageservice": {+ "version": "6.3.10",+ "resolved": "https://registry.npmjs.org/vscode-css-languageservice/-/vscode-css-languageservice-6.3.10.tgz",+ "integrity": "sha512-eq5N9Er3fC4vA9zd9EFhyBG90wtCCuXgRSpAndaOgXMh1Wgep5lBgRIeDgjZBW9pa+332yC9+49cZMW8jcL3MA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vscode/l10n": "^0.0.18",+ "vscode-languageserver-textdocument": "^1.0.12",+ "vscode-languageserver-types": "3.17.5",+ "vscode-uri": "^3.1.0"+ }+ },+ "node_modules/vscode-css-languageservice/node_modules/vscode-languageserver-types": {+ "version": "3.17.5",+ "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.5.tgz",+ "integrity": "sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/vscode-html-languageservice": {+ "version": "5.6.2",+ "resolved": "https://registry.npmjs.org/vscode-html-languageservice/-/vscode-html-languageservice-5.6.2.tgz",+ "integrity": "sha512-ulCrSnFnfQ16YzvwnYUgEbUEl/ZG7u2eV27YhvLObSHKkb8fw1Z9cgsnUwjTEeDIdJDoTDTDpxuhQwoenoLNMg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vscode/l10n": "^0.0.18",+ "vscode-languageserver-textdocument": "^1.0.12",+ "vscode-languageserver-types": "^3.17.5",+ "vscode-uri": "^3.1.0"+ }+ },+ "node_modules/vscode-json-languageservice": {+ "version": "4.1.8",+ "resolved": "https://registry.npmjs.org/vscode-json-languageservice/-/vscode-json-languageservice-4.1.8.tgz",+ "integrity": "sha512-0vSpg6Xd9hfV+eZAaYN63xVVMOTmJ4GgHxXnkLCh+9RsQBkWKIghzLhW2B9ebfG+LQQg8uLtsQ2aUKjTgE+QOg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "jsonc-parser": "^3.0.0",+ "vscode-languageserver-textdocument": "^1.0.1",+ "vscode-languageserver-types": "^3.16.0",+ "vscode-nls": "^5.0.0",+ "vscode-uri": "^3.0.2"+ },+ "engines": {+ "npm": ">=7.0.0"+ }+ },+ "node_modules/vscode-json-languageservice/node_modules/jsonc-parser": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz",+ "integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/vscode-jsonrpc": {+ "version": "10.0.0",+ "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-10.0.0.tgz",+ "integrity": "sha512-USSfxg0vDIpTQqlQBGxF3mBARyoS8cU7LHLpbYNh6dOJt32dlskxPWB0Irrh5TllTmyf7oNLAvqDqzklbwwnpA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.17.0"+ }+ },+ "node_modules/vscode-languageserver": {+ "version": "9.0.1",+ "resolved": "https://registry.npmjs.org/vscode-languageserver/-/vscode-languageserver-9.0.1.tgz",+ "integrity": "sha512-woByF3PDpkHFUreUa7Hos7+pUWdeWMXRd26+ZX2A8cFx6v/JPTtd4/uN0/jB6XQHYaOlHbio03NTHCqrgG5n7g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "vscode-languageserver-protocol": "3.17.5"+ },+ "bin": {+ "installServerIntoExtension": "bin/installServerIntoExtension"+ }+ },+ "node_modules/vscode-languageserver-protocol": {+ "version": "3.18.5",+ "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.18.5.tgz",+ "integrity": "sha512-FW4fBMzZ99N8xeob4py0l050wgCoRgTpEq5Xcsb9lM1bc29UKGR/wSV+4knaqFxssFHajy7OzNiKP/m3U1ZEuA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "vscode-jsonrpc": "10.0.0",+ "vscode-languageserver-types": "3.18.5"+ }+ },+ "node_modules/vscode-languageserver-textdocument": {+ "version": "1.0.16",+ "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.16.tgz",+ "integrity": "sha512-qeNEuOi9a3qkqRf7Gfez2WL2VwlBTLCNekHBGO9kxPVUp9XuY15yfTJ9jwvOwKI0I2MhUUfZq95NSp+LK1CLQg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/vscode-languageserver-types": {+ "version": "3.18.5",+ "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.18.5.tgz",+ "integrity": "sha512-kPd6+JQNz3HMJvjKlqUxERSlZHAntl/aGpsk7ImwIh0ewDKDcjgAEyVSYciPiOJD3ftbK9IrfiqUeTZLSbCizw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/vscode-languageserver/node_modules/vscode-jsonrpc": {+ "version": "8.2.0",+ "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-8.2.0.tgz",+ "integrity": "sha512-C+r0eKJUIfiDIfwJhria30+TYWPtuHJXHtI7J0YlOmKAo7ogxP20T0zxB7HZQIFhIyvoBPwWskjxrvAtfjyZfA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/vscode-languageserver/node_modules/vscode-languageserver-protocol": {+ "version": "3.17.5",+ "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.17.5.tgz",+ "integrity": "sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "vscode-jsonrpc": "8.2.0",+ "vscode-languageserver-types": "3.17.5"+ }+ },+ "node_modules/vscode-languageserver/node_modules/vscode-languageserver-types": {+ "version": "3.17.5",+ "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.5.tgz",+ "integrity": "sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/vscode-nls": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/vscode-nls/-/vscode-nls-5.2.0.tgz",+ "integrity": "sha512-RAaHx7B14ZU04EU31pT+rKz2/zSl7xMsfIZuo8pd+KZO6PXtQmpevpq3vxvWNcrGbdmhM/rr5Uw5Mz+NBfhVng==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/vscode-uri": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.2.0.tgz",+ "integrity": "sha512-m2gXo3bn0G1kT9InzMf07fTbqMbGtyckj3bH5ktLO+1Ssv+yiATZ4dhwaQv9UZWxJh6E9IFGnQyjgWVDWVBDrg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/web-namespaces": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz",+ "integrity": "sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/which-pm-runs": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/which-pm-runs/-/which-pm-runs-1.1.0.tgz",+ "integrity": "sha512-n1brCuqClxfFfq/Rb0ICg9giSZqCS+pLtccdag6C2HyufBrh3fBOiy9nb6ggRMvWOVH5GrdJskj5iGTZNxd7SA==",+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/why-is-node-running": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz",+ "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "siginfo": "^2.0.0",+ "stackback": "0.0.2"+ },+ "bin": {+ "why-is-node-running": "cli.js"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/widest-line": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-5.0.0.tgz",+ "integrity": "sha512-c9bZp7b5YtRj2wOe6dlj32MK+Bx/M/d+9VB2SHM1OtsUHR0aV0tdP6DWh/iMt0kWi1t5g1Iudu6hQRNd1A4PVA==",+ "license": "MIT",+ "dependencies": {+ "string-width": "^7.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/wrap-ansi": {+ "version": "9.0.2",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz",+ "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==",+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^6.2.1",+ "string-width": "^7.0.0",+ "strip-ansi": "^7.1.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/xxhash-wasm": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/xxhash-wasm/-/xxhash-wasm-1.1.0.tgz",+ "integrity": "sha512-147y/6YNh+tlp6nd/2pWq38i9h6mz/EuQ6njIrmW8D1BS5nCqs0P6DG+m6zTGnNz5I+uhZ0SHxBs9BsPrwcKDA==",+ "license": "MIT"+ },+ "node_modules/y18n": {+ "version": "5.0.8",+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/yallist": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",+ "license": "ISC"+ },+ "node_modules/yaml": {+ "version": "2.9.1",+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz",+ "integrity": "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==",+ "devOptional": true,+ "license": "ISC",+ "bin": {+ "yaml": "bin.mjs"+ },+ "engines": {+ "node": ">= 14.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/eemeli"+ }+ },+ "node_modules/yaml-language-server": {+ "version": "1.23.0",+ "resolved": "https://registry.npmjs.org/yaml-language-server/-/yaml-language-server-1.23.0.tgz",+ "integrity": "sha512-3qVyCOexLCWw06PQa5kRPwvMWMZ/eZeCRWUvgD6a0OkqL/4iCnxy2WumbWifa937Uo5xhyWJ0uxlU39ljhNh7A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vscode/l10n": "^0.0.18",+ "ajv": "^8.17.1",+ "ajv-draft-04": "^1.0.0",+ "ajv-i18n": "^4.2.0",+ "prettier": "^3.8.1",+ "request-light": "^0.5.7",+ "vscode-json-languageservice": "4.1.8",+ "vscode-languageserver": "^9.0.0",+ "vscode-languageserver-textdocument": "^1.0.1",+ "vscode-languageserver-types": "^3.16.0",+ "vscode-uri": "^3.0.2",+ "yaml": "2.8.3"+ },+ "bin": {+ "yaml-language-server": "bin/yaml-language-server"+ }+ },+ "node_modules/yaml-language-server/node_modules/request-light": {+ "version": "0.5.8",+ "resolved": "https://registry.npmjs.org/request-light/-/request-light-0.5.8.tgz",+ "integrity": "sha512-3Zjgh+8b5fhRJBQZoy+zbVKpAQGLyka0MPgW3zruTF4dFFJ8Fqcfu9YsAvi/rvdcaTeWG3MkbZv4WKxAn/84Lg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/yaml-language-server/node_modules/yaml": {+ "version": "2.8.3",+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.3.tgz",+ "integrity": "sha512-AvbaCLOO2Otw/lW5bmh9d/WEdcDFdQp2Z2ZUH3pX9U2ihyUY0nvLv7J6TrWowklRGPYbB/IuIMfYgxaCPg5Bpg==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "yaml": "bin.mjs"+ },+ "engines": {+ "node": ">= 14.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/eemeli"+ }+ },+ "node_modules/yargs": {+ "version": "18.2.0",+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-18.2.0.tgz",+ "integrity": "sha512-9OpKOLeaoNFecEp7P6iYbzze/5CqWoH7N3SMs/6y1XF4nMvFMspEGZzJ6uFi9MmQwXhyzqYoSEKO3tvA3Z/o2w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cliui": "^9.0.1",+ "escalade": "^3.1.1",+ "get-caller-file": "^2.0.5",+ "string-width": "^8.2.1",+ "y18n": "^5.0.5",+ "yargs-parser": "^22.0.0"+ },+ "engines": {+ "node": "^20.19.0 || ^22.12.0 || >=23"+ }+ },+ "node_modules/yargs-parser": {+ "version": "21.1.1",+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",+ "license": "ISC",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/yargs/node_modules/string-width": {+ "version": "8.3.0",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-8.3.0.tgz",+ "integrity": "sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "get-east-asian-width": "^1.5.0",+ "strip-ansi": "^7.1.2"+ },+ "engines": {+ "node": ">=20"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/yargs/node_modules/yargs-parser": {+ "version": "22.0.0",+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz",+ "integrity": "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": "^20.19.0 || ^22.12.0 || >=23"+ }+ },+ "node_modules/yocto-queue": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.2.2.tgz",+ "integrity": "sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ==",+ "license": "MIT",+ "engines": {+ "node": ">=12.20"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/yocto-spinner": {+ "version": "0.2.3",+ "resolved": "https://registry.npmjs.org/yocto-spinner/-/yocto-spinner-0.2.3.tgz",+ "integrity": "sha512-sqBChb33loEnkoXte1bLg45bEBsOP9N1kzQh5JZNKj/0rik4zAPTNSAVPj3uQAdc6slYJ0Ksc403G2XgxsJQFQ==",+ "license": "MIT",+ "dependencies": {+ "yoctocolors": "^2.1.1"+ },+ "engines": {+ "node": ">=18.19"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/yoctocolors": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/yoctocolors/-/yoctocolors-2.2.0.tgz",+ "integrity": "sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/zimmerframe": {+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/zimmerframe/-/zimmerframe-1.1.5.tgz",+ "integrity": "sha512-msJxIvYDYcoNL+PJsu+7qmpDWsYmAxTY+2TNYXXF0hzBzBk0BMecOqDOG/EckUoKCuKwObfbugIl8QpqHDXeFA==",+ "license": "MIT"+ },+ "node_modules/zod": {+ "version": "3.25.76",+ "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",+ "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/colinhacks"+ }+ },+ "node_modules/zod-to-json-schema": {+ "version": "3.25.2",+ "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.2.tgz",+ "integrity": "sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==",+ "license": "ISC",+ "peerDependencies": {+ "zod": "^3.25.28 || ^4"+ }+ },+ "node_modules/zod-to-ts": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/zod-to-ts/-/zod-to-ts-1.2.0.tgz",+ "integrity": "sha512-x30XE43V+InwGpvTySRNz9kB7qFU8DlyEy7BsSTCHPH1R0QasMmHWZDCzYm6bVXtj/9NNJAZF3jW8rzFvH5OFA==",+ "peerDependencies": {+ "typescript": "^4.9.4 || ^5.0.2",+ "zod": "^3"+ }+ },+ "node_modules/zwitch": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz",+ "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ }+ }+}diff --git a/site/package.json b/site/package.jsonnew file mode 100644index 0000000..8c28e8f--- /dev/null+++ b/site/package.json@@ -0,0 +1,39 @@+{+ "name": "anymodelbot-site",+ "private": true,+ "type": "module",+ "description": "AnyModelBot 官网落地页(Astro 静态站)",+ "license": "MIT",+ "engines": {+ "node": ">=22.13"+ },+ "scripts": {+ "dev": "astro dev",+ "sync": "tsx scripts/sync-from-app.ts",+ "fetch:pricing": "tsx scripts/fetch-pricing.ts",+ "check": "tsx scripts/check-i18n.ts && tsx scripts/banned.ts && tsx scripts/check-images.ts",+ "test": "vitest run",+ "build": "tsx scripts/sync-from-app.ts && tsx scripts/fetch-pricing.ts --lenient && tsx scripts/check-images.ts && astro build && tsx scripts/banned.ts --dist && tsx scripts/check-links.ts && tsx scripts/check-placeholders.ts",+ "build:draft": "tsx scripts/sync-from-app.ts && tsx scripts/check-images.ts && astro build && tsx scripts/banned.ts --dist && tsx scripts/check-links.ts && tsx scripts/check-placeholders.ts --warn",+ "preview": "astro preview",+ "og": "python3 scripts/make-og.py",+ "bots:avif": "tsx scripts/make-bot-avif.ts",+ "releases": "tsx scripts/releases-from-github.ts",+ "releases:dir": "tsx scripts/releases-from-dir.ts"+ },+ "dependencies": {+ "@astrojs/preact": "4.1.3",+ "astro": "5.18.2",+ "preact": "10.27.2",+ "zod": "3.25.76"+ },+ "devDependencies": {+ "@astrojs/check": "0.9.12",+ "@types/node": "22.18.12",+ "geist": "1.5.1",+ "playwright-core": "1.64.0",+ "tsx": "4.20.6",+ "typescript": "5.9.3",+ "vitest": "3.2.7"+ }+}diff --git a/site/public/apple-touch-icon.png b/site/public/apple-touch-icon.pngnew file mode 100644index 0000000..7806d52Binary files /dev/null and b/site/public/apple-touch-icon.png differdiff --git a/site/public/bots/blue.avif b/site/public/bots/blue.avifnew file mode 100644index 0000000..da9d6f2Binary files /dev/null and b/site/public/bots/blue.avif differdiff --git a/site/public/bots/blue.webp b/site/public/bots/blue.webpnew file mode 100644index 0000000..e3c4085Binary files /dev/null and b/site/public/bots/blue.webp differdiff --git a/site/public/bots/green.avif b/site/public/bots/green.avifnew file mode 100644index 0000000..72c51f8Binary files /dev/null and b/site/public/bots/green.avif differdiff --git a/site/public/bots/green.webp b/site/public/bots/green.webpnew file mode 100644index 0000000..40f271bBinary files /dev/null and b/site/public/bots/green.webp differdiff --git a/site/public/bots/orange.avif b/site/public/bots/orange.avifnew file mode 100644index 0000000..7111306Binary files /dev/null and b/site/public/bots/orange.avif differdiff --git a/site/public/bots/orange.webp b/site/public/bots/orange.webpnew file mode 100644index 0000000..145e858Binary files /dev/null and b/site/public/bots/orange.webp differdiff --git a/site/public/bots/purple.avif b/site/public/bots/purple.avifnew file mode 100644index 0000000..18ba726Binary files /dev/null and b/site/public/bots/purple.avif differdiff --git a/site/public/bots/purple.webp b/site/public/bots/purple.webpnew file mode 100644index 0000000..764b4b6Binary files /dev/null and b/site/public/bots/purple.webp differdiff --git a/site/public/bots/red.avif b/site/public/bots/red.avifnew file mode 100644index 0000000..a8bcabbBinary files /dev/null and b/site/public/bots/red.avif differdiff --git a/site/public/bots/red.webp b/site/public/bots/red.webpnew file mode 100644index 0000000..b906787Binary files /dev/null and b/site/public/bots/red.webp differdiff --git a/site/public/bots/yellow.avif b/site/public/bots/yellow.avifnew file mode 100644index 0000000..0b413d4Binary files /dev/null and b/site/public/bots/yellow.avif differdiff --git a/site/public/bots/yellow.webp b/site/public/bots/yellow.webpnew file mode 100644index 0000000..e49768cBinary files /dev/null and b/site/public/bots/yellow.webp differdiff --git a/site/public/favicon-32.png b/site/public/favicon-32.pngnew file mode 100644index 0000000..faa87ceBinary files /dev/null and b/site/public/favicon-32.png differdiff --git a/site/public/favicon.svg b/site/public/favicon.svgnew file mode 100644index 0000000..552b890--- /dev/null+++ b/site/public/favicon.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="3" y="9" width="94" height="82" rx="36" fill="#d7ff00"/><rect x="29" y="36" width="13" height="28" rx="6.5" fill="#161a00"/><rect x="58" y="36" width="13" height="28" rx="6.5" fill="#161a00"/></svg>diff --git a/site/public/fonts/Geist-Variable.woff2 b/site/public/fonts/Geist-Variable.woff2new file mode 100644index 0000000..600c92cBinary files /dev/null and b/site/public/fonts/Geist-Variable.woff2 differdiff --git a/site/public/fonts/GeistMono-Variable.woff2 b/site/public/fonts/GeistMono-Variable.woff2new file mode 100644index 0000000..10c0501Binary files /dev/null and b/site/public/fonts/GeistMono-Variable.woff2 differdiff --git a/site/public/fonts/OFL.txt b/site/public/fonts/OFL.txtnew file mode 100644index 0000000..8d003fe--- /dev/null+++ b/site/public/fonts/OFL.txt@@ -0,0 +1,92 @@+Copyright (c) 2023 Vercel, in collaboration with basement.studio++This Font Software is licensed under the SIL Open Font License, Version 1.1.+This license is copied below, and is also available with a FAQ at:+http://scripts.sil.org/OFL++-----------------------------------------------------------+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007+-----------------------------------------------------------++PREAMBLE+The goals of the Open Font License (OFL) are to stimulate worldwide+development of collaborative font projects, to support the font creation+efforts of academic and linguistic communities, and to provide a free and+open framework in which fonts may be shared and improved in partnership+with others.++The OFL allows the licensed fonts to be used, studied, modified and+redistributed freely as long as they are not sold by themselves. The+fonts, including any derivative works, can be bundled, embedded,+redistributed and/or sold with any software provided that any reserved+names are not used by derivative works. The fonts and derivatives,+however, cannot be released under any other type of license. The+requirement for fonts to remain under this license does not apply+to any document created using the fonts or their derivatives.++DEFINITIONS+"Font Software" refers to the set of files released by the Copyright+Holder(s) under this license and clearly marked as such. This may+include source files, build scripts and documentation.++"Reserved Font Name" refers to any names specified as such after the+copyright statement(s).++"Original Version" refers to the collection of Font Software components as+distributed by the Copyright Holder(s).++"Modified Version" refers to any derivative made by adding to, deleting,+or substituting -- in part or in whole -- any of the components of the+Original Version, by changing formats or by porting the Font Software to a+new environment.++"Author" refers to any designer, engineer, programmer, technical+writer or other person who contributed to the Font Software.++PERMISSION AND CONDITIONS+Permission is hereby granted, free of charge, to any person obtaining+a copy of the Font Software, to use, study, copy, merge, embed, modify,+redistribute, and sell modified and unmodified copies of the Font+Software, subject to the following conditions:++1) Neither the Font Software nor any of its individual components,+in Original or Modified Versions, may be sold by itself.++2) Original or Modified Versions of the Font Software may be bundled,+redistributed and/or sold with any software, provided that each copy+contains the above copyright notice and this license. These can be+included either as stand-alone text files, human-readable headers or+in the appropriate machine-readable metadata fields within text or+binary files as long as those fields can be easily viewed by the user.++3) No Modified Version of the Font Software may use the Reserved Font+Name(s) unless explicit written permission is granted by the corresponding+Copyright Holder. This restriction only applies to the primary font name as+presented to the users.++4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font+Software shall not be used to promote, endorse or advertise any+Modified Version, except to acknowledge the contribution(s) of the+Copyright Holder(s) and the Author(s) or with their explicit written+permission.++5) The Font Software, modified or unmodified, in part or in whole,+must be distributed entirely under this license, and must not be+distributed under any other license. The requirement for fonts to+remain under this license does not apply to any document created+using the Font Software.++TERMINATION+This license becomes null and void if any of the above conditions are+not met.++DISCLAIMER+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM+OTHER DEALINGS IN THE FONT SOFTWARE.diff --git a/site/public/icon-192.png b/site/public/icon-192.pngnew file mode 100644index 0000000..827b46aBinary files /dev/null and b/site/public/icon-192.png differdiff --git a/site/public/icon-512.png b/site/public/icon-512.pngnew file mode 100644index 0000000..6100d1fBinary files /dev/null and b/site/public/icon-512.png differdiff --git a/site/public/icon-maskable-512.png b/site/public/icon-maskable-512.pngnew file mode 100644index 0000000..3963858Binary files /dev/null and b/site/public/icon-maskable-512.png differdiff --git a/site/public/og/og-en.png b/site/public/og/og-en.pngnew file mode 100644index 0000000..6d64960Binary files /dev/null and b/site/public/og/og-en.png differdiff --git a/site/public/og/og-zh.png b/site/public/og/og-zh.pngnew file mode 100644index 0000000..f7386afBinary files /dev/null and b/site/public/og/og-zh.png differdiff --git a/site/public/site.webmanifest b/site/public/site.webmanifestnew file mode 100644index 0000000..996a905--- /dev/null+++ b/site/public/site.webmanifest@@ -0,0 +1,12 @@+{+ "name": "AnyModelBot",+ "short_name": "AnyModelBot",+ "icons": [+ { "src": "/icon-192.png", "sizes": "192x192", "type": "image/png" },+ { "src": "/icon-512.png", "sizes": "512x512", "type": "image/png" },+ { "src": "/icon-maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" }+ ],+ "theme_color": "#060706",+ "background_color": "#060706",+ "display": "browser"+}diff --git a/site/scripts/banned.ts b/site/scripts/banned.tsnew file mode 100644index 0000000..a4c6fc9--- /dev/null+++ b/site/scripts/banned.ts@@ -0,0 +1,48 @@+// 禁词扫描(附录 B):源码文案(src/i18n、src/data、src/pages、src/sections、src/views、src/components、src/islands)与 --dist 时的 dist 文本。命中即失败。+import fs from "node:fs";+import path from "node:path";+import { fileURLToPath } from "node:url";++const root = path.dirname(path.dirname(fileURLToPath(import.meta.url)));+export const BANNED: [RegExp, string][] = [+ [/绝对(的)?(数据)?安全|100% ?安全|零风险|军事级|银行级/, "安全夸大"],+ [/零遥测|不收集任何数据|不上传任何数据|zero[- ]telemetry(?!”|")|absolutely secure|military[- ]grade|bank[- ]grade/i, "安全/遥测夸大"],+ [/离线可用|本地大模型|works offline(?!\?)/i, "离线/本地模型"],+ [/全平台|全设备|支持 ?iOS ?和 ?Android/, "平台夸大"],+ [/最便宜|最划算|省\s?\d+\s?%|比.{0,12}便宜|cheapest|save \d+%/i, "价格比较"],+ [/Modelflare\s?(没有|无)(订阅|月费)|Modelflare (has )?no subscription/i, "Modelflare 订阅主语"],+ [/每次操作都会先征求你同意|asks? before every action/i, "审批夸大"],+ [/7\s?[×x]\s?24 ?自动|定时任务|教它一遍|多机器人协同|scheduled tasks|teach it once/i, "未实现能力"],+ [/群聊支持|supports group chats/i, "群聊"],+ [/Grok Bot/i, "第三方品牌"],+];+// "零遥测"在安全页里是以否定形式出现的(我们不声称零遥测)——允许"不声称“零遥测”"这一种写法+const ALLOW = [/不声称“零遥测”/, /don't claim “zero telemetry”/];++function walk(dir: string, exts: string[], out: string[] = []) {+ if (!fs.existsSync(dir)) return out;+ for (const e of fs.readdirSync(dir, { withFileTypes: true })) {+ const p = path.join(dir, e.name);+ if (e.isDirectory()) walk(p, exts, out);+ else if (exts.some((x) => p.endsWith(x))) out.push(p);+ }+ return out;+}++const dist = process.argv.includes("--dist");+const files = dist+ ? walk(path.join(root, "dist"), [".html", ".xml", ".txt"])+ : ["src/i18n", "src/data", "src/pages", "src/sections", "src/views", "src/components", "src/islands", "src/layouts"].flatMap((d) => walk(path.join(root, d), [".ts", ".tsx", ".astro"]));++let hits = 0;+for (const f of files) {+ let text = fs.readFileSync(f, "utf8");+ if (dist) text = text.replace(/<script[\s\S]*?<\/script>/g, "").replace(/<[^>]+>/g, " ");+ for (const a of ALLOW) text = text.replace(new RegExp(a.source, "g"), "");+ for (const [re, why] of BANNED) {+ const m = text.match(re);+ if (m) { hits++; console.error(`✗ ${path.relative(root, f)}:「${m[0]}」(${why})`); }+ }+}+if (hits) { console.error(`禁词扫描:${hits} 处命中`); process.exit(1); }+console.log(`禁词扫描通过(${files.length} 个文件)`);diff --git a/site/scripts/check-i18n.ts b/site/scripts/check-i18n.tsnew file mode 100644index 0000000..fb1e0dd--- /dev/null+++ b/site/scripts/check-i18n.ts@@ -0,0 +1,24 @@+// zh / en 文案 key 一致性(§14):结构、数组长度都要一致。+import { zh } from "../src/i18n/zh";+import { en } from "../src/i18n/en";++const diffs: string[] = [];+function cmp(a: unknown, b: unknown, p: string) {+ if (Array.isArray(a) || Array.isArray(b)) {+ if (!Array.isArray(a) || !Array.isArray(b) || a.length !== b.length) { diffs.push(`${p}:数组长度不同`); return; }+ a.forEach((x, i) => cmp(x, b[i], `${p}[${i}]`));+ } else if (a && typeof a === "object") {+ if (!b || typeof b !== "object") { diffs.push(`${p}:类型不同`); return; }+ const ka = Object.keys(a), kb = Object.keys(b);+ for (const k of ka) if (!kb.includes(k)) diffs.push(`${p}.${k}:en 缺少`);+ for (const k of kb) if (!ka.includes(k)) diffs.push(`${p}.${k}:zh 缺少`);+ for (const k of ka) if (kb.includes(k)) cmp((a as any)[k], (b as any)[k], `${p}.${k}`);+ } else if (typeof a !== typeof b) diffs.push(`${p}:类型不同`);+ else if (typeof a === "string") {+ const va = [...a.matchAll(/\{(\w+)\}/g)].map((m) => m[1]).sort().join(","), vb = [...(b as string).matchAll(/\{(\w+)\}/g)].map((m) => m[1]).sort().join(",");+ if (va !== vb) diffs.push(`${p}:变量不同(${va} / ${vb})`);+ }+}+cmp(zh, en, "dict");+if (diffs.length) { console.error(diffs.join("\n")); process.exit(1); }+console.log("zh / en 文案 key 一致");diff --git a/site/scripts/check-images.ts b/site/scripts/check-images.tsnew file mode 100644index 0000000..363cf00--- /dev/null+++ b/site/scripts/check-images.ts@@ -0,0 +1,43 @@+// 图片与字体体积守卫(§11、§16.1):超出预算即失败。+import crypto from "node:crypto";+import fs from "node:fs";+import path from "node:path";+import { fileURLToPath } from "node:url";++const root = path.dirname(path.dirname(fileURLToPath(import.meta.url)));+const pub = path.join(root, "public");+const KB = 1024;+const RULES: [RegExp, number, string][] = [+ [/^og\/.+\.png$/, 300 * KB, "OG 图 ≤ 300 KB"],+ [/^bots\/.+\.(webp|avif)$/, 120 * KB, "机器人精灵图 ≤ 120 KB"],+ [/^(favicon|apple-touch-icon|icon-).+\.png$/, 40 * KB, "图标 ≤ 40 KB"],+ [/\.svg$/, 4 * KB, "SVG ≤ 4 KB"],+ [/\.(png|jpe?g|webp|avif|gif)$/, 200 * KB, "其他图片 ≤ 200 KB"],+];+const files: string[] = [];+(function walk(d: string) {+ for (const e of fs.readdirSync(d, { withFileTypes: true })) {+ const p = path.join(d, e.name);+ if (e.isDirectory()) walk(p); else files.push(path.relative(pub, p));+ }+})(pub);++const bad: string[] = [];+for (const f of files) {+ const rule = RULES.find(([re]) => re.test(f));+ if (!rule) continue;+ const size = fs.statSync(path.join(pub, f)).size;+ if (size > rule[1]) bad.push(`${f}:${Math.round(size / KB)} KB(${rule[2]})`);+}+// 精灵图的 AVIF 版(scripts/make-bot-avif.ts)必须和当前的 WebP 是同一版:WebP 更新了而 AVIF 没重做,+// 支持 AVIF 的浏览器会显示旧图,眼睛(SVG,按新几何画)也对不上+const avifOf: Record<string, string> = JSON.parse(fs.readFileSync(path.join(root, "src/data/bots-avif.json"), "utf8"));+for (const f of files.filter((f) => /^bots\/.+\.webp$/.test(f))) {+ const key = path.basename(f, ".webp");+ const hash = crypto.createHash("sha256").update(fs.readFileSync(path.join(pub, f))).digest("hex");+ if (!files.includes(`bots/${key}.avif`) || avifOf[key] !== hash) bad.push(`bots/${key}.avif 不是从当前的 ${f} 生成的(npm run bots:avif 重新生成)`);+}+const fonts = files.filter((f) => f.endsWith(".woff2")).reduce((n, f) => n + fs.statSync(path.join(pub, f)).size, 0);+if (fonts > 60 * KB) bad.push(`字体合计 ${Math.round(fonts / KB)} KB(≤ 60 KB)`);+if (bad.length) { console.error(`✗ 图片与字体检查未通过:\n ${bad.join("\n ")}`); process.exit(1); }+console.log(`图片与字体体积检查通过(字体合计 ${Math.round(fonts / KB)} KB)`);diff --git a/site/scripts/check-links.ts b/site/scripts/check-links.tsnew file mode 100644index 0000000..f3404d8--- /dev/null+++ b/site/scripts/check-links.ts@@ -0,0 +1,41 @@+// 站内链接检查:dist/ 里每个站内 href 都要指向存在的页面或文件,页内锚点都要有对应 id。+import fs from "node:fs";+import path from "node:path";+import { fileURLToPath } from "node:url";++const root = path.dirname(path.dirname(fileURLToPath(import.meta.url)));+const dist = path.join(root, "dist");+const pages: string[] = [];+(function walk(d: string) {+ for (const e of fs.readdirSync(d, { withFileTypes: true })) {+ const p = path.join(d, e.name);+ if (e.isDirectory()) walk(p); else if (p.endsWith(".html")) pages.push(p);+ }+})(dist);++const exists = (url: string) => {+ const p = path.join(dist, decodeURIComponent(url));+ return [p, path.join(p, "index.html"), `${p}.html`].some((c) => fs.existsSync(c) && fs.statSync(c).isFile());+};+const htmlOf = (url: string) => {+ const p = path.join(dist, url);+ const f = [path.join(p, "index.html"), `${p}.html`, p].find((c) => fs.existsSync(c) && fs.statSync(c).isFile());+ return f ? fs.readFileSync(f, "utf8") : "";+};+const bad: string[] = [];+for (const page of pages) {+ const html = fs.readFileSync(page, "utf8").replace(/<script[\s\S]*?<\/script>/g, "");+ const rel = path.relative(dist, page);+ for (const [, href] of html.matchAll(/\shref="([^"]+)"/g)) {+ if (/^(https?:|mailto:|tel:|data:|\{)/.test(href)) continue;+ const [p, hash] = href.split("#");+ const target = p ? p.split("?")[0] : null;+ if (target && !exists(target)) { bad.push(`${rel} → ${href}(页面不存在)`); continue; }+ if (hash) {+ const doc = target ? htmlOf(target) : html;+ if (!doc.includes(`id="${hash}"`)) bad.push(`${rel} → ${href}(锚点不存在)`);+ }+ }+}+if (bad.length) { console.error(`✗ 站内链接 ${bad.length} 处失效:\n ${[...new Set(bad)].join("\n ")}`); process.exit(1); }+console.log(`站内链接检查通过(${pages.length} 个页面)`);diff --git a/site/scripts/check-placeholders.ts b/site/scripts/check-placeholders.tsnew file mode 100644index 0000000..c1c02d4--- /dev/null+++ b/site/scripts/check-placeholders.ts@@ -0,0 +1,38 @@+// 部署占位符校验(§13.2):dist/ 与数据文件里残留 {大写占位符} 或未替换的构建变量 → 生产构建失败;--warn 只提示。+import fs from "node:fs";+import path from "node:path";+import { fileURLToPath } from "node:url";++const root = path.dirname(path.dirname(fileURLToPath(import.meta.url)));+const warnOnly = process.argv.includes("--warn");+const DEPLOY = /\{[A-Z][A-Z0-9_]*\}/g;+const TEMPLATE = /\{(fetchedAt|pricingVersion|modelCount|vendorCount|textCount|mediaCount|sample\.\w+|sampleModel|sampleMonthly|snapshotDate|amount|sizeMB|sha256|version|publishedAt|model|input|output|officialIn|officialOut|n|email|domain)\}/g;++function walk(dir: string, out: string[] = []) {+ if (!fs.existsSync(dir)) return out;+ for (const e of fs.readdirSync(dir, { withFileTypes: true })) {+ const p = path.join(dir, e.name);+ if (e.isDirectory()) walk(p, out);+ else if (/\.(html|xml|txt|json|webmanifest)$/.test(p)) out.push(p);+ }+ return out;+}++const files = [...walk(path.join(root, "dist")), path.join(root, "src/data/releases.json")];+const found = new Map<string, Set<string>>();+for (const f of files) {+ const raw = fs.readFileSync(f, "utf8");+ // 岛组件的 props、JSON 数据块和 data-template 属性里是客户端再替换的文案模板,只对部署占位符严格检查+ const text = raw.replace(/<astro-island[^>]*>/g, "").replace(/<script type="application\/json"[^>]*>[\s\S]*?<\/script>/g, "").replace(/\sdata-template="[^"]*"/g, "");+ for (const [re, src] of [[DEPLOY, raw], [TEMPLATE, text]] as const) for (const m of src.matchAll(re)) {+ const rel = path.relative(root, f);+ if (!found.has(m[0])) found.set(m[0], new Set());+ found.get(m[0])!.add(rel);+ }+}+if (!found.size) { console.log("占位符校验通过"); process.exit(0); }+const lines = [...found].map(([k, fs]) => ` ${k} ← ${[...fs].slice(0, 3).join(", ")}${fs.size > 3 ? ` 等 ${fs.size} 个文件` : ""}`);+const msg = `残留占位符 ${found.size} 种:\n${lines.join("\n")}\n部署值请通过环境变量(SITE_DOMAIN、GITHUB_URL、SECURITY_EMAIL、ANALYTICS_SCRIPT_URL、ANALYTICS_SITE_ID)与 src/data/releases.json 提供。`;+if (warnOnly) { console.warn(`⚠ ${msg}`); process.exit(0); }+console.error(`✗ ${msg}`);+process.exit(1);diff --git a/site/scripts/fetch-pricing.ts b/site/scripts/fetch-pricing.tsnew file mode 100644index 0000000..0ba3f7e--- /dev/null+++ b/site/scripts/fetch-pricing.ts@@ -0,0 +1,64 @@+// 构建时抓取 modelflare.dev/api/pricing → src/data/pricing.snapshot.json(§13.3)。+// 默认(定时任务用):抓取或校验失败 → 退出码 1,不改快照,任务标红。+// --lenient(普通构建用):失败时沿用已提交的快照并标 stale=true,构建继续。+// --from <file>:从本地文件读取原始数据(单测夹具、离线调试)。+import fs from "node:fs";+import path from "node:path";+import { fileURLToPath } from "node:url";+import { buildSnapshot, SOURCE } from "../src/lib/snapshot";+import { pricingConfig } from "../src/data/pricing.config";+import type { Snapshot } from "../src/lib/pricing";++const root = path.dirname(path.dirname(fileURLToPath(import.meta.url)));+const out = path.join(root, "src/data/pricing.snapshot.json");+const args = process.argv.slice(2);+const lenient = args.includes("--lenient");+const from = args.includes("--from") ? args[args.indexOf("--from") + 1] : null;++async function fetchRaw(): Promise<unknown> {+ if (from) return JSON.parse(fs.readFileSync(from, "utf8"));+ const waits = [1000, 3000, 9000];+ let last: unknown;+ for (let i = 0; i <= waits.length; i++) {+ try {+ const res = await fetch(SOURCE, { headers: { "User-Agent": "anymodelbot-site-build" }, signal: AbortSignal.timeout(15_000) });+ if (!res.ok) throw new Error(`HTTP ${res.status}`);+ return await res.json();+ } catch (e) {+ last = e;+ if (i < waits.length) await new Promise((r) => setTimeout(r, waits[i]));+ }+ }+ throw last;+}++/** 精选模型的默认线路价相对上一版变化超过 5 倍 → 视为数据异常 */+function sanity(next: Snapshot, prev: Snapshot | null) {+ if (next.counts.text < 30) throw new Error(`文本模型只有 ${next.counts.text} 个(应 ≥ 30)`);+ if (!prev) return;+ for (const id of pricingConfig.featuredModels) {+ const a = prev.rows.find((r) => r.model === id);+ const b = next.rows.find((r) => r.model === id)!;+ if (!a) continue;+ for (const k of ["input", "output"] as const) {+ const ratio = b[k] / a[k];+ if (!(ratio <= 5 && ratio >= 0.2)) throw new Error(`${id} ${k} 价格从 ${a[k]} 变为 ${b[k]}(超过 5 倍)`);+ }+ }+}++const prev: Snapshot | null = fs.existsSync(out) ? JSON.parse(fs.readFileSync(out, "utf8")) : null;+try {+ const snap = buildSnapshot(await fetchRaw(), pricingConfig, new Date());+ sanity(snap, prev);+ fs.writeFileSync(out, JSON.stringify(snap, null, 2) + "\n");+ console.log(`价格快照已更新:${snap.pricingVersion},${snap.counts.models} 个模型(文本 ${snap.counts.text}),抓取于 ${snap.fetchedAt}`);+} catch (e) {+ const msg = e instanceof Error ? e.message : String(e);+ if (!lenient || !prev) {+ console.error(`价格抓取失败:${msg}`);+ process.exit(1);+ }+ fs.writeFileSync(out, JSON.stringify({ ...prev, stale: true }, null, 2) + "\n");+ console.warn(`价格抓取失败,沿用 ${prev.fetchedAt} 的快照(stale):${msg}`);+}diff --git a/site/scripts/make-bot-avif.ts b/site/scripts/make-bot-avif.tsnew file mode 100644index 0000000..98b08bf--- /dev/null+++ b/site/scripts/make-bot-avif.ts@@ -0,0 +1,50 @@+// 机器人精灵图的 AVIF 版(public/bots/<角色>.avif):同样的 8 格、同样的分辨率,体积约是 WebP 的一半。+// 支持 AVIF 的浏览器用它,其他用 WebP(styles/bots.css 的 image-set)。+//+// 必须从无损的精灵图编码:拿 WebP 再转一次会叠两层压缩损失,要保住现在的画质就几乎省不下体积。+// 所以这里重跑应用的 scripts/build-bot-avatars.py(--out 临时目录 --png),先确认它重新生成的 WebP 和+// public/bots 里的一模一样(原图、拆层参数都没变),再把同一次生成的 PNG 编成 AVIF。+// 质量 q58:和 WebP q86 比,按预乘 RGBA 的 PSNR 算,六个角色的最低值和平均值都不低于 WebP(45.4 / 46.4 对 43.6 / 45.9 dB)。+//+// 用法:npm run bots:avif(需要仓库根目录、python3 + numpy + Pillow;sharp 随 Astro 安装,锁定在 package-lock 里)。+// 精灵图更新后(npm run sync 带来新的 WebP)要重跑一次;check-images 按 src/data/bots-avif.json 记下的 WebP 哈希把关。+import { execFileSync } from "node:child_process";+import crypto from "node:crypto";+import fs from "node:fs";+import os from "node:os";+import path from "node:path";+import { fileURLToPath } from "node:url";+import sharp from "sharp";++const QUALITY = 58;+const site = path.dirname(path.dirname(fileURLToPath(import.meta.url)));+const app = path.dirname(site);+const script = path.join(app, "scripts/build-bot-avatars.py");+const pub = path.join(site, "public/bots");+const manifest = path.join(site, "src/data/bots-avif.json");++if (!fs.existsSync(script)) {+ console.error("✗ 没有找到应用的 scripts/build-bot-avatars.py:要在完整的仓库里运行");+ process.exit(1);+}+const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "amb-bots-"));+try {+ execFileSync("python3", [script, "--out", tmp, "--png"], { stdio: "inherit" });+ const sha = (f: string) => crypto.createHash("sha256").update(fs.readFileSync(f)).digest("hex");+ const out: Record<string, string> = {};+ for (const f of fs.readdirSync(pub).filter((f) => f.endsWith(".webp")).sort()) {+ const key = f.slice(0, -5);+ const fresh = path.join(tmp, f);+ if (!fs.existsSync(fresh) || sha(fresh) !== sha(path.join(pub, f))) {+ console.error(`✗ ${f}:重新生成的精灵图和 public/bots 里的不一样。先在仓库根目录跑 python3 scripts/build-bot-avatars.py,再 npm run sync`);+ process.exit(1);+ }+ const avif = path.join(pub, `${key}.avif`);+ await sharp(path.join(tmp, `${key}.png`)).avif({ quality: QUALITY, effort: 6, chromaSubsampling: "4:4:4" }).toFile(avif);+ out[key] = sha(path.join(pub, f));+ console.log(`${key}.avif ${Math.round(fs.statSync(avif).size / 1024)} KB(WebP ${Math.round(fs.statSync(path.join(pub, f)).size / 1024)} KB)`);+ }+ fs.writeFileSync(manifest, JSON.stringify({ _: "public/bots/*.avif 是从哪一版 WebP 生成的(sha256);scripts/make-bot-avif.ts 写、check-images.ts 查", ...out }, null, 2) + "\n");+} finally {+ fs.rmSync(tmp, { recursive: true, force: true });+}diff --git a/site/scripts/make-og.py b/site/scripts/make-og.pynew file mode 100644index 0000000..f0b1221--- /dev/null+++ b/site/scripts/make-og.py@@ -0,0 +1,119 @@+# 生成静态图形资源:favicon / App 图标(Eyes 标记,静态居中)与 OG 分享图(zh / en,1200×630)。+# 产物提交到 public/;改了文案或标记后手动运行:python3 scripts/make-og.py(需要 Pillow 与 Noto Sans SC)。+import os+import sys+from PIL import Image, ImageDraw, ImageFilter, ImageFont++SITE = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))+APP = os.path.dirname(SITE)+PUB = os.path.join(SITE, "public")+LIME, INK, BG, TEXT, MUTED = (215, 255, 0), (22, 26, 0), (6, 7, 6), (250, 250, 247), (161, 161, 170)+CJK = "/usr/share/fonts/truetype/noto-cjk/NotoSansSC.ttf"+GEIST = os.path.join(SITE, "node_modules/geist/dist/fonts/geist-sans/Geist-SemiBold.ttf")+GEIST_R = os.path.join(SITE, "node_modules/geist/dist/fonts/geist-sans/Geist-Regular.ttf")+MONO = os.path.join(SITE, "node_modules/geist/dist/fonts/geist-mono/GeistMono-Medium.ttf")+BOTS = ["主-蓝色", "黄色小萌", "绿草", "红魔", "紫钻", "橙色探险者"]++COPY = {+ "zh": {"h1": ["你的 AI 搭子,", "住在你自己的电脑里。"], "mark": "住在你自己的电脑里", "sub": "任意模型,每台设备,数据留在你电脑上。", "chips": ["对话存本机", "按量付费 · App 免费", "MIT 开源"]},+ "en": {"h1": ["AI teammates that", "live on your machine."], "mark": "live on your machine", "sub": "Any model. Every device. Your data, your machine.", "chips": ["Chats stay local", "Pay per use · App is free", "MIT open source"]},+}+++def mark(size, plate=LIME, eye=INK, scale=4):+ """Eyes 标记(viewBox 100):面罩 94×82 圆角 36,眼睛 13×28 竖胶囊,居中静态"""+ s = size * scale+ im = Image.new("RGBA", (s, s), (0, 0, 0, 0))+ d = ImageDraw.Draw(im)+ u = s / 100+ d.rounded_rectangle([3 * u, 9 * u, 97 * u, 91 * u], radius=36 * u, fill=plate)+ for x in (29, 58):+ d.rounded_rectangle([x * u, 36 * u, (x + 13) * u, 64 * u], radius=6.5 * u, fill=eye)+ return im.resize((size, size), Image.LANCZOS)+++def font(path, size, weight=None):+ f = ImageFont.truetype(path, size)+ if weight and path == CJK:+ try:+ f.set_variation_by_axes([weight])+ except Exception:+ pass+ return f+++def icons():+ for name, size in [("favicon-32.png", 32), ("apple-touch-icon.png", 180), ("icon-192.png", 192), ("icon-512.png", 512)]:+ bg = Image.new("RGBA", (size, size), (0, 0, 0, 0) if name.startswith("favicon") else BG + (255,))+ m = mark(size if name.startswith("favicon") else int(size * 0.78))+ bg.alpha_composite(m, ((size - m.width) // 2, (size - m.height) // 2))+ bg.save(os.path.join(PUB, name), optimize=True)+ # maskable:内容在中心 80% 安全区内+ size = 512+ bg = Image.new("RGBA", (size, size), BG + (255,))+ m = mark(int(size * 0.62))+ bg.alpha_composite(m, ((size - m.width) // 2, (size - m.height) // 2))+ bg.save(os.path.join(PUB, "icon-maskable-512.png"), optimize=True)+++def og(lang):+ c = COPY[lang]+ W, H = 1200, 630+ im = Image.new("RGBA", (W, H), BG + (255,))+ glow = Image.new("RGBA", (W, H), (0, 0, 0, 0))+ gd = ImageDraw.Draw(glow)+ gd.ellipse([W * 0.15, -H * 0.55, W * 0.85, H * 0.55], fill=LIME + (46,))+ im.alpha_composite(glow.filter(ImageFilter.GaussianBlur(120)))+ d = ImageDraw.Draw(im)+ head = font(CJK, 64, 600) if lang == "zh" else font(GEIST, 68)+ sub = font(CJK, 28, 400) if lang == "zh" else font(GEIST_R, 28)+ chip = font(CJK, 20, 400) if lang == "zh" else font(MONO, 18)+ brand = font(GEIST, 34)+ # 品牌锁定组合+ m = mark(56)+ im.alpha_composite(m, (72, 64))+ d.text((140, 70), "AnyModelBot", font=brand, fill=TEXT)+ # 标题(第二行带荧光笔)+ y = 176+ d.text((72, y), c["h1"][0], font=head, fill=TEXT)+ y += 92+ line2 = c["h1"][1]+ pre = line2.split(c["mark"])[0]+ x = 72 + d.textlength(pre, font=head)+ d.text((72, y), pre, font=head, fill=TEXT)+ mw = d.textlength(c["mark"], font=head)+ box = d.textbbox((x, y), c["mark"], font=head)+ d.rounded_rectangle([x - 6, box[1] - 6, x + mw + 6, box[3] + 10], radius=6, fill=LIME)+ d.text((x, y), c["mark"], font=head, fill=INK)+ d.text((x + mw, y), line2[len(pre) + len(c["mark"]):], font=head, fill=TEXT)+ d.text((72, y + 104), c["sub"], font=sub, fill=MUTED)+ # 信任 chip+ cx, cy = 72, 520+ for t in c["chips"]:+ w = d.textlength(t, font=chip) + 32+ d.rounded_rectangle([cx, cy, cx + w, cy + 40], radius=20, outline=(255, 255, 255, 40), width=1)+ d.text((cx + 16, cy + 9), t, font=chip, fill=MUTED)+ cx += w + 12+ # 六个毛绒机器人(原画)+ bx = 760+ for i, n in enumerate(BOTS):+ p = os.path.join(APP, "anymodelbot_design", "logo avator", f"{n}.png")+ if not os.path.exists(p):+ continue+ b = Image.open(p).convert("RGBA")+ b = b.crop(b.getbbox())+ size = 150 if i == 0 else 112+ b.thumbnail((size, size), Image.LANCZOS)+ pos = [(860, 150), (770, 300), (960, 300), (760, 440), (900, 430), (1040, 440)][i]+ im.alpha_composite(b, pos)+ out = os.path.join(PUB, "og", f"og-{lang}.png")+ os.makedirs(os.path.dirname(out), exist_ok=True)+ im.convert("RGB").save(out, optimize=True)+ print(out, os.path.getsize(out) // 1024, "KB")+++if __name__ == "__main__":+ icons()+ for lang in ("zh", "en"):+ og(lang)+ sys.exit(0)diff --git a/site/scripts/preview-serve.py b/site/scripts/preview-serve.pynew file mode 100644index 0000000..a5fcc92--- /dev/null+++ b/site/scripts/preview-serve.py@@ -0,0 +1,158 @@+#!/usr/bin/env python3+"""+预览用的静态服务(裸 IP:端口,不经过 Caddy):压缩和缓存照线上 nginx(deploy/nginx.conf)来,预览的加载速度才有参考价值。+`python3 -m http.server` 只会 HTTP/1.0、不压缩:首页 HTML 346 KB 原样传,每个请求都重新建连接,远程打开很慢。++- HTTP/1.1 长连接、多线程+- 文本类(html / css / js / json / svg / xml / webmanifest / txt / md)按需 gzip,压缩结果按(路径, 修改时间, 大小)缓存在内存里+- 缓存头:/_astro/(带哈希的构建产物)和 /fonts/ → 一年 immutable,同线上;其他 → no-cache(每次用 Last-Modified+ 重新验证,重新部署后刷新就能看到,没改的文件只回 304)+- 目录有 index.html 就直接给,不先 301 到带斜杠的地址(同 nginx 的 try_files)+- 其余同 http.server:没有 index 的目录补斜杠后列目录、If-Modified-Since → 304++用法:python3 -I preview-serve.py [--port 18600] [--bind 0.0.0.0] [--directory /srv/amb-preview]+只依赖标准库。+"""+import argparse+import datetime+import email.utils+import gzip+import http.server+import io+import os+import threading+import urllib.parse+from http import HTTPStatus++COMPRESSIBLE = ("text/", "application/javascript", "application/json", "application/manifest+json", "application/xml", "image/svg+xml")+MIN_GZIP = 256 # 太小的文件压了反而更大++_gz_cache: dict[str, tuple[int, int, bytes]] = {}+_gz_lock = threading.Lock()+++def gzipped(path: str, st: os.stat_result) -> bytes:+ key = (st.st_mtime_ns, st.st_size)+ with _gz_lock:+ hit = _gz_cache.get(path)+ if hit and hit[:2] == key:+ return hit[2]+ with open(path, "rb") as f:+ data = gzip.compress(f.read(), compresslevel=6, mtime=0)+ with _gz_lock:+ _gz_cache[path] = (*key, data)+ return data+++def accepts_gzip(header: str | None) -> bool:+ for part in (header or "").split(","):+ name, _, params = part.strip().partition(";")+ if name.strip().lower() in ("gzip", "*"):+ q = params.strip().lower()+ try:+ return not (q.startswith("q=") and float(q[2:] or 0) == 0)+ except ValueError:+ return False+ return False+++class Handler(http.server.SimpleHTTPRequestHandler):+ protocol_version = "HTTP/1.1"+ timeout = 30 # 空闲的长连接 30 秒后关掉,不一直占着线程+ extensions_map = {+ **http.server.SimpleHTTPRequestHandler.extensions_map,+ ".js": "text/javascript",+ ".mjs": "text/javascript",+ ".webmanifest": "application/manifest+json",+ ".webp": "image/webp",+ ".avif": "image/avif",+ ".woff2": "font/woff2",+ ".md": "text/plain; charset=utf-8",+ }++ def send_head(self):+ url = urllib.parse.urlsplit(self.path)+ path = self.translate_path(self.path)+ if os.path.isdir(path):+ index = next((os.path.join(path, n) for n in ("index.html", "index.htm") if os.path.isfile(os.path.join(path, n))), None)+ # 有 index.html 就直接给(同 nginx 的 try_files $uri/index.html):站内链接都不带斜杠,不必多跳一次 301+ if index is None:+ if not url.path.endswith("/"):+ self.send_response(HTTPStatus.MOVED_PERMANENTLY)+ self.send_header("Location", urllib.parse.urlunsplit((url.scheme, url.netloc, url.path + "/", url.query, url.fragment)))+ self.send_header("Content-Length", "0")+ self.end_headers()+ return None+ return super().send_head() # 目录列表+ path = index+ if path.endswith("/") or not os.path.isfile(path):+ self.send_error(HTTPStatus.NOT_FOUND, "File not found")+ return None+ try:+ st = os.stat(path)+ except OSError:+ self.send_error(HTTPStatus.NOT_FOUND, "File not found")+ return None+ ctype = self.guess_type(path)+ compressible = ctype.startswith(COMPRESSIBLE)+ cache = "public, max-age=31536000, immutable" if ("/_astro/" in url.path or "/fonts/" in url.path) else "no-cache"++ def common_headers():+ self.send_header("Last-Modified", self.date_time_string(st.st_mtime))+ self.send_header("Cache-Control", cache)+ if compressible:+ self.send_header("Vary", "Accept-Encoding")++ ims = self.headers.get("If-Modified-Since")+ if ims and "If-None-Match" not in self.headers:+ try:+ since = email.utils.parsedate_to_datetime(ims)+ except (TypeError, IndexError, OverflowError, ValueError):+ since = None+ if since is not None:+ if since.tzinfo is None:+ since = since.replace(tzinfo=datetime.timezone.utc)+ if datetime.datetime.fromtimestamp(st.st_mtime, datetime.timezone.utc).replace(microsecond=0) <= since:+ self.send_response(HTTPStatus.NOT_MODIFIED)+ common_headers()+ self.end_headers()+ return None++ if compressible and st.st_size >= MIN_GZIP and accepts_gzip(self.headers.get("Accept-Encoding")):+ body = gzipped(path, st)+ self.send_response(HTTPStatus.OK)+ self.send_header("Content-Type", ctype)+ self.send_header("Content-Encoding", "gzip")+ self.send_header("Content-Length", str(len(body)))+ common_headers()+ self.end_headers()+ return io.BytesIO(body)+ f = open(path, "rb")+ self.send_response(HTTPStatus.OK)+ self.send_header("Content-Type", ctype)+ self.send_header("Content-Length", str(st.st_size))+ common_headers()+ self.end_headers()+ return f+++def main() -> None:+ ap = argparse.ArgumentParser(description="预览用静态服务(gzip + 长连接 + 缓存头)")+ ap.add_argument("--port", type=int, default=18600)+ ap.add_argument("--bind", default="0.0.0.0")+ ap.add_argument("--directory", default=os.getcwd())+ a = ap.parse_args()+ root = os.path.abspath(a.directory)++ class Bound(Handler):+ def __init__(self, *args, **kw):+ super().__init__(*args, directory=root, **kw)++ srv = http.server.ThreadingHTTPServer((a.bind, a.port), Bound)+ srv.daemon_threads = True+ print(f"serving {root} on http://{a.bind}:{a.port}/", flush=True)+ srv.serve_forever()+++if __name__ == "__main__":+ main()diff --git a/site/scripts/releases-from-dir.ts b/site/scripts/releases-from-dir.tsnew file mode 100644index 0000000..6505062--- /dev/null+++ b/site/scripts/releases-from-dir.ts@@ -0,0 +1,65 @@+// 从安装包目录生成 src/data/releases.json(§12.3),不用手填版本、地址和 SHA-256。+// 文件名按应用 electron-builder 的 artifactName:anymodel-bot-<版本>-<系统>-<架构>.<扩展名>+// win-x64 ← *-win-x64.exe(NSIS) mac-arm64 / mac-x64 ← *-mac-<架构>.dmg linux-x64 ← *-linux-(x64|x86_64).AppImage+// 取目录里最高的版本;该版本缺的平台保留占位符(生产构建会因此失败,提醒补齐)。+// DOWNLOADS_DIR 安装包目录(必填)+// DOWNLOADS_BASE_URL 下载地址前缀,默认 https://<SITE_DOMAIN>/downloads+// DOCKER_IMAGE 应用镜像名+import crypto from "node:crypto";+import fs from "node:fs";+import path from "node:path";+import { fileURLToPath } from "node:url";++const root = path.dirname(path.dirname(fileURLToPath(import.meta.url)));+const dir = process.env.DOWNLOADS_DIR;+if (!dir) { console.error("缺少 DOWNLOADS_DIR"); process.exit(1); }++const RE = /^anymodel-bot-(\d+\.\d+\.\d+)-(win|mac|linux)-(x64|arm64|x86_64)\.(exe|dmg|AppImage)$/;+const PLATFORM: Record<string, string> = { "win-x64-exe": "win-x64", "mac-arm64-dmg": "mac-arm64", "mac-x64-dmg": "mac-x64", "linux-x64-AppImage": "linux-x64", "linux-x86_64-AppImage": "linux-x64" };+const cmpVer = (a: string, b: string) => a.split(".").map(Number).reduce((r, n, i) => r || n - Number(b.split(".")[i]), 0);++const files = fs.existsSync(dir) ? fs.readdirSync(dir) : [];+const found = files.flatMap((name) => {+ const m = RE.exec(name);+ const id = m && PLATFORM[`${m[2]}-${m[3]}-${m[4]}`];+ return m && id ? [{ name, version: m[1], id }] : [];+});+const version = found.map((f) => f.version).sort(cmpVer).at(-1);++const base = (process.env.DOWNLOADS_BASE_URL || `https://${process.env.SITE_DOMAIN || "{SITE_DOMAIN}"}/downloads`).replace(/\/$/, "");+const sha = (file: string) => new Promise<string>((resolve, reject) => {+ const h = crypto.createHash("sha256");+ fs.createReadStream(file).on("data", (c) => h.update(c)).on("end", () => resolve(h.digest("hex"))).on("error", reject);+});++const placeholder = (id: string) => {+ const k = id.toUpperCase().replace("-", "_");+ return { url: `{${k}_URL}`, sha256: `{${k}_SHA256}`, sizeMB: 0 };+};+const platforms: Record<string, unknown> = {};+let newest = 0;+for (const id of ["win-x64", "mac-arm64", "mac-x64", "linux-x64"]) {+ const f = found.find((x) => x.id === id && x.version === version);+ if (!f) { platforms[id] = placeholder(id); continue; }+ const full = path.join(dir, f.name);+ const st = fs.statSync(full);+ newest = Math.max(newest, st.mtimeMs);+ platforms[id] = { url: `${base}/${encodeURIComponent(f.name)}`, sha256: await sha(full), sizeMB: Math.round((st.size / 1048576) * 10) / 10 };+}+// 还没发布镜像(DOCKER_IMAGE 为空)时给"从源码构建"的命令,和 README 的写法一致+const image = process.env.DOCKER_IMAGE || "anymodel-bot";+const runCmd = `docker run -d --name amb -p 3600:3600 -v amb-data:/data ${image}`;+const repo = (process.env.GITHUB_URL || "https://github.com/modelflare-ai/AnyModelBot").replace(/\/+$/, "");+platforms.docker = {+ image,+ command: process.env.DOCKER_IMAGE ? runCmd : `git clone ${repo}.git && cd AnyModelBot && git submodule update --init --depth 1 vendor/magpie && docker build -t ${image} . && ${runCmd}`,+};++const out = {+ version: version ?? "{VERSION}",+ publishedAt: newest ? new Date(newest + 8 * 3600_000).toISOString().slice(0, 10) : "{PUBLISHED_AT}",+ platforms,+};+fs.writeFileSync(path.join(root, "src/data/releases.json"), JSON.stringify(out, null, 2) + "\n");+const missing = Object.entries(platforms).filter(([, v]) => /\{[A-Z0-9_]+\}/.test(JSON.stringify(v))).map(([k]) => k);+console.log(`releases.json:版本 ${out.version}${missing.length ? `,缺少 ${missing.join("、")}` : ",四个平台齐全"}`);diff --git a/site/scripts/releases-from-github.ts b/site/scripts/releases-from-github.tsnew file mode 100644index 0000000..49f6a74--- /dev/null+++ b/site/scripts/releases-from-github.ts@@ -0,0 +1,102 @@+// 从 GitHub 最新 Release 生成 src/data/releases.json:下载按钮直达 GitHub 上的安装包,官网服务器不提供下载。+// 文件名按应用 electron-builder 的 artifactName:anymodel-bot-<版本>-<系统>-<架构>.<扩展名>+// win-x64 ← *-win-x64.exe(NSIS) mac-arm64 / mac-x64 ← *-mac-<架构>.dmg linux-x64 ← *-linux-(x64|x86_64).AppImage+// SHA-256 取 Release 里的 SHA256SUMS;没有时用 GitHub 给每个文件算的 digest。缺平台时保留占位符(生产构建会因此失败)。+// GITHUB_URL 仓库地址(必填),如 https://github.com/modelflare-ai/AnyModelBot+// GITHUB_TOKEN 可选;匿名请求每小时 60 次,构建一天一次,一般用不上+// DOCKER_IMAGE 应用镜像名;为空时给"从源码构建"的命令+// 请求失败(重试 3 次后)退出码为 1:builder 这次不构建,继续用上一版。+import fs from "node:fs";+import path from "node:path";+import { fileURLToPath } from "node:url";++const root = path.dirname(path.dirname(fileURLToPath(import.meta.url)));+const repoUrl = (process.env.GITHUB_URL || "").replace(/\/+$/, "").replace(/\.git$/, "");+const m = /github\.com\/([^/]+)\/([^/]+)$/.exec(repoUrl);+if (!m) {+ console.error(`GITHUB_URL 不是 GitHub 仓库地址:${repoUrl || "(空)"}`);+ process.exit(1);+}+const [owner, repo] = [m[1], m[2]];++const headers: Record<string, string> = { accept: "application/vnd.github+json", "user-agent": "anymodelbot-site" };+if (process.env.GITHUB_TOKEN) headers.authorization = `Bearer ${process.env.GITHUB_TOKEN}`;++async function get(url: string, json = true): Promise<any> {+ let last: unknown;+ for (let i = 0; i < 3; i++) {+ try {+ const res = await fetch(url, { headers: json ? headers : { "user-agent": headers["user-agent"] }, signal: AbortSignal.timeout(20_000) });+ if (!res.ok) throw new Error(`HTTP ${res.status} ${url}`);+ return json ? await res.json() : await res.text();+ } catch (e) {+ last = e;+ await new Promise((r) => setTimeout(r, 2000 * (i + 1)));+ }+ }+ throw last;+}++interface Asset { name: string; size: number; browser_download_url: string; digest?: string | null }+let release: { tag_name: string; published_at: string; html_url: string; assets: Asset[] };+try {+ release = await get(`https://api.github.com/repos/${owner}/${repo}/releases/latest`);+} catch (e) {+ console.error(`读取最新 Release 失败:${(e as Error).message}`);+ process.exit(1);+}++const RE = /^anymodel-bot-(\d+\.\d+\.\d+)-(win|mac|linux)-(x64|arm64|x86_64)\.(exe|dmg|AppImage)$/;+const PLATFORM: Record<string, string> = { "win-x64-exe": "win-x64", "mac-arm64-dmg": "mac-arm64", "mac-x64-dmg": "mac-x64", "linux-x64-AppImage": "linux-x64", "linux-x86_64-AppImage": "linux-x64" };++// SHA256SUMS:每行 "<64 位十六进制> <文件名>"+const sums = new Map<string, string>();+const sumsAsset = release.assets.find((a) => a.name === "SHA256SUMS");+if (sumsAsset) {+ try {+ for (const line of String(await get(sumsAsset.browser_download_url, false)).split("\n")) {+ const s = /^([0-9a-f]{64})\s+\*?(.+)$/i.exec(line.trim());+ if (s) sums.set(s[2].trim(), s[1].toLowerCase());+ }+ } catch (e) {+ console.warn(`读取 SHA256SUMS 失败,改用 GitHub 的 digest:${(e as Error).message}`);+ }+}++const placeholder = (id: string) => {+ const k = id.toUpperCase().replace("-", "_");+ return { url: `{${k}_URL}`, sha256: `{${k}_SHA256}`, sizeMB: 0 };+};+const platforms: Record<string, unknown> = {};+let version = release.tag_name.replace(/^v/, "");+for (const id of ["win-x64", "mac-arm64", "mac-x64", "linux-x64"]) {+ const a = release.assets.find((x) => {+ const r = RE.exec(x.name);+ return r && PLATFORM[`${r[2]}-${r[3]}-${r[4]}`] === id;+ });+ const sha = a && (sums.get(a.name) || (a.digest?.startsWith("sha256:") ? a.digest.slice(7) : ""));+ if (!a || !sha) {+ platforms[id] = placeholder(id);+ continue;+ }+ version = RE.exec(a.name)![1];+ platforms[id] = { url: a.browser_download_url, sha256: sha, sizeMB: Math.round((a.size / 1048576) * 10) / 10 };+}++// 还没发布镜像(DOCKER_IMAGE 为空)时给"从源码构建"的命令,和 README 的写法一致+const image = process.env.DOCKER_IMAGE || "anymodel-bot";+const runCmd = `docker run -d --name amb -p 3600:3600 -v amb-data:/data ${image}`;+platforms.docker = {+ image,+ command: process.env.DOCKER_IMAGE ? runCmd : `git clone ${repoUrl}.git && cd ${repo} && git submodule update --init --depth 1 vendor/magpie && docker build -t ${image} . && ${runCmd}`,+};++const out = {+ version,+ // 发布日期按 UTC+8 记+ publishedAt: new Date(Date.parse(release.published_at) + 8 * 3600_000).toISOString().slice(0, 10),+ platforms,+};+fs.writeFileSync(path.join(root, "src/data/releases.json"), JSON.stringify(out, null, 2) + "\n");+const missing = Object.entries(platforms).filter(([, v]) => /\{[A-Z0-9_]+\}/.test(JSON.stringify(v))).map(([k]) => k);+console.log(`releases.json:${release.tag_name}(${release.html_url})${missing.length ? `,缺少 ${missing.join("、")}` : ",四个平台齐全"}`);diff --git a/site/scripts/sync-from-app.ts b/site/scripts/sync-from-app.tsnew file mode 100644index 0000000..d567634--- /dev/null+++ b/site/scripts/sync-from-app.ts@@ -0,0 +1,35 @@+// 从应用(同仓库上一级)同步素材:机器人精灵图、第三方许可;并检查 BOT_CHARS 几何是否与 App 一致(只警告)。+import crypto from "node:crypto";+import fs from "node:fs";+import path from "node:path";+import { fileURLToPath } from "node:url";+import { BOT_CHARS_HASH } from "../src/lib/bots";++const site = path.dirname(path.dirname(fileURLToPath(import.meta.url)));+const app = path.dirname(site);++// 容器里只有 site/(构建上下文),这时用仓库里已经同步好的副本+if (!fs.existsSync(path.join(app, "ui/components/avatar.js"))) {+ console.log("没有找到应用目录,使用已提交的素材副本");+ process.exit(0);+}+const bots = path.join(app, "ui/design/bots");+fs.mkdirSync(path.join(site, "public/bots"), { recursive: true });+for (const f of fs.readdirSync(bots).filter((f) => f.endsWith(".webp"))) {+ fs.copyFileSync(path.join(bots, f), path.join(site, "public/bots", f));+}+fs.copyFileSync(path.join(app, "THIRD_PARTY_NOTICES.md"), path.join(site, "src/data/third-party.md"));++export function botCharsHash(src: string) {+ const m = src.match(/export const BOT_CHARS = (\{[\s\S]*?\n\});/);+ if (!m) return null;+ // 只比几何:去掉名称、岗位、说明这些文字,剩下的数字依次拼起来+ const nums = m[1].replace(/(name|role|pick): "[^"]*",?/g, "").match(/-?\d+(?:\.\d+)?/g) ?? [];+ return crypto.createHash("sha256").update(nums.join(",")).digest("hex").slice(0, 16);+}+const h = botCharsHash(fs.readFileSync(path.join(app, "ui/components/avatar.js"), "utf8"));+if (h !== BOT_CHARS_HASH) {+ console.warn(`⚠ App 的 BOT_CHARS 几何已变化(${h} ≠ ${BOT_CHARS_HASH}):请把 ui/components/avatar.js 的新几何同步到 src/lib/bots.ts,并更新 BOT_CHARS_HASH`);+} else {+ console.log("素材已同步;BOT_CHARS 与 App 一致");+}diff --git a/site/scripts/vendor-logos.ts b/site/scripts/vendor-logos.tsnew file mode 100644index 0000000..e71f7e5--- /dev/null+++ b/site/scripts/vendor-logos.ts@@ -0,0 +1,73 @@+// 从 LobeHub Icons 的静态 SVG(npm 包 @lobehub/icons-static-svg,MIT)生成厂商标志数据 src/data/vendor-logos.ts。+// 两份:VENDOR_LOGOS 是单色版(fill="currentColor",跟着文字颜色走);VENDOR_LOGOS_COLOR 是官方彩色版(<文件名>-color.svg),+// 只有有彩色版的厂商才有——OpenAI、Anthropic、xAI、Moonshot、TypeSafe 这几家的标志本来就是单色的,没有彩色版,照用单色。+// 都去掉 <svg> 外壳和 <title>,路径原样保留。彩色版里的渐变 id 是 LobeHub 自带的"lobe-icons-…"前缀,整页唯一,放进图标表不冲突。+//+// 用法(包不进依赖,用的时候临时拉一份):+// npm pack @lobehub/icons-static-svg && tar -xzf lobehub-icons-static-svg-*.tgz+// npx tsx scripts/vendor-logos.ts package/icons+//+// 新厂商:在下面的 FILES 里加一行「归一化的厂商名 → 图标文件名」,重跑(有 <文件名>-color.svg 就自动带上彩色版)。+// 归一化 = 价格快照里的厂商名转小写、只留字母数字("Moonshot AI" → "moonshotai"),和 src/lib/vendors.ts 的 vendorKey 一致。+import fs from "node:fs";+import path from "node:path";+import { fileURLToPath } from "node:url";++const root = path.dirname(path.dirname(fileURLToPath(import.meta.url)));+const FILES: Record<string, string> = {+ openai: "openai",+ anthropic: "anthropic",+ google: "google",+ deepseek: "deepseek",+ xai: "xai",+ moonshotai: "moonshot",+ meta: "meta",+ typesafe: "typesafeai",+ zhipuai: "zhipu",+ minimax: "minimax",+ alibabacloud: "alibabacloud",+ bytedance: "bytedance",+};++const dir = process.argv[2];+if (!dir || !fs.existsSync(dir)) {+ console.error("用法:npx tsx scripts/vendor-logos.ts <@lobehub/icons-static-svg 解包后的 icons 目录>");+ process.exit(1);+}+const pkg = JSON.parse(fs.readFileSync(path.join(dir, "..", "package.json"), "utf8")) as { version: string };+const inner = (svg: string) => svg.replace(/^[\s\S]*?<svg[^>]*>/, "").replace(/<\/svg>\s*$/, "").replace(/<title>[\s\S]*?<\/title>/, "").trim();++const mono: Record<string, string> = {};+const color: Record<string, string> = {};+for (const [key, file] of Object.entries(FILES)) {+ const svg = fs.readFileSync(path.join(dir, `${file}.svg`), "utf8");+ if (!/viewBox="0 0 24 24"/.test(svg)) throw new Error(`${file}.svg:viewBox 不是 0 0 24 24`);+ if (/\sid="|<defs|<linearGradient|<radialGradient/.test(svg)) throw new Error(`${file}.svg:带 id 或渐变,合进图标表会冲突,换单色版`);+ mono[key] = inner(svg);++ const cf = path.join(dir, `${file}-color.svg`);+ if (!fs.existsSync(cf)) continue;+ const csvg = fs.readFileSync(cf, "utf8");+ if (!/viewBox="0 0 24 24"/.test(csvg)) throw new Error(`${file}-color.svg:viewBox 不是 0 0 24 24`);+ const ids = [...csvg.matchAll(/\sid="([^"]+)"/g)].map((m) => m[1]);+ const bad = ids.filter((id) => !id.startsWith(`lobe-icons-${file}-`));+ if (bad.length) throw new Error(`${file}-color.svg:id 没有 lobe-icons-${file}- 前缀(${bad.join("、")}),放进图标表可能冲突`);+ color[key] = inner(csvg);+}++const map = (o: Record<string, string>) => Object.entries(o).map(([k, v]) => ` ${JSON.stringify(k)}: ${JSON.stringify(v)},`).join("\n");+fs.writeFileSync(+ path.join(root, "src/data/vendor-logos.ts"),+ `// 由 scripts/vendor-logos.ts 生成,别手改。来源:@lobehub/icons-static-svg ${pkg.version}(MIT,https://github.com/lobehub/lobe-icons)。+// 各标志是其所有者的商标,这里只用来标明模型出自哪家厂商。键是归一化的厂商名(src/lib/vendors.ts 的 vendorKey),值是 24×24 的路径。+// VENDOR_LOGOS:单色(跟着文字颜色走)。VENDOR_LOGOS_COLOR:官方彩色版,只有有彩色版的厂商才有。+export const VENDOR_LOGOS: Record<string, string> = {+${map(mono)}+};++export const VENDOR_LOGOS_COLOR: Record<string, string> = {+${map(color)}+};+`,+);+console.log(`写入 ${Object.keys(mono).length} 个厂商标志,其中 ${Object.keys(color).length} 个有彩色版(@lobehub/icons-static-svg ${pkg.version})`);diff --git a/site/src/assets/brand/eyes-mark.svg b/site/src/assets/brand/eyes-mark.svgnew file mode 100644index 0000000..552b890--- /dev/null+++ b/site/src/assets/brand/eyes-mark.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="3" y="9" width="94" height="82" rx="36" fill="#d7ff00"/><rect x="29" y="36" width="13" height="28" rx="6.5" fill="#161a00"/><rect x="58" y="36" width="13" height="28" rx="6.5" fill="#161a00"/></svg>diff --git a/site/src/components/BotFace.astro b/site/src/components/BotFace.astronew file mode 100644index 0000000..1292fcc--- /dev/null+++ b/site/src/components/BotFace.astro@@ -0,0 +1,57 @@+---+// 毛绒机器人头像:结构与 App 的 BotAvatar(ui/components/avatar.js)一致,样式在 styles/bots.css。+// 看指针、戳一戳由 lib/eyes.ts 驱动;无 JS 时是静态的第一帧。+import "../styles/bots.css";+import { BOT_CHARS, type CharKey } from "../lib/bots";+// 其余 data-* 原样挂到根元素上(循环示意的时间线用 data-states / data-shots / data-say-at,见 scripts/tour.ts)+interface Props { char: CharKey; size?: number; lively?: boolean; pokeable?: boolean; state?: "idle" | "listening" | "working"; class?: string; seed?: number; [data: `data-${string}`]: string }+const { char, size = 48, lively = false, pokeable = false, state = "idle", class: cls, seed, ...rest } = Astro.props;+const c = BOT_CHARS[char];+const p = (pt: [number, number]) => `${pt[0]}% ${pt[1]}%`;+const style = [+ `--s:${size}px`,+ `--bf-sprite:url("/bots/${char}.webp")`,+ `--bf-sprite-avif:url("/bots/${char}.avif")`, // 支持 AVIF 的浏览器用它(styles/bots.css 的 image-set)+ `--o-el:${p(c.earL)}`, `--o-er:${p(c.earR)}`, `--o-top:${p(c.top)}`,+ `--tip-x:${c.tip[0]}%`, `--tip-y:${c.tip[1]}%`,+ `--bf-seed:${(seed ?? (char.charCodeAt(0) * 37 + char.length * 101) % 1000 / 1000).toFixed(3)}`,+].join(";");+const R = c.r;+const f = (n: number) => +(n * R).toFixed(2);+const spiral = Array.from({ length: 29 }, (_, i) => {+ const t = (i / 28) * Math.PI * 4.2, rr = (0.12 + (0.9 * i) / 28) * R;+ return `${i ? "L" : "M"}${(Math.cos(t) * rr).toFixed(2)} ${(Math.sin(t) * rr).toFixed(2)}`;+}).join("");+const parts = ["ear-l", "ear-r", "top"];+---+<div class:list={["bot-face", { lively, pokeable, sm: size < 36 }, cls]} style={style} data-char={char} data-state={state} data-eyes="open" aria-hidden="true" {...rest}>+ {lively && <i class="bf-shadow"></i>}+ <i class="bf-aura"></i>+ <div class="bf-body">+ <div class="bf-shot">+ <div class="bf-look">+ {parts.map((k) => <i class={`bf-part bf-${k}`}><i class="bf-pin"><b class="bf-img"></b><b class="bf-glow"></b></i></i>)}+ <i class="bf-part bf-head"><b class="bf-img"></b><b class="bf-glow"></b></i>+ {c.lens && c.lens.slice(0, 2).map((l) => <i class="bf-lens" style={`left:${(l as number[])[0]}%;top:${(l as number[])[1]}%;--lens:${c.lens![2] * 2}%`}></i>)}+ {c.eyes.map((e) => <i class="bf-blush" style={`left:${(e[0] + (e[0] < 50 ? -5.6 : 5.6)).toFixed(2)}%;top:${(e[1] + 6.2).toFixed(2)}%`}></i>)}+ <svg class="bf-eyes" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">+ <g class="bf-gaze"><g class="bf-glance">+ {c.eyes.map((e, i) => (+ <g transform={`translate(${e[0]} ${e[1]})${i ? " scale(-1 1)" : ""}`}>+ <g class="bf-lid">+ <circle class="e e-open" r={R} />+ <path class="e e-happy line" d={`M${f(-1.05)} ${f(0.45)}Q0 ${f(-1.3)} ${f(1.05)} ${f(0.45)}`} />+ <path class="e e-closed line" d={`M${f(-1.05)} ${f(-0.15)}Q0 ${f(0.8)} ${f(1.05)} ${f(-0.15)}`} />+ <path class="e e-sad" d={`M${f(-1.05)} 0L${f(1.05)} 0A${f(1.05)} ${f(1.05)} 0 0 1 ${f(-1.05)} 0Z`} />+ <path class="e e-x line" d={`M${f(-0.8)} ${f(-0.8)}L${f(0.8)} ${f(0.8)}M${f(0.8)} ${f(-0.8)}L${f(-0.8)} ${f(0.8)}`} />+ <path class="e e-spiral line thin" d={spiral} />+ <path class="e e-heart" d={`M0 ${f(1.05)}C${f(-1.7)} ${f(-0.05)} ${f(-1)} ${f(-1.4)} 0 ${f(-0.5)}C${f(1)} ${f(-1.4)} ${f(1.7)} ${f(-0.05)} 0 ${f(1.05)}Z`} />+ </g>+ </g>+ ))}+ </g></g>+ </svg>+ </div>+ </div>+ </div>+</div>diff --git a/site/src/components/DemoTour.astro b/site/src/components/DemoTour.astronew file mode 100644index 0000000..5281019--- /dev/null+++ b/site/src/components/DemoTour.astro@@ -0,0 +1,335 @@+---+// 首页"看演示"(§6.1 次 CTA):7 幕动画导览,界面照 App 的原生样式画(ui/design 的 token、ui/screens/onboarding.js、+// new-bot.js、chat.js):环境光 + 毛玻璃侧栏 + 浮起的主面板 + 玻璃输入框,按钮、输入框、审批卡、模型选择器都按 App 的尺寸和层次。+// 节奏:每幕 6–8.5 秒,一共不到一分钟;点开就从第 1 幕自动播,播完从头再来,关掉才停。+// 切换:舞台下面一排步骤标签(编号 + 名称 + 这一幕的进度线),点哪一幕看哪一幕;舞台两侧的箭头和 ← → 键前后翻。切过去接着往下播。+// 时间线由 scripts/tour.ts 驱动:data-at(毫秒)到点加 .on;data-type 逐字打出;data-fill 画进度条;+// data-steps 切整幕的状态(busy:侧栏亮绿点、发送钮变停止;pick:模型选择器打开);data-states 驱动机器人。+// 减少动态效果时每幕直接显示完成态,仍按时翻页。整块是示意,对读屏只读标题和字幕。+import "../styles/tour.css";+import BotFace from "./BotFace.astro";+import Icon from "./Icon.astro";+import { dict, fmt, type Lang } from "../i18n";+import { pricing } from "../lib/site";+interface Props { lang: Lang }+const { lang } = Astro.props;+const t = dict(lang);+const u = t.tour.ui;+const bots = t.bots.chars;+const isZh = lang === "zh";+const cps = isZh ? 34 : 64; // 回复逐字打出的速度:英文字母多,快一点,两种语言差不多同时写完+const durations = [6000, 8000, 7000, 7500, 8000, 8500, 6500];+const connected = fmt(u.connected, { n: pricing.counts.text });+const code = u.botNameValue; // 第 4 幕新建的机器人,第 5、6 幕和它聊++// App 的线稿图标(细线、圆头),只在演示里用+const I = {+ plus: '<path d="M12 5v14M5 12h14"/>',+ edit: '<path d="M12 20h9"/><path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z"/>',+ panel: '<rect x="3" y="4" width="18" height="16" rx="3"/><path d="M15 4v16"/>',+ close: '<path d="m6 6 12 12M18 6 6 18"/>',+ search: '<circle cx="11" cy="11" r="6.5"/><path d="m20 20-4-4"/>',+ gear: '<circle cx="12" cy="12" r="3"/><path d="M12 3.5v2.2M12 18.3v2.2M20.5 12h-2.2M5.7 12H3.5M18 6l-1.6 1.6M7.6 16.4 6 18M18 18l-1.6-1.6M7.6 7.6 6 6"/>',+ shield: '<path d="M12 3.5 19 6v5.5c0 4.2-3 7.6-7 9-4-1.4-7-4.8-7-9V6l7-2.5Z"/>',+ down: '<path d="m6 9 6 6 6-6"/>',+ right: '<path d="m9 6 6 6-6 6"/>',+ up: '<path d="M12 19V5M5 12l7-7 7 7"/>',+ check: '<path d="m5 12.5 4.5 4.5L19 7.5"/>',+ doc: '<path d="M7 3.5h6.5L18 8v11a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 6 19V5a1.5 1.5 0 0 1 1-1.5Z"/><path d="M13 3.5V8h5M9 12.5h6M9 16h4"/>',+ chat: '<path d="M5 18.5V6.5A2.5 2.5 0 0 1 7.5 4h9A2.5 2.5 0 0 1 19 6.5v6a2.5 2.5 0 0 1-2.5 2.5H9l-4 3.5Z"/>',+ file: '<path d="M7 3.5h6.5L18 8v11a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 6 19V5a1.5 1.5 0 0 1 1-1.5Z"/><path d="M13 3.5V8h5"/>',+ terminal: '<rect x="3" y="4.5" width="18" height="15" rx="2.5"/><path d="m7.5 10 3 2.5-3 2.5M12.5 15.5h4"/>',+ copy: '<rect x="8" y="8" width="12" height="12" rx="2.5"/><path d="M16 8V6.5A2.5 2.5 0 0 0 13.5 4h-7A2.5 2.5 0 0 0 4 6.5v7A2.5 2.5 0 0 0 6.5 16H8"/>',+ memory: '<path d="M12 4.5 19.5 8 12 11.5 4.5 8 12 4.5Z"/><path d="m4.5 12 7.5 3.5 7.5-3.5M4.5 16l7.5 3.5 7.5-3.5"/>',+};+const ic = (d: string, size = 16) => `<svg class="tw-ic" width="${size}" height="${size}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${d}</svg>`;+// 侧栏的机器人行(第 4–6 幕):头像 + 名称 + 时间 + 一行预览+const sideRows = [+ { k: "red" as const, name: code, when: "21:08" },+ { k: "blue" as const, name: bots.blue.name, when: "20:46", snip: bots.blue.bot },+ { k: "green" as const, name: bots.green.name, when: "18:30", snip: bots.green.bot },+];+const pickerGroups = [+ ["GPT", ["gpt-5.6-sol", "gpt-6-sol"]],+ ["Claude", ["claude-sonnet-5-5", "claude-opus-5-5"]],+] as const;+const fams = [["GPT", 10], ["Claude", 9], ["Gemini", 8], ["DeepSeek", 3]] as const;+const claude = ["claude-opus-5-5", "claude-sonnet-5-5", "claude-haiku-5-5"];+const tplIcons = [I.file, I.chat, I.terminal];+---+<dialog class="sheet tour" id="demo-tour" aria-labelledby="tour-title" data-tour>+ <div class="sheet__head">+ <h2 class="h3" id="tour-title">{t.tour.title}</h2>+ <button class="icon-btn" type="button" data-close-dialog aria-label={t.ui.close}><Icon name="close" /></button>+ </div>++ <div class="tour__viewport">+ <div class="tour__stage" aria-hidden="true">++ <!-- 1 下载安装:下载按钮 → 安装进度 → App 打开到首屏 -->+ <section class="tour__scene tour__scene--desk" data-scene="0" data-duration={durations[0]}>+ <div class="tdl">+ <span class="btn btn--primary tw-press" data-at="500"><Icon name="download" />{t.download.generic}</span>+ <div class="tdl__bar on-fade" data-at="800">+ <span class="tdl__row"><span>{u.installing}</span><span class="tdl__pct mono" data-fill-text="900:2900"></span></span>+ <i><b data-fill="900:2900"></b></i>+ </div>+ </div>+ <div class="tw tw--bare tdl__app on-rise" data-at="3200">+ <span class="tw__lights"><i></i><i></i><i></i></span>+ <div class="tob">+ <BotFace char="blue" size={88} lively />+ <b class="tob__title">{u.slogan}</b>+ <span class="tw-btn tw-btn--primary tw-btn--lg tw-btn--block">{u.login}</span>+ </div>+ </div>+ </section>++ <!-- 2 登录 Modelflare:按钮 → 等浏览器 → 浏览器里授权 → 回来已连接 -->+ <section class="tour__scene" data-scene="1" data-duration={durations[1]}>+ <div class="tw tw--bare">+ <span class="tw__lights"><i></i><i></i><i></i></span>+ <div class="tob">+ <BotFace char="blue" size={88} lively data-states={JSON.stringify([[0, "idle"], [800, "thinking"], [5600, "idle"]])} data-shots={JSON.stringify([[5600, "done"]])} />+ <b class="tob__title">{u.slogan}</b>+ <div class="by-time tob__cta">+ <span><span class="tw-btn tw-btn--primary tw-btn--lg tw-btn--block tw-press" data-at="600">{u.login}</span></span>+ <span class="tob__wait" data-at="900"><span class="tw-spin"></span>{u.loginWait}</span>+ <span class="tob__ok" data-at="5500"><i class="tw-dot"></i>{connected}</span>+ </div>+ <span class="tob__links on-fade" data-at="900"><span class="tob__off" data-at="5500"></span><span>{u.loginReopen}</span><span><Fragment set:html={ic(I.copy, 13)} />{u.loginCopy}</span><span>{u.loginCancel}</span></span>+ </div>+ </div>+ <!-- 系统浏览器:盖在 App 上面,授权完退下去 -->+ <div class="tbr" data-at="1600">+ <span class="tbr__out" data-at="4700"></span>+ <div class="tbr__bar"><span class="tw__lights"><i></i><i></i><i></i></span><span class="tbr__url mono">modelflare.dev/authorize</span></div>+ <div class="tbr__body">+ <span class="tbr__brand">Modelflare</span>+ <b>{u.authTitle}</b>+ <small>{u.authSub}</small>+ <span class="tbr__btn tw-press" data-at="3900">{u.authBtn}</span>+ </div>+ </div>+ </section>++ <!-- 3 选默认模型:引导页的玻璃卡片——已连接 → 筛选 → 选中 → 开始对话 -->+ <section class="tour__scene" data-scene="2" data-duration={durations[2]}>+ <div class="tw tw--bare">+ <span class="tw__lights"><i></i><i></i><i></i></span>+ <div class="tob tob--step">+ <div class="tob__mini"><BotFace char="blue" size={40} /><b>{u.slogan}</b></div>+ <div class="tw-sheet">+ <span class="tob__ok tob__ok--lg"><i class="tw-dot"></i>{connected}</span>+ <span class="tw-hint">{u.pickHint}</span>+ <span class="tw-field" data-at="700"><span class="tw-field__ph">{u.filter}</span><span class="tw-typed mono" data-at="800" data-type="claude" data-cps="9"></span></span>+ <div class="by-time tw-pick">+ <div>{fams.map(([f, n]) => <span class="tw-fam"><b>{f}</b><span class="tw-fam__n">{n}</span><Fragment set:html={ic(I.right, 12)} /></span>)}</div>+ <div data-at="1300">+ <span class="tw-group">Claude</span>+ {claude.map((m) => <span class:list={["tw-opt", "mono", { "tw-opt--pick tw-press": m === "claude-sonnet-5-5" }]} data-at={m === "claude-sonnet-5-5" ? "2600" : undefined}><span>{m}</span><Fragment set:html={ic(I.check, 14)} /></span>)}+ </div>+ </div>+ <span class="tw-btn tw-btn--primary tw-btn--lg tw-btn--block tw-press" data-at="4800">{u.start}</span>+ </div>+ </div>+ </div>+ </section>++ <!-- 4 新建机器人:点"代码助手"模板 → 角色、名称跟着换 → 创建 → 侧栏里多了一行 -->+ <section class="tour__scene" data-scene="3" data-duration={durations[3]}>+ <div class="tw">+ <div class="tw__side">+ <div class="tw__top"><span class="tw__lights"><i></i><i></i><i></i></span><span class="tw-ib tw-ib--on"><Fragment set:html={ic(I.plus)} /></span></div>+ <div class="tw__search"><Fragment set:html={ic(I.search, 14)} />{u.search}</div>+ <div class="tw__list">+ <div class="tw-row is-sel by-time">+ <span><span class="tw-row__av"><BotFace char="blue" size={30} class="neutral" /></span><span class="tw-row__body"><b>{u.newBot}</b><span class="tw-row__snip">{u.creating}</span></span></span>+ <span data-at="4500"><span class="tw-row__av"><BotFace char="red" size={30} /></span><span class="tw-row__body"><b>{code}</b><span class="tw-row__snip">{u.noChat}</span></span></span>+ </div>+ </div>+ <div class="tw__acct"><span class="tw__me">M</span><span class="tw__who">Modelflare<small class="tnum">$12.40</small></span><Fragment set:html={ic(I.gear)} /></div>+ </div>+ <div class="tw__main">+ <div class="tw-head">+ <span class="by-time tw-head__bot"><span><BotFace char="blue" size={22} /><b>{u.newBot}</b></span><span data-at="1000"><BotFace char="red" size={22} /><b>{u.newBot}</b></span></span>+ <span class="tw-grow"></span>+ <span class="tw-ib"><Fragment set:html={ic(I.close)} /></span>+ </div>+ <div class="tnew">+ <div class="by-time tnew__face"><span><BotFace char="blue" size={56} lively /></span><span data-at="1000"><BotFace char="red" size={56} lively /></span></div>+ <b class="tnew__title">{u.newFirst}</b>+ <div class="tnew__pick">+ {(["blue", "yellow", "green", "red", "purple", "orange"] as const).map((k) => (+ <span class:list={["tav", { "tav--first": k === "blue" }]} data-at={k === "red" ? "1000" : undefined}><BotFace char={k} size={28} /><small>{bots[k].name}</small></span>+ ))}+ </div>+ <div class="tnew__field">+ <span class="tnew__k">{u.botName}</span>+ <span class="tw-field tw-field--lg" data-at="1000"><span class="by-time"><span class="tw-field__ph">{u.botNamePh}</span><span data-at="1000">{code}</span></span></span>+ </div>+ <span class="tw-btn tw-btn--primary tw-btn--lg tnew__go tw-press" data-at="3700"><span class="by-time"><span>{u.create}</span><span data-at="3800"><span class="tw-spin tw-spin--on"></span>{u.creating}</span></span></span>+ <div class="tnew__tpls">+ <span class="tnew__head">{u.templates}</span>+ <div class="tnew__grid">+ {u.tpls.map((x, i) => (+ <span class:list={["tpl", { "tpl--pick tw-press": i === 2 }]} data-at={i === 2 ? "800" : undefined}>+ <span class="tpl__ic"><Fragment set:html={ic(tplIcons[i], 18)} /></span><b>{x.name}</b><small>{x.desc}</small>+ </span>+ ))}+ </div>+ </div>+ </div>+ </div>+ </div>+ </section>++ <!-- 5 开聊、换模型:提问 → 思考中 → 回复逐字出来 → 点输入框里的模型 → 选择器里换一个 -->+ <section class="tour__scene" data-scene="4" data-duration={durations[4]}>+ <div class="tw" data-steps={JSON.stringify([[0, "idle"], [900, "busy"], [3700, "idle"], [4300, "pick"], [5800, "idle"]])}>+ <div class="tw__side">+ <div class="tw__top"><span class="tw__lights"><i></i><i></i><i></i></span><span class="tw-ib"><Fragment set:html={ic(I.plus)} /></span></div>+ <div class="tw__search"><Fragment set:html={ic(I.search, 14)} />{u.search}</div>+ <div class="tw__list">+ {sideRows.map((r, i) => (+ <div class:list={["tw-row", { "is-sel": i === 0 }]}>+ <span class="tw-row__av"><BotFace char={r.k} size={30} />{i === 0 && <i class="tw-row__dot"></i>}</span>+ <span class="tw-row__body"><span class="tw-row__line"><b>{r.name}</b><small class="tnum">{r.when}</small></span>+ {i === 0 ? <span class="tw-row__snip by-busy"><span>{u.chatUser}</span><span>{u.working}</span></span> : <span class="tw-row__snip">{r.snip}</span>}</span>+ </div>+ ))}+ </div>+ <div class="tw__acct"><span class="tw__me">M</span><span class="tw__who">Modelflare<small class="tnum">$12.40</small></span><Fragment set:html={ic(I.gear)} /></div>+ </div>+ <div class="tw__main">+ <div class="tw-head">+ <span class="tw-head__bot"><span><BotFace char="red" size={22} data-states={JSON.stringify([[0, "idle"], [900, "working"], [3700, "idle"]])} /><b>{code}</b></span></span>+ <span class="tw-grow"></span>+ <span class="tw-ib"><Fragment set:html={ic(I.edit)} /></span><span class="tw-ib"><Fragment set:html={ic(I.panel)} /></span>+ </div>+ <div class="tw-log">+ <div class="tw-item tw-item--static"><div><span class="tw-time">{u.today}</span></div></div>+ <div class="tw-item" data-at="300"><div><p class="tw-msg tw-msg--me">{u.chatUser}</p></div></div>+ <div class="tw-item" data-at="900"><div><p class="tw-work"><span class="by-time"><span class="tw-shimmer">{u.thinking}</span><span data-at="1900">{fmt(u.took, { s: "1.0s" })}</span></span></p></div></div>+ <div class="tw-item" data-at="1900"><div><p class="tw-msg tw-live"><span data-at="1900" data-type={u.chatReply} data-cps={cps}></span></p></div></div>+ <div class="tw-item" data-at="5900"><div><span class="tw-time tw-time--note">{fmt(u.switched, { model: "gpt-5.6-sol" })}</span></div></div>+ </div>+ <div class="tw-composer">+ <span class="tw-composer__ph">{fmt(u.input, { name: code })}</span>+ <span class="tw-composer__bar">+ <span class="tw-plus"><Fragment set:html={ic(I.plus)} /></span>+ <span class="tw-chip"><Fragment set:html={ic(I.shield, 13)} />{u.perm}<Fragment set:html={ic(I.down, 11)} /></span>+ <span class="tw-grow"></span>+ <span class="tw-chip tw-chip--model tw-press" data-at="4200"><span class="by-time"><span>claude-sonnet-5-5</span><span data-at="5700">gpt-5.6-sol</span></span><Fragment set:html={ic(I.down, 11)} /></span>+ <span class="tw-send"><Fragment set:html={ic(I.up, 15)} /><i></i></span>+ </span>+ </div>+ <!-- App 的模型选择器(.pop.model-picker):从输入框里的模型胶囊往上弹 -->+ <div class="tw-pop">+ <span class="tw-pop__search"><Fragment set:html={ic(I.search, 14)} />{u.pickerSearch}</span>+ <ul>+ {pickerGroups.map(([g, ms]) => (+ <>+ <li class="tw-pop__group">{g}</li>+ {ms.map((m) => <li class:list={["mono", { "tw-pop__cur": m === "claude-sonnet-5-5", "tw-pop__go tw-press": m === "gpt-5.6-sol" }]} data-at={m === "gpt-5.6-sol" ? "5000" : undefined}><span>{m}</span>{m === "claude-sonnet-5-5" && <Fragment set:html={ic(I.check, 14)} />}</li>)}+ </>+ ))}+ </ul>+ </div>+ </div>+ </div>+ </section>++ <!-- 6 让它动手:交代任务 → 一步步做 → 越界的那一步出审批卡 → 允许 → 交出文件 -->+ <section class="tour__scene" data-scene="5" data-duration={durations[5]}>+ <div class="tw" data-steps={JSON.stringify([[0, "idle"], [800, "busy"], [6500, "idle"]])}>+ <div class="tw__side">+ <div class="tw__top"><span class="tw__lights"><i></i><i></i><i></i></span><span class="tw-ib"><Fragment set:html={ic(I.plus)} /></span></div>+ <div class="tw__search"><Fragment set:html={ic(I.search, 14)} />{u.search}</div>+ <div class="tw__list">+ {sideRows.map((r, i) => (+ <div class:list={["tw-row", { "is-sel": i === 0 }]}>+ <span class="tw-row__av"><BotFace char={r.k} size={30} />{i === 0 && <i class="tw-row__dot"></i>}</span>+ <span class="tw-row__body"><span class="tw-row__line"><b>{r.name}</b><small class="tnum">{r.when}</small></span>+ {i === 0 ? <span class="tw-row__snip by-busy"><span>{u.task}</span><span>{u.working}</span></span> : <span class="tw-row__snip">{r.snip}</span>}</span>+ </div>+ ))}+ </div>+ <div class="tw__acct"><span class="tw__me">M</span><span class="tw__who">Modelflare<small class="tnum">$12.40</small></span><Fragment set:html={ic(I.gear)} /></div>+ </div>+ <div class="tw__main">+ <div class="tw-head">+ <span class="tw-head__bot"><span><BotFace char="red" size={22} data-states={JSON.stringify([[0, "idle"], [800, "working"], [6500, "idle"]])} data-shots={JSON.stringify([[6500, "done"]])} /><b>{code}</b></span></span>+ <span class="tw-grow"></span>+ <span class="tw-ib"><Fragment set:html={ic(I.edit)} /></span><span class="tw-ib"><Fragment set:html={ic(I.panel)} /></span>+ </div>+ <div class="tw-log">+ <div class="tw-item tw-item--static"><div><span class="tw-time">{u.today}</span></div></div>+ <div class="tw-item" data-at="300"><div><p class="tw-msg tw-msg--me">{u.task}</p></div></div>+ <div class="tw-item" data-at="800"><div><p class="tw-work"><span class="by-time"><span class="tw-shimmer">{u.working}</span><span data-at="6400">{fmt(u.took, { s: "5.6s" })}</span></span></p></div></div>+ <div class="tw-item" data-at="1200"><div><ul class="tw-well tw-steps" role="list">{t.handson.demoSteps.map((x, i) => <li data-at={String(1200 + i * 450)}><Fragment set:html={ic(I.check, 13)} />{x}</li>)}</ul></div></div>+ <div class="tw-item" data-at="2700"><div>+ <div class="tw-well tw-card" data-at="4700">+ <span class="tw-card__meta"><span>{u.approvalMeta} · <span class="tnum">4F2K</span></span><span class="tw-badge">{u.allowed}</span></span>+ <b class="tw-card__q">{t.handson.approvalBody}</b>+ <span class="tw-card__cmd mono">mv ~/Downloads/*.pdf ~/Documents/</span>+ <span class="tw-card__acts"><span class="tw-btn tw-btn--primary tw-press" data-at="4400">{u.allowOnce}</span><span class="tw-btn">{u.deny}</span></span>+ </div>+ </div></div>+ <div class="tw-item" data-at="5400"><div><div class="tw-well tw-file"><Fragment set:html={ic(I.doc, 24)} /><span><b>{t.handson.file}</b><small>{u.fileSub}</small></span></div></div></div>+ </div>+ <div class="tw-composer">+ <span class="tw-composer__ph">{fmt(u.input, { name: code })}</span>+ <span class="tw-composer__bar">+ <span class="tw-plus"><Fragment set:html={ic(I.plus)} /></span>+ <span class="tw-chip"><Fragment set:html={ic(I.shield, 13)} />{u.perm}<Fragment set:html={ic(I.down, 11)} /></span>+ <span class="tw-grow"></span>+ <span class="tw-chip tw-chip--model"><span>gpt-5.6-sol</span><Fragment set:html={ic(I.down, 11)} /></span>+ <span class="tw-send"><Fragment set:html={ic(I.up, 15)} /><i></i></span>+ </span>+ </div>+ </div>+ </div>+ </section>++ <!-- 7 在聊天软件里找它:接入卡(已连接)+ 手机上一问一答 -->+ <section class="tour__scene tour__scene--phone" data-scene="6" data-duration={durations[6]}>+ <div class="tim">+ <div class="tw-sheet tim__card on-rise" data-at="200">+ <span class="tim__ic"><Fragment set:html={ic(I.chat, 20)} /></span>+ <b>{fmt(u.channelOk, { im: u.imFrom })}</b>+ <small>{u.channelSub}</small>+ <span class="tim__bot"><BotFace char="green" size={26} />{bots.green.name}<i class="tw-dot"></i></span>+ </div>+ <div class="phone tour__phone">+ <div class="phone__screen">+ <div class="phone__head"><BotFace char="green" size={30} data-states={JSON.stringify([[0, "idle"], [1900, "working"], [3600, "idle"]])} /><span class="tim__who"><b>{bots.green.name}</b><small>{u.imFrom}</small></span></div>+ <div class="phone__log">+ <span class="phone__day">{u.today}</span>+ <p class="msg msg--user on-rise" data-at="900">{u.imUser}</p>+ <p class="msg msg--bot on-rise" data-at="1900"><span data-at="2000" data-type={u.imReply} data-cps={isZh ? 18 : 34}></span></p>+ </div>+ <div class="phone__input">{t.bots.phoneInput}</div>+ </div>+ </div>+ </div>+ </section>+ </div>+ <button type="button" class="tour__arrow tour__arrow--prev" data-tour-prev aria-label={t.tour.prev}><Icon name="arrow" class="flip" size={18} /></button>+ <button type="button" class="tour__arrow tour__arrow--next" data-tour-next aria-label={t.tour.next}><Icon name="arrow" size={18} /></button>+ </div>++ <div class="tour__steps" role="tablist" aria-label={t.tour.steps}>+ {t.tour.scenes.map((s, i) => (+ <button type="button" role="tab" class="tour__step" data-goto={i} aria-selected={i === 0 ? "true" : "false"}>+ <span class="tour__step-n mono">{i + 1}</span><span class="tour__step-t">{s.title}</span><i class="tour__step-bar"></i>+ </button>+ ))}+ </div>+ <div class="tour__caption" aria-live="polite">+ {t.tour.scenes.map((s, i) => (+ <p data-caption={i} hidden={i !== 0}><b>{s.title}</b><span>{s.caption}</span></p>+ ))}+ </div>+ <p class="tour__note small muted">{t.tour.note}</p>+</dialog>diff --git a/site/src/components/DownloadButton.astro b/site/src/components/DownloadButton.astronew file mode 100644index 0000000..92d1cb6--- /dev/null+++ b/site/src/components/DownloadButton.astro@@ -0,0 +1,48 @@+---+// 分裂下载按钮(§12):主段按系统识别(client.ts),右段打开平台菜单。无 JS 时主段链接到 /download。+// 同一行要并排放的按钮(如 Hero 的"看演示")用 slot="after" 传进来。版本、大小与 SHA-256 在 /download 页。+// plain:只有一颗带下载图标的按钮(导航用),没有标记和平台菜单;同样按系统换成安装包直链。+import EyesMark from "./EyesMark.astro";+import Icon from "./Icon.astro";+import { dict, href, type Lang } from "../i18n";+import { releases, PLATFORMS } from "../lib/site";+interface Props { lang: Lang; placement: string; size?: "md" | "sm"; short?: boolean; plain?: boolean; id?: string }+const { lang, placement, size = "md", short = false, plain = false, id } = Astro.props;+const t = dict(lang);+const menuId = `dl-menu-${placement}`;+---+{plain ? (+ <div class="dl dl--plain" data-dl data-placement={placement} data-short={short ? "1" : undefined}>+ <a class:list={["btn btn--primary", { "btn--sm": size === "sm" }]} id={id} href={href(lang, "/download")} data-dl-main>+ <Icon name="download" size={16} />+ <span class="btn-label" data-dl-label>{t.download.generic}</span>+ </a>+ </div>+) : (+<div class:list={["dl", { "dl--sm": size === "sm" }]} data-dl data-placement={placement} data-short={short ? "1" : undefined}>+ <div class="dl__row">+ <div class:list={["split", { "split--sm": size === "sm" }]}>+ <a class:list={["btn btn--primary", { "btn--sm": size === "sm" }]} id={id} href={href(lang, "/download")} data-dl-main data-on="accent">+ <EyesMark size={18} mode="follow" on="accent" />+ <span class="btn-label" data-dl-label>{t.download.generic}</span>+ </a>+ <button class="split__more" type="button" aria-haspopup="menu" aria-expanded="false" aria-controls={menuId} aria-label={t.download.more} data-menu-toggle>+ <Icon name="chevron" />+ </button>+ <div class="menu" role="menu" id={menuId} hidden>+ {PLATFORMS.map((p) => (+ <a role="menuitem" href={releases.platforms[p].url} data-dl-platform={p} download>+ <span>{t.download.items[p]}</span>+ </a>+ ))}+ <hr />+ <button type="button" role="menuitem" data-copy-text={releases.platforms.docker.command} data-track="docker_cmd_copy" data-track-command="docker-run">+ <span>{t.download.items.docker}</span><Icon name="copy" size={16} />+ </button>+ <a role="menuitem" href={href(lang, "/changelog")}><span>{t.download.items.changelog}</span></a>+ </div>+ </div>+ <slot name="after" />+ </div>+</div>+)}diff --git a/site/src/components/EyesMark.astro b/site/src/components/EyesMark.astronew file mode 100644index 0000000..20873de--- /dev/null+++ b/site/src/components/EyesMark.astro@@ -0,0 +1,28 @@+---+// AnyModelBot Eyes 标记(§7.2)。装饰性,aria-hidden;动效见 styles/eyes.css 与 lib/eyes.ts。+interface Props {+ size?: number | string;+ variant?: "solid" | "ring";+ mode?: "idle" | "follow" | "static";+ lookAt?: string;+ on?: "accent";+ class?: string;+ id?: string;+}+const { size = "1em", variant = "solid", mode = "idle", lookAt, on, class: cls, id } = Astro.props;+const s = typeof size === "number" ? `${size}px` : size;+---+<svg class:list={["amb-mark", cls]} id={id} viewBox="0 0 100 100" width={s} height={s} style={`--mark-size:${s}`}+ aria-hidden="true" focusable="false" data-amb-mark data-mode={mode} data-variant={variant} data-look-at={lookAt} data-on={on}>+ <g class="amb-mark__head">+ <rect class="amb-mark__plate" x="3" y="9" width="94" height="82" rx="36" />+ <g class="amb-mark__eyes">+ <g class="amb-mark__squint">+ <g class="amb-mark__lids">+ <rect class="amb-mark__eye" x="29" y="36" width="13" height="28" rx="6.5" />+ <rect class="amb-mark__eye" x="58" y="36" width="13" height="28" rx="6.5" />+ </g>+ </g>+ </g>+ </g>+</svg>diff --git a/site/src/components/Footer.astro b/site/src/components/Footer.astronew file mode 100644index 0000000..a59c295--- /dev/null+++ b/site/src/components/Footer.astro@@ -0,0 +1,64 @@+---+// 页脚:品牌(标记 + 一句话)| 三栏链接 → 版权行 → 眼睛田。+// 眼睛田是页脚最下面的大字标:AnyModelBot 由几百枚迷你 Eyes 标记拼成,跟着指针看、点一下发消息、定时"换脑"(scripts/eyefield.ts)。+// 纯装饰(aria-hidden),没有 JS 时整块不显示;样式在 styles/footer.css。+import "../styles/footer.css";+import EyesMark from "./EyesMark.astro";+import { dict, href, altLang, switchHref, type Lang } from "../i18n";+import { GITHUB_URL, MF, pricing } from "../lib/site";+import { docsUrl } from "../lib/docs";+import { pickModels } from "../lib/eyefield";+interface Props { lang: Lang; path: string }+const { lang, path } = Astro.props;+const t = dict(lang);+const c = t.footer.cols;+const h = (p: string) => href(lang, p);+const home = h("/");+const cols = [+ { title: c.product.title, links: [[c.product.links[0], `${home}#features`], [c.product.links[1], h("/pricing")], [c.product.links[2], h("/download")], [c.product.links[3], h("/changelog")]] },+ { title: c.resources.title, links: [[c.resources.links[0], docsUrl(lang)], [c.resources.links[1], h("/security")], [c.resources.links[2], GITHUB_URL], [c.resources.links[3], MF.home]] },+ { title: c.legal.title, links: [[c.legal.links[0], h("/privacy")], [c.legal.links[1], h("/licenses")]] },+];+const ext = (u: string) => /^https?:/.test(u);+const other = altLang(lang);+// 眼睛田"换脑"时轮流显示的模型:价格快照里每家厂商取一个+const models = pickModels(pricing.rows);+---+<footer class="footer">+ <div class="container footer__inner">+ <div class="footer__brand">+ <a class="logo" href={home} aria-label={t.nav.home}><EyesMark size={40} lookAt="#cta-final" /><span aria-hidden="true">AnyModelBot</span></a>+ <p class="footer__tag">{t.footer.tagline}</p>+ </div>+ <div class="footer__cols">+ {cols.map((col) => (+ <div>+ <h2 class="footer__title">{col.title}</h2>+ <ul role="list">+ {col.links.map(([label, url]) => (+ <li><a href={url} target={ext(url) ? "_blank" : undefined} rel={ext(url) ? "noopener" : undefined}>{label}</a></li>+ ))}+ </ul>+ </div>+ ))}+ </div>+ </div>+ <div class="container footer__bottom">+ <span>{t.footer.copyright}</span>+ <span>{t.footer.art}</span>+ <span class="footer__switch">+ <a href={switchHref(lang, path)} hreflang={other === "en" ? "en" : "zh-CN"} data-lang-switch>{t.nav.lang}</a>+ <button type="button" data-theme-cycle aria-label={t.nav.theme}>{t.nav.theme}</button>+ </span>+ </div>+ <div class="container footer__field" aria-hidden="true" data-eyefield data-models={JSON.stringify(models)}>+ <p class="footer__field-cap">+ <span class="footer__field-hint">{t.footer.fieldHint}</span>+ <span class="footer__field-model"><i></i>{t.footer.fieldModel} → <b class="mono" data-field-model>{models[0]}</b></span>+ </p>+ <div class="footer__stage"><canvas class="footer__canvas"></canvas></div>+ </div>+</footer>+<script>+ import "../scripts/eyefield";+</script>diff --git a/site/src/components/HeroLogos.astro b/site/src/components/HeroLogos.astronew file mode 100644index 0000000..5f1dc01--- /dev/null+++ b/site/src/components/HeroLogos.astro@@ -0,0 +1,31 @@+---+// Hero 背景里的模型厂商标志(用户要求加的,README"动效的硬规矩"里记着这个例外):+// 标题两侧的空白里各五枚,单色、很淡(最清楚的一枚是正文色的 12%,浅色 11%;7% 时用户说看不到),远的更小、更淡、稍微虚一点;+// 各自轻轻漂(上下 8px、左右 3px,5–8.5 秒一个来回,起点错开,不会一起动),入场时随 Hero 一起淡入。+// 只放在文字两侧,不压标题、按钮和下面的舞台;宽屏才放满,中等宽度只留外侧的,窄屏不放;减少动态效果时静止。+// 标志来自 LobeHub Icons 的单色版(src/data/vendor-logos.ts),直接内联,不依赖页面上别处的图标表。+import "../styles/hero-logos.css";+import { VENDOR_LOGOS } from "../lib/vendors";+// side:靠左 / 右;x:离那一侧的距离(Hero 宽度的 %);y:离 Hero 顶边(px);s:大小;o:浓度(1 最清楚);d:浮动一个来回的秒数;+// far:远处的那几枚(更淡、虚一点,中等宽度时不放)+const L = [+ { k: "openai", side: "l", x: 8, y: 132, s: 40, o: 1, d: 9 },+ { k: "anthropic", side: "r", x: 9, y: 150, s: 38, o: 1, d: 11 },+ { k: "google", side: "l", x: 15, y: 304, s: 30, o: .75, d: 10 },+ { k: "deepseek", side: "r", x: 16, y: 322, s: 32, o: .8, d: 8.5 },+ { k: "xai", side: "l", x: 4, y: 436, s: 26, o: .55, d: 12, far: true },+ { k: "moonshotai", side: "r", x: 4, y: 452, s: 28, o: .6, d: 9.5, far: true },+ { k: "zhipuai", side: "l", x: 12, y: 548, s: 32, o: .8, d: 10.5 },+ { k: "minimax", side: "r", x: 11, y: 562, s: 30, o: .75, d: 12.5 },+ { k: "alibabacloud", side: "l", x: 21, y: 158, s: 22, o: .45, d: 13, far: true },+ { k: "bytedance", side: "r", x: 22, y: 196, s: 22, o: .45, d: 11.5, far: true },+].filter((x) => VENDOR_LOGOS[x.k]);+---+<div class="hero__logos" aria-hidden="true">+ {L.map((x, i) => (+ <span class:list={["hero__logo", { "hero__logo--far": x.far }]}+ style={`${x.side === "l" ? "left" : "right"}:${x.x}%;top:${x.y}px;--o:${x.o};--d:${x.d}s;--t:-${(i * 1.9).toFixed(1)}s`}>+ <svg viewBox="0 0 24 24" width={x.s} height={x.s} fill="currentColor" fill-rule="evenodd" focusable="false" set:html={VENDOR_LOGOS[x.k]} />+ </span>+ ))}+</div>diff --git a/site/src/components/Icon.astro b/site/src/components/Icon.astronew file mode 100644index 0000000..4571661--- /dev/null+++ b/site/src/components/Icon.astro@@ -0,0 +1,56 @@+---+// 线稿图标:24×24,2px 描边,currentColor(§11)。全部自绘。+interface Props { name: keyof typeof P | keyof typeof F; size?: number; class?: string; label?: string }+const P = {+ lock: '<rect x="5" y="11" width="14" height="9" rx="2.5"/><path d="M8 11V8a4 4 0 0 1 8 0v3"/>',+ devices: '<rect x="3" y="5" width="13" height="10" rx="1.5"/><path d="M7 19h5M9.5 15v4"/><rect x="17" y="9" width="4.5" height="10" rx="1.2"/>',+ server: '<rect x="4" y="4" width="16" height="7" rx="1.5"/><rect x="4" y="13" width="16" height="7" rx="1.5"/><path d="M8 7.5h.01M8 16.5h.01"/>',+ browser: '<rect x="3" y="4.5" width="18" height="15" rx="2"/><path d="M3 9h18M6.5 6.8h.01M9 6.8h.01"/>',+ chat: '<path d="M5 18.5V6.5A2.5 2.5 0 0 1 7.5 4h9A2.5 2.5 0 0 1 19 6.5v6a2.5 2.5 0 0 1-2.5 2.5H9l-4 3.5Z"/>',+ card: '<rect x="4" y="5" width="16" height="14" rx="2.5"/><path d="M8 10h8M8 14h5"/>',+ models: '<rect x="3" y="4" width="11" height="6" rx="3"/><rect x="10" y="14" width="11" height="6" rx="3"/><path d="M17 7h2.5a1.5 1.5 0 0 1 1.5 1.5V11M7 17H4.5A1.5 1.5 0 0 1 3 15.5V13"/>',+ layers: '<path d="m12 4 8 4-8 4-8-4 8-4Z"/><path d="m4 12 8 4 8-4M4 16l8 4 8-4"/>',+ shield: '<path d="M12 3.5 19 6v5.5c0 4.2-3 7.6-7 9-4-1.4-7-4.8-7-9V6l7-2.5Z"/><path d="m9 12 2 2 4-4"/>',+ copy: '<rect x="8" y="8" width="11" height="11" rx="2"/><path d="M16 8V6.5A1.5 1.5 0 0 0 14.5 5h-8A1.5 1.5 0 0 0 5 6.5v8A1.5 1.5 0 0 0 6.5 16H8"/>',+ check: '<path d="m5 12.5 4.5 4.5L19 7.5"/>',+ download: '<path d="M12 4v11m0 0-4.5-4.5M12 15l4.5-4.5M5 19.5h14"/>',+ external: '<path d="M14 5h5v5M19 5l-8 8M17 14v4a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 5 18V8.5A1.5 1.5 0 0 1 6.5 7H10"/>',+ arrow: '<path d="M5 12h14m0 0-5-5m5 5-5 5"/>',+ chevron: '<path d="m7 10 5 5 5-5"/>',+ plus: '<path d="M12 5v14M5 12h14"/>',+ search: '<circle cx="11" cy="11" r="6"/><path d="m20 20-4.5-4.5"/>',+ menu: '<path d="M4 7h16M4 12h16M4 17h16"/>',+ close: '<path d="M6 6l12 12M18 6 6 18"/>',+ play: '<path d="M8 5.5v13l10.5-6.5L8 5.5Z"/>',+ sun: '<circle cx="12" cy="12" r="4"/><path d="M12 2.5v2M12 19.5v2M2.5 12h2M19.5 12h2M5.3 5.3l1.4 1.4M17.3 17.3l1.4 1.4M5.3 18.7l1.4-1.4M17.3 6.7l1.4-1.4"/>',+ moon: '<path d="M19.5 14.5A8 8 0 0 1 9.5 4.5a7.5 7.5 0 1 0 10 10Z"/>',+ globe: '<circle cx="12" cy="12" r="8.5"/><path d="M3.5 12h17M12 3.5c2.5 2.6 3.5 5.5 3.5 8.5s-1 5.9-3.5 8.5c-2.5-2.6-3.5-5.5-3.5-8.5s1-5.9 3.5-8.5Z"/>',+ branch: '<circle cx="7" cy="5.5" r="2"/><circle cx="7" cy="18.5" r="2"/><circle cx="17" cy="8" r="2"/><path d="M7 7.5v9M17 10c0 4-10 2.5-10 6.5"/>',+ terminal: '<rect x="3" y="4.5" width="18" height="15" rx="2"/><path d="m7 10 3 2.5L7 15M12.5 15H17"/>',+ doc: '<path d="M7 3.5h6.5L18 8v11a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 6 19V5a1.5 1.5 0 0 1 1-1.5Z"/><path d="M13 3.5V8h5M9 12.5h6M9 16h4"/>',+ bolt: '<path d="M13 3 5.5 13.5H12L11 21l7.5-10.5H12L13 3Z"/>',+ gear: '<circle cx="12" cy="12" r="3"/><path d="M12 3.5v2.2M12 18.3v2.2M20.5 12h-2.2M5.7 12H3.5M18 6l-1.6 1.6M7.6 16.4 6 18M18 18l-1.6-1.6M7.6 7.6 6 6"/>',+ star: '<path d="m12 4 2.4 5 5.4.6-4 3.7 1.1 5.4L12 16l-4.9 2.7 1.1-5.4-4-3.7 5.4-.6L12 4Z"/>',+ pointer: '<path d="M6 4.5 18 11l-5.5 1.5L10 18 6 4.5Z"/>',+ // 聊天渠道(data/channels.ts)用的通用线稿:井号(频道)、纸飞机、耳机、听筒——不是品牌 Logo+ hash: '<path d="M9.5 4 7.5 20M16.5 4l-2 16M5 9h15M4 15h15"/>',+ send: '<path d="M20.5 3.5 3.5 10.5l6.5 3 3 6.5 7.5-16.5Z"/><path d="m10 13.5 4-4"/>',+ headset: '<path d="M4.5 14v-2a7.5 7.5 0 0 1 15 0v2"/><rect x="3.5" y="13.5" width="4" height="6" rx="1.5"/><rect x="16.5" y="13.5" width="4" height="6" rx="1.5"/>',+ phone: '<path d="M6.5 3.5h3l1.5 4-2 1.5a11 11 0 0 0 6 6l1.5-2 4 1.5v3a2 2 0 0 1-2 2A16 16 0 0 1 4.5 5.5a2 2 0 0 1 2-2Z"/>',+ // 外观菜单的"跟随系统"+ monitor: '<rect x="3" y="4.5" width="18" height="12" rx="2"/><path d="M8.5 20h7M12 16.5V20"/>',+};+// 实心字形(16×16 画布,fill):只放品牌标志,别的图标一律用上面的线稿。+// GitHub 标志取自 Octicons 的 mark-github(MIT);按 GitHub 的标志规范,只用来链到 GitHub+const F = {+ github: "M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z",+};+const { name, size = 24, class: cls, label } = Astro.props;+const filled = name in F;+---+{filled+ ? <svg class:list={["icon", "icon--fill", cls]} width={size} height={size} viewBox="0 0 16 16" fill="currentColor"+ aria-hidden={label ? undefined : "true"} role={label ? "img" : undefined} aria-label={label}><path d={F[name as keyof typeof F]} /></svg>+ : <svg class:list={["icon", cls]} width={size} height={size} viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"+ stroke-linecap="round" stroke-linejoin="round" aria-hidden={label ? undefined : "true"} role={label ? "img" : undefined} aria-label={label}+ set:html={P[name as keyof typeof P]} />}diff --git a/site/src/components/ModelsHeadArt.astro b/site/src/components/ModelsHeadArt.astronew file mode 100644index 0000000..d8d661a--- /dev/null+++ b/site/src/components/ModelsHeadArt.astro@@ -0,0 +1,51 @@+---+// 第 4 节章节头的"填充"(放进 SectionHead 的插槽;样式在 styles/models-key.css):把两句标题各落成一样实物——+// One key. → 标题下面一颗公式胶囊:「🔑 1 个 Key → 70 个模型 · 13 家厂商」(数字来自价格快照)+// Every model. → 标题两侧散落一片毛玻璃厂商图标砖:有标志的厂商(不放快手,用户 2026-10-31 要求),标志用官方彩色版+// (本来就是单色的几家跟着文字颜色走;彩色图标表由 Models.astro 的 VendorSprite color 放进页面);+// 砖越大、越靠近标题,这家在 Modelflare 上的模型越多;悬停一块砖它会浮起并显示厂商名。窄屏少放几块,手机上不放(只留胶囊)。+// 第一次滚到时随章节头依次浮现(内容出现),之后每块砖各自很轻地上下浮动(±3px,用户明确要的例外,见 README 动效规矩)。+// 砖底只用中性白 / 灰的毛玻璃,不铺角色色和黄绿——颜色只来自标志本身。+import "../styles/models-key.css";+import Icon from "./Icon.astro";+import VendorLogo from "./VendorLogo.astro";+import { dict, fmt, buildVars, type Lang } from "../i18n";+import { pricing } from "../lib/site";+import { vendorLogo } from "../lib/vendors";+interface Props { lang: Lang }+const { lang } = Astro.props;+const t = dict(lang);+const v = buildVars(lang);++// 有标志的厂商按价格快照里的模型数从多到少排(同样多的保持快照顺序)+const count = (vd: string) => pricing.rows.filter((r) => r.vendor === vd).length;+const vendors = pricing.vendors.filter((vd) => vendorLogo(vd)).map((vd, i) => ({ vd, n: count(vd), i })).sort((a, b) => b.n - a.n || a.i - b.i).map((x) => x.vd);++// 砖的位置(章节头盒子的百分比)和边长:大的排在前面、离标题近;左右交替,左边多一块。+// 标题占中间约 36–64%、说明占 26–74% 的下半部分,所有砖都避开这两块。+// far:窄屏(< 1024px)收起的那几块(太靠近标题、在角上,或会碰到变宽了的说明)+const SLOTS: { x: number; y: number; s: number; far?: boolean }[] = [+ { x: 14, y: 50, s: 76 }, { x: 86, y: 48, s: 72 },+ { x: 29, y: 30, s: 56, far: true }, { x: 71, y: 32, s: 56, far: true },+ { x: 5, y: 22, s: 52 }, { x: 95, y: 24, s: 52 },+ { x: 20, y: 84, s: 52, far: true }, { x: 80, y: 84, s: 48, far: true },+ { x: 3, y: 76, s: 44 }, { x: 97, y: 74, s: 44 },+ { x: 21, y: 12, s: 40, far: true }, { x: 79, y: 12, s: 40, far: true },+ { x: 4, y: 50, s: 36, far: true },+];+const tiles = vendors.slice(0, SLOTS.length).map((vd, i) => ({ vd, ...SLOTS[i] }));+const key = `<path d="M14.5 9.5a4.5 4.5 0 1 1-1.3-3.2"/><circle cx="10" cy="9.5" r="1.4"/><path d="M13.2 12.6 20 19.5M17.2 16.6l1.8-1.8M15.5 15l1.4-1.4"/>`;+---+<div class="mkey__tiles" aria-hidden="true">+ {tiles.map((tl, i) => (+ <span class:list={["mkey__tile", { "mkey__tile--far": tl.far }]} data-name={tl.vd}+ style={`--x:${tl.x}%;--y:${tl.y}%;--s:${tl.s}px;--i:${i};--o:${(1 - i * 0.035).toFixed(2)}`}>+ <VendorLogo vendor={tl.vd} size={Math.round(tl.s * 0.42)} />+ </span>+ ))}+</div>+<p class="mkey__eq">+ <span class="mkey__key"><svg class="icon" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false" set:html={key} />{t.models.keyOne}</span>+ <Icon name="arrow" size={16} class="mkey__arrow" />+ <span class="mkey__all">{fmt(t.models.keyAll, v)}</span>+</p>diff --git a/site/src/components/Nav.astro b/site/src/components/Nav.astronew file mode 100644index 0000000..cb755e8--- /dev/null+++ b/site/src/components/Nav.astro@@ -0,0 +1,112 @@+---+import EyesMark from "./EyesMark.astro";+import Icon from "./Icon.astro";+import DownloadButton from "./DownloadButton.astro";+import { dict, href, altLang, switchHref, type Lang } from "../i18n";+import { GITHUB_URL } from "../lib/site";+import { docsUrl } from "../lib/docs";+interface Props { lang: Lang; path: string }+const { lang, path } = Astro.props;+const t = dict(lang);+const home = href(lang, "/");+// 通栏导航(样式见 components.css):左 logo、中间链接、右侧工具,左右边缘和正文容器对齐。+// 链接前四项是首页的章节(顺序同首页),价格是独立页;下载由右侧按钮负责。+// 右侧是三个同尺寸的图标按钮(GitHub、语言、外观;悬停出提示)和一颗下载按钮,平台菜单留给首页和下载页。+// 语言和外观都是下拉菜单,当前项打勾:语言用各自的本名,不随页面语言翻译+const anchor = (id: string) => (path === "/" ? `#${id}` : `${home}#${id}`);+const links = [+ { href: anchor("bots"), label: t.nav.bots },+ { href: anchor("features"), label: t.nav.features },+ { href: anchor("models"), label: t.nav.models },+ { href: anchor("data"), label: t.nav.data },+ { href: href(lang, "/pricing"), label: t.nav.pricing, current: path === "/pricing" },+];+const other = altLang(lang);+const langHref = switchHref(lang, path);+const langHreflang = other === "en" ? "en" : "zh-CN";+const LANGS = [+ { code: "zh", name: "简体中文", tag: "zh-CN" },+ { code: "en", name: "English", tag: "en" },+] as const;+const themes = [+ { pref: "light", icon: "sun", label: t.nav.themeLight },+ { pref: "dark", icon: "moon", label: t.nav.themeDark },+ { pref: "system", icon: "monitor", label: t.nav.themeSystem },+] as const;+---+<header class="nav" data-nav>+ <div class="container nav__bar">+ <a class="logo" href={home} aria-label={t.nav.home}>+ <EyesMark size={24} />+ <span class="logo__word" aria-hidden="true">AnyModelBot</span>+ </a>+ <nav class="nav__links" aria-label={t.nav.main} data-nav-links>+ <span class="nav__pill" aria-hidden="true"></span>+ {links.map((l) => <a class="nav__link" href={l.href} aria-current={l.current ? "page" : undefined}>{l.label}</a>)}+ <a class="nav__link" href={docsUrl(lang)} target="_blank" rel="noopener">{t.nav.docs}<Icon name="external" size={13} class="nav__ext" /></a>+ </nav>+ <div class="nav__tools">+ <div class="nav__utils hide-md">+ <a class="nav__util nav__util--icon" href={GITHUB_URL} target="_blank" rel="noopener" aria-label={t.nav.github} data-tip={t.nav.github} data-track="github_click" data-track-location="nav"><Icon name="github" size={16} /></a>+ <div class="nav__menu">+ <button class="nav__util nav__util--icon" type="button" aria-haspopup="menu" aria-expanded="false" aria-label={t.nav.langLabel} data-tip={t.nav.langLabel} data-menu-toggle><Icon name="globe" size={16} /></button>+ <div class="menu" role="menu" aria-label={t.nav.langLabel} hidden>+ {LANGS.map((l) => l.code === lang+ ? <button type="button" role="menuitemradio" aria-checked="true" lang={l.tag}><span class="menu__label">{l.name}</span><Icon name="check" size={16} class="menu__check" /></button>+ : <a role="menuitemradio" aria-checked="false" href={langHref} hreflang={l.tag} lang={l.tag} data-lang-switch><span class="menu__label">{l.name}</span><Icon name="check" size={16} class="menu__check" /></a>)}+ </div>+ </div>+ <div class="nav__menu">+ <button class="nav__util nav__util--icon theme-toggle" type="button" aria-haspopup="menu" aria-expanded="false" aria-label={t.nav.theme} data-tip={t.nav.theme} data-menu-toggle>+ <Icon name="sun" size={16} class="theme-ico theme-ico-light" /><Icon name="moon" size={16} class="theme-ico theme-ico-dark" />+ </button>+ <div class="menu" role="menu" aria-label={t.nav.theme} hidden>+ {themes.map((m) => (+ <button type="button" role="menuitemradio" aria-checked="false" data-theme-set={m.pref}>+ <Icon name={m.icon} size={16} class="menu__ico" /><span class="menu__label">{m.label}</span><Icon name="check" size={16} class="menu__check" />+ </button>+ ))}+ </div>+ </div>+ </div>+ <DownloadButton lang={lang} placement="nav" size="sm" short plain />+ <button class="nav__util nav__util--icon nav__burger" type="button" aria-label={t.nav.menu} data-open-dialog="nav-drawer"><Icon name="menu" size={18} /></button>+ </div>+ </div>+</header>+<dialog class="drawer" id="nav-drawer" aria-label={t.nav.menu}>+ <div class="container drawer__head">+ <a class="logo" href={home} aria-label={t.nav.home}><EyesMark size={24} /><span class="logo__word" aria-hidden="true">AnyModelBot</span></a>+ <button class="nav__util nav__util--icon" type="button" aria-label={t.nav.close} data-close-dialog><Icon name="close" size={18} /></button>+ </div>+ <nav class="container drawer__links" aria-label={t.nav.menu}>+ {links.map((l, i) => (+ <a href={l.href} aria-current={l.current ? "page" : undefined} style={`--i:${i}`} data-close-dialog>+ <span class="drawer__num">{String(i + 1).padStart(2, "0")}</span>+ <span class="drawer__label">{l.label}</span>+ <Icon name="arrow" size={18} class="drawer__go" />+ </a>+ ))}+ <a href={docsUrl(lang)} target="_blank" rel="noopener" style={`--i:${links.length}`}>+ <span class="drawer__num">{String(links.length + 1).padStart(2, "0")}</span>+ <span class="drawer__label">{t.nav.docs}</span>+ <Icon name="external" size={18} class="drawer__go" />+ </a>+ </nav>+ <div class="container drawer__foot">+ <div class="drawer__prefs">+ <a class="lang-seg" href={langHref} hreflang={langHreflang} aria-label={t.nav.langLabel} data-lang-switch>+ <span data-cur={lang === "zh" ? "" : undefined}>中</span><span data-cur={lang === "en" ? "" : undefined}>EN</span>+ </a>+ <div class="drawer__theme" role="group" aria-label={t.nav.theme}>+ <button type="button" class="chip" data-theme-set="light">{t.nav.themeLight}</button>+ <button type="button" class="chip" data-theme-set="dark">{t.nav.themeDark}</button>+ <button type="button" class="chip" data-theme-set="system">{t.nav.themeSystem}</button>+ </div>+ </div>+ <div class="drawer__actions">+ <a class="btn btn--secondary" href={GITHUB_URL} target="_blank" rel="noopener" data-track="github_click" data-track-location="drawer"><Icon name="github" />{t.nav.github}</a>+ <a class="btn btn--primary" href={href(lang, "/download")} data-dl-generic>{t.download.generic}</a>+ </div>+ </div>+</dialog>diff --git a/site/src/components/PriceCards.astro b/site/src/components/PriceCards.astronew file mode 100644index 0000000..acecfe4--- /dev/null+++ b/site/src/components/PriceCards.astro@@ -0,0 +1,44 @@+---+// 三张价格卡(§6.5 A)。首页用 compact:只留价格和一句说明,链接带到 /pricing;首页上是三张独立的卡片(sections.css 的"4 模型与价格")。+// /pricing 页再给下载按钮和要点。+// 价格只来自 pricing.snapshot.json。+import EyesMark from "./EyesMark.astro";+import DownloadButton from "./DownloadButton.astro";+import { dict, fmt, buildVars, href, type Lang } from "../i18n";+import { pricing, MF } from "../lib/site";+interface Props { lang: Lang; compact?: boolean }+const { lang, compact = false } = Astro.props;+const t = dict(lang);+const c = t.pricing.cards;+const v = buildVars(lang);+const s = pricing.sample;+const page = href(lang, "/pricing");+---+<ol class:list={["pcards", { "pcards--compact": compact }]} role="list">+ <li class="card pcard reveal">+ <EyesMark size={56} class="pcard__mark" lookAt="#price-app" />+ <span class="eyebrow">{c.app.tag}</span>+ <p class="pcard__price"><span class="mono" id="price-app">{c.app.price}</span><span class="pcard__unit">{c.app.unit}</span></p>+ <p class="pcard__note">{c.app.note}</p>+ {!compact && <DownloadButton lang={lang} placement="pricing-card" />}+ {!compact && <ul class="ticks small" role="list">{c.app.points.map((x) => <li>{x}</li>)}</ul>}+ </li>+ <li class="card pcard reveal" style="--reveal-delay:60ms">+ <span class="eyebrow">{c.usage.tag}</span>+ <p class="pcard__price"><span class="mono">{s.input}</span><span class="pcard__unit">{c.usage.unit}</span></p>+ <p class="pcard__note">{fmt(c.usage.note, { model: s.model, output: s.output, officialIn: s.officialIn, officialOut: s.officialOut })}</p>+ {compact+ ? <a class="pcard__link" href={page} data-track="pricing_cta_click" data-track-location="home-cards">{fmt(t.pricing.table.more, v)}</a>+ : <a class="btn btn--secondary" href={MF.pricing} target="_blank" rel="noopener" data-track="pricing_cta_click" data-track-location="cards">{c.usage.cta}</a>}+ {!compact && <ul class="ticks small" role="list">{c.usage.points.map((x) => <li>{x}</li>)}</ul>}+ </li>+ <li class="card pcard reveal" style="--reveal-delay:120ms">+ <span class="eyebrow">{c.month.tag}</span>+ <p class="pcard__price"><span class="mono">≈ {s.monthly}</span><span class="pcard__unit">{c.month.unit}</span></p>+ <p class="pcard__note">{fmt(c.month.note, { model: s.model })}</p>+ {compact+ ? <a class="pcard__link" href={`${page}#calc`}>{c.month.cta} →</a>+ : <a class="btn btn--secondary" href="#calc">{c.month.cta}</a>}+ {!compact && <ul class="ticks small" role="list">{c.month.points.map((x) => <li>{x}</li>)}</ul>}+ </li>+</ol>diff --git a/site/src/components/SectionHead.astro b/site/src/components/SectionHead.astronew file mode 100644index 0000000..8d6c08f--- /dev/null+++ b/site/src/components/SectionHead.astro@@ -0,0 +1,18 @@+---+// 首页章节头(样式在 components.css 的 .shead):一列左对齐——细线 → "编号 / 名称"(.eyebrow)→ 两段式标题 → 说明。+// 可选一个"主持"机器人,蹲在细线右端:跟着指针看、能戳,第一次滚到这一节时打个招呼(scripts/sections.ts)。+// 本节内容里已经有大机器人的(认识机器人、常见问题)不放主持人。+// 第一次滚进视口时(data-inview → .is-in):细线从左往右画出来,编号、两句标题、说明依次升起(home.css)。+import BotFace from "./BotFace.astro";+import type { CharKey } from "../lib/bots";+// center:居中版(只给版式"开放"的那一节用,见 sections.css 的"4 模型与价格")——编号、标题、说明居中,主持机器人站在细线正中。+interface Props { n: number; label: string; title: string; dim?: string; lead?: string; id: string; host?: CharKey; center?: boolean }+const { n, label, title, dim, lead, id, host, center = false } = Astro.props;+---+<header class:list={["shead", { "shead--center": center }]} data-inview>+ <p class="shead__kicker eyebrow"><span class="shead__n">{String(n).padStart(2, "0")}</span>{label}</p>+ {host && <BotFace char={host} size={52} lively pokeable class="shead__host" />}+ <h2 class="h2 shead__title" id={id}><span>{title}</span>{dim && <span class="h2__dim">{dim}</span>}</h2>+ {lead && <p class="lead shead__lead">{lead}</p>}+ <slot />+</header>diff --git a/site/src/components/SiteBanner.astro b/site/src/components/SiteBanner.astronew file mode 100644index 0000000..bf0b406--- /dev/null+++ b/site/src/components/SiteBanner.astro@@ -0,0 +1,91 @@+---+// 顶部公告条:发版下载 / 宣传 / 公告轮播,外加语言提示。内容在 src/data/announcements.ts,条目整理在 lib/banner.ts。+// 显示哪些条目由紧跟着的内联脚本在首帧前决定(关闭记录、时间窗、浏览器语言),页面不会在加载后被往下顶;+// 轮播、翻页、关闭、按系统换下载链接、倒计时和埋点在 scripts/banner.ts。+// 语言提示:有其他条目时缩成右侧的小胶囊,没有时单独占一条。+import "../styles/banner.css";+import Icon from "./Icon.astro";+import { dict, switchHref, type Lang } from "../i18n";+import { bannerItems } from "../lib/banner";+import { ROTATE_MS } from "../data/announcements";+interface Props { lang: Lang; path: string }+const { lang, path } = Astro.props;+const t = dict(lang).banner;+const items = bannerItems(lang);+const langHref = switchHref(lang, path);+const target = lang === "zh" ? { hreflang: "en", lang: "en" } : { hreflang: "zh-CN", lang: "zh-CN" };+const ext = (a: { external: boolean }) => (a.external ? { target: "_blank", rel: "noopener" } : {});+const tr = (id: string, kind: string, where: string) => ({ "data-track": "banner_click", "data-track-id": id, "data-track-kind": kind, "data-track-target": where });+---+<aside class="sbar" aria-label={t.label} data-sbar data-lang={lang} data-rotate={ROTATE_MS} data-placement="banner" hidden>+ <div class="container sbar__in">+ <div class="sbar__pager" data-sbar-pager hidden>+ <button type="button" class="sbar__btn sbar__prev" aria-label={t.prev} data-sbar-prev><Icon name="chevron" size={14} /></button>+ <span class="sbar__count" aria-hidden="true" data-sbar-count>1/1</span>+ <button type="button" class="sbar__btn sbar__next" aria-label={t.next} data-sbar-next><Icon name="chevron" size={14} /></button>+ </div>+ <div class="sbar__stack" data-sbar-stack>+ {items.map((it) => (+ <div class="sbar__item" data-sbar-item data-id={it.id} data-kind={it.kind} data-tone={it.tone} data-start={it.start} data-end={it.end} hidden>+ <p class="sbar__msg">+ <span class="sbar__tag">{it.tag}</span>+ <span class="sbar__text">{it.text}</span>+ {it.note && <span class="sbar__note" data-sbar-note>{it.note}</span>}+ {it.cta && (+ <a class="sbar__cta" href={it.cta.href} {...ext(it.cta)} data-dl-auto={it.cta.dl ? "" : undefined} {...tr(it.id, it.kind, "cta")}>+ <span data-sbar-cta-label>{it.cta.label}</span><Icon name={it.cta.external ? "external" : "arrow"} size={14} />+ </a>+ )}+ {it.link && <a class="sbar__link" href={it.link.href} {...ext(it.link)} {...tr(it.id, it.kind, "link")}>{it.link.label}</a>}+ </p>+ </div>+ ))}+ <div class="sbar__item" data-sbar-item data-id="lang" data-kind="lang" data-tone="neutral" hidden>+ <p class="sbar__msg" lang={target.lang}>+ <Icon name="globe" size={14} class="sbar__globe" />+ <span class="sbar__text">{t.lang.text}</span>+ <a class="sbar__cta" href={langHref} hreflang={target.hreflang} data-lang-switch {...tr("lang", "lang", "cta")}>+ <span>{t.lang.action}</span><Icon name="arrow" size={14} />+ </a>+ </p>+ </div>+ </div>+ <div class="sbar__side">+ <a class="sbar__chip" href={langHref} hreflang={target.hreflang} lang={target.lang} title={t.lang.text} data-lang-switch data-sbar-chip hidden {...tr("lang", "lang", "chip")}>+ <Icon name="globe" size={14} /><span>{t.lang.chip}</span>+ </a>+ <button type="button" class="sbar__btn sbar__close" aria-label={t.close} data-sbar-close><Icon name="close" size={14} /></button>+ </div>+ </div>+</aside>+<script is:inline>+ // 首帧前选条目:没关过、在时间窗内的公告;浏览器语言和页面语言不一致、也没选过语言时加语言提示。?banner=preview 全部显示。+ (function () {+ var s = document.currentScript, bar = s && s.previousElementSibling;+ if (!bar || !bar.hasAttribute("data-sbar")) return;+ var preview = /[?&]banner=preview(&|$)/.test(location.search), gone = [], picked = null;+ try { gone = JSON.parse(localStorage.getItem("amb-banner") || "[]"); picked = localStorage.getItem("amb-lang"); } catch (e) {}+ if (!Array.isArray(gone)) gone = [];+ var now = Date.now(), all = bar.querySelectorAll("[data-sbar-item]"), shown = [], langItem = null;+ for (var i = 0; i < all.length; i++) {+ var it = all[i];+ if (it.getAttribute("data-kind") === "lang") { langItem = it; continue; }+ var a = Date.parse(it.getAttribute("data-start") || ""), b = Date.parse(it.getAttribute("data-end") || "");+ if (preview || (gone.indexOf(it.getAttribute("data-id")) < 0 && !(a > now) && !(b <= now))) { it.hidden = false; shown.push(it); }+ }+ var langs = navigator.languages && navigator.languages.length ? navigator.languages : [navigator.language || ""], zh = false;+ for (var j = 0; j < langs.length; j++) if (/^zh/i.test(langs[j])) zh = true;+ if (langItem && (preview || (!picked && (bar.getAttribute("data-lang") === "zh") !== zh))) {+ if (shown.length) bar.querySelector("[data-sbar-chip]").hidden = false;+ else { langItem.hidden = false; shown.push(langItem); }+ }+ if (!shown.length) return;+ shown[0].setAttribute("data-on", "");+ bar.setAttribute("data-tone", shown[0].getAttribute("data-tone"));+ if (shown.length > 1) {+ bar.querySelector("[data-sbar-pager]").hidden = false;+ bar.querySelector("[data-sbar-count]").textContent = "1/" + shown.length;+ }+ bar.hidden = false;+ })();+</script>diff --git a/site/src/components/VendorLogo.astro b/site/src/components/VendorLogo.astronew file mode 100644index 0000000..932f57a--- /dev/null+++ b/site/src/components/VendorLogo.astro@@ -0,0 +1,11 @@+---+// 厂商标志:单色、跟着文字颜色走(currentColor),引用同页 VendorSprite 里的 <symbol>。+// 没有标志的厂商(比如"快手")用首字母小圆片顶上。纯装饰,对读屏隐藏——旁边总有厂商名或模型名。+import { vendorLogo } from "../lib/vendors";+interface Props { vendor?: string; size?: number; class?: string }+const { vendor, size = 14, class: cls } = Astro.props;+const key = vendorLogo(vendor);+---+{key+ ? <svg class:list={["vlogo", cls]} width={size} height={size} viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" focusable="false"><use href={`#vl-${key}`} /></svg>+ : vendor && <span class:list={["vlogo", "vlogo--mono", cls]} style={`--vl-size:${size}px`} aria-hidden="true">{Array.from(vendor)[0]}</span>}diff --git a/site/src/components/VendorSprite.astro b/site/src/components/VendorSprite.astronew file mode 100644index 0000000..aa0fe3c--- /dev/null+++ b/site/src/components/VendorSprite.astro@@ -0,0 +1,14 @@+---+// 厂商标志的图标表:每家一个 <symbol id="vl-键">,整页只放一次,VendorLogo 用 <use> 引用(跑马灯有几十个标签,不重复内联路径)。+// 不用 display:none——有的浏览器会因此不画 <use> 出来的内容,改成 0×0 绝对定位。+// color:有官方彩色版的厂商用彩色版(id 不变,还是 vl-键,VendorLogo 和选择器的脚本不用改);没有彩色版的照用单色、跟着文字颜色走。+import { vendorLogo, VENDOR_LOGOS, VENDOR_LOGOS_COLOR } from "../lib/vendors";+interface Props { vendors?: string[]; color?: boolean }+const { vendors, color = false } = Astro.props;+const keys = vendors ? [...new Set(vendors.map(vendorLogo).filter((k): k is string => !!k))] : Object.keys(VENDOR_LOGOS);+---+<svg class="vlogo-sprite" width="0" height="0" aria-hidden="true" focusable="false" style="position:absolute;width:0;height:0;overflow:hidden">+ <defs>{keys.map((k) => (color && VENDOR_LOGOS_COLOR[k]+ ? <symbol id={`vl-${k}`} viewBox="0 0 24 24" set:html={VENDOR_LOGOS_COLOR[k]} />+ : <symbol id={`vl-${k}`} viewBox="0 0 24 24" fill-rule="evenodd" set:html={VENDOR_LOGOS[k]} />))}</defs>+</svg>diff --git a/site/src/i18n/en.ts b/site/src/i18n/en.tsnew file mode 100644index 0000000..09c94a8--- /dev/null+++ b/site/src/i18n/en.ts@@ -0,0 +1,558 @@+// English is rewritten from the Chinese source, not translated line by line (§14). Keys must match zh.ts.+import type { Dict } from "./zh";++export const en: Dict = {+ meta: {+ lang: "en",+ title: "AnyModelBot — Local AI bots, any model, pay per use",+ description:+ "Run AI bots on your own computer or server. Chats, memory, files and keys stay on your device; one Modelflare key unlocks GPT, Claude, Gemini and more. The app is free and you pay per use, with a public price list. Desktop, Docker, WeChat and Feishu, with Slack coming soon.",+ ogImage: "/og/og-en.png",+ },+ nav: {+ main: "Main",+ bots: "Bots",+ features: "Features",+ data: "Data",+ models: "Models",+ pricing: "Pricing",+ docs: "Docs",+ skip: "Skip to main content",+ home: "AnyModelBot home",+ menu: "Menu",+ close: "Close",+ github: "GitHub",+ lang: "中 / EN",+ langLabel: "Change language",+ theme: "Appearance",+ themeLight: "Light",+ themeDark: "Dark",+ themeSystem: "System",+ },+ banner: {+ label: "Site announcements",+ close: "Dismiss announcements",+ prev: "Previous",+ next: "Next",+ until: "Until {date}",+ left: "{n} days left",+ lastDay: "Ends today",+ lang: { text: "本页面也有中文版。", action: "切换到中文", chip: "中文" },+ release: { tag: "New v{version}", text: "AnyModelBot {version} is out", cta: "Download", link: "Changelog" },+ },+ hero: {+ h1a: "AI teammates",+ h1pre: "that ",+ h1mark: "live on your machine",+ h1b: ".",+ lead: "Sorts files, runs commands and remembers how you work. One key for every major model.",+ demo: "Watch demo",+ trust: ["Free, open-source app", "Pay-per-use models", "Windows / macOS / Linux"],+ appUiNote: "App UI in Simplified Chinese",+ eyebrow: "Six plush teammates, one for every job",+ stage: {+ task: "Sort the invoices in Downloads into Expenses.",+ invoice: "invoice_03.pdf",+ fixed: "Out-of-bounds bug fixed",+ moved: "Moved 12 files",+ saved: "Saved to memory",+ digest: "3 decisions · 2 to-dos",+ search: "Search",+ account: "My account",+ balance: "Balance",+ working: "Working…",+ thinking: "Thinking…",+ took: "Worked for {s}",+ perm: "Workspace: write",+ input: "Message {name}, / for commands",+ allowed: "Allowed",+ fileSub: "Saved to the workspace",+ phoneUser: "What time is tomorrow's meeting?",+ phoneBot: "10 a.m. — the notes template is ready.",+ },+ },+ // 小窗口里的审批卡("它能动手"、演示导览)和演示导览里的输入框+ window: {+ approvalTitle: "Needs your OK",+ allow: "Allow",+ deny: "Deny",+ input: "Message Ping…",+ },+ flow: {+ h2: "Your data.",+ h2dim: "Where does it actually go?",+ lead: "What stays on your machine and what has to leave — both drawn out.",+ local: "Your device",+ localBadge: "Local",+ out: "Leaves your device",+ vendors: "Model providers",+ channels: "Channels you connect",+ onlyRequest: "This request only",+ nodes: {+ chats: { label: "Chat history (SQLite)", body: "Stored in a SQLite database in your data directory; deleting a bot deletes its chats." },+ memory: { label: "Long-term memory (Markdown)", body: "Markdown files in your data directory with a journal.jsonl change log; passwords, keys and ID numbers are refused." },+ workspace: { label: "Workspace files", body: "The bot's own workspace; writes stay here by default and anything beyond needs your approval." },+ key: { label: "Model key (isolated, last 4 shown)", body: "Kept in the gateway process and config; the agent process never sees the real key; the UI shows only the last 4 characters." },+ console: { label: "Console: 127.0.0.1 + token", body: "Listens on 127.0.0.1 and checks the Host header by default; Docker mode requires an access token." },+ gateway: { label: "Modelflare gateway", sub: "Forwards this request · configurable log retention", body: "Forwards the request to the provider you choose; log retention follows Modelflare's “Data retention” doc." },+ vendors: { label: "OpenAI / Anthropic / Google …", body: "Receives what you send to the model, including screen content during computer use." },+ channels: { label: "Chat apps", sub: "WeChat · Feishu", body: "Messages in these apps pass through their servers by nature." },+ },+ retentionLink: "Modelflare’s “Data retention” doc",+ retentionUrl: "https://docs.modelflare.dev/guides/features/data-retention/?utm_source=anymodelbot&utm_campaign=amb_homepage",+ compare: {+ caption: "AnyModelBot compared with typical cloud-hosted assistants",+ head: ["", "AnyModelBot", "Typical cloud-hosted assistants"],+ rows: [+ ["Where it runs", "Your computer / your server", "The vendor's cloud"],+ ["Where chats and memory live", "Your disk", "Vendor servers"],+ ["Models", "Any model on Modelflare, swap any time", "Usually tied to the vendor's own models"],+ ["Billing", "Free app; models billed per use by Modelflare", "Usually a monthly subscription with tiers"],+ ["Computer use", "Operates your own computer (24 bounded actions)", "Operates a cloud computer the vendor provides"],+ ["Do inference requests leave your device?", "Yes, via Modelflare to the model provider", "Yes"],+ ["Auditable code", "MIT", "Mostly no"],+ ],+ note: "“Typical cloud-hosted assistants” describes the common approach of vendor-hosted, monthly-subscription products, not any specific product.",+ },+ security: "Read the full security notes →",+ },+ models: {+ h2: "One key.",+ h2dim: "Every model.",+ lead: "Give each bot the right brain for the job — and swap any time.",+ marqueeLabel: "Vendors and text models on Modelflare",+ scenarios: { copy: "Write copy", code: "Fix code", research: "Research" },+ question: { copy: "Write a one-line tagline for our launch.", code: "Why does this function go out of bounds?", research: "Summarise the conclusions of these three papers." },+ answer: {+ copy: "“AI teammates that live on your machine.” — want two more options?",+ code: "The loop uses <=, so the last pass reads arr[len]. Switch it to <.",+ research: "All three find data quality beats scale; they disagree on evaluation.",+ },+ pickerTitle: "Choose a model",+ pickerSearch: "Search models",+ example: "Example — change it any time in the app",+ // Equation pill under the section head (counts come from the pricing snapshot)+ keyOne: "One key",+ keyAll: "{modelCount} models · {vendorCount} vendors",+ priceLine: "{model} · input {input} · output {output} / 1M tokens",+ cta: "Get a Modelflare key →",+ },+ pricing: {+ eyebrow: "PRICING · PAY PER USE",+ h2mark: "No monthly fee",+ h2rest: ". Pay only for what you use.",+ lead: "AnyModelBot is free and open source — no subscription, no tiers. Model usage is billed by Modelflare per token, and the price list is fully public.",+ source: "Prices come from modelflare.dev/pricing, fetched {fetchedAt} (UTC+8), version {pricingVersion}.",+ stale: "Price snapshot dated {snapshotDate} (couldn't refresh; modelflare.dev/pricing is the source of truth).",+ cards: {+ app: {+ tag: "AnyModelBot",+ price: "$0",+ unit: "/ forever",+ note: "Free and open source (MIT)",+ points: ["Desktop, Docker and CLI are all free", "No subscription, no plan tiers", "Create as many bots as you like"],+ },+ usage: {+ tag: "Model usage · billed by Modelflare",+ unit: "/ 1M input tokens",+ note: "e.g. {model}, default route, output {output} per 1M tokens; official {officialIn} / {officialOut}",+ points: ["Priced per token, input and output separately", "Public price list", "Switch models any time; price follows the model"],+ cta: "See the full price list ↗",+ },+ month: {+ tag: "What a month costs",+ unit: "/ month",+ note: "Example: 50 messages/day, 3,000 input + 600 output tokens each, {model}.",+ points: ["Plug your own usage into the calculator below", "Estimate excludes cache discounts and special request multipliers", "Modelflare's bill is the source of truth"],+ cta: "Open the calculator",+ },+ },+ contrast: {+ caption: "Pay per use compared with subscription tiers",+ head: ["", "Pay per use (AnyModelBot + Modelflare)", "Subscription tiers (common approach)"],+ rows: [+ ["How it's billed", "Pay for what you use, no monthly fee", "Pay a monthly fee; the tier sets how much you can use"],+ ["Unused portion", "No fixed spend", "The month's allowance usually doesn't roll over"],+ ["Switching models", "Any time; price follows the model", "Available models are usually limited by tier"],+ ["How prices read", "Per-1M-token rates, publicly listed", "Often stated as relative multiples of an allowance"],+ ],+ note: "“Subscription tiers” describes the common approach of monthly-tier products, not any specific product or its actual prices.",+ },+ table: {+ more: "See prices for all {textCount} text models →",+ caption: "Modelflare text model prices (default route, USD per 1M tokens)",+ col: { model: "Model", route: "Route", input: "Input / 1M", output: "Output / 1M", official: "Official (in / out)", vs: "vs official" },+ default: "Default",+ context: "{n} context",+ showAll: "Show all {textCount} text models",+ showFeatured: "Featured only",+ search: "Search models",+ allVendors: "All vendors",+ media: "Image and video models ({mediaCount}) are listed at modelflare.dev/pricing ↗",+ expand: "Show all routes for {model}",+ detail: { route: "Route", positioning: "Positioning", vs: "vs official", price: "Input / output" },+ positioning: {+ stable: "High-stability route",+ award: "Price-priority route",+ campaign: "Limited-time route",+ enterprise: "High-stability route (authorised enterprise production only)",+ other: "Other route",+ },+ unlock: "Unlocked by a single top-up of US${amount} (limited-time; Modelflare's rules apply)",+ tiers: "Single requests above {n} tokens use the long-context tier: input {input} · output {output}",+ none: "No matching models.",+ note: "Prices are USD per 1M tokens for the default route; your account may have different access or discounts (as Modelflare's page notes). Data from modelflare.dev/pricing, fetched {fetchedAt} (UTC+8), version {pricingVersion}.",+ },+ calc: {+ title: "Estimate your monthly cost",+ model: "Model",+ search: "Type to search models",+ none: "No matching models.",+ route: "Route",+ routeDefault: "Default route",+ routeAward: "Price-priority route (award)",+ routeAwardNote: "Suited to retryable development and testing",+ msgs: "Messages per day",+ inTok: "Input tokens per message",+ inTokNote: "Includes chat history and tool results",+ outTok: "Output tokens per message",+ days: "Estimated over 30 days",+ presets: { light: "Light", everyday: "Everyday", heavy: "Heavy (agent)" },+ hint: "One message = all model calls behind one bot reply; an agent task can involve several calls.",+ result: "≈ {amount} / month",+ split: "input {input} · output {output}",+ perMsg: "about {amount} per message",+ official: "about {amount} at official prices",+ disclaimer: "Estimate only. Excludes cache discounts and request-level multipliers (e.g. the priority service tier); requests above a model's tier threshold are priced at the higher tier (included); Modelflare's bill is the source of truth.",+ copy: "Copy estimate",+ copyText: "AnyModelBot usage estimate: {model} ({route}), {msgs} messages/day, {inTok} input + {outTok} output tokens each — about {amount}/month (30 days, prices fetched {fetchedAt})",+ full: "See this model's full pricing ↗",+ expandBar: "Details",+ },+ banner: { text: "Already have a Modelflare account? Sign in once in the app and go — usage is billed per the price list.", cta: "Open Modelflare ↗" },+ pageTitle: "AnyModelBot pricing — pay per use, public price list",+ pageDescription: "AnyModelBot is free and open source with no subscription. Model usage is billed per token by Modelflare: the public price list and a monthly cost calculator.",+ },+ devices: {+ h2: "Reachable everywhere.",+ h2dim: "One bot, one memory.",+ lead: "Desktop, Docker and browser — plus WeChat and Feishu in your pocket, with Slack coming soon.",+ items: {+ desktop: { title: "Desktop", sub: "Windows · macOS · Linux", body: "Windows, macOS and Linux — download and go.", more: "All downloads and checksums →" },+ docker: { title: "Docker", sub: "NAS / server", body: "Run it on a NAS or server, always on." },+ browser: { title: "Browser", body: "The desktop app and Docker ship a local web console.", format: "Local / self-hosted" },+ },+ pick: "Choose where to use it",+ groupChat: "Chat apps",+ // The same conversation on all three screens of the composite: one bot, one memory+ thread: { user: "When do I usually send the daily report?", bot: "5 pm every day — you told me last week.", memo: "Daily report at 5 pm", memoLabel: "Memory" },+ chatBody: "Message it from the chat apps you already use — on your phone, too.",+ howTo: "See the steps",+ guideTitle: "Setup guide",+ note: "No standalone iOS/Android app yet; on your phone, chat with it in WeChat or Feishu (Slack is coming soon). The web console is local or self-hosted — not a cloud web app.",+ // Chat-app channels (WeChat, Feishu, Slack coming soon) live in data/channels.ts — each language shows its own set+ browserGuide: {+ title: "Local web console",+ steps: [+ "Desktop: tray menu → Open in browser. The console listens on 127.0.0.1 and generates a random access token on every launch.",+ "Docker: open http://<host>:3600/?token=<token>; read the token with docker exec amb cat /data/ui-token.",+ "Do not expose port 3600 directly to the internet.",+ ],+ },+ },+ kicker: {+ bots: "Meet the crew",+ features: "What it does",+ models: "Models & pricing",+ data: "Your data",+ devices: "Everywhere",+ faq: "Good questions",+ },+ features: {+ h2: "It does the work.",+ h2dim: "And it remembers.",+ lead: "It acts on your computer in plain sight, and keeps its memory as Markdown files on your own disk.",+ // The row of small cells under the two chapters: capabilities from the README the chapters don't cover+ more: {+ h3: "And there's more.",+ items: [+ { title: "Images and video", body: "Before each run it shows you the model and the prompt, and you can switch models on the spot." },+ { title: "Three permission levels", body: "Read-only, workspace or full access, set per bot. Even with full access, recursive deletes ask first." },+ { title: "Slash commands", body: "/model, /reset and more work in the app and in WeChat and Feishu chats." },+ { title: "Spending at a glance", body: "Balance, low-balance alerts and daily usage live in the app, and each bot can get its own spending cap." },+ { title: "Two network routes", body: "Pick the international route or the one optimised for mainland China; the app never switches on its own." },+ { title: "Pictures and files over WeChat", body: "Send it pictures and files; vision models can read them, and it can send files back." },+ ],+ },+ },+ handson: {+ h2: "Not just chat — it gets things done.",+ lead: "It sees the screen, opens apps, reads and writes files, runs commands — and you can watch every step.",+ badge: "Computer use",+ status: "macOS Beta",+ points: [+ { title: "Only 24 actions", body: "Script execution, killing processes and the like are hidden from the model." },+ { title: "Writes stay in its workspace", body: "Going further needs your OK — or switch to read-only." },+ { title: "Auto by default, ask-first optional", body: "UI-changing actions like clicks and typing can wait for you." },+ ],+ caveat: "Screen content seen during computer use is sent to the model you choose.",+ demoSteps: ["Open the Downloads folder", "Select 12 invoices", "Drag into “Expenses”"],+ approvalBody: "Move 12 files to ~/Documents/Expenses",+ file: "expenses.xlsx · 9 KB",+ },+ memory: {+ tag: "Long-term memory",+ h2: "It remembers you — and knows what not to keep.",+ layersLine: "Three layers — bot, group and team — kept separate.",+ points: [+ { title: "Plain Markdown files", body: "On your disk, open in any editor." },+ { title: "Secrets are refused", body: "Passwords, keys and ID numbers are detected and skipped." },+ { title: "Long chats tidied up", body: "A context steward does it with the cheaper model you pick." },+ ],+ sample: "Example",+ lines: ["# About you", "- Prefers short answers", "- Daily digest at 17:00", "## topics/project.md", "- Release date: confirmed"],+ secret: "- Email password: hunter2",+ nope: "Not keeping that one.",+ refused: "✗ Looks like a password — skipped",+ },+ bots: {+ h2: "Give every bot a job.",+ h2dim: "Pick one — or keep the whole crew.",+ lead: "Six plush characters, each with a persona, a model and a workspace. Go on, poke one — it talks back.",+ tabsLabel: "Choose a character",+ cost: "≈ {amount} / mo",+ badge: { org: "AnyModelBot", staff: "Staff", no: "ID", skills: "Good at", model: "Model", salary: "Salary", salaryNote: "everyday use, estimated", onDuty: "On duty" },+ modelNote: "Example model — change it any time",+ phoneNote: "Illustrative: chatting in WeChat or Feishu",+ phoneInput: "Message…",+ phoneStatus: "Online · running on your computer",+ phoneDay: "Today 21:08",+ swipeHint: "swipe to switch",+ where: { pc: "Lives on your computer", phone: "Reach it from your phone" },+ link: "WeChat & Feishu",+ perks: [+ { title: "No new app to install", body: "Message it in WeChat or Feishu. Slack is coming soon." },+ { title: "Same bot, same memory", body: "What you tell it on the go, it still knows back at your desk." },+ { title: "Hand off work on the go", body: "Online while your computer is on; for 24/7, run it in Docker." },+ ],+ chars: {+ blue: { name: "Ping", alias: "天天", job: "All-rounder", lead: "Its antenna pings the moment a message lands.", rest: "Default assistant, meeting notes.", user: "Sum up today's meeting in three bullets.", bot: "Done: ① release date confirmed ② prices follow the public page ③ demo video next week." },+ yellow: { name: "Twinkle", alias: "闪闪", job: "Support & chat", lead: "A little star on top — it twinkles when it smiles, then blushes.", rest: "Support, Q&A, casual chat.", user: "Do you ship on weekends?", bot: "Yes! Orders ship within 48 hours, weekends included~" },+ green: { name: "Sprout", alias: "芽芽", job: "Digests & tidying", lead: "A sprout on top that grows a little with every tidy-up.", rest: "Digests, memory tidying, knowledge base.", user: "What did we talk about today?", bot: "Today's digest: 3 decisions, 2 to-dos — saved to memory." },+ red: { name: "Beat", alias: "哒哒", job: "Code & automation", lead: "Headset on, it codes to the beat.", rest: "Coding, scripts, automation.", user: "Run the tests.", bot: "All passing in 12 seconds." },+ purple: { name: "Crystal", alias: "晶晶", job: "Writing & ideas", lead: "Ideas crystallise on top — one thought, many facets.", rest: "Writing, polishing, brainstorming.", user: "Give this post a headline.", bot: "Three options: … Which tone do you want?" },+ orange: { name: "Pilot", alias: "飞飞", job: "Translate, search, use the computer", lead: "Goggles down, it flies off to find answers — and can take the controls of your computer.", rest: "Translation, search, computer use.", user: "Translate this page into Chinese.", bot: "Translated — glossary attached." },+ },+ },+ quips: {+ blue: { poke: ["Signal received.", "Yep, still here.", "A poke counts as read."], love: "My antenna's sparking!", dizzy: "Signal… lost…", pet: "Full bars of happy." },+ yellow: { poke: ["Oh! You found me~", "Hi! How can I help today?", "Cheek pokes cost extra~"], love: "Now I'm blushing!", dizzy: "So… many… stars…", pet: "More pats — right there~" },+ green: { poke: ["Shh, I'm growing.", "Photosynthesis +1.", "Logged: poked once."], love: "You made me sprout!", dizzy: "Leaves… all tangled…", pet: "Grew another millimetre." },+ red: { poke: ["Shh — the chorus just dropped.", "Hold on, compiling.", "Did you plant this bug?"], love: "Fine. One ear off. Talk.", dizzy: "Segmentation fault (core dumped)", pet: "Nice. You're on the beat." },+ purple: { poke: ["Inspiration +1.", "That poke was poetic.", "Wait — the gem's still forming."], love: "Okay, okay — a poem for you.", dizzy: "Ideas… everywhere…", pet: "This deserves a metaphor." },+ orange: { poke: ["My goggles! Crooked!", "Hola! Bonjour! Hello!", "Searching: who keeps poking me"], love: "New land discovered: you!", dizzy: "Map's… upside down…", pet: "Lovely view. Marking it." },+ wake: ["I wasn't asleep! I was thinking.", "Huh? Who was snoring?", "Here! Ready! Totally awake!"],+ },+ oss: {+ facts: [+ { text: "The console listens on 127.0.0.1 by default and checks the Host header; binding a non-loopback address requires an access token.", path: "src/web/server.ts" },+ { text: "Model keys never enter the agent process; the UI shows only the last 4 characters.", path: "src/agent/bridge.ts · src/agent/host.ts" },+ { text: "Files and commands run in a sandboxed workspace, with approval for anything beyond; on Linux, bubblewrap also hides the data directory.", path: "src/agent/host.ts" },+ { text: "Memory refuses passwords, keys and ID numbers.", path: "src/agent/memory.ts" },+ { text: "Telemetry environment variables of the computer-use driver (Cua) are set to 0; magpie's auto-update is disabled.", path: "src/agent/cua-driver.ts · src/magpie/supervisor.ts" },+ ],+ },+ faq: {+ h2: "Questions.",+ h2dim: "Straight answers.",+ ask: "Got a question? Open it up.",+ more: "Didn’t find it? Dig into the docs",+ items: [+ { q: "Is my data uploaded to your servers?", a: "Chats, memory, files and keys are stored on your device. Model requests go through Modelflare to the provider you choose; log retention follows Modelflare's “Data retention” doc. Screen content seen during computer use is sent to the chosen model." },+ { q: "Does it work offline?", a: "No. Models come from Modelflare; local models aren't supported." },+ { q: "Can I use it on my phone?", a: "There's no standalone app yet; chat with it in WeChat or Feishu. Slack is coming soon." },+ { q: "I don't have a Modelflare account.", a: "At first launch, click Sign in / Sign up for Modelflare and sign up in your browser. The app connects itself when you come back, with no key to copy. On Docker or a remote server, paste an API key instead. In mainland China, pick the China-optimised route under Advanced." },+ { q: "Is computer use safe?", a: "Limited to 24 whitelisted actions; runs automatically by default, switchable to ask before UI-changing actions; screen content goes to the model; try it on a dedicated machine or account first." },+ { q: "How do I verify a download?", a: "Each download lists a SHA-256; use Get-FileHash on Windows, shasum -a 256 on macOS/Linux. GitHub releases also include a SHA256SUMS file you can check in one go with sha256sum -c." },+ { q: "Is the bot still there after I close the window?", a: "Closing the window keeps it in the tray (optional launch at login); it's offline when the computer is off or asleep; use Docker for always-on." },+ { q: "Do you collect telemetry?", a: "What we can confirm: telemetry in the computer-use driver (Cua) is turned off and magpie's auto-update is disabled. See the data-flow diagram for how model requests travel. The code is MIT-licensed — read it yourself." },+ ],+ },+ final: {+ oss: "MIT open source",+ ossRepo: "View the source on GitHub",+ ossLicenses: "Third-party licenses",+ h2: "Bring your first bot online.",+ sub: "The app is free — pay only for what you use.",+ docker: "Deploy with Docker →",+ },+ footer: {+ cols: {+ product: { title: "Product", links: ["Features", "Pricing", "Download", "Changelog"] },+ resources: { title: "Resources", links: ["Docs", "Security", "GitHub", "Modelflare"] },+ legal: { title: "Legal", links: ["Privacy", "Open-source licenses"] },+ },+ copyright: "© 2026 AnyModelBot · MIT",+ art: "Character art © the AnyModelBot project",+ tagline: "AI teammates that live on your machine. One key for every major model — swap brains any time.",+ // Footer eye field: the wordmark is made of a crowd of bot faces+ fieldHint: "Click to message them all",+ fieldModel: "Brain",+ },+ download: {+ warn: "Do not expose port 3600 directly to the internet.",+ win: "Download for Windows",+ mac: "Download for macOS",+ linux: "Download for Linux",+ mobile: "Use it from your chat apps",+ generic: "Download",+ more: "Other platforms",+ items: { "win-x64": "Windows installer (NSIS)", "mac-arm64": "macOS Apple silicon", "mac-x64": "macOS Intel", "linux-x64": "Linux AppImage", docker: "Docker command", changelog: "Changelog" },+ platform: { "win-x64": "Windows", "mac-arm64": "macOS", "mac-x64": "macOS", "linux-x64": "Linux" },+ arch: { "win-x64": "x64", "mac-arm64": "Apple silicon", "mac-x64": "Intel", "linux-x64": "x64 · AppImage" },+ meta: "Version {version} · {sizeMB} MB · Published {publishedAt}",+ sha: "SHA-256",+ started: "Download started — check your browser's downloads.",+ downloading: "Downloading…",+ macNote: "Computer use on macOS is in beta: its direct mode still needs testing on more real machines. The rest of the app is the same as on Windows and Linux.",+ linuxHint: "chmod +x anymodel-bot-*.AppImage && ./anymodel-bot-*.AppImage",+ verifyTitle: "Verify your download",+ verifyUnixLabel: "macOS / Linux",+ verifyWin: "Get-FileHash .\\<file> -Algorithm SHA256",+ verifyUnix: "shasum -a 256 <file>",+ pageTitle: "Download AnyModelBot",+ pageLead: "Free and open source. The app itself needs no signup; sign in to Modelflare at first launch and you're ready.",+ pageDescription: "Download AnyModelBot for Windows, macOS, Linux and Docker. Free and open source, pay per use.",+ dockerTitle: "Docker",+ dockerToken: "Access token: docker exec amb cat /data/ui-token, then open http://<host>:3600/?token=<token>",+ cliTitle: "Command line (CLI)",+ cliBody: "Requires Node.js 22.13+ and Go 1.26.8+ (to build the bundled gateway): npm install → npm run setup → npm start.",+ releases: "GitHub releases",+ changelog: "Changelog",+ },+ security: {+ title: "Security — AnyModelBot",+ description: "Where AnyModelBot's data goes, the local safeguards, and the known limits: what stays on your device and what has to leave.",+ h1: "Security",+ lead: "The long version of the homepage data-flow diagram: what stays on your device, what has to leave, the safeguards you can verify in the code, and the promises we don't make.",+ stays: "Stays on your device",+ leaves: "Leaves your device",+ leavesItems: [+ "What you send to the model (including screen content during computer use) travels through the Modelflare gateway to the provider you choose.",+ "Modelflare keeps request logs for a retention period (you can pick 7–365 days in your profile) per its “Data retention” doc; when a request ultimately fails, or a route fails before a fallback succeeds, the gateway keeps one copy of the raw request (without the Authorization header) for troubleshooting and deletes it after 72 hours (same doc).",+ "Messages in WeChat and Feishu pass through those platforms' servers by nature.",+ ],+ guardsTitle: "Safeguards in the code",+ limitsTitle: "Limits and promises we don't make",+ limits: [+ "No offline or local models; inference requests always leave your device.",+ "Computer use runs automatically by default (switchable to ask before UI-changing actions); the direct macOS mode hasn't been verified on real machines.",+ "The app's network behaviour hasn't been audited by a third party, so we don't claim “zero telemetry”.",+ "Platforms other than Linux don't get the bubblewrap layer; sandbox strength varies by platform.",+ ],+ report: "Found a vulnerability? Email {email}.",+ },+ privacy: {+ title: "Privacy — AnyModelBot",+ description: "The AnyModelBot site uses no cookies and loads no third-party trackers.",+ h1: "Privacy",+ body: [+ "This site uses no cookies and loads no third-party trackers.",+ "We use self-hosted, cookie-free aggregate analytics (no IP logging, no personal identification) and respect your browser's Do Not Track setting.",+ "Fonts and images are self-hosted. Downloads are served from {domain}.",+ "For how the app itself handles data, see the data-flow diagram on the homepage and the security page.",+ ],+ security: "Security →",+ },+ licenses: {+ title: "Open-source licenses — AnyModelBot",+ description: "Third-party components used by AnyModelBot and this site, and their licenses.",+ h1: "Open-source licenses",+ lead: "AnyModelBot is released under the MIT license. Below are the third-party notices shipped with the app (synced from the repository's THIRD_PARTY_NOTICES.md), followed by the components this site uses.",+ site: "Components used by this site",+ siteItems: ["Geist / Geist Mono fonts (SIL Open Font License 1.1, see /fonts/OFL.txt)", "Astro (MIT)", "Preact (MIT)", "Model vendor logos from LobeHub Icons (@lobehub/icons-static-svg, MIT); each logo is a trademark of its owner and is used only to show which vendor a model comes from"],+ },+ changelog: {+ title: "Changelog — AnyModelBot",+ description: "AnyModelBot versions and release notes.",+ h1: "Changelog",+ current: "Current version {version}, published {publishedAt}.",+ body: "Full notes and installers for every version are on the GitHub releases page.",+ link: "Go to GitHub releases →",+ },+ notFound: { title: "Page not found — AnyModelBot", h1: "Page not found.", home: "Back to home" },+ tour: {+ title: "AnyModelBot demo",+ note: "Animated walkthrough; the UI is illustrative.",+ prev: "Previous step",+ next: "Next step",+ steps: "Demo steps",+ scenes: [+ { title: "Download and install", caption: "Grab the installer for your system (Windows, macOS, Linux), or run it on a server with one docker command." },+ { title: "Sign in to Modelflare", caption: "On first launch, sign in to Modelflare once in your browser and it connects by itself. Docker or remote setups can paste an API key instead." },+ { title: "Pick a default model", caption: "The models on your account are listed; pick a default and switch any time in the chat." },+ { title: "Create a bot", caption: "Pick a plush character, give it a name, or start from a template. Each bot has its own persona, model and workspace." },+ { title: "Chat, and swap models any time", caption: "Replies stream in and can be stopped; click the model in the input box to switch." },+ { title: "Let it do the work", caption: "It reads and writes files and runs commands; anything outside its workspace waits for your OK in the chat." },+ { title: "Find it in your chat apps", caption: "Connect it once, then chat with the same bot — and the same memory — from WeChat or Feishu." },+ ],+ ui: {+ installing: "Installing AnyModelBot…",+ slogan: "Any model, one assistant",+ login: "Sign in / Sign up with Modelflare",+ loginWait: "Finish signing in in your browser — you'll come right back here",+ loginReopen: "Reopen sign-in page ↗",+ loginCopy: "Copy link",+ loginCancel: "Cancel",+ authTitle: "Authorize AnyModelBot to use your account",+ authSub: "This creates a key on this computer that only AnyModelBot uses.",+ authBtn: "Authorize and return",+ connected: "Connected · {n} models found",+ pickHint: "Pick a default model; you can switch any time in the chat.",+ filter: "Filter models",+ start: "Start chatting",+ newBot: "New bot",+ creating: "Creating…",+ noChat: "No chats yet",+ newFirst: "Create your first bot",+ botName: "Name",+ botNamePh: "e.g. Group digest",+ botNameValue: "Code helper",+ create: "Create",+ templates: "Start from a template",+ tpls: [+ { name: "Group digest", desc: "Turns group chats into a daily digest" },+ { name: "Support agent", desc: "Answers from your docs, hands off when unsure" },+ { name: "Code helper", desc: "Reads code, writes scripts, edits its workspace" },+ ],+ search: "Search",+ today: "Today 21:08",+ thinking: "Thinking…",+ working: "Working…",+ took: "Worked for {s}",+ input: "Message {name}, / for commands",+ perm: "Workspace: write",+ pickerSearch: "Filter, or type any model ID",+ switched: "Switched to {model}",+ chatUser: "Why does this function go out of bounds?",+ chatReply: "The loop uses <=, so the last pass reads arr[len]. Switch it to < — the fixed version is below.",+ task: "Sort the invoices in Downloads into Expenses.",+ approvalMeta: "Needs your approval",+ allowOnce: "Allow once",+ deny: "Deny",+ allowed: "Allowed",+ fileSub: "Saved to the workspace",+ channelOk: "{im} · connected",+ channelSub: "Scan once — messages go straight to this bot",+ imFrom: "WeChat",+ imUser: "Is today's digest ready?",+ imReply: "Yes: 3 decisions, 2 to-dos — saved to memory.",+ },+ },+ ui: {+ copy: "Copy",+ copied: "Copied",+ copyFailed: "Couldn't copy — select it manually",+ close: "Close",+ },+};diff --git a/site/src/i18n/index.ts b/site/src/i18n/index.tsnew file mode 100644index 0000000..340043a--- /dev/null+++ b/site/src/i18n/index.ts@@ -0,0 +1,47 @@+import { zh, type Dict } from "./zh";+import { en } from "./en";+import { pricing, releases } from "../lib/site";++export type Lang = "zh" | "en";+export const LANGS: Lang[] = ["zh", "en"];+export const dict = (lang: Lang): Dict => (lang === "en" ? en : zh);++/** "{a} / {b}" + { a, b } → 文本;未提供的变量原样保留(生产构建的占位符检查会拦下) */+export function fmt(s: string, vars: Record<string, string | number> = {}): string {+ return s.replace(/\{([A-Za-z][A-Za-z0-9_.]*)\}/g, (m, k) => (k in vars ? String(vars[k]) : m));+}++/** 站内链接:中文在根路径,英文在 /en/ */+export const href = (lang: Lang, p: string) => (lang === "en" ? `/en${p === "/" ? "/" : p}` : p);+export const altLang = (lang: Lang): Lang => (lang === "zh" ? "en" : "zh");+/** 切换语言时去的路径:404 只有一份,切到另一语言的首页 */+export const switchHref = (lang: Lang, p: string) => href(altLang(lang), p === "/404" ? "/" : p);++/** 日期本地化:中文 2026-10-30,英文 Oct 30, 2026 */+export function fmtDate(iso: string, lang: Lang): string {+ const m = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?/.exec(iso);+ if (!m) return iso;+ const [, y, mo, d, hh, mm] = m;+ const time = hh ? ` ${hh}:${mm}` : "";+ if (lang === "zh") return `${y}-${mo}-${d}${time}`;+ const mon = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"][Number(mo) - 1];+ return `${mon} ${Number(d)}, ${y}${time}`;+}++/** 构建时变量(§13.2):价格与下载数据 */+export function buildVars(lang: Lang): Record<string, string | number> {+ const s = pricing;+ return {+ fetchedAt: fmtDate(s.fetchedAt, lang),+ snapshotDate: fmtDate(s.fetchedAt, lang),+ pricingVersion: s.pricingVersion,+ modelCount: s.counts.models,+ vendorCount: s.counts.vendors,+ textCount: s.counts.text,+ mediaCount: s.counts.media,+ sampleModel: s.sample.model,+ sampleMonthly: s.sample.monthly,+ version: releases.version,+ publishedAt: releases.publishedAt,+ };+}diff --git a/site/src/i18n/zh.ts b/site/src/i18n/zh.tsnew file mode 100644index 0000000..b5b589f--- /dev/null+++ b/site/src/i18n/zh.ts@@ -0,0 +1,567 @@+// 中文是源语言(§14)。英文见 en.ts,两边 key 必须一致(scripts/check-i18n.ts 校验)。+// {变量} 在构建时替换:价格类来自 pricing.snapshot.json,下载类来自 releases.json。+export const zh = {+ meta: {+ lang: "zh-CN",+ title: "AnyModelBot|本地运行的 AI 机器人,任意模型,按量付费",+ description:+ "在自己的电脑或服务器上运行 AI 机器人:对话、记忆、文件、密钥留在你的设备上;一个 Modelflare Key 接入 GPT、Claude、Gemini 等模型;App 免费,按用量付费,价格表公开。桌面、Docker、微信、飞书可用。",+ ogImage: "/og/og-zh.png",+ },+ nav: {+ main: "主导航",+ bots: "机器人",+ features: "功能",+ data: "数据",+ models: "模型",+ pricing: "价格",+ docs: "文档",+ skip: "跳到主要内容",+ home: "AnyModelBot 首页",+ menu: "菜单",+ close: "关闭",+ github: "GitHub",+ lang: "中 / EN",+ langLabel: "切换语言",+ theme: "外观",+ themeLight: "浅色",+ themeDark: "深色",+ themeSystem: "跟随系统",+ },+ // 顶部公告条的界面文案;公告内容本身在 src/data/announcements.ts。lang 是给另一种语言的读者看的,所以用对方的语言写+ banner: {+ label: "网站公告",+ close: "关闭公告",+ prev: "上一条",+ next: "下一条",+ until: "截至 {date}",+ left: "还剩 {n} 天",+ lastDay: "今天截止",+ lang: { text: "This page is also available in English.", action: "Switch to English", chip: "English" },+ release: { tag: "新版 v{version}", text: "AnyModelBot {version} 已发布", cta: "下载", link: "更新日志" },+ },+ hero: {+ h1a: "你的 AI 搭子",+ h1pre: "",+ h1mark: "住在你的电脑里",+ h1b: "",+ lead: "整理文件、跑命令、记住你的习惯。一个 Key,畅用主流模型。",+ demo: "看演示",+ trust: ["App 免费开源", "模型按量付费", "Windows / macOS / Linux"],+ appUiNote: "",+ // 标题上方的小胶囊(链到"认识你的机器人")+ eyebrow: "六个毛绒搭子,各管一摊",+ // 首屏底下那台 App 窗口、手机和两侧流动卡片里的字;其余对话复用 tour.ui、handson、bots、window 的文案+ stage: {+ task: "把下载里的发票整理进「报销」。",+ invoice: "发票_03.pdf",+ fixed: "越界已修好",+ moved: "已移动 12 个文件",+ saved: "已存入记忆",+ digest: "3 个决定 · 2 个待办",+ search: "搜索",+ account: "我的账户",+ balance: "余额",+ working: "正在工作…",+ thinking: "思考中…",+ took: "用时 {s}",+ perm: "工作区可写",+ input: "给「{name}」发消息,/ 查看命令",+ allowed: "已允许",+ fileSub: "已保存到工作区",+ phoneUser: "明天的会几点?",+ phoneBot: "上午 10 点,纪要模板已经备好了。",+ },+ },+ // 小窗口里的审批卡("它能动手"、演示导览)和演示导览里的输入框+ window: {+ approvalTitle: "需要你确认",+ allow: "允许",+ deny: "拒绝",+ input: "给天天发消息…",+ },+ flow: {+ h2: "你的数据,",+ h2dim: "到底去了哪?",+ lead: "留在你电脑里的,和必须出去的,我们都画给你看。",+ local: "你的设备(本机)",+ localBadge: "本机",+ out: "出网",+ vendors: "模型厂商",+ channels: "你主动连接的渠道",+ onlyRequest: "仅当前请求",+ nodes: {+ chats: { label: "对话记录(SQLite)", body: "存在数据目录的 SQLite 数据库里;删除机器人即删除它的对话。" },+ memory: { label: "长期记忆(Markdown 文件)", body: "数据目录里的 Markdown 文件,附变更日志 journal.jsonl;密码、密钥、证件号自动拒存。" },+ workspace: { label: "工作区文件", body: "机器人自己的工作区;默认只写这里,越界要你点头。" },+ key: { label: "模型 Key(隔离,末 4 位显示)", body: "只在网关进程与配置里;Agent 子进程环境里没有真实密钥;界面只显示末 4 位。" },+ console: { label: "控制台:127.0.0.1 + 令牌", body: "默认只监听 127.0.0.1 并校验 Host;Docker 模式必须带访问令牌。" },+ gateway: { label: "Modelflare 网关", sub: "转发本次请求 · 日志保留期可选", body: "转发本次请求到你选择的厂商;日志保留期以 Modelflare 文档《Data retention》为准。" },+ vendors: { label: "OpenAI / Anthropic / Google …", body: "收到的是你发给模型的内容,包括电脑操作时的屏幕内容。" },+ channels: { label: "微信 / 飞书", sub: "消息经这些平台送达", body: "这些平台的消息本来就经过它们的服务器。" },+ },+ retentionLink: "Modelflare 文档《数据保留》",+ retentionUrl: "https://docs.modelflare.dev/zh/guides/features/data-retention/?utm_source=anymodelbot&utm_campaign=amb_homepage",+ compare: {+ caption: "AnyModelBot 与典型云端托管型助手的对照",+ head: ["", "AnyModelBot", "典型云端托管型助手"],+ rows: [+ ["运行位置", "你的电脑 / 你的服务器", "厂商的云端"],+ ["对话与记忆存放", "你的硬盘", "厂商服务器"],+ ["模型", "Modelflare 上任选,随时换", "通常绑定自家模型"],+ ["计费", "App 免费;模型按量付费给 Modelflare", "通常按月订阅、分档"],+ ["电脑操作", "操作你自己的电脑(受限 24 个动作)", "操作厂商提供的云端电脑"],+ ["推理请求是否出网", "是,经 Modelflare 到模型厂商", "是"],+ ["代码可审计", "MIT", "多数否"],+ ],+ note: "「典型云端托管型助手」指运行在厂商云端、以月费订阅的这一类产品的通常做法,不指任何具体产品。",+ },+ security: "查看完整安全说明 →",+ },+ models: {+ h2: "一个 Key,",+ h2dim: "所有模型。",+ lead: "给每个机器人挑一个最合适的脑子,随时换。",+ marqueeLabel: "Modelflare 上的厂商与文本模型",+ scenarios: { copy: "写文案", code: "改代码", research: "查资料" },+ question: { copy: "给新品写一句广告语。", code: "这个函数为什么会越界?", research: "总结这三篇论文的结论。" },+ answer: {+ copy: "“住在你电脑里的 AI 搭子。”——再给你两个备选?",+ code: "循环条件用了 <=,最后一次访问了 arr[len]。改成 < 就好。",+ research: "三篇都认为数据质量比规模更重要;分歧在评测方法。",+ },+ pickerTitle: "选择模型",+ pickerSearch: "搜索模型",+ example: "示例,可在 App 里随时更换",+ // 章节头下的公式胶囊(数字来自价格快照)+ keyOne: "1 个 Key",+ keyAll: "{modelCount} 个模型 · {vendorCount} 家厂商",+ priceLine: "{model} · 输入 {input} · 输出 {output} / 1M tokens",+ cta: "获取 Modelflare Key →",+ },+ pricing: {+ eyebrow: "价格 · 按量付费",+ h2mark: "没有月费",+ h2rest: "。用多少,付多少。",+ lead: "AnyModelBot 免费开源,没有订阅、没有档位。模型用量由 Modelflare 按 token 计费,价格表完全公开。",+ source: "价格取自 modelflare.dev/pricing,数据抓取于 {fetchedAt}(UTC+8),版本 {pricingVersion}。",+ stale: "价格快照日期:{snapshotDate}(暂未能更新,请以 modelflare.dev/pricing 为准)。",+ cards: {+ app: {+ tag: "AnyModelBot",+ price: "$0",+ unit: "/ 永久",+ note: "免费开源(MIT)",+ points: ["桌面(Windows / macOS / Linux)、Docker、CLI 都免费", "没有订阅,没有套餐档位", "六个机器人,想建几个建几个"],+ },+ usage: {+ tag: "模型用量 · 由 Modelflare 计费",+ unit: "/ 100 万输入 tokens",+ note: "示例:{model} · 默认线路 · 输出 {output} / 100 万 tokens;官方价 {officialIn} / {officialOut}",+ points: ["按 token 计价,输入输出分开", "价格表公开可查", "换模型随时换,价格跟着模型走"],+ cta: "查看完整价格表 ↗",+ },+ month: {+ tag: "每月大概多少",+ unit: "/ 月",+ note: "示例用量:每天 50 条消息,每条 3,000 输入 + 600 输出 tokens,{model}。",+ points: ["用下面的计算器换成你的用量", "估算不含缓存折扣与特殊请求倍率", "实际以 Modelflare 账单为准"],+ cta: "打开计算器",+ },+ },+ contrast: {+ caption: "按量付费与订阅制档位的通用对照",+ head: ["", "按量付费(AnyModelBot + Modelflare)", "订阅制档位(同类产品的通常做法)"],+ rows: [+ ["怎么收费", "用多少付多少,没有月费", "先付月费,档位决定可用量"],+ ["用不完的部分", "不产生固定支出", "当月额度通常不累计"],+ ["换模型", "随时换,价格跟着模型走", "可选模型通常受档位限制"],+ ["价格怎么看", "每 100 万 tokens 的单价,公开可查", "常以“相对额度”的倍数表述"],+ ],+ note: "「订阅制档位」指以月费分档的这一类产品的通常做法,不指任何具体产品,也不代表其实际价格。",+ },+ table: {+ more: "查看全部 {textCount} 个文本模型的价格 →",+ caption: "Modelflare 文本模型价格(默认线路,USD / 100 万 tokens)",+ col: { model: "模型", route: "线路", input: "输入 / 1M", output: "输出 / 1M", official: "官方价(输入 / 输出)", vs: "相当于官方价" },+ default: "默认",+ context: "上下文 {n}",+ showAll: "查看全部 {textCount} 个文本模型",+ showFeatured: "只看精选",+ search: "搜索模型",+ allVendors: "全部厂商",+ media: "图像与视频模型({mediaCount} 个)请见 modelflare.dev/pricing ↗",+ expand: "展开 {model} 的全部线路",+ detail: { route: "线路", positioning: "定位", vs: "相当于官方价", price: "输入 / 输出" },+ positioning: {+ stable: "高稳定线路",+ award: "高性价比线路",+ campaign: "限时活动线路",+ enterprise: "高稳定线路(仅限授权的企业生产场景)",+ other: "其他线路",+ },+ unlock: "单次充值达 US${amount} 解锁(限时活动,规则以 Modelflare 为准)",+ tiers: "超过 {n} tokens 的单条请求按长上下文档计价:输入 {input} · 输出 {output}",+ none: "没有找到匹配的模型。",+ note: "价格单位为美元 / 100 万 tokens,显示的是“默认线路”的价格;你的账户可能有不同的权限或折扣(Modelflare 页面同样说明)。数据取自 modelflare.dev/pricing,抓取于 {fetchedAt}(UTC+8),版本 {pricingVersion}。",+ },+ calc: {+ title: "算算你每月大概花多少",+ model: "模型",+ search: "输入以搜索模型",+ none: "没有找到匹配的模型。",+ route: "线路",+ routeDefault: "默认线路",+ routeAward: "价格优先线路(award)",+ routeAwardNote: "适合可重试的开发与测试场景",+ msgs: "每天消息数",+ inTok: "每条输入 tokens",+ inTokNote: "含历史上下文与工具结果",+ outTok: "每条输出 tokens",+ days: "按 30 天估算",+ presets: { light: "轻度", everyday: "日常", heavy: "重度(Agent)" },+ hint: "一条消息 = 你发一条消息、机器人完成一次回复所产生的模型调用合计;Agent 执行任务时一次回复可能包含多次模型调用。",+ result: "≈ {amount} / 月",+ split: "输入 {input} · 输出 {output}",+ perMsg: "每条消息约 {amount}",+ official: "按官方价约 {amount}",+ disclaimer: "估算值,不含缓存折扣与请求级倍率(如 priority 服务层);超过该模型分档阈值的请求按更高档计价(已计入);实际以 Modelflare 账单为准。",+ copy: "复制估算",+ copyText: "AnyModelBot 用量估算:{model}({route}),每天 {msgs} 条,每条 {inTok} 输入 + {outTok} 输出 tokens,约 {amount} / 月(按 30 天,价格抓取于 {fetchedAt})",+ full: "查看这个模型的完整价格 ↗",+ expandBar: "展开",+ },+ banner: { text: "已有 Modelflare 账号?在 App 里登录一次就能用,用量按价格表计费。", cta: "打开 Modelflare ↗" },+ pageTitle: "AnyModelBot 价格|按量付费,价格表公开",+ pageDescription: "AnyModelBot 免费开源、没有订阅。模型用量由 Modelflare 按 token 计费:公开价格表与每月费用计算器。",+ },+ devices: {+ h2: "在哪都找得到它。",+ h2dim: "同一个机器人,同一份记忆。",+ lead: "桌面、Docker、浏览器、微信、飞书——从书桌一路跟到你的口袋。",+ items: {+ desktop: { title: "桌面", sub: "Windows · macOS · Linux", body: "Windows、macOS、Linux,下载即用。", more: "全部下载与校验 →" },+ docker: { title: "Docker", sub: "NAS / 服务器", body: "放在 NAS 或服务器上,24 小时在线。" },+ browser: { title: "浏览器", body: "桌面端或 Docker 自带本地网页控制台。", format: "本机 / 自托管" },+ },+ pick: "选择入口",+ groupChat: "聊天软件",+ // 合成图里三块屏幕上同一段对话:同一个机器人、同一份记忆+ thread: { user: "日报一般几点发?", bot: "每天 17:00,你上周跟我说过。", memo: "日报每天 17:00 发", memoLabel: "记忆" },+ chatBody: "在你每天用的聊天软件里找它,手机上也一样。",+ howTo: "查看步骤",+ guideTitle: "接入指南",+ note: "暂无独立的 iOS / Android App;手机上请通过微信或飞书使用。网页控制台是本机/自托管的,不是云端网页版。",+ // 聊天渠道(微信、飞书)的卡片和接入步骤在 data/channels.ts:中英文页面展示的渠道不同+ browserGuide: {+ title: "本地网页控制台",+ steps: [+ "桌面版:托盘菜单 → 在浏览器中打开;界面只监听 127.0.0.1,每次启动生成随机访问令牌。",+ "Docker:打开 http://<主机>:3600/?token=<令牌>,令牌用 docker exec amb cat /data/ui-token 查看。",+ "不要把 3600 端口直接暴露到公网。",+ ],+ },+ },+ kicker: {+ bots: "认识它们",+ features: "能做什么",+ models: "模型与价格",+ data: "数据去向",+ devices: "在哪都能用",+ faq: "有问必答",+ },+ features: {+ h2: "会动手,",+ h2dim: "也会记事。",+ lead: "在你的电脑上动手,每一步都摆在明面上;记忆就是你硬盘里的 Markdown 文件。",+ // 两章故事下面的一排小格:README 里有、上面两章没讲到的能力+ more: {+ h3: "还有这些。",+ items: [+ { title: "生成图片和视频", body: "每次生成前先给你看模型和提示词,也能当场换模型。" },+ { title: "三档权限", body: "只读、工作区、完全权限,按机器人分别设;完全权限下递归删除照样先问你。" },+ { title: "斜杠命令", body: "/model、/reset 这些命令,在 App 和微信、飞书里都能用。" },+ { title: "花多少,一目了然", body: "余额、低余额提醒、每日用量都在 App 里;还能给每个机器人设花费上限。" },+ { title: "两条线路", body: "国际线路和中国大陆优化线路,你自己选,不会自动来回切。" },+ { title: "微信收发图片和文件", body: "图片、文件直接发给它,能看图的模型看得懂;做好的文件也能发回给你。" },+ ],+ },+ },+ handson: {+ h2: "不只会聊,还会动手。",+ lead: "看屏幕、开应用、读写文件、跑命令——每一步你都看得见。",+ badge: "电脑操作",+ status: "macOS Beta",+ points: [+ { title: "只开放 24 个动作", body: "脚本执行、结束进程等对模型不可见。" },+ { title: "只写自己的工作区", body: "越界要你点头,也可切到只读。" },+ { title: "默认自动,可改为先问", body: "点击、输入等改变界面的动作可设为先询问。" },+ ],+ caveat: "操作过程中的屏幕内容会作为输入发送给你所选的模型。",+ demoSteps: ["打开「下载」文件夹", "选中 12 张发票", "拖进「报销」文件夹"],+ approvalBody: "移动 12 个文件到 ~/Documents/报销",+ file: "报销清单.xlsx · 9 KB",+ },+ memory: {+ tag: "长期记忆",+ h2: "记得你,也不乱记。",+ layersLine: "机器人、群、团队三层记忆,各自独立。",+ points: [+ { title: "就是 Markdown 文件", body: "存在你的硬盘上,任何编辑器都能打开。" },+ { title: "敏感信息自动拒存", body: "识别出密码、密钥、证件号就跳过。" },+ { title: "长对话自动整理", body: "“上下文管家”用你指定的便宜小模型完成。" },+ ],+ sample: "示例",+ lines: ["# 关于你", "- 喜欢简短的回答", "- 日报每天 17:00 发", "## topics/项目.md", "- 发布日期:已确认"],+ secret: "- 邮箱密码:hunter2",+ nope: "这个我不记。",+ refused: "✗ 看起来像密码,已跳过",+ },+ bots: {+ h2: "给每个机器人一份工作。",+ h2dim: "挑一个,或者全都养着。",+ lead: "六个毛绒角色,各有人设、模型和工作区。戳一下试试——它们会回嘴。",+ tabsLabel: "选择角色",+ cost: "≈ {amount} / 月",+ badge: { org: "AnyModelBot", staff: "正式员工", no: "工号", skills: "擅长", model: "模型", salary: "月薪", salaryNote: "日常用量估算", onDuty: "在岗" },+ modelNote: "示例模型,可随时更换",+ phoneNote: "示意:在微信或飞书里就是这样聊",+ phoneInput: "发消息…",+ phoneStatus: "在线 · 运行在你的电脑上",+ phoneDay: "今天 21:08",+ swipeHint: "左右滑动换角色",+ where: { pc: "住在你的电脑里", phone: "在手机上找它" },+ link: "微信 / 飞书",+ perks: [+ { title: "不用装新 App", body: "在微信、飞书里直接私聊它。" },+ { title: "同一个机器人,同一份记忆", body: "路上交代的事,回到电脑前它也记得。" },+ { title: "出门也能派活", body: "电脑开着它就在线;要 24 小时在线,放到 Docker 上。" },+ ],+ chars: {+ blue: { name: "天天", alias: "Ping", job: "通用助手", lead: "头顶的天线天天在线,消息一到就接住。", rest: "默认助手、会议纪要。", user: "帮我把今天的会议记成三条要点。", bot: "好的:① 确认发布日期 ② 价格表以公开页面为准 ③ 下周补一版演示视频。" },+ yellow: { name: "闪闪", alias: "Twinkle", job: "客服 · 陪聊", lead: "头顶一颗小星星,一笑就闪闪发亮,还会脸红。", rest: "客服、答疑、陪聊。", user: "你们周末发货吗?", bot: "周末也会发货,下单后 48 小时内寄出~" },+ green: { name: "芽芽", alias: "Sprout", job: "日报 · 整理", lead: "头顶一株嫩芽,每整理一次记忆就长高一点。", rest: "日报、记忆整理、知识库。", user: "把今天的讨论整理成日报。", bot: "今日日报:3 个决定、2 个待办,已存入记忆。" },+ red: { name: "哒哒", alias: "Beat", job: "代码 · 自动化", lead: "耳机一戴,键盘就哒哒哒响个不停。", rest: "写代码、跑脚本、自动化。", user: "跑一下测试。", bot: "全部通过,用时 12 秒。" },+ purple: { name: "晶晶", alias: "Crystal", job: "写作 · 创意", lead: "灵感在头顶结成水晶,一个念头折出好几种说法。", rest: "写作、润色、出点子。", user: "给这篇文章起个标题。", bot: "三个备选:…… 你想要哪种语气?" },+ orange: { name: "飞飞", alias: "Pilot", job: "翻译 · 搜索 · 操作电脑", lead: "飞行护目镜一戴,满世界找答案,也能替你操作电脑。", rest: "翻译、搜索、操作电脑。", user: "把这页翻成中文。", bot: "已翻译,术语表在附件里。" },+ },+ },+ // 戳一戳、撸一撸、打瞌睡被吵醒时说的话(lib/eyes.ts);poke 按顺序轮流说+ quips: {+ blue: { poke: ["收到,信号满格。", "在呢在呢。", "戳一下就算已读了啊。"], love: "天线要冒火花了!", dizzy: "信号……丢……了……", pet: "滋滋——幸福满格。" },+ yellow: { poke: ["哎呀,被发现了~", "亲,请问有什么可以帮您?", "戳脸要收费的哦~"], love: "脸红了,脸红了!", dizzy: "星星……在转圈圈……", pet: "再摸摸~这里这里~" },+ green: { poke: ["别戳,我在长个子。", "光合作用 +1。", "已记入日报:被戳一次。"], love: "被你戳得发芽了。", dizzy: "叶子……打结了……", pet: "好舒服,又长高了一毫米。" },+ red: { poke: ["嘘,正放到副歌。", "别吵,在编译。", "这个 bug 是你放的吧?"], love: "行吧,摘一边耳机听你说。", dizzy: "Segmentation fault (core dumped)", pet: "节拍对了,继续。" },+ purple: { poke: ["灵感 +1。", "这一下可以写进诗里。", "别急,宝石还在结晶。"], love: "好了好了,给你写首诗。", dizzy: "灵感……碎了一地……", pet: "这手感,值得一个比喻。" },+ orange: { poke: ["护目镜被你戳歪了!", "Hola!Bonjour!你好!", "正在搜索:是谁在戳我"], love: "发现新大陆:你!", dizzy: "地图……拿反了……", pet: "此处风景甚好,标记一下。" },+ wake: ["我没睡!我在思考。", "嗯?刚才谁在打呼?", "在的在的,随时待命!"],+ },+ oss: {+ facts: [+ { text: "控制台默认只监听 127.0.0.1,并校验 Host;绑定非回环地址必须有访问令牌。", path: "src/web/server.ts" },+ { text: "模型 Key 不进入 Agent 子进程;界面只显示末 4 位。", path: "src/agent/bridge.ts · src/agent/host.ts" },+ { text: "文件与命令在沙箱工作区内运行,越界走审批;Linux 额外用 bubblewrap 遮住数据目录。", path: "src/agent/host.ts" },+ { text: "记忆自动拒存密码、密钥、证件号。", path: "src/agent/memory.ts" },+ { text: "电脑操作驱动(Cua)的遥测环境变量被置 0;magpie 的自动更新被关闭。", path: "src/agent/cua-driver.ts · src/magpie/supervisor.ts" },+ ],+ },+ faq: {+ h2: "常见问题。",+ h2dim: "答得直接,不绕弯。",+ ask: "有什么想问的?点开就有答案。",+ more: "没找到答案?去文档里翻翻",+ items: [+ { q: "我的数据会上传到你们的服务器吗?", a: "对话、记忆、文件和密钥保存在你的设备上。模型请求会经 Modelflare 发往你选择的模型厂商;Modelflare 的日志保留期以其文档《Data retention》为准。电脑操作时的屏幕内容会作为输入发给所选模型。" },+ { q: "不联网能用吗?", a: "不能。模型来自 Modelflare,不支持本地模型。" },+ { q: "能在手机上用吗?", a: "暂无独立 App;用微信或飞书和它聊。" },+ { q: "我没有 Modelflare 账号?", a: "首次启动点「登录 / 注册 Modelflare」,在浏览器里注册一个就行,回到 App 会自动连好,不用复制 Key。Docker 或远程部署改为粘贴 API Key。在中国大陆可在「高级」里选「中国大陆优化」线路。" },+ { q: "电脑操作安全吗?", a: "受限 24 个动作 + 白名单;默认自动执行,可改为“改变界面的操作先询问”;屏幕内容会发给模型;建议先在专用机器或账号上试用。" },+ { q: "怎么校验下载的文件?", a: "每个下载旁都有 SHA-256;Windows 用 Get-FileHash,macOS / Linux 用 shasum -a 256。GitHub 发布页另附 SHA256SUMS 文件,可以用 sha256sum -c 一次核对。" },+ { q: "关掉窗口后机器人还在吗?", a: "关窗口会驻留托盘(可选开机自启);电脑关机或休眠时不在线;要 24 小时在线请用 Docker。" },+ { q: "你们收集遥测数据吗?", a: "我们能确认的是:电脑操作驱动(Cua)的遥测已关闭,magpie 的自动更新已关闭。模型请求如何流转见“数据去向图”。代码是 MIT 开源的,欢迎自行审阅。" },+ ],+ },+ final: {+ oss: "MIT 开源",+ ossRepo: "在 GitHub 上查看源码",+ ossLicenses: "第三方许可",+ h2: "让你的第一个机器人上线。",+ sub: "App 免费,用多少付多少。",+ docker: "用 Docker 部署 →",+ },+ footer: {+ cols: {+ product: { title: "产品", links: ["功能", "价格", "下载", "更新日志"] },+ resources: { title: "资源", links: ["文档", "安全说明", "GitHub", "Modelflare"] },+ legal: { title: "法务", links: ["隐私说明", "开源许可"] },+ },+ copyright: "© 2026 AnyModelBot · MIT",+ art: "角色插画 © AnyModelBot 项目",+ tagline: "住在你电脑里的 AI 搭子。一个 Key,畅用主流模型,随时换脑。",+ // 页脚眼睛田:字标由一群机器人的脸拼成+ fieldHint: "点一下,给它们发条消息",+ fieldModel: "换脑",+ },+ download: {+ warn: "不要把 3600 端口直接暴露到公网。",+ win: "下载 Windows 版",+ mac: "下载 macOS 版",+ linux: "下载 Linux 版",+ mobile: "手机上通过微信 / 飞书使用",+ generic: "下载",+ more: "其它平台",+ items: { "win-x64": "Windows 安装包(NSIS)", "mac-arm64": "macOS Apple 芯片", "mac-x64": "macOS Intel", "linux-x64": "Linux AppImage", docker: "Docker 命令", changelog: "更新日志" },+ platform: { "win-x64": "Windows", "mac-arm64": "macOS", "mac-x64": "macOS", "linux-x64": "Linux" },+ arch: { "win-x64": "x64", "mac-arm64": "Apple 芯片", "mac-x64": "Intel", "linux-x64": "x64 · AppImage" },+ meta: "版本 {version} · {sizeMB} MB · 发布于 {publishedAt}",+ sha: "SHA-256",+ started: "已开始下载,可在浏览器下载列表查看。",+ downloading: "正在下载…",+ macNote: "macOS 上的电脑操作目前为 Beta:直连模式还要在更多真机上验证。其余功能和 Windows、Linux 版一样。",+ linuxHint: "chmod +x anymodel-bot-*.AppImage && ./anymodel-bot-*.AppImage",+ verifyTitle: "校验下载",+ verifyUnixLabel: "macOS / Linux",+ verifyWin: "Get-FileHash .\\<文件> -Algorithm SHA256",+ verifyUnix: "shasum -a 256 <文件>",+ pageTitle: "下载 AnyModelBot",+ pageLead: "免费开源。App 本身无需注册,首次启动登录 Modelflare 就能用。",+ pageDescription: "下载 AnyModelBot:Windows、macOS、Linux 与 Docker。免费开源,按量付费。",+ dockerTitle: "Docker",+ dockerToken: "访问令牌:docker exec amb cat /data/ui-token,然后打开 http://<主机>:3600/?token=<令牌>",+ cliTitle: "命令行(CLI)",+ cliBody: "需要 Node.js 22.13+ 与 Go 1.26.8+(用于编译内置网关):npm install → npm run setup → npm start。",+ releases: "GitHub 发布页",+ changelog: "更新日志",+ },+ security: {+ title: "安全说明|AnyModelBot",+ description: "AnyModelBot 的数据去向、本机防护与已知边界:哪些留在你的设备上,哪些必须出网。",+ h1: "安全说明",+ lead: "这一页是首页“数据去向图”的长版:哪些数据留在你的设备上,哪些必须出网,以及代码里能验证的防护和我们没有做的承诺。",+ stays: "留在你的设备上",+ leaves: "会离开你的设备",+ leavesItems: [+ "发给模型的内容(含电脑操作时的屏幕内容)经 Modelflare 网关到达你选择的模型厂商。",+ "Modelflare 的请求日志按保留期限保存(可在其个人资料里选 7–365 天),以其文档《数据保留》为准;请求最终失败、或兜底成功前有线路尝试失败时,网关会保存一份原始请求(不含 Authorization 头)用于排障,72 小时后删除(同一文档)。",+ "微信 / 飞书渠道的消息本来就经过这些平台的服务器。",+ ],+ guardsTitle: "代码里的防护",+ limitsTitle: "边界与没有做的承诺",+ limits: [+ "不支持离线或本地模型;推理请求一定会出网。",+ "电脑操作默认自动执行(可改为改变界面的操作先询问);macOS 直连模式尚未在真机验证。",+ "我们没有对整个应用的网络行为做过第三方审计,因此不声称“零遥测”。",+ "Linux 之外的平台没有 bubblewrap 这一层;沙箱强度因平台而异。",+ ],+ report: "发现漏洞请发邮件到 {email}。",+ },+ privacy: {+ title: "隐私说明|AnyModelBot",+ description: "AnyModelBot 官网不使用 Cookie,不加载第三方追踪脚本。",+ h1: "隐私说明",+ body: [+ "本网站不使用 Cookie,不加载第三方追踪脚本。",+ "我们使用自托管、无 Cookie 的聚合统计(不记录 IP,不识别个人),并尊重浏览器的“请勿追踪”设置。",+ "字体与图片均自托管。下载文件由 {domain} 提供。",+ "AnyModelBot 应用本身的数据处理见首页的“数据去向图”与安全说明页。",+ ],+ security: "安全说明 →",+ },+ licenses: {+ title: "开源许可|AnyModelBot",+ description: "AnyModelBot 与官网使用的第三方组件及其许可。",+ h1: "开源许可",+ lead: "AnyModelBot 以 MIT 许可发布。下面是应用随附的第三方声明(同步自仓库的 THIRD_PARTY_NOTICES.md),以及本网站自身使用的组件。",+ site: "本网站使用的组件",+ siteItems: ["Geist / Geist Mono 字体(SIL Open Font License 1.1,见 /fonts/OFL.txt)", "Astro(MIT)", "Preact(MIT)", "LobeHub Icons 的模型厂商标志(@lobehub/icons-static-svg,MIT);各标志是其所有者的商标,仅用于标明模型出自哪家厂商"],+ },+ changelog: {+ title: "更新日志|AnyModelBot",+ description: "AnyModelBot 的版本与更新记录。",+ h1: "更新日志",+ current: "当前版本 {version},发布于 {publishedAt}。",+ body: "每个版本的完整说明与安装包都在 GitHub 发布页。",+ link: "前往 GitHub 发布页 →",+ },+ notFound: { title: "找不到这一页|AnyModelBot", h1: "找不到这一页。", home: "回首页" },+ tour: {+ title: "AnyModelBot 演示",+ note: "演示动画,界面为示意。",+ prev: "上一步",+ next: "下一步",+ steps: "演示步骤",+ scenes: [+ { title: "下载安装", caption: "按系统下载安装包(Windows / macOS / Linux),或者用一条 docker 命令放到服务器上。" },+ { title: "登录 Modelflare", caption: "首次启动在浏览器里登录一次 Modelflare,回来就自动连好;Docker / 远程部署可以改填 API Key。" },+ { title: "选默认模型", caption: "连上后列出账户里能用的模型,挑一个当默认;之后随时可以在对话里换。" },+ { title: "新建机器人", caption: "挑个毛绒角色、起个名字,或者从模板开始;每个机器人有自己的人设、模型和工作区。" },+ { title: "开聊,随时换模型", caption: "回复边写边出来,可以随时停下;点一下输入框里的模型就能换。" },+ { title: "让它动手", caption: "读写文件、跑命令;越出工作区的操作会停下来,等你在对话里点头。" },+ { title: "在微信 / 飞书里找它", caption: "扫码接入后,在手机上直接和同一个机器人聊,记忆也是同一份。" },+ ],+ ui: {+ // 第 1–3 幕:照 App 的引导页(ui/screens/onboarding.js)+ installing: "正在安装 AnyModelBot…",+ slogan: "任意模型,一个助手",+ login: "登录 / 注册 Modelflare",+ loginWait: "在浏览器里完成登录后,会自动回到这里",+ loginReopen: "重新打开登录页 ↗",+ loginCopy: "复制链接",+ loginCancel: "取消",+ authTitle: "授权 AnyModelBot 使用你的账户",+ authSub: "授权后会在这台电脑上生成一把只给它用的 Key。",+ authBtn: "授权并返回",+ connected: "已连接 · 找到 {n} 个模型",+ pickHint: "选一个默认模型,之后随时可在对话里切换。",+ filter: "筛选模型",+ start: "开始对话",+ // 第 4 幕:照 App 的新建页(ui/screens/new-bot.js)+ newBot: "新机器人",+ creating: "正在创建…",+ noChat: "还没有对话",+ newFirst: "创建你的第一个机器人",+ botName: "名称",+ botNamePh: "例如:群聊日报",+ botNameValue: "代码助手",+ create: "创建",+ templates: "从模板开始",+ tpls: [+ { name: "群聊日报", desc: "把群里的讨论整理成日报" },+ { name: "客服助手", desc: "按已知资料回答,拿不准就转人工" },+ { name: "代码助手", desc: "读代码、写脚本,在工作区里改文件" },+ ],+ // 第 5–6 幕:照 App 的对话页(ui/screens/chat.js)+ search: "搜索",+ today: "今天 21:08",+ thinking: "思考中…",+ working: "正在工作…",+ took: "用时 {s}",+ input: "给「{name}」发消息,/ 查看命令",+ perm: "工作区可写",+ pickerSearch: "筛选,或输入任意模型 ID",+ switched: "已切换到 {model}",+ chatUser: "帮我看看这个函数为什么会越界。",+ chatReply: "循环条件用了 <=,最后一次访问了 arr[len]。改成 < 就好,我把改好的版本放在下面。",+ task: "把下载里的发票整理进「报销」。",+ approvalMeta: "需要你的批准",+ allowOnce: "允许(仅本次)",+ deny: "拒绝",+ allowed: "已允许",+ fileSub: "已保存到工作区",+ // 第 7 幕:手机上的聊天软件+ channelOk: "{im} · 已连接",+ channelSub: "扫码接入,消息直接到这个机器人",+ imFrom: "微信",+ imUser: "今天的日报好了吗?",+ imReply: "好了:3 个决定、2 个待办,已存入记忆。",+ },+ },+ ui: {+ copy: "复制",+ copied: "已复制",+ copyFailed: "复制失败,请手动选择",+ close: "关闭",+ },+};++export type Dict = typeof zh;diff --git a/site/src/islands/ModelCombobox.tsx b/site/src/islands/ModelCombobox.tsxnew file mode 100644index 0000000..eba5a75--- /dev/null+++ b/site/src/islands/ModelCombobox.tsx@@ -0,0 +1,82 @@+// 可搜索的模型选择框(WAI-ARIA combobox + listbox),按厂商分组。+// 键盘:↓/↑ 移动、Enter 选中、Esc 收起并恢复原值、Home/End 跳到首尾;输入即筛选。+import { useEffect, useMemo, useRef, useState } from "preact/hooks";++interface Option { value: string; group: string }+interface Props { id: string; label: string; options: Option[]; value: string; onChange: (v: string) => void; placeholder: string; empty: string }++export default function ModelCombobox({ id, label, options, value, onChange, placeholder, empty }: Props) {+ const [open, setOpen] = useState(false);+ const [q, setQ] = useState("");+ const [active, setActive] = useState(0);+ const input = useRef<HTMLInputElement>(null);+ const list = useRef<HTMLUListElement>(null);+ const filtered = useMemo(() => {+ const s = q.trim().toLowerCase();+ return s ? options.filter((o) => o.value.toLowerCase().includes(s) || o.group.toLowerCase().includes(s)) : options;+ }, [q, options]);+ const groups = useMemo(() => [...new Set(filtered.map((o) => o.group))], [filtered]);+ const optId = (v: string) => `${id}-opt-${v.replace(/[^a-z0-9]+/gi, "-")}`;++ const openList = () => { setOpen(true); setQ(""); setActive(Math.max(0, options.findIndex((o) => o.value === value))); };+ const close = () => { setOpen(false); setQ(""); };+ const pick = (v: string) => { onChange(v); close(); input.current?.focus(); };++ useEffect(() => {+ if (!open) return;+ list.current?.querySelector<HTMLElement>(`#${CSS.escape(optId(filtered[active]?.value ?? ""))}`)?.scrollIntoView({ block: "nearest" });+ }, [active, open, filtered]);++ const onKey = (e: KeyboardEvent) => {+ if (!open && (e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "Enter")) { e.preventDefault(); openList(); return; }+ if (!open) return;+ if (e.key === "ArrowDown") { e.preventDefault(); setActive((a) => Math.min(filtered.length - 1, a + 1)); }+ else if (e.key === "ArrowUp") { e.preventDefault(); setActive((a) => Math.max(0, a - 1)); }+ else if (e.key === "Home") { e.preventDefault(); setActive(0); }+ else if (e.key === "End") { e.preventDefault(); setActive(filtered.length - 1); }+ else if (e.key === "Enter") { e.preventDefault(); const o = filtered[active]; if (o) pick(o.value); }+ else if (e.key === "Escape") { e.preventDefault(); close(); }+ else if (e.key === "Tab") close();+ };++ return (+ <div class="combo" onFocusOut={(e) => { if (!(e.currentTarget as HTMLElement).contains(e.relatedTarget as Node)) close(); }}>+ <div class="combo__field">+ <input+ ref={input} id={id} class="mono" type="text" role="combobox" autocomplete="off" spellcheck={false}+ aria-label={label} aria-expanded={open} aria-controls={`${id}-list`} aria-autocomplete="list"+ aria-activedescendant={open && filtered[active] ? optId(filtered[active].value) : undefined}+ placeholder={open ? placeholder : undefined}+ value={open ? q : value}+ onInput={(e) => { setQ((e.target as HTMLInputElement).value); setActive(0); if (!open) setOpen(true); }}+ onClick={() => (open ? null : openList())}+ onKeyDown={onKey}+ />+ <button type="button" class="combo__toggle" tabIndex={-1} aria-hidden="true" onMouseDown={(e) => e.preventDefault()} onClick={() => { if (open) close(); else { openList(); input.current?.focus(); } }}>+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="m7 10 5 5 5-5" /></svg>+ </button>+ </div>+ {open && (+ <ul class="combo__list" id={`${id}-list`} role="listbox" aria-label={label} ref={list}>+ {groups.map((g) => (+ <li role="presentation">+ <div class="combo__group" role="presentation">{g}</div>+ <ul role="group" aria-label={g}>+ {filtered.filter((o) => o.group === g).map((o) => {+ const i = filtered.indexOf(o);+ return (+ <li id={optId(o.value)} role="option" aria-selected={o.value === value} class={`mono${i === active ? " is-active" : ""}`}+ onMouseDown={(e) => e.preventDefault()} onMouseMove={() => setActive(i)} onClick={() => pick(o.value)}>+ {o.value}+ </li>+ );+ })}+ </ul>+ </li>+ ))}+ {!filtered.length && <li class="combo__empty muted" role="presentation">{empty}</li>}+ </ul>+ )}+ </div>+ );+}diff --git a/site/src/islands/PriceCalculator.tsx b/site/src/islands/PriceCalculator.tsxnew file mode 100644index 0000000..9017003--- /dev/null+++ b/site/src/islands/PriceCalculator.tsx@@ -0,0 +1,149 @@+// 每月费用计算器(§6.5 D)。状态同步到 URL(?m=&g=&d=&i=&o=),可分享;结果区 aria-live。+import { useEffect, useMemo, useRef, useState } from "preact/hooks";+import type { PriceRow } from "../lib/pricing";+import { estimate, calcGroups, fmtMoney, fmtSmall, clampInt, LIMITS, PRESETS, type PresetId } from "../lib/calc";+import type { Dict } from "../i18n/zh";+import ModelCombobox from "./ModelCombobox";++type T = Dict["pricing"]["calc"];+interface Props { rows: PriceRow[]; defaultModel: string; t: T; fetchedAt: string; fullHref: string }++const f = (s: string, v: Record<string, string | number>) => s.replace(/\{(\w+)\}/g, (m, k) => (k in v ? String(v[k]) : m));+const track = (n: string, p?: object) => { try { (window as any).umami?.track(n, p); } catch { /* 忽略 */ } };+const reduced = () => typeof matchMedia !== "undefined" && matchMedia("(prefers-reduced-motion: reduce)").matches;++// 对数滑块:0…1000 ↔ [min, max]+const toLog = (v: number, [a, b]: readonly [number, number]) => Math.round((Math.log(v / a) / Math.log(b / a)) * 1000);+const fromLog = (p: number, [a, b]: readonly [number, number]) => {+ const v = a * Math.pow(b / a, p / 1000);+ const step = v < 1000 ? 10 : v < 10000 ? 100 : 1000;+ return clampInt(Math.round(v / step) * step, [a, b], a);+};++/** 数字变化时 500ms 内滚动到新值(减少动态效果时直接替换) */+function useRolling(target: number) {+ const [v, setV] = useState(target);+ const from = useRef(target);+ useEffect(() => {+ if (reduced()) { setV(target); from.current = target; return; }+ const start = performance.now(), a = from.current;+ let raf = 0;+ const step = (now: number) => {+ const k = Math.min(1, (now - start) / 500), e = 1 - Math.pow(1 - k, 3);+ const x = a + (target - a) * e;+ setV(x); from.current = x;+ if (k < 1) raf = requestAnimationFrame(step);+ };+ raf = requestAnimationFrame(step);+ return () => cancelAnimationFrame(raf);+ }, [target]);+ return v;+}++export default function PriceCalculator({ rows, defaultModel, t, fetchedAt, fullHref }: Props) {+ const def = { model: defaultModel, ...PRESETS.everyday };+ const [model, setModel] = useState(def.model);+ const [group, setGroup] = useState("");+ const [msgs, setMsgs] = useState<number>(def.msgs);+ const [inTok, setIn] = useState<number>(def.inTok);+ const [outTok, setOut] = useState<number>(def.outTok);+ const [open, setOpen] = useState(false);+ const ready = useRef(false);++ const row = rows.find((r) => r.model === model) ?? rows.find((r) => r.model === defaultModel)!;+ const groups = calcGroups(row);+ const g = groups.find((x) => x.id === group) ?? groups[0];+ const res = useMemo(() => estimate(row, { group: g.id, msgs, inTok, outTok }), [row, g.id, msgs, inTok, outTok]);+ const preset = (Object.keys(PRESETS) as PresetId[]).find((k) => PRESETS[k].msgs === msgs && PRESETS[k].inTok === inTok && PRESETS[k].outTok === outTok) ?? "custom";+ const shown = useRolling(res.monthly);++ // 读 URL(首页角色的月估算链接带 ?m= 过来)+ useEffect(() => {+ const p = new URLSearchParams(location.search);+ const m = p.get("m");+ if (m && rows.some((r) => r.model === m)) setModel(m);+ if (p.get("g")) setGroup(p.get("g")!);+ setMsgs(clampInt(p.get("d") ?? def.msgs, LIMITS.msgs, def.msgs));+ setIn(clampInt(p.get("i") ?? def.inTok, LIMITS.inTok, def.inTok));+ setOut(clampInt(p.get("o") ?? def.outTok, LIMITS.outTok, def.outTok));+ ready.current = true;+ }, []);++ // 写 URL(只在用户改过之后)+ 停止输入 800ms 后记一次+ useEffect(() => {+ if (!ready.current) return;+ const p = new URLSearchParams(location.search);+ p.set("m", row.model); p.set("g", g.id); p.set("d", String(msgs)); p.set("i", String(inTok)); p.set("o", String(outTok));+ history.replaceState(null, "", `${location.pathname}?${p}${location.hash}`);+ const id = setTimeout(() => track("pricing_calc_use", { model_id: row.model, preset, group: g.id }), 800);+ return () => clearTimeout(id);+ }, [row.model, g.id, msgs, inTok, outTok]);++ const amount = fmtMoney(shown);+ const copy = async () => {+ const text = f(t.copyText, { model: row.model, route: g.id, msgs, inTok: inTok.toLocaleString("en-US"), outTok: outTok.toLocaleString("en-US"), amount: fmtMoney(res.monthly), fetchedAt });+ try { await navigator.clipboard.writeText(text); (window as any).ambToast?.(document.documentElement.lang.startsWith("zh") ? "已复制" : "Copied"); }+ catch { (window as any).ambToast?.(text); }+ track("pricing_calc_copy");+ };+ const num = (v: number, set: (n: number) => void, lim: readonly [number, number], label: string, id: string, log: boolean, note?: string) => (+ <div class="calc__field">+ <label for={id}>{label}{note && <small class="muted"> · {note}</small>}</label>+ <div class="calc__inputs">+ <input type="range" min={log ? 0 : lim[0]} max={log ? 1000 : lim[1]} step={1} value={log ? toLog(v, lim) : v} aria-label={label}+ onInput={(e) => { const x = Number((e.target as HTMLInputElement).value); set(log ? fromLog(x, lim) : x); }} />+ <input type="number" id={id} class="mono" min={lim[0]} max={lim[1]} value={v} inputMode="numeric"+ onChange={(e) => set(clampInt((e.target as HTMLInputElement).value, lim, v))} />+ </div>+ </div>+ );++ return (+ <div class="calc">+ <div class="calc__form">+ <div class="calc__presets" role="group" aria-label={t.title}>+ {(Object.keys(PRESETS) as PresetId[]).map((k) => (+ <button type="button" class="chip" aria-pressed={preset === k} onClick={() => { setMsgs(PRESETS[k].msgs); setIn(PRESETS[k].inTok); setOut(PRESETS[k].outTok); }}>{t.presets[k]}</button>+ ))}+ </div>+ <div class="calc__field">+ <label for="calc-model">{t.model}</label>+ <ModelCombobox id="calc-model" label={t.model} value={row.model} placeholder={t.search} empty={t.none}+ options={rows.map((r) => ({ value: r.model, group: r.vendor }))}+ onChange={(m) => { setModel(m); setGroup(""); }} />+ </div>+ <fieldset class="calc__field calc__route">+ <legend>{t.route}</legend>+ {groups.map((x, i) => (+ <label class="chip">+ <input type="radio" name="calc-group" value={x.id} checked={x.id === g.id} onChange={() => setGroup(x.id)} />+ {i === 0 ? t.routeDefault : t.routeAward} <span class="mono muted">{x.id}</span>+ </label>+ ))}+ {groups.length > 1 && <small class="muted">{t.routeAward}: {t.routeAwardNote}</small>}+ </fieldset>+ {num(msgs, setMsgs, LIMITS.msgs, t.msgs, "calc-msgs", false)}+ {num(inTok, setIn, LIMITS.inTok, t.inTok, "calc-in", true, t.inTokNote)}+ {num(outTok, setOut, LIMITS.outTok, t.outTok, "calc-out", true)}+ <p class="small muted">{t.days} · {t.hint}</p>+ </div>+ <div class={`calc__result${open ? " is-open" : ""}`}>+ <div class="calc__big">+ <span aria-hidden="true">{(() => { const [pre, post = ""] = t.result.split("{amount}"); return <>{pre && <span class="pcard__unit">{pre}</span>}<span class="mono">{amount}</span>{post && <span class="pcard__unit">{post}</span>}</>; })()}</span>+ <span class="sr-only" aria-live="polite" aria-atomic="true">{f(t.result, { amount: fmtMoney(res.monthly) })}</span>+ </div>+ <button type="button" class="calc__bar-toggle" aria-expanded={open} onClick={() => setOpen(!open)}>{t.expandBar}</button>+ <dl class="calc__lines small">+ <div><dd class="tnum">{f(t.split, { input: fmtMoney(res.input), output: fmtMoney(res.output) })}</dd></div>+ <div><dd class="tnum">{f(t.perMsg, { amount: fmtSmall(res.perMsg) })}</dd></div>+ <div><dd class="tnum muted">{f(t.official, { amount: fmtMoney(res.official) })}</dd></div>+ </dl>+ <p class="small muted calc__disclaimer">{t.disclaimer}</p>+ <div class="calc__actions">+ <button type="button" class="btn btn--secondary btn--sm" onClick={copy}>{t.copy}</button>+ <a class="small" href={fullHref} target="_blank" rel="noopener" onClick={() => track("pricing_cta_click", { location: "calc" })}>{t.full}</a>+ </div>+ </div>+ </div>+ );+}diff --git a/site/src/islands/PriceTable.tsx b/site/src/islands/PriceTable.tsxnew file mode 100644index 0000000..801bb2f--- /dev/null+++ b/site/src/islands/PriceTable.tsx@@ -0,0 +1,134 @@+// 公开价格表(§6.5 C):默认 6 个精选行;展开后可搜索、按厂商过滤;每行可展开看全部线路。+import { useMemo, useState } from "preact/hooks";+import type { PriceRow } from "../lib/pricing";+import { fmtPrice } from "../lib/pricing";+import type { Dict } from "../i18n/zh";++type T = Dict["pricing"]["table"];+interface Props { rows: PriceRow[]; featured: string[]; t: T; mediaText: string; mediaHref: string; initialAll?: boolean }++const f = (s: string, v: Record<string, string | number>) => s.replace(/\{(\w+)\}/g, (m, k) => (k in v ? String(v[k]) : m));+export const ctx = (n: number | null) => (n == null ? "" : n >= 1e6 ? `${+(n / 1e6).toFixed(2)}M` : `${Math.round(n / 1e3)}K`);+const pct = (r: number) => `${+(r * 100).toFixed(2)}%`;+const track = (n: string, p?: object) => { try { (window as any).umami?.track(n, p); } catch { /* 忽略 */ } };++export default function PriceTable({ rows, featured, t, mediaText, mediaHref, initialAll = false }: Props) {+ const [all, setAll] = useState(initialAll);+ const [q, setQ] = useState("");+ const [vendor, setVendor] = useState("");+ const [open, setOpen] = useState<Set<string>>(new Set());+ const vendors = useMemo(() => [...new Set(rows.map((r) => r.vendor))], [rows]);+ const list = useMemo(() => {+ if (!all) return featured.map((m) => rows.find((r) => r.model === m)!).filter(Boolean);+ const s = q.trim().toLowerCase();+ return rows.filter((r) => (!vendor || r.vendor === vendor) && (!s || r.model.toLowerCase().includes(s) || r.vendor.toLowerCase().includes(s)));+ }, [all, q, vendor, rows, featured]);+ // 全部模型时按厂商分组(顺序同价格数据),精选时不分组+ const sections = useMemo(() => (all+ ? [...new Set(list.map((r) => r.vendor))].map((v) => ({ vendor: v as string | null, rows: list.filter((r) => r.vendor === v) }))+ : [{ vendor: null as string | null, rows: list }]), [all, list]);+ const toggle = (m: string) => {+ const n = new Set(open);+ if (n.has(m)) n.delete(m); else { n.add(m); track("pricing_row_expand", { model_id: m }); }+ setOpen(n);+ };+ const textCount = rows.length;++ return (+ <div class="ptable">+ {all && (+ <div class="ptable__tools">+ <label class="ptable__search"><span class="sr-only">{t.search}</span>+ <input type="search" placeholder={t.search} value={q} onInput={(e) => setQ((e.target as HTMLInputElement).value)} />+ </label>+ <div class="ptable__vendors" role="group" aria-label={t.allVendors}>+ <button type="button" class="chip" aria-pressed={vendor === ""} onClick={() => setVendor("")}>{t.allVendors}</button>+ {vendors.map((v) => <button type="button" class="chip" aria-pressed={vendor === v} onClick={() => setVendor(vendor === v ? "" : v)}>{v}</button>)}+ </div>+ </div>+ )}+ <div class="table-wrap">+ <table class="table ptable__table">+ <caption class="sr-only">{t.caption}</caption>+ <thead>+ <tr>+ <th scope="col">{t.col.model}</th>+ <th scope="col">{t.col.route}</th>+ <th scope="col" class="num-col">{t.col.input}</th>+ <th scope="col" class="num-col">{t.col.output}</th>+ <th scope="col" class="num-col hide-md">{t.col.official}</th>+ <th scope="col" class="num-col hide-md">{t.col.vs}</th>+ <th scope="col"><span class="sr-only">{t.detail.route}</span></th>+ </tr>+ </thead>+ {sections.map((sec) => [+ sec.vendor && (+ <tbody class="ptable__group" key={`g-${sec.vendor}`}>+ <tr><th scope="rowgroup" colSpan={7}>{sec.vendor} <span class="muted">· {sec.rows.length}</span></th></tr>+ </tbody>+ ),+ ...sec.rows.map((r) => {+ const isOpen = open.has(r.model);+ const id = `pr-${r.model.replace(/[^a-z0-9]+/gi, "-")}`;+ const long = r.tiers.length > 1 ? r.tiers[r.tiers.length - 1] : null;+ return (+ <tbody class={isOpen ? "is-open" : ""} key={r.model}>+ <tr>+ <th scope="row" class="ptable__model">+ <span class="mono">{r.model}</span>+ <small>{r.vendor}{r.contextWindow ? ` · ${f(t.context, { n: ctx(r.contextWindow) })}` : ""}</small>+ </th>+ <td data-label={t.col.route}><span class="badge badge--neutral">{r.defaultGroup}</span> <span class="badge badge--accent">{t.default}</span></td>+ <td class="num-col mono" data-label={t.col.input}>{fmtPrice(r.input)}</td>+ <td class="num-col mono" data-label={t.col.output}>{fmtPrice(r.output)}</td>+ <td class="num-col mono hide-md" data-label={t.col.official}>{`${fmtPrice(r.officialInput)} / ${fmtPrice(r.officialOutput)}`}</td>+ <td class="num-col mono hide-md" data-label={t.col.vs}>{pct(r.ratio)}</td>+ <td class="ptable__toggle">+ <button type="button" class="icon-btn" aria-expanded={isOpen} aria-controls={id} aria-label={f(t.expand, { model: r.model })} onClick={() => toggle(r.model)}>+ <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="m7 10 5 5 5-5" /></svg>+ </button>+ </td>+ </tr>+ <tr class="ptable__detail" id={id} hidden={!isOpen}>+ <td colSpan={7}>+ {isOpen && (+ <div class="pdetail">+ <p class="pdetail__official small muted show-md">+ {t.col.official}: <span class="mono">{`${fmtPrice(r.officialInput)} / ${fmtPrice(r.officialOutput)}`}</span> · {t.col.vs}: <span class="mono">{pct(r.ratio)}</span>+ </p>+ <table class="table pdetail__table">+ <thead><tr><th scope="col">{t.detail.route}</th><th scope="col">{t.detail.positioning}</th><th scope="col" class="num-col">{t.detail.vs}</th><th scope="col" class="num-col">{t.detail.price}</th></tr></thead>+ <tbody>+ {r.groups.map((g) => (+ <tr>+ <th scope="row"><span class="mono">{g.id}</span>{g.isDefault && <> <span class="badge badge--accent">{t.default}</span></>}{g.conditional && <svg class="ptable__lock" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5" y="11" width="14" height="9" rx="2.5" /><path d="M8 11V8a4 4 0 0 1 8 0v3" /></svg>}</th>+ <td>{t.positioning[g.kind]}{g.conditional && <><br /><small class="pdetail__unlock">{f(t.unlock, { amount: g.conditional.minTopupUSD })}</small></>}</td>+ <td class="num-col mono">{pct(g.ratio)}</td>+ <td class="num-col mono">{fmtPrice(g.input)} / {fmtPrice(g.output)}</td>+ </tr>+ ))}+ </tbody>+ </table>+ {long && long.maxInputTokens == null && r.tiers[0].maxInputTokens != null && (+ <p class="small muted">{f(t.tiers, { n: r.tiers[0].maxInputTokens.toLocaleString("en-US"), input: fmtPrice(long.input * r.ratio), output: fmtPrice(long.output * r.ratio) })}</p>+ )}+ </div>+ )}+ </td>+ </tr>+ </tbody>+ );+ }),+ ])}+ </table>+ {list.length === 0 && <p class="ptable__none muted">{t.none}</p>}+ </div>+ <div class="ptable__foot">+ <button type="button" class="btn btn--secondary" aria-expanded={all} onClick={() => { setAll(!all); if (!all) track("pricing_table_expand"); }}>+ {all ? t.showFeatured : f(t.showAll, { textCount })}+ </button>+ <a class="small" href={mediaHref} target="_blank" rel="noopener">{mediaText}</a>+ </div>+ </div>+ );+}diff --git a/site/src/layouts/Base.astro b/site/src/layouts/Base.astronew file mode 100644index 0000000..7161d0b--- /dev/null+++ b/site/src/layouts/Base.astro@@ -0,0 +1,104 @@+---+// 全站样式:token、基础、共用组件、Eyes 标记。各页自己的版式在 views/* 里引入(home / pricing / pages.css);+// 机器人头像(bots.css)随 BotFace 组件、演示导览(tour.css)随 DemoTour 组件、顶部公告条(banner.css)随 SiteBanner 加载。+import "../styles/base.css";+import "../styles/tokens.css";+import "../styles/components.css";+import "../styles/eyes.css";+import Nav from "../components/Nav.astro";+import Footer from "../components/Footer.astro";+import SiteBanner from "../components/SiteBanner.astro";+import { dict, href, type Lang } from "../i18n";+import { ORIGIN, ANALYTICS_SCRIPT_URL, ANALYTICS_SITE_ID, releases, GITHUB_URL } from "../lib/site";++interface Props {+ lang: Lang;+ /** 不带语言前缀的路径,如 "/"、"/pricing" */+ path: string;+ title?: string;+ description?: string;+ jsonLd?: object[];+ noindex?: boolean;+}+const { lang, path, title, description, jsonLd = [], noindex = false } = Astro.props;+const t = dict(lang);+const pageTitle = title ?? t.meta.title;+const desc = description ?? t.meta.description;+const canonical = `${ORIGIN}${href(lang, path)}`;+const alt = { zh: `${ORIGIN}${href("zh", path)}`, en: `${ORIGIN}${href("en", path)}` };+const og = `${ORIGIN}${t.meta.ogImage}`;+const dlData = {+ version: releases.version,+ publishedAt: releases.publishedAt,+ platforms: Object.fromEntries(Object.entries(releases.platforms).filter(([k]) => k !== "docker")),+ docker: releases.platforms.docker.command,+ github: `${GITHUB_URL}/releases`,+ i18n: {+ win: t.download.win, mac: t.download.mac, linux: t.download.linux, mobile: t.download.mobile, generic: t.download.generic,+ downloading: t.download.downloading, started: t.download.started, copied: t.ui.copied, copyFailed: t.ui.copyFailed,+ bannerLeft: t.banner.left, bannerLastDay: t.banner.lastDay,+ },+ lang,+};+---+<!doctype html>+<html lang={t.meta.lang} data-theme="dark">+ <head>+ <meta charset="utf-8" />+ <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />+ <title>{pageTitle}</title>+ <meta name="description" content={desc} />+ {noindex && <meta name="robots" content="noindex" />}+ <link rel="canonical" href={canonical} />+ <link rel="alternate" hreflang="zh-CN" href={alt.zh} />+ <link rel="alternate" hreflang="en" href={alt.en} />+ <link rel="alternate" hreflang="x-default" href={alt.zh} />+ <meta property="og:type" content="website" />+ <meta property="og:site_name" content="AnyModelBot" />+ <meta property="og:title" content={pageTitle} />+ <meta property="og:description" content={desc} />+ <meta property="og:url" content={canonical} />+ <meta property="og:image" content={og} />+ <meta property="og:image:width" content="1200" />+ <meta property="og:image:height" content="630" />+ <meta property="og:locale" content={lang === "zh" ? "zh_CN" : "en_US"} />+ <meta name="twitter:card" content="summary_large_image" />+ <meta name="twitter:title" content={pageTitle} />+ <meta name="twitter:description" content={desc} />+ <meta name="twitter:image" content={og} />+ <meta name="theme-color" content="#060706" data-theme-color />+ <link rel="icon" href="/favicon.svg" type="image/svg+xml" />+ <link rel="icon" href="/favicon-32.png" sizes="32x32" type="image/png" />+ <link rel="apple-touch-icon" href="/apple-touch-icon.png" />+ <link rel="manifest" href="/site.webmanifest" />+ <link rel="preload" href="/fonts/Geist-Variable.woff2" as="font" type="font/woff2" crossorigin />+ <script is:inline>+ (function () {+ var d = document.documentElement, pref = "dark";+ try { pref = localStorage.getItem("amb-theme") || "dark"; } catch (e) {}+ var dark = pref === "system" ? matchMedia("(prefers-color-scheme: dark)").matches : pref !== "light";+ d.dataset.theme = dark ? "dark" : "light";+ d.dataset.themePref = pref;+ d.classList.add("js");+ var tc = document.querySelector("meta[data-theme-color]");+ if (tc) tc.setAttribute("content", dark ? "#060706" : "#f4f5f7");+ })();+ </script>+ {jsonLd.map((j) => <script type="application/ld+json" set:html={JSON.stringify(j)} />)}+ {import.meta.env.PROD && ANALYTICS_SCRIPT_URL && <script is:inline defer src={ANALYTICS_SCRIPT_URL} data-website-id={ANALYTICS_SITE_ID} data-do-not-track="true"></script>}+ <script type="application/json" id="amb-data" set:html={JSON.stringify(dlData)} />+ </head>+ <body>+ <a class="skip" href="#main">{t.nav.skip}</a>+ <SiteBanner lang={lang} path={path} />+ <Nav lang={lang} path={path} />+ <main id="main" tabindex="-1">+ <slot />+ </main>+ <Footer lang={lang} path={path} />+ <div class="toasts" role="status" aria-live="polite" data-toasts></div>+ <script>+ import "../scripts/client";+ </script>+ </body>+</html>diff --git a/site/src/lib/banner.ts b/site/src/lib/banner.tsnew file mode 100644index 0000000..2bf1fed--- /dev/null+++ b/site/src/lib/banner.ts@@ -0,0 +1,100 @@+// 顶部公告条:构建时把 data/announcements.ts 和 releases.json 整理成当前语言的条目(纯函数,单测见 tests/banner.test.ts)。+// 访客侧还要再筛一遍(关闭记录、时间窗、浏览器语言),在 components/SiteBanner.astro 的内联脚本里。+import { ANNOUNCEMENTS, RELEASE, type Announcement, type BannerLink, type Tone } from "../data/announcements";+import { buildVars, dict, fmt, href, type Lang } from "../i18n";+import type { Dict } from "../i18n/zh";+import { releases } from "./site";++export interface BannerAction { label: string; href: string; external: boolean }+export interface BannerItem {+ id: string;+ kind: "release" | "promo" | "notice";+ tone: Tone;+ /** 带时区的完整时间,浏览器里用 Date.parse 比较 */+ start?: string;+ end?: string;+ tag: string;+ text: string;+ note?: string;+ /** dl:按访客系统换成安装包直链(scripts/banner.ts) */+ cta?: BannerAction & { dl?: boolean };+ link?: BannerAction;+}++const DAY = 864e5;+const DATE_ONLY = /^(\d{4})-(\d{2})-(\d{2})$/;+const MON = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];++/** 部署占位符({VERSION} 之类)还没替换 */+export const isPlaceholder = (s: string) => /\{[A-Z][A-Z0-9_]*\}/.test(s);++/** 只写日期时按北京时间补成整天:start → 当天 00:00,end → 当天 23:59:59.999 */+export function edge(s: string | undefined, side: "start" | "end"): string | undefined {+ if (!s) return undefined;+ return DATE_ONLY.test(s) ? `${s}T${side === "start" ? "00:00:00" : "23:59:59.999"}+08:00` : s;+}++/** 截止日期的短写法:中文 11 月 30 日,英文 Nov 30(取写在配置里的那个日期,不换算时区) */+export function shortDate(s: string, lang: Lang): string {+ const m = /^(\d{4})-(\d{2})-(\d{2})/.exec(s);+ if (!m) return s;+ const mo = Number(m[2]), d = Number(m[3]);+ return lang === "zh" ? `${mo} 月 ${d} 日` : `${MON[mo - 1]} ${d}`;+}++function action(l: BannerLink, lang: Lang): BannerAction {+ return { label: l.label, href: l.href.startsWith("/") ? href(lang, l.href) : l.href, external: /^https?:/i.test(l.href) };+}++export interface BannerSource {+ announcements: Announcement[];+ release: { enabled: boolean; days: number; highlights: Record<string, { zh: string; en: string }> };+ releases: { version: string; publishedAt: string };+ t: Dict["banner"];+ vars: Record<string, string | number>;+}++export function buildBannerItems(lang: Lang, src: BannerSource, now = Date.now()): BannerItem[] {+ const { announcements, release, releases: rel, t, vars } = src;+ const items: BannerItem[] = [];++ if (release.enabled && !isPlaceholder(rel.version)) {+ const pub = Date.parse(rel.publishedAt);+ const end = Number.isNaN(pub) ? undefined : new Date(pub + release.days * DAY).toISOString();+ if (!end || Date.parse(end) > now) {+ items.push({+ id: `release-${rel.version}`,+ kind: "release",+ tone: "accent",+ end,+ tag: fmt(t.release.tag, { version: rel.version }),+ text: release.highlights[rel.version]?.[lang] ?? fmt(t.release.text, { version: rel.version }),+ cta: { label: t.release.cta, href: href(lang, "/download"), external: false, dl: true },+ link: { label: t.release.link, href: href(lang, "/changelog"), external: false },+ });+ }+ }++ for (const a of announcements) {+ const start = edge(a.start, "start"), end = edge(a.end, "end");+ if (end && Date.parse(end) <= now) continue;+ const c = a[lang];+ items.push({+ id: a.id,+ kind: a.kind,+ tone: a.tone ?? (a.kind === "promo" ? "promo" : "neutral"),+ start,+ end,+ tag: fmt(c.tag, vars),+ text: fmt(c.text, vars),+ note: a.countdown && a.end ? fmt(t.until, { date: shortDate(a.end, lang) }) : undefined,+ cta: c.cta && action(c.cta, lang),+ link: c.link && action(c.link, lang),+ });+ }+ return items;+}++/** 当前配置下某个语言的条目 */+export const bannerItems = (lang: Lang, now = Date.now()) =>+ buildBannerItems(lang, { announcements: ANNOUNCEMENTS, release: RELEASE, releases, t: dict(lang).banner, vars: buildVars(lang) }, now);diff --git a/site/src/lib/bots.ts b/site/src/lib/bots.tsnew file mode 100644index 0000000..1b395f7--- /dev/null+++ b/site/src/lib/bots.ts@@ -0,0 +1,19 @@+// 六个毛绒机器人:几何移植自 App 的 ui/components/avatar.js(BOT_CHARS),单位是相对头像方框的百分比。+// App 改了几何后 `npm run sync` 会警告,届时把新值抄过来并更新 BOT_CHARS_HASH。+export type CharKey = "blue" | "yellow" | "green" | "red" | "purple" | "orange";+type Pt = [number, number];+export interface CharGeo { eyes: [Pt, Pt]; r: number; earL: Pt; earR: Pt; top: Pt; tip: Pt; lens?: [Pt, Pt, number] }++export const BOT_CHARS: Record<CharKey, CharGeo> = {+ blue: { eyes: [[38.81, 62.99], [60.82, 62.99]], r: 3.41, earL: [18.14, 62.21], earR: [81.94, 62.21], top: [49.96, 31.78], tip: [49.8, 21.2] },+ yellow: { eyes: [[38.34, 63.5], [61.4, 63.48]], r: 3.57, earL: [17.91, 62.13], earR: [82.25, 62.13], top: [50.04, 31.32], tip: [50, 19.7] },+ green: { eyes: [[38.8, 63.07], [61.09, 63.08]], r: 3.49, earL: [17.91, 62.71], earR: [82.02, 62.71], top: [50, 31.32], tip: [50.2, 21.2] },+ red: { eyes: [[37.53, 59.46], [62.24, 59.45]], r: 3.88, earL: [19.53, 58.06], earR: [80.47, 58.06], top: [50.04, 28.37], tip: [50, 15] },+ purple: { eyes: [[38.86, 63.04], [60.96, 63.04]], r: 3.49, earL: [18.14, 62.91], earR: [81.94, 62.91], top: [49.84, 32.87], tip: [50, 22] },+ orange: {+ eyes: [[38.18, 61.84], [61.83, 61.84]], r: 3.57, earL: [15.66, 61.47], earR: [84.34, 61.47], top: [50.12, 27.44], tip: [50, 17],+ lens: [[35.27, 40.85], [64.81, 40.85], 6.4],+ },+};+export const CHAR_KEYS = Object.keys(BOT_CHARS) as CharKey[];+export const BOT_CHARS_HASH = "8d055ed19deb2468";diff --git a/site/src/lib/calc.ts b/site/src/lib/calc.tsnew file mode 100644index 0000000..7b19259--- /dev/null+++ b/site/src/lib/calc.ts@@ -0,0 +1,49 @@+// 计算器:每月费用估算(§6.5 D)。不含缓存折扣与请求级倍率;超过分档阈值的请求按更高档计价。+import { tierFor, type PriceRow } from "./pricing";++export interface CalcState { model: string; group: string; msgs: number; inTok: number; outTok: number }+export interface CalcResult { monthly: number; input: number; output: number; perMsg: number; official: number }++export const DAYS = 30;+export const LIMITS = { msgs: [1, 500], inTok: [100, 200_000], outTok: [50, 20_000] } as const;+export const PRESETS = {+ light: { msgs: 20, inTok: 1000, outTok: 300 },+ everyday: { msgs: 50, inTok: 3000, outTok: 600 },+ heavy: { msgs: 200, inTok: 20_000, outTok: 1500 },+} as const;+export type PresetId = keyof typeof PRESETS;++export function estimate(row: PriceRow, s: Omit<CalcState, "model">, days = DAYS): CalcResult {+ const t = tierFor(row, s.inTok);+ const g = row.groups.find((x) => x.id === s.group && !x.conditional) ?? row.groups.find((x) => x.id === row.defaultGroup)!;+ const n = days * s.msgs;+ const input = (n * s.inTok * t.input * g.ratio) / 1e6;+ const output = (n * s.outTok * t.output * g.ratio) / 1e6;+ const monthly = input + output;+ const official = (n * (s.inTok * t.input + s.outTok * t.output)) / 1e6;+ return { monthly, input, output, perMsg: monthly / n, official };+}++/** 计算器可选的线路:默认线路 + 该模型的 award 线路(条件价线路不提供) */+export function calcGroups(row: PriceRow) {+ const def = row.groups.find((g) => g.id === row.defaultGroup)!;+ const award = row.groups.find((g) => g.kind === "award" && !g.conditional);+ return award ? [def, award] : [def];+}++/** 金额:两位小数;< $0.01 显示 "< $0.01";千分位 */+export function fmtMoney(n: number): string {+ if (n > 0 && n < 0.01) return "< $0.01";+ return "$" + n.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });+}++/** 每条消息:最多 6 位小数,去掉末尾 0 */+export function fmtSmall(n: number): string {+ if (n > 0 && n < 0.000001) return "< $0.000001";+ return "$" + Number(n.toFixed(6)).toString();+}++export const clampInt = (v: unknown, [a, b]: readonly [number, number], d: number) => {+ const n = Math.round(Number(v));+ return Number.isFinite(n) && n >= a && n <= b ? n : d;+};diff --git a/site/src/lib/docs.ts b/site/src/lib/docs.tsnew file mode 100644index 0000000..60a4056--- /dev/null+++ b/site/src/lib/docs.ts@@ -0,0 +1,6 @@+// 导航、页脚和 FAQ 里的"文档":指向 AnyModelBot 自己的 README(中英文各一份),不是 Modelflare 的 API 文档。+// README 讲下载、功能、隐私和参与贡献;更细的开发说明在仓库的 docs/ 里,从 README 能点过去。+import type { Lang } from "../i18n";+import { GITHUB_URL } from "./site";++export const docsUrl = (lang: Lang) => (lang === "zh" ? `${GITHUB_URL}#readme` : `${GITHUB_URL}/blob/master/README_en.md`);diff --git a/site/src/lib/eyefield.ts b/site/src/lib/eyefield.tsnew file mode 100644index 0000000..d9ce5e3--- /dev/null+++ b/site/src/lib/eyefield.ts@@ -0,0 +1,125 @@+// 页脚"眼睛田"的纯逻辑(无 DOM,单测在 tests/eyefield.test.ts):把字标采样成格子、目光、眨眼、配色、挑模型名。+// 每一格是一枚迷你 Eyes 标记——面罩 + 两只眼,比例和 components/EyesMark.astro 的 100×100 画布一致。++/** 一枚标记在 100 单位画布里的几何(EyesMark.astro):面罩 94×82 圆角 36,眼睛 13×28,左右眼中心离中线 14.5,目光幅度 x 11 / y 5 */+export const MARK = {+ plateW: 0.94, plateH: 0.82, plateR: 0.36,+ eyeW: 0.13, eyeH: 0.28, eyeDX: 0.145,+ ampX: 0.11, ampY: 0.05, headX: 0.02, headY: 0.01,+} as const;++/** 字标的排法:画布够扁(宽高比 ≥ 3,CSS 在宽屏给的比例)排一行,否则三行。按画布比例判断,和 CSS 的断点永远一致 */+export function wordLines(width: number, height: number): string[] {+ return height > 0 && width / height >= 3 ? ["AnyModelBot"] : ["Any", "Model", "Bot"];+}++/** 格子边长:让字标高度方向大约有 rows 格,限制在 [min, max] 像素之间(太小看不出眼睛,太大字形太粗糙) */+export function cellSize(capHeight: number, rows: number, min = 9, max = 20): number {+ return Math.max(min, Math.min(max, capHeight / rows));+}++export interface Cell {+ /** 格子中心(CSS 像素) */+ x: number; y: number;+ col: number; row: number;+}++/**+ * 从一张"字形遮罩"里取格子:每格取 3×3 个采样点,覆盖到 minCover 以上的才算字里面。+ * alpha(x, y) 返回该像素的不透明度 0–1(调用方从 ImageData 里取,已经换算成 CSS 像素坐标)。+ */+export function sampleCells(width: number, height: number, cell: number, alpha: (x: number, y: number) => number, minCover = 0.45): Cell[] {+ const cols = Math.floor(width / cell), rows = Math.floor(height / cell);+ const ox = (width - cols * cell) / 2, oy = (height - rows * cell) / 2;+ const out: Cell[] = [];+ for (let r = 0; r < rows; r++) {+ for (let c = 0; c < cols; c++) {+ let hit = 0;+ for (let i = 0; i < 3; i++) for (let j = 0; j < 3; j++) {+ hit += alpha(ox + (c + (i + 0.5) / 3) * cell, oy + (r + (j + 0.5) / 3) * cell);+ }+ if (hit / 9 >= minCover) out.push({ x: ox + (c + 0.5) * cell, y: oy + (r + 0.5) * cell, col: c, row: r });+ }+ }+ return out;+}++/** 目光:指向目标的单位向量,乘一个随距离增大的系数——近处也会转,远处看满幅;|向量| ≤ 1 */+export function aim(dx: number, dy: number, reach: number): [number, number] {+ const d = Math.hypot(dx, dy);+ if (d < 1) return [0, 0];+ const t = Math.min(d / reach, 1), e = 1 - (1 - t) * (1 - t);+ return [(dx / d) * e, (dy / d) * e];+}++/** "注意到你"的程度:离指针越近越接近 1,平方衰减;半径外是 0 */+export function lens(d: number, radius: number): number {+ if (d >= radius) return 0;+ const k = 1 - d / radius;+ return k * k;+}++/** 眨眼:p 是从开始眨算起的进度(一次眨眼 = 1),返回眼睛的竖向开合 0.08–1;double 时 1.25–2.25 再眨一次 */+export function blinkLid(p: number, double = false): number {+ const one = (q: number) => (q <= 0 || q >= 1 ? 1 : 1 - 0.92 * Math.sin(Math.PI * q));+ if (p < 1) return one(p);+ return double ? one(p - 1.25) : 1;+}+export const blinkSpan = (double: boolean) => (double ? 2.25 : 1);++/** 入场:带一点回弹的放大(0 → 1,中途略超过 1) */+export function easeOutBack(t: number): number {+ if (t <= 0) return 0;+ if (t >= 1) return 1;+ const c1 = 1.70158, c3 = c1 + 1;+ return 1 + c3 * Math.pow(t - 1, 3) + c1 * Math.pow(t - 1, 2);+}++/** 眼睛的配色:六个机器人的眼睛色 + 品牌黄绿。每一轮"换模型"选一个主色,七成格子用主色,其余撒别的颜色 */+export const EYE_TOKENS = ["--lime", "--bot-blue-eye", "--bot-purple-eye", "--bot-orange-eye", "--bot-green-eye", "--bot-red-eye", "--bot-yellow-eye"] as const;+/** 浅色下给面罩上色用的角色色(和 EYE_TOKENS 一一对应:同一个下标是同一个角色):辉光色和底色调和成淡彩,眼睛统一用墨色 */+export const PLATE_TOKENS = ["--lime", "--bot-blue-glow", "--bot-purple-glow", "--bot-orange-glow", "--bot-green-glow", "--bot-red-glow", "--bot-yellow-glow"] as const;++/** "#rgb" / "#rrggbb" → [r, g, b];认不出来时返回 null */+export function hexToRgb(hex: string): [number, number, number] | null {+ const m = hex.trim().match(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i);+ if (!m) return null;+ const s = m[1].length === 3 ? [...m[1]].map((c) => c + c).join("") : m[1];+ return [0, 2, 4].map((i) => parseInt(s.slice(i, i + 2), 16)) as [number, number, number];+}+/** 在 sRGB 里把颜色 a 按比例 t 混进底色 b(t = 0 是 b,1 是 a);任何一个认不出来就原样返回 b */+export function mixHex(a: string, b: string, t: number): string {+ const x = hexToRgb(a), y = hexToRgb(b);+ if (!x || !y) return b;+ return "#" + x.map((v, i) => Math.round(v * t + y[i] * (1 - t)).toString(16).padStart(2, "0")).join("");+}++export function pickColor(main: number, count: number, roll: number, roll2: number, share = 0.7): number {+ if (roll < share || count < 2) return main;+ const k = Math.floor(roll2 * (count - 1));+ return k >= main ? k + 1 : k;+}++/** 换模型时显示的模型名:每家厂商取第一个,最多 n 个,顺序和价格快照一致 */+export function pickModels(rows: { model: string; vendor?: string }[], n = 8): string[] {+ const seen = new Set<string>(), out: string[] = [];+ for (const r of rows) {+ const v = r.vendor ?? r.model;+ if (seen.has(v)) continue;+ seen.add(v); out.push(r.model);+ if (out.length >= n) break;+ }+ return out;+}++/** 可复现的伪随机(mulberry32):同一个种子每次排出同样的田,刷新页面不会"换一批" */+export function rng(seed: number) {+ let a = seed >>> 0;+ return () => {+ a = (a + 0x6d2b79f5) >>> 0;+ let t = a;+ t = Math.imul(t ^ (t >>> 15), t | 1);+ t ^= t + Math.imul(t ^ (t >>> 7), t | 61);+ return ((t ^ (t >>> 14)) >>> 0) / 4294967296;+ };+}diff --git a/site/src/lib/eyes.ts b/site/src/lib/eyes.tsnew file mode 100644index 0000000..36a7281--- /dev/null+++ b/site/src/lib/eyes.ts@@ -0,0 +1,320 @@+// Eyes 标记与毛绒机器人的"看"(§7.7、§7.9)。一个全局 pointermove + rAF 合并;IntersectionObserver 管可见性;+// 先统一读 getBoundingClientRect,再统一写 --look-x/--look-y。无依赖。+const clamp = (v: number, a: number, b: number) => Math.min(b, Math.max(a, v));+const rnd = (a: number, b: number) => a + Math.random() * (b - a);++interface Mark { el: SVGSVGElement; visible: boolean; x: number; y: number; target: Element | null; glanceT?: number }+interface Face { el: HTMLElement; visible: boolean; x: number; y: number; target: Element | null }+const marks = new Map<SVGSVGElement, Mark>();+const faces = new Map<HTMLElement, Face>();+const reduce = matchMedia("(prefers-reduced-motion: reduce)");+let px = NaN, py = NaN, raf = 0, idleT = 0, bound = false;+let io: IntersectionObserver | null = null;++function setMode(m: Mark, mode: "idle" | "follow" | "static") { if (m.el.dataset.mode !== mode) m.el.dataset.mode = mode; }+function write(m: Mark | Face, x: number, y: number) {+ if (Math.abs(x - m.x) < 0.01 && Math.abs(y - m.y) < 0.01) return;+ m.x = x; m.y = y;+ m.el.style.setProperty("--look-x", x.toFixed(3));+ m.el.style.setProperty("--look-y", y.toFixed(3));+}++/** 单位圆内的目光向量:近处就明显转动,远处趋近 1;|向量| ≤ 1,所以眼睛永远不出面罩(§7.5) */+export function aim(r: { left: number; top: number; width: number; height: number }, tx: number, ty: number): [number, number] {+ const dx = tx - (r.left + r.width / 2), dy = ty - (r.top + r.height / 2), d = Math.hypot(dx, dy);+ if (d < 2) return [0, 0];+ const t = Math.min(d / clamp(r.width * 3.2, 200, 520), 1), e = 1 - (1 - t) * (1 - t);+ return [(dx / d) * e, (dy / d) * e];+}+/** 机器人:与 App 的 BotAvatar 同一套衰减——只在指针附近才看过去 */+export function aimFace(r: { left: number; top: number; width: number; height: number }, tx: number, ty: number): [number, number] {+ const dx = tx - (r.left + r.width / 2), dy = ty - (r.top + r.height / 2);+ const fall = Math.max(0, 1 - Math.hypot(dx, dy) / Math.max(140, r.width * 4));+ return [clamp((dx / (r.width * 0.7)) * fall, -1, 1), clamp((dy / (r.height * 0.7)) * fall, -1, 1)];+}++/** 机器人看向另一个元素(指针不在附近时):方向单位化,水平满幅的 85%、竖直 60%,不会转到"翻白眼" */+export function toward(r: { left: number; top: number; width: number; height: number }, t: { left: number; top: number; width: number; height: number }): [number, number] {+ const dx = t.left + t.width / 2 - (r.left + r.width / 2), dy = t.top + t.height / 2 - (r.top + r.height / 2), d = Math.hypot(dx, dy);+ if (d < 2) return [0, 0];+ return [(dx / d) * 0.85, (dy / d) * 0.6];+}++function frame() {+ raf = 0;+ const vm = [...marks.values()].filter((m) => m.visible && !m.glanceT);+ const vf = [...faces.values()].filter((f) => f.visible);+ const rm = vm.map((m) => m.el.getBoundingClientRect());+ const rf = vf.map((f) => f.el.getBoundingClientRect());+ const rt = vf.map((f) => f.target?.getBoundingClientRect() ?? null);+ vm.forEach((m, i) => { const [x, y] = Number.isNaN(px) ? [0, 0] : aim(rm[i], px, py); setMode(m, "follow"); write(m, x, y); });+ vf.forEach((f, i) => {+ let [x, y] = Number.isNaN(px) ? [0, 0] : aimFace(rf[i], px, py);+ if (rt[i] && Math.hypot(x, y) < 0.08) [x, y] = toward(rf[i], rt[i]!);+ write(f, x, y);+ });+}+function toIdle() {+ px = py = NaN;+ faces.forEach((f) => (f.target ? write(f, ...toward(f.el.getBoundingClientRect(), f.target.getBoundingClientRect())) : write(f, 0, 0)));+ marks.forEach((m) => { if (m.glanceT) return; write(m, 0, 0); setTimeout(() => { if (!m.glanceT && Number.isNaN(px)) setMode(m, "idle"); }, 220); });+}+function onMove(e: PointerEvent) {+ if (e.pointerType === "touch") return;+ px = e.clientX; py = e.clientY;+ if (!raf) raf = requestAnimationFrame(frame);+ clearTimeout(idleT); idleT = window.setTimeout(toIdle, 3000);+}+function onLeave(e: MouseEvent) { if (!e.relatedTarget) { clearTimeout(idleT); idleT = window.setTimeout(toIdle, 600); } }++/** 看向某个元素 ms 毫秒后回空闲(触屏一瞥、空闲时看 data-look-at 目标、悬停入口卡) */+export function glanceAt(el: SVGSVGElement, target: Element, ms = 1400) {+ const m = marks.get(el);+ if (!m || reduce.matches) return;+ const t = target.getBoundingClientRect(), r = m.el.getBoundingClientRect();+ const [x, y] = aim(r, t.left + t.width / 2, t.top + t.height / 2);+ setMode(m, "follow"); write(m, x, y);+ clearTimeout(m.glanceT);+ m.glanceT = window.setTimeout(() => {+ m.glanceT = undefined;+ if (!Number.isNaN(px)) return;+ write(m, 0, 0); setTimeout(() => Number.isNaN(px) && setMode(m, "idle"), 220);+ }, ms);+}+function scheduleGlance(m: Mark) {+ if (!m.target) return;+ setTimeout(() => {+ if (m.visible && m.el.dataset.mode === "idle" && m.target) glanceAt(m.el, m.target);+ scheduleGlance(m);+ }, rnd(6000, 10000));+}++/** 机器人没有被指针吸引时看向 target(null = 看前方):一排机器人一起看被选中的那个、看下载按钮…… */+export function gazeAt(el: HTMLElement, target: Element | null) {+ const f = faces.get(el);+ if (!f) return;+ f.target = target;+ const r = el.getBoundingClientRect();+ if (!Number.isNaN(px) && Math.hypot(...aimFace(r, px, py)) >= 0.08) return;+ if (target) write(f, ...toward(r, target.getBoundingClientRect()));+ else write(f, 0, 0);+}++// —— 持续状态:和 App 的 BotAvatar 同一套 data-state;状态粒子(打呼的 z、等批准的 !、思考泡泡、天天的信号圈、星星)随状态加上 ——+const BUSY = new Set(["thinking", "replying", "working"]);+const sizeOf = (el: HTMLElement) => parseFloat(getComputedStyle(el).getPropertyValue("--s")) || el.offsetWidth;+export function setState(el: HTMLElement, st: string) {+ if (el.dataset.state === st) return;+ el.dataset.state = st;+ const body = el.querySelector(".bf-body");+ body?.querySelectorAll(".fx-st").forEach((n) => n.remove());+ if (!el.dataset.shot) el.dataset.eyes = st === "sleep" ? "closed" : "open";+ if (!body || sizeOf(el) < 36) return;+ const add = (h: string) => body.insertAdjacentHTML("beforeend", h);+ if (st === "waiting") add(`<span class="fx fx-st fx-bang">!</span>`);+ if (st === "thinking") add(`<span class="fx fx-st fx-think"><i></i><i></i><i></i></span>`);+ if (reduce.matches) return;+ if (st === "sleep") add(`<span class="fx fx-st fx-zzz"><i>z</i><i>z</i><i>z</i></span>`);+ if (BUSY.has(st) && el.dataset.char === "blue") add(`<span class="fx fx-st fx-rings"><i></i><i></i><i></i></span>`);+ if (BUSY.has(st) && (el.dataset.char === "yellow" || el.dataset.char === "purple")) add(`<span class="fx fx-st fx-twinkle"><i></i><i></i><i></i></span>`);+}+const restEyes = (el: HTMLElement) => (el.dataset.state === "sleep" ? "closed" : "open");++// —— 机器人的一次性反应:戳一下开心,1.8 秒内连戳三下冒爱心、六下晕(同 App);startle = 打瞌睡被吵醒 ——+const SHOT_EYES: Record<string, string> = { hello: "happy", poke: "happy", love: "heart", dizzy: "spiral", done: "happy", error: "error", startle: "open" };+const SHOT_MS: Record<string, number> = { hello: 1600, poke: 700, love: 1600, dizzy: 2200, done: 1300, error: 1500, startle: 900 };+const BURST = [0, 45, 90, 135, 180, 225, 270, 315];+export function playShot(el: HTMLElement, kind: keyof typeof SHOT_MS) {+ if (reduce.matches) {+ el.dataset.eyes = SHOT_EYES[kind];+ setTimeout(() => (el.dataset.eyes = restEyes(el)), SHOT_MS[kind]);+ return;+ }+ const shot = el.querySelector<HTMLElement>(".bf-shot");+ delete el.dataset.shot;+ shot?.querySelectorAll(".fx-dyn").forEach((n) => n.remove());+ void el.offsetWidth; // 让同一种反应可以重新播放+ el.dataset.shot = kind;+ el.dataset.eyes = SHOT_EYES[kind];+ const big = el.offsetWidth >= 36;+ if (shot && big) {+ const add = (html: string) => shot.insertAdjacentHTML("beforeend", html);+ if (kind === "hello" || kind === "love" || kind === "done") add(`<span class="fx fx-burst fx-dyn">${BURST.map((a, i) => `<i style="--a:${a}deg;--i:${i}"></i>`).join("")}</span>`);+ if (kind === "love") add(`<span class="fx fx-hearts fx-dyn"><i></i><i></i><i></i></span>`);+ if (kind === "dizzy") add(`<span class="fx fx-orbit fx-dyn"><i></i><i></i><i></i></span>`);+ if (kind === "done" && el.dataset.char === "green") add(`<span class="fx fx-leaf fx-dyn"></span>`);+ if (kind === "startle") add(`<span class="fx fx-bang fx-dyn">!</span>`);+ }+ clearTimeout(Number(el.dataset.shotT));+ el.dataset.shotT = String(window.setTimeout(() => {+ delete el.dataset.shot; el.dataset.eyes = restEyes(el);+ shot?.querySelectorAll(".fx-dyn").forEach((n) => n.remove());+ }, SHOT_MS[kind]));+}++// —— 台词气泡:文案在页面里的 #amb-quips(i18n 的 quips),戳一下按顺序轮流说,爱心 / 晕 / 撸 / 被吵醒各有一句 ——+type QuipKind = "poke" | "love" | "dizzy" | "pet" | "wake";+type Quips = Record<string, { poke: string[]; love: string; dizzy: string; pet: string }> & { wake?: string[] };+let quipData: Quips | null = null;+const quipTurn = new Map<string, number>();+export function quipFor(char: string | undefined, kind: QuipKind): string | undefined {+ if (!quipData) { try { quipData = JSON.parse(document.getElementById("amb-quips")?.textContent || "{}"); } catch { quipData = {} as Quips; } }+ const list = kind === "wake" ? quipData!.wake : kind === "poke" ? quipData![char ?? ""]?.poke : undefined;+ if (list?.length) {+ const key = `${char}:${kind}`, i = quipTurn.get(key) ?? (kind === "wake" ? Math.floor(Math.random() * list.length) : 0);+ quipTurn.set(key, i + 1);+ return list[i % list.length];+ }+ return kind === "wake" || kind === "poke" ? undefined : quipData![char ?? ""]?.[kind];+}+const bubbles = new WeakMap<HTMLElement, HTMLElement>();+/** 在机器人头顶冒一个气泡(挂在 body 上、按页面坐标定位,所以不受父级 overflow 影响,跟着页面滚动) */+export function say(el: HTMLElement, text: string, ms = 2400) {+ bubbles.get(el)?.remove();+ const r = el.getBoundingClientRect();+ if (!r.width || r.bottom < 0 || r.top > innerHeight) return;+ const b = document.createElement("div");+ b.className = "quip";+ b.setAttribute("aria-hidden", "true");+ b.textContent = text;+ const scope = el.closest<HTMLElement>("[data-theme]");+ if (scope && scope !== document.documentElement) b.dataset.theme = scope.dataset.theme;+ document.body.append(b);+ const w = b.offsetWidth, cx = r.left + r.width / 2;+ const left = Math.min(Math.max(cx - w / 2, 10), document.documentElement.clientWidth - w - 10);+ b.style.left = `${left + scrollX}px`;+ b.style.top = `${r.top + scrollY + r.height * 0.1}px`;+ b.style.setProperty("--tail", `${Math.min(Math.max(cx - left, 16), w - 16)}px`);+ bubbles.set(el, b);+ setTimeout(() => {+ b.classList.add("is-out");+ setTimeout(() => b.remove(), 220);+ if (bubbles.get(el) === b) bubbles.delete(el);+ }, ms);+}+const talk = (el: HTMLElement, kind: QuipKind) => {+ if (el.offsetWidth < 40) return;+ const q = quipFor(el.dataset.char, kind);+ if (q) say(el, q);+};++const pokes = new WeakMap<HTMLElement, number[]>();+function poke(el: HTMLElement) {+ const now = performance.now();+ const list = (pokes.get(el) ?? []).filter((t) => now - t < 1800).concat(now);+ const k = list.length;+ pokes.set(el, k >= 6 ? [] : list);+ const kind = k >= 6 ? "dizzy" : k >= 3 ? "love" : "poke";+ if (el.dataset.state === "sleep") { setState(el, "idle"); playShot(el, "startle"); talk(el, "wake"); return; }+ playShot(el, kind);+ if (kind !== "love" || k === 3) talk(el, kind);+}++// —— 撸一撸:鼠标在大头像上来回蹭(1.2 秒内换向 5 次、每段至少 12px)→ 冒爱心、说一句 ——+interface Pet { lx: number; dir: number; run: number; flips: number[]; cool: number }+const pets = new WeakMap<HTMLElement, Pet>();+function onPet(e: PointerEvent) {+ if (e.pointerType !== "mouse") return;+ const el = e.currentTarget as HTMLElement;+ if (el.offsetWidth < 56) return;+ const s = pets.get(el) ?? { lx: e.clientX, dir: 0, run: 0, flips: [], cool: 0 };+ pets.set(el, s);+ const dx = e.clientX - s.lx;+ s.lx = e.clientX;+ if (Math.abs(dx) < 1) return;+ const dir = Math.sign(dx), now = performance.now();+ if (dir === s.dir) { s.run += Math.abs(dx); return; }+ if (s.dir && s.run >= 12) s.flips = s.flips.filter((t) => now - t < 1200).concat(now);+ s.dir = dir; s.run = Math.abs(dx);+ if (s.flips.length >= 5 && now > s.cool && !el.dataset.shot) {+ s.flips = []; s.cool = now + 2600;+ playShot(el, "love");+ talk(el, "pet");+ }+}+const petReset = (e: PointerEvent) => pets.delete(e.currentTarget as HTMLElement);++// —— 打瞌睡:[data-doze] 里的大头像,可见且你 20 秒没动静时一个接一个睡着(闭眼、歪头、冒 z);+// 一动鼠标 / 滚动 / 按键就全部惊醒(跳一下、头顶一个 !),第一个醒的嘴硬说一句"我没睡" ——+export function mountDoze(root: ParentNode = document) {+ const groups = [...root.querySelectorAll<HTMLElement>("[data-doze]")];+ if (!groups.length || reduce.matches) return;+ const IDLE = 20000;+ const seen = new Set<Element>(), asleep = new Set<HTMLElement>(), timers: number[] = [];+ let idleT = 0, last = 0;+ const io = new IntersectionObserver((es) => es.forEach((e) => (e.isIntersecting ? seen.add(e.target) : seen.delete(e.target))), { threshold: 0.2 });+ groups.forEach((g) => io.observe(g));+ const doze = () => groups.filter((g) => seen.has(g)).forEach((g) => {+ const fs = [...g.querySelectorAll<HTMLElement>(".bot-face.lively")].filter((f) => f.offsetParent && f.dataset.state === "idle");+ fs.sort(() => Math.random() - 0.5).forEach((f, i) => timers.push(window.setTimeout(() => {+ if (f.dataset.state !== "idle" || f.dataset.shot) return;+ setState(f, "sleep"); asleep.add(f);+ }, 300 + i * rnd(900, 2400))));+ });+ const wake = () => {+ const now = performance.now();+ if (now - last < 200 && !asleep.size) return;+ last = now;+ timers.splice(0).forEach(clearTimeout);+ clearTimeout(idleT); idleT = window.setTimeout(doze, IDLE);+ if (!asleep.size) return;+ const list = [...asleep].sort((a, b) => sizeOf(b) - sizeOf(a));+ asleep.clear();+ list.forEach((f, i) => setTimeout(() => {+ if (f.dataset.state !== "sleep") return;+ setState(f, "idle"); playShot(f, "startle");+ if (i === 0) setTimeout(() => talk(f, "wake"), 380);+ }, i * rnd(70, 180)));+ };+ for (const ev of ["pointermove", "pointerdown", "keydown", "scroll", "wheel", "touchstart"]) addEventListener(ev, wake, { passive: true });+ wake();+}++export function mountEyes(root: ParentNode = document) {+ const markEls = [...root.querySelectorAll<SVGSVGElement>("[data-amb-mark]")].filter((el) => !marks.has(el));+ const faceEls = [...root.querySelectorAll<HTMLElement>(".bot-face")].filter((el) => !faces.has(el));+ faceEls.forEach((el) => {+ if (!el.classList.contains("pokeable") || el.dataset.pokeBound) return;+ el.dataset.pokeBound = "1";+ el.addEventListener("click", () => poke(el));+ if (el.classList.contains("lively") && !reduce.matches) { el.addEventListener("pointermove", onPet); el.addEventListener("pointerleave", petReset); }+ });+ if (reduce.matches) { markEls.forEach((el) => (el.dataset.mode = "static")); return; }++ io ??= new IntersectionObserver((es) => es.forEach((e) => {+ const el = e.target as HTMLElement & SVGSVGElement;+ const m = marks.get(el) ?? faces.get(el);+ if (!m) return;+ m.visible = e.isIntersecting;+ if (marks.has(el)) el.dataset.visible = String(e.isIntersecting);+ }), { rootMargin: "120px" });++ markEls.forEach((el) => {+ const sel = el.dataset.lookAt;+ const m: Mark = { el, visible: false, x: 0, y: 0, target: sel ? document.querySelector(sel) : null };+ marks.set(el, m);+ el.style.setProperty("--idle-delay", `${-rnd(0, 7.2).toFixed(2)}s`);+ el.style.setProperty("--blink-delay", `${-rnd(0, 5).toFixed(2)}s`);+ el.querySelector(".amb-mark__lids")?.addEventListener("animationiteration", () => {+ el.style.setProperty("--blink-period", `${rnd(3.2, 7.2).toFixed(2)}s`);+ el.classList.toggle("is-double", Math.random() < 0.15);+ });+ if (!el.closest("a,button")) el.addEventListener("click", () => { el.dataset.state = "happy"; setTimeout(() => delete el.dataset.state, 900); });+ io!.observe(el);+ scheduleGlance(m);+ });+ faceEls.forEach((el) => { faces.set(el, { el, visible: false, x: 0, y: 0, target: null }); io!.observe(el); });++ if (!bound) {+ bound = true;+ addEventListener("pointermove", onMove, { passive: true });+ document.addEventListener("mouseout", onLeave);+ addEventListener("pointerdown", (e) => {+ if (e.pointerType !== "touch") return;+ const hit = document.elementFromPoint(e.clientX, e.clientY);+ marks.forEach((m) => m.visible && hit && glanceAt(m.el, hit, 1200));+ }, { passive: true });+ document.addEventListener("visibilitychange", () => document.documentElement.toggleAttribute("data-tab-hidden", document.hidden));+ reduce.addEventListener("change", () => location.reload());+ }+}diff --git a/site/src/lib/platform.ts b/site/src/lib/platform.tsnew file mode 100644index 0000000..0b7446b--- /dev/null+++ b/site/src/lib/platform.ts@@ -0,0 +1,30 @@+// 系统识别(§12.2):userAgentData.platform → 回退 userAgent;macOS 再尽量判断架构,判断不了时默认 Apple 芯片。+export type OS = "win" | "mac" | "linux" | "mobile" | "unknown";+export interface Platform { os: OS; arch: "arm64" | "x64" | "unknown" }++type UAData = { platform?: string; mobile?: boolean; getHighEntropyValues?: (h: string[]) => Promise<{ architecture?: string }> };++export function osFromStrings(platform: string, ua: string, touchMac = false): OS {+ const s = `${platform} ${ua}`;+ if (/android|iphone|ipad|ipod/i.test(s) || touchMac) return "mobile";+ if (/win/i.test(platform) || /windows/i.test(ua)) return "win";+ if (/mac/i.test(platform) || /macintosh|mac os x/i.test(ua)) return "mac";+ if (/linux|x11|cros/i.test(s)) return "linux";+ return "unknown";+}++export async function detectPlatform(): Promise<Platform> {+ const uad = (navigator as Navigator & { userAgentData?: UAData }).userAgentData;+ const ua = navigator.userAgent;+ // iPadOS 13+ 报自己是 Macintosh,用触点数区分+ const touchMac = /macintosh/i.test(ua) && navigator.maxTouchPoints > 1;+ const os = uad?.mobile ? "mobile" : osFromStrings(uad?.platform ?? navigator.platform ?? "", ua, touchMac);+ let arch: Platform["arch"] = "unknown";+ if (os === "mac" && uad?.getHighEntropyValues) {+ try {+ const v = await uad.getHighEntropyValues(["architecture"]);+ arch = v.architecture === "x86" ? "x64" : v.architecture === "arm" ? "arm64" : "unknown";+ } catch { /* 浏览器不给就按默认 */ }+ }+ return { os, arch };+}diff --git a/site/src/lib/pricing.ts b/site/src/lib/pricing.tsnew file mode 100644index 0000000..bfadc3f--- /dev/null+++ b/site/src/lib/pricing.ts@@ -0,0 +1,189 @@+// 价格数据:把 modelflare.dev/api/pricing 的原始数据整理成页面用的行。+// 构建脚本(scripts/fetch-pricing.ts)、价格表、计算器和单测共用这一份规则,页面上不手写任何价格。+import { z } from "zod";++const Cond = z.object({ metric: z.string(), operator: z.string(), value: z.number() }).passthrough();+const Tier = z+ .object({+ label: z.string(),+ conditions: z.array(Cond).nullable(),+ unit_prices: z.object({ input: z.number(), output: z.number() }).passthrough(),+ })+ .passthrough();+const Model = z+ .object({+ model_name: z.string(),+ vendor_id: z.number().optional(),+ context_window: z.number().nullish(),+ input_price: z.number().nullish(),+ official_input_price: z.number().nullish(),+ official_completion_ratio: z.number().nullish(),+ completion_ratio: z.number().nullish(),+ billing_mode: z.string().nullish(),+ billing_unit: z.string().nullish(),+ enable_groups: z.array(z.string()),+ pricing_rules: z.object({ tiers: z.array(Tier).optional() }).passthrough().nullish(),+ })+ .passthrough();+const Group = z+ .object({+ id: z.string(),+ ratio: z.number(),+ default: z.boolean().optional(),+ kind: z.string().optional(),+ content_type: z.string().optional(),+ public: z.boolean().optional(),+ })+ .passthrough();+export const Pricing = z+ .object({+ pricing_version: z.string(),+ data: z.array(Model),+ group_ratio: z.record(z.number()),+ group_definitions: z.array(Group),+ vendors: z.array(z.object({ id: z.number(), name: z.string() }).passthrough()),+ first_topup_offers: z+ .array(z.object({ group: z.string(), minimum_topup_amount: z.number().optional(), ratio: z.number().optional() }).passthrough())+ .optional(),+ })+ .passthrough();+export type RawPricing = z.infer<typeof Pricing>;+type RawModel = RawPricing["data"][number];++export type GroupKind = "stable" | "award" | "campaign" | "enterprise" | "other";++export interface PriceTier { label: string; maxInputTokens: number | null; input: number; output: number }+export interface PriceGroup {+ id: string;+ kind: GroupKind;+ ratio: number;+ input: number;+ output: number;+ isDefault?: boolean;+ conditional?: { minTopupUSD: number };+}+export interface PriceRow {+ model: string;+ vendor: string;+ contextWindow: number | null;+ defaultGroup: string;+ /** 默认线路价,USD / 1M tokens(标准档) */+ input: number;+ output: number;+ /** 官方价:与 modelflare.dev/pricing 一致——有 official_input_price 用它,否则用基础价 */+ officialInput: number;+ officialOutput: number;+ ratio: number;+ /** 分档(无分档时为一档 standard,maxInputTokens = null) */+ tiers: PriceTier[];+ groups: PriceGroup[];+}++export interface PricingConfig {+ featuredModels: string[];+ sampleModel: string;+ sampleUsage: { days: number; msgs: number; inTok: number; outTok: number };+}++export interface PriceSample { model: string; input: string; output: string; officialIn: string; officialOut: string; monthly: string }++export interface Snapshot {+ fetchedAt: string;+ pricingVersion: string;+ source: string;+ stale: boolean;+ counts: { models: number; text: number; media: number; vendors: number };+ vendors: string[];+ config: Pick<PricingConfig, "featuredModels" | "sampleModel" | "sampleUsage">;+ rows: PriceRow[];+ sample: PriceSample;+}++export const isText = (m: RawModel) => m.billing_unit == null;++/** 6 位小数以内、去掉末尾 0:0.0315 / 0.257143 / 1.26 */+export const round6 = (n: number) => Number(n.toFixed(6));+export const fmtPrice = (n: number) => "$" + round6(n).toString();++function kindOf(id: string, def?: { kind?: string }): GroupKind {+ if (id.endsWith("-enterprise")) return "enterprise";+ const k = def?.kind;+ return k === "stable" || k === "award" || k === "campaign" ? k : "other";+}++export function deriveRows(raw: RawPricing): PriceRow[] {+ const defs = new Map(raw.group_definitions.map((g) => [g.id, g]));+ const offers = new Map((raw.first_topup_offers ?? []).map((o) => [o.group, o]));+ const vendors = new Map(raw.vendors.map((v) => [v.id, v.name]));+ // group_ratio 为准(group_ratio 与 group_definitions 的 id 偶有差异);条件价线路的倍率在 first_topup_offers 里+ const ratioOf = (g: string) => raw.group_ratio[g] ?? offers.get(g)?.ratio ?? defs.get(g)?.ratio;++ return raw.data.filter(isText).map((m) => {+ const vendor = vendors.get(m.vendor_id ?? -1) ?? "—";+ const tiers = baseTiers(m);+ const std = tiers[0];+ const groups: PriceGroup[] = m.enable_groups+ .filter((g) => ratioOf(g) != null)+ .map((g) => {+ const ratio = ratioOf(g)!;+ const offer = offers.get(g);+ const out: PriceGroup = { id: g, kind: offer ? "campaign" : kindOf(g, defs.get(g)), ratio, input: round6(std.input * ratio), output: round6(std.output * ratio) };+ if (offer) out.conditional = { minTopupUSD: offer.minimum_topup_amount ?? 0 };+ return out;+ });+ const def = defaultGroup(groups, defs);+ groups.forEach((g) => g.id === def.id && (g.isDefault = true));+ groups.sort((a, b) => Number(!!a.conditional) - Number(!!b.conditional) || a.ratio - b.ratio);+ return {+ model: m.model_name,+ vendor,+ contextWindow: m.context_window ?? null,+ defaultGroup: def.id,+ input: def.input,+ output: def.output,+ ...officialOf(m, std),+ ratio: def.ratio,+ tiers,+ groups,+ };+ });+}++/** 默认线路:页面标 Default 的 → *-stable → 非活动、非 award 的最低倍率线路。条件价线路永远不做默认。 */+function defaultGroup(groups: PriceGroup[], defs: Map<string, { default?: boolean }>): PriceGroup {+ const open = groups.filter((g) => !g.conditional);+ const pick =+ open.find((g) => defs.get(g.id)?.default) ??+ open.find((g) => g.id.endsWith("-stable")) ??+ open.filter((g) => g.kind !== "campaign" && g.kind !== "award").sort((a, b) => a.ratio - b.ratio)[0];+ if (!pick) throw new Error(`没有可用的默认线路:${groups.map((g) => g.id).join(", ")}`);+ return pick;+}++/** 基础价(官方价)分档;tiered_expr 用 pricing_rules.tiers,否则 input_price 与 input_price × completion_ratio 一档 */+function baseTiers(m: RawModel): PriceTier[] {+ const t = m.pricing_rules?.tiers;+ if (m.billing_mode === "tiered_expr" && t?.length) {+ return t.map((x) => {+ const le = x.conditions?.find((c) => c.metric === "input_context_tokens" && (c.operator === "<=" || c.operator === "<"));+ const max = le ? (le.operator === "<" ? le.value - 1 : le.value) : null;+ return { label: x.label, maxInputTokens: max, input: x.unit_prices.input, output: x.unit_prices.output };+ });+ }+ if (m.input_price == null || m.completion_ratio == null) throw new Error(`${m.model_name} 缺少 input_price / completion_ratio`);+ return [{ label: "standard", maxInputTokens: null, input: m.input_price, output: m.input_price * m.completion_ratio }];+}++/** 官方价(modelflare.dev/pricing 的同一规则):official_input_price > 0 时用它(输出 × official_completion_ratio ?? completion_ratio),否则用标准档基础价 */+function officialOf(m: RawModel, std: PriceTier) {+ const o = m.official_input_price;+ if (o != null && Number.isFinite(o) && o > 0) {+ return { officialInput: round6(o), officialOutput: round6(o * (m.official_completion_ratio ?? m.completion_ratio ?? 0)) };+ }+ return { officialInput: round6(std.input), officialOutput: round6(std.output) };+}++/** 单条请求的输入上下文落在哪一档(阈值按单条请求判断) */+export function tierFor(row: Pick<PriceRow, "tiers">, inTok: number): PriceTier {+ return row.tiers.find((t) => t.maxInputTokens == null || inTok <= t.maxInputTokens) ?? row.tiers[row.tiers.length - 1];+}diff --git a/site/src/lib/seo.ts b/site/src/lib/seo.tsnew file mode 100644index 0000000..c290bad--- /dev/null+++ b/site/src/lib/seo.ts@@ -0,0 +1,32 @@+// 结构化数据(§15):SoftwareApplication(offers 只描述 App 本身:免费)、Organization、FAQPage(与可见文案一致)。+import { dict, fmt, buildVars, href, type Lang } from "../i18n";+import { ORIGIN, GITHUB_URL } from "./site";++export function homeJsonLd(lang: Lang) {+ const t = dict(lang);+ const v = buildVars(lang);+ const url = `${ORIGIN}${href(lang, "/")}`;+ return [+ {+ "@context": "https://schema.org",+ "@type": "SoftwareApplication",+ name: "AnyModelBot",+ applicationCategory: "ProductivityApplication",+ operatingSystem: "Windows, macOS, Linux",+ description: t.meta.description,+ url,+ inLanguage: t.meta.lang,+ license: "https://opensource.org/licenses/MIT",+ softwareVersion: String(v.version),+ offers: { "@type": "Offer", price: "0", priceCurrency: "USD" },+ codeRepository: GITHUB_URL,+ },+ { "@context": "https://schema.org", "@type": "Organization", name: "AnyModelBot", url: `${ORIGIN}/`, logo: `${ORIGIN}/icon-512.png`, sameAs: [GITHUB_URL] },+ {+ "@context": "https://schema.org",+ "@type": "FAQPage",+ inLanguage: t.meta.lang,+ mainEntity: t.faq.items.map((it) => ({ "@type": "Question", name: it.q, acceptedAnswer: { "@type": "Answer", text: fmt(it.a, v) } })),+ },+ ];+}diff --git a/site/src/lib/site.ts b/site/src/lib/site.tsnew file mode 100644index 0000000..a4767b6--- /dev/null+++ b/site/src/lib/site.ts@@ -0,0 +1,45 @@+// 站点级数据:部署值(环境变量,缺省时保留占位符,生产构建由 check-placeholders 拦下)、下载数据、价格快照。+import { z } from "zod";+import releasesJson from "../data/releases.json";+import snapshotJson from "../data/pricing.snapshot.json";+import type { Snapshot } from "./pricing";++const env = (k: string) => (import.meta.env[k] as string | undefined) || process.env[k] || `{${k}}`;++export const SITE_DOMAIN = env("SITE_DOMAIN");+export const GITHUB_URL = env("GITHUB_URL");+export const SECURITY_EMAIL = env("SECURITY_EMAIL");+// 统计是可选的:没配置时页面不加载统计脚本(不留占位符)+const optional = (k: string) => (import.meta.env[k] as string | undefined) || process.env[k] || "";+export const ANALYTICS_SCRIPT_URL = optional("ANALYTICS_SCRIPT_URL");+export const ANALYTICS_SITE_ID = optional("ANALYTICS_SITE_ID");+export const ORIGIN = `https://${SITE_DOMAIN}`;++/** 跳到 Modelflare 的链接都带来源参数:全项目统一 utm_source=anymodelbot&utm_campaign=amb_<位置>,官网是 amb_homepage */+export const MF_UTM = "utm_source=anymodelbot&utm_campaign=amb_homepage";+const mf = (url: string) => `${url}${url.includes("?") ? "&" : "?"}${MF_UTM}`;++export const MF = {+ home: mf("https://modelflare.dev/"),+ pricing: mf("https://modelflare.dev/pricing"),+ docs: mf("https://docs.modelflare.dev/"),+};++const Bin = z.object({ url: z.string().min(1), sha256: z.string().min(1), sizeMB: z.number().nonnegative() });+const Releases = z.object({+ version: z.string().min(1),+ publishedAt: z.string().min(1),+ platforms: z.object({+ "win-x64": Bin,+ "mac-arm64": Bin,+ "mac-x64": Bin,+ "linux-x64": Bin,+ docker: z.object({ image: z.string().min(1), command: z.string().min(1) }),+ }),+});+export const releases = Releases.parse(releasesJson);+export type PlatformId = "win-x64" | "mac-arm64" | "mac-x64" | "linux-x64";+export const PLATFORMS: PlatformId[] = ["win-x64", "mac-arm64", "mac-x64", "linux-x64"];++export const pricing = snapshotJson as Snapshot;+export const rowOf = (model: string) => pricing.rows.find((r) => r.model === model);diff --git a/site/src/lib/snapshot.ts b/site/src/lib/snapshot.tsnew file mode 100644index 0000000..14bd7fa--- /dev/null+++ b/site/src/lib/snapshot.ts@@ -0,0 +1,43 @@+// 原始价格数据 → 快照(构建脚本与单测共用)+import { estimate } from "./calc";+import { fmtMoney } from "./calc";+import { deriveRows, fmtPrice, Pricing, type PricingConfig, type Snapshot } from "./pricing";++export const SOURCE = "https://modelflare.dev/api/pricing";++/** 2026-10-30T21:24:41+08:00:时间一律按 UTC+8 写 */+export function isoUtc8(d: Date): string {+ const t = new Date(d.getTime() + 8 * 3600_000).toISOString().slice(0, 19);+ return `${t}+08:00`;+}++export function buildSnapshot(input: unknown, cfg: PricingConfig, now: Date): Snapshot {+ const raw = Pricing.parse(input);+ const rows = deriveRows(raw);+ for (const id of [...cfg.featuredModels, cfg.sampleModel]) {+ if (!rows.some((r) => r.model === id)) throw new Error(`精选模型 ${id} 不在价格数据里`);+ }+ const sm = rows.find((r) => r.model === cfg.sampleModel) ?? rows.find((r) => r.model === cfg.featuredModels[0])!;+ const u = cfg.sampleUsage;+ const est = estimate(sm, { group: sm.defaultGroup, msgs: u.msgs, inTok: u.inTok, outTok: u.outTok }, u.days);+ const text = rows.length;+ const usedVendors = new Set(raw.data.map((m) => m.vendor_id));+ return {+ fetchedAt: isoUtc8(now),+ pricingVersion: raw.pricing_version,+ source: SOURCE,+ stale: false,+ counts: { models: raw.data.length, text, media: raw.data.length - text, vendors: raw.vendors.filter((v) => usedVendors.has(v.id)).length },+ vendors: raw.vendors.filter((v) => usedVendors.has(v.id)).map((v) => v.name),+ config: { featuredModels: cfg.featuredModels, sampleModel: sm.model, sampleUsage: cfg.sampleUsage },+ rows,+ sample: {+ model: sm.model,+ input: fmtPrice(sm.input),+ output: fmtPrice(sm.output),+ officialIn: fmtPrice(sm.officialInput),+ officialOut: fmtPrice(sm.officialOutput),+ monthly: fmtMoney(est.monthly),+ },+ };+}diff --git a/site/src/lib/vendors.ts b/site/src/lib/vendors.tsnew file mode 100644index 0000000..f89683f--- /dev/null+++ b/site/src/lib/vendors.ts@@ -0,0 +1,18 @@+// 厂商名 → 标志(src/data/vendor-logos.ts)。价格快照里的厂商名照 Modelflare 写("Moonshot AI"、"Zhipu AI"),+// 先归一化成小写字母数字再查;查不到(比如"快手")就返回 null,组件改用首字母小圆片。+import { VENDOR_LOGOS, VENDOR_LOGOS_COLOR } from "../data/vendor-logos";++export const vendorKey = (vendor: string) => vendor.toLowerCase().replace(/[^a-z0-9]/g, "");++// 同一家厂商在别处的写法+const ALIAS: Record<string, string> = { moonshot: "moonshotai", kimi: "moonshotai", zhipu: "zhipuai", alibaba: "alibabacloud", qwen: "alibabacloud", typesafeai: "typesafe", x: "xai" };++/** 有标志时返回图标表里的键(<symbol id="vl-键">),没有时返回 null */+export function vendorLogo(vendor: string | undefined): string | null {+ if (!vendor) return null;+ const k = vendorKey(vendor);+ const key = k in VENDOR_LOGOS ? k : ALIAS[k];+ return key && key in VENDOR_LOGOS ? key : null;+}++export { VENDOR_LOGOS, VENDOR_LOGOS_COLOR };diff --git a/site/src/pages/404.astro b/site/src/pages/404.astronew file mode 100644index 0000000..bb66738--- /dev/null+++ b/site/src/pages/404.astro@@ -0,0 +1,4 @@+---+import V from "../views/NotFoundView.astro";+---+<V lang="zh" />diff --git a/site/src/pages/changelog.astro b/site/src/pages/changelog.astronew file mode 100644index 0000000..51972e3--- /dev/null+++ b/site/src/pages/changelog.astro@@ -0,0 +1,4 @@+---+import V from "../views/ChangelogView.astro";+---+<V lang="zh" />diff --git a/site/src/pages/download.astro b/site/src/pages/download.astronew file mode 100644index 0000000..bf5692a--- /dev/null+++ b/site/src/pages/download.astro@@ -0,0 +1,4 @@+---+import V from "../views/DownloadView.astro";+---+<V lang="zh" />diff --git a/site/src/pages/en/changelog.astro b/site/src/pages/en/changelog.astronew file mode 100644index 0000000..d60b5c6--- /dev/null+++ b/site/src/pages/en/changelog.astro@@ -0,0 +1,4 @@+---+import V from "../../views/ChangelogView.astro";+---+<V lang="en" />diff --git a/site/src/pages/en/download.astro b/site/src/pages/en/download.astronew file mode 100644index 0000000..ac6b1f4--- /dev/null+++ b/site/src/pages/en/download.astro@@ -0,0 +1,4 @@+---+import V from "../../views/DownloadView.astro";+---+<V lang="en" />diff --git a/site/src/pages/en/index.astro b/site/src/pages/en/index.astronew file mode 100644index 0000000..e9731d8--- /dev/null+++ b/site/src/pages/en/index.astro@@ -0,0 +1,4 @@+---+import Home from "../../views/Home.astro";+---+<Home lang="en" />diff --git a/site/src/pages/en/licenses.astro b/site/src/pages/en/licenses.astronew file mode 100644index 0000000..12864b2--- /dev/null+++ b/site/src/pages/en/licenses.astro@@ -0,0 +1,4 @@+---+import V from "../../views/LicensesView.astro";+---+<V lang="en" />diff --git a/site/src/pages/en/pricing.astro b/site/src/pages/en/pricing.astronew file mode 100644index 0000000..ae3fb01--- /dev/null+++ b/site/src/pages/en/pricing.astro@@ -0,0 +1,4 @@+---+import V from "../../views/PricingView.astro";+---+<V lang="en" />diff --git a/site/src/pages/en/privacy.astro b/site/src/pages/en/privacy.astronew file mode 100644index 0000000..b03a4e2--- /dev/null+++ b/site/src/pages/en/privacy.astro@@ -0,0 +1,4 @@+---+import V from "../../views/PrivacyView.astro";+---+<V lang="en" />diff --git a/site/src/pages/en/security.astro b/site/src/pages/en/security.astronew file mode 100644index 0000000..83e003c--- /dev/null+++ b/site/src/pages/en/security.astro@@ -0,0 +1,4 @@+---+import V from "../../views/SecurityView.astro";+---+<V lang="en" />diff --git a/site/src/pages/index.astro b/site/src/pages/index.astronew file mode 100644index 0000000..33011e9--- /dev/null+++ b/site/src/pages/index.astro@@ -0,0 +1,4 @@+---+import Home from "../views/Home.astro";+---+<Home lang="zh" />diff --git a/site/src/pages/licenses.astro b/site/src/pages/licenses.astronew file mode 100644index 0000000..fe35db4--- /dev/null+++ b/site/src/pages/licenses.astro@@ -0,0 +1,4 @@+---+import V from "../views/LicensesView.astro";+---+<V lang="zh" />diff --git a/site/src/pages/pricing.astro b/site/src/pages/pricing.astronew file mode 100644index 0000000..074a65c--- /dev/null+++ b/site/src/pages/pricing.astro@@ -0,0 +1,4 @@+---+import V from "../views/PricingView.astro";+---+<V lang="zh" />diff --git a/site/src/pages/privacy.astro b/site/src/pages/privacy.astronew file mode 100644index 0000000..6b84b0a--- /dev/null+++ b/site/src/pages/privacy.astro@@ -0,0 +1,4 @@+---+import V from "../views/PrivacyView.astro";+---+<V lang="zh" />diff --git a/site/src/pages/robots.txt.ts b/site/src/pages/robots.txt.tsnew file mode 100644index 0000000..9a5008e--- /dev/null+++ b/site/src/pages/robots.txt.ts@@ -0,0 +1,3 @@+import type { APIRoute } from "astro";+import { ORIGIN } from "../lib/site";+export const GET: APIRoute = () => new Response(`User-agent: *\nAllow: /\n\nSitemap: ${ORIGIN}/sitemap.xml\n`, { headers: { "Content-Type": "text/plain" } });diff --git a/site/src/pages/security.astro b/site/src/pages/security.astronew file mode 100644index 0000000..9511406--- /dev/null+++ b/site/src/pages/security.astro@@ -0,0 +1,4 @@+---+import V from "../views/SecurityView.astro";+---+<V lang="zh" />diff --git a/site/src/pages/sitemap.xml.ts b/site/src/pages/sitemap.xml.tsnew file mode 100644index 0000000..261b775--- /dev/null+++ b/site/src/pages/sitemap.xml.ts@@ -0,0 +1,16 @@+// sitemap(§15):首页与附属页的中英文版本,带 hreflang 互指。+import type { APIRoute } from "astro";+import { ORIGIN } from "../lib/site";+import { href } from "../i18n";++const PATHS = ["/", "/download", "/security", "/pricing", "/changelog", "/privacy", "/licenses"];+export const GET: APIRoute = () => {+ const urls = PATHS.flatMap((p) =>+ (["zh", "en"] as const).map((lang) => {+ const alt = (["zh", "en"] as const).map((l) => `<xhtml:link rel="alternate" hreflang="${l === "zh" ? "zh-CN" : "en"}" href="${ORIGIN}${href(l, p)}"/>`).join("");+ return `<url><loc>${ORIGIN}${href(lang, p)}</loc>${alt}<xhtml:link rel="alternate" hreflang="x-default" href="${ORIGIN}${href("zh", p)}"/></url>`;+ }),+ );+ const xml = `<?xml version="1.0" encoding="UTF-8"?>\n<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">\n${urls.join("\n")}\n</urlset>\n`;+ return new Response(xml, { headers: { "Content-Type": "application/xml" } });+};diff --git a/site/src/scripts/banner.ts b/site/src/scripts/banner.tsnew file mode 100644index 0000000..aa7ffee--- /dev/null+++ b/site/src/scripts/banner.ts@@ -0,0 +1,133 @@+// 顶部公告条的交互(components/SiteBanner.astro):轮播、翻页 / 滑动、关闭、按系统换下载直链、倒计时、埋点。+// 显示哪些条目已由组件里的内联脚本在首帧前决定(带 data-on 的是当前这条),这里接着往下做。+import type { Platform } from "../lib/platform";++type Deps = {+ track: (name: string, props?: Record<string, unknown>) => void;+ platform: Promise<Platform>;+ data: { lang: "zh" | "en"; platforms?: Record<string, { url: string }>; i18n: Record<string, string> };+ store: { get: (k: string) => string | null; set: (k: string, v: string) => void };+};++const KEY = "amb-banner"; // 关过的条目 id(JSON 数组,只留最近 30 个)+const DAY = 864e5;++export function initBanner({ track, platform, data, store }: Deps) {+ const bar = document.querySelector<HTMLElement>("[data-sbar]");+ if (!bar || bar.hidden) return;+ const items = [...bar.querySelectorAll<HTMLElement>("[data-sbar-item]")].filter((el) => !el.hidden);+ if (!items.length) return;+ const chip = bar.querySelector<HTMLElement>("[data-sbar-chip]");+ const count = bar.querySelector<HTMLElement>("[data-sbar-count]");+ const reduce = matchMedia("(prefers-reduced-motion: reduce)");+ let cur = Math.max(0, items.findIndex((el) => el.hasAttribute("data-on")));++ // —— 曝光:每条第一次出现时记一次 ——+ const seen = new Set<string>();+ const view = () => {+ const el = items[cur], id = el.dataset.id!;+ if (seen.has(id)) return;+ seen.add(id);+ track("banner_view", { id, kind: el.dataset.kind });+ };+ view();++ // —— 切换:旧的往翻页方向淡出,新的从另一侧淡入 ——+ function show(n: number, dir: 1 | -1) {+ const next = (n + items.length) % items.length;+ if (next === cur) return;+ const prev = items[cur], el = items[next];+ prev.removeAttribute("data-on");+ delete prev.dataset.from;+ prev.dataset.out = dir > 0 ? "up" : "down";+ setTimeout(() => { if (!prev.hasAttribute("data-on")) delete prev.dataset.out; }, 500);+ delete el.dataset.out;+ el.dataset.from = dir > 0 ? "below" : "above";+ void el.offsetWidth; // 先落到起点再过渡+ el.setAttribute("data-on", "");+ cur = next;+ bar!.dataset.tone = el.dataset.tone;+ if (count) count.textContent = `${cur + 1}/${items.length}`;+ view();+ }++ // —— 自动轮播:悬停、聚焦、标签页在后台时暂停;访客自己翻过就不再自动;减少动态效果时不自动 ——+ const ms = Number(bar.dataset.rotate) || 6000;+ let timer = 0, hover = false, focus = false, manual = false;+ const schedule = () => {+ clearTimeout(timer);+ if (items.length < 2 || manual || hover || focus || reduce.matches || document.hidden || bar.hidden) return;+ timer = window.setTimeout(() => { show(cur + 1, 1); schedule(); }, ms);+ };+ const step = (dir: 1 | -1) => { manual = true; show(cur + dir, dir); schedule(); };+ bar.addEventListener("pointerenter", (e) => { if (e.pointerType === "mouse") { hover = true; schedule(); } });+ bar.addEventListener("pointerleave", (e) => { if (e.pointerType === "mouse") { hover = false; schedule(); } });+ bar.addEventListener("focusin", () => { focus = true; schedule(); });+ bar.addEventListener("focusout", (e) => { if (!bar.contains(e.relatedTarget as Node | null)) { focus = false; schedule(); } });+ document.addEventListener("visibilitychange", schedule);+ reduce.addEventListener?.("change", schedule);+ bar.querySelector("[data-sbar-prev]")?.addEventListener("click", () => step(-1));+ bar.querySelector("[data-sbar-next]")?.addEventListener("click", () => step(1));+ bar.addEventListener("keydown", (e) => {+ if (items.length < 2 || (e.key !== "ArrowLeft" && e.key !== "ArrowRight")) return;+ e.preventDefault();+ step(e.key === "ArrowRight" ? 1 : -1);+ });+ // 手机上左右滑+ const stack = bar.querySelector<HTMLElement>("[data-sbar-stack]");+ let x0 = 0, y0 = 0;+ stack?.addEventListener("touchstart", (e) => { x0 = e.touches[0].clientX; y0 = e.touches[0].clientY; }, { passive: true });+ stack?.addEventListener("touchend", (e) => {+ const dx = e.changedTouches[0].clientX - x0, dy = e.changedTouches[0].clientY - y0;+ if (items.length > 1 && Math.abs(dx) > 40 && Math.abs(dx) > Math.abs(dy) * 1.5) step(dx < 0 ? 1 : -1);+ }, { passive: true });+ schedule();++ // —— 关闭:记下这次看到的公告(换了 id 的新公告还会出现);有语言提示时同时记住"留在当前语言" ——+ bar.querySelector("[data-sbar-close]")?.addEventListener("click", () => {+ const ids = items.filter((el) => el.dataset.kind !== "lang").map((el) => el.dataset.id!);+ let gone: unknown = [];+ try { gone = JSON.parse(store.get(KEY) || "[]"); } catch { /* 坏数据就当没有 */ }+ const list = Array.isArray(gone) ? gone.filter((x): x is string => typeof x === "string") : [];+ if (ids.length) store.set(KEY, JSON.stringify([...new Set([...list, ...ids])].slice(-30)));+ if (items.some((el) => el.dataset.kind === "lang") || (chip && !chip.hidden)) store.set("amb-lang", data.lang);+ track("banner_dismiss", { id: items[cur].dataset.id, kind: items[cur].dataset.kind, count: items.length });+ clearTimeout(timer);+ // 用键盘关的:焦点交给导航的第一个链接,不让它掉回页面开头+ if (bar.contains(document.activeElement)) document.querySelector<HTMLElement>("[data-nav] a")?.focus({ preventScroll: true });+ if (reduce.matches) { bar.hidden = true; return; }+ bar.style.height = `${bar.offsetHeight}px`;+ void bar.offsetHeight;+ bar.classList.add("is-closing");+ bar.style.height = "0px";+ const done = () => { bar.hidden = true; bar.classList.remove("is-closing"); bar.style.height = ""; };+ bar.addEventListener("transitionend", (e) => { if (e.target === bar && e.propertyName === "height") done(); });+ setTimeout(done, 600);+ });++ // —— 倒计时:截止前 7 天把"截至 11 月 30 日"换成"还剩 N 天",最后一天显示"今天截止" ——+ const now = Date.now();+ items.forEach((el) => {+ const note = el.querySelector<HTMLElement>("[data-sbar-note]");+ const end = Date.parse(el.dataset.end || "");+ if (!note || Number.isNaN(end)) return;+ const n = Math.ceil((end - now) / DAY);+ if (n <= 1) note.textContent = data.i18n.bannerLastDay;+ else if (n <= 7) note.textContent = data.i18n.bannerLeft.replace("{n}", String(n));+ });++ // —— 发版条的下载按钮:识别出系统、且有安装包地址时,直接下载对应安装包(点击埋点和提示走 client.ts 的下载逻辑) ——+ const dl = [...bar.querySelectorAll<HTMLAnchorElement>("a[data-dl-auto]")];+ if (dl.length) platform.then((p) => {+ const pid = p.os === "win" ? "win-x64" : p.os === "mac" ? (p.arch === "x64" ? "mac-x64" : "mac-arm64") : p.os === "linux" ? "linux-x64" : null;+ const url = pid ? data.platforms?.[pid]?.url : undefined;+ if (!pid || !url || /\{[A-Z][A-Z0-9_]*\}/.test(url)) return; // 识别不出或还没有安装包:留在 /download+ dl.forEach((a) => {+ a.href = url;+ a.setAttribute("download", "");+ a.dataset.dlPlatform = pid;+ const lab = a.querySelector("[data-sbar-cta-label]");+ if (lab && data.i18n[p.os]) lab.textContent = data.i18n[p.os];+ });+ });+}diff --git a/site/src/scripts/client.ts b/site/src/scripts/client.tsnew file mode 100644index 0000000..36e456e--- /dev/null+++ b/site/src/scripts/client.ts@@ -0,0 +1,267 @@+// 所有页面共用的交互:主题、语言提示、导航、菜单、对话框、复制、Toast、下载识别、入场动画、埋点。+// 每块都先判断元素在不在;本地存储一律 try/catch(隐私模式下可能抛错)。+import { mountEyes } from "../lib/eyes";+import { detectPlatform } from "../lib/platform";+import { initBanner } from "./banner";+import "./sections";++type Data = {+ version: string; publishedAt: string; docker: string; github: string; lang: "zh" | "en";+ platforms: Record<string, { url: string; sha256: string; sizeMB: number }>;+ i18n: Record<"win" | "mac" | "linux" | "mobile" | "generic" | "downloading" | "started" | "copied" | "copyFailed" | "bannerLeft" | "bannerLastDay", string>;+};+const data: Data = JSON.parse(document.getElementById("amb-data")?.textContent || "{}");+const $$ = <T extends Element = HTMLElement>(s: string, r: ParentNode = document) => [...r.querySelectorAll<T>(s)];+const store = {+ get: (k: string) => { try { return localStorage.getItem(k); } catch { return null; } },+ set: (k: string, v: string) => { try { localStorage.setItem(k, v); } catch { /* 存不了就算了 */ } },+};++// —— 埋点(Umami;脚本不在时为空操作) ——+export function track(name: string, props?: Record<string, unknown>) {+ const u = (window as unknown as { umami?: { track: (n: string, p?: object) => void } }).umami;+ try { u?.track(name, props); } catch { /* 统计失败不影响页面 */ }+}+document.addEventListener("click", (e) => {+ const el = (e.target as Element).closest<HTMLElement>("[data-track]");+ if (!el) return;+ const props: Record<string, string> = {};+ for (const [k, v] of Object.entries(el.dataset)) if (k.startsWith("track") && k !== "track") props[k.slice(5).toLowerCase()] = v!;+ track(el.dataset.track!, props);+});++// —— Toast ——+export function toast(msg: string, kind: "ok" | "error" = "ok") {+ const box = document.querySelector("[data-toasts]");+ if (!box) return;+ const n = document.createElement("div");+ n.className = "toast"; n.dataset.kind = kind; n.textContent = msg;+ box.append(n);+ setTimeout(() => n.remove(), 3000);+}++(window as unknown as { ambToast: typeof toast }).ambToast = toast;++// —— 复制 ——+async function copyText(text: string, btn?: HTMLElement) {+ try {+ await navigator.clipboard.writeText(text);+ toast(data.i18n?.copied ?? "Copied");+ if (btn) { btn.dataset.state = "copied"; setTimeout(() => delete btn.dataset.state, 1600); }+ } catch {+ toast(data.i18n?.copyFailed ?? "Copy failed", "error");+ const code = btn?.closest(".code")?.querySelector("code");+ if (code) { const r = document.createRange(); r.selectNodeContents(code); getSelection()?.removeAllRanges(); getSelection()?.addRange(r); }+ }+}+document.addEventListener("click", (e) => {+ const b = (e.target as Element).closest<HTMLElement>("[data-copy-text], [data-copy-from], [data-copy-code]");+ if (!b) return;+ const text = b.dataset.copyText+ ?? (b.dataset.copyFrom ? b.closest("[data-dl], .dl-card")?.querySelector(`[data-dl-${b.dataset.copyFrom}]`)?.textContent : undefined)+ ?? b.closest(".code")?.querySelector("code")?.textContent;+ if (text) copyText(text.trim(), b);+});++// —— 主题 ——+function applyTheme(pref: string) {+ const d = document.documentElement;+ const dark = pref === "system" ? matchMedia("(prefers-color-scheme: dark)").matches : pref !== "light";+ const from = d.dataset.themePref;+ d.dataset.theme = dark ? "dark" : "light";+ d.dataset.themePref = pref;+ document.querySelector("meta[data-theme-color]")?.setAttribute("content", dark ? "#060706" : "#f4f5f7");+ $$("[data-theme-set]").forEach((b) => {+ b.setAttribute(b.getAttribute("role") === "menuitemradio" ? "aria-checked" : "aria-pressed", String(b.dataset.themeSet === pref));+ });+ if (from && from !== pref) track("theme_switch", { from, to: pref });+}+applyTheme(document.documentElement.dataset.themePref || "dark");+document.addEventListener("click", (e) => {+ const b = (e.target as Element).closest<HTMLElement>("[data-theme-set], [data-theme-cycle]");+ if (!b) return;+ const order = ["dark", "light", "system"];+ const pref = b.dataset.themeSet ?? order[(order.indexOf(document.documentElement.dataset.themePref || "dark") + 1) % 3];+ store.set("amb-theme", pref);+ applyTheme(pref);+ closeMenus();+});+matchMedia("(prefers-color-scheme: dark)").addEventListener("change", () => document.documentElement.dataset.themePref === "system" && applyTheme("system"));++// —— 语言:首次访问按浏览器语言提示一次(在顶部公告条里,见 scripts/banner.ts),不强制跳转;点了切换就记住 ——+document.addEventListener("click", (e) => {+ const a = (e.target as Element).closest<HTMLAnchorElement>("a[data-lang-switch]");+ if (!a) return;+ const to = data.lang === "zh" ? "en" : "zh";+ store.set("amb-lang", to);+ track("lang_switch", { from: data.lang, to });+});++// —— 菜单(下载平台、主题) ——+function closeMenus(except?: Element) {+ $$("[data-menu-toggle][aria-expanded='true']").forEach((b) => {+ if (b === except) return;+ b.setAttribute("aria-expanded", "false");+ const m = b.parentElement?.querySelector<HTMLElement>(".menu"); if (m) m.hidden = true;+ });+}+document.addEventListener("click", (e) => {+ const t = e.target as Element;+ const b = t.closest<HTMLElement>("[data-menu-toggle]");+ if (b) {+ const m = b.parentElement!.querySelector<HTMLElement>(".menu")!;+ const open = b.getAttribute("aria-expanded") !== "true";+ closeMenus(b);+ b.setAttribute("aria-expanded", String(open)); m.hidden = !open;+ // 单选菜单(语言、外观)落在当前项上,其他菜单落在第一项+ if (open) (m.querySelector<HTMLElement>('[aria-checked="true"]') ?? m.querySelector<HTMLElement>("a,button"))?.focus();+ return;+ }+ if (!t.closest(".menu")) closeMenus();+ else if (t.closest(".menu a, .menu button")) setTimeout(() => closeMenus(), 0);+});+document.addEventListener("keydown", (e) => {+ if (e.key === "Escape") {+ const open = document.querySelector<HTMLElement>("[data-menu-toggle][aria-expanded='true']");+ if (open) { closeMenus(); open.focus(); }+ }+ const menu = (e.target as Element).closest?.(".menu");+ if (menu && (e.key === "ArrowDown" || e.key === "ArrowUp")) {+ e.preventDefault();+ const items = $$("a,button", menu), i = items.indexOf(e.target as HTMLElement);+ items[(i + (e.key === "ArrowDown" ? 1 : -1) + items.length) % items.length]?.focus();+ }+});++// —— 对话框 / 抽屉(原生 <dialog>:焦点陷阱与 Esc 自带) ——+document.addEventListener("click", (e) => {+ const t = e.target as Element;+ const opener = t.closest<HTMLElement>("[data-open-dialog]");+ if (opener) {+ const d = document.getElementById(opener.dataset.openDialog!) as HTMLDialogElement | null;+ if (d && !d.open) { d.showModal(); if (opener.dataset.track) { /* 已由 data-track 处理 */ } }+ return;+ }+ const closer = t.closest("[data-close-dialog]");+ if (closer) (closer.closest("dialog") as HTMLDialogElement | null)?.close();+ else if (t instanceof HTMLDialogElement && t.classList.contains("sheet")) t.close(); // 点背景关闭+});++// —— 导航:滚动后胶囊加实底与阴影 ——+const nav = document.querySelector("[data-nav]");+if (nav) {+ const onScroll = () => nav.classList.toggle("is-scrolled", scrollY > 12);+ addEventListener("scroll", onScroll, { passive: true }); onScroll();+}++// —— 导航链接:底色跟着悬停 / 焦点滑动,平时停在当前章节(首页滚动跟随)或当前页上 ——+const navLinks = document.querySelector<HTMLElement>("[data-nav-links]");+const navPill = navLinks?.querySelector<HTMLElement>(".nav__pill");+if (navLinks && navPill) {+ const items = $$<HTMLAnchorElement>(".nav__link", navLinks);+ let active: HTMLElement | null = items.find((a) => a.getAttribute("aria-current") === "page") ?? null;+ let hot: HTMLElement | null = null;+ const place = () => {+ items.forEach((a) => a.classList.toggle("is-hot", a === hot));+ const el = hot ?? active;+ if (!el) { navLinks.classList.remove("has-pill"); return; }+ // 底色从隐藏到出现时直接落位再淡入,不从上一个位置滑过来+ const snap = !navLinks.classList.contains("has-pill");+ if (snap) navLinks.classList.add("pill-snap");+ navLinks.style.setProperty("--pill-x", `${el.offsetLeft}px`);+ navLinks.style.setProperty("--pill-w", `${el.offsetWidth}px`);+ navLinks.classList.add("has-pill");+ if (snap) { void navPill.offsetWidth; navLinks.classList.remove("pill-snap"); }+ };+ items.forEach((a) => a.addEventListener("pointerenter", () => { hot = a; place(); }));+ navLinks.addEventListener("pointerleave", () => { hot = null; place(); });+ navLinks.addEventListener("focusin", (e) => { const a = (e.target as Element).closest<HTMLElement>(".nav__link"); if (a) { hot = a; place(); } });+ navLinks.addEventListener("focusout", (e) => { if (!navLinks.contains(e.relatedTarget as Node | null)) { hot = null; place(); } });++ // 首页的章节锚点:视口中间一条窄带碰到哪一章,就标哪一章+ const spy = items+ .filter((a) => a.getAttribute("href")?.startsWith("#"))+ .map((a) => ({ a, sec: document.getElementById(a.hash.slice(1)) }))+ .filter((p): p is { a: HTMLAnchorElement; sec: HTMLElement } => !!p.sec);+ if (spy.length && "IntersectionObserver" in window) {+ const seen = new Set<Element>();+ const io = new IntersectionObserver((es) => {+ es.forEach((e) => (e.isIntersecting ? seen.add(e.target) : seen.delete(e.target)));+ const next = spy.find((p) => seen.has(p.sec))?.a ?? null;+ if (next === active) return;+ active?.classList.remove("is-active");+ active = next;+ active?.classList.add("is-active");+ place();+ }, { rootMargin: "-40% 0px -55% 0px" });+ spy.forEach((p) => io.observe(p.sec));+ }+ place();+ // 字体加载完、窗口尺寸变了,链接宽度会变,重新量一次+ document.fonts?.ready.then(place);+ addEventListener("resize", place, { passive: true });+}++// —— 入场动画:只播一次 ——+const reveal = $$(".reveal, .reveal-hl, [data-inview]");+if ("IntersectionObserver" in window && reveal.length) {+ const io = new IntersectionObserver((es) => es.forEach((e) => {+ if (!e.isIntersecting) return;+ e.target.classList.add("is-in");+ e.target.dispatchEvent(new CustomEvent("amb:inview"));+ io.unobserve(e.target);+ }), { threshold: 0.4, rootMargin: "0px 0px -8% 0px" });+ reveal.forEach((el) => io.observe(el));+} else reveal.forEach((el) => el.classList.add("is-in"));++// —— 下载:识别系统,改主按钮的文字和链接 ——+const platform = detectPlatform().then((p) => {+ document.documentElement.dataset.os = p.os;+ track("page_view", { lang: data.lang, theme: document.documentElement.dataset.theme, referrer_host: document.referrer ? new URL(document.referrer).host : "", os_detected: p.os });+ return p;+});+(async () => {+ const groups = $$("[data-dl]");+ if (!groups.length || !data.platforms) return;+ const p = await platform;+ const label = p.os === "win" ? data.i18n.win : p.os === "mac" ? data.i18n.mac : p.os === "linux" ? data.i18n.linux : p.os === "mobile" ? data.i18n.mobile : data.i18n.generic;+ const pid = p.os === "win" ? "win-x64" : p.os === "mac" ? (p.arch === "x64" ? "mac-x64" : "mac-arm64") : p.os === "linux" ? "linux-x64" : null;+ groups.forEach((g) => {+ const main = g.querySelector<HTMLAnchorElement>("[data-dl-main]")!;+ const lab = g.querySelector<HTMLElement>("[data-dl-label]")!;+ if (!g.dataset.short) lab.textContent = label;+ if (p.os === "mobile") { main.href = `${data.lang === "en" ? "/en/" : "/"}#devices`; main.dataset.platform = "mobile"; }+ else if (pid) {+ main.href = data.platforms[pid].url; main.setAttribute("download", ""); main.dataset.dlPlatform = pid;+ }+ // 识别出的平台在下拉里排第一+ if (pid) { const item = g.querySelector(`.menu [data-dl-platform="${pid}"]`); item?.parentElement?.prepend(item); }+ });+})();+document.addEventListener("click", (e) => {+ const a = (e.target as Element).closest<HTMLAnchorElement>("a[data-dl-platform]");+ if (!a) return;+ const placement = a.closest<HTMLElement>("[data-dl]")?.dataset.placement ?? a.closest<HTMLElement>("[data-placement]")?.dataset.placement ?? "page";+ track("download_start", { platform: a.dataset.dlPlatform, version: data.version, location: placement });+ track("cta_click", { location: placement, label: "download", os_detected: document.documentElement.dataset.os });+ const lab = a.matches("[data-dl-main]") ? a.querySelector<HTMLElement>("[data-dl-label]") : null;+ if (lab) {+ const prev = lab.textContent; lab.textContent = data.i18n.downloading;+ setTimeout(() => (lab.textContent = prev), 2000);+ }+ toast(data.i18n.started);+});++// —— 滚动深度 25/50/75/100 ——+(() => {+ const hit = new Set<number>();+ addEventListener("scroll", () => {+ const pct = Math.round(((scrollY + innerHeight) / document.documentElement.scrollHeight) * 100);+ for (const s of [25, 50, 75, 100]) if (pct >= s && !hit.has(s)) { hit.add(s); track("scroll_depth", { pct: s }); }+ }, { passive: true });+})();++// —— 顶部公告条:轮播、关闭、下载直链、倒计时 ——+initBanner({ track, platform, data, store });++mountEyes();diff --git a/site/src/scripts/eyefield.ts b/site/src/scripts/eyefield.tsnew file mode 100644index 0000000..9c6adaa--- /dev/null+++ b/site/src/scripts/eyefield.ts@@ -0,0 +1,386 @@+// 页脚"眼睛田"(components/Footer.astro 的 [data-eyefield]):AnyModelBot 字标由几百枚迷你 Eyes 标记拼成——一格一张小机器人脸。+// 讲的是产品本身:一群机器人(满屏的脸)、它们看着你(目光跟指针)、任意模型(每隔几秒一道波扫过,换个脑子就换个眼睛色,+// 角上显示真实的模型 ID)、发条消息就有回应(点一下,涟漪扫过的脸眯眼笑)、没人理就打瞌睡(指针一动从那里一圈圈醒过来)。+// 只在页脚进视口、标签页可见时跑;"减少动态效果"时只画一张静止的字标。纯逻辑在 lib/eyefield.ts。+import { MARK, wordLines, cellSize, sampleCells, aim, lens, blinkLid, blinkSpan, easeOutBack, EYE_TOKENS, PLATE_TOKENS, mixHex, pickColor, rng, type Cell } from "../lib/eyefield";++// —— 节奏(毫秒 / 像素) ——+const INTRO_SWEEP = 1100; // 入场:从左到右一路"醒过来"+const INTRO_POP = 420; // 每张脸弹出来的时长+const EYES_OPEN = 220; // 弹出后多久睁眼+const BLINK_MS = 150;+const BLINK_GAP: [number, number] = [2600, 9000];+const SWITCH_EVERY = 7000; // 多久换一次模型+const SWITCH_SWEEP = 1300; // 换模型的波扫过整块字标的时长+const RIPPLE_SPEED = 0.9; // 消息涟漪 px/ms+const HAPPY_MS = 650;+const DOZE_AFTER = 9000; // 指针多久不动就开始犯困+const DOZE_IN = 4000; // 从清醒到睡着+const WAKE_SPEED = 1.4; // 叫醒的波 px/ms+const REACH = 420; // 目光满幅的距离+const LENS_CELLS = 4.5; // "注意到你"的范围(格):指针附近的脸探出头、眼睛睁大+const LENS_MAX = 0.45; // 最多探出多少(不是放大镜,只是凑近一点)+const TOUCH_HOLD = 1600; // 手机上点一下后,大家看着那里多久++interface Face extends Cell {+ size: number; phase: number; lag: number;+ t0: number; // 入场时刻+ color: number; next: number; swapAt: number;+ gx: number; gy: number; // 当前目光+ s: number; bump: number; // 注意到你时探出的程度、一次性的弹跳+ blinkAt: number; blinkStart: number; dbl: boolean;+ happyUntil: number;+ sleep: number; wakeAt: number;+ hit: number; // 最近一次被哪道涟漪扫到+}+interface Ripple { x: number; y: number; t: number; id: number }++const root = document.querySelector<HTMLElement>("[data-eyefield]");+if (root) mount(root);++function mount(root: HTMLElement) {+ const canvas = root.querySelector<HTMLCanvasElement>("canvas");+ const ctx = canvas?.getContext("2d");+ if (!canvas || !ctx) return;+ const modelEl = root.querySelector<HTMLElement>("[data-field-model]");+ const models: string[] = (() => { try { return JSON.parse(root.dataset.models || "[]"); } catch { return []; } })();+ const reduce = matchMedia("(prefers-reduced-motion: reduce)");++ let w = 0, h = 0, dpr = 1, cell = 12, bleed = 0;+ let faces: Face[] = [];+ // 两种画法(footer.css 的变量决定):+ // 发光:深色——统一的灰面罩 + 角色色的眼睛 + 光晕+ // 淡彩:浅色(有 --field-ink 时)——面罩是角色色和底色调出来的淡彩、上浅下深,眼睛统一墨色,面罩一圈极细的边+ let plate = "#1c1e19", cut = "#fff", glow = 0, eyes: string[] = [], plateBase: string[] = [];+ let ink = "", edge = "", tintTop = 0.14, tintBottom = 0.32;+ let plateFill: (string | CanvasGradient)[] = [];+ let main = 0, modelIdx = 0;+ let visible = false, raf = 0, last = 0;+ let introStart = -1, introDone = false, nextSwitch = 0;+ // 指针存视口坐标,每帧再换成画布坐标:页面滚动时眼睛仍然看着指针+ let cx = NaN, cy = NaN, px = NaN, py = NaN, mouse = false, down = false, lastMove = performance.now(), touchUntil = 0;+ let doze = 0;+ const ripples: Ripple[] = [];+ let rippleId = 0;++ const rand = (a: number, b: number) => a + Math.random() * (b - a);++ function readTheme() {+ const cs = getComputedStyle(root);+ const num = (k: string, d: number) => { const v = parseFloat(cs.getPropertyValue(k)); return Number.isFinite(v) ? v : d; };+ plate = cs.getPropertyValue("--field-plate").trim() || plate;+ cut = cs.getPropertyValue("--field-cut").trim() || cut;+ glow = num("--field-glow", 0);+ ink = cs.getPropertyValue("--field-ink").trim();+ edge = cs.getPropertyValue("--field-edge").trim();+ tintTop = num("--field-tint-top", 0.14); tintBottom = num("--field-tint-bottom", 0.32);+ eyes = EYE_TOKENS.map((t) => cs.getPropertyValue(t).trim() || "#d7ff00");+ plateBase = PLATE_TOKENS.map((t) => cs.getPropertyValue(t).trim() || "#d7ff00");+ buildFills();+ setDot();+ }+ /** 每个角色一份面罩填充:淡彩模式是从字标顶到底的渐变(上浅下深,像光从上面打下来),发光模式就是统一的灰 */+ function buildFills() {+ if (!ink) { plateFill = EYE_TOKENS.map(() => plate); return; }+ const top = bleed, bottom = Math.max(top + 1, h - bleed);+ plateFill = plateBase.map((c) => {+ const g = ctx!.createLinearGradient(0, top, 0, bottom);+ g.addColorStop(0, mixHex(c, cut, tintTop));+ g.addColorStop(1, mixHex(c, cut, tintBottom));+ return g;+ });+ }+ /** 角上"换脑"前面的小圆点:当前这一轮的颜色(淡彩模式取面罩色,发光模式取眼睛色) */+ function setDot() {+ root.style.setProperty("--field-dot", ink ? mixHex(plateBase[main], cut, tintBottom + 0.12) : eyes[main]);+ }++ /** 把字标画进一张离屏画布,按格子采样出每张脸的位置 */+ function layout() {+ const cw = canvas!.clientWidth, ch = canvas!.clientHeight;+ if (!cw || !ch) return;+ const sameBox = cw === w && ch === h;+ w = cw; h = ch; dpr = Math.min(window.devicePixelRatio || 1, 2);+ const bw = Math.round(w * dpr), bh = Math.round(h * dpr);+ if (canvas!.width !== bw || canvas!.height !== bh) { canvas!.width = bw; canvas!.height = bh; } // 改尺寸会清空画布,只在真的变了时改+ // 画布比字标盒子上下各多出 --field-bleed:探头、弹跳的脸可以画出去,盒子本身就能贴着字形,不用为它们留白+ bleed = parseFloat(getComputedStyle(root).getPropertyValue("--field-bleed")) || 0;+ const th = Math.max(1, h - 2 * bleed);+ if (sameBox && faces.length) { buildFills(); redraw(); return; }++ const lines = wordLines(w, th);+ const fam = getComputedStyle(root).getPropertyValue("--font-sans").trim() || "sans-serif";+ const mask = document.createElement("canvas");+ mask.width = Math.ceil(w); mask.height = Math.ceil(h);+ const m = mask.getContext("2d", { willReadFrequently: true });+ if (!m) return;+ const TRACK = 0.07, GAP = 0.12; // 字距、行距(em):拼成格子后字母之间至少空出一格+ const widthAt = (s: string, size: number) => {+ m.font = `800 ${size}px ${fam}`;+ return [...s].reduce((a, c) => a + m.measureText(c).width, 0) + TRACK * size * (s.length - 1);+ };+ const vert = (s: string, size: number) => { m.font = `800 ${size}px ${fam}`; const k = m.measureText(s); return [k.actualBoundingBoxAscent, k.actualBoundingBoxDescent]; };+ // 先按 100px 量一遍,再按宽、高两个方向取较小的缩放+ const w100 = Math.max(...lines.map((l) => widthAt(l, 100)));+ const v100 = lines.map((l) => vert(l, 100));+ const h100 = v100.reduce((a, [asc, desc]) => a + asc + desc, 0) + GAP * 100 * (lines.length - 1);+ const size = Math.min((w * 0.985) / w100, (th * 0.96) / h100) * 100;+ const [capH] = vert("M", size);+ cell = cellSize(capH, lines.length > 1 ? 6 : 8);++ m.clearRect(0, 0, mask.width, mask.height);+ m.fillStyle = "#000"; m.textBaseline = "alphabetic"; m.font = `800 ${size}px ${fam}`;+ const s = size / 100;+ let y = bleed + (th - h100 * s) / 2;+ lines.forEach((line, i) => {+ const [asc, desc] = v100[i];+ y += asc * s;+ let x = (w - widthAt(line, size)) / 2;+ for (const c of line) { m.fillText(c, x, y); x += m.measureText(c).width + TRACK * size; }+ y += desc * s + GAP * size;+ });+ const img = m.getImageData(0, 0, mask.width, mask.height);+ const alpha = (x: number, y: number) => {+ const ix = Math.floor(x), iy = Math.floor(y);+ if (ix < 0 || iy < 0 || ix >= img.width || iy >= img.height) return 0;+ return img.data[(iy * img.width + ix) * 4 + 3] / 255;+ };++ const r = rng(7 + lines.length);+ const now = performance.now();+ const playedIntro = introStart >= 0;+ faces = sampleCells(w, h, cell, alpha).map((c) => {+ const delay = (c.x / w) * INTRO_SWEEP + (1 - c.y / h) * 150 + r() * 220;+ return {+ ...c, size: 0.94 + r() * 0.12, phase: r() * Math.PI * 2, lag: 0.1 + r() * 0.12,+ t0: playedIntro ? -Infinity : delay, // 没入场时先存相对延迟,进视口时再加上起点+ color: pickColor(main, EYE_TOKENS.length, r(), r()), next: -1, swapAt: -1,+ gx: 0, gy: 0, s: 1, bump: 0,+ blinkAt: now + rand(...BLINK_GAP), blinkStart: -1, dbl: false,+ happyUntil: 0, sleep: 0, wakeAt: 0, hit: -1,+ };+ });+ buildFills();+ redraw();+ }+ /** 没在跑动画时补画一帧(静止版、或入场后滚出视口时的尺寸 / 主题变化);入场前不画,免得先闪出整块字标 */+ function redraw() {+ if (reduce.matches) still();+ else if (!raf && introStart >= 0) draw(performance.now());+ }++ // —— 事件 ——+ function toLocal() {+ if (Number.isNaN(cx)) { px = py = NaN; return; }+ const r = canvas!.getBoundingClientRect();+ px = cx - r.left; py = cy - r.top;+ }+ function wake(now: number) {+ toLocal();+ if (Number.isNaN(px)) return;+ for (const f of faces) if (f.sleep > 0.05) f.wakeAt = now + Math.hypot(f.x - px, f.y - py) / WAKE_SPEED;+ doze = 0;+ }+ window.addEventListener("pointermove", (e) => {+ if (e.pointerType === "touch") return;+ cx = e.clientX; cy = e.clientY; mouse = true;+ if (!visible) return;+ const now = performance.now();+ lastMove = now;+ if (doze > 0.2) wake(now);+ }, { passive: true });+ window.addEventListener("scroll", () => { if (visible) lastMove = performance.now(); }, { passive: true });+ document.addEventListener("pointerout", (e) => { if (!e.relatedTarget && e.pointerType !== "touch") { cx = cy = NaN; mouse = false; } });+ canvas.addEventListener("pointerdown", (e) => {+ if (reduce.matches) return;+ const now = performance.now();+ cx = e.clientX; cy = e.clientY;+ if (e.pointerType === "touch") { mouse = false; touchUntil = now + TOUCH_HOLD; }+ lastMove = now;+ if (doze > 0.2) wake(now);+ toLocal();+ down = true;+ ripples.push({ x: px, y: py, t: now, id: ++rippleId });+ });+ window.addEventListener("pointerup", () => { down = false; });+ window.addEventListener("pointercancel", () => { down = false; });++ // —— 换模型:主色换一个,一道斜波从左扫到右,扫到的脸眨一下眼、睁开就是新颜色;角上的模型名跟着换 ——+ function switchModel(now: number) {+ main = (main + 1) % EYE_TOKENS.length;+ for (const f of faces) {+ f.next = pickColor(main, EYE_TOKENS.length, Math.random(), Math.random());+ const k = (f.x + (h - f.y) * 0.35) / (w + h * 0.35);+ f.swapAt = now + k * SWITCH_SWEEP;+ if (f.sleep < 0.5) { f.blinkStart = f.swapAt - BLINK_MS / 2; f.dbl = false; }+ }+ setDot();+ if (modelEl && models.length) {+ modelIdx = (modelIdx + 1) % models.length;+ modelEl.classList.remove("is-swap");+ void modelEl.offsetWidth; // 重新触发换字动画+ modelEl.textContent = models[modelIdx];+ modelEl.classList.add("is-swap");+ }+ }++ // —— 每一帧:先算状态,再画 ——+ function frame(now: number) {+ raf = requestAnimationFrame(frame);+ const dt = Math.min(now - (last || now), 50); last = now;+ if (!faces.length) return; // 字体还没到、还没排版+ if (introStart < 0) {+ introStart = now;+ for (const f of faces) f.t0 += now;+ }+ if (!introDone && now > introStart + INTRO_SWEEP + INTRO_POP + 600) { introDone = true; nextSwitch = now + SWITCH_EVERY; }+ if (touchUntil && now > touchUntil) { touchUntil = 0; cx = cy = NaN; }+ toLocal();++ const idle = now - lastMove;+ doze = introDone && idle > DOZE_AFTER ? Math.min(1, doze + dt / DOZE_IN) : Math.max(0, doze - dt / 400);+ // 睡着的时候不换模型(它们在睡觉);按住的时候也不换+ if (introDone && !down && doze < 0.5 && now >= nextSwitch) { switchModel(now); nextSwitch = now + SWITCH_EVERY; }+ const lensR = cell * LENS_CELLS;+ const hasPointer = !Number.isNaN(px);++ for (let i = ripples.length - 1; i >= 0; i--) if ((now - ripples[i].t) * RIPPLE_SPEED > Math.hypot(w, h) + cell) ripples.splice(i, 1);++ for (const f of faces) {+ // 目光:有指针就看指针,没有就自己慢慢东张西望;犯困时往下耷拉+ let tx: number, ty: number;+ if (hasPointer) [tx, ty] = aim(px - f.x, py - f.y, REACH);+ else { tx = 0.35 * Math.sin(now * 0.0005 + f.phase); ty = 0.2 * Math.sin(now * 0.0007 + f.phase * 1.3); }+ ty += 0.6 * f.sleep;+ const k = 1 - Math.pow(1 - f.lag, dt / 16.7);+ f.gx += (tx - f.gx) * k; f.gy += (ty - f.gy) * k;++ // 注意到你:鼠标附近的脸探出头(手机上没有悬停,不做)+ const d = hasPointer ? Math.hypot(px - f.x, py - f.y) : Infinity;+ const near = mouse ? lens(d, lensR) : 0;+ f.s += (1 + LENS_MAX * near - f.s) * (1 - Math.pow(0.8, dt / 16.7));+ f.bump *= Math.pow(0.9, dt / 16.7);++ // 消息涟漪扫到:眯眼笑 + 弹一下+ for (const rp of ripples) {+ if (f.hit === rp.id) continue;+ if (Math.abs(Math.hypot(f.x - rp.x, f.y - rp.y) - (now - rp.t) * RIPPLE_SPEED) < cell) { f.hit = rp.id; f.happyUntil = now + HAPPY_MS; f.bump = 0.45; }+ }+ // 换色+ if (f.swapAt > 0 && now >= f.swapAt) { f.color = f.next; f.swapAt = -1; }+ // 犯困 / 被叫醒(醒的那一刻弹一下)+ if (f.wakeAt) {+ if (now >= f.wakeAt) { f.wakeAt = 0; if (f.sleep > 0.2) f.bump = Math.max(f.bump, 0.3); f.sleep = 0; }+ } else {+ f.sleep += (doze - f.sleep) * (1 - Math.pow(1 - f.lag * 0.25, dt / 16.7));+ }+ // 眨眼(睡着了不眨)+ if (f.blinkStart < 0 && now >= f.blinkAt && f.sleep < 0.5) { f.blinkStart = now; f.dbl = Math.random() < 0.15; }+ if (f.blinkStart >= 0 && now - f.blinkStart > BLINK_MS * blinkSpan(f.dbl)) { f.blinkStart = -1; f.blinkAt = now + rand(...BLINK_GAP); }+ }+ draw(now, down && mouse ? lensR : 0); // 按下时,附近的脸一起眯眼("被戳了")+ }++ function rr(p: Path2D, x: number, y: number, ww: number, hh: number, r: number) {+ r = Math.min(r, ww / 2, hh / 2);+ p.moveTo(x + r, y);+ p.arcTo(x + ww, y, x + ww, y + hh, r);+ p.arcTo(x + ww, y + hh, x, y + hh, r);+ p.arcTo(x, y + hh, x, y, r);+ p.arcTo(x, y, x + ww, y, r);+ p.closePath();+ }++ /** 把一张脸加进路径:面罩、眼睛、笑眼都按角色分组(同一组一次画完) */+ function addFace(f: Face, sc: number, now: number, squintR: number, plateP: Path2D[], eyeP: Path2D[], happyP: Path2D[]) {+ const c = cell * sc * f.size;+ const cx = f.x + f.gx * MARK.headX * c, cy = f.y + f.gy * MARK.headY * c;+ rr(plateP[f.color], cx - (MARK.plateW * c) / 2, cy - (MARK.plateH * c) / 2, MARK.plateW * c, MARK.plateH * c, MARK.plateR * c);+ const intro = Math.min(1, Math.max(0, (now - f.t0 - EYES_OPEN) / 180));+ if (intro <= 0) return;+ const ew = MARK.eyeW * c, eh0 = MARK.eyeH * c;+ const ey = cy + f.gy * MARK.ampY * c;+ const happy = now < f.happyUntil;+ for (const side of [-1, 1]) {+ const ex = cx + side * MARK.eyeDX * c + f.gx * MARK.ampX * c;+ if (happy) {+ const p = happyP[f.color];+ p.moveTo(ex - ew * 0.9, ey + eh0 * 0.12);+ p.quadraticCurveTo(ex, ey - eh0 * 0.5, ex + ew * 0.9, ey + eh0 * 0.12);+ continue;+ }+ let lid = f.blinkStart >= 0 ? blinkLid((now - f.blinkStart) / BLINK_MS, f.dbl) : 1;+ lid = Math.min(lid, 1 - 0.85 * f.sleep) * intro;+ if (squintR && Math.hypot(px - f.x, py - f.y) < squintR) lid *= 0.55;+ else lid *= 1 + 0.14 * Math.max(0, sc - 1) / LENS_MAX; // 探出头的脸眼睛睁得更大(注意到你了)+ const eh = Math.max(eh0 * lid, ew * 0.6);+ rr(eyeP[f.color], ex - ew / 2, ey - eh / 2, ew, eh, ew / 2);+ }+ }++ function paint(plateP: Path2D[], eyeP: Path2D[], happyP: Path2D[], ring: number) {+ const g = ctx!;+ plateP.forEach((p, i) => {+ if (ring) { g.lineWidth = ring; g.strokeStyle = cut; g.stroke(p); } // 探出头的脸外面一圈底色,压在邻居上时分得开+ g.fillStyle = plateFill[i] ?? plate; g.fill(p);+ if (edge) { g.lineWidth = 0.75; g.strokeStyle = edge; g.stroke(p); } // 淡彩面罩的细边:最浅的颜色也压得住浅底+ });+ eyeP.forEach((p, i) => {+ if (glow && !ink) { g.globalAlpha = glow; g.lineWidth = cell * 0.16; g.strokeStyle = eyes[i]; g.stroke(p); g.globalAlpha = 1; }+ g.fillStyle = ink || eyes[i]; g.fill(p);+ });+ happyP.forEach((p, i) => { g.lineWidth = cell * MARK.eyeW * 0.85; g.lineCap = "round"; g.strokeStyle = ink || eyes[i]; g.stroke(p); });+ }++ function draw(now: number, squintR = 0) {+ ctx!.setTransform(dpr, 0, 0, dpr, 0, 0);+ ctx!.clearRect(0, 0, w, h);+ // 消息不画成一圈扩散的线:它怎么传开,只看小脸按远近一张张笑起来("挨个收到了")+ const n = EYE_TOKENS.length;+ const fresh = () => Array.from({ length: n }, () => new Path2D());+ const plateP = fresh(), eyeP = fresh(), happyP = fresh();+ const big: [Face, number][] = [];+ for (const f of faces) {+ const pop = easeOutBack(Math.min(1, (now - f.t0) / INTRO_POP));+ const sc = pop * (f.s + f.bump);+ if (sc <= 0.02) continue;+ if (sc > 1.04) { big.push([f, sc]); continue; }+ addFace(f, sc, now, squintR, plateP, eyeP, happyP);+ }+ paint(plateP, eyeP, happyP, 0);+ // 放大的脸最后画、从小到大叠上去+ big.sort((a, b) => a[1] - b[1]);+ for (const [f, sc] of big) {+ const p = fresh(), e = fresh(), hp = fresh();+ addFace(f, sc, now, squintR, p, e, hp);+ paint(p, e, hp, cell * 0.14 * sc);+ }+ }++ // —— 生命周期:可见才跑;换主题重读颜色;尺寸变了重排 ——+ function start() { if (!raf && visible && !reduce.matches && !document.hidden) { last = 0; raf = requestAnimationFrame(frame); } }+ function stop() { cancelAnimationFrame(raf); raf = 0; }+ function still() { // 静止版:一次性画好,所有脸睁眼、朝前+ stop();+ for (const f of faces) { f.t0 = -Infinity; f.gx = f.gy = 0; f.s = 1; f.bump = 0; f.sleep = 0; f.blinkStart = -1; f.happyUntil = 0; }+ draw(performance.now());+ }++ readTheme();+ new IntersectionObserver(([e]) => {+ visible = e.isIntersecting;+ if (visible) { lastMove = performance.now(); if (reduce.matches) still(); else start(); } else stop();+ }, { rootMargin: "80px 0px" }).observe(root);+ document.addEventListener("visibilitychange", () => (document.hidden ? stop() : start()));+ reduce.addEventListener?.("change", () => (reduce.matches ? still() : start()));+ new MutationObserver(() => { readTheme(); redraw(); }).observe(document.documentElement, { attributes: true, attributeFilter: ["data-theme"] });+ let pending = 0;+ new ResizeObserver(() => {+ cancelAnimationFrame(pending);+ pending = requestAnimationFrame(layout);+ }).observe(canvas);++ // 字体到位再排(Geist 没加载完时用回退字体量出来的字形会对不上)+ const ready = document.fonts?.load ? document.fonts.load(`800 100px Geist`).catch(() => undefined) : Promise.resolve();+ ready.then(layout);+}diff --git a/site/src/scripts/scroll-fx.ts b/site/src/scripts/scroll-fx.tsnew file mode 100644index 0000000..e099f6a--- /dev/null+++ b/site/src/scripts/scroll-fx.ts@@ -0,0 +1,99 @@+// 桌面端的滚动联动(参考 bevel.health:卡片随滚动升起、浮动元素视差、百叶窗转场),不引第三方库。+//+// [data-fx] 元素随滚动拿到 --p(0 → 1),样式里用 calc() 把它换成位移、缩放、倾斜。+// 只在宽屏(≥1024px)、有悬停的指针设备、没开"减少动态效果"时运行,并给 <html> 加 .fx;+// 联动样式都挂在 html.fx 下——窄屏、无 JS、减少动态效果时不加任何变换,元素停在终态。+//+// data-fx 的取值(位置都是视口高度的比例):+// ""(默认) 元素顶边从 data-fx-from(默认 1,视口底)走到 data-fx-to(默认 .55)时 --p 从 0 到 1。用于"升起来、摆正"。+// "through" 顶边在视口底 → 底边在视口顶;元素在视口正中时 --p = .5。用于视差。+// data-fx-prev:同时把进度写到前一个兄弟元素的 --next-p(叠卡:后一张盖上来时前一张往后退)。+// 页面滚到底也到不了终点的元素(比如最后一块),终点提前到"滚到底"那一刻,保证 --p 能走到 1。+//+// .marquee:离开视口时加 .is-off,让跑马灯停下来,不在屏幕外白跑。++const WIDE = "(min-width: 1024px) and (hover: hover) and (prefers-reduced-motion: no-preference)";++interface Item { el: HTMLElement; through: boolean; from: number; to: number; prev: HTMLElement | null; last: string }++const num = (v: string | undefined, d: number) => (v == null || v === "" || Number.isNaN(Number(v)) ? d : Number(v));+const clamp01 = (n: number) => (n < 0 ? 0 : n > 1 ? 1 : n);++export function mountScrollFx() {+ const root = document.documentElement;+ const items: Item[] = [...document.querySelectorAll<HTMLElement>("[data-fx]")].map((el) => {+ const through = el.dataset.fx === "through";+ return {+ el, through,+ from: num(el.dataset.fxFrom, 1),+ to: num(el.dataset.fxTo, through ? 0 : 0.55),+ prev: "fxPrev" in el.dataset ? (el.previousElementSibling as HTMLElement | null) : null,+ last: "",+ };+ });+ const byEl = new Map(items.map((it) => [it.el, it]));+ const live = new Set<Item>();+ let raf = 0;++ const update = (it: Item, vh: number, maxScroll: number) => {+ const r = it.el.getBoundingClientRect();+ let p: number;+ if (it.through) p = (vh - r.top) / (vh + r.height);+ else {+ const from = it.from * vh;+ let to = it.to * vh;+ const lowest = r.top - (maxScroll - scrollY); // 滚到底时顶边落在哪+ if (lowest >= from) p = 1; // 贴着页面底部、连起点都到不了:直接终态+ else {+ if (lowest > to) to = lowest;+ p = (from - r.top) / (from - to);+ }+ }+ const v = clamp01(p).toFixed(3);+ if (v === it.last) return;+ it.last = v;+ it.el.style.setProperty("--p", v);+ it.prev?.style.setProperty("--next-p", v);+ };+ const frame = () => {+ raf = 0;+ const vh = innerHeight, max = root.scrollHeight - vh;+ live.forEach((it) => update(it, vh, max));+ };+ const queue = () => { if (!raf) raf = requestAnimationFrame(frame); };+ const io = new IntersectionObserver((es) => {+ es.forEach((e) => {+ const it = byEl.get(e.target as HTMLElement);+ if (!it) return;+ if (e.isIntersecting) live.add(it); else live.delete(it);+ });+ queue();+ }, { rootMargin: "25% 0px" });++ const wide = matchMedia(WIDE);+ const start = () => {+ root.classList.add("fx");+ const vh = innerHeight, max = root.scrollHeight - vh;+ items.forEach((it) => { update(it, vh, max); io.observe(it.el); });+ addEventListener("scroll", queue, { passive: true });+ addEventListener("resize", queue, { passive: true });+ };+ const stop = () => {+ root.classList.remove("fx");+ io.disconnect(); live.clear();+ removeEventListener("scroll", queue);+ removeEventListener("resize", queue);+ items.forEach((it) => { it.last = ""; it.el.style.removeProperty("--p"); it.prev?.style.removeProperty("--next-p"); });+ };+ if (items.length) {+ if (wide.matches) start();+ wide.addEventListener("change", () => (wide.matches ? start() : stop()));+ }++ // —— 跑马灯、模型环:屏幕外暂停 ——+ const marquees = document.querySelectorAll<HTMLElement>(".marquee, .orbit");+ if (marquees.length) {+ const mio = new IntersectionObserver((es) => es.forEach((e) => e.target.classList.toggle("is-off", !e.isIntersecting)));+ marquees.forEach((m) => mio.observe(m));+ }+}diff --git a/site/src/scripts/sections.ts b/site/src/scripts/sections.tsnew file mode 100644index 0000000..0b3948f--- /dev/null+++ b/site/src/scripts/sections.ts@@ -0,0 +1,397 @@+// 首页各章节的交互。HTML 默认是完成态(无 JS / 减少动态效果时直接可读),这里只负责"播放"和切换。+import { gazeAt, mountDoze, playShot, setState } from "../lib/eyes";+import { mountLoop, mountTour } from "./tour";+import { mountScrollFx } from "./scroll-fx";++// —— 桌面端的滚动联动、跑马灯离屏暂停,见 scroll-fx.ts ——+mountScrollFx();++const reduce = matchMedia("(prefers-reduced-motion: reduce)").matches;+const $ = <T extends Element = HTMLElement>(s: string, r: ParentNode = document) => r.querySelector<T>(s);+const $$ = <T extends Element = HTMLElement>(s: string, r: ParentNode = document) => [...r.querySelectorAll<T>(s)];+const wait = (ms: number) => new Promise((r) => setTimeout(r, ms));+const track = (n: string, p?: object) => { try { (window as any).umami?.track(n, p); } catch { /* 忽略 */ } };++// —— 数据去向图:桌面上是节点旁的浮层,手机上是底部抽屉 ——+(() => {+ const nodes = $$<HTMLButtonElement>(".flow-node");+ if (!nodes.length) return;+ const mobile = matchMedia("(max-width: 767px)");+ const sheet = document.getElementById("flow-sheet") as HTMLDialogElement | null;+ const closeAll = (except?: HTMLElement) => nodes.forEach((b) => {+ if (b === except) return;+ b.setAttribute("aria-expanded", "false");+ const body = document.getElementById(b.getAttribute("aria-controls")!); if (body) body.hidden = true;+ });+ nodes.forEach((b) => b.addEventListener("click", () => {+ const body = document.getElementById(b.getAttribute("aria-controls")!)!;+ track("flow_node_open", { node_id: b.dataset.node });+ if (mobile.matches && sheet) {+ closeAll();+ $("[data-flow-sheet-title]", sheet)!.textContent = b.dataset.title ?? "";+ $("[data-flow-sheet-body]", sheet)!.innerHTML = body.innerHTML;+ sheet.showModal();+ return;+ }+ const open = b.getAttribute("aria-expanded") !== "true";+ closeAll(b);+ b.setAttribute("aria-expanded", String(open));+ body.hidden = !open;+ }));+ document.addEventListener("click", (e) => { if (!(e.target as Element).closest(".flow__nodes li")) closeAll(); });+ document.addEventListener("keydown", (e) => {+ if (e.key !== "Escape") return;+ const open = nodes.find((b) => b.getAttribute("aria-expanded") === "true");+ if (open) { closeAll(); open.focus(); }+ });+})();++// —— 模型演示:场景切换 + 模型选择器(预录,不实时调用) ——+(() => {+ const root = $("[data-model-demo]");+ if (!root) return;+ const data = JSON.parse($("[data-model-demo-data]", root)!.textContent!) as {+ prices: Record<string, [string, string]>; logos: Record<string, string>; priceLine: string;+ scenarios: Record<string, { model: string; q: string; a: string }>;+ };+ const pill = $<HTMLButtonElement>("[data-model-pill]", root)!;+ const list = $("[data-model-list]", root)!;+ const search = $<HTMLInputElement>("[data-model-search]", root)!;+ const opts = $$("[role=option]", root);+ const q = $("[data-q]", root)!, a = $("[data-a]", root)!;+ let scenario = "copy", model = data.scenarios.copy.model, active = -1, turn = 0;+ const logo = root.querySelector<SVGSVGElement>("[data-model-logo]");+ const setModel = (m: string) => {+ model = m;+ $("[data-model-name]", root)!.textContent = m;+ // 胶囊里的厂商标志跟着换;这家没有标志就藏起来+ if (logo) { const k = data.logos[m]; logo.style.display = k ? "" : "none"; if (k) logo.querySelector("use")?.setAttribute("href", `#vl-${k}`); }+ const [i, o] = data.prices[m] ?? ["—", "—"];+ $("[data-price-line]", root)!.textContent = data.priceLine.replace("{model}", m).replace("{input}", i).replace("{output}", o);+ opts.forEach((x) => x.setAttribute("aria-selected", String(x.dataset.model === m)));+ };+ // 晶晶先歪头想一会儿(宝石浮起来转),再一边读一边打字,打完蹦一下;连续切换时上一段直接作废+ const face = $<HTMLElement>(".msg--bot .bot-face", root);+ const answer = async () => {+ const s = data.scenarios[scenario], me = ++turn;+ track("model_demo_use", { scenario, model_id: model });+ q.textContent = s.q;+ if (reduce) { a.textContent = s.a; return; }+ a.textContent = ""; a.classList.add("is-typing");+ if (face) setState(face, "thinking");+ await wait(720);+ if (me !== turn) return;+ if (face) setState(face, "replying");+ for (let i = 1; i <= s.a.length; i++) {+ if (me !== turn) return;+ a.textContent = s.a.slice(0, i);+ await wait(1000 / 60);+ }+ a.classList.remove("is-typing");+ if (face) { setState(face, "idle"); playShot(face, "done"); }+ };+ const close = (focus = true) => { list.hidden = true; pill.setAttribute("aria-expanded", "false"); if (focus) pill.focus(); };+ const visible = () => opts.filter((o) => !o.hidden);+ const setActive = (i: number) => {+ const v = visible(); if (!v.length) return;+ active = (i + v.length) % v.length;+ v.forEach((o, k) => o.classList.toggle("is-active", k === active));+ v[active].scrollIntoView({ block: "nearest" });+ search.setAttribute("aria-activedescendant", v[active].id);+ };+ $$("[data-scenario]", root).forEach((b) => b.addEventListener("click", () => {+ $$("[data-scenario]", root).forEach((x) => x.setAttribute("aria-selected", String(x === b)));+ scenario = b.dataset.scenario!;+ setModel(data.scenarios[scenario].model);+ answer();+ }));+ pill.addEventListener("click", () => {+ const open = list.hidden;+ list.hidden = !open; pill.setAttribute("aria-expanded", String(open));+ if (open) { search.value = ""; opts.forEach((o) => (o.hidden = false)); $$(".model-list__group", root).forEach((g) => (g.hidden = false)); search.focus(); setActive(opts.findIndex((o) => o.dataset.model === model)); }+ });+ search.addEventListener("input", () => {+ const s = search.value.trim().toLowerCase();+ opts.forEach((o) => (o.hidden = !!s && !o.dataset.model!.toLowerCase().includes(s)));+ $$(".model-list__group", root).forEach((g) => {+ let n = g.nextElementSibling as HTMLElement | null, any = false;+ while (n && !n.classList.contains("model-list__group")) { if (!n.hidden) any = true; n = n.nextElementSibling as HTMLElement | null; }+ g.hidden = !any;+ });+ setActive(0);+ });+ const choose = (o: HTMLElement) => { setModel(o.dataset.model!); close(); answer(); };+ search.addEventListener("keydown", (e) => {+ if (e.key === "ArrowDown") { e.preventDefault(); setActive(active + 1); }+ else if (e.key === "ArrowUp") { e.preventDefault(); setActive(active - 1); }+ else if (e.key === "Enter") { e.preventDefault(); const o = visible()[active]; if (o) choose(o); }+ else if (e.key === "Escape") { e.preventDefault(); close(); }+ });+ opts.forEach((o) => o.addEventListener("click", () => choose(o)));+ document.addEventListener("click", (e) => { if (!list.hidden && !(e.target as Element).closest("[data-model-list], [data-model-pill]")) close(false); });+})();++// —— 能动手、会记住:两章故事。视口正中那条窄带碰到哪一章,右边吸顶的舞台卡就换到哪一幕、底光换成那一章的颜色 ——+(() => {+ const story = $("[data-story]");+ if (!story) return;+ const chs = $$("[data-ch]", story);+ const scenes = $$("[data-scene]", story);+ const tabs = $$<HTMLButtonElement>("[data-goto-ch]", story);+ const stage = $("[data-story-stage]", story);+ let cur = -1;+ const set = (i: number) => {+ if (i === cur || i < 0) return;+ cur = i;+ chs.forEach((c, k) => c.classList.toggle("is-on", k === i));+ scenes.forEach((sc, k) => { sc.classList.toggle("is-on", k === i); sc.classList.toggle("is-past", k < i); });+ tabs.forEach((b, k) => b.classList.toggle("is-on", k === i));+ stage?.style.setProperty("--stage-glow", chs[i].style.getPropertyValue("--tint"));+ };+ set(0);+ const io = new IntersectionObserver((es) => es.forEach((e) => { if (e.isIntersecting) set(chs.indexOf(e.target as HTMLElement)); }), { rootMargin: "-45% 0px -45% 0px" });+ chs.forEach((c) => io.observe(c));+ tabs.forEach((b) => b.addEventListener("click", () => chs[Number(b.dataset.gotoCh)]?.scrollIntoView({ behavior: reduce ? "auto" : "smooth", block: "center" })));+})();++// —— 换脑舞台:外环上亮起右边对话正在用的模型;点外环上的模型 = 在右边列表里选它;换模型时中间的晶晶点个头 ——+(() => {+ const orbit = $("[data-orbit]");+ const demo = $("[data-model-demo]");+ const name = demo && $("[data-model-name]", demo);+ if (!orbit || !demo || !name) return;+ const chips = $$("[data-orbit-model]", orbit);+ const core = $<HTMLElement>(".orbit__core .bot-face", orbit);+ let last = "";+ const sync = () => {+ const m = name.textContent?.trim() ?? "";+ if (m === last) return;+ const first = !last; last = m;+ chips.forEach((c) => c.classList.toggle("is-on", c.dataset.orbitModel === m));+ if (core && !first) playShot(core, "poke");+ };+ sync();+ new MutationObserver(sync).observe(name, { childList: true, characterData: true, subtree: true });+ chips.forEach((c) => c.addEventListener("click", () => $$("[role=option]", demo).find((o) => o.dataset.model === c.dataset.orbitModel)?.click()));+})();++// —— 认识你的机器人:一排角色是 WAI-ARIA tabs ——+// 换角色:工牌绕竖轴翻面换人、挂绳往换人的方向晃一下,证件照打招呼;在岗的那个低头看工牌,其余几个转头看它;+// 手机里的回复先"正在输入"再逐字打出。鼠标拨过工牌它会晃(阻尼弹簧,转轴在挂绳顶端,写 --swing)。+// 窄屏上一排角色可横滑,选中的滚到中间;舞台上左右滑动也能换角色。+(() => {+ const tabs = $$<HTMLButtonElement>("[data-bot-tabs] [role=tab]");+ const crew = $("[data-crew]");+ if (!tabs.length || !crew) return;+ const list = tabs[0].parentElement!;+ const stage = $("[data-bot-stage]", crew);+ const hang = $("[data-badge]", crew);+ const card = $("[data-badge-card]", crew);+ const faceOf = (el: Element | null | undefined) => el?.querySelector<HTMLElement>(".bot-face") ?? null;+ const tabOf = (k: string) => tabs.find((t) => t.dataset.bot === k)!;++ // 工牌的摆:角度 a(度)、角速度 v(度/秒);劲度 70、阻尼 5,|a| ≤ 7°+ let a = 0, v = 0, last = 0, raf = 0;+ const step = (now: number) => {+ const dt = Math.min(0.032, (now - last) / 1000);+ last = now;+ v += (-70 * a - 5 * v) * dt;+ a = Math.max(-7, Math.min(7, a + v * dt));+ if (Math.abs(a) < 0.02 && Math.abs(v) < 0.05) { a = v = 0; raf = 0; hang!.style.setProperty("--swing", "0deg"); return; }+ hang!.style.setProperty("--swing", `${a.toFixed(3)}deg`);+ raf = requestAnimationFrame(step);+ };+ const kick = (dv: number) => {+ if (reduce || !hang) return;+ v += dv;+ if (!raf) { last = performance.now(); raf = requestAnimationFrame(step); }+ };+ if (hang && !reduce) {+ let lx = NaN;+ // 指针往右推,工牌下沿往右荡(CSS 里顺时针为正,所以取反)+ hang.addEventListener("pointermove", (e) => {+ if (e.pointerType === "mouse" && !Number.isNaN(lx)) kick(Math.max(-24, Math.min(24, (lx - e.clientX) * 0.9)));+ lx = e.clientX;+ });+ hang.addEventListener("pointerleave", () => (lx = NaN));+ }++ // 先显示"正在输入"的三个点,再逐字打出;连续切换时上一段直接补全+ let token = 0;+ const typeReply = async (view: HTMLElement) => {+ const reply = $<HTMLElement>(".msg--bot", view);+ if (!reply || reduce) return;+ const me = ++token;+ const text = reply.dataset.text || (reply.dataset.text = reply.textContent ?? "");+ const done = () => { reply.textContent = text; reply.classList.remove("is-typing"); };+ reply.textContent = "";+ reply.classList.add("is-typing");+ await wait(620);+ for (let i = 1; i <= text.length; i++) {+ if (me !== token) return done();+ reply.textContent = text.slice(0, i);+ await wait(26);+ }+ done();+ };++ let flip = 0;+ const select = (k: string, focus = false, quiet = false) => {+ const prev = crew.dataset.char ?? k;+ tabs.forEach((t) => {+ const on = t.dataset.bot === k;+ t.setAttribute("aria-selected", String(on)); t.tabIndex = on ? 0 : -1;+ if (on && focus) t.focus({ preventScroll: true });+ if (on && list.scrollWidth > list.clientWidth) list.scrollTo({ left: t.offsetLeft - (list.clientWidth - t.offsetWidth) / 2, behavior: reduce ? "auto" : "smooth" });+ });+ crew.dataset.char = k;++ // 工牌翻面:转到侧面(看不见的那一刻)换人,再转回来+ const swap = () => {+ $$("[data-panel]", crew).forEach((p) => (p.hidden = p.dataset.panel !== k));+ const f = faceOf($(`[data-panel="${k}"] .badge-card__photo`, crew));+ if (f) playShot(f, "hello");+ };+ const me = ++flip;+ if (reduce || !card || prev === k) swap();+ else {+ card.classList.add("is-out");+ setTimeout(() => { if (me === flip) { swap(); card.classList.remove("is-out"); } }, 170);+ kick((tabs.indexOf(tabOf(k)) > tabs.indexOf(tabOf(prev)) ? -1 : 1) * 46);+ }++ // 在岗的低头看工牌,其余几个转头看它+ const sel = faceOf(tabOf(k));+ tabs.forEach((t) => { const f = faceOf(t); if (f) gazeAt(f, t.dataset.bot === k ? card : sel); });++ $$("[data-phone]", crew).forEach((p) => {+ if (p.hidden && p.dataset.phone !== k) return;+ const reply = $<HTMLElement>(".msg--bot", p);+ if (reply?.dataset.text) { reply.textContent = reply.dataset.text; reply.classList.remove("is-typing"); }+ p.hidden = p.dataset.phone !== k;+ if (p.hidden || reduce) return;+ const log = $(".phone__log", p)!; log.classList.remove("is-swap"); void log.offsetWidth; log.classList.add("is-swap");+ typeReply(p);+ });+ if (!quiet) track("bot_select", { bot_id: k });+ };+ const current = () => Math.max(0, tabs.findIndex((t) => t.getAttribute("aria-selected") === "true"));++ // 第一次滚到工牌:当前角色打个招呼、把回复打一遍(看工牌而不是整张舞台卡:窄屏上舞台卡比一屏高,永远到不了阈值)+ const intro = $(".crew__badge", crew);+ if (intro) {+ const io = new IntersectionObserver((es) => {+ if (!es[0].isIntersecting) return;+ io.disconnect();+ select(tabs[current()].dataset.bot!, false, true);+ }, { threshold: 0.4 });+ io.observe(intro);+ }+ // 触屏横向滑过舞台换角色;纵向滚动交给浏览器(CSS 里 touch-action: pan-y)+ if (stage) {+ let x0 = 0, y0 = 0, id = -1;+ stage.addEventListener("pointerdown", (e) => { if (e.pointerType === "touch") { x0 = e.clientX; y0 = e.clientY; id = e.pointerId; } });+ stage.addEventListener("pointercancel", () => (id = -1));+ stage.addEventListener("pointerup", (e) => {+ if (e.pointerId !== id) return;+ id = -1;+ const dx = e.clientX - x0, dy = e.clientY - y0;+ if (Math.abs(dx) < 48 || Math.abs(dx) < Math.abs(dy) * 1.5) return;+ select(tabs[(current() + (dx < 0 ? 1 : -1) + tabs.length) % tabs.length].dataset.bot!);+ });+ }+ tabs.forEach((t, i) => {+ t.addEventListener("click", () => select(t.dataset.bot!));+ t.addEventListener("keydown", (e) => {+ const k = { ArrowRight: i + 1, ArrowLeft: i - 1, Home: 0, End: tabs.length - 1 }[e.key];+ if (k == null) return;+ e.preventDefault();+ select(tabs[(k + tabs.length) % tabs.length].dataset.bot!, true);+ });+ });+})();++// —— 在哪都找得到它:入口行的"查看步骤"打开接入指南(client.ts 管开关对话框),这里切到对应的那一页;+// 指南顶上的一排标签是 tabs(← → / ↑ ↓ / Home / End 切换)。有 .hub__host 时它看向选中的标签、蹦一下(现在的版式里没有) ——+(() => {+ const hub = $("[data-hub]");+ if (!hub) return;+ const tabs = $$<HTMLButtonElement>("[data-hub-tab]", hub);+ const panels = $$("[data-hub-panel]", hub);+ const host = $<HTMLElement>(".hub__host", hub);+ let gt = 0;+ const select = (id: string, focus = false) => {+ tabs.forEach((b) => {+ const on = b.dataset.hubTab === id;+ b.setAttribute("aria-selected", String(on)); b.tabIndex = on ? 0 : -1;+ if (on && focus) b.focus();+ });+ panels.forEach((p) => p.classList.toggle("is-on", p.dataset.hubPanel === id));+ const tab = tabs.find((b) => b.dataset.hubTab === id);+ if (host && tab) {+ gazeAt(host, tab); playShot(host, "poke");+ clearTimeout(gt); gt = window.setTimeout(() => gazeAt(host, null), 2200);+ }+ if (tab?.dataset.kind === "chat") track("channel_guide_open", { channel: id });+ else track("device_card_click", { device: id });+ };+ tabs.forEach((b, i) => {+ b.addEventListener("click", () => { if (b.getAttribute("aria-selected") !== "true") select(b.dataset.hubTab!); });+ b.addEventListener("keydown", (e) => {+ const k = e.key === "ArrowDown" || e.key === "ArrowRight" ? i + 1 : e.key === "ArrowUp" || e.key === "ArrowLeft" ? i - 1 : e.key === "Home" ? 0 : e.key === "End" ? tabs.length - 1 : null;+ if (k == null) return;+ e.preventDefault();+ select(tabs[(k + tabs.length) % tabs.length].dataset.hubTab!, true);+ });+ });+ // 入口行的链接:对话框在同一次点击里打开,等它显示出来再把焦点放到选中的标签上+ document.addEventListener("click", (e) => {+ const o = (e.target as Element).closest<HTMLElement>("[data-hub-open]");+ if (o?.dataset.hubOpen) { const id = o.dataset.hubOpen; requestAnimationFrame(() => select(id, true)); }+ });+})();++// —— FAQ 展开:旁边的闪闪看向刚打开的问题,点个头 ——+(() => {+ const bot = $<HTMLElement>(".faq-wrap__bot");+ let t = 0;+ $$<HTMLDetailsElement>("[data-faq]").forEach((d) => d.addEventListener("toggle", () => {+ if (!d.open) return;+ track("faq_open", { question_id: d.dataset.faq });+ if (!bot) return;+ gazeAt(bot, d.querySelector("summary"));+ playShot(bot, "poke");+ clearTimeout(t); t = window.setTimeout(() => gazeAt(bot, null), 2600);+ }));+})();++// —— 收尾横幅:指针移到下载按钮上,六个机器人一起看过去、挨个蹦一下;点下载就一起庆祝 ——+(() => {+ const cta = document.getElementById("cta-final");+ const bots = $$<HTMLElement>(".final__bots .bot-face");+ if (!cta || !bots.length) return;+ const zone = cta.closest(".split") ?? cta;+ zone.addEventListener("pointerenter", () => bots.forEach((b, i) => { gazeAt(b, cta); setTimeout(() => playShot(b, "poke"), i * 70); }));+ zone.addEventListener("pointerleave", () => bots.forEach((b) => gazeAt(b, null)));+ zone.addEventListener("click", () => bots.forEach((b, i) => setTimeout(() => playShot(b, "done"), i * 90)));+})();++// —— 章节头上的主持机器人:第一次完整进入视口时打个招呼 ——+(() => {+ const hosts = $$<HTMLElement>(".shead__host");+ if (!hosts.length || reduce) return;+ const io = new IntersectionObserver((es) => es.forEach((e) => {+ if (!e.isIntersecting) return;+ io.unobserve(e.target);+ setTimeout(() => playShot(e.target as HTMLElement, "hello"), 200);+ }), { threshold: 1, rootMargin: "0px 0px -12% 0px" });+ hosts.forEach((h) => io.observe(h));+})();++// —— 演示导览与循环示意动画 ——+const tour = document.getElementById("demo-tour") as HTMLDialogElement | null;+if (tour) mountTour(tour);+$$("[data-loop]").forEach(mountLoop);++// —— 打瞌睡:[data-doze] 里的机器人,你半天不动就挨个睡着,一动就惊醒 ——+mountDoze();diff --git a/site/src/scripts/tour.ts b/site/src/scripts/tour.tsnew file mode 100644index 0000000..1f9ad05--- /dev/null+++ b/site/src/scripts/tour.ts@@ -0,0 +1,138 @@+// 动画时间线:演示导览(components/DemoTour.astro,点开即自动轮播)和"能动手、会记住"的循环示意都用它。+// 一个 rAF 时钟,暂停就停表,所以 CSS 不用写延迟:data-at(毫秒)到点加 .on;data-type 逐字打出;+// data-fill="起:止" 画进度条(data-fill-text 同一段写成百分比文字);data-moves="[[毫秒, x%, y%], …]" 移动光标;+// data-flow="起:止" 把这段行程的进度写成 --k(0 → 1,匀速;完成态不写,样式自己决定停在哪)——Hero 两侧的流动卡片用它。+// 机器人:data-states="[[毫秒, 状态], …]" 切持续状态;data-shots="[[毫秒, 反应], …]" 走过那一刻时播一次;+// data-say-at="毫秒" + data-say="台词" 走过那一刻时冒气泡。完成态(at = Infinity)只设状态,不播反应、不说话。+// 整幕切换:data-steps="[[毫秒, 值], …]" 把此刻的值写到 data-step(Hero 舞台用它换机器人、换对话、换环境光)。+import { playShot, say, setState } from "../lib/eyes";++const lastAt = new WeakMap<HTMLElement, number>();+// 解析过的 [[毫秒, 值], …]:按元素 + 属性名缓存(同一个元素可以同时有 data-states 和 data-shots)+const parsed = new WeakMap<HTMLElement, Partial<Record<string, [number, string][]>>>();+const pairs = (el: HTMLElement, key: "states" | "shots" | "steps") => {+ let m = parsed.get(el);+ if (!m) parsed.set(el, (m = {}));+ return (m[key] ??= JSON.parse(el.dataset[key]!) as [number, string][]);+};+/** 列表里此刻生效的那一项(时间 ≤ at 的最后一项;还没到第一项时取第一项) */+const current = (list: [number, string][], at: number) => ([...list].reverse().find(([t]) => at >= t) ?? list[0])[1];++/** 把 scope 里的时间线渲染到时刻 at(毫秒);at = Infinity 即完成态 */+export function renderAt(scope: HTMLElement, at: number) {+ scope.querySelectorAll<HTMLElement>("[data-at]").forEach((el) => el.classList.toggle("on", at >= Number(el.dataset.at)));+ scope.querySelectorAll<HTMLElement>("[data-type]").forEach((el) => {+ const text = el.dataset.type!, start = Number(el.dataset.at ?? 0), cps = Number(el.dataset.cps ?? 20);+ const n = at < start ? 0 : Math.min(text.length, Math.floor(((at - start) / 1000) * cps));+ if (el.textContent!.length !== n) el.textContent = text.slice(0, n);+ el.classList.toggle("is-done", n === text.length);+ });+ scope.querySelectorAll<HTMLElement>("[data-fill-text]").forEach((el) => {+ const [a, b] = el.dataset.fillText!.split(":").map(Number);+ const v = `${Math.round(Math.max(0, Math.min(1, (at - a) / (b - a))) * 100)}%`;+ if (el.textContent !== v) el.textContent = v;+ });+ scope.querySelectorAll<HTMLElement>("[data-fill]").forEach((el) => {+ const [a, b] = el.dataset.fill!.split(":").map(Number);+ el.style.width = `${Math.max(0, Math.min(1, (at - a) / (b - a))) * 100}%`;+ });+ scope.querySelectorAll<HTMLElement>("[data-flow]").forEach((el) => {+ if (!Number.isFinite(at)) { el.style.removeProperty("--k"); return; }+ const [a, b] = el.dataset.flow!.split(":").map(Number);+ const k = Math.max(0, Math.min(1, (at - a) / (b - a))).toFixed(4);+ if (el.style.getPropertyValue("--k") !== k) el.style.setProperty("--k", k);+ });+ scope.querySelectorAll<HTMLElement>("[data-moves]").forEach((el) => {+ const moves = JSON.parse(el.dataset.moves!) as [number, number, number][];+ const m = [...moves].reverse().find(([mt]) => at >= mt) ?? moves[0];+ el.style.left = `${m[1]}%`; el.style.top = `${m[2]}%`;+ });+ // 走过 ms 这一刻:本帧在 (上一帧, 这一帧];循环回绕时从 0 算起+ const prev = lastAt.get(scope) ?? -1;+ lastAt.set(scope, at);+ const crossed = (ms: number) => Number.isFinite(at) && (at < prev ? ms <= at : ms > prev && ms <= at);+ scope.querySelectorAll<HTMLElement>("[data-states]").forEach((el) => setState(el, current(pairs(el, "states"), at)));+ // data-steps="[[毫秒, 值], …]":把此刻的值写到 data-step 上,样式按它切换整幕(值可以是空格隔开的几个词,用 ~= 匹配)+ scope.querySelectorAll<HTMLElement>("[data-steps]").forEach((el) => {+ const v = current(pairs(el, "steps"), at);+ if (el.dataset.step !== v) el.dataset.step = v;+ });+ scope.querySelectorAll<HTMLElement>("[data-shots]").forEach((el) => pairs(el, "shots").forEach(([t, k]) => crossed(t) && playShot(el, k as Parameters<typeof playShot>[1])));+ scope.querySelectorAll<HTMLElement>("[data-say-at]").forEach((el) => crossed(Number(el.dataset.sayAt)) && say(el, el.dataset.say ?? ""));+}++/** 循环播放(只在可见时走表):<div data-loop="10000">…</div>;+ * data-loop-threshold 是露出多少算"看得见"(默认 .25;首屏里只露出上半截的元素调小) */+export function mountLoop(el: HTMLElement) {+ const period = Number(el.dataset.loop) || 10000;+ const threshold = Number(el.dataset.loopThreshold ?? 0.25);+ if (matchMedia("(prefers-reduced-motion: reduce)").matches) { renderAt(el, Infinity); return; }+ let t = 0, last = 0, raf = 0, visible = false;+ const tick = (now: number) => {+ raf = 0;+ if (!visible || document.hidden) return;+ t = (t + now - last) % period; last = now;+ renderAt(el, t);+ raf = requestAnimationFrame(tick);+ };+ renderAt(el, 0);+ new IntersectionObserver(([e]) => {+ visible = e.isIntersecting;+ if (visible && !raf) { last = performance.now(); raf = requestAnimationFrame(tick); }+ }, { threshold }).observe(el);+ document.addEventListener("visibilitychange", () => { if (!document.hidden && visible && !raf) { last = performance.now(); raf = requestAnimationFrame(tick); } });+}++/** 演示导览:打开就从第 1 幕自动轮播,最后一幕播完回到第 1 幕,关掉才停。+ * 下面的步骤标签([data-goto],写 --p 画这一幕的进度、aria-selected 标当前)点哪一幕看哪一幕;+ * 舞台两侧的箭头([data-tour-prev] / [data-tour-next])和 ← → 键前后翻,切过去接着往下播。+ * 减少动态效果时照样按时翻页,但每幕直接显示完成态,不放逐字、光标这些细动画。 */+export function mountTour(root: HTMLDialogElement) {+ const reduce = matchMedia("(prefers-reduced-motion: reduce)").matches;+ const scenes = [...root.querySelectorAll<HTMLElement>(".tour__scene")];+ const caps = [...root.querySelectorAll<HTMLElement>("[data-caption]")];+ const bars = [...root.querySelectorAll<HTMLElement>("[data-goto]")];+ const n = scenes.length;++ let cur = 0, t = 0, last = 0, raf = 0;+ const dur = (i: number) => Number(scenes[i].dataset.duration) || 15000;++ function render(at: number) {+ renderAt(scenes[cur], reduce ? Infinity : at);+ bars.forEach((b, k) => b.style.setProperty("--p", String(k < cur ? 1 : k > cur ? 0 : Math.min(1, at / dur(cur)))));+ }+ function show(i: number) {+ cur = (i + n) % n; t = 0;+ scenes.forEach((s, k) => s.classList.toggle("is-active", k === cur));+ caps.forEach((c, k) => (c.hidden = k !== cur));+ bars.forEach((b, k) => { b.setAttribute("aria-selected", String(k === cur)); b.tabIndex = k === cur ? 0 : -1; });+ bars[cur]?.scrollIntoView({ block: "nearest", inline: "nearest" });+ render(0);+ }+ function tick(now: number) {+ raf = 0;+ if (!root.open) return;+ // 切走标签页时 rAF 会停,回来那一帧不把离开的时间一次算进去+ t += Math.min(now - last, 100); last = now;+ if (t >= dur(cur)) show(cur + 1);+ else render(t);+ raf = requestAnimationFrame(tick);+ }+ function start(i: number) {+ show(i);+ last = performance.now();+ if (!raf) raf = requestAnimationFrame(tick);+ }++ bars.forEach((b) => b.addEventListener("click", () => start(Number(b.dataset.goto))));+ root.querySelector("[data-tour-prev]")?.addEventListener("click", () => start(cur - 1));+ root.querySelector("[data-tour-next]")?.addEventListener("click", () => start(cur + 1));+ root.addEventListener("keydown", (e) => {+ if (e.key === "ArrowRight") { e.preventDefault(); start(cur + 1); }+ else if (e.key === "ArrowLeft") { e.preventDefault(); start(cur - 1); }+ });+ root.addEventListener("close", () => { cancelAnimationFrame(raf); raf = 0; });+ // 一打开就从第 1 步播起+ new MutationObserver(() => { if (root.open) start(0); }).observe(root, { attributes: true, attributeFilter: ["open"] });+ show(0);+}diff --git a/site/src/sections/Bots.astro b/site/src/sections/Bots.astronew file mode 100644index 0000000..b6d95ad--- /dev/null+++ b/site/src/sections/Bots.astro@@ -0,0 +1,148 @@+---+// 认识你的机器人(§6.9):"给每个机器人一份工作"——所以给它们发工牌。+// 章节头 → 一张大舞台卡:最上面一排六个角色(WAI-ARIA tabs,选中的那个"在岗",其余几个转头看它);+// 细线下垂下一根挂绳,挂着当前角色的工牌(证件照是会动、能戳的大头像,月薪 = 日常用量的月估算);+// 右边是手机里的对话,中间一条电脑 ↔ 手机的连线(微信 / 飞书)。卡片下面三条手机端的好处。+// 交互在 scripts/sections.ts:换角色时工牌翻面、挂绳晃一晃,鼠标拨一下工牌也会晃;手机里的回复逐字打出;+// 舞台卡底光和挂绳随角色换色;窄屏上纵向排列,左右滑动舞台也能换角色。+// 月薪 = 计算器"日常"预设 × 默认线路价;点开去 /pricing 的计算器,并带上这个模型(计算器读 ?m=)。+// 名字:每个角色的中英文名都取自它最显眼的那件配饰(天天 Ping ← 天线、闪闪 Twinkle ← 星星、芽芽 Sprout ← 嫩芽、+// 哒哒 Beat ← 耳机、晶晶 Crystal ← 水晶、飞飞 Pilot ← 飞行护目镜)。工牌上名字旁边写着另一种语言的名字(alias),+// 座右铭讲名字的由来。证件照上不加任何标注(以前有一个指向配饰的小标签,用户 2026-10-31 要求去掉:没有意义)。+import BotFace from "../components/BotFace.astro";+import EyesMark from "../components/EyesMark.astro";+import Icon from "../components/Icon.astro";+import SectionHead from "../components/SectionHead.astro";+import { dict, fmt, href, type Lang } from "../i18n";+import { CHAR_KEYS, type CharKey } from "../lib/bots";+import { botModels } from "../data/pricing.config";+import { rowOf } from "../lib/site";+import { estimate, fmtMoney, PRESETS } from "../lib/calc";+interface Props { lang: Lang }+const { lang } = Astro.props;+const t = dict(lang);+const b = t.bots;+const pricingPage = href(lang, "/pricing");+const cost = (k: CharKey) => {+ const r = rowOf(botModels[k]);+ return r ? fmtMoney(estimate(r, { group: r.defaultGroup, ...PRESETS.everyday }).monthly) : "—";+};+// 工牌底部的条形码:按角色名算出来的伪随机竖条,纯装饰+const barcode = (k: string) => {+ let h = [...k].reduce((a, c) => (a * 31 + c.charCodeAt(0)) >>> 0, 7);+ const bars: [number, number][] = [];+ for (let x = 0; x < 118;) {+ h = (Math.imul(h, 1103515245) + 12345) >>> 0;+ const w = 1 + ((h >>> 16) % 3);+ bars.push([x, w]);+ x += w + 1 + ((h >>> 8) % 3);+ }+ return bars;+};+const perkIcons = ["chat", "layers", "bolt"] as const;+---+<section class="section" id="bots" aria-labelledby="bots-h2">+ <div class="container">+ <SectionHead n={2} label={t.kicker.bots} id="bots-h2" title={b.h2} dim={b.h2dim} lead={b.lead} />++ <div class="crew fx-rise" data-crew data-char={CHAR_KEYS[0]} data-doze data-fx>+ <div class="lineup" role="tablist" aria-label={b.tabsLabel} data-bot-tabs>+ {CHAR_KEYS.map((k, i) => (+ <button type="button" role="tab" class="lineup__bot bot-hover" id={`bt-${k}`} aria-selected={i === 0 ? "true" : "false"} aria-controls={`bp-${k}`} tabindex={i === 0 ? 0 : -1} data-bot={k} style={`--c:var(--bot-${k}-glow)`}>+ <BotFace char={k} size={64} lively />+ <span class="lineup__name">{b.chars[k].name}</span>+ <span class="lineup__job" aria-hidden="true"><span>{b.chars[k].job}</span><span class="lineup__duty">{b.badge.onDuty}</span></span>+ </button>+ ))}+ </div>++ <div class="crew__stage" data-bot-stage>+ <div class="crew__badge">+ <div class="badge-hang" data-badge>+ <span class="badge-hang__strap" aria-hidden="true"></span>+ <span class="badge-hang__clip" aria-hidden="true"></span>+ <div class="badge-card" data-badge-card>+ <div class="badge-card__top" aria-hidden="true">+ <span class="badge-card__org"><EyesMark size={16} />{b.badge.org}</span>+ <span class="badge-card__staff">{b.badge.staff}</span>+ </div>+ {CHAR_KEYS.map((k, i) => (+ <div class="badge-card__panel" role="tabpanel" id={`bp-${k}`} aria-labelledby={`bt-${k}`} hidden={i !== 0} data-panel={k} style={`--c:var(--bot-${k}-glow)`}>+ <div class="badge-card__photo">+ <BotFace char={k} size={176} lively pokeable />+ </div>+ <div class="badge-card__id">+ <p class="badge-card__job eyebrow">{b.chars[k].job}</p>+ <h3 class="badge-card__name subhead">{b.chars[k].name} <span class="badge-card__alias" lang={lang === "zh" ? "en" : "zh-CN"}>{b.chars[k].alias}</span></h3>+ <p class="badge-card__motto">{b.chars[k].lead}</p>+ </div>+ <dl class="badge-card__fields">+ <div><dt>{b.badge.skills}</dt><dd>{b.chars[k].rest}</dd></div>+ <div><dt>{b.badge.model}</dt><dd><span class="mono">{botModels[k]}</span><small>{b.modelNote}</small></dd></div>+ <div><dt>{b.badge.salary}</dt><dd>+ <a class="mono" href={`${pricingPage}?m=${botModels[k]}#calc`} data-track="bot_cost_click" data-track-bot_id={k} data-track-model_id={botModels[k]}>{fmt(b.cost, { amount: cost(k) })}<Icon name="arrow" size={14} /></a>+ <small>{b.badge.salaryNote}</small>+ </dd></div>+ </dl>+ <div class="badge-card__foot" aria-hidden="true">+ <svg viewBox="0 0 120 22" preserveAspectRatio="none">{barcode(k).map(([x, w]) => <rect x={x} y="0" width={w} height="22" />)}</svg>+ <span class="mono">{b.badge.no} · AMB-{String(i + 1).padStart(3, "0")}</span>+ </div>+ </div>+ ))}+ </div>+ </div>+ <p class="crew__where"><Icon name="devices" size={16} />{b.where.pc}</p>+ </div>++ <div class="crew__link" aria-hidden="true">+ <span class="crew__wire"><i></i></span>+ <span class="crew__wire-label">{b.link}</span>+ </div>++ <div class="crew__phone">+ <div class="phone phone--full" aria-hidden="true">+ <div class="phone__screen">+ <div class="phone__status">+ <span>9:41</span><i class="phone__island"></i>+ <svg class="phone__sys" viewBox="0 0 63 12" fill="currentColor">+ <rect x="0" y="8" width="3" height="4" rx=".8" /><rect x="5" y="5.5" width="3" height="6.5" rx=".8" /><rect x="10" y="3" width="3" height="9" rx=".8" /><rect x="15" y="0" width="3" height="12" rx=".8" />+ <g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"><path d="M26.6 7.6a4.8 4.8 0 0 1 6.8 0" /><path d="M24.2 5.1a8.2 8.2 0 0 1 11.6 0" /></g><circle cx="30" cy="10.2" r="1.3" />+ <rect x="40.5" y="1" width="19" height="10" rx="3" fill="none" stroke="currentColor" stroke-width="1" opacity=".45" /><rect x="42.5" y="3" width="13" height="6" rx="1.5" /><rect x="60.5" y="4" width="1.5" height="4" rx=".75" opacity=".45" />+ </svg>+ </div>+ {CHAR_KEYS.map((k, i) => (+ <div class="phone__view" data-phone={k} hidden={i !== 0}>+ <div class="phone__head">+ <Icon name="chevron" class="phone__back" size={18} />+ <BotFace char={k} size={36} />+ <span class="phone__who"><b>{b.chars[k].name}</b><small>{b.phoneStatus}</small></span>+ </div>+ <div class="phone__log">+ <span class="phone__day">{b.phoneDay}</span>+ <p class="msg msg--user">{b.chars[k].user}</p>+ <div class="phone__reply"><BotFace char={k} size={26} /><p class="msg msg--bot">{b.chars[k].bot}</p></div>+ </div>+ </div>+ ))}+ <div class="phone__input"><i class="phone__plus"></i><span>{b.phoneInput}</span><i class="phone__send"></i></div>+ <i class="phone__home"></i>+ </div>+ </div>+ <p class="crew__where"><Icon name="chat" size={16} />{b.where.phone}</p>+ </div>+ </div>+ <p class="crew__note small muted">{b.phoneNote}<span class="crew__swipe"> · {b.swipeHint}</span></p>+ </div>++ <ul class="crew-perks" role="list">+ {b.perks.map((p, i) => (+ <li class="reveal" style={`--reveal-delay:${i * 80}ms`}>+ <span class="crew-perks__ico"><Icon name={perkIcons[i]} /></span>+ <b>{p.title}</b>+ <span>{p.body}</span>+ </li>+ ))}+ </ul>+ </div>+</section>diff --git a/site/src/sections/Devices.astro b/site/src/sections/Devices.astronew file mode 100644index 0000000..d06181b--- /dev/null+++ b/site/src/sections/Devices.astro@@ -0,0 +1,182 @@+---+// 在哪都找得到它(§6.6):章节头 → 一幅产品合成图 → 一行四栏的入口 → 一个按需打开的"接入指南"。样式见 sections.css 的"6 在哪都找得到它"。+// 首页这一节只讲一件事:"同一个机器人、同一份记忆,在哪都能找到它"——不在页面上摆命令、令牌、步骤和二维码:+// 合成图:浏览器(左后)、桌面 App(正中、最大)、手机里的聊天软件(右前)三块磨砂玻璃屏幕错落叠放,显示同一段和天天的对话,+// 回答下面挂着同一条"记忆"标签(三处一模一样,用画面说"一份记忆")。屏幕照真实界面画:浏览器有标签页和地址栏,+// App 有侧栏(搜索、机器人列表)、浮起的主面板和玻璃输入框,手机有状态栏、聊天软件的顶栏和输入栏。整幅是示意,对读屏隐藏。+// 入口行:一条磨砂玻璃底座,桌面 / Docker / 浏览器 / 聊天软件四栏,每栏一句话 + 一个链接,栏与栏之间一根细线。+// 桌面链到下载页;其余三栏打开"接入指南"并切到对应的那一页(scripts/sections.ts 的 hub:[data-hub-open])。+// 接入指南:一个对话框,顶上一排标签(Docker、浏览器、各聊天渠道——按语言不同,见 data/channels.ts),+// 下面是这一项的命令或步骤(扫码类渠道附示意二维码;标着 soon 的渠道只有一句说明,标签上带"即将支持"的小标记)。+// 无 JS 时对话框直接展开在页面里,所有内容按顺序排着。+import BotFace from "../components/BotFace.astro";+import EyesMark from "../components/EyesMark.astro";+import Icon from "../components/Icon.astro";+import SectionHead from "../components/SectionHead.astro";+import { CHANNELS, type ChannelIcon } from "../data/channels";+import { dict, fmt, href, type Lang } from "../i18n";+import { releases } from "../lib/site";+interface Props { lang: Lang }+const { lang } = Astro.props;+const t = dict(lang);+const d = t.devices;+const it = d.items;+const th = d.thread;+const blue = t.bots.chars.blue;+const chats = CHANNELS[lang];+// 入口行的小字只列已经能用的渠道;标着 soon 的(还没上线)只在接入指南里出现+const chatNames = chats.filter((c) => !c.soon).map((c) => c.title).join(" · ");+// 合成图里手机上的聊天软件:第一个已经能用的渠道+const liveChat = chats.find((c) => !c.soon) ?? chats[0];+// 合成图里 App 窗口的数据:侧栏三行(时间是示意)、搜索与输入框的占位(借用 Hero 舞台的文案)、输入框里的模型+const st = t.hero.stage;+const rows = [{ k: "blue", when: "17:02" }, { k: "orange", when: "16:40" }, { k: "green", when: "09:15" }] as const;+const MODEL = "claude-sonnet-5-5";+// 接入指南的标签:Docker、浏览器、各聊天渠道+type Guide = { id: string; kind: "docker" | "browser" | "chat"; icon: "server" | "browser" | ChannelIcon; title: string; soon?: string };+const guides: Guide[] = [+ { id: "docker", kind: "docker", icon: "server", title: it.docker.title },+ { id: "browser", kind: "browser", icon: "browser", title: it.browser.title },+ ...chats.map((c): Guide => ({ id: c.id, kind: "chat", icon: c.icon, title: c.title, soon: c.soon })),+];+const ways = [+ { icon: "devices", title: it.desktop.title, sub: it.desktop.sub, body: it.desktop.body },+ { icon: "server", title: it.docker.title, sub: it.docker.sub, body: it.docker.body, open: "docker" },+ { icon: "browser", title: it.browser.title, sub: it.browser.format, body: it.browser.body, open: "browser" },+ { icon: "chat", title: d.groupChat, sub: chatNames, body: d.chatBody, open: chats[0]?.id },+] as const;+// 示意二维码(不可扫描):三个定位角 + 伪随机点+const finder = (x: number, y: number, ox: number, oy: number) => {+ const dx = x - ox, dy = y - oy;+ if (dx < 0 || dy < 0 || dx > 6 || dy > 6) return null;+ return dx === 0 || dy === 0 || dx === 6 || dy === 6 || (dx >= 2 && dx <= 4 && dy >= 2 && dy <= 4);+};+const qr: [number, number][] = [];+for (let y = 0; y < 29; y++) for (let x = 0; x < 29; x++) {+ const f = finder(x, y, 0, 0) ?? finder(x, y, 22, 0) ?? finder(x, y, 0, 22);+ const nearFinder = (x <= 7 && y <= 7) || (x >= 21 && y <= 7) || (x <= 7 && y >= 21);+ if (f === true || (!nearFinder && f == null && (x * 7 + y * 13 + x * y) % 5 === 0)) qr.push([x, y]);+}+---+<section class="section" id="devices" aria-labelledby="devices-h2">+ <div class="container">+ <SectionHead n={6} label={t.kicker.devices} id="devices-h2" title={d.h2} dim={d.h2dim} lead={d.lead} />++ <div class="reach" id="download">+ <!-- 合成图:三块磨砂玻璃屏幕,同一段对话、同一条记忆;背后一层静止的柔光,玻璃才磨得出砂 -->+ <div class="reach__stage" aria-hidden="true" data-inview>+ <div class="reach__lights"></div>++ <!-- 浏览器(左后):本机网页控制台 -->+ <div class="rs rs--browser">+ <div class="rs__tabs"><span class="rs__dots"><i></i><i></i><i></i></span><span class="rs__tab"><EyesMark size={12} mode="static" />AnyModelBot<Icon name="close" size={9} /></span></div>+ <div class="rs__bar">+ <span class="rs__nav"><Icon name="arrow" size={11} class="flip" /><Icon name="arrow" size={11} /></span>+ <span class="rs__url"><Icon name="lock" size={10} /><span>127.0.0.1<span class="rs__port">:3600</span></span></span>+ </div>+ <div class="rs__page">+ <span class="rs__rail">{(["blue", "orange", "green"] as const).map((k, i) => <span class:list={["rs__dot", { "is-on": i === 0 }]}><BotFace char={k} size={20} /></span>)}</span>+ <div class="rs__thread">+ <p class="rs__msg rs__msg--me">{th.user}</p>+ <div class="rs__reply"><BotFace char="blue" size={22} /><p class="rs__msg">{th.bot}</p></div>+ <p class="rs__memo"><Icon name="layers" size={11} />{th.memoLabel} · {th.memo}</p>+ </div>+ </div>+ </div>++ <!-- 桌面 App(正中、最大):照 App 的界面——毛玻璃侧栏 + 浮起的主面板 + 玻璃输入框 -->+ <div class="rs rs--app">+ <div class="rs__app">+ <div class="rs__side">+ <div class="rs__side-top"><span class="rs__dots"><i></i><i></i><i></i></span><span class="rs__ib"><Icon name="plus" size={13} /></span></div>+ <div class="rs__search"><Icon name="search" size={11} />{st.search}</div>+ {rows.map((r, i) => (+ <span class:list={["rs__row", { "is-on": i === 0 }]}>+ <BotFace char={r.k} size={28} />+ <span class="rs__row-body"><span class="rs__row-line"><b>{t.bots.chars[r.k].name}</b><small>{r.when}</small></span><span class="rs__snip">{t.bots.chars[r.k].job}</span></span>+ </span>+ ))}+ </div>+ <div class="rs__main">+ <div class="rs__head"><BotFace char="blue" size={22} /><b>{blue.name}</b><span class="rs__grow"></span><span class="rs__ib"><Icon name="layers" size={13} /></span></div>+ <div class="rs__thread">+ <p class="rs__msg rs__msg--me">{th.user}</p>+ <div class="rs__reply"><BotFace char="blue" size={26} /><p class="rs__msg">{th.bot}</p></div>+ <p class="rs__memo"><Icon name="layers" size={11} />{th.memoLabel} · {th.memo}</p>+ </div>+ <div class="rs__composer">+ <span class="rs__ph">{fmt(st.input, { name: blue.name })}</span>+ <span class="rs__tools"><span class="rs__ib rs__ib--ring"><Icon name="plus" size={11} /></span><span class="rs__chip mono">{MODEL}<Icon name="chevron" size={9} /></span><span class="rs__send"><Icon name="arrow" size={11} /></span></span>+ </div>+ </div>+ </div>+ </div>++ <!-- 手机(右前):聊天软件里的同一段对话 -->+ <div class="rs rs--phone">+ <div class="rs__status"><b>9:41</b><span class="rs__sig"><i></i><i></i><i></i><i></i></span><span class="rs__bat"><i></i></span></div>+ <div class="rs__phone-head"><Icon name="chevron" size={14} class="rs__back" /><BotFace char="blue" size={26} /><span><b>{blue.name}</b><small>{liveChat?.title}</small></span></div>+ <div class="rs__thread">+ <span class="rs__day">{t.bots.phoneDay}</span>+ <p class="rs__msg rs__msg--me">{th.user}</p>+ <div class="rs__reply"><p class="rs__msg">{th.bot}</p></div>+ <p class="rs__memo"><Icon name="layers" size={11} />{th.memoLabel} · {th.memo}</p>+ </div>+ <div class="rs__input"><span class="rs__ib rs__ib--ring"><Icon name="plus" size={11} /></span><span class="rs__field">{t.bots.phoneInput}</span></div>+ <i class="rs__home"></i>+ </div>+ </div>++ <!-- 入口行:一条磨砂玻璃底座,四栏、细线分隔,每栏一句话 + 一个链接 -->+ <ul class="reach__ways" role="list">+ {ways.map((w) => (+ <li class="reach__way">+ <span class="reach__ico"><Icon name={w.icon} size={20} /></span>+ <h3 class="reach__title">{w.title}<small>{w.sub}</small></h3>+ <p class="reach__body">{w.body}</p>+ {"open" in w && w.open+ ? <button type="button" class="reach__link" data-open-dialog="reach-guide" data-hub-open={w.open}>{d.howTo}<Icon name="arrow" size={14} /></button>+ : <a class="reach__link" href={href(lang, "/download")}>{it.desktop.more.replace(/\s*→$/, "")}<Icon name="arrow" size={14} /></a>}+ </li>+ ))}+ </ul>+ </div>+ <p class="small muted devices__note">{d.note}</p>++ <!-- 接入指南:顶上一排标签,下面是这一项的命令或步骤 -->+ <dialog class="sheet reach-guide" id="reach-guide" aria-labelledby="reach-guide-h" data-hub>+ <div class="sheet__head"><h3 class="h3" id="reach-guide-h">{d.guideTitle}</h3><button class="icon-btn" type="button" data-close-dialog aria-label={t.ui.close}><Icon name="close" /></button></div>+ <div class="sheet__body">+ <div class="reach-guide__tabs" role="tablist" aria-orientation="horizontal" aria-label={d.pick}>+ {guides.map((g, i) => (+ <button type="button" role="tab" class="reach-guide__tab" id={`ht-${g.id}`} aria-controls={`hp-${g.id}`} aria-selected={i === 0 ? "true" : "false"} tabindex={i === 0 ? 0 : -1} data-hub-tab={g.id} data-kind={g.kind}>+ <Icon name={g.icon} size={16} />{g.title}{g.soon && <span class="badge badge--neutral reach-guide__soon">{g.soon}</span>}+ </button>+ ))}+ </div>+ <section class="hub__panel is-on" role="tabpanel" id="hp-docker" aria-labelledby="ht-docker" tabindex="0" data-hub-panel="docker">+ <p class="reach-guide__lead">{it.docker.body}</p>+ <div class="code"><code>{releases.platforms.docker.command}</code>+ <button type="button" class="copy-btn" data-copy-code data-track="docker_cmd_copy" data-track-command="docker-run"><Icon name="copy" />{t.ui.copy}</button></div>+ <a class="small hub__more" href={`${href(lang, "/download")}#docker`}>{it.desktop.more}</a>+ </section>+ <section class="hub__panel" role="tabpanel" id="hp-browser" aria-labelledby="ht-browser" tabindex="0" data-hub-panel="browser">+ <p class="reach-guide__lead">{it.browser.body}</p>+ <ol class="hub__steps">{d.browserGuide.steps.map((s) => <li>{s}</li>)}</ol>+ </section>+ {chats.map((c) => (+ <section class="hub__panel" role="tabpanel" id={`hp-${c.id}`} aria-labelledby={`ht-${c.id}`} tabindex="0" data-hub-panel={c.id}>+ <p class="reach-guide__lead"><b>{c.format}</b>{c.body}</p>+ {c.guide.steps.length > 0 && <ol class="hub__steps">{c.guide.steps.map((s) => <li>{s}</li>)}</ol>}+ {c.guide.limit && <p class="small muted">{c.guide.limit}</p>}+ {c.guide.qr && (+ <figure class="qr-sample"><svg viewBox="0 0 29 29" width="96" height="96" aria-hidden="true">+ {qr.map(([x, y]) => <rect x={x} y={y} width="1" height="1" />)}+ </svg><figcaption class="small muted">{c.guide.qr}</figcaption></figure>+ )}+ </section>+ ))}+ </div>+ </dialog>+ </div>+</section>diff --git a/site/src/sections/Faq.astro b/site/src/sections/Faq.astronew file mode 100644index 0000000..8346d57--- /dev/null+++ b/site/src/sections/Faq.astro@@ -0,0 +1,34 @@+---+// 常见问题:章节头 → 两栏,整节不用卡片(首页里的"安静段落",样式见 sections.css 的"7 常见问题")。+// 左边闪闪顶着一个对话气泡(吸顶),打开哪个问题它就看向哪个、点个头(scripts/sections.ts),下面是去文档的链接。+// 右边是只用细线分隔的折叠列表:编号 → 问题 → "+"(打开时转成"×"),回答平滑展开。+import Icon from "../components/Icon.astro";+import BotFace from "../components/BotFace.astro";+import SectionHead from "../components/SectionHead.astro";+import { dict, fmt, buildVars, type Lang } from "../i18n";+import { docsUrl } from "../lib/docs";+interface Props { lang: Lang }+const { lang } = Astro.props;+const t = dict(lang);+const v = buildVars(lang);+---+<section class="section" id="faq" aria-labelledby="faq-h2">+ <div class="container">+ <SectionHead n={7} label={t.kicker.faq} id="faq-h2" title={t.faq.h2} dim={t.faq.h2dim} />+ <div class="faq-wrap">+ <div class="faq-wrap__aside" data-doze>+ <p class="faq-wrap__bubble">{t.faq.ask}</p>+ <BotFace char="yellow" size={120} lively pokeable class="faq-wrap__bot" />+ <a class="faq-wrap__more" href={docsUrl(lang)} target="_blank" rel="noopener">{t.faq.more}<Icon name="arrow" size={16} /></a>+ </div>+ <div class="faq">+ {t.faq.items.map((it, i) => (+ <details data-faq={i + 1}>+ <summary><span class="faq__n mono" aria-hidden="true">{String(i + 1).padStart(2, "0")}</span><span class="faq__q">{it.q}</span><Icon name="plus" /></summary>+ <div><p>{fmt(it.a, v)}</p></div>+ </details>+ ))}+ </div>+ </div>+ </div>+</section>diff --git a/site/src/sections/Final.astro b/site/src/sections/Final.astronew file mode 100644index 0000000..50b012b--- /dev/null+++ b/site/src/sections/Final.astro@@ -0,0 +1,63 @@+---+// 收尾横幅(和首屏呼应):一张大圆角卡,跟着页面主题走——深色下是深色卡,浅色下是干净的白卡(不要写死 data-theme="dark",+// 否则浅色下卡片是白的、里面的字却还是深色主题的白字,几乎看不见)。+// 背景全部静止:顶上一束白光 → 一层星空(深色小星点 / 浅色四角形细小闪光,标题背后不放)→ 底边一道扁扁的地平线 → 颗粒(样式在 sections.css)。+// 正中:标题 → 一句话 → 下载 / Docker → 开源说明;六个机器人站在地平线后面,只探出上半个头。+// 指针移到下载按钮上,六个机器人一起看过去、挨个蹦一下;点下载就一起庆祝(scripts/sections.ts)。+// 全卡只有下载按钮用品牌色。桌面上横幅滚进来时像百叶窗一样一条条拉开(.shutter,进度由 scripts/scroll-fx.ts 写进 --p)。+import BotFace from "../components/BotFace.astro";+import DownloadButton from "../components/DownloadButton.astro";+import Icon from "../components/Icon.astro";+import { dict, href, type Lang } from "../i18n";+import { GITHUB_URL } from "../lib/site";+import { CHAR_KEYS } from "../lib/bots";+interface Props { lang: Lang }+const { lang } = Astro.props;+const t = dict(lang);+// 星空:1200 × 360 的画布上伪随机撒点(每次构建都一样、不成网格);标题和按钮背后那一块椭圆里几乎不放,只在两侧和顶上。+// 深色用小星点(几颗亮星外面套一圈极淡的光),浅色用十来个四角形的细小闪光。全部静止。+const GLINT = "M0-1C.1-.1.1-.1 1 0C.1.1.1.1 0 1C-.1.1-.1.1-1 0C-.1-.1-.1-.1 0-1Z";+const sky = (() => {+ let h = 31102026;+ const rnd = () => (h = (Math.imul(h, 1103515245) + 12345) >>> 0) / 2 ** 32;+ const inCopy = (x: number, y: number) => { const dx = (x - 600) / 380, dy = (y - 190) / 170; return dx * dx + dy * dy < 1; };+ const dots: { x: number; y: number; r: number; o: number }[] = [];+ while (dots.length < 110) {+ const x = +(rnd() * 1200).toFixed(1), y = +(rnd() * 360).toFixed(1);+ if (inCopy(x, y) && rnd() < 0.85) continue;+ if (rnd() < 0.05) dots.push({ x, y, r: 3.8, o: 0.08 }, { x, y, r: 1.2, o: 0.9 });+ else dots.push({ x, y, r: +(0.5 + rnd() * 0.6).toFixed(2), o: +(0.3 + rnd() * 0.5).toFixed(2) });+ }+ const glints: { x: number; y: number; s: number; o: number }[] = [];+ while (glints.length < 14) {+ const x = +(rnd() * 1200).toFixed(1), y = +(24 + rnd() * 260).toFixed(1);+ if (inCopy(x, y)) continue;+ glints.push({ x, y, s: +(3 + rnd() * 4).toFixed(1), o: +(0.45 + rnd() * 0.4).toFixed(2) });+ }+ return { dots, glints };+})();+---+<section class="section final" aria-labelledby="final-h2">+ <div class="container">+ <div class="final__banner" data-fx data-fx-from=".95" data-fx-to=".3">+ <div class="final__sky" aria-hidden="true">+ <svg viewBox="0 0 1200 360" preserveAspectRatio="xMidYMin slice" focusable="false">+ <g class="dot">{sky.dots.map((s) => <circle cx={s.x} cy={s.y} r={s.r} opacity={s.o} />)}</g>+ <g class="glint">{sky.glints.map((g) => <path d={GLINT} transform={`translate(${g.x} ${g.y}) scale(${g.s})`} opacity={g.o} />)}</g>+ </svg>+ </div>+ <div class="final__inner">+ <h2 class="h2" id="final-h2">{t.final.h2}</h2>+ <p class="lead">{t.final.sub}</p>+ <div class="final__cta">+ <DownloadButton lang={lang} placement="final" id="cta-final" />+ <a class="final__docker" href={`${href(lang, "/download")}#docker`} data-track="cta_click" data-track-location="final-docker">{t.final.docker}</a>+ </div>+ <p class="final__oss small"><span class="badge badge--neutral">MIT</span> {t.final.oss} · <a href={GITHUB_URL} target="_blank" rel="noopener" data-track="github_click" data-track-location="final"><Icon name="branch" size={14} />{t.final.ossRepo}</a> · <a href={href(lang, "/licenses")} data-track="licenses_click">{t.final.ossLicenses}</a></p>+ </div>+ <div class="final__bots" aria-hidden="true" data-doze>{CHAR_KEYS.map((k, i) => <span class="final__bot" style={`--k:${i}`}><BotFace char={k} size={72} lively pokeable /></span>)}</div>+ <div class="final__horizon" aria-hidden="true"></div>+ <div class="shutter" aria-hidden="true">{Array.from({ length: 6 }, (_, i) => <i style={`--i:${i}`}></i>)}</div>+ </div>+ </div>+</section>diff --git a/site/src/sections/Flow.astro b/site/src/sections/Flow.astronew file mode 100644index 0000000..b69cc49--- /dev/null+++ b/site/src/sections/Flow.astro@@ -0,0 +1,81 @@+---+// 数据去向图(§6.3):节点是可展开的按钮(HTML,键盘可达);连线是装饰性 SVG,进入视口时点亮。+// 整张图放在芽芽颜色底光的舞台卡里。+// "你的设备"是一块有边界的区域:一圈静止的淡绿边框,里面五样东西各带一个图标;+// 出去的只有"这一次请求"——一颗小光点沿虚线走出边界(这是图里唯一会动的东西,因为它表示数据的流向)。强调色只用芽芽的绿(--tint),不用品牌黄绿。+import Icon from "../components/Icon.astro";+import SectionHead from "../components/SectionHead.astro";+import { dict, href, type Lang } from "../i18n";+interface Props { lang: Lang }+const { lang } = Astro.props;+const t = dict(lang);+const n = t.flow.nodes;+const local = ["chats", "memory", "workspace", "key", "console"] as const;+const icons = { chats: "chat", memory: "layers", workspace: "doc", key: "lock", console: "browser" } as const;+const retention = t.flow.retentionUrl;+---+<section class="section" id="data" aria-labelledby="flow-h2">+ <div class="container">+ <SectionHead n={5} label={t.kicker.data} id="flow-h2" title={t.flow.h2} dim={t.flow.h2dim} lead={t.flow.lead} host="green" />+ <div class="flow-stage stage fx-rise" data-fx style="--stage-glow:var(--bot-green-glow);--tint:var(--bot-green-glow)">+ <div class="flow" data-flow data-inview>+ <div class="flow__col flow__col--local">+ <div class="flow__title"><span class="flow__where"><Icon name="lock" size={16} />{t.flow.local}</span><span class="badge badge--neutral flow__badge"><i></i>{t.flow.localBadge}</span></div>+ <ul role="list" class="flow__nodes">+ {local.map((k) => (+ <li>+ <button class="flow-node" type="button" aria-expanded="false" aria-controls={`fn-${k}`} data-node={k} data-title={n[k].label}><Icon name={icons[k]} size={16} class="flow-node__ico" /><span class="flow-node__label">{n[k].label}</span><span class="flow-node__plus" aria-hidden="true">+</span></button>+ <p class="flow-node__body small" id={`fn-${k}`} hidden>{n[k].body}</p>+ </li>+ ))}+ </ul>+ </div>+ <div class="flow__wire" aria-hidden="true">+ <span class="flow__wire-label">{t.flow.onlyRequest}</span>+ <div class="flow__line">+ <svg viewBox="0 0 120 40" preserveAspectRatio="none"><path class="flow__path" d="M0 20 H112" /><path class="flow__arrow" d="M104 12 L114 20 L104 28" /></svg>+ <i class="flow__packet"></i>+ </div>+ </div>+ <div class="flow__col">+ <div class="flow__title"><span>{t.flow.out}</span></div>+ <ul role="list" class="flow__nodes">+ <li>+ <button class="flow-node flow-node--big" type="button" aria-expanded="false" aria-controls="fn-gateway" data-node="gateway" data-title={n.gateway.label}><span>{n.gateway.label}<small>{n.gateway.sub}</small></span><span class="flow-node__plus" aria-hidden="true">+</span></button>+ <p class="flow-node__body small" id="fn-gateway" hidden>{n.gateway.body} <a href={retention} target="_blank" rel="noopener">{t.flow.retentionLink}</a></p>+ </li>+ </ul>+ <div class="flow__title flow__title--sub"><span>{t.flow.channels}</span></div>+ <ul role="list" class="flow__nodes">+ <li>+ <button class="flow-node flow-node--big" type="button" aria-expanded="false" aria-controls="fn-channels" data-node="channels" data-title={n.channels.label}><span>{n.channels.label}<small>{n.channels.sub}</small></span><span class="flow-node__plus" aria-hidden="true">+</span></button>+ <p class="flow-node__body small" id="fn-channels" hidden>{n.channels.body}</p>+ </li>+ </ul>+ </div>+ <div class="flow__wire flow__wire--2" aria-hidden="true">+ <div class="flow__line">+ <svg viewBox="0 0 120 40" preserveAspectRatio="none"><path class="flow__path" d="M0 20 H112" /><path class="flow__arrow" d="M104 12 L114 20 L104 28" /></svg>+ <i class="flow__packet"></i>+ </div>+ </div>+ <div class="flow__col flow__col--vendor">+ <div class="flow__title"><span>{t.flow.vendors}</span></div>+ <ul role="list" class="flow__nodes">+ <li>+ <button class="flow-node flow-node--big" type="button" aria-expanded="false" aria-controls="fn-vendors" data-node="vendors" data-title={n.vendors.label}>{n.vendors.label}<span class="flow-node__plus" aria-hidden="true">+</span></button>+ <p class="flow-node__body small" id="fn-vendors" hidden>{n.vendors.body}</p>+ </li>+ </ul>+ </div>+ </div>+ </div>++ <dialog class="sheet" id="flow-sheet" aria-labelledby="flow-sheet-h">+ <div class="sheet__head"><h3 class="h3" id="flow-sheet-h" data-flow-sheet-title></h3><button class="icon-btn" type="button" data-close-dialog aria-label={t.ui.close}><Icon name="close" /></button></div>+ <div class="sheet__body" data-flow-sheet-body></div>+ </dialog>++ <p class="center"><a class="btn btn--secondary" href={href(lang, "/security")} data-track="security_page_click" data-track-location="flow">{t.flow.security}</a></p>+ </div>+</section>diff --git a/site/src/sections/Handson.astro b/site/src/sections/Handson.astronew file mode 100644index 0000000..b1c9af4--- /dev/null+++ b/site/src/sections/Handson.astro@@ -0,0 +1,111 @@+---+// 能动手、会记住(§6.7、§6.8):章节头 → 一段"边滚边讲"的两章故事(参考 bevel.health 的分章叙事,版式和第 2 节的舞台卡同一套)。+// 桌面(≥1024 且屏幕够高、有 JS):左边两章文字依次滚过,右边一张吸顶的舞台卡跟着换场——+// 第 1 章 动手:飞飞骑在光标上干活,要你批准时冒"!",舞台底光是飞飞的橙;+// 第 2 章 记忆:芽芽一行行往 MEMORY.md 里记,有人想塞密码就眼睛一叉、划掉,底光换成芽芽的绿。+// 当前那章文字亮着、另一章淡下去;舞台卡顶上的两个小标签能点,点了滚到那一章(scripts/sections.ts 的 story)。+// 窄屏 / 无 JS:舞台卡拆开(display: contents),每章文字下面紧跟它自己的场景卡,从上往下读。+// 两个场景都是循环示意(时间线见 scripts/tour.ts 的 mountLoop),对读屏另有一句文字版。+import BotFace from "../components/BotFace.astro";+import EyesMark from "../components/EyesMark.astro";+import Icon from "../components/Icon.astro";+import SectionHead from "../components/SectionHead.astro";+import { dict, type Lang } from "../i18n";+interface Props { lang: Lang }+const { lang } = Astro.props;+const t = dict(lang);+const h = t.handson;+const w = t.window;+const m = t.memory;+const handsonIcons = ["shield", "lock", "pointer"] as const;+const memoryIcons = ["doc", "shield", "layers"] as const;+// 两章下面"还有这些"的六格:生图生视频、三档权限、斜杠命令、用量与预算、两条线路、微信收发图片和文件+const moreIcons = ["play", "shield", "terminal", "card", "globe", "chat"] as const;+const more = t.features.more;+const lineAt = (i: number) => String(500 + i * 650);+const secretAt = 500 + m.lines.length * 650 + 300;+const chapters = [+ { label: h.badge, tint: "var(--bot-orange-glow)" },+ { label: m.tag, tint: "var(--bot-green-glow)" },+];+---+<section class="section" id="features" aria-labelledby="features-h2">+ <div class="container">+ <SectionHead n={3} label={t.kicker.features} id="features-h2" title={t.features.h2} dim={t.features.h2dim} lead={t.features.lead} host="orange" />+ <div class="story" data-story>+ <article class="story__ch" data-ch="0" aria-labelledby="handson-h2" style="--tint:var(--bot-orange-glow)">+ <p class="story__no"><span class="story__n mono">01</span><span class="badge badge--neutral">{h.badge}</span><span class="badge badge--warn">{h.status}</span></p>+ <h3 class="subhead" id="handson-h2">{h.h2}</h3>+ <p class="story__lead">{h.lead}</p>+ <ul class="story__points" role="list">+ {h.points.map((p, i) => <li><span class="story__ico"><Icon name={handsonIcons[i]} /></span><p><b>{p.title}</b><span>{p.body}</span></p></li>)}+ </ul>+ <p class="story__note">{h.caveat}</p>+ </article>++ <article class="story__ch" data-ch="1" aria-labelledby="memory-h2" style="--tint:var(--bot-green-glow)">+ <p class="story__no"><span class="story__n mono">02</span><span class="badge badge--neutral">{m.tag}</span></p>+ <h3 class="subhead" id="memory-h2">{m.h2}</h3>+ <p class="story__lead">{m.layersLine}</p>+ <ul class="story__points" role="list">+ {m.points.map((p, i) => <li><span class="story__ico"><Icon name={memoryIcons[i]} /></span><p><b>{p.title}</b><span>{p.body}</span></p></li>)}+ </ul>+ </article>++ <div class="story__stage stage" data-story-stage style="--stage-glow:var(--bot-orange-glow)">+ <div class="story__tabs" aria-hidden="true">+ {chapters.map((c, i) => <button type="button" tabindex="-1" class:list={["story__tab", { "is-on": i === 0 }]} data-goto-ch={i} style={`--tint:${c.tint}`}><i></i>{c.label}</button>)}+ </div>++ <div class="story__scene is-on" data-scene="0" style="--tint:var(--bot-orange-glow)">+ <div class="desk" aria-hidden="true" data-loop="13000">+ <div class="desk__win">+ <div class="window__bar"><i></i><i></i><i></i></div>+ <div class="desk__files">{Array.from({ length: 12 }, (_, i) => <span class={`desk__file f${i % 4}`}></span>)}</div>+ <span class="desk__cursor tour__cursor" data-moves="[[0,18,60],[1200,58,30],[3600,38,52],[7600,68,66],[11000,18,60]]">+ <Icon name="pointer" size={22} />+ <BotFace char="orange" size={40} state="working" class="desk__rider"+ data-states='[[0,"working"],[5600,"waiting"],[8000,"working"],[9000,"idle"]]' data-shots='[[9000,"done"]]' />+ </span>+ </div>+ <div class="desk__log">+ {h.demoSteps.map((s, i) => <span class="desk__step on-rise" data-at={String(1400 + i * 1300)}><span class="tick">✓</span>{s}</span>)}+ <div class="approval desk__approval on-rise" data-at="5600"><b>{w.approvalTitle}</b><span>{h.approvalBody}</span>+ <div class="row"><span class="btn btn--primary tour__press" data-at="8000">{w.allow}</span><span class="btn btn--secondary">{w.deny}</span></div></div>+ <span class="file-chip desk__out on-rise" data-at="9000"><Icon name="doc" />{h.file}</span>+ </div>+ </div>+ <p class="sr-only">{h.demoSteps.join(",")},{w.approvalTitle}:{h.approvalBody},{w.allow},{h.file}</p>+ </div>++ <div class="story__scene" data-scene="1" style="--tint:var(--bot-green-glow)">+ <figure class="memfile" data-loop="12000">+ <BotFace char="green" size={64} lively class="memfile__bot"+ data-states={JSON.stringify([[0, "working"], [secretAt - 200, "idle"]])}+ data-shots={JSON.stringify([[secretAt + 700, "error"], [secretAt + 3600, "done"]])}+ data-say-at={String(secretAt + 900)} data-say={m.nope} />+ <figcaption class="memfile__bar"><span class="memfile__name"><i></i><i></i><i></i><span class="mono">MEMORY.md</span></span><span class="badge badge--neutral">{m.sample}</span></figcaption>+ <pre><code>{m.lines.map((l, i) => <span class:list={["mem-line on-rise", { "mem-line--h": l.startsWith("#") }]} data-at={lineAt(i)}>{l}</span>)}<span class="mem-line mem-line--secret on-rise" data-at={String(secretAt)}><span>{m.secret}</span><i class="mem-strike" data-at={String(secretAt + 1100)}></i></span></code></pre>+ <p class="memfile__refused small on-rise" data-at={String(secretAt + 1600)}>{m.refused}</p>+ </figure>+ </div>++ <EyesMark size={320} variant="ring" mode="static" class="story__mark" />+ </div>+ </div>++ <!-- 还有这些:上面两章没讲到的能力,版式沿用"认识它们"下面那排好处(home.css 的 crew-perks),三列两行 -->+ <div class="caps" aria-labelledby="caps-h3">+ <h3 class="subhead" id="caps-h3">{more.h3}</h3>+ <ul class="crew-perks" role="list">+ {more.items.map((p, i) => (+ <li class="reveal" style={`--reveal-delay:${(i % 3) * 80}ms`}>+ <span class="crew-perks__ico"><Icon name={moreIcons[i]} /></span>+ <b>{p.title}</b>+ <span>{p.body}</span>+ </li>+ ))}+ </ul>+ </div>+ </div>+</section>diff --git a/site/src/sections/Hero.astro b/site/src/sections/Hero.astronew file mode 100644index 0000000..f776c0c--- /dev/null+++ b/site/src/sections/Hero.astro@@ -0,0 +1,293 @@+---+// 首页第一屏(动效参考 bevel.health,窗口照 App 的原生界面 ui/design 来)。四周留 8px 的圆角大卡片,从上到下——+// 小胶囊(六个角色头像 + 一句话,链到"认识你的机器人")→ 标题(逐字由虚变实升起;第一行渐变字,行尾蹲着会看你、能戳的天天;+// 关键词品牌色 + 光晕,入场后一道亮光从左到右扫过)→ 一句说明 → 下载 / 演示 → 三条要点 → 舞台。+// 背景克制、全部静止:一层很淡的中性顶光(顶边淡入,不切出硬边)+ 顶部一层极淡的星空(小星点往下渐隐,少数几颗慢慢闪,偶尔划过一颗流星)→ 舞台后面一层极淡的机器人色 →+// 托住窗口的弧形"地平线"(一线淡亮边、正中稍亮)→ App 同款磨砂颗粒。颜色只在舞台换机器人时微微变(--hero-hue / --hz-glow),不用品牌黄绿。+// 舞台:一台 App 窗口(毛玻璃侧栏 + 浮起的主面板 + 玻璃输入框)+ 压在右下角的手机,循环 18 秒三幕,每幕换一个机器人:+// 一幕 天天 · 聊天改代码 → 二幕 飞飞 · 动手整理文件(要你批准)→ 三幕 芽芽 · 微信 / 飞书里来的消息,手机和窗口同步。+// 侧栏的选中行、顶栏、对话、输入框里的模型和窗口的环境光(App 的 --aura-hue)随幕切换。+// 宽屏两侧的卡片跟着节奏流动:左边的模型、任务、消息流进窗口,右边的结果、文件、记忆从窗口后面流出来。+// 时间线由 scripts/tour.ts 的 mountLoop 驱动(只在看得见时走表):data-steps 切幕(data-step 写"a / b / c",干活时再加"busy"),+// data-at 到点加 .on,data-type 逐字打出,data-flow 写卡片行程 --k,data-states / data-shots 驱动机器人。窗口的倾斜随滚动摆正(data-fx)。+// 减少动态效果时停在完成态(第三幕)、不放流动卡片;窄屏只留主面板。整块舞台是示意,对读屏隐藏。+import DownloadButton from "../components/DownloadButton.astro";+import Icon from "../components/Icon.astro";+import BotFace from "../components/BotFace.astro";+import HeroLogos from "../components/HeroLogos.astro";+import { dict, fmt, buildVars, type Lang } from "../i18n";+import { CHAR_KEYS, type CharKey } from "../lib/bots";+interface Props { lang: Lang }+const { lang } = Astro.props;+const t = dict(lang);+const v = buildVars(lang);+const s = t.hero.stage;+const u = t.tour.ui;+const bots = t.bots.chars;+const isZh = lang === "zh";+// 要点和"App 界面目前是简体中文"这类提示放在同一行小字里,不再单独占一行+const meta = [...t.hero.trust.map((x) => fmt(x, v)), ...(t.hero.appUiNote ? [t.hero.appUiNote] : [])];+// 顶部天空:在 1600 × 640 的画布上伪随机撒点,每次构建都一样、不成网格。两套,按主题只显示一套(home.css 的 .hero__sky):+// 深色·星空(dots):约 340 颗小星,标题背后那一块椭圆里只留约三成,字不会被打扰;约一成五偏冷蓝、一成偏暖,其余冷白;+// 少数亮星外面再套一圈极淡的光(h)。约五分之一的星(和所有亮星)慢慢明暗闪烁:周期 --d 3–7 秒、起点 --t 各不相同,不会一起闪。+// 另有两颗流星(.hero__meteor),隔十几、二十秒才划过一次。+// 浅色·晴空:白天没有星空,小灰点在白底上像灰尘——换成三朵很软的白云(.hero__cloud,纯 CSS,极慢地从左往右飘,横穿一次 3–5 分钟)+// + 四十来个四角形的细小闪光(glints,✦),只在标题两侧和上方,大小 3–8、颜色跟着当前机器人的色调压得很淡;+// 约六成会亮起来、转一下再隐去(各自错开)。不放流星。+const GLINT = "M0-1C.1-.1.1-.1 1 0C.1.1.1.1 0 1C-.1.1-.1.1-1 0C-.1-.1-.1-.1 0-1Z";+const sky = (() => {+ let h = 20261031;+ const rnd = () => (h = (Math.imul(h, 1103515245) + 12345) >>> 0) / 2 ** 32;+ const twinkle = (o: number) => `--o:${o};--d:${(3 + rnd() * 4).toFixed(1)}s;--t:-${(rnd() * 7).toFixed(1)}s`;+ const inTitle = (x: number, y: number) => { const dx = (x - 800) / 540, dy = (y - 300) / 270; return dx * dx + dy * dy < 1; };+ const dots: { x: number; y: number; r: number; o: number; cls?: string; tw?: string }[] = [];+ while (dots.length < 340) {+ const x = +(rnd() * 1600).toFixed(1), y = +(rnd() * 640).toFixed(1);+ if (inTitle(x, y) && rnd() < 0.7) continue;+ const big = rnd() < 0.06;+ const tint = rnd();+ const cls = tint < 0.15 ? "c" : tint < 0.25 ? "w" : undefined;+ if (big) dots.push({ x, y, r: 4.4, o: 0.09, cls: "h" }, { x, y, r: 1.35, o: 0.95, cls, tw: twinkle(0.95) });+ else {+ const o = +(0.35 + rnd() * 0.5).toFixed(2);+ dots.push({ x, y, r: +(0.55 + rnd() * 0.65).toFixed(2), o, cls, ...(rnd() < 0.2 ? { tw: twinkle(o) } : {}) });+ }+ }+ const glints: { x: number; y: number; s: number; o: number; tw?: string }[] = [];+ while (glints.length < 42) {+ const x = +(rnd() * 1600).toFixed(1), y = +(30 + rnd() * 500).toFixed(1);+ if (inTitle(x, y)) continue;+ const o = +(0.45 + rnd() * 0.45).toFixed(2);+ glints.push({ x, y, s: +(3 + rnd() * 5).toFixed(1), o, ...(rnd() < 0.6 ? { tw: twinkle(o) } : {}) });+ }+ return { dots, glints };+})();++// —— 标题:中文逐字、英文逐词拆成小块,--i 是出场次序;关键词里的块另有 --j(扫光的次序)——+type Piece = { space: string } | { w: string; i: number; j?: number };+let order = 0;+const split = (text: string, mark = false): Piece[] => {+ let j = 0;+ return (isZh ? Array.from(text) : text.split(/(\s+)/)).filter((x) => x !== "").map((x) => (/^\s+$/.test(x) ? { space: x } : { w: x, i: order++, ...(mark ? { j: j++ } : {}) }));+};+const lineA = split(t.hero.h1a);+const nA = order;+const lineB = { pre: split(t.hero.h1pre), mark: split(t.hero.h1mark, true), post: split(t.hero.h1b) };+const h1Style = `--na:${nA};--nt:${order};--step:${isZh ? 45 : 80}ms`;++// —— 舞台时间线(毫秒)——+const LOOP = 18000;+const FLOW = 3000; // 一张卡从泳道左外侧走到右外侧+// 整幕:a 天天 0–6s · b 飞飞 6–12s · c 芽芽 12–18s;"busy" 是机器人在干活(侧栏亮绿点、发送钮变停止、窗口里的头像进入工作状态)+const steps = JSON.stringify([[0, "a"], [1100, "a busy"], [4800, "a"], [6000, "b"], [6900, "b busy"], [10600, "b"], [12000, "c"], [12900, "c busy"], [15200, "c"]]);+const cast: { k: CharKey; step: "a" | "b" | "c"; model: string; busy: [number, number] }[] = [+ { k: "blue", step: "a", model: "claude-sonnet-5-5", busy: [1100, 4800] },+ { k: "orange", step: "b", model: "gpt-5.6-sol", busy: [6900, 10600] },+ { k: "green", step: "c", model: "deepseek-v4-flash", busy: [12900, 15200] },+];+const botStates = (b: [number, number]) => JSON.stringify([[0, "idle"], [b[0], "working"], [b[1], "idle"]]);+// 侧栏:三位主演 + 两位路人;时间是示意+const rows: { k: CharKey; when: string }[] = [+ { k: "blue", when: "21:08" }, { k: "orange", when: "20:46" }, { k: "green", when: "18:30" }, { k: "red", when: "17:52" }, { k: "purple", when: "09:15" },+];+const cps = isZh ? 30 : 44; // 回复逐字打出的速度:英文字母多,快一点,两种语言差不多同时写完++// 两侧流动的卡片:in 从左边流进窗口,out 从窗口后面流向右边;全程都要在 LOOP 之前走完,回绕时才看不出跳变。+// y / r / s:起止的纵向偏移(泳道高度的百分之几,不带单位)、角度(deg)、缩放。+type Kind = "model" | "msg" | "file" | "done" | "code" | "memory";+interface Card { side: "in" | "out"; at: number; kind: Kind; text?: string; label?: string; dot?: string; y: [number, number]; r: [number, number]; s?: [number, number] }+const cards: Card[] = [+ { side: "in", at: 0, kind: "model", text: "claude-sonnet-5-5", dot: "var(--bot-orange-glow)", y: [-34, -6], r: [12, 2] },+ { side: "in", at: 500, kind: "msg", text: u.chatUser, y: [30, 4], r: [-14, -2] },+ { side: "in", at: 1200, kind: "model", text: "gemini-3.5-flash", dot: "var(--bot-blue-glow)", y: [6, -2], r: [-4, -1], s: [1.06, .9] },+ { side: "out", at: 3300, kind: "code", y: [-2, -28], r: [-2, -10], s: [.9, 1] },+ { side: "out", at: 4000, kind: "done", text: s.fixed, y: [6, 30], r: [2, 10], s: [.9, 1] },++ { side: "in", at: 5000, kind: "model", text: "gpt-5.6-sol", dot: "var(--bot-green-glow)", y: [-30, -4], r: [10, 2] },+ { side: "in", at: 5700, kind: "msg", text: s.task, y: [32, 6], r: [-12, -2] },+ { side: "in", at: 6400, kind: "file", text: s.invoice, y: [0, -4], r: [-5, -1], s: [1.06, .9] },+ { side: "out", at: 9600, kind: "file", text: t.handson.file, y: [0, -26], r: [-2, -9], s: [.9, 1] },+ { side: "out", at: 10300, kind: "done", text: s.moved, y: [6, 30], r: [3, 11], s: [.9, 1] },++ { side: "in", at: 11000, kind: "model", text: "deepseek-v4-flash", dot: "var(--bot-purple-glow)", y: [-32, -4], r: [12, 2] },+ { side: "in", at: 11700, kind: "msg", label: u.imFrom, text: u.imUser, y: [28, 4], r: [-12, -2] },+ { side: "out", at: 14200, kind: "memory", text: s.saved, y: [0, -26], r: [-2, -10], s: [.9, 1] },+ { side: "out", at: 14900, kind: "done", text: s.digest, y: [6, 30], r: [2, 10], s: [.9, 1] },+];+const flowStyle = (c: Card) => [+ `--y0:${c.y[0]}`, `--y1:${c.y[1]}`, `--r0:${c.r[0]}deg`, `--r1:${c.r[1]}deg`,+ ...(c.s ? [`--s0:${c.s[0]}`, `--s1:${c.s[1]}`] : []), ...(c.dot ? [`--dot:${c.dot}`] : []),+].join(";");++// App 里的线稿图标(ui/design 的图标:细线、圆头),只在窗口里用+const I = {+ plus: '<path d="M12 5v14M5 12h14"/>',+ edit: '<path d="M12 20h9"/><path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z"/>',+ panel: '<rect x="3" y="4" width="18" height="16" rx="3"/><path d="M15 4v16"/>',+ search: '<circle cx="11" cy="11" r="6.5"/><path d="m20 20-4-4"/>',+ gear: '<circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1Z"/>',+ shield: '<path d="M12 3.5 19 6v5.5c0 4.2-3 7.6-7 9-4-1.4-7-4.8-7-9V6l7-2.5Z"/>',+ down: '<path d="m6 9 6 6 6-6"/>',+ up: '<path d="M12 19V5M5 12l7-7 7 7"/>',+ check: '<path d="m5 12.5 4.5 4.5L19 7.5"/>',+ doc: '<path d="M7 3.5h6.5L18 8v11a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 6 19V5a1.5 1.5 0 0 1 1-1.5Z"/><path d="M13 3.5V8h5M9 12.5h6M9 16h4"/>',+ memory: '<path d="M12 4.5 19.5 8 12 11.5 4.5 8 12 4.5Z"/><path d="m4.5 12 7.5 3.5 7.5-3.5M4.5 16l7.5 3.5 7.5-3.5"/>',+};+const ic = (d: string, size = 16, cls = "aic") => `<svg class="${cls}" width="${size}" height="${size}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${d}</svg>`;+---+<section class="hero" aria-labelledby="hero-h1">+ <div class="hero__bg" aria-hidden="true">+ <div class="hero__beam"></div>+ <div class="hero__sky">+ <svg class="hero__stars" viewBox="0 0 1600 640" preserveAspectRatio="xMidYMin slice" focusable="false">+ <g class="hero__dots">{sky.dots.map((s) => <circle cx={s.x} cy={s.y} r={s.r} opacity={s.o} class:list={[s.cls, { tw: s.tw }]} style={s.tw} />)}</g>+ <g class="hero__glints">{sky.glints.map((g) => <g transform={`translate(${g.x} ${g.y})`}><path d={GLINT} opacity={g.o} class:list={[{ tw: g.tw }]} style={`--s:${g.s};${g.tw ?? ""}`} /></g>)}</g>+ </svg>+ <div class="hero__clouds">+ <i class="hero__cloud" style="--y:36px;--w:540px;--x0:6cqw;--c:170s;--t:-38s"></i>+ <i class="hero__cloud" style="--y:150px;--w:380px;--x0:58cqw;--c:220s;--t:-150s;--o:.75"></i>+ <i class="hero__cloud" style="--y:4px;--w:660px;--x0:72cqw;--c:280s;--t:-226s;--o:.85"></i>+ </div>+ <i class="hero__meteor" style="--x:16%;--y:64px;--c:13s;--w:4s"></i>+ <i class="hero__meteor" style="--x:60%;--y:132px;--c:21s;--w:12s"></i>+ </div>+ <HeroLogos />+ <div class="hero__aura"></div>+ <div class="hero__glow"></div>+ <div class="hero__horizon"></div>+ </div>++ <div class="container hero__inner">+ <a class="hero__eyebrow" href="#bots">+ <span class="hero__crew">{CHAR_KEYS.map((k) => <BotFace char={k} size={22} />)}</span>+ <span>{t.hero.eyebrow}</span>+ <Icon name="arrow" size={14} />+ </a>+ <h1 class="hero__h1" id="hero-h1" style={h1Style}>+ <span class="sr-only">{t.hero.h1a} {t.hero.h1pre}{t.hero.h1mark}{t.hero.h1b}</span>+ <span class="hero__line hero__line--a" aria-hidden="true">{lineA.map((p) => ("space" in p ? p.space : <span class="hero__c" style={`--i:${p.i}`}>{p.w}</span>))}<BotFace char="blue" size={80} lively pokeable class="hero__bot" /></span>+ <span class="hero__line hero__line--b" aria-hidden="true">+ {lineB.pre.map((p) => ("space" in p ? p.space : <span class="hero__c" style={`--i:${p.i}`}>{p.w}</span>))}<em class="hero__em">{lineB.mark.map((p) => ("space" in p ? p.space : <span class="hero__c" style={`--i:${p.i};--j:${p.j}`}>{p.w}</span>))}</em>{lineB.post.map((p) => ("space" in p ? p.space : <span class="hero__c" style={`--i:${p.i}`}>{p.w}</span>))}+ </span>+ </h1>+ <p class="lead hero__lead">{fmt(t.hero.lead, v)}</p>+ <div class="hero__cta">+ <DownloadButton lang={lang} placement="hero" id="cta-hero">+ <button slot="after" class="btn btn--secondary" type="button" data-open-dialog="demo-tour" data-track="video_play" data-track-video_id="overview"><Icon name="play" />{t.hero.demo}</button>+ </DownloadButton>+ </div>+ <ul class="hero__meta" role="list">{meta.map((x) => <li><Icon name="check" size={14} />{x}</li>)}</ul>+ </div>++ <div class="hstage" aria-hidden="true" data-loop={LOOP} data-loop-threshold="0.05">+ {(["in", "out"] as const).map((lane) => (+ <div class={`hstage__lane hstage__lane--${lane}`}>+ {cards.filter((c) => c.side === lane).map((c) => (+ <div class="hs-flow" data-flow={`${c.at}:${c.at + FLOW}`} style={flowStyle(c)}>+ {c.kind === "model" && <span class="hs-card hs-card--model"><i></i>{c.text}</span>}+ {c.kind === "msg" && <span class="hs-card hs-card--msg">{c.label && <small>{c.label}</small>}{c.text}</span>}+ {c.kind === "file" && <span class="hs-card hs-card--file"><Fragment set:html={ic(I.doc, 16)} />{c.text}</span>}+ {c.kind === "done" && <span class="hs-card hs-card--done"><b><Fragment set:html={ic(I.check, 12)} /></b>{c.text}</span>}+ {c.kind === "memory" && <span class="hs-card hs-card--memory"><Fragment set:html={ic(I.memory, 16)} />{c.text}</span>}+ {c.kind === "code" && <span class="hs-card hs-card--code"><del>- for (i = 0; i <= len; i++)</del><ins>+ for (i = 0; i < len; i++)</ins></span>}+ </div>+ ))}+ </div>+ ))}++ <div class="hstage__devices" data-steps={steps} data-fx data-fx-to="0.2">+ <!-- App 窗口:环境光 → 毛玻璃侧栏 | 浮起的主面板(顶栏 → 对话 → 玻璃输入框),照 ui/css/shell.css、chat.css -->+ <div class="awin">+ <div class="awin__side">+ <div class="awin__top"><span class="awin__lights"><i></i><i></i><i></i></span><span class="awin__ib"><Fragment set:html={ic(I.plus)} /></span></div>+ <div class="awin__search"><Fragment set:html={ic(I.search, 14)} />{s.search}</div>+ <div class="awin__list">+ {rows.map((r) => (+ <div class="awin__row" data-bot={r.k}>+ <span class="awin__av"><BotFace char={r.k} size={34} /><i class="awin__dot"></i></span>+ <span class="awin__body">+ <span class="awin__line"><b>{bots[r.k].name}</b><small>{r.when}</small></span>+ <span class="awin__snip"><span>{bots[r.k].bot}</span><span class="awin__snip-busy">{s.working}</span></span>+ </span>+ </div>+ ))}+ </div>+ <div class="awin__acct"><span class="awin__me">{s.account.slice(0, 1).toUpperCase()}</span><span class="awin__who">{s.account}<small>{s.balance} $12.40</small></span><Fragment set:html={ic(I.gear)} /></div>+ </div>++ <div class="awin__main">+ <div class="awin__head">+ <span class="by-step awin__hb">+ {cast.map((c) => <span data-for={c.step}><BotFace char={c.k} size={24} data-states={botStates(c.busy)} data-shots={JSON.stringify([[c.busy[1], "done"]])} /><b>{bots[c.k].name}</b></span>)}+ </span>+ <span class="awin__grow"></span>+ <span class="awin__ib"><Fragment set:html={ic(I.edit)} /></span>+ <span class="awin__ib"><Fragment set:html={ic(I.panel)} /></span>+ </div>++ <div class="by-step awin__views">+ <!-- 一幕 天天:聊天改代码 -->+ <div class="awin__view hs-log" data-for="a">+ <div class="hs-item hs-item--static"><div><p class="amsg amsg--user">{bots.blue.user}</p></div></div>+ <div class="hs-item hs-item--static"><div><p class="amsg">{bots.blue.bot}</p></div></div>+ <div class="hs-item" data-at="400"><div><p class="amsg amsg--user">{u.chatUser}</p></div></div>+ <div class="hs-item" data-at="1100"><div><p class="awork"><span class="by-time"><span class="awork__live">{s.thinking}</span><span data-at="2400">{fmt(s.took, { s: "1.3s" })}</span></span></p></div></div>+ <div class="hs-item" data-at="2400"><div><p class="amsg awin__live"><span data-at="2400" data-type={u.chatReply} data-cps={cps}></span></p></div></div>+ <div class="hs-item" data-at="4300"><div><div class="acode"><span class="acode__bar">c</span><pre><del>- for (i = 0; i <= len; i++)</del>+<ins>+ for (i = 0; i < len; i++)</ins></pre></div></div></div>+ </div>+ <!-- 二幕 飞飞:动手整理文件,越界要你批准 -->+ <div class="awin__view hs-log" data-for="b">+ <div class="hs-item hs-item--static"><div><p class="amsg amsg--user">{bots.orange.user}</p></div></div>+ <div class="hs-item hs-item--static"><div><p class="amsg">{bots.orange.bot}</p></div></div>+ <div class="hs-item" data-at="6400"><div><p class="amsg amsg--user">{s.task}</p></div></div>+ <div class="hs-item" data-at="6900"><div><p class="awork"><span class="by-time"><span class="awork__live">{s.thinking}</span><span data-at="10400">{fmt(s.took, { s: "3.5s" })}</span></span></p></div></div>+ <div class="hs-item" data-at="7300"><div><ul class="awell asteps" role="list">{t.handson.demoSteps.map((x, i) => <li data-at={String(7300 + i * 500)}><Fragment set:html={ic(I.check, 13)} />{x}</li>)}</ul></div></div>+ <div class="hs-item" data-at="8800"><div><div class="awell aapprove" data-at="10000">+ <span class="aapprove__meta">{t.window.approvalTitle}</span>+ <b>{t.handson.approvalBody}</b>+ <span class="aapprove__row"><span class="abtn abtn--primary" data-at="9700">{t.window.allow}</span><span class="abtn">{t.window.deny}</span></span>+ <span class="aapprove__done"><Fragment set:html={ic(I.check, 13)} />{s.allowed}</span>+ </div></div></div>+ <div class="hs-item" data-at="10500"><div><div class="awell afile"><Fragment set:html={ic(I.doc, 24)} /><span><b>{t.handson.file}</b><small>{s.fileSub}</small></span></div></div></div>+ </div>+ <!-- 三幕 芽芽:聊天软件里来的消息,回完存进记忆 -->+ <div class="awin__view hs-log" data-for="c">+ <div class="hs-item hs-item--static"><div><span class="atime">{t.bots.phoneDay}</span></div></div>+ <div class="hs-item" data-at="12400"><div><p class="amsg amsg--user"><small>{u.imFrom}</small>{u.imUser}</p></div></div>+ <div class="hs-item" data-at="12900"><div><p class="awork"><span class="by-time"><span class="awork__live">{s.thinking}</span><span data-at="13800">{fmt(s.took, { s: "0.9s" })}</span></span></p></div></div>+ <div class="hs-item" data-at="13800"><div><p class="amsg awin__live"><span data-at="13800" data-type={u.imReply} data-cps={cps - 4}></span></p></div></div>+ <div class="hs-item" data-at="15200"><div><span class="awell anote"><Fragment set:html={ic(I.memory, 14)} />{s.saved}</span></div></div>+ </div>+ </div>++ <div class="awin__composer">+ <span class="by-step awin__ph">{cast.map((c) => <span data-for={c.step}>{fmt(s.input, { name: bots[c.k].name })}</span>)}</span>+ <span class="awin__bar">+ <span class="awin__plus"><Fragment set:html={ic(I.plus)} /></span>+ <span class="awin__chip"><Fragment set:html={ic(I.shield, 13)} />{s.perm}<Fragment set:html={ic(I.down, 11)} /></span>+ <span class="awin__grow"></span>+ <span class="awin__chip"><span class="by-step">{cast.map((c) => <span data-for={c.step}>{c.model}</span>)}</span><Fragment set:html={ic(I.down, 11)} /></span>+ <span class="awin__send"><Fragment set:html={ic(I.up, 15)} /><i></i></span>+ </span>+ </div>+ </div>+ </div>++ <!-- 手机:芽芽在聊天软件里,第三幕和窗口同步 -->+ <div class="phone hstage__phone">+ <div class="phone__screen">+ <div class="phone__head"><BotFace char="green" size={26} data-states={botStates([12900, 15200])} />{bots.green.name} · {u.imFrom}</div>+ <div class="phone__log hs-log">+ <div class="hs-item hs-item--static"><div><span class="phone__day">{t.bots.phoneDay}</span></div></div>+ <div class="hs-item hs-item--static"><div><p class="msg msg--user">{s.phoneUser}</p></div></div>+ <div class="hs-item hs-item--static"><div><p class="msg msg--bot">{s.phoneBot}</p></div></div>+ <div class="hs-item" data-at="12200"><div><p class="msg msg--user">{u.imUser}</p></div></div>+ <div class="hs-item" data-at="13800"><div><p class="msg msg--bot"><span data-at="13800" data-type={u.imReply} data-cps={cps - 4}></span></p></div></div>+ </div>+ <div class="phone__input">{t.bots.phoneInput}</div>+ </div>+ </div>+ </div>+ </div>+</section>diff --git a/site/src/sections/Models.astro b/site/src/sections/Models.astronew file mode 100644index 0000000..925f4ab--- /dev/null+++ b/site/src/sections/Models.astro@@ -0,0 +1,113 @@+---+// 任意模型 + 价格概览(§6.4、§6.5)。整节是"开放式":不装舞台卡,章节头居中(前后几节都装在卡里,这一节故意敞开)。+// 居中章节头 → "换脑"示意(直接站在页面底色上)→ 一行安静的模型名跑马灯 → 三张独立的价格卡(整节的视觉重心)。+// 换脑示意左右两半:+// 左:晶晶坐在中间,外圈一环模型、内圈一环厂商,两环反向慢慢转(悬停时停)。当前在用的模型在外环上亮起;+// 点外环上的模型,右边的对话就换成它来答(scripts/sections.ts 的 orbit,借用右边列表里的选项)。整块是示意,对读屏隐藏。+// 右:模型选择器演示(预录,不实时调用)——三个场景标签、可搜索的模型列表、逐字打出的回答、这一模型的价格。+// 外环模型、内环厂商、跑马灯、选择器的胶囊和分组标题前面都带厂商标志(官方彩色版,本来就是单色的几家跟着文字颜色走;+// components/VendorLogo.astro,图标表 VendorSprite color 在这一节放一次)。这一节只放有标志的厂商(不放快手,用户 2026-10-31 要求),+// 完整的模型和价格在 /pricing。跑马灯离开视口就停。价格:三张独立的卡片(components/PriceCards.astro compact),+// 只有主操作"获取 Key"用品牌色;完整价格表与计算器在 /pricing。+import BotFace from "../components/BotFace.astro";+import Icon from "../components/Icon.astro";+import SectionHead from "../components/SectionHead.astro";+import ModelsHeadArt from "../components/ModelsHeadArt.astro";+import PriceCards from "../components/PriceCards.astro";+import VendorLogo from "../components/VendorLogo.astro";+import VendorSprite from "../components/VendorSprite.astro";+import { vendorLogo } from "../lib/vendors";+import { dict, fmt, buildVars, type Lang } from "../i18n";+import { pricing, rowOf, MF } from "../lib/site";+import { fmtPrice } from "../lib/pricing";+import { demoModels } from "../data/pricing.config";+interface Props { lang: Lang }+const { lang } = Astro.props;+const t = dict(lang);+const p = t.pricing;+const v = buildVars(lang);+// 只用有标志的厂商(价格快照里只有"快手"没有标志):图标砖、内环、跑马灯、选择器都从这里取+const vendors = pricing.vendors.filter((vd) => vendorLogo(vd));+const rows = pricing.rows.filter((r) => vendorLogo(r.vendor));+const models = rows.map((r) => r.model);+const byVendor = [...new Set(rows.map((r) => r.vendor))].map((vd) => ({ vendor: vd, rows: rows.filter((r) => r.vendor === vd) }));+const prices = Object.fromEntries(rows.map((r) => [r.model, [fmtPrice(r.input), fmtPrice(r.output)]]));+const vendorOf: Record<string, string> = Object.fromEntries(rows.map((r) => [r.model, r.vendor]));+// 选择器胶囊里的标志随模型换(scripts/sections.ts 的 setModel 读这张表):模型 → 图标表的键+const logos = Object.fromEntries(rows.map((r) => [r.model, vendorLogo(r.vendor) ?? ""]));+const scen = ["copy", "code", "research"] as const;+const first = rowOf(demoModels.copy)!;+const demoData = { prices, logos, scenarios: Object.fromEntries(scen.map((s) => [s, { model: demoModels[s], q: t.models.question[s], a: t.models.answer[s] }])), priceLine: t.models.priceLine };+// 外环:演示里会用到的模型 + 主推模型(都得在价格表里,点了才能切过去);内环:前 8 家厂商+const ring = [...new Set([...Object.values(demoModels), ...pricing.config.featuredModels])].filter((m) => rowOf(m)).slice(0, 9);+const inner = vendors.slice(0, 8);+---+<section class="section" id="models" aria-labelledby="models-h2">+ <VendorSprite vendors={vendors} color />+ <div class="container">+ {/* 章节头两侧的厂商图标砖 + 标题下的"1 个 Key → 所有模型"胶囊:把两句标题各落成一样实物,标题区不再空着 */}+ <SectionHead n={4} label={t.kicker.models} id="models-h2" title={t.models.h2} dim={t.models.h2dim} lead={t.models.lead} host="purple" center>+ <ModelsHeadArt lang={lang} />+ </SectionHead>++ <div class="switchboard fx-rise" data-fx>+ <div class="orbit" aria-hidden="true" data-orbit>+ <span class="orbit__track orbit__track--out"></span>+ <span class="orbit__track orbit__track--in"></span>+ <div class="orbit__ring orbit__ring--out" style={`--n:${ring.length}`}>+ {ring.map((m, i) => <span class="orbit__slot" style={`--i:${i}`}><span class="orbit__chip mono" data-orbit-model={m}><VendorLogo vendor={vendorOf[m]} />{m}</span></span>)}+ </div>+ <div class="orbit__ring orbit__ring--in" style={`--n:${inner.length}`}>+ {inner.map((vd, i) => <span class="orbit__slot" style={`--i:${i}`}><span class="orbit__chip orbit__chip--vendor"><VendorLogo vendor={vd} size={13} />{vd}</span></span>)}+ </div>+ <div class="orbit__core"><BotFace char="purple" size={96} lively /></div>+ </div>++ <div class="model-demo" data-model-demo>+ <script type="application/json" data-model-demo-data set:html={JSON.stringify(demoData)} />+ <div class="seg" role="tablist" aria-label={t.models.pickerTitle}>+ {scen.map((s, i) => <button type="button" role="tab" class="chip" aria-selected={i === 0 ? "true" : "false"} data-scenario={s}>{t.models.scenarios[s]}</button>)}+ </div>+ <div class="model-demo__chat">+ <div class="model-demo__top">+ <button type="button" class="model-pill model-pill--btn" aria-haspopup="listbox" aria-expanded="false" aria-controls="model-list" data-model-pill>+ <svg class="vlogo" width="14" height="14" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" focusable="false" data-model-logo style={logos[first.model] ? undefined : "display:none"}><use href={`#vl-${logos[first.model]}`} /></svg>+ <span data-model-name>{first.model}</span><Icon name="chevron" />+ </button>+ <div class="model-list" id="model-list" hidden data-model-list>+ <label class="model-list__search"><Icon name="search" size={16} /><input type="search" placeholder={t.models.pickerSearch} aria-label={t.models.pickerSearch} data-model-search /></label>+ <ul role="listbox" aria-label={t.models.pickerTitle} tabindex="-1" data-model-options>+ {byVendor.map((g) => (+ <>+ <li role="presentation" class="model-list__group"><VendorLogo vendor={g.vendor} size={13} />{g.vendor}</li>+ {g.rows.map((r) => <li role="option" id={`mo-${r.model}`} aria-selected={r.model === first.model ? "true" : "false"} data-model={r.model}>{r.model}</li>)}+ </>+ ))}+ </ul>+ </div>+ </div>+ <p class="msg msg--user" data-q>{t.models.question.copy}</p>+ <div class="msg msg--bot"><BotFace char="purple" size={36} /><p data-a aria-live="polite">{t.models.answer.copy}</p></div>+ </div>+ <p class="small model-demo__price tnum" data-price-line>{fmt(t.models.priceLine, { model: first.model, input: fmtPrice(first.input), output: fmtPrice(first.output) })}</p>+ <p class="small muted">{t.models.example}</p>+ </div>+ </div>++ <div class="marquee" aria-hidden="true">+ <div class="marquee__row">+ <div class="marquee__track">{[...models, ...models].map((x) => <span class="marquee__item mono"><VendorLogo vendor={vendorOf[x]} size={15} />{x}</span>)}</div>+ </div>+ </div>+ <p class="sr-only">{t.models.marqueeLabel}:{vendors.join("、")};{models.join("、")}</p>++ <div class="models__pricing">+ <div class="models__price-head">+ <h3 class="subhead"><span>{p.h2mark}</span><span class="h2__dim">{p.h2rest}</span></h3>+ <p class="small muted">{pricing.stale ? fmt(p.stale, v) : fmt(p.source, v)}</p>+ </div>+ <PriceCards lang={lang} compact />+ <p class="models__cta"><a class="btn btn--primary" href={MF.home} target="_blank" rel="noopener" data-track="mf_key_click" data-track-location="models">{t.models.cta}</a></p>+ </div>+ </div>+</section>diff --git a/site/src/sections/Pricing.astro b/site/src/sections/Pricing.astronew file mode 100644index 0000000..ccdeb6b--- /dev/null+++ b/site/src/sections/Pricing.astro@@ -0,0 +1,55 @@+---+// /pricing 页(§6.5):价格卡、与订阅制的对照、完整价格表、计算器。所有价格只来自 pricing.snapshot.json(构建时抓取 modelflare.dev/api/pricing)。+// 首页只放精简的价格卡(components/PriceCards.astro compact)。+import EyesMark from "../components/EyesMark.astro";+import PriceCards from "../components/PriceCards.astro";+import PriceTable from "../islands/PriceTable.tsx";+import PriceCalculator from "../islands/PriceCalculator.tsx";+import { dict, fmt, buildVars, type Lang } from "../i18n";+import { pricing, MF } from "../lib/site";+interface Props { lang: Lang }+const { lang } = Astro.props;+const t = dict(lang);+const p = t.pricing;+const v = buildVars(lang);+---+<section class="section pricing" aria-labelledby="pricing-h">+ <div class="container">+ <div class="section-head center">+ <span class="eyebrow">{p.eyebrow}</span>+ <h1 class="h2" id="pricing-h"><mark class="hl reveal-hl">{p.h2mark}</mark>{p.h2rest}</h1>+ <p class="lead prose">{p.lead}</p>+ <p class="small muted">{pricing.stale ? fmt(p.stale, v) : fmt(p.source, v)}</p>+ </div>++ <PriceCards lang={lang} />++ <div class="pricing__block">+ <div class="table-wrap contrast reveal">+ <table class="table">+ <caption class="sr-only">{p.contrast.caption}</caption>+ <thead><tr>{p.contrast.head.map((h, i) => (i === 0 ? <td></td> : <th scope="col">{h}</th>))}</tr></thead>+ <tbody>{p.contrast.rows.map((r) => <tr><th scope="row">{r[0]}</th><td data-label={p.contrast.head[1]}>{r[1]}</td><td data-label={p.contrast.head[2]}>{r[2]}</td></tr>)}</tbody>+ </table>+ </div>+ <p class="small muted">{p.contrast.note}</p>+ </div>++ <div class="pricing__block">+ <PriceTable client:visible rows={pricing.rows} featured={pricing.config.featuredModels} t={p.table}+ mediaText={fmt(p.table.media, v)} mediaHref={MF.pricing} initialAll />+ <p class="small muted">{fmt(p.table.note, v)}</p>+ </div>++ <div class="pricing__block calc-wrap" id="calc">+ <h2 class="h3">{p.calc.title}</h2>+ <PriceCalculator client:visible rows={pricing.rows} defaultModel={pricing.config.sampleModel} t={p.calc} fetchedAt={v.fetchedAt as string} fullHref={MF.pricing} />+ </div>++ <div class="pbanner">+ <EyesMark size={32} />+ <p>{p.banner.text}</p>+ <a class="btn btn--primary" href={MF.home} target="_blank" rel="noopener" data-track="mf_key_click" data-track-location="pricing">{p.banner.cta}</a>+ </div>+ </div>+</section>diff --git a/site/src/styles/banner.css b/site/src/styles/banner.cssnew file mode 100644index 0000000..e750c7d--- /dev/null+++ b/site/src/styles/banner.css@@ -0,0 +1,123 @@+@layer tokens, base, components, app, utilities;+/* 顶部公告条(components/SiteBanner.astro):36px 高的细条,在浮动导航胶囊上方,随页面滚走。+ 三栏:左翻页 · 中间文案(始终居中)· 右侧语言胶囊和关闭。条目叠在同一格里交叉淡入,条高取最高的一条,轮播时不跳。+ 当前条的配色(data-tone)决定标签颜色和条顶的一点微光。 */+@layer components {+ .sbar {+ --sbar-bg: color-mix(in srgb, var(--bg-sunken) 55%, var(--bg));+ --sbar-glow: transparent;+ position: relative; isolation: isolate;+ background: var(--sbar-bg); color: var(--text-2);+ font-size: var(--fs-xs); line-height: 1.6;+ }+ .sbar[data-tone="accent"], .sbar[data-tone="promo"] { --sbar-glow: var(--glow-brand); }+ .sbar[data-tone="warn"] { --sbar-glow: var(--warn-wash); }+ /* 浅色:微光用柔黄绿(30% 的纯黄绿在浅底上是一团荧光) */+ /* 条顶中间一团很淡的光;底边一根两端渐隐的细线 */+ .sbar::before {+ content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;+ background: radial-gradient(42% 180% at 50% 0%, var(--sbar-glow), transparent 72%);+ }+ .sbar::after {+ content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;+ background: linear-gradient(90deg, transparent, var(--line) 16%, var(--line) 84%, transparent);+ }+ .sbar.is-closing { overflow: hidden; opacity: 0; transition: height var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out); }++ .sbar__in {+ display: grid; align-items: center; column-gap: 16px; min-height: 36px; padding-block: 8px;+ grid-template-areas: "pager msg side";+ /* 两侧最少放得下自己的内容,多出来的平分,中间那栏就落在正中 */+ grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr);+ }++ /* —— 文案:所有条目叠在一格,当前条 data-on —— */+ .sbar__stack { grid-area: msg; display: grid; min-width: 0; touch-action: pan-y; }+ .sbar__item {+ grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transform: translateY(6px);+ transition: opacity var(--dur-base) var(--ease-out), transform calc(var(--dur-base) * 1.5) var(--ease-out), visibility 0s linear calc(var(--dur-base) * 1.5);+ }+ .sbar__item[data-from="above"], .sbar__item[data-out="up"] { transform: translateY(-6px); }+ .sbar__item[data-out="down"] { transform: translateY(6px); }+ .sbar__item[data-on] {+ opacity: 1; visibility: visible; transform: none;+ transition: opacity var(--dur-base) var(--ease-out) 80ms, transform calc(var(--dur-base) * 1.5) var(--ease-out) 80ms, visibility 0s;+ }+ .sbar__msg { margin: 0; text-align: center; text-wrap: balance; }+ .sbar__text { color: var(--text); }++ .sbar__tag {+ display: inline-block; vertical-align: top; height: 20px; padding: 0 8px; margin-right: 10px; border-radius: var(--r-btn);+ font-size: 11px; font-weight: 500; line-height: 20px; letter-spacing: .02em; white-space: nowrap; font-variant-numeric: tabular-nums;+ color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong);+ }+ [data-tone="accent"] > .sbar__msg .sbar__tag { background: var(--signal-bg); color: var(--signal-fg); box-shadow: none; }+ [data-tone="promo"] > .sbar__msg .sbar__tag { background: var(--accent-wash); color: var(--accent-fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-fg) 30%, transparent); }+ [data-tone="warn"] > .sbar__msg .sbar__tag { background: var(--warn-wash); color: var(--warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 35%, transparent); }+ .sbar__globe { width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; color: var(--text-2); }++ .sbar__note { white-space: nowrap; }+ .sbar__note::before { content: "·"; margin-inline: 8px; color: var(--text-2); }++ .sbar__cta {+ display: inline-flex; align-items: center; gap: 4px; vertical-align: top; margin-left: 12px;+ color: var(--text); font-weight: 500; white-space: nowrap; text-decoration: none;+ transition: color var(--dur-fast);+ }+ .sbar__cta > span {+ text-decoration: underline 1px; text-underline-offset: 3px;+ text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color var(--dur-fast);+ }+ .sbar__cta .icon { width: 14px; height: 14px; flex: none; transition: transform var(--dur-fast) var(--ease-out); }+ .sbar__cta:hover { color: var(--accent-fg); text-decoration: none; }+ .sbar__cta:hover > span { text-decoration-color: currentColor; }+ .sbar__cta:hover .icon { transform: translateX(2px); }+ .sbar__cta[target]:hover .icon { transform: translate(1px, -1px); }++ /* 次要链接:前面一根短竖线隔开 */+ .sbar__link { position: relative; display: inline-block; vertical-align: top; margin-left: 12px; padding-left: 12px; color: var(--text-2); white-space: nowrap; }+ .sbar__link::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 1px; background: var(--line-strong); }+ .sbar__link:hover { color: var(--text); text-decoration: none; }++ /* —— 两侧控件 —— */+ .sbar__pager { grid-area: pager; justify-self: start; display: inline-flex; align-items: center; gap: 2px; margin-left: -4px; }+ .sbar__count { min-width: 28px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; text-align: center; font-variant-numeric: tabular-nums; color: var(--text-2); }+ .sbar__side { grid-area: side; justify-self: end; display: flex; align-items: center; gap: 6px; margin-right: -4px; }+ .sbar__btn {+ display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%;+ color: var(--text-2); transition: color var(--dur-fast), background var(--dur-fast);+ }+ .sbar__btn:hover { color: var(--text); background: var(--hover); }+ .sbar__btn .icon { width: 14px; height: 14px; }+ .sbar__prev .icon { transform: rotate(90deg); }+ .sbar__next .icon { transform: rotate(-90deg); }+ .sbar__close { width: 28px; height: 28px; }++ .sbar__chip {+ display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: var(--r-btn);+ color: var(--text); font-size: 12px; font-weight: 500; white-space: nowrap; text-decoration: none;+ box-shadow: inset 0 0 0 1px var(--line-strong); transition: background var(--dur-fast), box-shadow var(--dur-fast);+ }+ .sbar__chip .icon { width: 14px; height: 14px; color: var(--text-2); }+ .sbar__chip:hover { color: var(--text); background: var(--hover); text-decoration: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 30%, transparent); }++ /* —— 手机:文案靠左、最多折两行;翻页只留"1/3 ›",次要链接收起 —— */+ @media (max-width: 767px) {+ .sbar { font-size: var(--fs-xs); line-height: 1.45; }+ .sbar__in { grid-template-areas: "msg pager side"; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 6px; min-height: 40px; padding-block: 8px; }+ .sbar__msg { text-align: start; text-wrap: pretty; }+ .sbar__tag { height: 18px; padding: 0 8px; margin-right: 8px; font-size: 11px; line-height: 18px; }+ .sbar__cta { margin-left: 8px; }+ .sbar__link, .sbar__prev { display: none; }+ .sbar__pager { margin-left: 0; }+ .sbar__count { min-width: 22px; }+ }++ @media (prefers-reduced-motion: reduce) {+ .sbar__item, .sbar__item[data-on] { transform: none; transition: none; }+ }+ @media (forced-colors: active) {+ .sbar__tag, .sbar__chip { border: 1px solid CanvasText; }+ }+ @media print { .sbar { display: none; } }+}diff --git a/site/src/styles/base.css b/site/src/styles/base.cssnew file mode 100644index 0000000..36c9d66--- /dev/null+++ b/site/src/styles/base.css@@ -0,0 +1,88 @@+@layer tokens, base, components, app, utilities;++@font-face {+ font-family: "Geist";+ src: url("/fonts/Geist-Variable.woff2") format("woff2");+ font-weight: 100 900; font-style: normal; font-display: swap;+ unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201D, U+2026, U+2022, U+00B7, U+2190-2193, U+2197, U+2713, U+2717, U+2248, U+2264-2265, U+00D7, U+20AC, U+2122;+}+@font-face {+ font-family: "Geist Mono";+ src: url("/fonts/GeistMono-Variable.woff2") format("woff2");+ font-weight: 100 900; font-style: normal; font-display: swap;+ unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201D, U+2026, U+2022, U+00B7, U+2190-2193, U+2197, U+2713, U+2717, U+2248, U+2264-2265, U+00D7, U+20AC, U+2122;+}++@layer base {+ *, *::before, *::after { box-sizing: border-box; }+ html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }+ body {+ margin: 0; background: var(--bg); color: var(--text);+ font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.65;+ -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;+ line-break: strict; overflow-x: clip;+ }+ /* 深色:同样一层静止的环境光,压得很暗(白 2.5–4.5%,没有颜色、不动)——半透明的舞台卡和玻璃透出一点明暗,页面不是一整片死黑 */+ [data-theme="dark"] body::before {+ content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;+ background:+ radial-gradient(60vmax 44vmax at 6% 4%, rgba(255, 255, 255, .045), transparent 70%),+ radial-gradient(52vmax 40vmax at 96% 38%, rgba(255, 255, 255, .03), transparent 70%),+ radial-gradient(64vmax 46vmax at 36% 100%, rgba(255, 255, 255, .025), transparent 70%);+ }+ /* 浅色:页面底下一层静止的环境光——几团很大的白光和一点冷灰,没有颜色、不动。+ 舞台卡和玻璃浮层是半透明的,透过它们看得到底下深浅的变化,页面才显得通透(固定在视口上,滚动时光不跟着走) */+ [data-theme="light"] body::before {+ content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;+ background:+ radial-gradient(60vmax 44vmax at 6% 4%, rgba(255, 255, 255, .95), transparent 70%),+ radial-gradient(52vmax 40vmax at 96% 38%, rgba(255, 255, 255, .8), transparent 70%),+ radial-gradient(64vmax 46vmax at 36% 100%, rgba(225, 229, 236, .7), transparent 70%);+ }+ img, svg, video, picture { display: block; max-width: 100%; }+ svg.amb-mark { display: inline-block; }+ img, video { height: auto; }+ h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }+ ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }+ h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }+ :lang(zh) :is(h1, h2, h3) { letter-spacing: 0; }+ /* 字重只用 400 / 500 / 600:b、strong 默认的 bolder 在可变字体下会到 700 */+ b, strong { font-weight: 600; }+ p { text-wrap: pretty; }+ a { color: var(--accent-fg); text-decoration: none; text-underline-offset: 3px; }+ a:hover { color: var(--accent-fg-strong); text-decoration: underline; }+ button, input, select, textarea { font: inherit; color: inherit; }+ button { cursor: pointer; background: none; border: 0; padding: 0; }+ code, kbd, pre, samp { font-family: var(--font-mono); font-size: var(--fs-code); }+ ::selection { background: var(--hl-bg); color: var(--accent-ink); }+ :focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 2px; border-radius: 4px; }+ [hidden] { display: none !important; }+ .num, .tnum { font-variant-numeric: tabular-nums; }+}++@layer utilities {+ .container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }+ .prose { max-width: 68ch; }+ :lang(zh) .prose { max-width: 36em; }+ .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }+ .mono { font-family: var(--font-mono); }+ .muted { color: var(--text-2); }+ .small { font-size: var(--fs-xs); line-height: 1.55; }+ .center { text-align: center; }+ .skip {+ position: fixed; left: 12px; top: -60px; z-index: calc(var(--z-toast) + 1);+ padding: 10px 16px; border-radius: var(--r-btn); background: var(--primary); color: var(--on-primary); font-weight: 600;+ }+ .skip:focus { top: 12px; text-decoration: none; color: var(--on-primary); }+}++/* —— 滚动入场:只播一次;JS 关闭或减少动态效果时直接显示 —— */+@layer utilities {+ html.js .reveal { opacity: 0; transform: translateY(var(--rise)); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }+ html.js .reveal.is-in { opacity: 1; transform: none; }+}+@media (prefers-reduced-motion: reduce) {+ :root { --dur-fast: 0ms; --dur-base: 0ms; --dur-slow: 0ms; }+ html { scroll-behavior: auto; }+ html.js .reveal { opacity: 1; transform: none; transition: none; }+}diff --git a/site/src/styles/bots.css b/site/src/styles/bots.cssnew file mode 100644index 0000000..c99e120--- /dev/null+++ b/site/src/styles/bots.css@@ -0,0 +1,560 @@+@layer tokens, base, components, app, utilities;+@layer components {+/* 移植自 App 的 ui/design/components/avatar.css(只取头像本身,不含选择器与 AppMark),由 scripts 手动同步。+ 下面的 .bot-face 块把 App 的 token 映射到官网 token;动效时长保持 App 的值,让两边的头像一模一样。 */+.bot-face {+ --dur-fast: 120ms; --dur-base: 180ms; --dur-moderate: 240ms; --dur-slow: 360ms; --dur-slower: 420ms; --dur-spin: 800ms;+ --ease-in-out: cubic-bezier(.42, 0, .58, 1); --ease-spring: cubic-bezier(.16, 1, .3, 1); --ease-back: cubic-bezier(.34, 1.56, .64, 1);+ --t-fast: var(--dur-fast) var(--ease-out);+ --bot-hello: 1.6s; --bot-done: 1.3s; --bot-error: 1.5s; --bot-poke: .7s; --bot-love: 1.6s; --bot-dizzy: 2.2s;+ --fg: var(--text); --muted: var(--text-2); --surface-solid: var(--bg-raised); --amber: var(--warn);+ --fs-xs: 12px; --fw-medium: 500; --fw-semibold: 600; --r-lg: 12px; --r-full: 999px;+ --space-1: 4px; --space-1-5: 6px; --space-2-5: 10px;+ --shadow-sm: 0 1px 2px rgba(0, 0, 0, .12);+}+/* 机器人头像:6 个内置毛绒角色,精灵图 ui/design/bots/<角色>.webp 由 scripts/build-bot-avatars.py 拆层生成。+ 结构 .bot-face > .bf-shadow + .bf-aura + .bf-body(持续状态)> .bf-shot(一次性反应)> .bf-look(看指针)+ > 耳朵 / 配件(.bf-part > .bf-pin > .bf-img + .bf-glow)+ 头 + 腮红 + 眼睛 SVG + 粒子+ 属性 data-char 角色;data-state 持续状态;data-shot 一次性反应;data-eyes 当前表情(都由 avatar.js 写)+ 分工 外层 .bf-part 放持续状态的循环(transform)和姿势(rotate,比如竖耳朵、耷拉),内层 .bf-pin 放一次性反应,+ 两者叠加互不覆盖。空闲的列表头像不自己动:只在指针靠近时看过去、悬停时抖一下天线;lively(大头像)才会呼吸、眨眼、张望。+ 角色颜色(--bot-*)是原画的颜色,两个主题相同,所以直接用 primitives;随主题变的只有光晕和影子(--avatar-*)。 */+.bot-face {+ --look-x: 0;+ --look-y: 0;+ --bf-eye: var(--bot-blue-eye);+ --bf-glow: var(--bot-blue-glow);+ /* 循环周期 */+ --bf-blink: 4.2s; /* 眨眼间隔 */+ --bf-blink-spread: -4s; /* 按 --bf-seed 错开,几个头像不会一起眨眼 */+ --bf-breathe: 3.4s; /* 大头像空闲时的呼吸 */+ --bf-glance: 7s; /* 大头像空闲时四处看 */+ --bf-nod: 1.6s; /* 你在输入时点头 */+ --bf-ponder: 2.6s; /* 思考:歪头、眼睛看左上右上 */+ --bf-read: 1.4s; /* 回复:眼睛像读行一样左右扫 */+ --bf-bob: .9s; /* 工作中上下浮动 */+ --bf-hop: 2.4s; /* 等你批准:跳两下停一下 */+ --bf-snore: 3.6s; /* 睡觉 */+ --bf-perk: .9s; /* 悬停时天线弹一下 */+ --bf-ring: 1.5s; /* 天天的天线信号 */+ --bf-ring-gap: .5s;+ --bf-sway: .55s; /* 天线、角左右晃 */+ --bf-twinkle: 1.3s; /* 闪闪的星星、晶晶的闪光 */+ --bf-flutter: .9s; /* 芽芽的叶子 */+ --bf-beat: .6s; /* 哒哒的灯带节拍 */+ --bf-spin: 3.2s; /* 晶晶的宝石转动 */+ --bf-float: 2.2s; /* 晶晶的宝石悬浮 */+ --bf-sweep: 2.2s; /* 飞飞护目镜的反光 */+ --bf-scan: 1.6s; /* 飞飞四处搜寻 */+ --bf-dot: 1.2s; /* 思考气泡里的点 */+ --bf-bang: 1.2s;+ --bf-z: 3s;+ --bf-orbit: .9s;+ position: relative; flex: none; width: var(--s); height: var(--s);+ -webkit-user-select: none; user-select: none;+}+.bot-face[data-char="yellow"] { --bf-eye: var(--bot-yellow-eye); --bf-glow: var(--bot-yellow-glow); }+.bot-face[data-char="green"] { --bf-eye: var(--bot-green-eye); --bf-glow: var(--bot-green-glow); }+.bot-face[data-char="red"] { --bf-eye: var(--bot-red-eye); --bf-glow: var(--bot-red-glow); }+.bot-face[data-char="purple"] { --bf-eye: var(--bot-purple-eye); --bf-glow: var(--bot-purple-glow); }+.bot-face[data-char="orange"] { --bf-eye: var(--bot-orange-eye); --bf-glow: var(--bot-orange-glow); }+.bot-face.pokeable { cursor: pointer; }+.bot-face.neutral { filter: grayscale(1) contrast(.85) brightness(1.06); opacity: .5; }++/* —— 图层 —— */+.bf-shadow, .bf-body, .bf-shot, .bf-look, .bf-part, .bf-pin, .bf-img, .bf-glow { position: absolute; inset: 0; }+.bf-body, .bf-shot { transform-origin: 50% 89%; }+.bf-look {+ transform-origin: 50% 60%;+ transform: translate(calc(var(--look-x) * var(--s) * .03), calc(var(--look-y) * var(--s) * .018)) rotate(calc(var(--look-x) * 3deg));+ transition: transform var(--dur-moderate) var(--ease-out);+}+.bf-img, .bf-glow { background: var(--bf-sprite) 0 0 / 800% 100% no-repeat; }+/* 官网专用(App 的 avatar.css 没有):支持 AVIF 的浏览器换用同分辨率的 AVIF 版,体积约一半(scripts/make-bot-avif.ts)。+ 包在 @supports 里:不认识 image-set(type()) 的浏览器整条跳过,照旧用上面的 WebP;认识 image-set 但不支持 AVIF 的按 type 挑 WebP。+ 没有 --bf-sprite-avif 的页面(同步了这份样式的设计原型)回落到 WebP 的地址 */+@supports (background-image: image-set(url("x.avif") type("image/avif"))) {+ .bf-img, .bf-glow { background-image: image-set(var(--bf-sprite-avif, var(--bf-sprite)) type("image/avif"), var(--bf-sprite) type("image/webp")); }+}+.bf-ear-l .bf-img { background-position-x: calc(100% / 7); }+.bf-ear-r .bf-img { background-position-x: calc(200% / 7); }+.bf-top .bf-img { background-position-x: calc(300% / 7); }+.bf-head .bf-glow { background-position-x: calc(400% / 7); }+.bf-ear-l .bf-glow { background-position-x: calc(500% / 7); }+.bf-ear-r .bf-glow { background-position-x: calc(600% / 7); }+.bf-top .bf-glow { background-position-x: 100%; }+.bf-glow { opacity: 0; mix-blend-mode: plus-lighter; filter: drop-shadow(0 0 calc(var(--s) * .03) var(--bf-glow)); }+.bot-face:not([data-char="red"], [data-char="purple"]) .bf-glow { display: none; } /* 只有哒哒、晶晶有发光层 */+.bf-ear-l, .bf-ear-l .bf-pin { transform-origin: var(--o-el); }+.bf-ear-r, .bf-ear-r .bf-pin { transform-origin: var(--o-er); }+.bf-top, .bf-top .bf-pin, .bf-top .bf-img { transform-origin: var(--o-top); }+.bf-part { transition: rotate var(--dur-slow) var(--ease-back), filter var(--dur-moderate) var(--ease-out); }++.bf-aura {+ position: absolute; inset: -14%; border-radius: 50%; opacity: 0;+ background: radial-gradient(closest-side, color-mix(in srgb, var(--bf-glow) var(--avatar-aura), transparent) 35%, transparent);+ transition: opacity var(--dur-moderate) var(--ease-out);+}+.bf-shadow {+ inset: auto 23% 3% 23%; height: 8%; border-radius: 50%;+ background: radial-gradient(closest-side, var(--avatar-shadow), transparent);+}++/* 腮红:开心时在面罩上亮起来 */+.bf-blush {+ position: absolute; width: 9%; height: 4.4%; translate: -50% -50%; border-radius: 50%;+ background: radial-gradient(closest-side, color-mix(in srgb, var(--bot-blush) 70%, var(--bf-glow)), transparent);+ opacity: 0; scale: .5;+ transition: opacity var(--dur-base) var(--ease-out), scale var(--dur-moderate) var(--ease-back);+}+.bot-face:is([data-eyes="happy"], [data-eyes="heart"]) .bf-blush { opacity: .9; scale: 1; }++/* 飞飞的护目镜:镜片上扫过一道反光 */+.bf-lens { position: absolute; width: var(--lens); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; overflow: hidden; }+.bf-lens::after {+ content: ""; position: absolute; inset: -30%; translate: -110% 0;+ background: linear-gradient(115deg, transparent 38%, var(--bot-glint) 50%, transparent 62%);+}++/* —— 眼睛与表情:坐标同 viewBox 0–100,每只眼睛以自己的中心为原点,右眼是镜像 —— */+.bf-eyes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 calc(var(--s) * .028) var(--bf-glow)); }+.bf-gaze { transform: translate(calc(var(--look-x) * 2.4px), calc(var(--look-y) * 1.6px)); transition: transform var(--dur-fast) var(--ease-out); }+.bf-glance { transition: transform var(--dur-moderate) var(--ease-out); }+.bf-lid { transform-box: view-box; transform-origin: 0 0; transition: scale var(--dur-base) var(--ease-back); }+.bf-eyes .e {+ fill: var(--bf-eye); opacity: 0; scale: .3;+ transform-box: view-box; transform-origin: 0 0;+ transition: opacity var(--dur-fast) var(--ease-out), scale var(--dur-base) var(--ease-back);+}+.bf-eyes .line { fill: none; stroke: var(--bf-eye); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }+.bf-eyes .thin { stroke-width: 1.15; }+.bot-face[data-eyes="open"] .e-open,+.bot-face[data-eyes="happy"] .e-happy,+.bot-face[data-eyes="closed"] .e-closed,+.bot-face[data-eyes="heart"] .e-heart,+.bot-face[data-eyes="spiral"] .e-spiral { opacity: 1; scale: 1; }+.bot-face[data-eyes="spiral"] .e-spiral { animation: spin var(--dur-spin) linear infinite; }+.bot-face[data-eyes="heart"] .e-heart { animation: bf-heartbeat var(--bf-beat) var(--ease-in-out) infinite alternate; }+.bot-face[data-eyes="error"] .e-x { animation: bf-eye-x var(--bot-error) var(--ease-out) both; }+.bot-face[data-eyes="error"] .e-sad { animation: bf-eye-sad var(--bot-error) var(--ease-out) both; }+@keyframes bf-eye-x { 0%, 42% { opacity: 1; scale: 1; } 52%, 100% { opacity: 0; scale: .3; } }+@keyframes bf-eye-sad { 0%, 44% { opacity: 0; scale: .3; rotate: -14deg; } 58%, 100% { opacity: 1; scale: 1; rotate: -14deg; } }+@keyframes bf-heartbeat { to { scale: 1.25; } }+@keyframes bf-blink { 0%, 91%, 100% { transform: none; } 94.5% { transform: scaleY(.08); } }++/* —— 持续状态 —— */+/* 眨眼:大头像空闲时,以及所有"醒着做事"的状态 */+.bot-face.lively .bf-lid,+.bot-face:is([data-state="listening"], [data-state="thinking"], [data-state="replying"], [data-state="working"], [data-state="waiting"]) .bf-lid {+ animation: bf-blink var(--bf-blink) var(--ease-in-out) calc(var(--bf-seed) * var(--bf-blink-spread)) infinite;+}++/* 空闲(lively):呼吸、偶尔看看左右、天线轻轻晃 */+.bot-face.lively { --avatar-aura: 18%; }+.bot-face.lively .bf-aura { opacity: .7; }+.bot-face.lively[data-state="idle"] .bf-body { animation: bf-breathe var(--bf-breathe) var(--ease-in-out) infinite; }+.bot-face.lively[data-state="idle"] .bf-glance { animation: bf-glance-idle var(--bf-glance) var(--ease-in-out) calc(var(--bf-seed) * var(--bf-blink-spread)) infinite; }+.bot-face.lively[data-state="idle"] .bf-top { animation: bf-sway-soft var(--bf-breathe) var(--ease-in-out) infinite alternate; }+@keyframes bf-breathe { 50% { transform: translateY(-1.2%) scale(.994, 1.012); } }+@keyframes bf-glance-idle {+ 0%, 34%, 56%, 74%, 94%, 100% { transform: none; }+ 38%, 52% { transform: translate(-2px, .4px); }+ 78%, 90% { transform: translate(2px, -.8px); }+}+@keyframes bf-sway-soft { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }++/* 你在输入:竖起耳朵、眼睛看向输入框、轻轻点头 */+.bot-face[data-state="listening"] .bf-body { animation: bf-nod var(--bf-nod) var(--ease-in-out) infinite; }+.bot-face[data-state="listening"] .bf-glance { transform: translate(0, 1.4px); }+.bot-face[data-state="listening"] .bf-ear-l { rotate: 7deg; }+.bot-face[data-state="listening"] .bf-ear-r { rotate: -7deg; }+@keyframes bf-nod { 0%, 45%, 100% { transform: none; } 15% { transform: translateY(1.6%) scale(1.01, .98); } 30% { transform: translateY(-.6%); } }++/* 思考(还没出字):歪着头,眼睛在左上和右上之间找答案,背后发光,头上冒思考泡泡 */+.bot-face[data-state="thinking"] .bf-body { animation: bf-ponder var(--bf-ponder) var(--ease-in-out) infinite; }+.bot-face[data-state="thinking"] .bf-glance { animation: bf-glance-think var(--bf-ponder) var(--ease-in-out) infinite; }+@keyframes bf-ponder { 0%, 100% { transform: rotate(-4deg); } 50% { transform: translateY(-1.5%) rotate(4deg); } }+@keyframes bf-glance-think {+ 0%, 40%, 100% { transform: translate(-1.8px, -1.5px); }+ 52%, 88% { transform: translate(1.8px, -1.5px); }+}++/* 回复 / 工作中:上下浮动,眼睛眯起来专注地左右扫 */+.bot-face:is([data-state="replying"], [data-state="working"]) .bf-body { animation: bf-bob var(--bf-bob) var(--ease-in-out) infinite; }+.bot-face:is([data-state="replying"], [data-state="working"]) .bf-glance { animation: bf-glance-read var(--bf-read) linear infinite; }+.bot-face:is([data-state="replying"], [data-state="working"]) .bf-lid { scale: 1 .62; }+@keyframes bf-bob { 50% { transform: translateY(-3.5%); } }+@keyframes bf-glance-read {+ 0%, 100% { transform: translate(-1.8px, 0); }+ 72% { transform: translate(1.8px, 0); }+ 84% { transform: translate(1.8px, .8px); }+}++/* 思考、回复、工作、等待:背后的辉光一起一伏 */+.bot-face:is([data-state="thinking"], [data-state="replying"], [data-state="working"], [data-state="waiting"]) .bf-aura {+ opacity: 1; animation: bf-aura-pulse var(--bf-ponder) var(--ease-in-out) infinite;+}+@keyframes bf-aura-pulse { 0%, 100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.04); } }++/* 等你批准:睁大眼睛看着你,跳两下停一下,头顶一个感叹号 */+.bot-face[data-state="waiting"] .bf-body { animation: bf-hop var(--bf-hop) var(--ease-out) infinite; }+.bot-face[data-state="waiting"] .bf-shadow { animation: bf-shadow-hop var(--bf-hop) var(--ease-out) infinite; }+.bot-face[data-state="waiting"] .bf-lid { scale: 1.2; }+.bot-face[data-state="waiting"] .bf-ear-l { rotate: 12deg; }+.bot-face[data-state="waiting"] .bf-ear-r { rotate: -12deg; }+@keyframes bf-hop {+ 0%, 44%, 100% { transform: none; }+ 6% { transform: scale(1.06, .92); }+ 14% { transform: translateY(-11%) scale(.96, 1.05); }+ 22% { transform: scale(1.05, .94); }+ 29% { transform: translateY(-6%); }+ 36% { transform: scale(1.02, .98); }+}+@keyframes bf-shadow-hop { 0%, 44%, 100% { transform: none; } 14% { transform: scale(.7); opacity: .5; } 29% { transform: scale(.85); } }++/* 睡觉:闭眼、歪头、耳朵和配件耷拉下来,冒 z */+.bot-face[data-state="sleep"] .bf-body { rotate: -6deg; animation: bf-snore var(--bf-snore) var(--ease-in-out) infinite; }+.bot-face[data-state="sleep"] .bf-ear-l { rotate: -9deg; }+.bot-face[data-state="sleep"] .bf-ear-r { rotate: 9deg; }+.bot-face[data-state="sleep"] .bf-top { rotate: 14deg; }+.bot-face[data-state="sleep"] .bf-eyes { filter: none; opacity: .75; }+@keyframes bf-snore { 50% { transform: scale(1.025, .975); } }++/* —— 一次性反应(.bf-shot 每次重新挂载,动画从头播) —— */+.bot-face[data-shot="hello"] .bf-shot { animation: bf-hello var(--bot-hello) var(--ease-out) both; }+.bot-face[data-shot="done"] .bf-shot { animation: bf-done var(--bot-done) var(--ease-out) both; }+.bot-face[data-shot="error"] .bf-shot { animation: bf-error var(--bot-error) var(--ease-out) both; }+.bot-face[data-shot="poke"] .bf-shot { animation: bf-poke var(--bot-poke) var(--ease-out) both; }+.bot-face[data-shot="love"] .bf-shot { animation: bf-love var(--bot-love) var(--ease-in-out) both; }+.bot-face[data-shot="dizzy"] .bf-shot { animation: bf-dizzy var(--bot-dizzy) var(--ease-in-out) both; }+.bot-face[data-shot="done"] .bf-shadow { animation: bf-shadow-done var(--bot-done) var(--ease-out) both; }+.bot-face[data-shot="hello"] .bf-shadow { animation: bf-shadow-hello var(--bot-hello) var(--ease-out) both; }+.bot-face:is([data-shot="hello"], [data-shot="done"], [data-shot="love"]) .bf-aura { opacity: 1; animation: bf-aura-flash var(--bot-done) var(--ease-out) both; }+@keyframes bf-hello {+ 0% { opacity: 0; transform: translateY(14%) scale(0); }+ 22% { opacity: 1; transform: scale(1.14, .88); }+ 34% { transform: translateY(-9%) scale(.94, 1.08); }+ 46% { transform: none; }+ 58% { transform: rotate(-9deg); }+ 70% { transform: rotate(8deg); }+ 82% { transform: rotate(-5deg); }+ 92% { transform: rotate(2deg); }+ 100% { transform: none; }+}+@keyframes bf-done {+ 0%, 100% { transform: none; }+ 14% { transform: scale(1.12, .84); }+ 36% { transform: translateY(-24%) scale(.92, 1.1) rotate(-5deg); }+ 52% { transform: translateY(-26%) rotate(5deg); }+ 70% { transform: scale(1.12, .86); }+ 84% { transform: scale(.96, 1.05); }+}+@keyframes bf-error {+ 0%, 100% { transform: none; }+ 8% { transform: translateX(-8%) rotate(-7deg); }+ 18% { transform: translateX(7%) rotate(6deg); }+ 28% { transform: translateX(-5%) rotate(-4deg); }+ 38% { transform: translateX(3%) rotate(2deg); }+ 48% { transform: none; }+ 62%, 86% { transform: translateY(3%) scale(1.03, .95); }+}+@keyframes bf-poke {+ 0%, 100% { transform: none; }+ 16% { transform: scale(1.18, .8); }+ 38% { transform: translateY(-8%) scale(.9, 1.12); }+ 58% { transform: scale(1.05, .95); }+ 76% { transform: scale(.98, 1.02); }+}+@keyframes bf-love {+ 0%, 100% { transform: none; }+ 12% { transform: scale(1.1, .9); }+ 26% { transform: translateY(-6%) scale(.96, 1.05) rotate(-6deg); }+ 40% { transform: rotate(6deg); }+ 54% { transform: translateY(-4%) rotate(-5deg); }+ 68% { transform: rotate(4deg); }+ 84% { transform: rotate(-2deg); }+}+@keyframes bf-dizzy {+ 0%, 100% { transform: none; }+ 10% { transform: translateX(-5%) rotate(-12deg); }+ 22% { transform: translateX(5%) rotate(11deg); }+ 34% { transform: translateX(-4%) rotate(-10deg); }+ 46% { transform: translateX(3%) rotate(8deg); }+ 58% { transform: translateX(-2%) rotate(-6deg); }+ 70% { transform: rotate(4deg); }+ 82% { transform: rotate(-2deg); }+}+@keyframes bf-shadow-done { 0%, 100% { transform: none; } 36%, 52% { transform: scale(.55); opacity: .4; } 70% { transform: scale(1.1); } }+@keyframes bf-shadow-hello { 0% { transform: scale(0); } 22% { transform: scale(1.1); } 34% { transform: scale(.8); } 46%, 100% { transform: none; } }+@keyframes bf-aura-flash { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; transform: scale(1.12); } 100% { opacity: 0; transform: scale(1); } }++/* 耳朵和配件跟着一次性反应动:天线弹簧、耳朵扇两下;悬停时也弹一下(打招呼) */+@keyframes bf-spring {+ 0%, 100% { transform: none; }+ 14% { transform: rotate(-16deg); }+ 30% { transform: rotate(13deg); }+ 46% { transform: rotate(-8deg); }+ 62% { transform: rotate(5deg); }+ 78% { transform: rotate(-2deg); }+}+@keyframes bf-flap-l { 0%, 100% { transform: none; } 25% { transform: rotate(16deg); } 50% { transform: rotate(-6deg); } 75% { transform: rotate(5deg); } }+@keyframes bf-flap-r { 0%, 100% { transform: none; } 25% { transform: rotate(-16deg); } 50% { transform: rotate(6deg); } 75% { transform: rotate(-5deg); } }+.bot-face.pokeable:hover:not([data-shot]) .bf-top .bf-pin,+.bot-hover:hover .bot-face:not([data-shot]) .bf-top .bf-pin { animation: bf-spring var(--bf-perk) var(--ease-out); }+.bot-face.pokeable:hover:not([data-shot]) .bf-ear-l .bf-pin,+.bot-hover:hover .bot-face:not([data-shot]) .bf-ear-l .bf-pin { animation: bf-flap-l var(--bf-perk) var(--ease-out); }+.bot-face.pokeable:hover:not([data-shot]) .bf-ear-r .bf-pin,+.bot-hover:hover .bot-face:not([data-shot]) .bf-ear-r .bf-pin { animation: bf-flap-r var(--bf-perk) var(--ease-out); }+.bot-face:is([data-shot="hello"], [data-shot="done"], [data-shot="poke"], [data-shot="love"], [data-shot="dizzy"]) .bf-top .bf-pin { animation: bf-spring var(--bot-done) var(--ease-out); }+.bot-face:is([data-shot="hello"], [data-shot="done"], [data-shot="poke"], [data-shot="love"]) .bf-ear-l .bf-pin { animation: bf-flap-l var(--bot-poke) var(--ease-out); }+.bot-face:is([data-shot="hello"], [data-shot="done"], [data-shot="poke"], [data-shot="love"]) .bf-ear-r .bf-pin { animation: bf-flap-r var(--bot-poke) var(--ease-out); }+.bot-face[data-shot="error"] .bf-ear-l { rotate: -10deg; }+.bot-face[data-shot="error"] .bf-ear-r { rotate: 10deg; }+.bot-face[data-shot="error"] .bf-top { rotate: 12deg; }++/* —— 角色的招牌动作 —— */+/* 天天:天线左右晃、天线球亮起来、一圈圈发出信号;完成时天线球闪一下 */+.bot-face[data-char="blue"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top { animation: bf-sway var(--bf-sway) var(--ease-in-out) infinite alternate; }+.bot-face[data-char="blue"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top .bf-img { animation: bf-bulb var(--bf-ring) var(--ease-in-out) infinite; }+.bot-face[data-char="blue"]:is([data-shot="done"], [data-shot="hello"]) .bf-top .bf-img { animation: bf-bulb var(--bot-poke) var(--ease-out) 2; }+@keyframes bf-sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }+@keyframes bf-bulb { 0%, 100% { filter: none; } 40% { filter: brightness(1.45) drop-shadow(0 0 calc(var(--s) * .05) var(--bf-glow)); } }++/* 闪闪:星星一闪一闪、身边冒小星星;完成时星星像硬币一样转两圈 */+.bot-face[data-char="yellow"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top { animation: bf-twinkle var(--bf-twinkle) var(--ease-in-out) infinite; }+.bot-face[data-char="yellow"]:is([data-shot="done"], [data-shot="hello"], [data-shot="love"]) .bf-top .bf-pin { animation: bf-coin var(--bot-done) var(--ease-out); }+@keyframes bf-twinkle {+ 0%, 100% { transform: none; filter: none; }+ 30% { transform: rotate(-10deg) scale(1.08); filter: brightness(1.25) drop-shadow(0 0 calc(var(--s) * .04) var(--bf-glow)); }+ 60% { transform: rotate(8deg) scale(1.03); }+}+@keyframes bf-coin {+ 0% { transform: perspective(calc(var(--s) * 2)) translateY(0) rotateY(0); }+ 60% { transform: perspective(calc(var(--s) * 2)) translateY(-5%) rotateY(720deg); }+ 100% { transform: perspective(calc(var(--s) * 2)) translateY(0) rotateY(720deg); }+}++/* 芽芽:叶子像被风吹一样扑簌;完成时嫩芽长高一截、飘下一片叶子;出错时蔫了 */+.bot-face[data-char="green"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top { animation: bf-flutter var(--bf-flutter) var(--ease-in-out) infinite; }+.bot-face[data-char="green"]:is([data-shot="done"], [data-shot="hello"]) .bf-top .bf-pin { animation: bf-grow var(--bot-done) var(--ease-out); }+.bot-face[data-char="green"][data-shot="error"] .bf-top { rotate: 22deg; scale: 1 .86; }+@keyframes bf-flutter { 0%, 100% { transform: rotate(-6deg) skewX(3deg); } 50% { transform: rotate(6deg) skewX(-3deg); } }+@keyframes bf-grow {+ 0%, 100% { transform: none; }+ 30% { transform: scale(1.3) rotate(-6deg); }+ 50% { transform: scale(.92) rotate(4deg); }+ 68% { transform: scale(1.1); }+ 84% { transform: scale(.98); }+}++/* 哒哒:耳机灯带跟着节拍亮(左耳 → 角 → 右耳),耳机一下一下地震;完成时灯带闪三下;出错时灯带乱闪 */+.bot-face[data-char="red"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-glow { animation: bf-beat var(--bf-beat) var(--ease-out) infinite; }+.bot-face[data-char="red"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top .bf-glow { animation-delay: calc(var(--bf-beat) / 3); }+.bot-face[data-char="red"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-ear-r .bf-glow { animation-delay: calc(var(--bf-beat) * 2 / 3); }+.bot-face[data-char="red"]:is([data-state="replying"], [data-state="working"]) .bf-ear-l { animation: bf-thump var(--bf-beat) var(--ease-out) infinite; }+.bot-face[data-char="red"]:is([data-state="replying"], [data-state="working"]) .bf-ear-r { animation: bf-thump var(--bf-beat) var(--ease-out) infinite; }+.bot-face[data-char="red"][data-state="thinking"] .bf-top { animation: bf-sway var(--bf-sway) var(--ease-in-out) infinite alternate; }+.bot-face[data-char="red"]:is([data-shot="done"], [data-shot="hello"]) .bf-glow { animation: bf-flash3 var(--bot-done) linear both; }+.bot-face[data-char="red"][data-shot="error"] .bf-glow { animation: bf-flicker var(--bot-error) steps(1) both; }+@keyframes bf-beat { 0%, 100% { opacity: .1; } 18% { opacity: 1; } }+@keyframes bf-thump { 0%, 100% { transform: none; } 18% { transform: scale(1.05); } }+@keyframes bf-flash3 { 0%, 30%, 62%, 100% { opacity: 0; } 14%, 46%, 78% { opacity: 1; } }+@keyframes bf-flicker { 0%, 12%, 30%, 44%, 70% { opacity: 1; } 6%, 22%, 38%, 58%, 100% { opacity: 0; } }++/* 晶晶:宝石浮起来慢慢转、霓虹线一明一暗、身边闪光;完成时宝石飞快转两圈;出错时霓虹乱闪 */+.bot-face[data-char="purple"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top { animation: bf-levitate var(--bf-float) var(--ease-in-out) infinite alternate; }+.bot-face[data-char="purple"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top .bf-img { animation: bf-gem var(--bf-spin) linear infinite; }+.bot-face[data-char="purple"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-glow { animation: bf-neon var(--bf-float) var(--ease-in-out) infinite alternate; }+.bot-face[data-char="purple"]:is([data-shot="done"], [data-shot="hello"], [data-shot="love"]) .bf-top .bf-pin { animation: bf-coin var(--bot-done) var(--ease-out); }+.bot-face[data-char="purple"]:is([data-shot="done"], [data-shot="hello"]) .bf-glow { animation: bf-flash3 var(--bot-done) linear both; }+.bot-face[data-char="purple"][data-shot="error"] .bf-glow { animation: bf-flicker var(--bot-error) steps(1) both; }+.bot-face[data-char="purple"][data-state="sleep"] .bf-top { rotate: 0deg; filter: brightness(.7) saturate(.6); }+@keyframes bf-levitate { from { transform: translateY(-2%); } to { transform: translateY(-6%); } }+@keyframes bf-gem { from { transform: perspective(calc(var(--s) * 2)) rotateY(0); } to { transform: perspective(calc(var(--s) * 2)) rotateY(360deg); } }+@keyframes bf-neon { from { opacity: .15; } to { opacity: .9; } }++/* 飞飞:天线一蹦一蹦、眼睛大范围地左右搜寻、护目镜反光;完成时两只镜片一起闪 */+.bot-face[data-char="orange"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-top { animation: bf-sway var(--bf-sway) var(--ease-back) infinite alternate; }+.bot-face[data-char="orange"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-glance { animation: bf-scan var(--bf-scan) var(--ease-in-out) infinite alternate; }+.bot-face[data-char="orange"]:is([data-state="thinking"], [data-state="replying"], [data-state="working"]) .bf-lens::after { animation: bf-glint var(--bf-sweep) var(--ease-in-out) infinite; }+.bot-face[data-char="orange"].lively[data-state="idle"] .bf-lens::after { animation: bf-glint var(--bf-glance) var(--ease-in-out) infinite; }+.bot-face[data-char="orange"]:is([data-shot="done"], [data-shot="hello"]) .bf-lens::after { animation: bf-glint var(--bot-poke) var(--ease-out) both; }+.bot-face[data-char="orange"] .bf-lens + .bf-lens::after { animation-delay: calc(var(--bf-sweep) / 12); }+@keyframes bf-scan { from { transform: translate(-2.6px, -.3px); } to { transform: translate(2.6px, -.3px); } }+@keyframes bf-glint { 0%, 55% { translate: -110% 0; } 85%, 100% { translate: 110% 0; } }++/* —— 粒子(≥ 36px 才画) —— */+.bot-face .fx, .bot-face .fx i { position: absolute; display: block; pointer-events: none; }+.fx-rings { left: var(--tip-x); top: var(--tip-y); }+.fx-rings i {+ width: calc(var(--s) * .22); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; opacity: 0;+ border: calc(var(--s) * .016) solid var(--bf-glow);+ animation: bf-ring var(--bf-ring) var(--ease-out) infinite;+}+.fx-rings i:nth-child(2) { animation-delay: var(--bf-ring-gap); }+.fx-rings i:nth-child(3) { animation-delay: calc(var(--bf-ring-gap) * 2); }+@keyframes bf-ring { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(2.4); } }++.fx-twinkle { left: var(--tip-x); top: var(--tip-y); }+.fx-twinkle i {+ width: calc(var(--s) * .07); aspect-ratio: 1; translate: -50% -50%; scale: 0;+ background: var(--bf-eye); filter: drop-shadow(0 0 calc(var(--s) * .02) var(--bf-glow));+ clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);+ animation: bf-sparkle var(--bf-twinkle) var(--ease-in-out) infinite;+}+.fx-twinkle i:nth-child(1) { left: calc(var(--s) * -.17); top: calc(var(--s) * -.04); }+.fx-twinkle i:nth-child(2) { left: calc(var(--s) * .16); top: calc(var(--s) * -.09); animation-delay: calc(var(--bf-twinkle) / 3); }+.fx-twinkle i:nth-child(3) { left: calc(var(--s) * .12); top: calc(var(--s) * .07); animation-delay: calc(var(--bf-twinkle) * 2 / 3); }+@keyframes bf-sparkle { 0%, 100% { scale: 0; rotate: 0deg; } 50% { scale: 1; rotate: 45deg; } }++/* 思考泡泡 */+.fx-think {+ right: -14%; top: 0; width: 38%; height: 20%; border-radius: var(--r-full);+ display: flex; align-items: center; justify-content: center; gap: 9%;+ background: var(--surface-solid); box-shadow: var(--shadow-sm);+ --pop-dy: 4px; animation: fade-in var(--dur-base) var(--ease-out), pop-in var(--dur-slower) var(--ease-spring);+}+.bot-face .fx-think i { position: static; width: 16%; aspect-ratio: 1; border-radius: 50%; background: var(--muted); animation: bf-dot var(--bf-dot) var(--ease-in-out) infinite; }+.fx-think i:nth-child(2) { animation-delay: calc(var(--bf-dot) / 6); }+.fx-think i:nth-child(3) { animation-delay: calc(var(--bf-dot) / 3); }+@keyframes bf-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-40%); opacity: 1; } }++/* 等你批准的感叹号 */+.fx-bang {+ right: -6%; top: -4%; width: 28%; aspect-ratio: 1; border-radius: 50%;+ display: grid; place-items: center; background: var(--amber); color: var(--surface-solid);+ font-size: calc(var(--s) * .2); font-weight: var(--fw-semibold); line-height: 1;+ box-shadow: 0 0 0 calc(var(--s) * .03) var(--surface-solid);+ transform-origin: 50% 100%; animation: bf-bang var(--bf-bang) var(--ease-in-out) infinite;+}+@keyframes bf-bang { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg) scale(1.1); } }++/* 睡觉的 z */+.fx-zzz { right: 4%; top: 6%; }+.fx-zzz i {+ font-size: calc(var(--s) * .16); font-style: normal; font-weight: var(--fw-semibold); color: var(--muted); opacity: 0;+ animation: bf-z var(--bf-z) var(--ease-out) infinite;+}+.fx-zzz i:nth-child(2) { animation-delay: calc(var(--bf-z) / 3); }+.fx-zzz i:nth-child(3) { animation-delay: calc(var(--bf-z) * 2 / 3); }+@keyframes bf-z {+ 0% { opacity: 0; transform: scale(.5); }+ 20% { opacity: 1; }+ 100% { opacity: 0; transform: translate(calc(var(--s) * .2), calc(var(--s) * -.32)) scale(1.15) rotate(12deg); }+}++/* 完成 / 打招呼 / 爱心:一圈闪光炸开 */+.fx-burst { left: 50%; top: 48%; filter: drop-shadow(0 0 calc(var(--s) * .02) var(--bf-glow)); }+.fx-burst i {+ width: calc(var(--s) * .1); aspect-ratio: 1; translate: -50% -50%; opacity: 0;+ background: var(--bf-eye);+ clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);+ animation: bf-burst var(--bot-done) var(--ease-out) both;+}+.fx-burst i:nth-child(odd) { --far: .7; width: calc(var(--s) * .07); }+.bot-face[data-shot="hello"] .fx-burst i { animation-name: bf-burst-late; animation-duration: var(--bot-hello); }+.bot-face[data-shot="love"] .fx-burst i { background: var(--bot-blush); }+@keyframes bf-burst {+ 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(0); }+ 65% { opacity: 1; }+ 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--s) * -.62 * var(--far, 1))) scale(1) rotate(90deg); }+}+@keyframes bf-burst-late {+ 0%, 22% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(0); }+ 30% { opacity: 1; }+ 80% { opacity: 1; }+ 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--s) * -.62 * var(--far, 1))) scale(1) rotate(90deg); }+}++/* 芽芽长高时飘下来的叶子 */+.fx-leaf {+ left: var(--tip-x); top: var(--tip-y); width: calc(var(--s) * .12); height: calc(var(--s) * .07);+ border-radius: 0 100%; background: color-mix(in srgb, var(--bf-glow) 60%, var(--bf-eye));+ animation: bf-leaf var(--bot-done) var(--ease-in-out) both;+}+@keyframes bf-leaf {+ 0% { opacity: 0; transform: translate(0, 0) rotate(0); }+ 20% { opacity: 1; }+ 100% { opacity: 0; transform: translate(calc(var(--s) * .42), calc(var(--s) * .22)) rotate(200deg); }+}++/* 连戳三下:冒爱心 */+.fx-hearts { left: 50%; top: 18%; }+.fx-hearts i {+ font-size: calc(var(--s) * .16); font-style: normal; line-height: 1; color: var(--bot-blush); opacity: 0;+ animation: bf-heart-up var(--bot-love) var(--ease-out) both;+}+.fx-hearts i::before { content: "♥"; }+.fx-hearts i:nth-child(1) { --hx: -1; }+.fx-hearts i:nth-child(2) { --hx: .2; animation-delay: calc(var(--bot-love) / 6); }+.fx-hearts i:nth-child(3) { --hx: 1; animation-delay: calc(var(--bot-love) / 3); }+@keyframes bf-heart-up {+ 0% { opacity: 0; transform: translate(-50%, 0) scale(.4); }+ 25% { opacity: 1; transform: translate(calc(-50% + var(--hx) * var(--s) * .1), calc(var(--s) * -.12)) scale(1); }+ 100% { opacity: 0; transform: translate(calc(-50% + var(--hx) * var(--s) * .26), calc(var(--s) * -.42)) scale(.9); }+}++/* 戳晕了:头顶绕圈的小星星 */+.fx-orbit { left: 50%; top: 22%; }+.fx-orbit i {+ width: calc(var(--s) * .09); aspect-ratio: 1; margin: calc(var(--s) * -.045);+ background: var(--bot-yellow-glow);+ clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);+ animation: bf-orbit-x var(--bf-orbit) var(--ease-in-out) infinite alternate, bf-orbit-y var(--bf-orbit) var(--ease-in-out) calc(var(--bf-orbit) / -2) infinite alternate;+}+.fx-orbit i:nth-child(2) { animation-delay: calc(var(--bf-orbit) * -2 / 3), calc(var(--bf-orbit) * -2 / 3 - var(--bf-orbit) / 2); }+.fx-orbit i:nth-child(3) { animation-delay: calc(var(--bf-orbit) * -4 / 3), calc(var(--bf-orbit) * -4 / 3 - var(--bf-orbit) / 2); }+@keyframes bf-orbit-x { from { translate: calc(var(--s) * -.34) 0; } to { translate: calc(var(--s) * .34) 0; } }+@keyframes bf-orbit-y { from { transform: translateY(calc(var(--s) * -.07)) scale(.7); } to { transform: translateY(calc(var(--s) * .07)) scale(1.1); } }++/* —— 官网补充(App 里没有):被吵醒、睡觉时不眨眼、粒子用到的通用关键帧 —— */+/* 打瞌睡被吵醒:一激灵跳起来、眼睛瞪圆、耳朵竖直,头顶一个 !,然后左右看看装没事 */+.bot-face[data-shot="startle"] .bf-shot { animation: bf-startle .9s var(--ease-out) both; }+.bot-face[data-shot="startle"] .bf-lid { scale: 1.32; }+.bot-face[data-shot="startle"] .bf-ear-l { rotate: 14deg; }+.bot-face[data-shot="startle"] .bf-ear-r { rotate: -14deg; }+.bot-face[data-shot="startle"] .bf-top .bf-pin { animation: bf-spring .9s var(--ease-out); }+.bot-face[data-shot="startle"] .fx-bang { animation: pop-in .3s var(--ease-back) both, bf-bang .6s var(--ease-in-out) .3s 1; }+@keyframes bf-startle {+ 0% { transform: none; }+ 10% { transform: translateY(-18%) scale(.92, 1.1); }+ 26% { transform: translateY(-3%) scale(1.06, .95); }+ 38% { transform: none; }+ 54% { transform: translateX(-3.5%) rotate(-4deg); }+ 72% { transform: translateX(3%) rotate(3deg); }+ 86%, 100% { transform: none; }+}+.bot-face[data-state="sleep"] .bf-lid { animation: none; }+.bot-face[data-state="sleep"] .bf-aura { opacity: 0; }+.fx-think, .fx-bang { z-index: 1; }+@keyframes spin { to { rotate: 360deg; } }+@keyframes fade-in { from { opacity: 0; } }+@keyframes pop-in { from { transform: translateY(var(--pop-dy, 4px)) scale(.6); } }++/* —— 台词气泡(lib/eyes.ts 的 say):挂在 body 上,按页面坐标贴在头顶;尾巴指向说话的机器人 —— */+.quip {+ position: absolute; z-index: var(--z-float, 60); max-width: min(260px, calc(100vw - 20px));+ padding: 8px 13px; border-radius: 14px; translate: 0 calc(-100% - 10px);+ background: var(--text); color: var(--bg);+ font: 500 13.5px/1.4 var(--font-sans); letter-spacing: 0; white-space: normal; text-wrap: balance; pointer-events: none;+ box-shadow: 0 10px 28px -10px var(--shadow-c, rgba(0, 0, 0, .45));+ transform-origin: var(--tail, 50%) calc(100% + 8px);+ animation: quip-in .32s cubic-bezier(.34, 1.56, .64, 1) both;+}+.quip::after {+ content: ""; position: absolute; left: var(--tail, 50%); top: 100%; width: 12px; height: 7px; margin-left: -6px;+ background: inherit; clip-path: polygon(0 0, 100% 0, 50% 100%);+}+.quip.is-out { animation: quip-out .2s var(--ease-out, ease-out) both; }+@keyframes quip-in { from { opacity: 0; transform: translateY(6px) scale(.6); } }+@keyframes quip-out { to { opacity: 0; transform: translateY(-4px) scale(.92); } }++/* 减少动态效果:只留表情变化,不动 */+@media (prefers-reduced-motion: reduce) {+ .bot-face, .bot-face * { animation: none !important; transition: none !important; }+ .bot-face .bf-look, .bot-face .bf-gaze { transform: none; }+ .bot-face .fx:not(.fx-bang, .fx-think) { display: none; }+ .bot-face[data-eyes="error"] .e-sad { opacity: 1; scale: 1; rotate: -14deg; }+ .quip, .quip.is-out { animation: none; }+}+}diff --git a/site/src/styles/components.css b/site/src/styles/components.cssnew file mode 100644index 0000000..29e14e2--- /dev/null+++ b/site/src/styles/components.css@@ -0,0 +1,378 @@+@layer tokens, base, components, app, utilities;+/* 全站共用的组件与页面骨架(§4.6、§9):每一页都会加载。只在某一页出现的版式放在 home / pricing / pages.css。+ 状态:default · hover · focus-visible · active · disabled */+@layer components {+ /* —— 按钮 —— */+ .btn {+ --btn-h: 48px;+ display: inline-flex; align-items: center; justify-content: center; gap: 10px;+ min-height: var(--btn-h); padding: 0 24px; border-radius: var(--r-btn);+ font-weight: 600; font-size: var(--fs-body-sm); line-height: 1; white-space: nowrap; text-decoration: none;+ transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), color var(--dur-fast);+ }+ .btn:hover { text-decoration: none; }+ .btn:active { transform: scale(.98); }+ .btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }+ /* 主按钮:深色黄绿底墨字,浅色墨底白字(--primary 随主题换,见 tokens.css) */+ .btn--primary { background: var(--primary); color: var(--on-primary); }+ .btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }+ .btn--primary:active { background: var(--primary-press); }+ .btn--secondary { background: var(--grain), var(--glass); color: var(--text); box-shadow: var(--glass-ring); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }+ .btn--secondary:hover { background: var(--grain), linear-gradient(var(--hover), var(--hover)), var(--glass); color: var(--text); }+ /* 浅色:次按钮是一枚白玻璃胶囊(半透明白 + 模糊 + 顶边高光 + 细边),不再是一块灰底 */+ [data-theme="light"] .btn--secondary { background: var(--grain), var(--glass); box-shadow: var(--glass-ring), 0 1px 2px rgba(17, 24, 39, .04); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }+ [data-theme="light"] .btn--secondary:hover { background: var(--grain), linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .55)), var(--glass); }+ .btn--ghost { color: var(--text); }+ .btn--ghost:hover { background: var(--hover); color: var(--text); }+ .btn--sm { --btn-h: 36px; padding: 0 16px; font-size: var(--fs-sm); }+ .btn .icon { width: 18px; height: 18px; flex: none; }+ .btn .amb-mark { --mark-size: 18px; }+ .icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text); }+ .icon-btn:hover { background: var(--hover); }+ .icon-btn .icon { width: 20px; height: 20px; }+ .icon.flip { transform: scaleX(-1); }++ /* —— 分裂下载按钮 + 下拉菜单 —— */+ .dl { display: inline-grid; justify-items: start; gap: 10px; max-width: 100%; }+ .dl__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }+ .split { position: relative; display: inline-flex; border-radius: var(--r-btn); }+ .split > .btn--primary:first-child { border-radius: var(--r-btn) 0 0 var(--r-btn); padding-right: 20px; }+ .split__more {+ display: inline-grid; place-items: center; width: 44px; min-height: var(--btn-h, 48px);+ border-radius: 0 var(--r-btn) var(--r-btn) 0; background: var(--primary); color: var(--on-primary);+ box-shadow: inset 1px 0 0 var(--primary-divider); transition: background var(--dur-fast);+ }+ .split__more:hover { background: var(--primary-hover); }+ .split__more:active { background: var(--primary-press); }+ .split__more .icon { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }+ .split__more[aria-expanded="true"] .icon { transform: rotate(180deg); }+ .split--sm .split__more { --btn-h: 36px; width: 36px; }+ /* 弹出层(下载菜单、导航里的语言 / 外观菜单):一块浮在内容上的玻璃(--glass-strong + 大半径模糊 + 顶边高光 + 细边),外层 14 → 行 10 */+ .menu {+ position: absolute; top: calc(100% + 8px); right: 0; z-index: var(--z-float); min-width: 260px; padding: 4px;+ border-radius: var(--r-pop); background: var(--grain), var(--glass-strong);+ -webkit-backdrop-filter: var(--glass-blur-lg); backdrop-filter: var(--glass-blur-lg);+ box-shadow: var(--glass-ring), 0 18px 48px -12px var(--shadow-c);+ }+ .menu a, .menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: var(--r-item); color: var(--text); font-size: var(--fs-sm); text-align: left; }+ .menu a:hover, .menu button:hover, .menu :focus-visible { background: var(--hover); text-decoration: none; color: var(--text); }+ .menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 8px; }++ /* —— 徽标、chip —— */+ .badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-btn); font-family: var(--font-mono); font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: .02em; white-space: nowrap; }+ :lang(zh) .badge { font-family: var(--font-sans); }+ .badge--neutral { background: var(--grain), var(--glass); color: var(--text-2); box-shadow: var(--glass-ring); }+ /* 品牌标签("默认""本地"):深色实心黄绿;浅色淡底 + 深橄榄字,价格表里成排出现也不刺眼 */+ .badge--accent { background: var(--tag-bg); color: var(--tag-fg); box-shadow: inset 0 0 0 1px var(--tag-edge); }+ .badge--warn { background: var(--warn-wash); color: var(--warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn), transparent 60%); }+ .chip {+ display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--r-btn);+ box-shadow: var(--glass-ring); color: var(--text); font-size: var(--fs-sm); white-space: nowrap; background: var(--grain), var(--glass);+ transition: background var(--dur-fast), box-shadow var(--dur-fast), color var(--dur-fast);+ }+ .chip:hover { background: var(--grain), linear-gradient(var(--hover), var(--hover)), var(--glass); }+ .chip[aria-selected="true"], .chip[aria-pressed="true"] {+ background: var(--chip-on-bg); color: var(--accent-fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-fg), transparent 40%);+ }++ /* —— 荧光笔:深色是品牌黄绿,浅色换成柔黄绿(纯黄绿压在白底的大标题下面会发荧光) —— */+ mark.hl {+ background: linear-gradient(var(--hl-bg), var(--hl-bg)) no-repeat 0 60% / 100% 78%;+ color: var(--accent-ink); padding: 0 .12em; margin: 0 -.04em; border-radius: .08em;+ -webkit-box-decoration-break: clone; box-decoration-break: clone;+ }+ /* 扫过之前字保持原来的颜色(深色主题下墨色字压在深底上会看不见),底色扫到一半时再换成墨色 */+ html.js mark.hl.reveal-hl { background-size: 0% 78%; color: inherit; transition: background-size 480ms var(--ease-out) 200ms, color 200ms var(--ease-out) 400ms; }+ html.js mark.hl.reveal-hl.is-in { background-size: 100% 78%; color: var(--accent-ink); }+ @media (prefers-reduced-motion: reduce) { html.js mark.hl.reveal-hl { transition: none; } }+ @media (forced-colors: active) { mark.hl { text-decoration: underline; } }++ /* —— 卡片 —— */+ .card { position: relative; border-radius: var(--r-card); background: var(--grain), color-mix(in srgb, var(--bg-raised) 80%, transparent); box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--line), var(--card-shadow); padding: 28px; }+ .card--hover { transition: box-shadow var(--dur-base) var(--ease-out); }+ .card--hover:hover, .card--hover:focus-within { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-fg), transparent 60%), var(--card-shadow); }+ .card--feature { border-radius: var(--r-feature); background: var(--grain), color-mix(in srgb, var(--bg-feature) 80%, transparent); padding: var(--card-pad); overflow: hidden; }+ /* 浅色:卡片是一块白玻璃(价格卡、下载卡)——半透明白透出页面底下的白光,细边 + 顶边高光 + 很轻的托起。+ 不加 backdrop-filter:背后只有很柔的光,模糊不出东西;而且它会让卡片自成层叠上下文,卡里的下载菜单会被旁边的卡盖住 */+ [data-theme="light"] .card { background: var(--grain), var(--glass); box-shadow: var(--glass-ring), var(--card-shadow); }+ [data-theme="light"] :is(.card--hover:hover, .card--hover:focus-within) { box-shadow: var(--glass-ring), inset 0 0 0 1px color-mix(in srgb, var(--accent-fg), transparent 60%), var(--card-shadow); }+ @media (max-width: 767px) { .card { padding: 20px; } }+ /* 小标签(价格卡标签、章节头的"编号 / 名称"、工牌职位)全站只有这一种:英文等宽大写,中文无衬线、不大写 */+ .eyebrow { font-family: var(--font-mono); font-size: var(--fs-eyebrow); font-weight: 500; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }+ :lang(zh) .eyebrow { font-family: var(--font-sans); font-size: var(--fs-eyebrow-zh); letter-spacing: .04em; text-transform: none; }++ /* —— 列表打勾 —— */+ .ticks { display: grid; gap: 8px; }+ .ticks li { position: relative; padding-left: 22px; }+ .ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--accent-fg); border-bottom: 2px solid var(--accent-fg); transform: rotate(-45deg); }++ /* —— 章节与标题 —— */+ .section { padding-block: var(--section-y); }+ .section-head { display: grid; gap: 16px; margin-bottom: var(--stack-head); }+ .section-head.center { justify-items: center; text-align: center; }+ /* 标题四级(字号在 tokens.css):Hero 的 display 在 home.css,这里是 h2 → title(.subhead)→ h3。+ 字越大,行高越紧、字距越收;中文行高比英文大 .15–.2,字距不收。字重一律 600。两段式标题的后半句用次要色。 */+ .h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; }+ :lang(zh) .h2 { font-size: var(--fs-h2-zh); line-height: 1.25; letter-spacing: 0; }+ .h2__dim { color: var(--text-2); }+ /* 块标题:章节里的一块内容(功能卡、价格概览、工牌上的名字) */+ .subhead { font-size: var(--fs-title); line-height: 1.12; letter-spacing: -.025em; font-weight: 600; }+ :lang(zh) .subhead { font-size: var(--fs-title-zh); line-height: 1.3; letter-spacing: 0; }+ .h3 { font-size: var(--fs-h3); line-height: 1.3; }+ .lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--text-2); }+ :lang(zh) .lead { line-height: 1.75; }+ @media (max-width: 767px) { .h3 { font-size: 20px; } }++ /* —— 首页章节头(components/SectionHead.astro)——+ 一列、同一条左边线,从上到下:细线 → 编号 / 名称(.eyebrow)→ 两段式标题 → 说明(紧跟标题,不另起一栏)。+ 三种颜色:正文色(标题前半句)、次要色(后半句、名称、说明)、品牌色(编号)。主持机器人蹲在细线右端(脚踩着线)。 */+ .shead { position: relative; display: grid; justify-items: start; margin-bottom: var(--stack-head); padding-top: var(--space-4); border-top: 1px solid var(--line); }+ .shead__kicker { display: flex; align-items: baseline; gap: 12px; margin-bottom: clamp(20px, 2.4vw, 32px); }+ .shead__n { font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: .04em; text-transform: none; color: var(--accent-fg); }+ .shead__n::after { content: "/"; margin-left: 12px; color: var(--line-strong); }+ .shead__title { max-width: 18em; }+ :lang(zh) .shead__title { max-width: 20em; }+ .shead__title > span { display: block; }+ .shead__lead { max-width: 34em; margin-top: clamp(16px, 1.8vw, 24px); }+ :lang(zh) .shead__lead { max-width: 32em; }+ .shead__host { position: absolute; right: 0; bottom: calc(100% - 3px); }+ @media (max-width: 767px) { .shead__host { --s: 36px !important; } }+ /* 居中版(SectionHead center):编号、标题、说明都居中,主持机器人站在细线正中;细线从中间往两边画开(sections.css) */+ .shead--center { justify-items: center; text-align: center; }+ .shead--center .shead__host { right: auto; left: calc(50% - var(--s) / 2); }++ /* —— 代码块(长命令在块内换行,复制按钮固定在右上) —— */+ .code { position: relative; display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 12px 12px 16px; border-radius: var(--r-field); background: var(--code-bg); box-shadow: inset 0 0 0 1px var(--line); }+ .code code { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--fs-xs); line-height: 1.55; padding-top: 6px; }+ .copy-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-item); font-size: var(--fs-xs); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }+ .copy-btn:hover { color: var(--text); background: var(--hover); }+ .copy-btn .icon { width: 15px; height: 15px; }+ .copy-btn[data-state="copied"] { color: var(--ok); }+ .warnbar { display: flex; gap: 8px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-field); background: var(--warn-wash); color: var(--text); box-shadow: inset 3px 0 0 var(--warn); font-size: var(--fs-sm); }++ /* —— 表格 —— */+ .table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }+ .table caption { text-align: left; color: var(--text-2); font-size: var(--fs-xs); padding-bottom: 10px; }+ .table th, .table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }+ .table thead th { font-weight: 500; color: var(--text-2); font-size: var(--fs-xs); }+ .table tbody th { font-weight: 500; color: var(--text-2); }+ .table-wrap { border-radius: var(--r-card); box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--line); background: var(--grain), color-mix(in srgb, var(--bg-raised) 80%, transparent); padding: 8px 8px 0; overflow-x: auto; }+ [data-theme="light"] .table-wrap { background: var(--grain), var(--glass); box-shadow: var(--glass-ring), var(--card-shadow); }+ /* 两栏对照表(/pricing、/security):手机上每行变成一张小卡 */+ @media (max-width: 767px) {+ :is(.compare, .contrast) .table thead { display: none; }+ :is(.compare, .contrast) :is(.table, tbody, tr, th, td) { display: block; }+ :is(.compare, .contrast) tr { padding: 12px 8px; border-bottom: 1px solid var(--line); }+ :is(.compare, .contrast) :is(th, td) { border: 0; padding: 4px 8px; }+ :is(.compare, .contrast) tbody th { color: var(--text); font-weight: 600; }+ :is(.compare, .contrast) td::before { content: attr(data-label); display: block; font-size: var(--fs-eyebrow); color: var(--text-2); }+ }++ /* —— 价格卡(首页精简版与 /pricing 共用) —— */+ .pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }+ .pcards > * { min-width: 0; }+ .pcard { display: grid; align-content: start; gap: 16px; padding: 32px; }+ .pcard > .btn, .pcard > .dl { justify-self: start; }+ .pcard__mark { position: absolute; top: 24px; right: 24px; }+ .pcard__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }+ .pcard__price .mono { font-size: var(--fs-figure); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }+ .pcard__unit { color: var(--text-2); font-size: var(--fs-sm); }+ .pcard__note { color: var(--text-2); font-size: var(--fs-xs); line-height: 1.55; }+ .pcard__link { justify-self: start; font-size: var(--fs-sm); font-weight: 500; }+ .pcard .ticks { color: var(--text-2); border-top: 1px solid var(--line); padding-top: 16px; }+ .pcards--compact .pcard { gap: 12px; padding: 28px; }+ .pcards--compact .pcard__link { margin-top: auto; padding-top: 4px; }+ @media (max-width: 1023px) { .pcards { grid-template-columns: 1fr 1fr; } .pcards > :last-child { grid-column: 1 / -1; } }+ @media (max-width: 767px) { .pcards { grid-template-columns: 1fr; } .pcard, .pcards--compact .pcard { padding: 24px; } }++ /* —— FAQ 折叠列表 —— */+ .faq { display: grid; border-top: 1px solid var(--line); }+ .faq details { border-bottom: 1px solid var(--line); }+ .faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 4px; cursor: pointer; font-weight: 500; font-size: var(--fs-lead); line-height: 1.45; list-style: none; }+ .faq summary::-webkit-details-marker { display: none; }+ .faq summary .icon { flex: none; width: 20px; height: 20px; color: var(--text-2); transition: transform var(--dur-base) var(--ease-out); }+ .faq details[open] summary .icon { transform: rotate(180deg); }+ .faq details > div { padding: 0 4px 24px; color: var(--text-2); max-width: 68ch; }++ /* —— 对话框 —— */+ dialog.sheet {+ width: min(560px, 100% - 32px); max-height: min(86vh, 760px); padding: 0; border: 0; border-radius: var(--r-feature);+ background: var(--grain), var(--glass-strong); color: var(--text);+ -webkit-backdrop-filter: var(--glass-blur-lg); backdrop-filter: var(--glass-blur-lg);+ box-shadow: var(--glass-ring), 0 30px 80px -20px var(--shadow-c-strong);+ }+ /* 旧版浏览器的 ::backdrop 不继承自定义属性,回退到原来的深色遮罩 */+ dialog.sheet::backdrop { background: var(--scrim, rgba(0, 0, 0, .55)); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }+ dialog.sheet[open] { animation: sheet-in var(--dur-base) var(--ease-out); }+ @keyframes sheet-in { from { opacity: 0; transform: translateY(12px); } }+ .sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 0 24px; }+ .sheet__body { padding: 16px 24px 24px; display: grid; gap: 16px; }+ .sheet ol { padding-left: 1.3em; display: grid; gap: 10px; }+ @media (max-width: 767px) {+ dialog.sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: var(--r-feature) var(--r-feature) 0 0; }+ }++ /* —— Toast —— */+ .toasts { position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast); transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }+ .toast { padding: 12px 16px; border-radius: var(--r-pop); background: var(--text); color: var(--bg); font-size: var(--fs-sm); box-shadow: 0 10px 30px -10px var(--shadow-c); animation: sheet-in var(--dur-base) var(--ease-out); }+ .toast[data-kind="error"] { background: var(--danger); color: var(--on-danger); }++ /* —— 导航:一条通栏 ——+ 和正文用同一个容器:logo、下载按钮分别对齐页面内容的左右边线;链接在正中(三栏网格,两侧等分)。+ 停在页面顶上时透明,和 Hero 的光连成一片;往下滚之后铺一层半透明底色 + 毛玻璃,底边一根细线和内容分开。+ 一套尺寸到底:所有控件都是 32 高的圆角胶囊,文字 14 / 500(下载 600),图标 16。链接之间 2px;+ 右侧的 GitHub、语言、外观是三个 32×32 的图标按钮(间隔 4px,悬停 / 键盘聚焦时下方出提示),工具组和下载之间 12px。+ 右侧不加分隔线和平台菜单。+ 悬停 / 当前位置:链接下面的底色 .nav__pill 跟着悬停滑动,停在当前章节上(client.ts),文字换成正文色。 */+ /* 底色和毛玻璃画在 ::before 上:导航本身不带 backdrop-filter,里面的语言 / 外观菜单才能透过它模糊到页面内容 */+ .nav { position: sticky; top: 0; z-index: var(--z-nav); height: var(--nav-h); }+ .nav::before {+ content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;+ box-shadow: inset 0 -1px 0 transparent;+ transition: background-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);+ }+ .nav.is-scrolled::before {+ background-color: var(--nav-bg); background-image: var(--grain); box-shadow: inset 0 -1px 0 var(--line);+ -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);+ }+ .nav__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-6); height: 100%; }+ .logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 20px; letter-spacing: -.015em; white-space: nowrap; }+ .logo:hover { color: var(--text); text-decoration: none; }+ .logo .amb-mark { --mark-size: 28px; }+ .nav .logo, .drawer .logo { justify-self: start; gap: 8px; font-size: var(--fs-body); border-radius: var(--r-btn); }++ .nav__links { position: relative; display: flex; align-items: center; gap: 2px; }+ .nav__link {+ position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px;+ border-radius: var(--r-btn); color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none;+ transition: color var(--dur-fast);+ }+ .nav__link:hover, .nav__link.is-hot, .nav__link.is-active, .nav__link[aria-current="page"] { color: var(--text); text-decoration: none; }+ .nav__ext { width: 12px; height: 12px; margin-right: -2px; opacity: .5; transition: opacity var(--dur-fast); }+ .nav__link:hover .nav__ext { opacity: .8; }+ .nav__pill {+ position: absolute; left: 0; top: 50%; z-index: 0; width: var(--pill-w, 0px); height: 32px; border-radius: var(--r-btn);+ background: var(--nav-pill); opacity: 0; transform: translate(var(--pill-x, 0px), -50%); pointer-events: none;+ transition: transform calc(var(--dur-base) * 1.5) var(--ease-out), width calc(var(--dur-base) * 1.5) var(--ease-out), opacity var(--dur-fast);+ }+ .nav__links.has-pill .nav__pill { opacity: 1; }+ .nav__links.pill-snap .nav__pill { transition: opacity var(--dur-fast); }+ html:not(.js) .nav__link:hover { background: var(--nav-pill); }++ .nav__tools { justify-self: end; display: flex; align-items: center; gap: var(--space-3); }+ .nav__utils { display: flex; align-items: center; gap: 4px; }+ .nav__util {+ display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px;+ border-radius: var(--r-btn); color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none;+ transition: color var(--dur-fast), background var(--dur-fast);+ }+ .nav__util:hover, .nav__util[aria-expanded="true"] { color: var(--text); background: var(--nav-pill); text-decoration: none; }+ .nav__util--icon { width: 32px; padding: 0; }+ .nav__util .icon { flex: none; width: 16px; height: 16px; }+ /* 图标按钮的提示:按钮正下方一枚反色小标签,悬停 0.35 秒后浮出(键盘聚焦立刻出);菜单展开时收起 */+ .nav [data-tip] { position: relative; }+ .nav [data-tip]::after {+ content: attr(data-tip); position: absolute; top: calc(100% + 10px); left: 50%; z-index: var(--z-float);+ padding: 6px 8px; border-radius: var(--r-item); background: var(--text); color: var(--bg);+ font-family: var(--font-sans); font-size: var(--fs-eyebrow); font-weight: 500; line-height: 1; letter-spacing: 0; white-space: nowrap;+ opacity: 0; transform: translate(-50%, -3px); pointer-events: none;+ transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);+ }+ .nav [data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); transition-delay: .35s; }+ .nav [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }+ .nav [data-tip][aria-expanded="true"]::after { opacity: 0; transition-delay: 0s; }+ /* 外观按钮:太阳和月亮叠在同一个网格格子里(不用绝对定位:按钮里没有正常流的内容时,基线会掉到底边,和旁边的按钮错开),+ 换主题时一个转着缩走、另一个转着出来 */+ .theme-toggle { display: inline-grid; place-items: center; }+ .theme-toggle .theme-ico { grid-area: 1 / 1; transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }+ [data-theme="dark"] .theme-toggle .theme-ico-light { opacity: 0; transform: rotate(90deg) scale(.4); }+ [data-theme="light"] .theme-toggle .theme-ico-dark { opacity: 0; transform: rotate(-90deg) scale(.4); }+ /* 下载:和其他控件同高的品牌色胶囊,前面一个下载图标 */+ .nav .dl--plain .btn { --btn-h: 32px; gap: 6px; padding: 0 14px 0 12px; font-size: var(--fs-sm); }+ .nav .dl--plain .btn .icon { width: 16px; height: 16px; }+ /* 语言 / 外观菜单:紧贴按钮下方 6px(叠在导航栏上),右边和按钮对齐,从按钮那一角轻轻展开。+ 比下载菜单紧凑:行高 34,左边图标、中间名称、右边当前项的勾;未选中的项用次要色。+ .nav__menu 用 flex:做成块的话里面会按正文行高留一行,按钮被基线顶偏,和 GitHub 按钮对不齐 */+ .nav__menu { position: relative; display: flex; }+ .nav .menu {+ top: calc(100% + 6px); right: 0; min-width: 176px;+ transform-origin: top right; animation: menu-in var(--dur-fast) var(--ease-out);+ }+ @keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(.97); } }+ .nav .menu a, .nav .menu button { justify-content: flex-start; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: var(--r-item); color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; }+ .nav .menu a:hover, .nav .menu button:hover, .nav .menu :focus-visible, .nav .menu [aria-checked="true"] { color: var(--text); }+ .menu__label { flex: 1; }+ .menu__ico { flex: none; width: 16px; height: 16px; }+ .menu__check { flex: none; width: 16px; height: 16px; color: var(--accent-fg); opacity: 0; }+ .menu [aria-checked="true"] .menu__check { opacity: 1; }+ .nav__burger { display: none; }++ /* 语言:中 / EN 两段,当前语言实心;整块是一个链接 */+ .lang-seg {+ display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 2px; margin-inline: 4px;+ border-radius: var(--r-btn); box-shadow: inset 0 0 0 1px var(--line);+ color: var(--text-2); font-family: var(--font-sans); font-size: var(--fs-eyebrow); font-weight: 500; line-height: 1; text-decoration: none;+ }+ .lang-seg span { display: grid; place-items: center; min-width: 30px; height: 100%; padding: 0 8px; border-radius: var(--r-btn); transition: background var(--dur-fast), color var(--dur-fast); }+ .lang-seg span[data-cur] { background: var(--chip-on-bg); color: var(--accent-fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-fg), transparent 40%); }+ .lang-seg:hover { color: var(--text); text-decoration: none; }+ .lang-seg:hover span:not([data-cur]) { background: var(--nav-pill); }++ @media (max-width: 1023px) {+ .nav__bar { grid-template-columns: 1fr auto; }+ .nav__links, .nav__tools .hide-md { display: none; }+ .nav__tools { gap: var(--space-2); }+ .nav__burger { display: inline-flex; }+ }+ @media (max-width: 767px) {+ :root { --nav-h: 56px; }+ }++ /* —— 移动端抽屉:头部和导航同高、同一个容器(关闭按钮落在汉堡按钮的位置),链接带编号、逐条进场 —— */+ dialog.drawer { margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; padding: 0; border: 0; color: var(--text);+ background: var(--grain), color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: var(--glass-blur-lg); backdrop-filter: var(--glass-blur-lg); }+ dialog.drawer[open] { display: flex; flex-direction: column; animation: drawer-in var(--dur-base) var(--ease-out); }+ dialog.drawer::backdrop { background: transparent; }+ @keyframes drawer-in { from { opacity: 0; } }+ .drawer__head { flex: none; display: flex; justify-content: space-between; align-items: center; height: var(--nav-h); }+ .drawer__links { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; padding-block: 8px; }+ .drawer__links a {+ display: flex; align-items: center; gap: 16px; min-height: 64px; border-bottom: 1px solid var(--line);+ color: var(--text); font-size: 24px; font-weight: 500; letter-spacing: -.02em; text-decoration: none;+ }+ :lang(zh) .drawer__links a { letter-spacing: 0; }+ .drawer__links a:hover { color: var(--text); text-decoration: none; }+ .drawer__num { width: 24px; flex: none; font-family: var(--font-mono); font-size: var(--fs-eyebrow); font-weight: 400; letter-spacing: 0; color: var(--text-2); }+ .drawer__label { flex: 1; }+ .drawer__links a[aria-current="page"] .drawer__label { color: var(--accent-fg); }+ .drawer__go { flex: none; width: 18px; height: 18px; color: var(--text-2); transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast); }+ .drawer__links a:hover .drawer__go, .drawer__links a:focus-visible .drawer__go { color: var(--accent-fg); transform: translateX(3px); }+ dialog.drawer[open] .drawer__links a { animation: drawer-item var(--dur-slow) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms + 40ms); }+ @keyframes drawer-item { from { opacity: 0; transform: translateY(10px); } }+ .drawer__foot { flex: none; display: grid; gap: 16px; padding-block: 16px calc(16px + env(safe-area-inset-bottom)); }+ .drawer__prefs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }+ .drawer__prefs .lang-seg { height: 36px; margin: 0; font-size: var(--fs-xs); }+ .drawer__prefs .lang-seg span { min-width: 40px; }+ .drawer__theme { display: flex; flex-wrap: wrap; gap: 8px; }+ .drawer__actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }+ .drawer__actions .btn { --btn-h: 52px; }+ @media (prefers-reduced-motion: reduce) {+ dialog.drawer[open], dialog.drawer[open] .drawer__links a { animation: none; }+ }++ /* —— 页脚:样式在 footer.css(随 components/Footer.astro 加载) —— */++ /* —— 附属页骨架(下载、安全、更新日志、隐私、许可) —— */+ .page { padding-block: clamp(48px, 8vw, 96px); }+ .page__head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 48px); max-width: 760px; }+ /* 附属页的 H1 和首页章节标题同级(h2 那一档),不另起字号 */+ .page h1 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.035em; }+ :lang(zh) .page h1 { font-size: var(--fs-h2-zh); line-height: 1.25; letter-spacing: 0; }+ .page.prose > h2, .page .prose > h2 { font-size: var(--fs-h3); line-height: 1.3; margin: 40px 0 16px; }+ .page.prose p + p, .page .prose p + p { margin-top: 12px; }+ .page .ticks { margin-top: 12px; }+ .page__section { display: grid; gap: 12px; max-width: 760px; margin-top: 48px; }+ .page__section > h2 { font-size: var(--fs-h3); line-height: 1.3; }+ .page__aside { margin-top: 12px; }+ .page__cta { margin-top: 32px; }+}diff --git a/site/src/styles/eyes.css b/site/src/styles/eyes.cssnew file mode 100644index 0000000..ee953b9--- /dev/null+++ b/site/src/styles/eyes.css@@ -0,0 +1,65 @@+@layer tokens, base, components, app, utilities;+/* AnyModelBot Eyes 标记(§7.3):四个变换层各管一件事——head 头部转向 / eyes 目光 / squint 表情 / lids 眨眼。+ 只动 transform;无 JS 时空闲左右看与眨眼照常(纯 CSS),JS(src/lib/eyes.ts)只写 --look-x/--look-y 与 data-mode。 */+@layer components {+ .amb-mark {+ --look-x: 0; --look-y: 0;+ width: var(--mark-size, 1em); height: var(--mark-size, 1em);+ display: inline-block; overflow: visible; vertical-align: -.1em; flex: none;+ }+ .amb-mark__plate { fill: var(--mark-plate); stroke: var(--mark-ring, transparent); stroke-width: 3; }+ .amb-mark__eye { fill: var(--mark-eye); }+ .amb-mark[data-variant="ring"] { --mark-plate: var(--ring-plate); --mark-ring: var(--ring-stroke); --mark-eye: var(--ring-eye); }+ .amb-mark__head, .amb-mark__eyes, .amb-mark__squint, .amb-mark__lids { transform-box: fill-box; transform-origin: center; }+ /* 面罩的转轴放在面罩中心而不是眼睛组 */+ .amb-mark__head { transform-box: view-box; transform-origin: 50px 50px; }++ /* —— 眨眼 —— */+ .amb-mark__lids { animation: amb-blink var(--blink-period, var(--mark-blink-period)) cubic-bezier(.4, 0, .2, 1) var(--blink-delay, 0s) infinite; }+ .amb-mark.is-double .amb-mark__lids { animation-name: amb-blink-double; }+ @keyframes amb-blink { 0%, 96% { transform: scaleY(1); } 98% { transform: scaleY(.08); } 100% { transform: scaleY(1); } }+ @keyframes amb-blink-double { 0%, 88% { transform: scaleY(1); } 90% { transform: scaleY(.08); } 92.5% { transform: scaleY(1); } 95% { transform: scaleY(.08); } 98% { transform: scaleY(1); } }++ /* —— 空闲:自己左右看 —— */+ .amb-mark[data-mode="idle"] .amb-mark__eyes { animation: amb-glance var(--mark-idle-period) cubic-bezier(.3, 0, .2, 1) var(--idle-delay, 0s) infinite; }+ .amb-mark[data-mode="idle"] .amb-mark__head { animation: amb-head var(--mark-idle-period) cubic-bezier(.3, 0, .2, 1) var(--idle-delay, 0s) infinite; }+ @keyframes amb-glance {+ 0%, 9% { transform: translate(0, 0); }+ 13%, 29% { transform: translate(calc(var(--mark-amp-x) * -1px), calc(var(--mark-amp-y) * -.2px)); }+ 33%, 51% { transform: translate(0, 0); }+ 55%, 71% { transform: translate(calc(var(--mark-amp-x) * 1px), calc(var(--mark-amp-y) * -.2px)); }+ 75%, 100% { transform: translate(0, 0); }+ }+ @keyframes amb-head {+ 0%, 9% { transform: none; }+ 13%, 29% { transform: translate(calc(var(--mark-head-x) * -.75px), 0) rotate(calc(var(--mark-head-tilt) * -.75)); }+ 33%, 51% { transform: none; }+ 55%, 71% { transform: translate(calc(var(--mark-head-x) * .75px), 0) rotate(calc(var(--mark-head-tilt) * .75)); }+ 75%, 100% { transform: none; }+ }++ /* —— 跟随 —— */+ .amb-mark[data-mode="follow"] .amb-mark__eyes {+ transform: translate(calc(var(--look-x) * var(--mark-amp-x) * 1px), calc(var(--look-y) * var(--mark-amp-y) * 1px));+ transition: transform var(--mark-follow-dur) var(--ease-out);+ }+ .amb-mark[data-mode="follow"] .amb-mark__head {+ transform: translate(calc(var(--look-x) * var(--mark-head-x) * 1px), calc(var(--look-y) * var(--mark-head-y) * 1px)) rotate(calc(var(--look-x) * var(--mark-head-tilt)));+ transition: transform calc(var(--mark-follow-dur) * 1.6) var(--ease-out);+ }++ /* —— 表情:悬停/聚焦开心,按下眯眼,点击标记开心 0.9s —— */+ .amb-mark__squint { transition: transform 120ms var(--ease-out); }+ :is(.btn, .amb-mark-host):is(:hover, :focus-visible) .amb-mark__squint,+ .amb-mark[data-state="happy"] .amb-mark__squint { transform: scale(.96, 1.14); }+ :is(.btn, .amb-mark-host):active .amb-mark__squint { transform: scale(1.04, .55); }++ /* —— 离开视口 / 标签页隐藏时暂停 —— */+ .amb-mark[data-visible="false"] *, html[data-tab-hidden] .amb-mark * { animation-play-state: paused !important; }++ /* —— 主操作色面上的标记(主按钮、首页的"App 免费"卡):深色是黄绿面上的墨色标记,浅色是墨色面上的黄绿标记 —— */+ [data-on="accent"] .amb-mark, .amb-mark[data-on="accent"] { --mark-plate: var(--primary-mark-plate); --mark-eye: var(--primary-mark-eye); --mark-ring: transparent; }+}+@media (prefers-reduced-motion: reduce) {+ .amb-mark * { animation: none !important; transition: none !important; transform: none !important; }+}diff --git a/site/src/styles/footer.css b/site/src/styles/footer.cssnew file mode 100644index 0000000..e317f74--- /dev/null+++ b/site/src/styles/footer.css@@ -0,0 +1,71 @@+@layer tokens, base, components, app, utilities;+/* 页脚(components/Footer.astro):品牌(标记 + 一句话)| 三栏链接 → 版权行 → 眼睛田。+ 眼睛田是页脚最下面的大字标:AnyModelBot 由几百枚迷你 Eyes 标记拼成,画在 canvas 上(scripts/eyefield.ts)。+ 两个主题两种画法,画布只认下面这些变量(主题切换时脚本会重读):+ 深色 · 发光:统一的灰面罩 --field-plate + 角色色的眼睛(--lime、--bot-*-eye)+ 光晕 --field-glow。字形靠一排排发光的眼睛读出来。+ 浅色 · 淡彩:有 --field-ink 时启用。面罩是每个角色的辉光色(--lime、--bot-*-glow)调进底色的淡彩,+ 从字标顶到底按 --field-tint-top → --field-tint-bottom 由浅变深(像光从上面打下来),一圈极细的边 --field-edge;+ 眼睛统一墨色。整块字标是一片粉彩马赛克,"换脑"时整片换一个色调——不再是一块死黑,也没有白底上的荧光色。+ --field-cut 探出头的脸外面那一圈缺口,取页面底色+ --field-bleed 画布比字标盒子上下各多出这么多:探头、弹跳的脸可以画出盒子,盒子本身贴着字形,不用为它们留白 */+@layer components {+ .footer { margin-top: 32px; padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); overflow: clip; }+ .footer__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px var(--grid-gap); align-items: start; }+ .footer__brand { display: grid; justify-items: start; gap: 12px; }+ .footer__tag { max-width: 22em; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }+ :lang(zh) .footer__tag { max-width: 17em; }+ .footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }+ .footer__title { margin-bottom: 12px; color: var(--text); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; }+ .footer__cols ul { display: grid; gap: 10px; font-size: var(--fs-sm); }+ .footer__cols a { color: var(--text-2); transition: color var(--dur-fast); }+ .footer__cols a:hover { color: var(--text); text-decoration: none; }+ .footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text-2); }+ .footer__switch { margin-left: auto; display: flex; gap: 16px; }+ .footer__switch a, .footer__switch button { color: var(--text-2); font-size: var(--fs-xs); transition: color var(--dur-fast); }+ .footer__switch a:hover, .footer__switch button:hover { color: var(--text); text-decoration: none; }+ @media (max-width: 1023px) { .footer__inner { grid-template-columns: 1fr; } }+ @media (max-width: 767px) { .footer__cols { grid-template-columns: 1fr 1fr; } .footer__switch { margin-left: 0; } }++ /* —— 眼睛田 —— */+ .footer__field {+ --field-bleed: 16px;+ --field-plate: #1c1e19; /* 比深色底亮一档的灰(写成实色:画布的 fillStyle 不一定认 color-mix) */+ --field-cut: var(--bg);+ --field-glow: .22;+ --field-dot-ring: 0 0 0 2px var(--field-plate);+ margin-top: clamp(20px, 2.8vw, 32px); padding-bottom: var(--field-bleed);+ }+ [data-theme="light"] .footer__field {+ --field-ink: var(--ink);+ --field-tint-top: .14;+ --field-tint-bottom: .32;+ --field-edge: rgba(17, 24, 39, .08);+ --field-glow: 0;+ --field-dot-ring: 0 0 0 1px rgba(17, 24, 39, .16);+ }+ /* 没有 JS 就没有画面,整块不占位 */+ html:not(.js) .footer__field { display: none; }++ /* 字标上面一行小字:左边告诉你可以点,右边是正在用的模型("换脑"时跟着字标一起换色、换名字) */+ .footer__field-cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; margin-bottom: 4px; color: var(--text-2); font-size: var(--fs-xs); line-height: 1.5; }+ .footer__field-model { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }+ /* 小圆点是"当前这一轮的颜色":深色是眼睛色外面一圈灰面罩,浅色是面罩的淡彩外面一圈细边 */+ .footer__field-model i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--field-dot, var(--accent-fg)); box-shadow: var(--field-dot-ring); transition: background .6s var(--ease-out); }+ .footer__field-model b { color: var(--text); font-size: 12px; font-weight: 500; }+ .footer__field-model b.is-swap { animation: field-swap .5s var(--ease-out); }+ @keyframes field-swap { from { opacity: 0; translate: 0 6px; filter: blur(2px); } }++ /* 字标盒子:比例由 CSS 定(脚本按这个比例决定排一行还是三行),首帧前就占好位,不会把页面往下顶。+ 比例贴着字形本身(一行的 AnyModelBot 约 7.4:1),上下几乎不留白;画布上下各出血 --field-bleed,盒子不为探头的脸留空 */+ .footer__stage { position: relative; aspect-ratio: 7.4 / 1; }+ .footer__canvas {+ position: absolute; left: 0; top: calc(-1 * var(--field-bleed)); display: block; width: 100%; height: calc(100% + 2 * var(--field-bleed));+ cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;+ }+ @media (max-width: 639px) { .footer__stage { aspect-ratio: 1.3 / 1; } }+ @media (prefers-reduced-motion: reduce) {+ .footer__canvas { cursor: default; }+ .footer__field-model b.is-swap { animation: none; }+ .footer__field-hint { display: none; }+ }+}diff --git a/site/src/styles/hero-logos.css b/site/src/styles/hero-logos.cssnew file mode 100644index 0000000..29b5da0--- /dev/null+++ b/site/src/styles/hero-logos.css@@ -0,0 +1,25 @@+@layer tokens, base, components, app, utilities;+/* Hero 背景里的模型厂商标志(components/HeroLogos.astro)。叠在天空上面、光晕和地平线下面(DOM 顺序),磨砂颗粒盖在最上面。+ 颜色是正文色按 --o 乘一个很低的比例:深色最清楚的一枚 12%,浅色 11%——隐约看得出是哪家,但不抢字。+ (用户先说"淡一点",压到 7% / 6% 后又说"看不到",取在中间;远处几枚按 --o 再淡到一半左右。)+ 微浮动:上下 8px、左右 3px、转 ±1.5°,5–8.5 秒一个来回、起点错开,看得出在轻轻漂;入场随 Hero 淡入(第一屏的文字出完之后)。 */+@layer app {+ .hero__logos { --logo-a: 12%; position: absolute; inset: 0; pointer-events: none; }+ [data-theme="light"] .hero__logos { --logo-a: 11%; }+ .hero__logo {+ position: absolute; display: block;+ color: color-mix(in srgb, var(--text) calc(var(--logo-a) * var(--o, 1)), transparent);+ }+ .hero__logo svg { display: block; }+ .hero__logo--far { filter: blur(.6px); }+ @media (prefers-reduced-motion: no-preference) {+ .hero__logos { animation: hero-logos-in 1.6s var(--ease-out) .7s backwards; }+ .hero__logo { animation: hero-logo-float calc(var(--d, 10s) * .65) ease-in-out var(--t, 0s) infinite alternate; }+ }+ @keyframes hero-logos-in { from { opacity: 0; } }+ @keyframes hero-logo-float { from { translate: 0 0; rotate: -1.5deg; } to { translate: 3px -8px; rotate: 1.5deg; } }+ /* 中等宽度:标题占的比例大了,只留外侧不压字的几枚;窄屏标题铺满,整层不放 */+ @media (max-width: 1279px) { .hero__logo--far { display: none; } }+ @media (max-width: 1023px) { .hero__logo:not(.hero__logo--far) { scale: .85; } }+ @media (max-width: 767px) { .hero__logos { display: none; } }+}diff --git a/site/src/styles/home.css b/site/src/styles/home.cssnew file mode 100644index 0000000..39c9c18--- /dev/null+++ b/site/src/styles/home.css@@ -0,0 +1,866 @@+@layer tokens, base, components, app, utilities;+/* 首页(views/Home.astro)的版式,按页面从上到下排列。演示导览(tour.css)也只在首页,复用这里的窗口、聊天和手机 mock。+ 断点:sm <768 / md 768–1023 / lg ≥1024 */++/* "认识你的机器人"舞台的底光、挂绳颜色:注册成 <color> 才能在换角色时渐变过去 */+@property --stage-glow { syntax: "<color>"; inherits: true; initial-value: transparent; }+/* Hero:地平线上方光晕的颜色、App 窗口环境光的色相、背景整体的色相(极光、眼睛、光点、浅色下的关键词),换幕时渐变过去 */+@property --hz-glow { syntax: "<color>"; inherits: true; initial-value: #2a9dff; }+@property --aura-hue { syntax: "<number>"; inherits: true; initial-value: 250; }+@property --hero-hue { syntax: "<number>"; inherits: true; initial-value: 250; }++@layer app {+ /* 网格子项默认不会比内容窄:长命令、长模型名会把卡片撑出去 */+ :is(.crew__stage) > * { min-width: 0; }+ /* 中文页面里,等宽字只留给模型 ID、命令、路径、文件名和数字;下面这些写的是中文句子,英文版才用等宽 */+ :lang(zh) :is(.steps-card, .desk__step, .crew__wire-label, .flow__wire-label, .memfile__refused) { font-family: var(--font-sans); }++ /* 舞台卡:和"认识机器人"的 .crew 同一套——深底、一圈细线、大圆角,底光用这一块主角机器人的颜色+ (--stage-glow 写在标签上:动手橙、记忆绿、模型紫、数据去向绿)。UI 强调色仍是品牌黄绿。 */+ .stage {+ --stage-glow: transparent; --glow-at: 78% 100%; --glow-mix: 14%;+ position: relative; border-radius: var(--r-banner);+ background: var(--grain), radial-gradient(56% 64% at var(--glow-at), color-mix(in srgb, var(--stage-glow) calc(var(--glow-mix) * var(--glow-k)), transparent), transparent 74%), color-mix(in srgb, var(--bg-feature) 80%, transparent);+ box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--line), var(--card-shadow);+ }+ /* 浓度乘 --glow-k(tokens.css):深色下底光是角色色。+ 浅色下舞台卡不铺角色色(芽芽、记忆绿铺成一片会让整块发绿):只是一块半透明的白,透出页面底下的白光,+ 底光的位置(--glow-at)换成一团更亮的白;细边 + 顶边高光 + 很轻的托起。 */+ [data-theme="light"] .stage {+ background: var(--grain), radial-gradient(56% 64% at var(--glow-at), rgba(255, 255, 255, .9), transparent 74%), linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .56));+ box-shadow: var(--glass-ring), var(--card-shadow);+ }++ /* —— 桌面滚动联动(scripts/scroll-fx.ts 写 --p,只在 html.fx 下生效;窄屏 / 减少动态效果时停在终态) ——+ .fx-rise 舞台卡升起来:低 72px、96.5% 大 → 原位原大+ .fx-float 视差:元素在视口正中时不偏,往上滚比周围慢一点(--depth 越大偏得越多) */+ html.fx .fx-rise { transform-origin: 50% 0; transform: translateY(calc((1 - var(--p, 1)) * 72px)) scale(calc(.965 + var(--p, 1) * .035)); will-change: transform; }+ html.fx .fx-float { translate: 0 calc((.5 - var(--p, .5)) * var(--depth, 64px)); will-change: translate; }++ /* —— 章节头入场:细线从左往右画出来,编号 → 标题两句 → 说明依次升起(只播一次,client.ts 加 .is-in) —— */+ @media (prefers-reduced-motion: no-preference) {+ html.js .shead { border-top-color: transparent; }+ html.js .shead::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line); transform-origin: 0 50%; scale: 0 1; transition: scale 1.2s var(--ease-inout); }+ html.js .shead :is(.shead__kicker, .shead__title > span, .shead__lead) { opacity: 0; translate: 0 16px; transition: opacity .8s var(--ease-out), translate .8s var(--ease-out); }+ html.js .shead.is-in::before { scale: 1 1; }+ html.js .shead.is-in :is(.shead__kicker, .shead__title > span, .shead__lead) { opacity: 1; translate: none; }+ html.js .shead.is-in .shead__kicker { transition-delay: 120ms; }+ html.js .shead.is-in .shead__title > span:first-child { transition-delay: 200ms; }+ html.js .shead.is-in .shead__title > span + span { transition-delay: 290ms; }+ html.js .shead.is-in .shead__lead { transition-delay: 380ms; }+ }++ /* —— 1 Hero(动效参考 bevel.health,舞台里的窗口照 App 的原生界面 ui/design 来)——+ 四周留 8px 的圆角大卡片(.hero__bg),里面居中一列:小胶囊 → 标题 → 说明 → 下载 / 演示 → 三条要点,底下是舞台(.hstage)。+ 卡片背景要克制:全部静止(背景层不做循环动画,见 README"动效的硬规矩"),颜色只有很弱的变化——+ 舞台换机器人时跟着微微变色(--hero-hue 是 oklch 色相,--hz-glow 是机器人的光色),不用品牌黄绿、不用点阵和装饰图形。从下往上:+ 底色渐变 → 顶光(.hero__beam:一层很淡的中性白光,顶上 160px 淡入,顶边不会切出亮带,也不带颜色)+ → 舞台后面一层极淡的机器人色(.hero__aura,几乎察觉不到,只让换幕时有一点温度变化)+ → 地平线上方的光晕(.hero__glow,同样压得很淡)→ 地平线(一个巨大的圆,顶沿压在窗口后面;整圈一线淡亮边,正中稍亮)+ → App 同款磨砂颗粒。地平线的位置从舞台高度(--stage-h)算,舞台总在 Hero 的最底下。+ 文字间距取自 4px 尺度:胶囊 → 标题 24 · 标题 → 说明 24 · 说明 → 按钮 32 · 按钮 → 要点 24(手机 16 / 16 / 24 / 16)。 */+ .hero {+ --hero-top: clamp(40px, 7vw, 104px);+ --stage-h: 640px;+ --hz-y: 210px; /* 地平线顶沿在舞台里的高度 */+ --hz-w: max(2600px, 190%);+ --hz-glow: var(--bot-blue-glow);+ --hero-hue: 250; /* 和窗口环境光的 --aura-hue 同一套:天天 250 · 飞飞 62 · 芽芽 158 */+ --hero-core: rgba(255, 255, 255, .05);+ --hero-panel-top: #0a0b10; /* 顶上偏一点点夜空蓝,往下回到卡片底色 */+ --hero-star: #dfe6ff; --hero-star-a: .85;+ --hero-rim: rgba(255, 255, 255, .6);+ --hero-glow-a: 14%;+ --hero-aura: oklch(.6 .08 var(--hero-hue) / .07);+ --hero-em-glow: color-mix(in srgb, var(--lime) 22%, transparent);+ --hero-cta-glow: color-mix(in srgb, var(--lime) 45%, transparent);+ --hero-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='.05'/%3E%3C/svg%3E");+ position: relative; margin-top: calc(-1 * var(--nav-h));+ padding-top: calc(var(--nav-h) + var(--hero-top)); overflow: clip;+ transition: --hz-glow 1.4s var(--ease-inout), --hero-hue 1.4s var(--ease-inout);+ }+ .hero:has([data-step~="b"]) { --hz-glow: var(--bot-orange-glow); --hero-hue: 62; }+ .hero:has([data-step~="c"]) { --hz-glow: var(--bot-green-glow); --hero-hue: 158; }+ /* 浅色:顶光就是卡片本身的白,机器人色再压一半;完全不用黄绿 */+ [data-theme="light"] .hero {+ --hero-core: rgba(255, 255, 255, .7);+ --hero-panel-top: oklch(.968 .012 250); /* 顶上一层很淡的晴空冷灰(白云要靠它才看得出来),往下回到卡片底色 */+ --hero-star: oklch(.66 .07 var(--hero-hue)); --hero-star-a: 1;+ --hero-rim: #ffffff;+ --hero-glow-a: 4%;+ --hero-aura: oklch(.95 .012 var(--hero-hue) / .45); /* 换幕时只有一点点冷暖,底色仍是白 / 灰 */+ --hero-em-glow: oklch(.8 .12 var(--hero-hue) / .35);+ --hero-cta-glow: rgba(17, 24, 39, .16);+ --hero-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='.035'/%3E%3C/svg%3E");+ }+ .hero__bg {+ position: absolute; inset: 8px 8px 0; overflow: hidden; pointer-events: none; border-radius: var(--r-feature); isolation: isolate;+ background: linear-gradient(var(--hero-panel-top), var(--bg-feature) 46%);+ box-shadow: inset 0 0 0 1px var(--line);+ }+ .hero__bg::after { content: ""; position: absolute; inset: 0; z-index: 6; background: var(--hero-grain); }+ /* 顶光:一层很淡的中性白光,顶上 160px 淡入——光像是从卡片里面亮起来的,顶边不会被切出一条亮带 */+ .hero__beam {+ position: absolute; inset: 0 0 auto; height: 760px;+ background: radial-gradient(ellipse 36% 520px at 50% 60px, var(--hero-core), transparent 72%);+ -webkit-mask-image: linear-gradient(transparent, #000 160px); mask-image: linear-gradient(transparent, #000 160px);+ }+ /* 顶部天空(.hero__sky):只占卡片上半部,整层往下渐隐;点在 Hero.astro 里伪随机生成,标题背后有意稀一些。+ 深色是星空(约 340 颗冷白小星,少数偏蓝 / 偏暖,几颗亮星带一圈光);浅色是晴空(冷灰的顶 + 三朵白云 + 四十来个四角形细小闪光)。+ 动画都很轻(用户 2026-10-31 明确要的,是"背景不做动画"规矩里写明的例外):+ 深色:约五分之一的星(.tw)慢慢明暗闪烁,各自周期、起点不同;两颗流星隔十几、二十秒才划过一次,每次不到一秒。+ 浅色:三朵云极慢地从左往右飘(横穿一次 3–5 分钟,几乎察觉不到在动);约六成闪光亮起来、转 45° 再隐去,各自错开。+ 浅色不放流星(细线划过白底像划痕)。"减少动态效果"时全部静止,云停在各自的位置(--x0)。 */+ .hero__sky {+ position: absolute; left: 0; top: 0; width: 100%; height: 640px; color: var(--hero-star); container-type: inline-size;+ -webkit-mask-image: linear-gradient(#000 25%, transparent 88%); mask-image: linear-gradient(#000 25%, transparent 88%);+ }+ .hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--hero-star-a); fill: currentColor; }+ /* 深色·星空:小星点(一成五偏冷蓝 .c、一成偏暖 .w,亮星外圈的光 .h 用本色);浅色下整组不显示 */+ .hero__dots .c { fill: #bfd4ff; }+ .hero__dots .w { fill: #ffe7c9; }+ .hero__glints { display: none; }+ /* 浅色·晨光:四角形的细小闪光,颜色跟着当前机器人的色调;每三个里一个用中性的灰蓝,不至于整片同色 */+ [data-theme="light"] .hero__dots { display: none; }+ [data-theme="light"] .hero__glints { display: inline; }+ .hero__glints path { scale: var(--s); transform-box: fill-box; transform-origin: center; }+ .hero__glints g:nth-child(3n) path { fill: #a3abc0; }+ /* 浅色·白云:四团白色的圆叠成一朵积云,边缘糊开;底下压一层极淡的中性灰影子,白底上才分得出云和天。深色下不显示 */+ .hero__clouds { display: none; }+ [data-theme="light"] .hero__clouds { display: block; }+ .hero__cloud {+ position: absolute; left: 0; top: var(--y); width: var(--w); aspect-ratio: 3 / 1; opacity: var(--o, .9); translate: var(--x0) 0; pointer-events: none;+ background:+ radial-gradient(closest-side, #fff 55%, rgba(255, 255, 255, 0)) 8% 78% / 36% 62% no-repeat,+ radial-gradient(closest-side, #fff 55%, rgba(255, 255, 255, 0)) 36% 40% / 40% 96% no-repeat,+ radial-gradient(closest-side, #fff 55%, rgba(255, 255, 255, 0)) 64% 52% / 38% 84% no-repeat,+ radial-gradient(closest-side, #fff 55%, rgba(255, 255, 255, 0)) 90% 76% / 28% 58% no-repeat;+ filter: blur(7px) drop-shadow(0 14px 16px rgba(17, 24, 39, .05));+ }+ /* 流星:一根 120px 的细线,尾巴透明、头上一颗小亮点,沿 18° 往右下划过 300px */+ .hero__meteor {+ position: absolute; left: var(--x); top: var(--y); width: 120px; height: 1px; border-radius: 1px; opacity: 0; rotate: 18deg; pointer-events: none;+ background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--hero-star) 85%, transparent));+ }+ .hero__meteor::after { content: ""; position: absolute; right: -1px; top: -1px; width: 3px; height: 3px; border-radius: 50%; background: var(--hero-star); box-shadow: 0 0 6px 1px color-mix(in srgb, var(--hero-star) 70%, transparent); }+ [data-theme="light"] .hero__meteor { display: none; }+ /* 舞台后面一层极淡的机器人色:没有边、没有形状,只是底色稍微偏一点暖 / 冷 */+ .hero__aura {+ position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--stage-h) + 200px);+ background: radial-gradient(ellipse 52% 58% at 50% 52%, var(--hero-aura), transparent 76%);+ }+ /* 光晕:一个扁椭圆,中心落在地平线顶沿上,下半截被地平线盖住,只露出往上散开的那一半 */+ .hero__glow {+ position: absolute; left: 50%; top: calc(100% - var(--stage-h) + var(--hz-y) - 440px); width: min(1600px, 130%); height: 560px; translate: -50% 0;+ background:+ radial-gradient(50% 62% at 50% 79%, color-mix(in srgb, var(--hz-glow) var(--hero-glow-a), transparent), transparent 72%),+ radial-gradient(16% 20% at 50% 81%, color-mix(in srgb, #fff calc(var(--hero-glow-a) * .4), transparent), transparent 70%);+ }+ /* 地平线:圆里是比卡片底色再沉一点的"地面";整圈一线很淡的亮边,往里渗一点点机器人色;左右用遮罩淡掉。+ ::before 是正中那一段稍亮的边:同一个圆的亮边,用遮罩只留顶上中间,往两头渐隐(顺着弧线走,不是一根直线) */+ .hero__horizon {+ position: absolute; left: 50%; top: calc(100% - var(--stage-h) + var(--hz-y)); width: var(--hz-w); aspect-ratio: 1; translate: -50% 0; border-radius: 50%;+ background: radial-gradient(closest-side, var(--bg-feature) 92%, color-mix(in srgb, var(--hz-glow) 5%, var(--bg-feature)));+ box-shadow:+ inset 0 1px 0 color-mix(in srgb, var(--hero-rim) 18%, transparent),+ inset 0 3px 8px -3px color-mix(in srgb, var(--hz-glow) 28%, transparent),+ inset 0 24px 60px -22px color-mix(in srgb, var(--hz-glow) 16%, transparent),+ inset 0 90px 180px -60px color-mix(in srgb, var(--hz-glow) 6%, transparent);+ -webkit-mask-image: linear-gradient(90deg, transparent calc(50% - 980px), #000 calc(50% - 360px), #000 calc(50% + 360px), transparent calc(50% + 980px));+ mask-image: linear-gradient(90deg, transparent calc(50% - 980px), #000 calc(50% - 360px), #000 calc(50% + 360px), transparent calc(50% + 980px));+ }+ /* 浅色:地平线是一圈白亮边 + 极淡的一点冷灰,机器人色只剩一丝(芽芽那一幕不会把整条地平线染绿) */+ [data-theme="light"] .hero__horizon {+ background: radial-gradient(closest-side, var(--bg-feature) 92%, #f1f2f5);+ box-shadow:+ inset 0 1px 0 var(--hero-rim),+ inset 0 3px 8px -3px color-mix(in srgb, var(--hz-glow) 10%, rgba(17, 24, 39, .06)),+ inset 0 24px 60px -22px color-mix(in srgb, var(--hz-glow) 5%, transparent);+ }+ .hero__horizon::before {+ content: ""; position: absolute; inset: 0; border-radius: 50%;+ box-shadow: inset 0 1px 0 var(--hero-rim), inset 0 4px 12px -4px color-mix(in srgb, var(--hz-glow) 40%, transparent);+ -webkit-mask-image: radial-gradient(min(680px, 28%) 140px at 50% 0, #000, transparent); mask-image: radial-gradient(min(680px, 28%) 140px at 50% 0, #000, transparent);+ }+ [data-theme="light"] .hero__horizon::before { box-shadow: inset 0 1px 0 var(--hero-rim), inset 0 4px 12px -4px color-mix(in srgb, var(--hz-glow) 14%, transparent); }++ .hero__inner { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; }+ /* 小胶囊:六个角色叠成一排 + 一句话 + 箭头,链到"认识你的机器人";悬停时角色散开、箭头往前探 */+ .hero__eyebrow {+ display: inline-flex; align-items: center; gap: 10px; height: 36px; margin-bottom: var(--space-6); padding: 0 14px 0 5px;+ border-radius: var(--r-btn); background: var(--grain), var(--glass); color: var(--text); box-shadow: var(--glass-ring);+ font-size: var(--fs-sm); font-weight: 500; text-decoration: none; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);+ transition: background var(--dur-fast) var(--ease-out);+ }+ .hero__eyebrow:hover { background: var(--grain), linear-gradient(var(--hover), var(--hover)), var(--glass); color: var(--text); text-decoration: none; }+ .hero__eyebrow > .icon { width: 14px; height: 14px; color: var(--text-2); transition: translate .45s var(--ease-out), color var(--dur-fast); }+ .hero__eyebrow:hover > .icon { translate: 3px 0; color: var(--text); }+ .hero__crew { display: inline-flex; }+ .hero__crew .bot-face { margin-left: -8px; border-radius: 50%; background: var(--bg-raised); box-shadow: 0 0 0 2px var(--hero-panel-top); transition: margin .45s var(--ease-out); }+ .hero__crew .bot-face:first-child { margin-left: 0; }+ .hero__eyebrow:hover .hero__crew .bot-face:not(:first-child) { margin-left: -2px; }++ /* 标题:全站唯一的 display 级,在 Hero 里再放大一档。中文逐字、英文逐词拆成 .hero__c,入场时一块块由虚变实升起。+ 第一行是从正文色渐隐到六成的渐变字,行尾蹲着天天(会看指针、能戳);关键词是黄绿的渐变字,底下垫一团光,+ 字都出齐后一道亮光从左到右扫过。渐变字的每一块上下多留一点内边距,字形的上下沿不会被裁掉。 */+ /* 字号比早先收了一档(英 88 → 76、中 84 → 72),省下的分量给行尾的天天,标题和机器人不再一头重 */+ .hero__h1 { display: grid; justify-items: center; max-width: 15em; font-size: clamp(42px, 5.8vw, 76px); line-height: 1.02; letter-spacing: -.045em; }+ :lang(zh) .hero__h1 { max-width: none; font-size: clamp(38px, 5.4vw, 72px); line-height: 1.16; letter-spacing: -.02em; }+ .hero__line { display: block; }+ .hero__c { display: inline-block; }+ .hero__line--a .hero__c, .hero__em .hero__c {+ padding-block: .1em; margin-block: -.1em;+ color: transparent; -webkit-text-fill-color: transparent; -webkit-background-clip: text; background-clip: text;+ }+ .hero__line--a .hero__c { background-image: linear-gradient(180deg, var(--text) 32%, color-mix(in srgb, var(--text) 60%, transparent)); }+ .hero__em { position: relative; font-style: normal; }+ .hero__em .hero__c { background-image: linear-gradient(180deg, var(--lime-200), var(--lime) 70%); }+ /* 浅色下黄绿 / 橄榄的字发脏,关键词改用舞台当前机器人的颜色(深一档,保证对比度),跟着幕一起渐变 */+ [data-theme="light"] .hero__em .hero__c { background-image: linear-gradient(180deg, oklch(.56 .17 var(--hero-hue)), oklch(.44 .15 calc(var(--hero-hue) + 18))); }+ .hero__em::before { content: ""; position: absolute; inset: 18% -6% -4%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--hero-em-glow), transparent); filter: blur(16px); }+ /* 天天 1.12 倍字号(宽屏约 85px,原来 .86em 约 76px);下沉 .25em,头的中心仍落在字身中线上(中心约在基线上 .31em) */+ .hero__h1 .hero__bot { display: inline-block; --s: 1.12em !important; margin-left: .16em; vertical-align: -.25em; }+ /* 说明只有一句,两行以内 */+ .hero__lead { max-width: 32em; margin-top: var(--space-6); text-wrap: balance; }+ :lang(zh) .hero__lead { max-width: 28em; }+ .hero__cta { margin-top: var(--space-8); }+ .hero__cta .dl { justify-items: center; }+ .hero__cta .dl__row { justify-content: center; }+ .hero__cta .split { box-shadow: 0 16px 44px -14px var(--hero-cta-glow); }+ /* 按钮手感:指针移上去,底下升起一团高光;演示按钮再放大一点(下载是两截的分裂按钮,整体不缩放,免得下拉菜单跟着糊) */+ .hero__cta :is(.btn, .split__more) { position: relative; isolation: isolate; overflow: clip; }+ .hero__cta :is(.btn, .split__more)::after {+ content: ""; position: absolute; left: 50%; top: 100%; z-index: -1; width: 160%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;+ background: radial-gradient(closest-side, rgba(255, 255, 255, .7), transparent); translate: -50% 0; opacity: .5;+ transition: top .6s cubic-bezier(.19, 1, .22, 1), opacity .6s cubic-bezier(.19, 1, .22, 1);+ }+ .hero__cta .dl__row > .btn { transition: background var(--dur-fast) var(--ease-out), scale .6s cubic-bezier(.19, 1, .22, 1), color var(--dur-fast); }+ @media (hover: hover) {+ .hero__cta :is(.btn, .split__more):hover::after { top: 55%; opacity: .9; }+ .hero__cta .dl__row > .btn:hover { scale: 1.03; }+ }+ /* 要点:按钮下面一行小字,每条前面一个勾,颜色跟着当前机器人 */+ .hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-6); margin-top: var(--space-6); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.5; }+ .hero__meta li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }+ .hero__meta .icon { width: 14px; height: 14px; color: oklch(.8 .13 var(--hero-hue)); }+ [data-theme="light"] .hero__meta .icon { color: oklch(.52 .15 var(--hero-hue)); }++ /* —— Hero 舞台 ——+ App 的语义 token 抄到 --a-* 上(ui/design/tokens/semantic.css,深浅两套),窗口、流动卡片都只用这一层,质感和 App 一致:+ 环境光 + 毛玻璃 + 半透明填充 + 细描边 + 磨砂颗粒;字体也用 App 的系统字体。 */+ .hstage {+ --tilt: 0deg; --win-w: 880px; --win-h: 520px; --side-w: 232px;+ --a-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", "Microsoft YaHei UI", system-ui, sans-serif;+ --a-code: ui-monospace, "SF Mono", Menlo, Consolas, "Microsoft YaHei UI", monospace;+ --a-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='.05'/%3E%3C/svg%3E");+ --a-bg: #0c0c0c; --a-aura-brand: color-mix(in srgb, var(--lime) 8%, transparent); --a-aura-l: .4; --a-aura-c: .1; --a-aura-a: .55;+ --a-surface: rgba(23, 23, 23, .86); --a-glass-side: rgba(16, 16, 16, .4); --a-glass-float: rgba(42, 42, 42, .62); --a-glass-pop: rgba(36, 36, 36, .94);+ --a-side-active: rgba(255, 255, 255, .09); --a-side-solid-on: #232323; --a-shadow-tile: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 2px rgba(0, 0, 0, .3);+ --a-pill: rgba(255, 255, 255, .065); --a-well: rgba(255, 255, 255, .045); --a-bubble: rgba(255, 255, 255, .075);+ --a-fg: #ececec; --a-fg2: #b4b4b4; --a-muted: #959595; --a-ctl: #a3a3a3; --a-placeholder: #707070; --a-line2: rgba(255, 255, 255, .065);+ --a-green: #6fd99b; --a-red: #f28b82; --a-amber: #f2b544; --a-accent: var(--lime);+ --a-primary: var(--lime); --a-on-primary: #161a00; --a-primary-edge: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 2px rgba(0, 0, 0, .4);+ --a-send-bg: var(--lime); --a-send-fg: #161a00;+ --a-glass-ring: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 0 .5px rgba(255, 255, 255, .09);+ --a-shadow-md: 0 2px 8px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .42);+ --a-shadow-lg: 0 4px 14px rgba(0, 0, 0, .35), 0 28px 70px rgba(0, 0, 0, .6);+ --a-shadow-pane: 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 30px rgba(0, 0, 0, .35);+ --a-win-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 80px 140px -50px #000, 0 30px 60px -30px rgba(0, 0, 0, .7);+ --a-win-glow: 16%;+ /* 遮罩只负责把舞台的底边淡进地面;遮罩会裁掉盒子外面的一切,所以盒子往上多留 --bleed,窗口四周的光晕才不会在舞台顶边被切平 */+ --bleed: 220px;+ position: relative; z-index: 1; width: min(1440px, 100% - 16px); height: calc(var(--stage-h) + var(--bleed));+ margin: calc(clamp(48px, 5vw, 72px) - var(--bleed)) auto 0; padding-top: var(--bleed); pointer-events: none;+ -webkit-mask-image: linear-gradient(#000 calc(100% - var(--stage-h) * .16), transparent); mask-image: linear-gradient(#000 calc(100% - var(--stage-h) * .16), transparent);+ }+ [data-theme="light"] .hstage {+ --a-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='.035'/%3E%3C/svg%3E");+ --a-bg: #eff0f3; --a-aura-brand: rgba(255, 255, 255, .7); --a-aura-l: .9; --a-aura-c: .025; --a-aura-a: .8;+ --a-surface: rgba(255, 255, 255, .86); --a-glass-side: rgba(255, 255, 255, .42); --a-glass-float: rgba(255, 255, 255, .68); --a-glass-pop: rgba(252, 252, 252, .94);+ --a-side-active: rgba(255, 255, 255, .92); --a-side-solid-on: #fefefe; --a-shadow-tile: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 6px rgba(0, 0, 0, .035);+ --a-pill: rgba(0, 0, 0, .045); --a-well: rgba(0, 0, 0, .04); --a-bubble: rgba(0, 0, 0, .05);+ --a-fg: #1a1a1a; --a-fg2: #4d4d4d; --a-muted: #737373; --a-ctl: #5e5e5e; --a-placeholder: #949494; --a-line2: rgba(0, 0, 0, .06);+ --a-green: #189a58; --a-red: #d64545; --a-amber: #b45309; --a-accent: var(--olive);+ --a-primary: #161a00; --a-on-primary: #ffffff; --a-primary-edge: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(17, 24, 39, .2);+ --a-send-bg: #161a00; --a-send-fg: var(--lime);+ --a-glass-ring: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 .5px rgba(0, 0, 0, .08);+ --a-shadow-md: 0 2px 6px rgba(17, 24, 39, .04), 0 10px 28px -6px rgba(17, 24, 39, .08);+ --a-shadow-lg: 0 4px 12px rgba(17, 24, 39, .05), 0 24px 60px -12px rgba(17, 24, 39, .12);+ --a-shadow-pane: 0 0 0 1px rgba(0, 0, 0, .1), 0 1px 3px rgba(0, 0, 0, .04), 0 8px 30px rgba(0, 0, 0, .04);+ --a-win-shadow: 0 0 0 1px rgba(17, 24, 39, .08), 0 60px 120px -50px rgba(17, 24, 39, .2), 0 24px 48px -28px rgba(17, 24, 39, .1);+ --a-win-glow: 4%;+ }+ /* 倾斜的进度挂在 .hstage__devices 上(它的顶边就是舞台原来的顶边;.hstage 为了留光晕往上多出了 --bleed) */+ html.fx .hstage__devices { --tilt: calc((1 - var(--p, 1)) * 14deg); }++ /* 按幕切换:.by-step 里叠着几份,data-for 和当前幕(祖先的 data-step)对上的那份显示;没有脚本时显示第一幕 */+ .by-step { display: inline-grid; }+ .by-step > * { grid-area: 1 / 1; opacity: 0; visibility: hidden; translate: 0 6px; transition: opacity .4s var(--ease-out), translate .4s var(--ease-out), visibility 0s .4s; }+ :is([data-step~="a"] .by-step > [data-for="a"], [data-step~="b"] .by-step > [data-for="b"], [data-step~="c"] .by-step > [data-for="c"], .hstage__devices:not([data-step]) .by-step > [data-for="a"]) {+ opacity: 1; visibility: visible; translate: none; transition: opacity .45s var(--ease-out) .12s, translate .45s var(--ease-out) .12s;+ }+ /* 按时间切换:几段叠在一起,后一段亮了前一段就让开("思考中…" → "用时 1.3s") */+ .by-time { display: inline-grid; }+ .by-time > * { grid-area: 1 / 1; transition: opacity .35s var(--ease-out); }+ html.js .by-time > [data-at]:not(.on), .by-time > :has(~ .on) { opacity: 0; }+ html:not(.js) .by-time > :not(:last-child) { opacity: 0; }++ /* 两条泳道各占一半宽度,内侧边藏在窗口后面。每张卡(.hs-flow)放在泳道正中,--k(scripts/tour.ts 写,0 → 1)把它从泳道左外侧+ (-75cqw)推到右外侧(+75cqw),同时插值纵向偏移(--y0/--y1,泳道高度的 1%)、角度(--r0/--r1)、缩放(--s0/--s1)。+ 左道的卡走到头钻进窗口,右道的卡从窗口后面钻出来。卡片是 App 弹出层那种玻璃。 */+ .hstage__lane { position: absolute; top: var(--bleed); bottom: calc(var(--stage-h) * .18); width: 50%; overflow: clip; display: none; container-type: size; }+ .hstage__lane--in { left: 0; }+ .hstage__lane--out { right: 0; }+ @media (min-width: 1280px) and (prefers-reduced-motion: no-preference) { html.js .hstage__lane { display: block; } }+ .hs-flow {+ --k: 0;+ position: absolute; left: 50%; top: 50%; display: grid; width: max-content; pointer-events: none;+ translate: calc(-50% + (var(--k) * 150 - 75) * 1cqw) calc(-50% + (var(--y0) + (var(--y1) - var(--y0)) * var(--k)) * 1cqh);+ rotate: calc(var(--r0) + (var(--r1) - var(--r0)) * var(--k));+ scale: calc(var(--s0, 1) + (var(--s1, 1) - var(--s0, 1)) * var(--k));+ will-change: translate, rotate, scale;+ }+ .hs-card {+ display: inline-flex; align-items: center; gap: 10px; max-width: 240px; padding: 10px 14px; border-radius: 14px;+ background: var(--a-grain), var(--a-glass-pop); color: var(--a-fg); box-shadow: var(--a-glass-ring), var(--a-shadow-lg);+ font-family: var(--a-font); font-size: 13px; line-height: 1.45; letter-spacing: 0;+ }+ .hs-card .aic { color: var(--a-accent); }+ .hs-card--model { padding: 8px 14px; border-radius: 999px; font-family: var(--a-code); font-size: 12.5px; white-space: nowrap; }+ .hs-card--model i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 12px var(--dot); }+ .hs-card--msg { display: grid; gap: 2px; border-radius: 18px 18px 18px 6px; }+ .hs-card--msg small { color: var(--a-muted); font-size: 11px; }+ .hs-card--file { font-family: var(--a-code); font-size: 12px; white-space: nowrap; }+ .hs-card--done b { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--a-green) 18%, transparent); color: var(--a-green); }+ .hs-card--done .aic { color: currentColor; stroke-width: 2.4; }+ .hs-card--memory { background: var(--hl-bg); color: var(--ink); font-weight: 500; }+ .hs-card--memory .aic { color: currentColor; }+ .hs-card--code { display: grid; gap: 2px; padding: 10px 14px; font-family: var(--a-code); font-size: 12px; white-space: pre; }+ .hs-card--code del, .acode del { color: var(--a-red); text-decoration: none; }+ .hs-card--code ins, .acode ins { color: var(--a-green); text-decoration: none; }+ .aic { flex: none; stroke-width: 1.6; }++ .hstage__devices { position: relative; z-index: 1; width: min(var(--win-w), 100% - 2 * var(--gutter)); height: 100%; margin-inline: auto; perspective: 2000px; }++ /* —— App 窗口(ui/css/shell.css):环境光(--bg + 左上品牌黄绿 + 左下机器人色相光 + 右上邻近色)上盖毛玻璃侧栏,+ 主区是浮在环境光上的圆角面板。色相(--aura-hue)跟着当前机器人慢慢过渡,和 App 换机器人时一样。 —— */+ .awin {+ --aura-hue: 250;+ --aura: oklch(var(--a-aura-l) var(--a-aura-c) var(--aura-hue) / var(--a-aura-a));+ --aura-2: oklch(var(--a-aura-l) calc(var(--a-aura-c) * .7) calc(var(--aura-hue) + 70) / calc(var(--a-aura-a) * .55));+ position: relative; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); height: var(--win-h); overflow: hidden; border-radius: 14px;+ background:+ radial-gradient(70% 50% at 0% 0%, var(--a-aura-brand), transparent 72%),+ radial-gradient(60% 75% at 0% 100%, var(--aura), transparent 72%),+ radial-gradient(55% 60% at 100% 0%, var(--aura-2), transparent 70%),+ var(--a-bg);+ box-shadow: var(--a-win-shadow), 0 0 160px -30px color-mix(in srgb, var(--hz-glow) var(--a-win-glow), transparent);+ color: var(--a-fg); font-family: var(--a-font); font-size: 13px; line-height: 1.5; letter-spacing: 0; text-align: left;+ transform-origin: 50% 100%; transform: rotateX(var(--tilt));+ transition: --aura-hue 1.4s var(--ease-inout);+ }+ [data-step~="b"] .awin { --aura-hue: 62; }+ [data-step~="c"] .awin { --aura-hue: 158; }+ .awin__ib { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--a-ctl); }++ /* 侧栏:红绿灯 + 新建 → 搜索 → 机器人行(头像 + 名称 + 时间 + 一行预览)→ 账户。选中行是浮起的玻璃片,跟着幕走;+ 干活时头像右下角亮一个呼吸的绿点,预览换成"正在工作…" */+ .awin__side { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--a-grain), var(--a-glass-side); }+ .awin__top { display: flex; flex: none; align-items: center; justify-content: space-between; height: 52px; padding: 8px 12px 0 16px; }+ .awin__lights { display: flex; gap: 8px; }+ .awin__lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }+ .awin__lights i:nth-child(2) { background: #febc2e; }+ .awin__lights i:nth-child(3) { background: #28c840; }+ .awin__search { display: flex; flex: none; align-items: center; gap: 10px; height: 32px; margin: 0 8px 8px; padding: 0 10px; border-radius: 10px; background: var(--a-pill); color: var(--a-muted); font-size: 13px; }+ .awin__list { flex: 1; min-height: 0; display: grid; align-content: start; gap: 2px; padding: 2px 8px; }+ .awin__row { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 10px; border-radius: 12px; transition: background .45s var(--ease-out), box-shadow .45s var(--ease-out); }+ :is([data-step~="a"] [data-bot="blue"], [data-step~="b"] [data-bot="orange"], [data-step~="c"] [data-bot="green"]).awin__row { background: var(--a-side-active); box-shadow: var(--a-shadow-tile); }+ .awin__av { position: relative; flex: none; display: grid; }+ .awin__dot { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--a-green); box-shadow: 0 0 0 2px var(--a-side-solid-on); opacity: 0; scale: .3; transition: opacity .3s var(--ease-out), scale .4s cubic-bezier(.34, 1.56, .64, 1); }+ .awin__body { flex: 1; min-width: 0; display: grid; gap: 2px; }+ .awin__line { display: flex; align-items: baseline; gap: 8px; min-width: 0; }+ .awin__line b { flex: 1; min-width: 0; overflow: hidden; color: var(--a-fg); font-size: 13.5px; font-weight: 500; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }+ .awin__line small { flex: none; color: var(--a-muted); font-size: 11px; font-variant-numeric: tabular-nums; }+ .awin__snip { display: grid; color: var(--a-muted); font-size: 12.5px; line-height: 1.4; }+ .awin__snip > span { grid-area: 1 / 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: opacity .3s var(--ease-out); }+ .awin__snip-busy { opacity: 0; color: var(--a-green); }+ :is([data-step~="a"] [data-bot="blue"], [data-step~="b"] [data-bot="orange"], [data-step~="c"] [data-bot="green"]) .awin__snip { color: var(--a-fg2); }+ :is([data-step~="a"][data-step~="busy"] [data-bot="blue"], [data-step~="b"][data-step~="busy"] [data-bot="orange"], [data-step~="c"][data-step~="busy"] [data-bot="green"]) :is(.awin__dot, .awin__snip-busy) { opacity: 1; scale: 1; }+ :is([data-step~="a"][data-step~="busy"] [data-bot="blue"], [data-step~="b"][data-step~="busy"] [data-bot="orange"], [data-step~="c"][data-step~="busy"] [data-bot="green"]) .awin__snip > :first-child { opacity: 0; }+ .awin__acct { display: flex; flex: none; align-items: center; gap: 10px; height: 44px; margin: 8px; padding: 0 10px; border-radius: 12px; color: var(--a-muted); }+ .awin__me { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--a-pill); color: var(--a-fg2); font-size: 12.5px; font-weight: 600; }+ .awin__who { flex: 1; min-width: 0; display: grid; color: var(--a-fg); font-size: 13px; font-weight: 500; line-height: 1.35; white-space: nowrap; }+ .awin__who small { color: var(--a-muted); font-size: 11px; font-weight: 400; font-variant-numeric: tabular-nums; }++ /* 主区(ui/css/chat.css):顶栏(头像 + 名称 | 新对话 · 信息面板)→ 对话 → 玻璃输入框(文字区 + 工具栏:加号 · 权限 | 模型 · 发送) */+ .awin__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; margin: 8px 8px 8px 0; overflow: hidden; border-radius: 12px; background: var(--a-surface); box-shadow: var(--a-shadow-pane); }+ .awin__head { display: flex; flex: none; align-items: center; gap: 2px; height: 48px; padding: 0 10px; }+ .awin__hb { padding-left: 4px; }+ .awin__hb > span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }+ .awin__grow { flex: 1; }+ .awin__views { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); flex: 1; min-height: 0; }+ .awin__view { min-height: 0; padding: 0 clamp(20px, 6%, 48px) 14px; }+ .awin__view .hs-item > div > * { margin-top: 14px; }+ .amsg { margin: 0; color: var(--a-fg); font-size: 13.5px; line-height: 1.7; }+ .amsg--user { justify-self: end; max-width: 80%; padding: 8px 14px; border-radius: 20px; background: var(--a-bubble); line-height: 1.55; }+ .amsg--user small { display: block; color: var(--a-muted); font-size: 11px; }+ /* 输出中:最后一段末尾一个慢慢呼吸的小点(App 的 .msg-row.live) */+ [data-step~="busy"] .awin__live::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .35em; border-radius: 50%; background: var(--a-muted); vertical-align: .08em; animation: abreathe 1.4s ease-in-out infinite; }+ /* 工作状态行:进行中是一道慢慢扫过的微光,结束后换成"用时",底下一条细线 */+ .awork { margin: 0; padding-bottom: 7px; border-bottom: 1px solid var(--a-line2); color: var(--a-muted); font-size: 12.5px; }+ .awork__live {+ color: transparent; -webkit-text-fill-color: transparent; -webkit-background-clip: text; background-clip: text;+ background-image: linear-gradient(90deg, var(--a-muted) 35%, var(--a-fg) 50%, var(--a-muted) 65%); background-size: 300% 100%;+ animation: asheen 2s ease-in-out infinite;+ }+ .awell { border-radius: 12px; background: var(--a-well); }+ .acode { overflow: hidden; border-radius: 12px; background: var(--a-well); }+ .acode__bar { display: block; height: 28px; padding: 0 12px; color: var(--a-muted); font: 11px/28px var(--a-code); }+ .acode pre { margin: 0; padding: 0 12px 12px; overflow: hidden; color: var(--a-fg); font: 12px/1.6 var(--a-code); white-space: pre; }+ .asteps { display: grid; gap: 6px; margin: 0; padding: 12px 14px; color: var(--a-fg2); font-size: 12.5px; list-style: none; }+ .asteps li { display: flex; align-items: center; gap: 8px; transition: opacity .3s var(--ease-out); }+ .asteps .aic { color: var(--a-green); stroke-width: 2.2; transition: opacity .3s var(--ease-out), scale .4s cubic-bezier(.34, 1.56, .64, 1); }+ html.js .asteps li:not(.on) { opacity: .4; }+ html.js .asteps li:not(.on) .aic { opacity: 0; scale: .3; }+ /* 审批卡:需要你确认 → 说明 → 允许 / 拒绝;点了允许,按钮换成一行"已允许" */+ .aapprove { display: grid; justify-items: start; gap: 8px; padding: 14px; }+ .aapprove__meta { display: inline-flex; align-items: center; gap: 6px; color: var(--a-amber); font-size: 12px; }+ .aapprove__meta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }+ .aapprove b { color: var(--a-fg); font-size: 13.5px; font-weight: 600; line-height: 1.4; }+ .aapprove__row { display: flex; gap: 8px; }+ .abtn { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 8px; background: var(--a-pill); color: var(--a-fg); font-size: 12.5px; font-weight: 500; }+ .abtn--primary { background: var(--a-primary); color: var(--a-on-primary); box-shadow: var(--a-primary-edge); }+ .abtn--primary.on { animation: apress .45s var(--ease-out); }+ .aapprove__done { display: none; align-items: center; gap: 6px; color: var(--a-green); font-size: 12.5px; }+ .aapprove__done .aic { stroke-width: 2.2; }+ .aapprove.on .aapprove__row { display: none; }+ .aapprove.on .aapprove__done { display: inline-flex; }+ .aapprove.on :is(b, .aapprove__meta) { color: var(--a-muted); }+ .afile { display: flex; align-items: center; gap: 10px; width: min(320px, 100%); padding: 10px 14px 10px 10px; }+ .afile .aic { margin: 6px; color: var(--a-fg2); stroke-width: 1.3; }+ .afile span { display: grid; min-width: 0; }+ .afile b { overflow: hidden; color: var(--a-fg); font-size: 13.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }+ .afile small { color: var(--a-muted); font-size: 11px; }+ .anote { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; color: var(--a-fg); font-size: 12.5px; }+ .anote .aic { color: var(--a-accent); }+ .atime { justify-self: center; color: var(--a-muted); font-size: 11px; }+ .awin__composer { display: grid; flex: none; margin: 0 clamp(14px, 4%, 36px) 14px; border-radius: 18px; background: var(--a-grain), var(--a-glass-float); box-shadow: var(--a-glass-ring), var(--a-shadow-md); }+ .awin__ph { display: grid; padding: 12px 16px 2px; overflow: hidden; color: var(--a-placeholder); font-size: 13.5px; white-space: nowrap; }+ .awin__bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px 8px; }+ .awin__plus { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; color: var(--a-ctl); }+ .awin__chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px 0 10px; border-radius: 999px; color: var(--a-ctl); font-size: 12px; white-space: nowrap; }+ .awin__chip:has(.by-step) { background: var(--a-pill); color: var(--a-fg2); }+ .awin__send { position: relative; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--a-send-bg); color: var(--a-send-fg); box-shadow: var(--a-primary-edge); }+ .awin__send .aic { stroke-width: 2.4; transition: opacity .25s var(--ease-out), scale .3s var(--ease-out); }+ .awin__send i { position: absolute; width: 9px; height: 9px; border-radius: 2px; background: currentColor; opacity: 0; scale: .3; transition: opacity .25s var(--ease-out), scale .4s cubic-bezier(.34, 1.56, .64, 1); }+ [data-step~="busy"] .awin__send .aic { opacity: 0; scale: .4; }+ [data-step~="busy"] .awin__send i { opacity: 1; scale: 1; }+ @keyframes abreathe { 50% { opacity: .35; scale: .8; } }+ @keyframes asheen { from { background-position: 100% 0; } to { background-position: 0 0; } }+ @keyframes apress { 40% { scale: .9; } }++ /* 对话流:底边对齐,新消息从下面撑开、旧的往上推;回绕时一齐收起,固定的几条历史滑回原位 */+ .hstage .hs-log { display: grid; align-content: end; min-height: 0; overflow: hidden; }+ .hs-item { display: grid; grid-template-rows: 1fr; }+ .hs-item > div { display: grid; min-height: 0; overflow: hidden; }+ .hs-item > div > * { margin-top: 10px; }+ html.js .hs-item:not(.hs-item--static) { transition: grid-template-rows .55s var(--ease-out), opacity .35s var(--ease-out); }+ html.js .hs-item:not(.hs-item--static, .on) { grid-template-rows: 0fr; opacity: 0; }+ .hs-log .phone__day { justify-self: center; margin-bottom: 0; }++ /* 手机:压在窗口右下角,跟着窗口一起仰,自己再歪一点 */+ .hstage__phone {+ position: absolute; right: -11%; top: 150px; z-index: 2; width: 196px; padding: 7px; border-radius: 34px;+ transform-origin: 50% 100%; transform: rotateX(calc(var(--tilt) * .6)) rotate(3deg);+ }+ .hstage__phone .phone__screen { border-radius: 28px; }+ .hstage__phone .phone__head { gap: 8px; padding: 10px 12px; font-size: 12px; }+ .hstage__phone .phone__log { gap: 0; padding: 0 10px 10px; }+ .hstage__phone .phone__log .msg { max-width: 88%; padding: 7px 11px; font-size: 12px; }+ .hstage__phone .phone__input { height: 32px; margin: 0 8px 8px; padding: 0 12px; font-size: 11.5px; }++ @media (min-width: 1024px) and (max-width: 1439px) { .hstage { --win-w: 820px; } .hs-card { max-width: 210px; } }+ @media (max-width: 1023px) {+ .hstage { --side-w: 200px; }+ .hstage__phone { right: -7%; }+ }+ @media (max-width: 767px) {+ .hero { --stage-h: 470px; --hz-y: 130px; --hz-w: 1500px; }+ .hstage { --win-h: 390px; }+ .hero__bg { inset: 6px 6px 0; border-radius: var(--r-card); }+ .hero__eyebrow { margin-bottom: var(--space-4); font-size: var(--fs-xs); }+ .hero__crew .bot-face:nth-child(n + 4) { display: none; }+ /* 中文第二行 7 个字要能一行放下:9.6vw × 7 字 < 屏宽 − 两侧边距 */+ .hero__h1 { font-size: clamp(34px, 9.6vw, 44px); }+ :lang(zh) .hero__h1 { font-size: clamp(32px, 9.6vw, 42px); }+ /* 手机上第一行已经贴着屏宽,天天保持原来的 .86em,不然会把它挤到下一行 */+ .hero__h1 .hero__bot { --s: .86em !important; vertical-align: -.12em; }+ .hero__lead { margin-top: var(--space-4); }+ .hero__cta { margin-top: var(--space-6); }+ .hero__cta, .hero__cta .dl, .hero__cta .dl__row, .hero__cta .split { width: 100%; }+ .hero__cta .dl__row { flex-direction: column; align-items: stretch; }+ .hero__cta :is(.split > .btn, .split__more, .dl__row > .btn) { --btn-h: 52px; }+ .hero__cta .split > .btn { flex: 1; }+ .hero__meta { gap: var(--space-1) var(--space-4); margin-top: var(--space-4); font-size: var(--fs-xs); }+ /* 窄屏只留主面板:去掉侧栏和手机 */+ .hstage { margin-top: calc(40px - var(--bleed)); }+ .awin { grid-template-columns: minmax(0, 1fr); }+ .awin__side, .hstage__phone { display: none; }+ .awin__main { margin: 6px; }+ }++ /* 入场(纯 CSS,不等脚本;只在没开"减少动态效果"时播,播完回到正常样式):+ 地平线从下面升起、光晕亮起来(亮起后静止,不循环)→ 胶囊 → 标题一块块由虚变实 → 天天弹出来 → 说明、按钮、要点 →+ 窗口、手机升上来 → 两侧卡片淡入 → 关键词扫过一道光。 */+ @media (prefers-reduced-motion: no-preference) {+ .hero__horizon { animation: hero-sunrise 2s var(--ease-out) 100ms backwards; }+ .hero__glow { animation: hero-glow-in 2.2s var(--ease-out) 250ms backwards; }+ :is(.hero__eyebrow, .hero__lead, .hero__cta, .hero__meta) { animation: hero-in .9s var(--ease-out) backwards; }+ .hero__lead { animation-delay: 420ms; }+ .hero__cta { animation-delay: 520ms; }+ .hero__meta { animation-delay: 600ms; }+ .hero__c { animation: hero-char .9s var(--ease-out) calc(100ms + var(--i) * var(--step)) backwards; }+ .hero__em .hero__c {+ animation: hero-char .9s var(--ease-out) calc(100ms + var(--i) * var(--step)) backwards,+ hero-glint 1.1s var(--ease-inout) calc(700ms + var(--nt) * var(--step) + var(--j) * 70ms);+ }+ .hero__h1 .hero__bot { animation: hero-pop .9s cubic-bezier(.34, 1.56, .64, 1) calc(240ms + var(--na) * var(--step)) backwards; }+ .awin { animation: hero-rise 1.3s var(--ease-out) 650ms backwards; }+ .hstage__phone { animation: hero-rise 1.3s var(--ease-out) 820ms backwards; }+ .hstage__lane { animation: hero-fade 1s var(--ease-out) 1200ms backwards; }+ [data-theme="light"] .hero__em .hero__c { animation-name: hero-char, hero-glint-l; }+ /* 星空:少数星星慢慢闪、流星偶尔划过(见 .hero__sky 的说明) */+ .hero__dots .tw { animation: star-twinkle var(--d) ease-in-out var(--t) infinite; }+ .hero__glints .tw { animation: glint-sparkle var(--d) ease-in-out var(--t) infinite; }+ .hero__cloud { animation: cloud-drift var(--c) linear var(--t) infinite; }+ .hero__meteor { animation: hero-meteor var(--c) linear var(--w) infinite; }+ }+ @keyframes star-twinkle { 50% { opacity: calc(var(--o) * .2); } }+ /* 闪光:几乎看不见(小、淡)→ 亮起来、转 45° → 再隐去;大半时间停在"几乎看不见",偶尔一闪 */+ @keyframes glint-sparkle {+ 0%, 100% { opacity: calc(var(--o) * .12); scale: calc(var(--s) * .35); rotate: 0deg; }+ 45% { opacity: calc(var(--o) * .12); scale: calc(var(--s) * .35); rotate: 0deg; }+ 65% { opacity: var(--o); scale: calc(var(--s) * 1.15); rotate: 45deg; }+ 85% { opacity: calc(var(--o) * .12); scale: calc(var(--s) * .35); rotate: 90deg; }+ }+ /* 白云:从卡片左外侧飘到右外侧(cqw 是 .hero__sky 的宽度) */+ @keyframes cloud-drift { from { translate: calc(-1 * var(--w)) 0; } to { translate: 100cqw 0; } }+ @keyframes hero-meteor { 0% { opacity: 0; translate: 0 0; } 1% { opacity: .8; } 4.5% { opacity: 0; translate: 285px 93px; } 100% { opacity: 0; translate: 285px 93px; } }+ @keyframes hero-in { from { opacity: 0; translate: 0 24px; filter: blur(10px); } }+ @keyframes hero-char { from { opacity: 0; translate: 0 .32em; filter: blur(12px); } }+ @keyframes hero-pop { from { opacity: 0; scale: .2; rotate: -24deg; } }+ @keyframes hero-glint { 40% { filter: brightness(1.7) drop-shadow(0 0 .1em color-mix(in srgb, var(--lime) 70%, transparent)); } }+ @keyframes hero-rise { from { opacity: 0; translate: 0 90px; } }+ @keyframes hero-fade { from { opacity: 0; } }+ @keyframes hero-sunrise { from { opacity: 0; translate: -50% 220px; } }+ @keyframes hero-glow-in { from { opacity: 0; scale: .6 .4; } }+ @keyframes hero-glint-l { 40% { filter: brightness(1.25) drop-shadow(0 0 .12em oklch(.75 .15 var(--hero-hue) / .55)); } }++ /* —— 小窗口的标题栏("它能动手"和演示导览共用):40px,三个圆点,底下一根分隔线 —— */+ .window__bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); }+ .window__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(127, 127, 127, .45); }++ /* —— 聊天元素(模型演示、手机、演示导览共用) —— */+ .model-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-btn); background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-mono); font-size: 12px; }+ .model-pill .icon { width: 14px; height: 14px; }+ .msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.55; }+ .msg--user { justify-self: end; background: var(--text); color: var(--bg); border-bottom-right-radius: 6px; }+ .msg--bot { justify-self: start; display: flex; gap: 10px; align-items: flex-start; max-width: 92%; padding: 0; }+ .msg--bot p { padding: 10px 14px; border-radius: 16px; border-top-left-radius: 6px; background: var(--bg-sunken); }+ .steps-card { justify-self: start; display: grid; gap: 6px; margin-left: 38px; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-mono); font-size: 13px; }+ .steps-card li { display: flex; gap: 8px; align-items: center; color: var(--text-2); }+ .steps-card .tick { width: 1em; color: var(--ok); }+ .approval { justify-self: start; display: grid; gap: 10px; margin-left: 38px; padding: 12px 14px; border-radius: 14px; background: var(--bg-sunken); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn), transparent 55%); font-size: 13.5px; }+ .approval b { color: var(--warn); font-weight: 600; font-size: 12.5px; }+ .approval .row { display: flex; gap: 8px; }+ .approval .btn { --btn-h: 30px; padding: 0 14px; font-size: 13px; }+ .approval .done { display: none; color: var(--ok); font-size: 12.5px; }+ .approval.is-done .btn { display: none; }+ .approval.is-done .done { display: inline; }+ .file-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-mono); font-size: 12.5px; }+ .file-chip .icon { width: 15px; height: 15px; color: color-mix(in srgb, var(--tint, var(--accent-fg)) 70%, var(--text)); }+ .composer { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 16px; border-radius: 16px; background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 13.5px; }+ .composer i { display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; border-radius: 50%; background: var(--signal-bg); }+ .composer i::before { content: ""; width: 10px; height: 10px; border-left: 2px solid var(--signal-fg); border-top: 2px solid var(--signal-fg); transform: translateY(2px) rotate(45deg); }++ /* —— 手机 mock(认识机器人、演示导览) ——+ 外框是一圈带金属光泽的边(深浅主题各一套),屏幕从上到下:状态栏 → 对话顶栏 → 消息 → 输入框 → 底部横条。+ 状态栏、侧键、头像回复、加号 / 发送键和底部横条只在 .phone--full(认识机器人)里有;演示导览的手机只有顶栏、消息和输入框。 */+ .phone {+ --phone-frame: linear-gradient(150deg, #3a3c3f, #161717 36%, #0f1010 64%, #2c2d30);+ --phone-key: #26272a; --phone-bg: #0b0c0b; --phone-bubble: #1a1b1a; --phone-bar: rgba(11, 12, 11, .8);+ position: relative; width: min(300px, 100%); aspect-ratio: 300 / 600; padding: 10px; border-radius: 48px;+ background: var(--phone-frame);+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 0 0 1px var(--line-strong), 0 50px 90px -40px rgba(0, 0, 0, .75), 0 24px 40px -24px rgba(0, 0, 0, .5);+ }+ [data-theme="light"] .phone {+ /* 浅色:中性的银白金属边(不偏绿),屏幕是浅灰,投影轻而散 */+ --phone-frame: linear-gradient(150deg, #ffffff, #e4e6ea 38%, #d8dadf 62%, #f2f3f5);+ --phone-key: #d3d5da; --phone-bg: #f4f5f7; --phone-bubble: #ffffff; --phone-bar: rgba(244, 245, 247, .78);+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 0 0 1px var(--line), 0 44px 80px -40px rgba(17, 24, 39, .22), 0 20px 36px -24px rgba(17, 24, 39, .12);+ }+ .phone--full { width: min(320px, 100%); aspect-ratio: 320 / 660; }+ .phone--full::before, .phone--full::after { content: ""; position: absolute; width: 3px; background: var(--phone-key); box-shadow: 0 0 0 1px var(--line); }+ .phone--full::before { left: -3px; top: 21%; height: 10%; border-radius: 2px 0 0 2px; }+ .phone--full::after { right: -3px; top: 28%; height: 15%; border-radius: 0 2px 2px 0; }+ .phone__screen { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 38px; background: var(--phone-bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }+ .phone__view { display: contents; }+ .phone__view[hidden] { display: none; }+ .phone__status { position: relative; display: flex; flex: none; align-items: center; justify-content: space-between; height: 46px; padding: 4px 24px 0 32px; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }+ .phone__island { position: absolute; left: 50%; top: 11px; width: 92px; height: 26px; border-radius: 13px; background: #000; translate: -50% 0; }+ .phone__sys { width: 58px; height: 11px; }+ .phone__head { display: flex; flex: none; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--phone-bar); font-size: 13px; font-weight: 600; }+ .phone--full .phone__head { gap: 8px; padding: 6px 14px 10px 8px; }+ .phone__back { flex: none; color: var(--accent-fg); rotate: 90deg; }+ .phone__who { display: grid; min-width: 0; margin-left: 2px; line-height: 1.3; }+ .phone__who b { font-size: 14.5px; font-weight: 600; }+ .phone__who small { overflow: hidden; color: var(--text-2); font-size: 11px; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }+ .phone__who small::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--ok); vertical-align: 1px; }+ .phone__log { flex: 1; display: grid; align-content: start; gap: 10px; min-height: 0; padding: 14px 12px; overflow: hidden; }+ .phone--full .phone__log { align-content: end; }+ .phone__day { justify-self: center; margin-bottom: 4px; padding: 2px 10px; border-radius: var(--r-btn); background: color-mix(in srgb, var(--text), transparent 93%); color: var(--text-2); font-size: 11px; }+ [data-theme="light"] .phone__day { background: rgba(17, 24, 39, .06); }+ .phone__log .msg { max-width: 84%; font-size: 13.5px; line-height: 1.5; }+ /* "我"的气泡:深色黄绿,浅色柔黄绿(像聊天软件浅色下的绿气泡,不发荧光) */+ .phone .msg--user { padding: 9px 13px; border-radius: 18px 18px 6px 18px; background: var(--bubble-me); color: var(--on-bubble-me); }+ .phone__log .msg--bot { display: block; padding: 9px 13px; border-radius: 18px 18px 18px 6px; background: var(--phone-bubble); box-shadow: 0 0 0 1px var(--line); }+ .phone__reply { justify-self: start; display: flex; align-items: flex-end; gap: 8px; max-width: 94%; }+ .phone__reply .bot-face { flex: none; }+ .phone__reply .msg--bot { max-width: none; min-width: 0; }+ .phone__input { display: flex; flex: none; align-items: center; gap: 8px; height: 40px; margin: 10px; padding: 0 14px; border-radius: 20px; background: var(--phone-bubble); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 12.5px; }+ .phone--full .phone__input { margin: 8px 12px 6px; padding: 0 5px; }+ .phone__input span { flex: 1; min-width: 0; }+ .phone__plus, .phone__send { position: relative; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }+ .phone__plus { box-shadow: inset 0 0 0 1.5px var(--line-strong); }+ .phone__plus::before, .phone__plus::after { content: ""; position: absolute; width: 12px; height: 1.5px; border-radius: 1px; background: var(--text-2); }+ .phone__plus::after { rotate: 90deg; }+ /* 发送键:深色黄绿钮墨色箭头,浅色墨色钮黄绿箭头(和 App 的发送键一致) */+ .phone__send { background: var(--signal-bg); }+ .phone__send::before { content: ""; width: 8px; height: 8px; margin-top: 4px; border-left: 2px solid var(--signal-fg); border-top: 2px solid var(--signal-fg); rotate: 45deg; }+ .phone__home { flex: none; display: block; width: 36%; height: 4px; margin: 4px auto 8px; border-radius: 2px; background: var(--text); opacity: .45; }+ html.js .phone__log.is-swap { animation: fade-swap var(--dur-base) var(--ease-out); }+ @keyframes fade-swap { from { opacity: 0; transform: translateY(6px); } }++ /* —— 2 认识你的机器人:"给每个机器人一份工作",所以发工牌 ——+ 舞台卡从上到下:一排六个角色(选中的头顶打一束角色色的光、名字下面写"在岗",其余几个转头看它)→ 细线 →+ 细线上垂下挂绳,挂着工牌(证件照 → 职位 / 名字 / 一句人设 → 擅长 · 模型 · 月薪 → 条形码和工号)| 连线 | 手机。+ 挂绳、底光、聚光灯都用角色色(--stage-glow 在文件开头注册成 <color>,换角色时渐变过去);UI 强调色仍是品牌黄绿。+ 工牌的晃动角度 --swing 由 scripts/sections.ts 的弹簧写入,转轴在挂绳顶端。 */+ .crew {+ --stage-glow: var(--bot-blue-glow); --strap-h: clamp(52px, 6vw, 84px);+ --beam-mix: 30%; --photo-mix: 34%; --dot-glow: 70%; /* 角色色的聚光灯、证件照底光、职位圆点的光晕:浅色下都收一档 */+ --badge-bg: #121412; --badge-photo: #0d0e0d; --badge-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 70px -34px rgba(0, 0, 0, .85), 0 16px 30px -18px rgba(0, 0, 0, .6);+ position: relative; isolation: isolate; overflow: clip;+ display: grid; padding: 0 var(--card-pad) clamp(24px, 3vw, 36px); border-radius: var(--r-banner);+ background:+ radial-gradient(46% 42% at 27% 60%, color-mix(in srgb, var(--stage-glow) 13%, transparent), transparent 76%),+ radial-gradient(40% 40% at 76% 62%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 76%),+ var(--grain), color-mix(in srgb, var(--bg-feature) 80%, transparent);+ box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--line), var(--card-shadow);+ transition: --stage-glow .7s var(--ease-out);+ }+ [data-theme="light"] .crew {+ /* 角色色(尤其芽芽 #2ee88a、闪闪 #ffc21a)在浅底上饱和度太高:光束、底光减淡,圆点不再发光 */+ --beam-mix: 18%; --photo-mix: 20%; --dot-glow: 0%;+ --badge-bg: #ffffff; --badge-photo: #f4f5f7; --badge-shadow: 0 0 0 1px rgba(17, 24, 39, .07), 0 36px 64px -36px rgba(17, 24, 39, .22), 0 12px 24px -16px rgba(17, 24, 39, .1);+ /* 舞台底不铺角色色(选中谁由头顶那束光和挂绳的颜色表示),和其他舞台卡一样是半透明的白 */+ background: var(--grain), radial-gradient(46% 42% at 27% 60%, rgba(255, 255, 255, .9), transparent 76%), linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .56));+ box-shadow: var(--glass-ring), var(--card-shadow);+ }+ .crew[data-char="yellow"] { --stage-glow: var(--bot-yellow-glow); }+ .crew[data-char="green"] { --stage-glow: var(--bot-green-glow); }+ .crew[data-char="red"] { --stage-glow: var(--bot-red-glow); }+ .crew[data-char="purple"] { --stage-glow: var(--bot-purple-glow); }+ .crew[data-char="orange"] { --stage-glow: var(--bot-orange-glow); }++ /* 一排角色:等宽六列,站在细线上;选中的往上一跳、头顶一束光、线上一道黄绿短线 */+ .lineup { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-inline: calc(-1 * var(--card-pad)); padding: clamp(20px, 2.4vw, 28px) var(--card-pad) 0; border-bottom: 1px solid var(--line); }+ .lineup__bot { position: relative; display: grid; justify-items: center; padding: 4px 4px 18px; border-radius: 18px 18px 0 0; text-align: center; color: var(--text-2); }+ .lineup__bot::before {+ content: ""; position: absolute; inset: -40px 6% 0; z-index: -1; pointer-events: none; opacity: 0;+ clip-path: polygon(36% 0, 64% 0, 100% 100%, 0 100%);+ background: linear-gradient(color-mix(in srgb, var(--c) var(--beam-mix), transparent), color-mix(in srgb, var(--c) 6%, transparent) 70%, transparent);+ transition: opacity var(--dur-slow) var(--ease-out);+ }+ .lineup__bot::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 28px; height: 2px; border-radius: 1px; background: var(--accent-fg); translate: -50% 0; scale: 0 1; transition: scale var(--dur-base) var(--ease-out); }+ .lineup__bot .bot-face { margin-bottom: 10px; transition: translate .45s var(--ease-out); }+ .lineup__name { font-size: var(--fs-body-sm); font-weight: 600; line-height: 1.3; color: var(--text); white-space: nowrap; }+ .lineup__job { display: grid; margin-top: 4px; font-size: var(--fs-eyebrow); line-height: 1.4; }+ .lineup__job > span { grid-area: 1 / 1; transition: opacity var(--dur-base) var(--ease-out), translate var(--dur-base) var(--ease-out); }+ .lineup__duty { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--accent-fg); font-weight: 500; opacity: 0; translate: 0 4px; }+ .lineup__duty::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px var(--accent-wash); }+ .lineup__bot:hover .lineup__name { color: var(--text); }+ .lineup__bot:hover .bot-face { translate: 0 -3px; }+ .lineup__bot[aria-selected="true"]::before { opacity: 1; }+ .lineup__bot[aria-selected="true"]::after { scale: 1 1; }+ .lineup__bot[aria-selected="true"] .bot-face { translate: 0 -8px; }+ .lineup__bot[aria-selected="true"] .lineup__job > :first-child { opacity: 0; translate: 0 -4px; }+ .lineup__bot[aria-selected="true"] .lineup__duty { opacity: 1; translate: 0 0; }+ .lineup__bot:focus-visible { outline-offset: -2px; border-radius: 18px; }++ /* 舞台:工牌 | 连线 | 手机 */+ .crew__stage { display: grid; grid-template-columns: minmax(0, 1fr) clamp(84px, 10vw, 140px) minmax(0, 1fr); align-items: start; touch-action: pan-y pinch-zoom; }+ .crew__badge, .crew__phone { display: grid; justify-items: center; }+ .crew__phone { padding-top: calc(var(--strap-h) - 6px); }+ .crew__where { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--text-2); font-size: var(--fs-sm); white-space: nowrap; }+ .crew__where .icon { color: var(--accent-fg); }+ .crew__note { margin-top: 20px; text-align: center; }+ .crew__swipe { display: none; }++ /* 挂绳 + 夹子 + 工牌;整串绕挂绳顶端转(--swing),工牌本身换人时绕竖轴翻面 */+ .badge-hang { --swing: 0deg; position: relative; display: grid; width: min(340px, 100%); padding-top: var(--strap-h); transform-origin: 50% 0; rotate: var(--swing); perspective: 1600px; }+ .badge-hang__strap {+ position: absolute; top: 0; left: 50%; z-index: 1; width: 18px; height: calc(var(--strap-h) + 4px); translate: -50% 0;+ background:+ linear-gradient(90deg, rgba(0, 0, 0, .22), transparent 24%, transparent 76%, rgba(0, 0, 0, .22)),+ repeating-linear-gradient(180deg, color-mix(in srgb, var(--stage-glow) 78%, #000) 0 1.5px, var(--stage-glow) 1.5px 4px);+ box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset;+ }+ .badge-hang__clip {+ position: absolute; top: calc(var(--strap-h) - 12px); left: 50%; z-index: 2; width: 30px; height: 24px; translate: -50% 0; border-radius: 7px 7px 9px 9px;+ background: linear-gradient(180deg, #f2f3ee, #b7b9b0 55%, #8e9088);+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 3px 6px -1px var(--shadow-c-strong);+ }+ .badge-hang__clip::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 12px; height: 4px; margin-left: -6px; border-radius: 2px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .3); }+ .badge-card {+ position: relative; display: grid; border-radius: 22px; background: var(--badge-bg); box-shadow: var(--badge-shadow);+ transition: transform .22s var(--ease-out);+ }+ .badge-card.is-out { transform: rotateY(88deg) scale(.98); transition: transform .17s cubic-bezier(.55, 0, 1, .45); }+ .badge-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 20px 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--text-2); }+ .badge-card__top::before { content: ""; position: absolute; top: 9px; left: 50%; width: 44px; height: 7px; margin-left: -22px; border-radius: 4px; background: var(--bg-feature); box-shadow: inset 0 1px 2px color-mix(in srgb, var(--text) 22%, transparent); }+ .badge-card__org { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: -.01em; }+ .badge-card__staff { padding: 3px 9px; border-radius: var(--r-btn); background: color-mix(in srgb, var(--c, var(--stage-glow)) 16%, transparent); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stage-glow) 40%, transparent); text-transform: uppercase; }+ :lang(zh) .badge-card__staff { font-family: var(--font-sans); letter-spacing: .04em; }+ .badge-card__panel { display: grid; }+ /* 证件照:角色色的底光 + 一层细横纹,头像落在下沿 */+ .badge-card__photo {+ position: relative; display: grid; place-items: end center; height: 200px; margin: 0 14px; border-radius: 14px;+ background:+ radial-gradient(64% 70% at 50% 100%, color-mix(in srgb, var(--c) var(--photo-mix), transparent), transparent 72%),+ repeating-linear-gradient(180deg, transparent 0 7px, color-mix(in srgb, var(--text) 3.5%, transparent) 7px 8px),+ var(--badge-photo);+ box-shadow: inset 0 0 0 1px var(--line);+ }+ .badge-card__photo .bot-face { margin-bottom: 4px; }+ .badge-card__id { display: grid; gap: 6px; padding: 20px 22px 0; }+ /* 职位用全站统一的 .eyebrow,名字用块标题(.subhead)那一档 */+ .badge-card__job { display: inline-flex; align-items: center; gap: 8px; }+ .badge-card__job::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) var(--dot-glow), transparent); }+ .badge-card__name { line-height: 1.1; }+ :lang(zh) .badge-card__name { line-height: 1.2; }+ .badge-card__motto { color: var(--text-2); font-size: var(--fs-body-sm); line-height: 1.55; }+ /* 名字旁边写着另一种语言的名字(中文页是英文名、英文页是中文名):小一号、次要色,和名字同一种无衬线 */+ .badge-card__alias { margin-left: .2em; color: var(--text-2); font-size: .5em; font-weight: 500; letter-spacing: .02em; vertical-align: .22em; }+ .badge-card__fields { display: grid; margin: 16px 22px 0; border-top: 1px solid var(--line); }+ .badge-card__fields > div { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; line-height: 1.45; }+ .badge-card__fields dt { color: var(--text-2); font-size: 12.5px; padding-top: 1px; }+ .badge-card__fields dd { display: grid; justify-items: start; gap: 1px; margin: 0; min-width: 0; }+ .badge-card__fields dd .mono { font-size: 13px; overflow-wrap: anywhere; }+ .badge-card__fields dd small { color: var(--text-2); font-size: 11.5px; }+ .badge-card__fields a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }+ .badge-card__fields a .icon { transition: translate var(--dur-fast) var(--ease-out); }+ .badge-card__fields a:hover .icon { translate: 3px 0; }+ .badge-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px 20px; color: var(--text-2); font-size: 11px; letter-spacing: .06em; }+ .badge-card__foot svg { width: 110px; height: 22px; fill: currentColor; opacity: .75; }+ html.js .badge-card__panel:not([hidden]) .badge-card__id > * { animation: badge-in .5s var(--ease-out) both; }+ html.js .badge-card__panel:not([hidden]) .badge-card__id > :nth-child(2) { animation-delay: 60ms; }+ html.js .badge-card__panel:not([hidden]) .badge-card__id > :nth-child(3) { animation-delay: 120ms; }+ @keyframes badge-in { from { opacity: 0; translate: 0 6px; } }++ /* 电脑 ↔ 手机:一条虚线,一个光点来回跑,下面写走哪个渠道 */+ .crew__link { align-self: center; display: grid; justify-items: center; gap: 12px; margin-top: var(--strap-h); }+ .crew__wire { position: relative; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 5px, transparent 5px 10px); }+ .crew__wire::before, .crew__wire::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--bg-feature); box-shadow: inset 0 0 0 1.5px var(--line-strong); }+ .crew__wire::before { left: -3.5px; }+ .crew__wire::after { right: -3.5px; }+ .crew__wire i {+ position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;+ /* 光点用品牌前景色:深色黄绿,浅色橄榄(纯黄绿的小点在浅底上只剩一圈描边) */+ background: var(--accent-fg); box-shadow: 0 0 0 5px var(--accent-wash);+ animation: wire-x 2.6s var(--ease-inout) infinite alternate;+ }+ @keyframes wire-x { to { left: 100%; } }+ @keyframes wire-y { to { top: 100%; } }+ .crew__wire-label { font-family: var(--font-mono); font-size: var(--fs-eyebrow); color: var(--text-2); white-space: nowrap; }+ .phone__log .msg--bot.is-typing:empty::before { content: "•••"; letter-spacing: 3px; color: var(--text-2); animation: bot-typing 1s ease-in-out infinite; }+ .phone__log .msg--bot.is-typing:not(:empty)::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -.15em; background: currentColor; animation: bot-caret 1s steps(1) infinite; }+ @keyframes bot-typing { 50% { opacity: .35; } }+ @keyframes bot-caret { 50% { opacity: 0; } }++ /* 卡片下面三条手机端的好处:细线起头,图标 → 短标题 → 一行说明 */+ .crew-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--grid-gap); margin-top: var(--stack-head); }+ .crew-perks li { display: grid; align-content: start; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line); }+ .crew-perks__ico { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 8px; border-radius: 10px; background: var(--accent-wash); color: var(--accent-fg); }+ /* 浅色:图标底是一枚白玻璃小方块,不铺淡黄绿;图标本身仍是品牌橄榄色 */+ [data-theme="light"] .crew-perks__ico { background: var(--grain), var(--glass); box-shadow: var(--glass-ring), 0 1px 2px rgba(17, 24, 39, .05); }+ .crew-perks__ico .icon { width: 18px; height: 18px; }+ .crew-perks b { font-size: var(--fs-body-lg); font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }+ :lang(zh) .crew-perks b { letter-spacing: 0; }+ .crew-perks li > span:last-child { color: var(--text-2); font-size: var(--fs-body-sm); line-height: 1.6; }++ @media (prefers-reduced-motion: reduce) { .crew__wire i { animation: none; left: 50%; } .badge-card.is-out { transform: none; } }+ @media (max-width: 1023px) {+ .crew__stage { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }+ .crew__phone { padding-top: 0; }+ .crew__link { grid-template-columns: 1fr auto 1fr; justify-items: start; align-items: center; column-gap: 14px; margin: 8px 0; }+ .crew__wire { grid-column: 2; width: 2px; height: 56px; background: repeating-linear-gradient(180deg, var(--line-strong) 0 5px, transparent 5px 10px); }+ .crew__wire::before, .crew__wire::after { left: 50%; right: auto; margin: 0 0 0 -3.5px; }+ .crew__wire::before { top: -3.5px; }+ .crew__wire::after { top: auto; bottom: -3.5px; }+ .crew__wire i { left: 50%; top: 0; animation-name: wire-y; }+ .crew__wire-label { grid-column: 3; }+ .crew__swipe { display: inline; }+ .crew-perks { grid-template-columns: minmax(0, 1fr); gap: 0; }+ .crew-perks li { grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; padding-block: 20px; }+ .crew-perks__ico { grid-row: span 2; margin: 0; }+ }+ @media (max-width: 1023px) and (prefers-reduced-motion: reduce) { .crew__wire i { left: 50%; top: 50%; } }+ @media (max-width: 767px) {+ .crew { --strap-h: 44px; padding: 0 16px 22px; border-radius: var(--r-feature); }+ .lineup { grid-template-columns: repeat(6, minmax(52px, 1fr)); margin-inline: -16px; padding: 18px 10px 0; overflow-x: auto; scrollbar-width: none; }+ .lineup::-webkit-scrollbar { display: none; }+ .lineup__bot { padding: 2px 2px 14px; }+ .lineup__bot .bot-face { --s: 44px !important; margin-bottom: 8px; }+ .lineup__name { font-size: var(--fs-xs); }+ .lineup__job { display: none; }+ .badge-card__photo { height: 176px; }+ .badge-card__photo .bot-face { --s: 152px !important; }+ .badge-card__id { padding: 18px 18px 0; }+ .badge-card__fields { margin-inline: 18px; }+ .badge-card__foot { padding: 14px 18px 18px; }+ .phone--full { width: min(300px, 100%); }+ }++ /* 电脑操作的循环示意(第 3 节"动手"那一幕和演示导览第 6 步共用;第 3–8 节的版式在 sections.css) */+ .desk { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }+ .desk__win { position: relative; border-radius: var(--r-pop); background: var(--grain), var(--glass); box-shadow: var(--glass-ring), 0 0 0 1px var(--line); overflow: hidden; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }+ [data-theme="light"] .desk__win { background: var(--grain), var(--glass); box-shadow: var(--glass-ring), var(--card-shadow); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }+ .desk__files { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 16px; }+ .desk__file { aspect-ratio: 4 / 5; border-radius: 6px; background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--line); }+ .desk__file.f1 { background: color-mix(in srgb, var(--bg-sunken), var(--tint, var(--accent-fg)) 12%); }+ /* 示意里的"允许"不是页面的主操作:用中性的反色按钮,不出成块的品牌黄绿 */+ .desk .btn--primary { --primary: var(--text); --primary-hover: var(--text); --primary-press: var(--text); --on-primary: var(--bg); }+ .desk__file.f2 { background: color-mix(in srgb, var(--bg-sunken), var(--text) 8%); }+ [data-theme="light"] .desk__file.f2 { background: color-mix(in srgb, var(--bg-sunken), rgb(17 24 39) 8%); }+ .desk__cursor { position: absolute; left: 30%; top: 40%; color: var(--text); filter: drop-shadow(0 2px 2px var(--shadow-c-strong)); }+ /* 飞飞骑在光标右下角:干活时眯眼扫来扫去,要你批准时蹦着冒"!" */+ .desk__rider { position: absolute; left: 14px; top: 12px; }+ .desk__log { --depth: 56px; display: grid; align-content: start; gap: 8px; }+ .desk__step { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-btn); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-mono); font-size: 12.5px; }+ .desk__step .tick { color: var(--ok); }+ .desk__approval { margin-left: 0; }+ .desk__out { justify-self: start; }+ @media (max-width: 767px) { .desk { grid-template-columns: 1fr; } }++ /* 时间线状态(scripts/tour.ts 到点加 .on):循环示意与演示导览共用;无 JS 时直接显示完成态 */+ .on-fade { opacity: 0; transition: opacity .4s var(--ease-out); }+ .on-fade.on { opacity: 1; }+ .on-rise { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }+ .on-rise.on { opacity: 1; transform: none; }+ html:not(.js) :is(.on-rise, .on-fade) { opacity: 1; transform: none; }+ .tour__press { pointer-events: none; }+ .tour__press.on { animation: tour-press .45s var(--ease-out); }+ @keyframes tour-press { 30% { transform: scale(.94); filter: brightness(.92); } 100% { transform: none; } }+ .tour__cursor { transition: left .9s var(--ease-inout), top .9s var(--ease-inout); animation: none !important; }+}diff --git a/site/src/styles/models-key.css b/site/src/styles/models-key.cssnew file mode 100644index 0000000..2b68a36--- /dev/null+++ b/site/src/styles/models-key.css@@ -0,0 +1,71 @@+@layer tokens, base, components, app, utilities;+/* 第 4 节章节头的填充(components/ModelsHeadArt.astro):两侧的毛玻璃厂商图标砖 + 标题下的公式胶囊。+ 砖和胶囊都是浮在页面上的小件,按全站的毛玻璃写法:var(--grain) + var(--glass*) + var(--glass-ring) + 中性的轻投影。+ 砖不做背景模糊(十几块同时模糊太费,背后也只有很柔的底光,模糊不出东西);胶囊只有一颗,做模糊。+ 标志用官方彩色版(本来就是单色的几家跟着砖上的文字颜色走),砖底只用中性的毛玻璃。+ 动效:第一次滚到时随章节头依次浮现(内容出现);之后每块砖各自很轻地上下浮动(±3px、周期 6–10 秒、起点各不相同——+ 用户 2026-10-31 明确要的,是"背景不做动画"规矩里写明的例外);悬停一块砖它再浮起来、显示厂商名(对操作的反馈)。 */+@layer app {+ .mkey__tiles { position: absolute; inset: 0; pointer-events: none; }+ .mkey__tile {+ position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); translate: -50% -50%;+ display: grid; place-items: center; border-radius: 30%;+ background: var(--grain), var(--glass-strong); color: var(--text-2);+ box-shadow: var(--glass-ring), 0 1px 2px var(--shadow-c), 0 18px 36px -20px var(--shadow-c-strong);+ opacity: var(--o); pointer-events: auto;+ transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out), color var(--dur-fast);+ }+ .mkey__tile > .vlogo { flex: none; }+ .mkey__tile:hover { transform: translateY(-4px); opacity: 1; color: var(--text); }+ /* 悬停时砖下面冒出厂商名 */+ .mkey__tile::after {+ content: attr(data-name); position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 4px;+ padding: 3px 10px; border-radius: var(--r-btn); white-space: nowrap;+ background: var(--glass-strong); box-shadow: var(--glass-ring), 0 6px 16px -10px var(--shadow-c-strong);+ color: var(--text); font-size: 12px; font-weight: 500; line-height: 1.5;+ opacity: 0; pointer-events: none; transition: opacity var(--dur-fast), translate var(--dur-fast) var(--ease-out);+ }+ .mkey__tile:hover::after { opacity: 1; translate: -50% 0; }++ /* 公式胶囊:「🔑 1 个 Key → 70 个模型 · 13 家厂商」。钥匙那一段是小块实心记号(浅色墨底黄绿、深色黄绿底墨字) */+ .mkey__eq {+ display: inline-flex; align-items: center; gap: 10px; margin: clamp(20px, 2.2vw, 28px) 0 0; padding: 5px 16px 5px 5px; border-radius: var(--r-btn);+ background: var(--grain), var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);+ box-shadow: var(--glass-ring), 0 12px 30px -18px var(--shadow-c-strong);+ color: var(--text-2); font-size: var(--fs-sm); line-height: 1.4;+ }+ .mkey__key {+ display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px; border-radius: var(--r-btn);+ background: var(--signal-bg); color: var(--signal-fg); font-weight: 600; white-space: nowrap;+ }+ .mkey__key .icon { flex: none; }+ .mkey__arrow { flex: none; width: 16px; height: 16px; color: var(--text-2); }+ .mkey__all { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }++ /* 入场:随章节头(.shead.is-in)一起出现——胶囊跟在说明后面升起,砖从近到远依次浮出。用 animation 而不是 transition,+ 这样悬停的浮起不会被入场的延迟拖住 */+ @media (prefers-reduced-motion: no-preference) {+ html.js .shead:not(.is-in) :is(.mkey__tile, .mkey__eq) { opacity: 0; }+ html.js .shead.is-in .mkey__eq { animation: mkey-rise .8s var(--ease-out) 460ms backwards; }+ /* 微浮:动的是 translate(砖本来就靠 translate: -50% -50% 定位,所以关键帧里带上这一半);悬停的浮起走 transform,叠加不冲突 */+ .mkey__tile { animation: mkey-float calc(6s + var(--i) * .33s) ease-in-out calc(var(--i) * -1.3s) infinite alternate; }+ html.js .shead.is-in .mkey__tile {+ animation:+ mkey-pop .7s var(--ease-out) calc(320ms + var(--i) * 45ms) backwards,+ mkey-float calc(6s + var(--i) * .33s) ease-in-out calc(var(--i) * -1.3s) infinite alternate;+ }+ }+ @keyframes mkey-rise { from { opacity: 0; translate: 0 16px; } }+ @keyframes mkey-pop { from { opacity: 0; scale: .82; } }+ @keyframes mkey-float { from { translate: -50% calc(-50% - 3px); } to { translate: -50% calc(-50% + 3px); } }++ /* 窄屏:收起靠近标题和角上的几块,其余缩小一点;手机上不放砖,只留胶囊 */+ @media (max-width: 1023px) {+ .mkey__tile--far { display: none; }+ .mkey__tile { width: calc(var(--s) * .82); height: calc(var(--s) * .82); }+ }+ @media (max-width: 767px) {+ .mkey__tiles { display: none; }+ .mkey__eq { gap: 8px; padding-right: 14px; font-size: 13px; }+ }+}diff --git a/site/src/styles/pages.css b/site/src/styles/pages.cssnew file mode 100644index 0000000..e9bf4df--- /dev/null+++ b/site/src/styles/pages.css@@ -0,0 +1,30 @@+@layer tokens, base, components, app, utilities;+/* 附属页的专用版式:下载、安全说明、开源许可、404。页面骨架(.page、.page__head、.page__section)在 components.css。 */+@layer app {+ /* —— 下载 —— */+ .dl-page { position: relative; }+ .dl-page__mark { position: absolute; top: clamp(48px, 8vw, 96px); right: 0; }+ .dl-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }+ .dl-cards > * { min-width: 0; }+ .dl-card { display: grid; align-content: start; gap: 12px; transition: box-shadow var(--dur-base) var(--ease-out); }+ .dl-card[data-dl-recommended] { box-shadow: inset 0 0 0 1.5px var(--accent-fg), var(--card-shadow); }+ .dl-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }+ .dl-card__head .muted { font-weight: 400; }+ .dl-card > .btn { justify-self: start; }+ .dl-card__label { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); margin-bottom: -4px; }+ .dl-verify { display: grid; gap: 12px; margin: 0; }+ .dl-verify > div { display: grid; gap: 6px; }+ .dl-verify dd { margin: 0; }+ @media (max-width: 767px) { .dl-cards { grid-template-columns: 1fr; } .dl-page__mark { display: none; } }++ /* —— 安全说明:对照表里 AnyModelBot 一列用正文色,最后两行(出网、可审计)加重 —— */+ .compare td:nth-child(2) { color: var(--text); }+ .compare tbody tr:nth-last-child(-n+2) td:nth-child(2) { font-weight: 500; }++ /* —— 开源许可 —— */+ .licenses-md { padding: 24px; border-radius: var(--r-card); background: var(--code-bg); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-mono); font-size: var(--fs-xs); line-height: 1.6; white-space: pre-wrap; overflow-x: auto; }++ /* —— 404 —— */+ .nf { display: grid; place-items: center; min-height: 70vh; text-align: center; }+ .nf > div { display: grid; justify-items: center; gap: 24px; }+}diff --git a/site/src/styles/pricing.css b/site/src/styles/pricing.cssnew file mode 100644index 0000000..93a6515--- /dev/null+++ b/site/src/styles/pricing.css@@ -0,0 +1,116 @@+@layer tokens, base, components, app, utilities;+/* /pricing 页(sections/Pricing.astro):对照表、价格表岛、计算器岛。价格卡在 components.css(首页也用)。 */+@layer app {+ .pricing .pcards { margin-bottom: 64px; }+ .pricing__block { display: grid; gap: 12px; margin-top: 48px; }+ .contrast { width: 100%; max-width: 860px; margin-inline: auto; }+ .contrast + p { max-width: 860px; margin-inline: auto; }++ /* —— 价格表(islands/PriceTable.tsx) —— */+ .ptable { display: grid; gap: 16px; }+ .ptable__tools { display: grid; gap: 12px; }+ .ptable__search input { width: min(360px, 100%); height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-field); background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }+ .ptable__vendors { display: flex; flex-wrap: wrap; gap: 8px; }+ .ptable__table .num-col { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }+ .ptable__model .mono { display: block; color: var(--text); font-size: var(--fs-sm); }+ .ptable__model small { color: var(--text-2); font-weight: 400; }+ .ptable__lock { display: inline-block; margin-left: 6px; vertical-align: -2px; color: var(--warn); }+ .ptable__table td .badge { margin: 2px 0; }+ .ptable__toggle { width: 56px; text-align: right; padding-block: 8px !important; }+ .ptable__toggle .icon-btn svg { transition: transform var(--dur-base) var(--ease-out); }+ .ptable__toggle [aria-expanded="true"] svg { transform: rotate(180deg); }+ .ptable__group th { padding-top: 24px !important; border-bottom: 1px solid var(--line-strong); color: var(--text); font-size: var(--fs-xs); font-weight: 500; }+ .ptable__detail > td { padding: 0 !important; background: var(--bg-sunken); }+ .ptable__none { padding: 24px 16px; }+ .ptable__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }+ .ptable .show-md { display: none; }+ .pdetail { display: grid; gap: 12px; padding: 16px 20px 20px; }+ .pdetail__table :is(th, td) { padding: 8px 12px; font-size: var(--fs-xs); }+ .pdetail__table tr:last-child > * { border-bottom: 0; }+ .pdetail__unlock { color: var(--warn); }++ /* —— 计算器(islands/PriceCalculator.tsx、ModelCombobox.tsx) —— */+ .calc-wrap { gap: 20px; scroll-margin-top: 88px; }+ .calc { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: start; }+ .calc > * { min-width: 0; }+ .calc__form { display: grid; gap: 20px; padding: 28px; border-radius: var(--r-card); background: var(--grain), color-mix(in srgb, var(--bg-raised) 80%, transparent); box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--line); }+ /* 浅色:计算器两块是白玻璃(半透明白 + 颗粒 + 顶边高光 + 很轻的托起)。不加 backdrop-filter:+ 表单里有模型下拉列表,自成层叠上下文会把它关在表单里 */+ [data-theme="light"] .calc__form { background: var(--grain), var(--glass); box-shadow: var(--glass-ring), var(--card-shadow); }+ .calc__presets { display: flex; flex-wrap: wrap; gap: 8px; }+ .calc__field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }+ .calc__field > label, .calc__field legend { padding: 0; font-size: var(--fs-sm); font-weight: 500; }+ .calc__route { display: flex; flex-wrap: wrap; gap: 8px; }+ .calc__route legend { width: 100%; margin-bottom: 8px; }+ .calc__route .chip { cursor: pointer; }+ .calc__route .chip:has(input:checked) { background: var(--chip-on-bg); color: var(--accent-fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-fg), transparent 40%); }+ .calc__route input { margin: 0; accent-color: var(--accent-fg); }+ .calc__route small { width: 100%; }+ .calc__inputs { display: grid; grid-template-columns: 1fr 120px; gap: 12px; align-items: center; }+ .calc__inputs input[type=range] { width: 100%; height: 28px; accent-color: var(--accent-fg); }+ .calc__inputs input[type=number] { height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-field); background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }+ .calc__result { position: sticky; top: 96px; display: grid; gap: 12px; padding: 28px; border-radius: var(--r-card); background: var(--grain), color-mix(in srgb, var(--bg-raised) 84%, transparent); box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1.5px var(--accent-fg), var(--card-shadow); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }+ @media (min-width: 768px) { [data-theme="light"] .calc__result { background: var(--grain), var(--glass-strong); box-shadow: var(--glass-ring), inset 0 0 0 1.5px var(--accent-fg), var(--card-shadow); } }+ .calc__big .mono { font-size: var(--fs-figure); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }+ .calc__lines { display: grid; gap: 4px; margin: 0; }+ .calc__lines dd { margin: 0; font-variant-numeric: tabular-nums; }+ .calc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }+ .calc__bar-toggle { display: none; }+ .combo { position: relative; }+ .combo__field { position: relative; display: flex; align-items: center; }+ .combo__field input { width: 100%; height: 44px; padding: 0 40px 0 12px; border: 0; border-radius: var(--r-field); background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-size: var(--fs-sm); }+ /* 页上三个输入框(搜索、数字、模型选择)用同一种焦点:品牌色描边 + 一圈淡底 */+ :is(.ptable__search input, .calc__inputs input[type=number], .combo__field input):focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent-fg), 0 0 0 4px var(--accent-wash); }+ .combo__toggle { position: absolute; right: 6px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-item); color: var(--text-2); }+ .combo__field input[aria-expanded="true"] + .combo__toggle svg { transform: rotate(180deg); }+ .combo__list { position: absolute; z-index: 6; top: calc(100% + 6px); left: 0; right: 0; max-height: 300px; margin: 0; padding: 4px; overflow-y: auto; list-style: none; border-radius: var(--r-pop);+ background: var(--grain), color-mix(in srgb, var(--bg-raised) 90%, transparent); -webkit-backdrop-filter: var(--glass-blur-lg); backdrop-filter: var(--glass-blur-lg);+ box-shadow: var(--glass-ring), 0 20px 50px -12px var(--shadow-c); }+ .combo__list ul { margin: 0; padding: 0; list-style: none; }+ .combo__group { padding: 8px 10px 4px; font-size: var(--fs-eyebrow); color: var(--text-2); }+ .combo__list [role=option] { padding: 8px 10px; border-radius: var(--r-item); font-size: var(--fs-xs); cursor: pointer; }+ .combo__list [role=option].is-active { background: var(--hover); }+ .combo__list [role=option][aria-selected="true"] { color: var(--accent-fg); }+ .combo__list [role=option][aria-selected="true"]::after { content: " ✓"; }+ .combo__empty { padding: 12px 10px; font-size: var(--fs-xs); }++ /* —— 页尾:获取 Key —— */+ .pbanner { display: flex; align-items: center; gap: 16px; margin-top: var(--stack-block); padding: 24px; border-radius: var(--r-card); background: var(--grain), var(--glass); box-shadow: var(--glass-ring); }+ [data-theme="light"] .pbanner { background: var(--grain), var(--glass); box-shadow: var(--glass-ring), var(--card-shadow); }+ .pbanner p { flex: 1; }++ @media (max-width: 1023px) {+ .ptable .hide-md { display: none; }+ .ptable .show-md { display: block; }+ .calc { grid-template-columns: 1fr; }+ .calc__result { position: static; }+ }+ @media (max-width: 767px) {+ .pbanner { flex-direction: column; align-items: flex-start; }+ /* 价格表:每个模型变成一张两列小卡,展开按钮在右侧 */+ .ptable__table thead { display: none; }+ .ptable__table, .ptable__table > tbody, .ptable__table > tbody > tr { display: block; }+ .ptable__table > tbody { padding: 8px 0; border-bottom: 1px solid var(--line); }+ .ptable__table > tbody.ptable__group th { display: block; padding: 16px 8px 4px !important; border: 0; }+ .ptable__table > tbody > tr:first-child { display: grid; grid-template-columns: 1fr 1fr auto; gap: 4px 12px; align-items: center; }+ .ptable__table > tbody > tr:first-child > * { padding: 4px 8px; border: 0; }+ .ptable__table > tbody > tr:first-child > :is(th, td:nth-child(2)) { grid-column: 1 / 3; }+ .ptable__table > tbody > tr:first-child > .ptable__toggle { grid-column: 3; grid-row: 1 / 3; }+ .ptable__table > tbody > tr:first-child > .num-col { text-align: left; }+ .ptable__table > tbody > tr:first-child > .num-col::before { content: attr(data-label); display: block; font-family: var(--font-sans); font-size: 11px; color: var(--text-2); }+ .ptable__table > tbody.ptable__group > tr:first-child { display: block; }+ .ptable__detail > td { display: block; border: 0; }+ .ptable__detail[hidden] { display: none; }+ /* 计算器结果:吸底条,点"展开"看明细 */+ .calc__form { padding: 20px; }+ .calc__inputs { grid-template-columns: 1fr 96px; }+ .calc__result { position: sticky; top: auto; bottom: 0; z-index: 4; grid-template-columns: 1fr auto; align-items: center; margin-inline: calc(-1 * var(--gutter)); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: var(--r-card) var(--r-card) 0 0;+ background: var(--grain), var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur-lg); backdrop-filter: var(--glass-blur-lg);+ box-shadow: inset 0 1px 0 var(--glass-hi), 0 -1px 0 var(--line), 0 -16px 40px -16px var(--shadow-c); }+ .calc__result .calc__big .mono { font-size: 24px; }+ .calc__bar-toggle { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: var(--r-btn); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-xs); }+ .calc__result > :is(.calc__lines, .calc__disclaimer, .calc__actions) { grid-column: 1 / -1; display: none; }+ .calc__result.is-open > :is(.calc__lines, .calc__disclaimer) { display: grid; }+ .calc__result.is-open > .calc__actions { display: flex; }+ }+}diff --git a/site/src/styles/sections.css b/site/src/styles/sections.cssnew file mode 100644index 0000000..b064778--- /dev/null+++ b/site/src/styles/sections.css@@ -0,0 +1,675 @@+@layer tokens, base, components, app, utilities;+/* 首页第 3–8 节的版式与动效:能动手 / 会记住、模型与价格、数据去向、在哪都能用、常见问题、收尾(views/Home.astro 引入)。+ 视觉语言和第 2 节"认识你的机器人"同一套:深底舞台卡(.stage,在 home.css)+ 一圈细线 + 大圆角,底光用这一节主持机器人的颜色+ (--stage-glow / --tint:动手橙、记忆绿、模型紫、数据去向绿、多端蓝、问答黄)。+ 叙事参考 bevel.health:短标题 + 一句话,然后一块会动的大示意——分章边滚边讲、设备上叠浮层、收尾和首屏呼应。+ 品牌黄绿只留给主操作(下载、获取 Key);其余强调用机器人的颜色,而且压得很淡。+ 断点:sm <768 / md 768–1023 / lg ≥1024。所有循环动画在"减少动态效果"时关掉,停在终态。 */++/* 舞台卡顶上的选项卡、换脑舞台的轨道角度:注册成类型才能平滑过渡 / 动画 */+@property --orb { syntax: "<angle>"; inherits: true; initial-value: 0deg; }++@layer app {+ :is(.story, .switchboard, .hub, .hub__panel, .flow) > * { min-width: 0; }+ /* 居中的章节头(第 4 节):细线从中间往两边画开(左对齐的章节头从左往右,见 home.css) */+ html.js .shead--center::before { transform-origin: 50% 50%; }++ /* —— 3 能动手、会记住:两章故事 ——+ 默认(窄屏 / 无 JS):一列——第 1 章文字 → 它的场景卡 → 第 2 章文字 → 它的场景卡(舞台卡 display: contents 拆开,每幕自己成卡)。+ 桌面(≥1024、高 ≥700、有 JS):左 5 右 7;左边两章各占大半屏依次滚过,右边舞台卡吸在导航下面换场(sections.ts 的 story)。 */+ .story { display: grid; gap: 24px; }+ .story__ch { display: grid; justify-items: start; align-content: start; }+ .story__ch[data-ch="0"] { order: 1; }+ .story__scene[data-scene="0"] { order: 2; }+ .story__ch[data-ch="1"] { order: 3; margin-top: var(--stack-head); }+ .story__scene[data-scene="1"] { order: 4; }+ .story__stage { display: contents; }+ .story__tabs, .story__mark { display: none; }+ .story__no { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }+ .story__n { display: inline-flex; align-items: center; gap: 8px; margin-right: 4px; font-size: var(--fs-eyebrow); letter-spacing: .04em; color: var(--text-2); }+ .story__n::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tint); box-shadow: 0 0 12px var(--tint); }+ /* 浅色下不要发光的点(在白底上是一团荧光),换成一圈淡色 */+ [data-theme="light"] .story__n::before { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tint) 18%, transparent); }+ .story__lead { margin-top: 16px; max-width: 34ch; color: var(--text-2); font-size: var(--fs-body-lg); line-height: 1.6; }+ :lang(zh) .story__lead { max-width: 22em; }+ .story__points { display: grid; gap: 16px; width: 100%; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }+ .story__points li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; align-items: start; }+ .story__ico {+ display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;+ background: color-mix(in srgb, var(--tint) calc(12% * var(--glow-k)), transparent); color: color-mix(in srgb, var(--tint) 70%, var(--text));+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint) 22%, transparent);+ }+ .story__ico .icon { width: 18px; height: 18px; }+ /* 浅色:图标底是白玻璃小方块(不铺本章颜色),颜色只留在图标上 */+ [data-theme="light"] .story__ico { background: var(--grain), var(--glass); box-shadow: var(--glass-ring), 0 1px 2px rgba(17, 24, 39, .05); color: color-mix(in srgb, var(--tint) 55%, var(--text)); }+ .story__points p { display: grid; gap: 4px; padding-top: 6px; }+ .story__points b { color: var(--text); font-size: var(--fs-body-lg); font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }+ :lang(zh) .story__points b { letter-spacing: 0; }+ .story__points p > span { color: var(--text-2); font-size: var(--fs-body-sm); line-height: 1.6; }+ /* 两章故事下面的「还有这些」:一段标题 + 一排 crew-perks(样式在 home.css) */+ .caps { margin-top: var(--stack-block); }+ .caps .crew-perks { margin-top: 0; }+ .caps .subhead { margin-bottom: 8px; }+ .story__note { margin-top: 24px; padding-left: 12px; box-shadow: inset 2px 0 0 var(--line-strong); color: var(--text-2); font-size: var(--fs-xs); line-height: 1.55; }+ /* 场景卡(窄屏上每幕一张):底光用本章颜色 */+ .story__scene {+ position: relative; padding: var(--card-pad); border-radius: var(--r-banner);+ background: var(--grain), radial-gradient(60% 70% at 80% 100%, color-mix(in srgb, var(--tint) calc(14% * var(--glow-k)), transparent), transparent 74%), color-mix(in srgb, var(--bg-feature) 80%, transparent);+ box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--line), var(--card-shadow);+ }+ /* 浅色:场景卡和舞台卡一样,是半透明的白,不铺本章的颜色 */+ [data-theme="light"] .story__scene { background: var(--grain), radial-gradient(60% 70% at 80% 100%, rgba(255, 255, 255, .9), transparent 74%), linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .56)); box-shadow: var(--glass-ring), var(--card-shadow); }+ .story__scene[data-scene="1"] { padding-top: calc(var(--card-pad) + 44px); }+ .story__tab {+ display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--r-btn);+ background: var(--grain), var(--glass); box-shadow: var(--glass-ring); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);+ color: var(--text-2); font-size: var(--fs-xs); font-weight: 500; white-space: nowrap;+ transition: color var(--dur-base), box-shadow var(--dur-base);+ }+ .story__tab i { width: 6px; height: 6px; border-radius: 50%; background: var(--tint); opacity: .35; transition: opacity var(--dur-base), box-shadow var(--dur-base); }+ .story__tab:hover { color: var(--text); }+ .story__tab.is-on { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }+ .story__tab.is-on i { opacity: 1; box-shadow: 0 0 10px var(--tint); }+ [data-theme="light"] .story__tab.is-on i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tint) 18%, transparent); }++ @media (min-width: 1024px) and (min-height: 700px) {+ html.js .story { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--grid-gap); row-gap: 0; align-items: start; }+ html.js .story__ch { grid-column: 1; min-height: 78vh; align-content: center; margin: 0; padding-block: 8vh; opacity: .26; transition: opacity .6s var(--ease-out); }+ html.js .story__ch[data-ch="0"] { grid-row: 1; }+ html.js .story__ch[data-ch="1"] { grid-row: 2; }+ html.js .story__ch.is-on { opacity: 1; }+ html.js .story__stage {+ --glow-at: 70% 100%; --glow-mix: 18%;+ display: block; grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--nav-h) + 32px);+ height: min(640px, calc(100vh - var(--nav-h) - 64px)); overflow: hidden;+ transition: --stage-glow .9s var(--ease-out);+ }+ html.js .story__tabs { position: absolute; top: 24px; left: 40px; z-index: 3; display: flex; gap: 8px; }+ html.js .story__mark {+ --ring-plate: transparent; --ring-stroke: color-mix(in srgb, var(--stage-glow) 55%, transparent); --ring-eye: color-mix(in srgb, var(--stage-glow) 45%, transparent);+ position: absolute; right: -84px; bottom: -100px; display: block; opacity: calc(.4 * var(--glow-k)); pointer-events: none;+ }+ /* 换场:旧的一幕往上退、糊掉,新的一幕从下面升上来 */+ html.js .story__scene {+ position: absolute; inset: 76px 40px 40px; z-index: 1; display: grid; align-content: center;+ padding: 0; border-radius: 0; background: none; box-shadow: none;+ opacity: 0; visibility: hidden; transform: translateY(48px) scale(.96); filter: blur(8px);+ transition: opacity .5s var(--ease-out), transform .8s var(--ease-out), filter .5s var(--ease-out), visibility 0s linear .8s;+ }+ html.js .story__scene[data-scene="1"] { padding-top: 44px; }+ html.js .story__scene.is-past { transform: translateY(-48px) scale(.96); }+ html.js .story__scene.is-on {+ opacity: 1; visibility: visible; transform: none; filter: none;+ transition: opacity .6s var(--ease-out) .12s, transform .8s var(--ease-out) .12s, filter .6s var(--ease-out) .12s, visibility 0s;+ }+ }+ @media (prefers-reduced-motion: reduce) { html.js .story__scene { transition: opacity .2s, visibility 0s linear .2s; transform: none; filter: none; } }++ /* 记忆文件(第 2 章那一幕):芽芽蹲在文件顶上,一行行往里记;有人想塞密码就划掉、提示已跳过 */+ .memfile { position: relative; margin: 0; border-radius: var(--r-card); background: var(--grain), var(--glass-strong); box-shadow: var(--glass-ring), var(--card-shadow); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }+ /* 浅色:记忆文件是一张白玻璃纸(模糊透出后面的舞台),不是一块灰底 */+ [data-theme="light"] .memfile { background: var(--grain), var(--glass-strong); box-shadow: var(--glass-ring), var(--card-shadow); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }+ .memfile__bot { position: absolute; right: 22px; top: -54px; z-index: 2; }+ .memfile__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); }+ .memfile__name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }+ .memfile__name i { width: 10px; height: 10px; border-radius: 50%; background: rgba(127, 127, 127, .45); }+ .memfile__name .mono { margin-left: 6px; color: var(--text-2); }+ .memfile pre { margin: 0; padding: 20px 20px 16px; white-space: pre-wrap; font-size: var(--fs-code); line-height: 1.7; }+ .mem-line { display: block; min-height: 1.7em; }+ .mem-line--h { color: var(--text); font-weight: 600; }+ .mem-line--h:not(:first-child) { margin-top: .8em; }+ .mem-line--secret { position: relative; width: fit-content; margin: 2px -6px 0; padding: 0 6px; border-radius: 6px; background: var(--warn-wash); transition: color var(--dur-base), background var(--dur-base); }+ .mem-strike { position: absolute; left: 4px; right: 4px; top: 52%; height: 2px; border-radius: 1px; background: var(--danger); transform: scaleX(0); transform-origin: left; transition: transform .38s var(--ease-out); }+ .mem-strike.on { transform: none; }+ .mem-line--secret:has(.mem-strike.on) { color: var(--danger); background: color-mix(in srgb, var(--danger), transparent 90%); animation: mem-nope .42s var(--ease-out); }+ @keyframes mem-nope { 20% { translate: -5px 0; } 45% { translate: 4px 0; } 70% { translate: -2px 0; } }+ html:not(.js) .mem-strike { transform: none; }+ html:not(.js) .mem-line--secret { color: var(--danger); }+ .memfile__refused { display: inline-block; margin: 0 20px 20px; padding: 8px 12px; border-radius: var(--r-item); font-family: var(--font-mono); color: var(--danger); background: color-mix(in srgb, var(--danger), transparent 90%); }+ @media (max-width: 767px) { .memfile__bot { --s: 52px !important; top: -44px; } }++ /* 厂商标志(components/VendorLogo.astro):单色、跟着文字颜色走,尺寸由标签上的 width / height 定;+ 没有标志的厂商用首字母小圆片,和标志一样大 */+ .vlogo { flex: none; display: block; }+ .vlogo--mono { display: inline-grid; place-items: center; width: var(--vl-size, 14px); height: var(--vl-size, 14px); border-radius: 50%; background: color-mix(in srgb, currentColor 18%, transparent); font-family: var(--font-sans); font-size: calc(var(--vl-size, 14px) * .62); font-weight: 600; line-height: 1; }++ /* 第 3–8 节的文字链接("查看更多"、价格卡链接、保留期说明、开源仓库):正文色 + 一道细下划线;品牌色只留给下载、获取 Key 两个主操作 */+ :is(.faq-wrap__more, .hub__more, .models__pricing .pcard__link, .flow-node__body a, .final__oss a) { color: var(--text); text-decoration: underline 1px var(--line-strong); text-underline-offset: 4px; }+ :is(.faq-wrap__more, .hub__more, .models__pricing .pcard__link, .flow-node__body a, .final__oss a):hover { color: var(--text); text-decoration-color: currentColor; }++ /* —— 4 模型与价格:开放式,不装大卡 ——+ 前后几节都装在舞台卡里,这一节故意敞开:章节头居中(.shead--center),换脑示意直接站在页面底色上,+ 右边的对话演示自己是一张玻璃卡;下面的价格是三张独立的卡片——整节的视觉重心落在价格上。+ 换脑示意左 5 右 6:左边晶晶坐在中间,两圈压扁的椭圆轨道像行星环——外圈模型、内圈厂商,反向慢慢转;+ 转到前面(下半圈)的标签更大更亮、压在机器人前面,转到后面的变小变淡(用 sin() 算前后,--orb 是转过的角度)。+ 右边是对话演示。窄屏只留右边。 */+ .switchboard { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: var(--grid-gap); }+ .orbit { position: relative; justify-self: center; width: 100%; max-width: 500px; aspect-ratio: 1 / .92; }+ .orbit__track { position: absolute; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }+ .orbit__track--out { width: calc(100% - 150px); height: 62%; }+ .orbit__track--in { width: 54%; height: 28%; box-shadow: none; border: 1px dashed var(--line); }+ .orbit__ring { position: absolute; inset: 0; animation: orbit-turn 96s linear infinite; }+ .orbit__ring--in { animation-duration: 72s; animation-direction: reverse; }+ .orbit:hover .orbit__ring, .orbit.is-off .orbit__ring { animation-play-state: paused; }+ @keyframes orbit-turn { to { --orb: 360deg; } }+ .orbit__ring--out { --rx: calc(50% - 75px); --ry: 31%; }+ .orbit__ring--in { --rx: 27%; --ry: 14%; }+ .orbit__slot {+ --a: calc(var(--i) * 360deg / var(--n) + var(--orb));+ --z: sin(var(--a));+ position: absolute; left: calc(50% + cos(var(--a)) * var(--rx)); top: calc(50% + var(--z) * var(--ry));+ z-index: calc(10 + var(--z) * 9);+ width: 0; height: 0;+ }+ .orbit__chip {+ position: absolute; left: 0; top: 0; translate: -50% -50%;+ scale: calc(.82 + (var(--z) + 1) * .09); opacity: calc(.4 + (var(--z) + 1) * .3);+ display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px; border-radius: var(--r-btn);+ background: var(--grain), var(--glass); box-shadow: var(--glass-ring); color: var(--text-2);+ font-size: var(--fs-eyebrow); white-space: nowrap; cursor: pointer;+ transition: color var(--dur-base), box-shadow var(--dur-base), background var(--dur-base);+ }+ .orbit__chip:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }+ .orbit__chip.is-on {+ color: var(--text); opacity: 1; background: color-mix(in srgb, var(--bot-purple-glow) calc(18% * var(--glow-k)), var(--bg-raised));+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bot-purple-glow) calc(60% * var(--glow-k)), transparent), 0 0 28px -6px color-mix(in srgb, var(--bot-purple-glow) calc(70% * var(--glow-k) * var(--glow-k)), transparent);+ }+ .orbit__chip--vendor { gap: 5px; height: 26px; padding: 0 10px 0 8px; font-size: 11.5px; cursor: default; background: var(--grain), var(--glass); }+ /* 胶囊里的标志比字亮一档,转到后面变淡时跟着整枚胶囊一起淡 */+ .orbit__chip .vlogo { color: var(--text); }+ .orbit__chip--vendor:hover { color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }+ .orbit__core {+ position: absolute; left: 50%; top: 50%; z-index: 10; translate: -50% -50%; display: grid; place-items: center; width: 40%; aspect-ratio: 1; border-radius: 50%;+ background: radial-gradient(circle, color-mix(in srgb, var(--bot-purple-glow) calc(26% * var(--glow-k)), transparent), transparent 68%);+ }+ @supports not (left: calc(1px * cos(0deg))) { .orbit__ring, .orbit__track { display: none; } }+ @media (prefers-reduced-motion: reduce) { .orbit__ring { animation: none; } }++ .model-demo { display: grid; gap: 16px; }+ .seg { display: flex; flex-wrap: wrap; gap: 8px; }+ .model-demo .chip[aria-selected="true"] {+ background: color-mix(in srgb, var(--bot-purple-glow) calc(16% * var(--glow-k)), transparent); color: var(--text);+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bot-purple-glow) calc(55% * var(--glow-k)), transparent);+ }+ .model-demo__chat { display: grid; align-content: start; gap: 10px; min-height: 240px; padding: 16px; border-radius: var(--r-card); background: var(--grain), var(--glass); box-shadow: var(--glass-ring); }+ [data-theme="light"] .model-demo__chat { box-shadow: var(--glass-ring), var(--card-shadow); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }+ .model-demo__chat .msg--user { max-width: 90%; }+ .model-demo__chat .msg--bot { align-items: flex-end; }+ .model-demo__chat .msg--bot p { min-height: 2.6em; }+ .model-demo .msg--bot p.is-typing:empty::before { content: "•••"; letter-spacing: 3px; color: var(--text-2); animation: bot-typing 1s ease-in-out infinite; }+ .model-demo .msg--bot p.is-typing:not(:empty)::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -.15em; background: currentColor; animation: bot-caret 1s steps(1) infinite; }+ .model-demo__top { position: relative; display: flex; justify-content: center; }+ .model-demo__price { color: var(--text-2); font-variant-numeric: tabular-nums; }+ .model-pill--btn { cursor: pointer; }+ .model-pill--btn:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }+ .model-list { position: absolute; top: calc(100% + 6px); z-index: 20; width: min(320px, 100%); padding: 8px; border-radius: var(--r-shot); background: var(--grain), var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur-lg); backdrop-filter: var(--glass-blur-lg); box-shadow: var(--glass-ring), 0 20px 50px -12px var(--shadow-c); text-align: left; }+ .model-list__search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border-radius: 10px; background: var(--bg-sunken); color: var(--text-2); }+ .model-list__search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); font-size: var(--fs-sm); }+ .model-list [role=listbox] { max-height: 240px; margin: 6px 0 0; padding: 0; overflow-y: auto; list-style: none; }+ .model-list__group { display: flex; align-items: center; gap: 6px; padding: 8px 10px 4px; font-size: var(--fs-eyebrow); font-weight: 500; color: var(--text-2); }+ .model-list__group .vlogo { color: var(--text); }+ .model-list__group[hidden] { display: none; }+ .model-list [role=option] { padding: 8px 10px; border-radius: var(--r-item); font-family: var(--font-mono); font-size: var(--fs-xs); cursor: pointer; }+ .model-list [role=option]:hover, .model-list [role=option].is-active { background: var(--hover); }+ .model-list [role=option][aria-selected="true"]::after { content: " ✓"; color: var(--text-2); }+ @media (max-width: 1023px) { .switchboard { grid-template-columns: 1fr; } .orbit { max-width: 440px; } }+ @media (max-width: 767px) { .orbit { display: none; } }++ /* 跑马灯:一行等宽小字,每个模型名前面是它厂商的标志(比字亮一档),两端渐隐;悬停或离开视口时停(scroll-fx.ts 加 .is-off) */+ .marquee { margin-top: var(--space-8); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }+ .marquee__track { display: flex; width: max-content; animation: marquee 110s linear infinite; }+ .marquee:hover .marquee__track, .marquee.is-off .marquee__track { animation-play-state: paused; }+ @keyframes marquee { to { transform: translateX(-50%); } }+ .marquee__item { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding-right: 22px; color: var(--text-2); font-size: 13px; white-space: nowrap; }+ .marquee__item .vlogo { color: var(--text); opacity: .85; }+ .marquee__item::after { content: ""; width: 3px; height: 3px; margin-left: 14px; border-radius: 50%; background: currentColor; opacity: .5; }+ @media (prefers-reduced-motion: reduce) {+ .marquee { -webkit-mask-image: none; mask-image: none; }+ .marquee__track { flex-wrap: wrap; width: auto; animation: none; }+ }++ /* 价格:三张独立的卡片,卡与卡之间留 16。材质就是通用的 .card(深色半透明底 + 颗粒 + 顶边高光,浅色白玻璃,+ 见 components.css),圆角升一档到大卡;数字用正文色,品牌色只给下面的"获取 Key" */+ .models__pricing { margin-top: var(--stack-block); }+ .models__price-head { display: grid; justify-items: center; gap: 12px; margin-bottom: 32px; text-align: center; }+ .models__pricing .pcards--compact { gap: 16px; }+ .models__pricing .pcards--compact .pcard { border-radius: var(--r-feature); padding: var(--card-pad); }+ /* 首页价格卡里的标志用中性色:这一节的黄绿只留给"获取 Key" */+ .models__pricing .pcard__mark { --mark-plate: var(--text); --mark-eye: var(--bg); }+ .models__cta { margin-top: 40px; text-align: center; }++ /* —— 5 数据去向:芽芽底光的舞台卡 ——+ "你的设备"是一块有边界的区域:深色下一圈很淡的绿边,浅色下是中性的双线框(都静止)。+ 连线是会走的虚线,出去的"这一次请求"是一颗绿色小光点——动的只有表示数据流向的这两样。 */+ /* 舞台卡到下面"完整安全说明"按钮的距离和章节头到舞台卡一样(--stack-head,40–64):上下同一个节奏,按钮不贴在卡片底边上 */+ .flow-stage { --glow-at: 16% 50%; --glow-mix: 14%; margin-bottom: var(--stack-head); padding: var(--card-pad); }+ /* 连线列按内容取宽(auto):标签在文档流里撑开这一列,三栏用 fr 分剩下的宽度——标签不会再溢出到旁边那栏底下被盖住 */+ .flow { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) auto minmax(0, 4fr) auto minmax(0, 3fr); align-items: center; }+ .flow__col { position: relative; align-self: stretch; display: grid; align-content: start; gap: 12px; padding: 20px; border-radius: var(--r-card); background: var(--grain), var(--glass); box-shadow: var(--glass-ring); }+ .flow__col--vendor { align-self: center; }+ .flow__col--local {+ background: var(--grain), color-mix(in srgb, var(--tint) calc(4% * var(--glow-k)), var(--bg-raised));+ box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px color-mix(in srgb, var(--tint) calc(34% * var(--glow-k)), transparent), 0 0 0 6px color-mix(in srgb, var(--tint) calc(7% * var(--glow-k)), transparent);+ }+ /* 浅色:"你的设备"的边界用中性的双线框(内细边 + 一圈白 + 外细边),不铺绿;绿色只留在"本地"的小圆点和流出去的光点上。+ 这几栏不加 backdrop-filter:它会让每栏自成层叠上下文,展开的说明卡(窄屏上往下盖到下一栏)会被下一栏压住 */+ [data-theme="light"] .flow__col { box-shadow: var(--glass-ring), var(--card-shadow); }+ [data-theme="light"] .flow__col--local {+ background: var(--grain), rgba(255, 255, 255, .8);+ box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--line-strong), 0 0 0 6px rgba(255, 255, 255, .6), 0 0 0 7px var(--line), var(--card-shadow);+ }+ .flow__title { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-weight: 600; }+ .flow__where { display: inline-flex; align-items: center; gap: 8px; }+ .flow__where .icon { color: color-mix(in srgb, var(--tint) 75%, var(--text)); }+ .flow__badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--tint); box-shadow: 0 0 8px var(--tint); }+ [data-theme="light"] .flow__badge i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tint) 18%, transparent); }+ .flow__title--sub { margin-top: 8px; padding-bottom: 0; border-bottom: 0; font-weight: 500; color: var(--text-2); font-size: var(--fs-sm); }+ .flow__nodes { display: grid; gap: 8px; }+ .flow__nodes li { position: relative; }+ .flow-node {+ display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-field);+ background: color-mix(in srgb, var(--text) 4%, transparent); box-shadow: inset 0 0 0 1px var(--line); text-align: left; font-size: var(--fs-body-sm); line-height: 1.4;+ transition: box-shadow var(--dur-fast), background var(--dur-fast);+ }+ .flow-node:hover { background: color-mix(in srgb, var(--text) 6%, transparent); box-shadow: inset 0 0 0 1px var(--line-strong); }+ /* 浅色:墨色 #161a00 偏黄绿,按百分比混出来的底会发一点橄榄灰;浅色下这类填充一律用中性冷灰 */+ [data-theme="light"] .flow-node { background: rgba(17, 24, 39, .035); }+ [data-theme="light"] .flow-node:hover { background: rgba(17, 24, 39, .055); }+ .flow-node[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tint) 70%, transparent); }+ .flow-node__ico { flex: none; width: 16px; height: 16px; color: var(--text-2); }+ .flow-node__label, .flow-node--big > span:first-child { flex: 1; min-width: 0; }+ .flow-node small { display: block; margin-top: 2px; color: var(--text-2); font-size: var(--fs-xs); }+ .flow-node--big { min-height: 64px; }+ .flow-node__plus { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-left: auto; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-2); font-family: var(--font-mono); transition: transform var(--dur-base) var(--ease-out); }+ .flow-node[aria-expanded="true"] .flow-node__plus { transform: rotate(45deg); }+ .flow-node__body { padding: 8px 14px 4px; color: var(--text-2); }+ html.js .flow-node__body {+ position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; right: 0; min-width: 240px; padding: 14px 16px;+ border-radius: var(--r-pop); background: var(--grain), var(--glass-strong); color: var(--text);+ -webkit-backdrop-filter: var(--glass-blur-lg); backdrop-filter: var(--glass-blur-lg); box-shadow: var(--glass-ring), 0 18px 44px -12px var(--shadow-c);+ animation: sheet-in var(--dur-base) var(--ease-out);+ }+ html.js .flow__col--vendor .flow-node__body { left: auto; right: 0; }+ /* 一根连线 = 标签(可选)+ 线。三行 1fr auto 1fr:上下两行等高,线永远落在这一列正中,和两边卡片的中线对齐 */+ .flow__wire { display: grid; grid-template-rows: 1fr auto 1fr; min-width: 64px; }+ .flow__line { grid-row: 2; position: relative; height: 40px; }+ .flow__line svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }+ .flow__path, .flow__arrow { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }+ .flow__path { stroke-dasharray: 4 6; }+ .flow__arrow { stroke: var(--text-2); }+ html.js .flow__wire { opacity: 0; transition: opacity .8s var(--ease-out); }+ html.js .flow.is-in .flow__wire { opacity: 1; }+ html.js .flow.is-in .flow__wire--2 { transition-delay: .5s; }+ html.js .flow.is-in .flow__path { animation: flow-march 1.4s linear infinite; }+ @keyframes flow-march { to { stroke-dashoffset: -20; } }+ .flow__wire-label { grid-row: 1; align-self: end; justify-self: center; margin-bottom: -8px; padding-inline: 12px; font-family: var(--font-mono); font-size: var(--fs-eyebrow); line-height: 1.4; color: var(--text-2); white-space: nowrap; }+ .flow__packet { position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--tint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tint) 18%, transparent), 0 0 14px var(--tint); opacity: 0; pointer-events: none; }+ .flow__wire--2 .flow__packet { background: var(--text-2); box-shadow: 0 0 0 4px var(--hover); }+ html.js .flow.is-in .flow__packet { animation: flow-packet 3.2s var(--ease-inout) 1.4s infinite; }+ html.js .flow.is-in .flow__wire--2 .flow__packet { animation-delay: 2.5s; }+ @keyframes flow-packet { 0% { left: 0; opacity: 0; } 10%, 55% { opacity: 1; } 66%, 100% { left: 92%; opacity: 0; } }+ @keyframes flow-packet-v { 0% { top: 0; opacity: 0; } 10%, 55% { opacity: 1; } 66%, 100% { top: 92%; opacity: 0; } }+ :lang(zh) .flow__wire-label { font-family: var(--font-sans); }+ @media (prefers-reduced-motion: reduce) { .flow__packet { display: none; } html.js .flow.is-in .flow__path { animation: none; } }+ @media (max-width: 1023px) {+ .flow { grid-template-columns: 1fr; }+ /* 竖排:线在正中(40px 宽),标签靠在线的右边 */+ .flow__wire { grid-template-rows: none; grid-template-columns: 1fr 40px 1fr; align-items: center; min-width: 0; }+ .flow__line { grid-area: 1 / 2; width: 40px; height: 56px; }+ .flow__line svg { width: 56px; height: 40px; margin: 8px 0 0 -8px; transform: rotate(90deg); transform-origin: 28px 20px; }+ .flow__wire-label { grid-area: 1 / 3; justify-self: start; align-self: center; margin: 0; padding-inline: 12px 0; }+ .flow__packet { left: 50%; top: 0; }+ html.js .flow.is-in .flow__packet { animation-name: flow-packet-v; }+ }++ /* —— 6 在哪都找得到它:一幅磨砂玻璃的产品合成图 + 一条玻璃底座 ——+ 这一节只讲"同一个机器人、同一份记忆,在哪都能找到它",用画面讲,不在页面上摆命令和步骤。+ 合成图:浏览器(左后)、桌面 App(正中、最大)、手机里的聊天软件(右前)三块屏幕错落叠放,显示同一段和天天的对话,+ 回答下面挂着同一条"记忆"标签——三处一模一样,就是"一份记忆"。+ 材质:屏幕是真正的磨砂玻璃——半透明(--glass)+ 背景模糊(--glass-blur-lg)+ 颗粒 + 顶边高光 + 一道斜向的反光;+ 三块屏幕叠得较深(App 压住浏览器的右三分之一、手机压住 App 的输入框),透过前面的玻璃能看到后面屏幕被磨砂的内容;+ 背后垫一层静止的柔光(.reach__lights:深色是天天的蓝和紫钻的紫两团很淡的光 + 一点白;浅色只用中性的冷灰和白),+ 玻璃才磨得出层次。屏幕里面再分层:App 的主面板、标签页、地址栏、输入框是更实一点的 --glass-strong。+ 底下一团静止的中性落影把三块屏幕放在同一张"桌面"上。不铺角色色的大面,只有记忆标签染一点天天的蓝。+ 界面照真实的样子画:浏览器有标签页(App 标志 + 名称)、前进后退和本机地址栏、左边一列机器人头像;+ App 有毛玻璃侧栏(红绿灯、新建、搜索、三行机器人:头像 + 名称 + 时间 + 岗位)、浮起的主面板(顶栏、对话、玻璃输入框:+ 加号、模型胶囊、发送);手机有灵动岛、状态栏(时间、信号、电量)、聊天软件的顶栏(返回、头像、名称 + 渠道)、日期、输入栏和底部横条。+ "我"的气泡是实心深色(浅色下是中性深灰,不用偏绿的墨色),发送键同色;黄绿不出现。+ 第一次滚进视口时三块屏幕依次升起,随后回答出现,最后三处的记忆标签同时亮起(内容的出现,不循环)。+ 入口:一条磨砂玻璃底座,四栏、栏与栏之间一根细线;悬停的那一栏铺一层淡底、图标片浮起一点、箭头往前走。+ 接入指南:对话框(--glass-strong),顶上一排标签,下面是命令或步骤;无 JS 时直接展开在页面里。+ 窄屏:合成图去掉浏览器,只留桌面 + 手机;手机上只留手机。底座两列 → 一列。 */+ .reach__stage { position: relative; isolation: isolate; height: 480px; max-width: 1100px; margin-inline: auto; }+ .reach__lights {+ position: absolute; inset: -80px -60px -40px; z-index: -1; pointer-events: none;+ background:+ radial-gradient(36% 46% at 34% 44%, color-mix(in srgb, var(--bot-blue-glow) calc(34% * var(--glow-k)), transparent), transparent 70%),+ radial-gradient(30% 42% at 74% 58%, color-mix(in srgb, var(--bot-purple-glow) calc(24% * var(--glow-k)), transparent), transparent 70%),+ radial-gradient(28% 32% at 56% 12%, rgba(255, 255, 255, .07), transparent 70%);+ }+ [data-theme="light"] .reach__lights {+ background:+ radial-gradient(38% 48% at 34% 44%, rgba(100, 116, 139, .18), transparent 70%),+ radial-gradient(32% 44% at 74% 58%, rgba(148, 163, 184, .22), transparent 70%),+ radial-gradient(30% 34% at 56% 12%, rgba(255, 255, 255, .95), transparent 70%);+ }+ .reach__stage::after {+ content: ""; position: absolute; left: 8%; right: 8%; bottom: -12px; z-index: -1; height: 48px; border-radius: 50%; pointer-events: none;+ background: radial-gradient(closest-side, var(--shadow-c), transparent); filter: blur(12px); opacity: .8;+ }+ .rs {+ --av: 0px;+ position: absolute; z-index: 1; display: flex; flex-direction: column; overflow: hidden;+ background: var(--grain), var(--glass); -webkit-backdrop-filter: var(--glass-blur-lg); backdrop-filter: var(--glass-blur-lg);+ box-shadow: var(--glass-ring), 0 0 0 1px rgba(0, 0, 0, .28), 0 50px 100px -44px var(--shadow-c-strong);+ }+ [data-theme="light"] .rs { box-shadow: var(--glass-ring), 0 0 0 1px rgba(17, 24, 39, .06), 0 44px 90px -44px var(--shadow-c-strong); }+ /* 一道斜向的反光:玻璃的边角比中间亮一点 */+ .rs::after { content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg, rgba(255, 255, 255, .07), transparent 34%); }+ [data-theme="light"] .rs::after { background: linear-gradient(135deg, rgba(255, 255, 255, .55), transparent 36%); }+ .rs--browser { --av: 30px; left: 0; top: 96px; width: 40%; height: 304px; border-radius: 14px; }+ .rs--app { --av: 34px; left: 21%; top: 0; z-index: 2; width: 55%; height: 420px; border-radius: 18px; }+ .rs--phone { left: calc(76% - 76px); top: 64px; z-index: 3; width: 226px; height: 412px; padding: 0 6px 6px; border-radius: 42px; }+ /* 灵动岛:深色下比屏幕更黑,浅色下是中性的深灰(不用偏绿的墨色) */+ .rs--phone::before { content: ""; position: absolute; top: 11px; left: 50%; z-index: 6; width: 72px; height: 22px; border-radius: 12px; translate: -50% 0; background: #050505; }+ [data-theme="light"] .rs--phone::before { background: rgba(17, 24, 39, .9); }++ .rs__dots { display: inline-flex; gap: 6px; }+ .rs__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(127, 127, 127, .42); }+ .rs__ib { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: var(--text-2); }+ .rs__ib--ring { border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); }++ /* 浏览器:标签页 → 工具条(前进后退 + 本机地址)→ 页面(左一列机器人头像 + 对话) */+ .rs__tabs { flex: none; display: flex; align-items: flex-end; gap: 14px; height: 34px; padding: 0 12px; }+ .rs__tabs .rs__dots { align-self: center; }+ .rs__tab { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px 0 10px; border-radius: 9px 9px 0 0; background: var(--grain), var(--glass-strong); box-shadow: inset 0 1px 0 var(--glass-hi); font-size: 11px; font-weight: 500; }+ .rs__tab .icon { margin-left: 8px; color: var(--text-2); }+ .rs__tab .amb-mark { --mark-size: 12px; --mark-plate: var(--text); --mark-eye: var(--bg); }+ .rs__bar { flex: none; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; background: var(--grain), var(--glass-strong); box-shadow: inset 0 -1px 0 var(--line); }+ .rs__nav { display: inline-flex; gap: 8px; color: var(--text-2); }+ .rs__url { flex: 1; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: var(--r-btn); background: color-mix(in srgb, var(--bg-sunken) 70%, transparent); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-mono); font-size: 10.5px; }+ .rs__url .icon { color: var(--ok); }+ .rs__port { color: var(--text-2); }+ .rs__page { flex: 1; min-height: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); }+ .rs__rail { display: grid; align-content: start; justify-items: center; gap: 8px; padding: 12px 0; box-shadow: inset -1px 0 0 var(--line); }+ .rs__dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; }+ .rs__dot.is-on { background: var(--grain), var(--glass-strong); box-shadow: var(--glass-ring); }++ /* 桌面 App:毛玻璃侧栏(就是窗口本身的玻璃)+ 浮起的主面板(更实一点的玻璃) */+ .rs__app { flex: 1; min-height: 0; display: grid; grid-template-columns: 35% minmax(0, 1fr); }+ .rs__side { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px 8px; }+ .rs__side-top { display: flex; align-items: center; justify-content: space-between; height: 26px; margin-bottom: 4px; padding: 0 2px 0 6px; }+ .rs__search { display: flex; align-items: center; gap: 6px; height: 26px; margin: 0 2px 8px; padding: 0 9px; border-radius: 8px; background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text-2); font-size: 11px; }+ [data-theme="light"] .rs__search { background: rgba(17, 24, 39, .05); }+ .rs__row { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 11px; }+ .rs__row.is-on { background: var(--grain), var(--glass-strong); box-shadow: var(--glass-ring), 0 8px 18px -12px var(--shadow-c); }+ .rs__row-body { display: grid; gap: 2px; flex: 1; min-width: 0; }+ .rs__row-line { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }+ .rs__row-line b { font-size: 11.5px; font-weight: 600; line-height: 1.25; }+ .rs__row-line small { color: var(--text-2); font-size: 9.5px; font-variant-numeric: tabular-nums; }+ .rs__snip { overflow: hidden; color: var(--text-2); font-size: 10.5px; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }+ .rs__main { display: flex; flex-direction: column; min-width: 0; margin: 8px 8px 8px 0; border-radius: 13px; overflow: hidden; background: var(--grain), var(--glass-strong); box-shadow: var(--glass-ring), 0 14px 34px -20px var(--shadow-c); }+ .rs__head { flex: none; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 12px; box-shadow: inset 0 -1px 0 var(--line); }+ .rs__head b { font-size: 12px; font-weight: 600; }+ .rs__grow { flex: 1; }+ .rs__composer { flex: none; display: grid; gap: 9px; margin: 0 10px 10px; padding: 10px 8px 8px 12px; border-radius: 15px; background: var(--grain), var(--glass); box-shadow: var(--glass-ring), 0 10px 24px -16px var(--shadow-c); }+ .rs__ph { overflow: hidden; color: var(--text-2); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }+ .rs__tools { display: flex; align-items: center; gap: 6px; }+ .rs__chip { display: inline-flex; align-items: center; gap: 3px; height: 22px; margin-left: auto; padding: 0 8px; border-radius: var(--r-btn); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 9.5px; }+ .rs__send { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--text); color: var(--bg); }+ .rs__send .icon { rotate: -90deg; }+ [data-theme="light"] :is(.rs__send, .rs__msg--me) { background: rgba(17, 24, 39, .9); color: var(--bg-raised); }++ /* 手机:状态栏 → 聊天软件的顶栏 → 对话 → 输入栏 → 底部横条 */+ .rs__status { flex: none; display: flex; align-items: center; gap: 6px; height: 42px; padding: 6px 20px 0 24px; font-size: 11px; }+ .rs__status b { margin-right: auto; font-weight: 600; font-variant-numeric: tabular-nums; }+ .rs__sig { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 9px; }+ .rs__sig i { width: 2.5px; border-radius: 1px; background: currentColor; }+ .rs__sig i:nth-child(1) { height: 3px; } .rs__sig i:nth-child(2) { height: 5px; } .rs__sig i:nth-child(3) { height: 7px; } .rs__sig i:nth-child(4) { height: 9px; }+ .rs__bat { position: relative; display: inline-flex; width: 21px; height: 10px; padding: 1.5px; border-radius: 3px; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 45%, transparent); }+ .rs__bat i { width: 72%; border-radius: 1.5px; background: currentColor; }+ .rs__bat::after { content: ""; position: absolute; right: -3px; top: 3px; width: 1.5px; height: 4px; border-radius: 0 1px 1px 0; background: color-mix(in srgb, currentColor 45%, transparent); }+ .rs__phone-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 12px 10px 6px; box-shadow: inset 0 -1px 0 var(--line); }+ .rs__back { rotate: 90deg; color: var(--text-2); }+ .rs__phone-head span { display: grid; gap: 1px; }+ .rs__phone-head b { font-size: 12.5px; font-weight: 600; line-height: 1.2; }+ .rs__phone-head small { color: var(--text-2); font-size: 10.5px; }+ .rs__day { justify-self: center; padding: 3px 9px; border-radius: var(--r-btn); background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text-2); font-size: 10px; }+ [data-theme="light"] .rs__day { background: rgba(17, 24, 39, .05); }+ .rs__input { flex: none; display: flex; align-items: center; gap: 8px; margin: 0 6px 6px; padding: 5px 12px 5px 5px; border-radius: var(--r-btn); background: var(--grain), var(--glass-strong); box-shadow: var(--glass-ring); }+ .rs__field { color: var(--text-2); font-size: 11px; }+ .rs__home { flex: none; align-self: center; width: 88px; height: 4px; margin: 2px 0 4px; border-radius: 2px; background: color-mix(in srgb, var(--text) 55%, transparent); }+ [data-theme="light"] .rs__home { background: rgba(17, 24, 39, .55); }++ /* 同一段对话:你的问题(实心深色气泡)→ 天天的回答 → 挂在回答下面的记忆标签(三块屏幕上一模一样) */+ .rs__thread { flex: 1; min-height: 0; display: grid; align-content: end; gap: 9px; padding: 14px 14px 12px; }+ .rs--phone .rs__thread { padding: 12px 10px 12px; }+ .rs__msg { max-width: 86%; margin: 0; padding: 8px 11px; border-radius: 14px; font-size: 12px; line-height: 1.45; }+ .rs--phone .rs__msg, .rs--browser .rs__msg { font-size: 11.5px; }+ .rs__msg--me { justify-self: end; border-bottom-right-radius: 4px; background: var(--text); color: var(--bg); }+ .rs__reply { display: flex; align-items: flex-end; gap: 8px; }+ .rs__reply .rs__msg { border-bottom-left-radius: 4px; background: color-mix(in srgb, var(--bg-sunken) 78%, transparent); box-shadow: inset 0 0 0 1px var(--line); }+ .rs__memo {+ justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 24px; margin: 0 0 0 var(--av); padding: 0 10px;+ border-radius: var(--r-btn); color: var(--text); font-size: 10.5px; font-weight: 500; white-space: nowrap;+ background: color-mix(in srgb, var(--bot-blue-glow) calc(14% * var(--glow-k)), transparent);+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bot-blue-glow) calc(45% * var(--glow-k)), transparent);+ }+ .rs__memo .icon { color: color-mix(in srgb, var(--bot-blue-glow) 70%, var(--text)); }+ @media (prefers-reduced-motion: no-preference) {+ html.js .reach__stage .rs { opacity: 0; translate: 0 32px; transition: opacity .8s var(--ease-out), translate .9s var(--ease-out); }+ html.js .reach__stage.is-in .rs { opacity: 1; translate: none; }+ html.js .reach__stage.is-in .rs--app { transition-delay: .12s; }+ html.js .reach__stage.is-in .rs--phone { transition-delay: .24s; }+ html.js .reach__stage :is(.rs__reply, .rs__memo) { opacity: 0; translate: 0 6px; transition: opacity .5s var(--ease-out), translate .5s var(--ease-out); }+ html.js .reach__stage.is-in .rs__reply { opacity: 1; translate: none; transition-delay: .8s; }+ html.js .reach__stage.is-in .rs__memo { opacity: 1; translate: none; transition-delay: 1.3s; }+ }++ /* 入口:一条磨砂玻璃底座,四栏;悬停的那一栏铺一层淡底、图标片浮起一点、箭头往前走 */+ .reach__ways {+ position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 64px 0 0; padding: 8px; list-style: none;+ border-radius: var(--r-feature); background: var(--grain), var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);+ box-shadow: var(--glass-ring), var(--card-shadow);+ }+ .reach__way { position: relative; display: grid; align-content: start; justify-items: start; gap: 8px; padding: 22px 22px 20px; border-radius: 18px; transition: background var(--dur-base); }+ .reach__way + .reach__way::before { content: ""; position: absolute; left: -4px; top: 22px; bottom: 22px; width: 1px; background: var(--line); }+ .reach__way:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }+ [data-theme="light"] .reach__way:hover { background: rgba(255, 255, 255, .7); }+ .reach__ico {+ display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 12px; color: var(--text);+ background: var(--grain), var(--glass-strong); box-shadow: var(--glass-ring), 0 8px 18px -12px var(--shadow-c);+ transition: translate var(--dur-base) var(--ease-out), box-shadow var(--dur-base);+ }+ .reach__way:hover .reach__ico { translate: 0 -2px; box-shadow: var(--glass-ring), 0 12px 24px -12px var(--shadow-c); }+ .reach__title { display: grid; gap: 4px; margin: 0; font-size: var(--fs-body-lg); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }+ :lang(zh) .reach__title { letter-spacing: 0; }+ .reach__title small { color: var(--text-2); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0; }+ .reach__body { color: var(--text-2); font-size: var(--fs-body-sm); line-height: 1.6; }+ .reach__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 0; color: var(--text); font-size: var(--fs-sm); font-weight: 500; text-decoration: underline 1px var(--line-strong); text-underline-offset: 4px; }+ .reach__link:hover { color: var(--text); text-decoration-color: currentColor; }+ .reach__link .icon { transition: translate var(--dur-fast) var(--ease-out); }+ .reach__way:hover .reach__link .icon { translate: 3px 0; }+ .devices__note { margin-top: var(--space-8); }++ /* 接入指南(对话框):顶上一排标签,选中的那枚是白玻璃 + 稍重的边;下面是这一项的命令或步骤 */+ dialog.reach-guide { width: min(640px, 100% - 32px); overflow-y: auto; }+ .reach-guide__tabs { display: flex; flex-wrap: wrap; gap: 8px; }+ .reach-guide__tab {+ display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 12px; border-radius: var(--r-btn);+ color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; box-shadow: inset 0 0 0 1px var(--line);+ transition: color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);+ }+ .reach-guide__tab:hover { color: var(--text); background: var(--hover); }+ .reach-guide__tab[aria-selected="true"] { color: var(--text); background: var(--grain), var(--glass); box-shadow: inset 0 0 0 1px var(--line-strong); }+ /* 还没上线的渠道:标签里一枚小号的 Coming soon */+ .reach-guide__soon { height: 20px; padding: 0 8px; margin-right: -4px; }+ .reach-guide__lead { color: var(--text-2); font-size: var(--fs-body-sm); line-height: 1.6; }+ .reach-guide__lead b { display: block; margin-bottom: 4px; color: var(--text); font-weight: 600; }+ .hub__panel { display: grid; justify-items: start; gap: 14px; }+ .hub__panel .code { width: 100%; }+ .hub__panel + .hub__panel { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); }+ html.js .hub__panel + .hub__panel { margin: 0; padding: 0; border: 0; }+ html.js .hub__panel:not(.is-on) { display: none; }+ html.js .hub__panel.is-on { animation: hub-in .4s var(--ease-out); }+ @keyframes hub-in { from { opacity: 0; translate: 0 8px; } }+ .hub__panel:focus-visible { outline-offset: 6px; border-radius: 12px; }+ .hub__steps { display: grid; gap: 12px; width: 100%; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; counter-reset: step; }+ .hub__steps li { position: relative; padding-left: 36px; font-size: var(--fs-body-sm); line-height: 1.6; counter-increment: step; }+ .hub__steps li::before {+ content: counter(step); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;+ box-shadow: inset 0 0 0 1px var(--line-strong); font-family: var(--font-mono); font-size: var(--fs-eyebrow); color: var(--text-2);+ }+ .hub__more { font-weight: 500; }+ .qr-sample { display: grid; justify-items: start; gap: 8px; margin: 0; }+ .qr-sample svg { padding: 8px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); fill: var(--text); }+ /* 无 JS 打不开对话框:直接展开在页面里,所有内容按顺序排着 */+ html:not(.js) dialog.reach-guide { position: static; display: block; width: auto; max-height: none; margin: 48px 0 0; }+ html:not(.js) .reach-guide .icon-btn { display: none; }++ @media (max-width: 1023px) {+ .reach__stage { height: 440px; }+ .rs--browser { display: none; }+ .rs--app { left: 0; width: 74%; }+ .rs--phone { left: auto; right: 0; }+ .reach__ways { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; }+ .reach__way:nth-child(3)::before { display: none; }+ .reach__way:nth-child(n + 3) { box-shadow: inset 0 1px 0 var(--line); border-radius: 0 0 18px 18px; }+ }+ @media (max-width: 767px) {+ .reach__stage { height: auto; display: grid; justify-items: center; padding-bottom: 8px; }+ .rs--app { display: none; }+ .rs--phone { position: relative; left: auto; right: auto; top: auto; width: min(270px, 82%); height: 420px; }+ .reach__ways { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }+ .reach__way + .reach__way::before { display: none; }+ .reach__way + .reach__way { box-shadow: inset 0 1px 0 var(--line); border-radius: 0 0 18px 18px; }+ }++ /* —— 7 常见问题:极简,不用卡片 ——+ 首页里的"安静段落":前面几节都是装在卡里的大示意,到这里只剩字和细线,读起来像一页排好版的问答。+ 左 4:闪闪和它头上的对话气泡(吸顶,不垫卡片),下面去文档的链接;打开哪个问题它就看向哪个(scripts/sections.ts)。+ 右 8:问题之间只有一根细线,顶上一根稍重的线收住整组;没有底色、没有圆角条。+ 每行:等宽编号 → 问题 → 右端一个"+",打开时转成"×";悬停时编号和"+"变成正文色、这一行的底线加深。+ 回答和问题的文字对齐,次要色、限宽,平滑展开(支持 ::details-content 的浏览器)。两个主题都只用细线和文字色,浅色不用另写底色。 */+ .faq-wrap { --faq-n: 40px; --faq-gap: 16px; interpolate-size: allow-keywords; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px var(--grid-gap); align-items: start; }+ .faq-wrap__aside { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; justify-items: start; gap: 12px; }+ .faq-wrap__bubble {+ position: relative; max-width: 15em; padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line);+ font-size: var(--fs-body-sm); line-height: 1.5;+ }+ [data-theme="light"] .faq-wrap__bubble { box-shadow: var(--glass-ring), 0 8px 20px -12px var(--shadow-c); }+ /* 气泡的小尾巴指向下面闪闪的头(120 的头像,头顶中心离左边 60) */+ .faq-wrap__bubble::after { content: ""; position: absolute; left: 44px; bottom: -6px; width: 12px; height: 12px; background: var(--bg-raised); box-shadow: inset -1px -1px 0 var(--line); rotate: 45deg; }+ .faq-wrap__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: var(--fs-body-sm); font-weight: 500; }+ .faq-wrap__more .icon { transition: translate var(--dur-fast) var(--ease-out); }+ .faq-wrap__more:hover .icon { translate: 3px 0; }+ .faq-wrap .faq { gap: 0; border-top: 1px solid var(--line-strong); }+ .faq-wrap .faq details { border-bottom: 1px solid var(--line); transition: border-color var(--dur-base); }+ .faq-wrap .faq details:hover, .faq-wrap .faq details[open] { border-bottom-color: var(--line-strong); }+ .faq-wrap .faq summary { display: grid; grid-template-columns: var(--faq-n) minmax(0, 1fr) 24px; align-items: baseline; gap: var(--faq-gap); min-height: 80px; padding: 24px 4px; }+ .faq-wrap .faq summary .icon { align-self: center; width: 20px; height: 20px; justify-self: end; color: var(--text-2); transition: transform var(--dur-base) var(--ease-out), color var(--dur-fast); }+ .faq-wrap .faq details[open] summary .icon { transform: rotate(45deg); }+ .faq__n { font-size: var(--fs-eyebrow); color: var(--text-2); transition: color var(--dur-fast); }+ .faq__q { font-size: var(--fs-lead); font-weight: 500; line-height: 1.45; letter-spacing: -.01em; }+ :lang(zh) .faq__q { letter-spacing: 0; }+ .faq-wrap .faq summary:hover :is(.faq__n, .icon), .faq-wrap .faq details[open] :is(.faq__n, summary .icon) { color: var(--text); }+ .faq-wrap .faq details > div { max-width: none; padding: 0 calc(24px + var(--faq-gap)) 28px calc(4px + var(--faq-n) + var(--faq-gap)); color: var(--text-2); font-size: var(--fs-body); line-height: 1.7; }+ .faq-wrap .faq details > div p { max-width: 60ch; }+ .faq-wrap .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }+ .faq-wrap .faq details[open]::details-content { block-size: auto; }+ @media (max-width: 1023px) {+ .faq-wrap { grid-template-columns: 1fr; }+ /* 窄屏:闪闪和气泡排成一行放在问答下面 */+ .faq-wrap__aside { position: static; order: 1; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "bot bubble" "bot more"; align-items: center; gap: 8px 20px; }+ .faq-wrap__bubble { grid-area: bubble; justify-self: start; border-radius: 18px 18px 18px 6px; }+ .faq-wrap__bubble::after { display: none; }+ .faq-wrap__bot { grid-area: bot; --s: 72px !important; }+ .faq-wrap__more { grid-area: more; margin-top: 0; }+ }+ @media (max-width: 767px) {+ .faq-wrap { --faq-n: 28px; --faq-gap: 10px; }+ .faq-wrap .faq summary { min-height: 64px; padding: 18px 0; }+ .faq-wrap .faq details > div { padding: 0 0 20px calc(var(--faq-n) + var(--faq-gap)); }+ }++ /* —— 8 收尾:和首屏呼应的大卡,跟着页面主题走 ——+ 从下往上:底色(上亮下沉)→ 顶上一束白光 → 一层星空(深色是小星点,浅色是几颗四角形的细小闪光;标题背后不放,往下渐隐)+ → 底边一道扁扁的"地平线"(比卡片再沉一点的地面,顶沿一线淡亮边、正中稍亮;浅色下顶沿上再压一根很淡的灰线)+ → 六个机器人站在地平线后面,只探出上半个头 → 颗粒。全部静止(背景层不做循环动画);悬停的机器人往上冒一点。+ 只用中性色:深色是冷黑、浅色是白和灰,不铺机器人色、不用黄绿——全卡只有下载按钮是品牌色。+ 高度收紧:不设最小高度,上下留白只够标题、按钮和底边的机器人;机器人 72(手机 50)。+ 桌面上卡片滚进来时百叶窗从下往上拉开,机器人跟着依次升上来(--p 由 scroll-fx.ts 写)。卡里有下载菜单,不加 backdrop-filter。 */+ .final { --shutter: var(--bg); }+ .final__banner {+ --fin-hz: 60px; /* 地平线顶沿离卡片底边的距离 */+ --fin-bot: 72px; /* 机器人的大小;露出地平线的是上面一半 */+ --fin-base: linear-gradient(180deg, #0d0e12, var(--bg-feature) 64%);+ --fin-beam: rgba(255, 255, 255, .085);+ --fin-star: #dfe6ff;+ /* 地面比页面底色(#060706)亮一档、上亮下沉:和浅色一样,卡片的底部要和页面分得开(原来 #07080a 和页面几乎同色,底部融成一片) */+ --fin-ground: linear-gradient(180deg, #16171d, #0e0f13 55%);+ --fin-edge: var(--line);+ --fin-rim: rgba(255, 255, 255, .14);+ --fin-rim-hi: rgba(255, 255, 255, .5);+ --fin-line: transparent;+ --fin-halo: rgba(255, 255, 255, .05);+ position: relative; display: grid; place-items: center;+ padding: clamp(56px, 6vw, 80px) 24px calc(var(--fin-hz) + var(--fin-bot) * .5 + clamp(32px, 4vw, 48px));+ border-radius: var(--r-banner); overflow: hidden; isolation: isolate; color: var(--text); text-align: center;+ background: var(--grain), radial-gradient(40% 70% at 50% -12%, var(--fin-beam), transparent 70%), var(--fin-base);+ box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .06);+ }+ [data-theme="light"] .final__banner {+ --fin-base: linear-gradient(180deg, #ffffff, #f7f8fa 70%);+ --fin-beam: #ffffff;+ --fin-star: #a3abc0;+ --fin-ground: #eef0f3;+ --fin-edge: var(--glass-edge);+ --fin-rim: #ffffff;+ --fin-rim-hi: #ffffff;+ --fin-line: rgba(17, 24, 39, .07);+ --fin-halo: rgba(17, 24, 39, 0);+ box-shadow: var(--glass-ring), inset 0 1px 0 #ffffff, 0 1px 2px rgba(17, 24, 39, .05), 0 30px 70px -36px rgba(17, 24, 39, .22);+ }+ /* 卡片的细边画在最上层(在地平线之上、百叶窗之下):卡片自己的 inset 描边画在底色那一层,+ 底部会被地平线(z 2)盖住——深色下底边和页面就融成了一片 */+ .final__banner::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--fin-edge); }+ .final__sky { position: absolute; inset: 0 0 auto; z-index: 0; height: 78%; color: var(--fin-star); pointer-events: none; -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }+ .final__sky svg { display: block; width: 100%; height: 100%; fill: currentColor; }+ .final__sky .glint, [data-theme="light"] .final__sky .dot { display: none; }+ [data-theme="light"] .final__sky .glint { display: inline; }+ /* 地平线:一个又宽又扁的椭圆(宽 180%,弧度很小,六个机器人站得一样高),顶沿压在卡片底边上方 --fin-hz */+ .final__horizon {+ position: absolute; left: 50%; top: calc(100% - var(--fin-hz)); z-index: 2; width: 180%; height: 420px; translate: -50% 0; border-radius: 50%; pointer-events: none;+ background: var(--fin-ground);+ box-shadow: inset 0 1px 0 var(--fin-rim), 0 -1px 0 var(--fin-line), 0 -36px 72px -36px var(--fin-halo);+ }+ .final__horizon::before {+ content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 1px 0 var(--fin-rim-hi);+ -webkit-mask-image: radial-gradient(22% 60px at 50% 0, #000, transparent); mask-image: radial-gradient(22% 60px at 50% 0, #000, transparent);+ }+ .final__inner { position: relative; z-index: 3; display: grid; justify-items: center; gap: 20px; }+ .final__banner .h2 { max-width: 14em; }+ .final__banner .lead { margin-top: -8px; }+ .final__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 24px; margin-top: 4px; }+ .final__cta .dl { justify-items: center; }+ .final__docker { color: var(--text); font-weight: 500; }+ .final__oss { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px; color: var(--text-2); }+ .final__oss a { display: inline-flex; align-items: center; gap: 4px; }+ /* 机器人:底边落在地平线下面一半个身位,地平线(z 2)盖住下半截,只露出眼睛那一半 */+ .final__bots { position: absolute; left: 0; right: 0; bottom: calc(var(--fin-hz) - var(--fin-bot) * .48); z-index: 1; display: flex; justify-content: center; gap: clamp(8px, 2.4vw, 28px); }+ .final__bot { display: block; transition: translate .5s var(--ease-out); }+ .final__bot:hover { translate: 0 -14px; }+ html.fx .final__bot { transform: translateY(calc((1 - var(--p, 1)) * (48px + var(--k) * 12px))); }+ .shutter { display: none; }+ html.fx .shutter { position: absolute; inset: 0; z-index: 4; display: grid; grid-template-rows: repeat(6, 1fr); pointer-events: none; }+ html.fx .shutter i { background: var(--shutter); box-shadow: 0 1px 0 var(--shutter); transform-origin: 50% 0; scale: 1 calc(1 - clamp(0, (var(--p, 1) - (5 - var(--i)) * .07) * 2.2, 1)); }+ @media (max-width: 767px) {+ .final__banner { --fin-hz: 48px; --fin-bot: 50px; padding-inline: 20px; }+ .final__bots { gap: 4px; }+ .final__bot .bot-face { --s: 50px !important; }+ .final__cta { flex-direction: column; width: 100%; }+ .final__cta :is(.dl, .dl__row, .split) { width: 100%; }+ .final__cta .split > .btn { flex: 1; }+ }+}diff --git a/site/src/styles/tokens.css b/site/src/styles/tokens.cssnew file mode 100644index 0000000..bdce45e--- /dev/null+++ b/site/src/styles/tokens.css@@ -0,0 +1,209 @@+@layer tokens, base, components, app, utilities;+/* 官网 token(§4)。深色为默认;浅色用 html[data-theme="light"]。+ 品牌色与 App 同值(ui/design/tokens/primitives.css):黄绿 #d7ff00 只做填充,浅色下文字与链接用橄榄 #5f711c。+ 浅色下主操作是墨色,黄绿只做墨色上的光(--signal-*)或柔黄绿 --lime-soft / 淡底 --accent-wash;组件只认语义 token(--primary、--tag-*、--hl-bg…)。+ 任何元素加 data-theme 都能让子树换一套(价格卡里主按钮上的标记靠 [data-on="accent"] 覆盖)。 */+@layer tokens {+ :root {+ color-scheme: dark;+ /* —— 尺度 —— */+ --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px;+ --space-12: 48px; --space-16: 64px; --space-24: 96px; --space-32: 128px;+ /* 版式节奏:章节上下留白 → 标题到内容 → 同一节里两大块之间 → 两栏之间 → 大卡片内边距 */+ --section-y: clamp(72px, 8vw, 112px); /* 一节的上下留白;两节之间是它的两倍(最宽 224) */+ --stack-head: clamp(40px, 4.4vw, 64px);+ --stack-block: clamp(56px, 7vw, 96px);+ --grid-gap: clamp(24px, 4vw, 48px);+ --card-pad: clamp(24px, 3.2vw, 44px);+ --container: 1200px;+ --gutter: clamp(20px, 5vw, 48px);+ --r-btn: 999px; --r-card: 20px; --r-feature: 24px; --r-banner: 32px; --r-shot: 16px;+ /* 小一档的圆角:弹出层(菜单、下拉、Toast)14 → 里面的行 10(外层 = 内层 + 4 的内边距);输入框、代码块、提示条 12 */+ --r-pop: 14px; --r-item: 10px; --r-field: 12px;+ --z-nav: 50; --nav-h: 64px; --z-float: 60; --z-toast: 70;++ /* —— 字体(规范见 README"排版规范") ——+ 只有两种:无衬线给标题、正文和标签;等宽只给模型 ID、命令、路径、文件名和数字。+ 等宽栈末尾带中文黑体:混进等宽元素的中文不会落到系统的等宽默认字体(Windows 上是新宋体)。 */+ --font-sans: "Geist", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;+ --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", monospace;+ /* 标题四级:display(只给 Hero)→ h2 章节 → title 块标题 → h3 卡片,相邻两级约 1.5–1.6 倍。+ 中文字面比拉丁字母满,标题小一档(-zh,约 ×0.86–0.9);h3 及以下中英同值。 */+ --fs-display: clamp(44px, 6vw, 84px);+ --fs-display-zh: clamp(40px, 5.2vw, 72px);+ --fs-h2: clamp(32px, 4.2vw, 56px);+ --fs-h2-zh: clamp(26px, 3.5vw, 48px);+ --fs-title: clamp(26px, 2.6vw, 36px);+ --fs-title-zh: clamp(24px, 2.3vw, 32px);+ --fs-h3: 22px;+ /* 大数字:价格卡、计算器结果(等宽、表格数字) */+ --fs-figure: clamp(36px, 3.4vw, 44px);+ /* 正文:lead(Hero / 章节说明、FAQ 问题)→ body-lg(功能卡说明、要点标题)→ body → body-sm(要点说明、名字)→ sm(界面文字)→ xs(注释) */+ --fs-lead: clamp(17px, 1.35vw, 19px);+ --fs-body-lg: 17px;+ --fs-body: 16px;+ --fs-body-sm: 15px;+ --fs-sm: 14px;+ --fs-xs: 12.5px;+ --fs-eyebrow: 12px;+ --fs-eyebrow-zh: 13px;+ --fs-code: 14px;++ /* —— 动效 —— */+ --dur-fast: 140ms; --dur-base: 240ms; --dur-slow: 600ms;+ --ease-out: cubic-bezier(.2, .8, .2, 1);+ --ease-inout: cubic-bezier(.65, 0, .35, 1);+ --rise: 16px;++ /* —— 毛玻璃(和 App 的材质同一套,ui/design/tokens/semantic.css):半透明底 + 背景模糊并提饱和 + 磨砂颗粒 + 顶边一线高光 + 细边。+ 颜色在下面两个主题里;组件写 background: var(--grain), var(--glass); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-ring) …+ 只给浮在内容上的东西用(导航、菜单、对话框、抽屉、Toast、胶囊、舞台上的卡片),铺满整节的大面不用。+ 浅色的层级从下往上:浅灰页面 + 一层静止的白光(base.css)→ 舞台卡(半透明白 + 颗粒,透出底下的白光;不做背景模糊,+ 背后只有很柔的光,模糊不出东西)→ 舞台上的卡片、浮层(--glass + 模糊)→ 浅灰凹槽 --bg-sunken(输入框、气泡、节点)。+ 浅色的底只用中性白 / 灰,不铺角色色和黄绿;投影一律中性冷灰、轻而散。 —— */+ --glass-blur: blur(20px) saturate(170%);+ --glass-blur-lg: blur(36px) saturate(180%);++ /* —— 品牌色(两个主题同值) —— */+ --lime: #d7ff00; --lime-hover: #e6ff4d; --lime-press: #c7ef00; --lime-200: #e9ff66;+ /* 柔黄绿 oklch(.935 .11 119):色相同品牌黄绿、彩度只有一半,白底上不发荧光(浅色的荧光笔、选区、手机里的用户气泡) */+ --lime-soft: #e1f59f;+ --ink: #161a00; --olive: #5f711c; --olive-700: #465612;++ /* —— 机器人角色(插画色,不作 UI 强调色;取自 App primitives) —— */+ --bot-blue-eye: #6dd4fb; --bot-blue-glow: #2a9dff;+ --bot-yellow-eye: #fcfcdc; --bot-yellow-glow: #ffc21a;+ --bot-green-eye: #b5fbd6; --bot-green-glow: #2ee88a;+ --bot-red-eye: #fc9379; --bot-red-glow: #ff3b2a;+ --bot-purple-eye: #fdc1fb; --bot-purple-glow: #c24dff;+ --bot-orange-eye: #fdd77c; --bot-orange-glow: #ff8c1a;+ --bot-blush: #ff7aa8; --bot-glint: rgba(255, 255, 255, .8);+ --bot-dizzy: #c0a6ff;++ /* —— Eyes 标记的动效参数(§4.5) —— */+ --mark-amp-x: 11; --mark-amp-y: 5;+ --mark-head-x: 2; --mark-head-y: 1; --mark-head-tilt: 4deg;+ --mark-idle-period: 7.2s; --mark-blink-period: 5.6s; --mark-follow-dur: 140ms;+ }++ /* —— 深色(默认) —— */+ :root, [data-theme="dark"] {+ --bg: #060706;+ --bg-raised: #0b0b10;+ --bg-sunken: #101110;+ --bg-feature: #0b0b10;+ --text: #fafaf7;+ --text-2: #a1a1aa;+ --accent: var(--lime);+ --accent-ink: var(--ink);+ --accent-fg: var(--lime);+ --accent-fg-strong: var(--lime-200);+ --accent-wash: rgba(215, 255, 0, .14);+ --glow-brand: color-mix(in srgb, var(--lime) 9%, transparent); /* 背景里的品牌光(公告条);浅色减到 6% */+ --glow-k: 1; /* 机器人色(舞台底光、选中态、示意图里的色块)的浓度系数:写成 calc(N% * var(--glow-k)),浅色 .55 */+ --line: rgba(255, 255, 255, .10);+ --line-strong: rgba(255, 255, 255, .18);+ --hover: rgba(255, 255, 255, .05);+ --ok: #6fd99b; --warn: #f2b544; --danger: #f28b82;+ --warn-wash: rgba(242, 181, 68, .12);+ --card-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);+ /* 导航:停在顶上时透明,滚动后铺 nav-bg(半透明 + 毛玻璃);pill 是链接下滑动的底色 */+ --nav-bg: rgba(6, 7, 6, .78);+ --nav-pill: rgba(255, 255, 255, .075);+ --mark-plate: var(--lime); --mark-eye: var(--ink); --mark-ring: transparent;+ --ring-plate: var(--bg-sunken); --ring-stroke: var(--lime); --ring-eye: var(--lime);+ --avatar-aura: 52%; --avatar-shadow: rgba(0, 0, 0, .5);+ --chip-on-bg: rgba(215, 255, 0, .14);+ --code-bg: #0e0f0e;+ --glass: rgba(18, 19, 18, .58); /* 浮在内容上的小件:胶囊、标签、舞台上的卡片 */+ --glass-strong: rgba(22, 23, 22, .8); /* 菜单、下拉、对话框、抽屉、Toast */+ --glass-edge: rgba(255, 255, 255, .09);+ --glass-hi: rgba(255, 255, 255, .07);+ --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='.05'/%3E%3C/svg%3E");++ /* —— 品牌色怎么落到界面上(两个主题各一套,规则见 README"配色") —— */+ /* 主操作:主按钮、分裂按钮右段、跳转链接。深色是黄绿底墨字 */+ --primary: var(--lime); --primary-hover: var(--lime-hover); --primary-press: var(--lime-press); --on-primary: var(--ink);+ --primary-divider: rgba(22, 26, 0, .25); /* 分裂按钮两段之间的细线 */+ --primary-mark-plate: var(--ink); --primary-mark-eye: var(--lime); /* 主操作色面上的 Eyes 标记 */+ /* 信号:小块实心的品牌记号(公告条的标签、手机 mock 的发送键) */+ --signal-bg: var(--lime); --signal-fg: var(--ink);+ /* 品牌标签:"默认""本地"这类会成排出现的徽标 */+ --tag-bg: var(--lime); --tag-fg: var(--ink); --tag-edge: transparent;+ /* 荧光笔、文字选区、手机 mock 里"我"的气泡 */+ --hl-bg: var(--lime);+ --bubble-me: var(--lime); --on-bubble-me: var(--ink);++ /* —— 浮层:菜单、下拉列表、气泡、Toast 的落影;对话框更重一档;遮罩 —— */+ --shadow-c: rgba(0, 0, 0, .5);+ --shadow-c-strong: rgba(0, 0, 0, .6);+ --scrim: rgba(0, 0, 0, .55);+ --on-danger: #3b0d0a; /* 危险色底上的字:深色的危险色是浅红,白字只有 2.4:1 */+ }++ /* —— 浅色 —— */+ [data-theme="light"] {+ color-scheme: light;+ /* 只用中性的白和灰分层(冷一点点,不偏黄、不偏绿):页面浅灰 → 舞台卡半透明白 → 卡片白玻璃 → 凹槽回到浅灰 */+ --bg: #f4f5f7;+ --bg-raised: #ffffff;+ --bg-sunken: #f1f2f5;+ --bg-feature: #fbfbfc;+ --text: #161a00;+ --text-2: #52525b;+ --accent: var(--lime);+ --accent-ink: var(--ink);+ --accent-fg: var(--olive);+ --accent-fg-strong: var(--olive-700);+ --accent-wash: #eff7d7; /* oklch(.962 .042 118):只给小块的标签、选中态,不铺成片 */+ --glow-brand: rgba(255, 255, 255, .9); /* 浅色下背景里不放黄绿光,只留一点白光 */+ --glow-k: .55;+ --line: rgba(17, 24, 39, .09);+ --line-strong: rgba(17, 24, 39, .16);+ --hover: rgba(17, 24, 39, .04);+ --ok: #189a58; --warn: #b45309; --danger: #d64545;+ --warn-wash: #fbf0df;+ --card-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 16px 40px -24px rgba(17, 24, 39, .12);+ --nav-bg: rgba(255, 255, 255, .72);+ --nav-pill: rgba(17, 24, 39, .05);+ --mark-plate: var(--ink); --mark-eye: var(--lime); --mark-ring: transparent;+ /* 浅色下 ring 变体 = solid */+ --ring-plate: var(--ink); --ring-stroke: transparent; --ring-eye: var(--lime);+ --avatar-aura: 18%; --avatar-shadow: rgba(17, 24, 39, .12); /* 浅底上角色光收一档,影子用中性冷灰 */+ --chip-on-bg: var(--accent-wash);+ --code-bg: #f3f4f6;+ --glass: rgba(255, 255, 255, .62);+ --glass-strong: rgba(255, 255, 255, .82);+ --glass-edge: rgba(17, 24, 39, .07);+ --glass-hi: rgba(255, 255, 255, .95);+ --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='.035'/%3E%3C/svg%3E");++ /* —— 品牌色怎么落到界面上:浅色下墨色负责操作,黄绿只做"墨色上的光"或一层很淡的底 ——+ #d7ff00 在白底上只有 1.15:1、彩度又极高,大面积铺开会发荧光;所以浅色里不再出现成块的纯黄绿 */+ /* 主操作:墨底白字(和 App 浅色主题的主按钮一致) */+ --primary: var(--ink);+ --primary-hover: color-mix(in oklch, var(--ink) 86%, white);+ --primary-press: color-mix(in oklch, var(--ink) 76%, white);+ --on-primary: #ffffff;+ --primary-divider: rgba(255, 255, 255, .16);+ --primary-mark-plate: var(--lime); --primary-mark-eye: var(--ink); /* 墨色按钮上的标记亮成一小块黄绿 */+ /* 信号:墨底 + 黄绿的光(和 Eyes 标记、App 的发送键同一种写法) */+ --signal-bg: var(--ink); --signal-fg: var(--lime);+ /* 品牌标签:淡底 + 深橄榄字 + 一圈细边(7.3:1),一表格成排出现也不刺眼 */+ --tag-bg: var(--accent-wash); --tag-fg: var(--olive-700); --tag-edge: color-mix(in srgb, var(--olive) 28%, transparent);+ /* 荧光笔、选区、"我"的气泡:柔黄绿 */+ --hl-bg: var(--lime-soft);+ --bubble-me: var(--lime-soft); --on-bubble-me: var(--ink);++ /* —— 浮层:浅色下投影是很轻的中性冷灰 rgba(17, 24, 39),散而淡(黑色 .5 在浅底上是一团脏灰,带墨绿又发脏) —— */+ --shadow-c: rgba(17, 24, 39, .1);+ --shadow-c-strong: rgba(17, 24, 39, .14);+ --scrim: rgba(17, 24, 39, .2);+ --on-danger: #ffffff;+ }++ /* 由上面的玻璃颜色推导:每个主题作用域都重算,局部 data-theme 的子树才拿得到自己的值 */+ :root, [data-theme] {+ --glass-ring: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--glass-edge);+ }+}diff --git a/site/src/styles/tour.css b/site/src/styles/tour.cssnew file mode 100644index 0000000..0c40433--- /dev/null+++ b/site/src/styles/tour.css@@ -0,0 +1,371 @@+@layer tokens, base, components, app, utilities;+/* 演示导览(components/DemoTour.astro 引入,只在首页)。时间线由 scripts/tour.ts 加 .on / data-step,这里只写状态,不写延迟。+ 舞台里的界面照 App 的原生样式画:App 的语义 token(ui/design/tokens/semantic.css)抄在 .tour__stage 的 --a-* 上,深浅两套,+ 字体也用 App 的系统字体;组件的尺寸、圆角、层次对照 ui/css/shell.css、chat.css、settings.css 和 ui/design/components。+ .on-fade / .on-rise 在 home.css(和"它能动手"的循环示意共用)。 */+@layer app {+ dialog.tour { width: min(920px, 100% - 32px); }++ /* —— 舞台:一块"桌面",App 窗口浮在上面(四周留 16) —— */+ .tour__viewport { position: relative; margin: 16px 24px 0; }+ .tour__stage {+ --a-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", "Microsoft YaHei UI", system-ui, sans-serif;+ --a-code: ui-monospace, "SF Mono", Menlo, Consolas, "Microsoft YaHei UI", monospace;+ --a-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='.05'/%3E%3C/svg%3E");+ --a-desk: radial-gradient(70% 90% at 12% 0%, #23262b, transparent 70%), radial-gradient(60% 80% at 100% 100%, #1b1d22, transparent 70%), #111214;+ --a-bg: #0c0c0c; --a-aura-brand: color-mix(in srgb, var(--lime) 8%, transparent); --a-aura: oklch(.4 .1 250 / .55); --a-aura-2: oklch(.4 .07 320 / .3);+ --a-surface: rgba(23, 23, 23, .86); --a-surface-solid: #151515;+ --a-glass-side: rgba(16, 16, 16, .4); --a-glass-float: rgba(42, 42, 42, .62); --a-glass-pop: rgba(36, 36, 36, .74); --a-glass-sheet: rgba(30, 30, 30, .86);+ --a-side-active: rgba(255, 255, 255, .09); --a-side-solid-on: #232323;+ --a-shadow-tile: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 2px rgba(0, 0, 0, .3);+ --a-pill: rgba(255, 255, 255, .065); --a-pill-hover: rgba(255, 255, 255, .095); --a-pill-press: rgba(255, 255, 255, .125);+ --a-well: rgba(255, 255, 255, .045); --a-bubble: rgba(255, 255, 255, .075); --a-sel: rgba(255, 255, 255, .08);+ --a-fg: #ececec; --a-fg2: #b4b4b4; --a-muted: #959595; --a-faint: #5a5a5a; --a-ctl: #a3a3a3; --a-placeholder: #707070;+ --a-line: rgba(255, 255, 255, .1); --a-line2: rgba(255, 255, 255, .065); --a-ctl-edge: rgba(255, 255, 255, .36);+ --a-green: #6fd99b; --a-green-soft: #1e3a2b; --a-amber: #f2b544; --a-red: #f28b82;+ --a-accent: var(--lime); --a-accent-soft: color-mix(in srgb, var(--lime) 14%, transparent); --a-accent-wash: color-mix(in srgb, var(--lime) 7%, transparent);+ --a-accent-solid: var(--lime); --a-on-accent: #161a00;+ --a-primary: var(--lime); --a-on-primary: #161a00; --a-primary-edge: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 2px rgba(0, 0, 0, .4);+ --a-send-bg: var(--lime); --a-send-fg: #161a00;+ --a-glass-ring: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 0 .5px rgba(255, 255, 255, .09);+ --a-shadow-md: 0 2px 8px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .42);+ --a-shadow-lg: 0 4px 14px rgba(0, 0, 0, .35), 0 28px 70px rgba(0, 0, 0, .6);+ --a-shadow-pane: 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 30px rgba(0, 0, 0, .35);+ --a-win-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 90px -30px #000, 0 18px 40px -20px rgba(0, 0, 0, .7);+ position: relative; height: 452px; overflow: hidden; border-radius: 18px; isolation: isolate;+ background: var(--a-desk); box-shadow: inset 0 0 0 1px var(--line);+ color: var(--a-fg); font-family: var(--a-font); font-size: 13px; line-height: 1.5; letter-spacing: 0; text-align: left;+ }+ [data-theme="light"] .tour__stage {+ --a-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='.035'/%3E%3C/svg%3E");+ --a-desk: radial-gradient(70% 90% at 12% 0%, #ffffff, transparent 70%), radial-gradient(60% 80% at 100% 100%, #e3e6ec, transparent 70%), #eceef2;+ --a-bg: #efefed; --a-aura-brand: color-mix(in srgb, var(--lime) 12%, transparent); --a-aura: oklch(.88 .06 250 / .85); --a-aura-2: oklch(.88 .04 320 / .47);+ --a-surface: rgba(255, 255, 255, .86); --a-surface-solid: #ffffff;+ --a-glass-side: rgba(255, 255, 255, .42); --a-glass-float: rgba(255, 255, 255, .68); --a-glass-pop: rgba(252, 252, 252, .74); --a-glass-sheet: rgba(255, 255, 255, .84);+ --a-side-active: rgba(255, 255, 255, .92); --a-side-solid-on: #fefefe;+ --a-shadow-tile: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 6px rgba(0, 0, 0, .035);+ --a-pill: rgba(0, 0, 0, .045); --a-pill-hover: rgba(0, 0, 0, .075); --a-pill-press: rgba(0, 0, 0, .1);+ --a-well: rgba(0, 0, 0, .04); --a-bubble: rgba(0, 0, 0, .05); --a-sel: rgba(0, 0, 0, .055);+ --a-fg: #1a1a1a; --a-fg2: #4d4d4d; --a-muted: #737373; --a-faint: #b3b3b3; --a-ctl: #5e5e5e; --a-placeholder: #949494;+ --a-line: rgba(0, 0, 0, .1); --a-line2: rgba(0, 0, 0, .06); --a-ctl-edge: rgba(0, 0, 0, .44);+ --a-green: #189a58; --a-green-soft: #e4f6ec; --a-amber: #b45309; --a-red: #d64545;+ --a-accent: #161a00; --a-accent-soft: color-mix(in srgb, var(--lime) 45%, transparent); --a-accent-wash: color-mix(in srgb, var(--lime) 14%, transparent);+ --a-accent-solid: var(--lime); --a-on-accent: #161a00;+ --a-primary: #161a00; --a-on-primary: #ffffff; --a-primary-edge: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(22, 26, 0, .28);+ --a-send-bg: #161a00; --a-send-fg: var(--lime);+ --a-glass-ring: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 .5px rgba(0, 0, 0, .08);+ --a-shadow-md: 0 2px 6px rgba(0, 0, 0, .05), 0 10px 28px rgba(0, 0, 0, .09);+ --a-shadow-lg: 0 4px 12px rgba(0, 0, 0, .06), 0 24px 60px rgba(0, 0, 0, .16);+ --a-shadow-pane: 0 0 0 1px rgba(0, 0, 0, .1), 0 1px 3px rgba(0, 0, 0, .04), 0 8px 30px rgba(0, 0, 0, .04);+ --a-win-shadow: 0 0 0 1px rgba(17, 24, 39, .12), 0 40px 90px -30px rgba(17, 24, 39, .3), 0 18px 40px -20px rgba(17, 24, 39, .16);+ }+ .tour__scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity var(--dur-base) var(--ease-out), visibility 0s var(--dur-base); }+ .tour__scene.is-active { opacity: 1; visibility: visible; transition: opacity var(--dur-base) var(--ease-out); }+ .tour__stage .tw-ic { flex: none; stroke-width: 1.6; }++ /* —— 按时间 / 按幕切换的几份内容叠在一起:后一份亮了前一份就让开 —— */+ .tour__stage .by-time { display: inline-grid; }+ .tour__stage .by-time > * { grid-area: 1 / 1; transition: opacity .3s var(--ease-out), visibility 0s; }+ html.js .tour__stage .by-time > [data-at]:not(.on), .tour__stage .by-time > :has(~ .on) { opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-out), visibility 0s .3s; }+ html:not(.js) .tour__stage .by-time > :not(:last-child) { opacity: 0; }++ /* 点击:按下缩一下,按钮正中扩一圈淡光(表示"这里被点了",只播一次) */+ .tw-press { position: relative; }+ .tw-press.on { animation: tw-press .42s var(--ease-out); }+ .tw-press.on::after { content: ""; position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: currentColor; opacity: 0; pointer-events: none; animation: tw-tap .55s var(--ease-out); }+ @keyframes tw-press { 35% { scale: .94; } }+ @keyframes tw-tap { 0% { opacity: .22; scale: .3; } 100% { opacity: 0; scale: 1.6; } }++ /* —— App 窗口(ui/css/shell.css):环境光(--bg + 左上品牌黄绿 + 左下 / 右上的色相光)上盖毛玻璃侧栏,主区是浮起的圆角面板 —— */+ .tw {+ position: absolute; inset: 16px; display: grid; grid-template-columns: 212px minmax(0, 1fr); overflow: hidden; border-radius: 12px;+ background: radial-gradient(70% 50% at 0% 0%, var(--a-aura-brand), transparent 72%), radial-gradient(60% 75% at 0% 100%, var(--a-aura), transparent 72%), radial-gradient(55% 60% at 100% 0%, var(--a-aura-2), transparent 70%), var(--a-bg);+ box-shadow: var(--a-win-shadow);+ }+ .tw--bare { grid-template-columns: minmax(0, 1fr); place-items: center; }+ .tw__lights { display: flex; gap: 8px; }+ .tw--bare > .tw__lights { position: absolute; left: 16px; top: 14px; }+ .tw__lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }+ .tw__lights i:nth-child(2) { background: #febc2e; }+ .tw__lights i:nth-child(3) { background: #28c840; }+ .tw-ib { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: var(--a-ctl); }+ .tw-ib--on { background: var(--a-side-active); box-shadow: var(--a-shadow-tile); color: var(--a-fg); }+ .tw-grow { flex: 1; }++ /* 侧栏:红绿灯 + 新建 → 搜索 → 机器人行(头像 + 名称 + 时间 + 一行预览)→ 账户。选中行是浮起的玻璃片 */+ .tw__side { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--a-grain), var(--a-glass-side); }+ .tw__top { display: flex; flex: none; align-items: center; justify-content: space-between; height: 46px; padding: 6px 10px 0 14px; }+ .tw__search { display: flex; flex: none; align-items: center; gap: 8px; height: 30px; margin: 0 8px 8px; padding: 0 10px; border-radius: 9px; background: var(--a-pill); color: var(--a-muted); font-size: 12.5px; }+ .tw__list { flex: 1; min-height: 0; display: grid; align-content: start; gap: 2px; padding: 2px 8px; }+ /* 直接子 span 默认横排(第 4 幕的两份内容就是两个裸 span);包在 :where() 里把权重降到和类名一样,+ 后面的 .tw-row__body(名称行 + 预览两行竖排)、.tw-row__av 才盖得过它——否则第 5、6 幕里名称和预览会被挤成一行叠在一起 */+ .tw-row, .tw-row > :where(span) { display: flex; align-items: center; gap: 10px; min-width: 0; }+ .tw-row { height: 52px; padding: 0 9px; border-radius: 11px; }+ .tw-row.by-time { display: grid; }+ .tw-row.is-sel { background: var(--a-side-active); box-shadow: var(--a-shadow-tile); }+ .tw-row__av { position: relative; flex: none; display: grid; }+ .tw-row__dot { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--a-green); box-shadow: 0 0 0 2px var(--a-side-solid-on); opacity: 0; scale: .3; transition: opacity .3s var(--ease-out), scale .4s cubic-bezier(.34, 1.56, .64, 1); }+ .tw-row__body { flex: 1; min-width: 0; display: grid; gap: 2px; } /* 名称行在上、预览在下,间距同 App 侧栏(.thread .body) */+ .tw-row__body b, .tw-row__line { min-width: 0; }+ .tw-row__body b { overflow: hidden; color: var(--a-fg); font-size: 13px; font-weight: 500; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }+ .tw-row__line { display: flex; align-items: baseline; gap: 8px; }+ .tw-row__line b { flex: 1; }+ .tw-row__line small { flex: none; color: var(--a-muted); font-size: 11px; }+ .tw-row__snip { display: grid; min-width: 0; color: var(--a-muted); font-size: 12px; line-height: 1.4; }+ .tw-row__snip > span, .tw-row__snip:not(:has(> span)) { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }+ .tw-row.is-sel .tw-row__snip { color: var(--a-fg2); }+ /* 干活时:选中行头像右下角亮一个呼吸的绿点,预览换成"正在工作…" */+ .by-busy > * { grid-area: 1 / 1; transition: opacity .3s var(--ease-out); }+ .by-busy > :last-child { opacity: 0; color: var(--a-green); }+ [data-step~="busy"] .by-busy > :first-child { opacity: 0; }+ [data-step~="busy"] .by-busy > :last-child { opacity: 1; }+ [data-step~="busy"] .tw-row__dot { opacity: 1; scale: 1; animation: tw-breathe 1.4s ease-in-out infinite; }+ .tw__acct { display: flex; flex: none; align-items: center; gap: 9px; height: 40px; margin: 8px; padding: 0 8px; border-radius: 11px; color: var(--a-muted); }+ .tw__me { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--a-pill); color: var(--a-fg2); font-size: 12px; font-weight: 600; }+ .tw__who { flex: 1; min-width: 0; display: grid; color: var(--a-fg); font-size: 12.5px; font-weight: 500; line-height: 1.35; white-space: nowrap; }+ .tw__who small { color: var(--a-muted); font-size: 11px; font-weight: 400; }++ /* 主区(ui/css/chat.css):顶栏 → 对话 → 玻璃输入框 */+ .tw__main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; margin: 8px 8px 8px 0; overflow: hidden; border-radius: 11px; background: var(--a-surface); box-shadow: var(--a-shadow-pane); }+ .tw-head { display: flex; flex: none; align-items: center; gap: 2px; height: 44px; padding: 0 8px; }+ .tw-head__bot { padding-left: 6px; }+ .tw-head__bot > span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }+ /* 对话流:底边对齐,新消息从下面撑开、旧的往上推 */+ .tw-log { flex: 1; min-height: 0; display: grid; align-content: end; overflow: hidden; padding: 0 clamp(18px, 7%, 44px) 10px; }+ .tw-item { display: grid; grid-template-rows: 1fr; }+ .tw-item > div { display: grid; min-height: 0; overflow: hidden; }+ .tw-item > div > * { margin-top: 12px; }+ html.js .tw-item:not(.tw-item--static) { transition: grid-template-rows .5s var(--ease-out), opacity .3s var(--ease-out); }+ html.js .tw-item:not(.tw-item--static, .on) { grid-template-rows: 0fr; opacity: 0; }+ .tw-time { justify-self: center; color: var(--a-muted); font-size: 11px; }+ .tw-time--note { padding: 2px 10px; border-radius: 999px; background: var(--a-pill); color: var(--a-fg2); }+ .tw-msg { margin: 0; color: var(--a-fg); font-size: 13.5px; line-height: 1.7; }+ .tw-msg--me { justify-self: end; max-width: 80%; padding: 7px 13px; border-radius: 18px; background: var(--a-bubble); line-height: 1.55; }+ /* 输出中:最后一段末尾一个慢慢呼吸的小点(App 的 .msg-row.live) */+ [data-step~="busy"] .tw-live::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .35em; border-radius: 50%; background: var(--a-muted); vertical-align: .08em; animation: tw-breathe 1.4s ease-in-out infinite; }+ /* 工作状态行:进行中是一道扫过的微光(表示"还在想 / 还在做"),结束换成"用时",底下一根细线 */+ .tw-work { margin: 0; padding-bottom: 6px; border-bottom: 1px solid var(--a-line2); color: var(--a-muted); font-size: 12px; }+ .tw-shimmer {+ color: transparent; -webkit-text-fill-color: transparent; -webkit-background-clip: text; background-clip: text;+ background-image: linear-gradient(90deg, var(--a-muted) 35%, var(--a-fg) 50%, var(--a-muted) 65%); background-size: 300% 100%;+ animation: tw-sheen 1.8s ease-in-out infinite;+ }+ /* 流里的一组(工具步骤、审批卡、文件):一块 --well,不描边、不加投影 */+ .tw-well { border-radius: 11px; background: var(--a-well); }+ .tw-steps { display: grid; gap: 5px; margin: 0; padding: 10px 12px; color: var(--a-fg2); font-size: 12.5px; list-style: none; }+ .tw-steps li { display: flex; align-items: center; gap: 8px; transition: opacity .3s var(--ease-out); }+ .tw-steps .tw-ic { color: var(--a-green); stroke-width: 2.2; transition: opacity .3s var(--ease-out), scale .4s cubic-bezier(.34, 1.56, .64, 1); }+ html.js .tw-steps li:not(.on) { opacity: .4; }+ html.js .tw-steps li:not(.on) .tw-ic { opacity: 0; scale: .3; }+ /* 审批卡(App 的 PromptCard):需要你的批准 · 编号 → 说明 → 命令 → 允许(仅本次)/ 拒绝;批了以后按钮收起,右上角出"已允许" */+ .tw-card { display: grid; gap: 8px; padding: 12px 14px; }+ .tw-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--a-muted); font-size: 11.5px; }+ .tw-badge { display: none; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--a-green-soft); color: var(--a-green); font-size: 11px; font-weight: 500; line-height: 20px; }+ .tw-card__q { color: var(--a-fg); font-size: 13.5px; font-weight: 600; line-height: 1.4; }+ .tw-card__cmd { overflow: hidden; color: var(--a-fg2); font-family: var(--a-code); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }+ .tw-card__acts { display: flex; gap: 8px; }+ .tw-card.on .tw-card__acts { display: none; }+ .tw-card.on .tw-badge { display: inline-block; }+ .tw-card.on .tw-card__q { color: var(--a-muted); }+ .tw-file { display: flex; align-items: center; gap: 10px; width: min(300px, 100%); padding: 9px 14px 9px 9px; }+ .tw-file .tw-ic { margin: 6px; color: var(--a-fg2); stroke-width: 1.3; }+ .tw-file > span { display: grid; min-width: 0; }+ .tw-file b { overflow: hidden; color: var(--a-fg); font-size: 13px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }+ .tw-file small { color: var(--a-muted); font-size: 11px; }++ /* 输入框:文字区 + 工具栏(加号 · 权限 | 模型 · 发送),一块浮在对话上的玻璃 */+ .tw-composer { display: grid; flex: none; margin: 0 clamp(12px, 4%, 30px) 12px; border-radius: 16px; background: var(--a-grain), var(--a-glass-float); box-shadow: var(--a-glass-ring), var(--a-shadow-md); }+ .tw-composer__ph { padding: 11px 14px 0; overflow: hidden; color: var(--a-placeholder); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }+ .tw-composer__bar { display: flex; align-items: center; gap: 4px; padding: 6px 7px 7px; }+ .tw-plus { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; color: var(--a-ctl); }+ .tw-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px 0 9px; border-radius: 999px; color: var(--a-ctl); font-size: 12px; white-space: nowrap; transition: background .2s var(--ease-out), color .2s var(--ease-out); }+ .tw-chip--model { color: var(--a-fg2); }+ [data-step~="pick"] .tw-chip--model { background: var(--a-pill-hover); color: var(--a-fg); }+ .tw-send { position: relative; display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--a-send-bg); color: var(--a-send-fg); box-shadow: var(--a-primary-edge); }+ .tw-send .tw-ic { stroke-width: 2.4; transition: opacity .25s var(--ease-out), scale .3s var(--ease-out); }+ .tw-send i { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: currentColor; opacity: 0; scale: .3; transition: opacity .25s var(--ease-out), scale .4s cubic-bezier(.34, 1.56, .64, 1); }+ [data-step~="busy"] .tw-send .tw-ic { opacity: 0; scale: .4; }+ [data-step~="busy"] .tw-send i { opacity: 1; scale: 1; }+ /* 模型选择器(App 的 .pop.model-picker):从模型胶囊往上弹,一块大半径模糊的玻璃 */+ .tw-pop {+ position: absolute; right: calc(clamp(12px, 4%, 30px) + 34px); bottom: 62px; z-index: 3; width: 236px; overflow: hidden; border-radius: 12px;+ background: var(--a-grain), var(--a-glass-pop); -webkit-backdrop-filter: blur(36px) saturate(180%); backdrop-filter: blur(36px) saturate(180%);+ box-shadow: var(--a-glass-ring), var(--a-shadow-lg);+ opacity: 0; visibility: hidden; translate: 0 6px; scale: .97; transform-origin: 70% 100%;+ transition: opacity .2s var(--ease-out), translate .3s var(--ease-out), scale .3s var(--ease-out), visibility 0s .3s;+ }+ [data-step~="pick"] .tw-pop { opacity: 1; visibility: visible; translate: none; scale: 1; transition: opacity .2s var(--ease-out), translate .35s cubic-bezier(.16, 1, .3, 1), scale .35s cubic-bezier(.16, 1, .3, 1); }+ .tw-pop__search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-bottom: 1px solid var(--a-line2); color: var(--a-placeholder); font-size: 12px; }+ .tw-pop ul { display: grid; margin: 0; padding: 4px; list-style: none; }+ .tw-pop li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; padding: 0 8px; border-radius: 8px; font-family: var(--a-font); font-size: 12.5px; transition: background .2s var(--ease-out); }+ .tw-pop .tw-pop__group { min-height: 20px; padding-top: 4px; color: var(--a-muted); font-size: 11px; font-weight: 600; }+ .tw-pop__cur { font-weight: 500; }+ .tw-pop__cur .tw-ic { color: var(--a-accent); }+ .tw-pop__go.on { background: var(--a-sel); }++ /* —— 按钮、输入框、提示(ui/design/components/button.css、field.css) —— */+ .tw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 8px; background: var(--a-pill); color: var(--a-fg); font-size: 12.5px; font-weight: 500; white-space: nowrap; }+ .tw-btn--primary { background: var(--a-primary); color: var(--a-on-primary); box-shadow: var(--a-primary-edge); }+ .tw-btn--lg { height: 36px; padding: 0 16px; border-radius: 10px; font-size: 13px; }+ .tw-btn--block { width: 100%; }+ .tw-field { display: flex; align-items: center; height: 30px; padding: 0 10px; border: 1px solid var(--a-ctl-edge); border-radius: 8px; color: var(--a-fg); font-size: 13px; transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out); }+ .tw-field--lg { height: 34px; border-radius: 10px; font-size: 13.5px; }+ .tw-field.on { border-color: var(--a-accent); box-shadow: 0 0 0 3px var(--a-accent-soft); }+ .tw-field__ph { color: var(--a-placeholder); }+ .tw-field:has(.tw-typed:not(:empty)) .tw-field__ph { display: none; }+ .tw-typed.mono { font-family: var(--a-code); font-size: 12.5px; }+ .tw-typed:not(:empty):not(.is-done)::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -.15em; background: var(--a-fg); }+ .tw-hint { color: var(--a-muted); font-size: 12px; line-height: 1.5; }+ .tw-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--a-green); }+ .tw-spin { flex: none; width: 13px; height: 13px; border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; border-radius: 50%; animation: tw-spin .8s linear infinite; }+ .tw-sheet { display: grid; gap: 9px; width: 100%; padding: 16px; border-radius: 14px; background: var(--a-grain), var(--a-glass-sheet); box-shadow: var(--a-glass-ring), var(--a-shadow-lg); text-align: left; }++ /* —— 1 下载安装 —— */+ .tdl { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; }+ .tdl .btn { pointer-events: none; }+ .tdl__bar { display: grid; gap: 8px; width: 300px; padding: 14px 16px; border-radius: 14px; background: var(--grain), var(--glass-strong); box-shadow: var(--glass-ring), 0 18px 40px -20px var(--shadow-c); color: var(--text); font-family: var(--font-sans); }+ .tdl__row { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); font-size: var(--fs-xs); }+ .tdl__pct { color: var(--text); font-variant-numeric: tabular-nums; }+ .tdl__bar > i { display: block; height: 6px; overflow: hidden; border-radius: 3px; background: var(--line); }+ .tdl__bar > i > b { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--text); }+ .tdl__app { z-index: 2; }++ /* —— 2–3 引导页(ui/css/settings.css 的 .onboard):大头像 + 一句话 + 登录按钮;登录后是一块玻璃卡片选模型 —— */+ .tob { position: relative; display: grid; justify-items: center; gap: 12px; width: min(300px, 100% - 32px); text-align: center; }+ .tob__title { color: var(--a-fg); font-size: 19px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }+ .tob__cta { width: 100%; }+ .tob__cta > * { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; }+ .tob__wait { color: var(--a-fg2); font-size: 12.5px; }+ .tob__ok { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--a-fg); font-size: 14px; font-weight: 600; }+ .tob__ok--lg { justify-content: flex-start; }+ .tob__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; color: var(--a-muted); font-size: 11.5px; transition: opacity .3s var(--ease-out); }+ .tob__links > span { display: inline-flex; align-items: center; gap: 4px; }+ .tob__links:has(.tob__off.on) { opacity: 0; }+ .tob--step { gap: 10px; width: min(340px, 100% - 32px); }+ .tob__mini { display: flex; align-items: center; gap: 8px; color: var(--a-fg); font-size: 14px; font-weight: 600; }+ .tour__stage .tw-pick { display: grid; margin: 0 -6px; }+ .tw-pick > div { display: grid; align-content: start; gap: 1px; }+ .tw-fam, .tw-opt { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 8px; color: var(--a-fg); font-size: 12.5px; }+ .tw-fam b { font-weight: 600; }+ .tw-fam__n { margin-left: auto; color: var(--a-muted); font-size: 11px; font-variant-numeric: tabular-nums; }+ .tw-fam .tw-ic { color: var(--a-muted); }+ .tw-group { padding: 4px 8px 2px; color: var(--a-muted); font-size: 11px; font-weight: 600; }+ .tw-opt { justify-content: space-between; font-family: var(--a-code); font-size: 12px; transition: background .2s var(--ease-out); }+ .tw-opt .tw-ic { color: var(--a-accent); opacity: 0; transition: opacity .2s var(--ease-out); }+ .tw-opt--pick.on { background: var(--a-sel); font-weight: 500; }+ .tw-opt--pick.on .tw-ic { opacity: 1; }+ /* 系统浏览器:盖在 App 上面的一扇小窗,授权完退下去 */+ .tbr {+ position: absolute; right: 7%; top: 12%; z-index: 4; width: 312px; overflow: hidden; border-radius: 12px;+ background: var(--a-surface-solid); box-shadow: 0 0 0 1px var(--a-line), var(--a-shadow-lg);+ opacity: 0; visibility: hidden; translate: 0 18px; scale: .97;+ transition: opacity .3s var(--ease-out), translate .45s var(--ease-out), scale .45s var(--ease-out), visibility 0s .45s;+ }+ .tbr.on { opacity: 1; visibility: visible; translate: none; scale: 1; transition: opacity .3s var(--ease-out), translate .45s cubic-bezier(.16, 1, .3, 1), scale .45s cubic-bezier(.16, 1, .3, 1); }+ .tbr:has(.tbr__out.on) { opacity: 0; visibility: hidden; translate: 0 -10px; scale: .98; transition: opacity .3s var(--ease-out), translate .4s var(--ease-out), scale .4s var(--ease-out), visibility 0s .4s; }+ .tbr__bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--a-line2); }+ .tbr__bar .tw__lights i { width: 10px; height: 10px; }+ .tbr__url { flex: 1; min-width: 0; height: 22px; padding: 0 10px; overflow: hidden; border-radius: 6px; background: var(--a-pill); color: var(--a-muted); font-family: var(--a-code); font-size: 11px; line-height: 22px; white-space: nowrap; text-overflow: ellipsis; }+ .tbr__body { display: grid; justify-items: start; gap: 8px; padding: 18px 20px 20px; }+ .tbr__brand { color: var(--a-fg); font-size: 13px; font-weight: 600; letter-spacing: -.01em; }+ .tbr__body b { color: var(--a-fg); font-size: 15px; font-weight: 600; line-height: 1.35; }+ .tbr__body small { color: var(--a-muted); font-size: 12px; line-height: 1.5; }+ .tbr__btn { display: inline-flex; align-items: center; height: 32px; margin-top: 6px; padding: 0 14px; border-radius: 8px; background: var(--a-fg); color: var(--a-surface-solid); font-size: 12.5px; font-weight: 500; }++ /* —— 4 新建机器人(ui/screens/new-bot.js):头像 → 标题 → 一排角色 → 名称 → 创建 → 模板 —— */+ .tnew { flex: 1; min-height: 0; display: grid; justify-items: center; align-content: start; gap: 8px; overflow: hidden; padding: 4px 24px 10px; }+ .tnew__face { display: grid; }+ .tnew__title { color: var(--a-fg); font-size: 17px; font-weight: 600; letter-spacing: -.015em; }+ .tnew__pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }+ .tav { display: grid; justify-items: center; gap: 2px; min-width: 52px; padding: 6px 4px 4px; border-radius: 9px; color: var(--a-muted); font-size: 11px; transition: background .25s var(--ease-out), color .25s var(--ease-out); }+ .tav--first, .tav.on { background: var(--a-pill-press); color: var(--a-fg); font-weight: 500; }+ .tnew__pick:has(.tav.on) .tav--first { background: none; color: var(--a-muted); font-weight: 400; }+ .tnew__field { display: grid; gap: 5px; width: min(320px, 100%); }+ .tnew__k { color: var(--a-fg2); font-size: 12px; font-weight: 500; }+ .tnew__go { min-width: 120px; }+ .tnew__go .by-time > * { display: inline-flex; align-items: center; gap: 6px; }+ .tnew__tpls { display: grid; gap: 8px; width: min(560px, 100%); margin-top: 4px; }+ .tnew__head { color: var(--a-fg); font-size: 13px; font-weight: 600; }+ .tnew__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }+ /* 模板卡:一块 --well;选中铺一层淡黄绿,图标亮成黄绿片(App 的 .tpl) */+ .tpl { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 9px; row-gap: 1px; align-content: start; padding: 10px; border-radius: 11px; background: var(--a-well); transition: background .25s var(--ease-out); }+ .tpl__ic { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--a-fg2); transition: background .25s var(--ease-out), color .25s var(--ease-out); }+ .tpl b { overflow: hidden; color: var(--a-fg); font-size: 12.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }+ .tpl small { display: -webkit-box; overflow: hidden; color: var(--a-muted); font-size: 11px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }+ .tpl--pick.on { background: var(--a-accent-wash); }+ .tpl--pick.on .tpl__ic { background: var(--a-accent-solid); color: var(--a-on-accent); }++ /* —— 7 在聊天软件里找它:左边接入卡,右边手机 —— */+ .tim { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 32px; padding: 16px; }+ .tim__card { width: 236px; justify-items: start; gap: 8px; padding: 18px; color: var(--a-fg); }+ .tim__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--a-well); color: var(--a-fg); }+ .tim__card b { font-size: 14px; font-weight: 600; }+ .tim__card small { color: var(--a-muted); font-size: 12px; line-height: 1.5; }+ .tim__bot { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 12px; width: 100%; border-top: 1px solid var(--a-line2); font-size: 12.5px; font-weight: 500; }+ .tim__bot .tw-dot { margin-left: auto; }+ .tour__phone { flex: none; width: 200px; aspect-ratio: 300 / 600; padding: 8px; border-radius: 30px; }+ .tour__phone .phone__screen { border-radius: 24px; }+ .tour__phone .phone__head { gap: 8px; padding: 10px 12px; }+ .tim__who { display: grid; line-height: 1.25; }+ .tim__who b { font-size: 13px; font-weight: 600; }+ .tim__who small { color: var(--text-2); font-size: 11px; font-weight: 400; }+ .tour__phone .phone__log { align-content: start; gap: 8px; padding: 12px 10px; }+ .tour__phone .phone__log .msg { font-size: 12.5px; }+ .tour__phone .phone__input { height: 34px; margin: 8px; font-size: 12px; }++ @keyframes tw-breathe { 50% { opacity: .35; scale: .8; } }+ @keyframes tw-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }+ @keyframes tw-spin { to { rotate: 360deg; } }+ @media (prefers-reduced-motion: reduce) {+ .tw-shimmer, .tw-spin, [data-step~="busy"] .tw-row__dot, [data-step~="busy"] .tw-live::after { animation: none; }+ .tw-press.on, .tw-press.on::after { animation: none; }+ }++ /* —— 两侧的箭头:前后翻一幕(悬停舞台时出现;触屏上常显) —— */+ .tour__arrow {+ position: absolute; top: 50%; z-index: 5; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; translate: 0 -50%;+ background: var(--grain), var(--glass-strong); color: var(--text); box-shadow: var(--glass-ring), 0 8px 20px -8px var(--shadow-c);+ -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);+ opacity: 0; transition: opacity var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out);+ }+ .tour__arrow--prev { left: 12px; }+ .tour__arrow--next { right: 12px; }+ .tour__viewport:hover .tour__arrow, .tour__arrow:focus-visible { opacity: 1; }+ .tour__arrow:hover { scale: 1.06; }+ .tour__arrow:active { scale: .96; }+ @media (hover: none) { .tour__arrow { opacity: 1; } }++ /* —— 步骤标签:编号 + 名称 + 这一幕的进度线;点哪一幕看哪一幕 —— */+ .tour__steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 12px 24px 0; }+ .tour__step {+ position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; height: 40px; padding: 0 10px 2px; border-radius: var(--r-item);+ color: var(--text-2); font-size: var(--fs-xs); text-align: left; transition: background var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);+ }+ .tour__step:hover { background: var(--hover); color: var(--text); }+ .tour__step[aria-selected="true"] { background: var(--grain), var(--glass); box-shadow: var(--glass-ring); color: var(--text); }+ .tour__step-n { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 11px; transition: background var(--dur-fast), color var(--dur-fast); }+ .tour__step[aria-selected="true"] .tour__step-n { background: var(--text); color: var(--bg); box-shadow: none; }+ .tour__step-t { min-width: 0; overflow: hidden; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }+ .tour__step-bar { position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; border-radius: 1px; background: linear-gradient(90deg, var(--text-2) calc(var(--p, 0) * 100%), transparent 0); opacity: .7; }+ .tour__step[aria-selected="true"] .tour__step-bar { background: linear-gradient(90deg, var(--text) calc(var(--p, 0) * 100%), var(--line) 0); opacity: 1; }++ /* 字幕:这一幕的名字 + 一句说明 */+ .tour__caption { margin: 12px 24px 0; min-height: 48px; }+ .tour__caption p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }+ .tour__caption b { margin-right: 8px; color: var(--text); font-weight: 600; }+ .tour__note { margin: 4px 24px 20px; }++ @media (max-width: 767px) {+ .tour__viewport { margin: 12px 12px 0; }+ .tour__stage { height: 400px; }+ .tw { inset: 8px; grid-template-columns: minmax(0, 1fr); }+ .tw__side, .tnew__tpls, .tim__card { display: none; }+ .tw__main { margin: 8px; }+ .tbr { left: 8%; right: 8%; width: auto; }+ .tour__steps { display: flex; gap: 4px; margin: 10px 12px 0; overflow-x: auto; scrollbar-width: none; }+ .tour__steps::-webkit-scrollbar { display: none; }+ .tour__step { flex: none; }+ .tour__step:not([aria-selected="true"]) .tour__step-t { display: none; }+ .tour__caption, .tour__note { margin-inline: 12px; }+ }+}diff --git a/site/src/views/ChangelogView.astro b/site/src/views/ChangelogView.astronew file mode 100644index 0000000..b2a7033--- /dev/null+++ b/site/src/views/ChangelogView.astro@@ -0,0 +1,17 @@+---+import Base from "../layouts/Base.astro";+import { dict, fmt, fmtDate, type Lang } from "../i18n";+import { releases, GITHUB_URL } from "../lib/site";+interface Props { lang: Lang }+const { lang } = Astro.props;+const t = dict(lang);+const c = t.changelog;+---+<Base lang={lang} path="/changelog" title={c.title} description={c.description}>+ <article class="container page prose">+ <header class="page__head"><h1>{c.h1}</h1></header>+ <p>{fmt(c.current, { version: releases.version, publishedAt: fmtDate(releases.publishedAt, lang) })}</p>+ <p>{c.body}</p>+ <p class="page__cta"><a class="btn btn--secondary" href={`${GITHUB_URL}/releases`} target="_blank" rel="noopener">{c.link}</a></p>+ </article>+</Base>diff --git a/site/src/views/DownloadView.astro b/site/src/views/DownloadView.astronew file mode 100644index 0000000..2c98299--- /dev/null+++ b/site/src/views/DownloadView.astro@@ -0,0 +1,85 @@+---+import Base from "../layouts/Base.astro";+import EyesMark from "../components/EyesMark.astro";+import Icon from "../components/Icon.astro";+import { dict, fmt, href, fmtDate, type Lang } from "../i18n";+import { releases, PLATFORMS, GITHUB_URL } from "../lib/site";+import "../styles/pages.css";+interface Props { lang: Lang }+const { lang } = Astro.props;+const t = dict(lang);+const d = t.download;+const published = fmtDate(releases.publishedAt, lang);+const verify = [+ { label: d.platform["win-x64"], cmd: d.verifyWin },+ { label: d.verifyUnixLabel, cmd: d.verifyUnix },+];+// 句子里的数值单独用等宽(句子本身是无衬线),值先转义再包 span+const mono = (x: string | number) => `<span class="mono">${String(x).replace(/[&<>"]/g, (c) => ({ "&": "&", "<": "<", ">": ">", '"': """ })[c]!)}</span>`;+---+<Base lang={lang} path="/download" title={`${d.pageTitle} — AnyModelBot`} description={d.pageDescription}>+ <div class="container page dl-page">+ <EyesMark size={96} class="dl-page__mark" lookAt="[data-dl-recommended]" />+ <header class="page__head">+ <h1>{d.pageTitle}</h1>+ <p class="lead">{d.pageLead}</p>+ {t.hero.appUiNote && <p class="small muted">{t.hero.appUiNote}</p>}+ </header>++ <ul class="dl-cards" role="list" data-placement="download-page">+ {PLATFORMS.map((p) => {+ const b = releases.platforms[p];+ return (+ <li class="card dl-card" data-dl-card={p}>+ <div class="dl-card__head">+ <h2 class="h3">{d.platform[p]} <span class="muted">· {d.arch[p]}</span></h2>+ </div>+ <a class="btn btn--primary" href={b.url} download data-dl-platform={p} data-on="accent"><Icon name="download" />{d.items[p]}</a>+ <p class="small muted" set:html={fmt(d.meta, { version: mono(releases.version), sizeMB: mono(b.sizeMB), publishedAt: mono(published) })} />+ <p class="small muted dl-card__label">{d.sha}</p>+ <div class="code"><code data-dl-sha>{b.sha256}</code><button type="button" class="copy-btn" data-copy-code><Icon name="copy" />{t.ui.copy}</button></div>+ {p.startsWith("linux") && <div class="code"><code>{d.linuxHint}</code><button type="button" class="copy-btn" data-copy-code><Icon name="copy" />{t.ui.copy}</button></div>}+ </li>+ );+ })}+ </ul>+ <p class="small muted page__aside">{d.macNote}</p>++ <section class="page__section" aria-labelledby="verify-h">+ <h2 id="verify-h">{d.verifyTitle}</h2>+ <dl class="dl-verify">+ {verify.map((x) => (+ <div>+ <dt class="small muted">{x.label}</dt>+ <dd class="code"><code>{x.cmd}</code><button type="button" class="copy-btn" data-copy-code><Icon name="copy" />{t.ui.copy}</button></dd>+ </div>+ ))}+ </dl>+ </section>++ <section class="page__section" id="docker" aria-labelledby="docker-h">+ <h2 id="docker-h">{d.dockerTitle}</h2>+ <div class="code"><code>{releases.platforms.docker.command}</code><button type="button" class="copy-btn" data-copy-code data-track="docker_cmd_copy" data-track-command="docker-run"><Icon name="copy" />{t.ui.copy}</button></div>+ <p class="small muted">{d.dockerToken}</p>+ <p class="warnbar"><b>⚠</b><span>{d.warn}</span></p>+ </section>++ <section class="page__section" aria-labelledby="cli-h">+ <h2 id="cli-h">{d.cliTitle}</h2>+ <p>{d.cliBody}</p>+ </section>++ <section class="page__section" aria-labelledby="rel-h">+ <h2 id="rel-h">{d.releases}</h2>+ <p><a href={`${GITHUB_URL}/releases`} target="_blank" rel="noopener">{GITHUB_URL}/releases</a> · <a href={href(lang, "/changelog")}>{d.changelog}</a></p>+ </section>+ </div>+ <script>+ // 推荐平台的卡片:给 Eyes 标记一个看的目标,卡片描边高亮+ import { detectPlatform } from "../lib/platform";+ detectPlatform().then((p) => {+ const id = p.os === "win" ? "win-x64" : p.os === "mac" ? (p.arch === "x64" ? "mac-x64" : "mac-arm64") : p.os === "linux" ? "linux-x64" : null;+ if (id) document.querySelector(`[data-dl-card="${id}"]`)?.setAttribute("data-dl-recommended", "");+ });+ </script>+</Base>diff --git a/site/src/views/Home.astro b/site/src/views/Home.astronew file mode 100644index 0000000..700aa95--- /dev/null+++ b/site/src/views/Home.astro@@ -0,0 +1,32 @@+---+// 首页八块,按"它是谁 → 能做什么 → 用什么模型、花多少 → 数据去哪 → 在哪用 → 疑问 → 下载"排列。+// 细节交给附属页:完整价格与计算器在 /pricing,安全长版在 /security,安装包与校验在 /download。+import Base from "../layouts/Base.astro";+import Hero from "../sections/Hero.astro";+import Bots from "../sections/Bots.astro";+import Handson from "../sections/Handson.astro";+import Models from "../sections/Models.astro";+import Flow from "../sections/Flow.astro";+import Devices from "../sections/Devices.astro";+import Faq from "../sections/Faq.astro";+import Final from "../sections/Final.astro";+import DemoTour from "../components/DemoTour.astro";+import { dict, type Lang } from "../i18n";+import { homeJsonLd } from "../lib/seo";+import "../styles/home.css";+import "../styles/sections.css";+interface Props { lang: Lang }+const { lang } = Astro.props;+---+<Base lang={lang} path="/" jsonLd={homeJsonLd(lang)}>+ <Hero lang={lang} />+ <Bots lang={lang} />+ <Handson lang={lang} />+ <Models lang={lang} />+ <Flow lang={lang} />+ <Devices lang={lang} />+ <Faq lang={lang} />+ <Final lang={lang} />+ <DemoTour lang={lang} />+ <script type="application/json" id="amb-quips" set:html={JSON.stringify(dict(lang).quips)} />+</Base>diff --git a/site/src/views/LicensesView.astro b/site/src/views/LicensesView.astronew file mode 100644index 0000000..5784908--- /dev/null+++ b/site/src/views/LicensesView.astro@@ -0,0 +1,20 @@+---+import Base from "../layouts/Base.astro";+import { dict, type Lang } from "../i18n";+import notices from "../data/third-party.md?raw";+import "../styles/pages.css";+interface Props { lang: Lang }+const { lang } = Astro.props;+const t = dict(lang);+const l = t.licenses;+---+<Base lang={lang} path="/licenses" title={l.title} description={l.description}>+ <article class="container page">+ <header class="page__head"><h1>{l.h1}</h1><p class="lead">{l.lead}</p></header>+ <pre class="licenses-md">{notices}</pre>+ <section class="prose">+ <h2>{l.site}</h2>+ <ul class="ticks" role="list">{l.siteItems.map((x) => <li>{x}</li>)}</ul>+ </section>+ </article>+</Base>diff --git a/site/src/views/NotFoundView.astro b/site/src/views/NotFoundView.astronew file mode 100644index 0000000..53eb0e8--- /dev/null+++ b/site/src/views/NotFoundView.astro@@ -0,0 +1,18 @@+---+import Base from "../layouts/Base.astro";+import EyesMark from "../components/EyesMark.astro";+import { dict, href, type Lang } from "../i18n";+import "../styles/pages.css";+interface Props { lang: Lang }+const { lang } = Astro.props;+const t = dict(lang);+---+<Base lang={lang} path="/404" title={t.notFound.title} noindex>+ <div class="container nf">+ <div>+ <EyesMark size={200} />+ <h1 class="h2">{t.notFound.h1}</h1>+ <a class="btn btn--primary" href={href(lang, "/")}>{t.notFound.home}</a>+ </div>+ </div>+</Base>diff --git a/site/src/views/PricingView.astro b/site/src/views/PricingView.astronew file mode 100644index 0000000..0f6271a--- /dev/null+++ b/site/src/views/PricingView.astro@@ -0,0 +1,12 @@+---+import Base from "../layouts/Base.astro";+import Pricing from "../sections/Pricing.astro";+import { dict, type Lang } from "../i18n";+import "../styles/pricing.css";+interface Props { lang: Lang }+const { lang } = Astro.props;+const t = dict(lang);+---+<Base lang={lang} path="/pricing" title={t.pricing.pageTitle} description={t.pricing.pageDescription}>+ <Pricing lang={lang} />+</Base>diff --git a/site/src/views/PrivacyView.astro b/site/src/views/PrivacyView.astronew file mode 100644index 0000000..13bd598--- /dev/null+++ b/site/src/views/PrivacyView.astro@@ -0,0 +1,16 @@+---+import Base from "../layouts/Base.astro";+import { dict, fmt, href, type Lang } from "../i18n";+import { SITE_DOMAIN } from "../lib/site";+interface Props { lang: Lang }+const { lang } = Astro.props;+const t = dict(lang);+const p = t.privacy;+---+<Base lang={lang} path="/privacy" title={p.title} description={p.description}>+ <article class="container page prose">+ <header class="page__head"><h1>{p.h1}</h1></header>+ {p.body.map((x) => <p>{fmt(x, { domain: SITE_DOMAIN })}</p>)}+ <p class="page__cta"><a href={href(lang, "/security")}>{p.security}</a></p>+ </article>+</Base>diff --git a/site/src/views/SecurityView.astro b/site/src/views/SecurityView.astronew file mode 100644index 0000000..9b3d7f1--- /dev/null+++ b/site/src/views/SecurityView.astro@@ -0,0 +1,36 @@+---+import Base from "../layouts/Base.astro";+import { dict, fmt, type Lang } from "../i18n";+import { SECURITY_EMAIL } from "../lib/site";+import "../styles/pages.css";+interface Props { lang: Lang }+const { lang } = Astro.props;+const t = dict(lang);+const s = t.security;+const n = t.flow.nodes;+const cmp = t.flow.compare;+const stays = (["chats", "memory", "workspace", "key", "console"] as const).map((k) => n[k]);+---+<Base lang={lang} path="/security" title={s.title} description={s.description}>+ <article class="container page prose">+ <header class="page__head"><h1>{s.h1}</h1><p class="lead">{s.lead}</p></header>+ <h2>{s.stays}</h2>+ <ul class="ticks" role="list">{stays.map((x) => <li><b>{x.label}</b> — {x.body}</li>)}</ul>+ <h2>{s.leaves}</h2>+ <ul class="ticks" role="list">{s.leavesItems.map((x) => <li>{x}</li>)}</ul>+ <p class="small page__aside"><a href={t.flow.retentionUrl} target="_blank" rel="noopener">{t.flow.retentionLink}</a></p>+ <h2>{cmp.caption}</h2>+ <div class="table-wrap compare">+ <table class="table">+ <thead><tr>{cmp.head.map((h, i) => (i === 0 ? <td></td> : <th scope="col">{h}</th>))}</tr></thead>+ <tbody>{cmp.rows.map((r) => <tr><th scope="row">{r[0]}</th><td data-label={cmp.head[1]}>{r[1]}</td><td data-label={cmp.head[2]}>{r[2]}</td></tr>)}</tbody>+ </table>+ </div>+ <p class="small muted page__aside">{cmp.note}</p>+ <h2>{s.guardsTitle}</h2>+ <ol class="ticks" role="list">{t.oss.facts.map((f) => <li>{f.text} <code class="small muted">{f.path}</code></li>)}</ol>+ <h2>{s.limitsTitle}</h2>+ <ul class="ticks" role="list">{s.limits.map((x) => <li>{x}</li>)}</ul>+ <p class="page__cta">{fmt(s.report, { email: SECURITY_EMAIL })}</p>+ </article>+</Base>diff --git a/site/tests/banner.test.ts b/site/tests/banner.test.tsnew file mode 100644index 0000000..d1fc9ad--- /dev/null+++ b/site/tests/banner.test.ts@@ -0,0 +1,79 @@+import { describe, expect, it } from "vitest";+import { buildBannerItems, edge, isPlaceholder, shortDate, type BannerSource } from "../src/lib/banner";+import { zh } from "../src/i18n/zh";+import { en } from "../src/i18n/en";+import type { Announcement } from "../src/data/announcements";++const NOW = Date.parse("2026-11-10T12:00:00+08:00");+const promo: Announcement = {+ id: "p1", kind: "promo",+ zh: { tag: "活动", text: "{modelCount} 个模型", cta: { label: "看价格", href: "/pricing" }, link: { label: "文档", href: "https://docs.example.com" } },+ en: { tag: "Promo", text: "{modelCount} models", cta: { label: "Pricing", href: "/pricing" } },+};+const src = (over: Partial<BannerSource> = {}, lang: "zh" | "en" = "zh"): BannerSource => ({+ announcements: [promo],+ release: { enabled: true, days: 30, highlights: { "0.2.0": { zh: "亮点", en: "Highlight" } } },+ releases: { version: "0.2.0", publishedAt: "2026-11-01T10:00:00+08:00" },+ t: (lang === "zh" ? zh : en).banner,+ vars: { modelCount: 42 },+ ...over,+});++describe("公告条:时间", () => {+ it("只写日期按北京时间补成整天", () => {+ expect(edge("2026-11-30", "start")).toBe("2026-11-30T00:00:00+08:00");+ expect(edge("2026-11-30", "end")).toBe("2026-11-30T23:59:59.999+08:00");+ expect(edge("2026-11-11T20:00+08:00", "end")).toBe("2026-11-11T20:00+08:00");+ expect(edge(undefined, "start")).toBeUndefined();+ });+ it("截止日期短写法", () => {+ expect(shortDate("2026-11-30", "zh")).toBe("11 月 30 日");+ expect(shortDate("2026-11-30T20:00+08:00", "en")).toBe("Nov 30");+ });+ it("部署占位符", () => {+ expect(isPlaceholder("{VERSION}")).toBe(true);+ expect(isPlaceholder("0.1.10")).toBe(false);+ });+});++describe("公告条:条目", () => {+ it("发版条排第一,用版本亮点,按钮去下载页、可换直链", () => {+ const [rel, p] = buildBannerItems("zh", src(), NOW);+ expect(rel).toMatchObject({ id: "release-0.2.0", kind: "release", tone: "accent", tag: "新版 v0.2.0", text: "亮点" });+ expect(rel.cta).toMatchObject({ href: "/download", dl: true });+ expect(rel.link?.href).toBe("/changelog");+ expect(Date.parse(rel.end!)).toBe(Date.parse("2026-12-01T10:00:00+08:00"));+ expect(p.id).toBe("p1");+ });+ it("没有亮点时用通用文案;英文页链接带 /en 前缀", () => {+ const [rel, p] = buildBannerItems("en", src({ release: { enabled: true, days: 30, highlights: {} } }, "en"), NOW);+ expect(rel.text).toBe("AnyModelBot 0.2.0 is out");+ expect(rel.cta?.href).toBe("/en/download");+ expect(p.cta).toMatchObject({ href: "/en/pricing", external: false });+ });+ it("版本是占位符、关掉了或过了展示期,就没有发版条", () => {+ const ids = (s: BannerSource) => buildBannerItems("zh", s, NOW).map((i) => i.id);+ expect(ids(src({ releases: { version: "{VERSION}", publishedAt: "{PUBLISHED_AT}" } }))).toEqual(["p1"]);+ expect(ids(src({ release: { enabled: false, days: 30, highlights: {} } }))).toEqual(["p1"]);+ expect(ids(src({ releases: { version: "0.2.0", publishedAt: "2026-09-01" } }))).toEqual(["p1"]);+ // 发布日期无效:一直显示+ expect(ids(src({ releases: { version: "0.2.0", publishedAt: "{PUBLISHED_AT}" } }))).toEqual(["release-0.2.0", "p1"]);+ });+ it("宣传条:替换构建变量、默认配色、外链标记", () => {+ const p = buildBannerItems("zh", src(), NOW)[1];+ expect(p).toMatchObject({ tone: "promo", tag: "活动", text: "42 个模型" });+ expect(p.link).toMatchObject({ href: "https://docs.example.com", external: true });+ expect(p.note).toBeUndefined();+ });+ it("时间窗:过期的不输出,没开始的输出(浏览器到点再显示),countdown 带截止日期", () => {+ const list: Announcement[] = [+ { ...promo, id: "old", end: "2026-11-09" },+ { ...promo, id: "today", end: "2026-11-10", countdown: true },+ { ...promo, id: "later", kind: "notice", start: "2026-11-20" },+ ];+ const items = buildBannerItems("zh", src({ announcements: list, release: { enabled: false, days: 30, highlights: {} } }), NOW);+ expect(items.map((i) => i.id)).toEqual(["today", "later"]);+ expect(items[0].note).toBe("截至 11 月 10 日");+ expect(items[1]).toMatchObject({ tone: "neutral", start: "2026-11-20T00:00:00+08:00" });+ });+});diff --git a/site/tests/eyefield.test.ts b/site/tests/eyefield.test.tsnew file mode 100644index 0000000..357675d--- /dev/null+++ b/site/tests/eyefield.test.ts@@ -0,0 +1,123 @@+// 页脚眼睛田的纯逻辑:排法、采样、目光、眨眼、配色、挑模型名+import { describe, expect, it } from "vitest";+import { aim, blinkLid, blinkSpan, cellSize, easeOutBack, EYE_TOKENS, hexToRgb, lens, mixHex, pickColor, pickModels, PLATE_TOKENS, rng, sampleCells, wordLines } from "../src/lib/eyefield";++describe("wordLines", () => {+ it("扁的画布(宽屏 7.4:1)排一行,接近方形(手机 1.3:1)排三行", () => {+ expect(wordLines(1200, 194)).toEqual(["AnyModelBot"]);+ expect(wordLines(343, 264)).toEqual(["Any", "Model", "Bot"]);+ });+});++describe("cellSize", () => {+ it("按字高分格并限幅", () => {+ expect(cellSize(120, 8)).toBe(15);+ expect(cellSize(40, 8)).toBe(9); // 太小看不出眼睛+ expect(cellSize(400, 8)).toBe(20); // 太大字形粗糙+ });+});++describe("sampleCells", () => {+ it("只取覆盖过半的格子,格子中心落在格内,整体居中", () => {+ // 左半边全实心的 100×40 遮罩,格子 10px → 4 行 × 5 列(左半边)+ const cells = sampleCells(100, 40, 10, (x) => (x < 50 ? 1 : 0));+ expect(cells).toHaveLength(20);+ expect(Math.max(...cells.map((c) => c.x))).toBe(45);+ expect(cells[0]).toMatchObject({ x: 5, y: 5, col: 0, row: 0 });+ });+ it("放不下整格的余量平均分到两边", () => {+ const cells = sampleCells(105, 10, 10, () => 1);+ expect(cells[0].x).toBeCloseTo(7.5);+ });+});++describe("aim", () => {+ it("目光向量的长度不超过 1,方向朝目标", () => {+ const [x, y] = aim(-1000, 0, 420);+ expect(x).toBeCloseTo(-1);+ expect(y).toBeCloseTo(0);+ const [a, b] = aim(30, 40, 420);+ expect(Math.hypot(a, b)).toBeLessThan(1);+ expect(a / b).toBeCloseTo(0.75);+ });+ it("目标就在脸上时朝正前方", () => expect(aim(0.2, 0.2, 420)).toEqual([0, 0]));+});++describe("lens", () => {+ it("指针正中是 1,半径外是 0", () => {+ expect(lens(0, 60)).toBe(1);+ expect(lens(60, 60)).toBe(0);+ expect(lens(30, 60)).toBeCloseTo(0.25);+ });+});++describe("blinkLid", () => {+ it("一次眨眼:两头睁开、中间几乎闭上", () => {+ expect(blinkLid(0)).toBe(1);+ expect(blinkLid(0.5)).toBeCloseTo(0.08);+ expect(blinkLid(1.5)).toBe(1);+ });+ it("连眨两下时,第二下在 1.25–2.25", () => {+ expect(blinkLid(1.75, true)).toBeCloseTo(0.08);+ expect(blinkSpan(true)).toBe(2.25);+ expect(blinkSpan(false)).toBe(1);+ });+});++describe("easeOutBack", () => {+ it("从 0 到 1,中途略超过 1(弹出来)", () => {+ expect(easeOutBack(0)).toBe(0);+ expect(easeOutBack(1)).toBe(1);+ expect(easeOutBack(0.7)).toBeGreaterThan(1);+ });+});++describe("pickColor", () => {+ it("七成用主色,其余是别的颜色、不会撞回主色", () => {+ const n = EYE_TOKENS.length;+ expect(pickColor(2, n, 0.1, 0.9)).toBe(2);+ for (let k = 0; k < 20; k++) {+ const c = pickColor(2, n, 0.95, k / 20);+ expect(c).not.toBe(2);+ expect(c).toBeGreaterThanOrEqual(0);+ expect(c).toBeLessThan(n);+ }+ });+});++describe("pickModels", () => {+ it("每家厂商取第一个,保持顺序,最多 n 个", () => {+ const rows = [+ { model: "a-1", vendor: "A" }, { model: "a-2", vendor: "A" },+ { model: "b-1", vendor: "B" }, { model: "c-1", vendor: "C" },+ ];+ expect(pickModels(rows)).toEqual(["a-1", "b-1", "c-1"]);+ expect(pickModels(rows, 2)).toEqual(["a-1", "b-1"]);+ });+});++describe("rng", () => {+ it("同一个种子排出同样的田", () => {+ const a = rng(7), b = rng(7);+ expect([a(), a(), a()]).toEqual([b(), b(), b()]);+ expect(a()).toBeLessThan(1);+ });+});++describe("浅色的淡彩面罩", () => {+ it("面罩色和眼睛色一一对应同一个角色", () => {+ expect(PLATE_TOKENS).toHaveLength(EYE_TOKENS.length);+ PLATE_TOKENS.forEach((t, i) => expect(t.replace("-glow", "")).toBe(EYE_TOKENS[i].replace("-eye", "")));+ });+ it("hexToRgb 认 #rgb / #rrggbb,别的返回 null", () => {+ expect(hexToRgb("#fff")).toEqual([255, 255, 255]);+ expect(hexToRgb(" #2a9dff ")).toEqual([42, 157, 255]);+ expect(hexToRgb("rgba(0,0,0,.5)")).toBeNull();+ });+ it("mixHex 按比例调进底色;认不出来就返回底色", () => {+ expect(mixHex("#000000", "#ffffff", 0)).toBe("#ffffff");+ expect(mixHex("#000000", "#ffffff", 1)).toBe("#000000");+ expect(mixHex("#2a9dff", "#fafaf7", 0.32)).toBe("#b7dcfa");+ expect(mixHex("oops", "#fafaf7", 0.5)).toBe("#fafaf7");+ });+});diff --git a/site/tests/eyes.test.ts b/site/tests/eyes.test.tsnew file mode 100644index 0000000..388f147--- /dev/null+++ b/site/tests/eyes.test.ts@@ -0,0 +1,43 @@+// Eyes 标记的目光数学(§7.10):限幅、正左、正中心+import { describe, expect, it, vi } from "vitest";++vi.stubGlobal("matchMedia", () => ({ matches: false, addEventListener() {} }));+const { aim, aimFace } = await import("../src/lib/eyes");++const rect = (size: number) => ({ left: 500, top: 500, width: size, height: size });+const c = (size: number) => 500 + size / 2;++describe("aim", () => {+ it("指针在标记正左 300px:look-x ≤ −0.9", () => {+ // 导航 24px、页脚 48px、H1 内联约 70px(360px 的大插画满偏半径是 520px,300px 处约 −0.82,属预期)+ for (const s of [24, 48, 70]) {+ const [x, y] = aim(rect(s), c(s) - 300, c(s));+ expect(x).toBeLessThanOrEqual(-0.9);+ expect(Math.abs(y)).toBeLessThan(1e-9);+ }+ });+ it("指针在标记中心:|x|、|y| < 0.05", () => {+ const [x, y] = aim(rect(48), c(48) + 1, c(48) - 1);+ expect(Math.abs(x)).toBeLessThan(0.05);+ expect(Math.abs(y)).toBeLessThan(0.05);+ });+ it("任意位置 hypot(x, y) ≤ 1", () => {+ for (let i = 0; i < 2000; i++) {+ const s = 16 + Math.random() * 400;+ const [x, y] = aim(rect(s), Math.random() * 3000 - 1000, Math.random() * 3000 - 1000);+ expect(Math.hypot(x, y)).toBeLessThanOrEqual(1 + 1e-9);+ }+ });+});++describe("aimFace(与 App 的 BotAvatar 相同的衰减)", () => {+ it("远处不看", () => {+ expect(aimFace(rect(72), 4000, 4000)).toEqual([0, 0]);+ });+ it("近处看过去且不越界", () => {+ const [x, y] = aimFace(rect(72), c(72) + 40, c(72));+ expect(x).toBeGreaterThan(0);+ expect(x).toBeLessThanOrEqual(1);+ expect(y).toBeCloseTo(0, 6);+ });+});diff --git a/site/tests/fixtures/pricing-2026-10-30.json b/site/tests/fixtures/pricing-2026-10-30.jsonnew file mode 100644index 0000000..785c895--- /dev/null+++ b/site/tests/fixtures/pricing-2026-10-30.json@@ -0,0 +1 @@+{"billing_denomination_version":2,"data":[{"id":14,"model_name":"claude-sonnet-5","icon":"Claude.Color","vendor_id":1,"context_window":1000000,"quota_type":0,"input_price":2,"model_ratio":1,"model_price":0,"owner_by":"","completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"enable_groups":["claude-award","claude-first-topup","claude-premium","claude-stable","claude-tmp-cheap"],"supported_endpoint_types":["anthropic","openai"],"pricing_version":"20260617-model-input-price-v1"},{"id":33,"model_name":"glm-5.3-flash","vendor_id":4,"context_window":1000000,"quota_type":0,"input_price":0.11428571428571428,"model_ratio":0.05714285714285714,"model_price":0,"owner_by":"","completion_ratio":3.5,"cache_ratio":0.2875,"enable_groups":["glm-stable","glm-award"],"supported_endpoint_types":["openai","openai-response","anthropic","gemini"]},{"model_name":"gemini-3.8-flash-high","vendor_id":12,"quota_type":0,"input_price":1.5,"model_ratio":0.75,"model_price":0,"owner_by":"","completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":0.6666666666666666,"enable_groups":["gemini-stable"],"supported_endpoint_types":["openai"],"billing_mode":"tiered_expr","pricing_rules":{"version":1,"tiers":[{"label":"base","conditions":null,"unit_prices":{"cache_read":0.15,"cache_write":1,"input":1.5,"output":7.5}}],"request_rules":[],"has_request_rules":false,"complete":true}},{"model_name":"wan2.7-image","vendor_id":8,"quota_type":1,"input_price":0,"model_ratio":0,"model_price":0.021192600000000002,"official_model_price":0.04004,"owner_by":"","completion_ratio":0,"enable_groups":["Media"],"supported_endpoint_types":["image-generation"],"billing_unit":"per_call","sale_price_multiplier":0.5292857142857144,"media_options":{"image":{"sizes":["1K","2K"],"default_size":"2K","max_outputs":12,"max_references":9}},"contract_id":"media.wan2-7-image.v1","contract_version":"v1","contract_fingerprint":"37190bffce54c9ca3798ec5be9345928603c19e05aa2283900c9108169f02bc7","pricing_ref":"mediacatalog:wan2.7-image","contract":{"contract_id":"media.wan2-7-image.v1","model":"wan2.7-image","type":"image","version":"v1","fingerprint":"37190bffce54c9ca3798ec5be9345928603c19e05aa2283900c9108169f02bc7","media_options":{"image":{"sizes":["1K","2K"],"default_size":"2K","max_outputs":12,"max_references":9}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"size","required":false,"type":"string"},{"name":"n","required":false,"type":"number"},{"items":"asset","name":"reference_asset_ids","required":false,"type":"array"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"size","options":["1K","2K"]},{"control":"number","field":"n","max":12,"min":1}]},"semantic_rules":[{"kind":"allowed_values","path":"size","values":["1K","2K"]},{"kind":"max_assets","path":"reference_asset_ids","value":9}],"adapter":{"id":"image.wan.v1","version":"v1","wire_path":"/v1/images/generations","wire_options":{"nested_messages":true}},"pricing_ref":"mediacatalog:wan2.7-image","source":{"publisher":"Alibaba Cloud Model Studio","url":"https://help.aliyun.com/zh/model-studio/wan-video-generation","kind":"official"},"docs":{"path":"/models/image/wan2-7-image/","slug":"wan2-7-image"},"examples":["examples/text.json","examples/reference.json"]}},{"model_name":"wan3.0-video-prime","vendor_id":8,"quota_type":1,"input_price":0,"model_ratio":0,"model_price":0,"owner_by":"","completion_ratio":0,"enable_groups":["Media"],"supported_endpoint_types":["openai-video"],"billing_mode":"video_resolution","billing_unit":"per_second","video_resolution_price":{"1080p":0.3094,"480p":0.07514,"720p":0.1547},"official_video_resolution_price":{"1080p":0.28,"480p":0.068,"720p":0.14},"sale_price_multiplier":1.105,"media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4","adaptive"],"default_ratio":"adaptive","resolutions":["480p","720p","1080p"],"default_resolution":"1080p","seconds":[-1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],"default_seconds":5,"audio":true,"max_references":21,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video","reference_audio","file","link"],"reference_role_limits":{"file":1,"first_frame":1,"last_frame":1,"link":1,"reference_audio":5,"reference_image":10,"reference_video":5},"reference_total_limit":21,"reference_exclusive_groups":[["first_frame","last_frame"],["reference_image","reference_video","reference_audio"],["file"],["link"]]}},"contract_id":"media.wan3-0-video-prime.v1","contract_version":"v1","contract_fingerprint":"c924f0fb319a81b57a6a5e3a23d0889e53c03ca79bed292e7e04f3010cd30f2a","pricing_ref":"mediacatalog:wan3.0-video-prime","contract":{"contract_id":"media.wan3-0-video-prime.v1","model":"wan3.0-video-prime","type":"video","version":"v1","fingerprint":"c924f0fb319a81b57a6a5e3a23d0889e53c03ca79bed292e7e04f3010cd30f2a","media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4","adaptive"],"default_ratio":"adaptive","resolutions":["480p","720p","1080p"],"default_resolution":"1080p","seconds":[-1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],"default_seconds":5,"audio":true,"max_references":21,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video","reference_audio","file","link"],"reference_role_limits":{"file":1,"first_frame":1,"last_frame":1,"link":1,"reference_audio":5,"reference_image":10,"reference_video":5},"reference_total_limit":21,"reference_exclusive_groups":[["first_frame","last_frame"],["reference_image","reference_video","reference_audio"],["file"],["link"]]}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"ratio","required":false,"type":"string"},{"name":"resolution","required":false,"type":"string"},{"name":"duration","required":false,"type":"integer"},{"name":"audio","required":false,"type":"boolean"},{"items":"asset","name":"reference_asset_ids","required":false,"type":"array"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"ratio","options":["16:9","9:16","1:1","4:3","3:4","adaptive"]},{"control":"select","field":"resolution","options":["480p","720p","1080p"]},{"control":"select","field":"duration","options":[-1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]},{"control":"switch","field":"audio"}]},"semantic_rules":[{"kind":"allowed_values","path":"ratio","values":["16:9","9:16","1:1","4:3","3:4","adaptive"]},{"kind":"allowed_values","path":"resolution","values":["480p","720p","1080p"]},{"kind":"allowed_values","path":"duration","values":[-1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]},{"kind":"max_assets","path":"reference_asset_ids","value":21}],"adapter":{"id":"video.wan.v1","version":"v1","wire_path":"/v1/videos","wire_options":{"audio_field":"audio","ratio_field":"ratio"}},"pricing_ref":"mediacatalog:wan3.0-video-prime","source":{"publisher":"Alibaba Cloud Model Studio","url":"https://help.aliyun.com/zh/model-studio/wan-video-generation","kind":"official"},"docs":{"path":"/models/video/wan3-0-video-prime/","slug":"wan3-0-video-prime"},"examples":["examples/text.json","examples/reference.json"]}},{"id":37,"model_name":"grok-4.7","vendor_id":10,"context_window":500000,"quota_type":0,"input_price":2,"model_ratio":1,"model_price":0,"owner_by":"","completion_ratio":3,"cache_ratio":0.25,"enable_groups":["grok-stable","grok-award"],"supported_endpoint_types":["openai","openai-response","openai-response-compact"]},{"model_name":"gemini-3.5-flash-lite","vendor_id":12,"quota_type":0,"input_price":0.3,"model_ratio":0.15,"model_price":0,"owner_by":"","completion_ratio":8.333333333333334,"cache_ratio":0.1,"create_cache_ratio":3.3333333333333335,"enable_groups":["gemini-stable"],"supported_endpoint_types":["openai"],"billing_mode":"tiered_expr","pricing_rules":{"version":1,"tiers":[{"label":"base","conditions":null,"unit_prices":{"cache_read":0.03,"cache_write":1,"input":0.3,"output":2.5}}],"request_rules":[],"has_request_rules":false,"complete":true}},{"model_name":"gemini-3.1-flash-lite","vendor_id":12,"quota_type":0,"input_price":0.25,"model_ratio":0.125,"model_price":0,"owner_by":"","completion_ratio":6,"cache_ratio":0.1,"create_cache_ratio":4,"enable_groups":["gemini-stable"],"supported_endpoint_types":["openai"],"billing_mode":"tiered_expr","pricing_rules":{"version":1,"tiers":[{"label":"base","conditions":null,"unit_prices":{"cache_read":0.025,"cache_write":1,"input":0.25,"output":1.5}}],"request_rules":[],"has_request_rules":false,"complete":true}},{"model_name":"kling-3.0-turbo","vendor_id":14,"quota_type":1,"input_price":0,"model_ratio":0,"model_price":0,"owner_by":"","completion_ratio":0,"enable_groups":["Media"],"supported_endpoint_types":["openai-video"],"billing_mode":"video_resolution","billing_unit":"per_second","video_resolution_price":{"1080p":0.1274,"720p":0.10192},"official_video_resolution_price":{"1080p":0.196,"720p":0.1568},"video_feature_prices":[{"resolution":"720p","mode":"std","price":0.10192,"official_price":0.1568},{"resolution":"1080p","mode":"pro","price":0.1274,"official_price":0.196}],"sale_price_multiplier":0.65,"media_options":{"video":{"ratios":["16:9","9:16","1:1"],"default_ratio":"16:9","resolutions":["720p","1080p"],"default_resolution":"720p","seconds":[3,5,8,10,15],"default_seconds":5,"max_references":1,"reference_media":["first_frame"],"reference_role_limits":{"first_frame":1},"reference_total_limit":1}},"contract_id":"media.kling-3-0-turbo.v1","contract_version":"v1","contract_fingerprint":"f7a701ee39bdcc6314f56777e8a6a52982a7bc918e4c9a2a00bf03435da425d3","pricing_ref":"mediacatalog:kling-3.0-turbo","contract":{"contract_id":"media.kling-3-0-turbo.v1","model":"kling-3.0-turbo","type":"video","version":"v1","fingerprint":"f7a701ee39bdcc6314f56777e8a6a52982a7bc918e4c9a2a00bf03435da425d3","media_options":{"video":{"ratios":["16:9","9:16","1:1"],"default_ratio":"16:9","resolutions":["720p","1080p"],"default_resolution":"720p","seconds":[3,5,8,10,15],"default_seconds":5,"max_references":1,"reference_media":["first_frame"],"reference_role_limits":{"first_frame":1},"reference_total_limit":1}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"ratio","required":false,"type":"string"},{"name":"resolution","required":false,"type":"string"},{"name":"duration","required":false,"type":"integer"},{"items":"asset","name":"reference_asset_ids","required":false,"type":"array"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"ratio","options":["16:9","9:16","1:1"]},{"control":"select","field":"resolution","options":["720p","1080p"]},{"control":"select","field":"duration","options":[3,5,8,10,15]}]},"semantic_rules":[{"kind":"allowed_values","path":"ratio","values":["16:9","9:16","1:1"]},{"kind":"allowed_values","path":"resolution","values":["720p","1080p"]},{"kind":"allowed_values","path":"duration","values":[3,5,8,10,15]},{"kind":"max_assets","path":"reference_asset_ids","value":1}],"adapter":{"id":"video.kling.turbo.v1","version":"v1","wire_path":"/v1/videos","wire_options":{"ratio_field":"aspect_ratio"}},"pricing_ref":"mediacatalog:kling-3.0-turbo","source":{"publisher":"Kuaishou Kling","url":"https://app.klingai.com/global/dev/document-api/apiReference/model/videoGeneration","kind":"official"},"docs":{"path":"/models/video/kling-3-0-turbo/","slug":"kling-3-0-turbo"},"examples":["examples/text.json","examples/reference.json"]}},{"id":16,"model_name":"gpt-5.6-sol","icon":"OpenAI","vendor_id":2,"display_priority":300,"context_window":1050000,"quota_type":0,"input_price":5,"model_ratio":2.5,"model_price":0,"owner_by":"","completion_ratio":6,"cache_ratio":0.1,"create_cache_ratio":1.25,"enable_groups":["openai-first-topup","openai-premium","openai-award","openai-stable","openai-enterprise"],"supported_endpoint_types":["openai","openai-response","openai-response-compact"],"billing_mode":"tiered_expr","pricing_rules":{"version":1,"tiers":[{"label":"standard","conditions":[{"metric":"input_context_tokens","operator":"\u003c=","value":272000}],"unit_prices":{"cache_read":0.5,"cache_write":6.25,"input":5,"output":30}},{"label":"long_context","conditions":null,"unit_prices":{"cache_read":1,"cache_write":12.5,"input":10,"output":45}}],"request_rules":[{"conditions":[{"source":"param","path":"service_tier","mode":"eq","value":"priority","value_type":"string"}],"multiplier":"2"}],"has_request_rules":true,"complete":true}},{"id":15,"model_name":"grok-4.5","vendor_id":10,"context_window":500000,"quota_type":0,"input_price":2,"model_ratio":1,"model_price":0,"owner_by":"","completion_ratio":3,"cache_ratio":0.25,"enable_groups":["grok-award","grok-stable"],"supported_endpoint_types":["openai","openai-response","openai-response-compact"]},{"id":21,"model_name":"claude-haiku-4-5","icon":"Claude.Color","vendor_id":1,"context_window":200000,"quota_type":0,"input_price":1,"model_ratio":0.5,"model_price":0,"owner_by":"","completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"enable_groups":["claude-award","claude-first-topup","claude-tmp-cheap","claude-stable","claude-premium"],"supported_endpoint_types":["anthropic","openai"]},{"model_name":"seedance-2.0-fast","vendor_id":13,"quota_type":0,"input_price":3.435714285714286,"official_input_price":7.3999999999999995,"model_ratio":1.717857142857143,"model_price":0,"owner_by":"","completion_ratio":1,"official_completion_ratio":1,"enable_groups":["Media"],"supported_endpoint_types":["openai-video"],"billing_unit":"token","video_token_price":{"480p":3.435714285714286,"480p_input_video":2.0428571428571427,"720p":3.435714285714286,"720p_input_video":2.0428571428571427},"official_video_token_price":{"480p":7.3999999999999995,"480p_input_video":4.3999999999999995,"720p":7.3999999999999995,"720p_input_video":4.3999999999999995},"sale_price_multiplier":0.46428571428571436,"media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"default_ratio":"adaptive","resolutions":["480p","720p"],"default_resolution":"720p","seconds":[-1,4,5,6,7,8,9,10,11,12,13,14,15],"default_seconds":5,"audio":true,"max_references":15,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video","reference_audio"],"reference_role_limits":{"first_frame":1,"last_frame":1,"reference_audio":3,"reference_image":9,"reference_video":3},"reference_total_limit":15,"reference_exclusive_groups":[["first_frame","last_frame"],["reference_image","reference_video","reference_audio"]],"reference_requires_one_of":["first_frame","last_frame","reference_image","reference_video"]}},"contract_id":"media.seedance-2-0-fast.v1","contract_version":"v1","contract_fingerprint":"dc8acfa4102c75a217488366a489b251dfd7641db15fb82abf705d7b5b6cfbc8","pricing_ref":"mediacatalog:seedance-2.0-fast","contract":{"contract_id":"media.seedance-2-0-fast.v1","model":"seedance-2.0-fast","type":"video","version":"v1","fingerprint":"dc8acfa4102c75a217488366a489b251dfd7641db15fb82abf705d7b5b6cfbc8","media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"default_ratio":"adaptive","resolutions":["480p","720p"],"default_resolution":"720p","seconds":[-1,4,5,6,7,8,9,10,11,12,13,14,15],"default_seconds":5,"audio":true,"max_references":15,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video","reference_audio"],"reference_role_limits":{"first_frame":1,"last_frame":1,"reference_audio":3,"reference_image":9,"reference_video":3},"reference_total_limit":15,"reference_exclusive_groups":[["first_frame","last_frame"],["reference_image","reference_video","reference_audio"]],"reference_requires_one_of":["first_frame","last_frame","reference_image","reference_video"]}},"intent_schema":{"fields":[{"name":"prompt","required":false,"type":"string"},{"name":"ratio","required":false,"type":"string"},{"name":"resolution","required":false,"type":"string"},{"name":"duration","required":false,"type":"integer"},{"name":"audio","required":false,"type":"boolean"},{"items":"asset","name":"reference_asset_ids","required":false,"type":"array"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"ratio","options":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"]},{"control":"select","field":"resolution","options":["480p","720p"]},{"control":"select","field":"duration","options":[-1,4,5,6,7,8,9,10,11,12,13,14,15]},{"control":"switch","field":"audio"}]},"semantic_rules":[{"kind":"allowed_values","path":"ratio","values":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"]},{"kind":"allowed_values","path":"resolution","values":["480p","720p"]},{"kind":"allowed_values","path":"duration","values":[-1,4,5,6,7,8,9,10,11,12,13,14,15]},{"kind":"max_assets","path":"reference_asset_ids","value":15},{"kind":"prompt_optional_with_reference","path":"prompt"}],"adapter":{"id":"video.seedance.20.v1","version":"v1","wire_path":"/v1/videos","wire_options":{"audio_field":"generate_audio","ratio_field":"ratio"}},"pricing_ref":"mediacatalog:seedance-2.0-fast","source":{"publisher":"ByteDance / Volcengine","url":"https://www.volcengine.com/docs/82379/1330310","kind":"official"},"docs":{"path":"/models/video/seedance-2-0-fast/","slug":"seedance-2-0-fast"},"examples":["examples/text.json","examples/reference.json"]}},{"model_name":"kling-o1","vendor_id":14,"quota_type":1,"input_price":0,"model_ratio":0,"model_price":0,"owner_by":"","completion_ratio":0,"enable_groups":["Media"],"supported_endpoint_types":["openai-video"],"billing_mode":"video_resolution","billing_unit":"per_second","video_resolution_price":{"1080p":0.10192,"720p":0.07644},"official_video_resolution_price":{"1080p":0.1568,"720p":0.1176},"video_feature_prices":[{"resolution":"720p","input_video":true,"price":0.11466,"official_price":0.1764},{"resolution":"1080p","input_video":true,"min_seconds":1,"price":0.15288,"official_price":0.2352}],"sale_price_multiplier":0.65,"media_options":{"video":{"ratios":["16:9","9:16","1:1"],"default_ratio":"16:9","resolutions":["720p","1080p"],"default_resolution":"720p","seconds":[3,5,8,10],"default_seconds":5,"audio":true,"max_references":7,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video","element"],"reference_role_limits":{"element":7,"first_frame":1,"last_frame":1,"reference_image":7,"reference_video":1},"reference_total_limit":7,"reference_exclusive_groups":[["first_frame","last_frame"],["reference_image","reference_video","element"]]}},"contract_id":"media.kling-o1.v1","contract_version":"v1","contract_fingerprint":"64a427a3f22b5fe4674625e1d0b00f331fc9e2fcc37837e604944c682ec00002","pricing_ref":"mediacatalog:kling-o1","contract":{"contract_id":"media.kling-o1.v1","model":"kling-o1","type":"video","version":"v1","fingerprint":"64a427a3f22b5fe4674625e1d0b00f331fc9e2fcc37837e604944c682ec00002","media_options":{"video":{"ratios":["16:9","9:16","1:1"],"default_ratio":"16:9","resolutions":["720p","1080p"],"default_resolution":"720p","seconds":[3,5,8,10],"default_seconds":5,"audio":true,"max_references":7,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video","element"],"reference_role_limits":{"element":7,"first_frame":1,"last_frame":1,"reference_image":7,"reference_video":1},"reference_total_limit":7,"reference_exclusive_groups":[["first_frame","last_frame"],["reference_image","reference_video","element"]]}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"ratio","required":false,"type":"string"},{"name":"resolution","required":false,"type":"string"},{"name":"duration","required":false,"type":"integer"},{"name":"audio","required":false,"type":"boolean"},{"items":"asset","name":"reference_asset_ids","required":false,"type":"array"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"ratio","options":["16:9","9:16","1:1"]},{"control":"select","field":"resolution","options":["720p","1080p"]},{"control":"select","field":"duration","options":[3,5,8,10]},{"control":"switch","field":"audio"}]},"semantic_rules":[{"kind":"allowed_values","path":"ratio","values":["16:9","9:16","1:1"]},{"kind":"allowed_values","path":"resolution","values":["720p","1080p"]},{"kind":"allowed_values","path":"duration","values":[3,5,8,10]},{"kind":"max_assets","path":"reference_asset_ids","value":7}],"adapter":{"id":"video.kling.omni.v1","version":"v1","wire_path":"/v1/videos","wire_options":{"audio_field":"sound","audio_switch_words":true,"mode_by_resolution":{"1080p":"pro","720p":"std"},"ratio_field":"aspect_ratio"}},"pricing_ref":"mediacatalog:kling-o1","source":{"publisher":"Kuaishou Kling","url":"https://app.klingai.com/global/dev/document-api/apiReference/model/videoGeneration","kind":"official"},"docs":{"path":"/models/video/kling-o1/","slug":"kling-o1"},"examples":["examples/text.json","examples/reference.json"]}},{"id":42,"model_name":"gpt-6-sol","icon":"OpenAI","vendor_id":2,"context_window":1050000,"quota_type":0,"input_price":2,"model_ratio":1,"model_price":0,"owner_by":"","completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"enable_groups":["openai-enterprise","openai-first-topup","openai-award","openai-stable","openai-premium"],"supported_endpoint_types":["openai","openai-response","openai-response-compact"],"billing_mode":"tiered_expr","pricing_rules":{"version":1,"tiers":[{"label":"standard","conditions":[{"metric":"input_context_tokens","operator":"\u003c=","value":272000}],"unit_prices":{"cache_read":0.2,"cache_write":2.5,"input":2,"output":10}},{"label":"long_context","conditions":null,"unit_prices":{"cache_read":0.4,"cache_write":5,"input":4,"output":15}}],"request_rules":[],"has_request_rules":false,"complete":true}},{"id":2,"model_name":"gpt-5.5","icon":"OpenAI","vendor_id":2,"context_window":272000,"quota_type":0,"input_price":5,"model_ratio":2.5,"model_price":0,"owner_by":"","completion_ratio":6,"cache_ratio":0.1,"enable_groups":["openai-award","openai-enterprise","openai-premium","openai-first-topup","openai-stable"],"supported_endpoint_types":["openai","openai-response","openai-response-compact"],"billing_mode":"tiered_expr","pricing_rules":{"version":1,"tiers":[{"label":"base","conditions":null,"unit_prices":{"cache_read":0.5,"input":5,"output":30}}],"request_rules":[{"conditions":[{"source":"param","path":"service_tier","mode":"eq","value":"priority","value_type":"string"}],"multiplier":"2.5"}],"has_request_rules":true,"complete":true}},{"id":29,"model_name":"gemini-3.1-flash-image","description":"Gemini 3.1 Flash Image generation and editing.","vendor_id":12,"display_priority":10,"quota_type":0,"input_price":0.42250000000000004,"official_input_price":0.7,"model_ratio":0.21125000000000002,"model_price":0,"owner_by":"","completion_ratio":120,"official_completion_ratio":120.00000000000001,"enable_groups":["Media"],"supported_endpoint_types":["gemini"],"billing_unit":"token","sale_price_multiplier":0.6035714285714286,"media_options":{"image":{"sizes":["512","1K","2K","4K"],"default_size":"512","ratios":["1:1","4:3","3:4","16:9","9:16"],"default_ratio":"1:1","reference_images":true,"max_outputs":1,"max_references":0}},"contract_id":"media.gemini-3-1-flash-image.v1","contract_version":"v1","contract_fingerprint":"fb4adc579d570a2f8d4371edde0dc6bfa1042a004eb39641c63bd98fa4c7c8cc","pricing_ref":"mediacatalog:gemini-3.1-flash-image","contract":{"contract_id":"media.gemini-3-1-flash-image.v1","model":"gemini-3.1-flash-image","type":"image","version":"v1","fingerprint":"fb4adc579d570a2f8d4371edde0dc6bfa1042a004eb39641c63bd98fa4c7c8cc","media_options":{"image":{"sizes":["512","1K","2K","4K"],"default_size":"512","ratios":["1:1","4:3","3:4","16:9","9:16"],"default_ratio":"1:1","reference_images":true,"max_outputs":1,"max_references":0}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"size","required":false,"type":"string"},{"name":"ratio","required":false,"type":"string"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"size","options":["512","1K","2K","4K"]},{"control":"select","field":"ratio","options":["1:1","4:3","3:4","16:9","9:16"]}]},"semantic_rules":[{"kind":"allowed_values","path":"size","values":["512","1K","2K","4K"]},{"kind":"allowed_values","path":"ratio","values":["1:1","4:3","3:4","16:9","9:16"]}],"adapter":{"id":"image.gemini.native.v1","version":"v1","wire_path":"/v1beta/models/{model}:generateContent"},"pricing_ref":"mediacatalog:gemini-3.1-flash-image","source":{"publisher":"Google","url":"https://ai.google.dev/gemini-api/docs/image-generation","kind":"official"},"docs":{"path":"/models/image/gemini-3-1-flash-image/","slug":"gemini-3-1-flash-image"},"examples":["examples/text.json","examples/reference.json"]}},{"id":1,"model_name":"claude-fable-5","icon":"Claude.Color","vendor_id":1,"context_window":1000000,"quota_type":0,"input_price":10,"model_ratio":5,"model_price":0,"owner_by":"","completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"enable_groups":["claude-tmp-cheap","claude-first-topup","claude-stable","claude-premium","claude-award"],"supported_endpoint_types":["anthropic","openai"]},{"model_name":"seedance-2.0","vendor_id":13,"quota_type":0,"input_price":9.509500000000001,"official_input_price":7.7,"model_ratio":4.7547500000000005,"model_price":0,"owner_by":"","completion_ratio":1,"official_completion_ratio":1,"enable_groups":["Media"],"supported_endpoint_types":["openai-video"],"billing_unit":"token","video_token_price":{"1080p":9.509500000000001,"1080p_input_video":5.8045,"480p":8.645000000000001,"480p_input_video":5.3105,"4k":4.9399999999999995,"4k_input_video":2.964,"720p":8.645000000000001,"720p_input_video":5.3105},"official_video_token_price":{"1080p":7.7,"1080p_input_video":4.7,"480p":7,"480p_input_video":4.3,"4k":4,"4k_input_video":2.4,"720p":7,"720p_input_video":4.3},"sale_price_multiplier":1.235,"media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"default_ratio":"adaptive","resolutions":["480p","720p","1080p","4k"],"default_resolution":"720p","seconds":[4,5,8,10,15],"default_seconds":5,"audio":true,"max_references":15,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video","reference_audio"],"reference_role_limits":{"first_frame":1,"last_frame":1,"reference_audio":3,"reference_image":9,"reference_video":3},"reference_total_limit":15,"reference_exclusive_groups":[["first_frame","last_frame"],["reference_image","reference_video","reference_audio"]],"reference_requires_one_of":["first_frame","last_frame","reference_image","reference_video"]}},"contract_id":"media.seedance-2-0.v1","contract_version":"v1","contract_fingerprint":"dbd2efb454c0ce50d0600810a6ca4d7e5918dc2ebbaea6fdb8b1d9bf6b480a6f","pricing_ref":"mediacatalog:seedance-2.0","contract":{"contract_id":"media.seedance-2-0.v1","model":"seedance-2.0","type":"video","version":"v1","fingerprint":"dbd2efb454c0ce50d0600810a6ca4d7e5918dc2ebbaea6fdb8b1d9bf6b480a6f","media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"default_ratio":"adaptive","resolutions":["480p","720p","1080p","4k"],"default_resolution":"720p","seconds":[4,5,8,10,15],"default_seconds":5,"audio":true,"max_references":15,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video","reference_audio"],"reference_role_limits":{"first_frame":1,"last_frame":1,"reference_audio":3,"reference_image":9,"reference_video":3},"reference_total_limit":15,"reference_exclusive_groups":[["first_frame","last_frame"],["reference_image","reference_video","reference_audio"]],"reference_requires_one_of":["first_frame","last_frame","reference_image","reference_video"]}},"intent_schema":{"fields":[{"name":"prompt","required":false,"type":"string"},{"name":"ratio","required":false,"type":"string"},{"name":"resolution","required":false,"type":"string"},{"name":"duration","required":false,"type":"integer"},{"name":"audio","required":false,"type":"boolean"},{"items":"asset","name":"reference_asset_ids","required":false,"type":"array"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"ratio","options":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"]},{"control":"select","field":"resolution","options":["480p","720p","1080p","4k"]},{"control":"select","field":"duration","options":[4,5,8,10,15]},{"control":"switch","field":"audio"}]},"semantic_rules":[{"kind":"allowed_values","path":"ratio","values":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"]},{"kind":"allowed_values","path":"resolution","values":["480p","720p","1080p","4k"]},{"kind":"allowed_values","path":"duration","values":[4,5,8,10,15]},{"kind":"max_assets","path":"reference_asset_ids","value":15},{"kind":"prompt_optional_with_reference","path":"prompt"}],"adapter":{"id":"video.seedance.20.v1","version":"v1","wire_path":"/v1/videos","wire_options":{"audio_field":"generate_audio","ratio_field":"ratio"}},"pricing_ref":"mediacatalog:seedance-2.0","source":{"publisher":"ByteDance / Volcengine","url":"https://www.volcengine.com/docs/82379/1330310","kind":"official"},"docs":{"path":"/models/video/seedance-2-0/","slug":"seedance-2-0"},"examples":["examples/text.json","examples/reference.json"]}},{"model_name":"MiniMax-H3","vendor_id":7,"quota_type":1,"input_price":0,"model_ratio":0,"model_price":0,"owner_by":"","completion_ratio":0,"enable_groups":["Media"],"supported_endpoint_types":["openai-video"],"billing_mode":"video_resolution","billing_unit":"per_second","video_resolution_price":{"2k":0.1521,"768p":0.0936},"official_video_resolution_price":{"2k":0.13,"768p":0.08},"sale_price_multiplier":1.1700000000000002,"media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"default_ratio":"16:9","resolutions":["768p","2k"],"default_resolution":"768p","seconds":[4,5,6,8,10,15],"default_seconds":5,"max_references":12,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video","reference_audio"],"reference_role_limits":{"first_frame":1,"last_frame":1,"reference_audio":3,"reference_image":9,"reference_video":3},"reference_total_limit":12,"reference_exclusive_groups":[["first_frame","last_frame"],["reference_image","reference_video","reference_audio"]],"reference_requires_one_of":["first_frame","last_frame","reference_image","reference_video"]}},"contract_id":"media.minimax-h3.v1","contract_version":"v1","contract_fingerprint":"a52dc9d8a16881ce546c9857c6acf87007068498eb2baec2972d91a3c9ba531c","pricing_ref":"mediacatalog:MiniMax-H3","contract":{"contract_id":"media.minimax-h3.v1","model":"MiniMax-H3","type":"video","version":"v1","fingerprint":"a52dc9d8a16881ce546c9857c6acf87007068498eb2baec2972d91a3c9ba531c","media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"default_ratio":"16:9","resolutions":["768p","2k"],"default_resolution":"768p","seconds":[4,5,6,8,10,15],"default_seconds":5,"max_references":12,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video","reference_audio"],"reference_role_limits":{"first_frame":1,"last_frame":1,"reference_audio":3,"reference_image":9,"reference_video":3},"reference_total_limit":12,"reference_exclusive_groups":[["first_frame","last_frame"],["reference_image","reference_video","reference_audio"]],"reference_requires_one_of":["first_frame","last_frame","reference_image","reference_video"]}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"ratio","required":false,"type":"string"},{"name":"resolution","required":false,"type":"string"},{"name":"duration","required":false,"type":"integer"},{"items":"asset","name":"reference_asset_ids","required":false,"type":"array"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"ratio","options":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"]},{"control":"select","field":"resolution","options":["768p","2k"]},{"control":"select","field":"duration","options":[4,5,6,8,10,15]}]},"semantic_rules":[{"kind":"allowed_values","path":"ratio","values":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"]},{"kind":"allowed_values","path":"resolution","values":["768p","2k"]},{"kind":"allowed_values","path":"duration","values":[4,5,6,8,10,15]},{"kind":"max_assets","path":"reference_asset_ids","value":12}],"adapter":{"id":"video.minimax.v1","version":"v1","wire_path":"/v1/videos","wire_options":{"ratio_field":"ratio"}},"pricing_ref":"mediacatalog:MiniMax-H3","source":{"publisher":"MiniMax","url":"https://platform.minimaxi.com/docs/guides/video-generation","kind":"official"},"docs":{"path":"/models/video/minimax-h3/","slug":"minimax-h3"},"examples":["examples/text.json","examples/reference.json"]}},{"id":28,"model_name":"gemini-3-pro-image","description":"Gemini 3 Pro Image generation and editing.","vendor_id":12,"display_priority":20,"quota_type":0,"input_price":1.6900000000000002,"official_input_price":2.8,"model_ratio":0.8450000000000001,"model_price":0,"owner_by":"","completion_ratio":60,"official_completion_ratio":60.00000000000001,"enable_groups":["Media"],"supported_endpoint_types":["gemini"],"billing_unit":"token","sale_price_multiplier":0.6035714285714286,"media_options":{"image":{"sizes":["1K","2K","4K"],"default_size":"1K","ratios":["1:1","4:3","3:4","16:9","9:16"],"default_ratio":"1:1","reference_images":true,"max_outputs":1,"max_references":0}},"contract_id":"media.gemini-3-pro-image.v1","contract_version":"v1","contract_fingerprint":"b6267d30716bafe6d179a576316cf9e9a9b273f16de26f45bc8438e28eaa1736","pricing_ref":"mediacatalog:gemini-3-pro-image","contract":{"contract_id":"media.gemini-3-pro-image.v1","model":"gemini-3-pro-image","type":"image","version":"v1","fingerprint":"b6267d30716bafe6d179a576316cf9e9a9b273f16de26f45bc8438e28eaa1736","media_options":{"image":{"sizes":["1K","2K","4K"],"default_size":"1K","ratios":["1:1","4:3","3:4","16:9","9:16"],"default_ratio":"1:1","reference_images":true,"max_outputs":1,"max_references":0}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"size","required":false,"type":"string"},{"name":"ratio","required":false,"type":"string"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"size","options":["1K","2K","4K"]},{"control":"select","field":"ratio","options":["1:1","4:3","3:4","16:9","9:16"]}]},"semantic_rules":[{"kind":"allowed_values","path":"size","values":["1K","2K","4K"]},{"kind":"allowed_values","path":"ratio","values":["1:1","4:3","3:4","16:9","9:16"]}],"adapter":{"id":"image.gemini.native.v1","version":"v1","wire_path":"/v1beta/models/{model}:generateContent"},"pricing_ref":"mediacatalog:gemini-3-pro-image","source":{"publisher":"Google","url":"https://ai.google.dev/gemini-api/docs/image-generation","kind":"official"},"docs":{"path":"/models/image/gemini-3-pro-image/","slug":"gemini-3-pro-image"},"examples":["examples/text.json","examples/reference.json"]}},{"id":4,"model_name":"claude-opus-4-8","icon":"Claude.Color","vendor_id":1,"context_window":1000000,"quota_type":0,"input_price":5,"model_ratio":2.5,"model_price":0,"owner_by":"","completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"enable_groups":["claude-first-topup","claude-stable","claude-premium","claude-award","claude-tmp-cheap"],"supported_endpoint_types":["anthropic","openai"]},{"id":22,"model_name":"claude-opus-5","icon":"Claude.Color","vendor_id":1,"context_window":1000000,"quota_type":0,"input_price":5,"model_ratio":2.5,"model_price":0,"owner_by":"","completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"enable_groups":["claude-tmp-cheap","claude-premium","claude-award","claude-first-topup","claude-stable"],"supported_endpoint_types":["anthropic","openai"]},{"id":54,"model_name":"gemini-3.8-flash","vendor_id":12,"context_window":1000000,"quota_type":0,"input_price":1.5,"model_ratio":0.75,"model_price":0,"owner_by":"","completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":0.6666666666666666,"enable_groups":["gemini-stable"],"supported_endpoint_types":["gemini","openai"],"billing_mode":"tiered_expr","pricing_rules":{"version":1,"tiers":[{"label":"base","conditions":null,"unit_prices":{"cache_read":0.15,"cache_write":1,"input":1.5,"output":7.5}}],"request_rules":[],"has_request_rules":false,"complete":true}},{"id":43,"model_name":"gpt-6-luna","icon":"OpenAI","vendor_id":2,"context_window":1050000,"quota_type":0,"input_price":0.25,"model_ratio":0.125,"model_price":0,"owner_by":"","completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"enable_groups":["openai-award","openai-premium","openai-first-topup","openai-enterprise","openai-stable"],"supported_endpoint_types":["openai","openai-response","openai-response-compact"],"billing_mode":"tiered_expr","pricing_rules":{"version":1,"tiers":[{"label":"standard","conditions":[{"metric":"input_context_tokens","operator":"\u003c=","value":272000}],"unit_prices":{"cache_read":0.025,"cache_write":0.3125,"input":0.25,"output":1.25}},{"label":"long_context","conditions":null,"unit_prices":{"cache_read":0.05,"cache_write":0.625,"input":0.5,"output":1.875}}],"request_rules":[],"has_request_rules":false,"complete":true}},{"id":25,"model_name":"grok-4.6","vendor_id":10,"context_window":500000,"quota_type":0,"input_price":2,"model_ratio":1,"model_price":0,"owner_by":"","completion_ratio":3,"cache_ratio":0.25,"enable_groups":["grok-award","grok-stable"],"supported_endpoint_types":["openai","openai-response","openai-response-compact"]},{"model_name":"happyhorse-1.1-t2v","vendor_id":8,"quota_type":1,"input_price":0,"model_ratio":0,"model_price":0,"owner_by":"","completion_ratio":0,"enable_groups":["Media"],"supported_endpoint_types":["openai-video"],"billing_mode":"video_resolution","billing_unit":"per_second","video_resolution_price":{"1080p":0.1287,"720p":0.10010000000000001},"official_video_resolution_price":{"1080p":0.252,"720p":0.196},"sale_price_multiplier":0.5107142857142858,"media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4","4:5","5:4","21:9","9:21"],"default_ratio":"16:9","resolutions":["720p","1080p"],"default_resolution":"1080p","seconds":[3,4,5,6,7,8,9,10,11,12,13,14,15],"default_seconds":5,"max_references":0}},"contract_id":"media.happyhorse-1-1-t2v.v1","contract_version":"v1","contract_fingerprint":"4f3b6a3c628a981b1d15070759d8f96df185c43c684a22bba802349f85e3e6f9","pricing_ref":"mediacatalog:happyhorse-1.1-t2v","contract":{"contract_id":"media.happyhorse-1-1-t2v.v1","model":"happyhorse-1.1-t2v","type":"video","version":"v1","fingerprint":"4f3b6a3c628a981b1d15070759d8f96df185c43c684a22bba802349f85e3e6f9","media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4","4:5","5:4","21:9","9:21"],"default_ratio":"16:9","resolutions":["720p","1080p"],"default_resolution":"1080p","seconds":[3,4,5,6,7,8,9,10,11,12,13,14,15],"default_seconds":5,"max_references":0}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"ratio","required":false,"type":"string"},{"name":"resolution","required":false,"type":"string"},{"name":"duration","required":false,"type":"integer"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"ratio","options":["16:9","9:16","1:1","4:3","3:4","4:5","5:4","21:9","9:21"]},{"control":"select","field":"resolution","options":["720p","1080p"]},{"control":"select","field":"duration","options":[3,4,5,6,7,8,9,10,11,12,13,14,15]}]},"semantic_rules":[{"kind":"allowed_values","path":"ratio","values":["16:9","9:16","1:1","4:3","3:4","4:5","5:4","21:9","9:21"]},{"kind":"allowed_values","path":"resolution","values":["720p","1080p"]},{"kind":"allowed_values","path":"duration","values":[3,4,5,6,7,8,9,10,11,12,13,14,15]}],"adapter":{"id":"video.happyhorse.v1","version":"v1","wire_path":"/v1/videos","wire_options":{"ratio_field":"ratio"}},"pricing_ref":"mediacatalog:happyhorse-1.1-t2v","source":{"publisher":"Alibaba Cloud Model Studio","url":"https://help.aliyun.com/zh/model-studio/wan-video-generation","kind":"official"},"docs":{"path":"/models/video/happyhorse-1-1-t2v/","slug":"happyhorse-1-1-t2v"},"examples":["examples/text.json"]}},{"model_name":"kling-3.0-omni","vendor_id":14,"quota_type":1,"input_price":0,"model_ratio":0,"model_price":0,"owner_by":"","completion_ratio":0,"enable_groups":["Media"],"supported_endpoint_types":["openai-video"],"billing_mode":"video_resolution","billing_unit":"per_second","video_resolution_price":{"1080p":0.10192,"4k":0.3822,"720p":0.07644},"official_video_resolution_price":{"1080p":0.1568,"4k":0.588,"720p":0.1176},"video_feature_prices":[{"resolution":"720p","audio":true,"price":0.10192,"official_price":0.1568},{"resolution":"720p","input_video":true,"price":0.11466,"official_price":0.1764},{"resolution":"1080p","audio":true,"price":0.1274,"official_price":0.196},{"resolution":"1080p","input_video":true,"price":0.15288,"official_price":0.2352},{"resolution":"4k","audio":true,"price":0.3822,"official_price":0.588},{"resolution":"4k","input_video":true,"price":0.3822,"official_price":0.588}],"sale_price_multiplier":0.65,"media_options":{"video":{"ratios":["16:9","9:16","1:1"],"default_ratio":"16:9","resolutions":["720p","1080p","4k"],"default_resolution":"720p","seconds":[3,5,8,10,15],"default_seconds":5,"audio":true,"max_references":7,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video","element"],"reference_role_limits":{"element":7,"first_frame":1,"last_frame":1,"reference_image":7,"reference_video":1},"reference_total_limit":7,"reference_exclusive_groups":[["first_frame","last_frame"],["reference_image","reference_video","element"]]}},"contract_id":"media.kling-3-0-omni.v1","contract_version":"v1","contract_fingerprint":"70c3e0fcc5727858f11c8e080f06c223e40cb2e20363d856fbb2fcfa79e4d9b1","pricing_ref":"mediacatalog:kling-3.0-omni","contract":{"contract_id":"media.kling-3-0-omni.v1","model":"kling-3.0-omni","type":"video","version":"v1","fingerprint":"70c3e0fcc5727858f11c8e080f06c223e40cb2e20363d856fbb2fcfa79e4d9b1","media_options":{"video":{"ratios":["16:9","9:16","1:1"],"default_ratio":"16:9","resolutions":["720p","1080p","4k"],"default_resolution":"720p","seconds":[3,5,8,10,15],"default_seconds":5,"audio":true,"max_references":7,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video","element"],"reference_role_limits":{"element":7,"first_frame":1,"last_frame":1,"reference_image":7,"reference_video":1},"reference_total_limit":7,"reference_exclusive_groups":[["first_frame","last_frame"],["reference_image","reference_video","element"]]}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"ratio","required":false,"type":"string"},{"name":"resolution","required":false,"type":"string"},{"name":"duration","required":false,"type":"integer"},{"name":"audio","required":false,"type":"boolean"},{"items":"asset","name":"reference_asset_ids","required":false,"type":"array"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"ratio","options":["16:9","9:16","1:1"]},{"control":"select","field":"resolution","options":["720p","1080p","4k"]},{"control":"select","field":"duration","options":[3,5,8,10,15]},{"control":"switch","field":"audio"}]},"semantic_rules":[{"kind":"allowed_values","path":"ratio","values":["16:9","9:16","1:1"]},{"kind":"allowed_values","path":"resolution","values":["720p","1080p","4k"]},{"kind":"allowed_values","path":"duration","values":[3,5,8,10,15]},{"kind":"max_assets","path":"reference_asset_ids","value":7}],"adapter":{"id":"video.kling.omni.v1","version":"v1","wire_path":"/v1/videos","wire_options":{"audio_field":"sound","audio_switch_words":true,"mode_by_resolution":{"1080p":"pro","4k":"4k","720p":"std"},"ratio_field":"aspect_ratio"}},"pricing_ref":"mediacatalog:kling-3.0-omni","source":{"publisher":"Kuaishou Kling","url":"https://app.klingai.com/global/dev/document-api/apiReference/model/videoGeneration","kind":"official"},"docs":{"path":"/models/video/kling-3-0-omni/","slug":"kling-3-0-omni"},"examples":["examples/text.json","examples/reference.json"]}},{"model_name":"wan2.7-r2v","vendor_id":8,"quota_type":1,"input_price":0,"model_ratio":0,"model_price":0,"owner_by":"","completion_ratio":0,"enable_groups":["Media"],"supported_endpoint_types":["openai-video"],"billing_mode":"video_resolution","billing_unit":"per_second","video_resolution_price":{"1080p":0.11115000000000001,"720p":0.0741},"official_video_resolution_price":{"1080p":0.21,"720p":0.13999999999999999},"sale_price_multiplier":0.5292857142857144,"media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4"],"default_ratio":"16:9","resolutions":["720p","1080p"],"default_resolution":"1080p","seconds":[2,3,4,5,6,7,8,9,10,11,12,13,14,15],"default_seconds":5,"max_references":6,"requires_reference":true,"reference_video":true,"reference_media":["reference_image","reference_video","first_frame"],"reference_role_limits":{"first_frame":1,"reference_image":5,"reference_video":5},"reference_total_limit":6,"reference_requires_one_of":["reference_image","reference_video"]}},"contract_id":"media.wan2-7-r2v.v1","contract_version":"v1","contract_fingerprint":"6f91913f171eb3e1e3ee31dbe85b9609d9ddbacc33bb89810a5c580807650414","pricing_ref":"mediacatalog:wan2.7-r2v","contract":{"contract_id":"media.wan2-7-r2v.v1","model":"wan2.7-r2v","type":"video","version":"v1","fingerprint":"6f91913f171eb3e1e3ee31dbe85b9609d9ddbacc33bb89810a5c580807650414","media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4"],"default_ratio":"16:9","resolutions":["720p","1080p"],"default_resolution":"1080p","seconds":[2,3,4,5,6,7,8,9,10,11,12,13,14,15],"default_seconds":5,"max_references":6,"requires_reference":true,"reference_video":true,"reference_media":["reference_image","reference_video","first_frame"],"reference_role_limits":{"first_frame":1,"reference_image":5,"reference_video":5},"reference_total_limit":6,"reference_requires_one_of":["reference_image","reference_video"]}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"ratio","required":false,"type":"string"},{"name":"resolution","required":false,"type":"string"},{"name":"duration","required":false,"type":"integer"},{"items":"asset","name":"reference_asset_ids","required":true,"type":"array"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"ratio","options":["16:9","9:16","1:1","4:3","3:4"]},{"control":"select","field":"resolution","options":["720p","1080p"]},{"control":"select","field":"duration","options":[2,3,4,5,6,7,8,9,10,11,12,13,14,15]}]},"semantic_rules":[{"kind":"allowed_values","path":"ratio","values":["16:9","9:16","1:1","4:3","3:4"]},{"kind":"allowed_values","path":"resolution","values":["720p","1080p"]},{"kind":"allowed_values","path":"duration","values":[2,3,4,5,6,7,8,9,10,11,12,13,14,15]},{"kind":"required_assets","path":"reference_asset_ids"},{"kind":"max_assets","path":"reference_asset_ids","value":6}],"adapter":{"id":"video.wan.r2v.v1","version":"v1","wire_path":"/v1/videos","wire_options":{"ratio_field":"ratio"}},"pricing_ref":"mediacatalog:wan2.7-r2v","source":{"publisher":"Alibaba Cloud Model Studio","url":"https://help.aliyun.com/zh/model-studio/wan-video-generation","kind":"official"},"docs":{"path":"/models/video/wan2-7-r2v/","slug":"wan2-7-r2v"},"examples":["examples/reference.json"]}},{"id":32,"model_name":"claude-fable-5-1","icon":"Claude.Color","vendor_id":1,"quota_type":0,"input_price":10,"model_ratio":5,"model_price":0,"owner_by":"","completion_ratio":5,"cache_ratio":0.025,"create_cache_ratio":1.25,"enable_groups":["claude-award","claude-first-topup","claude-tmp-cheap","claude-premium","claude-stable"],"supported_endpoint_types":["anthropic","openai"]},{"id":40,"model_name":"jev-1.13.0","vendor_id":16,"quota_type":0,"input_price":0.042,"model_ratio":0.021,"model_price":0,"owner_by":"","completion_ratio":0,"enable_groups":["jev-premium"],"supported_endpoint_types":["decisions"]},{"model_name":"wan2.7-i2v","vendor_id":8,"quota_type":1,"input_price":0,"model_ratio":0,"model_price":0,"owner_by":"","completion_ratio":0,"enable_groups":["Media"],"supported_endpoint_types":["openai-video"],"billing_mode":"video_resolution","billing_unit":"per_second","video_resolution_price":{"1080p":0.11115000000000001,"720p":0.0741},"official_video_resolution_price":{"1080p":0.21,"720p":0.13999999999999999},"sale_price_multiplier":0.5292857142857144,"media_options":{"video":{"resolutions":["720p","1080p"],"default_resolution":"1080p","seconds":[2,3,4,5,6,7,8,9,10,11,12,13,14,15],"default_seconds":5,"max_references":3,"requires_reference":true,"reference_video":true,"reference_media":["first_frame","last_frame","driving_audio","first_clip"],"reference_combinations":[["first_frame"],["first_frame","driving_audio"],["first_frame","last_frame"],["first_frame","last_frame","driving_audio"],["first_clip"],["first_clip","last_frame"],["first_frame","first_clip"]]}},"contract_id":"media.wan2-7-i2v.v1","contract_version":"v1","contract_fingerprint":"f88d7c8cb3fd7273312b35a66e10fc485ceaa6e2848487aa73b4819fff587413","pricing_ref":"mediacatalog:wan2.7-i2v","contract":{"contract_id":"media.wan2-7-i2v.v1","model":"wan2.7-i2v","type":"video","version":"v1","fingerprint":"f88d7c8cb3fd7273312b35a66e10fc485ceaa6e2848487aa73b4819fff587413","media_options":{"video":{"resolutions":["720p","1080p"],"default_resolution":"1080p","seconds":[2,3,4,5,6,7,8,9,10,11,12,13,14,15],"default_seconds":5,"max_references":3,"requires_reference":true,"reference_video":true,"reference_media":["first_frame","last_frame","driving_audio","first_clip"],"reference_combinations":[["first_frame"],["first_frame","driving_audio"],["first_frame","last_frame"],["first_frame","last_frame","driving_audio"],["first_clip"],["first_clip","last_frame"],["first_frame","first_clip"]]}},"intent_schema":{"fields":[{"name":"prompt","required":false,"type":"string"},{"name":"resolution","required":false,"type":"string"},{"name":"duration","required":false,"type":"integer"},{"items":"asset","name":"reference_asset_ids","required":true,"type":"array"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"resolution","options":["720p","1080p"]},{"control":"select","field":"duration","options":[2,3,4,5,6,7,8,9,10,11,12,13,14,15]}]},"semantic_rules":[{"kind":"allowed_values","path":"resolution","values":["720p","1080p"]},{"kind":"allowed_values","path":"duration","values":[2,3,4,5,6,7,8,9,10,11,12,13,14,15]},{"kind":"required_assets","path":"reference_asset_ids"},{"kind":"max_assets","path":"reference_asset_ids","value":3},{"kind":"prompt_optional_with_reference","path":"prompt"}],"adapter":{"id":"video.wan.i2v.v1","version":"v1","wire_path":"/v1/videos"},"pricing_ref":"mediacatalog:wan2.7-i2v","source":{"publisher":"Alibaba Cloud Model Studio","url":"https://help.aliyun.com/zh/model-studio/wan-video-generation","kind":"official"},"docs":{"path":"/models/video/wan2-7-i2v/","slug":"wan2-7-i2v"},"examples":["examples/reference.json"]}},{"model_name":"wan2.7-image-pro","vendor_id":8,"quota_type":1,"input_price":0,"model_ratio":0,"model_price":0.0529815,"official_model_price":0.10009999999999998,"owner_by":"","completion_ratio":0,"enable_groups":["Media"],"supported_endpoint_types":["image-generation"],"billing_unit":"per_call","sale_price_multiplier":0.5292857142857144,"media_options":{"image":{"sizes":["1K","2K","4K"],"default_size":"2K","max_outputs":12,"max_references":9}},"contract_id":"media.wan2-7-image-pro.v1","contract_version":"v1","contract_fingerprint":"08e8d3ebc25a5736d78ee6137926a3e20722a57c491d12338a09ac1bf95b1ada","pricing_ref":"mediacatalog:wan2.7-image-pro","contract":{"contract_id":"media.wan2-7-image-pro.v1","model":"wan2.7-image-pro","type":"image","version":"v1","fingerprint":"08e8d3ebc25a5736d78ee6137926a3e20722a57c491d12338a09ac1bf95b1ada","media_options":{"image":{"sizes":["1K","2K","4K"],"default_size":"2K","max_outputs":12,"max_references":9}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"size","required":false,"type":"string"},{"name":"n","required":false,"type":"number"},{"items":"asset","name":"reference_asset_ids","required":false,"type":"array"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"size","options":["1K","2K","4K"]},{"control":"number","field":"n","max":12,"min":1}]},"semantic_rules":[{"kind":"allowed_values","path":"size","values":["1K","2K","4K"]},{"kind":"max_assets","path":"reference_asset_ids","value":9}],"adapter":{"id":"image.wan.v1","version":"v1","wire_path":"/v1/images/generations","wire_options":{"nested_messages":true}},"pricing_ref":"mediacatalog:wan2.7-image-pro","source":{"publisher":"Alibaba Cloud Model Studio","url":"https://help.aliyun.com/zh/model-studio/wan-video-generation","kind":"official"},"docs":{"path":"/models/image/wan2-7-image-pro/","slug":"wan2-7-image-pro"},"examples":["examples/text.json","examples/reference.json"]}},{"id":44,"model_name":"claude-sonnet-5-5","icon":"Claude.Color","vendor_id":1,"quota_type":0,"input_price":2,"model_ratio":1,"model_price":0,"owner_by":"","completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"enable_groups":["claude-stable","claude-premium","claude-tmp-cheap","claude-award","claude-first-topup"],"supported_endpoint_types":["anthropic","openai"]},{"id":24,"model_name":"qwen3.8-max","icon":"Qwen.Color","vendor_id":8,"context_window":1000000,"quota_type":0,"input_price":1.7142857142857142,"model_ratio":0.8571428571428571,"model_price":0,"owner_by":"","completion_ratio":3,"cache_ratio":0.125,"create_cache_ratio":1.25,"enable_groups":["qwen-stable"],"supported_endpoint_types":["openai","openai-response","anthropic"]},{"model_name":"gemini-2.5-flash-image","vendor_id":12,"quota_type":1,"input_price":0,"model_ratio":0,"model_price":0.032955000000000005,"official_model_price":0.054599999999999996,"owner_by":"","completion_ratio":0,"enable_groups":["Media"],"supported_endpoint_types":["gemini"],"billing_unit":"per_call","sale_price_multiplier":0.6035714285714288,"media_options":{"image":{"sizes":["1K","2K","4K"],"default_size":"1K","ratios":["1:1","4:3","3:4","16:9","9:16"],"default_ratio":"1:1","reference_images":true,"max_outputs":1,"max_references":0}},"contract_id":"media.gemini-2-5-flash-image.v1","contract_version":"v1","contract_fingerprint":"240c1369048275e3ae3ec16db479ebda38b31af481c1ca118c04ae0f23d66ead","pricing_ref":"mediacatalog:gemini-2.5-flash-image","contract":{"contract_id":"media.gemini-2-5-flash-image.v1","model":"gemini-2.5-flash-image","type":"image","version":"v1","fingerprint":"240c1369048275e3ae3ec16db479ebda38b31af481c1ca118c04ae0f23d66ead","media_options":{"image":{"sizes":["1K","2K","4K"],"default_size":"1K","ratios":["1:1","4:3","3:4","16:9","9:16"],"default_ratio":"1:1","reference_images":true,"max_outputs":1,"max_references":0}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"size","required":false,"type":"string"},{"name":"ratio","required":false,"type":"string"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"size","options":["1K","2K","4K"]},{"control":"select","field":"ratio","options":["1:1","4:3","3:4","16:9","9:16"]}]},"semantic_rules":[{"kind":"allowed_values","path":"size","values":["1K","2K","4K"]},{"kind":"allowed_values","path":"ratio","values":["1:1","4:3","3:4","16:9","9:16"]}],"adapter":{"id":"image.gemini.native.v1","version":"v1","wire_path":"/v1beta/models/{model}:generateContent"},"pricing_ref":"mediacatalog:gemini-2.5-flash-image","source":{"publisher":"Google","url":"https://ai.google.dev/gemini-api/docs/image-generation","kind":"official"},"docs":{"path":"/models/image/gemini-2-5-flash-image/","slug":"gemini-2-5-flash-image"},"examples":["examples/text.json","examples/reference.json"]}},{"id":38,"model_name":"muse-spark-1.3","vendor_id":15,"quota_type":0,"input_price":1.25,"model_ratio":0.625,"model_price":0,"owner_by":"","completion_ratio":3.4,"cache_ratio":0.12,"create_cache_ratio":0,"enable_groups":["spark-premium"],"supported_endpoint_types":["openai"]},{"model_name":"seedance-2.0-mini","vendor_id":13,"quota_type":0,"input_price":1.7085714285714286,"official_input_price":4.6,"model_ratio":0.8542857142857143,"model_price":0,"owner_by":"","completion_ratio":1,"official_completion_ratio":1,"enable_groups":["Media"],"supported_endpoint_types":["openai-video"],"billing_unit":"token","video_token_price":{"480p":1.7085714285714286,"480p_input_video":1.04,"720p":1.7085714285714286,"720p_input_video":1.04},"official_video_token_price":{"480p":4.6,"480p_input_video":2.8,"720p":4.6,"720p_input_video":2.8},"sale_price_multiplier":0.3714285714285715,"media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"default_ratio":"adaptive","resolutions":["480p","720p"],"default_resolution":"720p","seconds":[-1,4,5,6,7,8,9,10,11,12,13,14,15],"default_seconds":5,"audio":true,"max_references":15,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video","reference_audio"],"reference_role_limits":{"first_frame":1,"last_frame":1,"reference_audio":3,"reference_image":9,"reference_video":3},"reference_total_limit":15,"reference_exclusive_groups":[["first_frame","last_frame"],["reference_image","reference_video","reference_audio"]],"reference_requires_one_of":["first_frame","last_frame","reference_image","reference_video"]}},"contract_id":"media.seedance-2-0-mini.v1","contract_version":"v1","contract_fingerprint":"cfc1f594c8e58614a5b322789be6bf5aa36ee95b251daa75e1d87d1ae2766262","pricing_ref":"mediacatalog:seedance-2.0-mini","contract":{"contract_id":"media.seedance-2-0-mini.v1","model":"seedance-2.0-mini","type":"video","version":"v1","fingerprint":"cfc1f594c8e58614a5b322789be6bf5aa36ee95b251daa75e1d87d1ae2766262","media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"default_ratio":"adaptive","resolutions":["480p","720p"],"default_resolution":"720p","seconds":[-1,4,5,6,7,8,9,10,11,12,13,14,15],"default_seconds":5,"audio":true,"max_references":15,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video","reference_audio"],"reference_role_limits":{"first_frame":1,"last_frame":1,"reference_audio":3,"reference_image":9,"reference_video":3},"reference_total_limit":15,"reference_exclusive_groups":[["first_frame","last_frame"],["reference_image","reference_video","reference_audio"]],"reference_requires_one_of":["first_frame","last_frame","reference_image","reference_video"]}},"intent_schema":{"fields":[{"name":"prompt","required":false,"type":"string"},{"name":"ratio","required":false,"type":"string"},{"name":"resolution","required":false,"type":"string"},{"name":"duration","required":false,"type":"integer"},{"name":"audio","required":false,"type":"boolean"},{"items":"asset","name":"reference_asset_ids","required":false,"type":"array"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"ratio","options":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"]},{"control":"select","field":"resolution","options":["480p","720p"]},{"control":"select","field":"duration","options":[-1,4,5,6,7,8,9,10,11,12,13,14,15]},{"control":"switch","field":"audio"}]},"semantic_rules":[{"kind":"allowed_values","path":"ratio","values":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"]},{"kind":"allowed_values","path":"resolution","values":["480p","720p"]},{"kind":"allowed_values","path":"duration","values":[-1,4,5,6,7,8,9,10,11,12,13,14,15]},{"kind":"max_assets","path":"reference_asset_ids","value":15},{"kind":"prompt_optional_with_reference","path":"prompt"}],"adapter":{"id":"video.seedance.20.v1","version":"v1","wire_path":"/v1/videos","wire_options":{"audio_field":"generate_audio","ratio_field":"ratio"}},"pricing_ref":"mediacatalog:seedance-2.0-mini","source":{"publisher":"ByteDance / Volcengine","url":"https://www.volcengine.com/docs/82379/1330310","kind":"official"},"docs":{"path":"/models/video/seedance-2-0-mini/","slug":"seedance-2-0-mini"},"examples":["examples/text.json","examples/reference.json"]}},{"id":5,"model_name":"gpt-5.4","icon":"OpenAI","vendor_id":2,"context_window":1000000,"quota_type":0,"input_price":2.5,"model_ratio":1.25,"model_price":0,"owner_by":"","completion_ratio":6,"cache_ratio":0.1,"enable_groups":["openai-award","openai-premium","openai-stable","openai-enterprise","openai-first-topup"],"supported_endpoint_types":["openai","openai-response","openai-response-compact"]},{"id":41,"model_name":"claude-opus-5-5","icon":"Claude.Color","vendor_id":1,"context_window":1000000,"quota_type":0,"input_price":4,"model_ratio":2,"model_price":0,"owner_by":"","completion_ratio":5,"cache_ratio":0.05,"create_cache_ratio":1.25,"enable_groups":["claude-award","claude-first-topup","claude-stable","claude-premium","claude-tmp-cheap"],"supported_endpoint_types":["anthropic","openai"]},{"id":45,"model_name":"gpt-6.1-sol","icon":"OpenAI","vendor_id":2,"context_window":1050000,"quota_type":0,"input_price":2,"model_ratio":1,"model_price":0,"owner_by":"","completion_ratio":5,"cache_ratio":0.05,"create_cache_ratio":1.25,"enable_groups":["openai-premium","openai-award","openai-stable","openai-first-topup","openai-enterprise"],"supported_endpoint_types":["openai","openai-response","openai-response-compact"],"billing_mode":"tiered_expr","pricing_rules":{"version":1,"tiers":[{"label":"standard","conditions":[{"metric":"input_context_tokens","operator":"\u003c=","value":272000}],"unit_prices":{"cache_read":0.1,"cache_write":2.5,"input":2,"output":10}},{"label":"long_context","conditions":null,"unit_prices":{"cache_read":0.2,"cache_write":5,"input":4,"output":15}}],"request_rules":[],"has_request_rules":false,"complete":true}},{"model_name":"seedance-2.5","vendor_id":13,"quota_type":0,"input_price":14.4495,"official_input_price":11.7,"model_ratio":7.22475,"model_price":0,"owner_by":"","completion_ratio":1,"official_completion_ratio":1,"enable_groups":["Media"],"supported_endpoint_types":["openai-video"],"billing_unit":"token","video_token_price":{"1080p":14.4495,"1080p_input_video":8.645000000000001,"480p":13.2145,"480p_input_video":7.904000000000001,"720p":13.2145,"720p_input_video":7.904000000000001},"official_video_token_price":{"1080p":11.7,"1080p_input_video":7,"480p":10.7,"480p_input_video":6.4,"720p":10.7,"720p_input_video":6.4},"sale_price_multiplier":1.235,"media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"default_ratio":"adaptive","resolutions":["480p","720p","1080p"],"default_resolution":"720p","seconds":[-1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],"default_seconds":-1,"audio":true,"max_references":50,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video","reference_audio"],"reference_role_limits":{"first_frame":1,"last_frame":1,"reference_audio":10,"reference_image":30,"reference_video":10},"reference_total_limit":50,"reference_exclusive_groups":[["first_frame","last_frame"],["reference_image","reference_video","reference_audio"]],"workflow_types":["auto","reference","edit","extend"],"default_workflow":"auto","output_formats":["mp4","mov"],"default_output_format":"mp4","return_last_frame":true}},"contract_id":"media.seedance-2-5.v1","contract_version":"v1","contract_fingerprint":"37c632491a1b23a8dd328d9b89b3f14cd4a7c163ab55f73f27aefb4e0418caa5","pricing_ref":"mediacatalog:seedance-2.5","contract":{"contract_id":"media.seedance-2-5.v1","model":"seedance-2.5","type":"video","version":"v1","fingerprint":"37c632491a1b23a8dd328d9b89b3f14cd4a7c163ab55f73f27aefb4e0418caa5","media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"],"default_ratio":"adaptive","resolutions":["480p","720p","1080p"],"default_resolution":"720p","seconds":[-1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],"default_seconds":-1,"audio":true,"max_references":50,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video","reference_audio"],"reference_role_limits":{"first_frame":1,"last_frame":1,"reference_audio":10,"reference_image":30,"reference_video":10},"reference_total_limit":50,"reference_exclusive_groups":[["first_frame","last_frame"],["reference_image","reference_video","reference_audio"]],"workflow_types":["auto","reference","edit","extend"],"default_workflow":"auto","output_formats":["mp4","mov"],"default_output_format":"mp4","return_last_frame":true}},"intent_schema":{"fields":[{"name":"prompt","required":false,"type":"string"},{"name":"ratio","required":false,"type":"string"},{"name":"resolution","required":false,"type":"string"},{"name":"duration","required":false,"type":"integer"},{"name":"audio","required":false,"type":"boolean"},{"name":"workflow","required":false,"type":"string"},{"name":"output_format","required":false,"type":"string"},{"name":"return_last_frame","required":false,"type":"boolean"},{"items":"asset","name":"reference_asset_ids","required":false,"type":"array"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"ratio","options":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"]},{"control":"select","field":"resolution","options":["480p","720p","1080p"]},{"control":"select","field":"duration","options":[-1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]},{"control":"switch","field":"audio"},{"control":"select","field":"workflow","options":["auto","reference","edit","extend"]},{"control":"select","field":"output_format","options":["mp4","mov"]},{"control":"switch","field":"return_last_frame"}]},"semantic_rules":[{"kind":"allowed_values","path":"ratio","values":["16:9","9:16","1:1","4:3","3:4","21:9","adaptive"]},{"kind":"allowed_values","path":"resolution","values":["480p","720p","1080p"]},{"kind":"allowed_values","path":"duration","values":[-1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]},{"kind":"max_assets","path":"reference_asset_ids","value":50},{"kind":"prompt_optional_with_reference","path":"prompt"}],"adapter":{"id":"video.seedance.25.v1","version":"v1","wire_path":"/v1/videos","wire_options":{"audio_field":"generate_audio","ratio_field":"ratio"}},"pricing_ref":"mediacatalog:seedance-2.5","source":{"publisher":"ByteDance / Volcengine","url":"https://www.volcengine.com/docs/82379/1330310","kind":"official"},"docs":{"path":"/models/video/seedance-2-5/","slug":"seedance-2-5"},"examples":["examples/text.json","examples/reference.json","examples/edit.json","examples/extend.json"]}},{"id":52,"model_name":"gemini-3.6-flash","vendor_id":12,"context_window":1000000,"quota_type":0,"input_price":1.5,"model_ratio":0.75,"model_price":0,"owner_by":"","completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":0.6666666666666666,"enable_groups":["gemini-stable"],"supported_endpoint_types":["gemini","openai"],"billing_mode":"tiered_expr","pricing_rules":{"version":1,"tiers":[{"label":"base","conditions":null,"unit_prices":{"cache_read":0.15,"cache_write":1,"input":1.5,"output":7.5}}],"request_rules":[],"has_request_rules":false,"complete":true}},{"id":46,"model_name":"claude-haiku-5-5","icon":"Claude.Color","vendor_id":1,"context_window":1000000,"quota_type":0,"input_price":0.1,"model_ratio":0.05,"model_price":0,"owner_by":"","completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"enable_groups":["claude-stable","claude-premium","claude-award","claude-first-topup","claude-tmp-cheap"],"supported_endpoint_types":["anthropic","openai"],"billing_mode":"tiered_expr","pricing_rules":{"version":1,"tiers":[{"label":"standard","conditions":[{"metric":"input_context_tokens","operator":"\u003c=","value":100000}],"unit_prices":{"cache_read":0.01,"cache_write":0.125,"cache_write_1h":0.2,"input":0.1,"output":0.5}},{"label":"long_context","conditions":null,"unit_prices":{"cache_read":0.05,"cache_write":0.625,"cache_write_1h":1,"input":0.5,"output":2.5}}],"request_rules":[],"has_request_rules":false,"complete":true}},{"id":53,"model_name":"gemini-3.7-flash","vendor_id":12,"context_window":1000000,"quota_type":0,"input_price":1.5,"model_ratio":0.75,"model_price":0,"owner_by":"","completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":0.6666666666666666,"enable_groups":["gemini-stable"],"supported_endpoint_types":["gemini","openai"],"billing_mode":"tiered_expr","pricing_rules":{"version":1,"tiers":[{"label":"base","conditions":null,"unit_prices":{"cache_read":0.15,"cache_write":1,"input":1.5,"output":7.5}}],"request_rules":[],"has_request_rules":false,"complete":true}},{"id":31,"model_name":"glm-5.3","vendor_id":4,"quota_type":0,"input_price":1.1428571428571428,"model_ratio":0.5714285714285714,"model_price":0,"owner_by":"","completion_ratio":3.5,"cache_ratio":0.25,"enable_groups":["glm-award","glm-stable"],"supported_endpoint_types":["openai","openai-response","anthropic","gemini"]},{"id":49,"model_name":"gpt-6.1-terra","icon":"OpenAI","vendor_id":2,"context_window":1050000,"quota_type":0,"input_price":1,"model_ratio":0.5,"model_price":0,"owner_by":"","completion_ratio":5,"cache_ratio":0.05,"create_cache_ratio":1.25,"enable_groups":["openai-enterprise","openai-premium","openai-award","openai-first-topup","openai-stable"],"supported_endpoint_types":["openai","openai-response","openai-response-compact"],"billing_mode":"tiered_expr","pricing_rules":{"version":1,"tiers":[{"label":"standard","conditions":[{"metric":"input_context_tokens","operator":"\u003c=","value":272000}],"unit_prices":{"cache_read":0.05,"cache_write":1.25,"input":1,"output":5}},{"label":"long_context","conditions":null,"unit_prices":{"cache_read":0.1,"cache_write":2.5,"input":2,"output":7.5}}],"request_rules":[],"has_request_rules":false,"complete":true}},{"id":39,"model_name":"jev-1.13","vendor_id":16,"quota_type":0,"input_price":0.042,"model_ratio":0.021,"model_price":0,"owner_by":"","completion_ratio":0,"enable_groups":["jev-premium"],"supported_endpoint_types":["decisions"]},{"model_name":"gpt-image-2.5-sunburst","vendor_id":2,"quota_type":0,"input_price":5.33,"official_input_price":5,"model_ratio":2.665,"model_price":0,"owner_by":"","completion_ratio":6.000000000000001,"official_completion_ratio":6,"cache_ratio":0.25,"official_cache_ratio":0.25,"image_ratio":1.6,"official_image_ratio":1.6,"enable_groups":["Media"],"supported_endpoint_types":["image-generation"],"billing_unit":"token","sale_price_multiplier":1.066,"media_options":{"image":{"sizes":["auto","1024x1024","1536x1024","1024x1536"],"default_size":"1024x1024","custom_size":true,"output_formats":["png","jpeg","webp"],"default_output_format":"png","backgrounds":["auto","opaque","transparent"],"default_background":"auto","moderations":["auto","low"],"default_moderation":"auto","output_compression":true,"qualities":["low","medium","high"],"default_quality":"medium","max_outputs":10,"max_references":16}},"contract_id":"media.gpt-image-2-5-sunburst.v1","contract_version":"v1","contract_fingerprint":"b510eb6a7bb6c393959a811f0f3a5689ee5b9501bfbf2daa85eeb25889cd24ad","pricing_ref":"mediacatalog:gpt-image-2.5-sunburst","contract":{"contract_id":"media.gpt-image-2-5-sunburst.v1","model":"gpt-image-2.5-sunburst","type":"image","version":"v1","fingerprint":"b510eb6a7bb6c393959a811f0f3a5689ee5b9501bfbf2daa85eeb25889cd24ad","media_options":{"image":{"sizes":["auto","1024x1024","1536x1024","1024x1536"],"default_size":"1024x1024","custom_size":true,"output_formats":["png","jpeg","webp"],"default_output_format":"png","backgrounds":["auto","opaque","transparent"],"default_background":"auto","moderations":["auto","low"],"default_moderation":"auto","output_compression":true,"qualities":["low","medium","high"],"default_quality":"medium","max_outputs":10,"max_references":16}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"size","required":false,"type":"string"},{"name":"quality","required":false,"type":"string"},{"name":"output_format","required":false,"type":"string"},{"name":"background","required":false,"type":"string"},{"name":"moderation","required":false,"type":"string"},{"name":"n","required":false,"type":"number"},{"items":"asset","name":"reference_asset_ids","required":false,"type":"array"},{"name":"output_compression","required":false,"type":"number"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"size","options":["auto","1024x1024","1536x1024","1024x1536"]},{"control":"select","default":"medium","field":"quality","options":["low","medium","high"]},{"control":"select","field":"output_format","options":["png","jpeg","webp"]},{"control":"select","field":"background","options":["auto","opaque","transparent"]},{"control":"select","field":"moderation","options":["auto","low"]},{"control":"number","field":"n","max":10,"min":1},{"control":"number","field":"output_compression","max":100,"min":0}]},"semantic_rules":[{"kind":"allowed_values","path":"size","values":["auto","1024x1024","1536x1024","1024x1536"]},{"kind":"allowed_values","path":"quality","values":["low","medium","high"]},{"kind":"max_assets","path":"reference_asset_ids","value":16}],"adapter":{"id":"image.openai.edit.v1","version":"v1","wire_path":"/v1/images/generations","reference_wire_path":"/v1/images/edits","wire_options":{"edit_images_as_objects":true}},"pricing_ref":"mediacatalog:gpt-image-2.5-sunburst","source":{"publisher":"OpenAI","url":"https://platform.openai.com/docs/api-reference/images","kind":"official"},"docs":{"path":"/models/image/gpt-image-2-5-sunburst/","slug":"gpt-image-2-5-sunburst"},"examples":["examples/text.json","examples/reference.json"]}},{"model_name":"wan2.7-t2v","vendor_id":8,"quota_type":1,"input_price":0,"model_ratio":0,"model_price":0,"owner_by":"","completion_ratio":0,"enable_groups":["Media"],"supported_endpoint_types":["openai-video"],"billing_mode":"video_resolution","billing_unit":"per_second","video_resolution_price":{"1080p":0.11115000000000001,"720p":0.0741},"official_video_resolution_price":{"1080p":0.21,"720p":0.13999999999999999},"sale_price_multiplier":0.5292857142857144,"media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4"],"default_ratio":"16:9","resolutions":["720p","1080p"],"default_resolution":"1080p","seconds":[2,3,4,5,6,7,8,9,10,11,12,13,14,15],"default_seconds":5,"max_references":0}},"contract_id":"media.wan2-7-t2v.v1","contract_version":"v1","contract_fingerprint":"f34573d56f54ab22dc75fd5fa803c398049322d1c9d4cb4daddfdb1b14bffaaf","pricing_ref":"mediacatalog:wan2.7-t2v","contract":{"contract_id":"media.wan2-7-t2v.v1","model":"wan2.7-t2v","type":"video","version":"v1","fingerprint":"f34573d56f54ab22dc75fd5fa803c398049322d1c9d4cb4daddfdb1b14bffaaf","media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4"],"default_ratio":"16:9","resolutions":["720p","1080p"],"default_resolution":"1080p","seconds":[2,3,4,5,6,7,8,9,10,11,12,13,14,15],"default_seconds":5,"max_references":0}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"ratio","required":false,"type":"string"},{"name":"resolution","required":false,"type":"string"},{"name":"duration","required":false,"type":"integer"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"ratio","options":["16:9","9:16","1:1","4:3","3:4"]},{"control":"select","field":"resolution","options":["720p","1080p"]},{"control":"select","field":"duration","options":[2,3,4,5,6,7,8,9,10,11,12,13,14,15]}]},"semantic_rules":[{"kind":"allowed_values","path":"ratio","values":["16:9","9:16","1:1","4:3","3:4"]},{"kind":"allowed_values","path":"resolution","values":["720p","1080p"]},{"kind":"allowed_values","path":"duration","values":[2,3,4,5,6,7,8,9,10,11,12,13,14,15]}],"adapter":{"id":"video.wan.t2v.v1","version":"v1","wire_path":"/v1/videos","wire_options":{"ratio_field":"ratio"}},"pricing_ref":"mediacatalog:wan2.7-t2v","source":{"publisher":"Alibaba Cloud Model Studio","url":"https://help.aliyun.com/zh/model-studio/wan-video-generation","kind":"official"},"docs":{"path":"/models/video/wan2-7-t2v/","slug":"wan2-7-t2v"},"examples":["examples/text.json"]}},{"id":13,"model_name":"codex-auto-review","icon":"OpenAI","vendor_id":2,"context_window":272000,"quota_type":0,"input_price":2.5,"model_ratio":1.25,"model_price":0,"owner_by":"","completion_ratio":6,"cache_ratio":0.1,"enable_groups":["openai-award","openai-enterprise","openai-first-topup","openai-premium","openai-stable"],"supported_endpoint_types":["openai","openai-response","openai-response-compact"]},{"id":27,"model_name":"gpt-image-2","icon":"OpenAI","vendor_id":2,"display_priority":400,"quota_type":0,"input_price":3.77,"official_input_price":7,"model_ratio":1.885,"model_price":0,"owner_by":"","completion_ratio":5.999999999999999,"official_completion_ratio":6,"cache_ratio":0.25,"official_cache_ratio":0.25,"image_ratio":1.6,"official_image_ratio":1.5999999999999999,"enable_groups":["Media"],"supported_endpoint_types":["image-generation"],"billing_unit":"token","sale_price_multiplier":0.5385714285714286,"media_options":{"image":{"sizes":["auto","1024x1024","1536x1024","1024x1536"],"default_size":"1024x1024","custom_size":true,"qualities":["auto","low","medium","high"],"default_quality":"auto","max_outputs":10,"max_references":16}},"contract_id":"media.gpt-image-2.v1","contract_version":"v1","contract_fingerprint":"28b44e2700854f28e2c7b40f6117990dbe3673ec06855b4fc90f34a785b761fa","pricing_ref":"mediacatalog:gpt-image-2","contract":{"contract_id":"media.gpt-image-2.v1","model":"gpt-image-2","type":"image","version":"v1","fingerprint":"28b44e2700854f28e2c7b40f6117990dbe3673ec06855b4fc90f34a785b761fa","media_options":{"image":{"sizes":["auto","1024x1024","1536x1024","1024x1536"],"default_size":"1024x1024","custom_size":true,"qualities":["auto","low","medium","high"],"default_quality":"auto","max_outputs":10,"max_references":16}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"size","required":false,"type":"string"},{"name":"quality","required":false,"type":"string"},{"name":"n","required":false,"type":"number"},{"items":"asset","name":"reference_asset_ids","required":false,"type":"array"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"size","options":["auto","1024x1024","1536x1024","1024x1536"]},{"control":"select","field":"quality","options":["auto","low","medium","high"]},{"control":"number","field":"n","max":10,"min":1}]},"semantic_rules":[{"kind":"allowed_values","path":"size","values":["auto","1024x1024","1536x1024","1024x1536"]},{"kind":"allowed_values","path":"quality","values":["auto","low","medium","high"]},{"kind":"max_assets","path":"reference_asset_ids","value":16}],"adapter":{"id":"image.openai.edit.v1","version":"v1","wire_path":"/v1/images/generations","reference_wire_path":"/v1/images/edits"},"pricing_ref":"mediacatalog:gpt-image-2","source":{"publisher":"OpenAI","url":"https://platform.openai.com/docs/api-reference/images","kind":"official"},"docs":{"path":"/models/image/gpt-image-2/","slug":"gpt-image-2"},"examples":["examples/text.json","examples/reference.json"]}},{"model_name":"kling-2.5-turbo","vendor_id":14,"quota_type":1,"input_price":0,"model_ratio":0,"model_price":0,"owner_by":"","completion_ratio":0,"enable_groups":["Media"],"supported_endpoint_types":["openai-video"],"billing_mode":"video_resolution","billing_unit":"per_second","video_resolution_price":{"1080p":0.0637,"720p":0.03822},"official_video_resolution_price":{"1080p":0.098,"720p":0.0588},"video_feature_prices":[{"resolution":"720p","mode":"std","min_seconds":5,"price":0.03822,"official_price":0.0588},{"resolution":"1080p","mode":"pro","min_seconds":5,"price":0.0637,"official_price":0.098}],"sale_price_multiplier":0.65,"media_options":{"video":{"ratios":["16:9","9:16","1:1"],"default_ratio":"16:9","resolutions":["720p","1080p"],"default_resolution":"720p","seconds":[5,10],"default_seconds":5,"max_references":2,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video"],"reference_combinations":[["first_frame"],["first_frame","last_frame"],["reference_image","reference_video"]]}},"contract_id":"media.kling-2-5-turbo.v1","contract_version":"v1","contract_fingerprint":"3126429a6aaf524dc6fef7239bd78c28eba3d8c07dd9259c85ee8e422bebe2c6","pricing_ref":"mediacatalog:kling-2.5-turbo","contract":{"contract_id":"media.kling-2-5-turbo.v1","model":"kling-2.5-turbo","type":"video","version":"v1","fingerprint":"3126429a6aaf524dc6fef7239bd78c28eba3d8c07dd9259c85ee8e422bebe2c6","media_options":{"video":{"ratios":["16:9","9:16","1:1"],"default_ratio":"16:9","resolutions":["720p","1080p"],"default_resolution":"720p","seconds":[5,10],"default_seconds":5,"max_references":2,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video"],"reference_combinations":[["first_frame"],["first_frame","last_frame"],["reference_image","reference_video"]]}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"ratio","required":false,"type":"string"},{"name":"resolution","required":false,"type":"string"},{"name":"duration","required":false,"type":"integer"},{"items":"asset","name":"reference_asset_ids","required":false,"type":"array"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"ratio","options":["16:9","9:16","1:1"]},{"control":"select","field":"resolution","options":["720p","1080p"]},{"control":"select","field":"duration","options":[5,10]}]},"semantic_rules":[{"kind":"allowed_values","path":"ratio","values":["16:9","9:16","1:1"]},{"kind":"allowed_values","path":"resolution","values":["720p","1080p"]},{"kind":"allowed_values","path":"duration","values":[5,10]},{"kind":"max_assets","path":"reference_asset_ids","value":2}],"adapter":{"id":"video.kling.legacy.v1","version":"v1","wire_path":"/v1/videos","wire_options":{"audio_field":"sound","audio_switch_words":true,"mode_by_resolution":{"1080p":"pro","720p":"std"},"ratio_field":"aspect_ratio"}},"pricing_ref":"mediacatalog:kling-2.5-turbo","source":{"publisher":"Kuaishou Kling","url":"https://app.klingai.com/global/dev/document-api/apiReference/model/videoGeneration","kind":"official"},"docs":{"path":"/models/video/kling-2-5-turbo/","slug":"kling-2-5-turbo"},"examples":["examples/text.json","examples/reference.json"]}},{"model_name":"kling-3.0","vendor_id":14,"quota_type":1,"input_price":0,"model_ratio":0,"model_price":0,"owner_by":"","completion_ratio":0,"enable_groups":["Media"],"supported_endpoint_types":["openai-video"],"billing_mode":"video_resolution","billing_unit":"per_second","video_resolution_price":{"1080p":0.10192,"4k":0.3822,"720p":0.07644},"official_video_resolution_price":{"1080p":0.1568,"4k":0.588,"720p":0.1176},"video_feature_prices":[{"resolution":"720p","audio":true,"price":0.11466,"official_price":0.1764},{"resolution":"1080p","audio":true,"price":0.15288,"official_price":0.2352},{"resolution":"4k","audio":true,"price":0.3822,"official_price":0.588}],"sale_price_multiplier":0.65,"media_options":{"video":{"ratios":["16:9","9:16","1:1"],"default_ratio":"16:9","resolutions":["720p","1080p","4k"],"default_resolution":"720p","seconds":[3,5,8,10,15],"default_seconds":5,"audio":true,"max_references":2,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video"],"reference_combinations":[["first_frame"],["first_frame","last_frame"],["reference_image","reference_video"]]}},"contract_id":"media.kling-3-0.v1","contract_version":"v1","contract_fingerprint":"00277217650b129d06c4708a6fd3685c31514d41e3df461ca5b4cf86728cf261","pricing_ref":"mediacatalog:kling-3.0","contract":{"contract_id":"media.kling-3-0.v1","model":"kling-3.0","type":"video","version":"v1","fingerprint":"00277217650b129d06c4708a6fd3685c31514d41e3df461ca5b4cf86728cf261","media_options":{"video":{"ratios":["16:9","9:16","1:1"],"default_ratio":"16:9","resolutions":["720p","1080p","4k"],"default_resolution":"720p","seconds":[3,5,8,10,15],"default_seconds":5,"audio":true,"max_references":2,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video"],"reference_combinations":[["first_frame"],["first_frame","last_frame"],["reference_image","reference_video"]]}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"ratio","required":false,"type":"string"},{"name":"resolution","required":false,"type":"string"},{"name":"duration","required":false,"type":"integer"},{"name":"audio","required":false,"type":"boolean"},{"items":"asset","name":"reference_asset_ids","required":false,"type":"array"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"ratio","options":["16:9","9:16","1:1"]},{"control":"select","field":"resolution","options":["720p","1080p","4k"]},{"control":"select","field":"duration","options":[3,5,8,10,15]},{"control":"switch","field":"audio"}]},"semantic_rules":[{"kind":"allowed_values","path":"ratio","values":["16:9","9:16","1:1"]},{"kind":"allowed_values","path":"resolution","values":["720p","1080p","4k"]},{"kind":"allowed_values","path":"duration","values":[3,5,8,10,15]},{"kind":"max_assets","path":"reference_asset_ids","value":2}],"adapter":{"id":"video.kling.legacy.v1","version":"v1","wire_path":"/v1/videos","wire_options":{"audio_field":"sound","audio_switch_words":true,"mode_by_resolution":{"1080p":"pro","4k":"4k","720p":"std"},"ratio_field":"aspect_ratio"}},"pricing_ref":"mediacatalog:kling-3.0","source":{"publisher":"Kuaishou Kling","url":"https://app.klingai.com/global/dev/document-api/apiReference/model/videoGeneration","kind":"official"},"docs":{"path":"/models/video/kling-3-0/","slug":"kling-3-0"},"examples":["examples/text.json","examples/reference.json"]}},{"model_name":"wan3.0-video","vendor_id":8,"quota_type":1,"input_price":0,"model_ratio":0,"model_price":0,"owner_by":"","completion_ratio":0,"enable_groups":["Media"],"supported_endpoint_types":["openai-video"],"billing_mode":"video_resolution","billing_unit":"per_second","video_resolution_price":{"1080p":0.1976,"480p":0.0494,"720p":0.0988},"official_video_resolution_price":{"1080p":0.27999999999999997,"480p":0.06999999999999999,"720p":0.13999999999999999},"sale_price_multiplier":0.7057142857142857,"media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4","adaptive"],"default_ratio":"adaptive","resolutions":["480p","720p","1080p"],"default_resolution":"1080p","seconds":[-1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],"default_seconds":5,"audio":true,"max_references":21,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video","reference_audio","file","link"],"reference_role_limits":{"file":1,"first_frame":1,"last_frame":1,"link":1,"reference_audio":5,"reference_image":10,"reference_video":5},"reference_total_limit":21,"reference_exclusive_groups":[["first_frame","last_frame"],["reference_image","reference_video","reference_audio"],["file"],["link"]]}},"contract_id":"media.wan3-0-video.v1","contract_version":"v1","contract_fingerprint":"c248c1c28bbfbbcfd6d7ac3f2639f3183596b9126134fbeaed006d0e54e230f3","pricing_ref":"mediacatalog:wan3.0-video","contract":{"contract_id":"media.wan3-0-video.v1","model":"wan3.0-video","type":"video","version":"v1","fingerprint":"c248c1c28bbfbbcfd6d7ac3f2639f3183596b9126134fbeaed006d0e54e230f3","media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4","adaptive"],"default_ratio":"adaptive","resolutions":["480p","720p","1080p"],"default_resolution":"1080p","seconds":[-1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30],"default_seconds":5,"audio":true,"max_references":21,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video","reference_audio","file","link"],"reference_role_limits":{"file":1,"first_frame":1,"last_frame":1,"link":1,"reference_audio":5,"reference_image":10,"reference_video":5},"reference_total_limit":21,"reference_exclusive_groups":[["first_frame","last_frame"],["reference_image","reference_video","reference_audio"],["file"],["link"]]}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"ratio","required":false,"type":"string"},{"name":"resolution","required":false,"type":"string"},{"name":"duration","required":false,"type":"integer"},{"name":"audio","required":false,"type":"boolean"},{"items":"asset","name":"reference_asset_ids","required":false,"type":"array"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"ratio","options":["16:9","9:16","1:1","4:3","3:4","adaptive"]},{"control":"select","field":"resolution","options":["480p","720p","1080p"]},{"control":"select","field":"duration","options":[-1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]},{"control":"switch","field":"audio"}]},"semantic_rules":[{"kind":"allowed_values","path":"ratio","values":["16:9","9:16","1:1","4:3","3:4","adaptive"]},{"kind":"allowed_values","path":"resolution","values":["480p","720p","1080p"]},{"kind":"allowed_values","path":"duration","values":[-1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]},{"kind":"max_assets","path":"reference_asset_ids","value":21}],"adapter":{"id":"video.wan.v1","version":"v1","wire_path":"/v1/videos","wire_options":{"audio_field":"audio","ratio_field":"ratio"}},"pricing_ref":"mediacatalog:wan3.0-video","source":{"publisher":"Alibaba Cloud Model Studio","url":"https://help.aliyun.com/zh/model-studio/wan-video-generation","kind":"official"},"docs":{"path":"/models/video/wan3-0-video/","slug":"wan3-0-video"},"examples":["examples/text.json","examples/reference.json"]}},{"id":17,"model_name":"gpt-5.6-terra","icon":"OpenAI","vendor_id":2,"display_priority":200,"context_window":1050000,"quota_type":0,"input_price":2,"model_ratio":1,"model_price":0,"owner_by":"","completion_ratio":6,"cache_ratio":0.1,"create_cache_ratio":1.25,"enable_groups":["openai-first-topup","openai-premium","openai-award","openai-stable","openai-enterprise"],"supported_endpoint_types":["openai","openai-response","openai-response-compact"],"billing_mode":"tiered_expr","pricing_rules":{"version":1,"tiers":[{"label":"standard","conditions":[{"metric":"input_context_tokens","operator":"\u003c=","value":272000}],"unit_prices":{"cache_read":0.2,"cache_write":2.5,"input":2,"output":12}},{"label":"long_context","conditions":null,"unit_prices":{"cache_read":0.4,"cache_write":5,"input":4,"output":18}}],"request_rules":[{"conditions":[{"source":"param","path":"service_tier","mode":"eq","value":"priority","value_type":"string"}],"multiplier":"2"}],"has_request_rules":true,"complete":true}},{"id":36,"model_name":"deepseek-v4.1-flash","vendor_id":9,"quota_type":0,"input_price":0.3225806451612903,"model_ratio":0.16129032258064516,"model_price":0,"owner_by":"","completion_ratio":4,"cache_ratio":0.02,"enable_groups":["deepseek-stable","deepseek-award"],"supported_endpoint_types":["openai","openai-response","anthropic","gemini"]},{"id":35,"model_name":"gpt-6-astra","icon":"OpenAI","vendor_id":2,"context_window":1050000,"quota_type":0,"input_price":10,"model_ratio":5,"model_price":0,"owner_by":"","completion_ratio":5,"cache_ratio":0.1,"create_cache_ratio":1.25,"enable_groups":["openai-stable","openai-premium","openai-award","openai-enterprise","openai-first-topup"],"supported_endpoint_types":["openai","openai-response","openai-response-compact"],"billing_mode":"tiered_expr","pricing_rules":{"version":1,"tiers":[{"label":"standard","conditions":[{"metric":"input_context_tokens","operator":"\u003c=","value":272000}],"unit_prices":{"cache_read":1,"cache_write":12.5,"input":10,"output":50}},{"label":"long_context","conditions":null,"unit_prices":{"cache_read":2,"cache_write":25,"input":20,"output":75}}],"request_rules":[],"has_request_rules":false,"complete":true}},{"id":7,"model_name":"glm-5.2","vendor_id":4,"quota_type":0,"input_price":1.4,"model_ratio":0.7,"model_price":0,"owner_by":"","completion_ratio":3.1428571428571432,"cache_ratio":0.18571428571428572,"enable_groups":["glm-stable","glm-award"],"supported_endpoint_types":["openai","openai-response","anthropic","gemini"]},{"id":23,"model_name":"deepseek-v4-flash","vendor_id":9,"context_window":1000000,"quota_type":0,"input_price":0.42857142857142855,"model_ratio":0.21428571428571427,"model_price":0,"owner_by":"","completion_ratio":3,"cache_ratio":0.03333333333333333,"enable_groups":["deepseek-stable","deepseek-award"],"supported_endpoint_types":["gemini","openai","openai-response","anthropic"]},{"id":12,"model_name":"deepseek-v4-pro","vendor_id":9,"context_window":1000000,"quota_type":0,"input_price":1.2857142857142858,"model_ratio":0.6428571428571429,"model_price":0,"owner_by":"","completion_ratio":3,"cache_ratio":0.03333333333333333,"enable_groups":["deepseek-stable","deepseek-award"],"supported_endpoint_types":["openai","openai-response","anthropic","gemini"]},{"model_name":"gemini-3.1-flash-lite-image","vendor_id":12,"quota_type":0,"input_price":0.21125000000000002,"official_input_price":0.35,"model_ratio":0.10562500000000001,"model_price":0,"owner_by":"","completion_ratio":120,"official_completion_ratio":120.00000000000001,"enable_groups":["Media"],"supported_endpoint_types":["gemini"],"billing_unit":"token","sale_price_multiplier":0.6035714285714286,"media_options":{"image":{"sizes":["1K"],"default_size":"1K","ratios":["1:1","3:2","2:3","3:4","4:3","4:5","5:4","9:16","16:9","21:9"],"default_ratio":"1:1","reference_images":true,"max_outputs":1,"max_references":0}},"contract_id":"media.gemini-3-1-flash-lite-image.v1","contract_version":"v1","contract_fingerprint":"3eb181032c0d879a99b4c879c0ee28f714c72bf3d9c228ccc50eb61a3778b79e","pricing_ref":"mediacatalog:gemini-3.1-flash-lite-image","contract":{"contract_id":"media.gemini-3-1-flash-lite-image.v1","model":"gemini-3.1-flash-lite-image","type":"image","version":"v1","fingerprint":"3eb181032c0d879a99b4c879c0ee28f714c72bf3d9c228ccc50eb61a3778b79e","media_options":{"image":{"sizes":["1K"],"default_size":"1K","ratios":["1:1","3:2","2:3","3:4","4:3","4:5","5:4","9:16","16:9","21:9"],"default_ratio":"1:1","reference_images":true,"max_outputs":1,"max_references":0}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"size","required":false,"type":"string"},{"name":"ratio","required":false,"type":"string"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"size","options":["1K"]},{"control":"select","field":"ratio","options":["1:1","3:2","2:3","3:4","4:3","4:5","5:4","9:16","16:9","21:9"]}]},"semantic_rules":[{"kind":"allowed_values","path":"size","values":["1K"]},{"kind":"allowed_values","path":"ratio","values":["1:1","3:2","2:3","3:4","4:3","4:5","5:4","9:16","16:9","21:9"]}],"adapter":{"id":"image.gemini.native.v1","version":"v1","wire_path":"/v1beta/models/{model}:generateContent"},"pricing_ref":"mediacatalog:gemini-3.1-flash-lite-image","source":{"publisher":"Google","url":"https://ai.google.dev/gemini-api/docs/image-generation","kind":"official"},"docs":{"path":"/models/image/gemini-3-1-flash-lite-image/","slug":"gemini-3-1-flash-lite-image"},"examples":["examples/text.json","examples/reference.json"]}},{"model_name":"gpt-image-2.5-flare","vendor_id":2,"quota_type":0,"input_price":5.33,"official_input_price":5,"model_ratio":2.665,"model_price":0,"owner_by":"","completion_ratio":6.000000000000001,"official_completion_ratio":6,"cache_ratio":0.25,"official_cache_ratio":0.25,"image_ratio":1.6,"official_image_ratio":1.6,"enable_groups":["Media"],"supported_endpoint_types":["image-generation"],"billing_unit":"token","sale_price_multiplier":1.066,"media_options":{"image":{"sizes":["auto","1024x1024","1536x1024","1024x1536"],"default_size":"1024x1024","custom_size":true,"output_formats":["png","jpeg","webp"],"default_output_format":"png","backgrounds":["auto","opaque","transparent"],"default_background":"auto","moderations":["auto","low"],"default_moderation":"auto","output_compression":true,"qualities":["low","medium","high"],"default_quality":"medium","max_outputs":10,"max_references":16}},"contract_id":"media.gpt-image-2-5-flare.v1","contract_version":"v1","contract_fingerprint":"c4cbeff1ea117434ea2e7d714a58e7707eb2f7ca395190430840222909617f0b","pricing_ref":"mediacatalog:gpt-image-2.5-flare","contract":{"contract_id":"media.gpt-image-2-5-flare.v1","model":"gpt-image-2.5-flare","type":"image","version":"v1","fingerprint":"c4cbeff1ea117434ea2e7d714a58e7707eb2f7ca395190430840222909617f0b","media_options":{"image":{"sizes":["auto","1024x1024","1536x1024","1024x1536"],"default_size":"1024x1024","custom_size":true,"output_formats":["png","jpeg","webp"],"default_output_format":"png","backgrounds":["auto","opaque","transparent"],"default_background":"auto","moderations":["auto","low"],"default_moderation":"auto","output_compression":true,"qualities":["low","medium","high"],"default_quality":"medium","max_outputs":10,"max_references":16}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"size","required":false,"type":"string"},{"name":"quality","required":false,"type":"string"},{"name":"output_format","required":false,"type":"string"},{"name":"background","required":false,"type":"string"},{"name":"moderation","required":false,"type":"string"},{"name":"n","required":false,"type":"number"},{"items":"asset","name":"reference_asset_ids","required":false,"type":"array"},{"name":"output_compression","required":false,"type":"number"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"size","options":["auto","1024x1024","1536x1024","1024x1536"]},{"control":"select","default":"medium","field":"quality","options":["low","medium","high"]},{"control":"select","field":"output_format","options":["png","jpeg","webp"]},{"control":"select","field":"background","options":["auto","opaque","transparent"]},{"control":"select","field":"moderation","options":["auto","low"]},{"control":"number","field":"n","max":10,"min":1},{"control":"number","field":"output_compression","max":100,"min":0}]},"semantic_rules":[{"kind":"allowed_values","path":"size","values":["auto","1024x1024","1536x1024","1024x1536"]},{"kind":"allowed_values","path":"quality","values":["low","medium","high"]},{"kind":"max_assets","path":"reference_asset_ids","value":16}],"adapter":{"id":"image.openai.edit.v1","version":"v1","wire_path":"/v1/images/generations","reference_wire_path":"/v1/images/edits","wire_options":{"edit_images_as_objects":true}},"pricing_ref":"mediacatalog:gpt-image-2.5-flare","source":{"publisher":"OpenAI","url":"https://platform.openai.com/docs/api-reference/images","kind":"official"},"docs":{"path":"/models/image/gpt-image-2-5-flare/","slug":"gpt-image-2-5-flare"},"examples":["examples/text.json","examples/reference.json"]}},{"id":50,"model_name":"gemini-3.1-pro-preview","vendor_id":12,"context_window":1000000,"quota_type":0,"input_price":2,"model_ratio":1,"model_price":0,"owner_by":"","completion_ratio":6,"cache_ratio":0.1,"create_cache_ratio":2.25,"enable_groups":["gemini-stable"],"supported_endpoint_types":["gemini","openai"],"billing_mode":"tiered_expr","pricing_rules":{"version":1,"tiers":[{"label":"standard","conditions":[{"metric":"input_context_tokens","operator":"\u003c=","value":200000}],"unit_prices":{"cache_read":0.2,"cache_write":4.5,"input":2,"output":12}},{"label":"long_context","conditions":null,"unit_prices":{"cache_read":0.4,"cache_write":4.5,"input":4,"output":18}}],"request_rules":[],"has_request_rules":false,"complete":true}},{"id":51,"model_name":"gemini-3.5-flash","vendor_id":12,"context_window":1000000,"quota_type":0,"input_price":1.5,"model_ratio":0.75,"model_price":0,"owner_by":"","completion_ratio":6,"cache_ratio":0.1,"create_cache_ratio":0.6666666666666666,"enable_groups":["gemini-stable"],"supported_endpoint_types":["gemini","openai"],"billing_mode":"tiered_expr","pricing_rules":{"version":1,"tiers":[{"label":"base","conditions":null,"unit_prices":{"cache_read":0.15,"cache_write":1,"input":1.5,"output":9}}],"request_rules":[],"has_request_rules":false,"complete":true}},{"model_name":"happyhorse-1.1-r2v","vendor_id":8,"quota_type":1,"input_price":0,"model_ratio":0,"model_price":0,"owner_by":"","completion_ratio":0,"enable_groups":["Media"],"supported_endpoint_types":["openai-video"],"billing_mode":"video_resolution","billing_unit":"per_second","video_resolution_price":{"1080p":0.1287,"720p":0.10010000000000001},"official_video_resolution_price":{"1080p":0.252,"720p":0.196},"sale_price_multiplier":0.5107142857142858,"media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4","4:5","5:4","21:9","9:21"],"default_ratio":"16:9","resolutions":["720p","1080p"],"default_resolution":"1080p","seconds":[3,4,5,6,7,8,9,10,11,12,13,14,15],"default_seconds":5,"max_references":9,"requires_reference":true,"reference_media":["reference_image"]}},"contract_id":"media.happyhorse-1-1-r2v.v1","contract_version":"v1","contract_fingerprint":"080ba09723851efe1ae578055ceca7299f987e1fe2602d9e554e47a8431ec35a","pricing_ref":"mediacatalog:happyhorse-1.1-r2v","contract":{"contract_id":"media.happyhorse-1-1-r2v.v1","model":"happyhorse-1.1-r2v","type":"video","version":"v1","fingerprint":"080ba09723851efe1ae578055ceca7299f987e1fe2602d9e554e47a8431ec35a","media_options":{"video":{"ratios":["16:9","9:16","1:1","4:3","3:4","4:5","5:4","21:9","9:21"],"default_ratio":"16:9","resolutions":["720p","1080p"],"default_resolution":"1080p","seconds":[3,4,5,6,7,8,9,10,11,12,13,14,15],"default_seconds":5,"max_references":9,"requires_reference":true,"reference_media":["reference_image"]}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"ratio","required":false,"type":"string"},{"name":"resolution","required":false,"type":"string"},{"name":"duration","required":false,"type":"integer"},{"items":"asset","name":"reference_asset_ids","required":true,"type":"array"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"ratio","options":["16:9","9:16","1:1","4:3","3:4","4:5","5:4","21:9","9:21"]},{"control":"select","field":"resolution","options":["720p","1080p"]},{"control":"select","field":"duration","options":[3,4,5,6,7,8,9,10,11,12,13,14,15]}]},"semantic_rules":[{"kind":"allowed_values","path":"ratio","values":["16:9","9:16","1:1","4:3","3:4","4:5","5:4","21:9","9:21"]},{"kind":"allowed_values","path":"resolution","values":["720p","1080p"]},{"kind":"allowed_values","path":"duration","values":[3,4,5,6,7,8,9,10,11,12,13,14,15]},{"kind":"required_assets","path":"reference_asset_ids"},{"kind":"max_assets","path":"reference_asset_ids","value":9}],"adapter":{"id":"video.happyhorse.v1","version":"v1","wire_path":"/v1/videos","wire_options":{"ratio_field":"ratio"}},"pricing_ref":"mediacatalog:happyhorse-1.1-r2v","source":{"publisher":"Alibaba Cloud Model Studio","url":"https://help.aliyun.com/zh/model-studio/wan-video-generation","kind":"official"},"docs":{"path":"/models/video/happyhorse-1-1-r2v/","slug":"happyhorse-1-1-r2v"},"examples":["examples/reference.json"]}},{"model_name":"kling-2.6","vendor_id":14,"quota_type":1,"input_price":0,"model_ratio":0,"model_price":0,"owner_by":"","completion_ratio":0,"enable_groups":["Media"],"supported_endpoint_types":["openai-video"],"billing_mode":"video_resolution","billing_unit":"per_second","video_resolution_price":{"1080p":0.0637,"720p":0.03822},"official_video_resolution_price":{"1080p":0.098,"720p":0.0588},"video_feature_prices":[{"resolution":"720p","mode":"std","price":0.03822,"official_price":0.0588},{"resolution":"1080p","mode":"pro","price":0.0637,"official_price":0.098},{"resolution":"1080p","mode":"pro","audio":true,"price":0.1274,"official_price":0.196},{"resolution":"1080p","mode":"pro","audio":true,"specified_voice":true,"price":0.15288,"official_price":0.2352}],"sale_price_multiplier":0.65,"media_options":{"video":{"ratios":["16:9","9:16","1:1"],"default_ratio":"16:9","resolutions":["720p","1080p"],"default_resolution":"720p","seconds":[5,10],"default_seconds":5,"audio":true,"max_references":2,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video"],"reference_combinations":[["first_frame"],["first_frame","last_frame"],["reference_image","reference_video"]]}},"contract_id":"media.kling-2-6.v1","contract_version":"v1","contract_fingerprint":"b53fa35546d2b5028a69146a031a053d852003d673d1b7a334d8b124997101cc","pricing_ref":"mediacatalog:kling-2.6","contract":{"contract_id":"media.kling-2-6.v1","model":"kling-2.6","type":"video","version":"v1","fingerprint":"b53fa35546d2b5028a69146a031a053d852003d673d1b7a334d8b124997101cc","media_options":{"video":{"ratios":["16:9","9:16","1:1"],"default_ratio":"16:9","resolutions":["720p","1080p"],"default_resolution":"720p","seconds":[5,10],"default_seconds":5,"audio":true,"max_references":2,"reference_video":true,"reference_media":["first_frame","last_frame","reference_image","reference_video"],"reference_combinations":[["first_frame"],["first_frame","last_frame"],["reference_image","reference_video"]]}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"ratio","required":false,"type":"string"},{"name":"resolution","required":false,"type":"string"},{"name":"duration","required":false,"type":"integer"},{"name":"audio","required":false,"type":"boolean"},{"items":"asset","name":"reference_asset_ids","required":false,"type":"array"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"ratio","options":["16:9","9:16","1:1"]},{"control":"select","field":"resolution","options":["720p","1080p"]},{"control":"select","field":"duration","options":[5,10]},{"control":"switch","field":"audio"}]},"semantic_rules":[{"kind":"allowed_values","path":"ratio","values":["16:9","9:16","1:1"]},{"kind":"allowed_values","path":"resolution","values":["720p","1080p"]},{"kind":"allowed_values","path":"duration","values":[5,10]},{"kind":"max_assets","path":"reference_asset_ids","value":2}],"adapter":{"id":"video.kling.legacy.v1","version":"v1","wire_path":"/v1/videos","wire_options":{"audio_field":"sound","audio_switch_words":true,"mode_by_resolution":{"1080p":"pro","720p":"std"},"ratio_field":"aspect_ratio"}},"pricing_ref":"mediacatalog:kling-2.6","source":{"publisher":"Kuaishou Kling","url":"https://app.klingai.com/global/dev/document-api/apiReference/model/videoGeneration","kind":"official"},"docs":{"path":"/models/video/kling-2-6/","slug":"kling-2-6"},"examples":["examples/text.json","examples/reference.json"]}},{"id":20,"model_name":"kimi-k3","icon":"Kimi.Avatar","vendor_id":5,"context_window":1000000,"quota_type":0,"input_price":2.857142857142857,"model_ratio":1.4285714285714286,"model_price":0,"owner_by":"","completion_ratio":5,"cache_ratio":0.1,"enable_groups":["kimi-award","kimi-stable"],"supported_endpoint_types":["openai","openai-response","anthropic","gemini"]},{"model_name":"happyhorse-1.1-i2v","vendor_id":8,"quota_type":1,"input_price":0,"model_ratio":0,"model_price":0,"owner_by":"","completion_ratio":0,"enable_groups":["Media"],"supported_endpoint_types":["openai-video"],"billing_mode":"video_resolution","billing_unit":"per_second","video_resolution_price":{"1080p":0.1287,"720p":0.10010000000000001},"official_video_resolution_price":{"1080p":0.252,"720p":0.196},"sale_price_multiplier":0.5107142857142858,"media_options":{"video":{"resolutions":["720p","1080p"],"default_resolution":"1080p","seconds":[3,4,5,6,7,8,9,10,11,12,13,14,15],"default_seconds":5,"max_references":1,"requires_reference":true,"reference_media":["reference_image"]}},"contract_id":"media.happyhorse-1-1-i2v.v1","contract_version":"v1","contract_fingerprint":"01f7b831efe834006a6606efc8aa63b9cf704640b40556d3c3e1f70d0a91a3db","pricing_ref":"mediacatalog:happyhorse-1.1-i2v","contract":{"contract_id":"media.happyhorse-1-1-i2v.v1","model":"happyhorse-1.1-i2v","type":"video","version":"v1","fingerprint":"01f7b831efe834006a6606efc8aa63b9cf704640b40556d3c3e1f70d0a91a3db","media_options":{"video":{"resolutions":["720p","1080p"],"default_resolution":"1080p","seconds":[3,4,5,6,7,8,9,10,11,12,13,14,15],"default_seconds":5,"max_references":1,"requires_reference":true,"reference_media":["reference_image"]}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"resolution","required":false,"type":"string"},{"name":"duration","required":false,"type":"integer"},{"items":"asset","name":"reference_asset_ids","required":true,"type":"array"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"resolution","options":["720p","1080p"]},{"control":"select","field":"duration","options":[3,4,5,6,7,8,9,10,11,12,13,14,15]}]},"semantic_rules":[{"kind":"allowed_values","path":"resolution","values":["720p","1080p"]},{"kind":"allowed_values","path":"duration","values":[3,4,5,6,7,8,9,10,11,12,13,14,15]},{"kind":"required_assets","path":"reference_asset_ids"},{"kind":"max_assets","path":"reference_asset_ids","value":1}],"adapter":{"id":"video.happyhorse.v1","version":"v1","wire_path":"/v1/videos"},"pricing_ref":"mediacatalog:happyhorse-1.1-i2v","source":{"publisher":"Alibaba Cloud Model Studio","url":"https://help.aliyun.com/zh/model-studio/wan-video-generation","kind":"official"},"docs":{"path":"/models/video/happyhorse-1-1-i2v/","slug":"happyhorse-1-1-i2v"},"examples":["examples/reference.json"]}},{"model_name":"seedream-5-0-lite-260128","vendor_id":13,"quota_type":1,"input_price":0,"model_ratio":0,"model_price":0.033215,"official_model_price":0.049,"owner_by":"","completion_ratio":0,"enable_groups":["Media"],"supported_endpoint_types":["image-generation"],"billing_unit":"per_image","sale_price_multiplier":0.6778571428571428,"media_options":{"image":{"sizes":["2K","3K","4K"],"default_size":"2K","custom_size":true,"sequential_modes":["disabled","auto"],"default_sequential_mode":"disabled","max_sequential_images":15,"default_sequential_images":4,"max_outputs":1,"max_references":14}},"contract_id":"media.seedream-5-0-lite-260128.v1","contract_version":"v1","contract_fingerprint":"2e4bc2e3d57da161c67a9ba017e5c6950ec739bfcc211039c9ab2d1083708025","pricing_ref":"mediacatalog:seedream-5-0-lite-260128","contract":{"contract_id":"media.seedream-5-0-lite-260128.v1","model":"seedream-5-0-lite-260128","type":"image","version":"v1","fingerprint":"2e4bc2e3d57da161c67a9ba017e5c6950ec739bfcc211039c9ab2d1083708025","media_options":{"image":{"sizes":["2K","3K","4K"],"default_size":"2K","custom_size":true,"sequential_modes":["disabled","auto"],"default_sequential_mode":"disabled","max_sequential_images":15,"default_sequential_images":4,"max_outputs":1,"max_references":14}},"intent_schema":{"fields":[{"name":"prompt","required":true,"type":"string"},{"name":"size","required":false,"type":"string"},{"name":"sequential_image_generation","required":false,"type":"string"},{"items":"asset","name":"reference_asset_ids","required":false,"type":"array"}],"type":"object","unknown_fields":"reject"},"ui_schema":{"layout":[{"control":"select","field":"size","options":["2K","3K","4K"]},{"control":"select","field":"sequential_image_generation","options":["disabled","auto"]}]},"semantic_rules":[{"kind":"allowed_values","path":"size","values":["2K","3K","4K"]},{"kind":"max_assets","path":"reference_asset_ids","value":14}],"adapter":{"id":"image.seedream.v1","version":"v1","wire_path":"/v1/images/generations","wire_options":{"image_array":true}},"pricing_ref":"mediacatalog:seedream-5-0-lite-260128","source":{"publisher":"ByteDance / Volcengine","url":"https://www.volcengine.com/docs/82379/1330310","kind":"official"},"docs":{"path":"/models/image/seedream-5-0-lite-260128/","slug":"seedream-5-0-lite-260128"},"examples":["examples/text.json","examples/reference.json"]}}],"first_topup_offer":{"description":"Exclusive pricing unlocked when any single top-up reaches US$20. Ideal for personal development, feature validation, and light usage.","eligible":false,"enabled":true,"group":"openai-first-topup","group_definition":{"id":"openai-first-topup","ratio":0.015,"public":false,"family":"gpt","content_type":"text","kind":"campaign","sort_order":40,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":3,"first_output_timeout_seconds":0,"label":"openai-first-topup","description":"Exclusive pricing unlocked when any single top-up reaches US$20. Ideal for personal development, feature validation, and light usage."},"minimum_topup_amount":20,"ratio":0.015,"rpm":3,"unlocked":false},"first_topup_offers":[{"description":"Exclusive pricing unlocked when any single top-up reaches US$20. Ideal for personal development, feature validation, and light usage.","eligible":false,"enabled":true,"group":"openai-first-topup","group_definition":{"id":"openai-first-topup","ratio":0.015,"public":false,"family":"gpt","content_type":"text","kind":"campaign","sort_order":40,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":3,"first_output_timeout_seconds":0,"label":"openai-first-topup","description":"Exclusive pricing unlocked when any single top-up reaches US$20. Ideal for personal development, feature validation, and light usage."},"minimum_topup_amount":20,"ratio":0.015,"rpm":3,"unlocked":false},{"description":"Exclusive Claude pricing unlocked when any single top-up reaches US$50. Ideal for personal development, feature validation, and light usage.","eligible":false,"enabled":true,"group":"claude-first-topup","group_definition":{"id":"claude-first-topup","ratio":0.03,"public":false,"family":"claude","content_type":"text","kind":"campaign","sort_order":45,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":3,"first_output_timeout_seconds":0,"label":"claude-first-topup","badge":"Top-up exclusive","description":"Exclusive Claude pricing unlocked when any single top-up reaches US$50. Ideal for personal development, feature validation, and light usage.","external_note":"Top-up exclusive price"},"minimum_topup_amount":50,"ratio":0.03,"rpm":3,"unlocked":false}],"group_definitions":[{"id":"media","ratio":1,"model_ratio_only":true,"public":true,"family":"media","content_type":"video","kind":"stable","sort_order":5,"default":false,"recommended":true,"service_tier_allowed":false,"rpm":0,"first_output_timeout_seconds":0,"label":"Media","description":"Unified media route for image, video, and audio model calls."},{"id":"openai-award","ratio":0.03,"public":true,"family":"gpt","content_type":"text","kind":"award","sort_order":10,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":50,"first_output_timeout_seconds":45,"label":"openai-award","description":"Price-priority routing for budget-sensitive, retryable development, testing, and flexible workloads. Eligible requests receive 65% daily cache hit-rate protection, with shortfalls compensated.","cache_guarantee_target_bps":6500,"cache_guarantee_window":"utc_day"},{"id":"openai-stable","ratio":0.08,"public":true,"family":"gpt","content_type":"text","kind":"stable","sort_order":30,"default":true,"recommended":false,"service_tier_allowed":false,"rpm":50,"first_output_timeout_seconds":20,"label":"openai-stable","description":"The go-to choice for individual developers who prioritize stability, ideal for everyday development, long-term projects, and production applications. Eligible requests receive 75% daily cache hit-rate protection, with shortfalls compensated.","cache_guarantee_target_bps":7500,"cache_guarantee_window":"utc_day"},{"id":"claude-premium","ratio":0.5,"public":true,"family":"claude","content_type":"text","kind":"stable","sort_order":34,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":150,"first_output_timeout_seconds":0,"label":"claude-premium","description":"Premium Claude route for workloads that prioritize continuity and request success, billed at 50% of official list pricing."},{"id":"openai-premium","ratio":0.13,"public":true,"family":"gpt","content_type":"text","kind":"stable","sort_order":34,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":150,"first_output_timeout_seconds":20,"label":"openai-premium","description":"Premium OpenAI route for workloads that prioritize continuity and request success, billed at 13% of official list pricing. Eligible requests receive 85% daily cache hit-rate protection, with shortfalls compensated.","cache_guarantee_target_bps":8500,"cache_guarantee_window":"utc_day"},{"id":"openai-enterprise","ratio":0.5,"public":true,"family":"gpt","content_type":"text","kind":"stable","sort_order":35,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":0,"first_output_timeout_seconds":0,"label":"openai-enterprise","description":"Enterprise-only OpenAI stability route for authorized production workloads; no platform-level group RPM limit. Actual availability and throughput are subject to the enterprise service agreement and upstream quotas."},{"id":"openai-first-topup","ratio":0.015,"public":false,"family":"gpt","content_type":"text","kind":"campaign","sort_order":40,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":3,"first_output_timeout_seconds":0,"label":"openai-first-topup","description":"Exclusive pricing unlocked when any single top-up reaches US$20. Ideal for personal development, feature validation, and light usage."},{"id":"claude-first-topup","ratio":0.03,"public":false,"family":"claude","content_type":"text","kind":"campaign","sort_order":45,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":3,"first_output_timeout_seconds":0,"label":"claude-first-topup","badge":"Top-up exclusive","description":"Exclusive Claude pricing unlocked when any single top-up reaches US$50. Ideal for personal development, feature validation, and light usage.","external_note":"Top-up exclusive price"},{"id":"claude-award","ratio":0.25,"public":true,"family":"claude","content_type":"text","kind":"award","sort_order":50,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":50,"first_output_timeout_seconds":0,"label":"claude-award","description":"Price-priority routing for budget-sensitive, retryable development, testing, and flexible workloads."},{"id":"claude-stable","ratio":0.315,"public":true,"family":"claude","content_type":"text","kind":"stable","sort_order":70,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":150,"first_output_timeout_seconds":0,"label":"claude-stable","description":"The go-to choice for individual developers who prioritize stability, ideal for everyday development, long-term projects, and production applications."},{"id":"grok-award","ratio":0.01,"public":true,"family":"grok","content_type":"text","kind":"campaign","sort_order":75,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":0,"first_output_timeout_seconds":0,"label":"grok-award","description":"Price-priority routing for budget-sensitive, retryable development, testing, and flexible workloads."},{"id":"grok","ratio":0.11,"public":true,"family":"grok","content_type":"text","kind":"stable","sort_order":80,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":0,"first_output_timeout_seconds":0,"label":"grok-stable","description":"The go-to choice for individual developers who prioritize stability, ideal for everyday development, long-term projects, and production applications."},{"id":"kimi-award","ratio":0.35,"public":true,"family":"kimi","content_type":"text","kind":"award","sort_order":80,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":50,"first_output_timeout_seconds":0,"label":"kimi-award","description":"Price-priority routing for budget-sensitive, retryable development, testing, and flexible workloads."},{"id":"deepseek-award","ratio":0.35,"public":true,"family":"deepseek","content_type":"text","kind":"award","sort_order":81,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":50,"first_output_timeout_seconds":0,"label":"deepseek-award","description":"Price-priority routing for budget-sensitive, retryable development, testing, and flexible workloads."},{"id":"glm-award","ratio":0.35,"public":true,"family":"glm","content_type":"text","kind":"award","sort_order":82,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":50,"first_output_timeout_seconds":0,"label":"glm-award","description":"Price-priority routing for budget-sensitive, retryable development, testing, and flexible workloads."},{"id":"claude-tmp","ratio":0.06,"public":true,"family":"claude","content_type":"text","kind":"campaign","sort_order":1002,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":15,"first_output_timeout_seconds":0,"label":"claude-tmp-cheap","description":"Limited-time promotional route for Claude models.","external_note":"Limited-time promotional price"},{"id":"deepseek-stable","ratio":0.6,"public":true,"family":"deepseek","content_type":"text","kind":"stable","sort_order":1005,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":0,"first_output_timeout_seconds":0,"label":"deepseek-stable","description":"The go-to choice for individual developers who prioritize stability, ideal for everyday development, long-term projects, and production applications."},{"id":"gemini-stable","ratio":0.15,"public":true,"family":"gemini","content_type":"text","kind":"stable","sort_order":1006,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":0,"first_output_timeout_seconds":0,"label":"gemini-stable","description":"The go-to choice for individual developers who prioritize stability, ideal for everyday development, long-term projects, and production applications."},{"id":"kimi-stable","ratio":0.65,"public":true,"family":"kimi","content_type":"text","kind":"stable","sort_order":1009,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":0,"first_output_timeout_seconds":0,"label":"kimi-stable","description":"Official Kimi access on a high-stability channel, suited to everyday development, long-term projects, and production."},{"id":"qwen-stable","ratio":0.8,"public":true,"family":"qwen","content_type":"text","kind":"stable","sort_order":1015,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":0,"first_output_timeout_seconds":0,"label":"qwen-stable","description":"Official Qwen access on a high-stability channel, suited to everyday development, long-term projects, and production."},{"id":"glm-stable","ratio":0.5,"public":true,"family":"glm","content_type":"text","kind":"stable","sort_order":1018,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":0,"first_output_timeout_seconds":0,"label":"glm-stable","description":"Official GLM access on a high-stability channel, suited to everyday development, long-term projects, and production."},{"id":"spark-premium","ratio":1.15,"public":true,"family":"muse","content_type":"text","kind":"stable","sort_order":1030,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":0,"first_output_timeout_seconds":0,"label":"spark-premium","description":"Muse Spark route billed at 1.15× the official token price."},{"id":"jev-premium","ratio":1.15,"public":true,"family":"jev","content_type":"text","kind":"stable","sort_order":1040,"default":false,"recommended":false,"service_tier_allowed":false,"rpm":0,"first_output_timeout_seconds":0,"label":"jev-premium","description":"Jev decisions route billed at 1.15× the official token price."}],"group_ratio":{"Media":1,"claude-award":0.25,"claude-premium":0.5,"claude-stable":0.315,"claude-tmp-cheap":0.06,"deepseek-award":0.35,"deepseek-stable":0.6,"gemini-stable":0.15,"glm-award":0.35,"glm-stable":0.5,"grok-award":0.01,"grok-stable":0.11,"jev-premium":1.15,"kimi-award":0.35,"kimi-stable":0.65,"openai-award":0.03,"openai-enterprise":0.5,"openai-premium":0.13,"openai-stable":0.08,"qwen-stable":0.8,"spark-premium":1.15},"model_aliases":[{"billing_model":"gpt-5.6-terra","requested_model":"gpt-5.6-luna","routed_model":"gpt-5.6-terra"}],"pricing_cny_rate":6.73,"pricing_version":"20260821-gemini-image-resolution-v1","subscription_plans":[{"id":1,"title":"US$99.99 · Modelflare 28-Day Subscription","subtitle":"US$110 usage quota over 28 days, issued as US$27.50 every 7 days.","price_amount":99.99,"currency":"USD","duration_unit":"day","duration_value":28,"quota_reset_period":"custom","quota_reset_custom_seconds":604800,"credit_amount":110.00000039999999,"credit_per_period_amount":27.500000099999998,"quota_grant_periods":4,"unlimited":false,"entitlement_fixed":true},{"id":2,"title":"US$299.99 · Modelflare 28-Day Subscription","subtitle":"US$340 usage quota over 28 days, issued as US$85 every 7 days.","price_amount":299.99,"currency":"USD","duration_unit":"day","duration_value":28,"quota_reset_period":"custom","quota_reset_custom_seconds":604800,"credit_amount":339.99999959999997,"credit_per_period_amount":84.99999989999999,"quota_grant_periods":4,"unlimited":false,"entitlement_fixed":true},{"id":3,"title":"US$499.99 · Modelflare 28-Day Subscription","subtitle":"US$580 usage quota over 28 days, issued as US$145 every 7 days.","price_amount":499.99,"currency":"USD","duration_unit":"day","duration_value":28,"quota_reset_period":"custom","quota_reset_custom_seconds":604800,"credit_amount":579.9999996,"credit_per_period_amount":144.9999999,"quota_grant_periods":4,"unlimited":false,"entitlement_fixed":true},{"id":4,"title":"US$999.99 · Modelflare 28-Day Subscription","subtitle":"US$1,180 usage quota over 28 days, issued as US$295 every 7 days.","price_amount":999.99,"currency":"USD","duration_unit":"day","duration_value":28,"quota_reset_period":"custom","quota_reset_custom_seconds":604800,"credit_amount":1179.9999996,"credit_per_period_amount":294.9999999,"quota_grant_periods":4,"unlimited":false,"entitlement_fixed":true},{"id":5,"title":"US$1,499.99 · Modelflare 28-Day Subscription","subtitle":"US$1,800 usage quota over 28 days, issued as US$450 every 7 days.","price_amount":1499.99,"currency":"USD","duration_unit":"day","duration_value":28,"quota_reset_period":"custom","quota_reset_custom_seconds":604800,"credit_amount":1800,"credit_per_period_amount":450,"quota_grant_periods":4,"unlimited":false,"entitlement_fixed":true}],"success":true,"supported_endpoint":{"anthropic":{"path":"/v1/messages","method":"POST"},"decisions":{"path":"/v1/decisions","method":"POST"},"gemini":{"path":"/v1beta/models/{model}:generateContent","method":"POST"},"image-generation":{"path":"/v1/images/generations","method":"POST"},"openai":{"path":"/v1/chat/completions","method":"POST"},"openai-response":{"path":"/v1/responses","method":"POST"},"openai-response-compact":{"path":"/v1/responses/compact","method":"POST"}},"usable_group":{"Media":"Unified media route for image, video, and audio model calls.","claude-award":"Price-priority routing for budget-sensitive, retryable development, testing, and flexible workloads.","claude-premium":"Premium Claude route for workloads that prioritize continuity and request success, billed at 50% of official list pricing.","claude-stable":"The go-to choice for individual developers who prioritize stability, ideal for everyday development, long-term projects, and production applications.","claude-tmp-cheap":"Limited-time promotional route for Claude models.","deepseek-award":"Price-priority routing for budget-sensitive, retryable development, testing, and flexible workloads.","deepseek-stable":"The go-to choice for individual developers who prioritize stability, ideal for everyday development, long-term projects, and production applications.","gemini-stable":"The go-to choice for individual developers who prioritize stability, ideal for everyday development, long-term projects, and production applications.","glm-award":"Price-priority routing for budget-sensitive, retryable development, testing, and flexible workloads.","glm-stable":"Official GLM access on a high-stability channel, suited to everyday development, long-term projects, and production.","grok-award":"Price-priority routing for budget-sensitive, retryable development, testing, and flexible workloads.","grok-stable":"The go-to choice for individual developers who prioritize stability, ideal for everyday development, long-term projects, and production applications.","jev-premium":"Jev decisions route billed at 1.15× the official token price.","kimi-award":"Price-priority routing for budget-sensitive, retryable development, testing, and flexible workloads.","kimi-stable":"Official Kimi access on a high-stability channel, suited to everyday development, long-term projects, and production.","openai-award":"Price-priority routing for budget-sensitive, retryable development, testing, and flexible workloads. Eligible requests receive 65% daily cache hit-rate protection, with shortfalls compensated.","openai-enterprise":"Enterprise-only OpenAI stability route for authorized production workloads; no platform-level group RPM limit. Actual availability and throughput are subject to the enterprise service agreement and upstream quotas.","openai-premium":"Premium OpenAI route for workloads that prioritize continuity and request success, billed at 13% of official list pricing. Eligible requests receive 85% daily cache hit-rate protection, with shortfalls compensated.","openai-stable":"The go-to choice for individual developers who prioritize stability, ideal for everyday development, long-term projects, and production applications. Eligible requests receive 75% daily cache hit-rate protection, with shortfalls compensated.","qwen-stable":"Official Qwen access on a high-stability channel, suited to everyday development, long-term projects, and production.","spark-premium":"Muse Spark route billed at 1.15× the official token price."},"vendors":[{"id":9,"name":"DeepSeek","icon":"DeepSeek.Color"},{"id":12,"name":"Google","icon":"Gemini.Color"},{"id":14,"name":"快手","icon":"Kling.Color"},{"id":2,"name":"OpenAI","icon":"OpenAI"},{"id":7,"name":"MiniMax","icon":"Minimax.Color"},{"id":15,"name":"Meta","icon":"Meta.Color"},{"id":5,"name":"Moonshot AI","icon":"Moonshot"},{"id":1,"name":"Anthropic","icon":"Claude.Color"},{"id":4,"name":"Zhipu AI","icon":"Zhipu.Color"},{"id":8,"name":"Alibaba Cloud","icon":"AlibabaCloud.Color"},{"id":10,"name":"xAI","icon":"XAI"},{"id":13,"name":"ByteDance","icon":"ByteDance"},{"id":16,"name":"TypeSafe","icon":"TypeSafe"}]}\ No newline at end of filediff --git a/site/tests/platform.test.ts b/site/tests/platform.test.tsnew file mode 100644index 0000000..68e0ed6--- /dev/null+++ b/site/tests/platform.test.ts@@ -0,0 +1,28 @@+import { describe, expect, it } from "vitest";+import { osFromStrings } from "../src/lib/platform";+import { fmt, fmtDate, href } from "../src/i18n";++describe("系统识别", () => {+ it.each([+ ["Win32", "Mozilla/5.0 (Windows NT 10.0; Win64; x64)", "win"],+ ["MacIntel", "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_5)", "mac"],+ ["Linux x86_64", "Mozilla/5.0 (X11; Linux x86_64)", "linux"],+ ["Linux armv8l", "Mozilla/5.0 (Linux; Android 14; Pixel 8)", "mobile"],+ ["iPhone", "Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X)", "mobile"],+ ["", "", "unknown"],+ ])("%s → %s", (p, ua, os) => expect(osFromStrings(p, ua)).toBe(os));+ it("iPadOS 伪装成 Mac 时按手机处理", () => expect(osFromStrings("MacIntel", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)", true)).toBe("mobile"));+});++describe("i18n 工具", () => {+ it("fmt 只替换提供的变量", () => expect(fmt("{a} / {b}", { a: 1 })).toBe("1 / {b}"));+ it("日期本地化", () => {+ expect(fmtDate("2026-10-30T21:24:41+08:00", "zh")).toBe("2026-10-30 21:24");+ expect(fmtDate("2026-10-30T21:24:41+08:00", "en")).toBe("Oct 30, 2026 21:24");+ });+ it("站内链接", () => {+ expect(href("zh", "/pricing")).toBe("/pricing");+ expect(href("en", "/")).toBe("/en/");+ expect(href("en", "/pricing")).toBe("/en/pricing");+ });+});diff --git a/site/tests/pricing.test.ts b/site/tests/pricing.test.tsnew file mode 100644index 0000000..719f39e--- /dev/null+++ b/site/tests/pricing.test.ts@@ -0,0 +1,121 @@+// 价格规则单测:固定使用 2026-10-30 抓取的原始数据(§6.5 C / D 的验收值)+import { describe, expect, it } from "vitest";+import raw from "./fixtures/pricing-2026-10-30.json";+import { buildSnapshot } from "../src/lib/snapshot";+import { pricingConfig } from "../src/data/pricing.config";+import { estimate, fmtMoney, fmtSmall, PRESETS, calcGroups } from "../src/lib/calc";+import { fmtPrice, tierFor } from "../src/lib/pricing";++const snap = buildSnapshot(raw, pricingConfig, new Date("2026-10-30T13:24:41Z"));+const row = (m: string) => snap.rows.find((r) => r.model === m)!;++describe("快照", () => {+ it("计数与时间", () => {+ expect(snap.fetchedAt).toBe("2026-10-30T21:24:41+08:00");+ expect(snap.counts).toEqual({ models: 70, text: 41, media: 29, vendors: 13 });+ expect(snap.pricingVersion).toBe("20260821-gemini-image-resolution-v1");+ });+ it("示例模型", () => {+ expect(snap.sample).toEqual({ model: "gpt-5.6-sol", input: "$0.4", output: "$2.4", officialIn: "$5", officialOut: "$30", monthly: "$3.96" });+ });+});++describe("精选行(默认线路,USD / 1M tokens)", () => {+ const cases: [string, string, number, number, number, number, number][] = [+ ["gpt-5.6-sol", "openai-stable", 0.4, 2.4, 5, 30, 0.08],+ ["gpt-6.1-terra", "openai-stable", 0.08, 0.4, 1, 5, 0.08],+ ["claude-opus-5-5", "claude-stable", 1.26, 6.3, 4, 20, 0.315],+ ["claude-sonnet-5-5", "claude-stable", 0.63, 3.15, 2, 10, 0.315],+ ["claude-haiku-5-5", "claude-stable", 0.0315, 0.1575, 0.1, 0.5, 0.315],+ ["deepseek-v4-flash", "deepseek-stable", 0.257143, 0.771429, 0.428571, 1.285714, 0.6],+ ];+ it.each(cases)("%s", (m, g, i, o, oi, oo, ratio) => {+ const r = row(m);+ expect(r.defaultGroup).toBe(g);+ expect([r.input, r.output, r.officialInput, r.officialOutput, r.ratio]).toEqual([i, o, oi, oo, ratio]);+ });+ it("gpt-5.6-sol 全部线路", () => {+ const gs = row("gpt-5.6-sol").groups.map((g) => [g.id, g.ratio, g.input, g.output, g.conditional?.minTopupUSD ?? null]);+ expect(gs).toEqual([+ ["openai-award", 0.03, 0.15, 0.9, null],+ ["openai-stable", 0.08, 0.4, 2.4, null],+ ["openai-premium", 0.13, 0.65, 3.9, null],+ ["openai-enterprise", 0.5, 2.5, 15, null],+ ["openai-first-topup", 0.015, 0.075, 0.45, 20],+ ]);+ });+ it("分档阈值", () => {+ expect(tierFor(row("gpt-5.6-sol"), 272_000).label).toBe("standard");+ expect(tierFor(row("gpt-5.6-sol"), 272_001).label).toBe("long_context");+ expect(row("claude-haiku-5-5").tiers[0].maxInputTokens).toBe(100_000);+ });+});++describe("官方价规则(与 modelflare.dev/pricing 前端一致)", () => {+ it("没有 official_input_price 时用基础价", () => {+ const r = row("deepseek-v4-flash");+ expect([r.officialInput, r.officialOutput]).toEqual([0.428571, 1.285714]);+ });+ it("有 official_input_price 时用它,输出 × official_completion_ratio", () => {+ const data = structuredClone(raw) as any;+ const m = data.data.find((x: any) => x.model_name === "claude-opus-5-5");+ m.official_input_price = 5; m.official_completion_ratio = 6;+ const r = buildSnapshot(data, pricingConfig, new Date()).rows.find((x) => x.model === "claude-opus-5-5")!;+ expect([r.officialInput, r.officialOutput]).toEqual([5, 30]);+ });+});++describe("全部文本模型", () => {+ it("都有默认线路,且默认线路不是条件价", () => {+ for (const r of snap.rows) {+ const d = r.groups.find((g) => g.id === r.defaultGroup)!;+ expect(d, r.model).toBeTruthy();+ expect(d.conditional, r.model).toBeUndefined();+ expect(Number.isFinite(r.input) && Number.isFinite(r.output), r.model).toBe(true);+ }+ });+ it("条件价线路都带解锁金额", () => {+ const cond = snap.rows.flatMap((r) => r.groups.filter((g) => g.conditional));+ expect(cond.length).toBeGreaterThan(0);+ for (const g of cond) expect(g.conditional!.minTopupUSD).toBeGreaterThan(0);+ expect(row("claude-opus-5-5").groups.find((g) => g.conditional)!.conditional!.minTopupUSD).toBe(50);+ });+});++describe("计算器(30 天,默认线路)", () => {+ const vec: [string, number, number, number, number][] = [+ ["gpt-5.6-sol", 0.67, 3.96, 69.6, 49.5],+ ["gpt-6.1-terra", 0.12, 0.72, 13.2, 9],+ ["claude-opus-5-5", 1.89, 11.34, 207.9, 36],+ ["claude-sonnet-5-5", 0.95, 5.67, 103.95, 18],+ ["claude-haiku-5-5", 0.05, 0.28, 5.2, 0.9],+ ["deepseek-v4-flash", 0.29, 1.85, 37.8, 3.09],+ ];+ it.each(vec)("%s", (m, light, every, heavy, official) => {+ const r = row(m);+ const run = (p: (typeof PRESETS)[keyof typeof PRESETS]) => estimate(r, { group: r.defaultGroup, ...p });+ // 页面显示的是两位小数(与 §6.5 D 的验收表逐格一致)+ expect([run(PRESETS.light), run(PRESETS.everyday), run(PRESETS.heavy)].map((e) => fmtMoney(e.monthly))).toEqual([light, every, heavy].map(fmtMoney));+ const o = run(PRESETS.everyday).official;+ expect(fmtMoney(o)).toBe(fmtMoney(official!));+ });+ it("分项与每条", () => {+ const r = row("gpt-5.6-sol");+ const e = estimate(r, { group: r.defaultGroup, ...PRESETS.everyday });+ expect([fmtMoney(e.input), fmtMoney(e.output), fmtSmall(e.perMsg)]).toEqual(["$1.80", "$2.16", "$0.00264"]);+ });+ it("award 线路可选,条件价不可选", () => {+ expect(calcGroups(row("gpt-5.6-sol")).map((g) => g.id)).toEqual(["openai-stable", "openai-award"]);+ const r = row("gpt-5.6-sol");+ expect(estimate(r, { group: "openai-first-topup", ...PRESETS.everyday }).monthly).toBeCloseTo(3.96, 2);+ });+});++describe("格式", () => {+ it("价格", () => {+ expect([fmtPrice(0.0315), fmtPrice(0.2571428571), fmtPrice(1.26), fmtPrice(0.39999999999999997)]).toEqual(["$0.0315", "$0.257143", "$1.26", "$0.4"]);+ });+ it("金额", () => {+ expect([fmtMoney(0.004), fmtMoney(3.955), fmtMoney(1234.5)]).toEqual(["< $0.01", "$3.96", "$1,234.50"]);+ });+});diff --git a/site/tsconfig.json b/site/tsconfig.jsonnew file mode 100644index 0000000..8226796--- /dev/null+++ b/site/tsconfig.json@@ -0,0 +1,6 @@+{+ "extends": "astro/tsconfigs/strict",+ "compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact", "resolveJsonModule": true },+ "include": [".astro/types.d.ts", "src", "scripts", "tests"],+ "exclude": ["dist"]+}diff --git a/site/vitest.config.ts b/site/vitest.config.tsnew file mode 100644index 0000000..60b59f0--- /dev/null+++ b/site/vitest.config.ts@@ -0,0 +1,2 @@+import { defineConfig } from "vitest/config";+export default defineConfig({ test: { include: ["tests/**/*.test.ts"] } });