dsh-cost-meter 1.9.45 → 1.9.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  **Session cost tracking plugin for the DeepSeek Harness web GUI (bilingual UI)**
8
8
 
9
- [![version](https://img.shields.io/badge/version-1.9.45-4176E6)](https://github.com/Han-1413141/dsh-cost-meter)
9
+ [![version](https://img.shields.io/badge/version-1.9.46-4176E6)](https://github.com/Han-1413141/dsh-cost-meter)
10
10
  [![npm](https://img.shields.io/npm/v/dsh-cost-meter?label=npm)](https://www.npmjs.com/package/dsh-cost-meter)
11
11
  [![dshfind](https://dshfind.com/api/badge/Han-1413141/dsh-cost-meter?metric=downloads&lang=en)](https://dshfind.com/zh/plugins/Han-1413141/dsh-cost-meter?ref=badge)
12
12
  [![license](https://img.shields.io/badge/license-MIT-green)](LICENSE)
@@ -16,11 +16,11 @@
16
16
 
17
17
  </div>
18
18
 
19
- **v1.9.45** adds OpenDesign web-Cookie quota queries and optional click-to-hide balances, reduces retained cache memory, makes cost-view loading recoverable, fixes toolbar alignment, and improves Anthropic quota labels, reset times and warnings.
19
+ **v1.9.46** keeps the peak-period arrow inside its track at switching boundaries and includes OpenDesign web-Cookie quotas, optional click-to-hide balances, lower cache memory, recoverable cost-view loading and Anthropic quota improvements.
20
20
 
21
21
  **Host floor: DSH 0.2.0** · Adaptation target: **0.2.1-rc.2** (npm `next`). Expand the compatibility notes below for exact declarations, host records and troubleshooting.
22
22
 
23
- Release notes: [v1.9.45](docs/update-notes-1.9.45.md#english). Fully restart DSH after updating.
23
+ Release notes: [v1.9.46](docs/update-notes-1.9.46.md#english). Fully restart DSH after updating.
24
24
 
25
25
  ![Promo art](docs/promo.en.png)
26
26
 
@@ -356,22 +356,22 @@ On Node.js 20, use `npm install -g pnpm@10` instead. See [pnpm installation and
356
356
  dsh plugin --profile web add dsh-cost-meter
357
357
  ```
358
358
 
359
- **PowerShell one-click script** (copy the whole line, paste, press Enter; pnpm is provisioned automatically, git is auto-detected — no clone needed; the install chain is **pinned to the release tag `v1.9.45`** — review the script before running):
359
+ **PowerShell one-click script** (copy the whole line, paste, press Enter; pnpm is provisioned automatically, git is auto-detected — no clone needed; the install chain is **pinned to the release tag `v1.9.46`** — review the script before running):
360
360
 
361
361
  ```powershell
362
- irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.45/install.ps1 | iex
362
+ irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.46/install.ps1 | iex
363
363
  ```
364
364
 
365
365
  **Or a plain command line** (the machine must already have pnpm and git; also pinned to the tag):
366
366
 
367
367
  ```sh
368
- dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.45
368
+ dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.46
369
369
  ```
370
370
 
371
371
  Without git, use the GitHub tag archive:
372
372
 
373
373
  ```sh
374
- dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.45.tar.gz
374
+ dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.46.tar.gz
375
375
  ```
376
376
 
377
377
  After installing, **restart** `dsh web` (plugin rows, the Typert manifest and the client bundle are all scanned at startup):
@@ -436,7 +436,7 @@ Workarounds:
436
436
 
437
437
  ```yaml
438
438
  minimumReleaseAgeExclude:
439
- - dsh-cost-meter@1.9.45
439
+ - dsh-cost-meter@1.9.46
440
440
  ```
441
441
 
442
442
  3. For a one-off CLI operation, forward the pnpm flag: `dsh plugin --profile desktop remove dsh-cost-meter --config.minimum-release-age=0` (or add `--trust-lockfile` when only lockfile verification fails). Both flags were verified against pnpm 11.28.5 in a temporary profile.
package/README.zh-CN.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  **DeepSeek Harness 会话费用统计插件(界面中英双语)**
8
8
 
9
- [![version](https://img.shields.io/badge/version-1.9.45-4176E6)](https://github.com/Han-1413141/dsh-cost-meter)
9
+ [![version](https://img.shields.io/badge/version-1.9.46-4176E6)](https://github.com/Han-1413141/dsh-cost-meter)
10
10
  [![npm](https://img.shields.io/npm/v/dsh-cost-meter?label=npm)](https://www.npmjs.com/package/dsh-cost-meter)
11
11
  [![dshfind](https://dshfind.com/api/badge/Han-1413141/dsh-cost-meter?metric=downloads&lang=zh)](https://dshfind.com/zh/plugins/Han-1413141/dsh-cost-meter?ref=badge)
12
12
  [![license](https://img.shields.io/badge/license-MIT-green)](LICENSE)
@@ -16,11 +16,11 @@
16
16
 
17
17
  </div>
18
18
 
19
- **v1.9.45** 新增 OpenDesign 网页 Cookie 额度查询与可选的余额快速隐藏,降低缓存内存占用,费用明细加载超时可重试,修复按钮错位,并改进 Anthropic 额度标签、重置时间和告警。
19
+ **v1.9.46** 修复峰谷切换时分段箭头越界,并包含 OpenDesign 网页 Cookie 额度查询、可选的余额快速隐藏、缓存内存优化、费用明细加载与 Anthropic 额度改进。
20
20
 
21
21
  **宿主要求:DSH 0.2.0 起支持** · 适配目标 **0.2.1-rc.2**(npm `next`)。完整声明、历史记录与安装排障见下方展开项。
22
22
 
23
- 更新说明:[v1.9.45](docs/update-notes-1.9.45.md#中文)。更新后完全重启 DSH。
23
+ 更新说明:[v1.9.46](docs/update-notes-1.9.46.md#中文)。更新后完全重启 DSH。
24
24
 
25
25
  ![宣传图](docs/promo.png)
26
26
 
@@ -356,22 +356,22 @@ Node.js 20 请改用 `npm install -g pnpm@10`。版本要求见 [pnpm 官方安
356
356
  dsh plugin --profile web add dsh-cost-meter
357
357
  ```
358
358
 
359
- **PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.45`**,建议先下载审阅再运行):
359
+ **PowerShell 一键脚本**(复制整行粘贴回车;自动补齐 pnpm、自动探测 git,无需克隆仓库;安装链**固定到发布 tag `v1.9.46`**,建议先下载审阅再运行):
360
360
 
361
361
  ```powershell
362
- irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.45/install.ps1 | iex
362
+ irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.46/install.ps1 | iex
363
363
  ```
364
364
 
365
365
  **或直接命令行**(机器上需已有 pnpm 与 git;同样固定到 tag):
366
366
 
367
367
  ```sh
368
- dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.45
368
+ dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.46
369
369
  ```
370
370
 
371
371
  没有 git 时可用 GitHub tag 打包直链:
372
372
 
373
373
  ```sh
374
- dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.45.tar.gz
374
+ dsh plugin --profile web add https://github.com/Han-1413141/dsh-cost-meter/archive/refs/tags/v1.9.46.tar.gz
375
375
  ```
376
376
 
377
377
  安装后**重启** `dsh web`(插件行、Typert 清单与客户端 bundle 均在启动时扫描):
@@ -436,7 +436,7 @@ DSH **0.2.1-rc.1 / 0.2.1-rc.2** 宿主自带 pnpm **11.28.5**,默认启用内
436
436
 
437
437
  ```yaml
438
438
  minimumReleaseAgeExclude:
439
- - dsh-cost-meter@1.9.45
439
+ - dsh-cost-meter@1.9.46
440
440
  ```
441
441
 
442
442
  3. 仅本次操作用 CLI 透传 pnpm 参数:`dsh plugin --profile desktop remove dsh-cost-meter --config.minimum-release-age=0`;若只是 lockfile 校验阶段失败,可改用 `--trust-lockfile`。这两个参数已在本机 pnpm 11.28.5 临时 Profile 上实测可用。
@@ -57,3 +57,12 @@ DSH_TEST_NODE_MODULES=/path/to/host/node_modules \
57
57
  DSH_TEST_CODEX_PACKAGE=/path/to/dsh-codex-subscription-3.2.0.tgz \
58
58
  node test/codex-subscription-published.mjs
59
59
  ```
60
+
61
+ ## 2026-10-29:billion-context 0.1.209 与 Codex Subscription 3.2.1
62
+
63
+ 处理 github-actions[bot] 在 [#441](https://github.com/Han-1413141/dsh-cost-meter/issues/441)、[#442](https://github.com/Han-1413141/dsh-cost-meter/issues/442) 报告的版本及接入函数变化。实际 npm 发布包的 SHA-512 已与官方元数据匹配。
64
+
65
+ - billion-context 0.1.209:代理增加插件渲染路由;原生传输增加代理重启等待、直连前的超长请求检查和模式变化日志。实际发布包通过四协议计费、缓存用量、压缩、重试、父子会话、API/Plan 分类、回放、重启、取消、隐私及原版 CLI 自动接入检查。
66
+ - dsh-codex-subscription 3.2.1:RPC 增加默认模型重置分支,额度解析器及 reader 指纹保持一致。实际发布包通过单周/双窗口、默认缓存、强制刷新、账号切换、共享请求取消、登录失效与真实宿主传输拒绝检查。
67
+
68
+ 费用插件运行时代码无需调整。仅更新上述两个基线,保留 Connect 基线,并在 CI 中保留旧版本、加入两个新版本。测试使用合成数据与本机服务器,外部账户及模型请求为 0。
@@ -0,0 +1,19 @@
1
+ # v1.9.46:峰谷箭头与上游兼容更新
2
+
3
+ ## 中文
4
+
5
+ 峰谷分段样式的箭头现在完整保留在组件内。临近高峰开始、时段切换或周末结束时,箭头继续反映实际进度,不再因箭头宽度造成横向溢出。
6
+
7
+ 本版包含 [v1.9.45 的全部更新](update-notes-1.9.45.md):OpenDesign 网页 Cookie 额度、可选的余额快速隐藏、费用明细加载与按钮布局修复、Anthropic 额度改进,以及前后端缓存内存优化。余额隐藏开关位于“设置 → 费用 → 显示 → 侧栏 → 余额/自定义余额”。[OpenDesign 配置步骤](opendesign-billing.md#额度查询)。
8
+
9
+ 同时验证并接受 billion-context 0.1.209 与 dsh-codex-subscription 3.2.1 的兼容基线,详见[实际发布包检查](plugin-compatibility-watch.md)。
10
+
11
+ 更新后完全重启 DSH,再刷新网页。
12
+
13
+ ## English
14
+
15
+ Keep the complete classic peak-period arrow inside the component near phase boundaries and the end of weekends. The marker continues to track actual period progress without causing horizontal overflow.
16
+
17
+ Also validate billion-context 0.1.209 and dsh-codex-subscription 3.2.1 against their published packages and update the compatibility baselines and CI matrix.
18
+
19
+ Includes all [v1.9.45 improvements](update-notes-1.9.45.md#english): OpenDesign web-Cookie quotas, optional balance hiding, cost-view recovery and alignment, Anthropic quotas, and lower retained cache memory. Fully restart DSH and refresh its Web UI after upgrading.
package/lib/client.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Generated from src/client/*.js by node scripts/build.mjs; do not edit.
2
- window.__ModuleLoader__.load({id:"dsh-cost-meter",factory:Ne=>{var Ma={exports:{}},jt=Ma.exports;Object.defineProperty(jt,Symbol.toStringTag,{value:"Module"});const Ae=Ne("react"),{Tooltip:J}=Ne("@deepseek-ai/dsh-client-ui-primitives"),ft=!1,Kn='var(--dsw-alias-~.cm-~background:~align-items:center~font-size:~border-radius:~display:flex;~flex-direction:column;~white-space:nowrap~padding:~min-width:~font-weight:600~overflow:hidden~text-overflow:ellipsis~justify-content:~line-height:~font-variant-numeric:tabular-nums~max-width:~box-sizing:border-box~display:inline-flex;~gap:~cursor:pointer~border:~flex-wrap:wrap~flex:none~display:grid;~width:100%~margin:~position:relative;~var(--dsh-frame-top-clearance,0px)~height:100%;~text-align:right~overflow-wrap:anywhere~overscroll-behavior:contain~transform:translate(-50%);~grid-template-columns:1fr~grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));~position:absolute;~font:inherit;~font-weight:~overflow:auto;~flex-wrap:nowrap;~display:~user-select:none~padding-bottom:env(safe-area-inset-bottom)~flex:0 1 auto;~margin-top:4px~left:50%;~border-right:5px solid transparent;~flex-shrink:0~border-left:5px solid transparent;~width:auto~height:8px~transform:translate(-50%,-50%);~grid-column:1/-1~z-index:2~-webkit-app-region:no-drag;~var(--cm-opaque-base,#fff)~margin-top:6px~height:4px~transition:left .4s ease;~transition:top .4s ease;~grid-auto-flow:column;~outline:none~border-color:#34a853~height:6px;~pointer-events:auto;~var(--cm-dialog-top)~width:40px;~flex-direction:row;~var(--cm-guide-top)~outline-offset:1px~text-align:center;~margin-top:10px;~overflow-x:auto~position:fixed;~flex:0 0 auto;~top:50%;~min-height:0;~z-index:9999;~align-items:~height:12px;~height:22px;~height:56px;~height:auto;~content:"";~inset:auto;~opacity:0;~opacity:1;~width:8px;'.split("~"),Ta='Ɓsection Ɓtabs>Ɓtab{Ɠƃ;Ǝcenter;ƒ;min-height:32px;Ɖ6px 10px;ƛ0;ƦƄ13px;Ə20px;vertical-align:middle}Ɓpeak-alert{Ʒ147483647;max-height:calc(100dvh - 32px);ƨơ}Ɓpeak-alert,Ɓpeak-alert *{-webkit-app-region:no-drag}Ɓpeak-alert Ɓpeak-alert-actions{ƜƘ}Ɓpeak-alert Ɓpeak-alert-actions button{pointer-events:auto}@property --cm-dialog-top{syntax:"<length>";inherits:true;initial-value:0px}Ɓstat-dialog{--cm-dialog-top:var(--dsh-frame-chrome-top,Ɲ);inset:ǃ 0 0 0;ƛauto;width:min(1000px,94vw);Ƒcalc(100vw - 32px);max-height:calc(100vh - ǃ - 32px);ƌ;ƒ;Ɖ0;ƅ16px;Ɩ1px solid ƀborder-l1);color:ƀlabel-primary);Ƃƀbg-layer-2,ƀbg-base,#fff))}Ɓstat-dialog[open]{Ɔflex-direction:column}Ɓloading{Ɖ24px;min-height:160px;ƙƔ18px}Ɓloading i{height:18px;ƅ5px;Ƃƀbg-layer-1,#f2f3f5)}Ɓloading i:first-child{width:35%}Ɓloading i:last-child{width:65%}Ɓstat-dialog-head{Ɔƃ;Ǝspace-between;Ɣ16px;Ɖ16px 24px;border-bottom:1px solid ƀborder-l3);Ƙ}Ɓstat-dialog-head strong{Ƅ15px;Ƨ500}Ɓstat-dialog-body{ƨǎƉ20px 24px;ơ}Ɓstat-dialog::backdrop{inset:var(--dsh-frame-chrome-top,Ɲ) 0 0;Ƃ#0005}Ɓroot{ƭƊ0;Ƒ100%;LjƄ12px;Ə20px;color:ƀlabel-tertiary);ƈ;ƌ;ƍ}Ɓsession-cost{ƙgrid-template-columns:max-content minmax(0,1fr);Ɗmin-content}Ɓsession-amount{Ƒ40vw;ƌ;ƍ}Ɓsession-detail{Ɗ0;ƌ;ƍ}Ɓchip{Ɠƃ;Ɣ4px;Ƒ180px;Ɖ0 8px;ǒƅ6px;Ƃƀbg-layer-2);Ƅ12px;Ə22px;color:ƀlabel-secondary);ƈ;ƌ;ƍ}Ɓfoot{Ɔƃ;Ɣ6px;height:32px;Ɖ0 8px;ƅ8px;Ƅ12px;color:ƀlabel-secondary);ƈ;ƌ}Ɓfoot:hover,Ɓfoot-rail:hover,Ɓcorner-chip:hover,Ɓqchip:hover,Ɓtab:hover,Ɓbtn:hover{Ƃƀinteractive-bg-hover)}Ɓfoot-rail{ƚ;Ǝcenter;Ɖ0;Ƅ13px;Ƌ;color:ƀlabel-primary)}Ɓnum{Ɛ}Ɓgo-rail{Ƅ11px;Ƨ700;color:ƀlabel-primary)}Ɓgo-list{ƆƇƔ10px}Ɓgo-row{Ɔƃ;Ɣ8px;Ƅ12px}Ɓgo-label{Ƙ;width:88px;color:ƀlabel-secondary)}Ɓgo-bar{flex:1;ǁƅ3px;Ƃƀinteractive-bg-hover);ƌ}Ɓgo-fill{ƞƅ3px;Ƃƀbrand-primary)}Ɓgo-num{Ƙ;Ɗ44px;Ɵ;Ƌ;Ɛ}Ɓgo-reset{Ƙ;Ƒ230px;Ƅ11px;color:ƀlabel-tertiary);ƈ;ƌ;ƍ}Ɓgo-time{Ƅ11px;color:ƀlabel-tertiary)}Ɓgo-row.main Ɓgo-label{Ƌ;color:ƀlabel-primary)}Ɓcorner{ƓƭƗ;Ǝcenter;ƃ;Ɣ6px;Ɗ0;Ƒ100%}Ɓcorner-chip{Ɠƃ;height:20px;Ɖ0 8px;ƅ6px;Ƃƀbg-layer-2);Ƅ11px;Ə20px;color:ƀlabel-secondary);ƈ;Ɛ}Ɓqstrip{ƆƗ;Ǝcenter;ƃ;Ɣ6px;ƚ;Ƒvar(--dsh-chat-content-width,720px);ƛ0 auto;ƒ;Ɖ0 calc(var(--dsh-composer-side-clearance,0px) + 16px)}Ɓqchip{Ɠƃ;Ɣ6px;ǒƉ0 8px;ƅ6px;Ƃtransparent;Ƅ11px;Ə22px;color:ƀlabel-secondary);ƈ;Ɛ;cursor:default}Ɓqchip Ɓqlabel{color:ƀlabel-primary);Ƌ}Ɓqchip Ɓqbar{ƪblock;width:44px;ƻ;ƅ2px;Ƃƀborder-l1);ƌ;Ƙ}Ɓqchip Ɓqfill{ƪblock;ƞƅ2px;Ƃƀstate-ok-primary,#3ba272)}Ɓqchip Ɓqseg{Ɠƃ;Ɣ4px}Ɓqchip Ɓqsep{width:1px;ǑƂƀborder-l1);Ƙ}Ɓqchip Ɓqtext{color:ƀlabel-secondary)}Ɓqchip.warn Ɓqfill{Ƃƀstate-warn-primary)}Ɓqchip.over Ɓqfill{Ƃƀstate-error-primary)}Ɓqchip.action{ƕ;ƫ;ƿ}Ɓqchip.action:focus-visible{box-shadow:0 0 0 2px ƀbrand-primary)}Ɓqchip.action:active{transform:translateY(.5px)}Ɓplan-provider{ƆƇƔ8px}Ɓplan-provider+Ɓplan-provider{margin-top:14px}Ɓplan-provider-name{Ɔƃ;Ɣ8px;Ƅ13px;Ƌ}Ɓplan-updated{Ƅ11px;Ƨ400;color:ƀlabel-tertiary)}Ɓplan-tag{Ƙ;margin-left:6px;Ɖ0 6px;ƅ999px;Ɩ1px solid ƀborder-l1);Ƅ10px;Ə16px;color:ƀstate-warn-primary)}Ɓplan-reset,Ɓplan-method{Ƅ11px;color:ƀlabel-tertiary)}Ɓqguide{--cm-guide-top:var(--dsh-frame-overlay-top,calc(var(--dsh-frame-chrome-top,Ɲ) + 18px));Njǖƛ0;top:max(dž,env(safe-area-inset-top,0px));ǂƸƯƢǏƑ440px;width:calc(100% - 32px);Ɩ1px solid ƀborder-l1);ƅ12px;Ƃƀbg-layer-2);box-shadow:0 8px 28px #0000002e;Ɖ14px 16px;Ƅ13px;color:ƀlabel-primary);ƆƇƔ8px}Ɓqguide[data-cm-onboarding]{ƒ;max-height:calc(100dvh - max(dž,env(safe-area-inset-top,0px)) - 16px);ƨơ}Ɓqguide h4{ƛ0;Ƅ13px;Ƌ}Ɓqguide p{ƛ0;Ƅ12px;Ə1.6;color:ƀlabel-secondary)}Ɓqguide Ɓbuttons{ƆƔ8px;Ǝflex-end}Ɓsection{ƆƇƔ20px;Ɖ4px 2px 24px;Ƅ13px;color:ƀlabel-primary)}Ɓcards{ƙƤƔ12px}Ɓoverview-grid{container:cm-overview / inline-size;Ɗ0}Ɓoverview-grid>Ɓcards{grid-template-columns:repeat(var(--cm-overview-count,3),minmax(0,1fr))}Ɓoverview-grid Ɓcard{Ɗ0;ƆƇƔ6px;Ɖ12px 14px}Ɓoverview-grid :is(Ɓcard-title,Ɓcard-sub){ƛ0}Ɓoverview-grid Ɓcard-value{Ə1.35;Ɛ;Ơ}Ɓoverview-grid Ɓcard-sub{Ə1.5;Ơ}@container cm-overview (Ƒ460px){Ɓoverview-grid>Ɓcards{ƣ}}Ɓcards-toggle{Ɔƃ;Ɣ6px;ƛ-6px 2px 0 auto;width:fit-content;Ƅ12px;color:ƀlabel-tertiary);ƕ;ƫ}Ɓcards-toggle:hover{color:ƀlabel-primary)}Ɓcards-toggle input{ƛ0;ƕ}Ɓcard,Ɓbudget{Ɩ1px solid ƀborder-l1);ƅ12px;Ɖ14px 16px;Ƃƀbg-layer-1)}Ɓcard-title{Ƅ12px;color:ƀlabel-tertiary);ƛ0 0 8px}Ɓcard-value{Ƅ20px;Ə28px;Ƌ}Ɓcard-sub{Ƅ12px;color:ƀlabel-tertiary);Ʈ}Ɓh{Ƅ13px;Ƌ;ƛ0}Ɓcollapse-h{Ɔƃ;Ɣ8px;Ƃnone;Ɩnone;Ɖ0;ƛ0;ƕ;color:inherit;Ʀtext-align:left}Ɓcollapse-h:hover Ɓh{color:ƀinteractive-text-hover,ƀlabel-primary))}Ɓcaret{Ƙ;width:0;height:0;Ʋưborder-top:6px solid ƀlabel-secondary);transform:rotate(-90deg);transition:transform .15s ease}Ɓcaret.open{transform:rotate(0)}Ɓcollapse-body{ƆƇƔ12px;margin-top:12px}Ɓtoolbar{ƆƎflex-end;ƃ;Ɣ10px}Ɓtoolbar Ɓfield{Džƃ;Ɣ8px}Ɓtoolbar Ɓfield label{ƛ0;Ƅ12px;color:ƀlabel-tertiary)}Ɓtoolbar Ɓinput{Ɗ150px;Ɖ4px 10px}Ɓtabs-row{Ɔƃ;Ǝspace-between;Ɣ12px;Ɨ;border-bottom:1px solid var(--dsh-alias-border-l1);padding-bottom:10px}Ɓtabs{Ɔƃ;Ɣ4px;Ɨ}Ɓtab{ƦƄ13px;color:ƀlabel-secondary);Ƃtransparent;Ɩnone;ƅ8px;Ɖ6px 14px;ƕ;ƈ}Ɓtab.active{Ƃƀstate-business-primary);color:ƀlabel-primary-inverted);Ƌ}Ɓtabs-row Ɓmsg{Ɖ2px 10px}Ɓtabs-row>Ɓhint,Ɓtabs-row>Ɓmsg{margin-inline-start:auto}Ɓnote{Ƅ12px;color:ƀlabel-tertiary);ƛ0}Ɓtable{ƚ;border-collapse:collapse;Ƅ12px}Ɓtable th,Ɓtable td{text-align:left;Ɖ7px 10px;border-bottom:1px solid ƀborder-l1);ƈ}Ɓtable th{color:ƀlabel-tertiary);Ƨ500}Ɓtable td.num,Ɓtable th.num{Ɵ;Ɛ}Ɓtable tr:last-child td{border-bottom:none}Ɓtable trƁrow-click{ƕ}Ɓtable trƁrow-click:hover td{Ƃƀbg-hover,rgba(127,127,127,.08))}Ɓsess-title{Ƒ260px;ƌ;ƍ;ƈ}Ɓsess-id{Ƅ11px;font-family:ui-monospace,Consolas,monospace;color:ƀlabel-tertiary)}Ɓempty{Ƅ12px;color:ƀlabel-tertiary);Ɖ8px 0}Ɓscroll{max-height:320px;ƨƖ1px solid ƀborder-l1);ƅ10px}Ɓgrid{ƙƤƔ12px}Ɓfield{ƆƇƔ6px;Ɗ0}Ɓfield label{Ƅ12px;color:ƀlabel-secondary)}Ɓinput,Ɓinput option,Ɓinput optgroup{color:ƀlabel-primary);Ƃƀbg-base)}Ɓinput{ƦƄ13px;Ɩ1px solid ƀborder-l1);ƅ8px;Ɖ6px 10px;ƿ}Ɓinput:is(select){color-scheme:light dark}Ɓinput:is(select) :is(option,optgroup){color:ƀlabel-primary)!important;Ƃƀbg-base)!important;Ƃrgb(from ƀbg-base) r g b / 1)!important}Ɓinput:focus{border-color:ƀstate-business-primary)}Ɓinput.narrow{Ƒ120px}Ɓrange-row{Ɔƃ;Ɣ10px}Ɓrange{flex:1;Ɗ0;accent-color:ƀstate-business-primary)}Ɓrange-value{Ƙ;Ɗ44px;Ƅ12px;color:ƀlabel-tertiary);Ɵ}Ɓcheck{Ɔƃ;Ɣ8px;Ƅ13px;color:ƀlabel-primary);ƕ}Ɓpricing-page,Ɓpricing-content{ƙƔ20px;Ɗ0}Ɓpricing-heading{Ɔƃ;Ǝspace-between;Ɣ12px}Ɓpricing-heading Ɓh{Ƅ16px;margin-bottom:6px}Ɓpricing-heading Ɓnote{Ə1.6}Ɓpricing-unit{Ʊ;color:ƀlabel-tertiary);Ƅ11px}Ɓpricing-nav{ƆƔ4px;Ɖ4px;ƅ10px;Ƃƀbg-layer-1);Ɩ1px solid ƀborder-l1)}Ɓpricing-nav-item{flex:1;Ɗ0;Ʀcolor:ƀlabel-secondary);Ƃtransparent;Ɩ0;ƅ7px;Ɖ8px 10px;ƕ}Ɓpricing-nav-item.active{color:ƀstate-business-primary);Ƃƀbg-base);box-shadow:0 1px 3px #0000000d;Ƌ}Ɓpricing-nav-item:focus-visible{outline:2px solid ƀstate-business-primary)}Ɓpricing-tools{ƙƔ16px}Ɓpricing-tool{ƆƇƔ12px;Ɖ16px;Ɩ1px solid ƀborder-l1);ƅ12px;Ɗ0}Ɓpricing-tool>Ɓpeak-panel{Ɖ0;Ɩ0;Ƃnone}Ɓpricing-tool p{Ə1.65}@media(Ƒ480px){Ɓpricing-heading{ǐflex-start;ƇƔ4px}Ɓpricing-nav-item{Ɖ8px 4px;Ƅ12px}Ɓpricing-tool{Ɖ12px}}Ɓprice-card{Ɩ1px solid ƀborder-l1);ƅ10px;Ɖ12px 14px;ƆƇƔ10px;Ƃƀbg-layer-1)}Ɓprice-head{Ɔƃ;Ɣ8px;Ɨ}Ɓprice-name{Ƌ;Ƅ13px;Ơ;Ɗ0;flex:1 1 180px}Ɓprice-legacy{Ƅ11px;color:ƀlabel-tertiary);Ɩ1px solid ƀborder-l1);ƅ999px;Ɖ1px 8px}Ɓprice-locked{Ƅ11px;color:ƀstate-business-primary);Ɩ1px solid ƀstate-business-primary);ƅ999px;Ɖ1px 8px;cursor:help}Ɓprice-row{ƙgrid-template-columns:52px repeat(4,minmax(0,1fr));Ɣ8px;ƃ}Ɓprice-row span{Ƅ12px;color:ƀlabel-tertiary)}Ɓprice-row input{ƚ;Ɗ0;ƒ;Ɖ6px 5px}Ɓprice-multiplier{Ɔƃ;Ǝspace-between;Ɣ6px 12px;Ɨ;Ƅ12px;color:ƀlabel-tertiary)}Ɓprice-multiplier label{Ɠƃ;Ɣ5px;ƕ}Ɓprice-multiplier input{ƛ0;accent-color:ƀbrand-primary,#4d6bfe)}Ɓprice-row input[aria-invalid=true]{border-color:#d64c4c}Ɓbuttons{ƆƗ;Ɣ10px;ƃ}Ɓbtn{ƦƄ13px;color:ƀlabel-primary);Ƃƀbutton-elevated-fill);Ɩ1px solid ƀborder-l1);ƅ8px;Ɖ6px 14px;ƕ}ƁbtnƁstat-entry{Ƅ12px;Ə20px;Ɖ0 6px;Ɗ0;Ƒ100%;ƈ;ƌ;ƍ;Ʊ}@media(Ƒ640px){Ɓstat-header{ƪnone}}Ɓbtn.primary{Ƃƀstate-business-primary);border-color:transparent;color:ƀlabel-primary-inverted)}Ɓbtn.primary:hover{opacity:.88;Ƃƀstate-business-primary)}Ɓbtn.danger,Ɓmsg.err,Ɓbal-line.err,Ɓbal-err{color:ƀstate-error-primary)}Ɓbtn.small{Ɖ3px 10px;Ƅ12px}div:has(>[data-slot="conversation.composer.dock"] Ɓstat-entry){Ʃcolumn-Ɣ6px}Ɓmsg{Ƅ12px;Ə18px;Ɖ8px 12px;ƅ8px;Ɩ1px solid ƀborder-l1)}Ɓmsg.ok{color:ƀstate-success-primary)}Ɓhint{Ƅ12px;color:ƀlabel-tertiary)}Ɓbudget{ƆƇƔ10px}Ɓpeak-alert{Njǖƛ0;ƒ;ǂƸcolor:ƀlabel-primary);Ǐwidth:340px;Ƒcalc(100vw - 32px);Ɖ16px;ƅ14px;Ƃƀbg-layer-2);Ɩ1px solid ƀborder-l2);box-shadow:0 14px 36px #00000038;ƆƇƔ8px;Ƅ12px;animation:cm-peak-alert-in .22s cubic-bezier(.2,.8,.2,1)}Ɓpeak-alertƁpeak-alert-corner{right:20px;bottom:20px}Ɓpeak-alertƁpeak-alert-center{ǍƯƵanimation-name:cm-peak-alert-in-center}Ɓpeak-alert-peak{border-top:3px solid ƀstate-warn-primary)}Ɓpeak-alert-offpeak{border-top:3px solid ƀstate-info-primary,#3b82f6)}Ɓpeak-alert-badge{Ɠƃ;Ɣ6px;Ƅ11px;Ƌ;letter-spacing:.4px;text-transform:uppercase}Ɓpeak-alert-badge:before{ǕǙƴ;ƅ50%;ƂcurrentColor;box-shadow:0 0 0 4px color-mix(in srgb,currentColor 16%,transparent)}Ɓpeak-alert-peak Ɓpeak-alert-badge{color:ƀstate-warn-primary)}Ɓpeak-alert-offpeak Ɓpeak-alert-badge{color:ƀstate-info-primary,#3b82f6)}Ɓpeak-alert-title{Ƅ14px;Ƌ;color:ƀlabel-primary)}Ɓpeak-alert-body{color:ƀlabel-secondary);Ə1.55}Ɓpeak-alert-actions{ƆƎflex-end;Ɣ8px;margin-top:2px}Ɓrow{ƆƔ8px;ƃ;Ɨ}@keyframes cm-peak-alert-in{0%{Ǘtransform:translateY(10px) scale(.98)}to{ǘtransform:translateY(0) scale(1)}}@keyframes cm-peak-alert-in-center{0%{Ǘtransform:translate(-50%,calc(-50% + 10px))}to{ǘtransform:translate(-50%,-50%)}}Ɓbudget-head{Ɔƃ;Ǝspace-between;Ɣ8px}Ɓquota-name{flex:1;Ɗ0}Ɓbudget-bar{ƴ;ƅ999px;Ƃƀbg-layer-3);ƌ}Ɓbudget-fill{ƞƅ999px;Ƃƀstate-business-primary);transition:width .3s ease}Ɓug{ƆƇƔ12px}Ɓug-total{Ƅ13px;color:ƀlabel-primary)}Ɓug-grid{ƙƾgrid-template-rows:repeat(7,auto);Ɣ3px;ƚ}Ɓug-cell{ƚ;aspect-ratio:1/1;ƅ3px;ƒ;Ƃcolor-mix(in srgb,ƀlabel-primary) 8%,transparent);Ɩ1px solid ƀborder-l1)}Ɓug-cell.l1,Ɓug-cell.l2,Ɓug-cell.l3,Ɓug-cell.l4{border-color:transparent}Ɓug-cell.l1{Ƃcolor-mix(in srgb,ƀstate-business-primary) 25%,ƀbg-layer-3))}Ɓug-cell.l2{Ƃcolor-mix(in srgb,ƀstate-business-primary) 50%,ƀbg-layer-3))}Ɓug-cell.l3{Ƃcolor-mix(in srgb,ƀstate-business-primary) 75%,ƀbg-layer-3))}Ɓug-cell.l4{Ƃƀstate-business-primary)}Ɓug-cell.today{outline:1px solid ƀlabel-secondary);LJ}Ɓug-months{ƙƾƔ3px;ƚ;Ƅ10px;color:ƀlabel-tertiary);Ʈ}Ɓug-monthc{ƈ}Ɓbudget-line{Ƅ13px;color:ƀlabel-secondary)}Ɓbudget-line.over{color:ƀstate-error-primary)}Ɓpeak-strip{Ɔƃ;Ɣ6px;Ʈ;Ɗ0}Ɓpeak-track{ƜƆflex:1;ǁƊ0;ƅ999px;ƌ;Ɩ1px solid ƀborder-l1);Ƃƀbg-layer-3)}Ɓpeak-segment{ƞflex:1}Ɓpeak-high{Ƃ#ff9800}Ɓpeak-low{Ƃƀstate-business-primary)}Ɓpeak-marker{ƥtop:0;Ưwidth:2px;ƞƂƀbg-base);box-shadow:0 0 0 1px ƀlabel-tertiary);ƢƼƷ}Ɓpeak-chip{Ƅ11px;Ƌ;Ə1.2;ƈ;color:ƀlabel-secondary)}Ɓpeak-classic{ƜƆƇƔ5px;ƺ;Ɗ0}Ɓpeak-classic Ɓpeak-track{Ƙ;ƴ}Ɓpeak-classic-marker{ƥtop:0;Ưwidth:4px;ǑƂƀbg-base);Ɩ1.5px solid #ff9800;box-shadow:0 0 0 1px ƀbg-base),0 0 0 2px ƀlabel-tertiary);ƢƼƷ;ƅ2px}Ɓpeak-classic-marker:after{Ǖƥtop:-7px;ƯƢƲưborder-top:6px solid #ff9800}Ɓpeak-classic.off Ɓpeak-classic-marker{border-color:ƀstate-business-primary)}Ɓpeak-classic.off Ɓpeak-classic-marker:after{border-top-color:ƀstate-business-primary)}Ɓpeak-classic-chip{align-self:flex-start;Ƅ11px;Ƌ;Ə1.4;Ƃƀbg-layer-2);Ɩ1px solid ƀborder-l1);ƅ999px;Ɖ2px 8px;ƈ;color:ƀlabel-secondary)}Ɓpeak-strip.peak Ɓpeak-chip,Ɓpeak-classic.peak Ɓpeak-classic-chip,Ɓpeak-rail.peak Ɓpeak-rail-label,Ɓpeak-rail-classic.peak Ɓpeak-rail-classic-label{color:#ff9800}Ɓpeak-strip.off Ɓpeak-chip,Ɓpeak-classic.off Ɓpeak-classic-chip,Ɓpeak-rail.off Ɓpeak-rail-label,Ɓpeak-rail-classic.off Ɓpeak-rail-classic-label{color:ƀstate-business-primary)}Ɓpeak-strip.weekend Ɓpeak-chip,Ɓpeak-classic.weekend Ɓpeak-classic-chip,Ɓpeak-rail.weekend Ɓpeak-rail-label,Ɓpeak-rail-classic.weekend Ɓpeak-rail-classic-label{color:#34a853}Ɓpeak-classic.weekend Ɓpeak-classic-marker{ǀ}Ɓpeak-classic.weekend Ɓpeak-classic-marker:after{border-top-color:#34a853}Ɓpeak-rail{ƆƇƃ;Ɣ3px;DŽƒ}Ɓpeak-rail-track{ƜƆƇwidth:6px;Ǔƅ999px;ƌ;Ɩ1px solid ƀborder-l1);Ƃƀbg-layer-3)}Ɓpeak-rail-segment{ƚ;flex:1}Ɓpeak-rail-high{Ƃ#ff9800}Ɓpeak-rail-low{Ƃƀstate-business-primary)}Ɓpeak-rail-marker{ƥleft:0;Ǎƚ;height:2px;Ƃƀbg-base);box-shadow:0 0 0 1px ƀlabel-tertiary);transform:translateY(-50%);ƽƷ}Ɓpeak-rail-label{Ƅ10px;Ƌ;Ə1.2;ƈ;color:ƀlabel-secondary)}Ɓpeak-rail-classic{ƆƇƃ;Ɣ3px;DŽƒ}Ɓpeak-rail-classic-track{ƜƆƇwidth:14px;Ǔƅ999px;Ɩ1px solid ƀborder-l1);Ƃƀbg-layer-3)}Ɓpeak-rail-classic-segment{Ɯƚ;flex:1;ƌ}Ɓpeak-rail-classic-segment.peak{Ƃ#ff9800;ƅ999px 999px 0 0}Ɓpeak-rail-classic-segment.off{Ƃƀstate-business-primary);ƅ0 0 999px 999px}Ɓpeak-rail-classic-marker{ƥƯǍwidth:12px;ƻ;Ƃƀbg-base);Ɩ1.5px solid #ff9800;box-shadow:0 0 0 1px ƀbg-base),0 0 0 2px ƀlabel-tertiary);ƵƽƷ;ƅ2px}Ɓpeak-rail-classic.off Ɓpeak-rail-classic-marker{border-color:ƀstate-business-primary)}Ɓpeak-rail-classic-label{Ƅ10px;Ƌ;Ə1.2;ƈ}Ɓpeak-rail-classic.weekend Ɓpeak-rail-classic-marker{ǀ}Ɓgrid-group{grid-column:1 / -1;margin-top:8px;Ƅ12px;Ƌ;color:ƀlabel-tertiary);border-bottom:1px solid ƀborder-l1);padding-bottom:4px}Ɓgrid-group:first-child{margin-top:0}Ɓpeak-preview{margin-top:8px}Ɓtoggle-btn{Ƃnone;Ɩnone;Ɖ0;Ƅ12px;Ƌ;color:ƀstate-business-primary);ƕ}Ɓtoggle-btn:hover{text-decoration:underline}Ɓcollapsed-note{Ʈ}Ɓcatalog-vendor{ljƄ12px;Ƌ;color:ƀlabel-tertiary);border-bottom:1px solid ƀborder-l1);padding-bottom:2px;Ɔƃ;Ǝspace-between;Ɣ8px}Ɓvendor-toggle{ƕ;ƫ}Ɓvendor-toggle:hover{color:ƀlabel-secondary)}Ɓvendor-display{Ɠƃ;Ɣ4px;Ƨ400;Ƅ11px;color:ƀlabel-tertiary);ƈ}Ɓmstats-tabs{ƆƔ8px;margin-bottom:8px}Ɓmstats-tab{Ƃnone;Ɩ1px solid ƀborder-l1);ƅ999px;Ɖ2px 12px;Ƅ12px;color:ƀlabel-secondary);ƕ}Ɓmodel-costs Ɓmstats-tab.active{Ƃcolor-mix(in srgb,ƀstate-business-primary) 14%,ƀbg-base));border-color:ƀstate-business-primary);color:ƀlabel-primary);Ƌ}Ɓmstats-h{ƛ10px 0 4px;Ƅ12px;Ƌ;color:ƀlabel-secondary)}Ɓmstats-row{ƙgrid-template-columns:minmax(90px,170px) 1fr auto;Ɣ8px;ƃ;Ƅ11px;Ə1.7}Ɓmstats-name{ƌ;ƍ;ƈ;color:ƀlabel-secondary)}Ɓmstats-label{ƶ;ƆƗ;ƃ;Ɣ6px;ƺ}Ɓmstats-label Ɓmstats-name{flex:1;Ɗ90px}Ɓmstats-label~Ɓmstats-barbg{grid-column:1/3}Ɓmstats-label select{Ƒ100%;Ɗ0}Ɓmstats-barbg{Ɯheight:10px;ƅ999px;Ƃƀbg-layer-3);ƌ;ƪflex}Ɓmstats-bar{ƞƊ0;ƅ999px}Ɓmstats-bar.cost{Ƃ#ff9800}Ɓmstats-bar.hit{Ƃ#34a853}Ɓmstats-bar.value{Ƃ#a142f4}Ɓmstats-seg{ƞƊ0}Ɓmstats-seg.in{Ƃƀstate-business-primary)}Ɓmstats-seg.cache{Ƃ#ff9800}Ɓmstats-seg.out{Ƃ#34a853}Ɓmstats-val{ƈ;color:ƀlabel-secondary)}Ɓmstats-legend{ƆƔ12px;Ƅ10px;color:ƀlabel-tertiary);ƛ2px 0 4px}Ɓmstats-dot{ƪinline-block;Ǚƴ;ƅ2px;margin-right:3px}Ɓmstats-note{ljƄ10px;Ə1.6;color:ƀlabel-tertiary)}Ɓmatch-row{Ɔƃ;Ɣ8px;Ɖ3px 0;Ƅ12px;Ɨ}Ɓmatch-row Ɓinput{flex:1;Ɗ160px}Ɓbudget-controls{ƙgrid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));Ɣ12px}Ɓbbox{Ɩ1px solid ƀborder-l1);ƅ12px;Ɖ8px 10px;Ƃƀbg-layer-1);ƆƇƔ6px;Ɗ148px;ƒ}Ɓbbox.rail{Ɖ6px;Ɗ0;DŽƃ;Ǝcenter;ƅ10px}Ɓbbox.warn{border-color:ƀstate-warn-primary)}Ɓbbox.over{border-color:ƀstate-error-primary)}Ɓbbox-head{Ɔƃ;Ǝspace-between;Ɣ8px}Ɓbbox-label,Ɓbbox-pct{Ƅ12px;Ƌ;color:ƀlabel-primary)}Ɓbbox.warn Ɓbbox-pct{color:ƀstate-warn-primary)}Ɓbbox.over Ɓbbox-pct{color:ƀstate-error-primary)}Ɓbbox-bar{ǁƅ999px;Ƃƀbg-layer-3);ƌ}Ɓbbox-bar.segments{Ɔƴ}Ɓbbox-bar.segments Ɓbbox-fill{Ƙ;ƅ0;height:100%}Ɓbbox-bar.segments Ɓbbox-fill:first-child{ƅ999px 0 0 999px}Ɓbbox-bar.segments Ɓbbox-seg-today{Ƙ;ƞƂ#ff9800}Ɓbbox-bar.segments Ɓbbox-seg-spent{Ƙ;ƞƂƀinteractive-bg-hover);ƅ0 999px 999px 0}Ɓbbox-bar.segments.rev Ɓbbox-fill:first-child,Ɓbbox-bar.segments.rev Ɓbbox-seg-today:first-child{ƅ999px 0 0 999px}Ɓbbox-bar.segments.rev Ɓbbox-fill,Ɓbbox-bar.segments.rev Ɓbbox-fill:last-child,Ɓbbox-bar.segments.rev Ɓbbox-seg-today:last-child,Ɓbbox-bar.segments.rev Ɓbbox-seg-spent:last-child{ƅ0 999px 999px 0}Ɓbbox-bar.segments.rev Ɓbbox-seg-spent{ƅ0}Ɓdir-row{Ɔƃ;Ɣ8px;ƺ}Ɓdir-label{flex:1 1 40%;Ƅ12px;color:ƀlabel-secondary)}Ɓdir-row Ɓinput{flex:1 1 60%;Ƴ}Ɓbbox-fill{ƞƅ999px;Ƃƀstate-business-primary)}Ɓbalance-name{Ɠƃ;Ɣ4px;Ɗ0}Ɓmodel-costs{Ƅ12px}Ɓmodel-costs Ɓbal-label{ƈ}Ɓmodel-top{Ɣ4px;Ƒ180px;ƌ;ƍ}Ɓmodel-costs Ɓcollapse-h{Ɗ0;ƚ;ƈ}Ɓmodel-costs Ɓbbox-bar{margin-top:3px}Ɓbal-label{Ɗ0;ƌ;ƍ}Ɓbal-amt{margin-left:auto;Ɵ;Ʊ}Ɓbbox-pctƁbal-amt{color:ƀstate-business-primary)}Ɓbal-link{Ƙ;Ɠƃ;Ǝcenter;Ɖ2px;ƅ4px;Ƅ12px;Ə16px;color:ƀlabel-tertiary);text-decoration:none;ƿ}Ɓbal-link:hover{color:ƀbrand-primary);Ƃƀinteractive-bg-hover)}Ɓbal-link:focus-visible{box-shadow:0 0 0 2px ƀbrand-primary)}Ɓbbox.warn Ɓbbox-fill,Ɓbbox Ɓbbox-section.warn Ɓbbox-fill,Ɓbbox Ɓmm-row.warn Ɓbbox-fill,Ɓbudget-fill.warn{Ƃƀstate-warn-primary)}Ɓbbox.over Ɓbbox-fill,Ɓbbox-section.over Ɓbbox-fill,Ɓmm-row.over Ɓbbox-fill,Ɓbudget-fill.over{Ƃƀstate-error-primary)}Ɓbbox-line{Ƅ12px;color:ƀlabel-tertiary)}Ɓbbox-rail{Ƅ11px;Ƌ;color:ƀlabel-primary)}Ɓbbox.warn Ɓbbox-pct,Ɓbbox.warn Ɓbbox-rail,Ɓbbox Ɓbbox-section.warn Ɓbbox-pct,Ɓbbox Ɓmm-row.warn Ɓbbox-pct,Ɓmm-row.warn Ɓbbox-label,Ɓcorner-chip.warn,Ɓqchip.warn,Ɓsimple-summary.warn{color:ƀstate-warn-primary)}Ɓbbox.over Ɓbbox-pct,Ɓbbox.over Ɓbbox-rail,Ɓbbox-section.over Ɓbbox-pct,Ɓmm-row.over Ɓbbox-pct,Ɓmm-row.over Ɓbbox-label,Ɓcorner-chip.over,Ɓqchip.over,Ɓsimple-summary.over{color:ƀstate-error-primary)}Ɓbbox-pair{ƆƇƔ0;Ɖ2px 10px}Ɓbbox-pair Ɓbbox-section{ƆƇƔ4px;Ɖ4px 0}Ɓbbox-pair Ɓbbox-bar{ƻ}Ɓbbox-divider{height:1px;Ƃƀborder-l1);ƛ0}Ɓbbox.clickable,Ɓfoot.clickable{ƕ}Ɓbbox.clickable:hover{border-color:ƀstate-business-primary)}Ɓbbox.clickable:focus-visible,Ɓfoot.clickable:focus-visible{outline:2px solid ƀstate-business-primary);LJ}@keyframes cm-click-refresh-pulse{0%,to{opacity:.55}50%{opacity:1}}Ɓbbox.clickable.busy,Ɓfoot.clickable.busy{animation:cm-click-refresh-pulse 1.1s ease-in-out 2;cursor:progress}Ɓmm{Ɖ8px 10px;Ɣ4px}Ɓmm-title{Ƅ12px;Ƌ;color:ƀlabel-primary)}Ɓmm-reset{Ƅ11px;color:ƀlabel-tertiary);ƶ}Ɓcodex-head>Ɓmm-title{Ɗ0;ƌ;ƍ;ƈ}Ɓcodex-resets{Ƙ;Ɵ}Ɓcodex-resets>span{ƪblock}Ɓfooter-stack.compact Ɓbbox[data-cm-display=codex]{grid:auto/1fr}Ɓbbox.rail[data-cm-display=codex] Ɓbbox-rail{Ƒ100%;Ơ;LjƄ10px}Ɓgw-switcher{ƕ;ƫ;Ƅ11px;Ɖ1px 6px;ƅ999px;Ɩ1px solid ƀborder-l1);Ƃƀbg-layer-2);color:ƀlabel-secondary)}Ɓgw-switcher:hover{Ƃƀinteractive-bg-hover);color:ƀlabel-primary)}Ɓgw-sub{Ƅ11px;color:ƀlabel-tertiary);ƌ;ƍ;ƈ}Ɓmm-row{Ɔƃ;Ɣ8px;Ɖ2px 0}Ɓmm-sub{Ƅ11px;Ə16px;padding-bottom:4px;color:ƀlabel-tertiary)}Ɓmm-sub.warn{padding-bottom:0;color:ƀstate-warn-primary)}Ɓmm-row Ɓbbox-label{Ƙ;Ƴ;Ɗ22px;Ƒ115px;Ƨ400;color:ƀlabel-secondary);Ɛ;ƈ;ƌ;ƍ;word-break:keep-all}Ɓmm-row Ɓbbox-bar{flex:1;Ɗ40px;height:6px}Ɓmm-row Ɓbbox-pct{Ƙ;Ɗ2.4em;Ɵ;Ɛ}Ɓmm-row.wide Ɓbbox-label{Ƴ;Ƒ64px;ƭƈ;ƌ;ƍ}Ɓmm-row.wide Ɓmm-text{flex:1;Ɗ0;Ƅ12px;color:ƀlabel-secondary);Ɵ;Ɛ;ƈ;ƌ;ƍ}Ɓbal-line{Ƅ13px;color:ƀlabel-secondary)}Ɓbal-line.warn{color:ƀstate-warn-primary,#b45309)}:has(>Ɓfooter-stack),:has(>[data-slot="sidebar.footer.action"]>Ɓfooter-stack){Ɨ;njǔǎalign-content:flex-start}:has(>div>[data-slot="sidebar.footer.action"]>Ɓfooter-stack){njǔmin-height:0}:has(>Ɓfooter-stack.rail),:has(>[data-slot="sidebar.footer.action"]>Ɓfooter-stack.rail){ƇƩƃ;Ɣ6px}Ɓfooter-stack{ƆƘ;order:-1;ƇƔ6px;ƚ;Ɗ0;Ƒ100%;ǐstretch;ƒ}Ɓfooter-stack.rail{ƃ;order:1}Ɓfooter-stack Ɓbbox{ƚ;Ɗ0}Ɓfooter-stack Ɓfoot{ƚ;ƒ}Ɓfooter-stack Ɓfoot:not(Ɓfoot-rail){Ǝspace-between}Ɓmodel-costs Ɓcollapse-h{ƚ}Ɓmodel-costs Ɓcollapse-h>Ɓbal-amt{margin-left:auto}Ɓfooter-stack.compact Ɓbbox{ƙgrid-template-columns:repeat(2,minmax(0,1fr));column-Ɣ12px;row-Ɣ2px;ƃ}Ɓfooter-stack.compact Ɓbbox>*{ƶ}Ɓfooter-stack.compact Ɓbbox>Ɓmm-row:not(Ɓmm-title){grid-column:auto}Ɓfooter-stack.compact Ɓmm-row{Ɗ0;Ɣ4px;flex-wrap:nowrap}Ɓfooter-stack.compact Ɓmm-row Ɓbbox-label{ƭƊ0;Ƒ45%;Ƴ}Ɓfooter-stack.compact Ɓmm-row Ɓbbox-bar{Ɗ0;flex:1 1 0}Ɓfooter-stack.simple{Ɣ0;max-height:38vh;max-height:min(38dvh,320px);ƨơ;scrollbar-width:thin;Ɩ1px solid ƀborder-l1);ƅ10px;Ƃƀbg-layer-1)}Ɓfooter-stack.simple>*{Ʊ}Ɓfooter-stack.simple:focus-visible{outline:2px solid ƀstate-business-primary);outline-offset:2px}Ɓfooter-stack.simple Ɓbbox{Ɩ0;ƅ0;Ɖ4px 8px;Ɣ2px;Ƃtransparent;box-shadow:inset 0 -1px ƀborder-l1)}Ɓfooter-stack.simple Ɓmm-title{Ƅ11px;Ə16px;ƛ0}Ɓfooter-stack.simple Ɓmm-row{Ɣ6px;min-height:16px;Ə16px;ƛ0;Ɖ0}Ɓfooter-stack.simple Ɓmm-text{Ƅ11px}Ɓfooter-stack.simple>Ɓpeak-strip,Ɓfooter-stack.simple>Ɓpeak-classic{ƛ0;Ɖ4px 8px}Ɓsimple-summary>span{Ɗ0;ƈ;ƌ;ƍ}Ɓfooter-stack.simple Ɓbbox-pct{Ƅ12px;Ə18px}Ɓfooter-stack.simple Ɓbbox-bar{ƻ}Ɓfooter-stack.simple Ɓbbox-line{ƪnone}Ɓfooter-stack.simple Ɓfoot{height:26px;Ɖ0 8px}Ɓfooter-stack.simple Ɓpeak-classic{margin-top:2px;Ɣ2px}Ɓfooter-stack.simple Ɓpeak-classic-chip{Ɖ0 4px;Ɩ0;Ƃtransparent}Ɓsimple-summary{position:sticky;top:0;z-index:1;Ƃƀbg-layer-1);ƆƎspace-between;ƃ;Ɣ8px;Ɖ5px 8px;Ƅ12px;Ƌ;border-bottom:1px solid ƀborder-l1)}Ɓfooter-stack.simple.rail{Ɩ0;Ƃtransparent}Ɓfooter-stack.simple.rail Ɓbbox{Ɖ4px 2px}Ɓfooter-stack.simple Ɓpeak-rail-track,Ɓfooter-stack.simple Ɓpeak-rail-classic-track{height:28px}Ɓfooter-stack.text-only Ɓbbox-bar{ƪnone}Ɓfooter-stack.text-only:not(.rail) Ɓbbox{Ɖ4px 8px;Ɣ2px}Ɓfooter-stack.text-only:not(.rail) Ɓmm{ƆDžƗ;Ɣ2px 12px;ƃ}Ɓfooter-stack.text-only:not(.rail) Ɓmm>Ɓmm-title,Ɓfooter-stack.text-only:not(.rail) Ɓcodex-head,Ɓfooter-stack.text-only:not(.rail) Ɓmm-reset{flex:1 0 100%;Ɗ0}Ɓfooter-stack.text-only:not(.rail) Ɓmm-row:not(Ɓmm-title){Ɣ4px;Ɖ0;Ɗ0;Ƒ100%}Ɓfooter-stack.text-only Ɓmm-row Ɓbbox-label{Ƒ115px;flex:0 1 auto}Ɓfooter-stack.text-only Ɓmm-row Ɓbbox-pct{Ɗ0}@media(Ƒ640px){Ɓcards,Ɓgrid,Ɓbudget-controls{ƣ}}@media(Ƒ1023px){Ɓsection{padding-bottom:calc(16px + env(safe-area-inset-bottom))}Ɓcards,Ɓoverview-grid>Ɓcards,Ɓgrid,Ɓbudget-controls{ƣ;Ɣ8px}Ɓcard{Ɖ10px 12px}Ɓcard-value{Ƅ17px}Ɓcard-sub,Ɓbal-line,Ɓbal-amt{Ơ}Ɓbuttons,Ɓtoolbar,Ɓrow,Ɓbudget-head{Ɨ}Ɓbtn,Ɓtab,Ɓfoot,Ɓcorner-chip{min-height:36px;height:auto}Ɓtabs{ƩNJ}Ɓtab{Ƙ}Ɓqstrip{Ɖ0 8px}Ɓqguide{Ƒcalc(100vw - 24px);--cm-guide-top:var(--dsh-frame-overlay-top,calc(var(--dsh-frame-chrome-top,Ɲ) + 10px + env(safe-area-inset-top)))}Ɓpeak-alert{Ƒcalc(100vw - 24px)}Ɓpeak-alertƁpeak-alert-corner{right:12px;left:12px;bottom:calc(12px + env(safe-area-inset-bottom));Ƴ}Ɓfooter-stack{Ƭ}Ɓstat-dialog-body{Ɖ14px;padding-bottom:calc(14px + env(safe-area-inset-bottom))}}body[data-dsh-pocket-layout=mobile] :is(Ɓcards,Ɓoverview-grid>Ɓcards,Ɓgrid,Ɓbudget-controls){ƣ;Ɣ8px}body[data-dsh-pocket-layout=mobile] Ɓtabs{ƩNJ}body[data-dsh-pocket-layout=mobile] Ɓfooter-stack{Ƭ}body[data-dsh-pocket-layout=mobile] :is(Ɓpeak-alert,Ɓqguide){Ƒcalc(100vw - 24px)}body{--cm-opaque-base:#fff}body[data-ds-dark-theme],body[data-theme=dark],html[data-theme=dark] body{--cm-opaque-base:#151517}Ɓsection,Ɓstat-dialog,Ɓqguide,Ɓpeak-alert,Ɓfooter-stack.simple{Ƃƹ;Ƃrgb(from ƀbg-layer-2,ƀbg-base,#fff)) r g b / 1)}Ɓtoday-values{ƓƗ;Ǝflex-end;Ɣ2px 8px;Ɗ0;Ƒ100%}Ɓtoday-values>span{ƈ}Ɓtoday-values[data-both=true]>[data-cm-today=tokens]{Ƅ11px;color:ƀlabel-secondary)}Ɓsimple-summary{Ƃƹ;Ƃrgb(from ƀbg-layer-1,ƀbg-base,#fff)) r g b / 1)}'.replace(/[ƀ-ǿ]/g,e=>Kn[e.charCodeAt(0)-384]),Ra="dsh-cost-meter/client.css";if(typeof document<"u"&&document.head!==void 0){const e=document.querySelector("style[data-plugin-css="+JSON.stringify(Ra)+"]");if(e?.textContent!==Ta){const t=e??document.createElement("style");t.dataset.plugin="dsh-cost-meter",t.dataset.pluginCss=Ra,t.textContent=Ta,e===null&&document.head.appendChild(t)}}const Gn="sessionCostTitle|sessionDetailTokens|sessionDetailCache|cost|sessionLine|sessionLineCompact|sessionCostCompact|quotaUnlimited|pricingCnyHint|balanceQueryFailed|unknownError|balance|officialBalance|quotaComposer|quotaSidebarSettings|quotaSidebarComposer|quotaSettingsComposer|quotaAllPositions|queryFailed|balanceTitle|reconcileLabel|totalBalance|grantedToppedUp|updatedAt|budgetOf|usedOf|todayShare|monthTotal|budget|todayCostTitle|todayTokensTitle|tokensUnit|callsTokens|monthCost|totalCost|today|sidebarTodayMetric|sidebarTodayCost|sidebarTodayTokens|periodDay|periodMonth|periodAll|periodCustomRange|noHistory|colDate|colCalls|colInTok|colCacheTok|colOutTok|colCost|noSessionsToday|colSession|enableBudget|budgetAmountLabel|budgetPeriodLabel|startDate|endDate|rangeText|budgetDisabledNote|budgetStatus|overLimit|nearLimit|legacyModel|defaultFallback|remove|tierBase|tierOffPeak|tierPeak|balanceApiKey|balanceKeyHint|balanceLine|balanceQueryFailedHint|balanceNotQueried|accountBalance|refreshing|refreshBalance|customBalanceTitle|customBalanceAdd|tokenRhythmBalanceAdd|tokenRhythmBalanceNote|aliyunBalanceAdd|aliyunBalanceNote|customBalanceConfigNote|customBalanceLabelZh|customBalanceLabelEn|customBalanceUrl|customBalanceUrlHint|customBalanceHttp|workBuddyBalanceAdd|workBuddyBalanceNote|customBalanceMethod|customBalanceHeaders|customBalanceBody|customBalanceBodyNote|customBalanceExtract|customBalanceDisplayLabel|customBalanceRefreshInterval|customBalanceUnitLabel|customBalanceConvert|customBalanceConvertNote|balanceBarRemaining|balanceBarToday|balanceBarSpent|barDirectionsTitle|barDirection_balance|barDirection_budget|barDirection_go|barDirection_plan|barDirectionRemaining|barDirectionUsed|balanceBudgetCapLabel|customBalanceInvalidJson|customBalanceHeadersVarNote|customBalanceAllowedHosts|customBalanceAllowedHostsHint|customBalanceCredentialsTitle|customBalanceCredentialsHint|customBalanceNoPlaceholders|enable|customBalanceLine|customBalanceRemaining|refreshCustomBalance|goQuotaTitle|goQuotaRowLabel|goWindowRolling|goWindowWeekly|goWindowMonthly|goResetAt|resetReached|resetDays|resetHours|resetMinutes|quotaResetInHm|quotaResetInM|quotaResetAt|quotaForecastHit|quotaUsed|quotaRemaining|goQuotaPercent|goQuotaFetchedAt|goQuotaDisplayLabel|goQuotaRefreshIntervalLabel|goQuotaRefreshMinutesUnit|goQuotaKeyLabel|goMainLabel|goDetailLabel|credentialConfiguredOf|credentialNotConfigured|credentialSave|credentialEdit|credentialClear|credentialSaving|credentialInputHint|secretMigrationPending|budgetDetailLabel|refreshGoQuota|goQuotaNotQueried|codingPlanAnthropic|codingPlanZai|codingPlanMinimax|codingPlanMinimaxTitle|minimaxOrigin|minimaxOriginNote|codingPlanRemain5h|codingPlanRemain7d|balanceRechargeLink|codexQuotaTitle|codexQuotaEnable|codexQuotaFive|codexQuotaWeek|codexQuotaReset|codexQuotaUnavailable|codexQuotaEnabled|codexQuotaSidebar|codexQuotaStrip|includeSubagentCost|gatewayQuotaEmpty|codingPlanDisplayLabel|codingPlanKeyLabel|codingPlanRefreshIntervalLabel|refreshCodingPlan|loginCodingPlan|loggingIn|codingPlanNotQueried|gatewayQuotaTitle|gatewaySourceAdd|gatewaySourceLabel|gatewaySourceBaseURL|gatewaySourceDisplay|gatewaySourceRefreshInterval|gatewaySourceAllowlist|gatewaySourceCredential|gatewaySourceStatus|gatewaySourceUnsupported|gatewaySourceUnknown|gatewaySourceNoAccounts|gatewaySourceFetchedAt|gatewaySwitchAccount|gatewayOnlyGemini|refresh|quotaEnableFirst|quotaRefreshReady|quotaRemove|quotaSectionNote|goQuotaDisabledNote|cornerLabel|cornerGoRolling|cornerGoWeekly|cornerGoMonthly|cornerBudget|goShortRolling|goShortWeekly|goShortMonthly|goShortDaily|budgetShort|ledgerReadFailed|readingLedger|ledgerUnavailable|syncFailed|historyCleared|clearFailed|peakOff|peakNotEffective|peakActive|peakNotice|offPeakActive|weekendAllOffPeak|weekendChip|weekendShort|holidayAllOffPeak|holidayChip|holidayShort|peakHolidaysLabel|weekendRuleNote|peakShort|offPeakShort|peakStyleLabel|peakStyleCompact|peakStyleClassic|peakAlertLabel|peakAlertAheadLabel|peakAlertTargetLabel|peakAlertTargetPeak|peakAlertTargetOffPeak|peakAlertTargetBoth|peakAlertTitlePeak|peakAlertTitleOffPeak|peakAlertBody|peakAlertPhasePeak|peakAlertPhaseOffPeak|peakAlertBtn|peakAlertBadgePeak|peakAlertBadgeOffPeak|peakAlertPositionLabel|peakAlertPositionCorner|peakAlertPositionCenter|peakAlertWebNotifyLabel|peakAlertWebNotifyHint|peakAlertPreviewLabel|peakAlertPreviewPeak|peakAlertPreviewOffPeak|peakAlertPreviewTag|peakPanelTitle|peakNoticeHiddenHint|groupGeneral|groupMoney|groupSidebar|sidebarSimple|sidebarSimpleNote|closeGuide|todayBudget|sidebarStyleLabel|sidebarStyleStandard|sidebarStyleCompact|restorePriceMatches|removePriceMatchHint|groupCorner|groupDetail|unmountBtn|catalogUnpriced|priceLockBadge|priceLockHint|priceLockRelease|modelStatsTitle|modelsTitle|modelsCount|modelsOther|models_enabled|models_defaultOpen|models_remember|models_tokens|models_shares|models_dock|models_period|models_summary|models_position|models_topN|models_refreshSeconds|modelsTotal|modelsTop|modelsFirst|modelsAfter|modelsLast|modelStatsToday|modelStatsHistory|modelStatsCostH|modelStatsTokensH|modelStatsHitH|modelStatsHitUnreported|modelStatsHitUnreportedTip|modelStatsValueH|modelStatsInput|modelStatsCache|modelStatsOutput|modelStatsEmpty|modelStatsBlended|modelStatsNote|modelStatsLegacy|sessionLineSplit|sessionLineSplitCompact|costChipPlan|sessionDetailPlan|planStatsTitle|planStatsEmpty|planStatsWindow|planStatsPercent|planStatsLocal|planStatsPer1|planStatsFull|planStatsResets|planStatsMethodSample|planStatsMethodLive|planStatsMethodNone|planStatsMethodSampleAt|planStatsConfidenceLow|planStatsCurveTitle|planStatsDaily|planStatsWeekly|planStatsMonthly|planStatsCurveEmpty|planStatsBarTip|planStatsNote|billingClassLabel|billingClassPlan|billingClassAuto|billingClassApi|catalogDisplayLabel|catalogDisplayHint|priceTableDisplayHint|priceMultiplySeparate|priceMultiplyHint|priceMultiplyAll|priceMultiplySingle|priceMultiplyInvalid|priceMatchLabel|priceMatchAuto|priceMatchExact|priceMatchNote|unmatchedTitle|unmatchedHint|overrideTargetDefault|overrideRemove|overrideTargetLocal|matchedTitle|matchedHint|matchedKeepAuto|overrideNone|mountedSuffix|flatInput|flatCached|flatCacheWrite|cacheWriteFallback|flatOutput|deepseekMountedHeader|codingPlanKimi|codingPlanOpenrouter|codingPlanSiliconflow|codingPlanCommandcode|codingPlanClinepass|codingPlanScnet|codingPlanVolcengine|codingPlanQwen|codingPlanMimo|codingPlanBaidu|quotaUsedTotal|wbT|wbH|codingPlanFactory|codingPlanOpendesign|opendesignWorkspace|opendesignNote|factoryPool|factoryPoolBoth|factoryOrg|mimoWindowPlan|mimoWindowCompensation|codingPlanWindowBalance|qwenSource|qwenSourceLocal|qwenSourceCli|qwenSourceBailian|qwenCliNote|qwenBailianNote|qwenPlanCreditsLabel|qwenPlanStartLabel|qwenRatesLabel|qwenRatesModelPlaceholder|qwenRatePlaceholder|qwenRate_input|qwenRate_cachedInput|qwenRate_output|qwenRateDraftNote|qwenRatesAdd|qwenLocalNote|scnetPlanCreditsLabel|scnetPlanStartLabel|scnetLocalNote|volcengineAccessKeyIdLabel|volcengineSecretAccessKeyLabel|volcengineAccessKeyPlaceholder|volcengineSecretPlaceholder|countdownHoursOnly|countdownHourMinute|countdownMinute|nextOffPeakIn|nextPeakIn|peakSummary|noPeakWindows|unknown|cardToday|cardMonth|cardTotal|cardTotalSub|externalUsage|combinedUsage|externalStale|externalHistory|cardsFootnote|timezoneHint|todaySessions|historyExpandHint|historySessionsLoading|historyNoSessions|historySessionsError|sessionRankTitle|sessionRankHint|sessionRankEmpty|sessionRankLoading|sessionRankError|sessionRankLimit|cardsTogglePlanTotal|cardsTogglePlanTotalHint|hideSessionCostHeader|hideSessionCostDock|hideTurnCost|sessionRankSort|sessionSortCostDesc|sessionSortCostAsc|sessionSortTimeDesc|sessionSortTimeAsc|sessionSortRecent|history|usageTitle|usageTotal|usageDay|usageEmpty|usageSectionLabel|displaySettings|tabOverview|tabQuotas|tabUsage|tabPricing|tabDisplay|historyDataTitle|positionLabel|positionDock|positionHeader|off|quotaStripShowBudget|quotaStripShowGo|quotaStripShowPlans|pageLoadTimeout|balanceHidden|balanceToggle|clickToRefresh|balanceClickGuideBody|balanceClickGuideOk|sidebarLabel|sidebarOn|currencyLabel|currencyCny|currencyUsd|currencyEur|symbolLabel|rateLabel|decimalsLabel|balanceDisplayLabel|balanceSidebar|balanceSettings|balanceBoth|refreshIntervalLabel|peakEnabledLabel|peakNoticeLabel|badgeNote|priceTableTitle|pricingCurrencyLabel|pricingCurrencyUsd|pricingCurrencyCny|pricingCurrencyNote|priceTableNote|datedPriceNote|defaultModelId|newModelPlaceholder|addModel|dataSync|saving|autoSaveFailed|autoSavedAt|autoSaveHint|confirmFetch|apply|cancel|syncFromDocs|syncScopeNote|confirmReset|importLegacy|confirmImportLegacy|legacyImportFailed|legacyImportNote|confirmClear|clearAllHistory|lastSync|neverSynced|source|sourceOfficial|sourceBundled|languageLabel|localeAuto|localeZh|localeEn|sectionLabel|rpcFailed|rpcSyncFailed|rpcBalanceFailed".split("|"),zn="额度|amount|显示|价格|余额|费用|DeepSeek|模型|Token Plan|off-peak|会话|缓存|输入|Plan|official|session|time|quota|刷新|balance|prices|tokens|自动|计费|自定义|weekends and Chinese public holidays are|官方|Token|display|message|the|output|调用|input|credential|凭据|预算|Balance|cache|今日|金额|Refresh interval|中国公众假期全天谷价|同步|失败|峰时高价时段显著提示|时段|用量|OpenCode Go|历史|峰时|输出|calls|price|details|以同一系统账号运行|侧边栏|cost|currency|分钟|图框详细信息|已用|当前|Credits|Refresh|refresh|usage|WorkBuddy2API|and|period|保存|本地|留空|设置|请求|读取|Codex|interval|model|optional|position|Budget|DescribeBillingAccount|account|credits|failed|history|位置|匹配|命中|小时|币种|数据|记录|谷时|账本|Strip includes|rates|source|启用|峰谷|订阅|配置|Chinese|Sidebar|minutes|人民币|右下角|Cache|automatically|month|Coding|Enable|OpenDesign|YYYY-MM-DD|auth login|billed|configured|planAmount|全部|剩余|可选|提示|时间|更新|本月|查询|登录|统计|谷价|进入|默认|Off-peak|Quota not queried|Settings|browser|current|default|is an upper bound|local ledger|never echoed back|settings|sidebar|subscription|workspace ID|法定假日|逗号分隔|API|AccessKey|Output|Preview entering|WorkBuddy|budget|including|ledger|remaining|workspace|主机|使用|密钥|工作区|恢复|日期|暂无|浏览器|清除|点击|积分|累计|账号|重置|隐藏|Today|empty|local|a catalog entry|comma-separated|deepseek-v4-pro|only|peak|this|导入安装前|开始对话后|汇总在这里|过期后重新|Monthly|pricing|Cookie|Entering|Failed to load|Input|Official|Provider|a vendor group|built-in table|custom|enough samples|historical|stay unchanged|to restore|toppedUp|total|估算|侧栏|取消|名称|周末|安装|展开|开启|手动|挂载|提醒|明细|来源|添加|确认|美元|间隔|Alibaba Cloud|Authorization|Remaining|effective|estimates|overrides|qianwenai|table|框上方|横条含|白名单|Bottom-right|Content-Type|Cost|Custom|Display|English|JSON|MiniMax|Session|This|Updated|Volcano|console|date|granted|hitRate|method|notification|rate|records|restore|same OS user|used|上方|下方|关闭|内置|写入|单价|后续|周期|图框|填写|导入|开放平台|按自然月|排行加载|支持|滚动|火山引擎|环境变量|移除|等值|覆盖|计价|采样区间|预览|Flash|Peak|Quota|SiliconFlow|application|apply|are|auto-detect|bailian-cli|composer|environment|full-window|host|matching|max-preview|open-design|pre-install|qianwen-cli|token|unavailable|Auto-match|Claude Pro|Cline Pass|Credential|Management|OpenRouter|Remove|Resets|Show|Sign in at|Volcengine|Weekly|aggregated|data|exactly at|from|hours soon|multiplier|percentage|status|window|with|不计|保留|倍率|全天|加载|勾选|区间|基础|复制|实际|度条|影响|文档|日志|未知|档位|渠道|生效|端口|编辑|账户|这里|采样|DSH|History|Unknown|Weekend|address|changes|count|headers|hours|ranking|reads|request|Anthropic|Clear all|Kimi Code|Topped-up|all|auto-sync|dashboard|page|precision|providers|reasoning|signed-in|subagents|占位符|子代理|性价比|抵扣率|控制台|未上报|标题栏|百分比|知道了|表条目|起始日|这一项|阿里云|for|use|Base URL|Click|Currency|DevTools|External|HTTPS|Moonshot|Security|Source|actual|calendar|click|deepseek|enable|estimate|follow|limit|name|notice|override|priority|provider|range|read|recorded|requires|sample|select|snapshot|stay|store|subtract|today|write|上限|不会|中文|优先|修改|充值|其他|分别|切换|删除|北京|千问|卡片|厂商|发现|发送|只写|可在|可用|可能|后的|地址|外部|对账|弹窗|当日|快照|总额|折算|推理|方向|时区|最多|本周|标准|格式|每日|汇率|消耗|满窗|用于|精度|精确|路径|选择|页面|Amounts|Beijing|Billing|ChatGPT|Compact|Confirm|Control|Default|Extract|Factory|Granted|HTTP|Include|Key|Loading|Mounted|Network|Qwen|Request|Used|accepts|applies|bundled|channel|earlier|expired|full|gateway|holiday|include|loading|missing|percent|plan|plugins|qianwen|removed|replace|unknown|when|Local|ROUTE|USD|Usage|above|alert|below|equiv|first|key|match|start|value|CNY|Gemini|Ledger|NewApi|OPENAI|Public|Recent|Rhythm|Saving|active|change|corner|direct|divide|fields|here|hidden|import|logs|manual|not|openai|origin|pct|port|reason|remain|resets|studio|sync|上下|上界|不足|为准|仍在|保持|允许|入口|包含|即将|原因|发生|同名|后可|后缀|回放|回显|回退|域名|填入|处于|套餐|字段|对应|屏幕|工具|平价|应用|底部|开关|悬停|打开|按量|放行|早期|时刻|最近|月度|权限|条数|样式|样本|版本|状态|界面|百炼|直接|窗口|符号|类型|紧凑|缺失|网关|网络|网页|花费|英文|表内|表外|规则|语言|请在|账单|货币|赠送|超出|跟随|通知|重试|Add|box|CLI|Hide|KEY|Open|Sync|VAR|When|clear|copy|day|dock|docs|each|left|saved|that|tok|will|yet|your|All|Pro|bar|Auto|Save|auto|back|card|old|per|save|show|Top|com|low".split("|"),Le=Object.fromEntries([["zh",'本Ɗƅ(按每次Ơˈτ͊Ɨ)|ƌ {ơ} · Ƌ {Ʀ} · Ƴ {Ɵ}|Ƌ:读 {̕} · 写 {̟}(ʁ按Ǚ价Ɨ)|ƅ {Ɓ}|本Ɗ {Ɓ} · Ǚ {ɵ} · ƌ {ơ} · Ƌ {Ʀ} · Ƴ {Ɵ}|本Ɗ {Ɓ}|仅Ƃƨ|无限制|ƾǪƨ来自əƃ × ͅ {ɸ}。对照ƚǪϟ,请͌ ΃,再ƫƃ;ƫ仅ˊʃƠ。|ƄǾƬ:{Ɲ}|ˍ错误|Ƅ|Ɔ Ƅ|ƌɣ|ɋ和lj页|ɋ和ƌɣ|lj页和ƌɣ|ǷǗ|ǾƬ|Ɔ ʈ˓Ƅ|ƚƄ变动与LJǟ交叉̷(偏差超阈时Ǻ)|总Ƅ {Ɓ}|ϡ {ɴ} · ̥ {Ɉ}|Ǽǻ {Ɛ}|Ƥ({Dž})|ƽ {ɼ} / {Ɓ}|Ƨ {Ɓ} · 占Ƥ {Κ}|ǽ {Ǯ} · Ȩ {ɉ}|Ƥ|Ƨƅ(按ƚƃ͊Ɨ)|Ƨ ƛ Ư|ƕ|Ơ {ƴ} 次 · ƌ {ơ} · Ƌ {Ʀ} · Ƴ {Ɵ}|ǽ {Ɓ}|Ȩ {Ɓ}|Ƨ|ƸƧƂ|ƅ|ƛ Ư|Ƨ|ǽ|Ȩ|Ƙ˅|ȣƱǝ。ȶ,ƅ将按天ȷ。|Ȣ|Ơ|ƌ ϸ|Ƌ ϸ|Ƴ ϸ|ƅ|ƧȣƊǝ。|Ɗ|ǣƤ|Ƥƀ(按ƂǛ)|Ƥʄ|开始Ȣ|结束Ȣ(Lj = Ƨ)|Ȁ˅:{̔}|ǣƤ后Ƃƀ、ƽƨ及比例(按ƂǛ换算);ǹƧ、ǽ、Ȩ或Ƙʄ。|{Dž}Ƥ {Ɓ} · ƽ {ɼ} · {Κ}%|(已Ϣ)|(接近̠)|旧Ƈ|ȃβ|ʏ|ˆ|Ǟ|Ʋ|Ƅ专用 ȓ ͛|̣Ȟ此ʈ ͛;未Ǧ时Nj已ǿƚȩƄ,其次沿用Ƈƣ。|总Ƅ {ɉ} · ϡ {ɴ} · ̥ {Ɉ} · Ǽ于 {Ɛ}|ƄǾƬ:{Ɲ}|未ǾƄ|ƚ˓Ƅ|ƒ中…|ƒƄ|Ƙ ɀ Ƅ|ɗǦ|ɗ ƛ Ί Ƅ|Ƃ官网˓页的Ǫ̲Ƅ。ǿ ʧrhythm.Ο,在Ȥ开发者κ → ϖ中ˇ˓NJ的 Ȼ,或在存储 / μ中ˇ tr_Ə 值,δɾƣ并ǣ。Ȼ 仅存 ˖ ƣ库;ȸʆ。|ɗ̫ / ˻Ƅ|Ǿ˻中国站̲金。RAM Ȕ 需 bss:ǒ χ。前两项必填;STS 才需 ̅ ƛ。ȟ存ƣ库。|extract ʋ点͋、数值和 add/̝/ΐ 运算;Ά Ƒ 除以 500000 得到ə。|̢ɍ|ϙɍ|NJ URL|ʋ ̃、本机 ͙,以及 /Ͱ/… 相对͋(Ɩϣ ˖ ˑ)。|Χ非回环 ͙(ƣ明文传输;须将准确的 ȝ:ˑ 加入ɥ)|+ ǃ ȧ|ǃ 预设Nj活跃ȩ池Ǹȧ,Ȟ管理后台 X-Admin-ƛ(不是Ƈ ȓ ͛)。请ʆˈ̵与ˑ;令牌过期后Ǽƣ。|NJ方法|NJ头 (ɬ)|NJ体 (ɬ)|Lj不̯;ɬ 原文dž并̯。ȃ ɧ 为 ʙ/json,̱NJ头ʑ。|解析Ϝ (ɬ)|ƘƄƂǗ|ƒɚ (ƻ)|Ƅ原Ǜ|按ƂǛ̼(͸ Ƅ)|ȞƂͅ与͉;ƄǛΦ端点原Ǜ。̦Ǜ及ȧ不̼。|Ƅ {Ɓ}|̹ƽ {Ɓ}|ƽ {Ɓ}|进ˉ̾|Ƅ条(ƚ/Ƙ)|Ƥ条|Go ƀ条|ƍ / nj ƀ条|Ǹ̾(满 → 空)|ƽ̾(空 → 满)|ƀ̠ (ǹ)|ɬ ̓无效|{{ϭ_NAME}} 从ƣ库或ʎNj。<ͷ>_ȓ_Ϫ 中 ͷ 为大写 ɀ ID,ϑ改下划线,如 Θ→·_ȓ_Ϫ。έ共用ȟ。|ƣɥ (Ȓ)|NJ头带ȟ时仅ς列Ϛȝ,Lj则ς并警告,防ʇ他人Ǧ外带ȟ。|ƣƌ|为ɽ {{ϭ}} ˯存入ȟ(̟-Ȳ,̰ƣ库,不α):|NJ头还没有 {{ϭ}} ˯:δ如 "ɜ": "Beʛr {{MY_ȓ_Ϫ}}" 后˔会出现ƣƌ框。|ǣ|Ǹ {ț} · ƽ {spend} / ƀ {maxǑ} · Ǽ于 {Ɛ}|Ǹ {Ɓ}|ƒƘƄ|ư ǥƀ|Go|ʌ 5 ǚ|́|ǽ|Ȫ:{Ɛ}|已到Ȫǻ|Ǹ {d}天{h}ǚ|Ǹ {h}ǚ{m}分|Ǹ {m}ƻ|{h} ǚ {m} ƻ后Ȫ|{m} ƻ后Ȫ|{Ɛ} Ȫ|按本ϐ平均Ư,预计 {Ɛ} 达到̠|ƽ {Κ}%|Ǹ {Κ}%|{ͮ}%|Ǽ于 {Ɛ}|Go ƀƂǗ|Go ƀƒɚ(ƻ)|ƻ|ư ȓ ͛(ǹ,LjƖ̮)|Go ƀ主ˎ|Go Ƽ|已Ǧ(ɖ:{Ǣ})|未Ǧ|dž|˒ƣ|ȥ|dž中…|ȟ只ʁ ˖ ƣ库,不dž在ǟ里,也̡α。|以下ȟΥLJǟ,未迁入ƣ库。请导出θʎ后重启:|ƤƼ|ƒƀ|未Ǿƀ|ˢ(ʪ/Max)|Z.ai / 智谱 GLM ǯ ƍ|ɭ M ƍ / ƈ|ɭ ƍ|Ǿγ(̃)|LjƖ͌ƚ站点。ʆ后 ͛ 仅发往该γ;Ȟ可信̵,不含͋。|5h|7d|π Ɔ ̥页(plat˼m.̊.Љ/ǂ)|͑ (nj) ƀ|nj ƀ未ɑ · 点此ɑ|5h ƀ|周ƀ|{Ɛ} Ȫ|未取得ƀ,请ɘ所选ǜ源已ǿ;Ȧϥ|Ƃ nj ƀ(需ǿ nj 插件)|在ɋƂ nj ƀ|在ƌ区Ƃ nj ƀ|本ƊƅΩ˰|ȣƀǜ|ƂǗ|ȓ ͛(ǹ,LjƖ̮)|ƒɚ(ƻ)|ƒ|ǿ|ǿ中…|未Ǿƀ|ϨϽxyȓ ϕƀ|ɗɖ|ɖɍ|˾|ƂǗ|ƒɚ(ƻ)|ƣɥ(ȝ:ˑ,Ȓ)|ʭ ͛(̰)|ό|不ʋ的 ɀ|ˍ|未̮ȩ|抓取于 {Ɛ}|̨ȩ (ƾ: {Ǔ})|只Ƃ ΄ ƀ|ƒ|先˄ǣ˺|ǣ并džƂǗήƒ|̩|˄ǣ后会排到最上面;点ɍ可ɐ该项自己的Ǧ。ƘƄ̀ 8 条,ϕɖ̀ 4 条。|ɑ后Nj ư 的ʌ 5 ǚ、周、月ƀ,Ƃ在ɋ、lj页及ǫ;无ǥ时ǺΫ。|ǫƂ(ϲ)|ʌ 5 ǚƀ|́ƀ|ǽƀ|Ƥƽ%|5h|周|月|日|Ƥ|ǟNjƬ:{Ɲ}|正在Njǟ…|ǟ不̲|ƫƬ:{Ɲ}|Ʊǝ已ȥ。|ȥƬ:{Ɲ}|Ǥʒ已ɿ,按ˆƃƗ|尚未ː(ːǻ:{Ɛ}),ƾ按ˆƃƗ|ƾε峰Ʈ,按Ʋ价Ɨ|ƾ为 Ɔ Ʋ高价Ʈ,按Ʋ价Ɨ|ƾε谷Ʈ,按Ǟ价Ɨ|ɎƮ——全ȁ(周六及周日˂按Ǟ价Ɨ)|ɎƮ——全ȁ|Ɏ全谷|ȑ——˂ȁ|ȑ——全ȁ|假日|ȑ(̪Ȣ,Ȓ)|自 2026-08-23 ̪ǻ 00:00 起,Ɏ和ƪ;调休上班的Ɏ仍按ȁ。|Ʋ|λ|ǤƮ条ω|简洁(单行ϓ)|经典(分段与胶囊芯片)|峰/谷̨前̸ɔ|提前ɔ(ƻ,1-30)|ɔϒ|ȂƲ|ȂǞ|峰和谷|ΪȂƲ|ΪȂǞ|约 {Ɛ} 后Ɨˎ̨为{phase}价,请注意本ƮƠ成本。|Ʋ|Ǟ|˷|峰价ɔ|ȁɔ|̸Ǘ|ǫ|ι中心|ƫ̯系统Ϥ|ξ后ϞȤ̵栏ΧϤχ,才能在͍最小化/切走时收到ɔ。|ʔ̸|ʔ Ȃ峰|ʔ Ȃ谷|(ʔ)|Ǥʒ与Ǻ|Ǻ已ȫ:需ǣǤʒ并ɑ「ƭ」。|常规|ƨ与Ǜ|ƸƂ|简化ɋƂ|精简̬,ˀƨ、ƀ和ο详情;高度̀占ι 38%,Ϣ可ʌ。ɿ后ȡ。|ɿǺ|Ƨ / {Dž}Ƥ|Ƹ进ˉω|͂|ϓ(两列)|ȡ已ʏ的Ƈ ({˜})|ʏ会ȥɒ映射并ȫ此行,可ȡ;̡̩Ưǝ,ʃ按ƖǘϜʒ。|ǫ角标|Ƽ|Ɍɓ|未核价|已Ƙ|这个ƃ是你ɒ改过的,Ɩƫ̡ʑ它。|ȡƖƫ|按ƇȀ(ʧ 与ƅ)|ɋƇϘ|{n} Ƈ|其它|ƂƇϘ̬|ȃɐ|记住ɐό|Ƃ ƛ|Ƃƅ占比条|ǫƂ Ј-1 Ƈ|ȃʄ|收起摘要|̬Ǘ|Ƈ行数(1–10)|ƒɚ(10–60 秒)|ʄ̻与Ƈ数|Ј-1 Ƈ与ƨ|顶部|Ƅ之后|ν|Ƨ|近 90 天|ƅ排行|ƛ ͆|ƋǙ率|˴?|长Ơ无ƋǙ:代理̳ʏƋη。ƨ按全未Ǚ计,是΢;可直连核对。|˱ · 每ə ʧ 数|ƌ|Ƌ|Ƴ|该ƮȣƯǜ。|综合ʂ {Ƶ}/M|Ǚ率=Ƌ读÷(Ƌ读+普通ƌ);「˴?」表示Ƌη̳ϔ,ƨ为΢。ʂ=ƅ÷ʧ×1M;˱=ʧ÷ƅ。|未分Ƈ(σǜ · 按当时ǝƗ)|本Ɗ {Ɓ}(ȓ)· ƍ ʐ {Ƕ} · Ǚ {ɵ} · ƌ {ơ} · Ƌ {Ʀ} · Ƴ {Ɵ}|本Ɗ {Ɓ}(ȓ)· ƍ ʐ {Ƕ}|ƅ {Ɓ}(+ƍ)|ƍ ǥƀ͆(ʐ){Ɓ}|ƈ ƯȀ(每 1% 与͇Ɋ)|尚无 ǯ ƍ ƀǜ;Ϟ「ƀ」页ɑ并ƒ̭。|ϐ|ƽ %|本ʄˈ(LJǟ)|每 1% ƀ ≈|͇ 100% ≈|Ȫ {Ɛ}|˕差分|ƾƯ̼|ϊΣ|{ɶ}(基准 {Ɛ})|读数͉受限|ƍ Ư曲线(按ʓ聚合)|̈́|每周|每月|˕Σ:至少两次成功ƒ,且ƀ˶ά变化。|{ɳ}:͇估计 ≈ {ͨ}(每 1% ≈ {Ѕ1})· ˈ {ƕ} / {ƹ} · {Ǎs} 个ʓ|ƨ是目录价ʐ;ǥ耗ƀ,Ƥ只计 ȓ。Ɋ仅含 dsh Ơ;服务端˶含全ȩ。短时ϊ͉有限;5h ʌ,周/月按LJ日历。|Ɨ方式|ƍ ǥ|Ɩ|ȓ ρ|在ƅljϏƂ|仅控制是否在ƅƃ表ϏƂ;不ˊɓ和Ɨ。Ɍ˄后ΥƃϚ,可随时改回。|ɐ̭可˒ƃ;Ɍɓ的ʀƇ̱ɾȡ。|̧ljˁ|可ƌ 2 × 0.8|̤ˁ会ƫ到本ƇǷʂ|仅̤˺的ˁ;Ɍ˄ȡ统一ˁ|请ƌ非负ʂ或乘法,例如 2 × 0.8|ˍƇ名Ɩǘ|Ɩ(去ί / 前缀 / 家族相似)|仅͊ǘ|ɒ指定̣;Ɩǘ只接受έ及Ȣ、ϋ、Ρ文ί。未Ǚ的 Ɔ 用ȃ价,̦ˏ不ʒ。|待ǘ与ɒlj|按ˏ和Ƈ̧lj:͌ƃ˸、Ƙƃ,或标记为LJƇ。Ƙƃ只͈ƾˏ。|Ɔ ȃ价|ʏ|LJƇ(零͆)|已ǘƃ的Ƈ|ƾȞƖǘ。可改选ƃ˸、Ƙƃ或零ƅ;dž后移入ɽɒlj区。ƛ 仍会Ȁ。|ΦƖǙ|ȣɒǘʑ。|已ɓ(参与Ɨ)|ƌ|ƋNj|Ƌʁ|Lj时按ƋNj价Ɨ|Ƴ|Ɔ ƃ表(已ɓ)|ˤ / ̄|ʮ|ʘ 硅基流动|CommDŽCode|ʫ|SCNet 超算互联网 ƈ|火山方舟 ɱ Ark ǯ ƍ|̫ ͟ ƈ|小米 MiMo ƈ|百度千帆 ƈ|ƽ / 总ƀ|ȗ ȧ|ƖNj ȗ ȧ。|͗ (Droid)|DZ|DZ Ƞ ID|无需ɏ桌面版。ǿ ʤ.ai/cloud/˨,按 F12 → ϖ,ƒϗ,选 coding-ͯ-ǂ 或 w˦et/Ɠ NJ,ˇNJ标头 Ȼ 完整值到ɾƣ。Ƞ ID Lj时NjϗƾȠ,也可ʆNJ URL 中 /Ȝs/ ̴ ID。仍ʋ ͔ ͛(需ʆȠ ID),不ʋ̽ ȓ ͛。Ȼ ȸˇ。|ƀϒ|StDŽard + Core|组织 ID(ǹ)|ζȧ|补偿ȧ|Ƅ|ƀɖ|LJɊ|ƚ Ϩ|ώ Ϩ|Ϩ 模式需在 ˖ ȝɏ @ɡ/ʦ,并Ʒ ͱ dz。|ώ Ϩ:在 ˖ ȝɏ ʝ。ǿ按钮会在该ȝπ授权Ȥ;远程或无ύȝ请Ʒ bl dz --ɲ。|φ ƿ ƀ(个人版 Lite 5 万 / ͂版 50 万,以ǥ页Τ)|ǥ˹(ǹ,̓ Dz;Ljʉ)|ƿ ˲ʑ(ǹ;每百万 ʧ 抵扣的 ƿ,Lj用ʀ表)|Ƈ名,如 qwen3.8-ʣ|费率|ƌ|Ƌ读|Ƴ|待填齐三项正数后Ɩdž;Ƿ清空ȡʀ表。|ɗ|ƿ LJɊ,以˳Τ。Ȁ归属̫ζ的 ƍ Ơ;ʿρ ȓ。ϛƇ需设˲。|LJɊφ ƿ ƀ(ˆ 60,000 / ͂ 240,000 / 高级 600,000)|ǥ˹(ǹ,̓ Dz;Ljʉ)|̣用 24 ǚ内的˳̺,否则按LJǟ和ƚ ƿ 表Ɋ。̦κ和ϛƇʿ入。|ʍ Ȕ ID|ʍ SecretȔ|AK...|SK...|{h}ǚ|{h}ǚ{m}分|{m}ƻ|{Ɛ}后Ȃλ|{Ɛ}后Ȃ高峰|峰Ʈ(UTC):{ʽs};ːǻ:{Ɛ}。{ʼ}|未ǦǤƮ。{ʼ}|ˍ|Ƨƅ|ǽƅ|Ȩƅ|自ǟ建立以来 · Ơ {ƴ} 次|̶Ư|˖ + ̶合计|̶̺超过 24 ǚ未Ǽ|近期̈́ǝ|ƨ取υ̺,̳比ƚϟ晚几ƻ。ƕ 含ƌ、Ƴ、Ƌ和̽;̽并入ƳƗ。以ƨ̷。|Ƨ/ǽ按宿主̿ {ʡ},Ȥ为 {ȇ}。̿不同会ˊ日界和̷;可将 dsh 改为LJ̿。|ƧƊ|ȦȢ行可ɐ̹Ɗɕ|Ɗɕ˃中…|该日无Ɗɕ(σǜ或Ɗˌ已清理)|Ɗɕ˃Ƭ|按ƊȀ(ǷƱ)|跨天合并,˰按ξ归并。仅列选定ψ,ȨƅΩǷ对话。|ȣƊǜ|Ɗʊ中…|ƊʊƬ|Ƃψ|ƨ含 ƍ ̻|ɑ后所有ƨ按含 ƍ ǥʐ的总ƅ展示;ɿ(ȃ)仅计真金白银 ȓ ˏ|ȫ˵ƅɕΨ|ȫƌ框ɾƅɕΨ|ȫ每轮回复̴本轮ƅ|排序|ƅ 高→低|ƅ 低→高|ǻ 新→旧|ǻ 旧→新|实时顺序|Ʊǝ|ƛ ƯȀ|Ȩ {ƕ} ƕ · ƌ {ơ} · Ƌ {Ʀ} · Ƴ {Ɵ} · {ƴ} 次Ơ|{ɳ}:共 {ƕ} ƕ(ƌ {ơ} · Ƌ {Ʀ} · Ƴ {Ɵ})· {ƴ} 次Ơ · {ƹ}|ȣƱǜ,ȶ̈́Ư会ȷ|Ư|Ƃlj|概览|ƀ|Ư|ƃ|Ƃ|Ʊǜ|ƊƅƂǗ|ƌ区ɾ|Ɗ˵|ɿ|ɤƤƽ%|ɤ Go ƀ|ɤ ǯ ƍ ƀ|͍Nj超时,请Ȧϥ。|Ƅ已ȫ|Ȧɍȫ或ƂƄ;Ȧƨƒ|Ȧ立即ƒ|ȦƸƄ或 ǯ ƍ ʅ即可ƒ;ƒ时ʅ闪烁,Ƭ时ˀ原值并在οǺ中说明Ϋ。|˷|̹ƅƂ|Ƹν|Ϡ单位|Ǫ ΃|ə ͸|欧元 EUR|Ϡϑ|ͅ(1 ə = ? 目标Ǜ)|小数位数|ƄƂǗ|主͍Ƹ|lj页|两者都Ƃ|Ƅƒɚ(ƻ)|ǣ Ɔ ǤƮƃ|ƭ(ƸƤ框/Ƨƅ;lj页Ǥ面板内ʔ)|Ɗ按Ơ时ƃƗ(含Ǥ与Ʊˎ)。ƌ、Ƴ、Ƌ读写分开Ȁ;独立Ƌʁ价与长Ρˋ位按Ǧː。|已ɓ的ƃ表|ƚƃǛ|ə(ϙƚ页)|Ǫ(̢ƚ页)|决定ƫƃ所用的ƚ页ϝ;ƫ̴ƃ͈ʃƠ。|Ͻ 与 ʕ ̧按ƚʂƗ,旧 ʕ ɍ按 ʕ 价结算。工作日̪ǻ 09–12、14–18 为峰Ʈ,Ɏ及ƪ。改价͈ʃƠ,已ǝƨˀ;修正旧ƅ请ɘ后ȞƱ重算。Ƌʁ按Ǚ价。|˔Ƃƾ适用ƃ。手工˒会Ɍ此条ʃ预定调价,已ά的Ʊƃ仍ˀ。|ȉ(未ǘƇ时β)|新Ƈ ID(如 ȱ)|ɗƇ|ǜ与ƫ|dž中…|ƖdžƬ:{Ɲ}|已Ɩdž {Ɛ}|Ǧ̤后Ɩdž|ɘ用ƚˋƃʑƃ表?|μ|Ɍ|从ƚˋƫƃ|ƚƫ只Ǽ Ɔ ƃ(含Ǥ);z-ai/Kimi/͟/ɱ 等第三方ƃ随ϋǼ,̱ƃ表ɐθ̭˒,或用Ƈ名ǘ调整。|ɘȥǷƱ?|ȵƱ|ɘʇ?将ΰǷƊˌ,只补ǟϔ的Ȣ与Ɗ,不ˊ已有ǝ。|ȵƱƬ:{Ɲ}|首次启动Ɩʇ旧ǝ;拷入ˌή重跑。按ƾƃ回推;已̩ˌ无法ΰ,跨ɏτ的Ɗʿ此前Ư。|ɘȥ|ȥǷƱ|υƫ:{Ɛ}|从未(Ȟʀƃ)|;ɖ:{Ǣ}|ƚˋ|ʀȃ|ύϝ|ϣ ˖(Ɩ)|简体̢|ɫ|ƅ|{ɶ} ƠƬ|ƫƠƬ|ƄƒƠƬ'],["en",`ɨ of ȴ Ə (Ǵ ʷ ϴ c˦ Ɛ)|Ⱦ {ơ} · Ǭ {Ʀ} · ȕ {Ɵ}|Ǭ: ̕ {̕} · ̟ {̟} (̟s Ǵ at ƞ hit Ƶ)|ɨ {Ɓ}|ɯ Ə {Ɓ} · Hit {ɵ} · Ⱦ {ơ} · Ǭ {Ʀ} · ȕ {Ɵ}|ɯ Ə {Ɓ}|ʱ Ɓ Ȳ|Un̎ed|΃ ɉs ˽ ͸ Ɣ × {ɸ}. To Љpʛ Ǝ ΃ bills, ̙ ΃, ƞn Π Ɣ; Πing affects Ȳ new ƴ.|ƥ query Ǖ: {Ɲ}|˘ error|ƥ|Ɔ Ɠ|Above ƞ ơ ϧ|Ǩ DŽ ȍ|Ǩ DŽ ơ ϧ|Ȇ DŽ ơ ϧ|ϼ locations|Query Ǖ|Ɔ open-plat˼m Ǔ Ɠ|Cross-check Ǝ Ɠ ˛ against ƞ ȋ (warn ͵ ƞy diverge)|Total {Ɓ}|͘ {ɴ} · ˥ {Ɉ}|ɰ {Ɛ}|Ǒ ({Dž})|͡ {ɼ} / {Ɓ}|Ȭ {Ɓ} · {Κ} of Ș|ɯ Ǯ {Ǯ} · ϼ Ɛ {ɉ}|Ǒ|Ȭ's ƹ (Ǵ ʷ Ǝ Ɣ)|Ȭ's ʧ ǂ|ƕ|C˦s {ƴ} · Ⱦ {ơ} · Ǭ {Ʀ} · ȕ {Ɵ}|ɯ Ǯ {Ɓ}|ϼ Ɛ {Ɓ}|Ȭ|Ǩ ̞ Ɯ|ɨ|ƛ ǂ|Ȭ|ɯ Ǯ|ϼ Ɛ|ɩ ̔|No ǖ Ϻ. Once you ΁ chatting, ƹs ʛ ʵ Β Ѕ ϱ.|Date|C˦s|In ϸ|Ǭ ϸ|Out ϸ|ɨ|No Əs ̖ ̞.|ɮ|ǰ Ș|Ǒ Ɓ (in Ɯ ƺ)|Ǒ Dž|Start ɳ|End ɳ (ȭ = ̞)|Range: {̔}|ǰ a Ș to see its ̎, ɼ Ɓ DŽ ʻ in ƞ Ɯ ƺ. Choose ̞, Ǯ, ˦ Ɛ or a Ƀ ̔.|{Dž} Ș {Ɓ} · ͡ {ɼ} · {Κ}%| (over ̎)| (near ̎)|Legacy|͕ f˦Ђ|ʯ|Base|Ȅ|ʖ|ƥ ȓ Ϳ|ɯ ϫ Plat˼m Ϳ takes ̒; oƞrwise ƞ ˭ Ǝ Ǔ Ɠ is ̕, ƞn ǎ Ƣs.|Total {ɉ} · ͘ {ɴ} · ˥ {Ɉ} · ɰ {Ɛ}|ƥ query Ǖ: {Ɲ}|ƥ Η queried|Ac˜ Ɠ|ǀing…|ǀ Ɠ|ɩ ̓ Ɠ|Ϧ entry|Ϧ ƛ Ί Ɠ|ʱs available ΃ Ɠ ʸ ƞ Ǝ Ǔ ˩. ʲ ʧrhythm.Ο. In ȇ ́, ϰ ƞ Ǔ ˡ Ȼ ʸ ͞, or ƞ tr_Ə ΂ ʸ Storage / Application. Ѐ it ͼ DŽ ̋ ȴ Ѓ. Ȼs ̛ in ƞ ˖ Ƣ ̜; ͳ ƞm ͵ ͧ.|Ϧ Qianwen / ɛ Ɠ|ʱs ɛ China funds. RAM Ȕ needs bss:ǒ. The ; two Α ʛ required; ̅ ƛ is ˼ STS. Secrets ̛ in ƞ Ƣ ̜.|͖ ͢ paths, numbers DŽ add/̝/ΐ. Divide Ά Ƒ by 500000 ˼ ͸.|ǧ ̏|ɫ ̏|͠ URL|SupΛs ̃, Ȯ ͙ DŽ /Ͱ/… paths Ϸ ̍ ƞ Ȉ ˖ Λ.|ϼow non-loopЂ ͙ (plaintext Ƣs; ̗ ƞ exact ʡ:Λ in ˦owed ʡs)|+ ǃ ǔ|The ǃ preset ˠ ț ǔ across Ό Ǔs using an admin X-Admin-ƛ, Η a ǎ ȓ Ϳ. Set ƞ ̇ ˚ DŽ Λ; ͳ ƞ Ƣ ͵ it expires.|͙ ɶ|Headers (ɬ)|͠ body (ɬ)|Blank sends no body; ɬ text is ϶ DŽ sent as entered. ɧ ȉs to ʙ/json; ˝ can ̑ it.|͖ rules (ɬ)|ɩ Ɠ Ɯ|Ʃ (ǩ)|̆ ƺ|Convert ͸ Ɠ to Ɯ ƺ|Uses ƞ Ɯ ɸ DŽ ˪. Keep ƞ Ǣ ƺ; oƞr currencies DŽ ǔ Ɇ.|ƥ {Ɓ}|Ȭ {Ɓ}|Spent {Ɓ}|Ͻgress Ͼ Ώion|ƥ Ͼs (Ǝ/Ƀ)|Ǒ Ͼ|Go Ƒ Ͼ|ƍ / nj Ƒ Ͼs|ɝ (ͨ → ȭ)|͡ (ȭ → ͨ)|Ǒ cap (Ǐ)|Invalid ɬ|{{ϭ_NAME}} ˠ a Ƣ or ʟ variable. <ͷ>_ȓ_Ϫ ˽s an upЅcase ɀ ID ʾ underscores, such as Θ→·_ȓ_Ϫ. Names can shʛ a Ϳ.|ϼowed ʡs (Ȱ)|Ϯ ˝ carry Ƣs Ȳ listed ʡs ʛ ˦owed; leave ȭ to ˦ow ʾ a warning. Ͻtects Ϳs ͵ Δing someone else's config.|ʬ ơ|Store ƞ Ϳ ˼ ϴ {{ϭ}} placehЄer ͺ (̟-Ȳ: ̜d in ƞ ˖ Ƣ ̜, Ȍ):|No {{ϭ}} placehЄers in ƞ ˝ Ϻ — add e.g. "ɜ": "Beʛr {{MY_ȓ_Ϫ}}" DŽ a Ƣ ơ Ϲ appear Β.|ǰ|ɝ {ț} · Spent {spend} / Ǒ {maxǑ} · ɰ {Ɛ}|ɝ {Ɓ}|ǀ Ƀ Ɠ|ư ȏ Ƒ|Go|Rolling 5h|ʴ|ȹ|ʰ: {Ɛ}|Reset Ɛ rϴed|{d}d {h}h ϵ|{h}h {m}m ϵ|{m}m ϵ|ʰ in {h}h {m}m|ʰ in {m}m|ʰ {Ɛ}|At ȴ ʽ’s average pace, ̎ expected {Ɛ}|{Κ}% ɼ|{Κ}% ț|{ͮ}%|ɰ {Ɛ}|Go Ƒ Ɯ ǐ|Go Ƒ ǁ Ǎ (ǩ)|min|ư ȓ Ϳ (Ǐ; ȭ = ʜ)|Go Ƒ primary ʽ|Go ϧ ƶ|Configured (Ǣ: {Ǣ})|Not ǵ|Ѐ|Edit Ƣ|Clear|΋…|The Ϳ is written to ƞ ˖ Ƣ ̜ Ȳ — it is never ϶ in ƞ Ț DŽ Ȍ.|These Ƣs Ν in ƞ ȋ. ExΛ ƞ ʢ ʟ variables DŽ re΁:|Ǒ ϧ ƶ|ǀ Ƒ|ȅ|ˢ (ʪ/Max)|Z.ai / Zhipu GLM ǯ ƍ|ɭ M ƍ / ƈ|ɭ ƍ|ʗ Ι (̃)|Empty: Ǝ sites. Oƞrwise ƞ ͛ is sent Ȳ to ȴ Ι. Use a trusted ˚ ʾout a path.|5h|7d|ϫ Ɔ top-up ˩ (plat˼m.̊.Љ/ǂ)|͑ (nj) Ƒ|nj Ƒ is disabled · ̉ to ̋|5h Ƒ|ʴ Ƒ|Ξ {Ɛ}|ʗ ʨ. ǰ DŽ sign in to ƞ ̙ed Ǣ; ̉ to retry.|ʱ nj Ƒ (̗ a ˭ nj plugin)|ʱ nj Ƒ in Ȏ|ʱ nj Ƒ ͺ ʞ|͚ ˮ in Ə ƹ|No Ƒ ʶ|ɪ ǐ|ȓ Ϳ (Ǐ; ȭ = ʜ)|Ʃ (ǩ)|ǀ|Login|Signing in…|ȅ|ϨϽxyȓ ͩ Ƒs|Ϧ Ǣ|̆ label|˾|ɪ|Ʃ (ǩ)|ʬ ˦owlist (ʡ:Λ, Ȱ)|ʭ Ϳ (̟-Ȳ)|Status|UnsupΛed ˫|˘|No Ǔs|fetched {Ɛ}|Switch Ǔ (Ȉ: {Ǔ})|΄ Ƒ Ȳ|ǀ|ǰ ȴ item ;|ǰ DŽ І a Ɯ ǐ to ǁ|ʯ|ǰd items move to ƞ top; ̉ a ̏ to expDŽ its own ȍ. Up to 8 Ƀ Ɠs DŽ 4 ͩ Ǣs.|ǰ ư rolling 5h, weekly DŽ Ǯly Ƒs in ƞ Ȏ, Ȇ DŽ bottom-right Ύ. Missing ȏs Ї a Μ.|ɦ (ϲ) Ɯ|Rolling-5h Ƒ|ʴ Ƒ|ȹ Ƒ|Ǒ ɼ %|5h|Wk|Mo|Daily|Ǒ|΅ ̕ Ǖ: {Ɲ}|Reading Ț…|΅ ʨ|Ϭ Ǖ: {Ɲ}|˗ cleʛd.|Clear Ǖ: {Ɲ}|ʖ/Ɖ Ⱥ is off; base Ɣ ʛ ɼ|Not Ϻ ɞ (ɞ at {Ɛ}); base Ɣ ʛ Ȉly ɼ|ʖ hour now; ȳ Ɣ ʚ|Ɔ ȳ-hour Ⱥ is Ό; Ȉ ƴ ʛ Ǵ at ȳ Ɣ|Ȅ now; Ɖ Ɣ ʚ|˙ — ˦ Ɖ (Sat & Sun Ǵ at Ɖ Ɣ ˦ ϱ)|˙ — ˦ Ɖ|˙|ǧ public ͪ — Ɖ ˦ ϱ|Έ ͪ — ˦ Ɖ|Holiϱ|Έ ͪs (͏ ɳs, Љma sepaɸd)|Since Aug 23, 2026 (͏ Ɛ), ƙ Ɖ ˦ ϱ, ș work-shift weekends.|ʖ|Ȅ|ʖ Dž strip style|͒ (one-line)|Classic (segments & chip)|Popup ͻ be˼e ȳ/Ɖ switch|Lead Ɛ (ǩ, 1-30)|Alert type|ȼ ȳ|ȼ Ɖ|Both|ȼ ȳ ʹ|ȼ Ɖ ʹ|͐ switches to {phase} Ⱥ in about {Ɛ}; mind ϻ c˦ ƹs in ȴ ʽ.|ȳ|Ɖ|Got it|ʖ ͻ|Ȅ ͻ|Popup ǐ|ɦ|Screen center|Also send a system ɷ|Ϯ ̋d, ˦ow ɷ Ѕmission in ƞ ȇ ˚ Ͼ so you get ͻed even ͵ ƞ ˩ is minimized or Ђgrounded.|Preview ƞ popup|Ȗ ȳ|Ȗ Ɖ| (preview)|ʖ/Ɖ Ⱥ & ̐|Notice Γ: ̋ ȳ/Ɖ Ⱥ DŽ ƞ “prominent ̐” toggle.|General|Money & ƺ|Ǩ Ɯ|Simplify ƞ Ȏ|Condense Ѓs but keep Ɓs, Ƒs DŽ hover ƶ. Height is capped at 38% of ƞ viewΛ ʾ scrolling. Turn off ɇ.|Dismiss guide|Ȭ / {Dž} Ș|Ǩ progress style|StDŽard|͒ (2 columns)|Re̜ Ͳ ǎs ({˜})|ʯ ϯs ƞ ̑ DŽ hides ƞ row until ɺd. ͹ ɹ ʛ kept; Ёmatic Ƶ ʢ ͣ.|Corner chips|Box ƶ|Unmount|UnƵd|ɩ|You edited ȴ Ƶ manu˦y; ˧ Ϲ Η over̟ it.|Resume ˧|Per-ǎ statistics (ƕ & ƹ)|Ǩ ǎ ƹs|{n} ǎs|Oƞr|ʱ ǎ ƹ Ѓ|ExpDŽ by ȉ|Remember expansion|ʱ ƕ|ʱ ƹ shʛs|Ј ǎ in Ύ ϲ|͕ Dž|Collapsed summary|Card ǐ|Model rows (1–10)|Ʃ (10–60 seconds)|Period ɉ DŽ ǎ ˜|Ј ǎ DŽ ƹ|Ј|After Ɠs|Bottom|Ȭ|Last 90 ϱs|ɨ ˟|ƛ ǂ|Ǭ hit ɸ|unreΛed?|Zero Ʀ hits on long ƴ may mean a relay Ͳ Ʀ Α. ϼ-miss ƹ Ȋ; check ʾ ƞ Ώ ȓ.|Value · ƕ Ѕ ͸|Ⱦ|Ǭ|ȕ|No ǂ ʶ ˼ ȴ Dž.|blended {Ƶ}/M|Hit ɸ = Ʀ ˠ ÷ (ˠ + unƦd ơ). “UnreΛed?” means Ʀ ʶ may be ͭ, so ƹ Ȋ. Unit Ƶ = ƹ ÷ ƕ × 1M; ΂ = ƕ ÷ ƹ.|Unattributed (early ʶ · Ǵ as ̖)|ɯ Ə {Ɓ} (ȓ) · ƍ ͽ. {Ƕ} · Hit {ɵ} · Ⱦ {ơ} · Ǭ {Ʀ} · ȕ {Ɵ}|ɯ Ə {Ɓ} (ȓ) · ƍ ͽ. {Ƕ}|ɨ {Ɓ} (+ƍ)|ƍ ȏ Ƒ ǂ (ͽ.) {Ɓ}|ƈ ǂ stats (Ѕ-1% & ʠ ɟ)|No ǯ ƍ Ƒ ʶ Ϻ. ǰ DŽ ǁ a ̓ under ʗs.|Window|͡ %|ɯ Dž ̇ (ȋ)|Per 1% Ƒ ≈|Full ʽ (100%) ≈|Ξ {Ɛ}|̘ delta|Ȉ ǂ ratio|Η Ʉ|{ɶ} (as of {Ɛ})|Њ ̕ing ˪|ƍ ǂ curves (ʵ ʸ ̘ Ǎs)|Daily|ʴ|ȹ|Not Ʉ: ǁ successͨy twice ʾ a Ƒ ʻ ΍.|{ɳ}: ʠ est. ≈ {ͨ} (Ѕ 1% ≈ {Ѕ1}) · ̇ {ƕ} / {ƹ} · {Ǎs} ̘ Ǎ(s)|͎ ʛ catalog-Ƶ ͽalents. ƍs ˽ Ƒ; Șs ˜ ȓ Ȳ. Estimates cover dsh ƴ, while server ʻs cover ƞ Ǔ. Short ̘s ʛ less precise. 5h rolls; week/Ǯ ˽ Ȯ ɳs.|͐ class|ƍ ȏ|Ͽ|ȓ ǂ|ʱ Ώly in ɨ ȍ|͔s Ώ Ɯ in ƞ Ƶ ɢ; mounting DŽ billing Ɇ. Hidden Ѓs ̛ rϴable in ƞ ɢ.|ExpDŽ Ɂ to edit Ɣ; ɺ unmounted ͤ ǎs ͼ.|Sepaɸ ʺs|Try 2 × 0.8|Changing ƞ ʺ ͣ to ˦ ǡ ˼ ȴ ǎ|Change ȴ ɸ Ȳ; uncheck ɇ ƞ shʛd ʺ|Enter a non-negative ɸ or multiplication, e.g. 2 × 0.8|ʩ ʹ ǎ ̏s|Ͽ (strip suffix / prefix / family similarity)|Exact ΀ Ȳ|Manual ɠ take ̒. ʩ ͢ Ȳ ƞ same ̏ or ɳ, version DŽ context suffixes. ˘ Ɔ ǎs ˽ ƞ ȉ Ƶ; oƞr ˫ ̛ unƵd.|Un΀ed DŽ manu˦y ǵ ǎs|Set ϴ ͥ DŽ ǎ sepaɸly: ̙ ȯ, ˽ a Ƀ Ƶ, or mark as Ȯ. ɩ Ɣ ʚ Ȳ to Ϸ ͥ.|Ɔ ȉ Ƶ|ʯ|Ͷ ǎ (zero ƹ)|Matched ǎs|Currently ΀ed ǭ. Select ȯ, Ƀ Ƶ or zero ƹ. Ѐd ˛ move to ƞ Ζ list ͺ; ƕ still ˜.|Keep Ё ΀|No Ζ ΀ ɠ.|͝ (Ǵ)|Ⱦ|Ǭ ̕|Ǭ ̟|Leave blank to ˽ ƞ Ʀ-̕ Ƶ|ȕ|Ɔ Ƶ ɢ (mounted)|ˤ / ̄|ʮ|ʘ|CommDŽCode|ʫ|SCNet ƈ|ɱ Ark ǯ ƍ|͟ ƈ (ɡ.Љ)|Xiaomi MiMo ƈ|Baidu Qianfan ƈ|͡ / ɉ|ȗ|Reads ȗ ǔ ǭ.|͗ (Droid)|DZ|DZ Ȑ|No desktop app needed. ʲ ʤ.ai/cloud/˨. ϫ ́ → ͞, reload, ̙ coding-ͯ-ǂ or w˦et/Ɠ DŽ ϰ ƞ ͨ ˡ Ȼ ͼ. Leave Ȑ blank ˼ ƞ Ȉ web Ȝ, or ϰ ƞ ID after /Ȝs/ in ƞ ˡ URL. ͔ ͛s still work ʾ an explicit Ȑ; inference ȓ Ϳs do Η. Replace ͧ cookies.|ʗ pool|StDŽard + Core|Organization ID (Ǐ)|ƍ ǔ|Compensation|ƥ|ʗ Ǣ|Ͷ ̌|ȿ Ϩ|Bailian Ϩ|Inst˦ @ɡ/ʦ on ƞ ˖ ʡ DŽ run ͱ dz as ƞ ɻ.|Inst˦ ʝ on ƞ ˖ ʡ. Login opens Ϸ ʡ’s ȇ; ˼ a remote or headless ʡ, run bl dz --ɲ as ƞ ɻ.|ȹ ǔ Ƒ (Ѕsonal Lite 50K / StDŽard 500K; see ϻ ͯ ˩)|ƍ ΁ ɳ (Ǐ, Dz; ȭ = ̈ Ǯ)|ƿ ɸ ɠ (Ǐ; ǔ deducted Ѕ 1M ƕ; ȭ = ɂ)|Model ̏, e.g. qwen3.8-ʣ|ɸ|Ⱦ|Ǭd ơ|ȕ|Enter ˦ three positive ǡ to І ǭ; ϯ ˦ ɇ ƞ ɂ.|Ϧ|Ͷ ƿ ̌; ɲ is authoritative. Counts ƍ ƴ assigned to ͟. Excludes pay-as-you-go ȓ. Ϧ ǡ ˼ oƞr ǎs.|ȹ ǔ Ƒ ˼ Ȯ ɟ (Basic 60,000 / StDŽard 240,000 / Ͻ 600,000)|ƍ ΁ ɳ (Ǐ, Dz; ȭ = ̈ Ǯ)|Uses ɲ ̚s newer than 24h, ƞn ɟ ʸ Ȯ ɹ DŽ Ǝ ƿ ǡ. Oƞr tools DŽ unlisted ǎs ʛ excluded.|ʳ Ȕ ID|ʳ SecretȔ|AK...|SK...|{h}h|{h}h {m}m|{m}m|Ȅ in {Ɛ}|ʖ in {Ɛ}|ʖ ˞ (UTC): {ʽs}; ɞ: {Ɛ}. {ʼ}|No ȳ ʽs ǵ. {ʼ}|ʹ|Ȭ|ɯ Ǯ|ϼ Ɛ|Since ƞ Ț was created · C˦s {ƴ}|̂ ǂ|˖ + external ɉ|̂ ̚ has Η been upɳd ˼ 24 ˞|Ή daily ɹ|͎ ˽ ƞ latest ̚ DŽ may lag ƞ Ǝ bill by ǩ. ƛs ͫ ơ, Ɵ, Ʀ DŽ ˬ; ˬ is Ǵ ʾ Ɵ. Reconcile by Ɓ.|Ȭ/Ǯ ˽ ʡ Ɛzone {ʡ}; ȴ ȇ ˽s {ȇ}. Different ϱ boundaries affect reconciliation. Set dsh to ϻ Ȯ Ɛzone to align.|Ȭ's Əs|˿ a ɳ row to expDŽ its Ə ƶ|͜ Ə ƶ…|No Ə ƶ ˼ ȴ ϱ (early ʶ or Ə Ε cleaned)|Ƚ Ə ƶ|By Ə (˦ ǖ)|Days Љbined; ˮ ̍ ȍ. Selected rows Їn; cumulative ƹs ͫ every conversation.|No Ə ʶ Ϻ|͜ Ə ˟…|Ƚ Ə ˟|Rows|͚ ͯ ɉs|Ϯ on, every Ɓ Їs ɉ ͽalent ƹ ș ͯ ȏs; off (ȉ) ˜s real-money ȓ ͥs Ȳ|ϩ header ƹ ƶ|ϩ ʞ ƹ ƶ|ϩ turn ƹ summaries|Sort|ɨ high→Њ|ɨ Њ→high|Time new→Є|Time Є→new|Ή order|˗|ƛ ǂ stats|ϼ-Ɛ {ƕ} ƕ · ơ {ơ} · Ʀ {Ʀ} · Ɵ {Ɵ} · {ƴ} ƴ|{ɳ}: {ƕ} ƕ (ơ {ơ} · Ʀ {Ʀ} · Ɵ {Ɵ}) · {ƴ} ƴ · {ƹ}|No ǖ Ϻ — daily ǂ Ϲ accumulate Β|͹|ɪ ȍ|Overview|ʗs|͹|Pricing|ɪ|˗ ʶ|ɮ ƹ Ɯ ǐ|BeЊ ƞ ʞ|ɮ title Ͼ|Off|Ǡ Ș ɼ %|Ǡ ƞ Go Ƒ|Ǡ coding ͯ Ƒs|Page ͬ Ɛd out. Please retry.|ƥ Γ|˿ ƞ ̏ to hide/Ї; ̉ ƞ Ɓ to ǁ|˿ to ǁ now|˿ a Ȏ Ɠ or ͯ ϧ to ǁ. It pulses while ͬ; on failure it keeps ƞ Є ΂ DŽ Їs ƞ Μ on hover.|Got it|Ȭ ƹ Ɯ|Ǩ footer|̀|ǧ Yuan (΃)|US Dollar (͸)|Euro (EUR)|̀ symbol|Ex΍ ɸ (1 ͸ = ? target ƺ)|Decimal places|ƥ Ɯ ǐ|Main Ȏ|Ȇ ˩|Both|ƥ ǁ Ǎ (ǩ)|Use Ɔ ȳ-hour Ɣ|Ͻminent ̐ during ȳ ˞ (Ȏ Ș ϧ, ̞'s ƹ; previewed in ƞ Ȇ ȳ panel)|ɮ ƹ ˽s c˦-Ɛ Ɣ, ș ȳ DŽ Ʌ ǡ. Ⱦ, Ɵ, Ʀ ˠ DŽ ̟s ʛ sepaɸ; ǵ Ʀ-̟ DŽ long-context ǡ ʚ.|͝ Ƶ ɢs|ȿ Ƶ ƺ|͸ (ɫ Ǝ ˩)|΃ (ǧ Ǝ ˩)|Selects ƞ Ǝ Ⱥ-˩ language. Ϭed Ɣ ʚ to subsequent ƴ.|Ͻ DŽ ʕ ˽ sepaɸ Ǝ ǡ; legacy ʕ ̏s ˽ ʕ ǡ. Weekϱ ȳs ʛ 01–04 DŽ 06–10 UTC; ƙ Ɖ. Rate ˛ ʚ to later ƴ. Recorded Ɓs Ν until you confirm Ʌ recalculation. Ǭ ̟s ˽ hit ǡ.|Current ǡ ʛ Їn Β. Editing cancels any future scheduled ΍ ˼ ȴ entry; ͦ Ʌ ǡ ʛ retained.|ȉ (f˦Ђ ˼ un΀ed ǎs)|New ǎ ID (e.g. ȱ)|Ϧ ǎ|Data & Π|΋…|Ͽ-І Ǖ: {Ɲ}|Ͽ-϶ {Ɛ}|Ȇ ʛ Ё-϶|Over̟ ƞ Ƶ ɢ ʾ Ɣ ʸ ƞ Ǝ ϳ?|Apply|Cancel|Ϭ Ɣ ʸ Ǝ ϳ|ȿ Π upɳs Ɔ Ɣ (ș ȳ ǡ). Third-party Ɣ (z-ai/Kimi/͟/ɱ) ̍ releases; expDŽ Ɂ in ƞ Ƶ ɢ or ˽ ǎ ʢ.|ˣ ǖ?|ImΛ ʥ ǖ|͓ Δ? Replays ˦ Ə Ε DŽ Ȳ fills ɳs/Əs ͭ ʸ ƞ Ț; existing ɹ ʛ untouched.|Failed to Δ ʥ ǖ: {Ɲ}|Pre-inst˦ ǖ Δs at ; launch; rerun after ϰing Є Ε. ɨs ˽ Ȉ Ɣ. Deleted Ε canΗ replay; Əs spanning inst˦ation exclude ͦ ǂ.|͓ ϯ|ˣ ǖ|Last Π: {Ɛ}|Never (ͤ Ɣ)|; ̆: {Ǣ}|ȿ ϳ|Bundled|Language|FolЊ ˖ (Ё)|Simplified ǧ|ɫ|ɨ|{ɶ} c˦ Ǖ|Ϭ c˦ Ǖ|ƥ ǁ c˦ Ǖ`]].map(([e,t])=>{const o=t.replace(/[ƀ-߿]/g,a=>zn[a.charCodeAt(0)-384]).split("|");return[e,Object.fromEntries(Gn.map((a,s)=>[a,o[s]]).filter(([,a])=>a!=="\0"))]}));function Oa(){return(typeof navigator<"u"&&typeof navigator.language=="string"?navigator.language:"").toLowerCase().startsWith("zh")?"zh":"en"}function Ve(e){const t=typeof e=="string"?e.toLowerCase().split(/[-_]/)[0]:"";return t==="zh"||t==="en"?t:null}function j(e){const t=typeof e=="string"?e:e?.locale;return t==="zh"||t==="en"?t:Ve(e?.activeLocale)||Oa()}function z(e){const t=e==="zh"?Le.zh:Le.en;return(o,a)=>{let s=t[o]??Le.en[o]??o;if(a)for(const l of Object.keys(a))s=s.split("{"+l+"}").join(String(a[l]));return s}}const Ye={day:"periodDay",month:"periodMonth",all:"periodAll",custom:"periodCustomRange"};function ee(e,t){throw new Error("dsh-cost-meter: 服务端数据非法 ("+e+": "+t+")")}function ue(e,t){return(e===null||typeof e!="object"||Array.isArray(e))&&ee(t,"object"),e}function Y(e,t){return(typeof e!="number"||!Number.isFinite(e))&&ee(t,"number"),e}function ae(e,t){return typeof e!="string"&&ee(t,"string"),e}const Ee=(e,t,o)=>typeof e=="string"&&t.includes(e)?e:o;function Ba(e,t=!1){return e===null||typeof e!="object"||Array.isArray(e)?{}:Object.fromEntries(Object.entries(e).filter(([o,a])=>t?o.length>0&&["plan","api"].includes(a):["auto","plan","api"].includes(a)))}function Se(e,t){return typeof e!="boolean"&&ee(t,"boolean"),e}const Ue=(e,t,o)=>Object.fromEntries(t.map(a=>[a,o(e[a])]));function Da(e,t){const o={};if(e!==null&&typeof e=="object"&&!Array.isArray(e))for(const a of Object.keys(e)){const s=e[a];if(s===null||typeof s!="object"||Array.isArray(s))continue;const l=r=>typeof r=="number"&&Number.isFinite(r)&&r>=0?r:0;o[a]={...Ht(s),...Ue(s,["input","output","cacheRead","cacheWrite","reasoning","cost"],l),apiCost:s.apiCost===void 0?l(s.cost):l(s.apiCost)}}return o}const bt=["costCny","apiCostCny","costEur","apiCostEur"],Ht=e=>Object.fromEntries(bt.filter(t=>Number.isFinite(e?.[t])).map(t=>[t,e[t]]));function La(e,t){ue(e,t);const o={...Ht(e),reasoning:e.reasoning===void 0?0:Y(e.reasoning,t+".reasoning"),apiCost:e.apiCost===void 0?void 0:Y(e.apiCost,t+".apiCost"),byModel:Da(e.byModel,t+".byModel"),byProviderModel:Da(e.byProviderModel,t+".byProviderModel")};for(const a of["input","output","cacheRead","cacheWrite","calls","cost"])o[a]=Y(e[a],t+"."+a);return o}function Vn(e){return e==null?void 0:{source:ae(e.source,"source"),requestId:ae(e.requestId,"requestId"),attempt:Y(e.attempt,"attempt"),complete:Se(e.complete,"complete"),status:ae(e.status,"status"),upstream:ae(e.upstream,"upstream")}}function Ea(e){return(Array.isArray(e)?e:ee("rows","array")).map(t=>({provider:ae(t.provider,"provider"),model:ae(t.model,"model"),bucket:ae(t.bucket,"bucket"),tokens:Y(t.tokens,"tokens"),...t.requests===void 0?{}:{requests:Y(t.requests,"requests")},rate:Y(t.rate,"rate"),cost:Y(t.cost,"cost"),priced:Se(t.priced,"priced"),plan:Se(t.plan,"plan")}))}function Qt(e,t){return{...La(e,t),id:ae(e.id,t+".id"),provider:typeof e.provider=="string"?e.provider:"",model:typeof e.model=="string"?e.model:""}}function Ce(e,t){const o={...La(e,t),date:ae(e.date,t+".date"),sessions:[]};return e.sessions!==void 0&&(Array.isArray(e.sessions)||ee(t+".sessions","array"),o.sessions=e.sessions.map((a,s)=>Qt(a,t+".sessions["+s+"]"))),o}function Ut(e,t,o=["cacheWrite","reasoning"]){const a={};for(const s of["cacheHit","cacheMiss","output"])a[s]=Y(e[s],t+"."+s);for(const s of o)e[s]!==void 0&&(a[s]=Y(e[s],t+"."+s));return a}function qt(e,t){ue(e,t);const o={...Ut(e,t),...gt(e)};for(const a of["offPeak","peak","legacyBase","longContext"])e[a]!==void 0&&(o[a]=Ut(e[a],t+"."+a,["cacheWrite","reasoning","aboveInputTokens"]));e.cny!==void 0&&(o.cny=Ut(e.cny,t+".cny")),e.legacy!==void 0&&(o.legacy=Se(e.legacy,t+".legacy")),e.rateHistory!==void 0&&((!Array.isArray(e.rateHistory)||e.rateHistory.length>16)&&ee(t+".rateHistory","price history"),o.rateHistory=e.rateHistory.map((a,s)=>((!a||typeof a.before!="string"||!Number.isFinite(Date.parse(a.before)))&&ee(t+".rateHistory","dated price"),{...qt({...a,rateHistory:void 0},t+".rateHistory."+s),before:a.before})));for(const a of["billingMode","sourceUrl","checkedAt","notes"])typeof e[a]=="string"&&(o[a]=e[a]);return o}function Yn(e,t){const o=s=>s==null?void 0:{...["aliyun","tokenrhythm"].includes(s.adapter)?{adapter:s.adapter}:{},enabled:s.enabled===!0,label:typeof s.label=="string"?s.label:"",labelEn:typeof s.labelEn=="string"?s.labelEn:"",dashboardUrl:typeof s.dashboardUrl=="string"?s.dashboardUrl:"",display:Ee(s.display,["sidebar","settings","off"],"both"),unit:s.adapter==="tokenrhythm"?"CNY":["CNY","EUR","CREDITS"].includes(s.unit)?s.unit:"USD",convertToDisplayCurrency:s.convertToDisplayCurrency===!0,allowInsecureHttp:s.allowInsecureHttp===!0,refreshMinutes:typeof s.refreshMinutes=="number"&&Number.isFinite(s.refreshMinutes)?s.refreshMinutes:15,request:s.request&&typeof s.request=="object"?s.request:{url:""},extract:s.extract&&typeof s.extract=="object"?s.extract:{},allowedHosts:Array.isArray(s?.allowedHosts)?s.allowedHosts.filter(l=>typeof l=="string"):[]};ue(e,t);const a={};if(e.prices!==null&&typeof e.prices=="object"&&e.prices.models!==null&&typeof e.prices.models=="object")for(const s of Object.keys(e.prices.models))a[s]=qt(e.prices.models[s],t+".prices.models."+s);return{queryAccounts:e.queryAccounts&&typeof e.queryAccounts=="object"?e.queryAccounts:{},locale:e.locale==="zh"||e.locale==="en"||e.locale==="auto"?e.locale:"auto",position:e.position==="header"||e.position==="off"?e.position:"dock",sidebar:e.sidebar!==!1,showSessionId:e.showSessionId===!0,hideOfficialBalance:e.hideOfficialBalance===!0,hideTodayCost:e.hideTodayCost===!0,sessionListCostPeriod:e.sessionListCostPeriod==="today"?"today":"total",modelStatistics:e.modelStatistics??{},...Ue(e,["hideSessionCostHeader","hideSessionCostDock","hideTurnCost","followSkinTransparency","sidebarTodayBalanceInline","sessionListCosts","hideBudget","sessionCostCompact","contextCostsEnabled","contextCostsPromptSeen","showTotalWithPlan","sidebarSimple","codexQuotaEnabled","codexCompatPromptDismissed","includeSubagentCost","peakEnabled","peakAlertWebNotify"],s=>s===!0),sidebarTodayMetric:["tokens","both"].includes(e.sidebarTodayMetric)?e.sidebarTodayMetric:"cost",sidebarTextOnly:e.sidebarTextOnly===!0,...Object.hasOwn(e,"sidebarOrder")?{sidebarOrder:Array.isArray(e.sidebarOrder)?e.sidebarOrder:[]}:{},statisticsBasis:e.statisticsBasis,sidebarModels:Object.fromEntries(Object.entries(An).map(([s,l])=>[s,e.sidebarModels?.[s]??l])),codexQuotaSidebar:e.codexQuotaSidebar!==!1,codexQuotaStrip:e.codexQuotaStrip!==!1,codexQuotaSource:["connect","subscription","chatgpt","pi-ai","chatgpt-sub"].includes(e.codexQuotaSource)?e.codexQuotaSource:"auto",codexCompatHistoryAppliedAt:fe(e.codexCompatHistoryAppliedAt),sidebarStyle:Ee(e.sidebarStyle,["standard","compact","summary"],"standard"),...Ue(e,["sidebarSimplePromptSeen","sidebarSummaryPromptSeen","peakProgressPromptSeen"].filter(s=>Object.hasOwn(e,s)),s=>s===!0),billionContextNoticeEnabled:e.billionContextNoticeEnabled!==!1,billionContextNoticesSeen:Array.isArray(e.billionContextNoticesSeen)?e.billionContextNoticesSeen.filter(s=>typeof s=="string").slice(-32):[],priceMatchDismissed:Array.isArray(e.priceMatchDismissed)?e.priceMatchDismissed.filter(s=>typeof s=="string"):[],pricingCurrency:e.pricingCurrency==="CNY"?"CNY":"USD",currency:typeof e.currency=="string"?e.currency:"CNY",symbol:typeof e.symbol=="string"?e.symbol:"¥",decimals:Y(e.decimals,t+".decimals"),exchangeRate:Y(e.exchangeRate,t+".exchangeRate"),exchangeRateAuto:e.exchangeRateAuto!==!1,fxRates:e.fxRates,exchangeRateDate:e.exchangeRateDate??"",exchangeRateCheckedAt:e.exchangeRateCheckedAt??0,peakEffectiveAt:typeof e.peakEffectiveAt=="string"?e.peakEffectiveAt:"",peakWindows:Array.isArray(e.peakWindows)?e.peakWindows.map((s,l)=>({start:Y(s.start,t+".peakWindows["+l+"].start"),end:Y(s.end,t+".peakWindows["+l+"].end")})):[],peakHolidays:Array.isArray(e.peakHolidays)?e.peakHolidays.filter(s=>typeof s=="string"):[],peakNotice:e.peakNotice!==!1,peakAlertEnabled:e.peakAlertEnabled!==!1,peakAlertAhead:Number.isFinite(e.peakAlertAhead)&&e.peakAlertAhead>=1&&e.peakAlertAhead<=30?e.peakAlertAhead:2,peakAlertTarget:e.peakAlertTarget==="peak"||e.peakAlertTarget==="offpeak"?e.peakAlertTarget:"both",peakAlertPosition:e.peakAlertPosition==="center"?"center":"corner",peakStyle:["classic","progress"].includes(e.peakStyle)?e.peakStyle:"compact",peakTimeDisplay:["countdown","switch"].includes(e.peakTimeDisplay)?e.peakTimeDisplay:"both",priceMatch:e.priceMatch==="exact"?"exact":"auto",priceOverrides:(()=>{const s={};if(e.priceOverrides!==null&&typeof e.priceOverrides=="object"&&!Array.isArray(e.priceOverrides))for(const[l,r]of Object.entries(e.priceOverrides))typeof l=="string"&&typeof r=="string"&&(s[l]=r);return s})(),priceTableDisplay:(()=>{const s={};if(e.priceTableDisplay!==null&&typeof e.priceTableDisplay=="object"&&!Array.isArray(e.priceTableDisplay))for(const[l,r]of Object.entries(e.priceTableDisplay))typeof l=="string"&&(s[l]=r===!0);return s})(),codingPlans:(()=>{const s={};if(e.codingPlans!==null&&typeof e.codingPlans=="object"&&!Array.isArray(e.codingPlans))for(const l of Object.keys(e.codingPlans)){const r=e.codingPlans[l];r===null||typeof r!="object"||Array.isArray(r)||(s[l]={enabled:r.enabled===!0,display:r.display==="sidebar"||r.display==="both"||r.display==="off"?r.display:"settings",...typeof r.showInComposer=="boolean"?{showInComposer:r.showInComposer}:{},refreshMinutes:typeof r.refreshMinutes=="number"&&Number.isFinite(r.refreshMinutes)?r.refreshMinutes:15,apiKey:typeof r.apiKey=="string"?r.apiKey:"",...l==="minimax"?{baseUrl:typeof r.baseUrl=="string"?r.baseUrl:""}:{},...l==="factory"?{orgId:typeof r.orgId=="string"?r.orgId:"",factoryPool:["core","both"].includes(r.factoryPool)?r.factoryPool:"standard"}:{},...l==="workbuddy"?{accountScope:r.accountScope??"current",accountIds:Array.isArray(r.accountIds)?r.accountIds:[],...typeof r.accountSource=="string"?{accountSource:r.accountSource}:{}}:{},...l==="opendesign"?{workspaceId:typeof r.workspaceId=="string"?r.workspaceId:""}:{},...l==="qwen"?{quotaSource:["cli","bailian"].includes(r.quotaSource)?r.quotaSource:"local"}:{},...typeof r.planCredits=="number"&&Number.isFinite(r.planCredits)&&r.planCredits>0?{planCredits:r.planCredits}:{},...typeof r.planStart=="string"?{planStart:r.planStart}:{},...r.rates!==null&&typeof r.rates=="object"&&!Array.isArray(r.rates)?{rates:r.rates}:{},...typeof r.accessKeyId=="string"?{accessKeyId:r.accessKeyId}:{},...typeof r.secretAccessKey=="string"?{secretAccessKey:r.secretAccessKey}:{}})}return s})(),prices:{models:a,...e.prices?.custom?{custom:e.prices.custom}:{},default:qt(e.prices?.default??{cacheHit:0,cacheMiss:0,output:0},t+".prices.default"),providers:e.prices?.providers&&typeof e.prices.providers=="object"?e.prices.providers:{},currency:typeof e.prices?.currency=="string"&&e.prices.currency.length>0?e.prices.currency:void 0},historyDays:Y(e.historyDays,t+".historyDays"),billingStorageRetentionDays:[0,7,30].includes(e.billingStorageRetentionDays)?e.billingStorageRetentionDays:7,fetchedAt:e.fetchedAt===null||e.fetchedAt===void 0?null:ae(e.fetchedAt,t+".fetchedAt"),priceSource:typeof e.priceSource=="string"?e.priceSource:"bundled",budget:{enabled:e.budget?.enabled===!0,amount:typeof e.budget?.amount=="number"&&Number.isFinite(e.budget.amount)?e.budget.amount:100,period:e.budget?.period==="day"||e.budget?.period==="all"||e.budget?.period==="custom"?e.budget.period:"month",customStart:typeof e.budget?.customStart=="string"?e.budget.customStart:null,customEnd:typeof e.budget?.customEnd=="string"?e.budget.customEnd:null,detail:e.budget?.detail!==!1},balance:{display:Ee(e.balance?.display,["sidebar","settings","off"],"both"),refreshMinutes:typeof e.balance?.refreshMinutes=="number"&&Number.isFinite(e.balance.refreshMinutes)?e.balance.refreshMinutes:5,showProgressBar:e.balance?.showProgressBar===!0,showSource:e.balance?.showSource===!0,officialChannelOnly:e.balance?.officialChannelOnly===!0,quickHide:e.balance?.quickHide===!0,budgetCap:typeof e.balance?.budgetCap=="number"&&Number.isFinite(e.balance.budgetCap)&&e.balance.budgetCap>0?e.balance.budgetCap:null,...Object.hasOwn(e.balance??{},"clickHintSeen")?{clickHintSeen:e.balance?.clickHintSeen===!0}:{}},goQuota:{enabled:e.goQuota?.enabled!==!1,...typeof e.goQuota?.showInComposer=="boolean"?{showInComposer:e.goQuota.showInComposer}:{},display:Ee(e.goQuota?.display,["sidebar","settings","off"],"both"),refreshMinutes:typeof e.goQuota?.refreshMinutes=="number"&&Number.isFinite(e.goQuota.refreshMinutes)?e.goQuota.refreshMinutes:15,apiKey:typeof e.goQuota?.apiKey=="string"?e.goQuota.apiKey:"",main:e.goQuota?.main==="weekly"||e.goQuota?.main==="monthly"?e.goQuota.main:"rolling",detail:e.goQuota?.detail!==!1},customBalance:o(e.customBalance),gatewayQuotas:(()=>{const s=Array.isArray(e.gatewayQuotas)?e.gatewayQuotas:e.gatewayQuotas?.sources;return{sources:Array.isArray(s)?s.slice(0,4).filter(r=>r!==null&&typeof r=="object"&&!Array.isArray(r)).map(r=>({id:typeof r.id=="string"?r.id.slice(0,48):"",type:"cliproxyapi",label:typeof r.label=="string"?r.label.slice(0,80):"",baseURL:typeof r.baseURL=="string"?r.baseURL:"",enabled:r.enabled!==!1,display:Ee(r.display,["sidebar","settings","off"],"both"),refreshMinutes:typeof r.refreshMinutes=="number"&&Number.isFinite(r.refreshMinutes)?Math.min(1440,Math.max(1,Math.floor(r.refreshMinutes))):15,includeProviders:Array.isArray(r.includeProviders)?[...new Set(r.includeProviders.filter(i=>typeof i=="string").map(i=>i.toLowerCase()).filter(i=>Wt.includes(i)))]:Wt,allowedHosts:Array.isArray(r.allowedHosts)?r.allowedHosts.filter(i=>typeof i=="string").slice(0,16):[],allowInsecureHttp:r.allowInsecureHttp===!0,antigravityOnlyGemini:r.antigravityOnlyGemini===!0,keyVar:typeof r.keyVar=="string"?r.keyVar:""})):[]}})(),customBalances:(()=>{if(Array.isArray(e.customBalances))return e.customBalances.filter(l=>l!==null&&typeof l=="object").slice(0,8).map(o).filter(Boolean);const s=o(e.customBalance);return s?[s]:[]})(),corner:{enabled:e.corner?.enabled===!0,goRolling:e.corner?.goRolling!==!1,goWeekly:e.corner?.goWeekly!==!1,goMonthly:e.corner?.goMonthly!==!1,budget:e.corner?.budget!==!1},quotaStrip:{enabled:e.quotaStrip?.enabled===!0,budget:e.quotaStrip?.budget!==!1,go:e.quotaStrip?.go!==!1,plans:e.quotaStrip?.plans!==!1,...Object.hasOwn(e.quotaStrip??{},"promptSeen")?{promptSeen:e.quotaStrip?.promptSeen===!0}:{}},usage:{position:e.usage?.position==="general"||e.usage?.position==="section"?e.usage.position:"cost"},barDirections:(()=>{const s=e.barDirections!==null&&typeof e.barDirections=="object"&&!Array.isArray(e.barDirections)?e.barDirections:{},l=(r,i)=>s[r]==="remaining"||s[r]==="used"?s[r]:i;return{balance:l("balance","remaining"),budget:l("budget","used"),go:l("go","used"),plan:l("plan","used")}})(),planBilling:{...Array.isArray(e.planBilling?.autoProviders)?{autoProviders:e.planBilling.autoProviders.filter(s=>_e.includes(s))}:{},providers:Ba(e.planBilling?.providers),models:Ba(e.planBilling?.models,!0),modelPlans:Object.fromEntries(Object.entries(e.planBilling?.modelPlans??{}).filter(([s,l])=>s.includes(":")&&_e.includes(l)))}}}const $e=e=>typeof e=="number"&&Number.isFinite(e)?e:null,fe=e=>$e(e)??0,$n={status:"off",message:"",fetchedAt:0,currency:"",totalBalance:0,grantedBalance:0,toppedUpBalance:0},Jn={status:"off",message:"",fetchedAt:0,rolling:null,weekly:null,monthly:null},Ia=(e=null)=>({status:"off",message:"",fetchedAt:0,label:"",unit:"USD",remaining:0,maxBudget:null,spend:null,index:e});function Ft(e,t){return ue(e,t),{status:e.status==="ok"||e.status==="error"?e.status:"off",message:typeof e.message=="string"?e.message:"",fetchedAt:typeof e.fetchedAt=="number"?e.fetchedAt:0}}function Zn(e,t){return{...Ft(e,t),keyConfigured:e.keyConfigured===!0,keySource:typeof e.keySource=="string"?e.keySource:"",currency:typeof e.currency=="string"?e.currency:"",totalBalance:fe(e.totalBalance),grantedBalance:fe(e.grantedBalance),toppedUpBalance:fe(e.toppedUpBalance)}}function _t(e,t){return e==null?null:((typeof e!="object"||Array.isArray(e))&&ee(t,"object"),{percent:fe(e.percent),resetsAt:typeof e.resetsAt=="string"?e.resetsAt:""})}function Xn(e,t){return{...Ft(e,t),rolling:_t(e.rolling,t+".rolling"),weekly:_t(e.weekly,t+".weekly"),monthly:_t(e.monthly,t+".monthly")}}function ja(e,t){return{...Ft(e,t),label:typeof e.label=="string"?e.label:"",unit:typeof e.unit=="string"?e.unit:"USD",remaining:fe(e.remaining),maxBudget:$e(e.maxBudget),spend:$e(e.spend),index:typeof e.index=="number"&&Number.isFinite(e.index)&&e.index>=0?Math.floor(e.index):null}}const eo=new Set(["ok","partial","unknown","error","stale","unsupported","capability_missing"]),to=new Set(["off","loading","ok","partial","stale","error"]),Wt=["antigravity","claude","codex","kimi","xai","workbuddy"],Ha={antigravity:"Antigravity",claude:"Claude",codex:"Codex",kimi:"Kimi",xai:"xAI",workbuddy:"WorkBuddy"};function ao(e,t){ue(e,t);const o=(r,i="")=>typeof r=="string"?r:i,a=r=>$e(r),s=r=>r!==null&&typeof r=="object"&&!Array.isArray(r)?{id:o(r.id),label:o(r.label),...a(r.percent)===null?{}:{percent:a(r.percent)},resetsAt:o(r.resetsAt),periodHours:a(r.periodHours),scope:o(r.scope)}:null,l=r=>r!==null&&typeof r=="object"&&!Array.isArray(r)?{unit:o(r.unit,"credits"),used:a(r.used),remaining:a(r.remaining),limit:a(r.limit),fetchedAt:o(r.fetchedAt),packages:Array.isArray(r.packages)?r.packages.filter(i=>i!==null&&typeof i=="object"&&!Array.isArray(i)).map(i=>({id:o(i.id),label:o(i.label),used:a(i.used),remaining:a(i.remaining),limit:a(i.limit),startsAt:o(i.startsAt),resetsAt:o(i.resetsAt)})):[]}:void 0;return{id:o(e.id),type:"cliproxyapi",label:o(e.label),status:to.has(e.status)?e.status:"error",message:o(e.message),fetchedAt:a(e.fetchedAt)??0,attemptedAt:a(e.attemptedAt)??0,serverVersion:o(e.serverVersion),keyConfigured:e.keyConfigured===!0,keySource:o(e.keySource,"none"),accounts:Array.isArray(e.accounts)?e.accounts.filter(r=>r!==null&&typeof r=="object"&&!Array.isArray(r)).slice(0,16).map(r=>({id:o(r.id),provider:o(r.provider,"unknown"),label:o(r.label,"unknown"),status:eo.has(r.status)?r.status:"unknown",message:o(r.message),plan:o(r.plan),windows:Array.isArray(r.windows)?r.windows.map(s).filter(Boolean):[],credits:l(r.credits)})):[],unsupportedProviders:Array.isArray(e.unsupportedProviders)?e.unsupportedProviders.filter(r=>typeof r=="string").slice(0,32):[]}}function no(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;const t={};if(e.providers!==null&&typeof e.providers=="object"&&!Array.isArray(e.providers))for(const[o,a]of Object.entries(e.providers)){if(a===null||typeof a!="object"||Array.isArray(a))continue;const s={},l={};if(a.windows!==null&&typeof a.windows=="object"&&!Array.isArray(a.windows))for(const[r,i]of Object.entries(a.windows))i===null||typeof i!="object"||Array.isArray(i)||(s[r]={...Ue(i,["percent","localTokens","localCost","sampleCount"],fe),...Ue(i,["sampleAt","per1Tokens","per1Cost","fullTokens","fullCost"],$e),resetsAt:typeof i.resetsAt=="string"?i.resetsAt:"",method:i.method==="sample"||i.method==="live"?i.method:"none",confidence:i.confidence==="high"||i.confidence==="low"?i.confidence:null});if(a.intervals!==null&&typeof a.intervals=="object"&&!Array.isArray(a.intervals))for(const[r,i]of Object.entries(a.intervals))Array.isArray(i)&&(l[r]=i.filter(d=>d!==null&&typeof d=="object"&&!Array.isArray(d)).map(d=>Ue(d,["t0","t1","tokens","cost","pct","per1Tokens","per1Cost"],fe)));t[o]={windows:s,intervals:l}}return{generatedAt:fe(e.generatedAt),providers:t}}function oo(e){if(!e||typeof e!="object"||Array.isArray(e))return;const t=e.usage&&typeof e.usage=="object"?e.usage:{};return{installed:e.installed===!0,enabled:e.enabled===!0,version:typeof e.version=="string"?e.version:"",detection:Ee(e.detection,["package","profile","none"],"none"),planClass:Ee(e.planClass,["auto","plan","api"],"auto"),usage:{calls:fe(t.calls),cost:fe(t.cost),tokens:fe(t.tokens),days:fe(t.days),providers:(Array.isArray(t.providers)?t.providers:[]).filter(o=>typeof o=="string")},historyAppliedAt:fe(e.historyAppliedAt),promptDismissed:e.promptDismissed===!0,promptDue:e.promptDue===!0}}function Qa(e,t){return ue(e,t),{today:Ce(e.today,t+".today"),month:Ce(e.month,t+".month"),total:Ce(e.total,t+".total"),budgetUsed:typeof e.budgetUsed=="number"&&Number.isFinite(e.budgetUsed)?e.budgetUsed:void 0,balance:e.balance==null?$n:Zn(e.balance,t+".balance"),goQuota:e.goQuota==null?Jn:Xn(e.goQuota,t+".goQuota"),customBalance:e.customBalance==null?Ia():ja(e.customBalance,t+".customBalance"),customBalances:Array.isArray(e.customBalances)?e.customBalances.filter(o=>o!==null&&typeof o=="object").map((o,a)=>ja(o,t+".customBalances["+a+"]")):[],gatewayQuotas:Array.isArray(e.gatewayQuotas)?e.gatewayQuotas.filter(o=>o!==null&&typeof o=="object"&&!Array.isArray(o)).map((o,a)=>ao(o,t+".gatewayQuotas["+a+"]")):[],customVarStatus:e.customVarStatus!==null&&typeof e.customVarStatus=="object"&&!Array.isArray(e.customVarStatus)?Object.fromEntries(Object.entries(e.customVarStatus).filter(([,o])=>o!==null&&typeof o=="object").map(([o,a])=>[o,{configured:a.configured===!0,source:typeof a.source=="string"?a.source:""}])):{},codingPlans:e.codingPlans!==null&&typeof e.codingPlans=="object"&&!Array.isArray(e.codingPlans)?e.codingPlans:{},planStats:no(e.planStats),codexCompat:oo(e.codexCompat),ourFreeModel:e.ourFreeModel?.enabled===!0?{enabled:!0,version:typeof e.ourFreeModel.version=="string"?e.ourFreeModel.version:""}:void 0,history:Array.isArray(e.history)?e.history.map((o,a)=>Ce(o,t+".history["+a+"]")):[],billionContext:e.billionContext?.protocol===1?{protocol:1,connected:e.billionContext.connected===!0,failed:e.billionContext.failed===!0,requests:Number(e.billionContext.requests)||0,unreported:Number(e.billionContext.unreported)||0,partial:Number(e.billionContext.partial)||0,uncovered:Number(e.billionContext.uncovered)||0,unresolved:Number(e.billionContext.unresolved)||0,detected:e.billionContext.detected===!0,version:typeof e.billionContext.version=="string"?e.billionContext.version.slice(0,100):"",compatibility:["needs_update","changed","bridge_missing","ready"].includes(e.billionContext.compatibility)?e.billionContext.compatibility:"unknown",noticeId:typeof e.billionContext.noticeId=="string"?e.billionContext.noticeId.slice(0,240):""}:void 0,externalUsage:e.externalUsage&&Array.isArray(e.externalUsage.sources)?{fetchedAt:Number(e.externalUsage.fetchedAt)||0,stale:e.externalUsage.stale===!0,sources:e.externalUsage.sources.map(o=>({source:String(o.source),today:Ce(o.today,t+".external.today"),month:Ce(o.month,t+".external.month"),total:Ce(o.total,t+".external.total"),history:(o.history??[]).map(a=>Ce(a,t+".external.history"))})),combined:Object.fromEntries(["today","month","total","history"].map(o=>[o,o==="history"?(e.externalUsage.combined.history??[]).map(a=>Ce(a,t+".external.history")):Ce(e.externalUsage.combined[o],t+".external."+o)]))}:null,config:Yn(e.config,t+".config"),pricesRev:typeof e.pricesRev=="string"?e.pricesRev:void 0,modelLabels:Object.fromEntries(Object.entries(e.modelLabels??{}).filter(([,o])=>typeof o=="string")),modelDirectory:e.modelDirectory,reconcile:e.reconcile===null||e.reconcile===void 0?void 0:{ok:e.reconcile.ok===!0,message:typeof e.reconcile.message=="string"?e.reconcile.message:""},priceLockIds:Array.isArray(e.priceLockIds)?e.priceLockIds.filter(o=>typeof o=="string"):[],meta:{...Ve(e.meta?.locale)?{locale:Ve(e.meta.locale)}:{},now:typeof e.meta?.now=="number"?e.meta.now:Date.now(),timezoneOffsetMinutes:typeof e.meta?.timezoneOffsetMinutes=="number"?e.meta.timezoneOffsetMinutes:0,timezone:typeof e.meta?.timezone=="string"?e.meta.timezone:"",...typeof e.meta?.defaultProvider=="string"?{defaultProvider:e.meta.defaultProvider}:{},dayKey:typeof e.meta?.dayKey=="string"?e.meta.dayKey:"",monthKey:typeof e.meta?.monthKey=="string"?e.meta.monthKey:""}}}function so(e,t){ue(e,t);const o={ok:e.ok===!0,message:typeof e.message=="string"?e.message:""};return e.state!==void 0&&e.state!==null&&(o.state=Qa(e.state,t+".state")),o}function Z(e){return{parse:e}}const Je=Z(Qa),lo=Z(e=>ue(e,"patch")),ro=Z(so),Kt=Z(e=>ae(e,"provider")),io=Z(e=>{if(e!=null)return(typeof e!="number"||!Number.isInteger(e)||e<0||e>7)&&ee("index","0-7 integer"),e}),co=Z(e=>ae(e,"date")),uo=Z(e=>ue(e,"day")),po=Z(e=>(Number.isFinite(Number(e))||ee("limit","number"),Number(e))),Ua=Z(e=>ae(e,"sort")),mo=Z(e=>ue(e,"topSessions")),qa=Z(e=>ae(e,"target")),fo=Z(e=>ae(e,"value")),he=(e,t)=>({mode:"strict",typeSymbol:"dsh-cost-meter#"+e,schema:t,create:()=>t}),se=(e,t,o,a=!1)=>({name:e,wire:e,source:"json",codec:he(t,o),...a?{acceptsUndefined:!0}:{}}),Fa=Z(e=>{ue(e,"billing storage options"),(Object.keys(e).some(o=>!["retentionDays","apply","streams","groups"].includes(o))||![0,7,30].includes(e.retentionDays))&&ee("billing storage options","retentionDays 0/7/30");const t={retentionDays:e.retentionDays};for(const o of["apply","streams","groups"])e[o]!==void 0&&typeof e[o]!="boolean"&&ee(o,"boolean"),t[o]=e[o]??o!=="apply";return t}),bo={package:"dsh-cost-meter",descriptors:[{method:"getStateSince",parameters:[se("pricesRev","PricesRev",Z(e=>(typeof e!="string"&&ee("pricesRev","price table revision"),e)))],result:he("CostState",Je)},...["getState","getLocalState"].map(e=>({method:e,result:he("CostState",Je)})),{method:"billingStorage",parameters:[se("options","BillingStorageOptions",Fa)],result:he("BillingStorage",Z(e=>{ue(e,"billing storage");const t={};for(const o of["retentionDays","scannedAt","sessions","reclaimableBytes","archivedStreams","removedFiles","releasedBytes","archiveBytes","skipped"])t[o]=Y(e[o],o);for(const o of["applied","limited"])typeof e[o]!="boolean"&&ee(o,"boolean"),t[o]=e[o];for(const o of["streams","groups","archives"]){const a=ue(e[o],o),s={};for(const l of["files","bytes","eligibleFiles","eligibleBytes"])s[l]=Y(a[l],o+"."+l);for(const l of["oldestAt","newestAt"])s[l]=a[l]===null?null:Y(a[l],o+"."+l);t[o]=s}return t}))},{method:"updateConfig",parameters:[se("patch","ConfigPatch",lo)],result:he("CostState",Je)},{method:"fetchPrices"},{method:"releasePriceLock",parameters:[se("id","PriceLockId",Z(e=>((typeof e!="string"||e.length===0)&&ee("id","OpenRouter model id"),e)))]},{method:"refreshBalance"},{method:"refreshGoQuota"},...["getPiAiCodexQuota","getChatgptSubQuota"].map(e=>({method:e,result:he("PiAiCodexQuota",Z(t=>{ue(t,"pi-ai quota"),["off","ok","error"].includes(t.status)||ee("pi-ai quota status","off/ok/error");const o={},a=ue(t.windows,"pi-ai windows");for(const s of["five","weekly"])if(a[s]!==void 0){const l=Y(a[s].percent,s);(l<0||l>100)&&ee(s,"0-100 percent"),o[s]={percent:l,resetsAt:ae(a[s].resetsAt,"resetsAt")}}return{status:t.status,windows:o,message:ae(t.message,"message")}}))})),{method:"refreshCustomBalance",parameters:[se("index","CustomBalanceIndex",io,!0)]},{method:"refreshCodingPlan",parameters:[se("provider","CodingPlanProvider",Kt)]},{method:"loginCodingPlan",parameters:[se("provider","CodingPlanProvider",Kt)]},{method:"refreshGatewayQuota",parameters:[se("sourceId","GatewayQuotaSourceId",Z(e=>{if(e!=null)return(typeof e!="string"||e.length>48||!/^[a-z0-9][a-z0-9_-]*$/.test(e))&&ee("sourceId","gateway source id"),e}),!0)]},{method:"resetHistory",result:he("CostState",Je)},{method:"importLegacyHistory"},{method:"getDaySessions",parameters:[se("date","DayKey",co)],result:he("DayRecord",uo)},{method:"getSessionCost",parameters:[se("sessionId","SessionId",Kt)],result:he("SessionCost",Z(e=>({own:Qt(e.own,"own"),subagents:Qt(e.subagents,"subagents"),found:Se(e.found,"found"),subagentCount:Y(e.subagentCount,"subagentCount")})))},{id:"dsh-cost-meter#costMeter/getTurnCost",service:"costMeter",namespace:"costMeter",method:"getTurnCost",invocation:{kind:"direct"},parameters:[se("sessionId","SessionId",Z(e=>ae(e,"sessionId"))),...["startSeq","endSeq"].map(e=>se(e,"TurnSeq",Z(t=>((!Number.isSafeInteger(t)||t<0)&&ee(e,"nonnegative integer"),t)))),{...se("displayCurrency","DisplayCurrency",Z(e=>(e!==void 0&&!["USD","CNY","EUR"].includes(e)&&ee("displayCurrency","currency"),e))),acceptsUndefined:!0}],result:he("TurnCost",Z(e=>({...Ht(e),found:Se(e.found,"found"),...e.inherited===void 0?{}:{inherited:Se(e.inherited,"inherited")},cost:Y(e.cost,"cost"),apiCost:Y(e.apiCost,"apiCost"),rows:Ea(e.rows),calls:(Array.isArray(e.calls)?e.calls:ee("calls","array")).map(t=>({kind:ae(t.kind,"kind"),provider:ae(t.provider,"provider"),model:ae(t.model,"model"),atMs:Y(t.atMs,"atMs"),cost:Y(t.cost,"cost"),apiCost:Y(t.apiCost,"apiCost"),plan:Se(t.plan,"plan"),priced:Se(t.priced,"priced"),longContext:Se(t.longContext,"longContext"),rows:Ea(t.rows),...t.metering?{metering:Vn(t.metering)}:{}}))})))},{method:"getTopSessions",parameters:[se("limit","SessionLimit",po),se("sort","SessionSort",Ua,!0),se("dir","SessionSortDir",Ua,!0)],result:he("TopSessions",mo)},{method:"setCredential",parameters:[se("target","CredentialTarget",qa),se("value","CredentialValue",fo)]},{method:"clearCredential",parameters:[se("target","CredentialTarget",qa)]},...["applyCodexCompatHistory","dismissCodexCompat"].map(e=>({method:e,result:he("CostState",Je)}))].map(e=>({id:"dsh-cost-meter#costMeter/"+e.method,service:"costMeter",namespace:"costMeter",invocation:{kind:"direct"},parameters:[],result:he("FetchPricesResult",ro),...e}))};function go(e,t){const o=t?.models??{};return typeof e=="string"&&e.length>0&&o[e]!==void 0?o[e]:t?.default??{cacheHit:0,cacheMiss:0,output:0}}function gt(e){return Object.fromEntries(["multiplier","separateMultipliers","multipliers"].filter(t=>e?.[t]!==void 0).map(t=>[t,e[t]]))}function ht(e,t){return(e.separateMultipliers?e.multipliers?.[t]:void 0)??e.multiplier??1}function _a(e,t,o="base"){const a={};for(const s of["cacheHit","cacheMiss","cacheWrite","output","reasoning"])e[s]!==void 0&&(a[s]=e[s]*ht(t,o+"."+s));return e.longContext&&(a.longContext={..._a(e.longContext,t,"longContext"),aboveInputTokens:e.longContext.aboveInputTokens}),a}function ho(e){const t=gt(e);return t.multipliers&&(t.multipliers=Object.fromEntries(Object.entries(t.multipliers).filter(([o])=>o.startsWith("cny.")).map(([o,a])=>[o.replace("cny.","base."),a]))),{...e.cny,...t}}function qe(e){if(e===null||typeof e!="object")return;const t=r=>{const i=e[r];return typeof i=="number"&&Number.isFinite(i)&&i>=0?i:void 0},o=t("cacheMiss")??t("input")??0,s={cacheHit:t("cacheHit")??t("cachedInput")??t("cacheRead")??o,cacheMiss:o,output:t("output")??0},l=t("reasoning");return l!==void 0&&(s.reasoning=l),t("cacheWrite")!==void 0&&(s.cacheWrite=t("cacheWrite")),s}function yo(e){const t=qe(e);if(t===void 0)return null;Object.assign(t,gt(e)),e.billingMode==="utc-peak"&&(t.billingMode="utc-peak"),e.peakSchedule==="volcengine"&&(t.peakSchedule="volcengine");for(const o of["offPeak","peak","legacyBase"]){const a=qe(e[o]);a!==void 0&&(t[o]=a)}return Number.isFinite(e.longContext?.aboveInputTokens)&&e.longContext.aboveInputTokens>0&&(t.longContext={...qe(e.longContext),aboveInputTokens:e.longContext.aboveInputTokens}),Array.isArray(e.rateHistory)&&(t.rateHistory=e.rateHistory.slice(0,16).map(o=>{const a={...qe(o),before:o.before};for(const s of["offPeak","peak"]){const l=qe(o[s]);l!==void 0&&(a[s]=l)}return a})),t}function Ze(e,t=Date.now()){if(!e||!Number.isFinite(t)||!Array.isArray(e.rateHistory))return e;let o=null,a=1/0;for(const r of e.rateHistory){const i=Date.parse(r.before);t<i&&i<a&&(o=r,a=i)}if(!o)return e;const{before:s,...l}=o;return{...e,...l}}const Gt=Date.parse("2026-08-22T16:00:00Z");function Wa(e){if(!Number.isFinite(e)||e<Gt)return null;const t=Math.floor((e+8*36e5)/864e5),o=(t+4)%7;if(o!==6&&o!==0)return null;const a=o===6?t:t-1;return{start:Math.max(a*864e5-8*36e5,Gt),end:(a+2)*864e5-8*36e5}}function Ka(e,t){if(!Number.isFinite(e)||e<Gt||!Array.isArray(t))return null;const o=Math.floor((e+8*36e5)/864e5);return t.includes(new Date(o*864e5).toISOString().slice(0,10))?{start:o*864e5-8*36e5,end:(o+1)*864e5-8*36e5}:null}const ko=(e,t)=>Ka(e,t)??Wa(e);function yt(e,t,o,a){if(!Array.isArray(o)||o.length===0||ko(e,a)!==null||Number.isFinite(t)&&e<t)return!1;const s=new Date(e).getUTCHours();return o.some(l=>{const r=Number(l.start),i=Number(l.end);return!Number.isFinite(r)||!Number.isFinite(i)?!1:r<i?s>=r&&s<i:s>=r||s<i})}const xo=Date.parse("2026-08-16T16:00:00Z"),wo=17881344e5;function Ga(e,t,o){const a=Ze(e,t)??{cacheHit:0,cacheMiss:0,output:0},s=(i,d="base")=>({reasoning:0,..._a(i,a,d)}),l=a.peakSchedule==="ollama";if(l||a.billingMode==="utc-peak"){if(o?.enabled!==!0||!Number.isFinite(t)||l&&t<wo)return s(a);const i=new Date(t),d=i.getUTCDay(),c=i.getUTCHours(),u=d>0&&d<6&&(l?c>=12&&c<18:c>=1&&c<4||c>=6&&c<10);return s((u?a.peak:a.offPeak)??a,(u?a.peak:a.offPeak)?u?"peak":"offPeak":"base")}if(Number.isFinite(t)&&t<xo){const i=a.legacyBase;return i===void 0?s(a):s(i,"legacyBase")}if(o?.enabled!==!0)return s(a);const r=typeof o.effectiveAtMs=="number"&&Number.isFinite(o.effectiveAtMs)?o.effectiveAtMs:void 0;if(yt(t,r,o.windows,a.peakSchedule==="volcengine"?[]:o.holidays)){const i=a.peak;return i===void 0?s(a):s(i,"peak")}if(r!==void 0&&t>=r){const i=a.offPeak;return i===void 0?s(a):s(i,"offPeak")}return s(a)}function za(e,t){const o=Math.max(0,Number(e.input)||0),a=Math.max(0,Number(e.output)||0),s=Math.max(0,Number(e.cacheRead)||0),l=Math.max(0,Number(e.cacheWrite)||0),r=Math.max(0,Number(e.reasoning)||0);return t.longContext&&o+s+l>t.longContext.aboveInputTokens&&(t=t.longContext),(o*t.cacheMiss+a*t.output+s*t.cacheHit+l*(t.cacheWrite??t.cacheHit)+r*(t.reasoning??0))/1e6}function Va(e,t,o){const a=Number(e);if(!Number.isFinite(a)||a<0||a===0)return 0;if(t!=="CNY")return a;const s=Number(o);return!Number.isFinite(s)||s<=0?a:a/s}function ie(e,t){const o=e?.barDirections,a=t==="balance"?"remaining":"used";if(o===null||typeof o!="object"||Array.isArray(o))return a;const s=o[t];return s==="remaining"||s==="used"?s:a}function xe(e,t){if(e==null||!Number.isFinite(Number(e)))return{width:0,label:null};const o=Math.max(0,Math.min(100,Number(e))),a=t==="remaining"?Math.round((100-o)*10)/10:Math.round(o*10)/10;return{width:a,label:a}}const Ya=(e,t)=>e.toFixed(t).replace(/(\.\d*?[1-9])0+$|\.0+$/,"$1");function de(e,t){const o=typeof t?.symbol=="string"&&t.symbol.length>0?t.symbol:"$",a=Number(t?.decimals),s=Math.max(0,Math.min(10,Number.isFinite(a)?Math.floor(a):2));let l=s;return e>0&&e<Math.pow(10,-s)&&(l=s+2),o+Ya(e,l)}function K(e,t){const o=Number(t?.exchangeRate),a=e*(Number.isFinite(o)&&o>0?o:1);return de(a,t)}function L(e){const t=Math.max(0,Number(e)||0),o=a=>a>=100?String(Math.round(a)):String(Math.round(a*10)/10);return t<1e3?String(Math.round(t)):t>=999500?o(t/1e6)+"M":t<1e6?o(t/1e3)+"K":o(t/1e6)+"M"}function zt(e){return String(e??"").normalize("NFKC").toLowerCase().replace(/[((]\s*(?:go|zen)\s*[))]/g," ").trim()}function ve(e){return zt(e).replace(/[^\p{L}\p{N}]+/gu,"")}function No(e,t=!0,o=!0){const a=zt(e);return t&&/[-_./:@](?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])$/.test(a)?a.slice(0,-5):t&&o&&/[-_./:@]\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])$/.test(a)?a.slice(0,-7):a.replace(/[-_./:@](?:\d{4}-?\d{2}-?\d{2}|v\d+(?:\.\d+)*|\d+k|latest)$/,"")}function kt(e,t,o=e,a=!0,s=!0){if(typeof e!="string"||e.length===0)return null;const l=Array.isArray(t)?t.filter(d=>typeof d=="string"&&d.length>0):[],r=l.find(d=>d===o);if(r!==void 0)return r;let i=e.normalize("NFKC").trim();if(/[:((]\s*(?:free|online)\b/i.test(i))return null;for(;;){const d=ve(i);if(d.length===0)return null;const c=l.filter(f=>ve(f)===d);if(c.length>0)return c.length===1?c[0]:null;const u=No(i,a,s);if(u===i.toLowerCase())return null;i=u}}const Vt=["opendesign","open-design","open-design-api","amr-link.open-design.ai"],Yt=new Set(["openrouter","opencode-zen","opencode-go","opencode-go-plus","zen","opencode",...Vt]),xt={openai:/^(?:gpt|o\d|codex)/i,anthropic:/^claude/i,google:/^gemini/i,stepfun:/^step-/i,deepseek:/^deepseek/i,moonshot:/^kimi/i,"z-ai":/^glm/i,xai:/^grok/i,alibaba:/^qwen/i,minimax:/^minimax/i,tencent:/^(?:hunyuan|hy\d)/i,xiaomi:/^mimo/i,upstage:/^solar/i,nvidia:/^nemotron/i,mistral:/^mistral/i,meta:/^(?:muse|llama)/i,meituan:/^longcat/i};function $t(e){return["deepseek-peak","utc-peak"].includes(e?.billingMode)?e.billingMode:"flat"}function Fe(e,t,o,a,s){if(typeof e!="string")return null;if(Object.hasOwn(t,e))return e;if(a!=="auto")return null;let l=e.normalize("NFKC").trim().replace(/^models\/(?=gemini)/i,"google/");const r=l.search(/[/:]/);if(r>0){const i=l.slice(0,r).trim().toLowerCase(),d=l.slice(r+1).trim();if(Object.hasOwn(xt,i)&&(i===o||(o==="opencode-zen"||o==="opencode-go")&&(xt[i].test(d)||kt(d,Object.keys(i==="deepseek"?s?.models??{}:s?.providers?.[i]?.models??{}),d,s?.snapshotTags!==!1,s?.shortSnapshotTags!==!1)!==null)))l=d;else if(Object.hasOwn(xt,i))return null}return kt(l,Object.keys(t),e,s?.snapshotTags!==!1,s?.shortSnapshotTags!==!1)}const So=new Set(["local","lmstudio","ollama","jan","gpt4all","koboldcpp","llamacpp","llama-cpp","localai","vllm","sglang","tabbyapi","lmdeploy","oobabooga","text-generation-webui","llama-server"]),Co=["lmstudio:","lmstudio/","ollama:","ollama/","jan:","jan/","gpt4all:","gpt4all/","koboldcpp:","koboldcpp/","llamacpp:","llamacpp/","llama-cpp:","llama-cpp/","localai:","localai/","vllm:","vllm/","sglang:","sglang/","tabbyapi:","tabbyapi/","lmdeploy:","oobabooga/","text-generation-webui/","llama-server:","gguf:","local:"];function vo(e,t){if(typeof e=="string"&&So.has(e))return!0;const o=typeof t=="string"?zt(t):"";return Co.some(a=>o.startsWith(a))}function Ao(e,t,o,a){if(e!=="deepseek"&&!e.includes("deepseek")&&typeof t=="string"&&t.length>0&&t!=="__local__"&&!t.includes(":")){const s=o.models??{},l=Object.hasOwn(s,t)?t:a==="auto"?kt(t,Object.keys(s),t,o?.snapshotTags!==!1,o?.shortSnapshotTags!==!1):null;if(l!==null&&s[l]?.unpriced!==!0)return{entry:s[l],priced:!0,billingMode:"deepseek-peak",matched:!0}}return null}function Po(e,t,o){const a=o?.prices??{},s=o?.priceMatch==="exact"?"exact":"auto",l=o?.priceOverrides&&typeof o.priceOverrides=="object"?o.priceOverrides:{};let r=String(e??"").trim().toLowerCase();if(r.startsWith("llm-")&&(r=r.slice(4)),r===""&&(r="deepseek"),["our-free-model","our-free-model-region"].includes(r)&&l[r+":*"]==="__free__")return{entry:{cacheHit:0,cacheMiss:0,cacheWrite:0,output:0,reasoning:0},priced:!0,currency:"USD",billingMode:"flat",matched:!0};let i=r,d=t;const c=l[r+":"+t];if(c==="__custom__"){const g=a.custom?.[r+":"+t];return{entry:g??null,priced:!!g,billingMode:"flat",matched:!0,currency:g?.currency??"USD"}}if(c==="__local__")return{entry:null,priced:!1,billingMode:"flat",matched:!0};if(typeof c=="string"&&c.length>0){const g=c.indexOf(":");if(g>0&&c.slice(g+1).length>0?(i=c.slice(0,g).trim().toLowerCase(),d=c.slice(g+1)):d=c,i==="deepseek"&&d==="__default__")return{entry:a.default??{cacheHit:0,cacheMiss:0,output:0},priced:a.default?.unpriced!==!0,billingMode:"deepseek-peak",matched:!1}}if(["zen","opencode","opencode-go-plus"].includes(i)){const g=Fe(d,a.providers?.[i]?.models??{},"opencode-go",s,a);g===null?i="opencode-go":d=g}if(Vt.includes(i)&&i!=="opendesign"&&Fe(d,a.providers?.[i]?.models??{},i,s,a)===null&&(i="opendesign"),vo(i,d))return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(i==="openrouter"){const g=a.providers?.openrouter?.models??{},m=Object.hasOwn(g,d)?g[d]:null;return{entry:m,priced:m!==null&&m.unpriced!==!0,billingMode:"flat",matched:m!==null}}if(i==="deepseek"||i.includes("deepseek")){const g=a.models??{},m=Fe(d,g,"deepseek",s,a);if(m!==null)return g[m]?.unpriced===!0?{entry:null,priced:!1,billingMode:"flat",matched:!0}:{entry:g[m],priced:!0,billingMode:"deepseek-peak",matched:!0};if(s==="auto"){let b=null,k=-1,y=!1,C="flat";for(const[S,h]of Object.entries(a.providers??{})){if(Yt.has(S))continue;const p=h?.models??{},w=Fe(d,p,S,s,a);if(w===null)continue;const x=+(w===d||ve(w)===ve(d));x>k?(b=p[w],k=x,y=!1,C=$t(p[w])):x===k&&(y=!0)}if(y)return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(b!==null)return{entry:b,priced:b.unpriced!==!0,billingMode:C,matched:!0}}return{entry:a.default??{cacheHit:0,cacheMiss:0,output:0},priced:a.default?.unpriced!==!0,billingMode:"deepseek-peak",matched:!1}}const u=a.providers?.[i]?.models??{},f=Fe(d,u,i,s,a);if(f!==null)return{entry:u[f],priced:u[f]?.unpriced!==!0,billingMode:$t(u[f]),matched:!0};if(Yt.has(i))return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(Object.hasOwn(xt,i))return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(s==="auto"){let g=null,m=-1,b=!1,k="flat";for(const[y,C]of[["deepseek",{models:a.models??{}}],...Object.entries(a.providers??{})]){if(y===i||Yt.has(y))continue;const S=C?.models??{},h=Fe(d,S,y,s,a);if(h===null)continue;const p=+(h===d||ve(h)===ve(d));p>m?(g=S[h],m=p,b=!1,k=y==="deepseek"?"deepseek-peak":$t(S[h])):p===m&&(b=!0)}if(b)return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(g!==null)return{entry:g,priced:g.unpriced!==!0,billingMode:k,matched:!0}}return{entry:null,priced:!1,billingMode:"flat",matched:!1}}function $a(e,t,o){let a=Po(e,t,o);const s=String(e??"").trim().toLowerCase().replace(/^llm-/,"")||"deepseek";return!a.currency&&!a.priced&&(a=Ao(s,o?.priceOverrides?.[s+":"+t],o?.prices??{},o?.priceMatch==="exact"?"exact":"auto")??a),a.currency||(a=a.priced&&o?.prices?.currency==="CNY"&&a.entry?.cny?{...a,entry:ho(a.entry),currency:"CNY"}:{...a,currency:a.priced&&a.billingMode==="deepseek-peak"&&o?.prices?.currency==="CNY"?"CNY":"USD"}),["volcengine","ark"].includes(s)&&o?.prices?.volcenginePeak!==!1&&a.entry&&a.billingMode==="deepseek-peak"?{...a,entry:{...a.entry,peakSchedule:"volcengine"}}:a}function Mo(e){const t=Number(e?.calls)||0,o=Number(e?.input)||0,a=Number(e?.cacheRead)||0;return t>=3&&o>=1e5&&a===0}function wt(e,t){return!e||!t?0:typeof e.cost=="number"&&Number.isFinite(e.cost)?e.cost:Za(e,t).total}function Xe(e){if(e===null||typeof e!="object")return 0;const t=Number(e.cost)||0,o=e.apiCost===void 0||e.apiCost===null?t:Number(e.apiCost);return Number.isFinite(o)&&o>=0?Math.min(o,t):t}function Q(e,t){const o={CNY:"Cny",EUR:"Eur"}[t?.currency],a=t?.showTotalWithPlan===!0,s=o&&e?.[(a?"cost":"apiCost")+o],l=a?Number(e?.cost)||0:Xe(e);return!Number.isFinite(s)||s===0&&l>0?l:s/(t.exchangeRate||1)}const To={opendesign:Vt,go:["go","zen","opencode","opencode-go","opencode-go-plus","dsh-opencode-go"],codex:["codex","openai-codex","dsh-openai-codex","codex-chatgpt"],anthropic:["anthropic","claude-subscription"],zai:["zai","glm-coding-plan"],minimax:["minimax","minimax-code","minimax-m-plan","minimax-mplan","minimax-token-plan"],kimi:["kimi","kimi-code","kimi-coding","kimi-coding-plan"],commandcode:["commandcode","command-code"],clinepass:["clinepass","cline-pass"],workbuddy:["workbuddy","workbuddy-subscription","workbuddy-ai","workbuddy-global","xdpool","xdpool-global"],antigravity:["antigravity"],stepfun:["stepfun","step-code"],"volcengine-agent":["volcengine-agent","ark-agent-plan","volcengine-agent-plan"],"tencent-coding":["tencent-coding","tencent-coding-plan","tokenhub-coding-plan"],"tencent-token":["tencent-token","tencent-token-plan","tokenhub-token-plan","tencent-hy-token-plan","tokenhub-hy-token-plan"],"baidu-coding":["baidu-coding-plan","qianfan-coding-plan","baidu-token-plan","qianfan-token-plan","baidu-tokenplan","qianfan-tokenplan"],qwen:["qwen","qwen-tokenplan","qianwen-tokenplan","qwen-token-plan","qianwen-token-plan"],scnet:["scnet","scnet-tokenplan","scnet-token-plan"],mimo:["mimo","xiaomimimo","mimo-token-plan","xiaomi-token-plan","xiaomi-token-plan-cn","xiaomi-token-plan-sgp","xiaomi-token-plan-ams"],factory:["factory","droid","factory-a","factory-g","factory-o"]},_e=["opendesign","anthropic","zai","minimax","kimi","openrouter","siliconflow","commandcode","clinepass","scnet","volcengine","qwen","mimo","factory","go","codex","volcengine-agent","tencent-coding","tencent-token","baidu-coding","workbuddy","antigravity","stepfun"],Ro=Object.entries({opendesign:"opendesign|open[._-]?design",codex:"codex|chatgpt","baidu-coding":"baidu|qianfan|百度|千帆","tencent-coding":"tencent|tokenhub|腾讯",anthropic:"anthropic|claude",zai:"z[._-]?ai|zhipu|glm|智谱",minimax:"minimax|海螺",kimi:"kimi|moonshot|moonshotai|月之暗面",openrouter:"openrouter",siliconflow:"siliconflow|硅基",commandcode:"commandcode",clinepass:"cline[._-]?pass|clinepass",scnet:"scnet|sugon|超算",volcengine:"volcengine|volcano|volc|ark|火山|方舟",qwen:"qwen|qianwen|千问|通义",mimo:"mimo|xiaomi|小米",factory:"factory|droid",go:"opencode(?:[-_\\s]?go)?|zen|go"}).map(([e,t])=>[e,new RegExp("(?:^|[^a-z0-9])(?:"+t+")(?=$|[^a-z0-9])")]);function Oo(e,t){for(const o of[e,t]){const a=String(o??"").normalize("NFKC").replace(/([a-zA-Z0-9\u3400-\u9fff])(?=(?:MPlan|Coding|Token|Agent|Plan|Subscription))/g,"$1-").replace(/([a-z0-9])((?:coding|token|agent|m)?plan|subscription)$/i,"$1-$2").toLowerCase();if(!/(?:^|[^a-z0-9])(?:(?:coding|token|agent|m)[-_\s]*)?plan(?:$|[^a-z0-9])|(?:^|[^a-z0-9])subscription(?:$|[^a-z0-9])|套餐|订阅/.test(a))continue;const s=Ro.filter(([,l])=>l.test(a));if(s.length){if(s.length!==1)return null;const l=s[0][0];if(l==="volcengine"&&/agent[-_\s]*plan|智能体.*套餐/.test(a))return"volcengine-agent";if(l==="tencent-coding"){const r=/token[-_\s]*plan|令牌.*套餐/.test(a),i=/coding[-_\s]*plan|编程.*套餐/.test(a);return r===i?null:r?"tencent-token":l}return l}}return null}function Ja(e,t,o){const a=String(e??"").trim().toLowerCase().replace(/^llm-/,""),s=t?.planBilling?.modelPlans?.[e+":"+o]??t?.planBilling?.modelPlans?.[a+":"+o];if(_e.includes(s))return s;if(a.length===0)return null;for(const[l,r]of Object.entries(To))if(r.includes(a))return l;return _e.includes(a)?a:Oo(e,o)}function Bo(e){if(Array.isArray(e?.planBilling?.autoProviders))return new Set(e.planBilling.autoProviders);const t=new Set,o=e?.codingPlans;if(o!==null&&typeof o=="object")for(const a of _e)a!=="go"&&o[a]?.enabled===!0&&t.add(a);return e?.goQuota?.enabled===!0&&t.add("go"),e?.codexQuotaEnabled===!0&&t.add("codex"),t}const Do=new Set(["grok-4.5","glm-5.3","glm-5.3-flash","glm-5.2","glm-5.1","gpt-5.6-luna","kimi-k3","kimi-k2.7-code","kimi-k2.6","mimo-v2.6-flash","mimo-v2.6-pro","mimo-v2.5","mimo-v2.5-pro","minimax-m3","minimax-m2.7","qwen3.8-max","qwen3.7-max","qwen3.7-plus","qwen3.6-plus","hy3","longcat-2.0","muse-spark-1.2-contributor"].map(ve));function Lo(e,t,o){const a=String(e??"").trim().toLowerCase();if(a.length>0&&a!=="deepseek"&&!a.includes("deepseek"))return!1;const s=ve(t);if(s.length===0||!Do.has(s))return!1;const l=o?.prices,r=l?.models??{};for(const i of Object.keys(r))if(ve(i)===s)return!1;for(const i of Object.keys(l?.providers?.["opencode-go"]?.models??{}))if(ve(i)===s)return!0;return!1}function et(e,t,o){if(e==="deepseek-official"&&/^deepseek-(web-(search|fetch)|(search|fetch)-api|search-server)$/.test(t))return"api";let a=Ja(e,o,t);a===null&&Lo(e,t,o)&&(a="go");const s=o?.planBilling?.models;if(s!==null&&typeof s=="object"){const l=s[e+":"+t];if(l==="plan"||l==="api")return l;if(a!==null){const r=s[a+":"+t];if(r==="plan"||r==="api")return r}}for(const l of[e,a]){if(l==null)continue;const r=o?.planBilling?.providers?.[l];if(r==="plan"||r==="api")return r}return a===null?"api":a==="go"&&/^(?:llm-)?(?:dsh-opencode-go|opencode-go(?:-plus)?)$/i.test(String(e).trim())||a==="kimi"&&/^(?:llm-)?kimi-coding(?:-plan)?$/i.test(String(e).trim())||a==="minimax"&&/^(?:llm-)?minimax-(?:m-?plan|token-plan)$/i.test(String(e).trim())||Bo(o).has(a)?"plan":"api"}function Za(e,t){if(!e||!t)return{total:0,api:0};const o=Eo(t),a={enabled:t.peakEnabled===!0,effectiveAtMs:Date.parse(t.peakEffectiveAt||""),windows:t.peakWindows,holidays:t.peakHolidays},s=Date.now(),l=e.byProviderModel??e.byModel??{};let r=0,i=0;for(const g of Object.keys(l)){const m=g.indexOf(":"),b=m>0?g.slice(0,m):"deepseek",k=m>0?g.slice(m+1):g,y=$a(b,k,t);if(y.priced){const C=yo(y.entry);C&&y.billingMode==="deepseek-peak"&&t.prices?.ollamaPeak!==!1&&b.trim().toLowerCase().replace(/^llm-/,"")==="ollama-cloud"&&(t.prices?.ollamaTaggedPeak===!1?["deepseek-v4.1-flash","deepseek-v4-pro"].includes(k.trim().toLowerCase()):kt(k,["deepseek-v4.1-flash","deepseek-v4-pro"])!==null)&&(C.peakSchedule="ollama");const S=za(l[g],Ga(C,s,{...a,enabled:["deepseek-peak","utc-peak"].includes(y.billingMode)&&a.enabled})),h=Va(S,y.currency,o);r+=h,et(b,k,t)==="api"&&(i+=h)}}const d={input:0,output:0,cacheRead:0,cacheWrite:0,reasoning:0};for(const g of Object.keys(l))d.input+=l[g].input??0,d.output+=l[g].output??0,d.cacheRead+=l[g].cacheRead??0,d.cacheWrite+=l[g].cacheWrite??0,d.reasoning+=l[g].reasoning??0;const c={input:Math.max(0,(e.input??0)-d.input),output:Math.max(0,(e.output??0)-d.output),cacheRead:Math.max(0,(e.cacheRead??0)-d.cacheRead),cacheWrite:Math.max(0,(e.cacheWrite??0)-d.cacheWrite),reasoning:Math.max(0,(e.reasoning??0)-d.reasoning)},u=za(c,Ga(go("default",t.prices),s,a)),f=Va(u,t.prices?.currency==="CNY"?"CNY":"USD",o);return r+=f,i+=f,{total:r,api:i}}function Eo(e){const t=o=>typeof o=="number"&&Number.isFinite(o)&&o>0&&o<1e6;return e.currency==="CNY"&&t(e.exchangeRate)?e.exchangeRate:t(e.fxRates?.CNY)?e.fxRates.CNY:7.2}function Xa(e,t){if(!e||!t)return!1;const o=e.byProviderModel??{};for(const a of Object.keys(o)){const s=a.indexOf(":"),l=s>0?a.slice(0,s):"deepseek",r=s>0?a.slice(s+1):a;if(et(l,r,t)==="plan")return!0}return!1}function en(e){return(e?.input??0)+(e?.cacheRead??0)+(e?.cacheWrite??0)}function tn(e,t){if(e?.apiCost!==void 0)return Xe(e);if(!Xa(e,t))return wt(e,t);let o=0;for(const[a,s]of Object.entries(e.byProviderModel??{})){if(!Number.isFinite(s.cost))return Za(e,t).api;const l=a.indexOf(":");et(a.slice(0,l),a.slice(l+1),t)==="plan"&&(o+=s.cost)}return Math.max(0,wt(e,t)-o)}function Jt(e){const t=Math.abs(Math.round(Number(e)||0)),o=Math.floor(t/60),a=t%60;return"UTC"+(Number(e)<0?"-":"+")+o+(a>0?":"+String(a).padStart(2,"0"):"")}function Io(e){const t=e?.meta,o=Number(t?.timezoneOffsetMinutes);if(!Number.isFinite(o))return null;const a=-new Date().getTimezoneOffset();if(a===o)return null;const s=typeof t?.timezone=="string"&&t.timezone.length>0?t.timezone:"";return{hostLabel:s?s+" ("+Jt(o)+")":Jt(o),browserLabel:Jt(a)}}function an(e,t=o=>o){let o=t(e);const a=new Set;return{getSnapshot:()=>o,subscribe:s=>(a.add(s),()=>{a.delete(s)}),set:s=>{if(s=t(s),s!==o){o=s;for(const l of[...a])l()}}}}const{createElement:n,Fragment:E,useState:D,useEffect:X,useRef:we}=Ae;function Nt({target:e,configured:t,source:o,t:a,api:s,placeholder:l,disabled:r}){const[i,d]=D(""),[c,u]=D(!1),[f,g]=D(!1),[m,b]=D(null),k=we(!1),y=r===!0||f,C=async()=>{const p=i.trim();if(!(p.length===0||y||k.current)){k.current=!0,g(!0),b(null);try{const w=await s.setCredential(e,p);d(""),u(!1),b({kind:"ok",text:w?.message??a("credentialSave")})}catch(w){b({kind:"err",text:String(w?.message??w)})}finally{k.current=!1,g(!1)}}},S=async()=>{if(!(y||k.current)){k.current=!0,g(!0),b(null);try{const p=await s.clearCredential(e);d(""),u(!1),b({kind:"ok",text:p?.message??a("credentialClear")})}catch(p){b({kind:"err",text:String(p?.message??p)})}finally{k.current=!1,g(!1)}}},h=()=>{d(""),u(!1)};return n("div",{className:"cm-field"},c?n("form",{className:"cm-field",autoComplete:"off",onSubmit:p=>{p.preventDefault(),C()}},n("input",{className:"cm-input",type:"password",name:"cm-credential-"+e,autoFocus:!0,value:i,placeholder:typeof l=="string"?l:"",disabled:y,autoComplete:"new-password","data-lpignore":"true","data-1p-ignore":"true","data-bwignore":"true","aria-label":a("credentialInputHint"),onChange:p=>d(p.target.value)}),n("div",{className:"cm-buttons"},n("button",{className:"cm-btn small",type:"submit",disabled:y||i.trim().length===0},a(f?"credentialSaving":"credentialSave")),n("button",{className:"cm-btn small",type:"button",onClick:h,disabled:f},a("cancel")))):n("button",{className:"cm-btn small",type:"button",onClick:()=>u(!0),disabled:y},a("credentialEdit")),t===!0?n("button",{className:"cm-btn small",type:"button",onClick:S,disabled:y},a("credentialClear")):null,n("span",{className:"cm-hint"},t===!0?a("credentialConfiguredOf",{source:typeof o=="string"&&o.length>0?o:"unknown"}):a("credentialNotConfigured")),n("span",{className:"cm-hint"},a("credentialInputHint")),Sa(m))}function jo({pending:e,t}){return!Array.isArray(e)||e.length===0?null:n("div",{className:"cm-msg err"},n("div",null,t("secretMigrationPending")),n("div",null,e.join("、")))}function St({size:e=16,className:t}){return n("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M4 4H12A2 2 0 0 1 14 6V11.5A2 2 0 0 1 12 13.5H4A2 2 0 0 1 2 11.5V6A2 2 0 0 1 4 4ZM4 5.3H12A0.7 0.7 0 0 1 12.7 6V11.5A0.7 0.7 0 0 1 12 12.2H4A0.7 0.7 0 0 1 3.3 11.5V6A0.7 0.7 0 0 1 4 5.3Z",fill:"currentColor",fillRule:"evenodd"}),n("path",{d:"M3.3 5.3H12.7V7.1H3.3Z",fill:"currentColor"}),n("path",{d:"M8 2.8A1.3 1.3 0 1 0 8 5.4A1.3 1.3 0 1 0 8 2.8Z",fill:"currentColor"}))}function nn(e,t){const o=we(!1),a=we(""),s=t!==null&&typeof t=="object"?[t.input,t.cacheRead,t.cacheWrite,t.output,t.reasoning,t.cost].map(l=>String(l??0)).join("|"):"";X(()=>{if(!o.current){o.current=!0,a.current=s;return}if(s===""||s===a.current)return;a.current=s;const l=setTimeout(()=>{e.api?.reload?.()},800);return()=>clearTimeout(l)},[s])}function Ho(e,t,o,a){const s=t?t.own:e;if(!o||!t?.subagentCount)return s;const l=t.subagents,r={...s};for(const i of["input","output","cacheRead","cacheWrite","reasoning","calls","cost",...bt])r[i]=(s?.[i]??0)+(l?.[i]??0);r.apiCost=tn(s,a)+Xe(l);for(const i of["byModel","byProviderModel"]){r[i]={...s?.[i]};for(const[d,c]of Object.entries(l?.[i]??{})){const u={...r[i][d]};u.apiCost=Xe(u)+Xe(c);for(const f of["input","output","cacheRead","cacheWrite","reasoning","calls","cost",...bt])u[f]=(u[f]??0)+(c[f]??0);r[i][d]=u}}return r}function on(e){const t=e.useProjection?e.useProjection("costUsage"):void 0,o=e.useCost?.(c=>c)?.state,a=o?.config,[s,l]=D(null);nn(e,t);const r=["input","output","cacheRead","cacheWrite","reasoning","calls","cost","apiCost"].map(c=>t?.[c]??"").join(":");X(()=>{if(!e.sessionId||!e.api?.getSessionCost)return;let c=!0,u=!1;const f=async()=>{if(!(u||typeof document<"u"&&document.hidden)){u=!0;try{const b=await e.api.getSessionCost(e.sessionId);c&&l({id:e.sessionId,include:a?.includeSubagentCost===!0,value:b})}catch{c&&l(b=>b?.id===e.sessionId&&b.include===(a?.includeSubagentCost===!0)?b:{id:e.sessionId,include:a?.includeSubagentCost===!0,value:null})}finally{u=!1}}};f();const g=a?.includeSubagentCost===!0?setInterval(f,1e4):null,m=()=>{document.hidden||f()};return typeof document<"u"&&document.addEventListener?.("visibilitychange",m),()=>{c=!1,g!==null&&clearInterval(g),typeof document<"u"&&document.removeEventListener?.("visibilitychange",m)}},[e.sessionId,o?.meta?.now,r,a?.includeSubagentCost]);const i=s&&s.id===e.sessionId&&s.include===(a?.includeSubagentCost===!0)?s:null,d=i?.value;return{usage:Ho(t,d,a?.includeSubagentCost||d&&d.subagentCount>0,a),config:a,pending:!!e.sessionId&&!!e.api?.getSessionCost&&!i,unrecorded:!!d&&!d.found&&!d.subagentCount}}function sn(e){const t=j(e.config)==="en";return e.pending?t?"Loading session cost…":"正在读取本会话费用…":e.unrecorded?t?"Session cost: no ledger records":"本会话暂无账本记录":e.usage?"":t?"Session cost unavailable":"本会话费用暂不可用"}function ln(e,t){if(Number.isFinite(e?.costCny)||Number.isFinite(e?.costEur)){const s=Q(e,{...t,showTotalWithPlan:!0}),l=Q(e,{...t,showTotalWithPlan:!1});return{cost:t.showTotalWithPlan?s:l,planPart:t.showTotalWithPlan?0:Math.max(0,s-l)}}let o=0,a=wt(e,t);if(t.showTotalWithPlan!==!0&&(e.apiCost!==void 0||Xa(e,t))){const s={total:wt(e,t),api:tn(e,t)};o=Math.max(0,s.total-s.api),o>0&&(a=s.api)}return{cost:a,planPart:o}}function rn(e,t){return Object.entries(e?.byProviderModel??{}).filter(([,o])=>o.input||o.output||o.cacheRead||o.cacheWrite||o.reasoning).map(([o,a])=>ut(o)+" "+K(Q(a,{...t,showTotalWithPlan:!0}),t)).join("; ")}function Qo(e){const t=e.useCost?.(y=>y)?.state?.config,[o,a]=D(null),[s,l]=D(""),r=e.turn?.start?.seq,i=e.turn?.end?.seq,d=e.sessionId,c=JSON.stringify([t?.prices,t?.priceOverrides,t?.priceMatch,t?.planBilling,t?.codingPlans,t?.goQuota?.enabled,t?.peakEnabled,t?.peakEffectiveAt,t?.peakWindows,t?.peakHolidays,t?.exchangeRate]);if(X(()=>{let y=!0;if(a(null),l(""),!(t?.hideTurnCost||!d||r==null||i==null))return e.api.getTurnCost(d,r,i).then(C=>{y&&a(C)},C=>{y&&l(String(C.message??C))}),()=>{y=!1}},[d,r,i,c,t?.hideTurnCost]),!t||t.hideTurnCost||r==null||i==null)return null;const u=j(t)==="en",f=u?{input:"Input",output:"Output",cacheRead:"Cache read",cacheWrite:"Cache write",reasoning:"Reasoning"}:{input:"输入",output:"输出",cacheRead:"缓存读取",cacheWrite:"缓存写入",reasoning:"推理"},g=y=>{const C=Number(t.exchangeRate),S=y*(Number.isFinite(C)&&C>0?C:1),h=t.decimals??2;return K(y,S>0&&S<10**-(h+2)?{...t,decimals:Math.max(8,h)}:t)},m=y=>K(y,{...t,decimals:Math.max(8,t.decimals??2)}),b=u?{model:"Model call",compaction:"Context compaction",search:"Native search",fetch:"Web fetch"}:{model:"模型调用",compaction:"上下文压缩",search:"原生搜索",fetch:"网页抓取"},k=(y,C)=>n("div",{key:C,style:{marginBottom:4,overflowWrap:"anywhere"}},ut(y.provider+":"+y.model)+" · "+(f[y.bucket]||(y.bucket==="fetchRequests"?u?"Fetch requests":"抓取请求":u?"Search requests":"搜索请求"))+(y.plan?" (Plan)":"")+": "+(y.requests?y.requests+(u?" requests":" 次"):y.tokens.toLocaleString())+" × "+(y.priced?m(y.rate):"?")+(y.requests?" ≈ ":" / 1,000,000 ≈ ")+(y.priced?g(y.cost):"?"),y.priced?y.bucket==="reasoning"&&y.rate===0?u?" (no separate charge)":"(不单独收费)":"":u?" (price unavailable)":"(未配置价格)");return n("details",{className:"cm-note",style:{fontSize:12,marginTop:6}},n("summary",{style:{cursor:"pointer"},title:u?"Log estimate at configured prices; session cost uses recorded ledger amounts.":"本轮按日志和配置价格估算,本会话按账本已入账金额汇总。"},u?"Turn cost":"本轮费用",o?.found?" ≈ "+g(Q(o,t))+(o.rows.some(y=>!y.priced)?u?" + unpriced usage":" + 未定价用量":""):o?.inherited?u?" · inherited history":" · 继承历史":s?" ⚠":""),s?n("div",{role:"alert"},s):o?o.found?n(E,null,n("p",null,u?"Estimated from recorded usage and configured prices; rates per 1M tokens.":"按已记录用量和配置价格估算;单价单位为每百万 Token。"),n("p",null,"API ≈ "+g(Q(o,{...t,showTotalWithPlan:!1}))+" · Plan ≈ "+g(Q(o,{...t,showTotalWithPlan:!0})-Q(o,{...t,showTotalWithPlan:!1}))+(u?" (equivalent)":"(等值)")),o.rows.map(k),n("details",null,n("summary",{style:{cursor:"pointer"}},(u?"Individual calls":"逐次调用明细")+" ("+o.calls.length+")"),o.calls.map((y,C)=>n("details",{key:C,style:{margin:"6px 0"}},n("summary",{title:y.provider+":"+y.model,style:{cursor:"pointer",overflowWrap:"anywhere"}},"#"+(C+1)+" "+b[y.kind]+" · "+ut(y.provider+":"+y.model)+" · "+new Date(y.atMs).toLocaleTimeString()+" · "+(y.plan?"Plan ":"API ")+(y.priced?"≈ "+g(y.cost):u?"price unavailable":"未配置价格")+(y.longContext?u?" · long context":" · 长上下文价格":"")),y.metering?n("p",null,"billion-context · "+y.metering.upstream+(y.metering.attempt>1?(u?" · Retry ":" · 重试 ")+y.metering.attempt:"")+(y.metering.complete?"":u?" · partial usage":" · 用量回执不完整")):null,y.rows.map(k))))):o.inherited?u?"Inherited usage is not billed again in this conversation.":"继承的历史用量不在本会话重复计费。":u?"Complete usage records unavailable":"没有完整用量记录":u?"Loading…":"加载中…")}function Uo(e){const t=on(e),{usage:o,config:a}=t;if(!a)return null;const s=sn(t);if(s)return n("div",{className:"cm-chip"},s);const l=z(j(a)),{cost:r,planPart:i}=ln(o,a),d=[l("sessionCostTitle"),l("sessionDetailTokens",{input:L(o?.input??0),cache:L((o?.cacheRead??0)+(o?.cacheWrite??0)),output:L(o?.output??0)}),l("sessionDetailCache",{read:L(o?.cacheRead??0),write:L(o?.cacheWrite??0)}),l("cost",{amount:K(r,a)}),...i>0?[l("sessionDetailPlan",{amount:K(i,a)})]:[],rn(o,a)].filter(Boolean).join("; ");return n(J,{portal:!0,label:d,side:"top",delayMs:500},n("div",{className:"cm-chip"},i>0?l("costChipPlan",{amount:K(r,a)}):l("cost",{amount:K(r,a)})))}function qo(e){const t=on(e),{usage:o,config:a}=t;if(!a)return null;const s=sn(t);if(s)return n("div",{className:"cm-root",role:"status",title:s},s);const l=o.input??0,r=(o.cacheRead??0)+(o.cacheWrite??0),i=o.output??0,d=z(j(a)),{cost:c,planPart:u}=ln(o,a),f=en(o)>0?((o.cacheRead??0)/en(o)*100).toFixed(1)+"%":"—",g={amount:K(c,a),planAmount:K(u,a),hitRate:f,input:L(l),cache:L(r),output:L(i)},m=d(u>0?"sessionLineSplit":"sessionLine",g),b=rn(o,a),k=a.sessionCostCompact===!0,y=d("sessionLineCompact",g),C=k?d(u>0?"sessionLineSplitCompact":"sessionLineCompact",g):m;return n("div",{className:"cm-root cm-session-cost",title:[m,b].filter(Boolean).join("; ")},n("span",{className:"cm-session-amount"},y),n("span",{className:"cm-session-detail"},C.slice(y.length)))}const Fo={USD:"$",CNY:"¥",EUR:"€"};function Ie(e,t,o){const a=typeof o=="string"?o.toUpperCase():"",s=typeof t?.symbol=="string"&&t.symbol.length>0?t.symbol:"$";return de(e,{symbol:Fo[a]??s,decimals:Math.max(2,Math.min(10,Math.floor(Number(t?.decimals)||2)))})}function cn(e,t){const o=Number(e?.balance?.budgetCap);if(Number.isFinite(o)&&o>0)return o;const a=Number(t?.maxBudget);return Number.isFinite(a)&&a>0?a:null}function _o(e){const t=e.today,o=t?.byProviderModel;if(o===null||typeof o!="object"||Object.keys(o).length===0)return Number(t?.cost)||0;let a=0;for(const[s,l]of Object.entries(o)){const r=s.indexOf(":");let i=r>=0?s.slice(0,r):s;i.startsWith("llm-")&&(i=i.slice(4)),/^deepseek(?:-official|-account)?$/.test(i)&&(a+=Number(l?.cost)||0)}return a}function un(e,t,o,a,s=null){const l=o==="official"?_o(e):Number(e.today?.cost)||0,r=o==="custom"?at(t,a,s):e.balance?.currency;if(r==="USD")return l;if(r==="CREDITS")return 0;const i=Number(t?.exchangeRate);return l*(Number.isFinite(i)&&i>0?i:1)}function Zt({remaining:e,spend:t,todayUsed:o,cap:a}){if(a===null||a<=0)return{remainingPct:100,todayPct:0,spentPct:0,hasCap:!1,pastSpend:0,today:0};const s=Math.max(0,Number(e)||0),l=Math.max(0,Number(t)||0),r=Math.max(0,Math.min(l,Number(o)||0)),i=Math.max(0,l-r),d=Math.max(0,Math.min(100,s/a*100)),c=Math.max(0,Math.min(100-d,r/a*100)),u=Math.max(0,Math.min(100-d-c,i/a*100));return{remainingPct:d,todayPct:c,spentPct:u,hasCap:!0,pastSpend:i,today:r}}function Xt(e,t,o=null,a=null){const s=o??e.customBalance;if((a??t?.customBalance)?.adapter==="tokenrhythm")return{cap:null,...Zt({remaining:s?.remaining,cap:null})};const l=cn(at(t,s,a)==="CREDITS"?null:t,s),r=Number(s?.remaining)||0,i=Number(s?.spend)||0,d=un(e,t,"custom",s,a);return{cap:l,...Zt({remaining:r,spend:i,todayUsed:d,cap:l})}}function Wo(e,t){const o=e.balance,a=cn(t,null),s=Number(o?.totalBalance)||0,l=un(e,t,"official",null),r=a!==null?Math.max(0,a-s):0;return{cap:a,...Zt({remaining:s,spend:r,todayUsed:l,cap:a})}}function ea(e){const{segments:t,direction:o="remaining"}=e,{remainingPct:a,todayPct:s,spentPct:l}=t,r=[];a>0&&r.push(n("div",{className:"cm-bbox-fill",style:{width:a+"%"}})),s>0&&r.push(n("div",{className:"cm-bbox-seg-today",style:{width:s+"%"}})),l>0&&r.push(n("div",{className:"cm-bbox-seg-spent",style:{width:l+"%"}})),r.length===0&&r.push(n("div",{className:"cm-bbox-fill",style:{width:"100%"}}));const i=o==="used"?[...r].reverse():r;return n("div",{className:"cm-bbox-bar segments"+(o==="used"?" rev":"")},...i)}function Ko(e,t,o,a,s){const l=[e("balanceBarRemaining",{amount:a})];return o.today>0&&l.push(e("balanceBarToday",{amount:t(o.today)})),o.pastSpend>0&&l.push(e("balanceBarSpent",{amount:t(o.pastSpend)})),s!==null&&s>0&&l.push(e("balanceBudgetCapLabel")+": "+t(s)),l.join(" · ")}function Oe(e){const[t,o]=D(!1),[a,s]=D(null);return{busy:t,err:a,run:()=>{t||typeof e!="function"||(o(!0),s(null),Promise.resolve().then(e).catch(r=>{s(r?.message??String(r))}).finally(()=>{o(!1)}))}}}const ye=(e,t)=>({role:"button",tabIndex:0,"aria-busy":e?"true":"false",onClick:t,onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),t())}});function Pe(e,t){const o=[e("clickToRefresh")];return t.busy&&o.push(e("refreshing")),t.err&&o.push("⚠ "+e("balanceRefreshFailed",{message:t.err})),o}const Go="https://platform.deepseek.com/usage";function tt(e,t=Go,o=e("balanceRechargeLink")){if(!t)return null;try{const a=new URL(t);if(!["http:","https:"].includes(a.protocol)||a.username||a.password)return null}catch{return null}return n("a",{className:"cm-bal-link",href:t,target:"_blank",rel:"noreferrer noopener",title:o,"aria-label":o,onClick:a=>a.stopPropagation(),onKeyDown:a=>a.stopPropagation()},n("svg",{width:14,height:14,viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0},n("path",{d:"M8 4H4a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-4M11 3h6v6M9 11l8-8"})))}const Ct=an({});function vt(e,t,o){const a=()=>{const c=Ct.getSnapshot()[t];if(c!==void 0)return c;try{return window.localStorage?.getItem("cm.balance.hidden."+t)==="1"}catch{return!1}},[s,l]=D(a);X(()=>{const c=()=>l(a()),u=Ct.subscribe(c);return c(),u},[t]);const r=e.balance?.quickHide===!0,i=r&&s,d=c=>{c.stopPropagation();const u=!a();try{window.localStorage?.setItem("cm.balance.hidden."+t,u?"1":"0")}catch{}Ct.set({...Ct.getSnapshot(),[t]:u}),l(u)};return{hidden:i,label:c=>r?n("span",{role:"button",tabIndex:0,"aria-pressed":i,title:o("balanceToggle"),onClick:d,onKeyDown:u=>{u.stopPropagation(),(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),d(u))}},c):c,tip:[o("balanceHidden"),o("balanceToggle")].join(" · ")}}function zo(e){const{state:t,wide:o,api:a}=e,s=t.balance,l=z(j(t.config)),r=Oe(a?()=>a.refreshBalance():null),i=vt(t.config,"official",l);if(!s||s.status==="off")return null;if(s.status==="error")return n(J,{portal:!0,label:[l("balanceQueryFailed",{message:s.message||l("unknownError")}),...Pe(l,r)].join("; "),side:"right",delayMs:300},n("div",{"data-cm-display":"balance",className:"cm-foot clickable"+(o?"":" cm-foot-rail")+" cm-bal-err"+(r.busy?" busy":""),...ye(r.busy,r.run)},o?n(E,null,ta(l,t.config)," ",n("span",{className:"cm-num"},l("queryFailed"))):"⚠"));const d=i.hidden?i.tip:dn(l,s,t.config,t.reconcile,r);return n(J,{portal:!0,label:d,side:"right",delayMs:300},n("div",{"data-cm-display":"balance",className:"cm-foot clickable"+(o?"":" cm-foot-rail")+(r.busy?" busy":""),...ye(r.busy,r.run)},o?n(E,null,n("span",{className:"cm-balance-name"},i.label(ta(l,t.config)),tt(l)),n("span",{className:"cm-num cm-bal-amt"},i.hidden?"••••":Ie(s.totalBalance,t.config,s.currency)),t.reconcile?.ok===!1?" ⚠":""):n(St,{size:16})))}function Vo(e,t,o){if(o||e.config?.balance?.officialChannelOnly!==!0)return!0;const a=s=>/^(?:llm-)?deepseek(?:-official|-account)?$/.test(String(s).trim().toLowerCase());return typeof t=="string"&&t.trim()?a(t):Object.keys(e.today?.byProviderModel??{}).some(s=>a(s.split(":")[0]))}function ta(e,t){return e(t?.balance?.showSource===!0?"officialBalance":"balance")}function dn(e,t,o,a,s){const l=[e("officialBalance")+" "+Ie(t.totalBalance,o,t.currency),e("grantedToppedUp",{granted:Ie(t.grantedBalance,o,t.currency),toppedUp:Ie(t.toppedUpBalance,o,t.currency)}),...a?.ok===!1?["⚠ "+a.message]:[],...Pe(e,s)];return n("div",{style:{maxWidth:"min(280px, 70vw)",whiteSpace:"normal"}},...l.map((r,i)=>n("div",{key:i},r)))}function Yo(e){const{state:t,wide:o,api:a}=e,s=t.config,l=t.balance,r=z(j(s)),i=Oe(a?()=>a.refreshBalance():null),d=vt(s,"official",r);if(!l||l.status!=="ok")return null;const c=Wo(t,s),u=d.hidden?"••••":Ie(l.totalBalance,s,l.currency),f=d.hidden?d.tip:dn(r,l,s,t.reconcile,i),g=n(E,null,n("div",{className:"cm-bbox-head"},n("span",{className:"cm-balance-name"},n("span",{className:"cm-bbox-label"},d.label(ta(r,s))),tt(r)),n("span",{className:"cm-bbox-pct cm-num cm-bal-amt"},u)),d.hidden?null:n(ea,{segments:c,direction:ie(s,"balance")}));return n(J,{portal:!0,label:f,side:"right",delayMs:300},n("div",{"data-cm-display":"balance",className:"cm-bbox clickable"+(o?"":" rail")+(i.busy?" busy":""),...ye(i.busy,i.run)},o?g:n("div",{className:"cm-bbox-rail cm-num"},d.hidden?"••••":Math.round(c.remainingPct)+"%")))}function aa(e,t){const o=typeof e?.label=="string"?e.label:"",a=typeof e?.labelEn=="string"?e.labelEn:"";return t==="en"?a||o||"Custom balance":o||a||"自定义余额"}function at(e,t,o){if((o??e?.customBalance)?.adapter==="tokenrhythm")return"CNY";if((o??e?.customBalance)?.adapter==="aliyun"&&["CNY","USD","EUR"].includes(t?.unit))return t.unit;const a=o?.unit??e?.customBalance?.unit;return["CNY","EUR","USD","CREDITS"].includes(a)?a:["CNY","EUR","CREDITS"].includes(t?.unit)?t.unit:"USD"}function We(e,t,o,a){const s=at(t,o,a),l=Number(e);if(!Number.isFinite(l))return"—";const r=t?.currency==="USD"?1:Number(t?.exchangeRate);if((a??t?.customBalance)?.convertToDisplayCurrency===!0&&s==="USD"&&Number.isFinite(r)&&r>0){const u=l*r;return Number.isFinite(u)?de(u,t):"—"}const i=s==="CREDITS",d=Math.max(2,Math.min(6,Math.floor(Number(t?.decimals)||4)));return(i?"":s==="CNY"?"¥":s==="EUR"?"€":"$")+Ya(l,d)+(i?" Credits":"")}function na(e,t,o,a,s=null){const l=We(e.remaining,t,e,s);if((s??t?.customBalance)?.adapter==="tokenrhythm")return o("customBalanceRemaining",{amount:l});const r=g=>We(g,t,e,s);if(a&&t.balance?.showProgressBar===!0){const g=Xt(a,t,e,s);return[Ko(o,r,g,l,g.cap),o("updatedAt",{time:e.fetchedAt>0?new Date(e.fetchedAt).toLocaleTimeString():"—"})].join(" · ")}const i=e.spend!==null?r(e.spend):"—",d=e.maxBudget!==null?r(e.maxBudget):"—",c=at(t,e,s)==="CREDITS"?NaN:Number(t?.balance?.budgetCap),u=Number.isFinite(c)&&c>0?o("balanceBudgetCapLabel")+": "+r(c):"",f=e.maxBudget!==null&&e.spend!==null?o("customBalanceLine",{remaining:l,spend:i,maxBudget:d,time:e.fetchedAt>0?new Date(e.fetchedAt).toLocaleTimeString():"—"}):o("customBalanceRemaining",{amount:l});return u?f+" · "+u:f}function $o(e,t,o,a,s,l){const r=aa(s??t.customBalance??{},j(t)),i=l?.hidden?"••••":We(a.remaining,t,a,s),d=Xt(e,t,a,s);return{level:"ok",rail:l?.hidden?"••••":Math.round(d.remainingPct)+"%",body:n(E,null,n("div",{className:"cm-bbox-head"},n("span",{className:"cm-balance-name"},n("span",{className:"cm-bbox-label"},l?l.label(r):r),tt(o,s?.dashboardUrl||"",r)),n("span",{className:"cm-bbox-pct cm-num cm-bal-amt"},i)),l?.hidden?null:n(ea,{segments:d,direction:ie(t,"balance")}))}}function At(e,t){const o=t?.customBalances??[],a=Array.isArray(e?.customBalances)?e.customBalances:[],s=[];return o.forEach((l,r)=>{if(l?.enabled!==!0||l.display!=="sidebar"&&l.display!=="both")return;const i=a.find(d=>d.index===r)??(a.length===1&&o.length===1?a[0]:null);s.push({index:r,entry:l,snapshot:i})}),s.length===0&&a.length===0&&t?.customBalance?.enabled===!0&&(t.customBalance.display==="sidebar"||t.customBalance.display==="both")&&e?.customBalance?.status&&e.customBalance.status!=="off"&&s.push({index:null,entry:t.customBalance,snapshot:e.customBalance}),s}function Jo(e){const{state:t,wide:o,api:a}=e,s=t.config,l=z(j(s)),r=At(t,s);return r.length===0?null:n(E,null,r.map(({index:i,entry:d,snapshot:c})=>n(d.adapter==="tokenrhythm"?pn:Zo,{key:"cb-"+i,state:t,wide:o,api:a,t:l,index:i,entry:d,snapshot:c})))}function Zo(e){const{state:t,wide:o,api:a,t:s,index:l,entry:r,snapshot:i}=e,d=t.config,c=vt(d,"custom-"+l,s),u=Oe(a?()=>a.refreshCustomBalance(l):null);if(i==null||i.status!=="ok")return null;const f=$o(t,d,s,i,r,c),g=c.hidden?c.tip:[na(i,d,s,t,r),...Pe(s,u)].join(" · ");return n(J,{portal:!0,label:g,side:"right",delayMs:300},n("div",{"data-cm-display":"customBalance",className:"cm-bbox clickable"+(f.level==="ok"?"":" "+f.level)+(o?"":" rail")+(u.busy?" busy":""),...ye(u.busy,u.run)},o?f.body:n("div",{className:"cm-bbox-rail cm-num"},f.rail)))}function Xo(e){const{state:t,wide:o,api:a}=e,s=t.config,l=z(j(s)),r=At(t,s);return r.length===0?null:n(E,null,r.map(({index:i,entry:d,snapshot:c})=>n(pn,{key:"cbr-"+i,state:t,wide:o,api:a,t:l,index:i,entry:d,snapshot:c})))}function pn(e){const{state:t,wide:o,api:a,t:s,index:l,entry:r,snapshot:i}=e,d=t.config,c=vt(d,"custom-"+l,s),u=i??Ia(l),f=Oe(a?()=>a.refreshCustomBalance(l):null);if(u.status==="off")return null;const g=aa(r??d.customBalance??{},j(d));if(u.status==="error")return n(J,{portal:!0,label:[u.message||s("unknownError"),...Pe(s,f)].join("; "),side:"right",delayMs:300},n("div",{"data-cm-display":"customBalance",className:"cm-foot clickable"+(o?"":" cm-foot-rail")+" cm-bal-err"+(f.busy?" busy":""),...ye(f.busy,f.run)},o?n(E,null,n("span",{className:"cm-balance-name"},n("span",{className:"cm-bal-label",title:g},g),tt(s,r?.dashboardUrl||"",g)),n("span",{className:"cm-num cm-bal-amt"},s("queryFailed"))):"⚠"));const m=c.hidden?"••••":We(u.remaining,d,u,r),b=c.hidden?c.tip:[na(u,d,s,t,r),...Pe(s,f)].join(" · ");return n(J,{portal:!0,label:b,side:"right",delayMs:300},n("div",{"data-cm-display":"customBalance",className:"cm-foot clickable"+(o?"":" cm-foot-rail")+(f.busy?" busy":""),...ye(f.busy,f.run)},o?n(E,null,n("span",{className:"cm-balance-name"},n("span",{className:"cm-bal-label",title:g},c.label(g)),tt(s,r?.dashboardUrl||"",g)),n("span",{className:"cm-num cm-bal-amt"},m)):n(St,{size:16})))}function mn(e){const o=(e.useCost?e.useCost(b=>b):void 0)?.state;if(!o)return null;const a=o.config,s=z(j(a)),l=a.corner??{enabled:!1,goRolling:!0,goWeekly:!0,goMonthly:!0,budget:!0},r=o.goQuota,i=a?.goQuota?.enabled!==!1&&r?.status==="ok",d=b=>b!==null&&typeof b?.percent=="number"?Math.round(Math.max(0,Math.min(100,b.percent))):null,c=[];if(a.sidebarModels?.dock){const b=Mn(o,a.sidebarModels.period,s);b.length&&c.push({key:"model-top",text:n(E,null,n("span",{className:"cm-bal-label"},b[0].label),n("span",{className:"cm-bal-amt"},K(b[0].cost,a))),tip:b[0].label+" "+K(b[0].cost,a),level:"ok"})}const u=(b,k,y,C)=>{if(!l.enabled||!b||!i)return;const S=d(k);if(S===null)return;const h=typeof k.resetsAt=="string"&&k.resetsAt.length>0?s("goResetAt",{time:new Date(k.resetsAt).toLocaleString()}):"";c.push({key:y,text:s(y)+" "+S+"%",tip:s(C)+": "+S+"%"+(h?" · "+h:""),level:S>=100?"over":S>=80?"warn":"ok"})},f=a?.goQuota?.main==="weekly"||a?.goQuota?.main==="monthly"?a.goQuota.main:"rolling",g=[f,...["rolling","weekly","monthly"].filter(b=>b!==f)],m=b=>b==="rolling"?["goRolling",r?.rolling,"goShortRolling","cornerGoRolling"]:b==="weekly"?["goWeekly",r?.weekly,"goShortWeekly","cornerGoWeekly"]:["goMonthly",r?.monthly,"goShortMonthly","cornerGoMonthly"];for(const b of g){const[k,y,C,S]=m(b);u(l[k]===!0,y,C,S)}if(l.enabled&&l.budget===!0){const b=a.budget??{enabled:!1,amount:100,period:"month"};if(b.enabled===!0){const k=Number(a.exchangeRate),C=(o.budgetUsed??(b.period==="day"?Q(o.today,a):b.period==="all"?Q(o.total,a):Q(o.month,a)))*(Number.isFinite(k)&&k>0?k:1),S=Math.max(0,Number(b.amount)||0),h=S>0?Math.min(999,C/S*100):null;if(h!==null){const p=h>=100?"over":h>=80?"warn":"ok";c.push({key:"budget",text:s("budgetShort")+" "+h.toFixed(1)+"%",tip:s("budgetOf",{period:s(Ye[b.period]??"periodMonth")})+" · "+s("usedOf",{used:de(C,a),amount:de(S,a)}),level:p})}}}return c.length===0?null:n("div",{className:"cm-corner"},c.map(b=>n(J,{portal:!0,key:b.key,label:b.tip,side:"top",delayMs:500},n("span",{className:"cm-corner-chip"+(b.key==="model-top"?" cm-model-top":"")+(b.level==="ok"?"":" "+b.level)},b.text))))}function oa(e,t,o,a){if(a==="volcengine"&&(o=[]),!Array.isArray(t)||t.length===0||!Number.isFinite(e))return null;const s=(m,b)=>{const k=new Date(e);return k.setUTCDate(k.getUTCDate()+m),k.setUTCHours(b,0,0,0),k.getTime()},l=new Set,r=Math.max(12,Math.min(380,(Array.isArray(o)?o.length:0)+7));for(let m=-r;m<=r;m+=1){l.add(s(m,16));for(const b of t){const k=Number(b?.start),y=Number(b?.end);!Number.isFinite(k)||!Number.isFinite(y)||(l.add(s(m,k)),l.add(s(y<=k?m+1:m,y)))}}const i=[...l].sort((m,b)=>m-b).flatMap(m=>{const b=yt(m-1,void 0,t,o),k=yt(m,void 0,t,o);return b===k?[]:[{at:m,intoPeak:k}]});let d=null,c=null;for(const m of i)m.at<=e&&(d===null||m.at>d.at)&&(d=m),m.at>e&&(c===null||m.at<c.at)&&(c=m);const u=Ka(e,o),f=u??Wa(e);return f!==null?c===null?null:{inPeak:!1,weekend:u===null,...u?{holiday:!0}:{},prevAtMs:f.start,nextAtMs:c.at,nextIntoPeak:c.intoPeak}:d===null||c===null?null:{inPeak:yt(e,void 0,t,o),weekend:!1,prevAtMs:d.at,nextAtMs:c.at,nextIntoPeak:c.intoPeak}}function je(e,t){if(!e||e.peakNotice===!1||e.peakEnabled!==!0)return null;const o=Date.parse(e.peakEffectiveAt||"");return Number.isFinite(o)&&t<o?null:sa(e,t)}function sa(e,t){const o=String(e?.peakProvider??"").trim().toLowerCase().replace(/^llm-/,"");return oa(t,e?.peakWindows??[],e?.peakHolidays,["volcengine","ark"].includes(o)?"volcengine":void 0)}function la(e,t){const o=e?.config,a=t??o?.peakProvider??e?.meta?.defaultProvider;return o&&a?{...o,peakProvider:a}:o}function fn(e,t,o){let a=t.prevAtMs;for(let s=0;s<16;s++){const l=sa(e,a-1);if(!l||l.inPeak!==t.inPeak||l.prevAtMs>=a)break;a=l.prevAtMs}return{start:a,progress:Math.max(0,Math.min(100,(o-a)/Math.max(1,t.nextAtMs-a)*100))}}function Pt(e,t,o){const{progress:a}=fn(e,t,o);return(t.weekend||t.holiday?a:(t.inPeak?0:50)+a/2)+"%"}function nt(e,t){const[o,a]=D(Date.now());return X(()=>{if(t!==void 0)return;let s;const l=()=>{if(window.clearTimeout(s),document.hidden)return;const r=Date.now(),i=je(e,r);a(r),s=window.setTimeout(l,Math.max(100,Math.min(3e4,(i?.nextAtMs??r+3e4)-r)))};return l(),document.addEventListener("visibilitychange",l),()=>{window.clearTimeout(s),document.removeEventListener("visibilitychange",l)}},[t,e.peakWindows,e.peakHolidays,e.peakProvider]),t??o}function ot(e){return e.holiday===!0?{short:"holidayShort",chip:"holidayChip",notice:"holidayAllOffPeak"}:e.weekend===!0?{short:"weekendShort",chip:"weekendChip",notice:"weekendAllOffPeak"}:e.inPeak?{short:"peakShort",chip:"peakShort",notice:"peakNotice"}:{short:"offPeakShort",chip:"offPeakShort",notice:"offPeakActive"}}function Me(e,t,o){const a=Math.max(0,e.nextAtMs-t),s=Math.max(1,Math.ceil(a/6e4)),l=Math.floor(s/60),r=s%60;return l>0?r>0?o("countdownHourMinute",{h:l,m:r}):o("countdownHoursOnly",{h:l}):o("countdownMinute",{m:s})}function bn(e){const t=we(null),o=we(e.actions);o.current=e.actions,X(()=>{const d=t.current;if(!d)return;try{typeof d.showPopover=="function"?d.showPopover():d.removeAttribute("popover")}catch{d.removeAttribute("popover")}let c=!1;const u=b=>{d.contains(b.target)&&(c=!0,b.stopPropagation())},f=b=>{c&&(c=!1,b.stopPropagation())},m=[["pointerdown",u],["pointerup",f],["pointercancel",f],["touchstart",u],["click",b=>{if(!d.contains(b.target))return;b.stopPropagation();const k=b.target.closest?.("[data-cm-action]");k&&!k.disabled&&o.current[k.dataset.cmAction]?.()}]];for(const[b,k]of m)window.addEventListener?.(b,k,{capture:!0,passive:!0});return()=>{for(const[b,k]of m)window.removeEventListener?.(b,k,!0);try{d.hidePopover()}catch{}}},[]);const{actions:a,children:s,...l}=e,r=n("div",{...l,ref:t,popover:"manual"},s);let i;try{i=Ne("react-dom")?.createPortal}catch{}return typeof i=="function"?i(r,document.body):r}const es="cm-peak-alert-preview";function ts(e){return e.useCost?.(o=>o)?.state?.config?.peakEnabled===!0?n(st,{...e,view:"alert"}):null}function as(e){const{config:t,t:o}=e,a=nt(t,e.now),s=je(t,a);if(s===null)return null;const l=ot(s),r=s.nextIntoPeak?o("nextPeakIn",{time:Me(s,a,o)}):o("nextOffPeakIn",{time:Me(s,a,o)});return n(J,{portal:!0,label:o(l.notice),side:"right",delayMs:300},n("div",{"data-cm-display":"peak",className:"cm-peak-strip "+(s.weekend||s.holiday?"weekend":s.inPeak?"peak":"off")},n("div",{className:"cm-peak-track"},n("div",{className:"cm-peak-segment cm-peak-high"}),n("div",{className:"cm-peak-segment cm-peak-low"}),n("div",{className:"cm-peak-marker",style:{left:Pt(t,s,a)}})),n("span",{className:"cm-peak-chip"},o(l.chip)+" · "+r)))}function ns(e){const{config:t,t:o}=e,a=nt(t,e.now),s=je(t,a);if(s===null)return null;const l=ot(s),r=s.nextIntoPeak?o("nextPeakIn",{time:Me(s,a,o)}):o("nextOffPeakIn",{time:Me(s,a,o)});return n(J,{portal:!0,label:o(l.notice),side:"right",delayMs:300},n("div",{"data-cm-display":"peak",className:"cm-peak-classic "+(s.weekend||s.holiday?"weekend":s.inPeak?"peak":"off")},n("div",{className:"cm-peak-classic-marker",style:{left:Pt(t,s,a)}}),n("div",{className:"cm-peak-track"},n("div",{className:"cm-peak-segment cm-peak-high"}),n("div",{className:"cm-peak-segment cm-peak-low"})),n("span",{className:"cm-peak-classic-chip"},o(l.chip)+" · "+r)))}let gn;function os(){return gn??=Ne.async("./client.peak.js").then(e=>e.mount({peakView:je,peakPhaseAt:oa,peakPhaseForConfig:sa,peakConfigForState:la,peakPeriodProgress:fn,usePeakClock:nt,phaseLabelKeys:ot,countdownText:Me,resolveLocale:j,makeT:z,Tooltip:J,FloatingCard:bn})).catch(e=>{throw gn=null,e})}function st(e){return n(pe,{...e,load:os,quiet:!0})}function hn(e,t,o){return t.sidebarTextOnly===!0?n(st,{config:t,t:o}):n(t?.peakStyle==="progress"?st:t?.peakStyle==="classic"?ns:as,{config:t,t:o})}function ss(e){const{config:t,t:o}=e,a=nt(t,e.now),s=je(t,a);if(s===null)return null;const l=ot(s),r=s.nextIntoPeak?o("nextPeakIn",{time:Me(s,a,o)}):o("nextOffPeakIn",{time:Me(s,a,o)}),i=[o(l.notice),r];return n(J,{portal:!0,label:i,side:"right",delayMs:300},n("div",{className:"cm-peak-rail "+(s.weekend||s.holiday?"weekend":s.inPeak?"peak":"off"),"aria-label":i.join("; ")},n("div",{className:"cm-peak-rail-track"},n("div",{className:"cm-peak-rail-segment cm-peak-rail-high"}),n("div",{className:"cm-peak-rail-segment cm-peak-rail-low"}),n("div",{className:"cm-peak-rail-marker",style:{top:Pt(t,s,a)}})),n("span",{className:"cm-peak-rail-label"},o(l.short))))}function ls(e){const{config:t,t:o}=e,a=nt(t,e.now),s=je(t,a);if(s===null)return null;const l=ot(s),r=s.nextIntoPeak?o("nextPeakIn",{time:Me(s,a,o)}):o("nextOffPeakIn",{time:Me(s,a,o)}),i=[o(l.notice),r];return n(J,{portal:!0,label:i,side:"right",delayMs:300},n("div",{className:"cm-peak-rail-classic "+(s.weekend||s.holiday?"weekend":s.inPeak?"peak":"off"),"aria-label":i.join("; ")},n("div",{className:"cm-peak-rail-classic-track"},n("div",{className:"cm-peak-rail-classic-segment peak"}),n("div",{className:"cm-peak-rail-classic-segment off"}),n("div",{className:"cm-peak-rail-classic-marker",style:{top:Pt(t,s,a)}})),n("span",{className:"cm-peak-rail-classic-label"},o(l.short))))}function rs(e,t,o){return t.sidebarTextOnly===!0?n(st,{config:t,t:o,rail:!0}):n(t?.peakStyle==="progress"?st:t?.peakStyle==="classic"?ls:ss,{config:t,t:o,rail:!0})}function is(e,t,o){const a=t.budget??{enabled:!1,amount:100,period:"month"},s=Number(t.exchangeRate),r=(e.budgetUsed??(a.period==="day"?Q(e.today,t):a.period==="all"?Q(e.total,t):Q(e.month,t)))*(Number.isFinite(s)&&s>0?s:1),i=Math.max(0,Number(a.amount)||0),d=i>0?Math.min(999,r/i*100):null,c=xe(d===null?null:Math.min(100,d),ie(t,"budget")),u=a.detail!==!1;return{level:d===null?"ok":d>=100?"over":d>=80?"warn":"ok",rail:c.label===null?"—":Math.round(c.label)+"%",body:n(E,null,n("div",{className:"cm-bbox-head"},n("span",{className:"cm-bbox-label"},o("budget")),n("span",{className:"cm-bbox-pct cm-num"},c.label===null?"—":c.label.toFixed(1)+"%")),n("div",{className:"cm-bbox-bar"},n("div",{className:"cm-bbox-fill",style:{width:c.width+"%"}})),u?n(E,null,n("div",{className:"cm-bbox-line cm-num"},o("usedOf",{used:de(r,t),amount:de(i,t)}))):null)}}function cs(e,t,o){const a=e.goQuota,s=t?.goQuota?.main==="weekly"||t?.goQuota?.main==="monthly"?t.goQuota.main:"rolling",l=a[s],r=l!==null&&typeof l?.percent=="number"?Math.max(0,Math.min(100,Number(l.percent)||0)):0,i=m=>m!==null&&typeof m?.percent=="number"?Math.round(Math.max(0,Math.min(100,m.percent)))+"%":"—",d=m=>o(m==="rolling"?"goShortRolling":m==="weekly"?"goShortWeekly":"goShortMonthly"),c=["rolling","weekly","monthly"].filter(m=>m!==s),u=l!==null&&typeof l?.resetsAt=="string"&&l.resetsAt.length>0?o("goResetAt",{time:new Date(l.resetsAt).toLocaleString()}):"",f=t?.goQuota?.detail!==!1,g=xe(r,ie(t,"go"));return{level:r>=100?"over":r>=80?"warn":"ok",rail:g.label===null?"—":Math.round(g.label)+"%",body:n(E,null,n("div",{className:"cm-bbox-head"},n("span",{className:"cm-bbox-label"},o("goQuotaRowLabel")+" "+d(s)),n("span",{className:"cm-bbox-pct cm-num"},g.label===null?"—":Math.round(g.label)+"%")),n("div",{className:"cm-bbox-bar"},n("div",{className:"cm-bbox-fill",style:{width:g.width+"%"}})),f?n(E,null,n("div",{className:"cm-bbox-line cm-num"},c.map(m=>d(m)+" "+i(a[m])).join(" · ")),u?n("div",{className:"cm-bbox-line"},u):null):null)}}function yn(e,t,o){const a=ie(t,"go");return["rolling","weekly","monthly"].map((s,l)=>{const r=e?.[s],i=typeof r?.percent=="number"&&Number.isFinite(r.percent)?Math.max(0,Math.min(100,r.percent)):null,d=r?.resetsAt&&Number.isFinite(Date.parse(r.resetsAt))?" · "+o("goResetAt",{time:new Date(r.resetsAt).toLocaleString()}):"";return o(["goWindowRolling","goWindowWeekly","goWindowMonthly"][l])+": "+(i===null?"—":Be(xe(i,a).label,a,o))+d}).concat(e?.fetchedAt>0?o("goQuotaFetchedAt",{time:new Date(e.fetchedAt).toLocaleTimeString()}):[]).join(`
2
+ window.__ModuleLoader__.load({id:"dsh-cost-meter",factory:Ne=>{var Ma={exports:{}},jt=Ma.exports;Object.defineProperty(jt,Symbol.toStringTag,{value:"Module"});const Ae=Ne("react"),{Tooltip:J}=Ne("@deepseek-ai/dsh-client-ui-primitives"),ft=!1,Kn='var(--dsw-alias-~.cm-~background:~align-items:center~font-size:~border-radius:~display:flex;~flex-direction:column;~white-space:nowrap~padding:~min-width:~font-weight:600~overflow:hidden~text-overflow:ellipsis~justify-content:~line-height:~font-variant-numeric:tabular-nums~max-width:~box-sizing:border-box~display:inline-flex;~gap:~cursor:pointer~border:~flex-wrap:wrap~flex:none~display:grid;~width:100%~margin:~position:relative;~var(--dsh-frame-top-clearance,0px)~height:100%;~text-align:right~overflow-wrap:anywhere~overscroll-behavior:contain~transform:translate(-50%);~grid-template-columns:1fr~grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));~position:absolute;~font:inherit;~font-weight:~overflow:auto;~flex-wrap:nowrap;~display:~user-select:none~padding-bottom:env(safe-area-inset-bottom)~flex:0 1 auto;~margin-top:4px~left:50%;~border-right:5px solid transparent;~flex-shrink:0~border-left:5px solid transparent;~width:auto~height:8px~transform:translate(-50%,-50%);~grid-column:1/-1~z-index:2~-webkit-app-region:no-drag;~var(--cm-opaque-base,#fff)~margin-top:6px~height:4px~transition:left .4s ease;~transition:top .4s ease;~grid-auto-flow:column;~outline:none~border-color:#34a853~height:6px;~pointer-events:auto;~var(--cm-dialog-top)~width:40px;~flex-direction:row;~var(--cm-guide-top)~outline-offset:1px~text-align:center;~margin-top:10px;~overflow-x:auto~position:fixed;~flex:0 0 auto;~top:50%;~min-height:0;~z-index:9999;~align-items:~height:12px;~height:22px;~height:56px;~height:auto;~content:"";~inset:auto;~opacity:0;~opacity:1;~width:8px;'.split("~"),Ta='Ɓsection Ɓtabs>Ɓtab{Ɠƃ;Ǝcenter;ƒ;min-height:32px;Ɖ6px 10px;ƛ0;ƦƄ13px;Ə20px;vertical-align:middle}Ɓpeak-alert{Ʒ147483647;max-height:calc(100dvh - 32px);ƨơ}Ɓpeak-alert,Ɓpeak-alert *{-webkit-app-region:no-drag}Ɓpeak-alert Ɓpeak-alert-actions{ƜƘ}Ɓpeak-alert Ɓpeak-alert-actions button{pointer-events:auto}@property --cm-dialog-top{syntax:"<length>";inherits:true;initial-value:0px}Ɓstat-dialog{--cm-dialog-top:var(--dsh-frame-chrome-top,Ɲ);inset:ǃ 0 0 0;ƛauto;width:min(1000px,94vw);Ƒcalc(100vw - 32px);max-height:calc(100vh - ǃ - 32px);ƌ;ƒ;Ɖ0;ƅ16px;Ɩ1px solid ƀborder-l1);color:ƀlabel-primary);Ƃƀbg-layer-2,ƀbg-base,#fff))}Ɓstat-dialog[open]{Ɔflex-direction:column}Ɓloading{Ɖ24px;min-height:160px;ƙƔ18px}Ɓloading i{height:18px;ƅ5px;Ƃƀbg-layer-1,#f2f3f5)}Ɓloading i:first-child{width:35%}Ɓloading i:last-child{width:65%}Ɓstat-dialog-head{Ɔƃ;Ǝspace-between;Ɣ16px;Ɖ16px 24px;border-bottom:1px solid ƀborder-l3);Ƙ}Ɓstat-dialog-head strong{Ƅ15px;Ƨ500}Ɓstat-dialog-body{ƨǎƉ20px 24px;ơ}Ɓstat-dialog::backdrop{inset:var(--dsh-frame-chrome-top,Ɲ) 0 0;Ƃ#0005}Ɓroot{ƭƊ0;Ƒ100%;LjƄ12px;Ə20px;color:ƀlabel-tertiary);ƈ;ƌ;ƍ}Ɓsession-cost{ƙgrid-template-columns:max-content minmax(0,1fr);Ɗmin-content}Ɓsession-amount{Ƒ40vw;ƌ;ƍ}Ɓsession-detail{Ɗ0;ƌ;ƍ}Ɓchip{Ɠƃ;Ɣ4px;Ƒ180px;Ɖ0 8px;ǒƅ6px;Ƃƀbg-layer-2);Ƅ12px;Ə22px;color:ƀlabel-secondary);ƈ;ƌ;ƍ}Ɓfoot{Ɔƃ;Ɣ6px;height:32px;Ɖ0 8px;ƅ8px;Ƅ12px;color:ƀlabel-secondary);ƈ;ƌ}Ɓfoot:hover,Ɓfoot-rail:hover,Ɓcorner-chip:hover,Ɓqchip:hover,Ɓtab:hover,Ɓbtn:hover{Ƃƀinteractive-bg-hover)}Ɓfoot-rail{ƚ;Ǝcenter;Ɖ0;Ƅ13px;Ƌ;color:ƀlabel-primary)}Ɓnum{Ɛ}Ɓgo-rail{Ƅ11px;Ƨ700;color:ƀlabel-primary)}Ɓgo-list{ƆƇƔ10px}Ɓgo-row{Ɔƃ;Ɣ8px;Ƅ12px}Ɓgo-label{Ƙ;width:88px;color:ƀlabel-secondary)}Ɓgo-bar{flex:1;ǁƅ3px;Ƃƀinteractive-bg-hover);ƌ}Ɓgo-fill{ƞƅ3px;Ƃƀbrand-primary)}Ɓgo-num{Ƙ;Ɗ44px;Ɵ;Ƌ;Ɛ}Ɓgo-reset{Ƙ;Ƒ230px;Ƅ11px;color:ƀlabel-tertiary);ƈ;ƌ;ƍ}Ɓgo-time{Ƅ11px;color:ƀlabel-tertiary)}Ɓgo-row.main Ɓgo-label{Ƌ;color:ƀlabel-primary)}Ɓcorner{ƓƭƗ;Ǝcenter;ƃ;Ɣ6px;Ɗ0;Ƒ100%}Ɓcorner-chip{Ɠƃ;height:20px;Ɖ0 8px;ƅ6px;Ƃƀbg-layer-2);Ƅ11px;Ə20px;color:ƀlabel-secondary);ƈ;Ɛ}Ɓqstrip{ƆƗ;Ǝcenter;ƃ;Ɣ6px;ƚ;Ƒvar(--dsh-chat-content-width,720px);ƛ0 auto;ƒ;Ɖ0 calc(var(--dsh-composer-side-clearance,0px) + 16px)}Ɓqchip{Ɠƃ;Ɣ6px;ǒƉ0 8px;ƅ6px;Ƃtransparent;Ƅ11px;Ə22px;color:ƀlabel-secondary);ƈ;Ɛ;cursor:default}Ɓqchip Ɓqlabel{color:ƀlabel-primary);Ƌ}Ɓqchip Ɓqbar{ƪblock;width:44px;ƻ;ƅ2px;Ƃƀborder-l1);ƌ;Ƙ}Ɓqchip Ɓqfill{ƪblock;ƞƅ2px;Ƃƀstate-ok-primary,#3ba272)}Ɓqchip Ɓqseg{Ɠƃ;Ɣ4px}Ɓqchip Ɓqsep{width:1px;ǑƂƀborder-l1);Ƙ}Ɓqchip Ɓqtext{color:ƀlabel-secondary)}Ɓqchip.warn Ɓqfill{Ƃƀstate-warn-primary)}Ɓqchip.over Ɓqfill{Ƃƀstate-error-primary)}Ɓqchip.action{ƕ;ƫ;ƿ}Ɓqchip.action:focus-visible{box-shadow:0 0 0 2px ƀbrand-primary)}Ɓqchip.action:active{transform:translateY(.5px)}Ɓplan-provider{ƆƇƔ8px}Ɓplan-provider+Ɓplan-provider{margin-top:14px}Ɓplan-provider-name{Ɔƃ;Ɣ8px;Ƅ13px;Ƌ}Ɓplan-updated{Ƅ11px;Ƨ400;color:ƀlabel-tertiary)}Ɓplan-tag{Ƙ;margin-left:6px;Ɖ0 6px;ƅ999px;Ɩ1px solid ƀborder-l1);Ƅ10px;Ə16px;color:ƀstate-warn-primary)}Ɓplan-reset,Ɓplan-method{Ƅ11px;color:ƀlabel-tertiary)}Ɓqguide{--cm-guide-top:var(--dsh-frame-overlay-top,calc(var(--dsh-frame-chrome-top,Ɲ) + 18px));Njǖƛ0;top:max(dž,env(safe-area-inset-top,0px));ǂƸƯƢǏƑ440px;width:calc(100% - 32px);Ɩ1px solid ƀborder-l1);ƅ12px;Ƃƀbg-layer-2);box-shadow:0 8px 28px #0000002e;Ɖ14px 16px;Ƅ13px;color:ƀlabel-primary);ƆƇƔ8px}Ɓqguide[data-cm-onboarding]{ƒ;max-height:calc(100dvh - max(dž,env(safe-area-inset-top,0px)) - 16px);ƨơ}Ɓqguide h4{ƛ0;Ƅ13px;Ƌ}Ɓqguide p{ƛ0;Ƅ12px;Ə1.6;color:ƀlabel-secondary)}Ɓqguide Ɓbuttons{ƆƔ8px;Ǝflex-end}Ɓsection{ƆƇƔ20px;Ɖ4px 2px 24px;Ƅ13px;color:ƀlabel-primary)}Ɓcards{ƙƤƔ12px}Ɓoverview-grid{container:cm-overview / inline-size;Ɗ0}Ɓoverview-grid>Ɓcards{grid-template-columns:repeat(var(--cm-overview-count,3),minmax(0,1fr))}Ɓoverview-grid Ɓcard{Ɗ0;ƆƇƔ6px;Ɖ12px 14px}Ɓoverview-grid :is(Ɓcard-title,Ɓcard-sub){ƛ0}Ɓoverview-grid Ɓcard-value{Ə1.35;Ɛ;Ơ}Ɓoverview-grid Ɓcard-sub{Ə1.5;Ơ}@container cm-overview (Ƒ460px){Ɓoverview-grid>Ɓcards{ƣ}}Ɓcards-toggle{Ɔƃ;Ɣ6px;ƛ-6px 2px 0 auto;width:fit-content;Ƅ12px;color:ƀlabel-tertiary);ƕ;ƫ}Ɓcards-toggle:hover{color:ƀlabel-primary)}Ɓcards-toggle input{ƛ0;ƕ}Ɓcard,Ɓbudget{Ɩ1px solid ƀborder-l1);ƅ12px;Ɖ14px 16px;Ƃƀbg-layer-1)}Ɓcard-title{Ƅ12px;color:ƀlabel-tertiary);ƛ0 0 8px}Ɓcard-value{Ƅ20px;Ə28px;Ƌ}Ɓcard-sub{Ƅ12px;color:ƀlabel-tertiary);Ʈ}Ɓh{Ƅ13px;Ƌ;ƛ0}Ɓcollapse-h{Ɔƃ;Ɣ8px;Ƃnone;Ɩnone;Ɖ0;ƛ0;ƕ;color:inherit;Ʀtext-align:left}Ɓcollapse-h:hover Ɓh{color:ƀinteractive-text-hover,ƀlabel-primary))}Ɓcaret{Ƙ;width:0;height:0;Ʋưborder-top:6px solid ƀlabel-secondary);transform:rotate(-90deg);transition:transform .15s ease}Ɓcaret.open{transform:rotate(0)}Ɓcollapse-body{ƆƇƔ12px;margin-top:12px}Ɓtoolbar{ƆƎflex-end;ƃ;Ɣ10px}Ɓtoolbar Ɓfield{Džƃ;Ɣ8px}Ɓtoolbar Ɓfield label{ƛ0;Ƅ12px;color:ƀlabel-tertiary)}Ɓtoolbar Ɓinput{Ɗ150px;Ɖ4px 10px}Ɓtabs-row{Ɔƃ;Ǝspace-between;Ɣ12px;Ɨ;border-bottom:1px solid var(--dsh-alias-border-l1);padding-bottom:10px}Ɓtabs{Ɔƃ;Ɣ4px;Ɨ}Ɓtab{ƦƄ13px;color:ƀlabel-secondary);Ƃtransparent;Ɩnone;ƅ8px;Ɖ6px 14px;ƕ;ƈ}Ɓtab.active{Ƃƀstate-business-primary);color:ƀlabel-primary-inverted);Ƌ}Ɓtabs-row Ɓmsg{Ɖ2px 10px}Ɓtabs-row>Ɓhint,Ɓtabs-row>Ɓmsg{margin-inline-start:auto}Ɓnote{Ƅ12px;color:ƀlabel-tertiary);ƛ0}Ɓtable{ƚ;border-collapse:collapse;Ƅ12px}Ɓtable th,Ɓtable td{text-align:left;Ɖ7px 10px;border-bottom:1px solid ƀborder-l1);ƈ}Ɓtable th{color:ƀlabel-tertiary);Ƨ500}Ɓtable td.num,Ɓtable th.num{Ɵ;Ɛ}Ɓtable tr:last-child td{border-bottom:none}Ɓtable trƁrow-click{ƕ}Ɓtable trƁrow-click:hover td{Ƃƀbg-hover,rgba(127,127,127,.08))}Ɓsess-title{Ƒ260px;ƌ;ƍ;ƈ}Ɓsess-id{Ƅ11px;font-family:ui-monospace,Consolas,monospace;color:ƀlabel-tertiary)}Ɓempty{Ƅ12px;color:ƀlabel-tertiary);Ɖ8px 0}Ɓscroll{max-height:320px;ƨƖ1px solid ƀborder-l1);ƅ10px}Ɓgrid{ƙƤƔ12px}Ɓfield{ƆƇƔ6px;Ɗ0}Ɓfield label{Ƅ12px;color:ƀlabel-secondary)}Ɓinput,Ɓinput option,Ɓinput optgroup{color:ƀlabel-primary);Ƃƀbg-base)}Ɓinput{ƦƄ13px;Ɩ1px solid ƀborder-l1);ƅ8px;Ɖ6px 10px;ƿ}Ɓinput:is(select){color-scheme:light dark}Ɓinput:is(select) :is(option,optgroup){color:ƀlabel-primary)!important;Ƃƀbg-base)!important;Ƃrgb(from ƀbg-base) r g b / 1)!important}Ɓinput:focus{border-color:ƀstate-business-primary)}Ɓinput.narrow{Ƒ120px}Ɓrange-row{Ɔƃ;Ɣ10px}Ɓrange{flex:1;Ɗ0;accent-color:ƀstate-business-primary)}Ɓrange-value{Ƙ;Ɗ44px;Ƅ12px;color:ƀlabel-tertiary);Ɵ}Ɓcheck{Ɔƃ;Ɣ8px;Ƅ13px;color:ƀlabel-primary);ƕ}Ɓpricing-page,Ɓpricing-content{ƙƔ20px;Ɗ0}Ɓpricing-heading{Ɔƃ;Ǝspace-between;Ɣ12px}Ɓpricing-heading Ɓh{Ƅ16px;margin-bottom:6px}Ɓpricing-heading Ɓnote{Ə1.6}Ɓpricing-unit{Ʊ;color:ƀlabel-tertiary);Ƅ11px}Ɓpricing-nav{ƆƔ4px;Ɖ4px;ƅ10px;Ƃƀbg-layer-1);Ɩ1px solid ƀborder-l1)}Ɓpricing-nav-item{flex:1;Ɗ0;Ʀcolor:ƀlabel-secondary);Ƃtransparent;Ɩ0;ƅ7px;Ɖ8px 10px;ƕ}Ɓpricing-nav-item.active{color:ƀstate-business-primary);Ƃƀbg-base);box-shadow:0 1px 3px #0000000d;Ƌ}Ɓpricing-nav-item:focus-visible{outline:2px solid ƀstate-business-primary)}Ɓpricing-tools{ƙƔ16px}Ɓpricing-tool{ƆƇƔ12px;Ɖ16px;Ɩ1px solid ƀborder-l1);ƅ12px;Ɗ0}Ɓpricing-tool>Ɓpeak-panel{Ɖ0;Ɩ0;Ƃnone}Ɓpricing-tool p{Ə1.65}@media(Ƒ480px){Ɓpricing-heading{ǐflex-start;ƇƔ4px}Ɓpricing-nav-item{Ɖ8px 4px;Ƅ12px}Ɓpricing-tool{Ɖ12px}}Ɓprice-card{Ɩ1px solid ƀborder-l1);ƅ10px;Ɖ12px 14px;ƆƇƔ10px;Ƃƀbg-layer-1)}Ɓprice-head{Ɔƃ;Ɣ8px;Ɨ}Ɓprice-name{Ƌ;Ƅ13px;Ơ;Ɗ0;flex:1 1 180px}Ɓprice-legacy{Ƅ11px;color:ƀlabel-tertiary);Ɩ1px solid ƀborder-l1);ƅ999px;Ɖ1px 8px}Ɓprice-locked{Ƅ11px;color:ƀstate-business-primary);Ɩ1px solid ƀstate-business-primary);ƅ999px;Ɖ1px 8px;cursor:help}Ɓprice-row{ƙgrid-template-columns:52px repeat(4,minmax(0,1fr));Ɣ8px;ƃ}Ɓprice-row span{Ƅ12px;color:ƀlabel-tertiary)}Ɓprice-row input{ƚ;Ɗ0;ƒ;Ɖ6px 5px}Ɓprice-multiplier{Ɔƃ;Ǝspace-between;Ɣ6px 12px;Ɨ;Ƅ12px;color:ƀlabel-tertiary)}Ɓprice-multiplier label{Ɠƃ;Ɣ5px;ƕ}Ɓprice-multiplier input{ƛ0;accent-color:ƀbrand-primary,#4d6bfe)}Ɓprice-row input[aria-invalid=true]{border-color:#d64c4c}Ɓbuttons{ƆƗ;Ɣ10px;ƃ}Ɓbtn{ƦƄ13px;color:ƀlabel-primary);Ƃƀbutton-elevated-fill);Ɩ1px solid ƀborder-l1);ƅ8px;Ɖ6px 14px;ƕ}ƁbtnƁstat-entry{Ƅ12px;Ə20px;Ɖ0 6px;Ɗ0;Ƒ100%;ƈ;ƌ;ƍ;Ʊ}@media(Ƒ640px){Ɓstat-header{ƪnone}}Ɓbtn.primary{Ƃƀstate-business-primary);border-color:transparent;color:ƀlabel-primary-inverted)}Ɓbtn.primary:hover{opacity:.88;Ƃƀstate-business-primary)}Ɓbtn.danger,Ɓmsg.err,Ɓbal-line.err,Ɓbal-err{color:ƀstate-error-primary)}Ɓbtn.small{Ɖ3px 10px;Ƅ12px}div:has(>[data-slot="conversation.composer.dock"] Ɓstat-entry){Ʃcolumn-Ɣ6px}Ɓmsg{Ƅ12px;Ə18px;Ɖ8px 12px;ƅ8px;Ɩ1px solid ƀborder-l1)}Ɓmsg.ok{color:ƀstate-success-primary)}Ɓhint{Ƅ12px;color:ƀlabel-tertiary)}Ɓbudget{ƆƇƔ10px}Ɓpeak-alert{Njǖƛ0;ƒ;ǂƸcolor:ƀlabel-primary);Ǐwidth:340px;Ƒcalc(100vw - 32px);Ɖ16px;ƅ14px;Ƃƀbg-layer-2);Ɩ1px solid ƀborder-l2);box-shadow:0 14px 36px #00000038;ƆƇƔ8px;Ƅ12px;animation:cm-peak-alert-in .22s cubic-bezier(.2,.8,.2,1)}Ɓpeak-alertƁpeak-alert-corner{right:20px;bottom:20px}Ɓpeak-alertƁpeak-alert-center{ǍƯƵanimation-name:cm-peak-alert-in-center}Ɓpeak-alert-peak{border-top:3px solid ƀstate-warn-primary)}Ɓpeak-alert-offpeak{border-top:3px solid ƀstate-info-primary,#3b82f6)}Ɓpeak-alert-badge{Ɠƃ;Ɣ6px;Ƅ11px;Ƌ;letter-spacing:.4px;text-transform:uppercase}Ɓpeak-alert-badge:before{ǕǙƴ;ƅ50%;ƂcurrentColor;box-shadow:0 0 0 4px color-mix(in srgb,currentColor 16%,transparent)}Ɓpeak-alert-peak Ɓpeak-alert-badge{color:ƀstate-warn-primary)}Ɓpeak-alert-offpeak Ɓpeak-alert-badge{color:ƀstate-info-primary,#3b82f6)}Ɓpeak-alert-title{Ƅ14px;Ƌ;color:ƀlabel-primary)}Ɓpeak-alert-body{color:ƀlabel-secondary);Ə1.55}Ɓpeak-alert-actions{ƆƎflex-end;Ɣ8px;margin-top:2px}Ɓrow{ƆƔ8px;ƃ;Ɨ}@keyframes cm-peak-alert-in{0%{Ǘtransform:translateY(10px) scale(.98)}to{ǘtransform:translateY(0) scale(1)}}@keyframes cm-peak-alert-in-center{0%{Ǘtransform:translate(-50%,calc(-50% + 10px))}to{ǘtransform:translate(-50%,-50%)}}Ɓbudget-head{Ɔƃ;Ǝspace-between;Ɣ8px}Ɓquota-name{flex:1;Ɗ0}Ɓbudget-bar{ƴ;ƅ999px;Ƃƀbg-layer-3);ƌ}Ɓbudget-fill{ƞƅ999px;Ƃƀstate-business-primary);transition:width .3s ease}Ɓug{ƆƇƔ12px}Ɓug-total{Ƅ13px;color:ƀlabel-primary)}Ɓug-grid{ƙƾgrid-template-rows:repeat(7,auto);Ɣ3px;ƚ}Ɓug-cell{ƚ;aspect-ratio:1/1;ƅ3px;ƒ;Ƃcolor-mix(in srgb,ƀlabel-primary) 8%,transparent);Ɩ1px solid ƀborder-l1)}Ɓug-cell.l1,Ɓug-cell.l2,Ɓug-cell.l3,Ɓug-cell.l4{border-color:transparent}Ɓug-cell.l1{Ƃcolor-mix(in srgb,ƀstate-business-primary) 25%,ƀbg-layer-3))}Ɓug-cell.l2{Ƃcolor-mix(in srgb,ƀstate-business-primary) 50%,ƀbg-layer-3))}Ɓug-cell.l3{Ƃcolor-mix(in srgb,ƀstate-business-primary) 75%,ƀbg-layer-3))}Ɓug-cell.l4{Ƃƀstate-business-primary)}Ɓug-cell.today{outline:1px solid ƀlabel-secondary);LJ}Ɓug-months{ƙƾƔ3px;ƚ;Ƅ10px;color:ƀlabel-tertiary);Ʈ}Ɓug-monthc{ƈ}Ɓbudget-line{Ƅ13px;color:ƀlabel-secondary)}Ɓbudget-line.over{color:ƀstate-error-primary)}Ɓpeak-strip{Ɔƃ;Ɣ6px;Ʈ;Ɗ0}Ɓpeak-track{ƜƆflex:1;ǁƊ0;ƅ999px;ƌ;Ɩ1px solid ƀborder-l1);Ƃƀbg-layer-3)}Ɓpeak-segment{ƞflex:1}Ɓpeak-high{Ƃ#ff9800}Ɓpeak-low{Ƃƀstate-business-primary)}Ɓpeak-marker{ƥtop:0;Ưwidth:2px;ƞƂƀbg-base);box-shadow:0 0 0 1px ƀlabel-tertiary);ƢƼƷ}Ɓpeak-chip{Ƅ11px;Ƌ;Ə1.2;ƈ;color:ƀlabel-secondary)}Ɓpeak-classic{ƜƆƇƔ5px;ƺ;Ɗ0}Ɓpeak-classic Ɓpeak-track{Ƙ;ƴ}Ɓpeak-classic-marker{ƥtop:0;Ưwidth:4px;ǑƂƀbg-base);Ɩ1.5px solid #ff9800;box-shadow:0 0 0 1px ƀbg-base),0 0 0 2px ƀlabel-tertiary);ƢƼƷ;ƅ2px}Ɓpeak-classic-marker:after{Ǖƥtop:-7px;ƯƢƲưborder-top:6px solid #ff9800}Ɓpeak-classic.off Ɓpeak-classic-marker{border-color:ƀstate-business-primary)}Ɓpeak-classic.off Ɓpeak-classic-marker:after{border-top-color:ƀstate-business-primary)}Ɓpeak-classic-chip{align-self:flex-start;Ƅ11px;Ƌ;Ə1.4;Ƃƀbg-layer-2);Ɩ1px solid ƀborder-l1);ƅ999px;Ɖ2px 8px;ƈ;color:ƀlabel-secondary)}Ɓpeak-strip.peak Ɓpeak-chip,Ɓpeak-classic.peak Ɓpeak-classic-chip,Ɓpeak-rail.peak Ɓpeak-rail-label,Ɓpeak-rail-classic.peak Ɓpeak-rail-classic-label{color:#ff9800}Ɓpeak-strip.off Ɓpeak-chip,Ɓpeak-classic.off Ɓpeak-classic-chip,Ɓpeak-rail.off Ɓpeak-rail-label,Ɓpeak-rail-classic.off Ɓpeak-rail-classic-label{color:ƀstate-business-primary)}Ɓpeak-strip.weekend Ɓpeak-chip,Ɓpeak-classic.weekend Ɓpeak-classic-chip,Ɓpeak-rail.weekend Ɓpeak-rail-label,Ɓpeak-rail-classic.weekend Ɓpeak-rail-classic-label{color:#34a853}Ɓpeak-classic.weekend Ɓpeak-classic-marker{ǀ}Ɓpeak-classic.weekend Ɓpeak-classic-marker:after{border-top-color:#34a853}Ɓpeak-rail{ƆƇƃ;Ɣ3px;DŽƒ}Ɓpeak-rail-track{ƜƆƇwidth:6px;Ǔƅ999px;ƌ;Ɩ1px solid ƀborder-l1);Ƃƀbg-layer-3)}Ɓpeak-rail-segment{ƚ;flex:1}Ɓpeak-rail-high{Ƃ#ff9800}Ɓpeak-rail-low{Ƃƀstate-business-primary)}Ɓpeak-rail-marker{ƥleft:0;Ǎƚ;height:2px;Ƃƀbg-base);box-shadow:0 0 0 1px ƀlabel-tertiary);transform:translateY(-50%);ƽƷ}Ɓpeak-rail-label{Ƅ10px;Ƌ;Ə1.2;ƈ;color:ƀlabel-secondary)}Ɓpeak-rail-classic{ƆƇƃ;Ɣ3px;DŽƒ}Ɓpeak-rail-classic-track{ƜƆƇwidth:14px;Ǔƅ999px;Ɩ1px solid ƀborder-l1);Ƃƀbg-layer-3)}Ɓpeak-rail-classic-segment{Ɯƚ;flex:1;ƌ}Ɓpeak-rail-classic-segment.peak{Ƃ#ff9800;ƅ999px 999px 0 0}Ɓpeak-rail-classic-segment.off{Ƃƀstate-business-primary);ƅ0 0 999px 999px}Ɓpeak-rail-classic-marker{ƥƯǍwidth:12px;ƻ;Ƃƀbg-base);Ɩ1.5px solid #ff9800;box-shadow:0 0 0 1px ƀbg-base),0 0 0 2px ƀlabel-tertiary);ƵƽƷ;ƅ2px}Ɓpeak-rail-classic.off Ɓpeak-rail-classic-marker{border-color:ƀstate-business-primary)}Ɓpeak-rail-classic-label{Ƅ10px;Ƌ;Ə1.2;ƈ}Ɓpeak-rail-classic.weekend Ɓpeak-rail-classic-marker{ǀ}Ɓgrid-group{grid-column:1 / -1;margin-top:8px;Ƅ12px;Ƌ;color:ƀlabel-tertiary);border-bottom:1px solid ƀborder-l1);padding-bottom:4px}Ɓgrid-group:first-child{margin-top:0}Ɓpeak-preview{margin-top:8px}Ɓtoggle-btn{Ƃnone;Ɩnone;Ɖ0;Ƅ12px;Ƌ;color:ƀstate-business-primary);ƕ}Ɓtoggle-btn:hover{text-decoration:underline}Ɓcollapsed-note{Ʈ}Ɓcatalog-vendor{ljƄ12px;Ƌ;color:ƀlabel-tertiary);border-bottom:1px solid ƀborder-l1);padding-bottom:2px;Ɔƃ;Ǝspace-between;Ɣ8px}Ɓvendor-toggle{ƕ;ƫ}Ɓvendor-toggle:hover{color:ƀlabel-secondary)}Ɓvendor-display{Ɠƃ;Ɣ4px;Ƨ400;Ƅ11px;color:ƀlabel-tertiary);ƈ}Ɓmstats-tabs{ƆƔ8px;margin-bottom:8px}Ɓmstats-tab{Ƃnone;Ɩ1px solid ƀborder-l1);ƅ999px;Ɖ2px 12px;Ƅ12px;color:ƀlabel-secondary);ƕ}Ɓmodel-costs Ɓmstats-tab.active{Ƃcolor-mix(in srgb,ƀstate-business-primary) 14%,ƀbg-base));border-color:ƀstate-business-primary);color:ƀlabel-primary);Ƌ}Ɓmstats-h{ƛ10px 0 4px;Ƅ12px;Ƌ;color:ƀlabel-secondary)}Ɓmstats-row{ƙgrid-template-columns:minmax(90px,170px) 1fr auto;Ɣ8px;ƃ;Ƅ11px;Ə1.7}Ɓmstats-name{ƌ;ƍ;ƈ;color:ƀlabel-secondary)}Ɓmstats-label{ƶ;ƆƗ;ƃ;Ɣ6px;ƺ}Ɓmstats-label Ɓmstats-name{flex:1;Ɗ90px}Ɓmstats-label~Ɓmstats-barbg{grid-column:1/3}Ɓmstats-label select{Ƒ100%;Ɗ0}Ɓmstats-barbg{Ɯheight:10px;ƅ999px;Ƃƀbg-layer-3);ƌ;ƪflex}Ɓmstats-bar{ƞƊ0;ƅ999px}Ɓmstats-bar.cost{Ƃ#ff9800}Ɓmstats-bar.hit{Ƃ#34a853}Ɓmstats-bar.value{Ƃ#a142f4}Ɓmstats-seg{ƞƊ0}Ɓmstats-seg.in{Ƃƀstate-business-primary)}Ɓmstats-seg.cache{Ƃ#ff9800}Ɓmstats-seg.out{Ƃ#34a853}Ɓmstats-val{ƈ;color:ƀlabel-secondary)}Ɓmstats-legend{ƆƔ12px;Ƅ10px;color:ƀlabel-tertiary);ƛ2px 0 4px}Ɓmstats-dot{ƪinline-block;Ǚƴ;ƅ2px;margin-right:3px}Ɓmstats-note{ljƄ10px;Ə1.6;color:ƀlabel-tertiary)}Ɓmatch-row{Ɔƃ;Ɣ8px;Ɖ3px 0;Ƅ12px;Ɨ}Ɓmatch-row Ɓinput{flex:1;Ɗ160px}Ɓbudget-controls{ƙgrid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));Ɣ12px}Ɓbbox{Ɩ1px solid ƀborder-l1);ƅ12px;Ɖ8px 10px;Ƃƀbg-layer-1);ƆƇƔ6px;Ɗ148px;ƒ}Ɓbbox.rail{Ɖ6px;Ɗ0;DŽƃ;Ǝcenter;ƅ10px}Ɓbbox.warn{border-color:ƀstate-warn-primary)}Ɓbbox.over{border-color:ƀstate-error-primary)}Ɓbbox-head{Ɔƃ;Ǝspace-between;Ɣ8px}Ɓbbox-label,Ɓbbox-pct{Ƅ12px;Ƌ;color:ƀlabel-primary)}Ɓbbox.warn Ɓbbox-pct{color:ƀstate-warn-primary)}Ɓbbox.over Ɓbbox-pct{color:ƀstate-error-primary)}Ɓbbox-bar{ǁƅ999px;Ƃƀbg-layer-3);ƌ}Ɓbbox-bar.segments{Ɔƴ}Ɓbbox-bar.segments Ɓbbox-fill{Ƙ;ƅ0;height:100%}Ɓbbox-bar.segments Ɓbbox-fill:first-child{ƅ999px 0 0 999px}Ɓbbox-bar.segments Ɓbbox-seg-today{Ƙ;ƞƂ#ff9800}Ɓbbox-bar.segments Ɓbbox-seg-spent{Ƙ;ƞƂƀinteractive-bg-hover);ƅ0 999px 999px 0}Ɓbbox-bar.segments.rev Ɓbbox-fill:first-child,Ɓbbox-bar.segments.rev Ɓbbox-seg-today:first-child{ƅ999px 0 0 999px}Ɓbbox-bar.segments.rev Ɓbbox-fill,Ɓbbox-bar.segments.rev Ɓbbox-fill:last-child,Ɓbbox-bar.segments.rev Ɓbbox-seg-today:last-child,Ɓbbox-bar.segments.rev Ɓbbox-seg-spent:last-child{ƅ0 999px 999px 0}Ɓbbox-bar.segments.rev Ɓbbox-seg-spent{ƅ0}Ɓdir-row{Ɔƃ;Ɣ8px;ƺ}Ɓdir-label{flex:1 1 40%;Ƅ12px;color:ƀlabel-secondary)}Ɓdir-row Ɓinput{flex:1 1 60%;Ƴ}Ɓbbox-fill{ƞƅ999px;Ƃƀstate-business-primary)}Ɓbalance-name{Ɠƃ;Ɣ4px;Ɗ0}Ɓmodel-costs{Ƅ12px}Ɓmodel-costs Ɓbal-label{ƈ}Ɓmodel-top{Ɣ4px;Ƒ180px;ƌ;ƍ}Ɓmodel-costs Ɓcollapse-h{Ɗ0;ƚ;ƈ}Ɓmodel-costs Ɓbbox-bar{margin-top:3px}Ɓbal-label{Ɗ0;ƌ;ƍ}Ɓbal-amt{margin-left:auto;Ɵ;Ʊ}Ɓbbox-pctƁbal-amt{color:ƀstate-business-primary)}Ɓbal-link{Ƙ;Ɠƃ;Ǝcenter;Ɖ2px;ƅ4px;Ƅ12px;Ə16px;color:ƀlabel-tertiary);text-decoration:none;ƿ}Ɓbal-link:hover{color:ƀbrand-primary);Ƃƀinteractive-bg-hover)}Ɓbal-link:focus-visible{box-shadow:0 0 0 2px ƀbrand-primary)}Ɓbbox.warn Ɓbbox-fill,Ɓbbox Ɓbbox-section.warn Ɓbbox-fill,Ɓbbox Ɓmm-row.warn Ɓbbox-fill,Ɓbudget-fill.warn{Ƃƀstate-warn-primary)}Ɓbbox.over Ɓbbox-fill,Ɓbbox-section.over Ɓbbox-fill,Ɓmm-row.over Ɓbbox-fill,Ɓbudget-fill.over{Ƃƀstate-error-primary)}Ɓbbox-line{Ƅ12px;color:ƀlabel-tertiary)}Ɓbbox-rail{Ƅ11px;Ƌ;color:ƀlabel-primary)}Ɓbbox.warn Ɓbbox-pct,Ɓbbox.warn Ɓbbox-rail,Ɓbbox Ɓbbox-section.warn Ɓbbox-pct,Ɓbbox Ɓmm-row.warn Ɓbbox-pct,Ɓmm-row.warn Ɓbbox-label,Ɓcorner-chip.warn,Ɓqchip.warn,Ɓsimple-summary.warn{color:ƀstate-warn-primary)}Ɓbbox.over Ɓbbox-pct,Ɓbbox.over Ɓbbox-rail,Ɓbbox-section.over Ɓbbox-pct,Ɓmm-row.over Ɓbbox-pct,Ɓmm-row.over Ɓbbox-label,Ɓcorner-chip.over,Ɓqchip.over,Ɓsimple-summary.over{color:ƀstate-error-primary)}Ɓbbox-pair{ƆƇƔ0;Ɖ2px 10px}Ɓbbox-pair Ɓbbox-section{ƆƇƔ4px;Ɖ4px 0}Ɓbbox-pair Ɓbbox-bar{ƻ}Ɓbbox-divider{height:1px;Ƃƀborder-l1);ƛ0}Ɓbbox.clickable,Ɓfoot.clickable{ƕ}Ɓbbox.clickable:hover{border-color:ƀstate-business-primary)}Ɓbbox.clickable:focus-visible,Ɓfoot.clickable:focus-visible{outline:2px solid ƀstate-business-primary);LJ}@keyframes cm-click-refresh-pulse{0%,to{opacity:.55}50%{opacity:1}}Ɓbbox.clickable.busy,Ɓfoot.clickable.busy{animation:cm-click-refresh-pulse 1.1s ease-in-out 2;cursor:progress}Ɓmm{Ɖ8px 10px;Ɣ4px}Ɓmm-title{Ƅ12px;Ƌ;color:ƀlabel-primary)}Ɓmm-reset{Ƅ11px;color:ƀlabel-tertiary);ƶ}Ɓcodex-head>Ɓmm-title{Ɗ0;ƌ;ƍ;ƈ}Ɓcodex-resets{Ƙ;Ɵ}Ɓcodex-resets>span{ƪblock}Ɓfooter-stack.compact Ɓbbox[data-cm-display=codex]{grid:auto/1fr}Ɓbbox.rail[data-cm-display=codex] Ɓbbox-rail{Ƒ100%;Ơ;LjƄ10px}Ɓgw-switcher{ƕ;ƫ;Ƅ11px;Ɖ1px 6px;ƅ999px;Ɩ1px solid ƀborder-l1);Ƃƀbg-layer-2);color:ƀlabel-secondary)}Ɓgw-switcher:hover{Ƃƀinteractive-bg-hover);color:ƀlabel-primary)}Ɓgw-sub{Ƅ11px;color:ƀlabel-tertiary);ƌ;ƍ;ƈ}Ɓmm-row{Ɔƃ;Ɣ8px;Ɖ2px 0}Ɓmm-sub{Ƅ11px;Ə16px;padding-bottom:4px;color:ƀlabel-tertiary)}Ɓmm-sub.warn{padding-bottom:0;color:ƀstate-warn-primary)}Ɓmm-row Ɓbbox-label{Ƙ;Ƴ;Ɗ22px;Ƒ115px;Ƨ400;color:ƀlabel-secondary);Ɛ;ƈ;ƌ;ƍ;word-break:keep-all}Ɓmm-row Ɓbbox-bar{flex:1;Ɗ40px;height:6px}Ɓmm-row Ɓbbox-pct{Ƙ;Ɗ2.4em;Ɵ;Ɛ}Ɓmm-row.wide Ɓbbox-label{Ƴ;Ƒ64px;ƭƈ;ƌ;ƍ}Ɓmm-row.wide Ɓmm-text{flex:1;Ɗ0;Ƅ12px;color:ƀlabel-secondary);Ɵ;Ɛ;ƈ;ƌ;ƍ}Ɓbal-line{Ƅ13px;color:ƀlabel-secondary)}Ɓbal-line.warn{color:ƀstate-warn-primary,#b45309)}:has(>Ɓfooter-stack),:has(>[data-slot="sidebar.footer.action"]>Ɓfooter-stack){Ɨ;njǔǎalign-content:flex-start}:has(>div>[data-slot="sidebar.footer.action"]>Ɓfooter-stack){njǔmin-height:0}:has(>Ɓfooter-stack.rail),:has(>[data-slot="sidebar.footer.action"]>Ɓfooter-stack.rail){ƇƩƃ;Ɣ6px}Ɓfooter-stack{ƆƘ;order:-1;ƇƔ6px;ƚ;Ɗ0;Ƒ100%;ǐstretch;ƒ}Ɓfooter-stack.rail{ƃ;order:1}Ɓfooter-stack Ɓbbox{ƚ;Ɗ0}Ɓfooter-stack Ɓfoot{ƚ;ƒ}Ɓfooter-stack Ɓfoot:not(Ɓfoot-rail){Ǝspace-between}Ɓmodel-costs Ɓcollapse-h{ƚ}Ɓmodel-costs Ɓcollapse-h>Ɓbal-amt{margin-left:auto}Ɓfooter-stack.compact Ɓbbox{ƙgrid-template-columns:repeat(2,minmax(0,1fr));column-Ɣ12px;row-Ɣ2px;ƃ}Ɓfooter-stack.compact Ɓbbox>*{ƶ}Ɓfooter-stack.compact Ɓbbox>Ɓmm-row:not(Ɓmm-title){grid-column:auto}Ɓfooter-stack.compact Ɓmm-row{Ɗ0;Ɣ4px;flex-wrap:nowrap}Ɓfooter-stack.compact Ɓmm-row Ɓbbox-label{ƭƊ0;Ƒ45%;Ƴ}Ɓfooter-stack.compact Ɓmm-row Ɓbbox-bar{Ɗ0;flex:1 1 0}Ɓfooter-stack.simple{Ɣ0;max-height:38vh;max-height:min(38dvh,320px);ƨơ;scrollbar-width:thin;Ɩ1px solid ƀborder-l1);ƅ10px;Ƃƀbg-layer-1)}Ɓfooter-stack.simple>*{Ʊ}Ɓfooter-stack.simple:focus-visible{outline:2px solid ƀstate-business-primary);outline-offset:2px}Ɓfooter-stack.simple Ɓbbox{Ɩ0;ƅ0;Ɖ4px 8px;Ɣ2px;Ƃtransparent;box-shadow:inset 0 -1px ƀborder-l1)}Ɓfooter-stack.simple Ɓmm-title{Ƅ11px;Ə16px;ƛ0}Ɓfooter-stack.simple Ɓmm-row{Ɣ6px;min-height:16px;Ə16px;ƛ0;Ɖ0}Ɓfooter-stack.simple Ɓmm-text{Ƅ11px}Ɓfooter-stack.simple>Ɓpeak-strip,Ɓfooter-stack.simple>Ɓpeak-classic{ƛ0;Ɖ4px 8px}Ɓsimple-summary>span{Ɗ0;ƈ;ƌ;ƍ}Ɓfooter-stack.simple Ɓbbox-pct{Ƅ12px;Ə18px}Ɓfooter-stack.simple Ɓbbox-bar{ƻ}Ɓfooter-stack.simple Ɓbbox-line{ƪnone}Ɓfooter-stack.simple Ɓfoot{height:26px;Ɖ0 8px}Ɓfooter-stack.simple Ɓpeak-classic{margin-top:2px;Ɣ2px}Ɓfooter-stack.simple Ɓpeak-classic-chip{Ɖ0 4px;Ɩ0;Ƃtransparent}Ɓsimple-summary{position:sticky;top:0;z-index:1;Ƃƀbg-layer-1);ƆƎspace-between;ƃ;Ɣ8px;Ɖ5px 8px;Ƅ12px;Ƌ;border-bottom:1px solid ƀborder-l1)}Ɓfooter-stack.simple.rail{Ɩ0;Ƃtransparent}Ɓfooter-stack.simple.rail Ɓbbox{Ɖ4px 2px}Ɓfooter-stack.simple Ɓpeak-rail-track,Ɓfooter-stack.simple Ɓpeak-rail-classic-track{height:28px}Ɓfooter-stack.text-only Ɓbbox-bar{ƪnone}Ɓfooter-stack.text-only:not(.rail) Ɓbbox{Ɖ4px 8px;Ɣ2px}Ɓfooter-stack.text-only:not(.rail) Ɓmm{ƆDžƗ;Ɣ2px 12px;ƃ}Ɓfooter-stack.text-only:not(.rail) Ɓmm>Ɓmm-title,Ɓfooter-stack.text-only:not(.rail) Ɓcodex-head,Ɓfooter-stack.text-only:not(.rail) Ɓmm-reset{flex:1 0 100%;Ɗ0}Ɓfooter-stack.text-only:not(.rail) Ɓmm-row:not(Ɓmm-title){Ɣ4px;Ɖ0;Ɗ0;Ƒ100%}Ɓfooter-stack.text-only Ɓmm-row Ɓbbox-label{Ƒ115px;flex:0 1 auto}Ɓfooter-stack.text-only Ɓmm-row Ɓbbox-pct{Ɗ0}@media(Ƒ640px){Ɓcards,Ɓgrid,Ɓbudget-controls{ƣ}}@media(Ƒ1023px){Ɓsection{padding-bottom:calc(16px + env(safe-area-inset-bottom))}Ɓcards,Ɓoverview-grid>Ɓcards,Ɓgrid,Ɓbudget-controls{ƣ;Ɣ8px}Ɓcard{Ɖ10px 12px}Ɓcard-value{Ƅ17px}Ɓcard-sub,Ɓbal-line,Ɓbal-amt{Ơ}Ɓbuttons,Ɓtoolbar,Ɓrow,Ɓbudget-head{Ɨ}Ɓbtn,Ɓtab,Ɓfoot,Ɓcorner-chip{min-height:36px;height:auto}Ɓtabs{ƩNJ}Ɓtab{Ƙ}Ɓqstrip{Ɖ0 8px}Ɓqguide{Ƒcalc(100vw - 24px);--cm-guide-top:var(--dsh-frame-overlay-top,calc(var(--dsh-frame-chrome-top,Ɲ) + 10px + env(safe-area-inset-top)))}Ɓpeak-alert{Ƒcalc(100vw - 24px)}Ɓpeak-alertƁpeak-alert-corner{right:12px;left:12px;bottom:calc(12px + env(safe-area-inset-bottom));Ƴ}Ɓfooter-stack{Ƭ}Ɓstat-dialog-body{Ɖ14px;padding-bottom:calc(14px + env(safe-area-inset-bottom))}}body[data-dsh-pocket-layout=mobile] :is(Ɓcards,Ɓoverview-grid>Ɓcards,Ɓgrid,Ɓbudget-controls){ƣ;Ɣ8px}body[data-dsh-pocket-layout=mobile] Ɓtabs{ƩNJ}body[data-dsh-pocket-layout=mobile] Ɓfooter-stack{Ƭ}body[data-dsh-pocket-layout=mobile] :is(Ɓpeak-alert,Ɓqguide){Ƒcalc(100vw - 24px)}body{--cm-opaque-base:#fff}body[data-ds-dark-theme],body[data-theme=dark],html[data-theme=dark] body{--cm-opaque-base:#151517}Ɓsection,Ɓstat-dialog,Ɓqguide,Ɓpeak-alert,Ɓfooter-stack.simple{Ƃƹ;Ƃrgb(from ƀbg-layer-2,ƀbg-base,#fff)) r g b / 1)}Ɓtoday-values{ƓƗ;Ǝflex-end;Ɣ2px 8px;Ɗ0;Ƒ100%}Ɓtoday-values>span{ƈ}Ɓtoday-values[data-both=true]>[data-cm-today=tokens]{Ƅ11px;color:ƀlabel-secondary)}Ɓsimple-summary{Ƃƹ;Ƃrgb(from ƀbg-layer-1,ƀbg-base,#fff)) r g b / 1)}'.replace(/[ƀ-ǿ]/g,e=>Kn[e.charCodeAt(0)-384]),Ra="dsh-cost-meter/client.css";if(typeof document<"u"&&document.head!==void 0){const e=document.querySelector("style[data-plugin-css="+JSON.stringify(Ra)+"]");if(e?.textContent!==Ta){const t=e??document.createElement("style");t.dataset.plugin="dsh-cost-meter",t.dataset.pluginCss=Ra,t.textContent=Ta,e===null&&document.head.appendChild(t)}}const Gn="sessionCostTitle|sessionDetailTokens|sessionDetailCache|cost|sessionLine|sessionLineCompact|sessionCostCompact|quotaUnlimited|pricingCnyHint|balanceQueryFailed|unknownError|balance|officialBalance|quotaComposer|quotaSidebarSettings|quotaSidebarComposer|quotaSettingsComposer|quotaAllPositions|queryFailed|balanceTitle|reconcileLabel|totalBalance|grantedToppedUp|updatedAt|budgetOf|usedOf|todayShare|monthTotal|budget|todayCostTitle|todayTokensTitle|tokensUnit|callsTokens|monthCost|totalCost|today|sidebarTodayMetric|sidebarTodayCost|sidebarTodayTokens|periodDay|periodMonth|periodAll|periodCustomRange|noHistory|colDate|colCalls|colInTok|colCacheTok|colOutTok|colCost|noSessionsToday|colSession|enableBudget|budgetAmountLabel|budgetPeriodLabel|startDate|endDate|rangeText|budgetDisabledNote|budgetStatus|overLimit|nearLimit|legacyModel|defaultFallback|remove|tierBase|tierOffPeak|tierPeak|balanceApiKey|balanceKeyHint|balanceLine|balanceQueryFailedHint|balanceNotQueried|accountBalance|refreshing|refreshBalance|customBalanceTitle|customBalanceAdd|tokenRhythmBalanceAdd|tokenRhythmBalanceNote|aliyunBalanceAdd|aliyunBalanceNote|customBalanceConfigNote|customBalanceLabelZh|customBalanceLabelEn|customBalanceUrl|customBalanceUrlHint|customBalanceHttp|workBuddyBalanceAdd|workBuddyBalanceNote|customBalanceMethod|customBalanceHeaders|customBalanceBody|customBalanceBodyNote|customBalanceExtract|customBalanceDisplayLabel|customBalanceRefreshInterval|customBalanceUnitLabel|customBalanceConvert|customBalanceConvertNote|balanceBarRemaining|balanceBarToday|balanceBarSpent|barDirectionsTitle|barDirection_balance|barDirection_budget|barDirection_go|barDirection_plan|barDirectionRemaining|barDirectionUsed|balanceBudgetCapLabel|customBalanceInvalidJson|customBalanceHeadersVarNote|customBalanceAllowedHosts|customBalanceAllowedHostsHint|customBalanceCredentialsTitle|customBalanceCredentialsHint|customBalanceNoPlaceholders|enable|customBalanceLine|customBalanceRemaining|refreshCustomBalance|goQuotaTitle|goQuotaRowLabel|goWindowRolling|goWindowWeekly|goWindowMonthly|goResetAt|resetReached|resetDays|resetHours|resetMinutes|quotaResetInHm|quotaResetInM|quotaResetAt|quotaForecastHit|quotaUsed|quotaRemaining|goQuotaPercent|goQuotaFetchedAt|goQuotaDisplayLabel|goQuotaRefreshIntervalLabel|goQuotaRefreshMinutesUnit|goQuotaKeyLabel|goMainLabel|goDetailLabel|credentialConfiguredOf|credentialNotConfigured|credentialSave|credentialEdit|credentialClear|credentialSaving|credentialInputHint|secretMigrationPending|budgetDetailLabel|refreshGoQuota|goQuotaNotQueried|codingPlanAnthropic|codingPlanZai|codingPlanMinimax|codingPlanMinimaxTitle|minimaxOrigin|minimaxOriginNote|codingPlanRemain5h|codingPlanRemain7d|balanceRechargeLink|codexQuotaTitle|codexQuotaEnable|codexQuotaFive|codexQuotaWeek|codexQuotaReset|codexQuotaUnavailable|codexQuotaEnabled|codexQuotaSidebar|codexQuotaStrip|includeSubagentCost|gatewayQuotaEmpty|codingPlanDisplayLabel|codingPlanKeyLabel|codingPlanRefreshIntervalLabel|refreshCodingPlan|loginCodingPlan|loggingIn|codingPlanNotQueried|gatewayQuotaTitle|gatewaySourceAdd|gatewaySourceLabel|gatewaySourceBaseURL|gatewaySourceDisplay|gatewaySourceRefreshInterval|gatewaySourceAllowlist|gatewaySourceCredential|gatewaySourceStatus|gatewaySourceUnsupported|gatewaySourceUnknown|gatewaySourceNoAccounts|gatewaySourceFetchedAt|gatewaySwitchAccount|gatewayOnlyGemini|refresh|quotaEnableFirst|quotaRefreshReady|quotaRemove|quotaSectionNote|goQuotaDisabledNote|cornerLabel|cornerGoRolling|cornerGoWeekly|cornerGoMonthly|cornerBudget|goShortRolling|goShortWeekly|goShortMonthly|goShortDaily|budgetShort|ledgerReadFailed|readingLedger|ledgerUnavailable|syncFailed|historyCleared|clearFailed|peakOff|peakNotEffective|peakActive|peakNotice|offPeakActive|weekendAllOffPeak|weekendChip|weekendShort|holidayAllOffPeak|holidayChip|holidayShort|peakHolidaysLabel|weekendRuleNote|peakShort|offPeakShort|peakStyleLabel|peakStyleCompact|peakStyleClassic|peakAlertLabel|peakAlertAheadLabel|peakAlertTargetLabel|peakAlertTargetPeak|peakAlertTargetOffPeak|peakAlertTargetBoth|peakAlertTitlePeak|peakAlertTitleOffPeak|peakAlertBody|peakAlertPhasePeak|peakAlertPhaseOffPeak|peakAlertBtn|peakAlertBadgePeak|peakAlertBadgeOffPeak|peakAlertPositionLabel|peakAlertPositionCorner|peakAlertPositionCenter|peakAlertWebNotifyLabel|peakAlertWebNotifyHint|peakAlertPreviewLabel|peakAlertPreviewPeak|peakAlertPreviewOffPeak|peakAlertPreviewTag|peakPanelTitle|peakNoticeHiddenHint|groupGeneral|groupMoney|groupSidebar|sidebarSimple|sidebarSimpleNote|closeGuide|todayBudget|sidebarStyleLabel|sidebarStyleStandard|sidebarStyleCompact|restorePriceMatches|removePriceMatchHint|groupCorner|groupDetail|unmountBtn|catalogUnpriced|priceLockBadge|priceLockHint|priceLockRelease|modelStatsTitle|modelsTitle|modelsCount|modelsOther|models_enabled|models_defaultOpen|models_remember|models_tokens|models_shares|models_dock|models_period|models_summary|models_position|models_topN|models_refreshSeconds|modelsTotal|modelsTop|modelsFirst|modelsAfter|modelsLast|modelStatsToday|modelStatsHistory|modelStatsCostH|modelStatsTokensH|modelStatsHitH|modelStatsHitUnreported|modelStatsHitUnreportedTip|modelStatsValueH|modelStatsInput|modelStatsCache|modelStatsOutput|modelStatsEmpty|modelStatsBlended|modelStatsNote|modelStatsLegacy|sessionLineSplit|sessionLineSplitCompact|costChipPlan|sessionDetailPlan|planStatsTitle|planStatsEmpty|planStatsWindow|planStatsPercent|planStatsLocal|planStatsPer1|planStatsFull|planStatsResets|planStatsMethodSample|planStatsMethodLive|planStatsMethodNone|planStatsMethodSampleAt|planStatsConfidenceLow|planStatsCurveTitle|planStatsDaily|planStatsWeekly|planStatsMonthly|planStatsCurveEmpty|planStatsBarTip|planStatsNote|billingClassLabel|billingClassPlan|billingClassAuto|billingClassApi|catalogDisplayLabel|catalogDisplayHint|priceTableDisplayHint|priceMultiplySeparate|priceMultiplyHint|priceMultiplyAll|priceMultiplySingle|priceMultiplyInvalid|priceMatchLabel|priceMatchAuto|priceMatchExact|priceMatchNote|unmatchedTitle|unmatchedHint|overrideTargetDefault|overrideRemove|overrideTargetLocal|matchedTitle|matchedHint|matchedKeepAuto|overrideNone|mountedSuffix|flatInput|flatCached|flatCacheWrite|cacheWriteFallback|flatOutput|deepseekMountedHeader|codingPlanKimi|codingPlanOpenrouter|codingPlanSiliconflow|codingPlanCommandcode|codingPlanClinepass|codingPlanScnet|codingPlanVolcengine|codingPlanQwen|codingPlanMimo|codingPlanBaidu|quotaUsedTotal|wbT|wbH|codingPlanFactory|codingPlanOpendesign|opendesignWorkspace|opendesignNote|factoryPool|factoryPoolBoth|factoryOrg|mimoWindowPlan|mimoWindowCompensation|codingPlanWindowBalance|qwenSource|qwenSourceLocal|qwenSourceCli|qwenSourceBailian|qwenCliNote|qwenBailianNote|qwenPlanCreditsLabel|qwenPlanStartLabel|qwenRatesLabel|qwenRatesModelPlaceholder|qwenRatePlaceholder|qwenRate_input|qwenRate_cachedInput|qwenRate_output|qwenRateDraftNote|qwenRatesAdd|qwenLocalNote|scnetPlanCreditsLabel|scnetPlanStartLabel|scnetLocalNote|volcengineAccessKeyIdLabel|volcengineSecretAccessKeyLabel|volcengineAccessKeyPlaceholder|volcengineSecretPlaceholder|countdownHoursOnly|countdownHourMinute|countdownMinute|nextOffPeakIn|nextPeakIn|peakSummary|noPeakWindows|unknown|cardToday|cardMonth|cardTotal|cardTotalSub|externalUsage|combinedUsage|externalStale|externalHistory|cardsFootnote|timezoneHint|todaySessions|historyExpandHint|historySessionsLoading|historyNoSessions|historySessionsError|sessionRankTitle|sessionRankHint|sessionRankEmpty|sessionRankLoading|sessionRankError|sessionRankLimit|cardsTogglePlanTotal|cardsTogglePlanTotalHint|hideSessionCostHeader|hideSessionCostDock|hideTurnCost|sessionRankSort|sessionSortCostDesc|sessionSortCostAsc|sessionSortTimeDesc|sessionSortTimeAsc|sessionSortRecent|history|usageTitle|usageTotal|usageDay|usageEmpty|usageSectionLabel|displaySettings|tabOverview|tabQuotas|tabUsage|tabPricing|tabDisplay|historyDataTitle|positionLabel|positionDock|positionHeader|off|quotaStripShowBudget|quotaStripShowGo|quotaStripShowPlans|pageLoadTimeout|balanceHidden|balanceToggle|clickToRefresh|balanceClickGuideBody|balanceClickGuideOk|sidebarLabel|sidebarOn|currencyLabel|currencyCny|currencyUsd|currencyEur|symbolLabel|rateLabel|decimalsLabel|balanceDisplayLabel|balanceSidebar|balanceSettings|balanceBoth|refreshIntervalLabel|peakEnabledLabel|peakNoticeLabel|badgeNote|priceTableTitle|pricingCurrencyLabel|pricingCurrencyUsd|pricingCurrencyCny|pricingCurrencyNote|priceTableNote|datedPriceNote|defaultModelId|newModelPlaceholder|addModel|dataSync|saving|autoSaveFailed|autoSavedAt|autoSaveHint|confirmFetch|apply|cancel|syncFromDocs|syncScopeNote|confirmReset|importLegacy|confirmImportLegacy|legacyImportFailed|legacyImportNote|confirmClear|clearAllHistory|lastSync|neverSynced|source|sourceOfficial|sourceBundled|languageLabel|localeAuto|localeZh|localeEn|sectionLabel|rpcFailed|rpcSyncFailed|rpcBalanceFailed".split("|"),zn="额度|amount|显示|价格|余额|费用|DeepSeek|模型|Token Plan|off-peak|会话|缓存|输入|Plan|official|session|time|quota|刷新|balance|prices|tokens|自动|计费|自定义|weekends and Chinese public holidays are|官方|Token|display|message|the|output|调用|input|credential|凭据|预算|Balance|cache|今日|金额|Refresh interval|中国公众假期全天谷价|同步|失败|峰时高价时段显著提示|时段|用量|OpenCode Go|历史|峰时|输出|calls|price|details|以同一系统账号运行|侧边栏|cost|currency|分钟|图框详细信息|已用|当前|Credits|Refresh|refresh|usage|WorkBuddy2API|and|period|保存|本地|留空|设置|请求|读取|Codex|interval|model|optional|position|Budget|DescribeBillingAccount|account|credits|failed|history|位置|匹配|命中|小时|币种|数据|记录|谷时|账本|Strip includes|rates|source|启用|峰谷|订阅|配置|Chinese|Sidebar|minutes|人民币|右下角|Cache|automatically|month|Coding|Enable|OpenDesign|YYYY-MM-DD|auth login|billed|configured|planAmount|全部|剩余|可选|提示|时间|更新|本月|查询|登录|统计|谷价|进入|默认|Off-peak|Quota not queried|Settings|browser|current|default|is an upper bound|local ledger|never echoed back|settings|sidebar|subscription|workspace ID|法定假日|逗号分隔|API|AccessKey|Output|Preview entering|WorkBuddy|budget|including|ledger|remaining|workspace|主机|使用|密钥|工作区|恢复|日期|暂无|浏览器|清除|点击|积分|累计|账号|重置|隐藏|Today|empty|local|a catalog entry|comma-separated|deepseek-v4-pro|only|peak|this|导入安装前|开始对话后|汇总在这里|过期后重新|Monthly|pricing|Cookie|Entering|Failed to load|Input|Official|Provider|a vendor group|built-in table|custom|enough samples|historical|stay unchanged|to restore|toppedUp|total|估算|侧栏|取消|名称|周末|安装|展开|开启|手动|挂载|提醒|明细|来源|添加|确认|美元|间隔|Alibaba Cloud|Authorization|Remaining|effective|estimates|overrides|qianwenai|table|框上方|横条含|白名单|Bottom-right|Content-Type|Cost|Custom|Display|English|JSON|MiniMax|Session|This|Updated|Volcano|console|date|granted|hitRate|method|notification|rate|records|restore|same OS user|used|上方|下方|关闭|内置|写入|单价|后续|周期|图框|填写|导入|开放平台|按自然月|排行加载|支持|滚动|火山引擎|环境变量|移除|等值|覆盖|计价|采样区间|预览|Flash|Peak|Quota|SiliconFlow|application|apply|are|auto-detect|bailian-cli|composer|environment|full-window|host|matching|max-preview|open-design|pre-install|qianwen-cli|token|unavailable|Auto-match|Claude Pro|Cline Pass|Credential|Management|OpenRouter|Remove|Resets|Show|Sign in at|Volcengine|Weekly|aggregated|data|exactly at|from|hours soon|multiplier|percentage|status|window|with|不计|保留|倍率|全天|加载|勾选|区间|基础|复制|实际|度条|影响|文档|日志|未知|档位|渠道|生效|端口|编辑|账户|这里|采样|DSH|History|Unknown|Weekend|address|changes|count|headers|hours|ranking|reads|request|Anthropic|Clear all|Kimi Code|Topped-up|all|auto-sync|dashboard|page|precision|providers|reasoning|signed-in|subagents|占位符|子代理|性价比|抵扣率|控制台|未上报|标题栏|百分比|知道了|表条目|起始日|这一项|阿里云|for|use|Base URL|Click|Currency|DevTools|External|HTTPS|Moonshot|Security|Source|actual|calendar|click|deepseek|enable|estimate|follow|limit|name|notice|override|priority|provider|range|read|recorded|requires|sample|select|snapshot|stay|store|subtract|today|write|上限|不会|中文|优先|修改|充值|其他|分别|切换|删除|北京|千问|卡片|厂商|发现|发送|只写|可在|可用|可能|后的|地址|外部|对账|弹窗|当日|快照|总额|折算|推理|方向|时区|最多|本周|标准|格式|每日|汇率|消耗|满窗|用于|精度|精确|路径|选择|页面|Amounts|Beijing|Billing|ChatGPT|Compact|Confirm|Control|Default|Extract|Factory|Granted|HTTP|Include|Key|Loading|Mounted|Network|Qwen|Request|Used|accepts|applies|bundled|channel|earlier|expired|full|gateway|holiday|include|loading|missing|percent|plan|plugins|qianwen|removed|replace|unknown|when|Local|ROUTE|USD|Usage|above|alert|below|equiv|first|key|match|start|value|CNY|Gemini|Ledger|NewApi|OPENAI|Public|Recent|Rhythm|Saving|active|change|corner|direct|divide|fields|here|hidden|import|logs|manual|not|openai|origin|pct|port|reason|remain|resets|studio|sync|上下|上界|不足|为准|仍在|保持|允许|入口|包含|即将|原因|发生|同名|后可|后缀|回放|回显|回退|域名|填入|处于|套餐|字段|对应|屏幕|工具|平价|应用|底部|开关|悬停|打开|按量|放行|早期|时刻|最近|月度|权限|条数|样式|样本|版本|状态|界面|百炼|直接|窗口|符号|类型|紧凑|缺失|网关|网络|网页|花费|英文|表内|表外|规则|语言|请在|账单|货币|赠送|超出|跟随|通知|重试|Add|box|CLI|Hide|KEY|Open|Sync|VAR|When|clear|copy|day|dock|docs|each|left|saved|that|tok|will|yet|your|All|Pro|bar|Auto|Save|auto|back|card|old|per|save|show|Top|com|low".split("|"),Le=Object.fromEntries([["zh",'本Ɗƅ(按每次Ơˈτ͊Ɨ)|ƌ {ơ} · Ƌ {Ʀ} · Ƴ {Ɵ}|Ƌ:读 {̕} · 写 {̟}(ʁ按Ǚ价Ɨ)|ƅ {Ɓ}|本Ɗ {Ɓ} · Ǚ {ɵ} · ƌ {ơ} · Ƌ {Ʀ} · Ƴ {Ɵ}|本Ɗ {Ɓ}|仅Ƃƨ|无限制|ƾǪƨ来自əƃ × ͅ {ɸ}。对照ƚǪϟ,请͌ ΃,再ƫƃ;ƫ仅ˊʃƠ。|ƄǾƬ:{Ɲ}|ˍ错误|Ƅ|Ɔ Ƅ|ƌɣ|ɋ和lj页|ɋ和ƌɣ|lj页和ƌɣ|ǷǗ|ǾƬ|Ɔ ʈ˓Ƅ|ƚƄ变动与LJǟ交叉̷(偏差超阈时Ǻ)|总Ƅ {Ɓ}|ϡ {ɴ} · ̥ {Ɉ}|Ǽǻ {Ɛ}|Ƥ({Dž})|ƽ {ɼ} / {Ɓ}|Ƨ {Ɓ} · 占Ƥ {Κ}|ǽ {Ǯ} · Ȩ {ɉ}|Ƥ|Ƨƅ(按ƚƃ͊Ɨ)|Ƨ ƛ Ư|ƕ|Ơ {ƴ} 次 · ƌ {ơ} · Ƌ {Ʀ} · Ƴ {Ɵ}|ǽ {Ɓ}|Ȩ {Ɓ}|Ƨ|ƸƧƂ|ƅ|ƛ Ư|Ƨ|ǽ|Ȩ|Ƙ˅|ȣƱǝ。ȶ,ƅ将按天ȷ。|Ȣ|Ơ|ƌ ϸ|Ƌ ϸ|Ƴ ϸ|ƅ|ƧȣƊǝ。|Ɗ|ǣƤ|Ƥƀ(按ƂǛ)|Ƥʄ|开始Ȣ|结束Ȣ(Lj = Ƨ)|Ȁ˅:{̔}|ǣƤ后Ƃƀ、ƽƨ及比例(按ƂǛ换算);ǹƧ、ǽ、Ȩ或Ƙʄ。|{Dž}Ƥ {Ɓ} · ƽ {ɼ} · {Κ}%|(已Ϣ)|(接近̠)|旧Ƈ|ȃβ|ʏ|ˆ|Ǟ|Ʋ|Ƅ专用 ȓ ͛|̣Ȟ此ʈ ͛;未Ǧ时Nj已ǿƚȩƄ,其次沿用Ƈƣ。|总Ƅ {ɉ} · ϡ {ɴ} · ̥ {Ɉ} · Ǽ于 {Ɛ}|ƄǾƬ:{Ɲ}|未ǾƄ|ƚ˓Ƅ|ƒ中…|ƒƄ|Ƙ ɀ Ƅ|ɗǦ|ɗ ƛ Ί Ƅ|Ƃ官网˓页的Ǫ̲Ƅ。ǿ ʧrhythm.Ο,在Ȥ开发者κ → ϖ中ˇ˓NJ的 Ȼ,或在存储 / μ中ˇ tr_Ə 值,δɾƣ并ǣ。Ȼ 仅存 ˖ ƣ库;ȸʆ。|ɗ̫ / ˻Ƅ|Ǿ˻中国站̲金。RAM Ȕ 需 bss:ǒ χ。前两项必填;STS 才需 ̅ ƛ。ȟ存ƣ库。|extract ʋ点͋、数值和 add/̝/ΐ 运算;Ά Ƒ 除以 500000 得到ə。|̢ɍ|ϙɍ|NJ URL|ʋ ̃、本机 ͙,以及 /Ͱ/… 相对͋(Ɩϣ ˖ ˑ)。|Χ非回环 ͙(ƣ明文传输;须将准确的 ȝ:ˑ 加入ɥ)|+ ǃ ȧ|ǃ 预设Nj活跃ȩ池Ǹȧ,Ȟ管理后台 X-Admin-ƛ(不是Ƈ ȓ ͛)。请ʆˈ̵与ˑ;令牌过期后Ǽƣ。|NJ方法|NJ头 (ɬ)|NJ体 (ɬ)|Lj不̯;ɬ 原文dž并̯。ȃ ɧ 为 ʙ/json,̱NJ头ʑ。|解析Ϝ (ɬ)|ƘƄƂǗ|ƒɚ (ƻ)|Ƅ原Ǜ|按ƂǛ̼(͸ Ƅ)|ȞƂͅ与͉;ƄǛΦ端点原Ǜ。̦Ǜ及ȧ不̼。|Ƅ {Ɓ}|̹ƽ {Ɓ}|ƽ {Ɓ}|进ˉ̾|Ƅ条(ƚ/Ƙ)|Ƥ条|Go ƀ条|ƍ / nj ƀ条|Ǹ̾(满 → 空)|ƽ̾(空 → 满)|ƀ̠ (ǹ)|ɬ ̓无效|{{ϭ_NAME}} 从ƣ库或ʎNj。<ͷ>_ȓ_Ϫ 中 ͷ 为大写 ɀ ID,ϑ改下划线,如 Θ→·_ȓ_Ϫ。έ共用ȟ。|ƣɥ (Ȓ)|NJ头带ȟ时仅ς列Ϛȝ,Lj则ς并警告,防ʇ他人Ǧ外带ȟ。|ƣƌ|为ɽ {{ϭ}} ˯存入ȟ(̟-Ȳ,̰ƣ库,不α):|NJ头还没有 {{ϭ}} ˯:δ如 "ɜ": "Beʛr {{MY_ȓ_Ϫ}}" 后˔会出现ƣƌ框。|ǣ|Ǹ {ț} · ƽ {spend} / ƀ {maxǑ} · Ǽ于 {Ɛ}|Ǹ {Ɓ}|ƒƘƄ|ư ǥƀ|Go|ʌ 5 ǚ|́|ǽ|Ȫ:{Ɛ}|已到Ȫǻ|Ǹ {d}天{h}ǚ|Ǹ {h}ǚ{m}分|Ǹ {m}ƻ|{h} ǚ {m} ƻ后Ȫ|{m} ƻ后Ȫ|{Ɛ} Ȫ|按本ϐ平均Ư,预计 {Ɛ} 达到̠|ƽ {Κ}%|Ǹ {Κ}%|{ͮ}%|Ǽ于 {Ɛ}|Go ƀƂǗ|Go ƀƒɚ(ƻ)|ƻ|ư ȓ ͛(ǹ,LjƖ̮)|Go ƀ主ˎ|Go Ƽ|已Ǧ(ɖ:{Ǣ})|未Ǧ|dž|˒ƣ|ȥ|dž中…|ȟ只ʁ ˖ ƣ库,不dž在ǟ里,也̡α。|以下ȟΥLJǟ,未迁入ƣ库。请导出θʎ后重启:|ƤƼ|ƒƀ|未Ǿƀ|ˢ(ʪ/Max)|Z.ai / 智谱 GLM ǯ ƍ|ɭ M ƍ / ƈ|ɭ ƍ|Ǿγ(̃)|LjƖ͌ƚ站点。ʆ后 ͛ 仅发往该γ;Ȟ可信̵,不含͋。|5h|7d|π Ɔ ̥页(plat˼m.̊.Љ/ǂ)|͑ (nj) ƀ|nj ƀ未ɑ · 点此ɑ|5h ƀ|周ƀ|{Ɛ} Ȫ|未取得ƀ,请ɘ所选ǜ源已ǿ;Ȧϥ|Ƃ nj ƀ(需ǿ nj 插件)|在ɋƂ nj ƀ|在ƌ区Ƃ nj ƀ|本ƊƅΩ˰|ȣƀǜ|ƂǗ|ȓ ͛(ǹ,LjƖ̮)|ƒɚ(ƻ)|ƒ|ǿ|ǿ中…|未Ǿƀ|ϨϽxyȓ ϕƀ|ɗɖ|ɖɍ|˾|ƂǗ|ƒɚ(ƻ)|ƣɥ(ȝ:ˑ,Ȓ)|ʭ ͛(̰)|ό|不ʋ的 ɀ|ˍ|未̮ȩ|抓取于 {Ɛ}|̨ȩ (ƾ: {Ǔ})|只Ƃ ΄ ƀ|ƒ|先˄ǣ˺|ǣ并džƂǗήƒ|̩|˄ǣ后会排到最上面;点ɍ可ɐ该项自己的Ǧ。ƘƄ̀ 8 条,ϕɖ̀ 4 条。|ɑ后Nj ư 的ʌ 5 ǚ、周、月ƀ,Ƃ在ɋ、lj页及ǫ;无ǥ时ǺΫ。|ǫƂ(ϲ)|ʌ 5 ǚƀ|́ƀ|ǽƀ|Ƥƽ%|5h|周|月|日|Ƥ|ǟNjƬ:{Ɲ}|正在Njǟ…|ǟ不̲|ƫƬ:{Ɲ}|Ʊǝ已ȥ。|ȥƬ:{Ɲ}|Ǥʒ已ɿ,按ˆƃƗ|尚未ː(ːǻ:{Ɛ}),ƾ按ˆƃƗ|ƾε峰Ʈ,按Ʋ价Ɨ|ƾ为 Ɔ Ʋ高价Ʈ,按Ʋ价Ɨ|ƾε谷Ʈ,按Ǟ价Ɨ|ɎƮ——全ȁ(周六及周日˂按Ǟ价Ɨ)|ɎƮ——全ȁ|Ɏ全谷|ȑ——˂ȁ|ȑ——全ȁ|假日|ȑ(̪Ȣ,Ȓ)|自 2026-08-23 ̪ǻ 00:00 起,Ɏ和ƪ;调休上班的Ɏ仍按ȁ。|Ʋ|λ|ǤƮ条ω|简洁(单行ϓ)|经典(分段与胶囊芯片)|峰/谷̨前̸ɔ|提前ɔ(ƻ,1-30)|ɔϒ|ȂƲ|ȂǞ|峰和谷|ΪȂƲ|ΪȂǞ|约 {Ɛ} 后Ɨˎ̨为{phase}价,请注意本ƮƠ成本。|Ʋ|Ǟ|˷|峰价ɔ|ȁɔ|̸Ǘ|ǫ|ι中心|ƫ̯系统Ϥ|ξ后ϞȤ̵栏ΧϤχ,才能在͍最小化/切走时收到ɔ。|ʔ̸|ʔ Ȃ峰|ʔ Ȃ谷|(ʔ)|Ǥʒ与Ǻ|Ǻ已ȫ:需ǣǤʒ并ɑ「ƭ」。|常规|ƨ与Ǜ|ƸƂ|简化ɋƂ|精简̬,ˀƨ、ƀ和ο详情;高度̀占ι 38%,Ϣ可ʌ。ɿ后ȡ。|ɿǺ|Ƨ / {Dž}Ƥ|Ƹ进ˉω|͂|ϓ(两列)|ȡ已ʏ的Ƈ ({˜})|ʏ会ȥɒ映射并ȫ此行,可ȡ;̡̩Ưǝ,ʃ按ƖǘϜʒ。|ǫ角标|Ƽ|Ɍɓ|未核价|已Ƙ|这个ƃ是你ɒ改过的,Ɩƫ̡ʑ它。|ȡƖƫ|按ƇȀ(ʧ 与ƅ)|ɋƇϘ|{n} Ƈ|其它|ƂƇϘ̬|ȃɐ|记住ɐό|Ƃ ƛ|Ƃƅ占比条|ǫƂ Ј-1 Ƈ|ȃʄ|收起摘要|̬Ǘ|Ƈ行数(1–10)|ƒɚ(10–60 秒)|ʄ̻与Ƈ数|Ј-1 Ƈ与ƨ|顶部|Ƅ之后|ν|Ƨ|近 90 天|ƅ排行|ƛ ͆|ƋǙ率|˴?|长Ơ无ƋǙ:代理̳ʏƋη。ƨ按全未Ǚ计,是΢;可直连核对。|˱ · 每ə ʧ 数|ƌ|Ƌ|Ƴ|该ƮȣƯǜ。|综合ʂ {Ƶ}/M|Ǚ率=Ƌ读÷(Ƌ读+普通ƌ);「˴?」表示Ƌη̳ϔ,ƨ为΢。ʂ=ƅ÷ʧ×1M;˱=ʧ÷ƅ。|未分Ƈ(σǜ · 按当时ǝƗ)|本Ɗ {Ɓ}(ȓ)· ƍ ʐ {Ƕ} · Ǚ {ɵ} · ƌ {ơ} · Ƌ {Ʀ} · Ƴ {Ɵ}|本Ɗ {Ɓ}(ȓ)· ƍ ʐ {Ƕ}|ƅ {Ɓ}(+ƍ)|ƍ ǥƀ͆(ʐ){Ɓ}|ƈ ƯȀ(每 1% 与͇Ɋ)|尚无 ǯ ƍ ƀǜ;Ϟ「ƀ」页ɑ并ƒ̭。|ϐ|ƽ %|本ʄˈ(LJǟ)|每 1% ƀ ≈|͇ 100% ≈|Ȫ {Ɛ}|˕差分|ƾƯ̼|ϊΣ|{ɶ}(基准 {Ɛ})|读数͉受限|ƍ Ư曲线(按ʓ聚合)|̈́|每周|每月|˕Σ:至少两次成功ƒ,且ƀ˶ά变化。|{ɳ}:͇估计 ≈ {ͨ}(每 1% ≈ {Ѕ1})· ˈ {ƕ} / {ƹ} · {Ǎs} 个ʓ|ƨ是目录价ʐ;ǥ耗ƀ,Ƥ只计 ȓ。Ɋ仅含 dsh Ơ;服务端˶含全ȩ。短时ϊ͉有限;5h ʌ,周/月按LJ日历。|Ɨ方式|ƍ ǥ|Ɩ|ȓ ρ|在ƅljϏƂ|仅控制是否在ƅƃ表ϏƂ;不ˊɓ和Ɨ。Ɍ˄后ΥƃϚ,可随时改回。|ɐ̭可˒ƃ;Ɍɓ的ʀƇ̱ɾȡ。|̧ljˁ|可ƌ 2 × 0.8|̤ˁ会ƫ到本ƇǷʂ|仅̤˺的ˁ;Ɍ˄ȡ统一ˁ|请ƌ非负ʂ或乘法,例如 2 × 0.8|ˍƇ名Ɩǘ|Ɩ(去ί / 前缀 / 家族相似)|仅͊ǘ|ɒ指定̣;Ɩǘ只接受έ及Ȣ、ϋ、Ρ文ί。未Ǚ的 Ɔ 用ȃ价,̦ˏ不ʒ。|待ǘ与ɒlj|按ˏ和Ƈ̧lj:͌ƃ˸、Ƙƃ,或标记为LJƇ。Ƙƃ只͈ƾˏ。|Ɔ ȃ价|ʏ|LJƇ(零͆)|已ǘƃ的Ƈ|ƾȞƖǘ。可改选ƃ˸、Ƙƃ或零ƅ;dž后移入ɽɒlj区。ƛ 仍会Ȁ。|ΦƖǙ|ȣɒǘʑ。|已ɓ(参与Ɨ)|ƌ|ƋNj|Ƌʁ|Lj时按ƋNj价Ɨ|Ƴ|Ɔ ƃ表(已ɓ)|ˤ / ̄|ʮ|ʘ 硅基流动|CommDŽCode|ʫ|SCNet 超算互联网 ƈ|火山方舟 ɱ Ark ǯ ƍ|̫ ͟ ƈ|小米 MiMo ƈ|百度千帆 ƈ|ƽ / 总ƀ|ȗ ȧ|ƖNj ȗ ȧ。|͗ (Droid)|DZ|DZ Ƞ ID|无需ɏ桌面版。ǿ ʤ.ai/cloud/˨,按 F12 → ϖ,ƒϗ,选 coding-ͯ-ǂ 或 w˦et/Ɠ NJ,ˇNJ标头 Ȼ 完整值到ɾƣ。Ƞ ID Lj时NjϗƾȠ,也可ʆNJ URL 中 /Ȝs/ ̴ ID。仍ʋ ͔ ͛(需ʆȠ ID),不ʋ̽ ȓ ͛。Ȼ ȸˇ。|ƀϒ|StDŽard + Core|组织 ID(ǹ)|ζȧ|补偿ȧ|Ƅ|ƀɖ|LJɊ|ƚ Ϩ|ώ Ϩ|Ϩ 模式需在 ˖ ȝɏ @ɡ/ʦ,并Ʒ ͱ dz。|ώ Ϩ:在 ˖ ȝɏ ʝ。ǿ按钮会在该ȝπ授权Ȥ;远程或无ύȝ请Ʒ bl dz --ɲ。|φ ƿ ƀ(个人版 Lite 5 万 / ͂版 50 万,以ǥ页Τ)|ǥ˹(ǹ,̓ Dz;Ljʉ)|ƿ ˲ʑ(ǹ;每百万 ʧ 抵扣的 ƿ,Lj用ʀ表)|Ƈ名,如 qwen3.8-ʣ|费率|ƌ|Ƌ读|Ƴ|待填齐三项正数后Ɩdž;Ƿ清空ȡʀ表。|ɗ|ƿ LJɊ,以˳Τ。Ȁ归属̫ζ的 ƍ Ơ;ʿρ ȓ。ϛƇ需设˲。|LJɊφ ƿ ƀ(ˆ 60,000 / ͂ 240,000 / 高级 600,000)|ǥ˹(ǹ,̓ Dz;Ljʉ)|̣用 24 ǚ内的˳̺,否则按LJǟ和ƚ ƿ 表Ɋ。̦κ和ϛƇʿ入。|ʍ Ȕ ID|ʍ SecretȔ|AK...|SK...|{h}ǚ|{h}ǚ{m}分|{m}ƻ|{Ɛ}后Ȃλ|{Ɛ}后Ȃ高峰|峰Ʈ(UTC):{ʽs};ːǻ:{Ɛ}。{ʼ}|未ǦǤƮ。{ʼ}|ˍ|Ƨƅ|ǽƅ|Ȩƅ|自ǟ建立以来 · Ơ {ƴ} 次|̶Ư|˖ + ̶合计|̶̺超过 24 ǚ未Ǽ|近期̈́ǝ|ƨ取υ̺,̳比ƚϟ晚几ƻ。ƕ 含ƌ、Ƴ、Ƌ和̽;̽并入ƳƗ。以ƨ̷。|Ƨ/ǽ按宿主̿ {ʡ},Ȥ为 {ȇ}。̿不同会ˊ日界和̷;可将 dsh 改为LJ̿。|ƧƊ|ȦȢ行可ɐ̹Ɗɕ|Ɗɕ˃中…|该日无Ɗɕ(σǜ或Ɗˌ已清理)|Ɗɕ˃Ƭ|按ƊȀ(ǷƱ)|跨天合并,˰按ξ归并。仅列选定ψ,ȨƅΩǷ对话。|ȣƊǜ|Ɗʊ中…|ƊʊƬ|Ƃψ|ƨ含 ƍ ̻|ɑ后所有ƨ按含 ƍ ǥʐ的总ƅ展示;ɿ(ȃ)仅计真金白银 ȓ ˏ|ȫ˵ƅɕΨ|ȫƌ框ɾƅɕΨ|ȫ每轮回复̴本轮ƅ|排序|ƅ 高→低|ƅ 低→高|ǻ 新→旧|ǻ 旧→新|实时顺序|Ʊǝ|ƛ ƯȀ|Ȩ {ƕ} ƕ · ƌ {ơ} · Ƌ {Ʀ} · Ƴ {Ɵ} · {ƴ} 次Ơ|{ɳ}:共 {ƕ} ƕ(ƌ {ơ} · Ƌ {Ʀ} · Ƴ {Ɵ})· {ƴ} 次Ơ · {ƹ}|ȣƱǜ,ȶ̈́Ư会ȷ|Ư|Ƃlj|概览|ƀ|Ư|ƃ|Ƃ|Ʊǜ|ƊƅƂǗ|ƌ区ɾ|Ɗ˵|ɿ|ɤƤƽ%|ɤ Go ƀ|ɤ ǯ ƍ ƀ|͍Nj超时,请Ȧϥ。|Ƅ已ȫ|Ȧɍȫ或ƂƄ;Ȧƨƒ|Ȧ立即ƒ|ȦƸƄ或 ǯ ƍ ʅ即可ƒ;ƒ时ʅ闪烁,Ƭ时ˀ原值并在οǺ中说明Ϋ。|˷|̹ƅƂ|Ƹν|Ϡ单位|Ǫ ΃|ə ͸|欧元 EUR|Ϡϑ|ͅ(1 ə = ? 目标Ǜ)|小数位数|ƄƂǗ|主͍Ƹ|lj页|两者都Ƃ|Ƅƒɚ(ƻ)|ǣ Ɔ ǤƮƃ|ƭ(ƸƤ框/Ƨƅ;lj页Ǥ面板内ʔ)|Ɗ按Ơ时ƃƗ(含Ǥ与Ʊˎ)。ƌ、Ƴ、Ƌ读写分开Ȁ;独立Ƌʁ价与长Ρˋ位按Ǧː。|已ɓ的ƃ表|ƚƃǛ|ə(ϙƚ页)|Ǫ(̢ƚ页)|决定ƫƃ所用的ƚ页ϝ;ƫ̴ƃ͈ʃƠ。|Ͻ 与 ʕ ̧按ƚʂƗ,旧 ʕ ɍ按 ʕ 价结算。工作日̪ǻ 09–12、14–18 为峰Ʈ,Ɏ及ƪ。改价͈ʃƠ,已ǝƨˀ;修正旧ƅ请ɘ后ȞƱ重算。Ƌʁ按Ǚ价。|˔Ƃƾ适用ƃ。手工˒会Ɍ此条ʃ预定调价,已ά的Ʊƃ仍ˀ。|ȉ(未ǘƇ时β)|新Ƈ ID(如 ȱ)|ɗƇ|ǜ与ƫ|dž中…|ƖdžƬ:{Ɲ}|已Ɩdž {Ɛ}|Ǧ̤后Ɩdž|ɘ用ƚˋƃʑƃ表?|μ|Ɍ|从ƚˋƫƃ|ƚƫ只Ǽ Ɔ ƃ(含Ǥ);z-ai/Kimi/͟/ɱ 等第三方ƃ随ϋǼ,̱ƃ表ɐθ̭˒,或用Ƈ名ǘ调整。|ɘȥǷƱ?|ȵƱ|ɘʇ?将ΰǷƊˌ,只补ǟϔ的Ȣ与Ɗ,不ˊ已有ǝ。|ȵƱƬ:{Ɲ}|首次启动Ɩʇ旧ǝ;拷入ˌή重跑。按ƾƃ回推;已̩ˌ无法ΰ,跨ɏτ的Ɗʿ此前Ư。|ɘȥ|ȥǷƱ|υƫ:{Ɛ}|从未(Ȟʀƃ)|;ɖ:{Ǣ}|ƚˋ|ʀȃ|ύϝ|ϣ ˖(Ɩ)|简体̢|ɫ|ƅ|{ɶ} ƠƬ|ƫƠƬ|ƄƒƠƬ'],["en",`ɨ of ȴ Ə (Ǵ ʷ ϴ c˦ Ɛ)|Ⱦ {ơ} · Ǭ {Ʀ} · ȕ {Ɵ}|Ǭ: ̕ {̕} · ̟ {̟} (̟s Ǵ at ƞ hit Ƶ)|ɨ {Ɓ}|ɯ Ə {Ɓ} · Hit {ɵ} · Ⱦ {ơ} · Ǭ {Ʀ} · ȕ {Ɵ}|ɯ Ə {Ɓ}|ʱ Ɓ Ȳ|Un̎ed|΃ ɉs ˽ ͸ Ɣ × {ɸ}. To Љpʛ Ǝ ΃ bills, ̙ ΃, ƞn Π Ɣ; Πing affects Ȳ new ƴ.|ƥ query Ǖ: {Ɲ}|˘ error|ƥ|Ɔ Ɠ|Above ƞ ơ ϧ|Ǩ DŽ ȍ|Ǩ DŽ ơ ϧ|Ȇ DŽ ơ ϧ|ϼ locations|Query Ǖ|Ɔ open-plat˼m Ǔ Ɠ|Cross-check Ǝ Ɠ ˛ against ƞ ȋ (warn ͵ ƞy diverge)|Total {Ɓ}|͘ {ɴ} · ˥ {Ɉ}|ɰ {Ɛ}|Ǒ ({Dž})|͡ {ɼ} / {Ɓ}|Ȭ {Ɓ} · {Κ} of Ș|ɯ Ǯ {Ǯ} · ϼ Ɛ {ɉ}|Ǒ|Ȭ's ƹ (Ǵ ʷ Ǝ Ɣ)|Ȭ's ʧ ǂ|ƕ|C˦s {ƴ} · Ⱦ {ơ} · Ǭ {Ʀ} · ȕ {Ɵ}|ɯ Ǯ {Ɓ}|ϼ Ɛ {Ɓ}|Ȭ|Ǩ ̞ Ɯ|ɨ|ƛ ǂ|Ȭ|ɯ Ǯ|ϼ Ɛ|ɩ ̔|No ǖ Ϻ. Once you ΁ chatting, ƹs ʛ ʵ Β Ѕ ϱ.|Date|C˦s|In ϸ|Ǭ ϸ|Out ϸ|ɨ|No Əs ̖ ̞.|ɮ|ǰ Ș|Ǒ Ɓ (in Ɯ ƺ)|Ǒ Dž|Start ɳ|End ɳ (ȭ = ̞)|Range: {̔}|ǰ a Ș to see its ̎, ɼ Ɓ DŽ ʻ in ƞ Ɯ ƺ. Choose ̞, Ǯ, ˦ Ɛ or a Ƀ ̔.|{Dž} Ș {Ɓ} · ͡ {ɼ} · {Κ}%| (over ̎)| (near ̎)|Legacy|͕ f˦Ђ|ʯ|Base|Ȅ|ʖ|ƥ ȓ Ϳ|ɯ ϫ Plat˼m Ϳ takes ̒; oƞrwise ƞ ˭ Ǝ Ǔ Ɠ is ̕, ƞn ǎ Ƣs.|Total {ɉ} · ͘ {ɴ} · ˥ {Ɉ} · ɰ {Ɛ}|ƥ query Ǖ: {Ɲ}|ƥ Η queried|Ac˜ Ɠ|ǀing…|ǀ Ɠ|ɩ ̓ Ɠ|Ϧ entry|Ϧ ƛ Ί Ɠ|ʱs available ΃ Ɠ ʸ ƞ Ǝ Ǔ ˩. ʲ ʧrhythm.Ο. In ȇ ́, ϰ ƞ Ǔ ˡ Ȼ ʸ ͞, or ƞ tr_Ə ΂ ʸ Storage / Application. Ѐ it ͼ DŽ ̋ ȴ Ѓ. Ȼs ̛ in ƞ ˖ Ƣ ̜; ͳ ƞm ͵ ͧ.|Ϧ Qianwen / ɛ Ɠ|ʱs ɛ China funds. RAM Ȕ needs bss:ǒ. The ; two Α ʛ required; ̅ ƛ is ˼ STS. Secrets ̛ in ƞ Ƣ ̜.|͖ ͢ paths, numbers DŽ add/̝/ΐ. Divide Ά Ƒ by 500000 ˼ ͸.|ǧ ̏|ɫ ̏|͠ URL|SupΛs ̃, Ȯ ͙ DŽ /Ͱ/… paths Ϸ ̍ ƞ Ȉ ˖ Λ.|ϼow non-loopЂ ͙ (plaintext Ƣs; ̗ ƞ exact ʡ:Λ in ˦owed ʡs)|+ ǃ ǔ|The ǃ preset ˠ ț ǔ across Ό Ǔs using an admin X-Admin-ƛ, Η a ǎ ȓ Ϳ. Set ƞ ̇ ˚ DŽ Λ; ͳ ƞ Ƣ ͵ it expires.|͙ ɶ|Headers (ɬ)|͠ body (ɬ)|Blank sends no body; ɬ text is ϶ DŽ sent as entered. ɧ ȉs to ʙ/json; ˝ can ̑ it.|͖ rules (ɬ)|ɩ Ɠ Ɯ|Ʃ (ǩ)|̆ ƺ|Convert ͸ Ɠ to Ɯ ƺ|Uses ƞ Ɯ ɸ DŽ ˪. Keep ƞ Ǣ ƺ; oƞr currencies DŽ ǔ Ɇ.|ƥ {Ɓ}|Ȭ {Ɓ}|Spent {Ɓ}|Ͻgress Ͼ Ώion|ƥ Ͼs (Ǝ/Ƀ)|Ǒ Ͼ|Go Ƒ Ͼ|ƍ / nj Ƒ Ͼs|ɝ (ͨ → ȭ)|͡ (ȭ → ͨ)|Ǒ cap (Ǐ)|Invalid ɬ|{{ϭ_NAME}} ˠ a Ƣ or ʟ variable. <ͷ>_ȓ_Ϫ ˽s an upЅcase ɀ ID ʾ underscores, such as Θ→·_ȓ_Ϫ. Names can shʛ a Ϳ.|ϼowed ʡs (Ȱ)|Ϯ ˝ carry Ƣs Ȳ listed ʡs ʛ ˦owed; leave ȭ to ˦ow ʾ a warning. Ͻtects Ϳs ͵ Δing someone else's config.|ʬ ơ|Store ƞ Ϳ ˼ ϴ {{ϭ}} placehЄer ͺ (̟-Ȳ: ̜d in ƞ ˖ Ƣ ̜, Ȍ):|No {{ϭ}} placehЄers in ƞ ˝ Ϻ — add e.g. "ɜ": "Beʛr {{MY_ȓ_Ϫ}}" DŽ a Ƣ ơ Ϲ appear Β.|ǰ|ɝ {ț} · Spent {spend} / Ǒ {maxǑ} · ɰ {Ɛ}|ɝ {Ɓ}|ǀ Ƀ Ɠ|ư ȏ Ƒ|Go|Rolling 5h|ʴ|ȹ|ʰ: {Ɛ}|Reset Ɛ rϴed|{d}d {h}h ϵ|{h}h {m}m ϵ|{m}m ϵ|ʰ in {h}h {m}m|ʰ in {m}m|ʰ {Ɛ}|At ȴ ʽ’s average pace, ̎ expected {Ɛ}|{Κ}% ɼ|{Κ}% ț|{ͮ}%|ɰ {Ɛ}|Go Ƒ Ɯ ǐ|Go Ƒ ǁ Ǎ (ǩ)|min|ư ȓ Ϳ (Ǐ; ȭ = ʜ)|Go Ƒ primary ʽ|Go ϧ ƶ|Configured (Ǣ: {Ǣ})|Not ǵ|Ѐ|Edit Ƣ|Clear|΋…|The Ϳ is written to ƞ ˖ Ƣ ̜ Ȳ — it is never ϶ in ƞ Ț DŽ Ȍ.|These Ƣs Ν in ƞ ȋ. ExΛ ƞ ʢ ʟ variables DŽ re΁:|Ǒ ϧ ƶ|ǀ Ƒ|ȅ|ˢ (ʪ/Max)|Z.ai / Zhipu GLM ǯ ƍ|ɭ M ƍ / ƈ|ɭ ƍ|ʗ Ι (̃)|Empty: Ǝ sites. Oƞrwise ƞ ͛ is sent Ȳ to ȴ Ι. Use a trusted ˚ ʾout a path.|5h|7d|ϫ Ɔ top-up ˩ (plat˼m.̊.Љ/ǂ)|͑ (nj) Ƒ|nj Ƒ is disabled · ̉ to ̋|5h Ƒ|ʴ Ƒ|Ξ {Ɛ}|ʗ ʨ. ǰ DŽ sign in to ƞ ̙ed Ǣ; ̉ to retry.|ʱ nj Ƒ (̗ a ˭ nj plugin)|ʱ nj Ƒ in Ȏ|ʱ nj Ƒ ͺ ʞ|͚ ˮ in Ə ƹ|No Ƒ ʶ|ɪ ǐ|ȓ Ϳ (Ǐ; ȭ = ʜ)|Ʃ (ǩ)|ǀ|Login|Signing in…|ȅ|ϨϽxyȓ ͩ Ƒs|Ϧ Ǣ|̆ label|˾|ɪ|Ʃ (ǩ)|ʬ ˦owlist (ʡ:Λ, Ȱ)|ʭ Ϳ (̟-Ȳ)|Status|UnsupΛed ˫|˘|No Ǔs|fetched {Ɛ}|Switch Ǔ (Ȉ: {Ǔ})|΄ Ƒ Ȳ|ǀ|ǰ ȴ item ;|ǰ DŽ І a Ɯ ǐ to ǁ|ʯ|ǰd items move to ƞ top; ̉ a ̏ to expDŽ its own ȍ. Up to 8 Ƀ Ɠs DŽ 4 ͩ Ǣs.|ǰ ư rolling 5h, weekly DŽ Ǯly Ƒs in ƞ Ȏ, Ȇ DŽ bottom-right Ύ. Missing ȏs Ї a Μ.|ɦ (ϲ) Ɯ|Rolling-5h Ƒ|ʴ Ƒ|ȹ Ƒ|Ǒ ɼ %|5h|Wk|Mo|Daily|Ǒ|΅ ̕ Ǖ: {Ɲ}|Reading Ț…|΅ ʨ|Ϭ Ǖ: {Ɲ}|˗ cleʛd.|Clear Ǖ: {Ɲ}|ʖ/Ɖ Ⱥ is off; base Ɣ ʛ ɼ|Not Ϻ ɞ (ɞ at {Ɛ}); base Ɣ ʛ Ȉly ɼ|ʖ hour now; ȳ Ɣ ʚ|Ɔ ȳ-hour Ⱥ is Ό; Ȉ ƴ ʛ Ǵ at ȳ Ɣ|Ȅ now; Ɖ Ɣ ʚ|˙ — ˦ Ɖ (Sat & Sun Ǵ at Ɖ Ɣ ˦ ϱ)|˙ — ˦ Ɖ|˙|ǧ public ͪ — Ɖ ˦ ϱ|Έ ͪ — ˦ Ɖ|Holiϱ|Έ ͪs (͏ ɳs, Љma sepaɸd)|Since Aug 23, 2026 (͏ Ɛ), ƙ Ɖ ˦ ϱ, ș work-shift weekends.|ʖ|Ȅ|ʖ Dž strip style|͒ (one-line)|Classic (segments & chip)|Popup ͻ be˼e ȳ/Ɖ switch|Lead Ɛ (ǩ, 1-30)|Alert type|ȼ ȳ|ȼ Ɖ|Both|ȼ ȳ ʹ|ȼ Ɖ ʹ|͐ switches to {phase} Ⱥ in about {Ɛ}; mind ϻ c˦ ƹs in ȴ ʽ.|ȳ|Ɖ|Got it|ʖ ͻ|Ȅ ͻ|Popup ǐ|ɦ|Screen center|Also send a system ɷ|Ϯ ̋d, ˦ow ɷ Ѕmission in ƞ ȇ ˚ Ͼ so you get ͻed even ͵ ƞ ˩ is minimized or Ђgrounded.|Preview ƞ popup|Ȗ ȳ|Ȗ Ɖ| (preview)|ʖ/Ɖ Ⱥ & ̐|Notice Γ: ̋ ȳ/Ɖ Ⱥ DŽ ƞ “prominent ̐” toggle.|General|Money & ƺ|Ǩ Ɯ|Simplify ƞ Ȏ|Condense Ѓs but keep Ɓs, Ƒs DŽ hover ƶ. Height is capped at 38% of ƞ viewΛ ʾ scrolling. Turn off ɇ.|Dismiss guide|Ȭ / {Dž} Ș|Ǩ progress style|StDŽard|͒ (2 columns)|Re̜ Ͳ ǎs ({˜})|ʯ ϯs ƞ ̑ DŽ hides ƞ row until ɺd. ͹ ɹ ʛ kept; Ёmatic Ƶ ʢ ͣ.|Corner chips|Box ƶ|Unmount|UnƵd|ɩ|You edited ȴ Ƶ manu˦y; ˧ Ϲ Η over̟ it.|Resume ˧|Per-ǎ statistics (ƕ & ƹ)|Ǩ ǎ ƹs|{n} ǎs|Oƞr|ʱ ǎ ƹ Ѓ|ExpDŽ by ȉ|Remember expansion|ʱ ƕ|ʱ ƹ shʛs|Ј ǎ in Ύ ϲ|͕ Dž|Collapsed summary|Card ǐ|Model rows (1–10)|Ʃ (10–60 seconds)|Period ɉ DŽ ǎ ˜|Ј ǎ DŽ ƹ|Ј|After Ɠs|Bottom|Ȭ|Last 90 ϱs|ɨ ˟|ƛ ǂ|Ǭ hit ɸ|unreΛed?|Zero Ʀ hits on long ƴ may mean a relay Ͳ Ʀ Α. ϼ-miss ƹ Ȋ; check ʾ ƞ Ώ ȓ.|Value · ƕ Ѕ ͸|Ⱦ|Ǭ|ȕ|No ǂ ʶ ˼ ȴ Dž.|blended {Ƶ}/M|Hit ɸ = Ʀ ˠ ÷ (ˠ + unƦd ơ). “UnreΛed?” means Ʀ ʶ may be ͭ, so ƹ Ȋ. Unit Ƶ = ƹ ÷ ƕ × 1M; ΂ = ƕ ÷ ƹ.|Unattributed (early ʶ · Ǵ as ̖)|ɯ Ə {Ɓ} (ȓ) · ƍ ͽ. {Ƕ} · Hit {ɵ} · Ⱦ {ơ} · Ǭ {Ʀ} · ȕ {Ɵ}|ɯ Ə {Ɓ} (ȓ) · ƍ ͽ. {Ƕ}|ɨ {Ɓ} (+ƍ)|ƍ ȏ Ƒ ǂ (ͽ.) {Ɓ}|ƈ ǂ stats (Ѕ-1% & ʠ ɟ)|No ǯ ƍ Ƒ ʶ Ϻ. ǰ DŽ ǁ a ̓ under ʗs.|Window|͡ %|ɯ Dž ̇ (ȋ)|Per 1% Ƒ ≈|Full ʽ (100%) ≈|Ξ {Ɛ}|̘ delta|Ȉ ǂ ratio|Η Ʉ|{ɶ} (as of {Ɛ})|Њ ̕ing ˪|ƍ ǂ curves (ʵ ʸ ̘ Ǎs)|Daily|ʴ|ȹ|Not Ʉ: ǁ successͨy twice ʾ a Ƒ ʻ ΍.|{ɳ}: ʠ est. ≈ {ͨ} (Ѕ 1% ≈ {Ѕ1}) · ̇ {ƕ} / {ƹ} · {Ǎs} ̘ Ǎ(s)|͎ ʛ catalog-Ƶ ͽalents. ƍs ˽ Ƒ; Șs ˜ ȓ Ȳ. Estimates cover dsh ƴ, while server ʻs cover ƞ Ǔ. Short ̘s ʛ less precise. 5h rolls; week/Ǯ ˽ Ȯ ɳs.|͐ class|ƍ ȏ|Ͽ|ȓ ǂ|ʱ Ώly in ɨ ȍ|͔s Ώ Ɯ in ƞ Ƶ ɢ; mounting DŽ billing Ɇ. Hidden Ѓs ̛ rϴable in ƞ ɢ.|ExpDŽ Ɂ to edit Ɣ; ɺ unmounted ͤ ǎs ͼ.|Sepaɸ ʺs|Try 2 × 0.8|Changing ƞ ʺ ͣ to ˦ ǡ ˼ ȴ ǎ|Change ȴ ɸ Ȳ; uncheck ɇ ƞ shʛd ʺ|Enter a non-negative ɸ or multiplication, e.g. 2 × 0.8|ʩ ʹ ǎ ̏s|Ͽ (strip suffix / prefix / family similarity)|Exact ΀ Ȳ|Manual ɠ take ̒. ʩ ͢ Ȳ ƞ same ̏ or ɳ, version DŽ context suffixes. ˘ Ɔ ǎs ˽ ƞ ȉ Ƶ; oƞr ˫ ̛ unƵd.|Un΀ed DŽ manu˦y ǵ ǎs|Set ϴ ͥ DŽ ǎ sepaɸly: ̙ ȯ, ˽ a Ƀ Ƶ, or mark as Ȯ. ɩ Ɣ ʚ Ȳ to Ϸ ͥ.|Ɔ ȉ Ƶ|ʯ|Ͷ ǎ (zero ƹ)|Matched ǎs|Currently ΀ed ǭ. Select ȯ, Ƀ Ƶ or zero ƹ. Ѐd ˛ move to ƞ Ζ list ͺ; ƕ still ˜.|Keep Ё ΀|No Ζ ΀ ɠ.|͝ (Ǵ)|Ⱦ|Ǭ ̕|Ǭ ̟|Leave blank to ˽ ƞ Ʀ-̕ Ƶ|ȕ|Ɔ Ƶ ɢ (mounted)|ˤ / ̄|ʮ|ʘ|CommDŽCode|ʫ|SCNet ƈ|ɱ Ark ǯ ƍ|͟ ƈ (ɡ.Љ)|Xiaomi MiMo ƈ|Baidu Qianfan ƈ|͡ / ɉ|ȗ|Reads ȗ ǔ ǭ.|͗ (Droid)|DZ|DZ Ȑ|No desktop app needed. ʲ ʤ.ai/cloud/˨. ϫ ́ → ͞, reload, ̙ coding-ͯ-ǂ or w˦et/Ɠ DŽ ϰ ƞ ͨ ˡ Ȼ ͼ. Leave Ȑ blank ˼ ƞ Ȉ web Ȝ, or ϰ ƞ ID after /Ȝs/ in ƞ ˡ URL. ͔ ͛s still work ʾ an explicit Ȑ; inference ȓ Ϳs do Η. Replace ͧ cookies.|ʗ pool|StDŽard + Core|Organization ID (Ǐ)|ƍ ǔ|Compensation|ƥ|ʗ Ǣ|Ͷ ̌|ȿ Ϩ|Bailian Ϩ|Inst˦ @ɡ/ʦ on ƞ ˖ ʡ DŽ run ͱ dz as ƞ ɻ.|Inst˦ ʝ on ƞ ˖ ʡ. Login opens Ϸ ʡ’s ȇ; ˼ a remote or headless ʡ, run bl dz --ɲ as ƞ ɻ.|ȹ ǔ Ƒ (Ѕsonal Lite 50K / StDŽard 500K; see ϻ ͯ ˩)|ƍ ΁ ɳ (Ǐ, Dz; ȭ = ̈ Ǯ)|ƿ ɸ ɠ (Ǐ; ǔ deducted Ѕ 1M ƕ; ȭ = ɂ)|Model ̏, e.g. qwen3.8-ʣ|ɸ|Ⱦ|Ǭd ơ|ȕ|Enter ˦ three positive ǡ to І ǭ; ϯ ˦ ɇ ƞ ɂ.|Ϧ|Ͷ ƿ ̌; ɲ is authoritative. Counts ƍ ƴ assigned to ͟. Excludes pay-as-you-go ȓ. Ϧ ǡ ˼ oƞr ǎs.|ȹ ǔ Ƒ ˼ Ȯ ɟ (Basic 60,000 / StDŽard 240,000 / Ͻ 600,000)|ƍ ΁ ɳ (Ǐ, Dz; ȭ = ̈ Ǯ)|Uses ɲ ̚s newer than 24h, ƞn ɟ ʸ Ȯ ɹ DŽ Ǝ ƿ ǡ. Oƞr tools DŽ unlisted ǎs ʛ excluded.|ʳ Ȕ ID|ʳ SecretȔ|AK...|SK...|{h}h|{h}h {m}m|{m}m|Ȅ in {Ɛ}|ʖ in {Ɛ}|ʖ ˞ (UTC): {ʽs}; ɞ: {Ɛ}. {ʼ}|No ȳ ʽs ǵ. {ʼ}|ʹ|Ȭ|ɯ Ǯ|ϼ Ɛ|Since ƞ Ț was created · C˦s {ƴ}|̂ ǂ|˖ + external ɉ|̂ ̚ has Η been upɳd ˼ 24 ˞|Ή daily ɹ|͎ ˽ ƞ latest ̚ DŽ may lag ƞ Ǝ bill by ǩ. ƛs ͫ ơ, Ɵ, Ʀ DŽ ˬ; ˬ is Ǵ ʾ Ɵ. Reconcile by Ɓ.|Ȭ/Ǯ ˽ ʡ Ɛzone {ʡ}; ȴ ȇ ˽s {ȇ}. Different ϱ boundaries affect reconciliation. Set dsh to ϻ Ȯ Ɛzone to align.|Ȭ's Əs|˿ a ɳ row to expDŽ its Ə ƶ|͜ Ə ƶ…|No Ə ƶ ˼ ȴ ϱ (early ʶ or Ə Ε cleaned)|Ƚ Ə ƶ|By Ə (˦ ǖ)|Days Љbined; ˮ ̍ ȍ. Selected rows Їn; cumulative ƹs ͫ every conversation.|No Ə ʶ Ϻ|͜ Ə ˟…|Ƚ Ə ˟|Rows|͚ ͯ ɉs|Ϯ on, every Ɓ Їs ɉ ͽalent ƹ ș ͯ ȏs; off (ȉ) ˜s real-money ȓ ͥs Ȳ|ϩ header ƹ ƶ|ϩ ʞ ƹ ƶ|ϩ turn ƹ summaries|Sort|ɨ high→Њ|ɨ Њ→high|Time new→Є|Time Є→new|Ή order|˗|ƛ ǂ stats|ϼ-Ɛ {ƕ} ƕ · ơ {ơ} · Ʀ {Ʀ} · Ɵ {Ɵ} · {ƴ} ƴ|{ɳ}: {ƕ} ƕ (ơ {ơ} · Ʀ {Ʀ} · Ɵ {Ɵ}) · {ƴ} ƴ · {ƹ}|No ǖ Ϻ — daily ǂ Ϲ accumulate Β|͹|ɪ ȍ|Overview|ʗs|͹|Pricing|ɪ|˗ ʶ|ɮ ƹ Ɯ ǐ|BeЊ ƞ ʞ|ɮ title Ͼ|Off|Ǡ Ș ɼ %|Ǡ ƞ Go Ƒ|Ǡ coding ͯ Ƒs|Page ͬ Ɛd out. Please retry.|ƥ Γ|˿ ƞ ̏ to hide/Ї; ̉ ƞ Ɓ to ǁ|˿ to ǁ now|˿ a Ȏ Ɠ or ͯ ϧ to ǁ. It pulses while ͬ; on failure it keeps ƞ Є ΂ DŽ Їs ƞ Μ on hover.|Got it|Ȭ ƹ Ɯ|Ǩ footer|̀|ǧ Yuan (΃)|US Dollar (͸)|Euro (EUR)|̀ symbol|Ex΍ ɸ (1 ͸ = ? target ƺ)|Decimal places|ƥ Ɯ ǐ|Main Ȏ|Ȇ ˩|Both|ƥ ǁ Ǎ (ǩ)|Use Ɔ ȳ-hour Ɣ|Ͻminent ̐ during ȳ ˞ (Ȏ Ș ϧ, ̞'s ƹ; previewed in ƞ Ȇ ȳ panel)|ɮ ƹ ˽s c˦-Ɛ Ɣ, ș ȳ DŽ Ʌ ǡ. Ⱦ, Ɵ, Ʀ ˠ DŽ ̟s ʛ sepaɸ; ǵ Ʀ-̟ DŽ long-context ǡ ʚ.|͝ Ƶ ɢs|ȿ Ƶ ƺ|͸ (ɫ Ǝ ˩)|΃ (ǧ Ǝ ˩)|Selects ƞ Ǝ Ⱥ-˩ language. Ϭed Ɣ ʚ to subsequent ƴ.|Ͻ DŽ ʕ ˽ sepaɸ Ǝ ǡ; legacy ʕ ̏s ˽ ʕ ǡ. Weekϱ ȳs ʛ 01–04 DŽ 06–10 UTC; ƙ Ɖ. Rate ˛ ʚ to later ƴ. Recorded Ɓs Ν until you confirm Ʌ recalculation. Ǭ ̟s ˽ hit ǡ.|Current ǡ ʛ Їn Β. Editing cancels any future scheduled ΍ ˼ ȴ entry; ͦ Ʌ ǡ ʛ retained.|ȉ (f˦Ђ ˼ un΀ed ǎs)|New ǎ ID (e.g. ȱ)|Ϧ ǎ|Data & Π|΋…|Ͽ-І Ǖ: {Ɲ}|Ͽ-϶ {Ɛ}|Ȇ ʛ Ё-϶|Over̟ ƞ Ƶ ɢ ʾ Ɣ ʸ ƞ Ǝ ϳ?|Apply|Cancel|Ϭ Ɣ ʸ Ǝ ϳ|ȿ Π upɳs Ɔ Ɣ (ș ȳ ǡ). Third-party Ɣ (z-ai/Kimi/͟/ɱ) ̍ releases; expDŽ Ɂ in ƞ Ƶ ɢ or ˽ ǎ ʢ.|ˣ ǖ?|ImΛ ʥ ǖ|͓ Δ? Replays ˦ Ə Ε DŽ Ȳ fills ɳs/Əs ͭ ʸ ƞ Ț; existing ɹ ʛ untouched.|Failed to Δ ʥ ǖ: {Ɲ}|Pre-inst˦ ǖ Δs at ; launch; rerun after ϰing Є Ε. ɨs ˽ Ȉ Ɣ. Deleted Ε canΗ replay; Əs spanning inst˦ation exclude ͦ ǂ.|͓ ϯ|ˣ ǖ|Last Π: {Ɛ}|Never (ͤ Ɣ)|; ̆: {Ǣ}|ȿ ϳ|Bundled|Language|FolЊ ˖ (Ё)|Simplified ǧ|ɫ|ɨ|{ɶ} c˦ Ǖ|Ϭ c˦ Ǖ|ƥ ǁ c˦ Ǖ`]].map(([e,t])=>{const o=t.replace(/[ƀ-߿]/g,a=>zn[a.charCodeAt(0)-384]).split("|");return[e,Object.fromEntries(Gn.map((a,s)=>[a,o[s]]).filter(([,a])=>a!=="\0"))]}));function Oa(){return(typeof navigator<"u"&&typeof navigator.language=="string"?navigator.language:"").toLowerCase().startsWith("zh")?"zh":"en"}function Ve(e){const t=typeof e=="string"?e.toLowerCase().split(/[-_]/)[0]:"";return t==="zh"||t==="en"?t:null}function j(e){const t=typeof e=="string"?e:e?.locale;return t==="zh"||t==="en"?t:Ve(e?.activeLocale)||Oa()}function z(e){const t=e==="zh"?Le.zh:Le.en;return(o,a)=>{let s=t[o]??Le.en[o]??o;if(a)for(const l of Object.keys(a))s=s.split("{"+l+"}").join(String(a[l]));return s}}const Ye={day:"periodDay",month:"periodMonth",all:"periodAll",custom:"periodCustomRange"};function ee(e,t){throw new Error("dsh-cost-meter: 服务端数据非法 ("+e+": "+t+")")}function ue(e,t){return(e===null||typeof e!="object"||Array.isArray(e))&&ee(t,"object"),e}function Y(e,t){return(typeof e!="number"||!Number.isFinite(e))&&ee(t,"number"),e}function ae(e,t){return typeof e!="string"&&ee(t,"string"),e}const Ee=(e,t,o)=>typeof e=="string"&&t.includes(e)?e:o;function Ba(e,t=!1){return e===null||typeof e!="object"||Array.isArray(e)?{}:Object.fromEntries(Object.entries(e).filter(([o,a])=>t?o.length>0&&["plan","api"].includes(a):["auto","plan","api"].includes(a)))}function Se(e,t){return typeof e!="boolean"&&ee(t,"boolean"),e}const Ue=(e,t,o)=>Object.fromEntries(t.map(a=>[a,o(e[a])]));function Da(e,t){const o={};if(e!==null&&typeof e=="object"&&!Array.isArray(e))for(const a of Object.keys(e)){const s=e[a];if(s===null||typeof s!="object"||Array.isArray(s))continue;const l=r=>typeof r=="number"&&Number.isFinite(r)&&r>=0?r:0;o[a]={...Ht(s),...Ue(s,["input","output","cacheRead","cacheWrite","reasoning","cost"],l),apiCost:s.apiCost===void 0?l(s.cost):l(s.apiCost)}}return o}const bt=["costCny","apiCostCny","costEur","apiCostEur"],Ht=e=>Object.fromEntries(bt.filter(t=>Number.isFinite(e?.[t])).map(t=>[t,e[t]]));function La(e,t){ue(e,t);const o={...Ht(e),reasoning:e.reasoning===void 0?0:Y(e.reasoning,t+".reasoning"),apiCost:e.apiCost===void 0?void 0:Y(e.apiCost,t+".apiCost"),byModel:Da(e.byModel,t+".byModel"),byProviderModel:Da(e.byProviderModel,t+".byProviderModel")};for(const a of["input","output","cacheRead","cacheWrite","calls","cost"])o[a]=Y(e[a],t+"."+a);return o}function Vn(e){return e==null?void 0:{source:ae(e.source,"source"),requestId:ae(e.requestId,"requestId"),attempt:Y(e.attempt,"attempt"),complete:Se(e.complete,"complete"),status:ae(e.status,"status"),upstream:ae(e.upstream,"upstream")}}function Ea(e){return(Array.isArray(e)?e:ee("rows","array")).map(t=>({provider:ae(t.provider,"provider"),model:ae(t.model,"model"),bucket:ae(t.bucket,"bucket"),tokens:Y(t.tokens,"tokens"),...t.requests===void 0?{}:{requests:Y(t.requests,"requests")},rate:Y(t.rate,"rate"),cost:Y(t.cost,"cost"),priced:Se(t.priced,"priced"),plan:Se(t.plan,"plan")}))}function Qt(e,t){return{...La(e,t),id:ae(e.id,t+".id"),provider:typeof e.provider=="string"?e.provider:"",model:typeof e.model=="string"?e.model:""}}function Ce(e,t){const o={...La(e,t),date:ae(e.date,t+".date"),sessions:[]};return e.sessions!==void 0&&(Array.isArray(e.sessions)||ee(t+".sessions","array"),o.sessions=e.sessions.map((a,s)=>Qt(a,t+".sessions["+s+"]"))),o}function Ut(e,t,o=["cacheWrite","reasoning"]){const a={};for(const s of["cacheHit","cacheMiss","output"])a[s]=Y(e[s],t+"."+s);for(const s of o)e[s]!==void 0&&(a[s]=Y(e[s],t+"."+s));return a}function qt(e,t){ue(e,t);const o={...Ut(e,t),...gt(e)};for(const a of["offPeak","peak","legacyBase","longContext"])e[a]!==void 0&&(o[a]=Ut(e[a],t+"."+a,["cacheWrite","reasoning","aboveInputTokens"]));e.cny!==void 0&&(o.cny=Ut(e.cny,t+".cny")),e.legacy!==void 0&&(o.legacy=Se(e.legacy,t+".legacy")),e.rateHistory!==void 0&&((!Array.isArray(e.rateHistory)||e.rateHistory.length>16)&&ee(t+".rateHistory","price history"),o.rateHistory=e.rateHistory.map((a,s)=>((!a||typeof a.before!="string"||!Number.isFinite(Date.parse(a.before)))&&ee(t+".rateHistory","dated price"),{...qt({...a,rateHistory:void 0},t+".rateHistory."+s),before:a.before})));for(const a of["billingMode","sourceUrl","checkedAt","notes"])typeof e[a]=="string"&&(o[a]=e[a]);return o}function Yn(e,t){const o=s=>s==null?void 0:{...["aliyun","tokenrhythm"].includes(s.adapter)?{adapter:s.adapter}:{},enabled:s.enabled===!0,label:typeof s.label=="string"?s.label:"",labelEn:typeof s.labelEn=="string"?s.labelEn:"",dashboardUrl:typeof s.dashboardUrl=="string"?s.dashboardUrl:"",display:Ee(s.display,["sidebar","settings","off"],"both"),unit:s.adapter==="tokenrhythm"?"CNY":["CNY","EUR","CREDITS"].includes(s.unit)?s.unit:"USD",convertToDisplayCurrency:s.convertToDisplayCurrency===!0,allowInsecureHttp:s.allowInsecureHttp===!0,refreshMinutes:typeof s.refreshMinutes=="number"&&Number.isFinite(s.refreshMinutes)?s.refreshMinutes:15,request:s.request&&typeof s.request=="object"?s.request:{url:""},extract:s.extract&&typeof s.extract=="object"?s.extract:{},allowedHosts:Array.isArray(s?.allowedHosts)?s.allowedHosts.filter(l=>typeof l=="string"):[]};ue(e,t);const a={};if(e.prices!==null&&typeof e.prices=="object"&&e.prices.models!==null&&typeof e.prices.models=="object")for(const s of Object.keys(e.prices.models))a[s]=qt(e.prices.models[s],t+".prices.models."+s);return{queryAccounts:e.queryAccounts&&typeof e.queryAccounts=="object"?e.queryAccounts:{},locale:e.locale==="zh"||e.locale==="en"||e.locale==="auto"?e.locale:"auto",position:e.position==="header"||e.position==="off"?e.position:"dock",sidebar:e.sidebar!==!1,showSessionId:e.showSessionId===!0,hideOfficialBalance:e.hideOfficialBalance===!0,hideTodayCost:e.hideTodayCost===!0,sessionListCostPeriod:e.sessionListCostPeriod==="today"?"today":"total",modelStatistics:e.modelStatistics??{},...Ue(e,["hideSessionCostHeader","hideSessionCostDock","hideTurnCost","followSkinTransparency","sidebarTodayBalanceInline","sessionListCosts","hideBudget","sessionCostCompact","contextCostsEnabled","contextCostsPromptSeen","showTotalWithPlan","sidebarSimple","codexQuotaEnabled","codexCompatPromptDismissed","includeSubagentCost","peakEnabled","peakAlertWebNotify"],s=>s===!0),sidebarTodayMetric:["tokens","both"].includes(e.sidebarTodayMetric)?e.sidebarTodayMetric:"cost",sidebarTextOnly:e.sidebarTextOnly===!0,...Object.hasOwn(e,"sidebarOrder")?{sidebarOrder:Array.isArray(e.sidebarOrder)?e.sidebarOrder:[]}:{},statisticsBasis:e.statisticsBasis,sidebarModels:Object.fromEntries(Object.entries(An).map(([s,l])=>[s,e.sidebarModels?.[s]??l])),codexQuotaSidebar:e.codexQuotaSidebar!==!1,codexQuotaStrip:e.codexQuotaStrip!==!1,codexQuotaSource:["connect","subscription","chatgpt","pi-ai","chatgpt-sub"].includes(e.codexQuotaSource)?e.codexQuotaSource:"auto",codexCompatHistoryAppliedAt:fe(e.codexCompatHistoryAppliedAt),sidebarStyle:Ee(e.sidebarStyle,["standard","compact","summary"],"standard"),...Ue(e,["sidebarSimplePromptSeen","sidebarSummaryPromptSeen","peakProgressPromptSeen"].filter(s=>Object.hasOwn(e,s)),s=>s===!0),billionContextNoticeEnabled:e.billionContextNoticeEnabled!==!1,billionContextNoticesSeen:Array.isArray(e.billionContextNoticesSeen)?e.billionContextNoticesSeen.filter(s=>typeof s=="string").slice(-32):[],priceMatchDismissed:Array.isArray(e.priceMatchDismissed)?e.priceMatchDismissed.filter(s=>typeof s=="string"):[],pricingCurrency:e.pricingCurrency==="CNY"?"CNY":"USD",currency:typeof e.currency=="string"?e.currency:"CNY",symbol:typeof e.symbol=="string"?e.symbol:"¥",decimals:Y(e.decimals,t+".decimals"),exchangeRate:Y(e.exchangeRate,t+".exchangeRate"),exchangeRateAuto:e.exchangeRateAuto!==!1,fxRates:e.fxRates,exchangeRateDate:e.exchangeRateDate??"",exchangeRateCheckedAt:e.exchangeRateCheckedAt??0,peakEffectiveAt:typeof e.peakEffectiveAt=="string"?e.peakEffectiveAt:"",peakWindows:Array.isArray(e.peakWindows)?e.peakWindows.map((s,l)=>({start:Y(s.start,t+".peakWindows["+l+"].start"),end:Y(s.end,t+".peakWindows["+l+"].end")})):[],peakHolidays:Array.isArray(e.peakHolidays)?e.peakHolidays.filter(s=>typeof s=="string"):[],peakNotice:e.peakNotice!==!1,peakAlertEnabled:e.peakAlertEnabled!==!1,peakAlertAhead:Number.isFinite(e.peakAlertAhead)&&e.peakAlertAhead>=1&&e.peakAlertAhead<=30?e.peakAlertAhead:2,peakAlertTarget:e.peakAlertTarget==="peak"||e.peakAlertTarget==="offpeak"?e.peakAlertTarget:"both",peakAlertPosition:e.peakAlertPosition==="center"?"center":"corner",peakStyle:["classic","progress"].includes(e.peakStyle)?e.peakStyle:"compact",peakTimeDisplay:["countdown","switch"].includes(e.peakTimeDisplay)?e.peakTimeDisplay:"both",priceMatch:e.priceMatch==="exact"?"exact":"auto",priceOverrides:(()=>{const s={};if(e.priceOverrides!==null&&typeof e.priceOverrides=="object"&&!Array.isArray(e.priceOverrides))for(const[l,r]of Object.entries(e.priceOverrides))typeof l=="string"&&typeof r=="string"&&(s[l]=r);return s})(),priceTableDisplay:(()=>{const s={};if(e.priceTableDisplay!==null&&typeof e.priceTableDisplay=="object"&&!Array.isArray(e.priceTableDisplay))for(const[l,r]of Object.entries(e.priceTableDisplay))typeof l=="string"&&(s[l]=r===!0);return s})(),codingPlans:(()=>{const s={};if(e.codingPlans!==null&&typeof e.codingPlans=="object"&&!Array.isArray(e.codingPlans))for(const l of Object.keys(e.codingPlans)){const r=e.codingPlans[l];r===null||typeof r!="object"||Array.isArray(r)||(s[l]={enabled:r.enabled===!0,display:r.display==="sidebar"||r.display==="both"||r.display==="off"?r.display:"settings",...typeof r.showInComposer=="boolean"?{showInComposer:r.showInComposer}:{},refreshMinutes:typeof r.refreshMinutes=="number"&&Number.isFinite(r.refreshMinutes)?r.refreshMinutes:15,apiKey:typeof r.apiKey=="string"?r.apiKey:"",...l==="minimax"?{baseUrl:typeof r.baseUrl=="string"?r.baseUrl:""}:{},...l==="factory"?{orgId:typeof r.orgId=="string"?r.orgId:"",factoryPool:["core","both"].includes(r.factoryPool)?r.factoryPool:"standard"}:{},...l==="workbuddy"?{accountScope:r.accountScope??"current",accountIds:Array.isArray(r.accountIds)?r.accountIds:[],...typeof r.accountSource=="string"?{accountSource:r.accountSource}:{}}:{},...l==="opendesign"?{workspaceId:typeof r.workspaceId=="string"?r.workspaceId:""}:{},...l==="qwen"?{quotaSource:["cli","bailian"].includes(r.quotaSource)?r.quotaSource:"local"}:{},...typeof r.planCredits=="number"&&Number.isFinite(r.planCredits)&&r.planCredits>0?{planCredits:r.planCredits}:{},...typeof r.planStart=="string"?{planStart:r.planStart}:{},...r.rates!==null&&typeof r.rates=="object"&&!Array.isArray(r.rates)?{rates:r.rates}:{},...typeof r.accessKeyId=="string"?{accessKeyId:r.accessKeyId}:{},...typeof r.secretAccessKey=="string"?{secretAccessKey:r.secretAccessKey}:{}})}return s})(),prices:{models:a,...e.prices?.custom?{custom:e.prices.custom}:{},default:qt(e.prices?.default??{cacheHit:0,cacheMiss:0,output:0},t+".prices.default"),providers:e.prices?.providers&&typeof e.prices.providers=="object"?e.prices.providers:{},currency:typeof e.prices?.currency=="string"&&e.prices.currency.length>0?e.prices.currency:void 0},historyDays:Y(e.historyDays,t+".historyDays"),billingStorageRetentionDays:[0,7,30].includes(e.billingStorageRetentionDays)?e.billingStorageRetentionDays:7,fetchedAt:e.fetchedAt===null||e.fetchedAt===void 0?null:ae(e.fetchedAt,t+".fetchedAt"),priceSource:typeof e.priceSource=="string"?e.priceSource:"bundled",budget:{enabled:e.budget?.enabled===!0,amount:typeof e.budget?.amount=="number"&&Number.isFinite(e.budget.amount)?e.budget.amount:100,period:e.budget?.period==="day"||e.budget?.period==="all"||e.budget?.period==="custom"?e.budget.period:"month",customStart:typeof e.budget?.customStart=="string"?e.budget.customStart:null,customEnd:typeof e.budget?.customEnd=="string"?e.budget.customEnd:null,detail:e.budget?.detail!==!1},balance:{display:Ee(e.balance?.display,["sidebar","settings","off"],"both"),refreshMinutes:typeof e.balance?.refreshMinutes=="number"&&Number.isFinite(e.balance.refreshMinutes)?e.balance.refreshMinutes:5,showProgressBar:e.balance?.showProgressBar===!0,showSource:e.balance?.showSource===!0,officialChannelOnly:e.balance?.officialChannelOnly===!0,quickHide:e.balance?.quickHide===!0,budgetCap:typeof e.balance?.budgetCap=="number"&&Number.isFinite(e.balance.budgetCap)&&e.balance.budgetCap>0?e.balance.budgetCap:null,...Object.hasOwn(e.balance??{},"clickHintSeen")?{clickHintSeen:e.balance?.clickHintSeen===!0}:{}},goQuota:{enabled:e.goQuota?.enabled!==!1,...typeof e.goQuota?.showInComposer=="boolean"?{showInComposer:e.goQuota.showInComposer}:{},display:Ee(e.goQuota?.display,["sidebar","settings","off"],"both"),refreshMinutes:typeof e.goQuota?.refreshMinutes=="number"&&Number.isFinite(e.goQuota.refreshMinutes)?e.goQuota.refreshMinutes:15,apiKey:typeof e.goQuota?.apiKey=="string"?e.goQuota.apiKey:"",main:e.goQuota?.main==="weekly"||e.goQuota?.main==="monthly"?e.goQuota.main:"rolling",detail:e.goQuota?.detail!==!1},customBalance:o(e.customBalance),gatewayQuotas:(()=>{const s=Array.isArray(e.gatewayQuotas)?e.gatewayQuotas:e.gatewayQuotas?.sources;return{sources:Array.isArray(s)?s.slice(0,4).filter(r=>r!==null&&typeof r=="object"&&!Array.isArray(r)).map(r=>({id:typeof r.id=="string"?r.id.slice(0,48):"",type:"cliproxyapi",label:typeof r.label=="string"?r.label.slice(0,80):"",baseURL:typeof r.baseURL=="string"?r.baseURL:"",enabled:r.enabled!==!1,display:Ee(r.display,["sidebar","settings","off"],"both"),refreshMinutes:typeof r.refreshMinutes=="number"&&Number.isFinite(r.refreshMinutes)?Math.min(1440,Math.max(1,Math.floor(r.refreshMinutes))):15,includeProviders:Array.isArray(r.includeProviders)?[...new Set(r.includeProviders.filter(i=>typeof i=="string").map(i=>i.toLowerCase()).filter(i=>Wt.includes(i)))]:Wt,allowedHosts:Array.isArray(r.allowedHosts)?r.allowedHosts.filter(i=>typeof i=="string").slice(0,16):[],allowInsecureHttp:r.allowInsecureHttp===!0,antigravityOnlyGemini:r.antigravityOnlyGemini===!0,keyVar:typeof r.keyVar=="string"?r.keyVar:""})):[]}})(),customBalances:(()=>{if(Array.isArray(e.customBalances))return e.customBalances.filter(l=>l!==null&&typeof l=="object").slice(0,8).map(o).filter(Boolean);const s=o(e.customBalance);return s?[s]:[]})(),corner:{enabled:e.corner?.enabled===!0,goRolling:e.corner?.goRolling!==!1,goWeekly:e.corner?.goWeekly!==!1,goMonthly:e.corner?.goMonthly!==!1,budget:e.corner?.budget!==!1},quotaStrip:{enabled:e.quotaStrip?.enabled===!0,budget:e.quotaStrip?.budget!==!1,go:e.quotaStrip?.go!==!1,plans:e.quotaStrip?.plans!==!1,...Object.hasOwn(e.quotaStrip??{},"promptSeen")?{promptSeen:e.quotaStrip?.promptSeen===!0}:{}},usage:{position:e.usage?.position==="general"||e.usage?.position==="section"?e.usage.position:"cost"},barDirections:(()=>{const s=e.barDirections!==null&&typeof e.barDirections=="object"&&!Array.isArray(e.barDirections)?e.barDirections:{},l=(r,i)=>s[r]==="remaining"||s[r]==="used"?s[r]:i;return{balance:l("balance","remaining"),budget:l("budget","used"),go:l("go","used"),plan:l("plan","used")}})(),planBilling:{...Array.isArray(e.planBilling?.autoProviders)?{autoProviders:e.planBilling.autoProviders.filter(s=>_e.includes(s))}:{},providers:Ba(e.planBilling?.providers),models:Ba(e.planBilling?.models,!0),modelPlans:Object.fromEntries(Object.entries(e.planBilling?.modelPlans??{}).filter(([s,l])=>s.includes(":")&&_e.includes(l)))}}}const $e=e=>typeof e=="number"&&Number.isFinite(e)?e:null,fe=e=>$e(e)??0,$n={status:"off",message:"",fetchedAt:0,currency:"",totalBalance:0,grantedBalance:0,toppedUpBalance:0},Jn={status:"off",message:"",fetchedAt:0,rolling:null,weekly:null,monthly:null},Ia=(e=null)=>({status:"off",message:"",fetchedAt:0,label:"",unit:"USD",remaining:0,maxBudget:null,spend:null,index:e});function Ft(e,t){return ue(e,t),{status:e.status==="ok"||e.status==="error"?e.status:"off",message:typeof e.message=="string"?e.message:"",fetchedAt:typeof e.fetchedAt=="number"?e.fetchedAt:0}}function Zn(e,t){return{...Ft(e,t),keyConfigured:e.keyConfigured===!0,keySource:typeof e.keySource=="string"?e.keySource:"",currency:typeof e.currency=="string"?e.currency:"",totalBalance:fe(e.totalBalance),grantedBalance:fe(e.grantedBalance),toppedUpBalance:fe(e.toppedUpBalance)}}function _t(e,t){return e==null?null:((typeof e!="object"||Array.isArray(e))&&ee(t,"object"),{percent:fe(e.percent),resetsAt:typeof e.resetsAt=="string"?e.resetsAt:""})}function Xn(e,t){return{...Ft(e,t),rolling:_t(e.rolling,t+".rolling"),weekly:_t(e.weekly,t+".weekly"),monthly:_t(e.monthly,t+".monthly")}}function ja(e,t){return{...Ft(e,t),label:typeof e.label=="string"?e.label:"",unit:typeof e.unit=="string"?e.unit:"USD",remaining:fe(e.remaining),maxBudget:$e(e.maxBudget),spend:$e(e.spend),index:typeof e.index=="number"&&Number.isFinite(e.index)&&e.index>=0?Math.floor(e.index):null}}const eo=new Set(["ok","partial","unknown","error","stale","unsupported","capability_missing"]),to=new Set(["off","loading","ok","partial","stale","error"]),Wt=["antigravity","claude","codex","kimi","xai","workbuddy"],Ha={antigravity:"Antigravity",claude:"Claude",codex:"Codex",kimi:"Kimi",xai:"xAI",workbuddy:"WorkBuddy"};function ao(e,t){ue(e,t);const o=(r,i="")=>typeof r=="string"?r:i,a=r=>$e(r),s=r=>r!==null&&typeof r=="object"&&!Array.isArray(r)?{id:o(r.id),label:o(r.label),...a(r.percent)===null?{}:{percent:a(r.percent)},resetsAt:o(r.resetsAt),periodHours:a(r.periodHours),scope:o(r.scope)}:null,l=r=>r!==null&&typeof r=="object"&&!Array.isArray(r)?{unit:o(r.unit,"credits"),used:a(r.used),remaining:a(r.remaining),limit:a(r.limit),fetchedAt:o(r.fetchedAt),packages:Array.isArray(r.packages)?r.packages.filter(i=>i!==null&&typeof i=="object"&&!Array.isArray(i)).map(i=>({id:o(i.id),label:o(i.label),used:a(i.used),remaining:a(i.remaining),limit:a(i.limit),startsAt:o(i.startsAt),resetsAt:o(i.resetsAt)})):[]}:void 0;return{id:o(e.id),type:"cliproxyapi",label:o(e.label),status:to.has(e.status)?e.status:"error",message:o(e.message),fetchedAt:a(e.fetchedAt)??0,attemptedAt:a(e.attemptedAt)??0,serverVersion:o(e.serverVersion),keyConfigured:e.keyConfigured===!0,keySource:o(e.keySource,"none"),accounts:Array.isArray(e.accounts)?e.accounts.filter(r=>r!==null&&typeof r=="object"&&!Array.isArray(r)).slice(0,16).map(r=>({id:o(r.id),provider:o(r.provider,"unknown"),label:o(r.label,"unknown"),status:eo.has(r.status)?r.status:"unknown",message:o(r.message),plan:o(r.plan),windows:Array.isArray(r.windows)?r.windows.map(s).filter(Boolean):[],credits:l(r.credits)})):[],unsupportedProviders:Array.isArray(e.unsupportedProviders)?e.unsupportedProviders.filter(r=>typeof r=="string").slice(0,32):[]}}function no(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;const t={};if(e.providers!==null&&typeof e.providers=="object"&&!Array.isArray(e.providers))for(const[o,a]of Object.entries(e.providers)){if(a===null||typeof a!="object"||Array.isArray(a))continue;const s={},l={};if(a.windows!==null&&typeof a.windows=="object"&&!Array.isArray(a.windows))for(const[r,i]of Object.entries(a.windows))i===null||typeof i!="object"||Array.isArray(i)||(s[r]={...Ue(i,["percent","localTokens","localCost","sampleCount"],fe),...Ue(i,["sampleAt","per1Tokens","per1Cost","fullTokens","fullCost"],$e),resetsAt:typeof i.resetsAt=="string"?i.resetsAt:"",method:i.method==="sample"||i.method==="live"?i.method:"none",confidence:i.confidence==="high"||i.confidence==="low"?i.confidence:null});if(a.intervals!==null&&typeof a.intervals=="object"&&!Array.isArray(a.intervals))for(const[r,i]of Object.entries(a.intervals))Array.isArray(i)&&(l[r]=i.filter(d=>d!==null&&typeof d=="object"&&!Array.isArray(d)).map(d=>Ue(d,["t0","t1","tokens","cost","pct","per1Tokens","per1Cost"],fe)));t[o]={windows:s,intervals:l}}return{generatedAt:fe(e.generatedAt),providers:t}}function oo(e){if(!e||typeof e!="object"||Array.isArray(e))return;const t=e.usage&&typeof e.usage=="object"?e.usage:{};return{installed:e.installed===!0,enabled:e.enabled===!0,version:typeof e.version=="string"?e.version:"",detection:Ee(e.detection,["package","profile","none"],"none"),planClass:Ee(e.planClass,["auto","plan","api"],"auto"),usage:{calls:fe(t.calls),cost:fe(t.cost),tokens:fe(t.tokens),days:fe(t.days),providers:(Array.isArray(t.providers)?t.providers:[]).filter(o=>typeof o=="string")},historyAppliedAt:fe(e.historyAppliedAt),promptDismissed:e.promptDismissed===!0,promptDue:e.promptDue===!0}}function Qa(e,t){return ue(e,t),{today:Ce(e.today,t+".today"),month:Ce(e.month,t+".month"),total:Ce(e.total,t+".total"),budgetUsed:typeof e.budgetUsed=="number"&&Number.isFinite(e.budgetUsed)?e.budgetUsed:void 0,balance:e.balance==null?$n:Zn(e.balance,t+".balance"),goQuota:e.goQuota==null?Jn:Xn(e.goQuota,t+".goQuota"),customBalance:e.customBalance==null?Ia():ja(e.customBalance,t+".customBalance"),customBalances:Array.isArray(e.customBalances)?e.customBalances.filter(o=>o!==null&&typeof o=="object").map((o,a)=>ja(o,t+".customBalances["+a+"]")):[],gatewayQuotas:Array.isArray(e.gatewayQuotas)?e.gatewayQuotas.filter(o=>o!==null&&typeof o=="object"&&!Array.isArray(o)).map((o,a)=>ao(o,t+".gatewayQuotas["+a+"]")):[],customVarStatus:e.customVarStatus!==null&&typeof e.customVarStatus=="object"&&!Array.isArray(e.customVarStatus)?Object.fromEntries(Object.entries(e.customVarStatus).filter(([,o])=>o!==null&&typeof o=="object").map(([o,a])=>[o,{configured:a.configured===!0,source:typeof a.source=="string"?a.source:""}])):{},codingPlans:e.codingPlans!==null&&typeof e.codingPlans=="object"&&!Array.isArray(e.codingPlans)?e.codingPlans:{},planStats:no(e.planStats),codexCompat:oo(e.codexCompat),ourFreeModel:e.ourFreeModel?.enabled===!0?{enabled:!0,version:typeof e.ourFreeModel.version=="string"?e.ourFreeModel.version:""}:void 0,history:Array.isArray(e.history)?e.history.map((o,a)=>Ce(o,t+".history["+a+"]")):[],billionContext:e.billionContext?.protocol===1?{protocol:1,connected:e.billionContext.connected===!0,failed:e.billionContext.failed===!0,requests:Number(e.billionContext.requests)||0,unreported:Number(e.billionContext.unreported)||0,partial:Number(e.billionContext.partial)||0,uncovered:Number(e.billionContext.uncovered)||0,unresolved:Number(e.billionContext.unresolved)||0,detected:e.billionContext.detected===!0,version:typeof e.billionContext.version=="string"?e.billionContext.version.slice(0,100):"",compatibility:["needs_update","changed","bridge_missing","ready"].includes(e.billionContext.compatibility)?e.billionContext.compatibility:"unknown",noticeId:typeof e.billionContext.noticeId=="string"?e.billionContext.noticeId.slice(0,240):""}:void 0,externalUsage:e.externalUsage&&Array.isArray(e.externalUsage.sources)?{fetchedAt:Number(e.externalUsage.fetchedAt)||0,stale:e.externalUsage.stale===!0,sources:e.externalUsage.sources.map(o=>({source:String(o.source),today:Ce(o.today,t+".external.today"),month:Ce(o.month,t+".external.month"),total:Ce(o.total,t+".external.total"),history:(o.history??[]).map(a=>Ce(a,t+".external.history"))})),combined:Object.fromEntries(["today","month","total","history"].map(o=>[o,o==="history"?(e.externalUsage.combined.history??[]).map(a=>Ce(a,t+".external.history")):Ce(e.externalUsage.combined[o],t+".external."+o)]))}:null,config:Yn(e.config,t+".config"),pricesRev:typeof e.pricesRev=="string"?e.pricesRev:void 0,modelLabels:Object.fromEntries(Object.entries(e.modelLabels??{}).filter(([,o])=>typeof o=="string")),modelDirectory:e.modelDirectory,reconcile:e.reconcile===null||e.reconcile===void 0?void 0:{ok:e.reconcile.ok===!0,message:typeof e.reconcile.message=="string"?e.reconcile.message:""},priceLockIds:Array.isArray(e.priceLockIds)?e.priceLockIds.filter(o=>typeof o=="string"):[],meta:{...Ve(e.meta?.locale)?{locale:Ve(e.meta.locale)}:{},now:typeof e.meta?.now=="number"?e.meta.now:Date.now(),timezoneOffsetMinutes:typeof e.meta?.timezoneOffsetMinutes=="number"?e.meta.timezoneOffsetMinutes:0,timezone:typeof e.meta?.timezone=="string"?e.meta.timezone:"",...typeof e.meta?.defaultProvider=="string"?{defaultProvider:e.meta.defaultProvider}:{},dayKey:typeof e.meta?.dayKey=="string"?e.meta.dayKey:"",monthKey:typeof e.meta?.monthKey=="string"?e.meta.monthKey:""}}}function so(e,t){ue(e,t);const o={ok:e.ok===!0,message:typeof e.message=="string"?e.message:""};return e.state!==void 0&&e.state!==null&&(o.state=Qa(e.state,t+".state")),o}function Z(e){return{parse:e}}const Je=Z(Qa),lo=Z(e=>ue(e,"patch")),ro=Z(so),Kt=Z(e=>ae(e,"provider")),io=Z(e=>{if(e!=null)return(typeof e!="number"||!Number.isInteger(e)||e<0||e>7)&&ee("index","0-7 integer"),e}),co=Z(e=>ae(e,"date")),uo=Z(e=>ue(e,"day")),po=Z(e=>(Number.isFinite(Number(e))||ee("limit","number"),Number(e))),Ua=Z(e=>ae(e,"sort")),mo=Z(e=>ue(e,"topSessions")),qa=Z(e=>ae(e,"target")),fo=Z(e=>ae(e,"value")),he=(e,t)=>({mode:"strict",typeSymbol:"dsh-cost-meter#"+e,schema:t,create:()=>t}),se=(e,t,o,a=!1)=>({name:e,wire:e,source:"json",codec:he(t,o),...a?{acceptsUndefined:!0}:{}}),Fa=Z(e=>{ue(e,"billing storage options"),(Object.keys(e).some(o=>!["retentionDays","apply","streams","groups"].includes(o))||![0,7,30].includes(e.retentionDays))&&ee("billing storage options","retentionDays 0/7/30");const t={retentionDays:e.retentionDays};for(const o of["apply","streams","groups"])e[o]!==void 0&&typeof e[o]!="boolean"&&ee(o,"boolean"),t[o]=e[o]??o!=="apply";return t}),bo={package:"dsh-cost-meter",descriptors:[{method:"getStateSince",parameters:[se("pricesRev","PricesRev",Z(e=>(typeof e!="string"&&ee("pricesRev","price table revision"),e)))],result:he("CostState",Je)},...["getState","getLocalState"].map(e=>({method:e,result:he("CostState",Je)})),{method:"billingStorage",parameters:[se("options","BillingStorageOptions",Fa)],result:he("BillingStorage",Z(e=>{ue(e,"billing storage");const t={};for(const o of["retentionDays","scannedAt","sessions","reclaimableBytes","archivedStreams","removedFiles","releasedBytes","archiveBytes","skipped"])t[o]=Y(e[o],o);for(const o of["applied","limited"])typeof e[o]!="boolean"&&ee(o,"boolean"),t[o]=e[o];for(const o of["streams","groups","archives"]){const a=ue(e[o],o),s={};for(const l of["files","bytes","eligibleFiles","eligibleBytes"])s[l]=Y(a[l],o+"."+l);for(const l of["oldestAt","newestAt"])s[l]=a[l]===null?null:Y(a[l],o+"."+l);t[o]=s}return t}))},{method:"updateConfig",parameters:[se("patch","ConfigPatch",lo)],result:he("CostState",Je)},{method:"fetchPrices"},{method:"releasePriceLock",parameters:[se("id","PriceLockId",Z(e=>((typeof e!="string"||e.length===0)&&ee("id","OpenRouter model id"),e)))]},{method:"refreshBalance"},{method:"refreshGoQuota"},...["getPiAiCodexQuota","getChatgptSubQuota"].map(e=>({method:e,result:he("PiAiCodexQuota",Z(t=>{ue(t,"pi-ai quota"),["off","ok","error"].includes(t.status)||ee("pi-ai quota status","off/ok/error");const o={},a=ue(t.windows,"pi-ai windows");for(const s of["five","weekly"])if(a[s]!==void 0){const l=Y(a[s].percent,s);(l<0||l>100)&&ee(s,"0-100 percent"),o[s]={percent:l,resetsAt:ae(a[s].resetsAt,"resetsAt")}}return{status:t.status,windows:o,message:ae(t.message,"message")}}))})),{method:"refreshCustomBalance",parameters:[se("index","CustomBalanceIndex",io,!0)]},{method:"refreshCodingPlan",parameters:[se("provider","CodingPlanProvider",Kt)]},{method:"loginCodingPlan",parameters:[se("provider","CodingPlanProvider",Kt)]},{method:"refreshGatewayQuota",parameters:[se("sourceId","GatewayQuotaSourceId",Z(e=>{if(e!=null)return(typeof e!="string"||e.length>48||!/^[a-z0-9][a-z0-9_-]*$/.test(e))&&ee("sourceId","gateway source id"),e}),!0)]},{method:"resetHistory",result:he("CostState",Je)},{method:"importLegacyHistory"},{method:"getDaySessions",parameters:[se("date","DayKey",co)],result:he("DayRecord",uo)},{method:"getSessionCost",parameters:[se("sessionId","SessionId",Kt)],result:he("SessionCost",Z(e=>({own:Qt(e.own,"own"),subagents:Qt(e.subagents,"subagents"),found:Se(e.found,"found"),subagentCount:Y(e.subagentCount,"subagentCount")})))},{id:"dsh-cost-meter#costMeter/getTurnCost",service:"costMeter",namespace:"costMeter",method:"getTurnCost",invocation:{kind:"direct"},parameters:[se("sessionId","SessionId",Z(e=>ae(e,"sessionId"))),...["startSeq","endSeq"].map(e=>se(e,"TurnSeq",Z(t=>((!Number.isSafeInteger(t)||t<0)&&ee(e,"nonnegative integer"),t)))),{...se("displayCurrency","DisplayCurrency",Z(e=>(e!==void 0&&!["USD","CNY","EUR"].includes(e)&&ee("displayCurrency","currency"),e))),acceptsUndefined:!0}],result:he("TurnCost",Z(e=>({...Ht(e),found:Se(e.found,"found"),...e.inherited===void 0?{}:{inherited:Se(e.inherited,"inherited")},cost:Y(e.cost,"cost"),apiCost:Y(e.apiCost,"apiCost"),rows:Ea(e.rows),calls:(Array.isArray(e.calls)?e.calls:ee("calls","array")).map(t=>({kind:ae(t.kind,"kind"),provider:ae(t.provider,"provider"),model:ae(t.model,"model"),atMs:Y(t.atMs,"atMs"),cost:Y(t.cost,"cost"),apiCost:Y(t.apiCost,"apiCost"),plan:Se(t.plan,"plan"),priced:Se(t.priced,"priced"),longContext:Se(t.longContext,"longContext"),rows:Ea(t.rows),...t.metering?{metering:Vn(t.metering)}:{}}))})))},{method:"getTopSessions",parameters:[se("limit","SessionLimit",po),se("sort","SessionSort",Ua,!0),se("dir","SessionSortDir",Ua,!0)],result:he("TopSessions",mo)},{method:"setCredential",parameters:[se("target","CredentialTarget",qa),se("value","CredentialValue",fo)]},{method:"clearCredential",parameters:[se("target","CredentialTarget",qa)]},...["applyCodexCompatHistory","dismissCodexCompat"].map(e=>({method:e,result:he("CostState",Je)}))].map(e=>({id:"dsh-cost-meter#costMeter/"+e.method,service:"costMeter",namespace:"costMeter",invocation:{kind:"direct"},parameters:[],result:he("FetchPricesResult",ro),...e}))};function go(e,t){const o=t?.models??{};return typeof e=="string"&&e.length>0&&o[e]!==void 0?o[e]:t?.default??{cacheHit:0,cacheMiss:0,output:0}}function gt(e){return Object.fromEntries(["multiplier","separateMultipliers","multipliers"].filter(t=>e?.[t]!==void 0).map(t=>[t,e[t]]))}function ht(e,t){return(e.separateMultipliers?e.multipliers?.[t]:void 0)??e.multiplier??1}function _a(e,t,o="base"){const a={};for(const s of["cacheHit","cacheMiss","cacheWrite","output","reasoning"])e[s]!==void 0&&(a[s]=e[s]*ht(t,o+"."+s));return e.longContext&&(a.longContext={..._a(e.longContext,t,"longContext"),aboveInputTokens:e.longContext.aboveInputTokens}),a}function ho(e){const t=gt(e);return t.multipliers&&(t.multipliers=Object.fromEntries(Object.entries(t.multipliers).filter(([o])=>o.startsWith("cny.")).map(([o,a])=>[o.replace("cny.","base."),a]))),{...e.cny,...t}}function qe(e){if(e===null||typeof e!="object")return;const t=r=>{const i=e[r];return typeof i=="number"&&Number.isFinite(i)&&i>=0?i:void 0},o=t("cacheMiss")??t("input")??0,s={cacheHit:t("cacheHit")??t("cachedInput")??t("cacheRead")??o,cacheMiss:o,output:t("output")??0},l=t("reasoning");return l!==void 0&&(s.reasoning=l),t("cacheWrite")!==void 0&&(s.cacheWrite=t("cacheWrite")),s}function yo(e){const t=qe(e);if(t===void 0)return null;Object.assign(t,gt(e)),e.billingMode==="utc-peak"&&(t.billingMode="utc-peak"),e.peakSchedule==="volcengine"&&(t.peakSchedule="volcengine");for(const o of["offPeak","peak","legacyBase"]){const a=qe(e[o]);a!==void 0&&(t[o]=a)}return Number.isFinite(e.longContext?.aboveInputTokens)&&e.longContext.aboveInputTokens>0&&(t.longContext={...qe(e.longContext),aboveInputTokens:e.longContext.aboveInputTokens}),Array.isArray(e.rateHistory)&&(t.rateHistory=e.rateHistory.slice(0,16).map(o=>{const a={...qe(o),before:o.before};for(const s of["offPeak","peak"]){const l=qe(o[s]);l!==void 0&&(a[s]=l)}return a})),t}function Ze(e,t=Date.now()){if(!e||!Number.isFinite(t)||!Array.isArray(e.rateHistory))return e;let o=null,a=1/0;for(const r of e.rateHistory){const i=Date.parse(r.before);t<i&&i<a&&(o=r,a=i)}if(!o)return e;const{before:s,...l}=o;return{...e,...l}}const Gt=Date.parse("2026-08-22T16:00:00Z");function Wa(e){if(!Number.isFinite(e)||e<Gt)return null;const t=Math.floor((e+8*36e5)/864e5),o=(t+4)%7;if(o!==6&&o!==0)return null;const a=o===6?t:t-1;return{start:Math.max(a*864e5-8*36e5,Gt),end:(a+2)*864e5-8*36e5}}function Ka(e,t){if(!Number.isFinite(e)||e<Gt||!Array.isArray(t))return null;const o=Math.floor((e+8*36e5)/864e5);return t.includes(new Date(o*864e5).toISOString().slice(0,10))?{start:o*864e5-8*36e5,end:(o+1)*864e5-8*36e5}:null}const ko=(e,t)=>Ka(e,t)??Wa(e);function yt(e,t,o,a){if(!Array.isArray(o)||o.length===0||ko(e,a)!==null||Number.isFinite(t)&&e<t)return!1;const s=new Date(e).getUTCHours();return o.some(l=>{const r=Number(l.start),i=Number(l.end);return!Number.isFinite(r)||!Number.isFinite(i)?!1:r<i?s>=r&&s<i:s>=r||s<i})}const xo=Date.parse("2026-08-16T16:00:00Z"),wo=17881344e5;function Ga(e,t,o){const a=Ze(e,t)??{cacheHit:0,cacheMiss:0,output:0},s=(i,d="base")=>({reasoning:0,..._a(i,a,d)}),l=a.peakSchedule==="ollama";if(l||a.billingMode==="utc-peak"){if(o?.enabled!==!0||!Number.isFinite(t)||l&&t<wo)return s(a);const i=new Date(t),d=i.getUTCDay(),c=i.getUTCHours(),u=d>0&&d<6&&(l?c>=12&&c<18:c>=1&&c<4||c>=6&&c<10);return s((u?a.peak:a.offPeak)??a,(u?a.peak:a.offPeak)?u?"peak":"offPeak":"base")}if(Number.isFinite(t)&&t<xo){const i=a.legacyBase;return i===void 0?s(a):s(i,"legacyBase")}if(o?.enabled!==!0)return s(a);const r=typeof o.effectiveAtMs=="number"&&Number.isFinite(o.effectiveAtMs)?o.effectiveAtMs:void 0;if(yt(t,r,o.windows,a.peakSchedule==="volcengine"?[]:o.holidays)){const i=a.peak;return i===void 0?s(a):s(i,"peak")}if(r!==void 0&&t>=r){const i=a.offPeak;return i===void 0?s(a):s(i,"offPeak")}return s(a)}function za(e,t){const o=Math.max(0,Number(e.input)||0),a=Math.max(0,Number(e.output)||0),s=Math.max(0,Number(e.cacheRead)||0),l=Math.max(0,Number(e.cacheWrite)||0),r=Math.max(0,Number(e.reasoning)||0);return t.longContext&&o+s+l>t.longContext.aboveInputTokens&&(t=t.longContext),(o*t.cacheMiss+a*t.output+s*t.cacheHit+l*(t.cacheWrite??t.cacheHit)+r*(t.reasoning??0))/1e6}function Va(e,t,o){const a=Number(e);if(!Number.isFinite(a)||a<0||a===0)return 0;if(t!=="CNY")return a;const s=Number(o);return!Number.isFinite(s)||s<=0?a:a/s}function ie(e,t){const o=e?.barDirections,a=t==="balance"?"remaining":"used";if(o===null||typeof o!="object"||Array.isArray(o))return a;const s=o[t];return s==="remaining"||s==="used"?s:a}function xe(e,t){if(e==null||!Number.isFinite(Number(e)))return{width:0,label:null};const o=Math.max(0,Math.min(100,Number(e))),a=t==="remaining"?Math.round((100-o)*10)/10:Math.round(o*10)/10;return{width:a,label:a}}const Ya=(e,t)=>e.toFixed(t).replace(/(\.\d*?[1-9])0+$|\.0+$/,"$1");function de(e,t){const o=typeof t?.symbol=="string"&&t.symbol.length>0?t.symbol:"$",a=Number(t?.decimals),s=Math.max(0,Math.min(10,Number.isFinite(a)?Math.floor(a):2));let l=s;return e>0&&e<Math.pow(10,-s)&&(l=s+2),o+Ya(e,l)}function K(e,t){const o=Number(t?.exchangeRate),a=e*(Number.isFinite(o)&&o>0?o:1);return de(a,t)}function L(e){const t=Math.max(0,Number(e)||0),o=a=>a>=100?String(Math.round(a)):String(Math.round(a*10)/10);return t<1e3?String(Math.round(t)):t>=999500?o(t/1e6)+"M":t<1e6?o(t/1e3)+"K":o(t/1e6)+"M"}function zt(e){return String(e??"").normalize("NFKC").toLowerCase().replace(/[((]\s*(?:go|zen)\s*[))]/g," ").trim()}function ve(e){return zt(e).replace(/[^\p{L}\p{N}]+/gu,"")}function No(e,t=!0,o=!0){const a=zt(e);return t&&/[-_./:@](?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])$/.test(a)?a.slice(0,-5):t&&o&&/[-_./:@]\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])$/.test(a)?a.slice(0,-7):a.replace(/[-_./:@](?:\d{4}-?\d{2}-?\d{2}|v\d+(?:\.\d+)*|\d+k|latest)$/,"")}function kt(e,t,o=e,a=!0,s=!0){if(typeof e!="string"||e.length===0)return null;const l=Array.isArray(t)?t.filter(d=>typeof d=="string"&&d.length>0):[],r=l.find(d=>d===o);if(r!==void 0)return r;let i=e.normalize("NFKC").trim();if(/[:((]\s*(?:free|online)\b/i.test(i))return null;for(;;){const d=ve(i);if(d.length===0)return null;const c=l.filter(f=>ve(f)===d);if(c.length>0)return c.length===1?c[0]:null;const u=No(i,a,s);if(u===i.toLowerCase())return null;i=u}}const Vt=["opendesign","open-design","open-design-api","amr-link.open-design.ai"],Yt=new Set(["openrouter","opencode-zen","opencode-go","opencode-go-plus","zen","opencode",...Vt]),xt={openai:/^(?:gpt|o\d|codex)/i,anthropic:/^claude/i,google:/^gemini/i,stepfun:/^step-/i,deepseek:/^deepseek/i,moonshot:/^kimi/i,"z-ai":/^glm/i,xai:/^grok/i,alibaba:/^qwen/i,minimax:/^minimax/i,tencent:/^(?:hunyuan|hy\d)/i,xiaomi:/^mimo/i,upstage:/^solar/i,nvidia:/^nemotron/i,mistral:/^mistral/i,meta:/^(?:muse|llama)/i,meituan:/^longcat/i};function $t(e){return["deepseek-peak","utc-peak"].includes(e?.billingMode)?e.billingMode:"flat"}function Fe(e,t,o,a,s){if(typeof e!="string")return null;if(Object.hasOwn(t,e))return e;if(a!=="auto")return null;let l=e.normalize("NFKC").trim().replace(/^models\/(?=gemini)/i,"google/");const r=l.search(/[/:]/);if(r>0){const i=l.slice(0,r).trim().toLowerCase(),d=l.slice(r+1).trim();if(Object.hasOwn(xt,i)&&(i===o||(o==="opencode-zen"||o==="opencode-go")&&(xt[i].test(d)||kt(d,Object.keys(i==="deepseek"?s?.models??{}:s?.providers?.[i]?.models??{}),d,s?.snapshotTags!==!1,s?.shortSnapshotTags!==!1)!==null)))l=d;else if(Object.hasOwn(xt,i))return null}return kt(l,Object.keys(t),e,s?.snapshotTags!==!1,s?.shortSnapshotTags!==!1)}const So=new Set(["local","lmstudio","ollama","jan","gpt4all","koboldcpp","llamacpp","llama-cpp","localai","vllm","sglang","tabbyapi","lmdeploy","oobabooga","text-generation-webui","llama-server"]),Co=["lmstudio:","lmstudio/","ollama:","ollama/","jan:","jan/","gpt4all:","gpt4all/","koboldcpp:","koboldcpp/","llamacpp:","llamacpp/","llama-cpp:","llama-cpp/","localai:","localai/","vllm:","vllm/","sglang:","sglang/","tabbyapi:","tabbyapi/","lmdeploy:","oobabooga/","text-generation-webui/","llama-server:","gguf:","local:"];function vo(e,t){if(typeof e=="string"&&So.has(e))return!0;const o=typeof t=="string"?zt(t):"";return Co.some(a=>o.startsWith(a))}function Ao(e,t,o,a){if(e!=="deepseek"&&!e.includes("deepseek")&&typeof t=="string"&&t.length>0&&t!=="__local__"&&!t.includes(":")){const s=o.models??{},l=Object.hasOwn(s,t)?t:a==="auto"?kt(t,Object.keys(s),t,o?.snapshotTags!==!1,o?.shortSnapshotTags!==!1):null;if(l!==null&&s[l]?.unpriced!==!0)return{entry:s[l],priced:!0,billingMode:"deepseek-peak",matched:!0}}return null}function Po(e,t,o){const a=o?.prices??{},s=o?.priceMatch==="exact"?"exact":"auto",l=o?.priceOverrides&&typeof o.priceOverrides=="object"?o.priceOverrides:{};let r=String(e??"").trim().toLowerCase();if(r.startsWith("llm-")&&(r=r.slice(4)),r===""&&(r="deepseek"),["our-free-model","our-free-model-region"].includes(r)&&l[r+":*"]==="__free__")return{entry:{cacheHit:0,cacheMiss:0,cacheWrite:0,output:0,reasoning:0},priced:!0,currency:"USD",billingMode:"flat",matched:!0};let i=r,d=t;const c=l[r+":"+t];if(c==="__custom__"){const g=a.custom?.[r+":"+t];return{entry:g??null,priced:!!g,billingMode:"flat",matched:!0,currency:g?.currency??"USD"}}if(c==="__local__")return{entry:null,priced:!1,billingMode:"flat",matched:!0};if(typeof c=="string"&&c.length>0){const g=c.indexOf(":");if(g>0&&c.slice(g+1).length>0?(i=c.slice(0,g).trim().toLowerCase(),d=c.slice(g+1)):d=c,i==="deepseek"&&d==="__default__")return{entry:a.default??{cacheHit:0,cacheMiss:0,output:0},priced:a.default?.unpriced!==!0,billingMode:"deepseek-peak",matched:!1}}if(["zen","opencode","opencode-go-plus"].includes(i)){const g=Fe(d,a.providers?.[i]?.models??{},"opencode-go",s,a);g===null?i="opencode-go":d=g}if(Vt.includes(i)&&i!=="opendesign"&&Fe(d,a.providers?.[i]?.models??{},i,s,a)===null&&(i="opendesign"),vo(i,d))return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(i==="openrouter"){const g=a.providers?.openrouter?.models??{},m=Object.hasOwn(g,d)?g[d]:null;return{entry:m,priced:m!==null&&m.unpriced!==!0,billingMode:"flat",matched:m!==null}}if(i==="deepseek"||i.includes("deepseek")){const g=a.models??{},m=Fe(d,g,"deepseek",s,a);if(m!==null)return g[m]?.unpriced===!0?{entry:null,priced:!1,billingMode:"flat",matched:!0}:{entry:g[m],priced:!0,billingMode:"deepseek-peak",matched:!0};if(s==="auto"){let b=null,k=-1,y=!1,C="flat";for(const[S,h]of Object.entries(a.providers??{})){if(Yt.has(S))continue;const p=h?.models??{},w=Fe(d,p,S,s,a);if(w===null)continue;const x=+(w===d||ve(w)===ve(d));x>k?(b=p[w],k=x,y=!1,C=$t(p[w])):x===k&&(y=!0)}if(y)return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(b!==null)return{entry:b,priced:b.unpriced!==!0,billingMode:C,matched:!0}}return{entry:a.default??{cacheHit:0,cacheMiss:0,output:0},priced:a.default?.unpriced!==!0,billingMode:"deepseek-peak",matched:!1}}const u=a.providers?.[i]?.models??{},f=Fe(d,u,i,s,a);if(f!==null)return{entry:u[f],priced:u[f]?.unpriced!==!0,billingMode:$t(u[f]),matched:!0};if(Yt.has(i))return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(Object.hasOwn(xt,i))return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(s==="auto"){let g=null,m=-1,b=!1,k="flat";for(const[y,C]of[["deepseek",{models:a.models??{}}],...Object.entries(a.providers??{})]){if(y===i||Yt.has(y))continue;const S=C?.models??{},h=Fe(d,S,y,s,a);if(h===null)continue;const p=+(h===d||ve(h)===ve(d));p>m?(g=S[h],m=p,b=!1,k=y==="deepseek"?"deepseek-peak":$t(S[h])):p===m&&(b=!0)}if(b)return{entry:null,priced:!1,billingMode:"flat",matched:!1};if(g!==null)return{entry:g,priced:g.unpriced!==!0,billingMode:k,matched:!0}}return{entry:null,priced:!1,billingMode:"flat",matched:!1}}function $a(e,t,o){let a=Po(e,t,o);const s=String(e??"").trim().toLowerCase().replace(/^llm-/,"")||"deepseek";return!a.currency&&!a.priced&&(a=Ao(s,o?.priceOverrides?.[s+":"+t],o?.prices??{},o?.priceMatch==="exact"?"exact":"auto")??a),a.currency||(a=a.priced&&o?.prices?.currency==="CNY"&&a.entry?.cny?{...a,entry:ho(a.entry),currency:"CNY"}:{...a,currency:a.priced&&a.billingMode==="deepseek-peak"&&o?.prices?.currency==="CNY"?"CNY":"USD"}),["volcengine","ark"].includes(s)&&o?.prices?.volcenginePeak!==!1&&a.entry&&a.billingMode==="deepseek-peak"?{...a,entry:{...a.entry,peakSchedule:"volcengine"}}:a}function Mo(e){const t=Number(e?.calls)||0,o=Number(e?.input)||0,a=Number(e?.cacheRead)||0;return t>=3&&o>=1e5&&a===0}function wt(e,t){return!e||!t?0:typeof e.cost=="number"&&Number.isFinite(e.cost)?e.cost:Za(e,t).total}function Xe(e){if(e===null||typeof e!="object")return 0;const t=Number(e.cost)||0,o=e.apiCost===void 0||e.apiCost===null?t:Number(e.apiCost);return Number.isFinite(o)&&o>=0?Math.min(o,t):t}function Q(e,t){const o={CNY:"Cny",EUR:"Eur"}[t?.currency],a=t?.showTotalWithPlan===!0,s=o&&e?.[(a?"cost":"apiCost")+o],l=a?Number(e?.cost)||0:Xe(e);return!Number.isFinite(s)||s===0&&l>0?l:s/(t.exchangeRate||1)}const To={opendesign:Vt,go:["go","zen","opencode","opencode-go","opencode-go-plus","dsh-opencode-go"],codex:["codex","openai-codex","dsh-openai-codex","codex-chatgpt"],anthropic:["anthropic","claude-subscription"],zai:["zai","glm-coding-plan"],minimax:["minimax","minimax-code","minimax-m-plan","minimax-mplan","minimax-token-plan"],kimi:["kimi","kimi-code","kimi-coding","kimi-coding-plan"],commandcode:["commandcode","command-code"],clinepass:["clinepass","cline-pass"],workbuddy:["workbuddy","workbuddy-subscription","workbuddy-ai","workbuddy-global","xdpool","xdpool-global"],antigravity:["antigravity"],stepfun:["stepfun","step-code"],"volcengine-agent":["volcengine-agent","ark-agent-plan","volcengine-agent-plan"],"tencent-coding":["tencent-coding","tencent-coding-plan","tokenhub-coding-plan"],"tencent-token":["tencent-token","tencent-token-plan","tokenhub-token-plan","tencent-hy-token-plan","tokenhub-hy-token-plan"],"baidu-coding":["baidu-coding-plan","qianfan-coding-plan","baidu-token-plan","qianfan-token-plan","baidu-tokenplan","qianfan-tokenplan"],qwen:["qwen","qwen-tokenplan","qianwen-tokenplan","qwen-token-plan","qianwen-token-plan"],scnet:["scnet","scnet-tokenplan","scnet-token-plan"],mimo:["mimo","xiaomimimo","mimo-token-plan","xiaomi-token-plan","xiaomi-token-plan-cn","xiaomi-token-plan-sgp","xiaomi-token-plan-ams"],factory:["factory","droid","factory-a","factory-g","factory-o"]},_e=["opendesign","anthropic","zai","minimax","kimi","openrouter","siliconflow","commandcode","clinepass","scnet","volcengine","qwen","mimo","factory","go","codex","volcengine-agent","tencent-coding","tencent-token","baidu-coding","workbuddy","antigravity","stepfun"],Ro=Object.entries({opendesign:"opendesign|open[._-]?design",codex:"codex|chatgpt","baidu-coding":"baidu|qianfan|百度|千帆","tencent-coding":"tencent|tokenhub|腾讯",anthropic:"anthropic|claude",zai:"z[._-]?ai|zhipu|glm|智谱",minimax:"minimax|海螺",kimi:"kimi|moonshot|moonshotai|月之暗面",openrouter:"openrouter",siliconflow:"siliconflow|硅基",commandcode:"commandcode",clinepass:"cline[._-]?pass|clinepass",scnet:"scnet|sugon|超算",volcengine:"volcengine|volcano|volc|ark|火山|方舟",qwen:"qwen|qianwen|千问|通义",mimo:"mimo|xiaomi|小米",factory:"factory|droid",go:"opencode(?:[-_\\s]?go)?|zen|go"}).map(([e,t])=>[e,new RegExp("(?:^|[^a-z0-9])(?:"+t+")(?=$|[^a-z0-9])")]);function Oo(e,t){for(const o of[e,t]){const a=String(o??"").normalize("NFKC").replace(/([a-zA-Z0-9\u3400-\u9fff])(?=(?:MPlan|Coding|Token|Agent|Plan|Subscription))/g,"$1-").replace(/([a-z0-9])((?:coding|token|agent|m)?plan|subscription)$/i,"$1-$2").toLowerCase();if(!/(?:^|[^a-z0-9])(?:(?:coding|token|agent|m)[-_\s]*)?plan(?:$|[^a-z0-9])|(?:^|[^a-z0-9])subscription(?:$|[^a-z0-9])|套餐|订阅/.test(a))continue;const s=Ro.filter(([,l])=>l.test(a));if(s.length){if(s.length!==1)return null;const l=s[0][0];if(l==="volcengine"&&/agent[-_\s]*plan|智能体.*套餐/.test(a))return"volcengine-agent";if(l==="tencent-coding"){const r=/token[-_\s]*plan|令牌.*套餐/.test(a),i=/coding[-_\s]*plan|编程.*套餐/.test(a);return r===i?null:r?"tencent-token":l}return l}}return null}function Ja(e,t,o){const a=String(e??"").trim().toLowerCase().replace(/^llm-/,""),s=t?.planBilling?.modelPlans?.[e+":"+o]??t?.planBilling?.modelPlans?.[a+":"+o];if(_e.includes(s))return s;if(a.length===0)return null;for(const[l,r]of Object.entries(To))if(r.includes(a))return l;return _e.includes(a)?a:Oo(e,o)}function Bo(e){if(Array.isArray(e?.planBilling?.autoProviders))return new Set(e.planBilling.autoProviders);const t=new Set,o=e?.codingPlans;if(o!==null&&typeof o=="object")for(const a of _e)a!=="go"&&o[a]?.enabled===!0&&t.add(a);return e?.goQuota?.enabled===!0&&t.add("go"),e?.codexQuotaEnabled===!0&&t.add("codex"),t}const Do=new Set(["grok-4.5","glm-5.3","glm-5.3-flash","glm-5.2","glm-5.1","gpt-5.6-luna","kimi-k3","kimi-k2.7-code","kimi-k2.6","mimo-v2.6-flash","mimo-v2.6-pro","mimo-v2.5","mimo-v2.5-pro","minimax-m3","minimax-m2.7","qwen3.8-max","qwen3.7-max","qwen3.7-plus","qwen3.6-plus","hy3","longcat-2.0","muse-spark-1.2-contributor"].map(ve));function Lo(e,t,o){const a=String(e??"").trim().toLowerCase();if(a.length>0&&a!=="deepseek"&&!a.includes("deepseek"))return!1;const s=ve(t);if(s.length===0||!Do.has(s))return!1;const l=o?.prices,r=l?.models??{};for(const i of Object.keys(r))if(ve(i)===s)return!1;for(const i of Object.keys(l?.providers?.["opencode-go"]?.models??{}))if(ve(i)===s)return!0;return!1}function et(e,t,o){if(e==="deepseek-official"&&/^deepseek-(web-(search|fetch)|(search|fetch)-api|search-server)$/.test(t))return"api";let a=Ja(e,o,t);a===null&&Lo(e,t,o)&&(a="go");const s=o?.planBilling?.models;if(s!==null&&typeof s=="object"){const l=s[e+":"+t];if(l==="plan"||l==="api")return l;if(a!==null){const r=s[a+":"+t];if(r==="plan"||r==="api")return r}}for(const l of[e,a]){if(l==null)continue;const r=o?.planBilling?.providers?.[l];if(r==="plan"||r==="api")return r}return a===null?"api":a==="go"&&/^(?:llm-)?(?:dsh-opencode-go|opencode-go(?:-plus)?)$/i.test(String(e).trim())||a==="kimi"&&/^(?:llm-)?kimi-coding(?:-plan)?$/i.test(String(e).trim())||a==="minimax"&&/^(?:llm-)?minimax-(?:m-?plan|token-plan)$/i.test(String(e).trim())||Bo(o).has(a)?"plan":"api"}function Za(e,t){if(!e||!t)return{total:0,api:0};const o=Eo(t),a={enabled:t.peakEnabled===!0,effectiveAtMs:Date.parse(t.peakEffectiveAt||""),windows:t.peakWindows,holidays:t.peakHolidays},s=Date.now(),l=e.byProviderModel??e.byModel??{};let r=0,i=0;for(const g of Object.keys(l)){const m=g.indexOf(":"),b=m>0?g.slice(0,m):"deepseek",k=m>0?g.slice(m+1):g,y=$a(b,k,t);if(y.priced){const C=yo(y.entry);C&&y.billingMode==="deepseek-peak"&&t.prices?.ollamaPeak!==!1&&b.trim().toLowerCase().replace(/^llm-/,"")==="ollama-cloud"&&(t.prices?.ollamaTaggedPeak===!1?["deepseek-v4.1-flash","deepseek-v4-pro"].includes(k.trim().toLowerCase()):kt(k,["deepseek-v4.1-flash","deepseek-v4-pro"])!==null)&&(C.peakSchedule="ollama");const S=za(l[g],Ga(C,s,{...a,enabled:["deepseek-peak","utc-peak"].includes(y.billingMode)&&a.enabled})),h=Va(S,y.currency,o);r+=h,et(b,k,t)==="api"&&(i+=h)}}const d={input:0,output:0,cacheRead:0,cacheWrite:0,reasoning:0};for(const g of Object.keys(l))d.input+=l[g].input??0,d.output+=l[g].output??0,d.cacheRead+=l[g].cacheRead??0,d.cacheWrite+=l[g].cacheWrite??0,d.reasoning+=l[g].reasoning??0;const c={input:Math.max(0,(e.input??0)-d.input),output:Math.max(0,(e.output??0)-d.output),cacheRead:Math.max(0,(e.cacheRead??0)-d.cacheRead),cacheWrite:Math.max(0,(e.cacheWrite??0)-d.cacheWrite),reasoning:Math.max(0,(e.reasoning??0)-d.reasoning)},u=za(c,Ga(go("default",t.prices),s,a)),f=Va(u,t.prices?.currency==="CNY"?"CNY":"USD",o);return r+=f,i+=f,{total:r,api:i}}function Eo(e){const t=o=>typeof o=="number"&&Number.isFinite(o)&&o>0&&o<1e6;return e.currency==="CNY"&&t(e.exchangeRate)?e.exchangeRate:t(e.fxRates?.CNY)?e.fxRates.CNY:7.2}function Xa(e,t){if(!e||!t)return!1;const o=e.byProviderModel??{};for(const a of Object.keys(o)){const s=a.indexOf(":"),l=s>0?a.slice(0,s):"deepseek",r=s>0?a.slice(s+1):a;if(et(l,r,t)==="plan")return!0}return!1}function en(e){return(e?.input??0)+(e?.cacheRead??0)+(e?.cacheWrite??0)}function tn(e,t){if(e?.apiCost!==void 0)return Xe(e);if(!Xa(e,t))return wt(e,t);let o=0;for(const[a,s]of Object.entries(e.byProviderModel??{})){if(!Number.isFinite(s.cost))return Za(e,t).api;const l=a.indexOf(":");et(a.slice(0,l),a.slice(l+1),t)==="plan"&&(o+=s.cost)}return Math.max(0,wt(e,t)-o)}function Jt(e){const t=Math.abs(Math.round(Number(e)||0)),o=Math.floor(t/60),a=t%60;return"UTC"+(Number(e)<0?"-":"+")+o+(a>0?":"+String(a).padStart(2,"0"):"")}function Io(e){const t=e?.meta,o=Number(t?.timezoneOffsetMinutes);if(!Number.isFinite(o))return null;const a=-new Date().getTimezoneOffset();if(a===o)return null;const s=typeof t?.timezone=="string"&&t.timezone.length>0?t.timezone:"";return{hostLabel:s?s+" ("+Jt(o)+")":Jt(o),browserLabel:Jt(a)}}function an(e,t=o=>o){let o=t(e);const a=new Set;return{getSnapshot:()=>o,subscribe:s=>(a.add(s),()=>{a.delete(s)}),set:s=>{if(s=t(s),s!==o){o=s;for(const l of[...a])l()}}}}const{createElement:n,Fragment:E,useState:D,useEffect:X,useRef:we}=Ae;function Nt({target:e,configured:t,source:o,t:a,api:s,placeholder:l,disabled:r}){const[i,d]=D(""),[c,u]=D(!1),[f,g]=D(!1),[m,b]=D(null),k=we(!1),y=r===!0||f,C=async()=>{const p=i.trim();if(!(p.length===0||y||k.current)){k.current=!0,g(!0),b(null);try{const w=await s.setCredential(e,p);d(""),u(!1),b({kind:"ok",text:w?.message??a("credentialSave")})}catch(w){b({kind:"err",text:String(w?.message??w)})}finally{k.current=!1,g(!1)}}},S=async()=>{if(!(y||k.current)){k.current=!0,g(!0),b(null);try{const p=await s.clearCredential(e);d(""),u(!1),b({kind:"ok",text:p?.message??a("credentialClear")})}catch(p){b({kind:"err",text:String(p?.message??p)})}finally{k.current=!1,g(!1)}}},h=()=>{d(""),u(!1)};return n("div",{className:"cm-field"},c?n("form",{className:"cm-field",autoComplete:"off",onSubmit:p=>{p.preventDefault(),C()}},n("input",{className:"cm-input",type:"password",name:"cm-credential-"+e,autoFocus:!0,value:i,placeholder:typeof l=="string"?l:"",disabled:y,autoComplete:"new-password","data-lpignore":"true","data-1p-ignore":"true","data-bwignore":"true","aria-label":a("credentialInputHint"),onChange:p=>d(p.target.value)}),n("div",{className:"cm-buttons"},n("button",{className:"cm-btn small",type:"submit",disabled:y||i.trim().length===0},a(f?"credentialSaving":"credentialSave")),n("button",{className:"cm-btn small",type:"button",onClick:h,disabled:f},a("cancel")))):n("button",{className:"cm-btn small",type:"button",onClick:()=>u(!0),disabled:y},a("credentialEdit")),t===!0?n("button",{className:"cm-btn small",type:"button",onClick:S,disabled:y},a("credentialClear")):null,n("span",{className:"cm-hint"},t===!0?a("credentialConfiguredOf",{source:typeof o=="string"&&o.length>0?o:"unknown"}):a("credentialNotConfigured")),n("span",{className:"cm-hint"},a("credentialInputHint")),Sa(m))}function jo({pending:e,t}){return!Array.isArray(e)||e.length===0?null:n("div",{className:"cm-msg err"},n("div",null,t("secretMigrationPending")),n("div",null,e.join("、")))}function St({size:e=16,className:t}){return n("svg",{width:e,height:e,className:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n("path",{d:"M4 4H12A2 2 0 0 1 14 6V11.5A2 2 0 0 1 12 13.5H4A2 2 0 0 1 2 11.5V6A2 2 0 0 1 4 4ZM4 5.3H12A0.7 0.7 0 0 1 12.7 6V11.5A0.7 0.7 0 0 1 12 12.2H4A0.7 0.7 0 0 1 3.3 11.5V6A0.7 0.7 0 0 1 4 5.3Z",fill:"currentColor",fillRule:"evenodd"}),n("path",{d:"M3.3 5.3H12.7V7.1H3.3Z",fill:"currentColor"}),n("path",{d:"M8 2.8A1.3 1.3 0 1 0 8 5.4A1.3 1.3 0 1 0 8 2.8Z",fill:"currentColor"}))}function nn(e,t){const o=we(!1),a=we(""),s=t!==null&&typeof t=="object"?[t.input,t.cacheRead,t.cacheWrite,t.output,t.reasoning,t.cost].map(l=>String(l??0)).join("|"):"";X(()=>{if(!o.current){o.current=!0,a.current=s;return}if(s===""||s===a.current)return;a.current=s;const l=setTimeout(()=>{e.api?.reload?.()},800);return()=>clearTimeout(l)},[s])}function Ho(e,t,o,a){const s=t?t.own:e;if(!o||!t?.subagentCount)return s;const l=t.subagents,r={...s};for(const i of["input","output","cacheRead","cacheWrite","reasoning","calls","cost",...bt])r[i]=(s?.[i]??0)+(l?.[i]??0);r.apiCost=tn(s,a)+Xe(l);for(const i of["byModel","byProviderModel"]){r[i]={...s?.[i]};for(const[d,c]of Object.entries(l?.[i]??{})){const u={...r[i][d]};u.apiCost=Xe(u)+Xe(c);for(const f of["input","output","cacheRead","cacheWrite","reasoning","calls","cost",...bt])u[f]=(u[f]??0)+(c[f]??0);r[i][d]=u}}return r}function on(e){const t=e.useProjection?e.useProjection("costUsage"):void 0,o=e.useCost?.(c=>c)?.state,a=o?.config,[s,l]=D(null);nn(e,t);const r=["input","output","cacheRead","cacheWrite","reasoning","calls","cost","apiCost"].map(c=>t?.[c]??"").join(":");X(()=>{if(!e.sessionId||!e.api?.getSessionCost)return;let c=!0,u=!1;const f=async()=>{if(!(u||typeof document<"u"&&document.hidden)){u=!0;try{const b=await e.api.getSessionCost(e.sessionId);c&&l({id:e.sessionId,include:a?.includeSubagentCost===!0,value:b})}catch{c&&l(b=>b?.id===e.sessionId&&b.include===(a?.includeSubagentCost===!0)?b:{id:e.sessionId,include:a?.includeSubagentCost===!0,value:null})}finally{u=!1}}};f();const g=a?.includeSubagentCost===!0?setInterval(f,1e4):null,m=()=>{document.hidden||f()};return typeof document<"u"&&document.addEventListener?.("visibilitychange",m),()=>{c=!1,g!==null&&clearInterval(g),typeof document<"u"&&document.removeEventListener?.("visibilitychange",m)}},[e.sessionId,o?.meta?.now,r,a?.includeSubagentCost]);const i=s&&s.id===e.sessionId&&s.include===(a?.includeSubagentCost===!0)?s:null,d=i?.value;return{usage:Ho(t,d,a?.includeSubagentCost||d&&d.subagentCount>0,a),config:a,pending:!!e.sessionId&&!!e.api?.getSessionCost&&!i,unrecorded:!!d&&!d.found&&!d.subagentCount}}function sn(e){const t=j(e.config)==="en";return e.pending?t?"Loading session cost…":"正在读取本会话费用…":e.unrecorded?t?"Session cost: no ledger records":"本会话暂无账本记录":e.usage?"":t?"Session cost unavailable":"本会话费用暂不可用"}function ln(e,t){if(Number.isFinite(e?.costCny)||Number.isFinite(e?.costEur)){const s=Q(e,{...t,showTotalWithPlan:!0}),l=Q(e,{...t,showTotalWithPlan:!1});return{cost:t.showTotalWithPlan?s:l,planPart:t.showTotalWithPlan?0:Math.max(0,s-l)}}let o=0,a=wt(e,t);if(t.showTotalWithPlan!==!0&&(e.apiCost!==void 0||Xa(e,t))){const s={total:wt(e,t),api:tn(e,t)};o=Math.max(0,s.total-s.api),o>0&&(a=s.api)}return{cost:a,planPart:o}}function rn(e,t){return Object.entries(e?.byProviderModel??{}).filter(([,o])=>o.input||o.output||o.cacheRead||o.cacheWrite||o.reasoning).map(([o,a])=>ut(o)+" "+K(Q(a,{...t,showTotalWithPlan:!0}),t)).join("; ")}function Qo(e){const t=e.useCost?.(y=>y)?.state?.config,[o,a]=D(null),[s,l]=D(""),r=e.turn?.start?.seq,i=e.turn?.end?.seq,d=e.sessionId,c=JSON.stringify([t?.prices,t?.priceOverrides,t?.priceMatch,t?.planBilling,t?.codingPlans,t?.goQuota?.enabled,t?.peakEnabled,t?.peakEffectiveAt,t?.peakWindows,t?.peakHolidays,t?.exchangeRate]);if(X(()=>{let y=!0;if(a(null),l(""),!(t?.hideTurnCost||!d||r==null||i==null))return e.api.getTurnCost(d,r,i).then(C=>{y&&a(C)},C=>{y&&l(String(C.message??C))}),()=>{y=!1}},[d,r,i,c,t?.hideTurnCost]),!t||t.hideTurnCost||r==null||i==null)return null;const u=j(t)==="en",f=u?{input:"Input",output:"Output",cacheRead:"Cache read",cacheWrite:"Cache write",reasoning:"Reasoning"}:{input:"输入",output:"输出",cacheRead:"缓存读取",cacheWrite:"缓存写入",reasoning:"推理"},g=y=>{const C=Number(t.exchangeRate),S=y*(Number.isFinite(C)&&C>0?C:1),h=t.decimals??2;return K(y,S>0&&S<10**-(h+2)?{...t,decimals:Math.max(8,h)}:t)},m=y=>K(y,{...t,decimals:Math.max(8,t.decimals??2)}),b=u?{model:"Model call",compaction:"Context compaction",search:"Native search",fetch:"Web fetch"}:{model:"模型调用",compaction:"上下文压缩",search:"原生搜索",fetch:"网页抓取"},k=(y,C)=>n("div",{key:C,style:{marginBottom:4,overflowWrap:"anywhere"}},ut(y.provider+":"+y.model)+" · "+(f[y.bucket]||(y.bucket==="fetchRequests"?u?"Fetch requests":"抓取请求":u?"Search requests":"搜索请求"))+(y.plan?" (Plan)":"")+": "+(y.requests?y.requests+(u?" requests":" 次"):y.tokens.toLocaleString())+" × "+(y.priced?m(y.rate):"?")+(y.requests?" ≈ ":" / 1,000,000 ≈ ")+(y.priced?g(y.cost):"?"),y.priced?y.bucket==="reasoning"&&y.rate===0?u?" (no separate charge)":"(不单独收费)":"":u?" (price unavailable)":"(未配置价格)");return n("details",{className:"cm-note",style:{fontSize:12,marginTop:6}},n("summary",{style:{cursor:"pointer"},title:u?"Log estimate at configured prices; session cost uses recorded ledger amounts.":"本轮按日志和配置价格估算,本会话按账本已入账金额汇总。"},u?"Turn cost":"本轮费用",o?.found?" ≈ "+g(Q(o,t))+(o.rows.some(y=>!y.priced)?u?" + unpriced usage":" + 未定价用量":""):o?.inherited?u?" · inherited history":" · 继承历史":s?" ⚠":""),s?n("div",{role:"alert"},s):o?o.found?n(E,null,n("p",null,u?"Estimated from recorded usage and configured prices; rates per 1M tokens.":"按已记录用量和配置价格估算;单价单位为每百万 Token。"),n("p",null,"API ≈ "+g(Q(o,{...t,showTotalWithPlan:!1}))+" · Plan ≈ "+g(Q(o,{...t,showTotalWithPlan:!0})-Q(o,{...t,showTotalWithPlan:!1}))+(u?" (equivalent)":"(等值)")),o.rows.map(k),n("details",null,n("summary",{style:{cursor:"pointer"}},(u?"Individual calls":"逐次调用明细")+" ("+o.calls.length+")"),o.calls.map((y,C)=>n("details",{key:C,style:{margin:"6px 0"}},n("summary",{title:y.provider+":"+y.model,style:{cursor:"pointer",overflowWrap:"anywhere"}},"#"+(C+1)+" "+b[y.kind]+" · "+ut(y.provider+":"+y.model)+" · "+new Date(y.atMs).toLocaleTimeString()+" · "+(y.plan?"Plan ":"API ")+(y.priced?"≈ "+g(y.cost):u?"price unavailable":"未配置价格")+(y.longContext?u?" · long context":" · 长上下文价格":"")),y.metering?n("p",null,"billion-context · "+y.metering.upstream+(y.metering.attempt>1?(u?" · Retry ":" · 重试 ")+y.metering.attempt:"")+(y.metering.complete?"":u?" · partial usage":" · 用量回执不完整")):null,y.rows.map(k))))):o.inherited?u?"Inherited usage is not billed again in this conversation.":"继承的历史用量不在本会话重复计费。":u?"Complete usage records unavailable":"没有完整用量记录":u?"Loading…":"加载中…")}function Uo(e){const t=on(e),{usage:o,config:a}=t;if(!a)return null;const s=sn(t);if(s)return n("div",{className:"cm-chip"},s);const l=z(j(a)),{cost:r,planPart:i}=ln(o,a),d=[l("sessionCostTitle"),l("sessionDetailTokens",{input:L(o?.input??0),cache:L((o?.cacheRead??0)+(o?.cacheWrite??0)),output:L(o?.output??0)}),l("sessionDetailCache",{read:L(o?.cacheRead??0),write:L(o?.cacheWrite??0)}),l("cost",{amount:K(r,a)}),...i>0?[l("sessionDetailPlan",{amount:K(i,a)})]:[],rn(o,a)].filter(Boolean).join("; ");return n(J,{portal:!0,label:d,side:"top",delayMs:500},n("div",{className:"cm-chip"},i>0?l("costChipPlan",{amount:K(r,a)}):l("cost",{amount:K(r,a)})))}function qo(e){const t=on(e),{usage:o,config:a}=t;if(!a)return null;const s=sn(t);if(s)return n("div",{className:"cm-root",role:"status",title:s},s);const l=o.input??0,r=(o.cacheRead??0)+(o.cacheWrite??0),i=o.output??0,d=z(j(a)),{cost:c,planPart:u}=ln(o,a),f=en(o)>0?((o.cacheRead??0)/en(o)*100).toFixed(1)+"%":"—",g={amount:K(c,a),planAmount:K(u,a),hitRate:f,input:L(l),cache:L(r),output:L(i)},m=d(u>0?"sessionLineSplit":"sessionLine",g),b=rn(o,a),k=a.sessionCostCompact===!0,y=d("sessionLineCompact",g),C=k?d(u>0?"sessionLineSplitCompact":"sessionLineCompact",g):m;return n("div",{className:"cm-root cm-session-cost",title:[m,b].filter(Boolean).join("; ")},n("span",{className:"cm-session-amount"},y),n("span",{className:"cm-session-detail"},C.slice(y.length)))}const Fo={USD:"$",CNY:"¥",EUR:"€"};function Ie(e,t,o){const a=typeof o=="string"?o.toUpperCase():"",s=typeof t?.symbol=="string"&&t.symbol.length>0?t.symbol:"$";return de(e,{symbol:Fo[a]??s,decimals:Math.max(2,Math.min(10,Math.floor(Number(t?.decimals)||2)))})}function cn(e,t){const o=Number(e?.balance?.budgetCap);if(Number.isFinite(o)&&o>0)return o;const a=Number(t?.maxBudget);return Number.isFinite(a)&&a>0?a:null}function _o(e){const t=e.today,o=t?.byProviderModel;if(o===null||typeof o!="object"||Object.keys(o).length===0)return Number(t?.cost)||0;let a=0;for(const[s,l]of Object.entries(o)){const r=s.indexOf(":");let i=r>=0?s.slice(0,r):s;i.startsWith("llm-")&&(i=i.slice(4)),/^deepseek(?:-official|-account)?$/.test(i)&&(a+=Number(l?.cost)||0)}return a}function un(e,t,o,a,s=null){const l=o==="official"?_o(e):Number(e.today?.cost)||0,r=o==="custom"?at(t,a,s):e.balance?.currency;if(r==="USD")return l;if(r==="CREDITS")return 0;const i=Number(t?.exchangeRate);return l*(Number.isFinite(i)&&i>0?i:1)}function Zt({remaining:e,spend:t,todayUsed:o,cap:a}){if(a===null||a<=0)return{remainingPct:100,todayPct:0,spentPct:0,hasCap:!1,pastSpend:0,today:0};const s=Math.max(0,Number(e)||0),l=Math.max(0,Number(t)||0),r=Math.max(0,Math.min(l,Number(o)||0)),i=Math.max(0,l-r),d=Math.max(0,Math.min(100,s/a*100)),c=Math.max(0,Math.min(100-d,r/a*100)),u=Math.max(0,Math.min(100-d-c,i/a*100));return{remainingPct:d,todayPct:c,spentPct:u,hasCap:!0,pastSpend:i,today:r}}function Xt(e,t,o=null,a=null){const s=o??e.customBalance;if((a??t?.customBalance)?.adapter==="tokenrhythm")return{cap:null,...Zt({remaining:s?.remaining,cap:null})};const l=cn(at(t,s,a)==="CREDITS"?null:t,s),r=Number(s?.remaining)||0,i=Number(s?.spend)||0,d=un(e,t,"custom",s,a);return{cap:l,...Zt({remaining:r,spend:i,todayUsed:d,cap:l})}}function Wo(e,t){const o=e.balance,a=cn(t,null),s=Number(o?.totalBalance)||0,l=un(e,t,"official",null),r=a!==null?Math.max(0,a-s):0;return{cap:a,...Zt({remaining:s,spend:r,todayUsed:l,cap:a})}}function ea(e){const{segments:t,direction:o="remaining"}=e,{remainingPct:a,todayPct:s,spentPct:l}=t,r=[];a>0&&r.push(n("div",{className:"cm-bbox-fill",style:{width:a+"%"}})),s>0&&r.push(n("div",{className:"cm-bbox-seg-today",style:{width:s+"%"}})),l>0&&r.push(n("div",{className:"cm-bbox-seg-spent",style:{width:l+"%"}})),r.length===0&&r.push(n("div",{className:"cm-bbox-fill",style:{width:"100%"}}));const i=o==="used"?[...r].reverse():r;return n("div",{className:"cm-bbox-bar segments"+(o==="used"?" rev":"")},...i)}function Ko(e,t,o,a,s){const l=[e("balanceBarRemaining",{amount:a})];return o.today>0&&l.push(e("balanceBarToday",{amount:t(o.today)})),o.pastSpend>0&&l.push(e("balanceBarSpent",{amount:t(o.pastSpend)})),s!==null&&s>0&&l.push(e("balanceBudgetCapLabel")+": "+t(s)),l.join(" · ")}function Oe(e){const[t,o]=D(!1),[a,s]=D(null);return{busy:t,err:a,run:()=>{t||typeof e!="function"||(o(!0),s(null),Promise.resolve().then(e).catch(r=>{s(r?.message??String(r))}).finally(()=>{o(!1)}))}}}const ye=(e,t)=>({role:"button",tabIndex:0,"aria-busy":e?"true":"false",onClick:t,onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),t())}});function Pe(e,t){const o=[e("clickToRefresh")];return t.busy&&o.push(e("refreshing")),t.err&&o.push("⚠ "+e("balanceRefreshFailed",{message:t.err})),o}const Go="https://platform.deepseek.com/usage";function tt(e,t=Go,o=e("balanceRechargeLink")){if(!t)return null;try{const a=new URL(t);if(!["http:","https:"].includes(a.protocol)||a.username||a.password)return null}catch{return null}return n("a",{className:"cm-bal-link",href:t,target:"_blank",rel:"noreferrer noopener",title:o,"aria-label":o,onClick:a=>a.stopPropagation(),onKeyDown:a=>a.stopPropagation()},n("svg",{width:14,height:14,viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0},n("path",{d:"M8 4H4a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-4M11 3h6v6M9 11l8-8"})))}const Ct=an({});function vt(e,t,o){const a=()=>{const c=Ct.getSnapshot()[t];if(c!==void 0)return c;try{return window.localStorage?.getItem("cm.balance.hidden."+t)==="1"}catch{return!1}},[s,l]=D(a);X(()=>{const c=()=>l(a()),u=Ct.subscribe(c);return c(),u},[t]);const r=e.balance?.quickHide===!0,i=r&&s,d=c=>{c.stopPropagation();const u=!a();try{window.localStorage?.setItem("cm.balance.hidden."+t,u?"1":"0")}catch{}Ct.set({...Ct.getSnapshot(),[t]:u}),l(u)};return{hidden:i,label:c=>r?n("span",{role:"button",tabIndex:0,"aria-pressed":i,title:o("balanceToggle"),onClick:d,onKeyDown:u=>{u.stopPropagation(),(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),d(u))}},c):c,tip:[o("balanceHidden"),o("balanceToggle")].join(" · ")}}function zo(e){const{state:t,wide:o,api:a}=e,s=t.balance,l=z(j(t.config)),r=Oe(a?()=>a.refreshBalance():null),i=vt(t.config,"official",l);if(!s||s.status==="off")return null;if(s.status==="error")return n(J,{portal:!0,label:[l("balanceQueryFailed",{message:s.message||l("unknownError")}),...Pe(l,r)].join("; "),side:"right",delayMs:300},n("div",{"data-cm-display":"balance",className:"cm-foot clickable"+(o?"":" cm-foot-rail")+" cm-bal-err"+(r.busy?" busy":""),...ye(r.busy,r.run)},o?n(E,null,ta(l,t.config)," ",n("span",{className:"cm-num"},l("queryFailed"))):"⚠"));const d=i.hidden?i.tip:dn(l,s,t.config,t.reconcile,r);return n(J,{portal:!0,label:d,side:"right",delayMs:300},n("div",{"data-cm-display":"balance",className:"cm-foot clickable"+(o?"":" cm-foot-rail")+(r.busy?" busy":""),...ye(r.busy,r.run)},o?n(E,null,n("span",{className:"cm-balance-name"},i.label(ta(l,t.config)),tt(l)),n("span",{className:"cm-num cm-bal-amt"},i.hidden?"••••":Ie(s.totalBalance,t.config,s.currency)),t.reconcile?.ok===!1?" ⚠":""):n(St,{size:16})))}function Vo(e,t,o){if(o||e.config?.balance?.officialChannelOnly!==!0)return!0;const a=s=>/^(?:llm-)?deepseek(?:-official|-account)?$/.test(String(s).trim().toLowerCase());return typeof t=="string"&&t.trim()?a(t):Object.keys(e.today?.byProviderModel??{}).some(s=>a(s.split(":")[0]))}function ta(e,t){return e(t?.balance?.showSource===!0?"officialBalance":"balance")}function dn(e,t,o,a,s){const l=[e("officialBalance")+" "+Ie(t.totalBalance,o,t.currency),e("grantedToppedUp",{granted:Ie(t.grantedBalance,o,t.currency),toppedUp:Ie(t.toppedUpBalance,o,t.currency)}),...a?.ok===!1?["⚠ "+a.message]:[],...Pe(e,s)];return n("div",{style:{maxWidth:"min(280px, 70vw)",whiteSpace:"normal"}},...l.map((r,i)=>n("div",{key:i},r)))}function Yo(e){const{state:t,wide:o,api:a}=e,s=t.config,l=t.balance,r=z(j(s)),i=Oe(a?()=>a.refreshBalance():null),d=vt(s,"official",r);if(!l||l.status!=="ok")return null;const c=Wo(t,s),u=d.hidden?"••••":Ie(l.totalBalance,s,l.currency),f=d.hidden?d.tip:dn(r,l,s,t.reconcile,i),g=n(E,null,n("div",{className:"cm-bbox-head"},n("span",{className:"cm-balance-name"},n("span",{className:"cm-bbox-label"},d.label(ta(r,s))),tt(r)),n("span",{className:"cm-bbox-pct cm-num cm-bal-amt"},u)),d.hidden?null:n(ea,{segments:c,direction:ie(s,"balance")}));return n(J,{portal:!0,label:f,side:"right",delayMs:300},n("div",{"data-cm-display":"balance",className:"cm-bbox clickable"+(o?"":" rail")+(i.busy?" busy":""),...ye(i.busy,i.run)},o?g:n("div",{className:"cm-bbox-rail cm-num"},d.hidden?"••••":Math.round(c.remainingPct)+"%")))}function aa(e,t){const o=typeof e?.label=="string"?e.label:"",a=typeof e?.labelEn=="string"?e.labelEn:"";return t==="en"?a||o||"Custom balance":o||a||"自定义余额"}function at(e,t,o){if((o??e?.customBalance)?.adapter==="tokenrhythm")return"CNY";if((o??e?.customBalance)?.adapter==="aliyun"&&["CNY","USD","EUR"].includes(t?.unit))return t.unit;const a=o?.unit??e?.customBalance?.unit;return["CNY","EUR","USD","CREDITS"].includes(a)?a:["CNY","EUR","CREDITS"].includes(t?.unit)?t.unit:"USD"}function We(e,t,o,a){const s=at(t,o,a),l=Number(e);if(!Number.isFinite(l))return"—";const r=t?.currency==="USD"?1:Number(t?.exchangeRate);if((a??t?.customBalance)?.convertToDisplayCurrency===!0&&s==="USD"&&Number.isFinite(r)&&r>0){const u=l*r;return Number.isFinite(u)?de(u,t):"—"}const i=s==="CREDITS",d=Math.max(2,Math.min(6,Math.floor(Number(t?.decimals)||4)));return(i?"":s==="CNY"?"¥":s==="EUR"?"€":"$")+Ya(l,d)+(i?" Credits":"")}function na(e,t,o,a,s=null){const l=We(e.remaining,t,e,s);if((s??t?.customBalance)?.adapter==="tokenrhythm")return o("customBalanceRemaining",{amount:l});const r=g=>We(g,t,e,s);if(a&&t.balance?.showProgressBar===!0){const g=Xt(a,t,e,s);return[Ko(o,r,g,l,g.cap),o("updatedAt",{time:e.fetchedAt>0?new Date(e.fetchedAt).toLocaleTimeString():"—"})].join(" · ")}const i=e.spend!==null?r(e.spend):"—",d=e.maxBudget!==null?r(e.maxBudget):"—",c=at(t,e,s)==="CREDITS"?NaN:Number(t?.balance?.budgetCap),u=Number.isFinite(c)&&c>0?o("balanceBudgetCapLabel")+": "+r(c):"",f=e.maxBudget!==null&&e.spend!==null?o("customBalanceLine",{remaining:l,spend:i,maxBudget:d,time:e.fetchedAt>0?new Date(e.fetchedAt).toLocaleTimeString():"—"}):o("customBalanceRemaining",{amount:l});return u?f+" · "+u:f}function $o(e,t,o,a,s,l){const r=aa(s??t.customBalance??{},j(t)),i=l?.hidden?"••••":We(a.remaining,t,a,s),d=Xt(e,t,a,s);return{level:"ok",rail:l?.hidden?"••••":Math.round(d.remainingPct)+"%",body:n(E,null,n("div",{className:"cm-bbox-head"},n("span",{className:"cm-balance-name"},n("span",{className:"cm-bbox-label"},l?l.label(r):r),tt(o,s?.dashboardUrl||"",r)),n("span",{className:"cm-bbox-pct cm-num cm-bal-amt"},i)),l?.hidden?null:n(ea,{segments:d,direction:ie(t,"balance")}))}}function At(e,t){const o=t?.customBalances??[],a=Array.isArray(e?.customBalances)?e.customBalances:[],s=[];return o.forEach((l,r)=>{if(l?.enabled!==!0||l.display!=="sidebar"&&l.display!=="both")return;const i=a.find(d=>d.index===r)??(a.length===1&&o.length===1?a[0]:null);s.push({index:r,entry:l,snapshot:i})}),s.length===0&&a.length===0&&t?.customBalance?.enabled===!0&&(t.customBalance.display==="sidebar"||t.customBalance.display==="both")&&e?.customBalance?.status&&e.customBalance.status!=="off"&&s.push({index:null,entry:t.customBalance,snapshot:e.customBalance}),s}function Jo(e){const{state:t,wide:o,api:a}=e,s=t.config,l=z(j(s)),r=At(t,s);return r.length===0?null:n(E,null,r.map(({index:i,entry:d,snapshot:c})=>n(d.adapter==="tokenrhythm"?pn:Zo,{key:"cb-"+i,state:t,wide:o,api:a,t:l,index:i,entry:d,snapshot:c})))}function Zo(e){const{state:t,wide:o,api:a,t:s,index:l,entry:r,snapshot:i}=e,d=t.config,c=vt(d,"custom-"+l,s),u=Oe(a?()=>a.refreshCustomBalance(l):null);if(i==null||i.status!=="ok")return null;const f=$o(t,d,s,i,r,c),g=c.hidden?c.tip:[na(i,d,s,t,r),...Pe(s,u)].join(" · ");return n(J,{portal:!0,label:g,side:"right",delayMs:300},n("div",{"data-cm-display":"customBalance",className:"cm-bbox clickable"+(f.level==="ok"?"":" "+f.level)+(o?"":" rail")+(u.busy?" busy":""),...ye(u.busy,u.run)},o?f.body:n("div",{className:"cm-bbox-rail cm-num"},f.rail)))}function Xo(e){const{state:t,wide:o,api:a}=e,s=t.config,l=z(j(s)),r=At(t,s);return r.length===0?null:n(E,null,r.map(({index:i,entry:d,snapshot:c})=>n(pn,{key:"cbr-"+i,state:t,wide:o,api:a,t:l,index:i,entry:d,snapshot:c})))}function pn(e){const{state:t,wide:o,api:a,t:s,index:l,entry:r,snapshot:i}=e,d=t.config,c=vt(d,"custom-"+l,s),u=i??Ia(l),f=Oe(a?()=>a.refreshCustomBalance(l):null);if(u.status==="off")return null;const g=aa(r??d.customBalance??{},j(d));if(u.status==="error")return n(J,{portal:!0,label:[u.message||s("unknownError"),...Pe(s,f)].join("; "),side:"right",delayMs:300},n("div",{"data-cm-display":"customBalance",className:"cm-foot clickable"+(o?"":" cm-foot-rail")+" cm-bal-err"+(f.busy?" busy":""),...ye(f.busy,f.run)},o?n(E,null,n("span",{className:"cm-balance-name"},n("span",{className:"cm-bal-label",title:g},g),tt(s,r?.dashboardUrl||"",g)),n("span",{className:"cm-num cm-bal-amt"},s("queryFailed"))):"⚠"));const m=c.hidden?"••••":We(u.remaining,d,u,r),b=c.hidden?c.tip:[na(u,d,s,t,r),...Pe(s,f)].join(" · ");return n(J,{portal:!0,label:b,side:"right",delayMs:300},n("div",{"data-cm-display":"customBalance",className:"cm-foot clickable"+(o?"":" cm-foot-rail")+(f.busy?" busy":""),...ye(f.busy,f.run)},o?n(E,null,n("span",{className:"cm-balance-name"},n("span",{className:"cm-bal-label",title:g},c.label(g)),tt(s,r?.dashboardUrl||"",g)),n("span",{className:"cm-num cm-bal-amt"},m)):n(St,{size:16})))}function mn(e){const o=(e.useCost?e.useCost(b=>b):void 0)?.state;if(!o)return null;const a=o.config,s=z(j(a)),l=a.corner??{enabled:!1,goRolling:!0,goWeekly:!0,goMonthly:!0,budget:!0},r=o.goQuota,i=a?.goQuota?.enabled!==!1&&r?.status==="ok",d=b=>b!==null&&typeof b?.percent=="number"?Math.round(Math.max(0,Math.min(100,b.percent))):null,c=[];if(a.sidebarModels?.dock){const b=Mn(o,a.sidebarModels.period,s);b.length&&c.push({key:"model-top",text:n(E,null,n("span",{className:"cm-bal-label"},b[0].label),n("span",{className:"cm-bal-amt"},K(b[0].cost,a))),tip:b[0].label+" "+K(b[0].cost,a),level:"ok"})}const u=(b,k,y,C)=>{if(!l.enabled||!b||!i)return;const S=d(k);if(S===null)return;const h=typeof k.resetsAt=="string"&&k.resetsAt.length>0?s("goResetAt",{time:new Date(k.resetsAt).toLocaleString()}):"";c.push({key:y,text:s(y)+" "+S+"%",tip:s(C)+": "+S+"%"+(h?" · "+h:""),level:S>=100?"over":S>=80?"warn":"ok"})},f=a?.goQuota?.main==="weekly"||a?.goQuota?.main==="monthly"?a.goQuota.main:"rolling",g=[f,...["rolling","weekly","monthly"].filter(b=>b!==f)],m=b=>b==="rolling"?["goRolling",r?.rolling,"goShortRolling","cornerGoRolling"]:b==="weekly"?["goWeekly",r?.weekly,"goShortWeekly","cornerGoWeekly"]:["goMonthly",r?.monthly,"goShortMonthly","cornerGoMonthly"];for(const b of g){const[k,y,C,S]=m(b);u(l[k]===!0,y,C,S)}if(l.enabled&&l.budget===!0){const b=a.budget??{enabled:!1,amount:100,period:"month"};if(b.enabled===!0){const k=Number(a.exchangeRate),C=(o.budgetUsed??(b.period==="day"?Q(o.today,a):b.period==="all"?Q(o.total,a):Q(o.month,a)))*(Number.isFinite(k)&&k>0?k:1),S=Math.max(0,Number(b.amount)||0),h=S>0?Math.min(999,C/S*100):null;if(h!==null){const p=h>=100?"over":h>=80?"warn":"ok";c.push({key:"budget",text:s("budgetShort")+" "+h.toFixed(1)+"%",tip:s("budgetOf",{period:s(Ye[b.period]??"periodMonth")})+" · "+s("usedOf",{used:de(C,a),amount:de(S,a)}),level:p})}}}return c.length===0?null:n("div",{className:"cm-corner"},c.map(b=>n(J,{portal:!0,key:b.key,label:b.tip,side:"top",delayMs:500},n("span",{className:"cm-corner-chip"+(b.key==="model-top"?" cm-model-top":"")+(b.level==="ok"?"":" "+b.level)},b.text))))}function oa(e,t,o,a){if(a==="volcengine"&&(o=[]),!Array.isArray(t)||t.length===0||!Number.isFinite(e))return null;const s=(m,b)=>{const k=new Date(e);return k.setUTCDate(k.getUTCDate()+m),k.setUTCHours(b,0,0,0),k.getTime()},l=new Set,r=Math.max(12,Math.min(380,(Array.isArray(o)?o.length:0)+7));for(let m=-r;m<=r;m+=1){l.add(s(m,16));for(const b of t){const k=Number(b?.start),y=Number(b?.end);!Number.isFinite(k)||!Number.isFinite(y)||(l.add(s(m,k)),l.add(s(y<=k?m+1:m,y)))}}const i=[...l].sort((m,b)=>m-b).flatMap(m=>{const b=yt(m-1,void 0,t,o),k=yt(m,void 0,t,o);return b===k?[]:[{at:m,intoPeak:k}]});let d=null,c=null;for(const m of i)m.at<=e&&(d===null||m.at>d.at)&&(d=m),m.at>e&&(c===null||m.at<c.at)&&(c=m);const u=Ka(e,o),f=u??Wa(e);return f!==null?c===null?null:{inPeak:!1,weekend:u===null,...u?{holiday:!0}:{},prevAtMs:f.start,nextAtMs:c.at,nextIntoPeak:c.intoPeak}:d===null||c===null?null:{inPeak:yt(e,void 0,t,o),weekend:!1,prevAtMs:d.at,nextAtMs:c.at,nextIntoPeak:c.intoPeak}}function je(e,t){if(!e||e.peakNotice===!1||e.peakEnabled!==!0)return null;const o=Date.parse(e.peakEffectiveAt||"");return Number.isFinite(o)&&t<o?null:sa(e,t)}function sa(e,t){const o=String(e?.peakProvider??"").trim().toLowerCase().replace(/^llm-/,"");return oa(t,e?.peakWindows??[],e?.peakHolidays,["volcengine","ark"].includes(o)?"volcengine":void 0)}function la(e,t){const o=e?.config,a=t??o?.peakProvider??e?.meta?.defaultProvider;return o&&a?{...o,peakProvider:a}:o}function fn(e,t,o){let a=t.prevAtMs;for(let s=0;s<16;s++){const l=sa(e,a-1);if(!l||l.inPeak!==t.inPeak||l.prevAtMs>=a)break;a=l.prevAtMs}return{start:a,progress:Math.max(0,Math.min(100,(o-a)/Math.max(1,t.nextAtMs-a)*100))}}function Pt(e,t,o){const{progress:a}=fn(e,t,o);return(t.weekend||t.holiday?a:(t.inPeak?0:50)+a/2)+"%"}function nt(e,t){const[o,a]=D(Date.now());return X(()=>{if(t!==void 0)return;let s;const l=()=>{if(window.clearTimeout(s),document.hidden)return;const r=Date.now(),i=je(e,r);a(r),s=window.setTimeout(l,Math.max(100,Math.min(3e4,(i?.nextAtMs??r+3e4)-r)))};return l(),document.addEventListener("visibilitychange",l),()=>{window.clearTimeout(s),document.removeEventListener("visibilitychange",l)}},[t,e.peakWindows,e.peakHolidays,e.peakProvider]),t??o}function ot(e){return e.holiday===!0?{short:"holidayShort",chip:"holidayChip",notice:"holidayAllOffPeak"}:e.weekend===!0?{short:"weekendShort",chip:"weekendChip",notice:"weekendAllOffPeak"}:e.inPeak?{short:"peakShort",chip:"peakShort",notice:"peakNotice"}:{short:"offPeakShort",chip:"offPeakShort",notice:"offPeakActive"}}function Me(e,t,o){const a=Math.max(0,e.nextAtMs-t),s=Math.max(1,Math.ceil(a/6e4)),l=Math.floor(s/60),r=s%60;return l>0?r>0?o("countdownHourMinute",{h:l,m:r}):o("countdownHoursOnly",{h:l}):o("countdownMinute",{m:s})}function bn(e){const t=we(null),o=we(e.actions);o.current=e.actions,X(()=>{const d=t.current;if(!d)return;try{typeof d.showPopover=="function"?d.showPopover():d.removeAttribute("popover")}catch{d.removeAttribute("popover")}let c=!1;const u=b=>{d.contains(b.target)&&(c=!0,b.stopPropagation())},f=b=>{c&&(c=!1,b.stopPropagation())},m=[["pointerdown",u],["pointerup",f],["pointercancel",f],["touchstart",u],["click",b=>{if(!d.contains(b.target))return;b.stopPropagation();const k=b.target.closest?.("[data-cm-action]");k&&!k.disabled&&o.current[k.dataset.cmAction]?.()}]];for(const[b,k]of m)window.addEventListener?.(b,k,{capture:!0,passive:!0});return()=>{for(const[b,k]of m)window.removeEventListener?.(b,k,!0);try{d.hidePopover()}catch{}}},[]);const{actions:a,children:s,...l}=e,r=n("div",{...l,ref:t,popover:"manual"},s);let i;try{i=Ne("react-dom")?.createPortal}catch{}return typeof i=="function"?i(r,document.body):r}const es="cm-peak-alert-preview";function ts(e){return e.useCost?.(o=>o)?.state?.config?.peakEnabled===!0?n(st,{...e,view:"alert"}):null}function as(e){const{config:t,t:o}=e,a=nt(t,e.now),s=je(t,a);if(s===null)return null;const l=ot(s),r=s.nextIntoPeak?o("nextPeakIn",{time:Me(s,a,o)}):o("nextOffPeakIn",{time:Me(s,a,o)});return n(J,{portal:!0,label:o(l.notice),side:"right",delayMs:300},n("div",{"data-cm-display":"peak",className:"cm-peak-strip "+(s.weekend||s.holiday?"weekend":s.inPeak?"peak":"off")},n("div",{className:"cm-peak-track"},n("div",{className:"cm-peak-segment cm-peak-high"}),n("div",{className:"cm-peak-segment cm-peak-low"}),n("div",{className:"cm-peak-marker",style:{left:Pt(t,s,a)}})),n("span",{className:"cm-peak-chip"},o(l.chip)+" · "+r)))}function ns(e){const{config:t,t:o}=e,a=nt(t,e.now),s=je(t,a);if(s===null)return null;const l=ot(s),r=s.nextIntoPeak?o("nextPeakIn",{time:Me(s,a,o)}):o("nextOffPeakIn",{time:Me(s,a,o)});return n(J,{portal:!0,label:o(l.notice),side:"right",delayMs:300},n("div",{"data-cm-display":"peak",className:"cm-peak-classic "+(s.weekend||s.holiday?"weekend":s.inPeak?"peak":"off")},n("div",{className:"cm-peak-classic-marker",style:{left:"clamp(6px, "+Pt(t,s,a)+", calc(100% - 6px))"}}),n("div",{className:"cm-peak-track"},n("div",{className:"cm-peak-segment cm-peak-high"}),n("div",{className:"cm-peak-segment cm-peak-low"})),n("span",{className:"cm-peak-classic-chip"},o(l.chip)+" · "+r)))}let gn;function os(){return gn??=Ne.async("./client.peak.js").then(e=>e.mount({peakView:je,peakPhaseAt:oa,peakPhaseForConfig:sa,peakConfigForState:la,peakPeriodProgress:fn,usePeakClock:nt,phaseLabelKeys:ot,countdownText:Me,resolveLocale:j,makeT:z,Tooltip:J,FloatingCard:bn})).catch(e=>{throw gn=null,e})}function st(e){return n(pe,{...e,load:os,quiet:!0})}function hn(e,t,o){return t.sidebarTextOnly===!0?n(st,{config:t,t:o}):n(t?.peakStyle==="progress"?st:t?.peakStyle==="classic"?ns:as,{config:t,t:o})}function ss(e){const{config:t,t:o}=e,a=nt(t,e.now),s=je(t,a);if(s===null)return null;const l=ot(s),r=s.nextIntoPeak?o("nextPeakIn",{time:Me(s,a,o)}):o("nextOffPeakIn",{time:Me(s,a,o)}),i=[o(l.notice),r];return n(J,{portal:!0,label:i,side:"right",delayMs:300},n("div",{className:"cm-peak-rail "+(s.weekend||s.holiday?"weekend":s.inPeak?"peak":"off"),"aria-label":i.join("; ")},n("div",{className:"cm-peak-rail-track"},n("div",{className:"cm-peak-rail-segment cm-peak-rail-high"}),n("div",{className:"cm-peak-rail-segment cm-peak-rail-low"}),n("div",{className:"cm-peak-rail-marker",style:{top:Pt(t,s,a)}})),n("span",{className:"cm-peak-rail-label"},o(l.short))))}function ls(e){const{config:t,t:o}=e,a=nt(t,e.now),s=je(t,a);if(s===null)return null;const l=ot(s),r=s.nextIntoPeak?o("nextPeakIn",{time:Me(s,a,o)}):o("nextOffPeakIn",{time:Me(s,a,o)}),i=[o(l.notice),r];return n(J,{portal:!0,label:i,side:"right",delayMs:300},n("div",{className:"cm-peak-rail-classic "+(s.weekend||s.holiday?"weekend":s.inPeak?"peak":"off"),"aria-label":i.join("; ")},n("div",{className:"cm-peak-rail-classic-track"},n("div",{className:"cm-peak-rail-classic-segment peak"}),n("div",{className:"cm-peak-rail-classic-segment off"}),n("div",{className:"cm-peak-rail-classic-marker",style:{top:Pt(t,s,a)}})),n("span",{className:"cm-peak-rail-classic-label"},o(l.short))))}function rs(e,t,o){return t.sidebarTextOnly===!0?n(st,{config:t,t:o,rail:!0}):n(t?.peakStyle==="progress"?st:t?.peakStyle==="classic"?ls:ss,{config:t,t:o,rail:!0})}function is(e,t,o){const a=t.budget??{enabled:!1,amount:100,period:"month"},s=Number(t.exchangeRate),r=(e.budgetUsed??(a.period==="day"?Q(e.today,t):a.period==="all"?Q(e.total,t):Q(e.month,t)))*(Number.isFinite(s)&&s>0?s:1),i=Math.max(0,Number(a.amount)||0),d=i>0?Math.min(999,r/i*100):null,c=xe(d===null?null:Math.min(100,d),ie(t,"budget")),u=a.detail!==!1;return{level:d===null?"ok":d>=100?"over":d>=80?"warn":"ok",rail:c.label===null?"—":Math.round(c.label)+"%",body:n(E,null,n("div",{className:"cm-bbox-head"},n("span",{className:"cm-bbox-label"},o("budget")),n("span",{className:"cm-bbox-pct cm-num"},c.label===null?"—":c.label.toFixed(1)+"%")),n("div",{className:"cm-bbox-bar"},n("div",{className:"cm-bbox-fill",style:{width:c.width+"%"}})),u?n(E,null,n("div",{className:"cm-bbox-line cm-num"},o("usedOf",{used:de(r,t),amount:de(i,t)}))):null)}}function cs(e,t,o){const a=e.goQuota,s=t?.goQuota?.main==="weekly"||t?.goQuota?.main==="monthly"?t.goQuota.main:"rolling",l=a[s],r=l!==null&&typeof l?.percent=="number"?Math.max(0,Math.min(100,Number(l.percent)||0)):0,i=m=>m!==null&&typeof m?.percent=="number"?Math.round(Math.max(0,Math.min(100,m.percent)))+"%":"—",d=m=>o(m==="rolling"?"goShortRolling":m==="weekly"?"goShortWeekly":"goShortMonthly"),c=["rolling","weekly","monthly"].filter(m=>m!==s),u=l!==null&&typeof l?.resetsAt=="string"&&l.resetsAt.length>0?o("goResetAt",{time:new Date(l.resetsAt).toLocaleString()}):"",f=t?.goQuota?.detail!==!1,g=xe(r,ie(t,"go"));return{level:r>=100?"over":r>=80?"warn":"ok",rail:g.label===null?"—":Math.round(g.label)+"%",body:n(E,null,n("div",{className:"cm-bbox-head"},n("span",{className:"cm-bbox-label"},o("goQuotaRowLabel")+" "+d(s)),n("span",{className:"cm-bbox-pct cm-num"},g.label===null?"—":Math.round(g.label)+"%")),n("div",{className:"cm-bbox-bar"},n("div",{className:"cm-bbox-fill",style:{width:g.width+"%"}})),f?n(E,null,n("div",{className:"cm-bbox-line cm-num"},c.map(m=>d(m)+" "+i(a[m])).join(" · ")),u?n("div",{className:"cm-bbox-line"},u):null):null)}}function yn(e,t,o){const a=ie(t,"go");return["rolling","weekly","monthly"].map((s,l)=>{const r=e?.[s],i=typeof r?.percent=="number"&&Number.isFinite(r.percent)?Math.max(0,Math.min(100,r.percent)):null,d=r?.resetsAt&&Number.isFinite(Date.parse(r.resetsAt))?" · "+o("goResetAt",{time:new Date(r.resetsAt).toLocaleString()}):"";return o(["goWindowRolling","goWindowWeekly","goWindowMonthly"][l])+": "+(i===null?"—":Be(xe(i,a).label,a,o))+d}).concat(e?.fetchedAt>0?o("goQuotaFetchedAt",{time:new Date(e.fetchedAt).toLocaleTimeString()}):[]).join(`
3
3
  `)}function us(e){const{state:t,wide:o}=e,a=t.goQuota,s=z(j(t.config));if(!a||a.status!=="ok")return null;const l=t.config?.goQuota?.main==="weekly"||t.config?.goQuota?.main==="monthly"?t.config.goQuota.main:"rolling";if(a[l]===null||typeof a[l]?.percent!="number")return null;const r=cs(t,t.config,s),i=yn(a,t.config,s);return n(J,{portal:!0,label:n("span",{style:{whiteSpace:"pre-line"}},i),side:"right",delayMs:300},n("div",{"data-cm-display":"go",className:"cm-bbox"+(r.level==="ok"?"":" "+r.level)+(o?"":" rail")},o?r.body:n("div",{className:"cm-bbox-rail cm-num"},r.rail)))}function ds(e){return e===null||typeof e!="object"||e.unlimited||typeof e.percent!="number"?null:Math.max(0,Math.min(100,Math.round(Number(e.percent)||0)))}function ra(e){const t=e!==null&&typeof e=="object"?e:{};return{five:t["5h"]??null,seven:t["7d"]??t.week??t.weekly??null}}function kn(e,t,o=Date.now()){if(typeof e!="string"||!e)return"";const a=Date.parse(e);if(!Number.isFinite(a))return"";const s=a-o;if(s<=0)return t("resetReached");const l=Math.ceil(s/6e4),r=Math.floor(l/1440),i=Math.floor(l%1440/60),d=l%60;return r>0?t("resetDays",{d:r,h:i}):i>0?t("resetHours",{h:i,m:d}):t("resetMinutes",{m:d})}function lt(e,t,o=Date.now()){const a=kn(e?.resetsAt,t,o);return a?t("goResetAt",{time:new Date(e.resetsAt).toLocaleString()})+" ("+a+")":""}function Be(e,t,o){return e===null?"—":o(t==="remaining"?"quotaRemaining":"quotaUsed",{pct:e})}function Mt(e){const[,t]=D(0),o=()=>t(Date.now());return X(()=>{if(!e)return;const a=setInterval(o,6e4);return()=>clearInterval(a)},[e]),{onMouseEnter:o,onFocus:o}}function rt(e,t,o,a,s){const l=ds(t),r=l===null?"ok":l>=100?"over":l>=80?"warn":"ok",i=xe(l,o),d=t?.unlimited?"∞":s?Be(i.label,o,a):i.label===null?"—":i.label+"%";return{level:r,pct:l,text:d,label:i.label,row:n("div",{key:e,className:"cm-mm-row"+(r==="ok"?"":" "+r)},n("span",{className:"cm-bbox-label"},e),n("div",{className:"cm-bbox-bar"},n("div",{className:"cm-bbox-fill",style:{width:i.width+"%"}})),n("span",{className:"cm-bbox-pct cm-num"},d))}}function ia(e){const{five:t,seven:o,fetchedAt:a,t:s,wide:l,refresh:r,direction:i="used"}=e,d=Mt(t?.resetsAt),c=kn(t?.resetsAt,s),u=rt(s("codingPlanRemain5h"),t,i,s),f=rt(s("codingPlanRemain7d"),o,i,s),g=u.level==="over"||f.level==="over"?"over":u.level==="warn"||f.level==="warn"?"warn":"ok",m=(C,S,h)=>{const p=S?.unlimited?s("quotaUnlimited"):Be(h.label,i,s),w=lt(S,s);return C+" "+p+(w?" · "+w:"")},b=[s("codingPlanMinimaxTitle"),m(s("codingPlanRemain5h"),t,u),m(s("codingPlanRemain7d"),o,f),a>0?s("goQuotaFetchedAt",{time:new Date(a).toLocaleTimeString()}):null,...r?Pe(s,r):[]].filter(Boolean).join(`
4
4
  `),k=n(E,null,n("div",{className:"cm-mm-title"},s("codingPlanMinimaxTitle")),u.row,f.row,c?n("div",{className:"cm-mm-reset"},"5h · "+c):null),y=n(E,null,n("div",{className:"cm-bbox-rail cm-num"},u.text),n("div",{className:"cm-bbox-rail cm-num"},f.text));return n(J,{portal:!0,label:n("span",{style:{whiteSpace:"pre-line"}},b),side:"right",delayMs:300},n("div",{...d,"data-cm-display":"plan","data-cm-plan":"minimax",className:"cm-bbox cm-mm"+(g==="ok"?"":" "+g)+(l===!1?" rail":"")+(r?" clickable"+(r.busy?" busy":""):""),...r?ye(r.busy,r.run):{}},l===!1?y:k))}function ps(e){const{state:t,wide:o,api:a}=e,s=t.codingPlans?.minimax,l=z(j(t.config)),r=Oe(a?()=>a.refreshCodingPlan("minimax"):null);if(!s||s.status!=="ok")return null;const{five:i,seven:d}=ra(s.windows);return i==null&&d==null?null:n(ia,{five:i,seven:d,fetchedAt:s.fetchedAt,t:l,wide:o,refresh:r,direction:ie(t.config,"plan")})}const ms="/plugins/dsh-openai-codex/auth/status",fs={18e3:"five",604800:"weekly"};function xn(e){if(!Array.isArray(e))return null;const t=e.find(a=>a!==null&&typeof a=="object"&&a.id==="codex");if(!t||!Array.isArray(t.windows))return null;const o={};for(const a of t.windows){const s=a!==null&&typeof a=="object"?fs[Number(a.windowSeconds)]:null;if(!s||typeof a.remainingPercent!="number"||!Number.isFinite(Number(a.remainingPercent)))continue;const l=Number(a.resetAt??a.resetsAt);o[s]={percent:Math.max(0,Math.min(100,Math.round((100-Number(a.remainingPercent))*10)/10)),resetsAt:Number.isFinite(l)&&l>0?new Date(l*1e3).toISOString():""}}return o}function bs(e){return e===null||typeof e!="object"||e.status!=="signed-in"?null:xn(e.usage?.rateLimits)}async function ca(e){const t=AbortSignal.timeout(8e3);let o;const a=new Promise((s,l)=>{o=()=>l(t.reason),t.addEventListener("abort",o,{once:!0})});try{return await Promise.race([Promise.resolve().then(()=>e(t)),a])}finally{t.removeEventListener("abort",o)}}async function gs(e){try{const t=await ca(o=>_.rpc?.call("/api","codex-subscription/usage",{force:e},o));return t?.ok?xn(t.value?.rateLimits):null}catch{return null}}const _={source:"auto",listeners:[]},ua=(e,t=null,o=null)=>Object.assign(_,{rpc:e,readPiAi:t,readChatgptSub:o,request:null,inFlight:null,fetchedAt:0,status:"idle",windows:{},message:""});ua(null);const da=()=>{const{rpc:e,readPiAi:t,readChatgptSub:o,request:a,inFlight:s,listeners:l,...r}=_;return r},hs=e=>(_.listeners.push(e),()=>{_.listeners=_.listeners.filter(t=>t!==e)}),Tt=()=>{for(const e of _.listeners)try{e()}catch{}};async function Rt(e=!1,t=!1,o="auto"){if(!t)return;if(_.inFlight!==null&&_.source===o)return _.inFlight;if(!e&&_.source===o&&_.fetchedAt>0&&Date.now()-_.fetchedAt<(_.status==="ok"?5:1)*6e4)return;const a={};_.request=a,_.source!==o&&Object.assign(_,{status:"idle",windows:{},fetchedAt:0,source:o}),Tt();const s=Promise.resolve().then(async()=>{let l={},r="";try{if((o==="auto"||o==="subscription")&&(l=await gs(e)??{}),Object.keys(l).length===0&&(o==="auto"||o==="pi-ai"))try{const i=await ca(()=>_.readPiAi?.());i?.ok===!0&&i.value?.status==="ok"?l=i.value.windows:i?.ok===!0&&i.value?.status==="error"&&(r=i.value.message)}catch{}if(Object.keys(l).length===0&&(o==="auto"||o==="chatgpt-sub"))try{const i=await ca(()=>Ne.async("./client.codex.js").then(d=>d.readChatgptSubQuota(_.readChatgptSub)));i?.status==="ok"?l=i.windows:i?.status==="error"&&(r=i.message)}catch{}if(Object.keys(l).length===0&&(o==="auto"||o==="chatgpt"))try{l=await(await Ne.async("./client.codex.js")).readChatgptQuota(e)??{}}catch{}if(Object.keys(l).length===0&&(o==="auto"||o==="connect")){const i=await fetch(ms,{credentials:"same-origin",headers:{accept:"application/json"},signal:AbortSignal.timeout(8e3)});i.ok&&(l=bs(await i.json().catch(()=>null))??{})}}catch{}finally{if(_.request!==a)return;_.status=Object.keys(l).length>0?"ok":"unavailable",_.windows=l,_.message=Object.keys(l).length?"":r,_.fetchedAt=Date.now(),_.inFlight=null,Tt()}});return _.inFlight=s,s}function Ot(e,t="auto"){const[o,a]=D(da);return X(()=>{if(!e)return;let s=!0;const l=()=>{s&&a(da())},r=hs(l);l(),Rt(!1,!0,t);const i=setInterval(()=>{Rt(!1,!0,t)},6e4);return()=>{s=!1,clearInterval(i),r()}},[e,t,_.rpc]),o.source===t?o:{status:"idle",windows:{},fetchedAt:0}}function ys(e){const t=Mt(),{state:o,wide:a}=e,s=z(j(o.config)),l=o.config?.codexQuotaEnabled===!0&&o.config?.codexQuotaSidebar!==!1,r=o.config?.codexQuotaSource??"auto",i=Ot(l&&!e.preview,r),d=e.preview?o.displayPreviewCodex??(_.source===r?_:{status:"idle"}):i,c=Oe(e.preview?null:l?()=>Rt(!0,l,r):()=>e.api.updateConfig({codexQuotaEnabled:!0,codexQuotaSidebar:!0}));if(!l&&(o.config?.codexQuotaSidebar===!1||o.codexCompat?.enabled!==!0))return null;if(!l)return n("div",{"data-cm-display":"codex",className:"cm-bbox cm-mm clickable"+(a===!1?" rail":""),...ye(c.busy,c.run)},c.err||(a===!1?"Codex":s("codexQuotaEnable")));if(d.status!=="ok")return n("div",{"data-cm-display":"codex",className:"cm-bbox cm-mm clickable"+(a===!1?" rail":""),title:d.message||s("codexQuotaUnavailable"),...ye(c.busy,c.run)},n("div",{className:"cm-mm-title"},a===!1?"Codex":s("codexQuotaTitle")),n("span",{className:"cm-hint"},a===!1?"—":d.status==="idle"||c.busy?s("refreshing"):d.message||s("codexQuotaUnavailable")));const u=[["five","codexQuotaFive","5h"],["weekly","codexQuotaWeek","7d"]].flatMap(([k,y,C])=>{const S=d.windows[k];if(!S)return[];const h=rt(C,S,"remaining",s,!0),p=new Date(typeof S.resetsAt=="string"?S.resetsAt:NaN),w=Number.isFinite(p.getTime())?s("codexQuotaReset",{time:p.toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1})}):"";return[{...h,key:k,short:C,name:s(y),reset:w,win:S}]});if(!u.length)return null;const f=u.some(k=>k.pct>=100)?"over":u.some(k=>k.pct>=80)?"warn":"ok",g=[s("codexQuotaTitle"),...u.map(k=>k.name+" · "+k.text+(k.reset?" · "+lt(k.win,s):"")),d.fetchedAt>0?s("goQuotaFetchedAt",{time:new Date(d.fetchedAt).toLocaleTimeString()}):null,...Pe(s,c)].filter(Boolean).join(`
5
5
  `),m=n(E,null,n("div",{className:"cm-bbox-head cm-codex-head"},n("div",{className:"cm-mm-title"},s("codexQuotaTitle")),n("div",{className:"cm-codex-resets"},...u.filter(k=>k.reset).map(k=>n("span",{key:k.key,className:"cm-mm-reset"},(u.length>1?k.short+" · ":"")+k.reset)))),...u.map(k=>k.row)),b=n(E,null,...u.map(k=>n("div",{className:"cm-bbox-rail cm-num"},k.text)));return n(J,{portal:!0,label:n("span",{style:{whiteSpace:"pre-line"}},g),side:"right",delayMs:300},n("div",{...t,"data-cm-display":"codex",className:"cm-bbox cm-mm clickable"+(f==="ok"?"":" "+f)+(a===!1?" rail":"")+(c.busy?" busy":""),...ye(c.busy,c.run)},a===!1?b:m))}function Ke(e,t){return e.startsWith("core_")?"Core · "+Ke(e.slice(5),t):e==="fiveHour"||e==="five_hour"||e==="5h"?"5h":e==="seven_day"?"7d":e==="weekly"||e==="week"||e==="7d"?e==="7d"?"7d":t("goShortWeekly"):e==="monthly"||e==="month"?t("goShortMonthly"):e==="daily"||e==="day"?t("goShortDaily"):e==="plan"?t("mimoWindowPlan"):e==="compensation"?t("mimoWindowCompensation"):e==="usage"?t("quotaUsedTotal"):e==="balance"?t("codingPlanWindowBalance"):String(e).replace(/_/g," ")}function Bt(e,t){const o=a=>{const s=a.replace(/^core_/,"").toLowerCase().replace(/[^a-z0-9]/g,"");return/^(fivehour|five|5h|rolling|session)$/.test(s)?0:/^(daily|day|1d)$/.test(s)?1:/^(weekly|week|7d|sevenday)$/.test(s)?2:/^(monthly|month|30d)$/.test(s)?3:4};return Object.entries(e??{}).filter(([a])=>t!=="volcengine"||[0,2,3].includes(o(a))).sort((a,s)=>o(a[0])-o(s[0]))}function ks(e){return/^(five_?hour|5h)$/i.test(e)?5:/^(seven_?day|7d)$/i.test(e)?168:0}function wn(e,t){return e>=(t==="anthropic"?95:100)?"over":e>=80?"warn":"ok"}function xs(e,t,o,a,s=Date.now()){const l=Date.parse(t?.resetsAt),r=ks(e);if(!Number.isFinite(l)||r===0||!Number.isFinite(t.percent))return null;const i=l-s;if(i<=0)return null;const d=new Intl.DateTimeFormat(a==="en"?"en-US":"zh-CN",r===5?{hour:"2-digit",minute:"2-digit",hour12:!1}:{weekday:"short",hour:"2-digit",minute:"2-digit",hour12:!1}),c=Math.ceil(i/6e4),u=r===5?c>=60?o("quotaResetInHm",{h:Math.floor(c/60),m:c%60}):o("quotaResetInM",{m:c}):o("quotaResetAt",{time:d.format(l)}),f=r*36e5,g=s-(l-f),m=t.percent>0&&t.percent<100&&g/f>=.1?l-f+g*100/t.percent:1/0;return{reset:u,forecast:m>s&&m<l?o("quotaForecastHit",{time:d.format(m)}):""}}function ws(e){const t=Mt(),{id:o,state:a,wide:s,api:l}=e,r=a.codingPlans?.[o],i=z(j(a.config)),d=Oe(l?()=>l.refreshCodingPlan(o):null),c=He.find(x=>x.id===o);if(!c||!r||r.status!=="ok")return null;const u=r.windows!==null&&typeof r.windows=="object"?r.windows:{},f=Bt(u,o);if(f.length===0)return null;const g=x=>x!==null&&typeof x=="object"&&typeof x.percent=="number"?Math.max(0,Math.min(100,Math.round(Number(x.percent)||0))):null,m=ie(a.config,"plan"),b=(o==="workbuddy"||o==="opendesign")&&u.balance?.text?i("codingPlanWindowBalance")+": "+u.balance.text:null,k=j(a.config),y=(b?f.filter(([x])=>x!=="balance"):f).map(([x,P])=>{const v=g(P);if(v===null)return n("div",{key:x,className:"cm-mm-row wide"},n("span",{className:"cm-mm-text"},typeof P?.text=="string"?P.text:"—"));const H=wn(v,o),A=xe(v,m),O=n("div",{key:x,className:"cm-mm-row wide"+(H==="ok"?"":" "+H)},n("span",{className:"cm-bbox-label"},Ke(x,i)),n("div",{className:"cm-bbox-bar"},n("div",{className:"cm-bbox-fill",style:{width:A.width+"%"}})),n("span",{className:"cm-bbox-pct cm-num"},A.label===null?"—":A.label+"%")),q=o==="anthropic"?xs(x,P,i,k):null;return q===null?O:n(E,{key:x},O,n("div",{className:"cm-mm-sub"},q.reset,q.forecast&&n("div",{className:"cm-mm-sub warn"},q.forecast)))}),C=f.map(([x,P])=>{const v=g(P),H=lt(P,i),A=v===null?typeof P?.text=="string"?P.text:"—":Be(xe(v,m).label,m,i);return Ke(x,i)+" "+A+(H?" · "+H:"")});r.fetchedAt>0&&C.push(i("goQuotaFetchedAt",{time:new Date(r.fetchedAt).toLocaleTimeString()})),r.message&&C.push(r.message),C.push(...Pe(i,d));const S=[i(c.labelKey),...C].join(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-cost-meter",
3
- "version": "1.9.45",
3
+ "version": "1.9.46",
4
4
  "description": "DeepSeek Harness 会话费用统计插件:本会话成本、当日费用、历史记录与官方价格同步,支持多厂商多模型价格计费(内置 170+ 模型 ID 价格目录与自动匹配)、主流 Coding Plan 订阅额度查询与显示(16 家,含 WorkBuddy 官方积分、OpenDesign 工作区查询、含小米 MiMo Token Plan 控制台 Cookie 查询、SCNet Token Plan 本地 Credits 计量与火山方舟 Volcano Ark Coding Plan AK/SK 签名查询)、自定义 Provider 余额查询(可配任意 HTTP 端点)与余额进度条、峰谷计价时段显示与切换前弹窗/系统通知提醒(位置/提前量/类型可配),界面中英双语。Session cost tracking plugin for DeepSeek Harness: per-conversation cost, daily totals, history and official price sync, with multi-vendor model pricing (built-in 170+ model-ID catalog with auto-matching), Coding Plan quota queries & display for 16 vendors (incl. WorkBuddy official credits, OpenDesign workspace queries, Xiaomi MiMo Token Plan via console cookie, local credits metering for the SCNet Token Plan and Volcano Ark Coding Plan via AK/SK signature), plan/API dual-track billing with per-1% & full-window Token Plan usage estimates, custom provider balance lookup (configurable HTTP endpoint) and balance progress bar, plus peak/off-peak pricing display with pre-switch popup & system-notification alerts (position / lead time / type configurable), in a bilingual (Chinese/English) UI.",
5
5
  "type": "module",
6
6
  "main": "lib/bootstrap.js",
@@ -194,7 +194,8 @@
194
194
  "docs/update-notes-1.9.42.md",
195
195
  "docs/update-notes-1.9.43.md",
196
196
  "docs/update-notes-1.9.44.md",
197
- "docs/update-notes-1.9.45.md",
197
+ "docs/update-notes-1.9.45.md",
198
+ "docs/update-notes-1.9.46.md",
198
199
  "docs/billion-context-peer-discovery.md",
199
200
  "docs/official-price-sync-safety.md"
200
201
  ],